@agentproto/driver-agent-cli 2.4.0 → 2.4.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/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-BYbdjuKI.js';
2
- export { h as AgentCliAuth, i as AgentCliCapabilities, j as AgentCliConnectOptions, k as AgentCliContinuation, l as AgentCliFrontmatter, m as AgentCliInstallMethod, n as AgentCliMcpBlock, o as AgentCliMode, p as AgentCliModelEntry, q as AgentCliModels, r as AgentCliOption, s as AgentCliOptionType, t as AgentCliPinnedSessionTuning, u as AgentCliPresetDeclaration, v as AgentCliProtocol, w as AgentCliRouteSelection, x as AgentCliSession, y as AgentCliSessionMode, z as AgentCliSetupPersist, B as AgentCliSetupSkipIf, D as AgentCliSetupStep, E as AgentCliVersionCheck, F as RuntimeConfigInput, G as SetEffortResult, H as SetSessionModeResult, I as agentCliFrontmatterSchema, J as runtimeConfigSchema } from './schema-BYbdjuKI.js';
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-BKnQX5Sj.js';
2
+ export { h as AgentCliAuth, i as AgentCliCapabilities, j as AgentCliConnectOptions, k as AgentCliContinuation, l as AgentCliFrontmatter, m as AgentCliInstallMethod, n as AgentCliMcpBlock, o as AgentCliMode, p as AgentCliModelEntry, q as AgentCliModels, r as AgentCliOption, s as AgentCliOptionType, t as AgentCliPinnedSessionTuning, u as AgentCliPresetDeclaration, v as AgentCliProtocol, w as AgentCliRouteSelection, x as AgentCliSession, y as AgentCliSessionMode, z as AgentCliSetupPersist, B as AgentCliSetupSkipIf, D as AgentCliSetupStep, E as AgentCliVersionCheck, F as RuntimeConfigInput, G as SetEffortResult, H as SetSessionModeResult, I as agentCliFrontmatterSchema, J as runtimeConfigSchema } from './schema-BKnQX5Sj.js';
3
3
  import { StreamEvent, AcpMcpServer } from '@agentproto/acp';
4
4
  export { StreamEvent } from '@agentproto/acp';
5
5
  import { ChildProcess } from 'node:child_process';
@@ -334,6 +334,10 @@ interface PrintArmOptions {
334
334
  /** Extra write-capable paths beyond the default toolchain set, e.g. the
335
335
  * per-session `CLAUDE_CONFIG_DIR` temp dir set up by the caller. */
336
336
  extraWritePaths?: string[];
337
+ /** Extra READ-only paths beyond the confinement boundary — the exact-file
338
+ * AGENTS.md grant (`AgentCliStartOptions.additionalReadPaths`). READ
339
+ * exceptions only; never widens writes. */
340
+ extraReadPaths?: string[];
337
341
  /**
338
342
  * The explicitly requested model id — when set, a wire event that
339
343
  * truthfully reports which model the agent ACTUALLY started on (today:
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { LEGACY_GATEWAY_MODE_IDS, LEGACY_POSTURE_MODE_IDS, RuntimeConfigError, agentCliFrontmatterSchema, applyModelCommand, autoAllowPermissionHandler, composeSpawn, createAcpProtocolArm, createAgentCliRuntime, createArmSessionControls, createJcodeMapperState, createMastraMapperState, createPrintSession, createProprietaryProtocolArm, defineAgentCli, inferLegacyModeKind, isLegacyExtractedModeId, isModelSwitchAcknowledgement, mapJcodeEvent, mapMastraEvent, parseModelSwitchCommand, planModePermissionHandler, promptTurn, resolveContinuationStrategy, runtimeConfigSchema, toFileBasedMcpServers } from './chunk-DBU5VORQ.mjs';
1
+ export { LEGACY_GATEWAY_MODE_IDS, LEGACY_POSTURE_MODE_IDS, RuntimeConfigError, agentCliFrontmatterSchema, applyModelCommand, autoAllowPermissionHandler, composeSpawn, createAcpProtocolArm, createAgentCliRuntime, createArmSessionControls, createJcodeMapperState, createMastraMapperState, createPrintSession, createProprietaryProtocolArm, defineAgentCli, inferLegacyModeKind, isLegacyExtractedModeId, isModelSwitchAcknowledgement, mapJcodeEvent, mapMastraEvent, parseModelSwitchCommand, planModePermissionHandler, promptTurn, resolveContinuationStrategy, runtimeConfigSchema, toFileBasedMcpServers } from './chunk-E4MSI6PV.mjs';
2
2
 
3
3
  /**
4
4
  * @agentproto/driver-agent-cli v0.1.0-alpha
@@ -1,5 +1,5 @@
1
- import { l as AgentCliFrontmatter, A as AgentCliHandle } from '../schema-BYbdjuKI.js';
2
- export { I as agentCliFrontmatterSchema } from '../schema-BYbdjuKI.js';
1
+ import { l as AgentCliFrontmatter, A as AgentCliHandle } from '../schema-BKnQX5Sj.js';
2
+ export { I as agentCliFrontmatterSchema } from '../schema-BKnQX5Sj.js';
3
3
  import '@agentproto/acp';
4
4
  import '@agentproto/acp/client';
5
5
  import '@agentproto/command-sandbox';
@@ -1,5 +1,5 @@
1
- import { agentCliFrontmatterSchema, defineAgentCli } from '../chunk-DBU5VORQ.mjs';
2
- export { agentCliFrontmatterSchema } from '../chunk-DBU5VORQ.mjs';
1
+ import { agentCliFrontmatterSchema, defineAgentCli } from '../chunk-E4MSI6PV.mjs';
2
+ export { agentCliFrontmatterSchema } from '../chunk-E4MSI6PV.mjs';
3
3
  import matter from 'gray-matter';
4
4
 
5
5
  /**
@@ -1145,6 +1145,17 @@ interface AgentCliStartOptions {
1145
1145
  * both `posture` and legacy `config.mode` — each axis is independent.
1146
1146
  */
1147
1147
  contextProfile?: string;
1148
+ /**
1149
+ * Absolute paths OUTSIDE `cwd` the adapter's workspace toolset may READ
1150
+ * (never write). Daemon-authored only (`spawnAgentSession` hands it down
1151
+ * for the exact AGENTS.md an inherited pointer prompt names). Threaded two
1152
+ * ways: onto the child env (`AGENTPROTO_ADDITIONAL_READ_PATHS`, for
1153
+ * adapters that build their own toolset from it) and onto the
1154
+ * `commandSandbox` confinement as extra READ paths — writes and sibling
1155
+ * reads stay denied either way. Adapters that can't model the grant
1156
+ * ignore it.
1157
+ */
1158
+ additionalReadPaths?: string[];
1148
1159
  /**
1149
1160
  * OS-level confinement for the spawned child itself (macOS Seatbelt /
1150
1161
  * Linux bubblewrap, `@agentproto/command-sandbox`) — confines the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentproto/driver-agent-cli",
3
- "version": "2.4.0",
3
+ "version": "2.4.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,8 +53,8 @@
53
53
  "dependencies": {
54
54
  "gray-matter": "^4.0.3",
55
55
  "zod": "^4.5.4",
56
+ "@agentproto/acp": "0.8.0",
56
57
  "@agentproto/command-sandbox": "0.2.0",
57
- "@agentproto/acp": "0.7.3",
58
58
  "@agentproto/define-doctype": "0.1.1"
59
59
  },
60
60
  "devDependencies": {
@@ -62,7 +62,7 @@
62
62
  "tsup": "^8.5.1",
63
63
  "typescript": "^5.9.3",
64
64
  "vitest": "^3.2.4",
65
- "@agentproto/tooling": "0.1.0-alpha.0"
65
+ "@agentproto/tooling": "0.1.0"
66
66
  },
67
67
  "scripts": {
68
68
  "dev": "tsup --watch",