@tangle-network/cli-agent-registry 0.15.32 → 0.15.33

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/specs.d.mts CHANGED
@@ -1,72 +1,4 @@
1
- import { a as isBackendType, i as backendTypeSchema, n as BACKEND_TYPE, o as parseBackendType, r as BackendType, t as ALL_BACKEND_TYPES } from "./backend-types-BZoSzUzQ.mjs";
2
- import { _ as harnessModelSupportFor, h as cliAgentClaimEnvVarNames, l as CliAgentSpec, m as canonicalModelSlug, s as CliAgentModelWire, v as harnessModelWire } from "./spec-BJnoebFr.mjs";
3
- import { agentProfileSchema } from "@tangle-network/agent-interface";
4
-
5
- //#region src/specs.d.ts
6
- /**
7
- * Env var naming a sandbox's selected backend. Stamped into every create env
8
- * by the orchestrator (`buildSidecarContainerConfig`); read by the sidecar's
9
- * backend resolution (`resolveConfiguredBackend`) and by the host-agent's
10
- * warm-claim env selection to pick which spec's env vars the rebind delivers.
11
- */
12
- declare const AGENT_BACKEND_ENV_VAR = "AGENT_BACKEND";
13
- /** Salted proxy model key. The name OPENCODE_MODEL_API_KEY is load-bearing; do not rename it. */
14
- declare const MANAGED_MODEL_KEY_ENV_VAR = "OPENCODE_MODEL_API_KEY";
15
- /** Name of the box env var holding a caller-owned provider key. A name, never a secret. */
16
- declare const MANAGED_MODEL_KEY_NAME_ENV_VAR = "OPENCODE_MODEL_API_KEY_ENV";
17
- /**
18
- * Env var names declared across ALL registered harness specs, grouped by
19
- * their `CliAgentEnvVars` role. The ONE derivation every allowlist that must
20
- * track "what env names can a backend legitimately use" builds from — the
21
- * FC kernel-cmdline whitelist, the egress secret handling, the sidecar
22
- * terminal scrub, the SSH env forward, and the rebind union below. Deriving
23
- * from roles (not one flat set) lets each consumer apply its own security
24
- * policy per role: apiKey and oauthToken names are secret channels.
25
- * Native subscription tokens stay out of warm-claim delivery.
26
- */
27
- declare function cliAgentEnvVarNamesByRole(): {
28
- apiKey: ReadonlySet<string>;
29
- oauthToken: ReadonlySet<string>;
30
- model: ReadonlySet<string>;
31
- baseUrl: ReadonlySet<string>;
32
- authMode: ReadonlySet<string>;
33
- authFiles: ReadonlySet<string>;
34
- extras: ReadonlySet<string>;
35
- };
36
- /**
37
- * Union of every spec's `hostPassthroughEnvVars` — the operator tuning names
38
- * a host process (orchestrator system env, host-agent process env) may
39
- * forward into containers. Request/caller env always keeps precedence at the
40
- * host-agent boundary; the orchestrator system-env channel stays
41
- * operator-authoritative. Replaces the old `OPENCODE_*` prefix forward,
42
- * which leaked ANY stray host var with that prefix (model tuple and key
43
- * included) into every tenant.
44
- */
45
- declare function cliAgentHostPassthroughEnvVarNames(): ReadonlySet<string>;
46
- /**
47
- * Union of every env var name a warm-claim rebind may deliver, across all
48
- * registered harnesses. The ONE source both sides of the rebind derive from:
49
- * the host-agent selects its delivery from it and the sidecar rebind route
50
- * carves it out of the loader-control rejection, so the two can never drift
51
- * into "host delivers a name the sidecar 400s" — which silently cold-paths
52
- * every warm claim of that backend. Includes each spec's apiKey name because
53
- * acceptance is a superset of delivery: the HOST decides which key names are
54
- * safe to send (egress proxy-swap-covered only), while the sidecar must not
55
- * reject a name a valid host may deliver.
56
- */
57
- declare function claimDeliverableEnvVarNames(): ReadonlySet<string>;
58
- /**
59
- * claude-code is the only provider that demotes uid + forces HOME=/home/agent
60
- * when the sidecar runs as root. All other CLIs inherit the sidecar HOME.
61
- */
62
- declare const CLI_AGENT_SPECS: readonly CliAgentSpec[];
63
- declare function getSpec(name: string): CliAgentSpec | undefined;
64
- /**
65
- * The directory, relative to a session's storage path, where a backend's
66
- * message log lives: the one value adapters, the sidecar and the parked
67
- * export read. Throws for a backend whose spec names none.
68
- */
69
- declare function messageStorageDirOf(name: string): string;
70
- //#endregion
71
- export { AGENT_BACKEND_ENV_VAR, ALL_BACKEND_TYPES, BACKEND_TYPE, type BackendType, CLI_AGENT_SPECS, type CliAgentModelWire, type CliAgentSpec, MANAGED_MODEL_KEY_ENV_VAR, MANAGED_MODEL_KEY_NAME_ENV_VAR, agentProfileSchema, backendTypeSchema, canonicalModelSlug, claimDeliverableEnvVarNames, cliAgentClaimEnvVarNames, cliAgentEnvVarNamesByRole, cliAgentHostPassthroughEnvVarNames, getSpec, harnessModelSupportFor, harnessModelWire, isBackendType, messageStorageDirOf, parseBackendType };
72
- //# sourceMappingURL=specs.d.mts.map
1
+ import { a as isBackendType, i as backendTypeSchema, n as BACKEND_TYPE, o as parseBackendType, r as BackendType, t as ALL_BACKEND_TYPES } from "./backend-types-DRmLR1e0.mjs";
2
+ import { _ as harnessModelSupportFor, h as cliAgentClaimEnvVarNames, l as CliAgentSpec, m as canonicalModelSlug, s as CliAgentModelWire, v as harnessModelWire } from "./spec-Br00Ybw5.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-CStHlNhB.mjs";
4
+ export { AGENT_BACKEND_ENV_VAR, ALL_BACKEND_TYPES, BACKEND_TYPE, BackendType, CLI_AGENT_SPECS, CliAgentModelWire, CliAgentSpec, MANAGED_MODEL_KEY_ENV_VAR, MANAGED_MODEL_KEY_NAME_ENV_VAR, NATIVE_INFERENCE_SCOPES, 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 parseBackendType, i as isBackendType, n as BACKEND_TYPE, r as backendTypeSchema, t as ALL_BACKEND_TYPES } from "./backend-types-CNo_Zj_K.mjs";
2
- import { a as agentProfileSchema, c as cliAgentHostPassthroughEnvVarNames, d as canonicalModelSlug, f as cliAgentClaimEnvVarNames, h as harnessModelWire, i as MANAGED_MODEL_KEY_NAME_ENV_VAR, l as getSpec, m as harnessModelSupportFor, 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-D_iuiC3T.mjs";
3
- export { AGENT_BACKEND_ENV_VAR, ALL_BACKEND_TYPES, BACKEND_TYPE, CLI_AGENT_SPECS, MANAGED_MODEL_KEY_ENV_VAR, MANAGED_MODEL_KEY_NAME_ENV_VAR, agentProfileSchema, backendTypeSchema, canonicalModelSlug, claimDeliverableEnvVarNames, cliAgentClaimEnvVarNames, cliAgentEnvVarNamesByRole, cliAgentHostPassthroughEnvVarNames, getSpec, harnessModelSupportFor, harnessModelWire, isBackendType, messageStorageDirOf, parseBackendType };
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 } from "./specs-CZ6eAF6G.mjs";
3
+ export { AGENT_BACKEND_ENV_VAR, ALL_BACKEND_TYPES, BACKEND_TYPE, CLI_AGENT_SPECS, MANAGED_MODEL_KEY_ENV_VAR, MANAGED_MODEL_KEY_NAME_ENV_VAR, NATIVE_INFERENCE_SCOPES, 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.32",
3
+ "version": "0.15.33",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./cli-backend-auth-env": {
@@ -65,6 +65,7 @@
65
65
  },
66
66
  "dependencies": {
67
67
  "@tangle-network/agent-interface": "^5.10.20",
68
+ "jose": "6.2.15",
68
69
  "zod": "4.6.7"
69
70
  },
70
71
  "devDependencies": {
@@ -76,8 +77,8 @@
76
77
  "@tangle-network/runtime-contracts": "0.20.0"
77
78
  },
78
79
  "tangleRelease": {
79
- "sourceSha": "7f35269c55c7dbf9cc12ef1fd210bd1f9f8eab58",
80
- "mergedAt": "2026-11-06T21:08:17-08:00"
80
+ "sourceSha": "8af7f9410f67473cf82e7c48ee3bf284a2afea77",
81
+ "mergedAt": "2026-11-07T00:12:57-08:00"
81
82
  },
82
83
  "scripts": {
83
84
  "build": "tsdown && node scripts/export-host-contracts.mjs --write",
@@ -1,51 +0,0 @@
1
- import { z } from "zod";
2
-
3
- //#region ../runtime-contracts/dist/public-profile-request.d.ts
4
- declare const cliAuthReferenceSchema: z.ZodObject<{
5
- account: z.ZodString;
6
- secretEnv: z.ZodString;
7
- format: z.ZodEnum<{
8
- files: "files";
9
- token: "token";
10
- bundle: "bundle";
11
- }>;
12
- }, z.core.$strict>;
13
- /** A supplied account binding label, not a verified native account principal. */
14
- type CliAuthReference = z.infer<typeof cliAuthReferenceSchema>;
15
- //#endregion
16
- //#region src/cli-auth-bundle.d.ts
17
- type LocalCliAuthFile = {
18
- path: string;
19
- content: string;
20
- mode?: number;
21
- };
22
- declare const AUTH_BUNDLE_PATHS: Readonly<{
23
- readonly codex: ".codex/auth.json";
24
- readonly "claude-code": ".claude/.credentials.json";
25
- }>;
26
- /** Convert a native credential JSON bundle without reading host credentials. */
27
- declare function materializeCliAuthBundle(backendType: string, rawBundle: string): LocalCliAuthFile[];
28
- declare const CLI_AUTH_REFERENCE_ENV_VAR = "AGENT_INTERNAL_CLI_AUTH_REF";
29
- type CliAuthMaterial = {
30
- reference: CliAuthReference;
31
- authFiles: LocalCliAuthFile[];
32
- tokenEnvironment: Record<string, string>;
33
- };
34
- declare const cliAuthFilesSchema: z.ZodArray<z.ZodObject<{
35
- path: z.ZodString;
36
- content: z.ZodString;
37
- mode: z.ZodOptional<z.ZodNumber>;
38
- }, z.core.$strict>>;
39
- declare function assertCliAuthReferenceSupported(backendType: string, model: {
40
- cliAuth?: CliAuthReference;
41
- authMode?: string;
42
- apiKey?: string;
43
- apiKeyEnv?: string;
44
- baseUrl?: string;
45
- authFiles?: LocalCliAuthFile[];
46
- }): CliAuthReference | undefined;
47
- /** Resolve only the selected injected secret, without copying it into a public config. */
48
- declare function resolveCliAuthReference(backendType: string, model: Parameters<typeof assertCliAuthReferenceSupported>[1], environment: Readonly<Record<string, string | undefined>>): CliAuthMaterial | undefined;
49
- //#endregion
50
- export { assertCliAuthReferenceSupported as a, resolveCliAuthReference as c, LocalCliAuthFile as i, CliAuthReference as l, CLI_AUTH_REFERENCE_ENV_VAR as n, cliAuthFilesSchema as o, CliAuthMaterial as r, materializeCliAuthBundle as s, AUTH_BUNDLE_PATHS as t, cliAuthReferenceSchema as u };
51
- //# sourceMappingURL=cli-auth-bundle-BIABHp5D.d.mts.map