localpi 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/src/cli/cli.js +7 -1
- package/docs/runtime-specification.md +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -109,6 +109,10 @@ Localpi launches Pi with:
|
|
|
109
109
|
- in-session `/thinking` (Pi's own command) and `/approval` (localpi's) for changing session settings
|
|
110
110
|
- local state under `~/.local/state/localpi`
|
|
111
111
|
|
|
112
|
+
Pi owns stdout. Localpi writes its own diagnostics, including the connection summary and catalog
|
|
113
|
+
warnings, to stderr. A machine-readable Pi mode such as `--mode rpc` or `--mode json` therefore stays
|
|
114
|
+
parseable, and a batch run keeps a clean stdout.
|
|
115
|
+
|
|
112
116
|
The approval gate makes failed or denied tool calls explicit to the model so the model does not claim that a blocked command ran.
|
|
113
117
|
|
|
114
118
|
## Skills
|
package/dist/src/cli/cli.js
CHANGED
|
@@ -307,7 +307,13 @@ async function launchResolvedRuntime(app, connection) {
|
|
|
307
307
|
if (code !== 0) {
|
|
308
308
|
return { code, stdout: "", stderr: "" };
|
|
309
309
|
}
|
|
310
|
-
|
|
310
|
+
// Pi owns stdout. Localpi reports its own diagnostics on stderr, so a machine-readable Pi mode
|
|
311
|
+
// such as --mode rpc or --mode json stays parseable.
|
|
312
|
+
return {
|
|
313
|
+
code: 0,
|
|
314
|
+
stdout: "",
|
|
315
|
+
stderr: connection.warnings.length === 0 ? "" : connectionStatus(connection)
|
|
316
|
+
};
|
|
311
317
|
}
|
|
312
318
|
/**
|
|
313
319
|
* ACP mode keeps stdout for the protocol only, so localpi reports its own diagnostics on stderr and
|
|
@@ -201,6 +201,10 @@ Localpi installs two default extensions:
|
|
|
201
201
|
- tool approval gate: ask before each tool call, and tell the model clearly when a tool call was blocked
|
|
202
202
|
- token status: show live generation speed while streaming, then final prefill and generation rates when usage data is available
|
|
203
203
|
|
|
204
|
+
Pi owns stdout. Localpi writes its own diagnostics, including the connection summary
|
|
205
|
+
and catalog warnings, to stderr, so a machine-readable Pi mode such as `--mode rpc`
|
|
206
|
+
or `--mode json` stays parseable and a batch run keeps a clean stdout.
|
|
207
|
+
|
|
204
208
|
## System Prompt
|
|
205
209
|
|
|
206
210
|
Localpi appends a short system prompt that tells the model:
|