@openpond/harness 0.1.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"harness-workspaces.d.ts","sourceRoot":"","sources":["../../../../src/harness-workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,uBAAuB;;;;;;kBAKzB,CAAC;AAEZ,eAAO,MAAM,2BAA2B;;;;;;;kBAM7B,CAAC;AAEZ;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAexB,CAAC;AAEZ,eAAO,MAAM,6BAA6B;;;;;;;;;EASxC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;EAcpC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAuCjC,CAAC;AAEL,eAAO,MAAM,iCAAiC;;;;;kBAOnC,CAAC;AAEZ,eAAO,MAAM,+BAA+B;;;;kBAMjC,CAAC;AAEZ,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;kBAW3B,CAAC;AAEZ,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAchC,CAAC;AAEZ,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAEzB,CAAC;AAEZ,eAAO,MAAM,gCAAgC;;;;;;;;;;;kBAalC,CAAC;AAEZ,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;kBAmBjC,CAAC;AAEZ,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
@@ -0,0 +1,421 @@
1
+ import { z } from "zod";
2
+ export declare const PortabilityReportSchema: z.ZodObject<{
3
+ portable: z.ZodBoolean;
4
+ blockers: z.ZodArray<z.ZodString>;
5
+ localOnlyAssetRefs: z.ZodArray<z.ZodString>;
6
+ hostPrivateAssetRefs: z.ZodArray<z.ZodString>;
7
+ }, z.core.$strict>;
8
+ export declare const AgentSnapshotContentSchema: z.ZodObject<{
9
+ schemaVersion: z.ZodLiteral<"openpond.agentSnapshot.v2">;
10
+ id: z.ZodString;
11
+ sourceRelease: z.ZodNullable<z.ZodObject<{
12
+ id: z.ZodString;
13
+ contentHash: z.ZodString;
14
+ }, z.core.$strict>>;
15
+ instructions: z.ZodArray<z.ZodObject<{
16
+ id: z.ZodString;
17
+ path: z.ZodString;
18
+ contentHash: z.ZodString;
19
+ sizeBytes: z.ZodNumber;
20
+ mediaType: z.ZodString;
21
+ visibility: z.ZodEnum<{
22
+ policy: "policy";
23
+ verifier: "verifier";
24
+ host_private: "host_private";
25
+ }>;
26
+ }, z.core.$strict>>;
27
+ skills: z.ZodArray<z.ZodObject<{
28
+ id: z.ZodString;
29
+ path: z.ZodString;
30
+ contentHash: z.ZodString;
31
+ sizeBytes: z.ZodNumber;
32
+ mediaType: z.ZodString;
33
+ visibility: z.ZodEnum<{
34
+ policy: "policy";
35
+ verifier: "verifier";
36
+ host_private: "host_private";
37
+ }>;
38
+ }, z.core.$strict>>;
39
+ agents: z.ZodArray<z.ZodObject<{
40
+ id: z.ZodString;
41
+ path: z.ZodString;
42
+ contentHash: z.ZodString;
43
+ sizeBytes: z.ZodNumber;
44
+ mediaType: z.ZodString;
45
+ visibility: z.ZodEnum<{
46
+ policy: "policy";
47
+ verifier: "verifier";
48
+ host_private: "host_private";
49
+ }>;
50
+ }, z.core.$strict>>;
51
+ toolDeclarations: z.ZodArray<z.ZodObject<{
52
+ name: z.ZodString;
53
+ description: z.ZodString;
54
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
55
+ inputSchemaHash: z.ZodString;
56
+ sideEffect: z.ZodEnum<{
57
+ read: "read";
58
+ write: "write";
59
+ }>;
60
+ timeoutMs: z.ZodNumber;
61
+ }, z.core.$strict>>;
62
+ capabilityRequirements: z.ZodArray<z.ZodObject<{
63
+ id: z.ZodString;
64
+ required: z.ZodBoolean;
65
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
66
+ portability: z.ZodEnum<{
67
+ portable: "portable";
68
+ host_adapter: "host_adapter";
69
+ local_only: "local_only";
70
+ hosted_only: "hosted_only";
71
+ }>;
72
+ }, z.core.$strict>>;
73
+ dependencyLock: z.ZodObject<{
74
+ id: z.ZodString;
75
+ path: z.ZodString;
76
+ contentHash: z.ZodString;
77
+ sizeBytes: z.ZodNumber;
78
+ mediaType: z.ZodString;
79
+ visibility: z.ZodEnum<{
80
+ policy: "policy";
81
+ verifier: "verifier";
82
+ host_private: "host_private";
83
+ }>;
84
+ }, z.core.$strict>;
85
+ portability: z.ZodObject<{
86
+ portable: z.ZodBoolean;
87
+ blockers: z.ZodArray<z.ZodString>;
88
+ localOnlyAssetRefs: z.ZodArray<z.ZodString>;
89
+ hostPrivateAssetRefs: z.ZodArray<z.ZodString>;
90
+ }, z.core.$strict>;
91
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
92
+ }, z.core.$strict>;
93
+ export declare const AgentSnapshotSchema: z.ZodObject<{
94
+ schemaVersion: z.ZodLiteral<"openpond.agentSnapshot.v2">;
95
+ id: z.ZodString;
96
+ sourceRelease: z.ZodNullable<z.ZodObject<{
97
+ id: z.ZodString;
98
+ contentHash: z.ZodString;
99
+ }, z.core.$strict>>;
100
+ instructions: z.ZodArray<z.ZodObject<{
101
+ id: z.ZodString;
102
+ path: z.ZodString;
103
+ contentHash: z.ZodString;
104
+ sizeBytes: z.ZodNumber;
105
+ mediaType: z.ZodString;
106
+ visibility: z.ZodEnum<{
107
+ policy: "policy";
108
+ verifier: "verifier";
109
+ host_private: "host_private";
110
+ }>;
111
+ }, z.core.$strict>>;
112
+ skills: z.ZodArray<z.ZodObject<{
113
+ id: z.ZodString;
114
+ path: z.ZodString;
115
+ contentHash: z.ZodString;
116
+ sizeBytes: z.ZodNumber;
117
+ mediaType: z.ZodString;
118
+ visibility: z.ZodEnum<{
119
+ policy: "policy";
120
+ verifier: "verifier";
121
+ host_private: "host_private";
122
+ }>;
123
+ }, z.core.$strict>>;
124
+ agents: z.ZodArray<z.ZodObject<{
125
+ id: z.ZodString;
126
+ path: z.ZodString;
127
+ contentHash: z.ZodString;
128
+ sizeBytes: z.ZodNumber;
129
+ mediaType: z.ZodString;
130
+ visibility: z.ZodEnum<{
131
+ policy: "policy";
132
+ verifier: "verifier";
133
+ host_private: "host_private";
134
+ }>;
135
+ }, z.core.$strict>>;
136
+ toolDeclarations: z.ZodArray<z.ZodObject<{
137
+ name: z.ZodString;
138
+ description: z.ZodString;
139
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
140
+ inputSchemaHash: z.ZodString;
141
+ sideEffect: z.ZodEnum<{
142
+ read: "read";
143
+ write: "write";
144
+ }>;
145
+ timeoutMs: z.ZodNumber;
146
+ }, z.core.$strict>>;
147
+ capabilityRequirements: z.ZodArray<z.ZodObject<{
148
+ id: z.ZodString;
149
+ required: z.ZodBoolean;
150
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
151
+ portability: z.ZodEnum<{
152
+ portable: "portable";
153
+ host_adapter: "host_adapter";
154
+ local_only: "local_only";
155
+ hosted_only: "hosted_only";
156
+ }>;
157
+ }, z.core.$strict>>;
158
+ dependencyLock: z.ZodObject<{
159
+ id: z.ZodString;
160
+ path: z.ZodString;
161
+ contentHash: z.ZodString;
162
+ sizeBytes: z.ZodNumber;
163
+ mediaType: z.ZodString;
164
+ visibility: z.ZodEnum<{
165
+ policy: "policy";
166
+ verifier: "verifier";
167
+ host_private: "host_private";
168
+ }>;
169
+ }, z.core.$strict>;
170
+ portability: z.ZodObject<{
171
+ portable: z.ZodBoolean;
172
+ blockers: z.ZodArray<z.ZodString>;
173
+ localOnlyAssetRefs: z.ZodArray<z.ZodString>;
174
+ hostPrivateAssetRefs: z.ZodArray<z.ZodString>;
175
+ }, z.core.$strict>;
176
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
177
+ contentHash: z.ZodString;
178
+ }, z.core.$strict>;
179
+ export declare const LifecycleContractSchema: z.ZodObject<{
180
+ create: z.ZodLiteral<true>;
181
+ reset: z.ZodLiteral<true>;
182
+ step: z.ZodLiteral<true>;
183
+ collect: z.ZodLiteral<true>;
184
+ destroy: z.ZodLiteral<true>;
185
+ resetScope: z.ZodEnum<{
186
+ task: "task";
187
+ attempt: "attempt";
188
+ }>;
189
+ }, z.core.$strict>;
190
+ export declare const GraderInterfaceContractSchema: z.ZodObject<{
191
+ visibleEvidence: z.ZodArray<z.ZodString>;
192
+ privilegedEvidence: z.ZodArray<z.ZodString>;
193
+ privateVerifierIsolation: z.ZodBoolean;
194
+ }, z.core.$strict>;
195
+ export declare const HarnessReleaseContentSchema: z.ZodObject<{
196
+ schemaVersion: z.ZodLiteral<"openpond.harnessRelease.v2">;
197
+ id: z.ZodString;
198
+ agentSnapshot: z.ZodObject<{
199
+ id: z.ZodString;
200
+ contentHash: z.ZodString;
201
+ }, z.core.$strict>;
202
+ program: z.ZodObject<{
203
+ id: z.ZodString;
204
+ path: z.ZodString;
205
+ contentHash: z.ZodString;
206
+ sizeBytes: z.ZodNumber;
207
+ mediaType: z.ZodString;
208
+ visibility: z.ZodEnum<{
209
+ policy: "policy";
210
+ verifier: "verifier";
211
+ host_private: "host_private";
212
+ }>;
213
+ }, z.core.$strict>;
214
+ tools: z.ZodArray<z.ZodObject<{
215
+ name: z.ZodString;
216
+ description: z.ZodString;
217
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
218
+ inputSchemaHash: z.ZodString;
219
+ sideEffect: z.ZodEnum<{
220
+ read: "read";
221
+ write: "write";
222
+ }>;
223
+ timeoutMs: z.ZodNumber;
224
+ }, z.core.$strict>>;
225
+ lifecycle: z.ZodObject<{
226
+ create: z.ZodLiteral<true>;
227
+ reset: z.ZodLiteral<true>;
228
+ step: z.ZodLiteral<true>;
229
+ collect: z.ZodLiteral<true>;
230
+ destroy: z.ZodLiteral<true>;
231
+ resetScope: z.ZodEnum<{
232
+ task: "task";
233
+ attempt: "attempt";
234
+ }>;
235
+ }, z.core.$strict>;
236
+ graderInterface: z.ZodObject<{
237
+ visibleEvidence: z.ZodArray<z.ZodString>;
238
+ privilegedEvidence: z.ZodArray<z.ZodString>;
239
+ privateVerifierIsolation: z.ZodBoolean;
240
+ }, z.core.$strict>;
241
+ files: z.ZodArray<z.ZodObject<{
242
+ id: z.ZodString;
243
+ path: z.ZodString;
244
+ contentHash: z.ZodString;
245
+ sizeBytes: z.ZodNumber;
246
+ mediaType: z.ZodString;
247
+ visibility: z.ZodEnum<{
248
+ policy: "policy";
249
+ verifier: "verifier";
250
+ host_private: "host_private";
251
+ }>;
252
+ }, z.core.$strict>>;
253
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
254
+ }, z.core.$strict>;
255
+ export declare const HarnessReleaseSchema: z.ZodObject<{
256
+ schemaVersion: z.ZodLiteral<"openpond.harnessRelease.v2">;
257
+ id: z.ZodString;
258
+ agentSnapshot: z.ZodObject<{
259
+ id: z.ZodString;
260
+ contentHash: z.ZodString;
261
+ }, z.core.$strict>;
262
+ program: z.ZodObject<{
263
+ id: z.ZodString;
264
+ path: z.ZodString;
265
+ contentHash: z.ZodString;
266
+ sizeBytes: z.ZodNumber;
267
+ mediaType: z.ZodString;
268
+ visibility: z.ZodEnum<{
269
+ policy: "policy";
270
+ verifier: "verifier";
271
+ host_private: "host_private";
272
+ }>;
273
+ }, z.core.$strict>;
274
+ tools: z.ZodArray<z.ZodObject<{
275
+ name: z.ZodString;
276
+ description: z.ZodString;
277
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
278
+ inputSchemaHash: z.ZodString;
279
+ sideEffect: z.ZodEnum<{
280
+ read: "read";
281
+ write: "write";
282
+ }>;
283
+ timeoutMs: z.ZodNumber;
284
+ }, z.core.$strict>>;
285
+ lifecycle: z.ZodObject<{
286
+ create: z.ZodLiteral<true>;
287
+ reset: z.ZodLiteral<true>;
288
+ step: z.ZodLiteral<true>;
289
+ collect: z.ZodLiteral<true>;
290
+ destroy: z.ZodLiteral<true>;
291
+ resetScope: z.ZodEnum<{
292
+ task: "task";
293
+ attempt: "attempt";
294
+ }>;
295
+ }, z.core.$strict>;
296
+ graderInterface: z.ZodObject<{
297
+ visibleEvidence: z.ZodArray<z.ZodString>;
298
+ privilegedEvidence: z.ZodArray<z.ZodString>;
299
+ privateVerifierIsolation: z.ZodBoolean;
300
+ }, z.core.$strict>;
301
+ files: z.ZodArray<z.ZodObject<{
302
+ id: z.ZodString;
303
+ path: z.ZodString;
304
+ contentHash: z.ZodString;
305
+ sizeBytes: z.ZodNumber;
306
+ mediaType: z.ZodString;
307
+ visibility: z.ZodEnum<{
308
+ policy: "policy";
309
+ verifier: "verifier";
310
+ host_private: "host_private";
311
+ }>;
312
+ }, z.core.$strict>>;
313
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
314
+ contentHash: z.ZodString;
315
+ }, z.core.$strict>;
316
+ export declare const ModelActionSchema: z.ZodObject<{
317
+ id: z.ZodString;
318
+ turn: z.ZodNumber;
319
+ kind: z.ZodEnum<{
320
+ message: "message";
321
+ terminal: "terminal";
322
+ tool_call: "tool_call";
323
+ }>;
324
+ name: z.ZodNullable<z.ZodString>;
325
+ arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
326
+ content: z.ZodNullable<z.ZodString>;
327
+ }, z.core.$strict>;
328
+ export declare const ToolObservationSchema: z.ZodObject<{
329
+ actionId: z.ZodString;
330
+ turn: z.ZodNumber;
331
+ terminal: z.ZodBoolean;
332
+ output: z.ZodRecord<z.ZodString, z.ZodUnknown>;
333
+ artifactRefs: z.ZodArray<z.ZodObject<{
334
+ id: z.ZodString;
335
+ contentHash: z.ZodString;
336
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
337
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
338
+ }, z.core.$strict>>;
339
+ }, z.core.$strict>;
340
+ export declare function createAgentSnapshot(input: z.input<typeof AgentSnapshotContentSchema>): AgentSnapshot;
341
+ export declare function createHarnessRelease(input: z.input<typeof HarnessReleaseContentSchema>): HarnessRelease;
342
+ export declare const HarnessLifecycleEventSchema: z.ZodObject<{
343
+ sequence: z.ZodNumber;
344
+ type: z.ZodEnum<{
345
+ terminal: "terminal";
346
+ reset: "reset";
347
+ created: "created";
348
+ action: "action";
349
+ observation: "observation";
350
+ failure: "failure";
351
+ collected: "collected";
352
+ destroyed: "destroyed";
353
+ }>;
354
+ payloadHash: z.ZodString;
355
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
356
+ }, z.core.$strict>;
357
+ export declare const HarnessTraceSchema: z.ZodObject<{
358
+ schemaVersion: z.ZodLiteral<"openpond.harnessTrace.v1">;
359
+ manifest: z.ZodObject<{
360
+ id: z.ZodString;
361
+ contentHash: z.ZodString;
362
+ }, z.core.$strict>;
363
+ taskId: z.ZodString;
364
+ seed: z.ZodString;
365
+ events: z.ZodArray<z.ZodObject<{
366
+ sequence: z.ZodNumber;
367
+ type: z.ZodEnum<{
368
+ terminal: "terminal";
369
+ reset: "reset";
370
+ created: "created";
371
+ action: "action";
372
+ observation: "observation";
373
+ failure: "failure";
374
+ collected: "collected";
375
+ destroyed: "destroyed";
376
+ }>;
377
+ payloadHash: z.ZodString;
378
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
379
+ }, z.core.$strict>>;
380
+ actions: z.ZodArray<z.ZodObject<{
381
+ id: z.ZodString;
382
+ turn: z.ZodNumber;
383
+ kind: z.ZodEnum<{
384
+ message: "message";
385
+ terminal: "terminal";
386
+ tool_call: "tool_call";
387
+ }>;
388
+ name: z.ZodNullable<z.ZodString>;
389
+ arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
390
+ content: z.ZodNullable<z.ZodString>;
391
+ }, z.core.$strict>>;
392
+ observations: z.ZodArray<z.ZodObject<{
393
+ actionId: z.ZodString;
394
+ turn: z.ZodNumber;
395
+ terminal: z.ZodBoolean;
396
+ output: z.ZodRecord<z.ZodString, z.ZodUnknown>;
397
+ artifactRefs: z.ZodArray<z.ZodObject<{
398
+ id: z.ZodString;
399
+ contentHash: z.ZodString;
400
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
401
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
402
+ }, z.core.$strict>>;
403
+ }, z.core.$strict>>;
404
+ terminal: z.ZodBoolean;
405
+ failureClass: z.ZodNullable<z.ZodEnum<{
406
+ policy_failure: "policy_failure";
407
+ grader_failure: "grader_failure";
408
+ environment_failure: "environment_failure";
409
+ infrastructure_failure: "infrastructure_failure";
410
+ timeout: "timeout";
411
+ cancelled: "cancelled";
412
+ }>>;
413
+ output: z.ZodRecord<z.ZodString, z.ZodUnknown>;
414
+ contentHash: z.ZodString;
415
+ }, z.core.$strict>;
416
+ export type AgentSnapshot = z.infer<typeof AgentSnapshotSchema>;
417
+ export type HarnessRelease = z.infer<typeof HarnessReleaseSchema>;
418
+ export type ModelAction = z.infer<typeof ModelActionSchema>;
419
+ export type ToolObservation = z.infer<typeof ToolObservationSchema>;
420
+ export type HarnessTrace = z.infer<typeof HarnessTraceSchema>;
421
+ //# sourceMappingURL=harness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"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,CAAC;AAEZ,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from "./common.js";
2
+ export * from "./harness.js";
3
+ export * from "./harness-improvements.js";
4
+ export * from "./harness-workspaces.js";
5
+ export * from "./models.js";
6
+ export * from "./tools.js";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { z } from "zod";
2
+ export declare const ModelRefSchema: z.ZodObject<{
3
+ provider: z.ZodString;
4
+ model: z.ZodString;
5
+ revision: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6
+ artifactHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
7
+ tokenizerRevision: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8
+ chatTemplateHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9
+ }, z.core.$strict>;
10
+ export type ModelRef = z.infer<typeof ModelRefSchema>;
11
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,cAAc;;;;;;;kBAOhB,CAAC;AAEZ,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function sha256Hex(value: string | Uint8Array): string;
2
+ //# sourceMappingURL=sha256.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sha256.d.ts","sourceRoot":"","sources":["../../../../src/sha256.ts"],"names":[],"mappings":"AAgCA,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM,CAgE5D"}
@@ -0,0 +1,26 @@
1
+ import { z } from "zod";
2
+ export declare const ToolDeclarationSchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ description: z.ZodString;
5
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6
+ inputSchemaHash: z.ZodString;
7
+ sideEffect: z.ZodEnum<{
8
+ read: "read";
9
+ write: "write";
10
+ }>;
11
+ timeoutMs: z.ZodNumber;
12
+ }, z.core.$strict>;
13
+ export declare const CapabilityRequirementSchema: z.ZodObject<{
14
+ id: z.ZodString;
15
+ required: z.ZodBoolean;
16
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
17
+ portability: z.ZodEnum<{
18
+ portable: "portable";
19
+ host_adapter: "host_adapter";
20
+ local_only: "local_only";
21
+ hosted_only: "hosted_only";
22
+ }>;
23
+ }, z.core.$strict>;
24
+ export type ToolDeclaration = z.infer<typeof ToolDeclarationSchema>;
25
+ export type CapabilityRequirement = z.infer<typeof CapabilityRequirementSchema>;
26
+ //# sourceMappingURL=tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../../src/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,qBAAqB;;;;;;;;;;kBAOvB,CAAC;AAEZ,eAAO,MAAM,2BAA2B;;;;;;;;;;kBAK7B,CAAC;AAEZ,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,76 @@
1
+ {
2
+ "name": "@openpond/harness",
3
+ "version": "0.1.0",
4
+ "description": "Portable immutable Harness releases, workspaces, improvements, traces, tools, and model identities for OpenPond",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/types/index.d.ts",
9
+ "files": [
10
+ "dist",
11
+ "README.md",
12
+ "CONTRACT.md",
13
+ "RELEASING.md",
14
+ "LICENSE"
15
+ ],
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/types/index.d.ts",
19
+ "import": "./dist/index.js"
20
+ },
21
+ "./harness": {
22
+ "types": "./dist/types/harness.d.ts",
23
+ "import": "./dist/harness.js"
24
+ },
25
+ "./harness-improvements": {
26
+ "types": "./dist/types/harness-improvements.d.ts",
27
+ "import": "./dist/harness-improvements.js"
28
+ },
29
+ "./harness-workspaces": {
30
+ "types": "./dist/types/harness-workspaces.d.ts",
31
+ "import": "./dist/harness-workspaces.js"
32
+ },
33
+ "./models": {
34
+ "types": "./dist/types/models.d.ts",
35
+ "import": "./dist/models.js"
36
+ },
37
+ "./tools": {
38
+ "types": "./dist/types/tools.d.ts",
39
+ "import": "./dist/tools.js"
40
+ },
41
+ "./package.json": "./package.json"
42
+ },
43
+ "publishConfig": {
44
+ "access": "public",
45
+ "provenance": true
46
+ },
47
+ "repository": {
48
+ "type": "git",
49
+ "url": "git+https://github.com/openpond/openpond.git",
50
+ "directory": "packages/harness"
51
+ },
52
+ "homepage": "https://github.com/openpond/openpond/tree/master/packages/harness#readme",
53
+ "bugs": {
54
+ "url": "https://github.com/openpond/openpond/issues"
55
+ },
56
+ "engines": {
57
+ "node": ">=22.14.0 <25"
58
+ },
59
+ "scripts": {
60
+ "build": "tsx scripts/build.ts",
61
+ "typecheck": "tsc --noEmit --project tsconfig.json",
62
+ "test": "vitest run --root ../.. --config vitest.config.ts --project harness",
63
+ "check:api": "tsx scripts/check-public-package.ts",
64
+ "check:consumer": "tsx scripts/verify-packed-consumer.ts",
65
+ "check": "pnpm run typecheck && pnpm run test && pnpm run build && pnpm run check:api && pnpm run check:consumer && npm pack --dry-run"
66
+ },
67
+ "dependencies": {
68
+ "zod": "^4.1.13"
69
+ },
70
+ "devDependencies": {
71
+ "@types/node": "24.13.3",
72
+ "tsx": "4.23.1",
73
+ "typescript": "^5.9.3",
74
+ "vitest": "4.1.10"
75
+ }
76
+ }