@yitom/agy-acp-map 0.1.8 → 0.1.11
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/agent-sdk.d.ts +2 -0
- package/dist/agy-acp-win-x64.exe +2 -2
- package/dist/agy-headless.exe +0 -0
- package/dist/bin.js +23 -2
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/agent-sdk.d.ts
CHANGED
|
@@ -41,6 +41,8 @@ export declare class AgyAcpService {
|
|
|
41
41
|
closeSession(params: any): Promise<any>;
|
|
42
42
|
deleteSession(params: any): Promise<any>;
|
|
43
43
|
cancelSession(params: any): void;
|
|
44
|
+
/** Kill every live agy child (bridge shutdown path; see sdk-server.ts). */
|
|
45
|
+
shutdown(): Promise<void>;
|
|
44
46
|
promptSession(params: any, notifyClient: (update: any) => Promise<void> | void, opts?: {
|
|
45
47
|
isPreLocked?: boolean;
|
|
46
48
|
}): Promise<{
|
package/dist/agy-acp-win-x64.exe
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/dist/agy-acp-win-x64.exe
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 86639616 bytes
|
|
4
|
+
sha256: 9907e60cb909d51bedd9d2632b7c0fc00f05d9a5ec040098c09941c75960b737
|
package/dist/agy-headless.exe
CHANGED
|
Binary file
|
package/dist/bin.js
CHANGED
|
@@ -12499,7 +12499,7 @@ class SessionHistoryStore {
|
|
|
12499
12499
|
var AGENT_INFO = {
|
|
12500
12500
|
name: "agy-acp",
|
|
12501
12501
|
title: "agy ACP (stream-json)",
|
|
12502
|
-
version: "0.1.
|
|
12502
|
+
version: "0.1.11"
|
|
12503
12503
|
};
|
|
12504
12504
|
var BRIDGE_CAPABILITIES = {
|
|
12505
12505
|
prompt: true,
|
|
@@ -17805,6 +17805,9 @@ class AgyAcpService {
|
|
|
17805
17805
|
cancelSession(params) {
|
|
17806
17806
|
this.core.cancelSession(params);
|
|
17807
17807
|
}
|
|
17808
|
+
async shutdown() {
|
|
17809
|
+
await this.core.shutdown();
|
|
17810
|
+
}
|
|
17808
17811
|
promptSession(params, notifyClient, opts) {
|
|
17809
17812
|
const targetSession = this.core.sessions.get(params?.sessionId);
|
|
17810
17813
|
const version = params?.protocolVersion === 2 || params?.protocolVersion !== 1 && targetSession?.protocolVersion === 2 ? 2 : 1;
|
|
@@ -17874,5 +17877,23 @@ var app = createDualAcpApp(service);
|
|
|
17874
17877
|
var stream = ndJsonStream2(Writable.toWeb(process.stdout), Readable.toWeb(process.stdin));
|
|
17875
17878
|
process.stderr.write(`[agy-acp-sdk] Starting official @agentclientprotocol/sdk stdio server...
|
|
17876
17879
|
`);
|
|
17880
|
+
var shuttingDown = false;
|
|
17881
|
+
async function shutdown(code) {
|
|
17882
|
+
if (shuttingDown)
|
|
17883
|
+
process.exit(code);
|
|
17884
|
+
shuttingDown = true;
|
|
17885
|
+
debugLog2(`shutdown code=${code}: killing supervised agy children`);
|
|
17886
|
+
try {
|
|
17887
|
+
await service.shutdown();
|
|
17888
|
+
} catch (err) {
|
|
17889
|
+
debugLog2(`shutdown kill error: ${err?.message}`);
|
|
17890
|
+
}
|
|
17891
|
+
debugLog2("shutdown complete");
|
|
17892
|
+
process.exit(code);
|
|
17893
|
+
}
|
|
17894
|
+
process.on("SIGINT", () => void shutdown(0));
|
|
17895
|
+
process.on("SIGTERM", () => void shutdown(0));
|
|
17896
|
+
process.stdin.on("end", () => void shutdown(0));
|
|
17897
|
+
process.stdin.on("close", () => void shutdown(0));
|
|
17877
17898
|
await app.connect(stream);
|
|
17878
|
-
debugLog2("CONNECT-SETUP-DONE (
|
|
17899
|
+
debugLog2("CONNECT-SETUP-DONE (serving; exit only via stdin close or signal)");
|
package/dist/index.js
CHANGED
|
@@ -12286,7 +12286,7 @@ class SessionHistoryStore {
|
|
|
12286
12286
|
var AGENT_INFO = {
|
|
12287
12287
|
name: "agy-acp",
|
|
12288
12288
|
title: "agy ACP (stream-json)",
|
|
12289
|
-
version: "0.1.
|
|
12289
|
+
version: "0.1.11"
|
|
12290
12290
|
};
|
|
12291
12291
|
var BRIDGE_CAPABILITIES = {
|
|
12292
12292
|
prompt: true,
|
|
@@ -17605,6 +17605,9 @@ class AgyAcpService {
|
|
|
17605
17605
|
cancelSession(params) {
|
|
17606
17606
|
this.core.cancelSession(params);
|
|
17607
17607
|
}
|
|
17608
|
+
async shutdown() {
|
|
17609
|
+
await this.core.shutdown();
|
|
17610
|
+
}
|
|
17608
17611
|
promptSession(params, notifyClient, opts) {
|
|
17609
17612
|
const targetSession = this.core.sessions.get(params?.sessionId);
|
|
17610
17613
|
const version = params?.protocolVersion === 2 || params?.protocolVersion !== 1 && targetSession?.protocolVersion === 2 ? 2 : 1;
|