@kenkaiiii/ggcoder 5.33.0 → 5.34.0
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/dist/modes/acp-mode.d.ts
CHANGED
|
@@ -57,6 +57,19 @@ export interface AcpAgentSession {
|
|
|
57
57
|
}[];
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* The plan-mode callbacks the agent loop calls when the model uses the
|
|
62
|
+
* `enter_plan` / `exit_plan` tools.
|
|
63
|
+
*
|
|
64
|
+
* Handed to the session factory rather than built inside it so a test double
|
|
65
|
+
* can drive plan mode without a model: approving a plan is what turns it into
|
|
66
|
+
* the client's to-do list, and that path is otherwise unreachable.
|
|
67
|
+
*/
|
|
68
|
+
export interface AcpPlanHooks {
|
|
69
|
+
onEnterPlan: () => Promise<void>;
|
|
70
|
+
/** Returns the instruction handed back to the model after approval. */
|
|
71
|
+
onExitPlan: (planPath: string) => Promise<string>;
|
|
72
|
+
}
|
|
60
73
|
export interface AcpModeOptions {
|
|
61
74
|
provider: Provider;
|
|
62
75
|
model: string;
|
|
@@ -72,7 +85,7 @@ export interface AcpModeOptions {
|
|
|
72
85
|
* Builds the session for `session/new`. Overridden by tests; production
|
|
73
86
|
* always gets a real {@link AgentSession}.
|
|
74
87
|
*/
|
|
75
|
-
createSession?: (signal: AbortSignal) => AcpAgentSession;
|
|
88
|
+
createSession?: (signal: AbortSignal, hooks: AcpPlanHooks) => AcpAgentSession;
|
|
76
89
|
}
|
|
77
90
|
/** The selectors this agent exposes. Ids are part of the wire contract. */
|
|
78
91
|
export declare const MODEL_CONFIG_ID = "model";
|
|
@@ -87,6 +100,10 @@ export declare const MODE_CONFIG_ID = "mode";
|
|
|
87
100
|
* rendering path. Thinking is deliberately NOT replayed — it is transient by
|
|
88
101
|
* design, and a wall of stale reasoning above a resumed conversation buries the
|
|
89
102
|
* thing the user came back for.
|
|
103
|
+
*
|
|
104
|
+
* Each replayed chunk carries a `messageId` so a client can group chunks into
|
|
105
|
+
* the messages they came from; ids are per-replay and positional, which is all
|
|
106
|
+
* the protocol needs of them.
|
|
90
107
|
*/
|
|
91
108
|
export declare function historyUpdates(messages: readonly Message[]): Record<string, unknown>[];
|
|
92
109
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acp-mode.d.ts","sourceRoot":"","sources":["../../src/modes/acp-mode.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"acp-mode.d.ts","sourceRoot":"","sources":["../../src/modes/acp-mode.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAIzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AA0BrD,oFAAoF;AACpF,eAAO,MAAM,oBAAoB,IAAI,CAAC;AA8BtC;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IACxC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,QAAQ,IAAI;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,QAAQ,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACrE;;;;OAIG;IACH,eAAe,CAAC,IAAI;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACrE,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzB,4EAA4E;IAC5E,SAAS,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IACrC,yDAAyD;IACzD,WAAW,CAAC,WAA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