@agent-relay/factory 0.1.33 → 0.1.35
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/README.md +15 -3
- package/dist/cli/fleet.d.ts +4 -0
- package/dist/cli/fleet.d.ts.map +1 -1
- package/dist/cli/fleet.js +99 -6
- package/dist/cli/fleet.js.map +1 -1
- package/dist/config/schema.d.ts +15 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +2 -0
- package/dist/config/schema.js.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/mount/relayfile-cloud-mount-client.d.ts +18 -1
- package/dist/mount/relayfile-cloud-mount-client.d.ts.map +1 -1
- package/dist/mount/relayfile-cloud-mount-client.js +26 -0
- package/dist/mount/relayfile-cloud-mount-client.js.map +1 -1
- package/dist/mount/relayfile-integration-preflight.d.ts +28 -0
- package/dist/mount/relayfile-integration-preflight.d.ts.map +1 -0
- package/dist/mount/relayfile-integration-preflight.js +92 -0
- package/dist/mount/relayfile-integration-preflight.js.map +1 -0
- package/dist/observability/cloud-reporter.d.ts.map +1 -1
- package/dist/observability/cloud-reporter.js +21 -5
- package/dist/observability/cloud-reporter.js.map +1 -1
- package/dist/observability/events.d.ts +67 -27
- package/dist/observability/events.d.ts.map +1 -1
- package/dist/observability/events.js +13 -0
- package/dist/observability/events.js.map +1 -1
- package/dist/observability/instance-identity.d.ts +14 -0
- package/dist/observability/instance-identity.d.ts.map +1 -1
- package/dist/observability/instance-identity.js +18 -0
- package/dist/observability/instance-identity.js.map +1 -1
- package/dist/orchestrator/factory.d.ts.map +1 -1
- package/dist/orchestrator/factory.js +160 -18
- package/dist/orchestrator/factory.js.map +1 -1
- package/dist/ports/index.d.ts +1 -1
- package/dist/ports/index.d.ts.map +1 -1
- package/dist/ports/mount.d.ts +18 -0
- package/dist/ports/mount.d.ts.map +1 -1
- package/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AK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAA;QACvF,OAAO,CAAC,IAAI,IAAI,IAAI,IAAI,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;IAChD,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA"}
|
|
@@ -3,8 +3,10 @@ export declare const FACTORY_CLOUD_EVENT_CONTRACT_V1: "factory.telemetry.v1";
|
|
|
3
3
|
export declare const FACTORY_CLOUD_EVENT_MAX_BATCH_SIZE = 100;
|
|
4
4
|
/** Leave headroom below Cloud's 256 KiB request-body limit. */
|
|
5
5
|
export declare const FACTORY_CLOUD_EVENT_MAX_PAYLOAD_BYTES: number;
|
|
6
|
-
export declare const FACTORY_CLOUD_RELEASE_REASONS_V1: readonly ["completed", "human_review", "factory_stopped", "waiting_for_human", "exited", "offline", "node_offline", "crashed", "reconciled_missing", "delivery_failed", "dispatch_failed", "other"];
|
|
6
|
+
export declare const FACTORY_CLOUD_RELEASE_REASONS_V1: readonly ["completed", "human_review", "factory_stopped", "waiting_for_human", "exited", "offline", "node_offline", "crashed", "reconciled_missing", "delivery_failed", "dispatch_failed", "source_state_changed", "other"];
|
|
7
7
|
export type FactoryCloudReleaseReasonV1 = (typeof FACTORY_CLOUD_RELEASE_REASONS_V1)[number];
|
|
8
|
+
export declare const FACTORY_CLOUD_CANCELLATION_REASONS_V1: readonly ["source_state_changed", "agent_spawn_failed", "agent_delivery_failed", "dispatch_failed"];
|
|
9
|
+
export type FactoryCloudCancellationReasonV1 = (typeof FACTORY_CLOUD_CANCELLATION_REASONS_V1)[number];
|
|
8
10
|
export declare const FACTORY_CLOUD_EVENT_TYPES: readonly ["instance.started", "instance.heartbeat", "instance.stopping", "instance.stopped", "run.queued", "run.started", "run.phase_changed", "run.waiting", "run.blocked", "run.succeeded", "run.failed", "run.cancelled", "agent.planned", "agent.spawned", "agent.adopted", "agent.resumed", "agent.exited", "agent.released", "clarification.requested", "clarification.delivered", "clarification.waiting", "clarification.answered", "clarification.woken", "clarification.escalated", "pull_request.discovered", "pull_request.published", "pull_request.ready", "pull_request.merged", "writeback.applied", "factory.failure", "factory.anomaly", "factory.snapshot"];
|
|
9
11
|
export type FactoryCloudEventType = (typeof FACTORY_CLOUD_EVENT_TYPES)[number] | (string & {});
|
|
10
12
|
export declare const FactoryCloudTraceIdV1Schema: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -29,7 +31,8 @@ export declare const FactoryCloudEventAttributesV1Schema: z.ZodObject<{
|
|
|
29
31
|
invocationId: z.ZodOptional<z.ZodString>;
|
|
30
32
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
31
33
|
previousPhase: z.ZodOptional<z.ZodString>;
|
|
32
|
-
releaseReason: z.ZodOptional<z.ZodEnum<["completed", "human_review", "factory_stopped", "waiting_for_human", "exited", "offline", "node_offline", "crashed", "reconciled_missing", "delivery_failed", "dispatch_failed", "other"]>>;
|
|
34
|
+
releaseReason: z.ZodOptional<z.ZodEnum<["completed", "human_review", "factory_stopped", "waiting_for_human", "exited", "offline", "node_offline", "crashed", "reconciled_missing", "delivery_failed", "dispatch_failed", "source_state_changed", "other"]>>;
|
|
35
|
+
cancellationReason: z.ZodOptional<z.ZodEnum<["source_state_changed", "agent_spawn_failed", "agent_delivery_failed", "dispatch_failed"]>>;
|
|
33
36
|
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
34
37
|
count: z.ZodOptional<z.ZodNumber>;
|
|
35
38
|
activeRuns: z.ZodOptional<z.ZodNumber>;
|
|
@@ -58,7 +61,8 @@ export declare const FactoryCloudEventAttributesV1Schema: z.ZodObject<{
|
|
|
58
61
|
invocationId?: string | undefined;
|
|
59
62
|
nodeId?: string | undefined;
|
|
60
63
|
previousPhase?: string | undefined;
|
|
61
|
-
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "other" | undefined;
|
|
64
|
+
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "source_state_changed" | "other" | undefined;
|
|
65
|
+
cancellationReason?: "dispatch_failed" | "source_state_changed" | "agent_spawn_failed" | "agent_delivery_failed" | undefined;
|
|
62
66
|
count?: number | undefined;
|
|
63
67
|
activeRuns?: number | undefined;
|
|
64
68
|
queuedRuns?: number | undefined;
|
|
@@ -85,7 +89,8 @@ export declare const FactoryCloudEventAttributesV1Schema: z.ZodObject<{
|
|
|
85
89
|
invocationId?: string | undefined;
|
|
86
90
|
nodeId?: string | undefined;
|
|
87
91
|
previousPhase?: string | undefined;
|
|
88
|
-
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "other" | undefined;
|
|
92
|
+
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "source_state_changed" | "other" | undefined;
|
|
93
|
+
cancellationReason?: "dispatch_failed" | "source_state_changed" | "agent_spawn_failed" | "agent_delivery_failed" | undefined;
|
|
89
94
|
count?: number | undefined;
|
|
90
95
|
activeRuns?: number | undefined;
|
|
91
96
|
queuedRuns?: number | undefined;
|
|
@@ -102,18 +107,21 @@ export declare const FactoryCloudInstanceV1Schema: z.ZodObject<{
|
|
|
102
107
|
bootId: z.ZodString;
|
|
103
108
|
version: z.ZodString;
|
|
104
109
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
110
|
+
name: z.ZodOptional<z.ZodString>;
|
|
105
111
|
backend: z.ZodOptional<z.ZodString>;
|
|
106
112
|
mode: z.ZodOptional<z.ZodString>;
|
|
107
113
|
platform: z.ZodOptional<z.ZodString>;
|
|
108
114
|
arch: z.ZodOptional<z.ZodString>;
|
|
109
115
|
runtime: z.ZodOptional<z.ZodString>;
|
|
110
116
|
}, "strict", z.ZodTypeAny, {
|
|
117
|
+
name?: string | undefined;
|
|
111
118
|
backend?: string | undefined;
|
|
112
119
|
mode?: string | undefined;
|
|
113
120
|
platform?: string | undefined;
|
|
114
121
|
arch?: string | undefined;
|
|
115
122
|
runtime?: string | undefined;
|
|
116
123
|
}, {
|
|
124
|
+
name?: string | undefined;
|
|
117
125
|
backend?: string | undefined;
|
|
118
126
|
mode?: string | undefined;
|
|
119
127
|
platform?: string | undefined;
|
|
@@ -125,6 +133,7 @@ export declare const FactoryCloudInstanceV1Schema: z.ZodObject<{
|
|
|
125
133
|
bootId: string;
|
|
126
134
|
version: string;
|
|
127
135
|
metadata?: {
|
|
136
|
+
name?: string | undefined;
|
|
128
137
|
backend?: string | undefined;
|
|
129
138
|
mode?: string | undefined;
|
|
130
139
|
platform?: string | undefined;
|
|
@@ -136,6 +145,7 @@ export declare const FactoryCloudInstanceV1Schema: z.ZodObject<{
|
|
|
136
145
|
bootId: string;
|
|
137
146
|
version: string;
|
|
138
147
|
metadata?: {
|
|
148
|
+
name?: string | undefined;
|
|
139
149
|
backend?: string | undefined;
|
|
140
150
|
mode?: string | undefined;
|
|
141
151
|
platform?: string | undefined;
|
|
@@ -183,7 +193,8 @@ export declare const FactoryCloudEventInputV1Schema: z.ZodEffects<z.ZodObject<{
|
|
|
183
193
|
invocationId: z.ZodOptional<z.ZodString>;
|
|
184
194
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
185
195
|
previousPhase: z.ZodOptional<z.ZodString>;
|
|
186
|
-
releaseReason: z.ZodOptional<z.ZodEnum<["completed", "human_review", "factory_stopped", "waiting_for_human", "exited", "offline", "node_offline", "crashed", "reconciled_missing", "delivery_failed", "dispatch_failed", "other"]>>;
|
|
196
|
+
releaseReason: z.ZodOptional<z.ZodEnum<["completed", "human_review", "factory_stopped", "waiting_for_human", "exited", "offline", "node_offline", "crashed", "reconciled_missing", "delivery_failed", "dispatch_failed", "source_state_changed", "other"]>>;
|
|
197
|
+
cancellationReason: z.ZodOptional<z.ZodEnum<["source_state_changed", "agent_spawn_failed", "agent_delivery_failed", "dispatch_failed"]>>;
|
|
187
198
|
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
188
199
|
count: z.ZodOptional<z.ZodNumber>;
|
|
189
200
|
activeRuns: z.ZodOptional<z.ZodNumber>;
|
|
@@ -212,7 +223,8 @@ export declare const FactoryCloudEventInputV1Schema: z.ZodEffects<z.ZodObject<{
|
|
|
212
223
|
invocationId?: string | undefined;
|
|
213
224
|
nodeId?: string | undefined;
|
|
214
225
|
previousPhase?: string | undefined;
|
|
215
|
-
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "other" | undefined;
|
|
226
|
+
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "source_state_changed" | "other" | undefined;
|
|
227
|
+
cancellationReason?: "dispatch_failed" | "source_state_changed" | "agent_spawn_failed" | "agent_delivery_failed" | undefined;
|
|
216
228
|
count?: number | undefined;
|
|
217
229
|
activeRuns?: number | undefined;
|
|
218
230
|
queuedRuns?: number | undefined;
|
|
@@ -239,7 +251,8 @@ export declare const FactoryCloudEventInputV1Schema: z.ZodEffects<z.ZodObject<{
|
|
|
239
251
|
invocationId?: string | undefined;
|
|
240
252
|
nodeId?: string | undefined;
|
|
241
253
|
previousPhase?: string | undefined;
|
|
242
|
-
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "other" | undefined;
|
|
254
|
+
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "source_state_changed" | "other" | undefined;
|
|
255
|
+
cancellationReason?: "dispatch_failed" | "source_state_changed" | "agent_spawn_failed" | "agent_delivery_failed" | undefined;
|
|
243
256
|
count?: number | undefined;
|
|
244
257
|
activeRuns?: number | undefined;
|
|
245
258
|
queuedRuns?: number | undefined;
|
|
@@ -294,7 +307,8 @@ export declare const FactoryCloudEventInputV1Schema: z.ZodEffects<z.ZodObject<{
|
|
|
294
307
|
invocationId?: string | undefined;
|
|
295
308
|
nodeId?: string | undefined;
|
|
296
309
|
previousPhase?: string | undefined;
|
|
297
|
-
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "other" | undefined;
|
|
310
|
+
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "source_state_changed" | "other" | undefined;
|
|
311
|
+
cancellationReason?: "dispatch_failed" | "source_state_changed" | "agent_spawn_failed" | "agent_delivery_failed" | undefined;
|
|
298
312
|
count?: number | undefined;
|
|
299
313
|
activeRuns?: number | undefined;
|
|
300
314
|
queuedRuns?: number | undefined;
|
|
@@ -341,7 +355,8 @@ export declare const FactoryCloudEventInputV1Schema: z.ZodEffects<z.ZodObject<{
|
|
|
341
355
|
invocationId?: string | undefined;
|
|
342
356
|
nodeId?: string | undefined;
|
|
343
357
|
previousPhase?: string | undefined;
|
|
344
|
-
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "other" | undefined;
|
|
358
|
+
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "source_state_changed" | "other" | undefined;
|
|
359
|
+
cancellationReason?: "dispatch_failed" | "source_state_changed" | "agent_spawn_failed" | "agent_delivery_failed" | undefined;
|
|
345
360
|
count?: number | undefined;
|
|
346
361
|
activeRuns?: number | undefined;
|
|
347
362
|
queuedRuns?: number | undefined;
|
|
@@ -388,7 +403,8 @@ export declare const FactoryCloudEventInputV1Schema: z.ZodEffects<z.ZodObject<{
|
|
|
388
403
|
invocationId?: string | undefined;
|
|
389
404
|
nodeId?: string | undefined;
|
|
390
405
|
previousPhase?: string | undefined;
|
|
391
|
-
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "other" | undefined;
|
|
406
|
+
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "source_state_changed" | "other" | undefined;
|
|
407
|
+
cancellationReason?: "dispatch_failed" | "source_state_changed" | "agent_spawn_failed" | "agent_delivery_failed" | undefined;
|
|
392
408
|
count?: number | undefined;
|
|
393
409
|
activeRuns?: number | undefined;
|
|
394
410
|
queuedRuns?: number | undefined;
|
|
@@ -435,7 +451,8 @@ export declare const FactoryCloudEventInputV1Schema: z.ZodEffects<z.ZodObject<{
|
|
|
435
451
|
invocationId?: string | undefined;
|
|
436
452
|
nodeId?: string | undefined;
|
|
437
453
|
previousPhase?: string | undefined;
|
|
438
|
-
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "other" | undefined;
|
|
454
|
+
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "source_state_changed" | "other" | undefined;
|
|
455
|
+
cancellationReason?: "dispatch_failed" | "source_state_changed" | "agent_spawn_failed" | "agent_delivery_failed" | undefined;
|
|
439
456
|
count?: number | undefined;
|
|
440
457
|
activeRuns?: number | undefined;
|
|
441
458
|
queuedRuns?: number | undefined;
|
|
@@ -492,7 +509,8 @@ export declare const FactoryCloudEventV1Schema: z.ZodEffects<z.ZodObject<{
|
|
|
492
509
|
invocationId: z.ZodOptional<z.ZodString>;
|
|
493
510
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
494
511
|
previousPhase: z.ZodOptional<z.ZodString>;
|
|
495
|
-
releaseReason: z.ZodOptional<z.ZodEnum<["completed", "human_review", "factory_stopped", "waiting_for_human", "exited", "offline", "node_offline", "crashed", "reconciled_missing", "delivery_failed", "dispatch_failed", "other"]>>;
|
|
512
|
+
releaseReason: z.ZodOptional<z.ZodEnum<["completed", "human_review", "factory_stopped", "waiting_for_human", "exited", "offline", "node_offline", "crashed", "reconciled_missing", "delivery_failed", "dispatch_failed", "source_state_changed", "other"]>>;
|
|
513
|
+
cancellationReason: z.ZodOptional<z.ZodEnum<["source_state_changed", "agent_spawn_failed", "agent_delivery_failed", "dispatch_failed"]>>;
|
|
496
514
|
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
497
515
|
count: z.ZodOptional<z.ZodNumber>;
|
|
498
516
|
activeRuns: z.ZodOptional<z.ZodNumber>;
|
|
@@ -521,7 +539,8 @@ export declare const FactoryCloudEventV1Schema: z.ZodEffects<z.ZodObject<{
|
|
|
521
539
|
invocationId?: string | undefined;
|
|
522
540
|
nodeId?: string | undefined;
|
|
523
541
|
previousPhase?: string | undefined;
|
|
524
|
-
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "other" | undefined;
|
|
542
|
+
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "source_state_changed" | "other" | undefined;
|
|
543
|
+
cancellationReason?: "dispatch_failed" | "source_state_changed" | "agent_spawn_failed" | "agent_delivery_failed" | undefined;
|
|
525
544
|
count?: number | undefined;
|
|
526
545
|
activeRuns?: number | undefined;
|
|
527
546
|
queuedRuns?: number | undefined;
|
|
@@ -548,7 +567,8 @@ export declare const FactoryCloudEventV1Schema: z.ZodEffects<z.ZodObject<{
|
|
|
548
567
|
invocationId?: string | undefined;
|
|
549
568
|
nodeId?: string | undefined;
|
|
550
569
|
previousPhase?: string | undefined;
|
|
551
|
-
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "other" | undefined;
|
|
570
|
+
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "source_state_changed" | "other" | undefined;
|
|
571
|
+
cancellationReason?: "dispatch_failed" | "source_state_changed" | "agent_spawn_failed" | "agent_delivery_failed" | undefined;
|
|
552
572
|
count?: number | undefined;
|
|
553
573
|
activeRuns?: number | undefined;
|
|
554
574
|
queuedRuns?: number | undefined;
|
|
@@ -604,7 +624,8 @@ export declare const FactoryCloudEventV1Schema: z.ZodEffects<z.ZodObject<{
|
|
|
604
624
|
invocationId?: string | undefined;
|
|
605
625
|
nodeId?: string | undefined;
|
|
606
626
|
previousPhase?: string | undefined;
|
|
607
|
-
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "other" | undefined;
|
|
627
|
+
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "source_state_changed" | "other" | undefined;
|
|
628
|
+
cancellationReason?: "dispatch_failed" | "source_state_changed" | "agent_spawn_failed" | "agent_delivery_failed" | undefined;
|
|
608
629
|
count?: number | undefined;
|
|
609
630
|
activeRuns?: number | undefined;
|
|
610
631
|
queuedRuns?: number | undefined;
|
|
@@ -652,7 +673,8 @@ export declare const FactoryCloudEventV1Schema: z.ZodEffects<z.ZodObject<{
|
|
|
652
673
|
invocationId?: string | undefined;
|
|
653
674
|
nodeId?: string | undefined;
|
|
654
675
|
previousPhase?: string | undefined;
|
|
655
|
-
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "other" | undefined;
|
|
676
|
+
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "source_state_changed" | "other" | undefined;
|
|
677
|
+
cancellationReason?: "dispatch_failed" | "source_state_changed" | "agent_spawn_failed" | "agent_delivery_failed" | undefined;
|
|
656
678
|
count?: number | undefined;
|
|
657
679
|
activeRuns?: number | undefined;
|
|
658
680
|
queuedRuns?: number | undefined;
|
|
@@ -700,7 +722,8 @@ export declare const FactoryCloudEventV1Schema: z.ZodEffects<z.ZodObject<{
|
|
|
700
722
|
invocationId?: string | undefined;
|
|
701
723
|
nodeId?: string | undefined;
|
|
702
724
|
previousPhase?: string | undefined;
|
|
703
|
-
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "other" | undefined;
|
|
725
|
+
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "source_state_changed" | "other" | undefined;
|
|
726
|
+
cancellationReason?: "dispatch_failed" | "source_state_changed" | "agent_spawn_failed" | "agent_delivery_failed" | undefined;
|
|
704
727
|
count?: number | undefined;
|
|
705
728
|
activeRuns?: number | undefined;
|
|
706
729
|
queuedRuns?: number | undefined;
|
|
@@ -748,7 +771,8 @@ export declare const FactoryCloudEventV1Schema: z.ZodEffects<z.ZodObject<{
|
|
|
748
771
|
invocationId?: string | undefined;
|
|
749
772
|
nodeId?: string | undefined;
|
|
750
773
|
previousPhase?: string | undefined;
|
|
751
|
-
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "other" | undefined;
|
|
774
|
+
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "source_state_changed" | "other" | undefined;
|
|
775
|
+
cancellationReason?: "dispatch_failed" | "source_state_changed" | "agent_spawn_failed" | "agent_delivery_failed" | undefined;
|
|
752
776
|
count?: number | undefined;
|
|
753
777
|
activeRuns?: number | undefined;
|
|
754
778
|
queuedRuns?: number | undefined;
|
|
@@ -774,18 +798,21 @@ export declare const FactoryCloudEventBatchV1Schema: z.ZodObject<{
|
|
|
774
798
|
bootId: z.ZodString;
|
|
775
799
|
version: z.ZodString;
|
|
776
800
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
801
|
+
name: z.ZodOptional<z.ZodString>;
|
|
777
802
|
backend: z.ZodOptional<z.ZodString>;
|
|
778
803
|
mode: z.ZodOptional<z.ZodString>;
|
|
779
804
|
platform: z.ZodOptional<z.ZodString>;
|
|
780
805
|
arch: z.ZodOptional<z.ZodString>;
|
|
781
806
|
runtime: z.ZodOptional<z.ZodString>;
|
|
782
807
|
}, "strict", z.ZodTypeAny, {
|
|
808
|
+
name?: string | undefined;
|
|
783
809
|
backend?: string | undefined;
|
|
784
810
|
mode?: string | undefined;
|
|
785
811
|
platform?: string | undefined;
|
|
786
812
|
arch?: string | undefined;
|
|
787
813
|
runtime?: string | undefined;
|
|
788
814
|
}, {
|
|
815
|
+
name?: string | undefined;
|
|
789
816
|
backend?: string | undefined;
|
|
790
817
|
mode?: string | undefined;
|
|
791
818
|
platform?: string | undefined;
|
|
@@ -797,6 +824,7 @@ export declare const FactoryCloudEventBatchV1Schema: z.ZodObject<{
|
|
|
797
824
|
bootId: string;
|
|
798
825
|
version: string;
|
|
799
826
|
metadata?: {
|
|
827
|
+
name?: string | undefined;
|
|
800
828
|
backend?: string | undefined;
|
|
801
829
|
mode?: string | undefined;
|
|
802
830
|
platform?: string | undefined;
|
|
@@ -808,6 +836,7 @@ export declare const FactoryCloudEventBatchV1Schema: z.ZodObject<{
|
|
|
808
836
|
bootId: string;
|
|
809
837
|
version: string;
|
|
810
838
|
metadata?: {
|
|
839
|
+
name?: string | undefined;
|
|
811
840
|
backend?: string | undefined;
|
|
812
841
|
mode?: string | undefined;
|
|
813
842
|
platform?: string | undefined;
|
|
@@ -855,7 +884,8 @@ export declare const FactoryCloudEventBatchV1Schema: z.ZodObject<{
|
|
|
855
884
|
invocationId: z.ZodOptional<z.ZodString>;
|
|
856
885
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
857
886
|
previousPhase: z.ZodOptional<z.ZodString>;
|
|
858
|
-
releaseReason: z.ZodOptional<z.ZodEnum<["completed", "human_review", "factory_stopped", "waiting_for_human", "exited", "offline", "node_offline", "crashed", "reconciled_missing", "delivery_failed", "dispatch_failed", "other"]>>;
|
|
887
|
+
releaseReason: z.ZodOptional<z.ZodEnum<["completed", "human_review", "factory_stopped", "waiting_for_human", "exited", "offline", "node_offline", "crashed", "reconciled_missing", "delivery_failed", "dispatch_failed", "source_state_changed", "other"]>>;
|
|
888
|
+
cancellationReason: z.ZodOptional<z.ZodEnum<["source_state_changed", "agent_spawn_failed", "agent_delivery_failed", "dispatch_failed"]>>;
|
|
859
889
|
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
860
890
|
count: z.ZodOptional<z.ZodNumber>;
|
|
861
891
|
activeRuns: z.ZodOptional<z.ZodNumber>;
|
|
@@ -884,7 +914,8 @@ export declare const FactoryCloudEventBatchV1Schema: z.ZodObject<{
|
|
|
884
914
|
invocationId?: string | undefined;
|
|
885
915
|
nodeId?: string | undefined;
|
|
886
916
|
previousPhase?: string | undefined;
|
|
887
|
-
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "other" | undefined;
|
|
917
|
+
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "source_state_changed" | "other" | undefined;
|
|
918
|
+
cancellationReason?: "dispatch_failed" | "source_state_changed" | "agent_spawn_failed" | "agent_delivery_failed" | undefined;
|
|
888
919
|
count?: number | undefined;
|
|
889
920
|
activeRuns?: number | undefined;
|
|
890
921
|
queuedRuns?: number | undefined;
|
|
@@ -911,7 +942,8 @@ export declare const FactoryCloudEventBatchV1Schema: z.ZodObject<{
|
|
|
911
942
|
invocationId?: string | undefined;
|
|
912
943
|
nodeId?: string | undefined;
|
|
913
944
|
previousPhase?: string | undefined;
|
|
914
|
-
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "other" | undefined;
|
|
945
|
+
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "source_state_changed" | "other" | undefined;
|
|
946
|
+
cancellationReason?: "dispatch_failed" | "source_state_changed" | "agent_spawn_failed" | "agent_delivery_failed" | undefined;
|
|
915
947
|
count?: number | undefined;
|
|
916
948
|
activeRuns?: number | undefined;
|
|
917
949
|
queuedRuns?: number | undefined;
|
|
@@ -967,7 +999,8 @@ export declare const FactoryCloudEventBatchV1Schema: z.ZodObject<{
|
|
|
967
999
|
invocationId?: string | undefined;
|
|
968
1000
|
nodeId?: string | undefined;
|
|
969
1001
|
previousPhase?: string | undefined;
|
|
970
|
-
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "other" | undefined;
|
|
1002
|
+
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "source_state_changed" | "other" | undefined;
|
|
1003
|
+
cancellationReason?: "dispatch_failed" | "source_state_changed" | "agent_spawn_failed" | "agent_delivery_failed" | undefined;
|
|
971
1004
|
count?: number | undefined;
|
|
972
1005
|
activeRuns?: number | undefined;
|
|
973
1006
|
queuedRuns?: number | undefined;
|
|
@@ -1015,7 +1048,8 @@ export declare const FactoryCloudEventBatchV1Schema: z.ZodObject<{
|
|
|
1015
1048
|
invocationId?: string | undefined;
|
|
1016
1049
|
nodeId?: string | undefined;
|
|
1017
1050
|
previousPhase?: string | undefined;
|
|
1018
|
-
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "other" | undefined;
|
|
1051
|
+
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "source_state_changed" | "other" | undefined;
|
|
1052
|
+
cancellationReason?: "dispatch_failed" | "source_state_changed" | "agent_spawn_failed" | "agent_delivery_failed" | undefined;
|
|
1019
1053
|
count?: number | undefined;
|
|
1020
1054
|
activeRuns?: number | undefined;
|
|
1021
1055
|
queuedRuns?: number | undefined;
|
|
@@ -1063,7 +1097,8 @@ export declare const FactoryCloudEventBatchV1Schema: z.ZodObject<{
|
|
|
1063
1097
|
invocationId?: string | undefined;
|
|
1064
1098
|
nodeId?: string | undefined;
|
|
1065
1099
|
previousPhase?: string | undefined;
|
|
1066
|
-
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "other" | undefined;
|
|
1100
|
+
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "source_state_changed" | "other" | undefined;
|
|
1101
|
+
cancellationReason?: "dispatch_failed" | "source_state_changed" | "agent_spawn_failed" | "agent_delivery_failed" | undefined;
|
|
1067
1102
|
count?: number | undefined;
|
|
1068
1103
|
activeRuns?: number | undefined;
|
|
1069
1104
|
queuedRuns?: number | undefined;
|
|
@@ -1111,7 +1146,8 @@ export declare const FactoryCloudEventBatchV1Schema: z.ZodObject<{
|
|
|
1111
1146
|
invocationId?: string | undefined;
|
|
1112
1147
|
nodeId?: string | undefined;
|
|
1113
1148
|
previousPhase?: string | undefined;
|
|
1114
|
-
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "other" | undefined;
|
|
1149
|
+
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "source_state_changed" | "other" | undefined;
|
|
1150
|
+
cancellationReason?: "dispatch_failed" | "source_state_changed" | "agent_spawn_failed" | "agent_delivery_failed" | undefined;
|
|
1115
1151
|
count?: number | undefined;
|
|
1116
1152
|
activeRuns?: number | undefined;
|
|
1117
1153
|
queuedRuns?: number | undefined;
|
|
@@ -1135,6 +1171,7 @@ export declare const FactoryCloudEventBatchV1Schema: z.ZodObject<{
|
|
|
1135
1171
|
bootId: string;
|
|
1136
1172
|
version: string;
|
|
1137
1173
|
metadata?: {
|
|
1174
|
+
name?: string | undefined;
|
|
1138
1175
|
backend?: string | undefined;
|
|
1139
1176
|
mode?: string | undefined;
|
|
1140
1177
|
platform?: string | undefined;
|
|
@@ -1174,7 +1211,8 @@ export declare const FactoryCloudEventBatchV1Schema: z.ZodObject<{
|
|
|
1174
1211
|
invocationId?: string | undefined;
|
|
1175
1212
|
nodeId?: string | undefined;
|
|
1176
1213
|
previousPhase?: string | undefined;
|
|
1177
|
-
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "other" | undefined;
|
|
1214
|
+
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "source_state_changed" | "other" | undefined;
|
|
1215
|
+
cancellationReason?: "dispatch_failed" | "source_state_changed" | "agent_spawn_failed" | "agent_delivery_failed" | undefined;
|
|
1178
1216
|
count?: number | undefined;
|
|
1179
1217
|
activeRuns?: number | undefined;
|
|
1180
1218
|
queuedRuns?: number | undefined;
|
|
@@ -1198,6 +1236,7 @@ export declare const FactoryCloudEventBatchV1Schema: z.ZodObject<{
|
|
|
1198
1236
|
bootId: string;
|
|
1199
1237
|
version: string;
|
|
1200
1238
|
metadata?: {
|
|
1239
|
+
name?: string | undefined;
|
|
1201
1240
|
backend?: string | undefined;
|
|
1202
1241
|
mode?: string | undefined;
|
|
1203
1242
|
platform?: string | undefined;
|
|
@@ -1237,7 +1276,8 @@ export declare const FactoryCloudEventBatchV1Schema: z.ZodObject<{
|
|
|
1237
1276
|
invocationId?: string | undefined;
|
|
1238
1277
|
nodeId?: string | undefined;
|
|
1239
1278
|
previousPhase?: string | undefined;
|
|
1240
|
-
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "other" | undefined;
|
|
1279
|
+
releaseReason?: "completed" | "human_review" | "factory_stopped" | "waiting_for_human" | "exited" | "offline" | "node_offline" | "crashed" | "reconciled_missing" | "delivery_failed" | "dispatch_failed" | "source_state_changed" | "other" | undefined;
|
|
1280
|
+
cancellationReason?: "dispatch_failed" | "source_state_changed" | "agent_spawn_failed" | "agent_delivery_failed" | undefined;
|
|
1241
1281
|
count?: number | undefined;
|
|
1242
1282
|
activeRuns?: number | undefined;
|
|
1243
1283
|
queuedRuns?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/observability/events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,+BAA+B,EAAG,sBAA+B,CAAA;AAC9E,eAAO,MAAM,kCAAkC,MAAM,CAAA;AACrD,+DAA+D;AAC/D,eAAO,MAAM,qCAAqC,QAAa,CAAA;AAE/D,eAAO,MAAM,gCAAgC,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/observability/events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,+BAA+B,EAAG,sBAA+B,CAAA;AAC9E,eAAO,MAAM,kCAAkC,MAAM,CAAA;AACrD,+DAA+D;AAC/D,eAAO,MAAM,qCAAqC,QAAa,CAAA;AAE/D,eAAO,MAAM,gCAAgC,6NAcnC,CAAA;AAEV,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,gCAAgC,CAAC,CAAC,MAAM,CAAC,CAAA;AAE3F,eAAO,MAAM,qCAAqC,qGAKxC,CAAA;AAEV,MAAM,MAAM,gCAAgC,GAAG,CAAC,OAAO,qCAAqC,CAAC,CAAC,MAAM,CAAC,CAAA;AAErG,eAAO,MAAM,yBAAyB,gpBAiC5B,CAAA;AAEV,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;CACjB;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAYzD;AAED,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,IAAI,CAAC,wBAAwB,EAAE,IAAI,GAAG,YAAY,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,IAAI,GAAG,YAAY,CAAC,CAAC,EACzH,OAAO,GAAE,gCAAqC,GAC7C,wBAAwB,CAQ1B;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,2BAA2B,GAAG,SAAS,CAuC9G;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,IAAI,CAAC,wBAAwB,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC,GAAG,OAAO,CAQvH"}
|
|
@@ -16,8 +16,15 @@ export const FACTORY_CLOUD_RELEASE_REASONS_V1 = [
|
|
|
16
16
|
'reconciled_missing',
|
|
17
17
|
'delivery_failed',
|
|
18
18
|
'dispatch_failed',
|
|
19
|
+
'source_state_changed',
|
|
19
20
|
'other',
|
|
20
21
|
];
|
|
22
|
+
export const FACTORY_CLOUD_CANCELLATION_REASONS_V1 = [
|
|
23
|
+
'source_state_changed',
|
|
24
|
+
'agent_spawn_failed',
|
|
25
|
+
'agent_delivery_failed',
|
|
26
|
+
'dispatch_failed',
|
|
27
|
+
];
|
|
21
28
|
export const FACTORY_CLOUD_EVENT_TYPES = [
|
|
22
29
|
'instance.started',
|
|
23
30
|
'instance.heartbeat',
|
|
@@ -86,6 +93,7 @@ export const FactoryCloudEventAttributesV1Schema = z.object({
|
|
|
86
93
|
nodeId: opaqueString.optional(),
|
|
87
94
|
previousPhase: categoryString.optional(),
|
|
88
95
|
releaseReason: z.enum(FACTORY_CLOUD_RELEASE_REASONS_V1).optional(),
|
|
96
|
+
cancellationReason: z.enum(FACTORY_CLOUD_CANCELLATION_REASONS_V1).optional(),
|
|
89
97
|
dryRun: z.boolean().optional(),
|
|
90
98
|
count: boundedCount.optional(),
|
|
91
99
|
activeRuns: boundedCount.optional(),
|
|
@@ -103,6 +111,7 @@ export const FactoryCloudInstanceV1Schema = z.object({
|
|
|
103
111
|
bootId: opaqueString,
|
|
104
112
|
version: z.string().trim().min(1).max(64),
|
|
105
113
|
metadata: z.object({
|
|
114
|
+
name: opaqueString.optional(),
|
|
106
115
|
backend: categoryString.optional(),
|
|
107
116
|
mode: categoryString.optional(),
|
|
108
117
|
platform: categoryString.optional(),
|
|
@@ -195,6 +204,7 @@ export function factoryCloudReleaseReasonV1(value) {
|
|
|
195
204
|
case 'waiting-for-human':
|
|
196
205
|
return 'waiting_for_human';
|
|
197
206
|
case 'task_exit':
|
|
207
|
+
case 'worker_exited':
|
|
198
208
|
case 'exited':
|
|
199
209
|
return 'exited';
|
|
200
210
|
case 'offline':
|
|
@@ -213,6 +223,9 @@ export function factoryCloudReleaseReasonV1(value) {
|
|
|
213
223
|
return 'delivery_failed';
|
|
214
224
|
case 'dispatch failed':
|
|
215
225
|
return 'dispatch_failed';
|
|
226
|
+
case 'live dispatch state changed':
|
|
227
|
+
case 'source state changed':
|
|
228
|
+
return 'source_state_changed';
|
|
216
229
|
default:
|
|
217
230
|
return 'other';
|
|
218
231
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/observability/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAEpD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,+BAA+B,GAAG,sBAA+B,CAAA;AAC9E,MAAM,CAAC,MAAM,kCAAkC,GAAG,GAAG,CAAA;AACrD,+DAA+D;AAC/D,MAAM,CAAC,MAAM,qCAAqC,GAAG,GAAG,GAAG,IAAI,CAAA;AAE/D,MAAM,CAAC,MAAM,gCAAgC,GAAG;IA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AK,eAAe,CAAC;QACrB,KAAK,QAAQ;YACX,OAAO,QAAQ,CAAA;QACjB,KAAK,SAAS;YACZ,OAAO,SAAS,CAAA;QAClB,KAAK,cAAc;YACjB,OAAO,cAAc,CAAA;QACvB,KAAK,OAAO,CAAC;QACb,KAAK,SAAS;YACZ,OAAO,SAAS,CAAA;QAClB,KAAK,oBAAoB;YACvB,OAAO,oBAAoB,CAAA;QAC7B,KAAK,eAAe,CAAC;QACrB,KAAK,SAAS,CAAC;QACf,KAAK,+BAA+B,CAAC;QACrC,KAAK,uBAAuB;YAC1B,OAAO,iBAAiB,CAAA;QAC1B,KAAK,iBAAiB;YACpB,OAAO,iBAAiB,CAAA;QAC1B,KAAK,6BAA6B,CAAC;QACnC,KAAK,sBAAsB;YACzB,OAAO,sBAAsB,CAAA;QAC/B;YACE,OAAO,OAAO,CAAA;IAClB,CAAC;AACH,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,KAAkE;IAC5G,OAAO,KAAK,CAAC,KAAK,KAAK,OAAO;QAC5B,KAAK,CAAC,IAAI,KAAK,iBAAiB;QAChC,KAAK,CAAC,IAAI,KAAK,iBAAiB;QAChC,KAAK,CAAC,IAAI,KAAK,kBAAkB;QACjC,KAAK,CAAC,MAAM,KAAK,QAAQ;QACzB,KAAK,CAAC,MAAM,KAAK,WAAW;QAC5B,KAAK,CAAC,MAAM,KAAK,WAAW,CAAA;AAChC,CAAC"}
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
export interface FactoryInstanceNameConfig {
|
|
2
|
+
reporting: {
|
|
3
|
+
instanceName?: string;
|
|
4
|
+
};
|
|
5
|
+
repos: {
|
|
6
|
+
names?: readonly string[];
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Resolve the operator-facing instance name without fingerprinting the host.
|
|
11
|
+
* An explicit reporting name wins; otherwise only an unambiguous, valid sole
|
|
12
|
+
* repository name is used.
|
|
13
|
+
*/
|
|
14
|
+
export declare function resolveFactoryInstanceName(config: FactoryInstanceNameConfig): string | undefined;
|
|
1
15
|
/**
|
|
2
16
|
* Return one opaque identity for this Factory installation. The create-only
|
|
3
17
|
* file makes concurrent starts converge without deriving identity from a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instance-identity.d.ts","sourceRoot":"","sources":["../../src/observability/instance-identity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"instance-identity.d.ts","sourceRoot":"","sources":["../../src/observability/instance-identity.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE;QAAE,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACpC,KAAK,EAAE;QAAE,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,CAAA;CACrC;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,yBAAyB,GAAG,MAAM,GAAG,SAAS,CAMhG;AAED;;;;GAIG;AACH,wBAAsB,6BAA6B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAqCjF"}
|
|
@@ -2,6 +2,20 @@ import { randomUUID } from 'node:crypto';
|
|
|
2
2
|
import { link, mkdir, open, readFile, unlink } from 'node:fs/promises';
|
|
3
3
|
import { dirname } from 'node:path';
|
|
4
4
|
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu;
|
|
5
|
+
const MAX_FACTORY_INSTANCE_NAME_LENGTH = 256;
|
|
6
|
+
/**
|
|
7
|
+
* Resolve the operator-facing instance name without fingerprinting the host.
|
|
8
|
+
* An explicit reporting name wins; otherwise only an unambiguous, valid sole
|
|
9
|
+
* repository name is used.
|
|
10
|
+
*/
|
|
11
|
+
export function resolveFactoryInstanceName(config) {
|
|
12
|
+
if (config.reporting.instanceName !== undefined) {
|
|
13
|
+
return normalizeFactoryInstanceName(config.reporting.instanceName);
|
|
14
|
+
}
|
|
15
|
+
if (config.repos.names?.length !== 1)
|
|
16
|
+
return undefined;
|
|
17
|
+
return normalizeFactoryInstanceName(config.repos.names[0]);
|
|
18
|
+
}
|
|
5
19
|
/**
|
|
6
20
|
* Return one opaque identity for this Factory installation. The create-only
|
|
7
21
|
* file makes concurrent starts converge without deriving identity from a
|
|
@@ -56,4 +70,8 @@ export async function loadOrCreateFactoryInstanceId(path) {
|
|
|
56
70
|
}
|
|
57
71
|
const isAlreadyExistsError = (error) => Boolean(error && typeof error === 'object' && 'code' in error && error.code === 'EEXIST');
|
|
58
72
|
const isMissingFileError = (error) => Boolean(error && typeof error === 'object' && 'code' in error && error.code === 'ENOENT');
|
|
73
|
+
const normalizeFactoryInstanceName = (value) => {
|
|
74
|
+
const name = value.trim();
|
|
75
|
+
return name.length >= 1 && name.length <= MAX_FACTORY_INSTANCE_NAME_LENGTH ? name : undefined;
|
|
76
|
+
};
|
|
59
77
|
//# sourceMappingURL=instance-identity.js.map
|