@tangle-network/cli-agent-registry 0.15.202 → 0.15.203

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.
@@ -1,4 +1,4 @@
1
- import { l as getSpec } from "./specs-5otqed0h.mjs";
1
+ import { l as getSpec } from "./specs-ZD4Hi9ri.mjs";
2
2
  import { ProxySecretReceiptSchema } from "@tangle-network/agent-interface";
3
3
  import { z } from "zod";
4
4
  //#region ../runtime-contracts/dist/public-profile-request.js
@@ -91,4 +91,4 @@ function resolveCliAuthReference(backendType, model, environment) {
91
91
  //#endregion
92
92
  export { cliAuthFilesSchema as a, materializeCliAuthBundle as c, resolveCliAuthReference as d, cliAuthReferenceSchema as f, canonicalNativeCredentialReplySchema as i, nativeCredentialSelectionSchema as l, CLI_AUTH_REFERENCE_ENV_VAR as n, cliAuthObjectSchema as o, assertCliAuthReferenceSupported as r, legacyNativeCredentialReplySchema as s, AUTH_BUNDLE_PATHS as t, parseCliAuthJson as u };
93
93
 
94
- //# sourceMappingURL=cli-auth-bundle-CXI4ysvr.mjs.map
94
+ //# sourceMappingURL=cli-auth-bundle-s-0ukMAD.mjs.map
@@ -1,2 +1,2 @@
1
- import { a as cliAuthFilesSchema, c as materializeCliAuthBundle, d as resolveCliAuthReference, f as cliAuthReferenceSchema, i as canonicalNativeCredentialReplySchema, l as nativeCredentialSelectionSchema, n as CLI_AUTH_REFERENCE_ENV_VAR, o as cliAuthObjectSchema, r as assertCliAuthReferenceSupported, s as legacyNativeCredentialReplySchema, t as AUTH_BUNDLE_PATHS, u as parseCliAuthJson } from "./cli-auth-bundle-CXI4ysvr.mjs";
1
+ import { a as cliAuthFilesSchema, c as materializeCliAuthBundle, d as resolveCliAuthReference, f as cliAuthReferenceSchema, i as canonicalNativeCredentialReplySchema, l as nativeCredentialSelectionSchema, n as CLI_AUTH_REFERENCE_ENV_VAR, o as cliAuthObjectSchema, r as assertCliAuthReferenceSupported, s as legacyNativeCredentialReplySchema, t as AUTH_BUNDLE_PATHS, u as parseCliAuthJson } from "./cli-auth-bundle-s-0ukMAD.mjs";
2
2
  export { AUTH_BUNDLE_PATHS, CLI_AUTH_REFERENCE_ENV_VAR, assertCliAuthReferenceSupported, canonicalNativeCredentialReplySchema, cliAuthFilesSchema, cliAuthObjectSchema, cliAuthReferenceSchema, legacyNativeCredentialReplySchema, materializeCliAuthBundle, nativeCredentialSelectionSchema, parseCliAuthJson, resolveCliAuthReference };
@@ -1,4 +1,4 @@
1
- import { a as cliAuthFilesSchema, c as materializeCliAuthBundle, d as resolveCliAuthReference, f as cliAuthReferenceSchema, o as cliAuthObjectSchema, r as assertCliAuthReferenceSupported, t as AUTH_BUNDLE_PATHS, u as parseCliAuthJson } from "./cli-auth-bundle-CXI4ysvr.mjs";
1
+ import { a as cliAuthFilesSchema, c as materializeCliAuthBundle, d as resolveCliAuthReference, f as cliAuthReferenceSchema, o as cliAuthObjectSchema, r as assertCliAuthReferenceSupported, t as AUTH_BUNDLE_PATHS, u as parseCliAuthJson } from "./cli-auth-bundle-s-0ukMAD.mjs";
2
2
  import { r as proxySecretMaterializationsSchema } from "./harness-Dud3xr-R.mjs";
3
3
  import { z } from "zod";
4
4
  import { decodeJwt } from "jose";
@@ -1,5 +1,5 @@
1
- import { l as getSpec } from "./specs-5otqed0h.mjs";
2
- import { a as cliAuthFilesSchema, d as resolveCliAuthReference, f as cliAuthReferenceSchema, n as CLI_AUTH_REFERENCE_ENV_VAR, u as parseCliAuthJson } from "./cli-auth-bundle-CXI4ysvr.mjs";
1
+ import { l as getSpec } from "./specs-ZD4Hi9ri.mjs";
2
+ import { a as cliAuthFilesSchema, d as resolveCliAuthReference, f as cliAuthReferenceSchema, n as CLI_AUTH_REFERENCE_ENV_VAR, u as parseCliAuthJson } from "./cli-auth-bundle-s-0ukMAD.mjs";
3
3
  import { n as isSafeEnvVarName, t as isForbiddenEnvVarName } from "./harness-Dud3xr-R.mjs";
4
4
  import { z } from "zod";
5
5
  //#region src/cli-backend-auth-env.ts
@@ -1,5 +1,5 @@
1
1
  import { a as isBackendType, t as ALL_BACKEND_TYPES } from "./backend-types-DOAfrnMJ.mjs";
2
- import "./specs-5otqed0h.mjs";
2
+ import "./specs-ZD4Hi9ri.mjs";
3
3
  //#region src/default-backend.ts
4
4
  /**
5
5
  * Platform-wide default agent backend, read from `DEFAULT_AGENT_BACKEND`.
@@ -1,4 +1,4 @@
1
- import { o as CliAgentEnvVars } from "./spec-DCaKyeGZ.mjs";
1
+ import { o as CliAgentEnvVars } from "./spec-WH-SO7Xe.mjs";
2
2
  import { o as NativeSessionStore } from "./session-contract-BC_A6XpD.mjs";
3
3
 
4
4
  //#region src/host-contracts.d.ts
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { a as backendTypeSchema, i as INTERACTIVE_SEEDED_PROMPT_BACKENDS, n as BACKEND_TYPE, o as isBackendType, r as BackendType, s as parseBackendType, t as ALL_BACKEND_TYPES } from "./backend-types-B6HdTo23.mjs";
2
2
  import { LocalCliAuthFile, materializeCliAuthBundle } from "./cli-auth-bundle.mjs";
3
- import { C as mergeCliDirLayout, S as DEFAULT_CLI_DIR_LAYOUT, _ as harnessModelSupportFor, a as CliAgentEnvExtraRole, b as CliDirLayout, c as CliAgentRuntimeSpec, d as HarnessSpecCapabilities, f as ProviderLogger, g as cliAgentEnvRoleName, h as cliAgentClaimEnvVarNames, i as CliAgentEnvExtraParser, l as CliAgentSpec, m as canonicalModelSlug, n as CliAgentBuiltinTool, o as CliAgentEnvVars, p as ProviderPhase, r as CliAgentEnvExtra, s as CliAgentModelWire, t as AdapterFactory, u as CliAuthHome, v as harnessModelWire, x as CliDirLayoutAdditions, y as SYNTHETIC_ROUTER_MODEL } from "./spec-DCaKyeGZ.mjs";
3
+ import { C as CliDirLayoutAdditions, S as CliDirLayout, T as mergeCliDirLayout, _ as cliAgentEnvRoleName, a as CliAgentEnvExtraRole, b as shellToolArguments, c as CliAgentRuntimeSpec, d as CliAuthHome, f as HarnessSpecCapabilities, g as cliAgentClaimEnvVarNames, h as canonicalModelSlug, i as CliAgentEnvExtraParser, l as CliAgentShellTool, m as ProviderPhase, n as CliAgentBuiltinTool, o as CliAgentEnvVars, p as ProviderLogger, r as CliAgentEnvExtra, s as CliAgentModelWire, t as AdapterFactory, u as CliAgentSpec, v as harnessModelSupportFor, w as DEFAULT_CLI_DIR_LAYOUT, x as SYNTHETIC_ROUTER_MODEL, y as harnessModelWire } from "./spec-WH-SO7Xe.mjs";
4
4
  import { _ as substituteNativeSessionId, a as NativeSessionIdentity, c as SessionFormatId, d as assertStoreLocationHonoursSessionContract, f as compileSessionStoreGlob, g as sessionStoreForPath, h as sessionContractProblems, i as HarnessSessionEvidence, l as assertArgvHonoursSessionContract, m as normalizePosixPath, n as HarnessSessionContractError, o as NativeSessionStore, p as forbiddenArgViolations, r as HarnessSessionContractErrorCode, s as SESSION_FORMAT_IDS, t as HarnessSessionContract, u as assertFlagsHonourSessionContract } from "./session-contract-BC_A6XpD.mjs";
5
- import { a as agentProfileSchema, c as cliAgentHostPassthroughEnvVarNames, i as MANAGED_MODEL_KEY_NAME_ENV_VAR, l as getSpec, n as CLI_AGENT_SPECS, o as claimDeliverableEnvVarNames, r as MANAGED_MODEL_KEY_ENV_VAR, s as cliAgentEnvVarNamesByRole, t as AGENT_BACKEND_ENV_VAR, u as messageStorageDirOf } from "./specs-C5XEVeQN.mjs";
5
+ import { a as agentProfileSchema, c as cliAgentHostPassthroughEnvVarNames, i as MANAGED_MODEL_KEY_NAME_ENV_VAR, l as getSpec, n as CLI_AGENT_SPECS, o as claimDeliverableEnvVarNames, r as MANAGED_MODEL_KEY_ENV_VAR, s as cliAgentEnvVarNamesByRole, t as AGENT_BACKEND_ENV_VAR, u as messageStorageDirOf } from "./specs-Ce2yBnD_.mjs";
6
6
  import { resolveDefaultBackend } from "./default-backend.mjs";
7
7
  import { describeLocalCliAuthExpectation, discoverLocalCliAuthFiles } from "./local-cli-auth.mjs";
8
8
  import { HARNESS_SESSION_UNSUPPORTED, NATIVE_SESSION_CONTRACTS, configDirHomeEnv } from "./native-session-contracts.mjs";
@@ -1551,5 +1551,5 @@ declare const HARNESSES: {
1551
1551
  };
1552
1552
  };
1553
1553
  //#endregion
1554
- export { AGENT_BACKEND_ENV_VAR, ALL_BACKEND_TYPES, type AdapterFactory, type AdapterRegistry, type AgentRunBackend, BACKEND_TYPE, type BackendType, CLI_AGENT_SPECS, type CliAgentBuiltinTool, type CliAgentEnvExtra, type CliAgentEnvExtraParser, type CliAgentEnvExtraRole, type CliAgentEnvVars, type CliAgentModelWire, type CliAgentRuntimeSpec, type CliAgentSpec, type CliAuthHome, CliDirLayout, CliDirLayoutAdditions, DEFAULT_CLI_DIR_LAYOUT, HARNESSES, HARNESS_SESSION_UNSUPPORTED, type HarnessBackendId, type HarnessContract, HarnessSessionContract, HarnessSessionContractError, HarnessSessionContractErrorCode, HarnessSessionEvidence, type HarnessSpecCapabilities, INTERACTIVE_SEEDED_PROMPT_BACKENDS, type LocalCliAuthFile, MANAGED_MODEL_KEY_ENV_VAR, MANAGED_MODEL_KEY_NAME_ENV_VAR, MANAGED_MODEL_LADDER, type ManagedModelChain, type ManagedModelChainOptions, type ManagedModelRung, NATIVE_SESSION_CONTRACTS, NativeSessionIdentity, NativeSessionStore, type ProviderLogger, type ProviderPhase, SESSION_FORMAT_IDS, SYNTHETIC_ROUTER_MODEL, SessionFormatId, type SkippedManagedModel, agentProfileSchema, agentRunBackendVariants, agentRunRequestSharedShape, agentRunWorkspaceSchema, assertAdaptersWired, assertArgvHonoursSessionContract, assertFlagsHonourSessionContract, assertStoreLocationHonoursSessionContract, backendTypeSchema, bareModelId, canonicalModelSlug, claimDeliverableEnvVarNames, cliAgentClaimEnvVarNames, cliAgentEnvRoleName, cliAgentEnvVarNamesByRole, cliAgentHostPassthroughEnvVarNames, compileSessionStoreGlob, configDirHomeEnv, createAdapterRegistry, describeLocalCliAuthExpectation, discoverLocalCliAuthFiles, forbiddenArgViolations, getAdapterFactory, getSpec, harnessModelSupportFor, harnessModelWire, isBackendType, isServableManagedModel, listRegisteredAdapters, managedModelChain, materializeCliAuthBundle, mergeCliDirLayout, messageStorageDirOf, normalizePosixPath, parseBackendType, registerAdapterFactory, resolveDefaultBackend, sessionContractProblems, sessionStoreForPath, substituteNativeSessionId, unregisterAdapterFactory };
1554
+ export { AGENT_BACKEND_ENV_VAR, ALL_BACKEND_TYPES, type AdapterFactory, type AdapterRegistry, type AgentRunBackend, BACKEND_TYPE, type BackendType, CLI_AGENT_SPECS, type CliAgentBuiltinTool, type CliAgentEnvExtra, type CliAgentEnvExtraParser, type CliAgentEnvExtraRole, type CliAgentEnvVars, type CliAgentModelWire, type CliAgentRuntimeSpec, type CliAgentShellTool, type CliAgentSpec, type CliAuthHome, CliDirLayout, CliDirLayoutAdditions, DEFAULT_CLI_DIR_LAYOUT, HARNESSES, HARNESS_SESSION_UNSUPPORTED, type HarnessBackendId, type HarnessContract, HarnessSessionContract, HarnessSessionContractError, HarnessSessionContractErrorCode, HarnessSessionEvidence, type HarnessSpecCapabilities, INTERACTIVE_SEEDED_PROMPT_BACKENDS, type LocalCliAuthFile, MANAGED_MODEL_KEY_ENV_VAR, MANAGED_MODEL_KEY_NAME_ENV_VAR, MANAGED_MODEL_LADDER, type ManagedModelChain, type ManagedModelChainOptions, type ManagedModelRung, NATIVE_SESSION_CONTRACTS, NativeSessionIdentity, NativeSessionStore, type ProviderLogger, type ProviderPhase, SESSION_FORMAT_IDS, SYNTHETIC_ROUTER_MODEL, SessionFormatId, type SkippedManagedModel, agentProfileSchema, agentRunBackendVariants, agentRunRequestSharedShape, agentRunWorkspaceSchema, assertAdaptersWired, assertArgvHonoursSessionContract, assertFlagsHonourSessionContract, assertStoreLocationHonoursSessionContract, backendTypeSchema, bareModelId, canonicalModelSlug, claimDeliverableEnvVarNames, cliAgentClaimEnvVarNames, cliAgentEnvRoleName, cliAgentEnvVarNamesByRole, cliAgentHostPassthroughEnvVarNames, compileSessionStoreGlob, configDirHomeEnv, createAdapterRegistry, describeLocalCliAuthExpectation, discoverLocalCliAuthFiles, forbiddenArgViolations, getAdapterFactory, getSpec, harnessModelSupportFor, harnessModelWire, isBackendType, isServableManagedModel, listRegisteredAdapters, managedModelChain, materializeCliAuthBundle, mergeCliDirLayout, messageStorageDirOf, normalizePosixPath, parseBackendType, registerAdapterFactory, resolveDefaultBackend, sessionContractProblems, sessionStoreForPath, shellToolArguments, substituteNativeSessionId, unregisterAdapterFactory };
1555
1555
  //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -2,8 +2,8 @@ import { t as HARNESSES } from "./harness-contracts-ZLAiRqO5.mjs";
2
2
  import { HARNESS_SESSION_UNSUPPORTED, NATIVE_SESSION_CONTRACTS, configDirHomeEnv } from "./native-session-contracts.mjs";
3
3
  import { HarnessSessionContractError, SESSION_FORMAT_IDS, assertArgvHonoursSessionContract, assertFlagsHonourSessionContract, assertStoreLocationHonoursSessionContract, compileSessionStoreGlob, forbiddenArgViolations, normalizePosixPath, sessionContractProblems, sessionStoreForPath, substituteNativeSessionId } from "./session-contract.mjs";
4
4
  import { a as isBackendType, i as backendTypeSchema, n as BACKEND_TYPE, o as parseBackendType, r as INTERACTIVE_SEEDED_PROMPT_BACKENDS, t as ALL_BACKEND_TYPES } from "./backend-types-DOAfrnMJ.mjs";
5
- import { _ as harnessModelWire, a as agentProfileSchema, c as cliAgentHostPassthroughEnvVarNames, g as harnessModelSupportFor, h as cliAgentEnvRoleName, i as MANAGED_MODEL_KEY_NAME_ENV_VAR, l as getSpec, m as cliAgentClaimEnvVarNames, n as CLI_AGENT_SPECS, o as claimDeliverableEnvVarNames, p as canonicalModelSlug, r as MANAGED_MODEL_KEY_ENV_VAR, s as cliAgentEnvVarNamesByRole, t as AGENT_BACKEND_ENV_VAR, u as messageStorageDirOf, v as SYNTHETIC_ROUTER_MODEL } from "./specs-5otqed0h.mjs";
6
- import { c as materializeCliAuthBundle } from "./cli-auth-bundle-CXI4ysvr.mjs";
5
+ import { _ as harnessModelWire, a as agentProfileSchema, c as cliAgentHostPassthroughEnvVarNames, g as harnessModelSupportFor, h as cliAgentEnvRoleName, i as MANAGED_MODEL_KEY_NAME_ENV_VAR, l as getSpec, m as cliAgentClaimEnvVarNames, n as CLI_AGENT_SPECS, o as claimDeliverableEnvVarNames, p as canonicalModelSlug, r as MANAGED_MODEL_KEY_ENV_VAR, s as cliAgentEnvVarNamesByRole, t as AGENT_BACKEND_ENV_VAR, u as messageStorageDirOf, v as shellToolArguments, y as SYNTHETIC_ROUTER_MODEL } from "./specs-ZD4Hi9ri.mjs";
6
+ import { c as materializeCliAuthBundle } from "./cli-auth-bundle-s-0ukMAD.mjs";
7
7
  import { resolveDefaultBackend } from "./default-backend.mjs";
8
8
  import { describeLocalCliAuthExpectation, discoverLocalCliAuthFiles } from "./local-cli-auth.mjs";
9
9
  import { MANAGED_MODEL_LADDER, bareModelId, isServableManagedModel, managedModelChain } from "./servable-models.mjs";
@@ -146,6 +146,6 @@ function mergeCliDirLayout(additions) {
146
146
  return Object.fromEntries(Object.entries(DEFAULT_CLI_DIR_LAYOUT).map(([key, paths]) => [key, [...paths, ...additions?.[key] ?? []]]));
147
147
  }
148
148
  //#endregion
149
- export { AGENT_BACKEND_ENV_VAR, ALL_BACKEND_TYPES, BACKEND_TYPE, CLI_AGENT_SPECS, DEFAULT_CLI_DIR_LAYOUT, HARNESSES, HARNESS_SESSION_UNSUPPORTED, HarnessSessionContractError, INTERACTIVE_SEEDED_PROMPT_BACKENDS, MANAGED_MODEL_KEY_ENV_VAR, MANAGED_MODEL_KEY_NAME_ENV_VAR, MANAGED_MODEL_LADDER, NATIVE_SESSION_CONTRACTS, SESSION_FORMAT_IDS, SYNTHETIC_ROUTER_MODEL, agentProfileSchema, agentRunBackendVariants, agentRunRequestSharedShape, agentRunWorkspaceSchema, assertAdaptersWired, assertArgvHonoursSessionContract, assertFlagsHonourSessionContract, assertStoreLocationHonoursSessionContract, backendTypeSchema, bareModelId, canonicalModelSlug, claimDeliverableEnvVarNames, cliAgentClaimEnvVarNames, cliAgentEnvRoleName, cliAgentEnvVarNamesByRole, cliAgentHostPassthroughEnvVarNames, compileSessionStoreGlob, configDirHomeEnv, createAdapterRegistry, describeLocalCliAuthExpectation, discoverLocalCliAuthFiles, forbiddenArgViolations, getAdapterFactory, getSpec, harnessModelSupportFor, harnessModelWire, isBackendType, isServableManagedModel, listRegisteredAdapters, managedModelChain, materializeCliAuthBundle, mergeCliDirLayout, messageStorageDirOf, normalizePosixPath, parseBackendType, registerAdapterFactory, resolveDefaultBackend, sessionContractProblems, sessionStoreForPath, substituteNativeSessionId, unregisterAdapterFactory };
149
+ export { AGENT_BACKEND_ENV_VAR, ALL_BACKEND_TYPES, BACKEND_TYPE, CLI_AGENT_SPECS, DEFAULT_CLI_DIR_LAYOUT, HARNESSES, HARNESS_SESSION_UNSUPPORTED, HarnessSessionContractError, INTERACTIVE_SEEDED_PROMPT_BACKENDS, MANAGED_MODEL_KEY_ENV_VAR, MANAGED_MODEL_KEY_NAME_ENV_VAR, MANAGED_MODEL_LADDER, NATIVE_SESSION_CONTRACTS, SESSION_FORMAT_IDS, SYNTHETIC_ROUTER_MODEL, agentProfileSchema, agentRunBackendVariants, agentRunRequestSharedShape, agentRunWorkspaceSchema, assertAdaptersWired, assertArgvHonoursSessionContract, assertFlagsHonourSessionContract, assertStoreLocationHonoursSessionContract, backendTypeSchema, bareModelId, canonicalModelSlug, claimDeliverableEnvVarNames, cliAgentClaimEnvVarNames, cliAgentEnvRoleName, cliAgentEnvVarNamesByRole, cliAgentHostPassthroughEnvVarNames, compileSessionStoreGlob, configDirHomeEnv, createAdapterRegistry, describeLocalCliAuthExpectation, discoverLocalCliAuthFiles, forbiddenArgViolations, getAdapterFactory, getSpec, harnessModelSupportFor, harnessModelWire, isBackendType, isServableManagedModel, listRegisteredAdapters, managedModelChain, materializeCliAuthBundle, mergeCliDirLayout, messageStorageDirOf, normalizePosixPath, parseBackendType, registerAdapterFactory, resolveDefaultBackend, sessionContractProblems, sessionStoreForPath, shellToolArguments, substituteNativeSessionId, unregisterAdapterFactory };
150
150
 
151
151
  //# sourceMappingURL=index.mjs.map
@@ -1,4 +1,4 @@
1
- import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-CXI4ysvr.mjs";
1
+ import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-s-0ukMAD.mjs";
2
2
  import { existsSync, readFileSync } from "node:fs";
3
3
  import { homedir } from "node:os";
4
4
  import { basename, dirname, join } from "node:path";
@@ -1,4 +1,4 @@
1
- import { g as harnessModelSupportFor, l as getSpec } from "./specs-5otqed0h.mjs";
1
+ import { g as harnessModelSupportFor, l as getSpec } from "./specs-ZD4Hi9ri.mjs";
2
2
  //#region src/servable-models.ts
3
3
  /**
4
4
  * The models a managed (Tangle-funded) run may default to, most preferred
@@ -245,6 +245,38 @@ interface CliAgentBuiltinTool {
245
245
  name: string;
246
246
  description: string;
247
247
  }
248
+ /**
249
+ * The tool this CLI offers its model for running one shell command line, as
250
+ * the model request names it. A scripted model calls a tool only by its exact
251
+ * name and argument shape, so a check that needs a real tool call from one
252
+ * reads both here instead of keeping its own table of harnesses.
253
+ */
254
+ interface CliAgentShellTool {
255
+ /**
256
+ * The tool's name in the model request. `*` stands for any run of
257
+ * characters, for a CLI that prefixes the names it offers.
258
+ */
259
+ name: string;
260
+ /**
261
+ * The argument that carries the command line. A free-form tool, whose call
262
+ * carries text and no JSON arguments, names that text as the Responses wire
263
+ * does: `input`.
264
+ */
265
+ commandArgument: string;
266
+ /**
267
+ * Set when that argument is source for the tool's interpreter, not a command
268
+ * line (a Python cell, or a script that reaches the shell through a tool
269
+ * nested in the interpreter): the source, in which `{command}` stands for
270
+ * the command line as a double-quoted string literal. It returns what the
271
+ * command writes, so the call returns the command's output as a shell tool
272
+ * does.
273
+ */
274
+ commandSource?: string;
275
+ /** Other arguments the tool requires, with the value a caller sends. */
276
+ otherArguments?: Readonly<Record<string, string | number | boolean>>;
277
+ }
278
+ /** The arguments that make `tool` run one shell command line. */
279
+ declare function shellToolArguments(tool: CliAgentShellTool, commandLine: string): Record<string, unknown>;
248
280
  interface CliAgentSpec {
249
281
  name: string;
250
282
  displayName: string;
@@ -260,6 +292,8 @@ interface CliAgentSpec {
260
292
  runtime?: CliAgentRuntimeSpec;
261
293
  /** Built-in tool inventory; omit when the harness declares none. */
262
294
  builtinTools?: readonly CliAgentBuiltinTool[];
295
+ /** The CLI's shell tool as its model sees it; omit when none is known. */
296
+ shellTool?: CliAgentShellTool;
263
297
  /**
264
298
  * Operator-level tuning env names forwarded verbatim from a HOST process
265
299
  * (orchestrator system env, host-agent process env) into every container —
@@ -333,5 +367,5 @@ type ProviderLogger = {
333
367
  observePhase?: (phase: ProviderPhase, durationMs: number, scope?: "turn" | "prewarm") => void;
334
368
  };
335
369
  //#endregion
336
- export { mergeCliDirLayout as C, DEFAULT_CLI_DIR_LAYOUT as S, harnessModelSupportFor as _, CliAgentEnvExtraRole as a, CliDirLayout as b, CliAgentRuntimeSpec as c, HarnessSpecCapabilities as d, ProviderLogger as f, cliAgentEnvRoleName as g, cliAgentClaimEnvVarNames as h, CliAgentEnvExtraParser as i, CliAgentSpec as l, canonicalModelSlug as m, CliAgentBuiltinTool as n, CliAgentEnvVars as o, ProviderPhase as p, CliAgentEnvExtra as r, CliAgentModelWire as s, AdapterFactory as t, CliAuthHome as u, harnessModelWire as v, CliDirLayoutAdditions as x, SYNTHETIC_ROUTER_MODEL as y };
337
- //# sourceMappingURL=spec-DCaKyeGZ.d.mts.map
370
+ export { CliDirLayoutAdditions as C, CliDirLayout as S, mergeCliDirLayout as T, cliAgentEnvRoleName as _, CliAgentEnvExtraRole as a, shellToolArguments as b, CliAgentRuntimeSpec as c, CliAuthHome as d, HarnessSpecCapabilities as f, cliAgentClaimEnvVarNames as g, canonicalModelSlug as h, CliAgentEnvExtraParser as i, CliAgentShellTool as l, ProviderPhase as m, CliAgentBuiltinTool as n, CliAgentEnvVars as o, ProviderLogger as p, CliAgentEnvExtra as r, CliAgentModelWire as s, AdapterFactory as t, CliAgentSpec as u, harnessModelSupportFor as v, DEFAULT_CLI_DIR_LAYOUT as w, SYNTHETIC_ROUTER_MODEL as x, harnessModelWire as y };
371
+ //# sourceMappingURL=spec-WH-SO7Xe.d.mts.map
@@ -1,5 +1,5 @@
1
1
  import { t as CliAuthReference } from "./public-profile-request-BwBfLgGv.mjs";
2
- import { l as CliAgentSpec } from "./spec-DCaKyeGZ.mjs";
2
+ import { u as CliAgentSpec } from "./spec-WH-SO7Xe.mjs";
3
3
  import { ProxySecretBinding, agentProfileSchema } from "@tangle-network/agent-interface";
4
4
 
5
5
  //#region src/native-inference-policy.d.ts
@@ -81,4 +81,4 @@ declare function getSpec(name: string): CliAgentSpec | undefined;
81
81
  declare function messageStorageDirOf(name: string): string;
82
82
  //#endregion
83
83
  export { agentProfileSchema as a, cliAgentHostPassthroughEnvVarNames as c, NATIVE_INFERENCE_SCOPES as d, nativeCliAuthProxyBindings as f, MANAGED_MODEL_KEY_NAME_ENV_VAR as i, getSpec as l, CLI_AGENT_SPECS as n, claimDeliverableEnvVarNames as o, MANAGED_MODEL_KEY_ENV_VAR as r, cliAgentEnvVarNamesByRole as s, AGENT_BACKEND_ENV_VAR as t, messageStorageDirOf as u };
84
- //# sourceMappingURL=specs-C5XEVeQN.d.mts.map
84
+ //# sourceMappingURL=specs-Ce2yBnD_.d.mts.map
@@ -91,6 +91,13 @@ function cliAgentClaimEnvVarNames(spec) {
91
91
  if (spec.envVars.extras) names.push(...Object.keys(spec.envVars.extras));
92
92
  return names;
93
93
  }
94
+ /** The arguments that make `tool` run one shell command line. */
95
+ function shellToolArguments(tool, commandLine) {
96
+ return {
97
+ ...tool.otherArguments,
98
+ [tool.commandArgument]: tool.commandSource ? tool.commandSource.replace("{command}", () => JSON.stringify(commandLine)) : commandLine
99
+ };
100
+ }
94
101
  //#endregion
95
102
  //#region src/native-inference-policy.ts
96
103
  /** Inference only. Provider login and refresh remain protected Host operations. */
@@ -264,6 +271,11 @@ const CLI_AGENT_SPECS = [
264
271
  displayName: "OpenCode Agent",
265
272
  description: "OpenCode CLI coding agent with native sessions, profiles, tools, and MCP.",
266
273
  envVars: HARNESSES["opencode"].config.envVars,
274
+ shellTool: {
275
+ name: "bash",
276
+ commandArgument: "command",
277
+ otherArguments: { description: "Run one command" }
278
+ },
267
279
  capabilities: {
268
280
  ...BASE_CAPABILITIES,
269
281
  multimodal: true,
@@ -393,6 +405,10 @@ const CLI_AGENT_SPECS = [
393
405
  displayName: "Claude Code",
394
406
  description: "Anthropic Claude Code CLI-based agent backend.",
395
407
  envVars: HARNESSES["claude-code"].config.envVars,
408
+ shellTool: {
409
+ name: "Bash",
410
+ commandArgument: "command"
411
+ },
396
412
  modelWire: HARNESSES["claude-code"].config.modelWire,
397
413
  capabilities: {
398
414
  ...BASE_CAPABILITIES,
@@ -434,6 +450,10 @@ const CLI_AGENT_SPECS = [
434
450
  displayName: "Kimi Code",
435
451
  description: "Moonshot AI Kimi Code CLI — headless non-interactive mode via `kimi --print --output-format stream-json --prompt ...`. Defaults to OAuth (Kimi Code subscription) with credentials materialized from the host-managed ~/.kimi/credentials/kimi-code.json; falls back to MOONSHOT_API_KEY when an apiKey is supplied.",
436
452
  envVars: HARNESSES["kimi-code"].config.envVars,
453
+ shellTool: {
454
+ name: "Bash",
455
+ commandArgument: "command"
456
+ },
437
457
  capabilities: {
438
458
  ...BASE_CAPABILITIES,
439
459
  multimodal: true,
@@ -498,6 +518,10 @@ const CLI_AGENT_SPECS = [
498
518
  displayName: "Codex",
499
519
  description: "OpenAI Codex CLI-based agent backend.",
500
520
  envVars: HARNESSES["codex"].config.envVars,
521
+ shellTool: {
522
+ name: "exec_command",
523
+ commandArgument: "cmd"
524
+ },
501
525
  modelWire: HARNESSES["codex"].config.modelWire,
502
526
  capabilities: {
503
527
  ...BASE_CAPABILITIES,
@@ -541,6 +565,10 @@ const CLI_AGENT_SPECS = [
541
565
  displayName: "Factory Droids",
542
566
  description: "Factory Droids CLI-based agent backend. A managed box runs its Tangle Router model as a droid custom model; a caller's FACTORY_API_KEY runs on the caller's Factory account.",
543
567
  envVars: HARNESSES["factory-droids"].config.envVars,
568
+ shellTool: {
569
+ name: "Execute",
570
+ commandArgument: "command"
571
+ },
544
572
  capabilities: {
545
573
  ...TEXT_CLI_CAPABILITIES,
546
574
  interactions: ["question"]
@@ -556,6 +584,10 @@ const CLI_AGENT_SPECS = [
556
584
  displayName: "Pi",
557
585
  description: "Pi CLI backend. Managed OpenAI-compatible model tuples use one private runtime HOME models.json and the shared Pi model schema.",
558
586
  envVars: HARNESSES["pi"].config.envVars,
587
+ shellTool: {
588
+ name: "bash",
589
+ commandArgument: "command"
590
+ },
559
591
  capabilities: {
560
592
  ...BASE_CAPABILITIES,
561
593
  contextWindow: 128e3,
@@ -576,6 +608,11 @@ const CLI_AGENT_SPECS = [
576
608
  displayName: "Prime Agent (PrimeIntellect)",
577
609
  description: "PrimeIntellect-ai/prime-agent — IPython-first coding agent (pi hard fork, fork line 0.7.x) driven over its native ACP mode. Model tuple travels via backend.model into a per-session materialized models.json, never env; the adapter pins PRIME_AGENT_CODING_AGENT_DIR to an isolated per-session agent dir (fail-closed harness-state isolation).",
578
610
  envVars: HARNESSES["prime"].config.envVars,
611
+ shellTool: {
612
+ name: "python_repl",
613
+ commandArgument: "code",
614
+ commandSource: "import subprocess\nprint(subprocess.run({command}, shell=True, capture_output=True, text=True).stdout)"
615
+ },
579
616
  hostPassthroughEnvVars: ["PRIME_AGENT_INSTALL_UV", "PRIME_AGENT_KERNEL_PYTHON"],
580
617
  capabilities: {
581
618
  ...BASE_CAPABILITIES,
@@ -601,6 +638,10 @@ const CLI_AGENT_SPECS = [
601
638
  displayName: "Hermes Agent (Nous Research)",
602
639
  description: "Open-source self-improving CLI agent. Persistent memory and skills live in $HERMES_HOME (pinned to the per-session workspace mount, not the read-only in-box $HOME) across same-tenant snapshot resumes — the learning loop is the differentiator. Provider-pluggable; defaults to OpenRouter via Tangle Router.",
603
640
  envVars: HARNESSES["hermes"].config.envVars,
641
+ shellTool: {
642
+ name: "terminal",
643
+ commandArgument: "command"
644
+ },
604
645
  capabilities: {
605
646
  ...BASE_CAPABILITIES,
606
647
  streaming: true,
@@ -623,6 +664,10 @@ const CLI_AGENT_SPECS = [
623
664
  displayName: "OpenClaw (Orchestrator)",
624
665
  description: "Orchestrator-tier CLI agent that dispatches to underlying coding-agent CLIs (claude-cli, codex-cli, gemini-cli) via its built-in cliBackends plugin model. Use this when you want one entry point that intelligently routes tasks to the right coding harness.",
625
666
  envVars: HARNESSES["openclaw"].config.envVars,
667
+ shellTool: {
668
+ name: "exec",
669
+ commandArgument: "command"
670
+ },
626
671
  capabilities: {
627
672
  ...BASE_CAPABILITIES,
628
673
  streaming: true,
@@ -668,6 +713,11 @@ const CLI_AGENT_SPECS = [
668
713
  displayName: "Nanocode",
669
714
  description: "Nanocode native Rust coding agent (nanocodexyz/nanocode). Driven headless via `nc exec` on its default codex harness, which speaks the OpenAI Responses wire the Tangle Router serves. The reply streams as plaintext on stdout; the session id arrives on stderr.",
670
715
  envVars: HARNESSES["nanocode"].config.envVars,
716
+ shellTool: {
717
+ name: "exec",
718
+ commandArgument: "input",
719
+ commandSource: "text((await tools.exec_command({ cmd: {command} })).output)"
720
+ },
671
721
  modelWire: HARNESSES["nanocode"].config.modelWire,
672
722
  capabilities: {
673
723
  ...BASE_CAPABILITIES,
@@ -690,6 +740,10 @@ const CLI_AGENT_SPECS = [
690
740
  displayName: "Exo",
691
741
  description: "Exo agent harness (exoharness/exo). Driven headless via `exo run` on its built-in `basic` loop as a local process in the workspace, over the OpenAI Responses wire the Tangle Router serves.",
692
742
  envVars: HARNESSES["exo"].config.envVars,
743
+ shellTool: {
744
+ name: "shell",
745
+ commandArgument: "command"
746
+ },
693
747
  modelWire: HARNESSES["exo"].config.modelWire,
694
748
  capabilities: {
695
749
  ...BASE_CAPABILITIES,
@@ -712,6 +766,10 @@ const CLI_AGENT_SPECS = [
712
766
  displayName: "ACP Bridge (multi-agent)",
713
767
  description: "Generic Agent Client Protocol bridge — fronts any ACP-compliant agent binary (claude-agent-acp, codex-acp, gemini, openclaw acp, hermes acp). Pick the backing agent via config.subAgent; hermes runs on the box's Router model when none is named. One TypeScript adapter, many supported coding harnesses.",
714
768
  envVars: HARNESSES["acp"].config.envVars,
769
+ shellTool: {
770
+ name: "terminal",
771
+ commandArgument: "command"
772
+ },
715
773
  capabilities: {
716
774
  ...BASE_CAPABILITIES,
717
775
  contextWindow: 2e5,
@@ -759,6 +817,11 @@ const CLI_AGENT_SPECS = [
759
817
  displayName: "Grok",
760
818
  description: "Grok Build CLI. Headless grok -p against a caller base URL.",
761
819
  envVars: HARNESSES.grok.config.envVars,
820
+ shellTool: {
821
+ name: "run_terminal_command",
822
+ commandArgument: "command",
823
+ otherArguments: { description: "Run one command" }
824
+ },
762
825
  capabilities: {
763
826
  ...TEXT_CLI_CAPABILITIES,
764
827
  interactions: []
@@ -802,6 +865,6 @@ function messageStorageDirOf(name) {
802
865
  return dir;
803
866
  }
804
867
  //#endregion
805
- export { harnessModelWire as _, agentProfileSchema as a, cliAgentHostPassthroughEnvVarNames as c, NATIVE_INFERENCE_SCOPES as d, nativeCliAuthProxyBindings as f, harnessModelSupportFor as g, cliAgentEnvRoleName as h, MANAGED_MODEL_KEY_NAME_ENV_VAR as i, getSpec as l, cliAgentClaimEnvVarNames as m, CLI_AGENT_SPECS as n, claimDeliverableEnvVarNames as o, canonicalModelSlug as p, MANAGED_MODEL_KEY_ENV_VAR as r, cliAgentEnvVarNamesByRole as s, AGENT_BACKEND_ENV_VAR as t, messageStorageDirOf as u, SYNTHETIC_ROUTER_MODEL as v };
868
+ export { harnessModelWire as _, agentProfileSchema as a, cliAgentHostPassthroughEnvVarNames as c, NATIVE_INFERENCE_SCOPES as d, nativeCliAuthProxyBindings as f, harnessModelSupportFor as g, cliAgentEnvRoleName as h, MANAGED_MODEL_KEY_NAME_ENV_VAR as i, getSpec as l, cliAgentClaimEnvVarNames as m, CLI_AGENT_SPECS as n, claimDeliverableEnvVarNames as o, canonicalModelSlug as p, MANAGED_MODEL_KEY_ENV_VAR as r, cliAgentEnvVarNamesByRole as s, AGENT_BACKEND_ENV_VAR as t, messageStorageDirOf as u, shellToolArguments as v, SYNTHETIC_ROUTER_MODEL as y };
806
869
 
807
- //# sourceMappingURL=specs-5otqed0h.mjs.map
870
+ //# sourceMappingURL=specs-ZD4Hi9ri.mjs.map
package/dist/specs.d.mts CHANGED
@@ -1,4 +1,4 @@
1
1
  import { a as backendTypeSchema, i as INTERACTIVE_SEEDED_PROMPT_BACKENDS, n as BACKEND_TYPE, o as isBackendType, r as BackendType, s as parseBackendType, t as ALL_BACKEND_TYPES } from "./backend-types-B6HdTo23.mjs";
2
- import { _ as harnessModelSupportFor, h as cliAgentClaimEnvVarNames, l as CliAgentSpec, m as canonicalModelSlug, s as CliAgentModelWire, v as harnessModelWire, y as SYNTHETIC_ROUTER_MODEL } from "./spec-DCaKyeGZ.mjs";
3
- import { a as agentProfileSchema, c as cliAgentHostPassthroughEnvVarNames, d as NATIVE_INFERENCE_SCOPES, f as nativeCliAuthProxyBindings, i as MANAGED_MODEL_KEY_NAME_ENV_VAR, l as getSpec, n as CLI_AGENT_SPECS, o as claimDeliverableEnvVarNames, r as MANAGED_MODEL_KEY_ENV_VAR, s as cliAgentEnvVarNamesByRole, t as AGENT_BACKEND_ENV_VAR, u as messageStorageDirOf } from "./specs-C5XEVeQN.mjs";
2
+ import { g as cliAgentClaimEnvVarNames, h as canonicalModelSlug, s as CliAgentModelWire, u as CliAgentSpec, v as harnessModelSupportFor, x as SYNTHETIC_ROUTER_MODEL, y as harnessModelWire } from "./spec-WH-SO7Xe.mjs";
3
+ import { a as agentProfileSchema, c as cliAgentHostPassthroughEnvVarNames, d as NATIVE_INFERENCE_SCOPES, f as nativeCliAuthProxyBindings, i as MANAGED_MODEL_KEY_NAME_ENV_VAR, l as getSpec, n as CLI_AGENT_SPECS, o as claimDeliverableEnvVarNames, r as MANAGED_MODEL_KEY_ENV_VAR, s as cliAgentEnvVarNamesByRole, t as AGENT_BACKEND_ENV_VAR, u as messageStorageDirOf } from "./specs-Ce2yBnD_.mjs";
4
4
  export { AGENT_BACKEND_ENV_VAR, ALL_BACKEND_TYPES, BACKEND_TYPE, BackendType, CLI_AGENT_SPECS, CliAgentModelWire, CliAgentSpec, INTERACTIVE_SEEDED_PROMPT_BACKENDS, MANAGED_MODEL_KEY_ENV_VAR, MANAGED_MODEL_KEY_NAME_ENV_VAR, NATIVE_INFERENCE_SCOPES, SYNTHETIC_ROUTER_MODEL, agentProfileSchema, backendTypeSchema, canonicalModelSlug, claimDeliverableEnvVarNames, cliAgentClaimEnvVarNames, cliAgentEnvVarNamesByRole, cliAgentHostPassthroughEnvVarNames, getSpec, harnessModelSupportFor, harnessModelWire, isBackendType, messageStorageDirOf, nativeCliAuthProxyBindings, parseBackendType };
package/dist/specs.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  import { a as isBackendType, i as backendTypeSchema, n as BACKEND_TYPE, o as parseBackendType, r as INTERACTIVE_SEEDED_PROMPT_BACKENDS, t as ALL_BACKEND_TYPES } from "./backend-types-DOAfrnMJ.mjs";
2
- import { _ as harnessModelWire, a as agentProfileSchema, c as cliAgentHostPassthroughEnvVarNames, d as NATIVE_INFERENCE_SCOPES, f as nativeCliAuthProxyBindings, g as harnessModelSupportFor, i as MANAGED_MODEL_KEY_NAME_ENV_VAR, l as getSpec, m as cliAgentClaimEnvVarNames, n as CLI_AGENT_SPECS, o as claimDeliverableEnvVarNames, p as canonicalModelSlug, r as MANAGED_MODEL_KEY_ENV_VAR, s as cliAgentEnvVarNamesByRole, t as AGENT_BACKEND_ENV_VAR, u as messageStorageDirOf, v as SYNTHETIC_ROUTER_MODEL } from "./specs-5otqed0h.mjs";
2
+ import { _ as harnessModelWire, a as agentProfileSchema, c as cliAgentHostPassthroughEnvVarNames, d as NATIVE_INFERENCE_SCOPES, f as nativeCliAuthProxyBindings, g as harnessModelSupportFor, i as MANAGED_MODEL_KEY_NAME_ENV_VAR, l as getSpec, m as cliAgentClaimEnvVarNames, n as CLI_AGENT_SPECS, o as claimDeliverableEnvVarNames, p as canonicalModelSlug, r as MANAGED_MODEL_KEY_ENV_VAR, s as cliAgentEnvVarNamesByRole, t as AGENT_BACKEND_ENV_VAR, u as messageStorageDirOf, y as SYNTHETIC_ROUTER_MODEL } from "./specs-ZD4Hi9ri.mjs";
3
3
  export { AGENT_BACKEND_ENV_VAR, ALL_BACKEND_TYPES, BACKEND_TYPE, CLI_AGENT_SPECS, INTERACTIVE_SEEDED_PROMPT_BACKENDS, MANAGED_MODEL_KEY_ENV_VAR, MANAGED_MODEL_KEY_NAME_ENV_VAR, NATIVE_INFERENCE_SCOPES, SYNTHETIC_ROUTER_MODEL, agentProfileSchema, backendTypeSchema, canonicalModelSlug, claimDeliverableEnvVarNames, cliAgentClaimEnvVarNames, cliAgentEnvVarNamesByRole, cliAgentHostPassthroughEnvVarNames, getSpec, harnessModelSupportFor, harnessModelWire, isBackendType, messageStorageDirOf, nativeCliAuthProxyBindings, parseBackendType };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/cli-agent-registry",
3
- "version": "0.15.202",
3
+ "version": "0.15.203",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./cli-backend-auth-env": {
@@ -77,8 +77,8 @@
77
77
  "@tangle-network/runtime-contracts": "0.20.0"
78
78
  },
79
79
  "tangleRelease": {
80
- "sourceSha": "4fbd1bafc6aedcc78abfba1d9679d33286fc62ac",
81
- "mergedAt": "2026-11-24T10:45:29-08:00"
80
+ "sourceSha": "6033787eb5439bac0a76105dbe0e5c89f65eb6dd",
81
+ "mergedAt": "2026-11-24T11:26:41-08:00"
82
82
  },
83
83
  "scripts": {
84
84
  "build": "tsdown && node scripts/export-host-contracts.mjs --write",