@agentproto/driver-agent-cli 2.6.4 → 2.7.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/dist/{chunk-D4NQQ2C7.mjs → chunk-Y3FGLQ4R.mjs} +19 -2
- package/dist/chunk-Y3FGLQ4R.mjs.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/manifest/index.d.ts +2 -2
- package/dist/manifest/index.mjs +2 -2
- package/dist/{schema-lciWmbTG.d.ts → schema-CKrBhnuF.d.ts} +51 -0
- package/package.json +2 -2
- package/dist/chunk-D4NQQ2C7.mjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AgentCliHandle, a as AgentCliRuntime, b as AgentCliDefinition, c as AgentCliRuntimeSession, d as AgentCliClient, S as SetModelResult, e as AgentCliPrintConfig, R as RuntimeConfig, C as ContinuationStrategyId, f as AgentCliStartOptions, T as TurnContext, g as ContinuationKeyScope } from './schema-
|
|
2
|
-
export { h as AgentCliAuth, i as AgentCliCapabilities, j as AgentCliConnectOptions, k as AgentCliContinuation, l as AgentCliFrontmatter, m as AgentCliFsZones, n as AgentCliInstallMethod, o as AgentCliMcpBlock, p as AgentCliMode, q as AgentCliModelEntry, r as AgentCliModels, s as AgentCliOption, t as AgentCliOptionType, u as AgentCliPinnedSessionTuning, v as AgentCliPresetDeclaration, w as AgentCliProtocol, x as AgentCliRouteSelection, y as AgentCliSession, z as AgentCliSessionMode, B as AgentCliSetupPersist, D as AgentCliSetupSkipIf, E as AgentCliSetupStep, F as AgentCliVersionCheck, G as RuntimeConfigInput, H as SetEffortResult, I as SetSessionModeResult, J as SteerOutcome, K as agentCliFrontmatterSchema, L as runtimeConfigSchema } from './schema-
|
|
1
|
+
import { A as AgentCliHandle, a as AgentCliRuntime, b as AgentCliDefinition, c as AgentCliRuntimeSession, d as AgentCliClient, S as SetModelResult, e as AgentCliPrintConfig, R as RuntimeConfig, C as ContinuationStrategyId, f as AgentCliStartOptions, T as TurnContext, g as ContinuationKeyScope } from './schema-CKrBhnuF.js';
|
|
2
|
+
export { h as AgentCliAuth, i as AgentCliCapabilities, j as AgentCliConnectOptions, k as AgentCliContinuation, l as AgentCliFrontmatter, m as AgentCliFsZones, n as AgentCliInstallMethod, o as AgentCliMcpBlock, p as AgentCliMode, q as AgentCliModelEntry, r as AgentCliModels, s as AgentCliOption, t as AgentCliOptionType, u as AgentCliPinnedSessionTuning, v as AgentCliPresetDeclaration, w as AgentCliProtocol, x as AgentCliRouteSelection, y as AgentCliSession, z as AgentCliSessionMode, B as AgentCliSetupPersist, D as AgentCliSetupSkipIf, E as AgentCliSetupStep, F as AgentCliVersionCheck, G as RuntimeConfigInput, H as SetEffortResult, I as SetSessionModeResult, J as SteerOutcome, K as agentCliFrontmatterSchema, L as runtimeConfigSchema } from './schema-CKrBhnuF.js';
|
|
3
3
|
import { StreamEvent, AcpMcpServer } from '@agentproto/acp';
|
|
4
4
|
export { StreamEvent } from '@agentproto/acp';
|
|
5
5
|
import { ChildProcess } from 'node:child_process';
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { LEGACY_GATEWAY_MODE_IDS, LEGACY_POSTURE_MODE_IDS, RuntimeConfigError, agentCliFrontmatterSchema, agentCliSupportsHostContextIsolation, applyModelCommand, autoAllowPermissionHandler, composeSpawn, createAcpProtocolArm, createAgentCliRuntime, createArmSessionControls, createJcodeMapperState, createMastraMapperState, createPrintSession, createProprietaryProtocolArm, defineAgentCli, hostContextExcludes, inferLegacyModeKind, isLegacyExtractedModeId, isModelSwitchAcknowledgement, mapJcodeEvent, mapMastraEvent, parseModelSwitchCommand, planModePermissionHandler, promptTurn, resolveContinuationStrategy, runtimeConfigSchema, toFileBasedMcpServers } from './chunk-
|
|
1
|
+
export { LEGACY_GATEWAY_MODE_IDS, LEGACY_POSTURE_MODE_IDS, RuntimeConfigError, agentCliFrontmatterSchema, agentCliSupportsHostContextIsolation, applyModelCommand, autoAllowPermissionHandler, composeSpawn, createAcpProtocolArm, createAgentCliRuntime, createArmSessionControls, createJcodeMapperState, createMastraMapperState, createPrintSession, createProprietaryProtocolArm, defineAgentCli, hostContextExcludes, inferLegacyModeKind, isLegacyExtractedModeId, isModelSwitchAcknowledgement, mapJcodeEvent, mapMastraEvent, parseModelSwitchCommand, planModePermissionHandler, promptTurn, resolveContinuationStrategy, runtimeConfigSchema, toFileBasedMcpServers } from './chunk-Y3FGLQ4R.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @agentproto/driver-agent-cli v0.1.0-alpha
|
package/dist/manifest/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as AgentCliFrontmatter, A as AgentCliHandle } from '../schema-
|
|
2
|
-
export { K as agentCliFrontmatterSchema } from '../schema-
|
|
1
|
+
import { l as AgentCliFrontmatter, A as AgentCliHandle } from '../schema-CKrBhnuF.js';
|
|
2
|
+
export { K as agentCliFrontmatterSchema } from '../schema-CKrBhnuF.js';
|
|
3
3
|
import '@agentproto/acp';
|
|
4
4
|
import '@agentproto/acp/client';
|
|
5
5
|
import '@agentproto/command-sandbox';
|
package/dist/manifest/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { agentCliFrontmatterSchema, defineAgentCli } from '../chunk-
|
|
2
|
-
export { agentCliFrontmatterSchema } from '../chunk-
|
|
1
|
+
import { agentCliFrontmatterSchema, defineAgentCli } from '../chunk-Y3FGLQ4R.mjs';
|
|
2
|
+
export { agentCliFrontmatterSchema } from '../chunk-Y3FGLQ4R.mjs';
|
|
3
3
|
import matter from 'gray-matter';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1040,6 +1040,29 @@ interface AgentCliClient {
|
|
|
1040
1040
|
* session concept (proprietary one-shots).
|
|
1041
1041
|
*/
|
|
1042
1042
|
readonly sessionId?: string;
|
|
1043
|
+
/**
|
|
1044
|
+
* Whether this arm's transport to the agent is still usable — a FRESH
|
|
1045
|
+
* read, never a cached flag (the ACP arm asks the SDK connection's own
|
|
1046
|
+
* abort signal). `true` before `connect()` resolves: nothing has died
|
|
1047
|
+
* yet, so "not connected" would be a lie.
|
|
1048
|
+
*
|
|
1049
|
+
* Only the ACP arm implements this; arms with no long-lived connection
|
|
1050
|
+
* (print — a fresh subprocess per turn; proprietary in-process) omit it,
|
|
1051
|
+
* and every caller treats absence as "no transport to lose."
|
|
1052
|
+
*/
|
|
1053
|
+
isConnected?(): boolean;
|
|
1054
|
+
/**
|
|
1055
|
+
* Subscribe to transport death — the push half of the liveness surface
|
|
1056
|
+
* whose pull half is {@link isConnected}. Fires at most once, and fires
|
|
1057
|
+
* synchronously if the transport is ALREADY gone when you subscribe, so a
|
|
1058
|
+
* host that only gets the handle after `connect()` can never miss it.
|
|
1059
|
+
*
|
|
1060
|
+
* Only the ACP arm implements this; arms with no long-lived connection
|
|
1061
|
+
* omit it (there is no transport to lose). Also fires on an orderly
|
|
1062
|
+
* `close()` — the "was this death expected?" judgement belongs to the
|
|
1063
|
+
* host, which knows whether it asked for the teardown.
|
|
1064
|
+
*/
|
|
1065
|
+
onDisconnect?(listener: (err: Error) => void): void;
|
|
1043
1066
|
/**
|
|
1044
1067
|
* Diagnostic hook — returns the last N lines of the child's stderr,
|
|
1045
1068
|
* joined with newlines. Set by the runner after spawn; read by
|
|
@@ -1320,6 +1343,34 @@ interface AgentCliRuntimeSession {
|
|
|
1320
1343
|
* WebSocket transport).
|
|
1321
1344
|
*/
|
|
1322
1345
|
readonly pid?: number;
|
|
1346
|
+
/**
|
|
1347
|
+
* Whether the adapter's transport is still usable, read FRESH at call
|
|
1348
|
+
* time. The pull half of the transport-liveness surface (the push half is
|
|
1349
|
+
* {@link AgentCliStartOptions.onDisconnect}) and the answer to a question
|
|
1350
|
+
* `pid` cannot: the wrapper process can be alive and reported by
|
|
1351
|
+
* `process.kill(pid, 0)` while its stdio JSON-RPC stream is closed, at
|
|
1352
|
+
* which point every RPC rejects with "ACP connection closed" and the
|
|
1353
|
+
* session is dead in every way that matters.
|
|
1354
|
+
*
|
|
1355
|
+
* `true` before anything has died, and for arms that hold no long-lived
|
|
1356
|
+
* connection at all (the print arm re-spawns per turn — there is no
|
|
1357
|
+
* transport to lose between turns). A host must therefore treat only an
|
|
1358
|
+
* explicit `false` as evidence of death, never the absence of `true`.
|
|
1359
|
+
*/
|
|
1360
|
+
isConnected?(): boolean;
|
|
1361
|
+
/**
|
|
1362
|
+
* Subscribe to transport death — the push half of the surface whose pull
|
|
1363
|
+
* half is {@link isConnected}. Fires at most once, and SYNCHRONOUSLY if
|
|
1364
|
+
* the transport already died before you subscribed, so a host that wires
|
|
1365
|
+
* this up after `start()` resolves cannot miss a connection that failed in
|
|
1366
|
+
* between.
|
|
1367
|
+
*
|
|
1368
|
+
* Fires for an orderly `close()` too: only the host knows whether it asked
|
|
1369
|
+
* for the teardown, so the "was this expected?" judgement stays there (the
|
|
1370
|
+
* daemon makes it by refusing to crash-mark a row that isn't `running`).
|
|
1371
|
+
* Absent for arms with no long-lived connection.
|
|
1372
|
+
*/
|
|
1373
|
+
onDisconnect?(listener: (err: Error) => void): void;
|
|
1323
1374
|
send(message: unknown): AsyncIterable<StreamEvent>;
|
|
1324
1375
|
cancel(): Promise<void>;
|
|
1325
1376
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentproto/driver-agent-cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.1",
|
|
4
4
|
"description": "@agentproto/driver-agent-cli — AIP-45 AGENT-CLI.md reference implementation. Multi-protocol runner that loads an AGENT-CLI.md manifest, spawns the binary, and dispatches turns through an ACP / MCP / proprietary arm. ACP arm delegates to @agentproto/acp; emits the canonical StreamEvent taxonomy regardless of underlying protocol.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentproto",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"gray-matter": "^4.0.3",
|
|
55
55
|
"zod": "^4.6.5",
|
|
56
|
-
"@agentproto/acp": "0.
|
|
56
|
+
"@agentproto/acp": "0.10.0",
|
|
57
57
|
"@agentproto/command-sandbox": "0.3.0",
|
|
58
58
|
"@agentproto/define-doctype": "0.1.3"
|
|
59
59
|
},
|