@openpond/evals 0.12.3 → 0.12.5
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/LEARNING.md +43 -0
- package/dist/javascript-isolate-process-entry.js +4 -1
- package/dist/javascript-isolate-process-source.js +1 -1
- package/dist/javascript-isolate-process.js +36 -2
- package/dist/javascript-isolate.js +8 -2
- package/dist/javascript-verifier-node.js +1 -0
- package/dist/javascript-verifier-worker-source.js +1 -1
- package/dist/learning/index.js +1 -0
- package/dist/learning/iteration-dispatch-commands.js +1 -1
- package/dist/learning/iteration-dispatch-contracts.js +27 -0
- package/dist/learning/iteration-dispatch-deferral.js +28 -0
- package/dist/learning/iteration-dispatch-worker.js +34 -5
- package/dist/tool-learning/actions.js +62 -0
- package/dist/tool-learning/consultation.js +198 -0
- package/dist/tool-learning/episodes.js +284 -0
- package/dist/tool-learning/index.js +6 -0
- package/dist/tool-learning/installations.js +151 -0
- package/dist/tool-learning/policy.js +38 -0
- package/dist/tool-learning/primitives.js +87 -0
- package/dist/types/javascript-isolate-process.d.ts +7 -0
- package/dist/types/javascript-isolate-process.d.ts.map +1 -1
- package/dist/types/javascript-isolate.d.ts +3 -1
- package/dist/types/javascript-isolate.d.ts.map +1 -1
- package/dist/types/javascript-verifier-node.d.ts +1 -0
- package/dist/types/javascript-verifier-node.d.ts.map +1 -1
- package/dist/types/learning/index.d.ts +1 -0
- package/dist/types/learning/index.d.ts.map +1 -1
- package/dist/types/learning/iteration-dispatch-contracts.d.ts +45 -0
- package/dist/types/learning/iteration-dispatch-contracts.d.ts.map +1 -1
- package/dist/types/learning/iteration-dispatch-deferral.d.ts +71 -0
- package/dist/types/learning/iteration-dispatch-deferral.d.ts.map +1 -0
- package/dist/types/learning/iteration-dispatch-worker.d.ts +7 -2
- package/dist/types/learning/iteration-dispatch-worker.d.ts.map +1 -1
- package/dist/types/learning/repository.d.ts +20 -0
- package/dist/types/learning/repository.d.ts.map +1 -1
- package/dist/types/learning/transport.d.ts +20 -0
- package/dist/types/learning/transport.d.ts.map +1 -1
- package/dist/types/tool-learning/actions.d.ts +54 -0
- package/dist/types/tool-learning/actions.d.ts.map +1 -0
- package/dist/types/tool-learning/consultation.d.ts +229 -0
- package/dist/types/tool-learning/consultation.d.ts.map +1 -0
- package/dist/types/tool-learning/episodes.d.ts +1058 -0
- package/dist/types/tool-learning/episodes.d.ts.map +1 -0
- package/dist/types/tool-learning/index.d.ts +7 -0
- package/dist/types/tool-learning/index.d.ts.map +1 -0
- package/dist/types/tool-learning/installations.d.ts +296 -0
- package/dist/types/tool-learning/installations.d.ts.map +1 -0
- package/dist/types/tool-learning/policy.d.ts +3 -0
- package/dist/types/tool-learning/policy.d.ts.map +1 -0
- package/dist/types/tool-learning/primitives.d.ts +73 -0
- package/dist/types/tool-learning/primitives.d.ts.map +1 -0
- package/package.json +5 -1
- package/schemas/learning/v1/dispatch.schema.json +100 -1
|
@@ -6,6 +6,30 @@ export declare const LearningIterationSubmissionSchema: z.ZodObject<{
|
|
|
6
6
|
protocol: z.ZodString;
|
|
7
7
|
payload: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
8
8
|
}, z.core.$strict>;
|
|
9
|
+
/** Normal capacity/calendar waits are not failed execution attempts. */
|
|
10
|
+
export declare const LearningIterationAdmissionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11
|
+
status: z.ZodLiteral<"ready">;
|
|
12
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
13
|
+
status: z.ZodLiteral<"deferred">;
|
|
14
|
+
retryAt: z.ZodString;
|
|
15
|
+
reason: z.ZodString;
|
|
16
|
+
}, z.core.$strict>], "status">;
|
|
17
|
+
/** The execution owner has durably rejected/fenced this exact attempt before
|
|
18
|
+
* creating an execution or spending. A timeout/absence read is not this proof. */
|
|
19
|
+
export declare const LearningIterationSubmissionDeferralSchema: z.ZodObject<{
|
|
20
|
+
scope: z.ZodString;
|
|
21
|
+
dispatchId: z.ZodString;
|
|
22
|
+
submissionHash: z.ZodString;
|
|
23
|
+
leaseGeneration: z.ZodNumber;
|
|
24
|
+
status: z.ZodLiteral<"deferred">;
|
|
25
|
+
retryAt: z.ZodString;
|
|
26
|
+
reason: z.ZodString;
|
|
27
|
+
receipt: z.ZodObject<{
|
|
28
|
+
id: z.ZodString;
|
|
29
|
+
contentHash: z.ZodString;
|
|
30
|
+
}, z.core.$strict>;
|
|
31
|
+
}, z.core.$strict>;
|
|
32
|
+
export type LearningIterationSubmissionDeferral = z.infer<typeof LearningIterationSubmissionDeferralSchema>;
|
|
9
33
|
export declare const LearningIterationDispatchSchema: z.ZodObject<{
|
|
10
34
|
schemaVersion: z.ZodLiteral<"openpond.learningIterationDispatch.v1">;
|
|
11
35
|
id: z.ZodString;
|
|
@@ -50,6 +74,26 @@ export declare const LearningIterationDispatchSchema: z.ZodObject<{
|
|
|
50
74
|
leaseExpiresAt: z.ZodNullable<z.ZodString>;
|
|
51
75
|
consecutiveFailures: z.ZodNumber;
|
|
52
76
|
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
77
|
+
admission: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
78
|
+
status: z.ZodLiteral<"ready">;
|
|
79
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
80
|
+
status: z.ZodLiteral<"deferred">;
|
|
81
|
+
retryAt: z.ZodString;
|
|
82
|
+
reason: z.ZodString;
|
|
83
|
+
}, z.core.$strict>], "status">>>;
|
|
84
|
+
lastSubmissionDeferral: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
scope: z.ZodString;
|
|
86
|
+
dispatchId: z.ZodString;
|
|
87
|
+
submissionHash: z.ZodString;
|
|
88
|
+
leaseGeneration: z.ZodNumber;
|
|
89
|
+
status: z.ZodLiteral<"deferred">;
|
|
90
|
+
retryAt: z.ZodString;
|
|
91
|
+
reason: z.ZodString;
|
|
92
|
+
receipt: z.ZodObject<{
|
|
93
|
+
id: z.ZodString;
|
|
94
|
+
contentHash: z.ZodString;
|
|
95
|
+
}, z.core.$strict>;
|
|
96
|
+
}, z.core.$strict>>;
|
|
53
97
|
lastError: z.ZodNullable<z.ZodString>;
|
|
54
98
|
createdAt: z.ZodString;
|
|
55
99
|
updatedAt: z.ZodString;
|
|
@@ -90,4 +134,5 @@ export declare const LearningIterationObservationSchema: z.ZodObject<{
|
|
|
90
134
|
export type LearningIterationSubmission = z.infer<typeof LearningIterationSubmissionSchema>;
|
|
91
135
|
export type LearningIterationDispatch = z.infer<typeof LearningIterationDispatchSchema>;
|
|
92
136
|
export type LearningIterationObservation = z.infer<typeof LearningIterationObservationSchema>;
|
|
137
|
+
export type LearningIterationAdmission = z.infer<typeof LearningIterationAdmissionSchema>;
|
|
93
138
|
//# sourceMappingURL=iteration-dispatch-contracts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iteration-dispatch-contracts.d.ts","sourceRoot":"","sources":["../../../src/learning/iteration-dispatch-contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;kFACkF;AAClF,eAAO,MAAM,iCAAiC;;;;kBAInC,CAAC;AAEZ,eAAO,MAAM,+BAA+B
|
|
1
|
+
{"version":3,"file":"iteration-dispatch-contracts.d.ts","sourceRoot":"","sources":["../../../src/learning/iteration-dispatch-contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;kFACkF;AAClF,eAAO,MAAM,iCAAiC;;;;kBAInC,CAAC;AAEZ,wEAAwE;AACxE,eAAO,MAAM,gCAAgC;;;;;;8BAI3C,CAAC;AAEH;kFACkF;AAClF,eAAO,MAAM,yCAAyC;;;;;;;;;;;;kBAS3C,CAAC;AACZ,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,CAAC;AAE5G,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA0C1C,CAAC;AAEH;wEACwE;AACxE,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAkB7C,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { type LearningIteration } from "./contracts.js";
|
|
2
|
+
import { type LearningIterationDispatch } from "./iteration-dispatch-contracts.js";
|
|
3
|
+
import type { LearningTransaction } from "./repository.js";
|
|
4
|
+
/** Call under the dispatch's scope lock. The execution owner must first fence
|
|
5
|
+
* this attempt and prove no execution/charge exists. When the owner shares this
|
|
6
|
+
* repository, commit this mutation in its native admission transaction instead:
|
|
7
|
+
* late submits then fail the same generation fence as lease replacement.
|
|
8
|
+
*/
|
|
9
|
+
export declare function deferLearningIterationSubmission(tx: LearningTransaction, scope: string, current: LearningIterationDispatch, iteration: LearningIteration, value: unknown, now: string): Promise<{
|
|
10
|
+
schemaVersion: "openpond.learningIterationDispatch.v1";
|
|
11
|
+
id: string;
|
|
12
|
+
revision: number;
|
|
13
|
+
iterationId: string;
|
|
14
|
+
chainId: string;
|
|
15
|
+
policy: {
|
|
16
|
+
id: string;
|
|
17
|
+
contentHash: string;
|
|
18
|
+
revision: number;
|
|
19
|
+
};
|
|
20
|
+
batch: {
|
|
21
|
+
id: string;
|
|
22
|
+
contentHash: string;
|
|
23
|
+
revision: number;
|
|
24
|
+
};
|
|
25
|
+
state: "blocked" | "prepared" | "preparing" | "settled" | "submitted";
|
|
26
|
+
submission: {
|
|
27
|
+
provider: string;
|
|
28
|
+
protocol: string;
|
|
29
|
+
payload: Record<string, import("zod").JSONType>;
|
|
30
|
+
} | null;
|
|
31
|
+
submissionHash: string | null;
|
|
32
|
+
submissionStartedAt: string | null;
|
|
33
|
+
execution: {
|
|
34
|
+
id: string;
|
|
35
|
+
contentHash: string;
|
|
36
|
+
} | null;
|
|
37
|
+
terminalReceipt: {
|
|
38
|
+
id: string;
|
|
39
|
+
contentHash: string;
|
|
40
|
+
} | null;
|
|
41
|
+
cancelRequestedAt: string | null;
|
|
42
|
+
leaseOwner: string | null;
|
|
43
|
+
leaseGeneration: number;
|
|
44
|
+
leaseExpiresAt: string | null;
|
|
45
|
+
consecutiveFailures: number;
|
|
46
|
+
nextAttemptAt: string | null;
|
|
47
|
+
admission?: {
|
|
48
|
+
status: "ready";
|
|
49
|
+
} | {
|
|
50
|
+
status: "deferred";
|
|
51
|
+
retryAt: string;
|
|
52
|
+
reason: string;
|
|
53
|
+
} | null | undefined;
|
|
54
|
+
lastSubmissionDeferral?: {
|
|
55
|
+
scope: string;
|
|
56
|
+
dispatchId: string;
|
|
57
|
+
submissionHash: string;
|
|
58
|
+
leaseGeneration: number;
|
|
59
|
+
status: "deferred";
|
|
60
|
+
retryAt: string;
|
|
61
|
+
reason: string;
|
|
62
|
+
receipt: {
|
|
63
|
+
id: string;
|
|
64
|
+
contentHash: string;
|
|
65
|
+
};
|
|
66
|
+
} | undefined;
|
|
67
|
+
lastError: string | null;
|
|
68
|
+
createdAt: string;
|
|
69
|
+
updatedAt: string;
|
|
70
|
+
}>;
|
|
71
|
+
//# sourceMappingURL=iteration-dispatch-deferral.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iteration-dispatch-deferral.d.ts","sourceRoot":"","sources":["../../../src/learning/iteration-dispatch-deferral.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEjF,OAAO,EACL,KAAK,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3D;;;;GAIG;AACH,wBAAsB,gCAAgC,CAAC,EAAE,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,EAC3F,OAAO,EAAE,yBAAyB,EAAE,SAAS,EAAE,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmB9F"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type LearningIteration, type LearningPolicy, type TaskBatch } from "./contracts.js";
|
|
2
|
-
import { type LearningIterationDispatch, type LearningIterationObservation, type LearningIterationSubmission } from "./iteration-dispatch-contracts.js";
|
|
2
|
+
import { type LearningIterationAdmission, type LearningIterationDispatch, type LearningIterationObservation, type LearningIterationSubmission } from "./iteration-dispatch-contracts.js";
|
|
3
3
|
import { type LearningRepository } from "./repository.js";
|
|
4
|
+
import { type LearningIterationSubmissionDeferral } from "./iteration-dispatch-contracts.js";
|
|
4
5
|
export type LearningIterationExecutionContext = {
|
|
5
6
|
scope: string;
|
|
6
7
|
dispatch: LearningIterationDispatch;
|
|
@@ -12,12 +13,16 @@ export type LearningIterationExecutionContext = {
|
|
|
12
13
|
export interface LearningIterationExecutor {
|
|
13
14
|
/** Resolve immutable inputs and validate compatibility. Must not launch compute. */
|
|
14
15
|
prepare(input: LearningIterationExecutionContext): Promise<LearningIterationSubmission>;
|
|
16
|
+
/** Check calendar/capacity for the persisted submission before its first
|
|
17
|
+
* attempt. May reserve admission custody, but must not create an execution,
|
|
18
|
+
* launch compute or spend. Submit must still enforce current authority. */
|
|
19
|
+
admit?(input: LearningIterationExecutionContext): Promise<LearningIterationAdmission>;
|
|
15
20
|
/** Return the existing execution under dispatch.id; null means not found.
|
|
16
21
|
* An unavailable owner must throw, never report absence. */
|
|
17
22
|
reconcile(input: LearningIterationExecutionContext): Promise<LearningIterationObservation | null>;
|
|
18
23
|
/** Idempotently submit exactly dispatch.submission under dispatch.id, across
|
|
19
24
|
* crashes, lease owners and retries. Never create a different Job on retry. */
|
|
20
|
-
submit(input: LearningIterationExecutionContext): Promise<LearningIterationObservation>;
|
|
25
|
+
submit(input: LearningIterationExecutionContext): Promise<LearningIterationObservation | LearningIterationSubmissionDeferral>;
|
|
21
26
|
/** Cancel by dispatch identity, including an ambiguous initial submission.
|
|
22
27
|
* Terminal confirmation MUST fence late submits under that identity, including
|
|
23
28
|
* when no Job was created. A network abort alone is not cleanup confirmation. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iteration-dispatch-worker.d.ts","sourceRoot":"","sources":["../../../src/learning/iteration-dispatch-worker.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,iBAAiB,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGtH,OAAO,EAEL,KAAK,yBAAyB,EAAE,KAAK,4BAA4B,EAAE,KAAK,2BAA2B,
|
|
1
|
+
{"version":3,"file":"iteration-dispatch-worker.d.ts","sourceRoot":"","sources":["../../../src/learning/iteration-dispatch-worker.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,iBAAiB,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGtH,OAAO,EAEL,KAAK,0BAA0B,EAAE,KAAK,yBAAyB,EAAE,KAAK,4BAA4B,EAAE,KAAK,2BAA2B,EACrI,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAmD,KAAK,kBAAkB,EAA4B,MAAM,iBAAiB,CAAC;AAErI,OAAO,EAA6C,KAAK,mCAAmC,EAAE,MAAM,mCAAmC,CAAC;AAExI,M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
|
consecutiveFailures: z.ZodNumber;
|
|
1741
1741
|
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
1742
|
+
admission: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1743
|
+
status: z.ZodLiteral<"ready">;
|
|
1744
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1745
|
+
status: z.ZodLiteral<"deferred">;
|
|
1746
|
+
retryAt: z.ZodString;
|
|
1747
|
+
reason: z.ZodString;
|
|
1748
|
+
}, z.core.$strict>], "status">>>;
|
|
1749
|
+
lastSubmissionDeferral: z.ZodOptional<z.ZodObject<{
|
|
1750
|
+
scope: z.ZodString;
|
|
1751
|
+
dispatchId: z.ZodString;
|
|
1752
|
+
submissionHash: z.ZodString;
|
|
1753
|
+
leaseGeneration: z.ZodNumber;
|
|
1754
|
+
status: z.ZodLiteral<"deferred">;
|
|
1755
|
+
retryAt: z.ZodString;
|
|
1756
|
+
reason: z.ZodString;
|
|
1757
|
+
receipt: z.ZodObject<{
|
|
1758
|
+
id: z.ZodString;
|
|
1759
|
+
contentHash: z.ZodString;
|
|
1760
|
+
}, z.core.$strict>;
|
|
1761
|
+
}, z.core.$strict>>;
|
|
1742
1762
|
lastError: z.ZodNullable<z.ZodString>;
|
|
1743
1763
|
createdAt: z.ZodString;
|
|
1744
1764
|
updatedAt: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../../src/learning/repository.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAkO,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAG1R,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAKlD,eAAO,MAAM,uBAAuB;aAClC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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E,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAEjG;AACD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAEhF"}
|
|
@@ -3096,6 +3096,26 @@ export declare const LearningOperationResultSchema: z.ZodObject<{
|
|
|
3096
3096
|
leaseExpiresAt: z.ZodNullable<z.ZodString>;
|
|
3097
3097
|
consecutiveFailures: z.ZodNumber;
|
|
3098
3098
|
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
3099
|
+
admission: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3100
|
+
status: z.ZodLiteral<"ready">;
|
|
3101
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3102
|
+
status: z.ZodLiteral<"deferred">;
|
|
3103
|
+
retryAt: z.ZodString;
|
|
3104
|
+
reason: z.ZodString;
|
|
3105
|
+
}, z.core.$strict>], "status">>>;
|
|
3106
|
+
lastSubmissionDeferral: z.ZodOptional<z.ZodObject<{
|
|
3107
|
+
scope: z.ZodString;
|
|
3108
|
+
dispatchId: z.ZodString;
|
|
3109
|
+
submissionHash: z.ZodString;
|
|
3110
|
+
leaseGeneration: z.ZodNumber;
|
|
3111
|
+
status: z.ZodLiteral<"deferred">;
|
|
3112
|
+
retryAt: z.ZodString;
|
|
3113
|
+
reason: z.ZodString;
|
|
3114
|
+
receipt: z.ZodObject<{
|
|
3115
|
+
id: z.ZodString;
|
|
3116
|
+
contentHash: z.ZodString;
|
|
3117
|
+
}, z.core.$strict>;
|
|
3118
|
+
}, z.core.$strict>>;
|
|
3099
3119
|
lastError: z.ZodNullable<z.ZodString>;
|
|
3100
3120
|
createdAt: z.ZodString;
|
|
3101
3121
|
updatedAt: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../../src/learning/transport.ts"],"names":[],"mappings":"AAAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAG/B,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ToolLearningActionSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
+
kind: z.ZodLiteral<"python">;
|
|
4
|
+
code: z.ZodString;
|
|
5
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6
|
+
kind: z.ZodLiteral<"shell">;
|
|
7
|
+
command: z.ZodString;
|
|
8
|
+
shell: z.ZodString;
|
|
9
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
10
|
+
kind: z.ZodLiteral<"tool_arguments">;
|
|
11
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
12
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
13
|
+
kind: z.ZodLiteral<"edit">;
|
|
14
|
+
patch: z.ZodString;
|
|
15
|
+
baseFiles: z.ZodArray<z.ZodObject<{
|
|
16
|
+
path: z.ZodString;
|
|
17
|
+
contentHash: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$strict>>;
|
|
19
|
+
}, z.core.$strict>], "kind">>;
|
|
20
|
+
export type ToolLearningAction = z.infer<typeof ToolLearningActionSchema>;
|
|
21
|
+
export declare const ToolLearningRepairSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22
|
+
kind: z.ZodLiteral<"replacement">;
|
|
23
|
+
expectedActionHash: z.ZodString;
|
|
24
|
+
environmentFingerprint: z.ZodString;
|
|
25
|
+
action: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
26
|
+
kind: z.ZodLiteral<"python">;
|
|
27
|
+
code: z.ZodString;
|
|
28
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
29
|
+
kind: z.ZodLiteral<"shell">;
|
|
30
|
+
command: z.ZodString;
|
|
31
|
+
shell: z.ZodString;
|
|
32
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
33
|
+
kind: z.ZodLiteral<"tool_arguments">;
|
|
34
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
35
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
36
|
+
kind: z.ZodLiteral<"edit">;
|
|
37
|
+
patch: z.ZodString;
|
|
38
|
+
baseFiles: z.ZodArray<z.ZodObject<{
|
|
39
|
+
path: z.ZodString;
|
|
40
|
+
contentHash: z.ZodNullable<z.ZodString>;
|
|
41
|
+
}, z.core.$strict>>;
|
|
42
|
+
}, z.core.$strict>], "kind">>;
|
|
43
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
44
|
+
kind: z.ZodLiteral<"patch">;
|
|
45
|
+
expectedActionHash: z.ZodString;
|
|
46
|
+
environmentFingerprint: z.ZodString;
|
|
47
|
+
files: z.ZodArray<z.ZodObject<{
|
|
48
|
+
path: z.ZodString;
|
|
49
|
+
expectedContentHash: z.ZodString;
|
|
50
|
+
patch: z.ZodString;
|
|
51
|
+
}, z.core.$strict>>;
|
|
52
|
+
}, z.core.$strict>], "kind">;
|
|
53
|
+
export type ToolLearningRepair = z.infer<typeof ToolLearningRepairSchema>;
|
|
54
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/tool-learning/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsBxB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;6BA4BpC,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BA4BnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ToolLearningCapabilitySchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
application: z.ZodString;
|
|
5
|
+
versions: z.ZodArray<z.ZodString>;
|
|
6
|
+
tools: z.ZodArray<z.ZodString>;
|
|
7
|
+
mode: z.ZodLiteral<"recovery">;
|
|
8
|
+
routingInstruction: z.ZodString;
|
|
9
|
+
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10
|
+
kind: z.ZodLiteral<"integration">;
|
|
11
|
+
receipt: z.ZodObject<{
|
|
12
|
+
id: z.ZodString;
|
|
13
|
+
contentHash: z.ZodString;
|
|
14
|
+
}, z.core.$strict>;
|
|
15
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16
|
+
kind: z.ZodLiteral<"learned">;
|
|
17
|
+
receipt: z.ZodObject<{
|
|
18
|
+
id: z.ZodString;
|
|
19
|
+
contentHash: z.ZodString;
|
|
20
|
+
}, z.core.$strict>;
|
|
21
|
+
trainingRun: z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
contentHash: z.ZodString;
|
|
24
|
+
}, z.core.$strict>;
|
|
25
|
+
adapter: z.ZodObject<{
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
contentHash: z.ZodString;
|
|
28
|
+
}, z.core.$strict>;
|
|
29
|
+
evaluation: z.ZodObject<{
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
contentHash: z.ZodString;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
activation: z.ZodObject<{
|
|
34
|
+
id: z.ZodString;
|
|
35
|
+
contentHash: z.ZodString;
|
|
36
|
+
}, z.core.$strict>;
|
|
37
|
+
}, z.core.$strict>], "kind">;
|
|
38
|
+
}, z.core.$strict>;
|
|
39
|
+
export declare const ToolLearningManifestSchema: z.ZodPreprocess<z.ZodObject<{
|
|
40
|
+
schemaVersion: z.ZodLiteral<"openpond.toolLearningManifest.v1">;
|
|
41
|
+
installationId: z.ZodString;
|
|
42
|
+
scope: z.ZodObject<{
|
|
43
|
+
teamId: z.ZodString;
|
|
44
|
+
projectId: z.ZodString;
|
|
45
|
+
}, z.core.$strict>;
|
|
46
|
+
revision: z.ZodNumber;
|
|
47
|
+
contentHash: z.ZodString;
|
|
48
|
+
issuedAt: z.ZodString;
|
|
49
|
+
expiresAt: z.ZodString;
|
|
50
|
+
modelRelease: z.ZodObject<{
|
|
51
|
+
id: z.ZodString;
|
|
52
|
+
contentHash: z.ZodString;
|
|
53
|
+
}, z.core.$strict>;
|
|
54
|
+
responseSchema: z.ZodLiteral<"openpond.toolLearningDecision.v1">;
|
|
55
|
+
capabilities: z.ZodArray<z.ZodObject<{
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
application: z.ZodString;
|
|
58
|
+
versions: z.ZodArray<z.ZodString>;
|
|
59
|
+
tools: z.ZodArray<z.ZodString>;
|
|
60
|
+
mode: z.ZodLiteral<"recovery">;
|
|
61
|
+
routingInstruction: z.ZodString;
|
|
62
|
+
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
63
|
+
kind: z.ZodLiteral<"integration">;
|
|
64
|
+
receipt: z.ZodObject<{
|
|
65
|
+
id: z.ZodString;
|
|
66
|
+
contentHash: z.ZodString;
|
|
67
|
+
}, z.core.$strict>;
|
|
68
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
69
|
+
kind: z.ZodLiteral<"learned">;
|
|
70
|
+
receipt: z.ZodObject<{
|
|
71
|
+
id: z.ZodString;
|
|
72
|
+
contentHash: z.ZodString;
|
|
73
|
+
}, z.core.$strict>;
|
|
74
|
+
trainingRun: z.ZodObject<{
|
|
75
|
+
id: z.ZodString;
|
|
76
|
+
contentHash: z.ZodString;
|
|
77
|
+
}, z.core.$strict>;
|
|
78
|
+
adapter: z.ZodObject<{
|
|
79
|
+
id: z.ZodString;
|
|
80
|
+
contentHash: z.ZodString;
|
|
81
|
+
}, z.core.$strict>;
|
|
82
|
+
evaluation: z.ZodObject<{
|
|
83
|
+
id: z.ZodString;
|
|
84
|
+
contentHash: z.ZodString;
|
|
85
|
+
}, z.core.$strict>;
|
|
86
|
+
activation: z.ZodObject<{
|
|
87
|
+
id: z.ZodString;
|
|
88
|
+
contentHash: z.ZodString;
|
|
89
|
+
}, z.core.$strict>;
|
|
90
|
+
}, z.core.$strict>], "kind">;
|
|
91
|
+
}, z.core.$strict>>;
|
|
92
|
+
}, z.core.$strict>>;
|
|
93
|
+
export type ToolLearningManifest = z.infer<typeof ToolLearningManifestSchema>;
|
|
94
|
+
export declare const ToolLearningConsultationRequestSchema: z.ZodPreprocess<z.ZodObject<{
|
|
95
|
+
schemaVersion: z.ZodLiteral<"openpond.toolLearningConsultation.v1">;
|
|
96
|
+
operationId: z.ZodString;
|
|
97
|
+
installationId: z.ZodString;
|
|
98
|
+
scope: z.ZodObject<{
|
|
99
|
+
teamId: z.ZodString;
|
|
100
|
+
projectId: z.ZodString;
|
|
101
|
+
}, z.core.$strict>;
|
|
102
|
+
sessionId: z.ZodString;
|
|
103
|
+
callId: z.ZodString;
|
|
104
|
+
capabilityId: z.ZodString;
|
|
105
|
+
manifestHash: z.ZodString;
|
|
106
|
+
modelRelease: z.ZodObject<{
|
|
107
|
+
id: z.ZodString;
|
|
108
|
+
contentHash: z.ZodString;
|
|
109
|
+
}, z.core.$strict>;
|
|
110
|
+
mode: z.ZodLiteral<"recovery">;
|
|
111
|
+
intent: z.ZodString;
|
|
112
|
+
action: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
113
|
+
kind: z.ZodLiteral<"python">;
|
|
114
|
+
code: z.ZodString;
|
|
115
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
116
|
+
kind: z.ZodLiteral<"shell">;
|
|
117
|
+
command: z.ZodString;
|
|
118
|
+
shell: z.ZodString;
|
|
119
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
120
|
+
kind: z.ZodLiteral<"tool_arguments">;
|
|
121
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
122
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
123
|
+
kind: z.ZodLiteral<"edit">;
|
|
124
|
+
patch: z.ZodString;
|
|
125
|
+
baseFiles: z.ZodArray<z.ZodObject<{
|
|
126
|
+
path: z.ZodString;
|
|
127
|
+
contentHash: z.ZodNullable<z.ZodString>;
|
|
128
|
+
}, z.core.$strict>>;
|
|
129
|
+
}, z.core.$strict>], "kind">>;
|
|
130
|
+
actionHash: z.ZodString;
|
|
131
|
+
environment: z.ZodObject<{
|
|
132
|
+
application: z.ZodString;
|
|
133
|
+
version: z.ZodString;
|
|
134
|
+
state: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
135
|
+
fingerprint: z.ZodString;
|
|
136
|
+
}, z.core.$strict>;
|
|
137
|
+
contextHash: z.ZodString;
|
|
138
|
+
failure: z.ZodObject<{
|
|
139
|
+
message: z.ZodString;
|
|
140
|
+
observation: z.ZodObject<{
|
|
141
|
+
id: z.ZodString;
|
|
142
|
+
contentHash: z.ZodString;
|
|
143
|
+
}, z.core.$strict>;
|
|
144
|
+
}, z.core.$strict>;
|
|
145
|
+
round: z.ZodNumber;
|
|
146
|
+
}, z.core.$strict>>;
|
|
147
|
+
export type ToolLearningConsultationRequest = z.infer<typeof ToolLearningConsultationRequestSchema>;
|
|
148
|
+
/** Only model-authored task content; transport failures never become proceed. */
|
|
149
|
+
export declare const ToolLearningDecisionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
150
|
+
decision: z.ZodLiteral<"proceed">;
|
|
151
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
152
|
+
decision: z.ZodLiteral<"revise">;
|
|
153
|
+
issues: z.ZodArray<z.ZodObject<{
|
|
154
|
+
category: z.ZodString;
|
|
155
|
+
feedback: z.ZodString;
|
|
156
|
+
}, z.core.$strict>>;
|
|
157
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
158
|
+
decision: z.ZodLiteral<"needs_context">;
|
|
159
|
+
missing: z.ZodArray<z.ZodObject<{
|
|
160
|
+
field: z.ZodString;
|
|
161
|
+
reason: z.ZodString;
|
|
162
|
+
}, z.core.$strict>>;
|
|
163
|
+
}, z.core.$strict>], "decision">;
|
|
164
|
+
export declare const ToolLearningConsultationResponseSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
165
|
+
operationId: z.ZodString;
|
|
166
|
+
installationId: z.ZodString;
|
|
167
|
+
capabilityId: z.ZodString;
|
|
168
|
+
manifestHash: z.ZodString;
|
|
169
|
+
modelRelease: z.ZodObject<{
|
|
170
|
+
id: z.ZodString;
|
|
171
|
+
contentHash: z.ZodString;
|
|
172
|
+
}, z.core.$strict>;
|
|
173
|
+
actionHash: z.ZodString;
|
|
174
|
+
contextHash: z.ZodString;
|
|
175
|
+
schemaVersion: z.ZodLiteral<"openpond.toolLearningDecision.v1">;
|
|
176
|
+
state: z.ZodLiteral<"completed">;
|
|
177
|
+
decision: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
178
|
+
decision: z.ZodLiteral<"proceed">;
|
|
179
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
180
|
+
decision: z.ZodLiteral<"revise">;
|
|
181
|
+
issues: z.ZodArray<z.ZodObject<{
|
|
182
|
+
category: z.ZodString;
|
|
183
|
+
feedback: z.ZodString;
|
|
184
|
+
}, z.core.$strict>>;
|
|
185
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
186
|
+
decision: z.ZodLiteral<"needs_context">;
|
|
187
|
+
missing: z.ZodArray<z.ZodObject<{
|
|
188
|
+
field: z.ZodString;
|
|
189
|
+
reason: z.ZodString;
|
|
190
|
+
}, z.core.$strict>>;
|
|
191
|
+
}, z.core.$strict>], "decision">;
|
|
192
|
+
usageReceipt: z.ZodObject<{
|
|
193
|
+
id: z.ZodString;
|
|
194
|
+
contentHash: z.ZodString;
|
|
195
|
+
}, z.core.$strict>;
|
|
196
|
+
completedAt: z.ZodString;
|
|
197
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
198
|
+
operationId: z.ZodString;
|
|
199
|
+
installationId: z.ZodString;
|
|
200
|
+
capabilityId: z.ZodString;
|
|
201
|
+
manifestHash: z.ZodString;
|
|
202
|
+
modelRelease: z.ZodObject<{
|
|
203
|
+
id: z.ZodString;
|
|
204
|
+
contentHash: z.ZodString;
|
|
205
|
+
}, z.core.$strict>;
|
|
206
|
+
actionHash: z.ZodString;
|
|
207
|
+
contextHash: z.ZodString;
|
|
208
|
+
schemaVersion: z.ZodLiteral<"openpond.toolLearningDecision.v1">;
|
|
209
|
+
state: z.ZodLiteral<"unavailable">;
|
|
210
|
+
reason: z.ZodEnum<{
|
|
211
|
+
budget_exhausted: "budget_exhausted";
|
|
212
|
+
cancelled: "cancelled";
|
|
213
|
+
disabled: "disabled";
|
|
214
|
+
dispatch_uncertain: "dispatch_uncertain";
|
|
215
|
+
expired_manifest: "expired_manifest";
|
|
216
|
+
invalid_output: "invalid_output";
|
|
217
|
+
revoked: "revoked";
|
|
218
|
+
timeout: "timeout";
|
|
219
|
+
unsupported_scope: "unsupported_scope";
|
|
220
|
+
}>;
|
|
221
|
+
usageReceipt: z.ZodNullable<z.ZodObject<{
|
|
222
|
+
id: z.ZodString;
|
|
223
|
+
contentHash: z.ZodString;
|
|
224
|
+
}, z.core.$strict>>;
|
|
225
|
+
}, z.core.$strict>], "state">>;
|
|
226
|
+
export type ToolLearningConsultationResponse = z.infer<typeof ToolLearningConsultationResponseSchema>;
|
|
227
|
+
/** Invoke before exposing a result to the agent; even valid JSON may be stale. */
|
|
228
|
+
export declare function assertToolLearningConsultationResponse(requestValue: unknown, responseValue: unknown): ToolLearningConsultationResponse;
|
|
229
|
+
//# sourceMappingURL=consultation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consultation.d.ts","sourceRoot":"","sources":["../../../src/tool-learning/consultation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAsB9B,CAAC;AAwCZ,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAGtC,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAgDjD,CAAC;AACF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAEpG,iFAAiF;AACjF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;gCAkCrC,CAAC;AAWH,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAiClD,CAAC;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AAEF,kFAAkF;AAClF,wBAAgB,sCAAsC,CACpD,YAAY,EAAE,OAAO,EACrB,aAAa,EAAE,OAAO,GACrB,gCAAgC,CAmBlC"}
|