@tangle-network/agent-interface 0.29.0 → 0.31.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/dist/agent-candidate-execution-plan-schema.d.ts +20 -0
- package/dist/agent-candidate-execution-plan-schema.js +1 -0
- package/dist/agent-candidate-outcome-schema.d.ts +4 -4
- package/dist/agent-candidate-profile-schema.d.ts +3 -28
- package/dist/agent-candidate-profile-schema.js +15 -27
- package/dist/agent-candidate-promotion-schema.d.ts +185 -94
- package/dist/agent-candidate-promotion-schema.js +116 -16
- package/dist/agent-candidate-receipt-schema.d.ts +10 -2
- package/dist/agent-candidate-schema.d.ts +1 -14
- package/dist/agent-candidate.d.ts +65 -3
- package/dist/agent-profile.d.ts +33 -9
- package/dist/harness-capabilities.d.ts +2 -2
- package/dist/harness-capabilities.js +23 -14
- package/dist/profile-schema.d.ts +56 -84
- package/dist/profile-schema.js +72 -29
- package/dist/profile-security.js +2 -0
- package/package.json +1 -1
|
@@ -93,6 +93,10 @@ export declare const agentCandidateProfilePlanMaterialSchema: z.ZodObject<{
|
|
|
93
93
|
kind: z.ZodLiteral<"public">;
|
|
94
94
|
value: z.ZodString;
|
|
95
95
|
}, z.core.$strict>>;
|
|
96
|
+
systemPrompt: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
kind: z.ZodLiteral<"public">;
|
|
98
|
+
value: z.ZodString;
|
|
99
|
+
}, z.core.$strict>>;
|
|
96
100
|
unsupported: z.ZodArray<z.ZodObject<{
|
|
97
101
|
dimension: z.ZodString;
|
|
98
102
|
reason: z.ZodString;
|
|
@@ -539,6 +543,10 @@ export declare const agentCandidateProfilePlanEvidenceSchema: z.ZodObject<{
|
|
|
539
543
|
dimension: string;
|
|
540
544
|
reason: string;
|
|
541
545
|
}[];
|
|
546
|
+
systemPrompt?: {
|
|
547
|
+
kind: "public";
|
|
548
|
+
value: string;
|
|
549
|
+
} | undefined;
|
|
542
550
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
543
551
|
sourceProfileDigest: `sha256:${string}`;
|
|
544
552
|
harness: "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
|
|
@@ -559,6 +567,10 @@ export declare const agentCandidateProfilePlanEvidenceSchema: z.ZodObject<{
|
|
|
559
567
|
dimension: string;
|
|
560
568
|
reason: string;
|
|
561
569
|
}[];
|
|
570
|
+
systemPrompt?: {
|
|
571
|
+
kind: "public";
|
|
572
|
+
value: string;
|
|
573
|
+
} | undefined;
|
|
562
574
|
}, unknown>>;
|
|
563
575
|
artifact: z.ZodUnion<readonly [z.ZodObject<{
|
|
564
576
|
locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -605,6 +617,10 @@ export declare const agentCandidateProfileActivationSchema: z.ZodObject<{
|
|
|
605
617
|
dimension: string;
|
|
606
618
|
reason: string;
|
|
607
619
|
}[];
|
|
620
|
+
systemPrompt?: {
|
|
621
|
+
kind: "public";
|
|
622
|
+
value: string;
|
|
623
|
+
} | undefined;
|
|
608
624
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
609
625
|
sourceProfileDigest: `sha256:${string}`;
|
|
610
626
|
harness: "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
|
|
@@ -625,6 +641,10 @@ export declare const agentCandidateProfileActivationSchema: z.ZodObject<{
|
|
|
625
641
|
dimension: string;
|
|
626
642
|
reason: string;
|
|
627
643
|
}[];
|
|
644
|
+
systemPrompt?: {
|
|
645
|
+
kind: "public";
|
|
646
|
+
value: string;
|
|
647
|
+
} | undefined;
|
|
628
648
|
}, unknown>>;
|
|
629
649
|
artifact: z.ZodUnion<readonly [z.ZodObject<{
|
|
630
650
|
locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -115,6 +115,7 @@ export const agentCandidateProfilePlanMaterialSchema = z
|
|
|
115
115
|
.strict()),
|
|
116
116
|
env: environmentConfigSchema,
|
|
117
117
|
flags: z.array(agentCandidateConfigValueSchema),
|
|
118
|
+
systemPrompt: agentCandidateConfigValueSchema.optional(),
|
|
118
119
|
unsupported: z
|
|
119
120
|
.array(z
|
|
120
121
|
.object({
|
|
@@ -12,8 +12,8 @@ export declare const agentCandidateModelSettlementCallSchema: z.ZodObject<{
|
|
|
12
12
|
generationId: z.ZodString;
|
|
13
13
|
traceSpanId: z.ZodString;
|
|
14
14
|
status: z.ZodEnum<{
|
|
15
|
-
succeeded: "succeeded";
|
|
16
15
|
failed: "failed";
|
|
16
|
+
succeeded: "succeeded";
|
|
17
17
|
}>;
|
|
18
18
|
model: z.ZodString;
|
|
19
19
|
startedAtMs: z.ZodNumber;
|
|
@@ -30,8 +30,8 @@ export declare const agentCandidateModelSettlementMaterialSchema: z.ZodObject<{
|
|
|
30
30
|
generationId: z.ZodString;
|
|
31
31
|
traceSpanId: z.ZodString;
|
|
32
32
|
status: z.ZodEnum<{
|
|
33
|
-
succeeded: "succeeded";
|
|
34
33
|
failed: "failed";
|
|
34
|
+
succeeded: "succeeded";
|
|
35
35
|
}>;
|
|
36
36
|
model: z.ZodString;
|
|
37
37
|
startedAtMs: z.ZodNumber;
|
|
@@ -79,7 +79,7 @@ export declare const agentCandidateModelSettlementEvidenceSchema: z.ZodObject<{
|
|
|
79
79
|
callId: string;
|
|
80
80
|
generationId: string;
|
|
81
81
|
traceSpanId: string;
|
|
82
|
-
status: "
|
|
82
|
+
status: "failed" | "succeeded";
|
|
83
83
|
model: string;
|
|
84
84
|
startedAtMs: number;
|
|
85
85
|
endedAtMs: number;
|
|
@@ -114,7 +114,7 @@ export declare const agentCandidateModelSettlementEvidenceSchema: z.ZodObject<{
|
|
|
114
114
|
callId: string;
|
|
115
115
|
generationId: string;
|
|
116
116
|
traceSpanId: string;
|
|
117
|
-
status: "
|
|
117
|
+
status: "failed" | "succeeded";
|
|
118
118
|
model: string;
|
|
119
119
|
startedAtMs: number;
|
|
120
120
|
endedAtMs: number;
|
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
command: z.ZodOptional<z.ZodString>;
|
|
5
|
-
args: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
-
kind: z.ZodLiteral<"public">;
|
|
7
|
-
value: z.ZodString;
|
|
8
|
-
}, z.core.$strict>>>;
|
|
9
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
10
|
-
kind: z.ZodLiteral<"public">;
|
|
11
|
-
value: z.ZodString;
|
|
12
|
-
}, z.core.$strict>>>;
|
|
13
|
-
cwd: z.ZodOptional<z.ZodString>;
|
|
14
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
-
}, z.core.$strict>;
|
|
2
|
+
import type { AgentCandidateMcpServer } from "./agent-candidate.js";
|
|
3
|
+
export declare const agentCandidateMcpServerSchema: z.ZodType<AgentCandidateMcpServer>;
|
|
16
4
|
export declare const agentCandidateHookCommandSchema: z.ZodObject<{
|
|
17
5
|
executable: z.ZodString;
|
|
18
6
|
args: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -78,20 +66,7 @@ export declare const agentCandidateProfileSchema: z.ZodObject<{
|
|
|
78
66
|
deny: "deny";
|
|
79
67
|
}>>]>>>;
|
|
80
68
|
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
81
|
-
mcp: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
82
|
-
transport: z.ZodOptional<z.ZodLiteral<"stdio">>;
|
|
83
|
-
command: z.ZodOptional<z.ZodString>;
|
|
84
|
-
args: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
85
|
-
kind: z.ZodLiteral<"public">;
|
|
86
|
-
value: z.ZodString;
|
|
87
|
-
}, z.core.$strict>>>;
|
|
88
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
89
|
-
kind: z.ZodLiteral<"public">;
|
|
90
|
-
value: z.ZodString;
|
|
91
|
-
}, z.core.$strict>>>;
|
|
92
|
-
cwd: z.ZodOptional<z.ZodString>;
|
|
93
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
-
}, z.core.$strict>>>;
|
|
69
|
+
mcp: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<AgentCandidateMcpServer, unknown, z.core.$ZodTypeInternals<AgentCandidateMcpServer, unknown>>>>;
|
|
95
70
|
subagents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
96
71
|
prompt: z.ZodOptional<z.ZodString>;
|
|
97
72
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -6,41 +6,29 @@ import { agentProfileConfidentialSchema, agentProfileModeSchema, agentProfileMod
|
|
|
6
6
|
const executableSchema = z
|
|
7
7
|
.string()
|
|
8
8
|
.refine(isSafeExecutable, "executable must be a canonical non-shell command");
|
|
9
|
-
|
|
10
|
-
.object({
|
|
9
|
+
const agentCandidateLocalMcpServerSchema = z.strictObject({
|
|
11
10
|
transport: z.literal("stdio").optional(),
|
|
12
|
-
command: executableSchema
|
|
11
|
+
command: executableSchema,
|
|
13
12
|
args: z.array(agentCandidateConfigValueSchema).optional(),
|
|
14
13
|
env: environmentConfigSchema.optional(),
|
|
15
14
|
cwd: z
|
|
16
15
|
.string()
|
|
17
16
|
.refine((value) => isSafeRelativePath(value, true), "MCP cwd must be a canonical workspace-relative path")
|
|
18
17
|
.optional(),
|
|
19
|
-
enabled: z.
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
server.cwd !== undefined) {
|
|
29
|
-
ctx.addIssue({
|
|
30
|
-
code: "custom",
|
|
31
|
-
message: "disabled MCP servers cannot carry process fields",
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
if (server.command === undefined) {
|
|
37
|
-
ctx.addIssue({
|
|
38
|
-
code: "custom",
|
|
39
|
-
path: ["command"],
|
|
40
|
-
message: "enabled stdio MCP servers require a command",
|
|
41
|
-
});
|
|
42
|
-
}
|
|
18
|
+
enabled: z.literal(true).optional(),
|
|
19
|
+
});
|
|
20
|
+
const agentCandidateDisabledMcpServerSchema = z.strictObject({
|
|
21
|
+
enabled: z.literal(false),
|
|
22
|
+
transport: z.undefined().optional(),
|
|
23
|
+
command: z.undefined().optional(),
|
|
24
|
+
args: z.undefined().optional(),
|
|
25
|
+
env: z.undefined().optional(),
|
|
26
|
+
cwd: z.undefined().optional(),
|
|
43
27
|
});
|
|
28
|
+
export const agentCandidateMcpServerSchema = z.union([
|
|
29
|
+
agentCandidateLocalMcpServerSchema,
|
|
30
|
+
agentCandidateDisabledMcpServerSchema,
|
|
31
|
+
]);
|
|
44
32
|
export const agentCandidateHookCommandSchema = z
|
|
45
33
|
.object({
|
|
46
34
|
executable: executableSchema,
|