@openpond/harness 0.2.3 → 0.2.4
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/CONTRACT.md +11 -3
- package/README.md +141 -2
- package/dist/evaluation-review.js +39 -7
- package/dist/index.js +1 -0
- package/dist/refinement-lifecycle.js +490 -0
- package/dist/refiner-detection.js +11 -3
- package/dist/refiner.js +279 -80
- package/dist/types/evaluation-review.d.ts +14 -0
- package/dist/types/evaluation-review.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/refinement-lifecycle.d.ts +775 -0
- package/dist/types/refinement-lifecycle.d.ts.map +1 -0
- package/dist/types/refiner.d.ts +310 -65
- package/dist/types/refiner.d.ts.map +1 -1
- package/package.json +5 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refinement-lifecycle.d.ts","sourceRoot":"","sources":["../../../../src/refinement-lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmCxB,eAAO,MAAM,kCAAkC;;;;;;EAM7C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;EAM7C,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;;EAK/C,CAAC;AAEH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAyHnD,CAAC;AAEL,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAGnC,CAAC;AAEd,eAAO,MAAM,sCAAsC;;;;;;EAMjD,CAAC;AAEH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;kBAa5C,CAAC;AAEZ,eAAO,MAAM,uCAAuC;;;;;;;;;;;;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ED
|
@@ -42,38 +42,251 @@ export declare const LocalHarnessRefinerDecisionSchema: z.ZodDiscriminatedUnion<
|
|
|
42
42
|
reason: z.ZodString;
|
|
43
43
|
}, z.core.$strip>], "decision">;
|
|
44
44
|
export type LocalHarnessRefinerDecision = z.infer<typeof LocalHarnessRefinerDecisionSchema>;
|
|
45
|
+
export declare const LocalHarnessRefinerDecisionV1Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
46
|
+
schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v1">;
|
|
47
|
+
decision: z.ZodLiteral<"no_action">;
|
|
48
|
+
reason: z.ZodString;
|
|
49
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
+
schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v1">;
|
|
51
|
+
decision: z.ZodLiteral<"route">;
|
|
52
|
+
route: z.ZodEnum<{
|
|
53
|
+
runtime: "runtime";
|
|
54
|
+
product: "product";
|
|
55
|
+
taskset: "taskset";
|
|
56
|
+
training: "training";
|
|
57
|
+
}>;
|
|
58
|
+
summary: z.ZodString;
|
|
59
|
+
expectedOutcome: z.ZodString;
|
|
60
|
+
reason: z.ZodString;
|
|
61
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
+
schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v1">;
|
|
63
|
+
decision: z.ZodLiteral<"propose">;
|
|
64
|
+
route: z.ZodEnum<{
|
|
65
|
+
memory: "memory";
|
|
66
|
+
prompt: "prompt";
|
|
67
|
+
skill: "skill";
|
|
68
|
+
agent: "agent";
|
|
69
|
+
}>;
|
|
70
|
+
operation: z.ZodEnum<{
|
|
71
|
+
create: "create";
|
|
72
|
+
update: "update";
|
|
73
|
+
delete: "delete";
|
|
74
|
+
}>;
|
|
75
|
+
target: z.ZodString;
|
|
76
|
+
summary: z.ZodString;
|
|
77
|
+
createContent: z.ZodNullable<z.ZodString>;
|
|
78
|
+
find: z.ZodNullable<z.ZodString>;
|
|
79
|
+
replace: z.ZodNullable<z.ZodString>;
|
|
80
|
+
expectedOutcome: z.ZodString;
|
|
81
|
+
reason: z.ZodString;
|
|
82
|
+
}, z.core.$strip>], "decision">;
|
|
83
|
+
export declare const HarnessRefinerEvidenceBasisSchema: z.ZodObject<{
|
|
84
|
+
kind: z.ZodEnum<{
|
|
85
|
+
single_deterministic: "single_deterministic";
|
|
86
|
+
recurrent_independent: "recurrent_independent";
|
|
87
|
+
}>;
|
|
88
|
+
supportingEvidenceIds: z.ZodArray<z.ZodString>;
|
|
89
|
+
counterevidence: z.ZodArray<z.ZodString>;
|
|
90
|
+
}, z.core.$strict>;
|
|
91
|
+
export declare const LocalHarnessRefinerDecisionV2Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
92
|
+
schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v2">;
|
|
93
|
+
decision: z.ZodLiteral<"no_action">;
|
|
94
|
+
reason: z.ZodString;
|
|
95
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
96
|
+
schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v2">;
|
|
97
|
+
decision: z.ZodLiteral<"route">;
|
|
98
|
+
route: z.ZodEnum<{
|
|
99
|
+
runtime: "runtime";
|
|
100
|
+
product: "product";
|
|
101
|
+
taskset: "taskset";
|
|
102
|
+
training: "training";
|
|
103
|
+
}>;
|
|
104
|
+
summary: z.ZodString;
|
|
105
|
+
evidenceBasis: z.ZodObject<{
|
|
106
|
+
kind: z.ZodEnum<{
|
|
107
|
+
single_deterministic: "single_deterministic";
|
|
108
|
+
recurrent_independent: "recurrent_independent";
|
|
109
|
+
}>;
|
|
110
|
+
supportingEvidenceIds: z.ZodArray<z.ZodString>;
|
|
111
|
+
counterevidence: z.ZodArray<z.ZodString>;
|
|
112
|
+
}, z.core.$strict>;
|
|
113
|
+
expectedOutcome: z.ZodString;
|
|
114
|
+
reason: z.ZodString;
|
|
115
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
116
|
+
schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v2">;
|
|
117
|
+
decision: z.ZodLiteral<"propose">;
|
|
118
|
+
route: z.ZodEnum<{
|
|
119
|
+
memory: "memory";
|
|
120
|
+
prompt: "prompt";
|
|
121
|
+
skill: "skill";
|
|
122
|
+
agent: "agent";
|
|
123
|
+
}>;
|
|
124
|
+
operation: z.ZodEnum<{
|
|
125
|
+
create: "create";
|
|
126
|
+
update: "update";
|
|
127
|
+
delete: "delete";
|
|
128
|
+
}>;
|
|
129
|
+
target: z.ZodString;
|
|
130
|
+
summary: z.ZodString;
|
|
131
|
+
evidenceBasis: z.ZodObject<{
|
|
132
|
+
kind: z.ZodEnum<{
|
|
133
|
+
single_deterministic: "single_deterministic";
|
|
134
|
+
recurrent_independent: "recurrent_independent";
|
|
135
|
+
}>;
|
|
136
|
+
supportingEvidenceIds: z.ZodArray<z.ZodString>;
|
|
137
|
+
counterevidence: z.ZodArray<z.ZodString>;
|
|
138
|
+
}, z.core.$strict>;
|
|
139
|
+
createContent: z.ZodNullable<z.ZodString>;
|
|
140
|
+
find: z.ZodNullable<z.ZodString>;
|
|
141
|
+
replace: z.ZodNullable<z.ZodString>;
|
|
142
|
+
expectedOutcome: z.ZodString;
|
|
143
|
+
reason: z.ZodString;
|
|
144
|
+
}, z.core.$strict>], "decision">;
|
|
145
|
+
export declare const LocalHarnessRefinerDecisionAnySchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
146
|
+
schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v1">;
|
|
147
|
+
decision: z.ZodLiteral<"no_action">;
|
|
148
|
+
reason: z.ZodString;
|
|
149
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
150
|
+
schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v1">;
|
|
151
|
+
decision: z.ZodLiteral<"route">;
|
|
152
|
+
route: z.ZodEnum<{
|
|
153
|
+
runtime: "runtime";
|
|
154
|
+
product: "product";
|
|
155
|
+
taskset: "taskset";
|
|
156
|
+
training: "training";
|
|
157
|
+
}>;
|
|
158
|
+
summary: z.ZodString;
|
|
159
|
+
expectedOutcome: z.ZodString;
|
|
160
|
+
reason: z.ZodString;
|
|
161
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
162
|
+
schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v1">;
|
|
163
|
+
decision: z.ZodLiteral<"propose">;
|
|
164
|
+
route: z.ZodEnum<{
|
|
165
|
+
memory: "memory";
|
|
166
|
+
prompt: "prompt";
|
|
167
|
+
skill: "skill";
|
|
168
|
+
agent: "agent";
|
|
169
|
+
}>;
|
|
170
|
+
operation: z.ZodEnum<{
|
|
171
|
+
create: "create";
|
|
172
|
+
update: "update";
|
|
173
|
+
delete: "delete";
|
|
174
|
+
}>;
|
|
175
|
+
target: z.ZodString;
|
|
176
|
+
summary: z.ZodString;
|
|
177
|
+
createContent: z.ZodNullable<z.ZodString>;
|
|
178
|
+
find: z.ZodNullable<z.ZodString>;
|
|
179
|
+
replace: z.ZodNullable<z.ZodString>;
|
|
180
|
+
expectedOutcome: z.ZodString;
|
|
181
|
+
reason: z.ZodString;
|
|
182
|
+
}, z.core.$strip>], "decision">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
183
|
+
schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v2">;
|
|
184
|
+
decision: z.ZodLiteral<"no_action">;
|
|
185
|
+
reason: z.ZodString;
|
|
186
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
187
|
+
schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v2">;
|
|
188
|
+
decision: z.ZodLiteral<"route">;
|
|
189
|
+
route: z.ZodEnum<{
|
|
190
|
+
runtime: "runtime";
|
|
191
|
+
product: "product";
|
|
192
|
+
taskset: "taskset";
|
|
193
|
+
training: "training";
|
|
194
|
+
}>;
|
|
195
|
+
summary: z.ZodString;
|
|
196
|
+
evidenceBasis: z.ZodObject<{
|
|
197
|
+
kind: z.ZodEnum<{
|
|
198
|
+
single_deterministic: "single_deterministic";
|
|
199
|
+
recurrent_independent: "recurrent_independent";
|
|
200
|
+
}>;
|
|
201
|
+
supportingEvidenceIds: z.ZodArray<z.ZodString>;
|
|
202
|
+
counterevidence: z.ZodArray<z.ZodString>;
|
|
203
|
+
}, z.core.$strict>;
|
|
204
|
+
expectedOutcome: z.ZodString;
|
|
205
|
+
reason: z.ZodString;
|
|
206
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
207
|
+
schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v2">;
|
|
208
|
+
decision: z.ZodLiteral<"propose">;
|
|
209
|
+
route: z.ZodEnum<{
|
|
210
|
+
memory: "memory";
|
|
211
|
+
prompt: "prompt";
|
|
212
|
+
skill: "skill";
|
|
213
|
+
agent: "agent";
|
|
214
|
+
}>;
|
|
215
|
+
operation: z.ZodEnum<{
|
|
216
|
+
create: "create";
|
|
217
|
+
update: "update";
|
|
218
|
+
delete: "delete";
|
|
219
|
+
}>;
|
|
220
|
+
target: z.ZodString;
|
|
221
|
+
summary: z.ZodString;
|
|
222
|
+
evidenceBasis: z.ZodObject<{
|
|
223
|
+
kind: z.ZodEnum<{
|
|
224
|
+
single_deterministic: "single_deterministic";
|
|
225
|
+
recurrent_independent: "recurrent_independent";
|
|
226
|
+
}>;
|
|
227
|
+
supportingEvidenceIds: z.ZodArray<z.ZodString>;
|
|
228
|
+
counterevidence: z.ZodArray<z.ZodString>;
|
|
229
|
+
}, z.core.$strict>;
|
|
230
|
+
createContent: z.ZodNullable<z.ZodString>;
|
|
231
|
+
find: z.ZodNullable<z.ZodString>;
|
|
232
|
+
replace: z.ZodNullable<z.ZodString>;
|
|
233
|
+
expectedOutcome: z.ZodString;
|
|
234
|
+
reason: z.ZodString;
|
|
235
|
+
}, z.core.$strict>], "decision">]>;
|
|
236
|
+
export type HarnessRefinerEvidenceBasis = z.infer<typeof HarnessRefinerEvidenceBasisSchema>;
|
|
237
|
+
export type LocalHarnessRefinerDecisionV2 = z.infer<typeof LocalHarnessRefinerDecisionV2Schema>;
|
|
238
|
+
export type LocalHarnessRefinerDecisionAny = z.infer<typeof LocalHarnessRefinerDecisionAnySchema>;
|
|
239
|
+
export declare const HarnessRefinerCapabilitiesSchema: z.ZodObject<{
|
|
240
|
+
memory: z.ZodBoolean;
|
|
241
|
+
prompt: z.ZodBoolean;
|
|
242
|
+
skill: z.ZodBoolean;
|
|
243
|
+
agent: z.ZodBoolean;
|
|
244
|
+
}, z.core.$strict>;
|
|
245
|
+
export type HarnessRefinerCapabilities = z.infer<typeof HarnessRefinerCapabilitiesSchema>;
|
|
45
246
|
export declare const LocalHarnessRefinerEvidenceSchema: z.ZodObject<{
|
|
247
|
+
capabilities: z.ZodObject<{
|
|
248
|
+
memory: z.ZodBoolean;
|
|
249
|
+
prompt: z.ZodBoolean;
|
|
250
|
+
skill: z.ZodBoolean;
|
|
251
|
+
agent: z.ZodBoolean;
|
|
252
|
+
}, z.core.$strict>;
|
|
46
253
|
trigger: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
47
254
|
observations: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
255
|
+
reviewPacket: z.ZodObject<{
|
|
256
|
+
currentTurn: z.ZodObject<{
|
|
257
|
+
id: z.ZodString;
|
|
258
|
+
status: z.ZodNullable<z.ZodString>;
|
|
259
|
+
error: z.ZodNullable<z.ZodString>;
|
|
260
|
+
prompt: z.ZodNullable<z.ZodString>;
|
|
261
|
+
assistantOutput: z.ZodNullable<z.ZodString>;
|
|
262
|
+
assistantOutputLinkCount: z.ZodNumber;
|
|
263
|
+
}, z.core.$strict>;
|
|
264
|
+
priorConversation: z.ZodArray<z.ZodObject<{
|
|
265
|
+
turnId: z.ZodString;
|
|
266
|
+
status: z.ZodNullable<z.ZodString>;
|
|
267
|
+
prompt: z.ZodNullable<z.ZodString>;
|
|
268
|
+
assistantOutput: z.ZodNullable<z.ZodString>;
|
|
269
|
+
}, z.core.$strict>>;
|
|
270
|
+
timeline: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
271
|
+
artifacts: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
272
|
+
artifactDiagnostics: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
273
|
+
executionProfile: z.ZodObject<{
|
|
274
|
+
modelRequestCount: z.ZodNumber;
|
|
275
|
+
failedModelRequestCount: z.ZodNumber;
|
|
276
|
+
promptTokens: z.ZodNumber;
|
|
277
|
+
completionTokens: z.ZodNumber;
|
|
278
|
+
totalTokens: z.ZodNumber;
|
|
279
|
+
toolFailureCount: z.ZodNumber;
|
|
280
|
+
retryCount: z.ZodNumber;
|
|
281
|
+
recoveryCount: z.ZodNumber;
|
|
282
|
+
}, z.core.$strict>;
|
|
283
|
+
priorIncidents: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
284
|
+
truncation: z.ZodObject<{
|
|
285
|
+
timelineEventCount: z.ZodNumber;
|
|
286
|
+
includedTimelineEventCount: z.ZodNumber;
|
|
287
|
+
timelineTruncated: z.ZodBoolean;
|
|
288
|
+
}, z.core.$strict>;
|
|
65
289
|
}, z.core.$strict>;
|
|
66
|
-
recentObservations: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
67
|
-
recentOutcomes: z.ZodArray<z.ZodObject<{
|
|
68
|
-
id: z.ZodString;
|
|
69
|
-
decision: z.ZodEnum<{
|
|
70
|
-
no_action: "no_action";
|
|
71
|
-
proposed: "proposed";
|
|
72
|
-
}>;
|
|
73
|
-
reason: z.ZodString;
|
|
74
|
-
createdAt: z.ZodString;
|
|
75
|
-
triggerId: z.ZodString;
|
|
76
|
-
}, z.core.$strict>>;
|
|
77
290
|
sourceFiles: z.ZodArray<z.ZodObject<{
|
|
78
291
|
path: z.ZodString;
|
|
79
292
|
kind: z.ZodEnum<{
|
|
@@ -111,10 +324,14 @@ export declare function authorLocalHarnessRefinementWithModel(input: {
|
|
|
111
324
|
stream: LocalHarnessRefinerModelStream;
|
|
112
325
|
signal: AbortSignal;
|
|
113
326
|
timeoutMs?: number;
|
|
114
|
-
}): Promise<
|
|
327
|
+
}): Promise<LocalHarnessRefinerDecisionV2>;
|
|
115
328
|
export declare function refinerMessages(evidence: LocalHarnessRefinerEvidence): HarnessRefinerMessage[];
|
|
329
|
+
export declare function admitLocalHarnessRefinerDecision(input: {
|
|
330
|
+
decision: LocalHarnessRefinerDecisionV2;
|
|
331
|
+
evidence: LocalHarnessRefinerEvidence;
|
|
332
|
+
}): LocalHarnessRefinerDecisionV2;
|
|
116
333
|
export declare const HostedHarnessRefinerRequestSchema: z.ZodObject<{
|
|
117
|
-
schemaVersion: z.ZodLiteral<"openpond.hostedHarnessRefinerRequest.
|
|
334
|
+
schemaVersion: z.ZodLiteral<"openpond.hostedHarnessRefinerRequest.v2">;
|
|
118
335
|
requestId: z.ZodString;
|
|
119
336
|
idempotencyKey: z.ZodString;
|
|
120
337
|
evidenceHash: z.ZodString;
|
|
@@ -146,37 +363,49 @@ export declare const HostedHarnessRefinerRequestSchema: z.ZodObject<{
|
|
|
146
363
|
}, z.core.$strict>;
|
|
147
364
|
}, z.core.$strict>;
|
|
148
365
|
evidence: z.ZodObject<{
|
|
366
|
+
capabilities: z.ZodObject<{
|
|
367
|
+
memory: z.ZodBoolean;
|
|
368
|
+
prompt: z.ZodBoolean;
|
|
369
|
+
skill: z.ZodBoolean;
|
|
370
|
+
agent: z.ZodBoolean;
|
|
371
|
+
}, z.core.$strict>;
|
|
149
372
|
trigger: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
150
373
|
observations: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
374
|
+
reviewPacket: z.ZodObject<{
|
|
375
|
+
currentTurn: z.ZodObject<{
|
|
376
|
+
id: z.ZodString;
|
|
377
|
+
status: z.ZodNullable<z.ZodString>;
|
|
378
|
+
error: z.ZodNullable<z.ZodString>;
|
|
379
|
+
prompt: z.ZodNullable<z.ZodString>;
|
|
380
|
+
assistantOutput: z.ZodNullable<z.ZodString>;
|
|
381
|
+
assistantOutputLinkCount: z.ZodNumber;
|
|
382
|
+
}, z.core.$strict>;
|
|
383
|
+
priorConversation: z.ZodArray<z.ZodObject<{
|
|
384
|
+
turnId: z.ZodString;
|
|
385
|
+
status: z.ZodNullable<z.ZodString>;
|
|
386
|
+
prompt: z.ZodNullable<z.ZodString>;
|
|
387
|
+
assistantOutput: z.ZodNullable<z.ZodString>;
|
|
388
|
+
}, z.core.$strict>>;
|
|
389
|
+
timeline: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
390
|
+
artifacts: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
391
|
+
artifactDiagnostics: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
392
|
+
executionProfile: z.ZodObject<{
|
|
393
|
+
modelRequestCount: z.ZodNumber;
|
|
394
|
+
failedModelRequestCount: z.ZodNumber;
|
|
395
|
+
promptTokens: z.ZodNumber;
|
|
396
|
+
completionTokens: z.ZodNumber;
|
|
397
|
+
totalTokens: z.ZodNumber;
|
|
398
|
+
toolFailureCount: z.ZodNumber;
|
|
399
|
+
retryCount: z.ZodNumber;
|
|
400
|
+
recoveryCount: z.ZodNumber;
|
|
401
|
+
}, z.core.$strict>;
|
|
402
|
+
priorIncidents: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
403
|
+
truncation: z.ZodObject<{
|
|
404
|
+
timelineEventCount: z.ZodNumber;
|
|
405
|
+
includedTimelineEventCount: z.ZodNumber;
|
|
406
|
+
timelineTruncated: z.ZodBoolean;
|
|
407
|
+
}, z.core.$strict>;
|
|
168
408
|
}, z.core.$strict>;
|
|
169
|
-
recentObservations: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
170
|
-
recentOutcomes: z.ZodArray<z.ZodObject<{
|
|
171
|
-
id: z.ZodString;
|
|
172
|
-
decision: z.ZodEnum<{
|
|
173
|
-
no_action: "no_action";
|
|
174
|
-
proposed: "proposed";
|
|
175
|
-
}>;
|
|
176
|
-
reason: z.ZodString;
|
|
177
|
-
createdAt: z.ZodString;
|
|
178
|
-
triggerId: z.ZodString;
|
|
179
|
-
}, z.core.$strict>>;
|
|
180
409
|
sourceFiles: z.ZodArray<z.ZodObject<{
|
|
181
410
|
path: z.ZodString;
|
|
182
411
|
kind: z.ZodEnum<{
|
|
@@ -203,7 +432,7 @@ export declare const HostedHarnessRefinerRequestSchema: z.ZodObject<{
|
|
|
203
432
|
}, z.core.$strict>;
|
|
204
433
|
export type HostedHarnessRefinerRequest = z.infer<typeof HostedHarnessRefinerRequestSchema>;
|
|
205
434
|
export declare const HostedHarnessRefinerResponseSchema: z.ZodObject<{
|
|
206
|
-
schemaVersion: z.ZodLiteral<"openpond.hostedHarnessRefinerResponse.
|
|
435
|
+
schemaVersion: z.ZodLiteral<"openpond.hostedHarnessRefinerResponse.v2">;
|
|
207
436
|
requestId: z.ZodString;
|
|
208
437
|
evidenceHash: z.ZodString;
|
|
209
438
|
admittedRelease: z.ZodObject<{
|
|
@@ -215,11 +444,11 @@ export declare const HostedHarnessRefinerResponseSchema: z.ZodObject<{
|
|
|
215
444
|
contentHash: z.ZodString;
|
|
216
445
|
}, z.core.$strict>;
|
|
217
446
|
decision: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
218
|
-
schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.
|
|
447
|
+
schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v2">;
|
|
219
448
|
decision: z.ZodLiteral<"no_action">;
|
|
220
449
|
reason: z.ZodString;
|
|
221
|
-
}, z.core.$
|
|
222
|
-
schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.
|
|
450
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
451
|
+
schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v2">;
|
|
223
452
|
decision: z.ZodLiteral<"route">;
|
|
224
453
|
route: z.ZodEnum<{
|
|
225
454
|
runtime: "runtime";
|
|
@@ -228,10 +457,18 @@ export declare const HostedHarnessRefinerResponseSchema: z.ZodObject<{
|
|
|
228
457
|
training: "training";
|
|
229
458
|
}>;
|
|
230
459
|
summary: z.ZodString;
|
|
460
|
+
evidenceBasis: z.ZodObject<{
|
|
461
|
+
kind: z.ZodEnum<{
|
|
462
|
+
single_deterministic: "single_deterministic";
|
|
463
|
+
recurrent_independent: "recurrent_independent";
|
|
464
|
+
}>;
|
|
465
|
+
supportingEvidenceIds: z.ZodArray<z.ZodString>;
|
|
466
|
+
counterevidence: z.ZodArray<z.ZodString>;
|
|
467
|
+
}, z.core.$strict>;
|
|
231
468
|
expectedOutcome: z.ZodString;
|
|
232
469
|
reason: z.ZodString;
|
|
233
|
-
}, z.core.$
|
|
234
|
-
schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.
|
|
470
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
471
|
+
schemaVersion: z.ZodLiteral<"openpond.localHarnessRefinerDecision.v2">;
|
|
235
472
|
decision: z.ZodLiteral<"propose">;
|
|
236
473
|
route: z.ZodEnum<{
|
|
237
474
|
memory: "memory";
|
|
@@ -246,12 +483,20 @@ export declare const HostedHarnessRefinerResponseSchema: z.ZodObject<{
|
|
|
246
483
|
}>;
|
|
247
484
|
target: z.ZodString;
|
|
248
485
|
summary: z.ZodString;
|
|
486
|
+
evidenceBasis: z.ZodObject<{
|
|
487
|
+
kind: z.ZodEnum<{
|
|
488
|
+
single_deterministic: "single_deterministic";
|
|
489
|
+
recurrent_independent: "recurrent_independent";
|
|
490
|
+
}>;
|
|
491
|
+
supportingEvidenceIds: z.ZodArray<z.ZodString>;
|
|
492
|
+
counterevidence: z.ZodArray<z.ZodString>;
|
|
493
|
+
}, z.core.$strict>;
|
|
249
494
|
createContent: z.ZodNullable<z.ZodString>;
|
|
250
495
|
find: z.ZodNullable<z.ZodString>;
|
|
251
496
|
replace: z.ZodNullable<z.ZodString>;
|
|
252
497
|
expectedOutcome: z.ZodString;
|
|
253
498
|
reason: z.ZodString;
|
|
254
|
-
}, z.core.$
|
|
499
|
+
}, z.core.$strict>], "decision">;
|
|
255
500
|
serviceRevision: z.ZodString;
|
|
256
501
|
usage: z.ZodObject<{
|
|
257
502
|
promptTokens: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refiner.d.ts","sourceRoot":"","sources":["../../../../src/refiner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,WAAW,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAqEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAI5C,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AAIF,eAAO,MAAM,iCAAiC
|
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;;;;;;;;kBAWpC,CAAC;AAEZ,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,kCAAkC,CAC1C,CAAC;AAEF,eAAO,MAAM,iCAAiC,QAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openpond/harness",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Portable immutable Harness releases, workspaces, improvements, traces, tools, and model identities for OpenPond",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -46,6 +46,10 @@
|
|
|
46
46
|
"types": "./dist/types/refiner-detection.d.ts",
|
|
47
47
|
"import": "./dist/refiner-detection.js"
|
|
48
48
|
},
|
|
49
|
+
"./refinement-lifecycle": {
|
|
50
|
+
"types": "./dist/types/refinement-lifecycle.d.ts",
|
|
51
|
+
"import": "./dist/refinement-lifecycle.js"
|
|
52
|
+
},
|
|
49
53
|
"./refiner-support": {
|
|
50
54
|
"types": "./dist/types/refiner-support.d.ts",
|
|
51
55
|
"import": "./dist/refiner-support.js"
|