spawnfile 0.1.29 → 0.1.31
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/dist/auth/index.d.ts +1 -0
- package/dist/auth/index.js +1 -0
- package/dist/auth/trainingAuth.js +3 -0
- package/dist/auth/trainingCodexAuthority.d.ts +8 -0
- package/dist/auth/trainingCodexAuthority.js +40 -0
- package/dist/compiler/containerDaimonGrokWorkerRender.js +4 -0
- package/dist/compiler/containerDaimonUidEntrypointRender.js +3 -1
- package/dist/compiler/training/container/launch.js +7 -0
- package/dist/compiler/training/execution.d.ts +3 -3
- package/dist/compiler/training/plan/contract.d.ts +7 -7
- package/dist/compiler/training/preparation/assets/package-lock.json +10 -10
- package/dist/compiler/training/repair/contract.d.ts +8 -8
- package/dist/compiler/training/rewind/contract.d.ts +16 -16
- package/dist/compiler/training/rewind/memorySchemas.d.ts +1 -1
- package/dist/compiler/training/rewind/snapshotManifest.d.ts +1 -1
- package/dist/compiler/training/subjectLease.d.ts +1 -1
- package/dist/compiler/training/subjectLease.js +11 -11
- package/dist/deployment/organizationReady.d.ts +1 -1
- package/dist/deployment/record.d.ts +5 -5
- package/dist/deployment/record.js +2 -2
- package/dist/deployment/resourceLog.d.ts +3 -3
- package/dist/deployment/resourceLog.js +4 -3
- package/dist/deployment/upReceiptTypes.d.ts +2 -2
- package/dist/distribution/consumeImage.js +4 -3
- package/dist/distribution/consumeImageDaimonContract.d.ts +432 -0
- package/dist/distribution/consumeImageDaimonContract.js +36 -0
- package/dist/distribution/consumeImageDaimonDocker.d.ts +5 -1
- package/dist/distribution/consumeImageDaimonDocker.js +10 -9
- package/dist/distribution/daimonImageContract.test-fixtures.d.ts +2 -0
- package/dist/distribution/daimonImageContract.test-fixtures.js +16 -0
- package/dist/distribution/imageRuntimeAuth.d.ts +3 -1
- package/dist/distribution/imageRuntimeAuth.js +20 -13
- package/dist/manifest/trainingDataSchemas.d.ts +2 -2
- package/dist/manifest/trainingDataSchemas.js +2 -1
- package/dist/recording/moment.d.ts +6 -6
- package/dist/recording/parse.js +2 -1
- package/dist/runtime/daimon/adapter.js +1 -1
- package/dist/runtime/daimon/config.js +5 -2
- package/dist/runtime/daimon/contract-manifest.json +1 -1
- package/dist/runtime/daimon/contract-manifest.sha256 +1 -1
- package/dist/runtime/daimon/contractManifest.d.ts +13 -3
- package/dist/runtime/daimon/contractManifest.js +29 -11
- package/dist/runtime/daimon/contractManifest.js.map +1 -1
- package/dist/runtime/daimon/contractManifestSchema.d.ts +1555 -1
- package/dist/runtime/daimon/contractManifestSchema.js +10 -1
- package/dist/runtime/daimon/contractManifestSchema.js.map +1 -1
- package/dist/runtime/daimon/engineDescriptorSchema.d.ts +44 -2
- package/dist/runtime/daimon/engineDescriptorSchema.js +4 -2
- package/dist/runtime/daimon/engineDescriptorSchema.js.map +1 -1
- package/dist/runtime/daimon/engineDescriptors.generated.d.ts +11 -3
- package/dist/runtime/daimon/engineDescriptors.generated.js +2 -2
- package/dist/runtime/daimon/engineDescriptors.generated.js.map +1 -1
- package/dist/runtime/daimon/engines.d.ts +25 -1
- package/dist/runtime/daimon/engines.js +2 -1
- package/dist/runtime/daimon/engines.js.map +1 -1
- package/dist/runtime/daimon/runAuth.d.ts +3 -2
- package/dist/runtime/daimon/runAuth.js +16 -12
- package/dist/runtime/daimon/subscriptionRealms.d.ts +9 -0
- package/dist/runtime/daimon/subscriptionRealms.js +18 -0
- package/dist/runtime/daimon/training/native/adapter.js +28 -7
- package/dist/runtime/daimon/training/native/adapter.js.map +1 -1
- package/dist/runtime/daimon/training/native/child/arguments.js +3 -2
- package/dist/runtime/daimon/training/native/child/arguments.js.map +1 -1
- package/dist/runtime/daimon/training/native/child/fixture.js +2 -0
- package/dist/runtime/daimon/training/native/child/fixture.js.map +1 -1
- package/dist/runtime/daimon/training/native/child/lifecycle.js +14 -5
- package/dist/runtime/daimon/training/native/child/lifecycle.js.map +1 -1
- package/dist/runtime/daimon/training/native/container/lifecycle.js +2 -1
- package/dist/runtime/daimon/training/native/container/lifecycle.js.map +1 -1
- package/dist/runtime/daimon/training/native/container/manifest.d.ts +2 -2
- package/dist/runtime/daimon/training/native/container/manifest.js +25 -5
- package/dist/runtime/daimon/training/native/container/manifest.js.map +1 -1
- package/dist/runtime/daimon/training/native/preparation/fixtures.js +4 -2
- package/dist/runtime/daimon/training/native/preparation/fixtures.js.map +1 -1
- package/dist/runtime/daimon/training/native/receipt/grok.d.ts +1 -1
- package/dist/runtime/daimon/training/native/receipt/index.d.ts +1 -0
- package/dist/runtime/daimon/training/native/receipt/index.js +1 -0
- package/dist/runtime/daimon/training/native/receipt/index.js.map +1 -1
- package/dist/runtime/daimon/training/native/receipt/sandbox.d.ts +1 -1
- package/dist/runtime/daimon/training/native/receipt/schema.d.ts +8 -4
- package/dist/runtime/daimon/training/native/receipt/schema.js +1 -1
- package/dist/runtime/daimon/training/native/receipt/schema.js.map +1 -1
- package/dist/runtime/daimon/training/native/receipt/subscription.d.ts +13 -0
- package/dist/runtime/daimon/training/native/receipt/subscription.js +13 -0
- package/dist/runtime/daimon/training/native/receipt/subscription.js.map +1 -0
- package/dist/runtime/daimon/training/native/test-fixtures.js +6 -2
- package/dist/runtime/daimon/training/native/test-fixtures.js.map +1 -1
- package/dist/runtime/daimon/training/native/worker/public.d.ts +12 -0
- package/dist/runtime/daimon/training/native/worker/public.js.map +1 -1
- package/dist/runtime/daimon/training/native/worker/sandbox.js +4 -2
- package/dist/runtime/daimon/training/native/worker/sandbox.js.map +1 -1
- package/dist/runtime/daimon/training/native/worker/worker.js +4 -2
- package/dist/runtime/daimon/training/native/worker/worker.js.map +1 -1
- package/dist/runtime/daimon/training/services/account-lease.d.ts +7 -0
- package/dist/runtime/daimon/training/services/account-lease.js +76 -0
- package/dist/runtime/daimon/training/services/account-lease.js.map +1 -0
- package/dist/runtime/daimon/training/services/index.d.ts +1 -0
- package/dist/runtime/daimon/training/services/index.js +1 -0
- package/dist/runtime/daimon/training/services/index.js.map +1 -1
- package/dist/shared/trainingLegacy/index.d.ts +1 -0
- package/dist/shared/trainingLegacy/index.js +1 -0
- package/dist/shared/trainingLegacy/index.js.map +1 -1
- package/dist/shared/trainingLegacy/trainingLegacyDateTime.d.ts +5 -0
- package/dist/shared/trainingLegacy/trainingLegacyDateTime.js +7 -0
- package/dist/shared/trainingLegacy/trainingLegacyDateTime.js.map +1 -0
- package/dist/shared/trainingLegacy/trainingLegacyWire.d.ts +1 -1
- package/dist/training/cli/grader/atomic/files.d.ts +3 -3
- package/dist/training/cli/spawnfile/moments.d.ts +2 -2
- package/dist/training/cli/spawnfile/moments.js +2 -1
- package/dist/training/cli/spawnfile/moments.js.map +1 -1
- package/dist/training/experiments/repair/receipt.d.ts +1 -1
- package/dist/training/experiments/replay/schema.d.ts +1 -1
- package/dist/training/graders/atomic/format.d.ts +1 -1
- package/dist/training/graders/decomposition/format.d.ts +10 -10
- package/dist/training/graders/decomposition/format.js +3 -3
- package/dist/training/graders/decomposition/format.js.map +1 -1
- package/dist/training/graders/decomposition/transport.d.ts +2 -2
- package/dist/training/graders/format/grader.d.ts +2 -2
- package/dist/training/graders/format/label-import.d.ts +1 -1
- package/dist/training/graders/format/labels.d.ts +1 -1
- package/dist/training/graders/identity.d.ts +1 -1
- package/dist/training/inference/evaluator/ledger.d.ts +2 -2
- package/dist/training/inference/evaluator/ledger.js +2 -1
- package/dist/training/inference/evaluator/ledger.js.map +1 -1
- package/dist/training/optimization/protocol.d.ts +11 -11
- package/package.json +4 -4
- package/runtimes.yaml +6 -6
|
@@ -28,9 +28,9 @@ export declare const unitSchema: z.ZodObject<{
|
|
|
28
28
|
}, z.core.$strict>>;
|
|
29
29
|
fields: z.ZodOptional<z.ZodObject<{
|
|
30
30
|
object: z.ZodOptional<z.ZodString>;
|
|
31
|
+
time: z.ZodOptional<z.ZodString>;
|
|
31
32
|
actor: z.ZodOptional<z.ZodString>;
|
|
32
33
|
action: z.ZodOptional<z.ZodString>;
|
|
33
|
-
time: z.ZodOptional<z.ZodString>;
|
|
34
34
|
modality: z.ZodOptional<z.ZodString>;
|
|
35
35
|
quantity: z.ZodOptional<z.ZodString>;
|
|
36
36
|
}, z.core.$strict>>;
|
|
@@ -45,7 +45,7 @@ export declare const unitSchema: z.ZodObject<{
|
|
|
45
45
|
kind: z.ZodString;
|
|
46
46
|
}, z.core.$strict>;
|
|
47
47
|
export declare const decompositionSchema: z.ZodObject<{
|
|
48
|
-
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.decomposition.v1"
|
|
48
|
+
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.decomposition.v1">, unknown>;
|
|
49
49
|
output: z.ZodObject<{
|
|
50
50
|
from: z.ZodString;
|
|
51
51
|
sha256: z.ZodString;
|
|
@@ -73,9 +73,9 @@ export declare const decompositionSchema: z.ZodObject<{
|
|
|
73
73
|
}, z.core.$strict>>;
|
|
74
74
|
fields: z.ZodOptional<z.ZodObject<{
|
|
75
75
|
object: z.ZodOptional<z.ZodString>;
|
|
76
|
+
time: z.ZodOptional<z.ZodString>;
|
|
76
77
|
actor: z.ZodOptional<z.ZodString>;
|
|
77
78
|
action: z.ZodOptional<z.ZodString>;
|
|
78
|
-
time: z.ZodOptional<z.ZodString>;
|
|
79
79
|
modality: z.ZodOptional<z.ZodString>;
|
|
80
80
|
quantity: z.ZodOptional<z.ZodString>;
|
|
81
81
|
}, z.core.$strict>>;
|
|
@@ -93,7 +93,7 @@ export declare const decompositionSchema: z.ZodObject<{
|
|
|
93
93
|
provider: z.ZodString;
|
|
94
94
|
model: z.ZodString;
|
|
95
95
|
prompt_digest: z.ZodString;
|
|
96
|
-
at: z.ZodISODateTime
|
|
96
|
+
at: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODateTime]>;
|
|
97
97
|
}, z.core.$strict>>;
|
|
98
98
|
rejected: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
99
99
|
id: z.ZodString;
|
|
@@ -117,9 +117,9 @@ export declare const decompositionSchema: z.ZodObject<{
|
|
|
117
117
|
}, z.core.$strict>>;
|
|
118
118
|
fields: z.ZodOptional<z.ZodObject<{
|
|
119
119
|
object: z.ZodOptional<z.ZodString>;
|
|
120
|
+
time: z.ZodOptional<z.ZodString>;
|
|
120
121
|
actor: z.ZodOptional<z.ZodString>;
|
|
121
122
|
action: z.ZodOptional<z.ZodString>;
|
|
122
|
-
time: z.ZodOptional<z.ZodString>;
|
|
123
123
|
modality: z.ZodOptional<z.ZodString>;
|
|
124
124
|
quantity: z.ZodOptional<z.ZodString>;
|
|
125
125
|
}, z.core.$strict>>;
|
|
@@ -139,7 +139,7 @@ export declare const decompositionSchema: z.ZodObject<{
|
|
|
139
139
|
provider: z.ZodString;
|
|
140
140
|
model: z.ZodString;
|
|
141
141
|
prompt_digest: z.ZodString;
|
|
142
|
-
at: z.ZodISODateTime
|
|
142
|
+
at: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODateTime]>;
|
|
143
143
|
}, z.core.$strict>;
|
|
144
144
|
missed: z.ZodArray<z.ZodObject<{
|
|
145
145
|
pair: z.ZodOptional<z.ZodObject<{
|
|
@@ -160,9 +160,9 @@ export declare const decompositionSchema: z.ZodObject<{
|
|
|
160
160
|
}, z.core.$strict>>;
|
|
161
161
|
fields: z.ZodOptional<z.ZodObject<{
|
|
162
162
|
object: z.ZodOptional<z.ZodString>;
|
|
163
|
+
time: z.ZodOptional<z.ZodString>;
|
|
163
164
|
actor: z.ZodOptional<z.ZodString>;
|
|
164
165
|
action: z.ZodOptional<z.ZodString>;
|
|
165
|
-
time: z.ZodOptional<z.ZodString>;
|
|
166
166
|
modality: z.ZodOptional<z.ZodString>;
|
|
167
167
|
quantity: z.ZodOptional<z.ZodString>;
|
|
168
168
|
}, z.core.$strict>>;
|
|
@@ -176,7 +176,7 @@ export declare const decompositionSchema: z.ZodObject<{
|
|
|
176
176
|
label: z.ZodOptional<z.ZodString>;
|
|
177
177
|
kind: z.ZodString;
|
|
178
178
|
}, z.core.$strict>>;
|
|
179
|
-
at: z.ZodISODateTime
|
|
179
|
+
at: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODateTime]>;
|
|
180
180
|
}, z.core.$strict>>;
|
|
181
181
|
}, z.core.$strict>;
|
|
182
182
|
export type AtomicUnit = z.infer<typeof unitSchema>;
|
|
@@ -188,7 +188,7 @@ export interface DecompositionInputs {
|
|
|
188
188
|
obligationKinds?: readonly string[];
|
|
189
189
|
}
|
|
190
190
|
export declare const checkTemplatesSchema: z.ZodObject<{
|
|
191
|
-
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.check-templates.v1"
|
|
191
|
+
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.check-templates.v1">, unknown>;
|
|
192
192
|
templates: z.ZodArray<z.ZodObject<{
|
|
193
193
|
id: z.ZodString;
|
|
194
194
|
applies_to: z.ZodString;
|
|
@@ -210,9 +210,9 @@ export declare const checkTemplatesSchema: z.ZodObject<{
|
|
|
210
210
|
when: z.ZodOptional<z.ZodObject<{
|
|
211
211
|
field: z.ZodEnum<{
|
|
212
212
|
object: "object";
|
|
213
|
+
time: "time";
|
|
213
214
|
actor: "actor";
|
|
214
215
|
action: "action";
|
|
215
|
-
time: "time";
|
|
216
216
|
modality: "modality";
|
|
217
217
|
quantity: "quantity";
|
|
218
218
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { COUNCIL_WINDOW_CONFIG_KEY } from '../../../shared/trainingLegacy/index.js';
|
|
1
|
+
import { compatibleIsoDateTimeSchema, COUNCIL_WINDOW_CONFIG_KEY } from '../../../shared/trainingLegacy/index.js';
|
|
2
2
|
import { compatibleWireLiteral } from '../../contracts/index.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { identifier, parseSchema, parseYaml, rowsSchema, provider } from '../format/index.js';
|
|
@@ -20,13 +20,13 @@ export const unitSchema = z.strictObject({
|
|
|
20
20
|
source_span: z.string().optional(),
|
|
21
21
|
});
|
|
22
22
|
const extractor = z.strictObject({ provider: identifier, model: z.string().min(1),
|
|
23
|
-
prompt_digest: z.string().regex(/^[a-f0-9]{64}$/), at:
|
|
23
|
+
prompt_digest: z.string().regex(/^[a-f0-9]{64}$/), at: compatibleIsoDateTimeSchema({ offset: true }) });
|
|
24
24
|
export const decompositionSchema = z.strictObject({
|
|
25
25
|
schema: compatibleWireLiteral('spawnfile.training.decomposition.v1'), output: reference,
|
|
26
26
|
context: z.record(identifier, reference).default({}), units: z.array(unitSchema),
|
|
27
27
|
extractors: z.array(extractor).min(1),
|
|
28
28
|
rejected: z.array(z.strictObject({ id, reasons: z.array(z.string()).min(1), unit: unitSchema })).optional(),
|
|
29
|
-
audit: z.strictObject({ extractor, missed: z.array(unitSchema), at:
|
|
29
|
+
audit: z.strictObject({ extractor, missed: z.array(unitSchema), at: compatibleIsoDateTimeSchema({ offset: true }) }).optional(),
|
|
30
30
|
});
|
|
31
31
|
const read = z.string().regex(/^(unit(?:\.pair)?(?:\.(?:cited_rows|source_snapshots))?|paragraph|neighbors|output\.[\w.-]+|context\.[\w-]+)$/);
|
|
32
32
|
const answer = z.union([z.string(), z.number().int(), z.boolean()]).transform(String);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.js","sourceRoot":"","sources":["../../../../src/training/graders/decomposition/format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"format.js","sourceRoot":"","sources":["../../../../src/training/graders/decomposition/format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACjH,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9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
|
|
|
19
19
|
}, z.core.$strict>>;
|
|
20
20
|
fields: z.ZodOptional<z.ZodObject<{
|
|
21
21
|
object: z.ZodOptional<z.ZodString>;
|
|
22
|
+
time: z.ZodOptional<z.ZodString>;
|
|
22
23
|
actor: z.ZodOptional<z.ZodString>;
|
|
23
24
|
action: z.ZodOptional<z.ZodString>;
|
|
24
|
-
time: z.ZodOptional<z.ZodString>;
|
|
25
25
|
modality: z.ZodOptional<z.ZodString>;
|
|
26
26
|
quantity: z.ZodOptional<z.ZodString>;
|
|
27
27
|
}, z.core.$strict>>;
|
|
@@ -60,9 +60,9 @@ export declare function parseExtractionResponse(text: string): {
|
|
|
60
60
|
} | undefined;
|
|
61
61
|
fields?: {
|
|
62
62
|
object?: string | undefined;
|
|
63
|
+
time?: string | undefined;
|
|
63
64
|
actor?: string | undefined;
|
|
64
65
|
action?: string | undefined;
|
|
65
|
-
time?: string | undefined;
|
|
66
66
|
modality?: string | undefined;
|
|
67
67
|
quantity?: string | undefined;
|
|
68
68
|
} | undefined;
|
|
@@ -44,10 +44,10 @@ declare const namedModelSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
44
44
|
export type DecisionModel = z.infer<typeof modelSchema>;
|
|
45
45
|
export type NamedDecisionModel = z.infer<typeof namedModelSchema>;
|
|
46
46
|
export declare const graderSchema: z.ZodObject<{
|
|
47
|
-
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.grader.v1"
|
|
47
|
+
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.grader.v1">, unknown>;
|
|
48
48
|
id: z.ZodString;
|
|
49
49
|
golden: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
50
|
-
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.labels.v1"
|
|
50
|
+
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.labels.v1">, unknown>;
|
|
51
51
|
labelers: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
52
52
|
kind: z.ZodLiteral<"model">;
|
|
53
53
|
provider: z.ZodString;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { Grader } from './grader.js';
|
|
3
3
|
declare const importSchema: z.ZodObject<{
|
|
4
|
-
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.label-import.v1"
|
|
4
|
+
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.label-import.v1">, unknown>;
|
|
5
5
|
grader: z.ZodString;
|
|
6
6
|
labelers: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
7
7
|
kind: z.ZodLiteral<"model">;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { Grader } from './grader.js';
|
|
3
3
|
export declare const labelsSchema: z.ZodObject<{
|
|
4
|
-
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.labels.v1"
|
|
4
|
+
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.labels.v1">, unknown>;
|
|
5
5
|
grader: z.ZodString;
|
|
6
6
|
labelers: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
7
7
|
kind: z.ZodLiteral<"model">;
|
|
@@ -25,7 +25,7 @@ export declare const calibrationIdentitySchema: z.ZodObject<{
|
|
|
25
25
|
}, z.core.$strict>;
|
|
26
26
|
export type CalibrationIdentity = z.infer<typeof calibrationIdentitySchema>;
|
|
27
27
|
export declare const calibrationFileSchema: z.ZodObject<{
|
|
28
|
-
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.grader-calibration.v1"
|
|
28
|
+
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.grader-calibration.v1">, unknown>;
|
|
29
29
|
identity: z.ZodObject<{
|
|
30
30
|
mode: z.ZodOptional<z.ZodLiteral<"identity">>;
|
|
31
31
|
questions: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -2,7 +2,7 @@ import type { InferenceProviderRegistry } from '../../contracts/inference-regist
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { type EvaluatorPurpose } from './policy.js';
|
|
4
4
|
declare const receipt: z.ZodObject<{
|
|
5
|
-
version: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.evaluator-request.v1"
|
|
5
|
+
version: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.evaluator-request.v1">, unknown>;
|
|
6
6
|
id: z.ZodString;
|
|
7
7
|
policy: z.ZodString;
|
|
8
8
|
route: z.ZodString;
|
|
@@ -11,7 +11,7 @@ declare const receipt: z.ZodObject<{
|
|
|
11
11
|
failed: "failed";
|
|
12
12
|
admitted: "admitted";
|
|
13
13
|
}>;
|
|
14
|
-
at: z.
|
|
14
|
+
at: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODateTime]>;
|
|
15
15
|
reservedUsd: z.ZodNumber;
|
|
16
16
|
chargedUsd: z.ZodNumber;
|
|
17
17
|
inputTokens: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { compatibleIsoDateTimeSchema } from '../../../shared/trainingLegacy/index.js';
|
|
1
2
|
import { compatibleWireLiteral } from '../../contracts/index.js';
|
|
2
3
|
import { appendFileSync, constants, closeSync, fstatSync, fsyncSync, openSync, readFileSync } from 'node:fs';
|
|
3
4
|
import { randomUUID, createHash } from 'node:crypto';
|
|
@@ -5,7 +6,7 @@ import { z } from 'zod';
|
|
|
5
6
|
import { evaluatorRoute, routeKey } from './policy.js';
|
|
6
7
|
const receipt = z.object({ version: compatibleWireLiteral('spawnfile.training.evaluator-request.v1'), id: z.string().uuid(),
|
|
7
8
|
policy: z.string().regex(/^[a-f0-9]{64}$/u), route: z.string(),
|
|
8
|
-
event: z.enum(['admitted', 'completed', 'failed']), at:
|
|
9
|
+
event: z.enum(['admitted', 'completed', 'failed']), at: compatibleIsoDateTimeSchema(),
|
|
9
10
|
reservedUsd: z.number().finite().nonnegative(), chargedUsd: z.number().finite().nonnegative(),
|
|
10
11
|
inputTokens: z.number().int().nonnegative().nullable(), outputTokens: z.number().int().nonnegative().nullable(),
|
|
11
12
|
}).strict();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ledger.js","sourceRoot":"","sources":["../../../../src/training/inference/evaluator/ledger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ledger.js","sourceRoot":"","sources":["../../../../src/training/inference/evaluator/ledger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AAEtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC7G,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAyB,MAAM,aAAa,CAAC;AAE9E,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,qBAAqB,CAAC,yCAAyC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACzH,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9D,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,2BAA2B,EAAE;IACrF,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,EAAE,UAAU,EAAE,CA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EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;oBAC3E,UAAU,EAAE,OAAO,GAAG,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;oBACjF,WAAW,EAAE,KAAK,CAAC,UAAU,EAAE,WAAW,CAAC,EAAE,YAAY,EAAE,KAAK,CAAC,UAAU,EAAE,YAAY,CAAC,EAAE,CAAC;gBAC/F,MAAM,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,WAAW,EAAE,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC;gBAC9G,IAAI,CAAC;oBAAC,cAAc,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;oBAAC,SAAS,CAAC,MAAM,CAAC,CAAC;gBAAC,CAAC;wBAC5E,CAAC;oBAAC,SAAS,CAAC,MAAM,CAAC,CAAC;gBAAC,CAAC;YAChC,CAAC;SACF,CAAC;IACJ,CAAC;YAAS,CAAC;QAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -53,7 +53,7 @@ export declare const searchSchema: z.ZodPipe<z.ZodObject<{
|
|
|
53
53
|
}>>;
|
|
54
54
|
export declare const editScopeSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodLiteral<"whole-file">, z.ZodArray<z.ZodString>]>>;
|
|
55
55
|
export declare const startSchema: z.ZodObject<{
|
|
56
|
-
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.dspy.v2"
|
|
56
|
+
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.dspy.v2">, unknown>;
|
|
57
57
|
kind: z.ZodLiteral<"optimize">;
|
|
58
58
|
id: z.ZodString;
|
|
59
59
|
components: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -233,7 +233,7 @@ export declare const requestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
233
233
|
components: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
234
234
|
round: z.ZodOptional<z.ZodNumber>;
|
|
235
235
|
}, z.core.$strict>;
|
|
236
|
-
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.dspy.v2"
|
|
236
|
+
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.dspy.v2">, unknown>;
|
|
237
237
|
id: z.ZodString;
|
|
238
238
|
}, z.core.$strict>, z.ZodObject<{
|
|
239
239
|
kind: z.ZodLiteral<"request">;
|
|
@@ -252,7 +252,7 @@ export declare const requestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
252
252
|
responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
253
253
|
}, z.core.$strict>;
|
|
254
254
|
}, z.core.$strict>;
|
|
255
|
-
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.dspy.v2"
|
|
255
|
+
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.dspy.v2">, unknown>;
|
|
256
256
|
id: z.ZodString;
|
|
257
257
|
}, z.core.$strict>], "method">;
|
|
258
258
|
export declare const populationRoundSchema: z.ZodObject<{
|
|
@@ -295,7 +295,7 @@ export declare const resultSchema: z.ZodObject<{
|
|
|
295
295
|
optimizer: z.ZodPreprocess<z.ZodEnum<{
|
|
296
296
|
"training.population": "training.population";
|
|
297
297
|
"dspy.GEPA": "dspy.GEPA";
|
|
298
|
-
}
|
|
298
|
+
}>, unknown>;
|
|
299
299
|
dspyVersion: z.ZodLiteral<"3.3.1">;
|
|
300
300
|
gepaVersion: z.ZodLiteral<"0.1.4">;
|
|
301
301
|
seed: z.ZodNumber;
|
|
@@ -372,7 +372,7 @@ export declare const resultSchema: z.ZodObject<{
|
|
|
372
372
|
text: z.ZodOptional<z.ZodString>;
|
|
373
373
|
}, z.core.$strict>>;
|
|
374
374
|
}, z.core.$strict>;
|
|
375
|
-
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.dspy.v2"
|
|
375
|
+
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.dspy.v2">, unknown>;
|
|
376
376
|
id: z.ZodString;
|
|
377
377
|
}, z.core.$strict>;
|
|
378
378
|
export declare const errorSchema: z.ZodObject<{
|
|
@@ -381,7 +381,7 @@ export declare const errorSchema: z.ZodObject<{
|
|
|
381
381
|
code: z.ZodString;
|
|
382
382
|
message: z.ZodString;
|
|
383
383
|
}, z.core.$strict>;
|
|
384
|
-
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.dspy.v2"
|
|
384
|
+
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.dspy.v2">, unknown>;
|
|
385
385
|
id: z.ZodString;
|
|
386
386
|
}, z.core.$strict>;
|
|
387
387
|
export declare const messageSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -396,7 +396,7 @@ export declare const messageSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion
|
|
|
396
396
|
components: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
397
397
|
round: z.ZodOptional<z.ZodNumber>;
|
|
398
398
|
}, z.core.$strict>;
|
|
399
|
-
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.dspy.v2"
|
|
399
|
+
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.dspy.v2">, unknown>;
|
|
400
400
|
id: z.ZodString;
|
|
401
401
|
}, z.core.$strict>, z.ZodObject<{
|
|
402
402
|
kind: z.ZodLiteral<"request">;
|
|
@@ -415,7 +415,7 @@ export declare const messageSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion
|
|
|
415
415
|
responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
416
416
|
}, z.core.$strict>;
|
|
417
417
|
}, z.core.$strict>;
|
|
418
|
-
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.dspy.v2"
|
|
418
|
+
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.dspy.v2">, unknown>;
|
|
419
419
|
id: z.ZodString;
|
|
420
420
|
}, z.core.$strict>], "method">, z.ZodObject<{
|
|
421
421
|
kind: z.ZodLiteral<"result">;
|
|
@@ -424,7 +424,7 @@ export declare const messageSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion
|
|
|
424
424
|
optimizer: z.ZodPreprocess<z.ZodEnum<{
|
|
425
425
|
"training.population": "training.population";
|
|
426
426
|
"dspy.GEPA": "dspy.GEPA";
|
|
427
|
-
}
|
|
427
|
+
}>, unknown>;
|
|
428
428
|
dspyVersion: z.ZodLiteral<"3.3.1">;
|
|
429
429
|
gepaVersion: z.ZodLiteral<"0.1.4">;
|
|
430
430
|
seed: z.ZodNumber;
|
|
@@ -501,7 +501,7 @@ export declare const messageSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion
|
|
|
501
501
|
text: z.ZodOptional<z.ZodString>;
|
|
502
502
|
}, z.core.$strict>>;
|
|
503
503
|
}, z.core.$strict>;
|
|
504
|
-
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.dspy.v2"
|
|
504
|
+
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.dspy.v2">, unknown>;
|
|
505
505
|
id: z.ZodString;
|
|
506
506
|
}, z.core.$strict>, z.ZodObject<{
|
|
507
507
|
kind: z.ZodLiteral<"error">;
|
|
@@ -509,7 +509,7 @@ export declare const messageSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion
|
|
|
509
509
|
code: z.ZodString;
|
|
510
510
|
message: z.ZodString;
|
|
511
511
|
}, z.core.$strict>;
|
|
512
|
-
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.dspy.v2"
|
|
512
|
+
schema: z.ZodPreprocess<z.ZodLiteral<"spawnfile.training.dspy.v2">, unknown>;
|
|
513
513
|
id: z.ZodString;
|
|
514
514
|
}, z.core.$strict>]>;
|
|
515
515
|
export type DspyStart = z.infer<typeof startSchema>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spawnfile",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
4
4
|
"description": "Canonical source compiler for autonomous agents and teams.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"test:verdict": "node -e \"const fs=require('fs'); const file='coverage/vitest-results.json'; if (!fs.existsSync(file)) { console.error('VERDICT: results file missing'); process.exit(1); } let result; try { result=JSON.parse(fs.readFileSync(file, 'utf8')); } catch { console.error('VERDICT: results file unparseable'); process.exit(1); } const total=result.numTotalTests; const totalSuites=result.numTotalTestSuites; const passedTests=result.numPassedTests; const failedTests=result.numFailedTests; const pendingTests=result.numPendingTests; const todoTests=result.numTodoTests; const failedSuites=result.numFailedTestSuites; if (typeof result.success !== 'boolean' || !Number.isInteger(passedTests) || passedTests < 0 || !Number.isInteger(failedTests) || failedTests < 0 || !Number.isInteger(pendingTests) || pendingTests < 0 || !Number.isInteger(todoTests) || todoTests < 0 || !Number.isInteger(failedSuites) || failedSuites < 0 || !Number.isInteger(totalSuites) || totalSuites < 0) { console.error('VERDICT: results schema unrecognised'); process.exit(1); } if (!Number.isInteger(total) || total <= 0) { console.error('VERDICT: no tests found'); process.exit(1); } if (passedTests + failedTests + pendingTests + todoTests !== total) { console.error('VERDICT: results counters do not reconcile (tests='+total+', passed='+passedTests+', failed='+failedTests+', skipped='+pendingTests+', todo='+todoTests+')'); process.exit(1); } const failed=result.success === false || failedTests > 0 || failedSuites > 0; if (failed) { console.error('VERDICT: test failures found (tests='+failedTests+', suites='+failedSuites+', success='+result.success+')'); process.exit(2); } if (passedTests === 0) { console.error('VERDICT: no tests actually ran (skipped='+pendingTests+', todo='+todoTests+')'); process.exit(1); } console.log('VERDICT: tests passed (tests='+total+', suites='+totalSuites+', passed='+passedTests+', skipped='+pendingTests+', todo='+todoTests+')');\"",
|
|
57
57
|
"test:coverage-verdict": "node --import tsx -e \"import fs from 'node:fs'; const file='coverage/coverage-summary.json'; const fail=(message)=>{ console.error('COVERAGE VERDICT: '+message); process.exit(1); }; let summary; try { summary=JSON.parse(fs.readFileSync(file, 'utf8')); } catch (error) { fail(error && error.code === 'ENOENT' ? 'summary file missing' : 'summary file unparseable'); } import('./vitest.config.ts').then(({default:config})=>{ const thresholds=config.test && config.test.coverage && config.test.coverage.thresholds; if (!thresholds || typeof thresholds !== 'object' || !summary || typeof summary !== 'object' || !summary.total || typeof summary.total !== 'object') fail('summary or threshold schema unrecognised'); const metricNames=['branches','functions','lines','statements']; const metrics=metricNames.filter((metric)=>Object.prototype.hasOwnProperty.call(thresholds, metric)); if (metrics.length === 0) fail('no threshold metrics configured'); let shortfall=false; for (const metric of metrics) { const threshold=thresholds[metric]; const pct=summary.total[metric] && summary.total[metric].pct; if (typeof threshold !== 'number' || !Number.isFinite(threshold) || typeof pct !== 'number' || !Number.isFinite(pct)) fail('missing or non-numeric value for '+metric); console.log('COVERAGE: '+metric+' '+pct+'% (threshold '+threshold+'%)'); if (pct < threshold) shortfall=true; } if (shortfall) { console.error('COVERAGE VERDICT: thresholds not met'); process.exit(2); } console.log('COVERAGE VERDICT: thresholds met'); }).catch((error)=>fail('could not load vitest config: '+error.message));\"",
|
|
58
58
|
"test:node": "mkdir -p coverage || exit 1; rm -f coverage/node-test.tap || exit 1; node --import tsx --test --test-reporter=tap src/runtime/pi/appControlDeliveryMetadata.test.ts > coverage/node-test.tap 2>&1; node_status=$?; cat coverage/node-test.tap; cat_status=$?; npm run test:node-verdict; verdict_status=$?; if [ \"$verdict_status\" -eq 2 ]; then exit 2; fi; if [ \"$verdict_status\" -ne 0 ]; then exit 1; fi; if [ \"$cat_status\" -ne 0 ]; then echo 'NODE VERDICT: could not read TAP output' >&2; exit 1; fi; if [ \"$node_status\" -ne 0 ]; then echo \"NODE VERDICT: node:test runner exited $node_status despite a passing TAP summary\" >&2; exit 1; fi; exit 0",
|
|
59
|
-
"test:node-verdict": "node -e \"const fs=require('fs'); const text=fs.readFileSync('coverage/node-test.tap', 'utf8'); const tests=text.match(/^# tests ([0-9]+)\\r?$/m); const suites=text.match(/^# suites ([0-9]+)\\r?$/m); const passed=text.match(/^# pass ([0-9]+)\\r?$/m); const failed=text.match(/^# fail ([0-9]+)\\r?$/m); const skipped=text.match(/^# skipped ([0-9]+)\\r?$/m); const todo=text.match(/^# todo ([0-9]+)\\r?$/m); const cancelled=text.match(/^# cancelled ([0-9]+)\\r?$/m); if (!tests || !suites || !passed || !failed || !skipped || !todo || !cancelled) { console.error('NODE VERDICT: TAP summary unrecognised'); process.exit(1); } const testCount=Number(tests[1]); const suiteCount=Number(suites[1]); const passCount=Number(passed[1]); const failCount=Number(failed[1]); const skippedCount=Number(skipped[1]); const todoCount=Number(todo[1]); const cancelledCount=Number(cancelled[1]); if (failCount > 0) { console.error('NODE VERDICT: test failures found (tests='+testCount+', failed='+failCount+')'); process.exit(2); } if (cancelledCount > 0) { console.error('NODE VERDICT: incomplete run (cancelled='+cancelledCount+')'); process.exit(1); } if (passCount + skippedCount + todoCount + cancelledCount !== testCount) { console.error('NODE VERDICT: TAP counts do not reconcile (tests='+testCount+', passed='+passCount+', skipped='+skippedCount+', todo='+todoCount+', cancelled='+cancelledCount+')'); process.exit(1); } if (testCount < 10) { console.error('NODE VERDICT: expected at least 10 node:test cases, found '+testCount+'
|
|
59
|
+
"test:node-verdict": "node -e \"const fs=require('fs'); const text=fs.readFileSync('coverage/node-test.tap', 'utf8'); const tests=text.match(/^# tests ([0-9]+)\\r?$/m); const suites=text.match(/^# suites ([0-9]+)\\r?$/m); const passed=text.match(/^# pass ([0-9]+)\\r?$/m); const failed=text.match(/^# fail ([0-9]+)\\r?$/m); const skipped=text.match(/^# skipped ([0-9]+)\\r?$/m); const todo=text.match(/^# todo ([0-9]+)\\r?$/m); const cancelled=text.match(/^# cancelled ([0-9]+)\\r?$/m); if (!tests || !suites || !passed || !failed || !skipped || !todo || !cancelled) { console.error('NODE VERDICT: TAP summary unrecognised'); process.exit(1); } const testCount=Number(tests[1]); const suiteCount=Number(suites[1]); const passCount=Number(passed[1]); const failCount=Number(failed[1]); const skippedCount=Number(skipped[1]); const todoCount=Number(todo[1]); const cancelledCount=Number(cancelled[1]); if (failCount > 0) { console.error('NODE VERDICT: test failures found (tests='+testCount+', failed='+failCount+')'); process.exit(2); } if (cancelledCount > 0) { console.error('NODE VERDICT: incomplete run (cancelled='+cancelledCount+')'); process.exit(1); } if (passCount + skippedCount + todoCount + cancelledCount !== testCount) { console.error('NODE VERDICT: TAP counts do not reconcile (tests='+testCount+', passed='+passCount+', skipped='+skippedCount+', todo='+todoCount+', cancelled='+cancelledCount+')'); process.exit(1); } if (testCount < 10) { console.error('NODE VERDICT: expected at least 10 node:test cases, found '+testCount+' — cases were removed or the file was gutted'); process.exit(1); } if (passCount < 10) { console.error('NODE VERDICT: expected at least 10 passing node:test cases, found '+passCount+' (skipped='+skippedCount+', todo='+todoCount+')'); process.exit(1); } if (suiteCount < 1) { console.error('NODE VERDICT: expected at least 1 node:test suite, found '+suiteCount); process.exit(1); } console.log('NODE VERDICT: tests passed (tests='+testCount+', suites='+suiteCount+', passed='+passCount+', skipped='+skippedCount+', todo='+todoCount+', failed=0)');\"",
|
|
60
60
|
"verify:training-image-modes": "tsx scripts/verify-training-image-modes.ts",
|
|
61
61
|
"test:product-state-volume": "node --experimental-strip-types scripts/product-state-volume-integration.test.ts",
|
|
62
62
|
"test:boundaries": "vitest run --coverage.enabled=false src/ownership/rootOwnershipBoundary.test.ts src/deployment/providerRuntimeBoundary.test.ts src/ownership/mnemePublicImportBoundary.test.ts src/target/containerBundleArchive.test.ts",
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
"commander": "^14.0.1",
|
|
81
81
|
"mdast-util-from-markdown": "2.0.3",
|
|
82
82
|
"mdast-util-to-string": "4.0.0",
|
|
83
|
-
"undici": "7.
|
|
83
|
+
"undici": "7.30.1",
|
|
84
84
|
"yaml": "^2.8.1",
|
|
85
|
-
"zod": "^4.
|
|
85
|
+
"zod": "^4.6.7"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@eslint/js": "10.0.1",
|
package/runtimes.yaml
CHANGED
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
runtimes:
|
|
14
14
|
daimon:
|
|
15
15
|
remote: git@github.com:noopolis/daimon-harness.git
|
|
16
|
-
ref:
|
|
16
|
+
ref: 0f2e73b4794f9ad03173b05a99486a5459715d4c
|
|
17
17
|
default_branch: main
|
|
18
18
|
install:
|
|
19
19
|
kind: container_image
|
|
20
20
|
image: noopolis/spawnfile-runtime-daimon
|
|
21
|
-
tag: 0.2.
|
|
22
|
-
digest: sha256:
|
|
21
|
+
tag: 0.2.10-0f2e73b
|
|
22
|
+
digest: sha256:3e9743eaeb8ebae529e8e2768320695e97dc73bb5d639ffa6e2a479d3db81dbd
|
|
23
23
|
capability_receipts:
|
|
24
|
-
amd64: sha256:
|
|
25
|
-
arm64: sha256:
|
|
26
|
-
contract_manifest_sha256: sha256:
|
|
24
|
+
amd64: sha256:87648523888cf96773cdee733d819def3aaa43fa2626e0f945b841fc2313edd0
|
|
25
|
+
arm64: sha256:e714abca4ba1bb9e2ea13fcb0620aba7a3b3b3a6d002c09bf9857a720a5fc34d
|
|
26
|
+
contract_manifest_sha256: sha256:85de96d75cf1e02e0e88bd6e1dcce39a125c1d5b97f1eb9c01911a0d5c3316e8
|
|
27
27
|
status: active
|
|
28
28
|
|
|
29
29
|
openclaw:
|