mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
docs(coding-agent): refresh documentation (#9898)
* docs(coding-agent): improve getting started documentation * docs(coding-agent): correct getting started details * docs(coding-agent): clarify SDK entry point * docs(coding-agent): restructure guides and references * docs(coding-agent): improve getting started guides * docs(coding-agent): refresh integration guides * docs(coding-agent): improve terminal and CLI guides * docs(coding-agent): refresh customisation guides * docs(coding-agent): clarify project trust terminology * docs(coding-agent): simplify customisation guidance * docs(coding-agent): improve runtime and reference guidance * Fix settings reference * feat(coding-agent): add Crowdin documentation sync * docs(coding-agent): separate CLI and slash command references * docs(coding-agent): correct compaction reference * docs(coding-agent): streamline package documentation * docs(coding-agent): split RPC reference documentation * Update configuration docs * Shorten config docs * docs(coding-agent): refine configuration references * docs(coding-agent): streamline settings reference * docs(coding-agent): clarify configuration reference * docs(coding-agent): clarify project trust exception * docs(coding-agent): simplify keybindings reference * docs(coding-agent): remove Crowdin integration * docs(coding-agent): turn themes reference into guide * docs(coding-agent): consolidate model and authentication docs * docs(tui): require Component.invalidate() (fixes #9358) * docs(coding-agent): document offline catalog behavior (fixes #8684) * docs(coding-agent): preserve established documentation routes * docs(coding-agent): reorganize documentation navigation * docs(coding-agent): correct audited behavior Clarify provider, session, local-model, Termux, TUI, SDK, debug, and extension behavior. Simplify the documentation audit to report only clear user-visible contradictions. * docs(coding-agent): fix broken documentation links
This commit is contained in:
parent
d201760ffe
commit
25cc5c7bf4
49 changed files with 4187 additions and 11681 deletions
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
import { spawn } from "node:child_process";
|
||||
import { dirname, join } from "node:path";
|
||||
import * as readline from "node:readline";
|
||||
import { StringDecoder } from "node:string_decoder";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import {
|
||||
type Component,
|
||||
|
|
@ -258,7 +258,7 @@ async function main() {
|
|||
|
||||
const agent = spawn(
|
||||
"node",
|
||||
[cliPath, "--mode", "rpc", "--no-session", "--no-extension", "--extension", extensionPath],
|
||||
[cliPath, "--mode", "rpc", "--no-session", "--no-extensions", "--extension", extensionPath],
|
||||
{ stdio: ["pipe", "pipe", "pipe"] },
|
||||
);
|
||||
|
||||
|
|
@ -518,9 +518,7 @@ async function main() {
|
|||
|
||||
// -- Process agent stdout --
|
||||
|
||||
const stdoutRl = readline.createInterface({ input: agent.stdout!, terminal: false });
|
||||
|
||||
stdoutRl.on("line", (line) => {
|
||||
function handleAgentLine(line: string): void {
|
||||
let data: Record<string, unknown>;
|
||||
try {
|
||||
data = JSON.parse(line);
|
||||
|
|
@ -583,6 +581,28 @@ async function main() {
|
|||
tui.requestRender();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
const stdoutDecoder = new StringDecoder("utf8");
|
||||
let stdoutBuffer = "";
|
||||
|
||||
agent.stdout!.on("data", (chunk: Buffer) => {
|
||||
stdoutBuffer += stdoutDecoder.write(chunk);
|
||||
while (true) {
|
||||
const newlineIndex = stdoutBuffer.indexOf("\n");
|
||||
if (newlineIndex === -1) break;
|
||||
|
||||
const line = stdoutBuffer.slice(0, newlineIndex);
|
||||
stdoutBuffer = stdoutBuffer.slice(newlineIndex + 1);
|
||||
handleAgentLine(line.endsWith("\r") ? line.slice(0, -1) : line);
|
||||
}
|
||||
});
|
||||
|
||||
agent.stdout!.on("end", () => {
|
||||
stdoutBuffer += stdoutDecoder.end();
|
||||
if (stdoutBuffer.length > 0) {
|
||||
handleAgentLine(stdoutBuffer.endsWith("\r") ? stdoutBuffer.slice(0, -1) : stdoutBuffer);
|
||||
}
|
||||
});
|
||||
|
||||
// -- User input --
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue