@averyyy/pi-coding-agent 0.84.3-piclient.1 → 0.84.4-piclient.1
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/CHANGELOG.md +123 -0
- package/README.md +5 -4
- package/dist/bundle/chunks/{chunk-GPPBJGBU.js → chunk-2KVJKXS2.js} +1 -1
- package/dist/bundle/chunks/{chunk-QI42RBZ4.js → chunk-AP7VCR6I.js} +73 -72
- package/dist/bundle/chunks/{google-generative-ai-XDKMGBCJ.js → google-generative-ai-YMUPJBKR.js} +1 -1
- package/dist/bundle/chunks/{google-vertex-D5FGEO3Y.js → google-vertex-MPWMV4OF.js} +1 -1
- package/dist/bundle/chunks/https-proxy-agent-2VXB7436.js +13 -0
- package/dist/bundle/chunks/{mistral-conversations-YK73UAOZ.js → mistral-conversations-Q3AWZJAZ.js} +1 -1
- package/dist/bundle/chunks/{openai-completions-JD4WAC3R.js → openai-completions-ERMU2SS7.js} +1 -1
- package/dist/bundle/cli.js +1 -1
- package/dist/bundle/index.js +1 -1
- package/dist/bundle/rpc-entry.js +1 -1
- package/dist/cli/startup-ui.d.ts.map +1 -1
- package/dist/cli/startup-ui.js +2 -1
- package/dist/cli/startup-ui.js.map +1 -1
- package/dist/core/agent-session.d.ts +12 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +102 -19
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
- package/dist/core/compaction/branch-summarization.js +8 -1
- package/dist/core/compaction/branch-summarization.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts +9 -4
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +42 -22
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/extensions/index.d.ts +1 -1
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +5 -0
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +45 -1
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +18 -1
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +4 -2
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/settings-manager.d.ts +8 -1
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +17 -0
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +2 -0
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +2 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +10 -0
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +4 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +48 -24
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-client.d.ts +7 -0
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client.js +7 -0
- package/dist/modes/rpc/rpc-client.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +3 -0
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +12 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/dist/utils/shell.d.ts.map +1 -1
- package/dist/utils/shell.js +6 -4
- package/dist/utils/shell.js.map +1 -1
- package/docs/compaction.md +2 -0
- package/docs/custom-provider.md +7 -7
- package/docs/environment-variables.md +3 -0
- package/docs/extensions.md +18 -0
- package/docs/keybindings.md +1 -1
- package/docs/quickstart.md +1 -1
- package/docs/rpc.md +23 -0
- package/docs/settings.md +12 -4
- package/docs/terminal-setup.md +12 -0
- package/docs/usage.md +4 -3
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/package.json +6 -6
- package/dist/bundle/chunks/dist-RDWOYWHR.js +0 -13
|
@@ -217,6 +217,8 @@ export declare class AgentSession {
|
|
|
217
217
|
private _followUpMessages;
|
|
218
218
|
/** Messages queued to be included with the next user prompt as context ("asides"). */
|
|
219
219
|
private _pendingNextTurnMessages;
|
|
220
|
+
/** Context-only custom messages queued during a run, flushed once the current turn's tool results are in. */
|
|
221
|
+
private _pendingCustomMessages;
|
|
220
222
|
private _compactionAbortController;
|
|
221
223
|
private _autoCompactionAbortController;
|
|
222
224
|
private _overflowRecoveryAttempted;
|
|
@@ -279,6 +281,7 @@ export declare class AgentSession {
|
|
|
279
281
|
/** Emit an event to all listeners */
|
|
280
282
|
private _emit;
|
|
281
283
|
private _emitQueueUpdate;
|
|
284
|
+
private _emitSessionCompactFailed;
|
|
282
285
|
private _getIdleWaitPromise;
|
|
283
286
|
private _resolveIdleWaitIfIdle;
|
|
284
287
|
private _emitAgentSettled;
|
|
@@ -417,8 +420,9 @@ export declare class AgentSession {
|
|
|
417
420
|
/**
|
|
418
421
|
* Send a custom message to the session. Creates a CustomMessageEntry.
|
|
419
422
|
*
|
|
420
|
-
* Handles
|
|
423
|
+
* Handles four cases:
|
|
421
424
|
* - Streaming: queues message, processed when loop pulls from queue
|
|
425
|
+
* - Streaming + triggerTurn false: appended to state/session once the current turn ends
|
|
422
426
|
* - Not streaming + triggerTurn: appends to state/session, starts new turn
|
|
423
427
|
* - Not streaming + no trigger: appends to state/session, no turn
|
|
424
428
|
*
|
|
@@ -430,6 +434,12 @@ export declare class AgentSession {
|
|
|
430
434
|
triggerTurn?: boolean;
|
|
431
435
|
deliverAs?: "steer" | "followUp" | "nextTurn";
|
|
432
436
|
}): Promise<void>;
|
|
437
|
+
private _appendCustomMessage;
|
|
438
|
+
/**
|
|
439
|
+
* Append custom messages queued while the agent was running.
|
|
440
|
+
* Called once the current turn's tool results are in agent state and session history.
|
|
441
|
+
*/
|
|
442
|
+
private _flushPendingCustomMessages;
|
|
433
443
|
/**
|
|
434
444
|
* Send a user message to the agent. Always triggers a turn.
|
|
435
445
|
* When the agent is streaming, use deliverAs to specify how to queue the message.
|
|
@@ -471,6 +481,7 @@ export declare class AgentSession {
|
|
|
471
481
|
* @throws Error if no auth is configured for the model
|
|
472
482
|
*/
|
|
473
483
|
setModel(model: Model<any>, options?: ModelMutationOptions): Promise<void>;
|
|
484
|
+
private _addPersistedDefaultToNonEmptyScope;
|
|
474
485
|
/**
|
|
475
486
|
* Cycle to next/previous model.
|
|
476
487
|
* Uses scoped models (from --models flag) if available, otherwise all available models.
|