@tangle-network/agent-interface 0.27.2 → 0.29.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.
Files changed (31) hide show
  1. package/dist/agent-candidate-artifact-schema.d.ts +0 -3
  2. package/dist/agent-candidate-artifact-schema.js +0 -2
  3. package/dist/agent-candidate-code-schema.d.ts +0 -10
  4. package/dist/agent-candidate-code-schema.js +0 -1
  5. package/dist/agent-candidate-execution-plan-schema.d.ts +173 -382
  6. package/dist/agent-candidate-execution-plan-schema.js +100 -138
  7. package/dist/agent-candidate-lineage-schema.d.ts +1 -31
  8. package/dist/agent-candidate-lineage-schema.js +3 -34
  9. package/dist/agent-candidate-outcome-schema.d.ts +48 -36
  10. package/dist/agent-candidate-outcome-schema.js +23 -32
  11. package/dist/agent-candidate-promotion-schema.d.ts +11021 -2411
  12. package/dist/agent-candidate-promotion-schema.js +495 -109
  13. package/dist/agent-candidate-receipt-schema.d.ts +260 -344
  14. package/dist/agent-candidate-receipt-schema.js +82 -11
  15. package/dist/agent-candidate-schema-common.d.ts +8 -0
  16. package/dist/agent-candidate-schema-common.js +35 -1
  17. package/dist/agent-candidate-schema.d.ts +2 -44
  18. package/dist/agent-candidate-schema.js +3 -29
  19. package/dist/agent-candidate-task-schema.d.ts +643 -0
  20. package/dist/agent-candidate-task-schema.js +191 -0
  21. package/dist/agent-candidate.d.ts +173 -94
  22. package/dist/agent-candidate.test-fixture.d.ts +0 -32
  23. package/dist/agent-candidate.test-fixture.js +0 -32
  24. package/dist/index.d.ts +0 -1
  25. package/dist/index.js +0 -1
  26. package/dist/profile-diff.d.ts +0 -1
  27. package/dist/profile-schema.d.ts +9 -0
  28. package/dist/profile-schema.js +14 -6
  29. package/package.json +2 -2
  30. package/dist/agent-candidate-compat.d.ts +0 -1918
  31. package/dist/agent-candidate-compat.js +0 -340
@@ -1,7 +1,6 @@
1
1
  export declare const candidateSha: (digit: string) => `sha256:${string}`;
2
2
  export declare const candidateGit: (digit: string) => string;
3
3
  export declare function candidateFixture(): {
4
- schemaVersion: 2;
5
4
  kind: "agent-candidate-bundle";
6
5
  digestAlgorithm: "rfc8785-sha256";
7
6
  profile: {
@@ -81,11 +80,9 @@ export declare function candidateFixture(): {
81
80
  };
82
81
  };
83
82
  workspace: {
84
- schemaVersion: 2;
85
83
  kind: "agent-candidate-workspace-snapshot";
86
84
  digest: `sha256:${string}`;
87
85
  material: {
88
- schemaVersion: 2;
89
86
  kind: "agent-candidate-workspace-manifest";
90
87
  files: {
91
88
  path: string;
@@ -115,7 +112,6 @@ export declare function candidateFixture(): {
115
112
  };
116
113
  knowledge: {
117
114
  candidate: {
118
- schemaVersion: 1;
119
115
  kind: "knowledge-improvement-candidate";
120
116
  runId: string;
121
117
  candidateId: string;
@@ -126,11 +122,9 @@ export declare function candidateFixture(): {
126
122
  promotionPlanHash: `sha256:${string}`;
127
123
  };
128
124
  snapshot: {
129
- schemaVersion: 2;
130
125
  kind: "agent-candidate-workspace-snapshot";
131
126
  digest: `sha256:${string}`;
132
127
  material: {
133
- schemaVersion: 2;
134
128
  kind: "agent-candidate-workspace-manifest";
135
129
  files: never[];
136
130
  };
@@ -164,31 +158,5 @@ export declare function candidateFixture(): {
164
158
  mode: "isolated";
165
159
  scope: "task";
166
160
  };
167
- lineage: {
168
- source: "optimizer";
169
- parentDigests: `sha256:${string}`[];
170
- runIds: string[];
171
- profileDiffIds: string[];
172
- modelSnapshots: string[];
173
- benchmark: {
174
- name: string;
175
- version: string;
176
- splitDigest: `sha256:${string}`;
177
- };
178
- spend: {
179
- proposal: {
180
- costUsd: number;
181
- inputTokens: number;
182
- outputTokens: number;
183
- modelCalls: number;
184
- };
185
- evaluation: {
186
- costUsd: number;
187
- inputTokens: number;
188
- outputTokens: number;
189
- modelCalls: number;
190
- };
191
- };
192
- };
193
161
  digest: `sha256:${string}`;
194
162
  };
@@ -3,7 +3,6 @@ export const candidateSha = (digit) => `sha256:${digit.repeat(64)}`;
3
3
  export const candidateGit = (digit) => digit.repeat(40);
4
4
  export function candidateFixture() {
5
5
  return defineAgentCandidateBundle({
6
- schemaVersion: 2,
7
6
  kind: "agent-candidate-bundle",
8
7
  digestAlgorithm: "rfc8785-sha256",
9
8
  profile: {
@@ -69,11 +68,9 @@ export function candidateFixture() {
69
68
  container: { image: "node:22", indexDigest: candidateSha("6") },
70
69
  },
71
70
  workspace: {
72
- schemaVersion: 2,
73
71
  kind: "agent-candidate-workspace-snapshot",
74
72
  digest: candidateSha("c"),
75
73
  material: {
76
- schemaVersion: 2,
77
74
  kind: "agent-candidate-workspace-manifest",
78
75
  files: [
79
76
  {
@@ -105,7 +102,6 @@ export function candidateFixture() {
105
102
  },
106
103
  knowledge: {
107
104
  candidate: {
108
- schemaVersion: 1,
109
105
  kind: "knowledge-improvement-candidate",
110
106
  runId: "knowledge-run-17",
111
107
  candidateId: "knowledge-17",
@@ -116,11 +112,9 @@ export function candidateFixture() {
116
112
  promotionPlanHash: candidateSha("9"),
117
113
  },
118
114
  snapshot: {
119
- schemaVersion: 2,
120
115
  kind: "agent-candidate-workspace-snapshot",
121
116
  digest: candidateSha("7"),
122
117
  material: {
123
- schemaVersion: 2,
124
118
  kind: "agent-candidate-workspace-manifest",
125
119
  files: [],
126
120
  },
@@ -154,32 +148,6 @@ export function candidateFixture() {
154
148
  mode: "isolated",
155
149
  scope: "task",
156
150
  },
157
- lineage: {
158
- source: "optimizer",
159
- parentDigests: [candidateSha("8")],
160
- runIds: ["r360-search"],
161
- profileDiffIds: ["profile-diff-3"],
162
- modelSnapshots: ["openai/gpt-5.4-2026-06-15"],
163
- benchmark: {
164
- name: "pier",
165
- version: "0.3",
166
- splitDigest: candidateSha("9"),
167
- },
168
- spend: {
169
- proposal: {
170
- costUsd: 3.5,
171
- inputTokens: 100,
172
- outputTokens: 20,
173
- modelCalls: 2,
174
- },
175
- evaluation: {
176
- costUsd: 9,
177
- inputTokens: 900,
178
- outputTokens: 200,
179
- modelCalls: 8,
180
- },
181
- },
182
- },
183
151
  digest: candidateSha("a"),
184
152
  });
185
153
  }
package/dist/index.d.ts CHANGED
@@ -614,7 +614,6 @@ export * from "./interaction.js";
614
614
  export * from "./agent-candidate.js";
615
615
  export * from "./agent-candidate-schema.js";
616
616
  export * from "./agent-candidate-promotion-schema.js";
617
- export * from "./agent-candidate-compat.js";
618
617
  export * from "./agent-profile.js";
619
618
  export * from "./profile-diff.js";
620
619
  export * from "./harness.js";
package/dist/index.js CHANGED
@@ -127,7 +127,6 @@ export * from "./interaction.js";
127
127
  export * from "./agent-candidate.js";
128
128
  export * from "./agent-candidate-schema.js";
129
129
  export * from "./agent-candidate-promotion-schema.js";
130
- export * from "./agent-candidate-compat.js";
131
130
  export * from "./agent-profile.js";
132
131
  export * from "./profile-diff.js";
133
132
  export * from "./harness.js";
@@ -42,7 +42,6 @@ export interface AgentProfileDiffRemoval {
42
42
  * AgentProfile instead of a benchmark-specific file mount.
43
43
  */
44
44
  export interface AgentProfileDiff {
45
- schemaVersion: 1;
46
45
  kind: "agent-profile-diff";
47
46
  id?: string;
48
47
  title?: string;
@@ -115,6 +115,15 @@ export declare const agentProfileResourcesSchema: z.ZodObject<{
115
115
  }, z.core.$strip>]>]>>;
116
116
  failOnError: z.ZodOptional<z.ZodBoolean>;
117
117
  }, z.core.$strip>;
118
+ export declare const reasoningEffortSchema: z.ZodEnum<{
119
+ none: "none";
120
+ minimal: "minimal";
121
+ low: "low";
122
+ medium: "medium";
123
+ high: "high";
124
+ xhigh: "xhigh";
125
+ ultracode: "ultracode";
126
+ }>;
118
127
  export declare const agentProfileModelHintsSchema: z.ZodObject<{
119
128
  default: z.ZodOptional<z.ZodString>;
120
129
  small: z.ZodOptional<z.ZodString>;
@@ -39,13 +39,20 @@ export const agentProfileResourcesSchema = z.object({
39
39
  instructions: z.union([z.string(), agentProfileResourceRefSchema]).optional(),
40
40
  failOnError: z.boolean().optional(),
41
41
  });
42
+ export const reasoningEffortSchema = z.enum([
43
+ "none",
44
+ "minimal",
45
+ "low",
46
+ "medium",
47
+ "high",
48
+ "xhigh",
49
+ "ultracode",
50
+ ]);
42
51
  export const agentProfileModelHintsSchema = z.object({
43
52
  default: z.string().optional(),
44
53
  small: z.string().optional(),
45
54
  provider: z.string().optional(),
46
- reasoningEffort: z
47
- .enum(["none", "minimal", "low", "medium", "high", "xhigh", "ultracode"])
48
- .optional(),
55
+ reasoningEffort: reasoningEffortSchema.optional(),
49
56
  metadata: z.record(z.string(), z.unknown()).optional(),
50
57
  });
51
58
  export const agentProfilePromptSchema = z.object({
@@ -159,8 +166,8 @@ export const agentProfileSchema = z.object({
159
166
  .record(z.string(), z.union([z.record(z.string(), z.unknown()), z.undefined()]))
160
167
  .optional(),
161
168
  });
162
- export const agentProfileDiffSchema = z.object({
163
- schemaVersion: z.literal(1),
169
+ export const agentProfileDiffSchema = z
170
+ .object({
164
171
  kind: z.literal("agent-profile-diff"),
165
172
  id: z.string().min(1).optional(),
166
173
  title: z.string().min(1).optional(),
@@ -182,7 +189,8 @@ export const agentProfileDiffSchema = z.object({
182
189
  set: agentProfileSchema.optional(),
183
190
  remove: agentProfileDiffRemovalSchema.optional(),
184
191
  metadata: z.record(z.string(), z.unknown()).optional(),
185
- });
192
+ })
193
+ .strict();
186
194
  const _agentProfileSchemaMatchesInterface = true;
187
195
  void _agentProfileSchemaMatchesInterface;
188
196
  export const capabilitySchema = z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-interface",
3
- "version": "0.27.2",
3
+ "version": "0.29.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "license": "MIT",
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "scripts": {
45
45
  "build": "tsc -p tsconfig.json",
46
- "check-types": "tsc --noEmit",
46
+ "check-types": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json",
47
47
  "clean": "rm -rf dist tsconfig.tsbuildinfo",
48
48
  "test": "vitest run",
49
49
  "test:watch": "vitest"