@vibesdotdev/workers 1.0.0-rc.2 → 1.0.0-rc.7

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 (113) hide show
  1. package/dist/adapters/database/database-queue.record.descriptor.d.ts +3 -0
  2. package/dist/adapters/database/database-queue.record.descriptor.d.ts.map +1 -1
  3. package/dist/adapters/ipc/store/queue-job.record.descriptor.d.ts +3 -0
  4. package/dist/adapters/ipc/store/queue-job.record.descriptor.d.ts.map +1 -1
  5. package/dist/adapters/remote/remote-workers.adapter.d.ts +74 -0
  6. package/dist/adapters/remote/remote-workers.adapter.d.ts.map +1 -0
  7. package/dist/adapters/remote/remote-workers.adapter.js +178 -0
  8. package/dist/adapters/remote/remote-workers.adapter.js.map +1 -0
  9. package/dist/client/operations/dispatch/stream.d.ts.map +1 -1
  10. package/dist/client/operations/dispatch/stream.js +7 -3
  11. package/dist/client/operations/dispatch/stream.js.map +1 -1
  12. package/dist/client/operations/graph.d.ts.map +1 -1
  13. package/dist/client/operations/graph.js +2 -0
  14. package/dist/client/operations/graph.js.map +1 -1
  15. package/dist/client/operations/inline.d.ts.map +1 -1
  16. package/dist/client/operations/inline.js +12 -7
  17. package/dist/client/operations/inline.js.map +1 -1
  18. package/dist/code-execution/runner-adapter/kinds/runner-adapter.kind.d.ts +1 -1
  19. package/dist/code-execution/runner-adapter/schemas/descriptors.d.ts +1 -1
  20. package/dist/code-execution/schemas/common.d.ts +2 -2
  21. package/dist/config/workers.config.descriptor.d.ts +4 -0
  22. package/dist/config/workers.config.descriptor.d.ts.map +1 -1
  23. package/dist/config/workers.config.descriptor.js +13 -0
  24. package/dist/config/workers.config.descriptor.js.map +1 -1
  25. package/dist/core/queued-invocation.d.ts +3 -0
  26. package/dist/core/queued-invocation.d.ts.map +1 -1
  27. package/dist/core/schemas/api.d.ts +11 -2
  28. package/dist/core/schemas/api.d.ts.map +1 -1
  29. package/dist/core/supervised-workloads.d.ts +3 -3
  30. package/dist/dead-letter/dead-letter.schema.d.ts +3 -3
  31. package/dist/dead-letter/workers.dlq.replay.job.d.ts +1 -1
  32. package/dist/docs/workers.kinds.docs.descriptor.d.ts.map +1 -1
  33. package/dist/docs/workers.kinds.docs.descriptor.js +8 -2
  34. package/dist/docs/workers.kinds.docs.descriptor.js.map +1 -1
  35. package/dist/execution/thread-host.schemas.d.ts +3 -0
  36. package/dist/execution/thread-host.schemas.d.ts.map +1 -1
  37. package/dist/graph/schemas.d.ts +2 -0
  38. package/dist/graph/schemas.d.ts.map +1 -1
  39. package/dist/index.d.ts +3 -0
  40. package/dist/index.d.ts.map +1 -1
  41. package/dist/index.js +3 -0
  42. package/dist/index.js.map +1 -1
  43. package/dist/kinds/material.d.ts +9 -0
  44. package/dist/kinds/material.d.ts.map +1 -0
  45. package/dist/kinds/material.git.d.ts +73 -0
  46. package/dist/kinds/material.git.d.ts.map +1 -0
  47. package/dist/kinds/material.git.js +131 -0
  48. package/dist/kinds/material.git.js.map +1 -0
  49. package/dist/kinds/material.js +13 -0
  50. package/dist/kinds/material.js.map +1 -0
  51. package/dist/kinds/material.stores.d.ts +118 -0
  52. package/dist/kinds/material.stores.d.ts.map +1 -0
  53. package/dist/kinds/material.stores.js +76 -0
  54. package/dist/kinds/material.stores.js.map +1 -0
  55. package/dist/kinds/schemas/material.d.ts +153 -0
  56. package/dist/kinds/schemas/material.d.ts.map +1 -0
  57. package/dist/kinds/schemas/material.js +79 -0
  58. package/dist/kinds/schemas/material.js.map +1 -0
  59. package/dist/maintenance/jobs/storage-sync/maintenance.storage-sync.descriptor.d.ts +3 -2
  60. package/dist/maintenance/jobs/storage-sync/maintenance.storage-sync.descriptor.d.ts.map +1 -1
  61. package/dist/maintenance/jobs/storage-sync/maintenance.storage-sync.descriptor.js +3 -2
  62. package/dist/maintenance/jobs/storage-sync/maintenance.storage-sync.descriptor.js.map +1 -1
  63. package/dist/maintenance/jobs/storage-sync/maintenance.storage-sync.impl.consumer.d.ts +5 -0
  64. package/dist/maintenance/jobs/storage-sync/maintenance.storage-sync.impl.consumer.d.ts.map +1 -1
  65. package/dist/maintenance/jobs/storage-sync/maintenance.storage-sync.impl.consumer.js +50 -5
  66. package/dist/maintenance/jobs/storage-sync/maintenance.storage-sync.impl.consumer.js.map +1 -1
  67. package/dist/maintenance/jobs/storage-sync/schemas/storage-sync.d.ts +18 -0
  68. package/dist/maintenance/jobs/storage-sync/schemas/storage-sync.d.ts.map +1 -1
  69. package/dist/maintenance/jobs/storage-sync/schemas/storage-sync.js +4 -0
  70. package/dist/maintenance/jobs/storage-sync/schemas/storage-sync.js.map +1 -1
  71. package/dist/remote/claim-policy.d.ts +33 -0
  72. package/dist/remote/claim-policy.d.ts.map +1 -0
  73. package/dist/remote/claim-policy.js +82 -0
  74. package/dist/remote/claim-policy.js.map +1 -0
  75. package/dist/remote/http-wire.d.ts +188 -0
  76. package/dist/remote/http-wire.d.ts.map +1 -0
  77. package/dist/remote/http-wire.js +71 -0
  78. package/dist/remote/http-wire.js.map +1 -0
  79. package/dist/remote/queue-capability.d.ts +4 -1
  80. package/dist/remote/queue-capability.d.ts.map +1 -1
  81. package/dist/remote/serve.d.ts +13 -0
  82. package/dist/remote/serve.d.ts.map +1 -0
  83. package/dist/remote/serve.js +53 -0
  84. package/dist/remote/serve.js.map +1 -0
  85. package/dist/runnable/job/change-source.d.ts.map +1 -1
  86. package/dist/runnable/job/change-source.js +2 -7
  87. package/dist/runnable/job/change-source.js.map +1 -1
  88. package/dist/runnable/job/executor.d.ts.map +1 -1
  89. package/dist/runnable/job/executor.js +4 -1
  90. package/dist/runnable/job/executor.js.map +1 -1
  91. package/dist/runtime/ledger/job-ledger.record.descriptor.d.ts +3 -0
  92. package/dist/runtime/ledger/job-ledger.record.descriptor.d.ts.map +1 -1
  93. package/dist/runtime/ledger/job-ledger.record.descriptor.js +3 -1
  94. package/dist/runtime/ledger/job-ledger.record.descriptor.js.map +1 -1
  95. package/dist/schemas/cancellation.d.ts +6 -0
  96. package/dist/schemas/cancellation.d.ts.map +1 -1
  97. package/dist/schemas/claim.d.ts +4 -0
  98. package/dist/schemas/claim.d.ts.map +1 -1
  99. package/dist/schemas/claim.js +9 -1
  100. package/dist/schemas/claim.js.map +1 -1
  101. package/dist/schemas/client.d.ts +3 -1
  102. package/dist/schemas/client.d.ts.map +1 -1
  103. package/dist/schemas/descriptors.d.ts +31 -0
  104. package/dist/schemas/descriptors.d.ts.map +1 -1
  105. package/dist/schemas/descriptors.js +5 -0
  106. package/dist/schemas/descriptors.js.map +1 -1
  107. package/dist/workers.cloud.plugin.d.ts.map +1 -1
  108. package/dist/workers.cloud.plugin.js +2 -1
  109. package/dist/workers.cloud.plugin.js.map +1 -1
  110. package/dist/workers.plugin.d.ts.map +1 -1
  111. package/dist/workers.plugin.js +15 -3
  112. package/dist/workers.plugin.js.map +1 -1
  113. package/package.json +97 -33
@@ -63,6 +63,9 @@ export declare const jobStatusSchema: z.ZodObject<{
63
63
  projectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>>>;
64
64
  participantId: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
65
65
  sessionId: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
66
+ instanceId: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
67
+ instanceHandle: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
68
+ homeWorkspace: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
66
69
  }, z.core.$strip>;
67
70
  reason: z.ZodString;
68
71
  cascadedFrom: z.ZodOptional<z.ZodString>;
@@ -131,6 +134,9 @@ export declare const listJobsResponseSchema: z.ZodObject<{
131
134
  projectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>>>;
132
135
  participantId: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
133
136
  sessionId: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
137
+ instanceId: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
138
+ instanceHandle: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
139
+ homeWorkspace: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
134
140
  }, z.core.$strip>;
135
141
  reason: z.ZodString;
136
142
  cascadedFrom: z.ZodOptional<z.ZodString>;
@@ -193,6 +199,9 @@ export declare const cancelJobRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
193
199
  projectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>>>;
194
200
  participantId: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
195
201
  sessionId: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
202
+ instanceId: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
203
+ instanceHandle: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
204
+ homeWorkspace: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
196
205
  }, z.core.$strip>;
197
206
  reason: z.ZodString;
198
207
  cascadedFrom: z.ZodOptional<z.ZodString>;
@@ -253,8 +262,8 @@ export declare const listWorkersResponseSchema: z.ZodObject<{
253
262
  export declare const workerStatusSchema: z.ZodObject<{
254
263
  status: z.ZodEnum<{
255
264
  error: "error";
256
- stopped: "stopped";
257
265
  running: "running";
266
+ stopped: "stopped";
258
267
  }>;
259
268
  uptime: z.ZodOptional<z.ZodNumber>;
260
269
  scheduler: z.ZodObject<{
@@ -267,8 +276,8 @@ export declare const workerStatusResponseSchema: z.ZodObject<{
267
276
  status: z.ZodObject<{
268
277
  status: z.ZodEnum<{
269
278
  error: "error";
270
- stopped: "stopped";
271
279
  running: "running";
280
+ stopped: "stopped";
272
281
  }>;
273
282
  uptime: z.ZodOptional<z.ZodNumber>;
274
283
  scheduler: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/core/schemas/api.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAW5B,eAAO,MAAM,mBAAmB;;;;;;;;;iBAW9B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAC;AAGH,eAAO,MAAM,yBAAyB;;;;;;;;;;iBAcpC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;iBAIxC,CAAC;AAGH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAe1B,CAAC;AAGH,eAAO,MAAM,mBAAmB;;;;;;;;;;;iBAI9B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEjC,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;iBAK7B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;iBAIhC,CAAC;AAGH,eAAO,MAAM,sBAAsB;;;;;;;;;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AO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEjC,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;iBAK7B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;iBAIhC,CAAC;AAGH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAAqB,CAAC;AAGzD,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAC;AAIH,eAAO,MAAM,qBAAqB;;kBAA2D,CAAC;AAG9F,eAAO,MAAM,sBAAsB;;;iBAGjC,CAAC;AAKH,eAAO,MAAM,sBAAsB;;;;;iBAEjC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;iBAOjC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;iBAEpC,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;iBAQ7B,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;iBAGrC,CAAC;AAGH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;iBAkBzB,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;iBAInC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;iBAEtC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;iBAEnC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;iBAGvC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;iBAIxC,CAAC"}
@@ -26,10 +26,10 @@ export declare const SupervisedPmAdmissionSchema: z.ZodObject<{
26
26
  startedAt: z.ZodNumber;
27
27
  status: z.ZodEnum<{
28
28
  pass: "pass";
29
+ fail: "fail";
29
30
  completed: "completed";
30
31
  stopped: "stopped";
31
32
  crashed: "crashed";
32
- fail: "fail";
33
33
  }>;
34
34
  succeeded: z.ZodBoolean;
35
35
  exitCode: z.ZodNullable<z.ZodNumber>;
@@ -58,10 +58,10 @@ export declare const SupervisedWorkloadSchema: z.ZodUnion<readonly [z.ZodObject<
58
58
  startedAt: z.ZodNumber;
59
59
  status: z.ZodEnum<{
60
60
  pass: "pass";
61
+ fail: "fail";
61
62
  completed: "completed";
62
63
  stopped: "stopped";
63
64
  crashed: "crashed";
64
- fail: "fail";
65
65
  }>;
66
66
  succeeded: z.ZodBoolean;
67
67
  exitCode: z.ZodNullable<z.ZodNumber>;
@@ -97,10 +97,10 @@ export declare const SupervisedWorkloadsSchema: z.ZodArray<z.ZodUnion<readonly [
97
97
  startedAt: z.ZodNumber;
98
98
  status: z.ZodEnum<{
99
99
  pass: "pass";
100
+ fail: "fail";
100
101
  completed: "completed";
101
102
  stopped: "stopped";
102
103
  crashed: "crashed";
103
- fail: "fail";
104
104
  }>;
105
105
  succeeded: z.ZodBoolean;
106
106
  exitCode: z.ZodNullable<z.ZodNumber>;
@@ -4,9 +4,9 @@
4
4
  */
5
5
  import * as z from 'zod/v4';
6
6
  export declare const DeadLetterStatusSchema: z.ZodEnum<{
7
+ purged: "purged";
7
8
  dead: "dead";
8
9
  replayed: "replayed";
9
- purged: "purged";
10
10
  }>;
11
11
  export declare const DeadLetterEntrySchema: z.ZodObject<{
12
12
  id: z.ZodString;
@@ -17,9 +17,9 @@ export declare const DeadLetterEntrySchema: z.ZodObject<{
17
17
  failedAt: z.ZodString;
18
18
  payload: z.ZodUnknown;
19
19
  status: z.ZodEnum<{
20
+ purged: "purged";
20
21
  dead: "dead";
21
22
  replayed: "replayed";
22
- purged: "purged";
23
23
  }>;
24
24
  replays: z.ZodDefault<z.ZodArray<z.ZodObject<{
25
25
  at: z.ZodString;
@@ -31,9 +31,9 @@ export declare const DeadLetterQuerySchema: z.ZodObject<{
31
31
  queue: z.ZodOptional<z.ZodString>;
32
32
  jobType: z.ZodOptional<z.ZodString>;
33
33
  status: z.ZodOptional<z.ZodEnum<{
34
+ purged: "purged";
34
35
  dead: "dead";
35
36
  replayed: "replayed";
36
- purged: "purged";
37
37
  }>>;
38
38
  limit: z.ZodDefault<z.ZodNumber>;
39
39
  }, z.core.$strip>;
@@ -31,9 +31,9 @@ export declare const dlqReplayJobDescriptor: {
31
31
  failedAt: z.ZodString;
32
32
  payload: z.ZodUnknown;
33
33
  status: z.ZodEnum<{
34
+ purged: "purged";
34
35
  dead: "dead";
35
36
  replayed: "replayed";
36
- purged: "purged";
37
37
  }>;
38
38
  replays: z.ZodDefault<z.ZodArray<z.ZodObject<{
39
39
  at: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"workers.kinds.docs.descriptor.d.ts","sourceRoot":"","sources":["../../src/docs/workers.kinds.docs.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAEvE,QAAA,MAAM,UAAU,EAAE,mBAySjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"workers.kinds.docs.descriptor.d.ts","sourceRoot":"","sources":["../../src/docs/workers.kinds.docs.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAEvE,QAAA,MAAM,UAAU,EAAE,mBA+SjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -2,7 +2,7 @@ const descriptor = {
2
2
  kind: 'docs/topic',
3
3
  id: 'workers.kinds',
4
4
  title: 'Workers Kinds',
5
- summary: 'Worker, job, and flow kinds with descriptors',
5
+ summary: 'Worker, job, material, and flow kinds with descriptors',
6
6
  body: {
7
7
  type: 'markdown',
8
8
  sourceType: 'raw',
@@ -17,7 +17,7 @@ surfaces: [cli, web, in-app]
17
17
  hardware: [consumer, cloud]
18
18
  ---
19
19
 
20
- The Workers module registers four runtime kinds for background processing: \`workers/worker\`, \`workers/job\`, \`workers/flow\`, and \`workers/adapter\`. Each follows the runtime descriptor pattern — a declarative descriptor plus one or more scope-gated implementations resolved by the active runtime scope.
20
+ The Workers module registers five runtime kinds for background processing: \`workers/worker\`, \`workers/job\`, \`workers/material\`, \`workers/flow\`, and \`workers/adapter\`. Each follows the runtime descriptor pattern — a declarative descriptor plus one or more scope-gated implementations resolved by the active runtime scope.
21
21
 
22
22
  ## Runtime kinds overview
23
23
 
@@ -221,6 +221,12 @@ interface JobExecutionSubtasks {
221
221
 
222
222
  \`events\` and \`subtasks\` are optional — they are only present when the active adapter supports progress streaming and subtask orchestration.
223
223
 
224
+ ## workers/material kind
225
+
226
+ A job's declared inputs and outputs. A \`workers/material\` implementation restores one family — a git checkout at an exact SHA, a cache keyed by content, or an immutable artifact by digest — into the job's workspace, and may capture declared outputs after success. It never mints credentials and never chooses trust from a path; the claimant supplies the trust policy.
227
+
228
+ Job descriptors carry \`materials\` and \`outputs\`; a claimant resolves every ref before the job runs and refuses a missing or mismatched material with a typed \`workers-material-*\` refusal.
229
+
224
230
  ## workers/flow kind
225
231
 
226
232
  The \`workers/flow\` kind exposes **outside-job dispatch** — spawning and awaiting jobs from any caller scope. It carries no descriptor-level config; routing is handled by per-scope implementations (consumer, cloud). Resolve a \`Flow\` and call its contract methods:
@@ -1 +1 @@
1
- {"version":3,"file":"workers.kinds.docs.descriptor.js","sourceRoot":"","sources":["../../src/docs/workers.kinds.docs.descriptor.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAAwB;IACvC,IAAI,EAAE,YAAY;IAClB,EAAE,EAAE,eAAe;IACnB,KAAK,EAAE,eAAe;IACtB,OAAO,EAAE,8CAA8C;IACvD,IAAI,EAAE;QACL,IAAI,EAAE,UAAU;QAChB,UAAU,EAAE,KAAK;QACjB,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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iB,CAAC;IACvE,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC;IAClC,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC;IAC/B,OAAO,EAAE,IAAI;CACb,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -132,6 +132,9 @@ export declare const JobThreadDispatchSchema: z.ZodObject<{
132
132
  projectIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>>>;
133
133
  participantId: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
134
134
  sessionId: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
135
+ instanceId: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
136
+ instanceHandle: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
137
+ homeWorkspace: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>;
135
138
  extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
136
139
  }, z.core.$strip>>>;
137
140
  workspace: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"thread-host.schemas.d.ts","sourceRoot":"","sources":["../../src/execution/thread-host.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAE1E,oDAAoD;AACpD,eAAO,MAAM,uBAAuB,qDAAsD,CAAC;AAE3F,4DAA4D;AAC5D,eAAO,MAAM,+BAA+B,oDAAqD,CAAC;AAElG,8FAA8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;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAgG,CAAC;AACjI,mGAAmG;AACnG,eAAO,MAAM,sBAAsB;;;kBAA0D,CAAC;AAC9F,oGAAoG;AACpG,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;kBAA2F,CAAC;AAS/H;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;kBAKxB,CAAC;AAEZ,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB;;;kBAAkF,CAAC"}
@@ -293,6 +293,8 @@ export interface RunGraphOptions {
293
293
  concurrency?: number;
294
294
  /** Overrides the definition's failure policy. */
295
295
  failurePolicy?: GraphFailurePolicy;
296
+ /** Run every node in the caller (the kernel worker) instead of the queue/PM transport. */
297
+ callerContext?: 'preserve';
296
298
  /**
297
299
  * A parent running inside a job passes `JobExecutionContext.park` so the graph
298
300
  * waits without holding the parent's queue slot.
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/graph/schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACtG,OAAO,EAAE,eAAe,EAAoB,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACtH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AACnG,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAQxF,+FAA+F;AAC/F,eAAO,MAAM,oBAAoB;;;;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AAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,KAAK,IAAI,EAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC;IAC3M,iBAAiB,CAAC,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAAC;IAC/F,IAAI,CAAC,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;CAC/B"}
package/dist/index.d.ts CHANGED
@@ -15,6 +15,9 @@ export { CancellationSourceSchema, CancellationSchema, CancellationAttributionSc
15
15
  export type { WorkerAdapterInterface, WorkerAdapterContext } from './interfaces/index.ts';
16
16
  export { WorkerJobEventBusDescriptorSchema, type WorkerJobEventBus, type WorkerJobEventBusDescriptor, type WorkerJobEventBusModule } from './kinds/job-event-bus.ts';
17
17
  export { publishWorkerJobEvent } from './core/job-event-publisher.ts';
18
+ export { ArtifactMaterialRefSchema, CacheMaterialRefSchema, GitMaterialRefSchema, MaterialOutputSchema, MaterialPathSchema, MaterialRefSchema, WORKERS_MATERIAL_KIND, WorkerMaterialDescriptorSchema, WorkerMaterialTrustSchema, workersMaterialKind, workersMaterialRefusal, type ArtifactMaterialRef, type CacheMaterialRef, type GitMaterialRef, type MaterialOutput, type MaterialRef, type WorkerMaterial, type WorkerMaterialContext, type WorkerMaterialDescriptor, type WorkerMaterialReceipt, type WorkerMaterialTrust } from './kinds/material.ts';
19
+ export { GitWorkerMaterial, gitMaterial, gitMaterialDescriptor } from './kinds/material.git.ts';
20
+ export { ArtifactWorkerMaterial, CacheWorkerMaterial, artifactMaterial, artifactMaterialDescriptor, cacheMaterial, cacheMaterialDescriptor } from './kinds/material.stores.ts';
18
21
  export { OPS_REPORT_SLICE_KIND_ID, opsReportSliceKind } from './kinds/ops-report-slice.kind.ts';
19
22
  export { OPS_ALERT_RULE_KIND_ID, opsAlertRuleKind } from './kinds/ops-alert-rule.kind.ts';
20
23
  export { OpsReportSliceDocumentSchema, OpsReportSliceDescriptorSchema, OpsAlertRuleDescriptorSchema, type OpsReportSliceDocument, type OpsReportSliceDescriptor, type OpsAlertRuleDescriptor } from './schemas/index.ts';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC7D,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGrG,OAAO,EACN,6BAA6B,EAC7B,+BAA+B,EAC/B,+BAA+B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,sBAAsB,EAAE,KAAK,YAAY,EAAE,KAAK,uBAAuB,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGjN,YAAY,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC1F,OAAO,EACN,iCAAiC,EACjC,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,OAAO,EACN,wBAAwB,EACxB,kBAAkB,EAClB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACN,sBAAsB,EACtB,gBAAgB,EAChB,MAAM,gCAAgC,CAAC;AACxC,OAAO,E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KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChG,OAAO,EACN,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,0BAA0B,EAC1B,aAAa,EACb,uBAAuB,EACvB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACN,wBAAwB,EACxB,kBAAkB,EAClB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACN,sBAAsB,EACtB,gBAAgB,EAChB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACN,4BAA4B,EAC5B,8BAA8B,EAC9B,4BAA4B,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,MAAM,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -14,6 +14,9 @@ export { WorkerAdapterDescriptorSchema, WorkerAdapterCapabilitiesSchema, WorkerA
14
14
  export { CancellationSourceSchema, CancellationSchema, CancellationAttributionSchema, CancelJobOptionsSchema } from "./schemas/index.js";
15
15
  export { WorkerJobEventBusDescriptorSchema } from "./kinds/job-event-bus.js";
16
16
  export { publishWorkerJobEvent } from "./core/job-event-publisher.js";
17
+ export { ArtifactMaterialRefSchema, CacheMaterialRefSchema, GitMaterialRefSchema, MaterialOutputSchema, MaterialPathSchema, MaterialRefSchema, WORKERS_MATERIAL_KIND, WorkerMaterialDescriptorSchema, WorkerMaterialTrustSchema, workersMaterialKind, workersMaterialRefusal } from "./kinds/material.js";
18
+ export { GitWorkerMaterial, gitMaterial, gitMaterialDescriptor } from "./kinds/material.git.js";
19
+ export { ArtifactWorkerMaterial, CacheWorkerMaterial, artifactMaterial, artifactMaterialDescriptor, cacheMaterial, cacheMaterialDescriptor } from "./kinds/material.stores.js";
17
20
  export { OPS_REPORT_SLICE_KIND_ID, opsReportSliceKind } from "./kinds/ops-report-slice.kind.js";
18
21
  export { OPS_ALERT_RULE_KIND_ID, opsAlertRuleKind } from "./kinds/ops-alert-rule.kind.js";
19
22
  export { OpsReportSliceDocumentSchema, OpsReportSliceDescriptorSchema, OpsAlertRuleDescriptorSchema } from "./schemas/index.js";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,UAAU;AACV,OAAO,EACN,6BAA6B,EAC7B,+BAA+B,EAC/B,+BAA+B,EAI/B,MAAM,oBAAoB,CAAC;AAE5B,0BAA0B;AAC1B,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,sBAAsB,EAA0E,MAAM,oBAAoB,CAAC;AAIjN,OAAO,EACN,iCAAiC,EAIjC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,OAAO,EACN,wBAAwB,EACxB,kBAAkB,EAClB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACN,sBAAsB,EACtB,gBAAgB,EAChB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACN,4BAA4B,EAC5B,8BAA8B,EAC9B,4BAA4B,EAI5B,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,UAAU;AACV,OAAO,EACN,6BAA6B,EAC7B,+BAA+B,EAC/B,+BAA+B,EAI/B,MAAM,oBAAoB,CAAC;AAE5B,0BAA0B;AAC1B,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,sBAAsB,EAA0E,MAAM,oBAAoB,CAAC;AAIjN,OAAO,EACN,iCAAiC,EAIjC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EACN,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,8BAA8B,EAC9B,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EAWtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChG,OAAO,EACN,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,0BAA0B,EAC1B,aAAa,EACb,uBAAuB,EACvB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACN,wBAAwB,EACxB,kBAAkB,EAClB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACN,sBAAsB,EACtB,gBAAgB,EAChB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACN,4BAA4B,EAC5B,8BAA8B,EAC9B,4BAA4B,EAI5B,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { type WorkerMaterial } from './schemas/material.ts';
2
+ /**
3
+ * `workers/material` — restore a job's declared inputs and capture its declared
4
+ * outputs. Implementations own one material family (git, cache or artifact);
5
+ * the kind owns only the contract and the typed refusals.
6
+ */
7
+ export declare const workersMaterialKind: import("@vibesdotdev/kernel").RuntimeKindDescriptorRecord<WorkerMaterial>;
8
+ export { ArtifactMaterialRefSchema, CacheMaterialRefSchema, GitMaterialRefSchema, MaterialOutputSchema, MaterialPathSchema, MaterialRefSchema, WORKERS_MATERIAL_KIND, WorkerMaterialDescriptorSchema, WorkerMaterialTrustSchema, workersMaterialRefusal, type ArtifactMaterialRef, type CacheMaterialRef, type GitMaterialRef, type MaterialOutput, type MaterialRef, type WorkerMaterial, type WorkerMaterialContext, type WorkerMaterialDescriptor, type WorkerMaterialReceipt, type WorkerMaterialTrust } from './schemas/material.ts';
9
+ //# sourceMappingURL=material.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"material.d.ts","sourceRoot":"","sources":["../../src/kinds/material.ts"],"names":[],"mappings":"AACA,OAAO,EAGN,KAAK,cAAc,EAEnB,MAAM,uBAAuB,CAAC;AAE/B;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,2EAG9B,CAAC;AAEH,OAAO,EACN,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,8BAA8B,EAC9B,yBAAyB,EACzB,sBAAsB,EACtB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,73 @@
1
+ import { type GitMaterialRef, type WorkerMaterial, type WorkerMaterialContext, type WorkerMaterialReceipt } from './schemas/material.ts';
2
+ export declare const gitMaterialDescriptor: {
3
+ id: string;
4
+ kind: "workers/material";
5
+ materialKinds: ("cache" | "git" | "artifact")[];
6
+ supportsCapture: boolean;
7
+ name?: string | undefined;
8
+ description?: string | undefined;
9
+ tags?: string[] | undefined;
10
+ hardware?: string[] | undefined;
11
+ enabled?: boolean | undefined;
12
+ priority?: number | undefined;
13
+ capabilityId?: string | undefined;
14
+ requiredContext?: string[] | undefined;
15
+ optionalContext?: string[] | undefined;
16
+ config?: unknown;
17
+ retention?: string | {
18
+ reason: string;
19
+ maxAgeDays?: number | undefined;
20
+ maxEntries?: number | undefined;
21
+ maxBytes?: number | undefined;
22
+ cascadeFrom?: string | undefined;
23
+ ageField?: string | undefined;
24
+ enforcedBy?: string | undefined;
25
+ } | undefined;
26
+ maxBytes?: number | undefined;
27
+ maxEntries?: number | undefined;
28
+ };
29
+ /**
30
+ * Restore an exact git commit.
31
+ *
32
+ * The claimant supplies the URL and credential environment; this implementation
33
+ * never resolves a repository identity through ambient state. Git semantics
34
+ * (init, fetch of the exact commit, checkout, HEAD) belong to `git/operations`;
35
+ * this loader only stages the checkout beside the target, verifies the exact
36
+ * commit and moves it into place, so a failed fetch cannot leave a half
37
+ * checkout for a step.
38
+ *
39
+ * The target must be empty (or absent). That keeps the move atomic and prevents
40
+ * one material from overwriting another's files.
41
+ */
42
+ export declare class GitWorkerMaterial implements WorkerMaterial {
43
+ readonly descriptor: {
44
+ id: string;
45
+ kind: "workers/material";
46
+ materialKinds: ("cache" | "git" | "artifact")[];
47
+ supportsCapture: boolean;
48
+ name?: string | undefined;
49
+ description?: string | undefined;
50
+ tags?: string[] | undefined;
51
+ hardware?: string[] | undefined;
52
+ enabled?: boolean | undefined;
53
+ priority?: number | undefined;
54
+ capabilityId?: string | undefined;
55
+ requiredContext?: string[] | undefined;
56
+ optionalContext?: string[] | undefined;
57
+ config?: unknown;
58
+ retention?: string | {
59
+ reason: string;
60
+ maxAgeDays?: number | undefined;
61
+ maxEntries?: number | undefined;
62
+ maxBytes?: number | undefined;
63
+ cascadeFrom?: string | undefined;
64
+ ageField?: string | undefined;
65
+ enforcedBy?: string | undefined;
66
+ } | undefined;
67
+ maxBytes?: number | undefined;
68
+ maxEntries?: number | undefined;
69
+ };
70
+ restore(input: GitMaterialRef, context: WorkerMaterialContext): Promise<WorkerMaterialReceipt>;
71
+ }
72
+ export declare const gitMaterial: GitWorkerMaterial;
73
+ //# sourceMappingURL=material.git.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"material.git.d.ts","sourceRoot":"","sources":["../../src/kinds/material.git.ts"],"names":[],"mappings":"AAGA,OAAO,EAEN,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,MAAM,uBAAuB,CAAC;AAG/B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhC,CAAC;AAsDH;;;;;;;;;;;;GAYG;AACH,qBAAa,iBAAkB,YAAW,cAAc;IACvD,QAAQ,CAAC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;MAAyB;IAEtC,OAAO,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC;CA4FpG;AAED,eAAO,MAAM,WAAW,mBAA0B,CAAC"}
@@ -0,0 +1,131 @@
1
+ import { resolveGitOperations } from '@vibesdotdev/git-operations';
2
+ import { getRuntimeExecution } from '@vibesdotdev/kernel/execution';
3
+ import { getRuntimePath } from '@vibesdotdev/paths';
4
+ import { WorkerMaterialDescriptorSchema } from "./schemas/material.js";
5
+ import { workersMaterialRefusal } from "./schemas/material.js";
6
+ export const gitMaterialDescriptor = WorkerMaterialDescriptorSchema.parse({
7
+ id: 'workers.material.git',
8
+ kind: 'workers/material',
9
+ name: 'Git material',
10
+ description: 'Restore a repository at one exact commit into a job workspace.',
11
+ materialKinds: ['git'],
12
+ supportsCapture: false
13
+ });
14
+ async function execute(context, command, args, cwd) {
15
+ const execution = await getRuntimeExecution(context.runtime);
16
+ return execution.execute({
17
+ command,
18
+ args,
19
+ cwd,
20
+ envMode: 'replace',
21
+ env: { ...context.env },
22
+ timeout: 120_000,
23
+ signal: context.signal,
24
+ killTree: true
25
+ });
26
+ }
27
+ async function must(context, command, args, cwd, step) {
28
+ const result = await execute(context, command, args, cwd);
29
+ if (result.exitCode !== 0) {
30
+ throw workersMaterialRefusal('workers-material-unavailable', `The git material could not ${step}.`, {
31
+ command,
32
+ step,
33
+ exitCode: result.exitCode ?? -1,
34
+ stderr: result.stderr.slice(-2000)
35
+ });
36
+ }
37
+ return result;
38
+ }
39
+ async function exitsZero(context, command, args, cwd) {
40
+ const result = await execute(context, command, args, cwd);
41
+ return result.exitCode === 0;
42
+ }
43
+ /**
44
+ * Restore an exact git commit.
45
+ *
46
+ * The claimant supplies the URL and credential environment; this implementation
47
+ * never resolves a repository identity through ambient state. Git semantics
48
+ * (init, fetch of the exact commit, checkout, HEAD) belong to `git/operations`;
49
+ * this loader only stages the checkout beside the target, verifies the exact
50
+ * commit and moves it into place, so a failed fetch cannot leave a half
51
+ * checkout for a step.
52
+ *
53
+ * The target must be empty (or absent). That keeps the move atomic and prevents
54
+ * one material from overwriting another's files.
55
+ */
56
+ export class GitWorkerMaterial {
57
+ descriptor = gitMaterialDescriptor;
58
+ async restore(input, context) {
59
+ if (input.kind !== 'git') {
60
+ throw workersMaterialRefusal('workers-material-ref-invalid', 'The git material received a non-git ref.', {
61
+ kind: input.kind
62
+ });
63
+ }
64
+ const paths = await getRuntimePath(context.runtime);
65
+ const target = input.path ? paths.join(context.workspace, input.path) : context.workspace;
66
+ const staging = paths.join(context.workspace, `.forge-material-${context.attemptId}-${crypto.randomUUID()}`);
67
+ const git = await resolveGitOperations(context.runtime);
68
+ const env = context.env ? { env: { ...context.env } } : undefined;
69
+ const initialized = await git.init(staging);
70
+ if (initialized.exitCode !== 0) {
71
+ throw workersMaterialRefusal('workers-material-unavailable', 'The git material could not initialize the staging checkout.', { exitCode: initialized.exitCode ?? -1, stderr: initialized.stderr.slice(-2000) });
72
+ }
73
+ const remote = await git.raw(staging, ['remote', 'add', 'origin', input.cloneUrl]);
74
+ if (remote.exitCode !== 0) {
75
+ throw workersMaterialRefusal('workers-material-unavailable', 'The git material could not add the source remote.', {
76
+ exitCode: remote.exitCode ?? -1,
77
+ stderr: remote.stderr.slice(-2000)
78
+ });
79
+ }
80
+ const fetched = await git.raw(staging, ['fetch', '--quiet', '--depth=1', 'origin', input.sha], env);
81
+ if (fetched.exitCode !== 0) {
82
+ throw workersMaterialRefusal('workers-material-unavailable', 'The git material could not fetch the exact commit.', {
83
+ exitCode: fetched.exitCode ?? -1,
84
+ stderr: fetched.stderr.slice(-2000)
85
+ });
86
+ }
87
+ const checkedOut = await git.checkout(staging, 'FETCH_HEAD');
88
+ if (checkedOut.exitCode !== 0) {
89
+ throw workersMaterialRefusal('workers-material-unavailable', 'The git material could not check out the exact commit.', {
90
+ exitCode: checkedOut.exitCode ?? -1,
91
+ stderr: checkedOut.stderr.slice(-2000)
92
+ });
93
+ }
94
+ const head = await git.raw(staging, ['rev-parse', 'HEAD']);
95
+ if (head.exitCode !== 0) {
96
+ throw workersMaterialRefusal('workers-material-unavailable', 'The git material could not verify the checked-out commit.', {
97
+ exitCode: head.exitCode ?? -1,
98
+ stderr: head.stderr.slice(-2000)
99
+ });
100
+ }
101
+ const resolved = head.stdout.trim().toLowerCase();
102
+ if (resolved !== input.sha.toLowerCase()) {
103
+ throw workersMaterialRefusal('workers-material-digest-mismatch', `The git material checked out ${resolved || 'no commit'} instead of ${input.sha}.`, { expected: input.sha, actual: resolved });
104
+ }
105
+ if (target === context.workspace) {
106
+ const listing = await must(context, 'ls', ['-A', context.workspace], context.workspace, 'inspect the workspace');
107
+ const entries = listing.stdout
108
+ .split('\n')
109
+ .map((entry) => entry.trim())
110
+ .filter(Boolean);
111
+ const stagingName = paths.basename(staging);
112
+ if (entries.some((entry) => entry !== stagingName)) {
113
+ throw workersMaterialRefusal('workers-material-ref-invalid', 'The git material target is not empty.', { path: target });
114
+ }
115
+ await must(context, 'mv', [`${staging}/.`, target], context.workspace, 'move the checkout into place');
116
+ }
117
+ else {
118
+ if (!(await exitsZero(context, 'test', ['!', '-e', target], context.workspace))) {
119
+ throw workersMaterialRefusal('workers-material-ref-invalid', 'The git material target already exists.', { path: target });
120
+ }
121
+ await must(context, 'mv', [staging, target], context.workspace, 'move the checkout into place');
122
+ }
123
+ return {
124
+ kind: 'git',
125
+ digest: input.sha.toLowerCase(),
126
+ path: target
127
+ };
128
+ }
129
+ }
130
+ export const gitMaterial = new GitWorkerMaterial();
131
+ //# sourceMappingURL=material.git.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"material.git.js","sourceRoot":"","sources":["../../src/kinds/material.git.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CA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EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,EAAE;YAC/B,IAAI,EAAE,MAAM;SACZ,CAAC;IACH,CAAC;CACD;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { createRuntimeKind } from '@vibesdotdev/kernel/factory/kind';
2
+ import { WORKERS_MATERIAL_KIND, WorkerMaterialDescriptorSchema } from "./schemas/material.js";
3
+ /**
4
+ * `workers/material` — restore a job's declared inputs and capture its declared
5
+ * outputs. Implementations own one material family (git, cache or artifact);
6
+ * the kind owns only the contract and the typed refusals.
7
+ */
8
+ export const workersMaterialKind = createRuntimeKind({
9
+ id: WORKERS_MATERIAL_KIND,
10
+ descriptorSchema: WorkerMaterialDescriptorSchema
11
+ });
12
+ export { ArtifactMaterialRefSchema, CacheMaterialRefSchema, GitMaterialRefSchema, MaterialOutputSchema, MaterialPathSchema, MaterialRefSchema, WORKERS_MATERIAL_KIND, WorkerMaterialDescriptorSchema, WorkerMaterialTrustSchema, workersMaterialRefusal } from "./schemas/material.js";
13
+ //# sourceMappingURL=material.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"material.js","sourceRoot":"","sources":["../../src/kinds/material.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EACN,qBAAqB,EACrB,8BAA8B,EAG9B,MAAM,uBAAuB,CAAC;AAE/B;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,iBAAiB,CAA2C;IAC9F,EAAE,EAAE,qBAAqB;IACzB,gBAAgB,EAAE,8BAA8B;CAChD,CAAC,CAAC;AAEH,OAAO,EACN,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,8BAA8B,EAC9B,yBAAyB,EACzB,sBAAsB,EAWtB,MAAM,uBAAuB,CAAC"}