@tangle-network/agent-interface 0.25.0 → 0.26.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 +2 -2
- package/dist/agent-candidate-artifact-schema.d.ts +5 -5
- package/dist/agent-candidate-artifact-schema.js +3 -3
- package/dist/agent-candidate-code-schema.d.ts +3 -3
- package/dist/agent-candidate-execution-plan-schema.d.ts +149 -46
- package/dist/agent-candidate-execution-plan-schema.js +81 -9
- package/dist/agent-candidate-lineage-schema.d.ts +90 -3
- package/dist/agent-candidate-lineage-schema.js +17 -3
- package/dist/agent-candidate-outcome-schema.d.ts +259 -395
- package/dist/agent-candidate-outcome-schema.js +75 -64
- package/dist/agent-candidate-promotion-schema.d.ts +2708 -0
- package/dist/agent-candidate-promotion-schema.js +409 -0
- package/dist/agent-candidate-receipt-schema.d.ts +238 -1333
- package/dist/agent-candidate-receipt-schema.js +7 -116
- package/dist/agent-candidate-schema-common.d.ts +2 -0
- package/dist/agent-candidate-schema-common.js +8 -0
- package/dist/agent-candidate-schema.d.ts +94 -7
- package/dist/agent-candidate-schema.js +1 -1
- package/dist/agent-candidate.d.ts +251 -87
- package/dist/agent-candidate.test-fixture.d.ts +45 -11
- package/dist/agent-candidate.test-fixture.js +46 -12
- package/dist/agent-profile.js +5 -20
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +3 -2
|
@@ -1,7 +1,70 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const agentCandidateKnowledgeSchema: z.ZodObject<{
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
candidate: z.ZodObject<{
|
|
4
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
5
|
+
kind: z.ZodLiteral<"knowledge-improvement-candidate">;
|
|
6
|
+
runId: z.ZodString;
|
|
7
|
+
candidateId: z.ZodString;
|
|
8
|
+
goalHash: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
9
|
+
baseHash: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
10
|
+
candidateHash: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
11
|
+
evidenceHash: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
12
|
+
promotionPlanHash: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
13
|
+
}, z.core.$strict>;
|
|
14
|
+
snapshot: z.ZodObject<{
|
|
15
|
+
schemaVersion: z.ZodLiteral<2>;
|
|
16
|
+
kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
|
|
17
|
+
digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
18
|
+
material: z.ZodObject<{
|
|
19
|
+
schemaVersion: z.ZodLiteral<2>;
|
|
20
|
+
kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
|
|
21
|
+
files: z.ZodArray<z.ZodObject<{
|
|
22
|
+
path: z.ZodString;
|
|
23
|
+
mode: z.ZodNumber;
|
|
24
|
+
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
25
|
+
byteLength: z.ZodNumber;
|
|
26
|
+
}, z.core.$strict>>;
|
|
27
|
+
}, z.core.$strict>;
|
|
28
|
+
manifest: z.ZodUnion<readonly [z.ZodObject<{
|
|
29
|
+
locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30
|
+
kind: z.ZodLiteral<"s3">;
|
|
31
|
+
bucket: z.ZodString;
|
|
32
|
+
key: z.ZodString;
|
|
33
|
+
region: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
35
|
+
kind: z.ZodLiteral<"ipfs">;
|
|
36
|
+
cid: z.ZodString;
|
|
37
|
+
path: z.ZodOptional<z.ZodString>;
|
|
38
|
+
}, z.core.$strict>], "kind">;
|
|
39
|
+
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
40
|
+
byteLength: z.ZodNumber;
|
|
41
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
42
|
+
encoding: z.ZodLiteral<"base64">;
|
|
43
|
+
content: z.ZodString;
|
|
44
|
+
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
45
|
+
byteLength: z.ZodNumber;
|
|
46
|
+
}, z.core.$strict>]>;
|
|
47
|
+
archive: z.ZodUnion<readonly [z.ZodObject<{
|
|
48
|
+
locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
49
|
+
kind: z.ZodLiteral<"s3">;
|
|
50
|
+
bucket: z.ZodString;
|
|
51
|
+
key: z.ZodString;
|
|
52
|
+
region: z.ZodOptional<z.ZodString>;
|
|
53
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
54
|
+
kind: z.ZodLiteral<"ipfs">;
|
|
55
|
+
cid: z.ZodString;
|
|
56
|
+
path: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, z.core.$strict>], "kind">;
|
|
58
|
+
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
59
|
+
byteLength: z.ZodNumber;
|
|
60
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
61
|
+
encoding: z.ZodLiteral<"base64">;
|
|
62
|
+
content: z.ZodString;
|
|
63
|
+
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
64
|
+
byteLength: z.ZodNumber;
|
|
65
|
+
}, z.core.$strict>]>;
|
|
66
|
+
}, z.core.$strict>;
|
|
67
|
+
retrievalConfig: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
5
68
|
locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6
69
|
kind: z.ZodLiteral<"s3">;
|
|
7
70
|
bucket: z.ZodString;
|
|
@@ -14,7 +77,31 @@ export declare const agentCandidateKnowledgeSchema: z.ZodObject<{
|
|
|
14
77
|
}, z.core.$strict>], "kind">;
|
|
15
78
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
16
79
|
byteLength: z.ZodNumber;
|
|
17
|
-
}, z.core.$strict
|
|
80
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
81
|
+
encoding: z.ZodLiteral<"base64">;
|
|
82
|
+
content: z.ZodString;
|
|
83
|
+
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
84
|
+
byteLength: z.ZodNumber;
|
|
85
|
+
}, z.core.$strict>]>>;
|
|
86
|
+
evaluation: z.ZodUnion<readonly [z.ZodObject<{
|
|
87
|
+
locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
88
|
+
kind: z.ZodLiteral<"s3">;
|
|
89
|
+
bucket: z.ZodString;
|
|
90
|
+
key: z.ZodString;
|
|
91
|
+
region: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
93
|
+
kind: z.ZodLiteral<"ipfs">;
|
|
94
|
+
cid: z.ZodString;
|
|
95
|
+
path: z.ZodOptional<z.ZodString>;
|
|
96
|
+
}, z.core.$strict>], "kind">;
|
|
97
|
+
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
98
|
+
byteLength: z.ZodNumber;
|
|
99
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
100
|
+
encoding: z.ZodLiteral<"base64">;
|
|
101
|
+
content: z.ZodString;
|
|
102
|
+
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
103
|
+
byteLength: z.ZodNumber;
|
|
104
|
+
}, z.core.$strict>]>;
|
|
18
105
|
}, z.core.$strict>;
|
|
19
106
|
export declare const agentCandidateMemoryPolicySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
20
107
|
mode: z.ZodLiteral<"disabled">;
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { agentCandidateArtifactRefSchema } from "./agent-candidate-artifact-schema.js";
|
|
2
|
+
import { agentCandidateArtifactRefSchema, agentCandidateCapturedArtifactSchema, agentCandidateWorkspaceSnapshotEvidenceSchema, } from "./agent-candidate-artifact-schema.js";
|
|
3
3
|
import { addDuplicateIssues, sha256DigestSchema, } from "./agent-candidate-schema-common.js";
|
|
4
4
|
export const agentCandidateKnowledgeSchema = z
|
|
5
5
|
.object({
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
candidate: z
|
|
7
|
+
.object({
|
|
8
|
+
schemaVersion: z.literal(1),
|
|
9
|
+
kind: z.literal("knowledge-improvement-candidate"),
|
|
10
|
+
runId: z.string().min(1),
|
|
11
|
+
candidateId: z.string().min(1),
|
|
12
|
+
goalHash: sha256DigestSchema,
|
|
13
|
+
baseHash: sha256DigestSchema,
|
|
14
|
+
candidateHash: sha256DigestSchema,
|
|
15
|
+
evidenceHash: sha256DigestSchema,
|
|
16
|
+
promotionPlanHash: sha256DigestSchema,
|
|
17
|
+
})
|
|
18
|
+
.strict(),
|
|
19
|
+
snapshot: agentCandidateWorkspaceSnapshotEvidenceSchema,
|
|
20
|
+
retrievalConfig: agentCandidateCapturedArtifactSchema.optional(),
|
|
21
|
+
evaluation: agentCandidateCapturedArtifactSchema,
|
|
8
22
|
})
|
|
9
23
|
.strict();
|
|
10
24
|
export const agentCandidateMemoryPolicySchema = z.discriminatedUnion("mode", [
|