@openpond/evals 0.1.1 → 0.3.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 (46) hide show
  1. package/CONTRACT.md +50 -2
  2. package/README.md +38 -6
  3. package/RELEASING.md +30 -24
  4. package/dist/compatibility.js +45 -0
  5. package/dist/conformance.js +6 -9
  6. package/dist/evidence/authoring.js +40 -0
  7. package/dist/evidence/conformance.js +194 -0
  8. package/dist/evidence/contracts.js +407 -0
  9. package/dist/evidence/eligibility.js +168 -0
  10. package/dist/evidence/index.js +4 -0
  11. package/dist/harness-improvements.js +329 -0
  12. package/dist/harness-workspaces.js +368 -0
  13. package/dist/harness.js +4 -6
  14. package/dist/index.js +4 -0
  15. package/dist/runs.js +33 -5
  16. package/dist/tasksets.js +2 -3
  17. package/dist/types/common.d.ts.map +1 -1
  18. package/dist/types/compatibility.d.ts +11 -0
  19. package/dist/types/compatibility.d.ts.map +1 -0
  20. package/dist/types/conformance.d.ts +8 -48
  21. package/dist/types/conformance.d.ts.map +1 -1
  22. package/dist/types/evidence/authoring.d.ts +41 -0
  23. package/dist/types/evidence/authoring.d.ts.map +1 -0
  24. package/dist/types/evidence/conformance.d.ts +767 -0
  25. package/dist/types/evidence/conformance.d.ts.map +1 -0
  26. package/dist/types/evidence/contracts.d.ts +873 -0
  27. package/dist/types/evidence/contracts.d.ts.map +1 -0
  28. package/dist/types/evidence/eligibility.d.ts +348 -0
  29. package/dist/types/evidence/eligibility.d.ts.map +1 -0
  30. package/dist/types/evidence/index.d.ts +5 -0
  31. package/dist/types/evidence/index.d.ts.map +1 -0
  32. package/dist/types/graders.d.ts.map +1 -1
  33. package/dist/types/harness-improvements.d.ts +523 -0
  34. package/dist/types/harness-improvements.d.ts.map +1 -0
  35. package/dist/types/harness-workspaces.d.ts +802 -0
  36. package/dist/types/harness-workspaces.d.ts.map +1 -0
  37. package/dist/types/harness.d.ts +6 -68
  38. package/dist/types/harness.d.ts.map +1 -1
  39. package/dist/types/index.d.ts +4 -0
  40. package/dist/types/index.d.ts.map +1 -1
  41. package/dist/types/runs.d.ts +46 -1
  42. package/dist/types/runs.d.ts.map +1 -1
  43. package/dist/types/sha256.d.ts.map +1 -1
  44. package/dist/types/tasksets.d.ts +2 -10
  45. package/dist/types/tasksets.d.ts.map +1 -1
  46. package/package.json +14 -2
package/dist/harness.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { FailureClassSchema, ImmutableArtifactRefSchema, ImmutableAssetRefSchema, ImmutableReleaseRefSchema, MetadataSchema, ReleaseHashSchema, ReleaseIdSchema, contentHash, } from "./common.js";
3
- import { EnvironmentContractSchema, PolicyBoundarySchema, ToolDeclarationSchema } from "./tasksets.js";
3
+ import { ToolDeclarationSchema } from "./tasksets.js";
4
4
  import { createAttemptReceipt } from "./runs.js";
5
5
  export const PortabilityReportSchema = z.object({
6
6
  portable: z.boolean(),
@@ -9,9 +9,9 @@ export const PortabilityReportSchema = z.object({
9
9
  hostPrivateAssetRefs: z.array(ReleaseIdSchema).max(10_000),
10
10
  }).strict();
11
11
  export const AgentSnapshotContentSchema = z.object({
12
- schemaVersion: z.literal("openpond.agentSnapshot.v1"),
12
+ schemaVersion: z.literal("openpond.agentSnapshot.v2"),
13
13
  id: ReleaseIdSchema,
14
- profileRelease: ImmutableReleaseRefSchema.nullable(),
14
+ sourceRelease: ImmutableReleaseRefSchema.nullable(),
15
15
  instructions: z.array(ImmutableAssetRefSchema).max(10_000),
16
16
  skills: z.array(ImmutableAssetRefSchema).max(10_000),
17
17
  agents: z.array(ImmutableAssetRefSchema).max(10_000),
@@ -40,15 +40,13 @@ export const GraderInterfaceContractSchema = z.object({
40
40
  privateVerifierIsolation: z.boolean(),
41
41
  }).strict();
42
42
  export const HarnessReleaseContentSchema = z.object({
43
- schemaVersion: z.literal("openpond.harnessRelease.v1"),
43
+ schemaVersion: z.literal("openpond.harnessRelease.v2"),
44
44
  id: ReleaseIdSchema,
45
45
  agentSnapshot: ImmutableReleaseRefSchema,
46
46
  program: ImmutableAssetRefSchema,
47
- environment: EnvironmentContractSchema,
48
47
  tools: z.array(ToolDeclarationSchema).max(200),
49
48
  lifecycle: LifecycleContractSchema,
50
49
  graderInterface: GraderInterfaceContractSchema,
51
- policy: PolicyBoundarySchema,
52
50
  files: z.array(ImmutableAssetRefSchema).max(100_000),
53
51
  metadata: MetadataSchema,
54
52
  }).strict();
package/dist/index.js CHANGED
@@ -1,5 +1,9 @@
1
1
  export * from "./common.js";
2
+ export * from "./compatibility.js";
3
+ export * from "./evidence/index.js";
2
4
  export * from "./graders.js";
3
5
  export * from "./harness.js";
6
+ export * from "./harness-improvements.js";
7
+ export * from "./harness-workspaces.js";
4
8
  export * from "./runs.js";
5
9
  export * from "./tasksets.js";
package/dist/runs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { FailureClassSchema, ImmutableArtifactRefSchema, ImmutableReleaseRefSchema, MetadataSchema, ReleaseHashSchema, ReleaseIdSchema, ReleaseTimestampSchema, contentHash, } from "./common.js";
2
+ import { FailureClassSchema, ImmutableArtifactRefSchema, ImmutableReleaseRefSchema, MetadataSchema, ReleaseHashSchema, ReleaseIdSchema, ReleaseTimestampSchema, assertContentHash, contentHash, } from "./common.js";
3
3
  export const ModelRefSchema = z.object({
4
4
  provider: ReleaseIdSchema,
5
5
  model: ReleaseIdSchema,
@@ -69,6 +69,21 @@ export const EvaluationResultContentSchema = z.object({
69
69
  metadata: MetadataSchema,
70
70
  }).strict();
71
71
  export const EvaluationResultSchema = EvaluationResultContentSchema.extend({ contentHash: ReleaseHashSchema }).strict();
72
+ export const HarnessCompatibilityReceiptContentSchema = z.object({
73
+ schemaVersion: z.literal("openpond.harnessCompatibility.v1"),
74
+ id: ReleaseIdSchema,
75
+ baseHarnessRelease: ImmutableReleaseRefSchema,
76
+ candidateHarnessRelease: ImmutableReleaseRefSchema,
77
+ tasksetRelease: ImmutableReleaseRefSchema,
78
+ environmentHash: ReleaseHashSchema,
79
+ toolContractHash: ReleaseHashSchema,
80
+ policyHash: ReleaseHashSchema,
81
+ graderInterfaceHash: ReleaseHashSchema,
82
+ metadata: MetadataSchema,
83
+ }).strict();
84
+ export const HarnessCompatibilityReceiptSchema = HarnessCompatibilityReceiptContentSchema
85
+ .extend({ contentHash: ReleaseHashSchema })
86
+ .strict();
72
87
  export function createRunManifest(input) {
73
88
  const content = RunManifestContentSchema.parse(input);
74
89
  return RunManifestSchema.parse({ ...content, contentHash: contentHash(content) });
@@ -115,13 +130,26 @@ export function aggregateEvaluationReceipts(input) {
115
130
  });
116
131
  return EvaluationResultSchema.parse({ ...content, contentHash: contentHash(content) });
117
132
  }
118
- export function assertComparableRunManifests(base, candidate) {
119
- if (base.harnessRelease.contentHash !== candidate.harnessRelease.contentHash) {
120
- throw new Error("Evaluation runs use different Harness Releases.");
121
- }
133
+ export function createHarnessCompatibilityReceipt(input) {
134
+ const content = HarnessCompatibilityReceiptContentSchema.parse(input);
135
+ return HarnessCompatibilityReceiptSchema.parse({ ...content, contentHash: contentHash(content) });
136
+ }
137
+ export function assertComparableRunManifests(base, candidate, compatibility) {
122
138
  if (base.tasksetRelease.contentHash !== candidate.tasksetRelease.contentHash) {
123
139
  throw new Error("Evaluation runs use different Taskset Releases.");
124
140
  }
141
+ if (base.harnessRelease.contentHash === candidate.harnessRelease.contentHash)
142
+ return;
143
+ if (!compatibility) {
144
+ throw new Error("Evaluation runs use different Harness Releases without a compatibility receipt.");
145
+ }
146
+ const receipt = HarnessCompatibilityReceiptSchema.parse(compatibility);
147
+ assertContentHash(receipt, "Harness compatibility receipt");
148
+ if (receipt.baseHarnessRelease.contentHash !== base.harnessRelease.contentHash
149
+ || receipt.candidateHarnessRelease.contentHash !== candidate.harnessRelease.contentHash
150
+ || receipt.tasksetRelease.contentHash !== base.tasksetRelease.contentHash) {
151
+ throw new Error("Harness compatibility receipt does not match the compared runs.");
152
+ }
125
153
  }
126
154
  export function rewardEligibleReceipts(receipts) {
127
155
  return receipts.filter((receipt) => receipt.terminal
package/dist/tasksets.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { ImmutableAssetRefSchema, ImmutableReleaseRefSchema, MetadataSchema, ReleaseHashSchema, ReleaseIdSchema, assertContentHash, contentHash, } from "./common.js";
2
+ import { ImmutableAssetRefSchema, MetadataSchema, ReleaseHashSchema, ReleaseIdSchema, assertContentHash, contentHash, } from "./common.js";
3
3
  export const TaskSplitSchema = z.enum(["train", "validation", "test", "frozen_eval"]);
4
4
  export const PolicyBoundarySchema = z.object({
5
5
  policyVisibleFields: z.array(ReleaseIdSchema).max(1_000).default([]),
@@ -77,10 +77,9 @@ export const TaskRecordSchema = z.object({
77
77
  tags: z.array(ReleaseIdSchema).max(100).default([]),
78
78
  }).strict();
79
79
  export const TasksetReleaseContentSchema = z.object({
80
- schemaVersion: z.literal("openpond.tasksetRelease.v1"),
80
+ schemaVersion: z.literal("openpond.tasksetRelease.v2"),
81
81
  id: ReleaseIdSchema,
82
82
  revision: z.number().int().positive(),
83
- harnessRelease: ImmutableReleaseRefSchema,
84
83
  policy: PolicyBoundarySchema,
85
84
  environment: EnvironmentContractSchema,
86
85
  tools: z.array(ToolDeclarationSchema).max(200),
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,uBAAuB,OAAQ,CAAC;AAC7C,eAAO,MAAM,wBAAwB,YAAc,CAAC;AACpD,eAAO,MAAM,eAAe,aAAoC,CAAC;AACjE,eAAO,MAAM,iBAAiB,aAAqC,CAAC;AACpE,eAAO,MAAM,sBAAsB,aAAwC,CAAC;AAC5E,eAAO,MAAM,cAAc,sDAAgD,CAAC;AAE5E,eAAO,MAAM,yBAAyB;;;kBAG3B,CAAC;AAEZ,eAAO,MAAM,uBAAuB;;;;;;;;;;;kBAOzB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./tasksets.js";
4
+ export declare function createVerifiedHarnessCompatibilityReceipt(input: {
5
+ id: string;
6
+ baseHarnessRelease: HarnessRelease;
7
+ candidateHarnessRelease: HarnessRelease;
8
+ tasksetRelease: TasksetRelease;
9
+ metadata?: Record<string, unknown>;
10
+ }): HarnessCompatibilityReceipt;
11
+ //# sourceMappingURL=compatibility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compatibility.d.ts","sourceRoot":"","sources":["../../../../src/compatibility.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,WAAW,CAAC;AACnB,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;AAEvB,wBAAgB,yCAAyC,CAAC,KAAK,EAAE;IAC/D,EAAE,EAAE,MAAM,CAAC;IACX,kBAAkB,EAAE,cAAc,CAAC;IACnC,uBAAuB,EAAE,cAAc,CAAC;IACxC,cAAc,EAAE,cAAc,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC,GAAG,2BAA2B,CA4C9B"}
@@ -1,8 +1,8 @@
1
1
  export declare const genericToolConformance: {
2
2
  snapshot: {
3
- schemaVersion: "openpond.agentSnapshot.v1";
3
+ schemaVersion: "openpond.agentSnapshot.v2";
4
4
  id: string;
5
- profileRelease: {
5
+ sourceRelease: {
6
6
  id: string;
7
7
  contentHash: string;
8
8
  } | null;
@@ -61,7 +61,7 @@ export declare const genericToolConformance: {
61
61
  contentHash: string;
62
62
  };
63
63
  harness: {
64
- schemaVersion: "openpond.harnessRelease.v1";
64
+ schemaVersion: "openpond.harnessRelease.v2";
65
65
  id: string;
66
66
  agentSnapshot: {
67
67
  id: string;
@@ -75,16 +75,6 @@ export declare const genericToolConformance: {
75
75
  mediaType: string;
76
76
  visibility: "policy" | "verifier" | "host_private";
77
77
  };
78
- environment: {
79
- protocolVersion: "openpond.environment.v1";
80
- kind: "text" | "agent" | "work" | "custom_program";
81
- entrypoint: string;
82
- stateful: boolean;
83
- deterministicSeeds: boolean;
84
- lifecycle: ("create" | "reset" | "step" | "collect" | "destroy")[];
85
- networkPolicy: "none" | "declared_read_only" | "declared_scoped";
86
- defaultTimeoutMs: number;
87
- };
88
78
  tools: {
89
79
  name: string;
90
80
  description: string;
@@ -106,12 +96,6 @@ export declare const genericToolConformance: {
106
96
  privilegedEvidence: string[];
107
97
  privateVerifierIsolation: boolean;
108
98
  };
109
- policy: {
110
- policyVisibleFields: string[];
111
- privilegedFields: string[];
112
- hiddenGraderRefs: string[];
113
- connectedAppScopes: string[];
114
- };
115
99
  files: {
116
100
  id: string;
117
101
  path: string;
@@ -124,13 +108,9 @@ export declare const genericToolConformance: {
124
108
  contentHash: string;
125
109
  };
126
110
  taskset: {
127
- schemaVersion: "openpond.tasksetRelease.v1";
111
+ schemaVersion: "openpond.tasksetRelease.v2";
128
112
  id: string;
129
113
  revision: number;
130
- harnessRelease: {
131
- id: string;
132
- contentHash: string;
133
- };
134
114
  policy: {
135
115
  policyVisibleFields: string[];
136
116
  privilegedFields: string[];
@@ -286,9 +266,9 @@ export declare const genericToolConformance: {
286
266
  };
287
267
  export declare const marketingPortfolioConformance: {
288
268
  snapshot: {
289
- schemaVersion: "openpond.agentSnapshot.v1";
269
+ schemaVersion: "openpond.agentSnapshot.v2";
290
270
  id: string;
291
- profileRelease: {
271
+ sourceRelease: {
292
272
  id: string;
293
273
  contentHash: string;
294
274
  } | null;
@@ -347,7 +327,7 @@ export declare const marketingPortfolioConformance: {
347
327
  contentHash: string;
348
328
  };
349
329
  harness: {
350
- schemaVersion: "openpond.harnessRelease.v1";
330
+ schemaVersion: "openpond.harnessRelease.v2";
351
331
  id: string;
352
332
  agentSnapshot: {
353
333
  id: string;
@@ -361,16 +341,6 @@ export declare const marketingPortfolioConformance: {
361
341
  mediaType: string;
362
342
  visibility: "policy" | "verifier" | "host_private";
363
343
  };
364
- environment: {
365
- protocolVersion: "openpond.environment.v1";
366
- kind: "text" | "agent" | "work" | "custom_program";
367
- entrypoint: string;
368
- stateful: boolean;
369
- deterministicSeeds: boolean;
370
- lifecycle: ("create" | "reset" | "step" | "collect" | "destroy")[];
371
- networkPolicy: "none" | "declared_read_only" | "declared_scoped";
372
- defaultTimeoutMs: number;
373
- };
374
344
  tools: {
375
345
  name: string;
376
346
  description: string;
@@ -392,12 +362,6 @@ export declare const marketingPortfolioConformance: {
392
362
  privilegedEvidence: string[];
393
363
  privateVerifierIsolation: boolean;
394
364
  };
395
- policy: {
396
- policyVisibleFields: string[];
397
- privilegedFields: string[];
398
- hiddenGraderRefs: string[];
399
- connectedAppScopes: string[];
400
- };
401
365
  files: {
402
366
  id: string;
403
367
  path: string;
@@ -410,13 +374,9 @@ export declare const marketingPortfolioConformance: {
410
374
  contentHash: string;
411
375
  };
412
376
  taskset: {
413
- schemaVersion: "openpond.tasksetRelease.v1";
377
+ schemaVersion: "openpond.tasksetRelease.v2";
414
378
  id: string;
415
379
  revision: number;
416
- harnessRelease: {
417
- id: string;
418
- contentHash: string;
419
- };
420
380
  policy: {
421
381
  policyVisibleFields: string[];
422
382
  privilegedFields: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"conformance.d.ts","sourceRoot":"","sources":["../../src/conformance.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEjC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGxC,CAAC"}
1
+ {"version":3,"file":"conformance.d.ts","sourceRoot":"","sources":["../../../../src/conformance.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEjC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGxC,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { z } from "zod";
2
+ import { type WorkEvidenceReceipt } from "./contracts.js";
3
+ import { type WorkEvidenceEligibility } from "./eligibility.js";
4
+ export declare const WorkEvidenceAuthoringInputSchema: z.ZodObject<{
5
+ schemaVersion: z.ZodLiteral<"openpond.workEvidenceAuthoringInput.v1">;
6
+ evidenceReceiptRef: z.ZodObject<{
7
+ contentHash: z.ZodString;
8
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
10
+ id: z.ZodString;
11
+ }, z.core.$strict>;
12
+ inputHash: z.ZodString;
13
+ agentSnapshot: z.ZodNullable<z.ZodObject<{
14
+ id: z.ZodString;
15
+ contentHash: z.ZodString;
16
+ }, z.core.$strict>>;
17
+ sanitizedTraceRef: z.ZodObject<{
18
+ contentHash: z.ZodString;
19
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
21
+ id: z.ZodString;
22
+ }, z.core.$strict>;
23
+ outputRefs: z.ZodArray<z.ZodObject<{
24
+ contentHash: z.ZodString;
25
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
26
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
27
+ id: z.ZodString;
28
+ }, z.core.$strict>>;
29
+ validationEvidenceRefs: z.ZodArray<z.ZodObject<{
30
+ contentHash: z.ZodString;
31
+ mediaType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
32
+ sizeBytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
33
+ id: z.ZodString;
34
+ }, z.core.$strict>>;
35
+ incomplete: z.ZodBoolean;
36
+ evalCandidate: z.ZodBoolean;
37
+ blockerCodes: z.ZodArray<z.ZodString>;
38
+ }, z.core.$strict>;
39
+ export declare function toWorkEvidenceAuthoringInput(evidenceInput: WorkEvidenceReceipt, eligibilityInput: WorkEvidenceEligibility): WorkEvidenceAuthoringInput;
40
+ export type WorkEvidenceAuthoringInput = z.infer<typeof WorkEvidenceAuthoringInputSchema>;
41
+ //# sourceMappingURL=authoring.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authoring.d.ts","sourceRoot":"","sources":["../../../../../src/evidence/authoring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAIL,KAAK,mBAAmB,EACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAiC,KAAK,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAE/F,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAWlC,CAAC;AAEZ,wBAAgB,4BAA4B,CAC1C,aAAa,EAAE,mBAAmB,EAClC,gBAAgB,EAAE,uBAAuB,GACxC,0BAA0B,CAuB5B;AAED,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}