@tangle-network/agent-interface 1.8.0 → 2.0.0
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 +14 -0
- package/dist/agent-candidate-code-schema.d.ts +17 -17
- package/dist/agent-candidate-execution-plan-schema.d.ts +179 -179
- package/dist/agent-candidate-lineage-schema.d.ts +2 -2
- package/dist/agent-candidate-outcome-schema.d.ts +56 -56
- package/dist/agent-candidate-profile-schema.d.ts +17 -17
- package/dist/agent-candidate-promotion-schema.d.ts +1085 -1085
- package/dist/agent-candidate-receipt-schema.d.ts +195 -195
- package/dist/agent-candidate-schema-common.d.ts +6 -0
- package/dist/agent-candidate-schema-common.js +25 -10
- package/dist/agent-candidate-schema.d.ts +30 -30
- package/dist/agent-candidate-task-schema.d.ts +16 -16
- package/dist/agent-execution-limits.d.ts +1 -1
- package/dist/agent-execution-preparation-receipt.d.ts +71 -71
- package/dist/agent-improvement-measurement-schema.d.ts +26 -26
- package/dist/agent-instance.d.ts +2 -2
- package/dist/agent-profile-improvement-schema.d.ts +75 -75
- package/dist/agent-workspace-lease.d.ts +4 -4
- package/dist/certified-context.d.ts +2 -2
- package/dist/environment-command-turn.js +4 -1
- package/dist/environment-interactive-control.d.ts +422 -422
- package/dist/environment-interactive-start.d.ts +17 -17
- package/dist/environment-observation.d.ts +39 -39
- package/dist/environment-provider.d.ts +1 -0
- package/dist/environment-provider.js +1 -0
- package/dist/environment-requests.d.ts +22 -2
- package/dist/environment-requests.js +29 -1
- package/dist/environment-runtime.d.ts +53 -20
- package/dist/environment-runtime.js +23 -0
- package/dist/harness.d.ts +11 -11
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/interaction-envelope.d.ts +26 -26
- package/dist/interaction-fields.d.ts +22 -22
- package/dist/interaction-permissions.d.ts +2 -2
- package/dist/portable-context-base.d.ts +1 -1
- package/dist/portable-context-continuation.d.ts +4 -4
- package/dist/portable-context-plan-request.d.ts +1 -1
- package/dist/portable-context-plan.d.ts +5 -5
- package/dist/portable-context-shared.d.ts +1 -1
- package/dist/portable-context-transfer.d.ts +6 -6
- package/dist/profile-schema.d.ts +37 -37
- package/dist/runtime-control.d.ts +10 -10
- package/dist/workspace-cleanup.d.ts +3 -3
- package/dist/workspace-cwd.d.ts +28 -0
- package/dist/workspace-cwd.js +77 -0
- package/dist/workspace-fork.d.ts +4 -4
- package/package.json +6 -6
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { Sha256Digest } from "./agent-candidate.js";
|
|
3
|
+
export type RelativePathSafetyIssue = "empty" | "control-character" | "malformed-unicode" | "absolute" | "backslash" | "parent-traversal";
|
|
4
|
+
export type PathSafetyIssue = "control-character" | "malformed-unicode";
|
|
3
5
|
export declare const sha256DigestSchema: z.ZodType<Sha256Digest>;
|
|
4
6
|
export declare const gitObjectSchema: z.ZodString;
|
|
5
7
|
export declare const environmentNameSchema: z.ZodString;
|
|
@@ -15,6 +17,10 @@ export declare function omitTopLevelDigest<T extends {
|
|
|
15
17
|
digest: Sha256Digest;
|
|
16
18
|
}>(value: T): Omit<T, "digest">;
|
|
17
19
|
export declare function isWellFormedUnicode(value: string): boolean;
|
|
20
|
+
/** Return shared boundary violations for path strings. */
|
|
21
|
+
export declare function pathSafetyIssues(value: string): PathSafetyIssue[];
|
|
22
|
+
/** Return shared boundary violations for paths that must stay inside a workspace. */
|
|
23
|
+
export declare function relativePathSafetyIssues(value: string): RelativePathSafetyIssue[];
|
|
18
24
|
export declare function isSafeRelativePath(value: string, allowDot: boolean): boolean;
|
|
19
25
|
export declare function isSafeExecutable(value: string): boolean;
|
|
20
26
|
export declare function isObviouslyPrivateHostname(rawHostname: string): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { sha256 } from "@noble/hashes/
|
|
1
|
+
import { sha256 } from "@noble/hashes/sha2.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
const sha256Pattern = /^sha256:[a-f0-9]{64}$/;
|
|
4
4
|
const gitObjectPattern = /^(?:[a-f0-9]{40}|[a-f0-9]{64})$/;
|
|
@@ -86,20 +86,35 @@ export function isWellFormedUnicode(value) {
|
|
|
86
86
|
}
|
|
87
87
|
return true;
|
|
88
88
|
}
|
|
89
|
+
/** Return shared boundary violations for path strings. */
|
|
90
|
+
export function pathSafetyIssues(value) {
|
|
91
|
+
const issues = [];
|
|
92
|
+
if (controlCharacterPattern.test(value))
|
|
93
|
+
issues.push("control-character");
|
|
94
|
+
if (!isWellFormedUnicode(value))
|
|
95
|
+
issues.push("malformed-unicode");
|
|
96
|
+
return issues;
|
|
97
|
+
}
|
|
98
|
+
/** Return shared boundary violations for paths that must stay inside a workspace. */
|
|
99
|
+
export function relativePathSafetyIssues(value) {
|
|
100
|
+
const issues = [...pathSafetyIssues(value)];
|
|
101
|
+
if (value.length === 0)
|
|
102
|
+
issues.push("empty");
|
|
103
|
+
if (value.startsWith("/") || /^[A-Za-z]:/.test(value))
|
|
104
|
+
issues.push("absolute");
|
|
105
|
+
if (value.includes("\\"))
|
|
106
|
+
issues.push("backslash");
|
|
107
|
+
if (value.split("/").includes(".."))
|
|
108
|
+
issues.push("parent-traversal");
|
|
109
|
+
return issues;
|
|
110
|
+
}
|
|
89
111
|
export function isSafeRelativePath(value, allowDot) {
|
|
90
|
-
if (value.length
|
|
91
|
-
controlCharacterPattern.test(value) ||
|
|
92
|
-
!isWellFormedUnicode(value) ||
|
|
93
|
-
value.startsWith("/") ||
|
|
94
|
-
value.startsWith("\\") ||
|
|
95
|
-
value.includes("\\") ||
|
|
96
|
-
/^[A-Za-z]:/.test(value)) {
|
|
112
|
+
if (relativePathSafetyIssues(value).length > 0)
|
|
97
113
|
return false;
|
|
98
|
-
}
|
|
99
114
|
if (value === ".")
|
|
100
115
|
return allowDot;
|
|
101
116
|
const parts = value.split("/");
|
|
102
|
-
return (parts.every((part) => part.length > 0 && part !== "."
|
|
117
|
+
return (parts.every((part) => part.length > 0 && part !== ".") &&
|
|
103
118
|
!parts.some((part) => reservedWorkspaceRoots.has(part)));
|
|
104
119
|
}
|
|
105
120
|
export function isSafeExecutable(value) {
|
|
@@ -22,13 +22,13 @@ export declare const agentCandidateBundleSchema: z.ZodObject<{
|
|
|
22
22
|
}, z.core.$strict>>;
|
|
23
23
|
model: z.ZodOptional<z.ZodObject<{
|
|
24
24
|
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
25
|
-
|
|
26
|
-
minimal: "minimal";
|
|
25
|
+
high: "high";
|
|
27
26
|
low: "low";
|
|
28
27
|
medium: "medium";
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
minimal: "minimal";
|
|
29
|
+
none: "none";
|
|
31
30
|
ultracode: "ultracode";
|
|
31
|
+
xhigh: "xhigh";
|
|
32
32
|
}>>;
|
|
33
33
|
maxVisibleOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
34
34
|
maxReasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -38,22 +38,22 @@ export declare const agentCandidateBundleSchema: z.ZodObject<{
|
|
|
38
38
|
provider: z.ZodOptional<z.ZodString>;
|
|
39
39
|
}, z.core.$strict>>;
|
|
40
40
|
harness: z.ZodOptional<z.ZodEnum<{
|
|
41
|
+
acp: "acp";
|
|
42
|
+
amp: "amp";
|
|
41
43
|
"claude-code": "claude-code";
|
|
42
|
-
|
|
44
|
+
"cli-base": "cli-base";
|
|
43
45
|
codex: "codex";
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
prime: "prime";
|
|
46
|
+
cursor: "cursor";
|
|
47
|
+
"factory-droids": "factory-droids";
|
|
48
|
+
forge: "forge";
|
|
48
49
|
gemini: "gemini";
|
|
49
50
|
hermes: "hermes";
|
|
51
|
+
"kimi-code": "kimi-code";
|
|
52
|
+
nanoclaw: "nanoclaw";
|
|
50
53
|
openclaw: "openclaw";
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
cursor: "cursor";
|
|
55
|
-
acp: "acp";
|
|
56
|
-
"cli-base": "cli-base";
|
|
54
|
+
opencode: "opencode";
|
|
55
|
+
pi: "pi";
|
|
56
|
+
prime: "prime";
|
|
57
57
|
}>>;
|
|
58
58
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
|
|
59
59
|
allow: "allow";
|
|
@@ -63,9 +63,9 @@ export declare const agentCandidateBundleSchema: z.ZodObject<{
|
|
|
63
63
|
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
64
64
|
mcp: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./agent-candidate.js").AgentCandidateMcpServer, unknown, z.core.$ZodTypeInternals<import("./agent-candidate.js").AgentCandidateMcpServer, unknown>>>>;
|
|
65
65
|
subagents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
66
|
+
description: z.ZodOptional<z.ZodString>;
|
|
66
67
|
prompt: z.ZodOptional<z.ZodString>;
|
|
67
68
|
tools: z.ZodOptional<z.ZodType<Record<string, boolean>, unknown, z.core.$ZodTypeInternals<Record<string, boolean>, unknown>>>;
|
|
68
|
-
description: z.ZodOptional<z.ZodString>;
|
|
69
69
|
permissions: z.ZodOptional<z.ZodType<Record<string, "allow" | "ask" | "deny" | Record<string, "allow" | "ask" | "deny">>, unknown, z.core.$ZodTypeInternals<Record<string, "allow" | "ask" | "deny" | Record<string, "allow" | "ask" | "deny">>, unknown>>>;
|
|
70
70
|
model: z.ZodOptional<z.ZodString>;
|
|
71
71
|
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
@@ -542,9 +542,9 @@ export declare const agentCandidateBundleSchema: z.ZodObject<{
|
|
|
542
542
|
}, z.core.$strict>>>;
|
|
543
543
|
}, z.core.$strict>>>>;
|
|
544
544
|
modes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
545
|
+
description: z.ZodOptional<z.ZodString>;
|
|
545
546
|
prompt: z.ZodOptional<z.ZodString>;
|
|
546
547
|
tools: z.ZodOptional<z.ZodType<Record<string, boolean>, unknown, z.core.$ZodTypeInternals<Record<string, boolean>, unknown>>>;
|
|
547
|
-
description: z.ZodOptional<z.ZodString>;
|
|
548
548
|
permissions: z.ZodOptional<z.ZodType<Record<string, "allow" | "ask" | "deny" | Record<string, "allow" | "ask" | "deny">>, unknown, z.core.$ZodTypeInternals<Record<string, "allow" | "ask" | "deny" | Record<string, "allow" | "ask" | "deny">>, unknown>>>;
|
|
549
549
|
model: z.ZodOptional<z.ZodString>;
|
|
550
550
|
}, z.core.$strict>>>;
|
|
@@ -589,22 +589,22 @@ export declare const agentCandidateBundleSchema: z.ZodObject<{
|
|
|
589
589
|
}, z.core.$strict>], "kind">;
|
|
590
590
|
execution: z.ZodObject<{
|
|
591
591
|
harness: z.ZodEnum<{
|
|
592
|
+
acp: "acp";
|
|
593
|
+
amp: "amp";
|
|
592
594
|
"claude-code": "claude-code";
|
|
593
|
-
|
|
595
|
+
"cli-base": "cli-base";
|
|
594
596
|
codex: "codex";
|
|
595
|
-
|
|
596
|
-
"
|
|
597
|
-
|
|
598
|
-
prime: "prime";
|
|
597
|
+
cursor: "cursor";
|
|
598
|
+
"factory-droids": "factory-droids";
|
|
599
|
+
forge: "forge";
|
|
599
600
|
gemini: "gemini";
|
|
600
601
|
hermes: "hermes";
|
|
602
|
+
"kimi-code": "kimi-code";
|
|
603
|
+
nanoclaw: "nanoclaw";
|
|
601
604
|
openclaw: "openclaw";
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
cursor: "cursor";
|
|
606
|
-
acp: "acp";
|
|
607
|
-
"cli-base": "cli-base";
|
|
605
|
+
opencode: "opencode";
|
|
606
|
+
pi: "pi";
|
|
607
|
+
prime: "prime";
|
|
608
608
|
}>;
|
|
609
609
|
harnessVersion: z.ZodString;
|
|
610
610
|
launch: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -618,11 +618,11 @@ export declare const agentCandidateBundleSchema: z.ZodObject<{
|
|
|
618
618
|
kind: z.ZodLiteral<"candidate-entrypoint">;
|
|
619
619
|
entrypoint: z.ZodString;
|
|
620
620
|
interpreter: z.ZodOptional<z.ZodEnum<{
|
|
621
|
+
bun: "bun";
|
|
622
|
+
deno: "deno";
|
|
621
623
|
node: "node";
|
|
622
624
|
python: "python";
|
|
623
625
|
python3: "python3";
|
|
624
|
-
bun: "bun";
|
|
625
|
-
deno: "deno";
|
|
626
626
|
tsx: "tsx";
|
|
627
627
|
uv: "uv";
|
|
628
628
|
}>>;
|
|
@@ -117,13 +117,13 @@ export declare const agentCandidateBenchmarkTaskMaterialSchema: z.ZodObject<{
|
|
|
117
117
|
model: z.ZodString;
|
|
118
118
|
snapshot: z.ZodString;
|
|
119
119
|
reasoningEffort: z.ZodEnum<{
|
|
120
|
-
|
|
121
|
-
minimal: "minimal";
|
|
120
|
+
high: "high";
|
|
122
121
|
low: "low";
|
|
123
122
|
medium: "medium";
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
minimal: "minimal";
|
|
124
|
+
none: "none";
|
|
126
125
|
ultracode: "ultracode";
|
|
126
|
+
xhigh: "xhigh";
|
|
127
127
|
}>;
|
|
128
128
|
}, z.core.$strict>;
|
|
129
129
|
attempt: z.ZodObject<{
|
|
@@ -272,13 +272,13 @@ export declare const agentCandidateBenchmarkTaskSchema: z.ZodObject<{
|
|
|
272
272
|
model: z.ZodString;
|
|
273
273
|
snapshot: z.ZodString;
|
|
274
274
|
reasoningEffort: z.ZodEnum<{
|
|
275
|
-
|
|
276
|
-
minimal: "minimal";
|
|
275
|
+
high: "high";
|
|
277
276
|
low: "low";
|
|
278
277
|
medium: "medium";
|
|
279
|
-
|
|
280
|
-
|
|
278
|
+
minimal: "minimal";
|
|
279
|
+
none: "none";
|
|
281
280
|
ultracode: "ultracode";
|
|
281
|
+
xhigh: "xhigh";
|
|
282
282
|
}>;
|
|
283
283
|
}, z.core.$strict>;
|
|
284
284
|
attempt: z.ZodObject<{
|
|
@@ -451,13 +451,13 @@ export declare const agentCandidateBenchmarkSuiteInputsSchema: z.ZodObject<{
|
|
|
451
451
|
model: z.ZodString;
|
|
452
452
|
snapshot: z.ZodString;
|
|
453
453
|
reasoningEffort: z.ZodEnum<{
|
|
454
|
-
|
|
455
|
-
minimal: "minimal";
|
|
454
|
+
high: "high";
|
|
456
455
|
low: "low";
|
|
457
456
|
medium: "medium";
|
|
458
|
-
|
|
459
|
-
|
|
457
|
+
minimal: "minimal";
|
|
458
|
+
none: "none";
|
|
460
459
|
ultracode: "ultracode";
|
|
460
|
+
xhigh: "xhigh";
|
|
461
461
|
}>;
|
|
462
462
|
}, z.core.$strict>;
|
|
463
463
|
attempt: z.ZodObject<{
|
|
@@ -605,13 +605,13 @@ export declare const agentCandidateBenchmarkSuiteInputsSchema: z.ZodObject<{
|
|
|
605
605
|
model: z.ZodString;
|
|
606
606
|
snapshot: z.ZodString;
|
|
607
607
|
reasoningEffort: z.ZodEnum<{
|
|
608
|
-
|
|
609
|
-
minimal: "minimal";
|
|
608
|
+
high: "high";
|
|
610
609
|
low: "low";
|
|
611
610
|
medium: "medium";
|
|
612
|
-
|
|
613
|
-
|
|
611
|
+
minimal: "minimal";
|
|
612
|
+
none: "none";
|
|
614
613
|
ultracode: "ultracode";
|
|
614
|
+
xhigh: "xhigh";
|
|
615
615
|
}>;
|
|
616
616
|
}, z.core.$strict>;
|
|
617
617
|
attempt: z.ZodObject<{
|
|
@@ -17,8 +17,8 @@ export declare const agentExecutionLimitObservationSchema: z.ZodObject<{
|
|
|
17
17
|
modelCalls: z.ZodNumber;
|
|
18
18
|
costUsdNanos: z.ZodNumber;
|
|
19
19
|
costProvenance: z.ZodEnum<{
|
|
20
|
-
observed: "observed";
|
|
21
20
|
estimated: "estimated";
|
|
21
|
+
observed: "observed";
|
|
22
22
|
}>;
|
|
23
23
|
}, z.core.$strict>;
|
|
24
24
|
}, z.core.$strict>;
|
|
@@ -98,46 +98,46 @@ export interface AgentExecutionPreparationReceipt {
|
|
|
98
98
|
}
|
|
99
99
|
export declare const agentExecutionPreparationAxisResultSchema: z.ZodObject<{
|
|
100
100
|
axis: z.ZodEnum<{
|
|
101
|
-
name: "name";
|
|
102
|
-
systemPrompt: "systemPrompt";
|
|
103
101
|
appendSystemPrompt: "appendSystemPrompt";
|
|
104
|
-
instructions: "instructions";
|
|
105
|
-
files: "files";
|
|
106
|
-
tools: "tools";
|
|
107
|
-
skills: "skills";
|
|
108
102
|
commands: "commands";
|
|
103
|
+
confidential: "confidential";
|
|
104
|
+
connections: "connections";
|
|
109
105
|
description: "description";
|
|
110
|
-
|
|
111
|
-
|
|
106
|
+
extensions: "extensions";
|
|
107
|
+
files: "files";
|
|
112
108
|
harness: "harness";
|
|
113
|
-
permissions: "permissions";
|
|
114
|
-
mcp: "mcp";
|
|
115
|
-
connections: "connections";
|
|
116
|
-
subagents: "subagents";
|
|
117
109
|
hooks: "hooks";
|
|
118
|
-
|
|
119
|
-
|
|
110
|
+
instructions: "instructions";
|
|
111
|
+
mcp: "mcp";
|
|
120
112
|
metadata: "metadata";
|
|
121
|
-
extensions: "extensions";
|
|
122
113
|
modelDefault: "modelDefault";
|
|
123
|
-
|
|
114
|
+
modelMetadata: "modelMetadata";
|
|
124
115
|
modelProvider: "modelProvider";
|
|
125
116
|
modelReasoningEffort: "modelReasoningEffort";
|
|
126
|
-
|
|
127
|
-
|
|
117
|
+
modelSmall: "modelSmall";
|
|
118
|
+
modes: "modes";
|
|
119
|
+
name: "name";
|
|
120
|
+
permissions: "permissions";
|
|
128
121
|
resourceAgents: "resourceAgents";
|
|
129
|
-
resourceInstructions: "resourceInstructions";
|
|
130
122
|
resourceFailOnError: "resourceFailOnError";
|
|
123
|
+
resourceInstructions: "resourceInstructions";
|
|
124
|
+
resourceTools: "resourceTools";
|
|
125
|
+
skills: "skills";
|
|
126
|
+
subagents: "subagents";
|
|
127
|
+
systemPrompt: "systemPrompt";
|
|
128
|
+
tags: "tags";
|
|
129
|
+
tools: "tools";
|
|
130
|
+
version: "version";
|
|
131
131
|
}>;
|
|
132
132
|
disposition: z.ZodEnum<{
|
|
133
|
-
unsupported: "unsupported";
|
|
134
133
|
behavior: "behavior";
|
|
135
134
|
control: "control";
|
|
136
135
|
overridden: "overridden";
|
|
136
|
+
unsupported: "unsupported";
|
|
137
137
|
}>;
|
|
138
138
|
owner: z.ZodEnum<{
|
|
139
|
-
runtime: "runtime";
|
|
140
139
|
executor: "executor";
|
|
140
|
+
runtime: "runtime";
|
|
141
141
|
}>;
|
|
142
142
|
mechanism: z.ZodString;
|
|
143
143
|
evidenceDigest: z.ZodOptional<z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>>;
|
|
@@ -146,27 +146,27 @@ export declare const agentExecutionPreparationAxisResultSchema: z.ZodObject<{
|
|
|
146
146
|
}, z.core.$strict>;
|
|
147
147
|
export declare const agentExecutionPreparationReasoningEffortSchema: z.ZodObject<{
|
|
148
148
|
requested: z.ZodEnum<{
|
|
149
|
-
|
|
150
|
-
minimal: "minimal";
|
|
149
|
+
high: "high";
|
|
151
150
|
low: "low";
|
|
152
151
|
medium: "medium";
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
minimal: "minimal";
|
|
153
|
+
none: "none";
|
|
155
154
|
ultracode: "ultracode";
|
|
155
|
+
xhigh: "xhigh";
|
|
156
156
|
}>;
|
|
157
157
|
resolved: z.ZodOptional<z.ZodEnum<{
|
|
158
|
-
|
|
159
|
-
minimal: "minimal";
|
|
158
|
+
high: "high";
|
|
160
159
|
low: "low";
|
|
161
160
|
medium: "medium";
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
minimal: "minimal";
|
|
162
|
+
none: "none";
|
|
164
163
|
ultracode: "ultracode";
|
|
164
|
+
xhigh: "xhigh";
|
|
165
165
|
}>>;
|
|
166
166
|
fidelity: z.ZodEnum<{
|
|
167
|
+
clamped: "clamped";
|
|
167
168
|
exact: "exact";
|
|
168
169
|
unsupported: "unsupported";
|
|
169
|
-
clamped: "clamped";
|
|
170
170
|
}>;
|
|
171
171
|
}, z.core.$strict>;
|
|
172
172
|
export declare const agentExecutionPreparationReceiptSchema: z.ZodObject<{
|
|
@@ -178,22 +178,22 @@ export declare const agentExecutionPreparationReceiptSchema: z.ZodObject<{
|
|
|
178
178
|
effectiveProfileDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
179
179
|
backend: z.ZodString;
|
|
180
180
|
harness: z.ZodEnum<{
|
|
181
|
+
acp: "acp";
|
|
182
|
+
amp: "amp";
|
|
181
183
|
"claude-code": "claude-code";
|
|
182
|
-
|
|
184
|
+
"cli-base": "cli-base";
|
|
183
185
|
codex: "codex";
|
|
184
|
-
|
|
185
|
-
"
|
|
186
|
-
|
|
187
|
-
prime: "prime";
|
|
186
|
+
cursor: "cursor";
|
|
187
|
+
"factory-droids": "factory-droids";
|
|
188
|
+
forge: "forge";
|
|
188
189
|
gemini: "gemini";
|
|
189
190
|
hermes: "hermes";
|
|
191
|
+
"kimi-code": "kimi-code";
|
|
192
|
+
nanoclaw: "nanoclaw";
|
|
190
193
|
openclaw: "openclaw";
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
cursor: "cursor";
|
|
195
|
-
acp: "acp";
|
|
196
|
-
"cli-base": "cli-base";
|
|
194
|
+
opencode: "opencode";
|
|
195
|
+
pi: "pi";
|
|
196
|
+
prime: "prime";
|
|
197
197
|
}>;
|
|
198
198
|
harnessVersion: z.ZodString;
|
|
199
199
|
resolvedModel: z.ZodObject<{
|
|
@@ -202,27 +202,27 @@ export declare const agentExecutionPreparationReceiptSchema: z.ZodObject<{
|
|
|
202
202
|
provider: z.ZodOptional<z.ZodString>;
|
|
203
203
|
reasoningEffort: z.ZodOptional<z.ZodObject<{
|
|
204
204
|
requested: z.ZodEnum<{
|
|
205
|
-
|
|
206
|
-
minimal: "minimal";
|
|
205
|
+
high: "high";
|
|
207
206
|
low: "low";
|
|
208
207
|
medium: "medium";
|
|
209
|
-
|
|
210
|
-
|
|
208
|
+
minimal: "minimal";
|
|
209
|
+
none: "none";
|
|
211
210
|
ultracode: "ultracode";
|
|
211
|
+
xhigh: "xhigh";
|
|
212
212
|
}>;
|
|
213
213
|
resolved: z.ZodOptional<z.ZodEnum<{
|
|
214
|
-
|
|
215
|
-
minimal: "minimal";
|
|
214
|
+
high: "high";
|
|
216
215
|
low: "low";
|
|
217
216
|
medium: "medium";
|
|
218
|
-
|
|
219
|
-
|
|
217
|
+
minimal: "minimal";
|
|
218
|
+
none: "none";
|
|
220
219
|
ultracode: "ultracode";
|
|
220
|
+
xhigh: "xhigh";
|
|
221
221
|
}>>;
|
|
222
222
|
fidelity: z.ZodEnum<{
|
|
223
|
+
clamped: "clamped";
|
|
223
224
|
exact: "exact";
|
|
224
225
|
unsupported: "unsupported";
|
|
225
|
-
clamped: "clamped";
|
|
226
226
|
}>;
|
|
227
227
|
}, z.core.$strict>>;
|
|
228
228
|
}, z.core.$strict>;
|
|
@@ -246,46 +246,46 @@ export declare const agentExecutionPreparationReceiptSchema: z.ZodObject<{
|
|
|
246
246
|
}, z.core.$strict>;
|
|
247
247
|
axisResults: z.ZodArray<z.ZodObject<{
|
|
248
248
|
axis: z.ZodEnum<{
|
|
249
|
-
name: "name";
|
|
250
|
-
systemPrompt: "systemPrompt";
|
|
251
249
|
appendSystemPrompt: "appendSystemPrompt";
|
|
252
|
-
instructions: "instructions";
|
|
253
|
-
files: "files";
|
|
254
|
-
tools: "tools";
|
|
255
|
-
skills: "skills";
|
|
256
250
|
commands: "commands";
|
|
251
|
+
confidential: "confidential";
|
|
252
|
+
connections: "connections";
|
|
257
253
|
description: "description";
|
|
258
|
-
|
|
259
|
-
|
|
254
|
+
extensions: "extensions";
|
|
255
|
+
files: "files";
|
|
260
256
|
harness: "harness";
|
|
261
|
-
permissions: "permissions";
|
|
262
|
-
mcp: "mcp";
|
|
263
|
-
connections: "connections";
|
|
264
|
-
subagents: "subagents";
|
|
265
257
|
hooks: "hooks";
|
|
266
|
-
|
|
267
|
-
|
|
258
|
+
instructions: "instructions";
|
|
259
|
+
mcp: "mcp";
|
|
268
260
|
metadata: "metadata";
|
|
269
|
-
extensions: "extensions";
|
|
270
261
|
modelDefault: "modelDefault";
|
|
271
|
-
|
|
262
|
+
modelMetadata: "modelMetadata";
|
|
272
263
|
modelProvider: "modelProvider";
|
|
273
264
|
modelReasoningEffort: "modelReasoningEffort";
|
|
274
|
-
|
|
275
|
-
|
|
265
|
+
modelSmall: "modelSmall";
|
|
266
|
+
modes: "modes";
|
|
267
|
+
name: "name";
|
|
268
|
+
permissions: "permissions";
|
|
276
269
|
resourceAgents: "resourceAgents";
|
|
277
|
-
resourceInstructions: "resourceInstructions";
|
|
278
270
|
resourceFailOnError: "resourceFailOnError";
|
|
271
|
+
resourceInstructions: "resourceInstructions";
|
|
272
|
+
resourceTools: "resourceTools";
|
|
273
|
+
skills: "skills";
|
|
274
|
+
subagents: "subagents";
|
|
275
|
+
systemPrompt: "systemPrompt";
|
|
276
|
+
tags: "tags";
|
|
277
|
+
tools: "tools";
|
|
278
|
+
version: "version";
|
|
279
279
|
}>;
|
|
280
280
|
disposition: z.ZodEnum<{
|
|
281
|
-
unsupported: "unsupported";
|
|
282
281
|
behavior: "behavior";
|
|
283
282
|
control: "control";
|
|
284
283
|
overridden: "overridden";
|
|
284
|
+
unsupported: "unsupported";
|
|
285
285
|
}>;
|
|
286
286
|
owner: z.ZodEnum<{
|
|
287
|
-
runtime: "runtime";
|
|
288
287
|
executor: "executor";
|
|
288
|
+
runtime: "runtime";
|
|
289
289
|
}>;
|
|
290
290
|
mechanism: z.ZodString;
|
|
291
291
|
evidenceDigest: z.ZodOptional<z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>>;
|
|
@@ -15,14 +15,12 @@ export declare const agentCandidateEvaluationPolicySchema: z.ZodObject<{
|
|
|
15
15
|
export declare const agentImprovementCostSchema: z.ZodObject<{
|
|
16
16
|
usd: z.ZodNumber;
|
|
17
17
|
provenance: z.ZodEnum<{
|
|
18
|
-
observed: "observed";
|
|
19
18
|
estimated: "estimated";
|
|
19
|
+
observed: "observed";
|
|
20
20
|
}>;
|
|
21
21
|
}, z.core.$strict>;
|
|
22
22
|
export declare const measuredComparisonCommonShape: {
|
|
23
23
|
overall: z.ZodObject<{
|
|
24
|
-
direction: z.ZodLiteral<"higher-is-better">;
|
|
25
|
-
unit: z.ZodLiteral<"score">;
|
|
26
24
|
baseline: z.ZodNumber;
|
|
27
25
|
candidate: z.ZodNumber;
|
|
28
26
|
delta: z.ZodNumber;
|
|
@@ -36,12 +34,10 @@ export declare const measuredComparisonCommonShape: {
|
|
|
36
34
|
}, z.core.$strict>;
|
|
37
35
|
n: z.ZodNumber;
|
|
38
36
|
name: z.ZodLiteral<"composite">;
|
|
39
|
-
}, z.core.$strict>;
|
|
40
|
-
objectives: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
41
|
-
kind: z.ZodLiteral<"objective">;
|
|
42
|
-
name: z.ZodString;
|
|
43
37
|
direction: z.ZodLiteral<"higher-is-better">;
|
|
44
38
|
unit: z.ZodLiteral<"score">;
|
|
39
|
+
}, z.core.$strict>;
|
|
40
|
+
objectives: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
45
41
|
baseline: z.ZodNumber;
|
|
46
42
|
candidate: z.ZodNumber;
|
|
47
43
|
delta: z.ZodNumber;
|
|
@@ -54,6 +50,10 @@ export declare const measuredComparisonCommonShape: {
|
|
|
54
50
|
resamples: z.ZodNumber;
|
|
55
51
|
}, z.core.$strict>;
|
|
56
52
|
n: z.ZodNumber;
|
|
53
|
+
kind: z.ZodLiteral<"objective">;
|
|
54
|
+
name: z.ZodString;
|
|
55
|
+
direction: z.ZodLiteral<"higher-is-better">;
|
|
56
|
+
unit: z.ZodLiteral<"score">;
|
|
57
57
|
availability: z.ZodLiteral<"measured">;
|
|
58
58
|
}, z.core.$strict>, z.ZodObject<{
|
|
59
59
|
kind: z.ZodLiteral<"objective">;
|
|
@@ -63,11 +63,6 @@ export declare const measuredComparisonCommonShape: {
|
|
|
63
63
|
availability: z.ZodLiteral<"unavailable">;
|
|
64
64
|
reason: z.ZodString;
|
|
65
65
|
}, z.core.$strict>, z.ZodObject<{
|
|
66
|
-
kind: z.ZodLiteral<"dimension">;
|
|
67
|
-
objective: z.ZodString;
|
|
68
|
-
name: z.ZodString;
|
|
69
|
-
direction: z.ZodLiteral<"higher-is-better">;
|
|
70
|
-
unit: z.ZodLiteral<"score">;
|
|
71
66
|
baseline: z.ZodNumber;
|
|
72
67
|
candidate: z.ZodNumber;
|
|
73
68
|
delta: z.ZodNumber;
|
|
@@ -80,6 +75,11 @@ export declare const measuredComparisonCommonShape: {
|
|
|
80
75
|
resamples: z.ZodNumber;
|
|
81
76
|
}, z.core.$strict>;
|
|
82
77
|
n: z.ZodNumber;
|
|
78
|
+
kind: z.ZodLiteral<"dimension">;
|
|
79
|
+
objective: z.ZodString;
|
|
80
|
+
name: z.ZodString;
|
|
81
|
+
direction: z.ZodLiteral<"higher-is-better">;
|
|
82
|
+
unit: z.ZodLiteral<"score">;
|
|
83
83
|
availability: z.ZodLiteral<"measured">;
|
|
84
84
|
}, z.core.$strict>, z.ZodObject<{
|
|
85
85
|
kind: z.ZodLiteral<"dimension">;
|
|
@@ -90,10 +90,6 @@ export declare const measuredComparisonCommonShape: {
|
|
|
90
90
|
availability: z.ZodLiteral<"unavailable">;
|
|
91
91
|
reason: z.ZodString;
|
|
92
92
|
}, z.core.$strict>, z.ZodObject<{
|
|
93
|
-
kind: z.ZodLiteral<"cost">;
|
|
94
|
-
name: z.ZodLiteral<"cost">;
|
|
95
|
-
direction: z.ZodLiteral<"lower-is-better">;
|
|
96
|
-
unit: z.ZodLiteral<"usd">;
|
|
97
93
|
baseline: z.ZodNumber;
|
|
98
94
|
candidate: z.ZodNumber;
|
|
99
95
|
delta: z.ZodNumber;
|
|
@@ -106,12 +102,12 @@ export declare const measuredComparisonCommonShape: {
|
|
|
106
102
|
resamples: z.ZodNumber;
|
|
107
103
|
}, z.core.$strict>;
|
|
108
104
|
n: z.ZodNumber;
|
|
105
|
+
kind: z.ZodLiteral<"cost">;
|
|
106
|
+
name: z.ZodLiteral<"cost">;
|
|
107
|
+
direction: z.ZodLiteral<"lower-is-better">;
|
|
108
|
+
unit: z.ZodLiteral<"usd">;
|
|
109
109
|
availability: z.ZodLiteral<"measured">;
|
|
110
110
|
}, z.core.$strict>, z.ZodObject<{
|
|
111
|
-
kind: z.ZodLiteral<"latency">;
|
|
112
|
-
name: z.ZodLiteral<"latency">;
|
|
113
|
-
direction: z.ZodLiteral<"lower-is-better">;
|
|
114
|
-
unit: z.ZodLiteral<"milliseconds">;
|
|
115
111
|
baseline: z.ZodNumber;
|
|
116
112
|
candidate: z.ZodNumber;
|
|
117
113
|
delta: z.ZodNumber;
|
|
@@ -124,6 +120,10 @@ export declare const measuredComparisonCommonShape: {
|
|
|
124
120
|
resamples: z.ZodNumber;
|
|
125
121
|
}, z.core.$strict>;
|
|
126
122
|
n: z.ZodNumber;
|
|
123
|
+
kind: z.ZodLiteral<"latency">;
|
|
124
|
+
name: z.ZodLiteral<"latency">;
|
|
125
|
+
direction: z.ZodLiteral<"lower-is-better">;
|
|
126
|
+
unit: z.ZodLiteral<"milliseconds">;
|
|
127
127
|
availability: z.ZodLiteral<"measured">;
|
|
128
128
|
}, z.core.$strict>]>>;
|
|
129
129
|
candidate: z.ZodOptional<z.ZodObject<{
|
|
@@ -132,11 +132,11 @@ export declare const measuredComparisonCommonShape: {
|
|
|
132
132
|
}, z.core.$strict>>;
|
|
133
133
|
decision: z.ZodObject<{
|
|
134
134
|
outcome: z.ZodEnum<{
|
|
135
|
-
|
|
135
|
+
arch_ceiling: "arch_ceiling";
|
|
136
136
|
hold: "hold";
|
|
137
|
-
need_more_work: "need_more_work";
|
|
138
137
|
model_ceiling: "model_ceiling";
|
|
139
|
-
|
|
138
|
+
need_more_work: "need_more_work";
|
|
139
|
+
ship: "ship";
|
|
140
140
|
}>;
|
|
141
141
|
reasons: z.ZodArray<z.ZodString>;
|
|
142
142
|
contributingChecks: z.ZodArray<z.ZodObject<{
|
|
@@ -169,8 +169,8 @@ export declare const measuredComparisonCommonShape: {
|
|
|
169
169
|
cost: z.ZodObject<{
|
|
170
170
|
usd: z.ZodNumber;
|
|
171
171
|
provenance: z.ZodEnum<{
|
|
172
|
-
observed: "observed";
|
|
173
172
|
estimated: "estimated";
|
|
173
|
+
observed: "observed";
|
|
174
174
|
}>;
|
|
175
175
|
}, z.core.$strict>;
|
|
176
176
|
}, z.core.$strict>;
|
|
@@ -180,8 +180,8 @@ export declare const measuredComparisonCommonShape: {
|
|
|
180
180
|
cost: z.ZodObject<{
|
|
181
181
|
usd: z.ZodNumber;
|
|
182
182
|
provenance: z.ZodEnum<{
|
|
183
|
-
observed: "observed";
|
|
184
183
|
estimated: "estimated";
|
|
184
|
+
observed: "observed";
|
|
185
185
|
}>;
|
|
186
186
|
}, z.core.$strict>;
|
|
187
187
|
}, z.core.$strict>;
|
|
@@ -190,8 +190,8 @@ export declare const measuredComparisonCommonShape: {
|
|
|
190
190
|
cost: z.ZodObject<{
|
|
191
191
|
usd: z.ZodNumber;
|
|
192
192
|
provenance: z.ZodEnum<{
|
|
193
|
-
observed: "observed";
|
|
194
193
|
estimated: "estimated";
|
|
194
|
+
observed: "observed";
|
|
195
195
|
}>;
|
|
196
196
|
}, z.core.$strict>;
|
|
197
197
|
}, z.core.$strict>;
|