@tangle-network/cli-agent-registry 0.14.0 → 0.15.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/README.md +30 -0
- package/dist/{backend-types-CREj4iOY.mjs → backend-types-CNo_Zj_K.mjs} +3 -12
- package/dist/{backend-types-CJH-wHS3.d.mts → backend-types-DRmLR1e0.d.mts} +4 -13
- package/dist/backend-types.d.mts +1 -1
- package/dist/backend-types.mjs +1 -1
- package/dist/cli-auth-bundle-C6DtK7GX.mjs +95 -0
- package/dist/cli-auth-bundle-CwAaH0Ap.d.mts +51 -0
- package/dist/cli-auth-bundle.d.mts +2 -49
- package/dist/cli-auth-bundle.mjs +1 -91
- package/dist/cli-auth-placeholder.d.mts +1 -1
- package/dist/cli-auth-placeholder.mjs +2 -2
- package/dist/cli-backend-auth-env.mjs +3 -3
- package/dist/default-backend.d.mts +1 -1
- package/dist/default-backend.mjs +2 -2
- package/dist/{harness-DIdVNSwl.mjs → harness-D1fTxnDD.mjs} +66 -34
- package/dist/{native-session-contracts-DWFzgoye.mjs → harness-contracts-BZoECCMc.mjs} +87 -173
- package/dist/host-contracts.d.mts +30 -0
- package/dist/host-contracts.json +422 -0
- package/dist/host-contracts.mjs +63 -0
- package/dist/index.d.mts +117 -120
- package/dist/index.mjs +17 -12
- package/dist/local-cli-auth.d.mts +1 -1
- package/dist/local-cli-auth.mjs +1 -1
- package/dist/native-session-contracts.d.mts +57 -62
- package/dist/native-session-contracts.mjs +40 -2
- package/dist/servable-models.d.mts +5 -6
- package/dist/servable-models.mjs +6 -22
- package/dist/{session-contract-BC75JdnA.d.mts → session-contract-BhzcbPRW.d.mts} +10 -44
- package/dist/session-contract.d.mts +1 -1
- package/dist/session-contract.mjs +14 -62
- package/dist/{specs-BSELpX1h.d.mts → spec-CcvTM7-j.d.mts} +22 -91
- package/dist/{specs-Bbiay_8K.mjs → specs-BBF55TnM.mjs} +125 -94
- package/dist/specs.d.mts +72 -3
- package/dist/specs.mjs +2 -2
- package/package.json +14 -8
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
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-
|
|
2
|
-
import { LocalCliAuthFile, materializeCliAuthBundle } from "./cli-auth-bundle.mjs";
|
|
3
|
-
import {
|
|
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-
|
|
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 { i as LocalCliAuthFile, s as materializeCliAuthBundle } from "./cli-auth-bundle-CwAaH0Ap.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-CcvTM7-j.mjs";
|
|
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-BhzcbPRW.mjs";
|
|
5
|
+
import { AGENT_BACKEND_ENV_VAR, CLI_AGENT_SPECS, MANAGED_MODEL_KEY_ENV_VAR, MANAGED_MODEL_KEY_NAME_ENV_VAR, agentProfileSchema, claimDeliverableEnvVarNames, cliAgentEnvVarNamesByRole, cliAgentHostPassthroughEnvVarNames, getSpec, messageStorageDirOf } from "./specs.mjs";
|
|
5
6
|
import { resolveDefaultBackend } from "./default-backend.mjs";
|
|
6
7
|
import { describeLocalCliAuthExpectation, discoverLocalCliAuthFiles } from "./local-cli-auth.mjs";
|
|
7
|
-
import {
|
|
8
|
+
import { HARNESS_SESSION_UNSUPPORTED, NATIVE_SESSION_CONTRACTS, configDirHomeEnv } from "./native-session-contracts.mjs";
|
|
8
9
|
import { MANAGED_MODEL_LADDER, ManagedModelChain, ManagedModelChainOptions, ManagedModelRung, SkippedManagedModel, bareModelId, isServableManagedModel, managedModelChain } from "./servable-models.mjs";
|
|
9
10
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
10
11
|
import { z } from "zod";
|
|
@@ -40,14 +41,6 @@ declare function listRegisteredAdapters(): string[];
|
|
|
40
41
|
declare function assertAdaptersWired(): void;
|
|
41
42
|
//#endregion
|
|
42
43
|
//#region src/agent-run-request.d.ts
|
|
43
|
-
/**
|
|
44
|
-
* Agent run request fields shared by the orchestrator proxy
|
|
45
|
-
* (`agentExecuteRequestSchema`) and the sidecar (`agentRunRequestSchema`).
|
|
46
|
-
* The proxy parses and reserializes the body, so a field missing on one end
|
|
47
|
-
* is dropped or refused before the other end sees it. Each end keeps only
|
|
48
|
-
* its delta: strictness, OpenAPI metadata, the sidecar's `identifier` alias
|
|
49
|
-
* and its cliAuth refinement.
|
|
50
|
-
*/
|
|
51
44
|
type AgentRunBackend<Shape extends z.ZodRawShape> = z.infer<z.ZodObject<Shape>> & {
|
|
52
45
|
profile?: z.infer<typeof agentProfileSchema>;
|
|
53
46
|
profileSha256?: string;
|
|
@@ -97,6 +90,7 @@ declare function agentRunBackendVariants<Shape extends z.ZodRawShape>(base: Shap
|
|
|
97
90
|
"factory-droids": "factory-droids";
|
|
98
91
|
forge: "forge";
|
|
99
92
|
cursor: "cursor";
|
|
93
|
+
grok: "grok";
|
|
100
94
|
acp: "acp";
|
|
101
95
|
"cli-base": "cli-base";
|
|
102
96
|
}>>;
|
|
@@ -116,6 +110,7 @@ declare function agentRunBackendVariants<Shape extends z.ZodRawShape>(base: Shap
|
|
|
116
110
|
"factory-droids": "factory-droids";
|
|
117
111
|
forge: "forge";
|
|
118
112
|
cursor: "cursor";
|
|
113
|
+
grok: "grok";
|
|
119
114
|
acp: "acp";
|
|
120
115
|
"cli-base": "cli-base";
|
|
121
116
|
}>;
|
|
@@ -336,7 +331,12 @@ declare function agentRunRequestSharedShape<Workspace extends z.ZodType, Backend
|
|
|
336
331
|
domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
337
332
|
workspace: Workspace;
|
|
338
333
|
backend: Backend;
|
|
339
|
-
expectedPublicProfileRequestDigest: z.ZodOptional<z.
|
|
334
|
+
expectedPublicProfileRequestDigest: z.ZodOptional<z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>>;
|
|
335
|
+
expectedPublicProfileRevision: z.ZodOptional<z.ZodObject<{
|
|
336
|
+
workspacePlanDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
337
|
+
materializedDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
338
|
+
launchDigest: z.ZodString;
|
|
339
|
+
}, z.core.$strict>>;
|
|
340
340
|
expectedSecretProfileReceipt: z.ZodOptional<z.ZodString>;
|
|
341
341
|
githubToken: z.ZodOptional<z.ZodString>;
|
|
342
342
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -366,7 +366,7 @@ type SessionContract = {
|
|
|
366
366
|
reason: string;
|
|
367
367
|
};
|
|
368
368
|
/** Serializable requirements; production policy and validators retain their owners. */
|
|
369
|
-
type HarnessConfigAssertion = "managed-full-ladder" | "operator-model-first" | "named-model-exact" | "
|
|
369
|
+
type HarnessConfigAssertion = "managed-full-ladder" | "operator-model-first" | "named-model-exact" | "responses-config-model-id";
|
|
370
370
|
type HarnessConfigContract = {
|
|
371
371
|
kind: "model";
|
|
372
372
|
providerRequiresModel: true;
|
|
@@ -517,7 +517,9 @@ declare const HARNESSES: {
|
|
|
517
517
|
};
|
|
518
518
|
};
|
|
519
519
|
lifecycle: {
|
|
520
|
-
runtime:
|
|
520
|
+
runtime: {
|
|
521
|
+
secretProfileIsolation: true;
|
|
522
|
+
};
|
|
521
523
|
coldCreate: {
|
|
522
524
|
kind: "required";
|
|
523
525
|
};
|
|
@@ -597,6 +599,7 @@ declare const HARNESSES: {
|
|
|
597
599
|
};
|
|
598
600
|
lifecycle: {
|
|
599
601
|
runtime: {
|
|
602
|
+
secretProfileIsolation: true;
|
|
600
603
|
redactsHostEnv: true;
|
|
601
604
|
supportsToolDisabledTurns: true;
|
|
602
605
|
};
|
|
@@ -708,21 +711,17 @@ declare const HARNESSES: {
|
|
|
708
711
|
forbiddenArgs: never[];
|
|
709
712
|
storeEnv: {};
|
|
710
713
|
evidence: {
|
|
711
|
-
servedModel: "
|
|
714
|
+
servedModel: "none";
|
|
712
715
|
usage: "per-response";
|
|
713
|
-
endingError: "
|
|
716
|
+
endingError: "session-record";
|
|
714
717
|
};
|
|
715
718
|
cliVersion: "1.49.0";
|
|
716
719
|
};
|
|
717
|
-
defect:
|
|
718
|
-
issue: string;
|
|
719
|
-
reason: string;
|
|
720
|
-
};
|
|
720
|
+
defect: null;
|
|
721
721
|
};
|
|
722
722
|
config: {
|
|
723
723
|
kind: "model";
|
|
724
724
|
providerRequiresModel: true;
|
|
725
|
-
assertions: "moonshot-provider-lock"[];
|
|
726
725
|
keySources: ["managed", "api-key", "api-key-env", "cli-auth"];
|
|
727
726
|
baseUrl: "caller-or-managed";
|
|
728
727
|
modelWire: "openai-compat";
|
|
@@ -800,12 +799,9 @@ declare const HARNESSES: {
|
|
|
800
799
|
usage: "session-total";
|
|
801
800
|
endingError: "none";
|
|
802
801
|
};
|
|
803
|
-
cliVersion: "0.
|
|
804
|
-
};
|
|
805
|
-
defect: {
|
|
806
|
-
issue: string;
|
|
807
|
-
reason: string;
|
|
802
|
+
cliVersion: "0.250.0";
|
|
808
803
|
};
|
|
804
|
+
defect: null;
|
|
809
805
|
};
|
|
810
806
|
config: {
|
|
811
807
|
kind: "model";
|
|
@@ -837,6 +833,74 @@ declare const HARNESSES: {
|
|
|
837
833
|
};
|
|
838
834
|
};
|
|
839
835
|
};
|
|
836
|
+
grok: {
|
|
837
|
+
session: {
|
|
838
|
+
kind: "native";
|
|
839
|
+
processProbe: {
|
|
840
|
+
versionCommand: string;
|
|
841
|
+
kill: [string, string];
|
|
842
|
+
};
|
|
843
|
+
contract: {
|
|
844
|
+
version: 1;
|
|
845
|
+
stores: [{
|
|
846
|
+
root: string;
|
|
847
|
+
files: string[];
|
|
848
|
+
write: "jsonl-append";
|
|
849
|
+
shared: false;
|
|
850
|
+
format: "grok.acp-session-dir";
|
|
851
|
+
}];
|
|
852
|
+
identity: {
|
|
853
|
+
kind: "first-event";
|
|
854
|
+
event: string;
|
|
855
|
+
deadlineMs: number;
|
|
856
|
+
};
|
|
857
|
+
resume: {
|
|
858
|
+
kind: "args";
|
|
859
|
+
args: string[];
|
|
860
|
+
};
|
|
861
|
+
forbiddenArgs: never[];
|
|
862
|
+
storeEnv: {
|
|
863
|
+
GROK_HOME: string;
|
|
864
|
+
};
|
|
865
|
+
evidence: {
|
|
866
|
+
servedModel: "session-record";
|
|
867
|
+
usage: "none";
|
|
868
|
+
endingError: "none";
|
|
869
|
+
};
|
|
870
|
+
cliVersion: "0.1.220";
|
|
871
|
+
};
|
|
872
|
+
defect: null;
|
|
873
|
+
};
|
|
874
|
+
config: {
|
|
875
|
+
kind: "model";
|
|
876
|
+
providerRequiresModel: true;
|
|
877
|
+
keySources: ["api-key", "api-key-env"];
|
|
878
|
+
baseUrl: "caller-or-managed";
|
|
879
|
+
modelWire: "openai-compat";
|
|
880
|
+
envVars: {
|
|
881
|
+
apiKey: string;
|
|
882
|
+
model: string;
|
|
883
|
+
};
|
|
884
|
+
};
|
|
885
|
+
lifecycle: {
|
|
886
|
+
runtime: undefined;
|
|
887
|
+
coldCreate: {
|
|
888
|
+
kind: "required";
|
|
889
|
+
};
|
|
890
|
+
warmClaim: {
|
|
891
|
+
kind: "required";
|
|
892
|
+
};
|
|
893
|
+
parkResume: {
|
|
894
|
+
kind: "required";
|
|
895
|
+
};
|
|
896
|
+
branchChild: {
|
|
897
|
+
kind: "required";
|
|
898
|
+
};
|
|
899
|
+
killResume: {
|
|
900
|
+
kind: "required";
|
|
901
|
+
};
|
|
902
|
+
};
|
|
903
|
+
};
|
|
840
904
|
amp: {
|
|
841
905
|
session: {
|
|
842
906
|
kind: "native";
|
|
@@ -871,7 +935,7 @@ declare const HARNESSES: {
|
|
|
871
935
|
usage: "per-response";
|
|
872
936
|
endingError: "none";
|
|
873
937
|
};
|
|
874
|
-
cliVersion: "0.0.
|
|
938
|
+
cliVersion: "0.0.1793104576-gc52692";
|
|
875
939
|
};
|
|
876
940
|
defect: {
|
|
877
941
|
issue: string;
|
|
@@ -923,7 +987,7 @@ declare const HARNESSES: {
|
|
|
923
987
|
root: string;
|
|
924
988
|
files: string[];
|
|
925
989
|
write: "jsonl-append";
|
|
926
|
-
shared:
|
|
990
|
+
shared: true;
|
|
927
991
|
format: "prime.session-jsonl";
|
|
928
992
|
}];
|
|
929
993
|
identity: {
|
|
@@ -942,10 +1006,7 @@ declare const HARNESSES: {
|
|
|
942
1006
|
};
|
|
943
1007
|
cliVersion: "0.10.1";
|
|
944
1008
|
};
|
|
945
|
-
defect:
|
|
946
|
-
issue: string;
|
|
947
|
-
reason: string;
|
|
948
|
-
};
|
|
1009
|
+
defect: null;
|
|
949
1010
|
};
|
|
950
1011
|
config: {
|
|
951
1012
|
kind: "model";
|
|
@@ -1008,10 +1069,7 @@ declare const HARNESSES: {
|
|
|
1008
1069
|
};
|
|
1009
1070
|
cliVersion: "0.22.4";
|
|
1010
1071
|
};
|
|
1011
|
-
defect:
|
|
1012
|
-
issue: string;
|
|
1013
|
-
reason: string;
|
|
1014
|
-
};
|
|
1072
|
+
defect: null;
|
|
1015
1073
|
};
|
|
1016
1074
|
config: {
|
|
1017
1075
|
kind: "model";
|
|
@@ -1051,7 +1109,7 @@ declare const HARNESSES: {
|
|
|
1051
1109
|
};
|
|
1052
1110
|
};
|
|
1053
1111
|
};
|
|
1054
|
-
|
|
1112
|
+
openclaw: {
|
|
1055
1113
|
session: {
|
|
1056
1114
|
kind: "native";
|
|
1057
1115
|
processProbe: {
|
|
@@ -1065,12 +1123,11 @@ declare const HARNESSES: {
|
|
|
1065
1123
|
files: string[];
|
|
1066
1124
|
write: "sqlite-wal";
|
|
1067
1125
|
shared: true;
|
|
1068
|
-
format: "
|
|
1126
|
+
format: "openclaw.session-jsonl";
|
|
1069
1127
|
}];
|
|
1070
1128
|
identity: {
|
|
1071
|
-
kind: "
|
|
1072
|
-
|
|
1073
|
-
deadlineMs: number;
|
|
1129
|
+
kind: "pre-minted";
|
|
1130
|
+
args: string[];
|
|
1074
1131
|
};
|
|
1075
1132
|
resume: {
|
|
1076
1133
|
kind: "args";
|
|
@@ -1083,12 +1140,9 @@ declare const HARNESSES: {
|
|
|
1083
1140
|
usage: "per-response";
|
|
1084
1141
|
endingError: "none";
|
|
1085
1142
|
};
|
|
1086
|
-
cliVersion: "
|
|
1087
|
-
};
|
|
1088
|
-
defect: {
|
|
1089
|
-
issue: string;
|
|
1090
|
-
reason: string;
|
|
1143
|
+
cliVersion: "2026.10.8";
|
|
1091
1144
|
};
|
|
1145
|
+
defect: null;
|
|
1092
1146
|
};
|
|
1093
1147
|
config: {
|
|
1094
1148
|
kind: "model";
|
|
@@ -1099,19 +1153,9 @@ declare const HARNESSES: {
|
|
|
1099
1153
|
envVars: {
|
|
1100
1154
|
apiKey: string;
|
|
1101
1155
|
model: string;
|
|
1156
|
+
baseUrl: string;
|
|
1102
1157
|
authMode: string;
|
|
1103
1158
|
authFiles: string;
|
|
1104
|
-
extras: {
|
|
1105
|
-
FORGE_SESSION__PROVIDER_ID: {
|
|
1106
|
-
parser: "string";
|
|
1107
|
-
};
|
|
1108
|
-
FORGE_SESSION__MODEL_ID: {
|
|
1109
|
-
parser: "string";
|
|
1110
|
-
};
|
|
1111
|
-
FORGE_AGENT_ID: {
|
|
1112
|
-
parser: "string";
|
|
1113
|
-
};
|
|
1114
|
-
};
|
|
1115
1159
|
};
|
|
1116
1160
|
};
|
|
1117
1161
|
lifecycle: {
|
|
@@ -1133,7 +1177,7 @@ declare const HARNESSES: {
|
|
|
1133
1177
|
};
|
|
1134
1178
|
};
|
|
1135
1179
|
};
|
|
1136
|
-
|
|
1180
|
+
nanoclaw: {
|
|
1137
1181
|
session: {
|
|
1138
1182
|
kind: "native";
|
|
1139
1183
|
processProbe: {
|
|
@@ -1145,9 +1189,9 @@ declare const HARNESSES: {
|
|
|
1145
1189
|
stores: [{
|
|
1146
1190
|
root: string;
|
|
1147
1191
|
files: string[];
|
|
1148
|
-
write: "
|
|
1192
|
+
write: "sqlite-wal";
|
|
1149
1193
|
shared: false;
|
|
1150
|
-
format: "
|
|
1194
|
+
format: "nanoclaw.session-sqlite";
|
|
1151
1195
|
}];
|
|
1152
1196
|
identity: {
|
|
1153
1197
|
kind: "first-event";
|
|
@@ -1155,63 +1199,20 @@ declare const HARNESSES: {
|
|
|
1155
1199
|
deadlineMs: number;
|
|
1156
1200
|
};
|
|
1157
1201
|
resume: {
|
|
1158
|
-
kind: "
|
|
1159
|
-
args: string[];
|
|
1202
|
+
kind: "api";
|
|
1160
1203
|
};
|
|
1161
1204
|
forbiddenArgs: never[];
|
|
1162
|
-
storeEnv: {
|
|
1205
|
+
storeEnv: {
|
|
1206
|
+
NANOCLAW_RUNTIME_ROOT: string;
|
|
1207
|
+
};
|
|
1163
1208
|
evidence: {
|
|
1164
|
-
servedModel: "
|
|
1209
|
+
servedModel: "none";
|
|
1165
1210
|
usage: "per-response";
|
|
1166
1211
|
endingError: "none";
|
|
1167
1212
|
};
|
|
1168
|
-
cliVersion: "
|
|
1169
|
-
};
|
|
1170
|
-
defect: {
|
|
1171
|
-
issue: string;
|
|
1172
|
-
reason: string;
|
|
1173
|
-
};
|
|
1174
|
-
};
|
|
1175
|
-
config: {
|
|
1176
|
-
kind: "model";
|
|
1177
|
-
providerRequiresModel: true;
|
|
1178
|
-
keySources: ["managed", "api-key", "api-key-env", "cli-auth"];
|
|
1179
|
-
baseUrl: "caller-or-managed";
|
|
1180
|
-
modelWire: "openai-compat";
|
|
1181
|
-
envVars: {
|
|
1182
|
-
apiKey: string;
|
|
1183
|
-
model: string;
|
|
1184
|
-
baseUrl: string;
|
|
1185
|
-
authMode: string;
|
|
1186
|
-
authFiles: string;
|
|
1187
|
-
};
|
|
1188
|
-
};
|
|
1189
|
-
lifecycle: {
|
|
1190
|
-
runtime: undefined;
|
|
1191
|
-
coldCreate: {
|
|
1192
|
-
kind: "required";
|
|
1193
|
-
};
|
|
1194
|
-
warmClaim: {
|
|
1195
|
-
kind: "required";
|
|
1196
|
-
};
|
|
1197
|
-
parkResume: {
|
|
1198
|
-
kind: "required";
|
|
1199
|
-
};
|
|
1200
|
-
branchChild: {
|
|
1201
|
-
kind: "required";
|
|
1202
|
-
};
|
|
1203
|
-
killResume: {
|
|
1204
|
-
kind: "required";
|
|
1205
|
-
};
|
|
1206
|
-
};
|
|
1207
|
-
};
|
|
1208
|
-
nanoclaw: {
|
|
1209
|
-
session: {
|
|
1210
|
-
kind: "unsupported";
|
|
1211
|
-
defect: {
|
|
1212
|
-
issue: string;
|
|
1213
|
-
reason: string;
|
|
1213
|
+
cliVersion: "2.1.54";
|
|
1214
1214
|
};
|
|
1215
|
+
defect: null;
|
|
1215
1216
|
};
|
|
1216
1217
|
config: {
|
|
1217
1218
|
kind: "model";
|
|
@@ -1253,8 +1254,7 @@ declare const HARNESSES: {
|
|
|
1253
1254
|
kind: "required";
|
|
1254
1255
|
};
|
|
1255
1256
|
killResume: {
|
|
1256
|
-
kind: "
|
|
1257
|
-
reason: string;
|
|
1257
|
+
kind: "required";
|
|
1258
1258
|
};
|
|
1259
1259
|
};
|
|
1260
1260
|
};
|
|
@@ -1279,15 +1279,12 @@ declare const HARNESSES: {
|
|
|
1279
1279
|
storeEnv: {};
|
|
1280
1280
|
evidence: {
|
|
1281
1281
|
servedModel: "session-record";
|
|
1282
|
-
usage: "
|
|
1282
|
+
usage: "session-total";
|
|
1283
1283
|
endingError: "none";
|
|
1284
1284
|
};
|
|
1285
1285
|
cliVersion: "claude-agent-acp 0.97.0; codex-acp 0.16.0; gemini-cli 0.65.0";
|
|
1286
1286
|
};
|
|
1287
|
-
defect:
|
|
1288
|
-
issue: string;
|
|
1289
|
-
reason: string;
|
|
1290
|
-
};
|
|
1287
|
+
defect: null;
|
|
1291
1288
|
};
|
|
1292
1289
|
config: {
|
|
1293
1290
|
kind: "model";
|
|
@@ -1396,5 +1393,5 @@ declare const HARNESSES: {
|
|
|
1396
1393
|
};
|
|
1397
1394
|
};
|
|
1398
1395
|
//#endregion
|
|
1399
|
-
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,
|
|
1396
|
+
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, 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 };
|
|
1400
1397
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as HARNESSES } from "./harness-contracts-BZoECCMc.mjs";
|
|
2
|
+
import { HARNESS_SESSION_UNSUPPORTED, NATIVE_SESSION_CONTRACTS, configDirHomeEnv } from "./native-session-contracts.mjs";
|
|
2
3
|
import { HarnessSessionContractError, SESSION_FORMAT_IDS, assertArgvHonoursSessionContract, assertFlagsHonourSessionContract, assertStoreLocationHonoursSessionContract, compileSessionStoreGlob, forbiddenArgViolations, normalizePosixPath, sessionContractProblems, sessionStoreForPath, substituteNativeSessionId } from "./session-contract.mjs";
|
|
3
|
-
import { a as parseBackendType, i as isBackendType, n as BACKEND_TYPE, r as backendTypeSchema, t as ALL_BACKEND_TYPES } from "./backend-types-
|
|
4
|
-
import { a as agentProfileSchema, c as cliAgentHostPassthroughEnvVarNames, d as canonicalModelSlug, f as cliAgentClaimEnvVarNames, g as SYNTHETIC_ROUTER_MODEL, 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, p as cliAgentEnvRoleName, r as MANAGED_MODEL_KEY_ENV_VAR, s as cliAgentEnvVarNamesByRole, t as AGENT_BACKEND_ENV_VAR, u as messageStorageDirOf } from "./specs-
|
|
5
|
-
import { materializeCliAuthBundle } from "./cli-auth-bundle.mjs";
|
|
4
|
+
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";
|
|
5
|
+
import { a as agentProfileSchema, c as cliAgentHostPassthroughEnvVarNames, d as canonicalModelSlug, f as cliAgentClaimEnvVarNames, g as SYNTHETIC_ROUTER_MODEL, 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, p as cliAgentEnvRoleName, r as MANAGED_MODEL_KEY_ENV_VAR, s as cliAgentEnvVarNamesByRole, t as AGENT_BACKEND_ENV_VAR, u as messageStorageDirOf } from "./specs-BBF55TnM.mjs";
|
|
6
|
+
import { a as materializeCliAuthBundle } from "./cli-auth-bundle-C6DtK7GX.mjs";
|
|
6
7
|
import { resolveDefaultBackend } from "./default-backend.mjs";
|
|
7
8
|
import { describeLocalCliAuthExpectation, discoverLocalCliAuthFiles } from "./local-cli-auth.mjs";
|
|
8
9
|
import { MANAGED_MODEL_LADDER, bareModelId, isServableManagedModel, managedModelChain } from "./servable-models.mjs";
|
|
10
|
+
import { sha256DigestSchema } from "@tangle-network/agent-interface";
|
|
9
11
|
import { z } from "zod";
|
|
10
12
|
//#region src/adapter-bindings.ts
|
|
11
13
|
/**
|
|
@@ -80,6 +82,7 @@ function assertAdaptersWired() {
|
|
|
80
82
|
//#region src/agent-run-request.ts
|
|
81
83
|
/** A backend carries an inline profile, a profile digest, or neither. */
|
|
82
84
|
function agentRunBackendVariants(base) {
|
|
85
|
+
const profileSha256 = z.string().regex(/^[a-f0-9]{64}$/, "profileSha256 must be a lowercase SHA-256");
|
|
83
86
|
return z.union([
|
|
84
87
|
z.object({
|
|
85
88
|
...base,
|
|
@@ -87,7 +90,7 @@ function agentRunBackendVariants(base) {
|
|
|
87
90
|
}).strict(),
|
|
88
91
|
z.object({
|
|
89
92
|
...base,
|
|
90
|
-
profileSha256
|
|
93
|
+
profileSha256
|
|
91
94
|
}).strict(),
|
|
92
95
|
z.object(base).strict()
|
|
93
96
|
]);
|
|
@@ -107,7 +110,12 @@ function agentRunRequestSharedShape(workspace, backend) {
|
|
|
107
110
|
domains: z.array(z.string()).optional(),
|
|
108
111
|
workspace,
|
|
109
112
|
backend,
|
|
110
|
-
expectedPublicProfileRequestDigest:
|
|
113
|
+
expectedPublicProfileRequestDigest: sha256DigestSchema.optional(),
|
|
114
|
+
expectedPublicProfileRevision: z.object({
|
|
115
|
+
workspacePlanDigest: sha256DigestSchema,
|
|
116
|
+
materializedDigest: sha256DigestSchema,
|
|
117
|
+
launchDigest: z.string().regex(/^[a-f0-9]{64}$/)
|
|
118
|
+
}).strict().optional(),
|
|
111
119
|
expectedSecretProfileReceipt: z.string().regex(/^hmac-sha256:[a-f0-9]{64}$/).optional(),
|
|
112
120
|
githubToken: z.string().optional(),
|
|
113
121
|
metadata: z.record(z.string(), z.unknown()).optional()
|
|
@@ -117,6 +125,7 @@ function agentRunRequestSharedShape(workspace, backend) {
|
|
|
117
125
|
//#region src/cli-dir-layout.ts
|
|
118
126
|
/** What every CLI's directory is read with; a spec adds its own entries. */
|
|
119
127
|
const DEFAULT_CLI_DIR_LAYOUT = {
|
|
128
|
+
homeSessionData: [],
|
|
120
129
|
sessionData: ["messages/**", "history.jsonl"],
|
|
121
130
|
configAllow: [
|
|
122
131
|
"config.toml",
|
|
@@ -134,13 +143,9 @@ const DEFAULT_CLI_DIR_LAYOUT = {
|
|
|
134
143
|
};
|
|
135
144
|
/** The default layout with a spec's additions. */
|
|
136
145
|
function mergeCliDirLayout(additions) {
|
|
137
|
-
return
|
|
138
|
-
sessionData: [...DEFAULT_CLI_DIR_LAYOUT.sessionData, ...additions?.sessionData ?? []],
|
|
139
|
-
configAllow: [...DEFAULT_CLI_DIR_LAYOUT.configAllow, ...additions?.configAllow ?? []],
|
|
140
|
-
credential: [...DEFAULT_CLI_DIR_LAYOUT.credential, ...additions?.credential ?? []]
|
|
141
|
-
};
|
|
146
|
+
return Object.fromEntries(Object.entries(DEFAULT_CLI_DIR_LAYOUT).map(([key, paths]) => [key, [...paths, ...additions?.[key] ?? []]]));
|
|
142
147
|
}
|
|
143
148
|
//#endregion
|
|
144
|
-
export { AGENT_BACKEND_ENV_VAR, ALL_BACKEND_TYPES, BACKEND_TYPE, CLI_AGENT_SPECS, DEFAULT_CLI_DIR_LAYOUT, HARNESSES,
|
|
149
|
+
export { AGENT_BACKEND_ENV_VAR, ALL_BACKEND_TYPES, BACKEND_TYPE, CLI_AGENT_SPECS, DEFAULT_CLI_DIR_LAYOUT, HARNESSES, HARNESS_SESSION_UNSUPPORTED, HarnessSessionContractError, 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 };
|
|
145
150
|
|
|
146
151
|
//# sourceMappingURL=index.mjs.map
|
package/dist/local-cli-auth.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AUTH_BUNDLE_PATHS } from "./cli-auth-bundle.mjs";
|
|
1
|
+
import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-C6DtK7GX.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";
|