openmeld 0.3.121 → 0.3.123
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/{add-me-membership-Boe-OK8i.js → add-me-membership-SAUB9fG-.js} +2 -2
- package/dist/{add-me-membership-Boe-OK8i.js.map → add-me-membership-SAUB9fG-.js.map} +1 -1
- package/dist/{api-client-foundation-hg5_OosM.js → api-client-foundation-w4Oa06t4.js} +3 -3
- package/dist/{api-client-foundation-hg5_OosM.js.map → api-client-foundation-w4Oa06t4.js.map} +1 -1
- package/dist/{auth-session-6twfCXM2.js → auth-session-qk94UQqs.js} +2 -2
- package/dist/{auth-session-6twfCXM2.js.map → auth-session-qk94UQqs.js.map} +1 -1
- package/dist/{command-UIWzaQg1.js → command-Bbe9WSpd.js} +1959 -1348
- package/dist/{command-UIWzaQg1.js.map → command-Bbe9WSpd.js.map} +1 -1
- package/dist/{daemon-runtime-lease-Cath1v3w.js → daemon-runtime-lease-Cvo63MGd.js} +24 -3
- package/dist/daemon-runtime-lease-Cvo63MGd.js.map +1 -0
- package/dist/{dist--Z4JZOPH.js → dist-DYE9Q3T4.js} +2269 -2320
- package/dist/dist-DYE9Q3T4.js.map +1 -0
- package/dist/openmeld.js +274 -266
- package/dist/openmeld.js.map +1 -1
- package/dist/{runtime-transport-BVqEGkly.js → runtime-transport-CWWB2Ily.js} +1866 -1640
- package/dist/runtime-transport-CWWB2Ily.js.map +1 -0
- package/package.json +2 -2
- package/skills/openmeld-cli/SKILL.md +14 -9
- package/dist/daemon-runtime-lease-Cath1v3w.js.map +0 -1
- package/dist/dist--Z4JZOPH.js.map +0 -1
- package/dist/runtime-transport-BVqEGkly.js.map +0 -1
|
@@ -2533,93 +2533,351 @@ const postSpaceWakeStopResponseSchema = z$1.discriminatedUnion("status", [
|
|
|
2533
2533
|
});
|
|
2534
2534
|
});
|
|
2535
2535
|
//#endregion
|
|
2536
|
+
//#region ../../packages/schemas/dist/lazy-zod.js
|
|
2537
|
+
const NEVER = z$1.NEVER;
|
|
2538
|
+
const ZodIssueCode = z$1.ZodIssueCode;
|
|
2539
|
+
const DEFERRED_SCHEMA_METHODS = /* @__PURE__ */ new Set([
|
|
2540
|
+
"and",
|
|
2541
|
+
"array",
|
|
2542
|
+
"base64",
|
|
2543
|
+
"base64url",
|
|
2544
|
+
"catch",
|
|
2545
|
+
"catchall",
|
|
2546
|
+
"check",
|
|
2547
|
+
"cidrv4",
|
|
2548
|
+
"cidrv6",
|
|
2549
|
+
"clone",
|
|
2550
|
+
"cuid",
|
|
2551
|
+
"cuid2",
|
|
2552
|
+
"date",
|
|
2553
|
+
"datetime",
|
|
2554
|
+
"default",
|
|
2555
|
+
"duration",
|
|
2556
|
+
"e164",
|
|
2557
|
+
"email",
|
|
2558
|
+
"emoji",
|
|
2559
|
+
"endsWith",
|
|
2560
|
+
"exactOptional",
|
|
2561
|
+
"exclude",
|
|
2562
|
+
"extend",
|
|
2563
|
+
"extract",
|
|
2564
|
+
"gt",
|
|
2565
|
+
"gte",
|
|
2566
|
+
"guid",
|
|
2567
|
+
"includes",
|
|
2568
|
+
"input",
|
|
2569
|
+
"int",
|
|
2570
|
+
"ipv4",
|
|
2571
|
+
"ipv6",
|
|
2572
|
+
"jwt",
|
|
2573
|
+
"keyof",
|
|
2574
|
+
"ksuid",
|
|
2575
|
+
"length",
|
|
2576
|
+
"loose",
|
|
2577
|
+
"lowercase",
|
|
2578
|
+
"lt",
|
|
2579
|
+
"lte",
|
|
2580
|
+
"max",
|
|
2581
|
+
"merge",
|
|
2582
|
+
"mime",
|
|
2583
|
+
"min",
|
|
2584
|
+
"multipleOf",
|
|
2585
|
+
"nanoid",
|
|
2586
|
+
"negative",
|
|
2587
|
+
"nonempty",
|
|
2588
|
+
"nonnegative",
|
|
2589
|
+
"nonoptional",
|
|
2590
|
+
"nonpositive",
|
|
2591
|
+
"normalize",
|
|
2592
|
+
"nullable",
|
|
2593
|
+
"nullish",
|
|
2594
|
+
"omit",
|
|
2595
|
+
"optional",
|
|
2596
|
+
"or",
|
|
2597
|
+
"output",
|
|
2598
|
+
"overwrite",
|
|
2599
|
+
"partial",
|
|
2600
|
+
"passthrough",
|
|
2601
|
+
"pick",
|
|
2602
|
+
"pipe",
|
|
2603
|
+
"positive",
|
|
2604
|
+
"prefault",
|
|
2605
|
+
"readonly",
|
|
2606
|
+
"refine",
|
|
2607
|
+
"regex",
|
|
2608
|
+
"removeCatch",
|
|
2609
|
+
"removeDefault",
|
|
2610
|
+
"required",
|
|
2611
|
+
"rest",
|
|
2612
|
+
"safe",
|
|
2613
|
+
"safeExtend",
|
|
2614
|
+
"size",
|
|
2615
|
+
"slugify",
|
|
2616
|
+
"startsWith",
|
|
2617
|
+
"step",
|
|
2618
|
+
"strict",
|
|
2619
|
+
"strip",
|
|
2620
|
+
"superRefine",
|
|
2621
|
+
"time",
|
|
2622
|
+
"toLowerCase",
|
|
2623
|
+
"toUpperCase",
|
|
2624
|
+
"transform",
|
|
2625
|
+
"trim",
|
|
2626
|
+
"ulid",
|
|
2627
|
+
"unwrap",
|
|
2628
|
+
"uppercase",
|
|
2629
|
+
"url",
|
|
2630
|
+
"uuid",
|
|
2631
|
+
"uuidv4",
|
|
2632
|
+
"uuidv6",
|
|
2633
|
+
"uuidv7",
|
|
2634
|
+
"with",
|
|
2635
|
+
"xid"
|
|
2636
|
+
]);
|
|
2637
|
+
const SELF_RETURNING_METHODS = /* @__PURE__ */ new Set(["brand", "finite"]);
|
|
2638
|
+
const UNHANDLED_PROPERTY = Symbol("unhandled lazy Zod property");
|
|
2639
|
+
const globalRegistry = z$1.globalRegistry;
|
|
2640
|
+
function lazySchema(createSchema) {
|
|
2641
|
+
let schema;
|
|
2642
|
+
let proxy;
|
|
2643
|
+
const target = Object.create(null);
|
|
2644
|
+
let targetIsMaterialized = false;
|
|
2645
|
+
const resolveSchema = () => {
|
|
2646
|
+
schema ??= createSchema();
|
|
2647
|
+
return schema;
|
|
2648
|
+
};
|
|
2649
|
+
const readResolvedProperty = (property) => {
|
|
2650
|
+
const resolved = resolveSchema();
|
|
2651
|
+
const value = Reflect.get(resolved, property, resolved);
|
|
2652
|
+
return typeof value === "function" ? value.bind(resolved) : value;
|
|
2653
|
+
};
|
|
2654
|
+
const deferSchemaMethod = (property, args) => lazySchema(() => {
|
|
2655
|
+
const resolved = resolveSchema();
|
|
2656
|
+
const method = Reflect.get(resolved, property, resolved);
|
|
2657
|
+
if (typeof method !== "function") throw new TypeError(`Lazy Zod property ${String(property)} is not callable`);
|
|
2658
|
+
const result = Reflect.apply(method, resolved, args);
|
|
2659
|
+
if (!(result instanceof z$1.ZodType)) throw new TypeError(`Lazy Zod method ${String(property)} did not return a schema`);
|
|
2660
|
+
return result;
|
|
2661
|
+
});
|
|
2662
|
+
const materializeTarget = () => {
|
|
2663
|
+
const resolved = resolveSchema();
|
|
2664
|
+
if (targetIsMaterialized) return resolved;
|
|
2665
|
+
Reflect.setPrototypeOf(target, Reflect.getPrototypeOf(resolved));
|
|
2666
|
+
for (const property of Reflect.ownKeys(resolved)) {
|
|
2667
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(resolved, property);
|
|
2668
|
+
if (descriptor) Reflect.defineProperty(target, property, descriptor);
|
|
2669
|
+
}
|
|
2670
|
+
targetIsMaterialized = true;
|
|
2671
|
+
return resolved;
|
|
2672
|
+
};
|
|
2673
|
+
const readSpecialProperty = (property) => {
|
|
2674
|
+
switch (property) {
|
|
2675
|
+
case "description": {
|
|
2676
|
+
const metadata = globalRegistry.get(proxy);
|
|
2677
|
+
return metadata && typeof metadata === "object" ? Reflect.get(metadata, "description") : void 0;
|
|
2678
|
+
}
|
|
2679
|
+
case "apply": return (operation) => operation(proxy);
|
|
2680
|
+
case "register": return (registry, ...metadata) => {
|
|
2681
|
+
registry.add(proxy, ...metadata);
|
|
2682
|
+
return proxy;
|
|
2683
|
+
};
|
|
2684
|
+
case "meta": return (...metadata) => {
|
|
2685
|
+
if (metadata.length === 0) return globalRegistry.get(proxy);
|
|
2686
|
+
const registered = deferSchemaMethod(property, withoutRegistryIdentity(metadata));
|
|
2687
|
+
globalRegistry.add(registered, ...metadata);
|
|
2688
|
+
return registered;
|
|
2689
|
+
};
|
|
2690
|
+
case "describe": return (description) => {
|
|
2691
|
+
const described = deferSchemaMethod(property, [description]);
|
|
2692
|
+
globalRegistry.add(described, { description });
|
|
2693
|
+
return described;
|
|
2694
|
+
};
|
|
2695
|
+
case "toJSONSchema": return (...args) => Reflect.apply(z$1.toJSONSchema, z$1, [proxy, ...args]);
|
|
2696
|
+
default: return UNHANDLED_PROPERTY;
|
|
2697
|
+
}
|
|
2698
|
+
};
|
|
2699
|
+
proxy = new Proxy(target, {
|
|
2700
|
+
deleteProperty(_target, property) {
|
|
2701
|
+
const deletedFromTarget = Reflect.deleteProperty(target, property);
|
|
2702
|
+
const deletedFromSchema = Reflect.deleteProperty(resolveSchema(), property);
|
|
2703
|
+
return deletedFromTarget && deletedFromSchema;
|
|
2704
|
+
},
|
|
2705
|
+
get(_target, property, receiver) {
|
|
2706
|
+
const specialProperty = readSpecialProperty(property);
|
|
2707
|
+
if (specialProperty !== UNHANDLED_PROPERTY) return specialProperty;
|
|
2708
|
+
if (SELF_RETURNING_METHODS.has(property)) return () => proxy;
|
|
2709
|
+
if (DEFERRED_SCHEMA_METHODS.has(property)) return (...args) => deferSchemaMethod(property, args);
|
|
2710
|
+
return Reflect.getOwnPropertyDescriptor(target, property) ? Reflect.get(target, property, receiver) : readResolvedProperty(property);
|
|
2711
|
+
},
|
|
2712
|
+
getOwnPropertyDescriptor(_target, property) {
|
|
2713
|
+
const targetDescriptor = Reflect.getOwnPropertyDescriptor(target, property);
|
|
2714
|
+
if (targetDescriptor || targetIsMaterialized) return targetDescriptor;
|
|
2715
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(resolveSchema(), property);
|
|
2716
|
+
return descriptor ? {
|
|
2717
|
+
...descriptor,
|
|
2718
|
+
configurable: true
|
|
2719
|
+
} : void 0;
|
|
2720
|
+
},
|
|
2721
|
+
getPrototypeOf() {
|
|
2722
|
+
return targetIsMaterialized ? Reflect.getPrototypeOf(target) : Reflect.getPrototypeOf(resolveSchema());
|
|
2723
|
+
},
|
|
2724
|
+
has(_target, property) {
|
|
2725
|
+
return Reflect.has(target, property) || Reflect.has(resolveSchema(), property);
|
|
2726
|
+
},
|
|
2727
|
+
ownKeys() {
|
|
2728
|
+
if (targetIsMaterialized) return Reflect.ownKeys(target);
|
|
2729
|
+
return [.../* @__PURE__ */ new Set([...Reflect.ownKeys(target), ...Reflect.ownKeys(resolveSchema())])];
|
|
2730
|
+
},
|
|
2731
|
+
preventExtensions() {
|
|
2732
|
+
const resolved = materializeTarget();
|
|
2733
|
+
return Reflect.preventExtensions(resolved) && Reflect.preventExtensions(target);
|
|
2734
|
+
},
|
|
2735
|
+
set(_target, property, value) {
|
|
2736
|
+
const resolved = resolveSchema();
|
|
2737
|
+
if (!targetIsMaterialized) return Reflect.set(resolved, property, value);
|
|
2738
|
+
return Reflect.set(resolved, property, value) && Reflect.set(target, property, value);
|
|
2739
|
+
}
|
|
2740
|
+
});
|
|
2741
|
+
return proxy;
|
|
2742
|
+
}
|
|
2743
|
+
function withoutRegistryIdentity(metadata) {
|
|
2744
|
+
const [firstMetadata] = metadata;
|
|
2745
|
+
if (!(firstMetadata && typeof firstMetadata === "object" && "id" in firstMetadata)) return metadata;
|
|
2746
|
+
return [Object.fromEntries(Object.entries(firstMetadata).filter(([key]) => key !== "id")), ...metadata.slice(1)];
|
|
2747
|
+
}
|
|
2748
|
+
function snapshotFactoryArgument(value) {
|
|
2749
|
+
return Array.isArray(value) ? [...value] : value;
|
|
2750
|
+
}
|
|
2751
|
+
function lazyFactory(factory) {
|
|
2752
|
+
const invoke = factory;
|
|
2753
|
+
return ((...args) => {
|
|
2754
|
+
const declaredArgs = args.map(snapshotFactoryArgument);
|
|
2755
|
+
return lazySchema(() => invoke(...declaredArgs));
|
|
2756
|
+
});
|
|
2757
|
+
}
|
|
2758
|
+
const array = lazyFactory(z$1.array);
|
|
2759
|
+
const boolean = lazyFactory(z$1.boolean);
|
|
2760
|
+
const discriminatedUnion = lazyFactory(z$1.discriminatedUnion);
|
|
2761
|
+
const email = lazyFactory(z$1.email);
|
|
2762
|
+
const enumFactory = lazyFactory(z$1.enum);
|
|
2763
|
+
const int = lazyFactory(z$1.int);
|
|
2764
|
+
const literal = lazyFactory(z$1.literal);
|
|
2765
|
+
const neverFactory = lazyFactory(z$1.never);
|
|
2766
|
+
const nullFactory = lazyFactory(z$1.null);
|
|
2767
|
+
const number = lazyFactory(z$1.number);
|
|
2768
|
+
const object = lazyFactory(z$1.object);
|
|
2769
|
+
const preprocess = lazyFactory(z$1.preprocess);
|
|
2770
|
+
const record = lazyFactory(z$1.record);
|
|
2771
|
+
const strictObject = lazyFactory(z$1.strictObject);
|
|
2772
|
+
const string = lazyFactory(z$1.string);
|
|
2773
|
+
const tuple = lazyFactory(z$1.tuple);
|
|
2774
|
+
const union = lazyFactory(z$1.union);
|
|
2775
|
+
const undefinedFactory = lazyFactory(z$1.undefined);
|
|
2776
|
+
const unknown = lazyFactory(z$1.unknown);
|
|
2777
|
+
const url = lazyFactory(z$1.url);
|
|
2778
|
+
const coerce = {
|
|
2779
|
+
...z$1.coerce,
|
|
2780
|
+
bigint: lazyFactory(z$1.coerce.bigint),
|
|
2781
|
+
boolean: lazyFactory(z$1.coerce.boolean),
|
|
2782
|
+
date: lazyFactory(z$1.coerce.date),
|
|
2783
|
+
number: lazyFactory(z$1.coerce.number),
|
|
2784
|
+
string: lazyFactory(z$1.coerce.string)
|
|
2785
|
+
};
|
|
2786
|
+
const iso = {
|
|
2787
|
+
...z$1.iso,
|
|
2788
|
+
date: lazyFactory(z$1.iso.date),
|
|
2789
|
+
datetime: lazyFactory(z$1.iso.datetime),
|
|
2790
|
+
duration: lazyFactory(z$1.iso.duration),
|
|
2791
|
+
time: lazyFactory(z$1.iso.time)
|
|
2792
|
+
};
|
|
2793
|
+
//#endregion
|
|
2536
2794
|
//#region ../../packages/schemas/dist/schemas/local-components.js
|
|
2537
|
-
const nonEmptyStringSchema =
|
|
2795
|
+
const nonEmptyStringSchema = string().trim().min(1);
|
|
2538
2796
|
const nullableNonEmptyStringSchema$1 = nonEmptyStringSchema.nullable();
|
|
2539
|
-
const localComponentStatusSchema =
|
|
2797
|
+
const localComponentStatusSchema = enumFactory([
|
|
2540
2798
|
"ok",
|
|
2541
2799
|
"update_available",
|
|
2542
2800
|
"update_required"
|
|
2543
2801
|
]);
|
|
2544
|
-
const localComponentUpdatePolicySchema =
|
|
2802
|
+
const localComponentUpdatePolicySchema = enumFactory([
|
|
2545
2803
|
"ok",
|
|
2546
2804
|
"available",
|
|
2547
2805
|
"required"
|
|
2548
2806
|
]);
|
|
2549
|
-
const localComponentUpdateStatusSchema =
|
|
2807
|
+
const localComponentUpdateStatusSchema = enumFactory([
|
|
2550
2808
|
"current",
|
|
2551
2809
|
"update_available",
|
|
2552
2810
|
"update_required",
|
|
2553
2811
|
"unknown"
|
|
2554
2812
|
]);
|
|
2555
|
-
const openMeldToolsUpdateOperationPhaseSchema =
|
|
2813
|
+
const openMeldToolsUpdateOperationPhaseSchema = enumFactory([
|
|
2556
2814
|
"waiting_for_work",
|
|
2557
2815
|
"updating",
|
|
2558
2816
|
"updated",
|
|
2559
2817
|
"restored",
|
|
2560
2818
|
"needs_help"
|
|
2561
2819
|
]);
|
|
2562
|
-
const openMeldToolsUpdateRequestSourceSchema =
|
|
2820
|
+
const openMeldToolsUpdateRequestSourceSchema = enumFactory([
|
|
2563
2821
|
"automatic",
|
|
2564
2822
|
"center_agent",
|
|
2565
2823
|
"cli",
|
|
2566
2824
|
"web"
|
|
2567
2825
|
]);
|
|
2568
|
-
const openMeldToolsUpdateOperationSchema =
|
|
2826
|
+
const openMeldToolsUpdateOperationSchema = strictObject({
|
|
2569
2827
|
operationId: nonEmptyStringSchema,
|
|
2570
2828
|
phase: openMeldToolsUpdateOperationPhaseSchema,
|
|
2571
2829
|
requestSource: openMeldToolsUpdateRequestSourceSchema,
|
|
2572
|
-
requestedAt:
|
|
2830
|
+
requestedAt: iso.datetime({ offset: true }),
|
|
2573
2831
|
targetVersion: nonEmptyStringSchema,
|
|
2574
|
-
updatedAt:
|
|
2575
|
-
urgency:
|
|
2832
|
+
updatedAt: iso.datetime({ offset: true }),
|
|
2833
|
+
urgency: enumFactory(["available", "required"])
|
|
2576
2834
|
});
|
|
2577
|
-
const openMeldToolsMaintenanceProjectionSchema =
|
|
2578
|
-
automaticUpdatesEnabled:
|
|
2579
|
-
status:
|
|
2835
|
+
const openMeldToolsMaintenanceProjectionSchema = strictObject({
|
|
2836
|
+
automaticUpdatesEnabled: boolean(),
|
|
2837
|
+
status: enumFactory(["ready", "needs_help"])
|
|
2580
2838
|
});
|
|
2581
|
-
const openMeldToolsControlCapabilitySchema =
|
|
2582
|
-
requestUpdate:
|
|
2583
|
-
setAutomaticUpdates:
|
|
2839
|
+
const openMeldToolsControlCapabilitySchema = strictObject({
|
|
2840
|
+
requestUpdate: literal(true).optional(),
|
|
2841
|
+
setAutomaticUpdates: literal(true).optional()
|
|
2584
2842
|
});
|
|
2585
|
-
const openMeldToolsUpdateRequestResultSchema =
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2843
|
+
const openMeldToolsUpdateRequestResultSchema = discriminatedUnion("status", [
|
|
2844
|
+
strictObject({ status: literal("disabled") }),
|
|
2845
|
+
strictObject({ status: literal("unavailable") }),
|
|
2846
|
+
strictObject({
|
|
2589
2847
|
currentVersion: nonEmptyStringSchema,
|
|
2590
|
-
status:
|
|
2848
|
+
status: literal("current")
|
|
2591
2849
|
}),
|
|
2592
|
-
|
|
2850
|
+
strictObject({
|
|
2593
2851
|
operation: openMeldToolsUpdateOperationSchema,
|
|
2594
|
-
status:
|
|
2852
|
+
status: enumFactory(["started", "already_running"])
|
|
2595
2853
|
})
|
|
2596
2854
|
]);
|
|
2597
|
-
const openMeldToolsMaintenanceMutationResultSchema =
|
|
2598
|
-
automaticUpdatesEnabled:
|
|
2599
|
-
status:
|
|
2600
|
-
});
|
|
2601
|
-
const openMeldToolsControlRequestSchema =
|
|
2602
|
-
operation:
|
|
2603
|
-
requestSource:
|
|
2604
|
-
}),
|
|
2605
|
-
automaticUpdatesEnabled:
|
|
2606
|
-
operation:
|
|
2607
|
-
requestSource:
|
|
2855
|
+
const openMeldToolsMaintenanceMutationResultSchema = strictObject({
|
|
2856
|
+
automaticUpdatesEnabled: boolean(),
|
|
2857
|
+
status: enumFactory(["updated", "unchanged"])
|
|
2858
|
+
});
|
|
2859
|
+
const openMeldToolsControlRequestSchema = discriminatedUnion("operation", [strictObject({
|
|
2860
|
+
operation: literal("request_update"),
|
|
2861
|
+
requestSource: enumFactory(["center_agent", "web"])
|
|
2862
|
+
}), strictObject({
|
|
2863
|
+
automaticUpdatesEnabled: boolean(),
|
|
2864
|
+
operation: literal("set_automatic_updates"),
|
|
2865
|
+
requestSource: enumFactory(["center_agent", "web"])
|
|
2608
2866
|
})]);
|
|
2609
|
-
const openMeldToolsControlResultSchema =
|
|
2610
|
-
operation:
|
|
2867
|
+
const openMeldToolsControlResultSchema = discriminatedUnion("operation", [strictObject({
|
|
2868
|
+
operation: literal("request_update"),
|
|
2611
2869
|
result: openMeldToolsUpdateRequestResultSchema
|
|
2612
|
-
}),
|
|
2613
|
-
operation:
|
|
2870
|
+
}), strictObject({
|
|
2871
|
+
operation: literal("set_automatic_updates"),
|
|
2614
2872
|
result: openMeldToolsMaintenanceMutationResultSchema
|
|
2615
2873
|
})]);
|
|
2616
|
-
const openMeldToolsUpdateAttemptSchema =
|
|
2617
|
-
v:
|
|
2618
|
-
attempts:
|
|
2874
|
+
const openMeldToolsUpdateAttemptSchema = strictObject({
|
|
2875
|
+
v: literal(1),
|
|
2876
|
+
attempts: number().int().nonnegative(),
|
|
2619
2877
|
errorMessage: nullableNonEmptyStringSchema$1,
|
|
2620
2878
|
operation: openMeldToolsUpdateOperationSchema
|
|
2621
2879
|
});
|
|
2622
|
-
const localSetupActionSchema =
|
|
2880
|
+
const localSetupActionSchema = enumFactory([
|
|
2623
2881
|
"none",
|
|
2624
2882
|
"connect_service",
|
|
2625
2883
|
"reconnect_service",
|
|
@@ -2628,37 +2886,37 @@ const localSetupActionSchema = z$1.enum([
|
|
|
2628
2886
|
"update_skills",
|
|
2629
2887
|
"update_cli"
|
|
2630
2888
|
]);
|
|
2631
|
-
const localSetupEntrypointSchema =
|
|
2632
|
-
const localComponentsManifestSchema =
|
|
2633
|
-
schemaVersion:
|
|
2889
|
+
const localSetupEntrypointSchema = literal("setup");
|
|
2890
|
+
const localComponentsManifestSchema = strictObject({
|
|
2891
|
+
schemaVersion: literal(1),
|
|
2634
2892
|
openMeldReleaseVersion: nonEmptyStringSchema,
|
|
2635
|
-
cli:
|
|
2893
|
+
cli: strictObject({
|
|
2636
2894
|
packageVersion: nonEmptyStringSchema,
|
|
2637
2895
|
commandContractVersion: nonEmptyStringSchema
|
|
2638
2896
|
}),
|
|
2639
|
-
service:
|
|
2897
|
+
service: strictObject({
|
|
2640
2898
|
bundleHash: nullableNonEmptyStringSchema$1,
|
|
2641
2899
|
bundleVersion: nonEmptyStringSchema,
|
|
2642
2900
|
runtimeContractEpoch: nonEmptyStringSchema,
|
|
2643
2901
|
serviceContractVersion: nonEmptyStringSchema
|
|
2644
2902
|
}),
|
|
2645
|
-
skills:
|
|
2903
|
+
skills: strictObject({
|
|
2646
2904
|
bundleHash: nullableNonEmptyStringSchema$1,
|
|
2647
2905
|
skillContractVersion: nonEmptyStringSchema,
|
|
2648
|
-
skillIds:
|
|
2906
|
+
skillIds: array(nonEmptyStringSchema)
|
|
2649
2907
|
})
|
|
2650
2908
|
});
|
|
2651
|
-
|
|
2652
|
-
schemaVersion:
|
|
2653
|
-
updatedAt:
|
|
2654
|
-
components:
|
|
2655
|
-
cli:
|
|
2909
|
+
strictObject({
|
|
2910
|
+
schemaVersion: literal(1),
|
|
2911
|
+
updatedAt: iso.datetime({ offset: true }),
|
|
2912
|
+
components: strictObject({
|
|
2913
|
+
cli: strictObject({
|
|
2656
2914
|
packageVersion: nonEmptyStringSchema,
|
|
2657
2915
|
commandContractVersion: nonEmptyStringSchema,
|
|
2658
2916
|
updatePolicy: localComponentUpdatePolicySchema,
|
|
2659
2917
|
reason: nonEmptyStringSchema
|
|
2660
2918
|
}),
|
|
2661
|
-
service:
|
|
2919
|
+
service: strictObject({
|
|
2662
2920
|
bundleHash: nullableNonEmptyStringSchema$1,
|
|
2663
2921
|
bundleVersion: nonEmptyStringSchema,
|
|
2664
2922
|
runtimeContractEpoch: nonEmptyStringSchema,
|
|
@@ -2666,27 +2924,27 @@ z$1.strictObject({
|
|
|
2666
2924
|
updatePolicy: localComponentUpdatePolicySchema,
|
|
2667
2925
|
reason: nonEmptyStringSchema
|
|
2668
2926
|
}),
|
|
2669
|
-
skills:
|
|
2927
|
+
skills: strictObject({
|
|
2670
2928
|
bundleHash: nullableNonEmptyStringSchema$1,
|
|
2671
2929
|
skillContractVersion: nonEmptyStringSchema,
|
|
2672
|
-
skillIds:
|
|
2930
|
+
skillIds: array(nonEmptyStringSchema),
|
|
2673
2931
|
updatePolicy: localComponentUpdatePolicySchema,
|
|
2674
2932
|
reason: nonEmptyStringSchema
|
|
2675
2933
|
})
|
|
2676
2934
|
})
|
|
2677
2935
|
});
|
|
2678
|
-
const installedLocalComponentsSnapshotSchema =
|
|
2679
|
-
schemaVersion:
|
|
2680
|
-
installedAt:
|
|
2681
|
-
source:
|
|
2936
|
+
const installedLocalComponentsSnapshotSchema = strictObject({
|
|
2937
|
+
schemaVersion: literal(1),
|
|
2938
|
+
installedAt: iso.datetime({ offset: true }),
|
|
2939
|
+
source: enumFactory([
|
|
2682
2940
|
"setup",
|
|
2683
2941
|
"repair",
|
|
2684
2942
|
"manual"
|
|
2685
2943
|
]),
|
|
2686
2944
|
manifest: localComponentsManifestSchema
|
|
2687
2945
|
});
|
|
2688
|
-
const localComponentProjectionSchema =
|
|
2689
|
-
reasonCodes:
|
|
2946
|
+
const localComponentProjectionSchema = strictObject({
|
|
2947
|
+
reasonCodes: array(nonEmptyStringSchema),
|
|
2690
2948
|
status: localComponentStatusSchema
|
|
2691
2949
|
});
|
|
2692
2950
|
const localCliComponentProjectionSchema = localComponentProjectionSchema.extend({
|
|
@@ -2707,11 +2965,11 @@ const localSkillsComponentProjectionSchema = localComponentProjectionSchema.exte
|
|
|
2707
2965
|
expectedBundleHash: nullableNonEmptyStringSchema$1,
|
|
2708
2966
|
installedBundleHash: nullableNonEmptyStringSchema$1,
|
|
2709
2967
|
skillContractVersion: nonEmptyStringSchema,
|
|
2710
|
-
targetCount:
|
|
2968
|
+
targetCount: number().int().nonnegative()
|
|
2711
2969
|
});
|
|
2712
|
-
const localComponentsStatusSchema =
|
|
2713
|
-
schemaVersion:
|
|
2714
|
-
generatedAt:
|
|
2970
|
+
const localComponentsStatusSchema = strictObject({
|
|
2971
|
+
schemaVersion: literal(1),
|
|
2972
|
+
generatedAt: iso.datetime({ offset: true }),
|
|
2715
2973
|
entrypoint: localSetupEntrypointSchema,
|
|
2716
2974
|
summaryLabel: nonEmptyStringSchema,
|
|
2717
2975
|
summaryDescription: nonEmptyStringSchema,
|
|
@@ -2724,39 +2982,39 @@ const localComponentsStatusSchema = z$1.strictObject({
|
|
|
2724
2982
|
service: localServiceComponentProjectionSchema,
|
|
2725
2983
|
skills: localSkillsComponentProjectionSchema
|
|
2726
2984
|
});
|
|
2727
|
-
const localServiceComponentUpdateProjectionSchema =
|
|
2985
|
+
const localServiceComponentUpdateProjectionSchema = strictObject({
|
|
2728
2986
|
installedVersion: nullableNonEmptyStringSchema$1,
|
|
2729
2987
|
latestVersion: nullableNonEmptyStringSchema$1,
|
|
2730
|
-
reasonCodes:
|
|
2988
|
+
reasonCodes: array(nonEmptyStringSchema),
|
|
2731
2989
|
requiredVersion: nullableNonEmptyStringSchema$1,
|
|
2732
2990
|
status: localComponentUpdateStatusSchema,
|
|
2733
2991
|
updatePolicy: localComponentUpdatePolicySchema,
|
|
2734
|
-
wakeBlocked:
|
|
2992
|
+
wakeBlocked: boolean()
|
|
2735
2993
|
});
|
|
2736
|
-
const localCliComponentUpdateProjectionSchema =
|
|
2994
|
+
const localCliComponentUpdateProjectionSchema = strictObject({
|
|
2737
2995
|
commandContractVersion: nullableNonEmptyStringSchema$1,
|
|
2738
2996
|
installedPackageVersion: nullableNonEmptyStringSchema$1,
|
|
2739
2997
|
latestPackageVersion: nullableNonEmptyStringSchema$1,
|
|
2740
|
-
reasonCodes:
|
|
2998
|
+
reasonCodes: array(nonEmptyStringSchema),
|
|
2741
2999
|
requiredCommandContractVersion: nullableNonEmptyStringSchema$1,
|
|
2742
3000
|
status: localComponentUpdateStatusSchema,
|
|
2743
3001
|
updatePolicy: localComponentUpdatePolicySchema,
|
|
2744
|
-
wakeBlocked:
|
|
3002
|
+
wakeBlocked: boolean()
|
|
2745
3003
|
});
|
|
2746
|
-
const localSkillsComponentUpdateProjectionSchema =
|
|
3004
|
+
const localSkillsComponentUpdateProjectionSchema = strictObject({
|
|
2747
3005
|
expectedBundleHash: nullableNonEmptyStringSchema$1,
|
|
2748
|
-
expectedTargetCount:
|
|
3006
|
+
expectedTargetCount: number().int().nonnegative(),
|
|
2749
3007
|
installedBundleHash: nullableNonEmptyStringSchema$1,
|
|
2750
|
-
reasonCodes:
|
|
3008
|
+
reasonCodes: array(nonEmptyStringSchema),
|
|
2751
3009
|
skillContractVersion: nullableNonEmptyStringSchema$1,
|
|
2752
3010
|
status: localComponentUpdateStatusSchema,
|
|
2753
|
-
targetCount:
|
|
3011
|
+
targetCount: number().int().nonnegative().nullable(),
|
|
2754
3012
|
updatePolicy: localComponentUpdatePolicySchema,
|
|
2755
|
-
wakeBlocked:
|
|
3013
|
+
wakeBlocked: boolean()
|
|
2756
3014
|
});
|
|
2757
|
-
const localComponentUpdateProjectionSchema =
|
|
2758
|
-
schemaVersion:
|
|
2759
|
-
generatedAt:
|
|
3015
|
+
const localComponentUpdateProjectionSchema = strictObject({
|
|
3016
|
+
schemaVersion: literal(1),
|
|
3017
|
+
generatedAt: iso.datetime({ offset: true }),
|
|
2760
3018
|
setupAction: localSetupActionSchema,
|
|
2761
3019
|
setupActionLabel: nonEmptyStringSchema,
|
|
2762
3020
|
setupActionDescription: nonEmptyStringSchema,
|
|
@@ -2813,94 +3071,94 @@ function formatLocalSetupActionDescription(action) {
|
|
|
2813
3071
|
//#endregion
|
|
2814
3072
|
//#region ../../packages/schemas/dist/schemas/protocol/agent-interaction.js
|
|
2815
3073
|
const AGENT_INTERACTION_DEFAULT_TIMEOUT_MS = 480 * 60 * 1e3;
|
|
2816
|
-
const agentInteractionKindSchema =
|
|
3074
|
+
const agentInteractionKindSchema = enumFactory([
|
|
2817
3075
|
"permission",
|
|
2818
3076
|
"question",
|
|
2819
3077
|
"plan_review"
|
|
2820
3078
|
]);
|
|
2821
|
-
const agentInteractionPermissionOptionIntentSchema =
|
|
3079
|
+
const agentInteractionPermissionOptionIntentSchema = enumFactory([
|
|
2822
3080
|
"allow_once",
|
|
2823
3081
|
"allow_session",
|
|
2824
3082
|
"allow_always",
|
|
2825
3083
|
"deny"
|
|
2826
3084
|
]);
|
|
2827
|
-
const agentInteractionPermissionOptionSchema =
|
|
2828
|
-
optionId:
|
|
2829
|
-
label:
|
|
3085
|
+
const agentInteractionPermissionOptionSchema = strictObject({
|
|
3086
|
+
optionId: string().trim().min(1).max(256),
|
|
3087
|
+
label: string().trim().min(1).max(120),
|
|
2830
3088
|
intent: agentInteractionPermissionOptionIntentSchema
|
|
2831
3089
|
});
|
|
2832
|
-
const agentInteractionPermissionSubjectSchema =
|
|
2833
|
-
type:
|
|
3090
|
+
const agentInteractionPermissionSubjectSchema = strictObject({
|
|
3091
|
+
type: enumFactory([
|
|
2834
3092
|
"command",
|
|
2835
3093
|
"file_change",
|
|
2836
3094
|
"tool",
|
|
2837
3095
|
"additional_permissions",
|
|
2838
3096
|
"other"
|
|
2839
3097
|
]),
|
|
2840
|
-
command:
|
|
2841
|
-
cwd:
|
|
2842
|
-
resource:
|
|
2843
|
-
});
|
|
2844
|
-
const agentInteractionQuestionOptionSchema =
|
|
2845
|
-
optionId:
|
|
2846
|
-
label:
|
|
2847
|
-
description:
|
|
2848
|
-
});
|
|
2849
|
-
const agentInteractionQuestionSchema =
|
|
2850
|
-
questionId:
|
|
2851
|
-
header:
|
|
2852
|
-
prompt:
|
|
2853
|
-
options:
|
|
2854
|
-
multiple:
|
|
2855
|
-
allowOther:
|
|
2856
|
-
secret:
|
|
3098
|
+
command: string().trim().min(1).max(16e3).nullable().optional(),
|
|
3099
|
+
cwd: string().trim().min(1).max(4096).nullable().optional(),
|
|
3100
|
+
resource: string().trim().min(1).max(4096).nullable().optional()
|
|
3101
|
+
});
|
|
3102
|
+
const agentInteractionQuestionOptionSchema = strictObject({
|
|
3103
|
+
optionId: string().trim().min(1).max(256),
|
|
3104
|
+
label: string().trim().min(1).max(240),
|
|
3105
|
+
description: string().trim().min(1).max(1e3).nullable().optional()
|
|
3106
|
+
});
|
|
3107
|
+
const agentInteractionQuestionSchema = strictObject({
|
|
3108
|
+
questionId: string().trim().min(1).max(256),
|
|
3109
|
+
header: string().trim().min(1).max(120).nullable().optional(),
|
|
3110
|
+
prompt: string().trim().min(1).max(4e3),
|
|
3111
|
+
options: array(agentInteractionQuestionOptionSchema).max(20),
|
|
3112
|
+
multiple: boolean(),
|
|
3113
|
+
allowOther: boolean(),
|
|
3114
|
+
secret: boolean().optional()
|
|
2857
3115
|
});
|
|
2858
3116
|
const agentInteractionBaseRequestShape = {
|
|
2859
|
-
v:
|
|
2860
|
-
interactionId:
|
|
2861
|
-
requestedAtMs:
|
|
2862
|
-
expiresAtMs:
|
|
2863
|
-
title:
|
|
2864
|
-
description:
|
|
3117
|
+
v: literal(1),
|
|
3118
|
+
interactionId: string().trim().min(1).max(256),
|
|
3119
|
+
requestedAtMs: number().int().nonnegative(),
|
|
3120
|
+
expiresAtMs: number().int().nonnegative(),
|
|
3121
|
+
title: string().trim().min(1).max(240),
|
|
3122
|
+
description: string().trim().min(1).max(4e3).nullable().optional()
|
|
2865
3123
|
};
|
|
2866
|
-
const agentInteractionRequestSchema =
|
|
2867
|
-
|
|
3124
|
+
const agentInteractionRequestSchema = discriminatedUnion("kind", [
|
|
3125
|
+
strictObject({
|
|
2868
3126
|
...agentInteractionBaseRequestShape,
|
|
2869
|
-
kind:
|
|
2870
|
-
options:
|
|
3127
|
+
kind: literal("permission"),
|
|
3128
|
+
options: array(agentInteractionPermissionOptionSchema).min(1).max(8),
|
|
2871
3129
|
subject: agentInteractionPermissionSubjectSchema
|
|
2872
3130
|
}),
|
|
2873
|
-
|
|
3131
|
+
strictObject({
|
|
2874
3132
|
...agentInteractionBaseRequestShape,
|
|
2875
|
-
kind:
|
|
2876
|
-
questions:
|
|
3133
|
+
kind: literal("question"),
|
|
3134
|
+
questions: array(agentInteractionQuestionSchema).min(1).max(3)
|
|
2877
3135
|
}),
|
|
2878
|
-
|
|
3136
|
+
strictObject({
|
|
2879
3137
|
...agentInteractionBaseRequestShape,
|
|
2880
|
-
kind:
|
|
2881
|
-
plan:
|
|
2882
|
-
allowFeedback:
|
|
3138
|
+
kind: literal("plan_review"),
|
|
3139
|
+
plan: string().trim().min(1).max(64e3),
|
|
3140
|
+
allowFeedback: boolean()
|
|
2883
3141
|
})
|
|
2884
3142
|
]);
|
|
2885
|
-
const agentInteractionQuestionAnswerSchema =
|
|
2886
|
-
questionId:
|
|
2887
|
-
values:
|
|
2888
|
-
});
|
|
2889
|
-
const agentInteractionResponseSchema =
|
|
2890
|
-
|
|
2891
|
-
kind:
|
|
2892
|
-
optionId:
|
|
3143
|
+
const agentInteractionQuestionAnswerSchema = strictObject({
|
|
3144
|
+
questionId: string().trim().min(1).max(256),
|
|
3145
|
+
values: array(string().trim().min(1).max(4e3)).min(1).max(20)
|
|
3146
|
+
});
|
|
3147
|
+
const agentInteractionResponseSchema = discriminatedUnion("kind", [
|
|
3148
|
+
strictObject({
|
|
3149
|
+
kind: literal("permission"),
|
|
3150
|
+
optionId: string().trim().min(1).max(256)
|
|
2893
3151
|
}),
|
|
2894
|
-
|
|
2895
|
-
kind:
|
|
2896
|
-
answers:
|
|
3152
|
+
strictObject({
|
|
3153
|
+
kind: literal("question"),
|
|
3154
|
+
answers: array(agentInteractionQuestionAnswerSchema).min(1).max(3)
|
|
2897
3155
|
}),
|
|
2898
|
-
|
|
2899
|
-
kind:
|
|
2900
|
-
action:
|
|
2901
|
-
feedback:
|
|
3156
|
+
strictObject({
|
|
3157
|
+
kind: literal("plan_review"),
|
|
3158
|
+
action: enumFactory(["approve", "request_changes"]),
|
|
3159
|
+
feedback: string().trim().min(1).max(8e3).nullable().optional()
|
|
2902
3160
|
}),
|
|
2903
|
-
|
|
3161
|
+
strictObject({ kind: literal("cancel") })
|
|
2904
3162
|
]);
|
|
2905
3163
|
const resolveQuestionResponseIssue = (input) => {
|
|
2906
3164
|
const answerByQuestionId = new Map(input.response.answers.map((answer) => [answer.questionId, answer]));
|
|
@@ -2953,7 +3211,7 @@ const resolveAgentInteractionResolutionIssue = (input) => {
|
|
|
2953
3211
|
});
|
|
2954
3212
|
return null;
|
|
2955
3213
|
};
|
|
2956
|
-
const agentInteractionResolutionSchema =
|
|
3214
|
+
const agentInteractionResolutionSchema = strictObject({
|
|
2957
3215
|
request: agentInteractionRequestSchema,
|
|
2958
3216
|
response: agentInteractionResponseSchema
|
|
2959
3217
|
}).superRefine((value, context) => {
|
|
@@ -2965,12 +3223,12 @@ const agentInteractionResolutionSchema = z$1.strictObject({
|
|
|
2965
3223
|
path: issue.path
|
|
2966
3224
|
});
|
|
2967
3225
|
});
|
|
2968
|
-
const agentInteractionPendingSummarySchema =
|
|
2969
|
-
interactionId:
|
|
3226
|
+
const agentInteractionPendingSummarySchema = strictObject({
|
|
3227
|
+
interactionId: string().trim().min(1).max(256),
|
|
2970
3228
|
kind: agentInteractionKindSchema,
|
|
2971
|
-
requestedAtMs:
|
|
2972
|
-
expiresAtMs:
|
|
2973
|
-
canRespond:
|
|
3229
|
+
requestedAtMs: number().int().nonnegative(),
|
|
3230
|
+
expiresAtMs: number().int().nonnegative(),
|
|
3231
|
+
canRespond: boolean(),
|
|
2974
3232
|
request: agentInteractionRequestSchema.nullable()
|
|
2975
3233
|
});
|
|
2976
3234
|
//#endregion
|
|
@@ -3782,7 +4040,7 @@ const conversationExecutionStateSchema = z$1.strictObject({
|
|
|
3782
4040
|
//#endregion
|
|
3783
4041
|
//#region ../../packages/schemas/dist/schemas/daemon/provider-runtime-context.js
|
|
3784
4042
|
const providerDispatchRuntimeContextSchema = z$1.strictObject({ providerRuntimeWorkingDirectory: z$1.string().trim().min(1).max(MAX_PROFILE_WORKING_DIRECTORY_LENGTH).refine((value) => !value.includes("\0"), { message: "providerRuntimeWorkingDirectory must not contain NUL bytes" }) });
|
|
3785
|
-
|
|
4043
|
+
enumFactory([
|
|
3786
4044
|
"status",
|
|
3787
4045
|
"health",
|
|
3788
4046
|
"history",
|
|
@@ -3796,82 +4054,82 @@ z$1.enum([
|
|
|
3796
4054
|
"service_update_readiness",
|
|
3797
4055
|
"shutdown"
|
|
3798
4056
|
]);
|
|
3799
|
-
const openMeldDaemonHealthStateSchema =
|
|
4057
|
+
const openMeldDaemonHealthStateSchema = enumFactory([
|
|
3800
4058
|
"ok",
|
|
3801
4059
|
"degraded",
|
|
3802
4060
|
"down"
|
|
3803
4061
|
]);
|
|
3804
|
-
const openMeldDaemonRuntimeHealthStateSchema =
|
|
4062
|
+
const openMeldDaemonRuntimeHealthStateSchema = enumFactory([
|
|
3805
4063
|
"healthy",
|
|
3806
4064
|
"idle",
|
|
3807
4065
|
"suspect",
|
|
3808
4066
|
"down"
|
|
3809
4067
|
]);
|
|
3810
|
-
const openMeldDaemonControlTargetSelectorSchema =
|
|
3811
|
-
by:
|
|
3812
|
-
dispatchId:
|
|
3813
|
-
}),
|
|
3814
|
-
by:
|
|
3815
|
-
taskId:
|
|
4068
|
+
const openMeldDaemonControlTargetSelectorSchema = discriminatedUnion("by", [strictObject({
|
|
4069
|
+
by: literal("dispatch"),
|
|
4070
|
+
dispatchId: string().min(1)
|
|
4071
|
+
}), strictObject({
|
|
4072
|
+
by: literal("task"),
|
|
4073
|
+
taskId: string().min(1)
|
|
3816
4074
|
})]);
|
|
3817
|
-
const openMeldDaemonInterruptRequestPayloadSchema =
|
|
3818
|
-
runtimeCoordinatorExecutionId:
|
|
4075
|
+
const openMeldDaemonInterruptRequestPayloadSchema = strictObject({
|
|
4076
|
+
runtimeCoordinatorExecutionId: string().min(1).optional(),
|
|
3819
4077
|
target: openMeldDaemonControlTargetSelectorSchema,
|
|
3820
|
-
mode:
|
|
3821
|
-
reason:
|
|
4078
|
+
mode: enumFactory(["graceful", "force"]).optional(),
|
|
4079
|
+
reason: string().min(1).optional()
|
|
3822
4080
|
});
|
|
3823
|
-
const openMeldDaemonCancelRequestPayloadSchema =
|
|
3824
|
-
runtimeCoordinatorExecutionId:
|
|
4081
|
+
const openMeldDaemonCancelRequestPayloadSchema = strictObject({
|
|
4082
|
+
runtimeCoordinatorExecutionId: string().min(1).optional(),
|
|
3825
4083
|
target: openMeldDaemonControlTargetSelectorSchema,
|
|
3826
|
-
reason:
|
|
4084
|
+
reason: string().min(1).optional()
|
|
3827
4085
|
});
|
|
3828
|
-
const openMeldDaemonShutdownRequestPayloadSchema =
|
|
3829
|
-
mode:
|
|
3830
|
-
gracePeriodMs:
|
|
4086
|
+
const openMeldDaemonShutdownRequestPayloadSchema = strictObject({
|
|
4087
|
+
mode: enumFactory(["graceful", "force"]).default("graceful"),
|
|
4088
|
+
gracePeriodMs: number().int().nonnegative().default(5e3)
|
|
3831
4089
|
});
|
|
3832
|
-
const openMeldDaemonServiceUpdateReadinessPayloadSchema =
|
|
3833
|
-
acceptedWakeCount:
|
|
3834
|
-
safeToSwitch:
|
|
3835
|
-
unacknowledgedResultCount:
|
|
4090
|
+
const openMeldDaemonServiceUpdateReadinessPayloadSchema = strictObject({
|
|
4091
|
+
acceptedWakeCount: number().int().nonnegative(),
|
|
4092
|
+
safeToSwitch: boolean(),
|
|
4093
|
+
unacknowledgedResultCount: number().int().nonnegative()
|
|
3836
4094
|
});
|
|
3837
|
-
const openMeldDaemonConversationExecutionControllerLaunchStatusSchema =
|
|
4095
|
+
const openMeldDaemonConversationExecutionControllerLaunchStatusSchema = enumFactory([
|
|
3838
4096
|
"missing",
|
|
3839
4097
|
"disabled",
|
|
3840
4098
|
"repair_required",
|
|
3841
4099
|
"ready"
|
|
3842
4100
|
]);
|
|
3843
|
-
const nullableAgentControllerRefSchema =
|
|
3844
|
-
const nullableNonEmptyStringSchema =
|
|
3845
|
-
const openMeldDaemonConversationExecutionStatusRequestPayloadSchema =
|
|
4101
|
+
const nullableAgentControllerRefSchema = union([string().min(1), nullFactory()]);
|
|
4102
|
+
const nullableNonEmptyStringSchema = union([string().min(1), nullFactory()]);
|
|
4103
|
+
const openMeldDaemonConversationExecutionStatusRequestPayloadSchema = strictObject({
|
|
3846
4104
|
boundAgentControllerRef: nullableAgentControllerRefSchema,
|
|
3847
4105
|
agentControllerConversationId: nullableNonEmptyStringSchema,
|
|
3848
|
-
agentControllerRef:
|
|
4106
|
+
agentControllerRef: string().min(1),
|
|
3849
4107
|
spaceId: nonEmptyTrimmedStringFromUnknown,
|
|
3850
4108
|
targetProfileId: agentProfileIdSchema,
|
|
3851
4109
|
transportMode: runtimeTransportModeSchema,
|
|
3852
|
-
validate:
|
|
3853
|
-
});
|
|
3854
|
-
const openMeldDaemonSyncRouteCatalogRequestPayloadSchema =
|
|
3855
|
-
const openMeldDaemonRequestAgentActivitySyncRequestPayloadSchema =
|
|
3856
|
-
const openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema =
|
|
3857
|
-
agentId:
|
|
3858
|
-
enabled:
|
|
3859
|
-
});
|
|
3860
|
-
const localAgentInstallationOptionSchema =
|
|
3861
|
-
installationId:
|
|
3862
|
-
name:
|
|
3863
|
-
details:
|
|
3864
|
-
selected:
|
|
3865
|
-
});
|
|
3866
|
-
const openMeldDaemonManageLocalAgentInstallationRequestPayloadSchema =
|
|
3867
|
-
agentId:
|
|
3868
|
-
operation:
|
|
3869
|
-
}),
|
|
3870
|
-
agentId:
|
|
3871
|
-
installationId:
|
|
3872
|
-
operation:
|
|
4110
|
+
validate: boolean()
|
|
4111
|
+
});
|
|
4112
|
+
const openMeldDaemonSyncRouteCatalogRequestPayloadSchema = strictObject({ reason: string().min(1) });
|
|
4113
|
+
const openMeldDaemonRequestAgentActivitySyncRequestPayloadSchema = strictObject({ reason: string().trim().min(1).max(128) });
|
|
4114
|
+
const openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema = strictObject({
|
|
4115
|
+
agentId: string().trim().min(1).max(256),
|
|
4116
|
+
enabled: boolean()
|
|
4117
|
+
});
|
|
4118
|
+
const localAgentInstallationOptionSchema = strictObject({
|
|
4119
|
+
installationId: string().trim().min(1).max(256),
|
|
4120
|
+
name: string().trim().min(1).max(256),
|
|
4121
|
+
details: string().trim().min(1).max(256),
|
|
4122
|
+
selected: boolean()
|
|
4123
|
+
});
|
|
4124
|
+
const openMeldDaemonManageLocalAgentInstallationRequestPayloadSchema = discriminatedUnion("operation", [strictObject({
|
|
4125
|
+
agentId: string().trim().min(1).max(256),
|
|
4126
|
+
operation: literal("list")
|
|
4127
|
+
}), strictObject({
|
|
4128
|
+
agentId: string().trim().min(1).max(256),
|
|
4129
|
+
installationId: string().trim().min(1).max(256),
|
|
4130
|
+
operation: literal("select")
|
|
3873
4131
|
})]);
|
|
3874
|
-
const openMeldDaemonSetProfileWorkspaceRequestPayloadSchema =
|
|
4132
|
+
const openMeldDaemonSetProfileWorkspaceRequestPayloadSchema = strictObject({
|
|
3875
4133
|
targetProfileId: agentProfileIdSchema,
|
|
3876
4134
|
workspaceMode: profileWorkspaceModeSchema,
|
|
3877
4135
|
workspacePath: profileWorkingDirectorySchema.optional()
|
|
@@ -3887,334 +4145,321 @@ const openMeldDaemonSetProfileWorkspaceRequestPayloadSchema = z$1.strictObject({
|
|
|
3887
4145
|
path: ["workspacePath"]
|
|
3888
4146
|
});
|
|
3889
4147
|
});
|
|
3890
|
-
const
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
openMeldDaemonConversationExecutionRuntimeWorkspaceReadySchema,
|
|
3925
|
-
openMeldDaemonConversationExecutionRuntimeWorkspaceMissingSchema,
|
|
3926
|
-
openMeldDaemonConversationExecutionRuntimeWorkspaceInvalidSchema
|
|
4148
|
+
const openMeldDaemonConversationExecutionRuntimeWorkspaceSchema = discriminatedUnion("status", [
|
|
4149
|
+
strictObject({
|
|
4150
|
+
configPath: string().min(1),
|
|
4151
|
+
configuredWorkspacePath: string().min(1),
|
|
4152
|
+
fingerprint: string().min(1),
|
|
4153
|
+
path: string().min(1),
|
|
4154
|
+
reasonCode: nullFactory(),
|
|
4155
|
+
reasonText: nullFactory(),
|
|
4156
|
+
runtimeContext: providerDispatchRuntimeContextSchema,
|
|
4157
|
+
status: literal("ready"),
|
|
4158
|
+
workspaceMode: profileWorkspaceModeSchema
|
|
4159
|
+
}),
|
|
4160
|
+
strictObject({
|
|
4161
|
+
configPath: string().min(1),
|
|
4162
|
+
configuredWorkspacePath: nullFactory(),
|
|
4163
|
+
fingerprint: nullFactory(),
|
|
4164
|
+
path: nullFactory(),
|
|
4165
|
+
reasonCode: literal("workspace.missing"),
|
|
4166
|
+
reasonText: string().min(1),
|
|
4167
|
+
runtimeContext: nullFactory(),
|
|
4168
|
+
status: literal("missing"),
|
|
4169
|
+
workspaceMode: nullFactory()
|
|
4170
|
+
}),
|
|
4171
|
+
strictObject({
|
|
4172
|
+
configPath: string().min(1),
|
|
4173
|
+
configuredWorkspacePath: union([string().min(1), nullFactory()]),
|
|
4174
|
+
fingerprint: nullFactory(),
|
|
4175
|
+
path: nullFactory(),
|
|
4176
|
+
reasonCode: literal("workspace.invalid"),
|
|
4177
|
+
reasonText: string().min(1),
|
|
4178
|
+
runtimeContext: nullFactory(),
|
|
4179
|
+
status: literal("invalid"),
|
|
4180
|
+
workspaceMode: union([profileWorkspaceModeSchema, nullFactory()])
|
|
4181
|
+
})
|
|
3927
4182
|
]);
|
|
3928
|
-
const openMeldDaemonConversationExecutionLocalRuntimeContextStatusSchema =
|
|
4183
|
+
const openMeldDaemonConversationExecutionLocalRuntimeContextStatusSchema = enumFactory([
|
|
3929
4184
|
"missing",
|
|
3930
4185
|
"mismatch",
|
|
3931
4186
|
"ready"
|
|
3932
4187
|
]);
|
|
3933
|
-
const openMeldDaemonProviderConversationProofStatusSchema =
|
|
4188
|
+
const openMeldDaemonProviderConversationProofStatusSchema = enumFactory([
|
|
3934
4189
|
"failed",
|
|
3935
4190
|
"not_applicable",
|
|
3936
4191
|
"not_run",
|
|
3937
4192
|
"passed"
|
|
3938
4193
|
]);
|
|
3939
|
-
const openMeldDaemonProviderConversationProofProviderSchema =
|
|
4194
|
+
const openMeldDaemonProviderConversationProofProviderSchema = enumFactory([
|
|
3940
4195
|
"codex",
|
|
3941
4196
|
"claude-code",
|
|
3942
4197
|
"openclaw"
|
|
3943
4198
|
]);
|
|
3944
|
-
const openMeldDaemonProviderConversationProofMethodSchema =
|
|
3945
|
-
const openMeldDaemonProviderConversationProofSchema =
|
|
4199
|
+
const openMeldDaemonProviderConversationProofMethodSchema = enumFactory(["codex_app_server_thread_resume"]);
|
|
4200
|
+
const openMeldDaemonProviderConversationProofSchema = strictObject({
|
|
3946
4201
|
agentControllerConversationId: nullableNonEmptyStringSchema,
|
|
3947
|
-
checkedAt:
|
|
4202
|
+
checkedAt: union([iso.datetime({ offset: true }), nullFactory()]),
|
|
3948
4203
|
errorCode: nullableNonEmptyStringSchema,
|
|
3949
4204
|
errorMessage: nullableNonEmptyStringSchema,
|
|
3950
4205
|
errorType: nullableNonEmptyStringSchema,
|
|
3951
|
-
expiresAt:
|
|
3952
|
-
intrusive:
|
|
3953
|
-
method:
|
|
3954
|
-
provider:
|
|
4206
|
+
expiresAt: union([iso.datetime({ offset: true }), nullFactory()]),
|
|
4207
|
+
intrusive: literal(false),
|
|
4208
|
+
method: union([openMeldDaemonProviderConversationProofMethodSchema, nullFactory()]),
|
|
4209
|
+
provider: union([openMeldDaemonProviderConversationProofProviderSchema, nullFactory()]),
|
|
3955
4210
|
status: openMeldDaemonProviderConversationProofStatusSchema,
|
|
3956
|
-
transportMode:
|
|
4211
|
+
transportMode: union([runtimeTransportModeSchema, nullFactory()])
|
|
3957
4212
|
});
|
|
3958
|
-
const openMeldDaemonConversationExecutionStatusPayloadSchema =
|
|
3959
|
-
agentContextLookupKey:
|
|
4213
|
+
const openMeldDaemonConversationExecutionStatusPayloadSchema = strictObject({
|
|
4214
|
+
agentContextLookupKey: string().min(1),
|
|
3960
4215
|
controllerLaunchStatus: openMeldDaemonConversationExecutionControllerLaunchStatusSchema,
|
|
3961
4216
|
executionState: conversationExecutionStateSchema.nullable(),
|
|
3962
|
-
localRuntimeContext:
|
|
3963
|
-
agentContextLookupKey:
|
|
4217
|
+
localRuntimeContext: strictObject({
|
|
4218
|
+
agentContextLookupKey: string().min(1),
|
|
3964
4219
|
runtimeWorkspaceFingerprint: nullableNonEmptyStringSchema,
|
|
3965
4220
|
status: openMeldDaemonConversationExecutionLocalRuntimeContextStatusSchema
|
|
3966
4221
|
}),
|
|
3967
4222
|
providerConversationProof: openMeldDaemonProviderConversationProofSchema,
|
|
3968
4223
|
runtimeWorkspace: openMeldDaemonConversationExecutionRuntimeWorkspaceSchema
|
|
3969
4224
|
});
|
|
3970
|
-
const openMeldDaemonSyncRouteCatalogStatusSchema =
|
|
4225
|
+
const openMeldDaemonSyncRouteCatalogStatusSchema = enumFactory([
|
|
3971
4226
|
"changed",
|
|
3972
4227
|
"registered",
|
|
3973
4228
|
"unchanged",
|
|
3974
4229
|
"failed",
|
|
3975
4230
|
"deferred"
|
|
3976
4231
|
]);
|
|
3977
|
-
const
|
|
3978
|
-
"projection.missing",
|
|
3979
|
-
"controller.registry.disabled",
|
|
3980
|
-
"controller.launch.needs_repair",
|
|
3981
|
-
"runtime.adapter.unsupported",
|
|
3982
|
-
"controller.binding.disabled",
|
|
3983
|
-
"controller.binding.incomplete",
|
|
3984
|
-
"profile.status.inactive",
|
|
3985
|
-
"profile.binding.read_unavailable",
|
|
3986
|
-
"profile.binding.unbound",
|
|
3987
|
-
"workspace.missing",
|
|
3988
|
-
"workspace.invalid"
|
|
3989
|
-
]);
|
|
3990
|
-
const skippedDaemonProfileSchema = z$1.strictObject({
|
|
4232
|
+
const skippedDaemonProfileSchema = strictObject({
|
|
3991
4233
|
profileId: agentProfileIdSchema,
|
|
3992
4234
|
profileName: nullableNonEmptyStringSchema,
|
|
3993
|
-
skipReason:
|
|
4235
|
+
skipReason: enumFactory([
|
|
4236
|
+
"projection.missing",
|
|
4237
|
+
"controller.registry.disabled",
|
|
4238
|
+
"controller.launch.needs_repair",
|
|
4239
|
+
"runtime.adapter.unsupported",
|
|
4240
|
+
"controller.binding.disabled",
|
|
4241
|
+
"controller.binding.incomplete",
|
|
4242
|
+
"profile.status.inactive",
|
|
4243
|
+
"profile.binding.read_unavailable",
|
|
4244
|
+
"profile.binding.unbound",
|
|
4245
|
+
"workspace.missing",
|
|
4246
|
+
"workspace.invalid"
|
|
4247
|
+
])
|
|
3994
4248
|
});
|
|
3995
|
-
const openMeldDaemonSyncRouteCatalogPayloadSchema =
|
|
3996
|
-
accepted:
|
|
4249
|
+
const openMeldDaemonSyncRouteCatalogPayloadSchema = strictObject({
|
|
4250
|
+
accepted: boolean(),
|
|
3997
4251
|
syncStatus: openMeldDaemonSyncRouteCatalogStatusSchema,
|
|
3998
|
-
profileIds:
|
|
3999
|
-
addedProfileIds:
|
|
4000
|
-
keptProfileIds:
|
|
4001
|
-
removedProfileIds:
|
|
4002
|
-
skippedProfiles:
|
|
4003
|
-
note:
|
|
4004
|
-
errorMessage:
|
|
4005
|
-
});
|
|
4006
|
-
const openMeldDaemonRequestAgentActivitySyncPayloadSchema =
|
|
4007
|
-
const openMeldDaemonSetLocalAgentEnabledPayloadSchema =
|
|
4008
|
-
accepted:
|
|
4009
|
-
agentControllerRef:
|
|
4010
|
-
agentId:
|
|
4011
|
-
changed:
|
|
4012
|
-
enabled:
|
|
4013
|
-
message:
|
|
4014
|
-
reasonCode:
|
|
4015
|
-
reportSyncStatus:
|
|
4252
|
+
profileIds: array(agentProfileIdSchema),
|
|
4253
|
+
addedProfileIds: array(agentProfileIdSchema).optional(),
|
|
4254
|
+
keptProfileIds: array(agentProfileIdSchema).optional(),
|
|
4255
|
+
removedProfileIds: array(agentProfileIdSchema).optional(),
|
|
4256
|
+
skippedProfiles: array(skippedDaemonProfileSchema).optional(),
|
|
4257
|
+
note: string().min(1).optional(),
|
|
4258
|
+
errorMessage: string().min(1).optional()
|
|
4259
|
+
});
|
|
4260
|
+
const openMeldDaemonRequestAgentActivitySyncPayloadSchema = strictObject({ accepted: boolean() });
|
|
4261
|
+
const openMeldDaemonSetLocalAgentEnabledPayloadSchema = strictObject({
|
|
4262
|
+
accepted: boolean(),
|
|
4263
|
+
agentControllerRef: string().min(1).optional(),
|
|
4264
|
+
agentId: string().trim().min(1).max(256),
|
|
4265
|
+
changed: boolean(),
|
|
4266
|
+
enabled: boolean(),
|
|
4267
|
+
message: string().min(1).optional(),
|
|
4268
|
+
reasonCode: string().min(1).optional(),
|
|
4269
|
+
reportSyncStatus: enumFactory([
|
|
4016
4270
|
"submitted",
|
|
4017
4271
|
"skipped",
|
|
4018
4272
|
"failed"
|
|
4019
4273
|
]),
|
|
4020
|
-
status:
|
|
4274
|
+
status: enumFactory([
|
|
4021
4275
|
"updated",
|
|
4022
4276
|
"unchanged",
|
|
4023
4277
|
"rejected"
|
|
4024
4278
|
])
|
|
4025
4279
|
});
|
|
4026
|
-
const openMeldDaemonManageLocalAgentInstallationPayloadSchema =
|
|
4027
|
-
accepted:
|
|
4028
|
-
agentControllerRef:
|
|
4029
|
-
agentId:
|
|
4030
|
-
changed:
|
|
4031
|
-
installations:
|
|
4032
|
-
reportSyncStatus:
|
|
4280
|
+
const openMeldDaemonManageLocalAgentInstallationPayloadSchema = discriminatedUnion("accepted", [strictObject({
|
|
4281
|
+
accepted: literal(true),
|
|
4282
|
+
agentControllerRef: string().min(1),
|
|
4283
|
+
agentId: string().trim().min(1).max(256),
|
|
4284
|
+
changed: boolean(),
|
|
4285
|
+
installations: array(localAgentInstallationOptionSchema),
|
|
4286
|
+
reportSyncStatus: enumFactory([
|
|
4033
4287
|
"submitted",
|
|
4034
4288
|
"skipped",
|
|
4035
4289
|
"failed"
|
|
4036
4290
|
]),
|
|
4037
|
-
selectedInstallationId:
|
|
4038
|
-
status:
|
|
4291
|
+
selectedInstallationId: string().trim().min(1).max(256).nullable(),
|
|
4292
|
+
status: enumFactory([
|
|
4039
4293
|
"listed",
|
|
4040
4294
|
"updated",
|
|
4041
4295
|
"unchanged"
|
|
4042
4296
|
])
|
|
4043
|
-
}),
|
|
4044
|
-
accepted:
|
|
4045
|
-
agentId:
|
|
4046
|
-
changed:
|
|
4047
|
-
installations:
|
|
4048
|
-
message:
|
|
4049
|
-
reasonCode:
|
|
4050
|
-
reportSyncStatus:
|
|
4051
|
-
selectedInstallationId:
|
|
4052
|
-
status:
|
|
4297
|
+
}), strictObject({
|
|
4298
|
+
accepted: literal(false),
|
|
4299
|
+
agentId: string().trim().min(1).max(256),
|
|
4300
|
+
changed: literal(false),
|
|
4301
|
+
installations: array(localAgentInstallationOptionSchema),
|
|
4302
|
+
message: string().min(1).optional(),
|
|
4303
|
+
reasonCode: string().min(1).optional(),
|
|
4304
|
+
reportSyncStatus: literal("failed"),
|
|
4305
|
+
selectedInstallationId: string().trim().min(1).max(256).nullable(),
|
|
4306
|
+
status: literal("rejected")
|
|
4053
4307
|
})]);
|
|
4054
|
-
const openMeldDaemonSetProfileWorkspacePayloadSchema =
|
|
4055
|
-
accepted:
|
|
4308
|
+
const openMeldDaemonSetProfileWorkspacePayloadSchema = discriminatedUnion("accepted", [strictObject({
|
|
4309
|
+
accepted: literal(true),
|
|
4056
4310
|
targetProfileId: agentProfileIdSchema,
|
|
4057
|
-
status:
|
|
4311
|
+
status: literal("updated"),
|
|
4058
4312
|
workspaceMode: profileWorkspaceModeSchema,
|
|
4059
|
-
workspacePath:
|
|
4060
|
-
}),
|
|
4061
|
-
accepted:
|
|
4313
|
+
workspacePath: string().min(1)
|
|
4314
|
+
}), strictObject({
|
|
4315
|
+
accepted: literal(false),
|
|
4062
4316
|
targetProfileId: agentProfileIdSchema,
|
|
4063
|
-
message:
|
|
4064
|
-
reasonCode:
|
|
4065
|
-
status:
|
|
4317
|
+
message: string().min(1).optional(),
|
|
4318
|
+
reasonCode: string().min(1).optional(),
|
|
4319
|
+
status: literal("rejected")
|
|
4066
4320
|
})]);
|
|
4067
|
-
const openMeldDaemonControlPlaneRequestBaseSchema =
|
|
4068
|
-
v:
|
|
4069
|
-
requestId:
|
|
4070
|
-
authToken:
|
|
4071
|
-
});
|
|
4072
|
-
const openMeldDaemonControlPlaneRequestSchema =
|
|
4073
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({ command:
|
|
4074
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({ command:
|
|
4075
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({ command:
|
|
4321
|
+
const openMeldDaemonControlPlaneRequestBaseSchema = strictObject({
|
|
4322
|
+
v: literal(1),
|
|
4323
|
+
requestId: string().min(1).optional(),
|
|
4324
|
+
authToken: string().min(1).optional()
|
|
4325
|
+
});
|
|
4326
|
+
const openMeldDaemonControlPlaneRequestSchema = discriminatedUnion("command", [
|
|
4327
|
+
openMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal("status") }),
|
|
4328
|
+
openMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal("health") }),
|
|
4329
|
+
openMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal("history") }),
|
|
4076
4330
|
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
4077
|
-
command:
|
|
4331
|
+
command: literal("interrupt"),
|
|
4078
4332
|
payload: openMeldDaemonInterruptRequestPayloadSchema
|
|
4079
4333
|
}),
|
|
4080
4334
|
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
4081
|
-
command:
|
|
4335
|
+
command: literal("cancel"),
|
|
4082
4336
|
payload: openMeldDaemonCancelRequestPayloadSchema
|
|
4083
4337
|
}),
|
|
4084
4338
|
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
4085
|
-
command:
|
|
4339
|
+
command: literal("conversation_execution_status"),
|
|
4086
4340
|
payload: openMeldDaemonConversationExecutionStatusRequestPayloadSchema
|
|
4087
4341
|
}),
|
|
4088
4342
|
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
4089
|
-
command:
|
|
4343
|
+
command: literal("sync_route_catalog"),
|
|
4090
4344
|
payload: openMeldDaemonSyncRouteCatalogRequestPayloadSchema
|
|
4091
4345
|
}),
|
|
4092
4346
|
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
4093
|
-
command:
|
|
4347
|
+
command: literal("request_agent_activity_sync"),
|
|
4094
4348
|
payload: openMeldDaemonRequestAgentActivitySyncRequestPayloadSchema
|
|
4095
4349
|
}),
|
|
4096
4350
|
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
4097
|
-
command:
|
|
4351
|
+
command: literal("set_local_agent_enabled"),
|
|
4098
4352
|
payload: openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema
|
|
4099
4353
|
}),
|
|
4100
4354
|
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
4101
|
-
command:
|
|
4355
|
+
command: literal("set_profile_workspace"),
|
|
4102
4356
|
payload: openMeldDaemonSetProfileWorkspaceRequestPayloadSchema
|
|
4103
4357
|
}),
|
|
4104
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({ command:
|
|
4358
|
+
openMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal("service_update_readiness") }),
|
|
4105
4359
|
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
4106
|
-
command:
|
|
4360
|
+
command: literal("shutdown"),
|
|
4107
4361
|
payload: openMeldDaemonShutdownRequestPayloadSchema.optional()
|
|
4108
4362
|
})
|
|
4109
4363
|
]);
|
|
4110
|
-
const openMeldDaemonStatusPayloadSchema =
|
|
4111
|
-
installed:
|
|
4112
|
-
running:
|
|
4113
|
-
daemonVersion:
|
|
4114
|
-
runtimeRoot:
|
|
4115
|
-
checkedAt:
|
|
4116
|
-
});
|
|
4117
|
-
const openMeldDaemonHealthPayloadSchema =
|
|
4364
|
+
const openMeldDaemonStatusPayloadSchema = strictObject({
|
|
4365
|
+
installed: boolean(),
|
|
4366
|
+
running: boolean(),
|
|
4367
|
+
daemonVersion: string().min(1),
|
|
4368
|
+
runtimeRoot: string().min(1),
|
|
4369
|
+
checkedAt: string().min(1)
|
|
4370
|
+
});
|
|
4371
|
+
const openMeldDaemonHealthPayloadSchema = strictObject({
|
|
4118
4372
|
state: openMeldDaemonHealthStateSchema,
|
|
4119
4373
|
runtimeState: openMeldDaemonRuntimeHealthStateSchema.optional(),
|
|
4120
|
-
reasonCode:
|
|
4121
|
-
checkedAt:
|
|
4122
|
-
});
|
|
4123
|
-
const
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
accepted: z$1.boolean(),
|
|
4374
|
+
reasonCode: string().min(1),
|
|
4375
|
+
checkedAt: string().min(1)
|
|
4376
|
+
});
|
|
4377
|
+
const openMeldDaemonHistoryPayloadSchema = strictObject({
|
|
4378
|
+
entries: array(strictObject({
|
|
4379
|
+
id: string().min(1),
|
|
4380
|
+
ts: string().min(1),
|
|
4381
|
+
code: string().min(1),
|
|
4382
|
+
message: string().min(1)
|
|
4383
|
+
})),
|
|
4384
|
+
nextCursor: string().min(1).optional()
|
|
4385
|
+
});
|
|
4386
|
+
const openMeldDaemonInterruptPayloadSchema = strictObject({
|
|
4387
|
+
accepted: boolean(),
|
|
4135
4388
|
target: openMeldDaemonControlTargetSelectorSchema,
|
|
4136
|
-
resolvedDispatchId:
|
|
4137
|
-
resolvedRuntimeCoordinatorExecutionId:
|
|
4138
|
-
resolvedTaskId:
|
|
4139
|
-
note:
|
|
4140
|
-
reasonCode:
|
|
4141
|
-
});
|
|
4142
|
-
const openMeldDaemonCancelPayloadSchema =
|
|
4143
|
-
accepted:
|
|
4389
|
+
resolvedDispatchId: string().min(1).optional(),
|
|
4390
|
+
resolvedRuntimeCoordinatorExecutionId: string().min(1).optional(),
|
|
4391
|
+
resolvedTaskId: string().min(1).optional(),
|
|
4392
|
+
note: string().min(1).optional(),
|
|
4393
|
+
reasonCode: string().min(1).optional()
|
|
4394
|
+
});
|
|
4395
|
+
const openMeldDaemonCancelPayloadSchema = strictObject({
|
|
4396
|
+
accepted: boolean(),
|
|
4144
4397
|
target: openMeldDaemonControlTargetSelectorSchema,
|
|
4145
|
-
resolvedDispatchId:
|
|
4146
|
-
resolvedRuntimeCoordinatorExecutionId:
|
|
4147
|
-
resolvedTaskId:
|
|
4148
|
-
note:
|
|
4149
|
-
reasonCode:
|
|
4150
|
-
});
|
|
4151
|
-
const openMeldDaemonControlPlaneErrorPayloadSchema =
|
|
4152
|
-
errorCode:
|
|
4153
|
-
errorMessage:
|
|
4154
|
-
note:
|
|
4155
|
-
});
|
|
4156
|
-
const openMeldDaemonShutdownPayloadSchema =
|
|
4157
|
-
accepted:
|
|
4158
|
-
mode:
|
|
4159
|
-
gracePeriodMs:
|
|
4160
|
-
});
|
|
4161
|
-
const openMeldDaemonControlPlaneResponseBaseSchema =
|
|
4162
|
-
v:
|
|
4163
|
-
requestId:
|
|
4398
|
+
resolvedDispatchId: string().min(1).optional(),
|
|
4399
|
+
resolvedRuntimeCoordinatorExecutionId: string().min(1).optional(),
|
|
4400
|
+
resolvedTaskId: string().min(1).optional(),
|
|
4401
|
+
note: string().min(1).optional(),
|
|
4402
|
+
reasonCode: string().min(1).optional()
|
|
4403
|
+
});
|
|
4404
|
+
const openMeldDaemonControlPlaneErrorPayloadSchema = strictObject({
|
|
4405
|
+
errorCode: string().min(1),
|
|
4406
|
+
errorMessage: string().min(1),
|
|
4407
|
+
note: string().min(1).optional()
|
|
4408
|
+
});
|
|
4409
|
+
const openMeldDaemonShutdownPayloadSchema = strictObject({
|
|
4410
|
+
accepted: boolean(),
|
|
4411
|
+
mode: enumFactory(["graceful", "force"]),
|
|
4412
|
+
gracePeriodMs: number().int().nonnegative()
|
|
4413
|
+
});
|
|
4414
|
+
const openMeldDaemonControlPlaneResponseBaseSchema = strictObject({
|
|
4415
|
+
v: literal(1),
|
|
4416
|
+
requestId: string().min(1).optional()
|
|
4164
4417
|
});
|
|
4165
4418
|
const openMeldDaemonStatusResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
4166
|
-
code:
|
|
4419
|
+
code: literal("service.status"),
|
|
4167
4420
|
payload: openMeldDaemonStatusPayloadSchema
|
|
4168
4421
|
});
|
|
4169
4422
|
const openMeldDaemonHealthResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
4170
|
-
code:
|
|
4423
|
+
code: literal("service.health"),
|
|
4171
4424
|
payload: openMeldDaemonHealthPayloadSchema
|
|
4172
4425
|
});
|
|
4173
4426
|
const openMeldDaemonHistoryResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
4174
|
-
code:
|
|
4427
|
+
code: literal("service.history"),
|
|
4175
4428
|
payload: openMeldDaemonHistoryPayloadSchema
|
|
4176
4429
|
});
|
|
4177
4430
|
const openMeldDaemonInterruptResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
4178
|
-
code:
|
|
4431
|
+
code: literal("service.interrupt"),
|
|
4179
4432
|
payload: openMeldDaemonInterruptPayloadSchema
|
|
4180
4433
|
});
|
|
4181
4434
|
const openMeldDaemonCancelResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
4182
|
-
code:
|
|
4435
|
+
code: literal("service.cancel"),
|
|
4183
4436
|
payload: openMeldDaemonCancelPayloadSchema
|
|
4184
4437
|
});
|
|
4185
4438
|
const openMeldDaemonConversationExecutionStatusResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
4186
|
-
code:
|
|
4439
|
+
code: literal("service.conversation_execution_status"),
|
|
4187
4440
|
payload: openMeldDaemonConversationExecutionStatusPayloadSchema
|
|
4188
4441
|
});
|
|
4189
4442
|
const openMeldDaemonSyncRouteCatalogResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
4190
|
-
code:
|
|
4443
|
+
code: literal("service.sync_route_catalog"),
|
|
4191
4444
|
payload: openMeldDaemonSyncRouteCatalogPayloadSchema
|
|
4192
4445
|
});
|
|
4193
4446
|
const openMeldDaemonRequestAgentActivitySyncResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
4194
|
-
code:
|
|
4447
|
+
code: literal("service.agent_activity_sync_requested"),
|
|
4195
4448
|
payload: openMeldDaemonRequestAgentActivitySyncPayloadSchema
|
|
4196
4449
|
});
|
|
4197
4450
|
const openMeldDaemonSetLocalAgentEnabledResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
4198
|
-
code:
|
|
4451
|
+
code: literal("service.set_local_agent_enabled"),
|
|
4199
4452
|
payload: openMeldDaemonSetLocalAgentEnabledPayloadSchema
|
|
4200
4453
|
});
|
|
4201
4454
|
const openMeldDaemonSetProfileWorkspaceResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
4202
|
-
code:
|
|
4455
|
+
code: literal("service.set_profile_workspace"),
|
|
4203
4456
|
payload: openMeldDaemonSetProfileWorkspacePayloadSchema
|
|
4204
4457
|
});
|
|
4205
4458
|
const openMeldDaemonShutdownResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
4206
|
-
code:
|
|
4459
|
+
code: literal("service.shutdown"),
|
|
4207
4460
|
payload: openMeldDaemonShutdownPayloadSchema
|
|
4208
4461
|
});
|
|
4209
|
-
const
|
|
4210
|
-
code: z$1.literal("service.update_readiness"),
|
|
4211
|
-
payload: openMeldDaemonServiceUpdateReadinessPayloadSchema
|
|
4212
|
-
});
|
|
4213
|
-
const openMeldDaemonControlPlaneErrorResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
4214
|
-
code: z$1.literal("service.error"),
|
|
4215
|
-
payload: openMeldDaemonControlPlaneErrorPayloadSchema
|
|
4216
|
-
});
|
|
4217
|
-
const openMeldDaemonControlPlaneResponseSchema = z$1.discriminatedUnion("code", [
|
|
4462
|
+
const openMeldDaemonControlPlaneResponseSchema = discriminatedUnion("code", [
|
|
4218
4463
|
openMeldDaemonStatusResponseSchema,
|
|
4219
4464
|
openMeldDaemonHealthResponseSchema,
|
|
4220
4465
|
openMeldDaemonHistoryResponseSchema,
|
|
@@ -4225,9 +4470,15 @@ const openMeldDaemonControlPlaneResponseSchema = z$1.discriminatedUnion("code",
|
|
|
4225
4470
|
openMeldDaemonRequestAgentActivitySyncResponseSchema,
|
|
4226
4471
|
openMeldDaemonSetLocalAgentEnabledResponseSchema,
|
|
4227
4472
|
openMeldDaemonSetProfileWorkspaceResponseSchema,
|
|
4228
|
-
|
|
4473
|
+
openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
4474
|
+
code: literal("service.update_readiness"),
|
|
4475
|
+
payload: openMeldDaemonServiceUpdateReadinessPayloadSchema
|
|
4476
|
+
}),
|
|
4229
4477
|
openMeldDaemonShutdownResponseSchema,
|
|
4230
|
-
|
|
4478
|
+
openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
4479
|
+
code: literal("service.error"),
|
|
4480
|
+
payload: openMeldDaemonControlPlaneErrorPayloadSchema
|
|
4481
|
+
})
|
|
4231
4482
|
]);
|
|
4232
4483
|
//#endregion
|
|
4233
4484
|
//#region ../../packages/schemas/dist/schemas/http/space-files.js
|
|
@@ -4251,22 +4502,22 @@ const MIME_TYPES_BY_EXTENSION = {
|
|
|
4251
4502
|
".yaml": "application/yaml",
|
|
4252
4503
|
".yml": "application/yaml"
|
|
4253
4504
|
};
|
|
4254
|
-
const scopeIdSchema =
|
|
4255
|
-
const spaceFileEntryIdSchema =
|
|
4256
|
-
const spaceFileRevisionIdSchema =
|
|
4257
|
-
const spaceFileClientMutationIdSchema =
|
|
4258
|
-
const spaceFileRevisionNumberSchema =
|
|
4259
|
-
const spaceFileBaseRevisionSchema =
|
|
4260
|
-
const spaceFileSizeBytesSchema =
|
|
4261
|
-
const spaceFileMimeTypeSchema =
|
|
4262
|
-
const spaceFileNameSchema =
|
|
4263
|
-
const spaceFileActorSchema =
|
|
4505
|
+
const scopeIdSchema = string().trim().min(1).max(512);
|
|
4506
|
+
const spaceFileEntryIdSchema = string().trim().min(1).max(128);
|
|
4507
|
+
const spaceFileRevisionIdSchema = string().trim().min(1).max(128);
|
|
4508
|
+
const spaceFileClientMutationIdSchema = string().trim().min(1).max(128);
|
|
4509
|
+
const spaceFileRevisionNumberSchema = number().int().min(1);
|
|
4510
|
+
const spaceFileBaseRevisionSchema = number().int().min(1).nullable();
|
|
4511
|
+
const spaceFileSizeBytesSchema = number().int().min(0).max(SPACE_FILE_MAX_SIZE_BYTES);
|
|
4512
|
+
const spaceFileMimeTypeSchema = string().trim().toLowerCase().max(255).regex(MEDIA_TYPE_PATTERN, "File type must be a valid media type.");
|
|
4513
|
+
const spaceFileNameSchema = string().transform((value) => value.trim()).pipe(string().min(1).max(255).refine((value) => !PATH_SEPARATOR_PATTERN.test(value), { message: "File names cannot contain path separators." }).refine((value) => !hasControlCharacter(value), { message: "File names cannot contain control characters." }).refine((value) => value !== "." && value !== "..", { message: "File names cannot be dot path segments." }));
|
|
4514
|
+
const spaceFileActorSchema = strictObject({
|
|
4264
4515
|
profileId: scopeIdSchema,
|
|
4265
|
-
profileKind:
|
|
4266
|
-
displayName:
|
|
4516
|
+
profileKind: enumFactory(["human", "agent"]),
|
|
4517
|
+
displayName: string().trim().min(1).max(200),
|
|
4267
4518
|
ownerUserId: scopeIdSchema.optional()
|
|
4268
4519
|
});
|
|
4269
|
-
const spaceFileAuditOperationSchema =
|
|
4520
|
+
const spaceFileAuditOperationSchema = enumFactory([
|
|
4270
4521
|
"content_read",
|
|
4271
4522
|
"content_write",
|
|
4272
4523
|
"folder_create",
|
|
@@ -4274,9 +4525,9 @@ const spaceFileAuditOperationSchema = z$1.enum([
|
|
|
4274
4525
|
"entry_trash",
|
|
4275
4526
|
"entry_restore"
|
|
4276
4527
|
]);
|
|
4277
|
-
const spaceFileAuditResultSchema =
|
|
4278
|
-
|
|
4279
|
-
eventId:
|
|
4528
|
+
const spaceFileAuditResultSchema = enumFactory(["succeeded", "failed"]);
|
|
4529
|
+
strictObject({
|
|
4530
|
+
eventId: string().trim().min(1).max(1024),
|
|
4280
4531
|
operationId: scopeIdSchema,
|
|
4281
4532
|
requestId: scopeIdSchema,
|
|
4282
4533
|
organizationId: scopeIdSchema,
|
|
@@ -4284,7 +4535,7 @@ z$1.strictObject({
|
|
|
4284
4535
|
entryId: spaceFileEntryIdSchema,
|
|
4285
4536
|
revisionId: spaceFileRevisionIdSchema.nullable(),
|
|
4286
4537
|
operation: spaceFileAuditOperationSchema,
|
|
4287
|
-
actorKind:
|
|
4538
|
+
actorKind: enumFactory([
|
|
4288
4539
|
"authenticated",
|
|
4289
4540
|
"anonymous_viewer",
|
|
4290
4541
|
"dispatch_continuation"
|
|
@@ -4292,8 +4543,8 @@ z$1.strictObject({
|
|
|
4292
4543
|
actorProfileId: scopeIdSchema.nullable(),
|
|
4293
4544
|
representedHumanProfileId: scopeIdSchema.nullable(),
|
|
4294
4545
|
result: spaceFileAuditResultSchema,
|
|
4295
|
-
errorCode:
|
|
4296
|
-
occurredAtMs:
|
|
4546
|
+
errorCode: string().trim().min(1).max(128).nullable(),
|
|
4547
|
+
occurredAtMs: number().int().nonnegative()
|
|
4297
4548
|
}).superRefine((value, context) => {
|
|
4298
4549
|
if (value.actorKind !== "anonymous_viewer" !== (value.actorProfileId !== null)) context.addIssue({
|
|
4299
4550
|
code: "custom",
|
|
@@ -4311,112 +4562,106 @@ z$1.strictObject({
|
|
|
4311
4562
|
path: ["errorCode"]
|
|
4312
4563
|
});
|
|
4313
4564
|
});
|
|
4314
|
-
const spaceFileRevisionSchema =
|
|
4565
|
+
const spaceFileRevisionSchema = strictObject({
|
|
4315
4566
|
id: spaceFileRevisionIdSchema,
|
|
4316
4567
|
fileId: spaceFileEntryIdSchema,
|
|
4317
4568
|
revision: spaceFileRevisionNumberSchema,
|
|
4318
4569
|
mimeType: spaceFileMimeTypeSchema,
|
|
4319
4570
|
sizeBytes: spaceFileSizeBytesSchema,
|
|
4320
|
-
createdAt:
|
|
4571
|
+
createdAt: iso.datetime({ offset: true }),
|
|
4321
4572
|
createdBy: spaceFileActorSchema
|
|
4322
4573
|
});
|
|
4323
|
-
|
|
4324
|
-
* Canonical Space File revision embedded in a message. `fileId` and
|
|
4325
|
-
* `revision` identify the immutable bytes; the remaining fields are the
|
|
4326
|
-
* server-resolved send-time presentation snapshot.
|
|
4327
|
-
*/
|
|
4328
|
-
const spaceMessageFileReferenceSchema = z$1.strictObject({
|
|
4574
|
+
const spaceMessageFileReferencesSchema = array(strictObject({
|
|
4329
4575
|
fileId: spaceFileEntryIdSchema,
|
|
4330
4576
|
revision: spaceFileRevisionNumberSchema,
|
|
4331
4577
|
name: spaceFileNameSchema,
|
|
4332
4578
|
mimeType: spaceFileMimeTypeSchema,
|
|
4333
4579
|
sizeBytes: spaceFileSizeBytesSchema
|
|
4334
|
-
});
|
|
4335
|
-
const spaceMessageFileReferencesSchema = z$1.array(spaceMessageFileReferenceSchema).max(10);
|
|
4580
|
+
})).max(10);
|
|
4336
4581
|
const baseEntryShape = {
|
|
4337
4582
|
id: spaceFileEntryIdSchema,
|
|
4338
4583
|
spaceId: scopeIdSchema,
|
|
4339
4584
|
parentId: spaceFileEntryIdSchema.nullable(),
|
|
4340
4585
|
name: spaceFileNameSchema,
|
|
4341
|
-
path:
|
|
4342
|
-
createdAt:
|
|
4343
|
-
updatedAt:
|
|
4586
|
+
path: string().startsWith("/").max(4096),
|
|
4587
|
+
createdAt: iso.datetime({ offset: true }),
|
|
4588
|
+
updatedAt: iso.datetime({ offset: true }),
|
|
4344
4589
|
createdBy: spaceFileActorSchema,
|
|
4345
4590
|
updatedBy: spaceFileActorSchema,
|
|
4346
|
-
trashedAt:
|
|
4591
|
+
trashedAt: iso.datetime({ offset: true }).nullable().default(null),
|
|
4347
4592
|
trashedBy: spaceFileActorSchema.nullable().default(null)
|
|
4348
4593
|
};
|
|
4349
|
-
const spaceFolderDescriptorSchema =
|
|
4594
|
+
const spaceFolderDescriptorSchema = strictObject({
|
|
4350
4595
|
...baseEntryShape,
|
|
4351
|
-
kind:
|
|
4596
|
+
kind: literal("folder")
|
|
4352
4597
|
});
|
|
4353
|
-
const spaceFileDescriptorSchema =
|
|
4598
|
+
const spaceFileDescriptorSchema = strictObject({
|
|
4354
4599
|
...baseEntryShape,
|
|
4355
|
-
kind:
|
|
4600
|
+
kind: literal("file"),
|
|
4356
4601
|
latestRevision: spaceFileRevisionSchema
|
|
4357
4602
|
});
|
|
4358
|
-
const spaceFileEntrySchema =
|
|
4359
|
-
const spaceFileBreadcrumbSchema =
|
|
4603
|
+
const spaceFileEntrySchema = discriminatedUnion("kind", [spaceFolderDescriptorSchema, spaceFileDescriptorSchema]);
|
|
4604
|
+
const spaceFileBreadcrumbSchema = strictObject({
|
|
4360
4605
|
id: spaceFileEntryIdSchema.nullable(),
|
|
4361
|
-
name:
|
|
4606
|
+
name: string().trim().min(1).max(255)
|
|
4362
4607
|
});
|
|
4363
|
-
const spaceFileCapabilitiesSchema =
|
|
4364
|
-
canRead:
|
|
4365
|
-
canWrite:
|
|
4608
|
+
const spaceFileCapabilitiesSchema = strictObject({
|
|
4609
|
+
canRead: literal(true),
|
|
4610
|
+
canWrite: boolean()
|
|
4366
4611
|
});
|
|
4367
|
-
|
|
4612
|
+
strictObject({
|
|
4368
4613
|
parentId: spaceFileEntryIdSchema.nullable().optional(),
|
|
4369
|
-
view:
|
|
4614
|
+
view: enumFactory(["active", "trash"]).default("active")
|
|
4370
4615
|
});
|
|
4371
|
-
const listSpaceFilesResponseSchema =
|
|
4616
|
+
const listSpaceFilesResponseSchema = strictObject({
|
|
4372
4617
|
spaceId: scopeIdSchema,
|
|
4373
4618
|
parentId: spaceFileEntryIdSchema.nullable(),
|
|
4374
|
-
view:
|
|
4375
|
-
breadcrumbs:
|
|
4376
|
-
entries:
|
|
4619
|
+
view: enumFactory(["active", "trash"]).default("active"),
|
|
4620
|
+
breadcrumbs: array(spaceFileBreadcrumbSchema),
|
|
4621
|
+
entries: array(spaceFileEntrySchema),
|
|
4377
4622
|
capabilities: spaceFileCapabilitiesSchema
|
|
4378
4623
|
});
|
|
4379
|
-
const getSpaceFileResponseSchema =
|
|
4380
|
-
const listSpaceFileRevisionsResponseSchema =
|
|
4624
|
+
const getSpaceFileResponseSchema = strictObject({ file: spaceFileDescriptorSchema });
|
|
4625
|
+
const listSpaceFileRevisionsResponseSchema = strictObject({
|
|
4381
4626
|
file: spaceFileDescriptorSchema,
|
|
4382
|
-
revisions:
|
|
4627
|
+
revisions: array(spaceFileRevisionSchema)
|
|
4383
4628
|
});
|
|
4384
|
-
|
|
4629
|
+
strictObject({
|
|
4385
4630
|
name: spaceFileNameSchema,
|
|
4386
4631
|
parentId: spaceFileEntryIdSchema.nullable().optional(),
|
|
4387
4632
|
clientMutationId: spaceFileClientMutationIdSchema
|
|
4388
4633
|
});
|
|
4389
|
-
const createSpaceFolderResponseSchema =
|
|
4390
|
-
|
|
4634
|
+
const createSpaceFolderResponseSchema = strictObject({ folder: spaceFolderDescriptorSchema });
|
|
4635
|
+
strictObject({
|
|
4391
4636
|
name: spaceFileNameSchema.optional(),
|
|
4392
4637
|
parentId: spaceFileEntryIdSchema.nullable().optional(),
|
|
4393
4638
|
clientMutationId: spaceFileClientMutationIdSchema
|
|
4394
4639
|
}).refine((value) => value.name !== void 0 || value.parentId !== void 0, { message: "A new name or folder is required." });
|
|
4395
|
-
const updateSpaceFileEntryResponseSchema =
|
|
4396
|
-
|
|
4397
|
-
const trashSpaceFileEntryResponseSchema =
|
|
4640
|
+
const updateSpaceFileEntryResponseSchema = strictObject({ entry: spaceFileEntrySchema });
|
|
4641
|
+
strictObject({ clientMutationId: spaceFileClientMutationIdSchema });
|
|
4642
|
+
const trashSpaceFileEntryResponseSchema = strictObject({
|
|
4398
4643
|
entryId: spaceFileEntryIdSchema,
|
|
4399
|
-
trashedAt:
|
|
4644
|
+
trashedAt: iso.datetime({ offset: true })
|
|
4400
4645
|
});
|
|
4401
|
-
|
|
4402
|
-
const restoreSpaceFileEntryResponseSchema =
|
|
4403
|
-
|
|
4646
|
+
strictObject({ clientMutationId: spaceFileClientMutationIdSchema });
|
|
4647
|
+
const restoreSpaceFileEntryResponseSchema = strictObject({ entry: spaceFileEntrySchema });
|
|
4648
|
+
strictObject({
|
|
4404
4649
|
baseRevision: spaceFileRevisionNumberSchema,
|
|
4405
4650
|
clientMutationId: spaceFileClientMutationIdSchema
|
|
4406
4651
|
});
|
|
4407
|
-
const restoreSpaceFileRevisionResponseSchema =
|
|
4408
|
-
const queryIntegerSchema =
|
|
4409
|
-
|
|
4652
|
+
const restoreSpaceFileRevisionResponseSchema = strictObject({ file: spaceFileDescriptorSchema });
|
|
4653
|
+
const queryIntegerSchema = string().trim().regex(/^\d+$/u).transform(Number);
|
|
4654
|
+
strictObject({
|
|
4410
4655
|
name: spaceFileNameSchema,
|
|
4411
4656
|
parentId: spaceFileEntryIdSchema.optional(),
|
|
4412
4657
|
clientMutationId: spaceFileClientMutationIdSchema
|
|
4413
4658
|
});
|
|
4414
|
-
|
|
4659
|
+
strictObject({
|
|
4415
4660
|
baseRevision: queryIntegerSchema.pipe(spaceFileRevisionNumberSchema),
|
|
4416
4661
|
clientMutationId: spaceFileClientMutationIdSchema
|
|
4417
4662
|
});
|
|
4418
|
-
const uploadSpaceFileResponseSchema =
|
|
4419
|
-
|
|
4663
|
+
const uploadSpaceFileResponseSchema = strictObject({ file: spaceFileDescriptorSchema });
|
|
4664
|
+
strictObject({ revision: queryIntegerSchema.pipe(spaceFileRevisionNumberSchema).optional() });
|
|
4420
4665
|
const SPACE_FILE_ERROR_CODES = [
|
|
4421
4666
|
"space_file.conflict",
|
|
4422
4667
|
"space_file.folder_not_empty",
|
|
@@ -4427,13 +4672,12 @@ const SPACE_FILE_ERROR_CODES = [
|
|
|
4427
4672
|
"space_file.too_large",
|
|
4428
4673
|
"space_file.type_unsupported"
|
|
4429
4674
|
];
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
message: z$1.string().trim().min(1).max(500),
|
|
4675
|
+
strictObject({ error: strictObject({
|
|
4676
|
+
code: enumFactory(SPACE_FILE_ERROR_CODES),
|
|
4677
|
+
message: string().trim().min(1).max(500),
|
|
4434
4678
|
currentFile: spaceFileDescriptorSchema.optional()
|
|
4435
4679
|
}) });
|
|
4436
|
-
|
|
4680
|
+
strictObject({
|
|
4437
4681
|
spaceId: scopeIdSchema,
|
|
4438
4682
|
fileId: spaceFileEntryIdSchema,
|
|
4439
4683
|
revisionId: spaceFileRevisionIdSchema,
|
|
@@ -4444,24 +4688,24 @@ z$1.strictObject({
|
|
|
4444
4688
|
mimeType: spaceFileMimeTypeSchema,
|
|
4445
4689
|
sizeBytes: spaceFileSizeBytesSchema
|
|
4446
4690
|
});
|
|
4447
|
-
|
|
4691
|
+
strictObject({
|
|
4448
4692
|
organizationId: scopeIdSchema,
|
|
4449
4693
|
spaceId: scopeIdSchema,
|
|
4450
4694
|
fileId: spaceFileEntryIdSchema,
|
|
4451
4695
|
revisionId: spaceFileRevisionIdSchema,
|
|
4452
|
-
objectKey:
|
|
4696
|
+
objectKey: string().trim().min(1).max(4096),
|
|
4453
4697
|
committedFile: spaceFileDescriptorSchema.optional()
|
|
4454
4698
|
});
|
|
4455
|
-
|
|
4699
|
+
strictObject({
|
|
4456
4700
|
spaceId: scopeIdSchema,
|
|
4457
4701
|
fileId: spaceFileEntryIdSchema,
|
|
4458
4702
|
revision: spaceFileRevisionNumberSchema.optional()
|
|
4459
4703
|
});
|
|
4460
|
-
|
|
4704
|
+
strictObject({
|
|
4461
4705
|
file: spaceFileDescriptorSchema,
|
|
4462
4706
|
revision: spaceFileRevisionSchema,
|
|
4463
4707
|
organizationId: scopeIdSchema,
|
|
4464
|
-
objectKey:
|
|
4708
|
+
objectKey: string().trim().min(1).max(4096)
|
|
4465
4709
|
});
|
|
4466
4710
|
function isSpaceFileTextEditable(input) {
|
|
4467
4711
|
return input.sizeBytes <= 1048576 && (input.mimeType.startsWith("text/") || input.mimeType === "application/json" || input.mimeType === "application/yaml" || input.mimeType === "application/x-yaml" || input.mimeType === "application/xml");
|
|
@@ -4801,35 +5045,35 @@ const isControlCharacter = (character) => {
|
|
|
4801
5045
|
};
|
|
4802
5046
|
//#endregion
|
|
4803
5047
|
//#region ../../packages/schemas/dist/schemas/runtime/agent-task-coordination.js
|
|
4804
|
-
const nonEmptyIdSchema =
|
|
4805
|
-
const boundedAgentControllerRefSchema = agentControllerRefSchema.pipe(
|
|
4806
|
-
const nullableNonEmptyIdSchema =
|
|
4807
|
-
const nullableReasonCodeSchema =
|
|
4808
|
-
const agentTaskHandleBaseShape = { v:
|
|
4809
|
-
const spaceWakeAgentTaskHandleSchema =
|
|
5048
|
+
const nonEmptyIdSchema = string().trim().min(1).max(512);
|
|
5049
|
+
const boundedAgentControllerRefSchema = agentControllerRefSchema.pipe(string().max(512));
|
|
5050
|
+
const nullableNonEmptyIdSchema = union([nonEmptyIdSchema, nullFactory()]);
|
|
5051
|
+
const nullableReasonCodeSchema = union([string().trim().min(1).max(160), nullFactory()]);
|
|
5052
|
+
const agentTaskHandleBaseShape = { v: literal(1) };
|
|
5053
|
+
const spaceWakeAgentTaskHandleSchema = strictObject({
|
|
4810
5054
|
...agentTaskHandleBaseShape,
|
|
4811
|
-
kind:
|
|
5055
|
+
kind: literal("space_wake"),
|
|
4812
5056
|
sourceClientMessageId: nonEmptyIdSchema,
|
|
4813
5057
|
spaceId: nonEmptyIdSchema,
|
|
4814
5058
|
targetProfileId: agentProfileIdSchema
|
|
4815
5059
|
});
|
|
4816
|
-
const controllerAgentTaskHandleSchema =
|
|
5060
|
+
const controllerAgentTaskHandleSchema = strictObject({
|
|
4817
5061
|
...agentTaskHandleBaseShape,
|
|
4818
5062
|
agentControllerRef: boundedAgentControllerRefSchema,
|
|
4819
5063
|
hostId: nonEmptyIdSchema,
|
|
4820
|
-
kind:
|
|
5064
|
+
kind: literal("controller_task"),
|
|
4821
5065
|
taskId: nonEmptyIdSchema
|
|
4822
5066
|
});
|
|
4823
|
-
const agentTaskHandleSchema =
|
|
5067
|
+
const agentTaskHandleSchema = discriminatedUnion("kind", [
|
|
4824
5068
|
spaceWakeAgentTaskHandleSchema,
|
|
4825
|
-
|
|
5069
|
+
strictObject({
|
|
4826
5070
|
...agentTaskHandleBaseShape,
|
|
4827
5071
|
deliveryId: nonEmptyIdSchema,
|
|
4828
|
-
kind:
|
|
5072
|
+
kind: literal("native_delivery")
|
|
4829
5073
|
}),
|
|
4830
5074
|
controllerAgentTaskHandleSchema
|
|
4831
5075
|
]);
|
|
4832
|
-
const agentTaskTerminalStatusSchema =
|
|
5076
|
+
const agentTaskTerminalStatusSchema = enumFactory([
|
|
4833
5077
|
"succeeded",
|
|
4834
5078
|
"completed",
|
|
4835
5079
|
"failed",
|
|
@@ -4837,30 +5081,29 @@ const agentTaskTerminalStatusSchema = z$1.enum([
|
|
|
4837
5081
|
"stayed_silent",
|
|
4838
5082
|
"publication_failed"
|
|
4839
5083
|
]);
|
|
4840
|
-
const agentTaskTerminalOutcomeSchema =
|
|
5084
|
+
const agentTaskTerminalOutcomeSchema = strictObject({
|
|
4841
5085
|
errorCode: nullableReasonCodeSchema,
|
|
4842
5086
|
eventId: nonEmptyIdSchema,
|
|
4843
|
-
occurredAtMs:
|
|
5087
|
+
occurredAtMs: number().int().nonnegative(),
|
|
4844
5088
|
publishedSignalId: nullableNonEmptyIdSchema,
|
|
4845
5089
|
status: agentTaskTerminalStatusSchema
|
|
4846
5090
|
});
|
|
4847
5091
|
function areAgentTaskTerminalOutcomesEqual(left, right) {
|
|
4848
5092
|
return left.errorCode === right.errorCode && left.eventId === right.eventId && left.occurredAtMs === right.occurredAtMs && left.publishedSignalId === right.publishedSignalId && left.status === right.status;
|
|
4849
5093
|
}
|
|
4850
|
-
const
|
|
5094
|
+
const agentTaskCompletionObservationSchema = union([agentTaskTerminalOutcomeSchema, strictObject({
|
|
4851
5095
|
attentionCode: nullableReasonCodeSchema,
|
|
4852
5096
|
eventId: nonEmptyIdSchema,
|
|
4853
|
-
occurredAtMs:
|
|
4854
|
-
status:
|
|
4855
|
-
});
|
|
4856
|
-
const
|
|
4857
|
-
const agentTaskCompletionConditionSchema = z$1.enum([
|
|
5097
|
+
occurredAtMs: number().int().nonnegative(),
|
|
5098
|
+
status: literal("needs_attention")
|
|
5099
|
+
})]);
|
|
5100
|
+
const agentTaskCompletionConditionSchema = enumFactory([
|
|
4858
5101
|
"terminal",
|
|
4859
5102
|
"succeeded",
|
|
4860
5103
|
"failed",
|
|
4861
5104
|
"needs_attention"
|
|
4862
5105
|
]);
|
|
4863
|
-
const agentDelegationBarrierSchema =
|
|
5106
|
+
const agentDelegationBarrierSchema = enumFactory([
|
|
4864
5107
|
"all_terminal",
|
|
4865
5108
|
"first_success",
|
|
4866
5109
|
"on_failure",
|
|
@@ -4869,45 +5112,45 @@ const agentDelegationBarrierSchema = z$1.enum([
|
|
|
4869
5112
|
const legacyAgentTaskContinuationDestinationShape = {
|
|
4870
5113
|
sourceSignalId: nonEmptyIdSchema,
|
|
4871
5114
|
spaceId: nonEmptyIdSchema,
|
|
4872
|
-
threadContext:
|
|
5115
|
+
threadContext: union([spaceThreadContextSchema, nullFactory()])
|
|
4873
5116
|
};
|
|
4874
5117
|
const resumeAgentContinuationShape = {
|
|
4875
5118
|
delegationId: nonEmptyIdSchema,
|
|
4876
|
-
instruction:
|
|
4877
|
-
kind:
|
|
5119
|
+
instruction: string().trim().min(1).max(4e3),
|
|
5120
|
+
kind: literal("resume_agent")
|
|
4878
5121
|
};
|
|
4879
5122
|
const resumeTaskWatchContinuationShape = {
|
|
4880
|
-
instruction:
|
|
4881
|
-
kind:
|
|
5123
|
+
instruction: string().trim().min(1).max(4e3),
|
|
5124
|
+
kind: literal("resume_task_watch"),
|
|
4882
5125
|
watchId: nonEmptyIdSchema
|
|
4883
5126
|
};
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
5127
|
+
union([
|
|
5128
|
+
strictObject(resumeAgentContinuationShape),
|
|
5129
|
+
strictObject({
|
|
4887
5130
|
...resumeAgentContinuationShape,
|
|
4888
5131
|
...legacyAgentTaskContinuationDestinationShape
|
|
4889
5132
|
}),
|
|
4890
|
-
|
|
5133
|
+
strictObject({
|
|
4891
5134
|
agentProfileId: agentProfileIdSchema,
|
|
4892
5135
|
delegationId: nonEmptyIdSchema,
|
|
4893
|
-
kind:
|
|
5136
|
+
kind: literal("activate_fallback"),
|
|
4894
5137
|
spaceId: nonEmptyIdSchema,
|
|
4895
|
-
text:
|
|
5138
|
+
text: string().trim().min(1).max(MAX_TEXT_LENGTH)
|
|
4896
5139
|
}),
|
|
4897
|
-
|
|
4898
|
-
|
|
5140
|
+
strictObject(resumeTaskWatchContinuationShape),
|
|
5141
|
+
strictObject({
|
|
4899
5142
|
...resumeTaskWatchContinuationShape,
|
|
4900
5143
|
...legacyAgentTaskContinuationDestinationShape
|
|
4901
5144
|
})
|
|
4902
5145
|
]);
|
|
4903
|
-
|
|
4904
|
-
mode:
|
|
5146
|
+
discriminatedUnion("mode", [strictObject({ mode: literal("child_reports_directly") }), strictObject({
|
|
5147
|
+
mode: literal("resume_parent"),
|
|
4905
5148
|
when: agentDelegationBarrierSchema
|
|
4906
5149
|
})]);
|
|
4907
|
-
const agentDelegationChildSnapshotSchema =
|
|
5150
|
+
const agentDelegationChildSnapshotSchema = strictObject({
|
|
4908
5151
|
agentProfileId: agentProfileIdSchema,
|
|
4909
|
-
role:
|
|
4910
|
-
state:
|
|
5152
|
+
role: enumFactory(["primary", "fallback"]),
|
|
5153
|
+
state: enumFactory([
|
|
4911
5154
|
"planned",
|
|
4912
5155
|
"active",
|
|
4913
5156
|
"terminal",
|
|
@@ -4915,13 +5158,13 @@ const agentDelegationChildSnapshotSchema = z$1.strictObject({
|
|
|
4915
5158
|
"cancelled"
|
|
4916
5159
|
]),
|
|
4917
5160
|
task: agentTaskHandleSchema,
|
|
4918
|
-
terminalOutcome:
|
|
5161
|
+
terminalOutcome: union([agentTaskTerminalOutcomeSchema, nullFactory()])
|
|
4919
5162
|
});
|
|
4920
|
-
const agentDelegationSnapshotSchema =
|
|
4921
|
-
barrier:
|
|
4922
|
-
children:
|
|
5163
|
+
const agentDelegationSnapshotSchema = strictObject({
|
|
5164
|
+
barrier: union([agentDelegationBarrierSchema, nullFactory()]),
|
|
5165
|
+
children: array(agentDelegationChildSnapshotSchema).min(1).max(26),
|
|
4923
5166
|
delegationId: nonEmptyIdSchema,
|
|
4924
|
-
generation:
|
|
5167
|
+
generation: number().int().positive()
|
|
4925
5168
|
});
|
|
4926
5169
|
function buildAgentTaskKey(handleInput) {
|
|
4927
5170
|
const handle = agentTaskHandleSchema.parse(handleInput);
|
|
@@ -4985,32 +5228,33 @@ z$1.strictObject({
|
|
|
4985
5228
|
});
|
|
4986
5229
|
//#endregion
|
|
4987
5230
|
//#region ../../packages/schemas/dist/schemas/daemon/dispatch-queue.js
|
|
4988
|
-
const openMeldDaemonDispatchDeliveryRecoveryReasonSchema =
|
|
4989
|
-
const
|
|
5231
|
+
const openMeldDaemonDispatchDeliveryRecoveryReasonSchema = enumFactory(["connection_replaced", "route_lost"]);
|
|
5232
|
+
const openMeldDaemonDispatchQueueRecoveryReasonSchema = union([openMeldDaemonDispatchDeliveryRecoveryReasonSchema, literal("hosted_admission_incomplete")]);
|
|
5233
|
+
const openMeldDaemonDispatchRulesSnapshotSchema = strictObject({
|
|
4990
5234
|
dispatchPolicy: runtimeDispatchPolicySchema,
|
|
4991
5235
|
ruleSource: openMeldDaemonMentionDispatchRuleSourceSchema,
|
|
4992
|
-
ruleId:
|
|
4993
|
-
ruleReason:
|
|
5236
|
+
ruleId: string().min(1),
|
|
5237
|
+
ruleReason: string().min(1)
|
|
4994
5238
|
});
|
|
4995
|
-
const openMeldDaemonDispatchControllerSnapshotSchema =
|
|
4996
|
-
bindingId:
|
|
4997
|
-
configurationRevision:
|
|
4998
|
-
targetBindingState:
|
|
4999
|
-
targetBindingEnabled:
|
|
5000
|
-
agentControllerRef:
|
|
5239
|
+
const openMeldDaemonDispatchControllerSnapshotSchema = strictObject({
|
|
5240
|
+
bindingId: string().trim().min(1).nullable().optional(),
|
|
5241
|
+
configurationRevision: number().int().positive().optional(),
|
|
5242
|
+
targetBindingState: enumFactory(["bound", "missing"]).describe("Compatibility seed evidence captured at Space handoff time. RuntimeCoordinator head lifecycle and Core Binding lookup remain the Wake outcome authorities."),
|
|
5243
|
+
targetBindingEnabled: boolean().describe("Compatibility seed evidence captured at Space handoff time. RuntimeCoordinator head lifecycle and Core Binding lookup remain the Wake outcome authorities."),
|
|
5244
|
+
agentControllerRef: string().min(1).nullable()
|
|
5001
5245
|
});
|
|
5002
|
-
const openMeldDaemonDispatchSnapshotSchema =
|
|
5246
|
+
const openMeldDaemonDispatchSnapshotSchema = strictObject({
|
|
5003
5247
|
dispatchPolicy: runtimeDispatchPolicySchema,
|
|
5004
5248
|
ruleSource: openMeldDaemonMentionDispatchRuleSourceSchema,
|
|
5005
|
-
ruleId:
|
|
5006
|
-
ruleReason:
|
|
5007
|
-
targetBindingState:
|
|
5008
|
-
targetBindingEnabled:
|
|
5009
|
-
});
|
|
5010
|
-
const openMeldDaemonDispatchSourceSignalSnapshotSchema =
|
|
5011
|
-
text:
|
|
5012
|
-
profileId:
|
|
5013
|
-
profileKind:
|
|
5249
|
+
ruleId: string().min(1),
|
|
5250
|
+
ruleReason: string().min(1),
|
|
5251
|
+
targetBindingState: enumFactory(["bound", "missing"]).describe("Compatibility seed evidence captured at Space handoff time. Do not use this snapshot as Binding authority or per-Wake outcome truth."),
|
|
5252
|
+
targetBindingEnabled: boolean().describe("Compatibility seed evidence captured at Space handoff time. Do not use this snapshot as Binding authority or per-Wake outcome truth.")
|
|
5253
|
+
});
|
|
5254
|
+
const openMeldDaemonDispatchSourceSignalSnapshotSchema = strictObject({
|
|
5255
|
+
text: string().min(1),
|
|
5256
|
+
profileId: string().min(1).nullable(),
|
|
5257
|
+
profileKind: enumFactory([
|
|
5014
5258
|
"agent",
|
|
5015
5259
|
"human",
|
|
5016
5260
|
"system"
|
|
@@ -5021,127 +5265,122 @@ const openMeldDaemonDispatchSourceSignalSnapshotSchema = z$1.strictObject({
|
|
|
5021
5265
|
centerAgentInteractionSource: centerAgentInteractionSourceSchema.optional()
|
|
5022
5266
|
});
|
|
5023
5267
|
const openMeldDaemonDispatchReplyToSnapshotSchema = signalTextReplyToSchema;
|
|
5024
|
-
const openMeldDaemonDispatchContinuitySnapshotSchema =
|
|
5025
|
-
messagesSinceThen:
|
|
5026
|
-
higherAuthorityUpdates:
|
|
5027
|
-
});
|
|
5028
|
-
const openMeldDaemonDispatchOwnerSchema =
|
|
5029
|
-
kind:
|
|
5030
|
-
id:
|
|
5031
|
-
});
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
});
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
openMeldDaemonDispatchQueueLegacyMessageSchemaV1,
|
|
5141
|
-
openMeldDaemonDispatchQueueMessageSchema,
|
|
5142
|
-
remoteAgentNativeDeliveryDeadlineProbeQueueMessageSchema,
|
|
5143
|
-
agentTaskContinuationQueueMessageSchema,
|
|
5144
|
-
agentTaskObservationRedriveQueueMessageSchema
|
|
5268
|
+
const openMeldDaemonDispatchContinuitySnapshotSchema = strictObject({
|
|
5269
|
+
messagesSinceThen: number().int().finite().min(0),
|
|
5270
|
+
higherAuthorityUpdates: boolean()
|
|
5271
|
+
});
|
|
5272
|
+
const openMeldDaemonDispatchOwnerSchema = strictObject({
|
|
5273
|
+
kind: literal("owner_account"),
|
|
5274
|
+
id: string().min(1)
|
|
5275
|
+
});
|
|
5276
|
+
discriminatedUnion("v", [
|
|
5277
|
+
strictObject({
|
|
5278
|
+
v: literal(1),
|
|
5279
|
+
dispatchId: string().min(1),
|
|
5280
|
+
spaceId: string().min(1),
|
|
5281
|
+
sourceEventId: string().min(1),
|
|
5282
|
+
targetProfileId: string().min(1),
|
|
5283
|
+
idempotencyKey: string().min(1),
|
|
5284
|
+
enqueuedAtMs: number().int().nonnegative()
|
|
5285
|
+
}),
|
|
5286
|
+
strictObject({
|
|
5287
|
+
v: literal(2),
|
|
5288
|
+
dispatchId: string().min(1),
|
|
5289
|
+
spaceId: string().min(1),
|
|
5290
|
+
sourceEventId: string().min(1),
|
|
5291
|
+
sourceClientMessageId: string().min(1).max(200).nullable().optional(),
|
|
5292
|
+
dispatchOwner: openMeldDaemonDispatchOwnerSchema.optional(),
|
|
5293
|
+
targetProfileId: string().min(1),
|
|
5294
|
+
targetProfileMentionLabel: spaceMentionLabelSchema.optional(),
|
|
5295
|
+
dispatchChainId: string().min(1),
|
|
5296
|
+
autoRelayDepth: number().int().nonnegative(),
|
|
5297
|
+
visitedProfileIds: array(string().min(1)).max(256).default([]),
|
|
5298
|
+
visitedProfileIdsHash: string().min(1),
|
|
5299
|
+
dispatchContractVersion: number().int().positive(),
|
|
5300
|
+
dispatchPolicy: runtimeDispatchPolicySchema,
|
|
5301
|
+
ruleSource: openMeldDaemonMentionDispatchRuleSourceSchema,
|
|
5302
|
+
ruleId: string().min(1),
|
|
5303
|
+
ruleReason: string().min(1),
|
|
5304
|
+
taskId: string().min(1),
|
|
5305
|
+
transportMode: runtimeTransportModeSchema.nullable(),
|
|
5306
|
+
spacePassword: spacePasswordSchema.optional(),
|
|
5307
|
+
controllerSnapshot: openMeldDaemonDispatchControllerSnapshotSchema,
|
|
5308
|
+
contextIdMappingSpec: runtimeAgentControllerConversationIdMappingSpecSchema.nullable(),
|
|
5309
|
+
dispatchRulesSnapshot: openMeldDaemonDispatchRulesSnapshotSchema,
|
|
5310
|
+
dispatchSnapshot: openMeldDaemonDispatchSnapshotSchema,
|
|
5311
|
+
spaceContractSnapshot: spaceContractSchema.optional(),
|
|
5312
|
+
continuitySnapshot: openMeldDaemonDispatchContinuitySnapshotSchema.optional(),
|
|
5313
|
+
sourceSignalSnapshot: openMeldDaemonDispatchSourceSignalSnapshotSchema.optional(),
|
|
5314
|
+
sourceMessageEnvelope: messageEnvelopeSchema.optional(),
|
|
5315
|
+
replyToSnapshot: openMeldDaemonDispatchReplyToSnapshotSchema.optional(),
|
|
5316
|
+
threadContext: spaceThreadContextSchema.optional(),
|
|
5317
|
+
spaceNameSnapshot: string().min(1).nullable().optional(),
|
|
5318
|
+
sourceProfileNameSnapshot: string().min(1).nullable().optional(),
|
|
5319
|
+
targetProfileNameSnapshot: string().min(1).nullable().optional(),
|
|
5320
|
+
deliveryRecoveryReason: openMeldDaemonDispatchQueueRecoveryReasonSchema.optional(),
|
|
5321
|
+
idempotencyKey: string().min(1),
|
|
5322
|
+
enqueuedAtMs: number().int().nonnegative()
|
|
5323
|
+
}).superRefine((value, context) => {
|
|
5324
|
+
if (value.dispatchSnapshot.dispatchPolicy !== value.dispatchPolicy) context.addIssue({
|
|
5325
|
+
code: ZodIssueCode.custom,
|
|
5326
|
+
path: ["dispatchSnapshot", "dispatchPolicy"],
|
|
5327
|
+
message: "dispatchSnapshot.dispatchPolicy must match dispatchPolicy"
|
|
5328
|
+
});
|
|
5329
|
+
if (value.dispatchSnapshot.ruleSource !== value.ruleSource) context.addIssue({
|
|
5330
|
+
code: ZodIssueCode.custom,
|
|
5331
|
+
path: ["dispatchSnapshot", "ruleSource"],
|
|
5332
|
+
message: "dispatchSnapshot.ruleSource must match ruleSource"
|
|
5333
|
+
});
|
|
5334
|
+
if (value.dispatchSnapshot.ruleId !== value.ruleId) context.addIssue({
|
|
5335
|
+
code: ZodIssueCode.custom,
|
|
5336
|
+
path: ["dispatchSnapshot", "ruleId"],
|
|
5337
|
+
message: "dispatchSnapshot.ruleId must match ruleId"
|
|
5338
|
+
});
|
|
5339
|
+
if (value.dispatchSnapshot.ruleReason !== value.ruleReason) context.addIssue({
|
|
5340
|
+
code: ZodIssueCode.custom,
|
|
5341
|
+
path: ["dispatchSnapshot", "ruleReason"],
|
|
5342
|
+
message: "dispatchSnapshot.ruleReason must match ruleReason"
|
|
5343
|
+
});
|
|
5344
|
+
if (value.dispatchRulesSnapshot.dispatchPolicy !== value.dispatchPolicy || value.dispatchRulesSnapshot.ruleSource !== value.ruleSource || value.dispatchRulesSnapshot.ruleId !== value.ruleId || value.dispatchRulesSnapshot.ruleReason !== value.ruleReason) context.addIssue({
|
|
5345
|
+
code: ZodIssueCode.custom,
|
|
5346
|
+
path: ["dispatchRulesSnapshot"],
|
|
5347
|
+
message: "dispatchRulesSnapshot must match top-level dispatch rule fields"
|
|
5348
|
+
});
|
|
5349
|
+
if (value.controllerSnapshot.targetBindingState !== value.dispatchSnapshot.targetBindingState || value.controllerSnapshot.targetBindingEnabled !== value.dispatchSnapshot.targetBindingEnabled) context.addIssue({
|
|
5350
|
+
code: ZodIssueCode.custom,
|
|
5351
|
+
path: ["controllerSnapshot"],
|
|
5352
|
+
message: "controllerSnapshot target binding fields must match dispatchSnapshot"
|
|
5353
|
+
});
|
|
5354
|
+
}),
|
|
5355
|
+
strictObject({
|
|
5356
|
+
v: literal(3),
|
|
5357
|
+
kind: literal("remote_agent_native_delivery_deadline_probe"),
|
|
5358
|
+
submissionId: string().min(1),
|
|
5359
|
+
idempotencyKey: string().min(1),
|
|
5360
|
+
organizationId: string().min(1),
|
|
5361
|
+
spaceId: string().min(1),
|
|
5362
|
+
dispatchId: string().min(1),
|
|
5363
|
+
enqueuedAtMs: number().int().nonnegative(),
|
|
5364
|
+
deadlineAtMs: number().int().nonnegative()
|
|
5365
|
+
}),
|
|
5366
|
+
strictObject({
|
|
5367
|
+
enqueuedAtMs: number().int().nonnegative(),
|
|
5368
|
+
idempotencyKey: string().trim().min(1).max(512),
|
|
5369
|
+
kind: literal("agent_task_continuation"),
|
|
5370
|
+
subscriptionId: string().trim().min(1).max(512),
|
|
5371
|
+
v: literal(4)
|
|
5372
|
+
}),
|
|
5373
|
+
strictObject({
|
|
5374
|
+
deliveryId: string().trim().min(1).max(1024),
|
|
5375
|
+
enqueuedAtMs: number().int().nonnegative(),
|
|
5376
|
+
idempotencyKey: string().trim().min(1).max(1536),
|
|
5377
|
+
kind: literal("agent_task_observation_redrive"),
|
|
5378
|
+
observation: agentTaskCompletionObservationSchema,
|
|
5379
|
+
ownerUserId: string().trim().min(1).max(512),
|
|
5380
|
+
runtimeCoordinatorExecutionId: string().trim().min(1).max(512),
|
|
5381
|
+
task: agentTaskHandleSchema,
|
|
5382
|
+
v: literal(5)
|
|
5383
|
+
})
|
|
5145
5384
|
]);
|
|
5146
5385
|
//#endregion
|
|
5147
5386
|
//#region ../../packages/schemas/dist/schemas/daemon/local-folder-path.js
|
|
@@ -5336,12 +5575,12 @@ const openMeldSpaceEgressActionSchema = z$1.union([
|
|
|
5336
5575
|
const OPENMELD_DAEMON_TASK_RESULT_SCHEMA_VERSION_PREVIOUS = 3;
|
|
5337
5576
|
const OPENMELD_DAEMON_TASK_RESULT_SCHEMA_VERSION_LEGACY = 2;
|
|
5338
5577
|
const OPENMELD_DAEMON_TASK_RESULT_SCHEMA_VERSION_OLDEST = 1;
|
|
5339
|
-
|
|
5578
|
+
enumFactory([
|
|
5340
5579
|
"success",
|
|
5341
5580
|
"partial_success",
|
|
5342
5581
|
"failed"
|
|
5343
5582
|
]);
|
|
5344
|
-
const openMeldDaemonTaskResultErrorTypeSchema =
|
|
5583
|
+
const openMeldDaemonTaskResultErrorTypeSchema = enumFactory([
|
|
5345
5584
|
"config",
|
|
5346
5585
|
"network",
|
|
5347
5586
|
"adapter",
|
|
@@ -5350,137 +5589,135 @@ const openMeldDaemonTaskResultErrorTypeSchema = z$1.enum([
|
|
|
5350
5589
|
"internal",
|
|
5351
5590
|
"auth"
|
|
5352
5591
|
]);
|
|
5353
|
-
const openMeldDaemonProviderAccessEvidenceProviderSchema =
|
|
5592
|
+
const openMeldDaemonProviderAccessEvidenceProviderSchema = enumFactory([
|
|
5354
5593
|
"claude-code",
|
|
5355
5594
|
"codex",
|
|
5356
5595
|
"opencode",
|
|
5357
5596
|
"openclaw"
|
|
5358
5597
|
]);
|
|
5359
|
-
const openMeldDaemonProviderAccessEvidenceReasonCodeSchema =
|
|
5360
|
-
const openMeldDaemonProviderAccessEvidenceSourceSchema =
|
|
5361
|
-
const openMeldDaemonProviderAccessEvidenceSchema =
|
|
5362
|
-
observedAtMs:
|
|
5598
|
+
const openMeldDaemonProviderAccessEvidenceReasonCodeSchema = enumFactory(["provider_account.organization_access_disabled", "provider_account.subscription_access_unavailable"]);
|
|
5599
|
+
const openMeldDaemonProviderAccessEvidenceSourceSchema = literal("wake_failure");
|
|
5600
|
+
const openMeldDaemonProviderAccessEvidenceSchema = strictObject({
|
|
5601
|
+
observedAtMs: number().int().nonnegative(),
|
|
5363
5602
|
provider: openMeldDaemonProviderAccessEvidenceProviderSchema,
|
|
5364
5603
|
reasonCode: openMeldDaemonProviderAccessEvidenceReasonCodeSchema,
|
|
5365
5604
|
source: openMeldDaemonProviderAccessEvidenceSourceSchema
|
|
5366
5605
|
});
|
|
5367
|
-
const openMeldDaemonTaskResultSpaceActionProvenanceSchema =
|
|
5606
|
+
const openMeldDaemonTaskResultSpaceActionProvenanceSchema = enumFactory([
|
|
5368
5607
|
"cli_action",
|
|
5369
5608
|
"direct",
|
|
5370
5609
|
"local_repair",
|
|
5371
5610
|
"controller_repair"
|
|
5372
5611
|
]);
|
|
5373
|
-
const openMeldDaemonTaskResultSpaceActionFailureRepairModeSchema =
|
|
5612
|
+
const openMeldDaemonTaskResultSpaceActionFailureRepairModeSchema = enumFactory([
|
|
5374
5613
|
"required_check",
|
|
5375
5614
|
"local_synthetic",
|
|
5376
5615
|
"controller_roundtrip"
|
|
5377
5616
|
]);
|
|
5378
|
-
const
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
publicFailureReason: z$1.union([z$1.string().min(1), z$1.null()]).optional().default(null),
|
|
5617
|
+
const openMeldDaemonTaskResultSpaceActionFailureDiagnosticsSchema = strictObject({
|
|
5618
|
+
carrierKind: enumFactory([
|
|
5619
|
+
"fenced_block",
|
|
5620
|
+
"invalid_json",
|
|
5621
|
+
"none",
|
|
5622
|
+
"trailing_json"
|
|
5623
|
+
]),
|
|
5624
|
+
invalidOutputPreview: union([string().min(1), nullFactory()]),
|
|
5625
|
+
publicFailureReason: union([string().min(1), nullFactory()]).optional().default(null),
|
|
5388
5626
|
repairMode: openMeldDaemonTaskResultSpaceActionFailureRepairModeSchema,
|
|
5389
|
-
spaceActionCandidatePresent:
|
|
5390
|
-
spaceActionParseError:
|
|
5627
|
+
spaceActionCandidatePresent: boolean(),
|
|
5628
|
+
spaceActionParseError: union([string().min(1), nullFactory()])
|
|
5391
5629
|
});
|
|
5392
|
-
const openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema =
|
|
5630
|
+
const openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema = enumFactory([
|
|
5393
5631
|
"missing_after_restart",
|
|
5394
5632
|
"missing_before_restart",
|
|
5395
5633
|
"visible",
|
|
5396
5634
|
"visible_after_restart"
|
|
5397
5635
|
]);
|
|
5398
|
-
const openMeldDaemonTaskResultOpenClawGatewayVisibilitySchema =
|
|
5399
|
-
agentId:
|
|
5400
|
-
gatewayRestartAttempted:
|
|
5636
|
+
const openMeldDaemonTaskResultOpenClawGatewayVisibilitySchema = strictObject({
|
|
5637
|
+
agentId: string().min(1),
|
|
5638
|
+
gatewayRestartAttempted: boolean(),
|
|
5401
5639
|
gatewayVisibility: openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema
|
|
5402
5640
|
});
|
|
5403
|
-
const
|
|
5641
|
+
const openMeldDaemonTaskResultOpenClawBindingSchema = strictObject({ classification: enumFactory([
|
|
5404
5642
|
"missing",
|
|
5405
5643
|
"canonical_owned",
|
|
5406
5644
|
"legacy",
|
|
5407
5645
|
"foreign"
|
|
5408
|
-
]);
|
|
5409
|
-
const
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
const openMeldDaemonTaskResultTokenUsageSchema = z$1.strictObject({
|
|
5646
|
+
]) });
|
|
5647
|
+
const openMeldDaemonTaskResultLocalOwnerConflictSchema = strictObject({
|
|
5648
|
+
activeAttemptId: string().min(1).nullable(),
|
|
5649
|
+
activeDispatchId: string().min(1).nullable(),
|
|
5650
|
+
activeExecutionTokenRunId: string().min(1).nullable(),
|
|
5651
|
+
activeRuntimeCoordinatorExecutionId: string().min(1).nullable(),
|
|
5652
|
+
activeTaskId: string().min(1).nullable(),
|
|
5653
|
+
reason: literal("task.owner_conflict"),
|
|
5654
|
+
rejectedAttemptId: string().min(1),
|
|
5655
|
+
rejectedDispatchId: string().min(1),
|
|
5656
|
+
rejectedExecutionTokenRunId: string().min(1).nullable(),
|
|
5657
|
+
rejectedRuntimeCoordinatorExecutionId: string().min(1).nullable(),
|
|
5658
|
+
rejectedTaskId: string().min(1)
|
|
5659
|
+
});
|
|
5660
|
+
const openMeldDaemonTaskResultPromptTraceSchema = strictObject({
|
|
5661
|
+
fingerprint: string().min(1),
|
|
5662
|
+
length: int().nonnegative(),
|
|
5663
|
+
preview: union([string().min(1), nullFactory()])
|
|
5664
|
+
});
|
|
5665
|
+
const openMeldDaemonTaskResultClaimLeaseSchema = strictObject({
|
|
5666
|
+
claimLeaseId: string().min(1),
|
|
5667
|
+
outcome: enumFactory(["existing_lease", "new_lease"]),
|
|
5668
|
+
status: literal("accepted")
|
|
5669
|
+
});
|
|
5670
|
+
const openMeldDaemonTaskResultProjectFailureContextSchema = strictObject({
|
|
5671
|
+
bindingGeneration: string().min(1).optional(),
|
|
5672
|
+
projectId: string().min(1)
|
|
5673
|
+
});
|
|
5674
|
+
const openMeldDaemonTaskResultTokenUsageBreakdownSchema = strictObject({
|
|
5675
|
+
cacheWriteInputTokens: int().nonnegative().optional(),
|
|
5676
|
+
cachedInputTokens: int().nonnegative(),
|
|
5677
|
+
inputTokens: int().nonnegative(),
|
|
5678
|
+
outputTokens: int().nonnegative(),
|
|
5679
|
+
reasoningOutputTokens: int().nonnegative(),
|
|
5680
|
+
totalTokens: int().nonnegative()
|
|
5681
|
+
});
|
|
5682
|
+
const openMeldDaemonTaskResultTokenUsageSchema = strictObject({
|
|
5446
5683
|
last: openMeldDaemonTaskResultTokenUsageBreakdownSchema,
|
|
5447
|
-
modelContextWindow:
|
|
5684
|
+
modelContextWindow: int().nonnegative().nullable(),
|
|
5448
5685
|
total: openMeldDaemonTaskResultTokenUsageBreakdownSchema
|
|
5449
5686
|
});
|
|
5450
|
-
const openMeldDaemonTaskResultTelemetrySchema =
|
|
5451
|
-
completedAtMs:
|
|
5452
|
-
contextCompactionObserved:
|
|
5453
|
-
contextHealed:
|
|
5454
|
-
exitCode:
|
|
5455
|
-
exitObservedAtMs:
|
|
5456
|
-
exitSignal:
|
|
5457
|
-
firstOutputAtMs:
|
|
5458
|
-
firstStderrAtMs:
|
|
5459
|
-
firstStdoutAtMs:
|
|
5460
|
-
invokedAtMs:
|
|
5461
|
-
previewEmitted:
|
|
5462
|
-
processId:
|
|
5463
|
-
processSpawnedAtMs:
|
|
5464
|
-
resumedContext:
|
|
5465
|
-
stdinClosedAtMs:
|
|
5466
|
-
streamingMode:
|
|
5467
|
-
timeoutTriggeredAtMs:
|
|
5687
|
+
const openMeldDaemonTaskResultTelemetrySchema = strictObject({
|
|
5688
|
+
completedAtMs: number().int().nonnegative(),
|
|
5689
|
+
contextCompactionObserved: boolean().optional(),
|
|
5690
|
+
contextHealed: boolean().optional(),
|
|
5691
|
+
exitCode: int().nullable().optional(),
|
|
5692
|
+
exitObservedAtMs: number().int().nonnegative().optional(),
|
|
5693
|
+
exitSignal: string().min(1).nullable().optional(),
|
|
5694
|
+
firstOutputAtMs: number().int().nonnegative().optional(),
|
|
5695
|
+
firstStderrAtMs: number().int().nonnegative().optional(),
|
|
5696
|
+
firstStdoutAtMs: number().int().nonnegative().optional(),
|
|
5697
|
+
invokedAtMs: number().int().nonnegative(),
|
|
5698
|
+
previewEmitted: boolean().optional(),
|
|
5699
|
+
processId: number().int().positive().optional(),
|
|
5700
|
+
processSpawnedAtMs: number().int().nonnegative().optional(),
|
|
5701
|
+
resumedContext: boolean(),
|
|
5702
|
+
stdinClosedAtMs: number().int().nonnegative().optional(),
|
|
5703
|
+
streamingMode: enumFactory(["final", "stream"]).optional(),
|
|
5704
|
+
timeoutTriggeredAtMs: number().int().nonnegative().optional(),
|
|
5468
5705
|
tokenUsage: openMeldDaemonTaskResultTokenUsageSchema.optional()
|
|
5469
5706
|
});
|
|
5470
|
-
const openMeldDaemonTaskResultCommonSchemaV1 =
|
|
5471
|
-
taskId:
|
|
5472
|
-
sourceEventId:
|
|
5473
|
-
agentId:
|
|
5474
|
-
deduped:
|
|
5475
|
-
agentControllerRef:
|
|
5476
|
-
agentControllerConversationId:
|
|
5707
|
+
const openMeldDaemonTaskResultCommonSchemaV1 = strictObject({
|
|
5708
|
+
taskId: string().min(1),
|
|
5709
|
+
sourceEventId: string().min(1),
|
|
5710
|
+
agentId: string().min(1),
|
|
5711
|
+
deduped: boolean(),
|
|
5712
|
+
agentControllerRef: string().min(1).optional(),
|
|
5713
|
+
agentControllerConversationId: string().min(1).optional()
|
|
5477
5714
|
});
|
|
5478
5715
|
const openMeldDaemonTaskResultCommonSchema = openMeldDaemonTaskResultCommonSchemaV1.extend({
|
|
5479
|
-
attemptId:
|
|
5716
|
+
attemptId: string().min(1),
|
|
5480
5717
|
telemetry: openMeldDaemonTaskResultTelemetrySchema.optional(),
|
|
5481
5718
|
agentControllerConversation: agentControllerConversationRefSchema.optional(),
|
|
5482
5719
|
effectiveRuntimeWorkingDirectory: profileWorkingDirectorySchema.optional(),
|
|
5483
|
-
runtimeWorkspaceFingerprint:
|
|
5720
|
+
runtimeWorkspaceFingerprint: string().min(1).optional(),
|
|
5484
5721
|
transportMode: runtimeTransportModeSchema.optional(),
|
|
5485
5722
|
promptTrace: openMeldDaemonTaskResultPromptTraceSchema.optional(),
|
|
5486
5723
|
projectFailureContext: openMeldDaemonTaskResultProjectFailureContextSchema.optional(),
|
|
@@ -5493,44 +5730,41 @@ const openMeldDaemonTaskResultCommonSchema = openMeldDaemonTaskResultCommonSchem
|
|
|
5493
5730
|
spaceAction: openMeldSpaceEgressActionSchema.optional(),
|
|
5494
5731
|
spaceActionFailureDiagnostics: openMeldDaemonTaskResultSpaceActionFailureDiagnosticsSchema.optional(),
|
|
5495
5732
|
spaceActionProvenance: openMeldDaemonTaskResultSpaceActionProvenanceSchema.optional(),
|
|
5496
|
-
suppressPublicOutcome:
|
|
5733
|
+
suppressPublicOutcome: boolean().optional()
|
|
5497
5734
|
});
|
|
5498
5735
|
const openMeldDaemonTaskResultCommonSchemaV3 = openMeldDaemonTaskResultCommonSchemaV1.extend({
|
|
5499
|
-
attemptId:
|
|
5736
|
+
attemptId: string().min(1),
|
|
5500
5737
|
telemetry: openMeldDaemonTaskResultTelemetrySchema.optional(),
|
|
5501
5738
|
agentControllerConversation: agentControllerConversationRefSchema.optional(),
|
|
5502
5739
|
effectiveRuntimeWorkingDirectory: profileWorkingDirectorySchema.optional(),
|
|
5503
|
-
runtimeWorkspaceFingerprint:
|
|
5740
|
+
runtimeWorkspaceFingerprint: string().min(1).optional(),
|
|
5504
5741
|
bootstrapTemplateFacts: bootstrapTemplateFactsSchema.optional(),
|
|
5505
5742
|
dispatchExecution: dispatchExecutionSchema.optional(),
|
|
5506
5743
|
openClawGatewayVisibility: openMeldDaemonTaskResultOpenClawGatewayVisibilitySchema.optional(),
|
|
5507
5744
|
openClawBinding: openMeldDaemonTaskResultOpenClawBindingSchema.optional(),
|
|
5508
5745
|
spaceAction: openMeldSpaceEgressActionSchema.optional(),
|
|
5509
|
-
suppressPublicOutcome:
|
|
5746
|
+
suppressPublicOutcome: boolean().optional()
|
|
5510
5747
|
});
|
|
5511
|
-
const
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
openMeldDaemonTaskResultSuccessPayloadSchema,
|
|
5532
|
-
openMeldDaemonTaskResultPartialSuccessPayloadSchema,
|
|
5533
|
-
openMeldDaemonTaskResultFailedPayloadSchema
|
|
5748
|
+
const openMeldDaemonTaskResultPayloadSchema = discriminatedUnion("status", [
|
|
5749
|
+
openMeldDaemonTaskResultCommonSchema.extend({
|
|
5750
|
+
status: literal("success"),
|
|
5751
|
+
output: string().min(1)
|
|
5752
|
+
}),
|
|
5753
|
+
openMeldDaemonTaskResultCommonSchema.extend({
|
|
5754
|
+
status: literal("partial_success"),
|
|
5755
|
+
output: string().min(1),
|
|
5756
|
+
errorType: openMeldDaemonTaskResultErrorTypeSchema,
|
|
5757
|
+
errorCode: string().min(1).optional(),
|
|
5758
|
+
partialReason: string().min(1),
|
|
5759
|
+
errorMessage: string().min(1).optional()
|
|
5760
|
+
}),
|
|
5761
|
+
openMeldDaemonTaskResultCommonSchema.extend({
|
|
5762
|
+
status: literal("failed"),
|
|
5763
|
+
errorType: openMeldDaemonTaskResultErrorTypeSchema,
|
|
5764
|
+
errorCode: string().min(1).optional(),
|
|
5765
|
+
errorMessage: string().min(1).optional(),
|
|
5766
|
+
providerAccessEvidence: openMeldDaemonProviderAccessEvidenceSchema.optional()
|
|
5767
|
+
})
|
|
5534
5768
|
]).superRefine((value, ctx) => {
|
|
5535
5769
|
const isProjectConnectionFailure = value.status === "failed" && projectLocalConnectionFailureReasonCodeSchema.safeParse(value.errorCode).success;
|
|
5536
5770
|
if (isProjectConnectionFailure && !value.projectFailureContext) ctx.addIssue({
|
|
@@ -5544,127 +5778,119 @@ const openMeldDaemonTaskResultPayloadSchema = z$1.discriminatedUnion("status", [
|
|
|
5544
5778
|
path: ["projectFailureContext"]
|
|
5545
5779
|
});
|
|
5546
5780
|
});
|
|
5547
|
-
const
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
openMeldDaemonTaskResultSuccessPayloadSchemaV3,
|
|
5567
|
-
openMeldDaemonTaskResultPartialSuccessPayloadSchemaV3,
|
|
5568
|
-
openMeldDaemonTaskResultFailedPayloadSchemaV3
|
|
5781
|
+
const openMeldDaemonTaskResultPayloadSchemaV3 = discriminatedUnion("status", [
|
|
5782
|
+
openMeldDaemonTaskResultCommonSchemaV3.extend({
|
|
5783
|
+
status: literal("success"),
|
|
5784
|
+
output: string().min(1)
|
|
5785
|
+
}),
|
|
5786
|
+
openMeldDaemonTaskResultCommonSchemaV3.extend({
|
|
5787
|
+
status: literal("partial_success"),
|
|
5788
|
+
output: string().min(1),
|
|
5789
|
+
errorType: openMeldDaemonTaskResultErrorTypeSchema,
|
|
5790
|
+
errorCode: string().min(1).optional(),
|
|
5791
|
+
partialReason: string().min(1),
|
|
5792
|
+
errorMessage: string().min(1).optional()
|
|
5793
|
+
}),
|
|
5794
|
+
openMeldDaemonTaskResultCommonSchemaV3.extend({
|
|
5795
|
+
status: literal("failed"),
|
|
5796
|
+
errorType: openMeldDaemonTaskResultErrorTypeSchema,
|
|
5797
|
+
errorCode: string().min(1).optional(),
|
|
5798
|
+
errorMessage: string().min(1).optional()
|
|
5799
|
+
})
|
|
5569
5800
|
]);
|
|
5570
|
-
const
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
openMeldDaemonTaskResultSuccessPayloadSchemaV1,
|
|
5590
|
-
openMeldDaemonTaskResultPartialSuccessPayloadSchemaV1,
|
|
5591
|
-
openMeldDaemonTaskResultFailedPayloadSchemaV1
|
|
5801
|
+
const openMeldDaemonTaskResultPayloadSchemaV1 = discriminatedUnion("status", [
|
|
5802
|
+
openMeldDaemonTaskResultCommonSchemaV1.extend({
|
|
5803
|
+
status: literal("success"),
|
|
5804
|
+
output: string().min(1)
|
|
5805
|
+
}),
|
|
5806
|
+
openMeldDaemonTaskResultCommonSchemaV1.extend({
|
|
5807
|
+
status: literal("partial_success"),
|
|
5808
|
+
output: string().min(1),
|
|
5809
|
+
errorType: openMeldDaemonTaskResultErrorTypeSchema,
|
|
5810
|
+
errorCode: string().min(1).optional(),
|
|
5811
|
+
partialReason: string().min(1),
|
|
5812
|
+
errorMessage: string().min(1).optional()
|
|
5813
|
+
}),
|
|
5814
|
+
openMeldDaemonTaskResultCommonSchemaV1.extend({
|
|
5815
|
+
status: literal("failed"),
|
|
5816
|
+
errorType: openMeldDaemonTaskResultErrorTypeSchema,
|
|
5817
|
+
errorCode: string().min(1).optional(),
|
|
5818
|
+
errorMessage: string().min(1).optional()
|
|
5819
|
+
})
|
|
5592
5820
|
]);
|
|
5593
|
-
const openMeldDaemonTaskResultEnvelopeWriteSchema =
|
|
5594
|
-
v:
|
|
5595
|
-
code:
|
|
5821
|
+
const openMeldDaemonTaskResultEnvelopeWriteSchema = strictObject({
|
|
5822
|
+
v: literal(4),
|
|
5823
|
+
code: literal("service.task_result"),
|
|
5596
5824
|
payload: openMeldDaemonTaskResultPayloadSchema
|
|
5597
5825
|
});
|
|
5598
|
-
const openMeldDaemonTaskResultEnvelopeSchemaV3 =
|
|
5599
|
-
v:
|
|
5600
|
-
code:
|
|
5826
|
+
const openMeldDaemonTaskResultEnvelopeSchemaV3 = strictObject({
|
|
5827
|
+
v: literal(OPENMELD_DAEMON_TASK_RESULT_SCHEMA_VERSION_PREVIOUS),
|
|
5828
|
+
code: literal("service.task_result"),
|
|
5601
5829
|
payload: openMeldDaemonTaskResultPayloadSchemaV3
|
|
5602
5830
|
});
|
|
5603
|
-
const
|
|
5604
|
-
v: z$1.literal(OPENMELD_DAEMON_TASK_RESULT_SCHEMA_VERSION_LEGACY),
|
|
5605
|
-
code: z$1.literal("service.task_result"),
|
|
5606
|
-
payload: openMeldDaemonTaskResultPayloadSchemaV3
|
|
5607
|
-
});
|
|
5608
|
-
const openMeldDaemonTaskResultEnvelopeSchemaV1 = z$1.strictObject({
|
|
5609
|
-
v: z$1.literal(OPENMELD_DAEMON_TASK_RESULT_SCHEMA_VERSION_OLDEST),
|
|
5610
|
-
code: z$1.literal("service.task_result"),
|
|
5611
|
-
payload: openMeldDaemonTaskResultPayloadSchemaV1
|
|
5612
|
-
});
|
|
5613
|
-
const openMeldDaemonTaskResultEnvelopeSchema = z$1.union([
|
|
5831
|
+
const openMeldDaemonTaskResultEnvelopeSchema = union([
|
|
5614
5832
|
openMeldDaemonTaskResultEnvelopeWriteSchema,
|
|
5615
|
-
|
|
5833
|
+
strictObject({
|
|
5834
|
+
v: literal(OPENMELD_DAEMON_TASK_RESULT_SCHEMA_VERSION_LEGACY),
|
|
5835
|
+
code: literal("service.task_result"),
|
|
5836
|
+
payload: openMeldDaemonTaskResultPayloadSchemaV3
|
|
5837
|
+
}),
|
|
5616
5838
|
openMeldDaemonTaskResultEnvelopeSchemaV3,
|
|
5617
|
-
|
|
5839
|
+
strictObject({
|
|
5840
|
+
v: literal(OPENMELD_DAEMON_TASK_RESULT_SCHEMA_VERSION_OLDEST),
|
|
5841
|
+
code: literal("service.task_result"),
|
|
5842
|
+
payload: openMeldDaemonTaskResultPayloadSchemaV1
|
|
5843
|
+
})
|
|
5618
5844
|
]);
|
|
5619
5845
|
//#endregion
|
|
5620
5846
|
//#region ../../packages/schemas/dist/schemas/daemon/runtime-transport.js
|
|
5621
5847
|
const CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH = "runtime-transport-epoch-2026-07-default-project";
|
|
5622
|
-
const daemonRuntimeContractSchema =
|
|
5623
|
-
const daemonRuntimeContractReasonCodeSchema =
|
|
5848
|
+
const daemonRuntimeContractSchema = strictObject({ epoch: string().min(1) });
|
|
5849
|
+
const daemonRuntimeContractReasonCodeSchema = enumFactory([
|
|
5624
5850
|
"daemon.runtime_contract.compatible",
|
|
5625
5851
|
"daemon.runtime_contract.missing",
|
|
5626
5852
|
"daemon.runtime_contract.mismatch"
|
|
5627
5853
|
]);
|
|
5628
|
-
const daemonExecutionCompatibilitySchema =
|
|
5629
|
-
status:
|
|
5630
|
-
expectedEpoch:
|
|
5631
|
-
observedEpoch:
|
|
5854
|
+
const daemonExecutionCompatibilitySchema = strictObject({
|
|
5855
|
+
status: enumFactory(["compatible", "update_required"]),
|
|
5856
|
+
expectedEpoch: string().min(1),
|
|
5857
|
+
observedEpoch: union([string().min(1), nullFactory()]),
|
|
5632
5858
|
reasonCode: daemonRuntimeContractReasonCodeSchema
|
|
5633
5859
|
});
|
|
5634
|
-
|
|
5635
|
-
ownerUserId:
|
|
5860
|
+
strictObject({
|
|
5861
|
+
ownerUserId: string().trim().min(1).max(256),
|
|
5636
5862
|
targetProfileId: agentProfileIdSchema
|
|
5637
5863
|
});
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
reasonCode:
|
|
5643
|
-
status:
|
|
5864
|
+
discriminatedUnion("status", [
|
|
5865
|
+
strictObject({ status: literal("active") }),
|
|
5866
|
+
strictObject({ status: literal("inactive") }),
|
|
5867
|
+
strictObject({
|
|
5868
|
+
reasonCode: string().trim().min(1).max(256),
|
|
5869
|
+
status: literal("unavailable")
|
|
5644
5870
|
})
|
|
5645
5871
|
]);
|
|
5646
|
-
|
|
5647
|
-
operationId:
|
|
5648
|
-
ownerUserId:
|
|
5872
|
+
strictObject({
|
|
5873
|
+
operationId: string().trim().min(1).max(256),
|
|
5874
|
+
ownerUserId: string().trim().min(1).max(256),
|
|
5649
5875
|
targetProfileId: agentProfileIdSchema
|
|
5650
5876
|
});
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
expiresAtMs:
|
|
5654
|
-
operationId:
|
|
5655
|
-
status:
|
|
5877
|
+
discriminatedUnion("status", [
|
|
5878
|
+
strictObject({
|
|
5879
|
+
expiresAtMs: number().int().nonnegative(),
|
|
5880
|
+
operationId: string().trim().min(1).max(256),
|
|
5881
|
+
status: literal("acquired")
|
|
5656
5882
|
}),
|
|
5657
|
-
|
|
5658
|
-
reasonCode:
|
|
5659
|
-
status:
|
|
5883
|
+
strictObject({
|
|
5884
|
+
reasonCode: string().trim().min(1).max(256),
|
|
5885
|
+
status: literal("blocked")
|
|
5660
5886
|
}),
|
|
5661
|
-
|
|
5662
|
-
reasonCode:
|
|
5663
|
-
status:
|
|
5887
|
+
strictObject({
|
|
5888
|
+
reasonCode: string().trim().min(1).max(256),
|
|
5889
|
+
status: literal("unavailable")
|
|
5664
5890
|
})
|
|
5665
5891
|
]);
|
|
5666
|
-
|
|
5667
|
-
const runtimeTransportErrorCodeSchema =
|
|
5892
|
+
discriminatedUnion("status", [strictObject({ status: literal("released") }), strictObject({ status: literal("not_owner") })]);
|
|
5893
|
+
const runtimeTransportErrorCodeSchema = enumFactory([
|
|
5668
5894
|
"daemon.session.reject_conflict",
|
|
5669
5895
|
"daemon.session.not_found",
|
|
5670
5896
|
"daemon.session.connection_replaced",
|
|
@@ -5701,261 +5927,261 @@ const runtimeTransportErrorCodeSchema = z$1.enum([
|
|
|
5701
5927
|
"runtime_coordinator.execution_token_scope_mismatch",
|
|
5702
5928
|
"runtime_coordinator.execution_token_unavailable"
|
|
5703
5929
|
]);
|
|
5704
|
-
const runtimeTransportLeaseSchema =
|
|
5705
|
-
profileId:
|
|
5706
|
-
leaseEpoch:
|
|
5707
|
-
});
|
|
5708
|
-
const runtimeTransportCapabilitiesSchema =
|
|
5709
|
-
agentReplyContextReview:
|
|
5710
|
-
informationProtectionPrompt:
|
|
5711
|
-
workingLanguagePrompt:
|
|
5712
|
-
localAgentInteraction:
|
|
5713
|
-
profileConfigurationRevision:
|
|
5930
|
+
const runtimeTransportLeaseSchema = strictObject({
|
|
5931
|
+
profileId: string().min(1),
|
|
5932
|
+
leaseEpoch: number().int().positive()
|
|
5933
|
+
});
|
|
5934
|
+
const runtimeTransportCapabilitiesSchema = strictObject({
|
|
5935
|
+
agentReplyContextReview: literal(true).optional(),
|
|
5936
|
+
informationProtectionPrompt: literal(true).optional(),
|
|
5937
|
+
workingLanguagePrompt: literal(true).optional(),
|
|
5938
|
+
localAgentInteraction: literal(true).optional(),
|
|
5939
|
+
profileConfigurationRevision: literal(true).optional(),
|
|
5714
5940
|
localComponents: localComponentsStatusSchema.optional(),
|
|
5715
5941
|
openMeldToolsControl: openMeldToolsControlCapabilitySchema.optional(),
|
|
5716
|
-
localAgentControl:
|
|
5717
|
-
cancel:
|
|
5718
|
-
interrupt:
|
|
5719
|
-
manageInstallations:
|
|
5720
|
-
forkSession:
|
|
5721
|
-
refreshCatalog:
|
|
5722
|
-
resumeControllerConversation:
|
|
5723
|
-
setEnabled:
|
|
5724
|
-
setProfileWorkspace:
|
|
5942
|
+
localAgentControl: strictObject({
|
|
5943
|
+
cancel: literal(true).optional(),
|
|
5944
|
+
interrupt: literal(true).optional(),
|
|
5945
|
+
manageInstallations: literal(true).optional(),
|
|
5946
|
+
forkSession: literal(true).optional(),
|
|
5947
|
+
refreshCatalog: literal(true).optional(),
|
|
5948
|
+
resumeControllerConversation: literal(true).optional(),
|
|
5949
|
+
setEnabled: literal(true).optional(),
|
|
5950
|
+
setProfileWorkspace: literal(true).optional()
|
|
5725
5951
|
}).optional(),
|
|
5726
|
-
localProjectControl:
|
|
5727
|
-
connectCandidate:
|
|
5728
|
-
connectDeclaredPath:
|
|
5729
|
-
discoverProjects:
|
|
5730
|
-
moveConnection:
|
|
5731
|
-
removeConnection:
|
|
5732
|
-
removeMissingConnections:
|
|
5733
|
-
setDefaultConnection:
|
|
5952
|
+
localProjectControl: strictObject({
|
|
5953
|
+
connectCandidate: literal(true).optional(),
|
|
5954
|
+
connectDeclaredPath: literal(true).optional(),
|
|
5955
|
+
discoverProjects: literal(true).optional(),
|
|
5956
|
+
moveConnection: literal(true).optional(),
|
|
5957
|
+
removeConnection: literal(true).optional(),
|
|
5958
|
+
removeMissingConnections: literal(true).optional(),
|
|
5959
|
+
setDefaultConnection: literal(true).optional()
|
|
5734
5960
|
}).optional(),
|
|
5735
|
-
runtimeAdapters:
|
|
5961
|
+
runtimeAdapters: array(daemonRuntimeAdapterCapabilitySnapshotSchema).min(1).optional()
|
|
5736
5962
|
}).extend({
|
|
5737
|
-
computerFileAccess:
|
|
5738
|
-
readPolicy:
|
|
5739
|
-
updatePolicy:
|
|
5963
|
+
computerFileAccess: strictObject({
|
|
5964
|
+
readPolicy: literal(true).optional(),
|
|
5965
|
+
updatePolicy: literal(true).optional()
|
|
5740
5966
|
}).optional(),
|
|
5741
5967
|
localFolderPicker: localFolderPickerRuntimeCapabilitySchema.optional()
|
|
5742
5968
|
});
|
|
5743
|
-
const localWakeRouteReportSchema =
|
|
5744
|
-
reportedAtMs:
|
|
5745
|
-
daemonSessionId:
|
|
5746
|
-
deviceId:
|
|
5969
|
+
const localWakeRouteReportSchema = strictObject({
|
|
5970
|
+
reportedAtMs: number().int().nonnegative(),
|
|
5971
|
+
daemonSessionId: string().min(1),
|
|
5972
|
+
deviceId: string().min(1),
|
|
5747
5973
|
lane: daemonServiceLaneSchema,
|
|
5748
|
-
serviceVersion:
|
|
5749
|
-
includedProfileIds:
|
|
5750
|
-
profileConfigurationRevisions:
|
|
5751
|
-
bindingId:
|
|
5752
|
-
configurationRevision:
|
|
5753
|
-
profileId:
|
|
5974
|
+
serviceVersion: string().trim().min(1).nullable().optional(),
|
|
5975
|
+
includedProfileIds: array(string().min(1)).max(512),
|
|
5976
|
+
profileConfigurationRevisions: array(strictObject({
|
|
5977
|
+
bindingId: string().min(1),
|
|
5978
|
+
configurationRevision: number().int().positive(),
|
|
5979
|
+
profileId: string().min(1)
|
|
5754
5980
|
})).max(512).optional(),
|
|
5755
|
-
skippedProfiles:
|
|
5981
|
+
skippedProfiles: array(skippedDaemonProfileSchema).max(512)
|
|
5756
5982
|
});
|
|
5757
|
-
const runtimeTransportRejectedProfileRegistrationSchema =
|
|
5758
|
-
profileId:
|
|
5983
|
+
const runtimeTransportRejectedProfileRegistrationSchema = strictObject({
|
|
5984
|
+
profileId: string().min(1),
|
|
5759
5985
|
reasonCode: runtimeTransportErrorCodeSchema,
|
|
5760
|
-
rejectedAtMs:
|
|
5761
|
-
daemonSessionId:
|
|
5762
|
-
deviceId:
|
|
5986
|
+
rejectedAtMs: number().int().nonnegative(),
|
|
5987
|
+
daemonSessionId: string().min(1),
|
|
5988
|
+
deviceId: string().min(1),
|
|
5763
5989
|
lane: daemonServiceLaneSchema,
|
|
5764
|
-
serviceVersion:
|
|
5990
|
+
serviceVersion: string().trim().min(1).nullable().optional()
|
|
5765
5991
|
});
|
|
5766
|
-
const runtimeTransportRegisterSessionRequestSchema =
|
|
5767
|
-
v:
|
|
5768
|
-
ownerUserId:
|
|
5769
|
-
deviceId:
|
|
5992
|
+
const runtimeTransportRegisterSessionRequestSchema = strictObject({
|
|
5993
|
+
v: literal(1),
|
|
5994
|
+
ownerUserId: string().min(1),
|
|
5995
|
+
deviceId: string().min(1),
|
|
5770
5996
|
lane: daemonServiceLaneSchema,
|
|
5771
|
-
daemonSessionId:
|
|
5772
|
-
serviceVersion:
|
|
5773
|
-
connectionGeneration:
|
|
5774
|
-
profileIds:
|
|
5997
|
+
daemonSessionId: string().min(1),
|
|
5998
|
+
serviceVersion: string().trim().min(1).optional(),
|
|
5999
|
+
connectionGeneration: number().int().positive(),
|
|
6000
|
+
profileIds: array(string().min(1)).max(512),
|
|
5775
6001
|
localWakeRouteReport: localWakeRouteReportSchema.optional(),
|
|
5776
6002
|
capabilities: runtimeTransportCapabilitiesSchema,
|
|
5777
6003
|
runtimeContract: daemonRuntimeContractSchema.optional(),
|
|
5778
|
-
connectedAtMs:
|
|
5779
|
-
});
|
|
5780
|
-
const runtimeTransportRegisterSessionResponseSchema =
|
|
5781
|
-
ok:
|
|
5782
|
-
connectionGeneration:
|
|
5783
|
-
acceptedLeases:
|
|
5784
|
-
rejectedProfiles:
|
|
5785
|
-
profileId:
|
|
6004
|
+
connectedAtMs: number().int().nonnegative()
|
|
6005
|
+
});
|
|
6006
|
+
const runtimeTransportRegisterSessionResponseSchema = strictObject({
|
|
6007
|
+
ok: boolean(),
|
|
6008
|
+
connectionGeneration: number().int().positive(),
|
|
6009
|
+
acceptedLeases: array(runtimeTransportLeaseSchema),
|
|
6010
|
+
rejectedProfiles: array(strictObject({
|
|
6011
|
+
profileId: string().min(1),
|
|
5786
6012
|
reasonCode: runtimeTransportErrorCodeSchema
|
|
5787
6013
|
}))
|
|
5788
6014
|
});
|
|
5789
|
-
const runtimeTransportHeartbeatRequestSchema =
|
|
5790
|
-
v:
|
|
5791
|
-
ownerUserId:
|
|
5792
|
-
deviceId:
|
|
6015
|
+
const runtimeTransportHeartbeatRequestSchema = strictObject({
|
|
6016
|
+
v: literal(1),
|
|
6017
|
+
ownerUserId: string().min(1),
|
|
6018
|
+
deviceId: string().min(1),
|
|
5793
6019
|
lane: daemonServiceLaneSchema,
|
|
5794
|
-
daemonSessionId:
|
|
5795
|
-
acceptingDispatches:
|
|
6020
|
+
daemonSessionId: string().min(1),
|
|
6021
|
+
acceptingDispatches: boolean().optional(),
|
|
5796
6022
|
stopCause: runtimeTransportStopCauseSchema.optional(),
|
|
5797
|
-
serviceVersion:
|
|
5798
|
-
leases:
|
|
6023
|
+
serviceVersion: string().trim().min(1).optional(),
|
|
6024
|
+
leases: array(runtimeTransportLeaseSchema).max(512),
|
|
5799
6025
|
capabilities: runtimeTransportCapabilitiesSchema.optional(),
|
|
5800
6026
|
runtimeContract: daemonRuntimeContractSchema.optional(),
|
|
5801
|
-
sentAtMs:
|
|
6027
|
+
sentAtMs: number().int().nonnegative()
|
|
5802
6028
|
});
|
|
5803
|
-
const runtimeTransportHeartbeatResponseSchema =
|
|
5804
|
-
ok:
|
|
5805
|
-
serverNowMs:
|
|
5806
|
-
staleLeases:
|
|
6029
|
+
const runtimeTransportHeartbeatResponseSchema = strictObject({
|
|
6030
|
+
ok: boolean(),
|
|
6031
|
+
serverNowMs: number().int().nonnegative(),
|
|
6032
|
+
staleLeases: array(runtimeTransportLeaseSchema),
|
|
5807
6033
|
reasonCode: runtimeTransportErrorCodeSchema.optional()
|
|
5808
6034
|
});
|
|
5809
|
-
const runtimeTransportRouteCatalogChangedReasonSchema =
|
|
5810
|
-
const runtimeTransportRouteCatalogChangedFramePayloadSchema =
|
|
5811
|
-
|
|
5812
|
-
v:
|
|
5813
|
-
ownerUserId:
|
|
6035
|
+
const runtimeTransportRouteCatalogChangedReasonSchema = string().trim().min(1).max(100);
|
|
6036
|
+
const runtimeTransportRouteCatalogChangedFramePayloadSchema = strictObject({ reason: runtimeTransportRouteCatalogChangedReasonSchema });
|
|
6037
|
+
strictObject({
|
|
6038
|
+
v: literal(1),
|
|
6039
|
+
ownerUserId: string().min(1),
|
|
5814
6040
|
reason: runtimeTransportRouteCatalogChangedReasonSchema,
|
|
5815
|
-
affectedProfileIds:
|
|
6041
|
+
affectedProfileIds: array(string().trim().min(1)).max(200).optional()
|
|
5816
6042
|
});
|
|
5817
|
-
|
|
5818
|
-
ok:
|
|
5819
|
-
notifiedSessions:
|
|
6043
|
+
strictObject({
|
|
6044
|
+
ok: boolean(),
|
|
6045
|
+
notifiedSessions: number().int().nonnegative()
|
|
5820
6046
|
});
|
|
5821
|
-
|
|
5822
|
-
v:
|
|
5823
|
-
ownerUserId:
|
|
6047
|
+
strictObject({
|
|
6048
|
+
v: literal(1),
|
|
6049
|
+
ownerUserId: string().min(1)
|
|
5824
6050
|
});
|
|
5825
|
-
const runtimeTransportLiveSessionSchema =
|
|
5826
|
-
daemonSessionId:
|
|
5827
|
-
deviceId:
|
|
6051
|
+
const runtimeTransportLiveSessionSchema = strictObject({
|
|
6052
|
+
daemonSessionId: string().min(1),
|
|
6053
|
+
deviceId: string().min(1),
|
|
5828
6054
|
lane: daemonServiceLaneSchema,
|
|
5829
|
-
serviceVersion:
|
|
5830
|
-
connectionGeneration:
|
|
5831
|
-
lastHeartbeatMs:
|
|
6055
|
+
serviceVersion: string().trim().min(1).nullable().optional(),
|
|
6056
|
+
connectionGeneration: number().int().positive(),
|
|
6057
|
+
lastHeartbeatMs: number().int().nonnegative(),
|
|
5832
6058
|
capabilities: runtimeTransportCapabilitiesSchema,
|
|
5833
6059
|
executionCompatibility: daemonExecutionCompatibilitySchema
|
|
5834
6060
|
});
|
|
5835
|
-
|
|
5836
|
-
online:
|
|
5837
|
-
sessions:
|
|
5838
|
-
}),
|
|
5839
|
-
online:
|
|
6061
|
+
discriminatedUnion("online", [strictObject({
|
|
6062
|
+
online: literal(true),
|
|
6063
|
+
sessions: array(runtimeTransportLiveSessionSchema).min(1)
|
|
6064
|
+
}), strictObject({
|
|
6065
|
+
online: literal(false),
|
|
5840
6066
|
reasonCode: runtimeTransportErrorCodeSchema
|
|
5841
6067
|
})]);
|
|
5842
|
-
const runtimeTransportSocketDisconnectClassSchema =
|
|
6068
|
+
const runtimeTransportSocketDisconnectClassSchema = enumFactory([
|
|
5843
6069
|
"abnormal_socket_close",
|
|
5844
6070
|
"normal_shutdown",
|
|
5845
6071
|
"possible_deploy_or_edge_restart"
|
|
5846
6072
|
]);
|
|
5847
|
-
const runtimeTransportSocketCloseReasonCodeSchema =
|
|
6073
|
+
const runtimeTransportSocketCloseReasonCodeSchema = enumFactory([
|
|
5848
6074
|
"abnormal_closure",
|
|
5849
6075
|
"going_away",
|
|
5850
6076
|
"normal_closure",
|
|
5851
6077
|
"other",
|
|
5852
6078
|
"socket_error"
|
|
5853
6079
|
]);
|
|
5854
|
-
const runtimeTransportSocketDisconnectRateBucketSchema =
|
|
5855
|
-
hourStartMs:
|
|
6080
|
+
const runtimeTransportSocketDisconnectRateBucketSchema = strictObject({
|
|
6081
|
+
hourStartMs: number().int().nonnegative(),
|
|
5856
6082
|
disconnectClass: runtimeTransportSocketDisconnectClassSchema,
|
|
5857
|
-
deployAdjacentReason:
|
|
5858
|
-
count:
|
|
5859
|
-
firstObservedAtMs:
|
|
5860
|
-
lastObservedAtMs:
|
|
6083
|
+
deployAdjacentReason: string().trim().min(1).max(100).nullable(),
|
|
6084
|
+
count: number().int().positive(),
|
|
6085
|
+
firstObservedAtMs: number().int().nonnegative(),
|
|
6086
|
+
lastObservedAtMs: number().int().nonnegative()
|
|
5861
6087
|
});
|
|
5862
|
-
const runtimeTransportSessionDisconnectDiagnosticSchema =
|
|
5863
|
-
closeCode:
|
|
6088
|
+
const runtimeTransportSessionDisconnectDiagnosticSchema = strictObject({
|
|
6089
|
+
closeCode: number().int().nonnegative().max(4999),
|
|
5864
6090
|
closeReasonCode: runtimeTransportSocketCloseReasonCodeSchema,
|
|
5865
|
-
connectedAtMs:
|
|
5866
|
-
connectionGeneration:
|
|
5867
|
-
daemonSessionId:
|
|
5868
|
-
deployAdjacentReason:
|
|
5869
|
-
deviceId:
|
|
5870
|
-
disconnectedAtMs:
|
|
6091
|
+
connectedAtMs: number().int().nonnegative(),
|
|
6092
|
+
connectionGeneration: number().int().positive(),
|
|
6093
|
+
daemonSessionId: string().min(1).max(128),
|
|
6094
|
+
deployAdjacentReason: string().trim().min(1).max(100).nullable(),
|
|
6095
|
+
deviceId: string().min(1).max(128),
|
|
6096
|
+
disconnectedAtMs: number().int().nonnegative(),
|
|
5871
6097
|
disconnectClass: runtimeTransportSocketDisconnectClassSchema,
|
|
5872
|
-
durationMs:
|
|
5873
|
-
heartbeatAgeMs:
|
|
6098
|
+
durationMs: number().int().nonnegative(),
|
|
6099
|
+
heartbeatAgeMs: number().int().nonnegative(),
|
|
5874
6100
|
lane: daemonServiceLaneSchema,
|
|
5875
|
-
lastHeartbeatMs:
|
|
5876
|
-
profileCount:
|
|
5877
|
-
profileIds:
|
|
5878
|
-
serviceVersion:
|
|
5879
|
-
wasClean:
|
|
5880
|
-
});
|
|
5881
|
-
|
|
5882
|
-
ok:
|
|
5883
|
-
ownerUserId:
|
|
5884
|
-
windowMs:
|
|
5885
|
-
buckets:
|
|
5886
|
-
recentSessions:
|
|
5887
|
-
}),
|
|
5888
|
-
ok:
|
|
5889
|
-
reasonCode:
|
|
5890
|
-
buckets:
|
|
5891
|
-
recentSessions:
|
|
6101
|
+
lastHeartbeatMs: number().int().nonnegative(),
|
|
6102
|
+
profileCount: number().int().nonnegative(),
|
|
6103
|
+
profileIds: array(string().min(1).max(128)).max(20),
|
|
6104
|
+
serviceVersion: string().trim().min(1).max(64).nullable(),
|
|
6105
|
+
wasClean: boolean()
|
|
6106
|
+
});
|
|
6107
|
+
discriminatedUnion("ok", [strictObject({
|
|
6108
|
+
ok: literal(true),
|
|
6109
|
+
ownerUserId: string().min(1).nullable(),
|
|
6110
|
+
windowMs: number().int().nonnegative(),
|
|
6111
|
+
buckets: array(runtimeTransportSocketDisconnectRateBucketSchema),
|
|
6112
|
+
recentSessions: array(runtimeTransportSessionDisconnectDiagnosticSchema).max(20).optional()
|
|
6113
|
+
}), strictObject({
|
|
6114
|
+
ok: literal(false),
|
|
6115
|
+
reasonCode: string().trim().min(1),
|
|
6116
|
+
buckets: array(runtimeTransportSocketDisconnectRateBucketSchema).length(0),
|
|
6117
|
+
recentSessions: array(runtimeTransportSessionDisconnectDiagnosticSchema).length(0).optional()
|
|
5892
6118
|
})]);
|
|
5893
|
-
|
|
5894
|
-
v:
|
|
5895
|
-
ownerUserId:
|
|
5896
|
-
deviceId:
|
|
6119
|
+
strictObject({
|
|
6120
|
+
v: literal(1),
|
|
6121
|
+
ownerUserId: string().min(1),
|
|
6122
|
+
deviceId: string().min(1),
|
|
5897
6123
|
lane: daemonServiceLaneSchema,
|
|
5898
|
-
agentId:
|
|
5899
|
-
enabled:
|
|
6124
|
+
agentId: string().trim().min(1).max(256),
|
|
6125
|
+
enabled: boolean()
|
|
5900
6126
|
});
|
|
5901
|
-
|
|
5902
|
-
status:
|
|
6127
|
+
discriminatedUnion("status", [strictObject({
|
|
6128
|
+
status: literal("accepted"),
|
|
5903
6129
|
payload: openMeldDaemonSetLocalAgentEnabledPayloadSchema
|
|
5904
|
-
}),
|
|
5905
|
-
status:
|
|
5906
|
-
reasonCode:
|
|
5907
|
-
message:
|
|
6130
|
+
}), strictObject({
|
|
6131
|
+
status: literal("rejected"),
|
|
6132
|
+
reasonCode: string().min(1),
|
|
6133
|
+
message: string().min(1)
|
|
5908
6134
|
})]);
|
|
5909
|
-
|
|
5910
|
-
v:
|
|
5911
|
-
ownerUserId:
|
|
5912
|
-
deviceId:
|
|
6135
|
+
strictObject({
|
|
6136
|
+
v: literal(1),
|
|
6137
|
+
ownerUserId: string().min(1),
|
|
6138
|
+
deviceId: string().min(1),
|
|
5913
6139
|
lane: daemonServiceLaneSchema,
|
|
5914
6140
|
request: openMeldDaemonManageLocalAgentInstallationRequestPayloadSchema
|
|
5915
6141
|
});
|
|
5916
|
-
|
|
5917
|
-
status:
|
|
6142
|
+
discriminatedUnion("status", [strictObject({
|
|
6143
|
+
status: literal("accepted"),
|
|
5918
6144
|
payload: openMeldDaemonManageLocalAgentInstallationPayloadSchema
|
|
5919
|
-
}),
|
|
5920
|
-
status:
|
|
5921
|
-
reasonCode:
|
|
5922
|
-
message:
|
|
6145
|
+
}), strictObject({
|
|
6146
|
+
status: literal("rejected"),
|
|
6147
|
+
reasonCode: string().min(1),
|
|
6148
|
+
message: string().min(1)
|
|
5923
6149
|
})]);
|
|
5924
|
-
|
|
5925
|
-
v:
|
|
5926
|
-
ownerUserId:
|
|
5927
|
-
deviceId:
|
|
6150
|
+
strictObject({
|
|
6151
|
+
v: literal(1),
|
|
6152
|
+
ownerUserId: string().min(1),
|
|
6153
|
+
deviceId: string().min(1),
|
|
5928
6154
|
lane: daemonServiceLaneSchema,
|
|
5929
|
-
requestId:
|
|
6155
|
+
requestId: string().min(1),
|
|
5930
6156
|
request: openMeldToolsControlRequestSchema
|
|
5931
6157
|
});
|
|
5932
|
-
|
|
5933
|
-
status:
|
|
6158
|
+
discriminatedUnion("status", [strictObject({
|
|
6159
|
+
status: literal("accepted"),
|
|
5934
6160
|
result: openMeldToolsControlResultSchema
|
|
5935
|
-
}),
|
|
5936
|
-
status:
|
|
5937
|
-
reasonCode:
|
|
5938
|
-
message:
|
|
6161
|
+
}), strictObject({
|
|
6162
|
+
status: literal("rejected"),
|
|
6163
|
+
reasonCode: string().min(1),
|
|
6164
|
+
message: string().min(1)
|
|
5939
6165
|
})]);
|
|
5940
|
-
|
|
5941
|
-
v:
|
|
5942
|
-
ownerUserId:
|
|
5943
|
-
deviceId:
|
|
6166
|
+
strictObject({
|
|
6167
|
+
v: literal(1),
|
|
6168
|
+
ownerUserId: string().min(1),
|
|
6169
|
+
deviceId: string().min(1),
|
|
5944
6170
|
lane: daemonServiceLaneSchema,
|
|
5945
|
-
reason:
|
|
6171
|
+
reason: string().trim().min(1).max(120)
|
|
5946
6172
|
});
|
|
5947
|
-
|
|
5948
|
-
status:
|
|
6173
|
+
discriminatedUnion("status", [strictObject({
|
|
6174
|
+
status: literal("accepted"),
|
|
5949
6175
|
payload: openMeldDaemonSyncRouteCatalogPayloadSchema
|
|
5950
|
-
}),
|
|
5951
|
-
status:
|
|
5952
|
-
reasonCode:
|
|
5953
|
-
message:
|
|
6176
|
+
}), strictObject({
|
|
6177
|
+
status: literal("rejected"),
|
|
6178
|
+
reasonCode: string().min(1),
|
|
6179
|
+
message: string().min(1)
|
|
5954
6180
|
})]);
|
|
5955
|
-
|
|
5956
|
-
v:
|
|
5957
|
-
ownerUserId:
|
|
5958
|
-
deviceId:
|
|
6181
|
+
strictObject({
|
|
6182
|
+
v: literal(1),
|
|
6183
|
+
ownerUserId: string().min(1),
|
|
6184
|
+
deviceId: string().min(1),
|
|
5959
6185
|
lane: daemonServiceLaneSchema,
|
|
5960
6186
|
targetProfileId: agentProfileIdSchema,
|
|
5961
6187
|
workspaceMode: profileWorkspaceModeSchema,
|
|
@@ -5972,75 +6198,75 @@ z$1.strictObject({
|
|
|
5972
6198
|
path: ["workspacePath"]
|
|
5973
6199
|
});
|
|
5974
6200
|
});
|
|
5975
|
-
|
|
5976
|
-
status:
|
|
6201
|
+
discriminatedUnion("status", [strictObject({
|
|
6202
|
+
status: literal("accepted"),
|
|
5977
6203
|
payload: openMeldDaemonSetProfileWorkspacePayloadSchema
|
|
5978
|
-
}),
|
|
5979
|
-
status:
|
|
5980
|
-
reasonCode:
|
|
5981
|
-
message:
|
|
6204
|
+
}), strictObject({
|
|
6205
|
+
status: literal("rejected"),
|
|
6206
|
+
reasonCode: string().min(1),
|
|
6207
|
+
message: string().min(1)
|
|
5982
6208
|
})]);
|
|
5983
|
-
const agentSessionForkOperationSchema =
|
|
6209
|
+
const agentSessionForkOperationSchema = strictObject({
|
|
5984
6210
|
agentControllerRef: agentControllerRefSchema,
|
|
5985
|
-
operationId:
|
|
5986
|
-
organizationId:
|
|
5987
|
-
profileName:
|
|
5988
|
-
projectId:
|
|
5989
|
-
sourceNativeSessionId:
|
|
6211
|
+
operationId: string().trim().min(1).max(256),
|
|
6212
|
+
organizationId: string().trim().min(1).max(256),
|
|
6213
|
+
profileName: string().trim().min(1).max(64),
|
|
6214
|
+
projectId: string().trim().min(1).max(256),
|
|
6215
|
+
sourceNativeSessionId: string().trim().min(1).max(512)
|
|
5990
6216
|
});
|
|
5991
6217
|
agentSessionForkOperationSchema.extend({
|
|
5992
|
-
v:
|
|
5993
|
-
ownerUserId:
|
|
5994
|
-
deviceId:
|
|
6218
|
+
v: literal(1),
|
|
6219
|
+
ownerUserId: string().trim().min(1),
|
|
6220
|
+
deviceId: string().trim().min(1),
|
|
5995
6221
|
lane: daemonServiceLaneSchema
|
|
5996
6222
|
});
|
|
5997
|
-
const runtimeTransportForkAgentSessionResultSchema =
|
|
6223
|
+
const runtimeTransportForkAgentSessionResultSchema = discriminatedUnion("status", [
|
|
5998
6224
|
agentSessionForkOperationSchema.extend({
|
|
5999
|
-
childNativeSessionId:
|
|
6000
|
-
status:
|
|
6225
|
+
childNativeSessionId: string().trim().min(1).max(512),
|
|
6226
|
+
status: literal("completed")
|
|
6001
6227
|
}),
|
|
6002
6228
|
agentSessionForkOperationSchema.extend({
|
|
6003
|
-
message:
|
|
6004
|
-
reasonCode:
|
|
6005
|
-
status:
|
|
6229
|
+
message: string().trim().min(1).max(1e3),
|
|
6230
|
+
reasonCode: string().trim().min(1).max(256),
|
|
6231
|
+
status: literal("rejected")
|
|
6006
6232
|
}),
|
|
6007
6233
|
agentSessionForkOperationSchema.extend({
|
|
6008
|
-
message:
|
|
6009
|
-
reasonCode:
|
|
6010
|
-
status:
|
|
6234
|
+
message: string().trim().min(1).max(1e3),
|
|
6235
|
+
reasonCode: string().trim().min(1).max(256),
|
|
6236
|
+
status: literal("outcome_unknown")
|
|
6011
6237
|
})
|
|
6012
6238
|
]);
|
|
6013
|
-
const runtimeTransportLocalAgentControlForkSessionFramePayloadSchema =
|
|
6014
|
-
requestId:
|
|
6239
|
+
const runtimeTransportLocalAgentControlForkSessionFramePayloadSchema = strictObject({
|
|
6240
|
+
requestId: string().min(1),
|
|
6015
6241
|
request: agentSessionForkOperationSchema
|
|
6016
6242
|
});
|
|
6017
|
-
const runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema =
|
|
6018
|
-
requestId:
|
|
6243
|
+
const runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema = strictObject({
|
|
6244
|
+
requestId: string().min(1),
|
|
6019
6245
|
payload: openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema
|
|
6020
6246
|
});
|
|
6021
|
-
const runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema =
|
|
6022
|
-
requestId:
|
|
6247
|
+
const runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema = strictObject({
|
|
6248
|
+
requestId: string().min(1),
|
|
6023
6249
|
payload: openMeldDaemonManageLocalAgentInstallationRequestPayloadSchema
|
|
6024
6250
|
});
|
|
6025
|
-
const runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema =
|
|
6026
|
-
requestId:
|
|
6251
|
+
const runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema = strictObject({
|
|
6252
|
+
requestId: string().min(1),
|
|
6027
6253
|
payload: openMeldDaemonSyncRouteCatalogRequestPayloadSchema
|
|
6028
6254
|
});
|
|
6029
|
-
const runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema =
|
|
6030
|
-
requestId:
|
|
6255
|
+
const runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema = strictObject({
|
|
6256
|
+
requestId: string().min(1),
|
|
6031
6257
|
payload: openMeldDaemonSetProfileWorkspaceRequestPayloadSchema
|
|
6032
6258
|
});
|
|
6033
|
-
const runtimeTransportLocalAgentControlCancelFramePayloadSchema =
|
|
6034
|
-
requestId:
|
|
6259
|
+
const runtimeTransportLocalAgentControlCancelFramePayloadSchema = strictObject({
|
|
6260
|
+
requestId: string().min(1),
|
|
6035
6261
|
payload: openMeldDaemonCancelRequestPayloadSchema
|
|
6036
6262
|
});
|
|
6037
|
-
const runtimeTransportLocalAgentControlInterruptFramePayloadSchema =
|
|
6038
|
-
requestId:
|
|
6263
|
+
const runtimeTransportLocalAgentControlInterruptFramePayloadSchema = strictObject({
|
|
6264
|
+
requestId: string().min(1),
|
|
6039
6265
|
payload: openMeldDaemonInterruptRequestPayloadSchema
|
|
6040
6266
|
});
|
|
6041
|
-
|
|
6042
|
-
requestId:
|
|
6043
|
-
payload:
|
|
6267
|
+
strictObject({
|
|
6268
|
+
requestId: string().min(1),
|
|
6269
|
+
payload: union([
|
|
6044
6270
|
openMeldDaemonManageLocalAgentInstallationPayloadSchema,
|
|
6045
6271
|
openMeldDaemonSetLocalAgentEnabledPayloadSchema,
|
|
6046
6272
|
openMeldDaemonSetProfileWorkspacePayloadSchema,
|
|
@@ -6050,228 +6276,228 @@ z$1.strictObject({
|
|
|
6050
6276
|
runtimeTransportForkAgentSessionResultSchema
|
|
6051
6277
|
])
|
|
6052
6278
|
});
|
|
6053
|
-
const runtimeTransportOpenMeldToolsControlFramePayloadSchema =
|
|
6054
|
-
requestId:
|
|
6279
|
+
const runtimeTransportOpenMeldToolsControlFramePayloadSchema = strictObject({
|
|
6280
|
+
requestId: string().min(1),
|
|
6055
6281
|
request: openMeldToolsControlRequestSchema
|
|
6056
6282
|
});
|
|
6057
|
-
const runtimeTransportOpenMeldToolsControlResultFramePayloadSchema =
|
|
6058
|
-
requestId:
|
|
6283
|
+
const runtimeTransportOpenMeldToolsControlResultFramePayloadSchema = strictObject({
|
|
6284
|
+
requestId: string().min(1),
|
|
6059
6285
|
result: openMeldToolsControlResultSchema
|
|
6060
6286
|
});
|
|
6061
|
-
|
|
6062
|
-
v:
|
|
6063
|
-
ownerUserId:
|
|
6287
|
+
strictObject({
|
|
6288
|
+
v: literal(1),
|
|
6289
|
+
ownerUserId: string().trim().min(1),
|
|
6064
6290
|
identity: executionRecoveryIdentitySchema,
|
|
6065
6291
|
destination: executionRecoveryDestinationSchema
|
|
6066
6292
|
});
|
|
6067
|
-
|
|
6068
|
-
status:
|
|
6069
|
-
exactAssociationVerified:
|
|
6070
|
-
serviceSupportsResume:
|
|
6293
|
+
discriminatedUnion("status", [strictObject({
|
|
6294
|
+
status: literal("available"),
|
|
6295
|
+
exactAssociationVerified: literal(true),
|
|
6296
|
+
serviceSupportsResume: literal(true),
|
|
6071
6297
|
identity: executionRecoveryIdentitySchema,
|
|
6072
|
-
reasonCode:
|
|
6073
|
-
}),
|
|
6074
|
-
status:
|
|
6075
|
-
exactAssociationVerified:
|
|
6298
|
+
reasonCode: literal("execution_recovery.exact_controller_conversation_available")
|
|
6299
|
+
}), strictObject({
|
|
6300
|
+
status: literal("unavailable"),
|
|
6301
|
+
exactAssociationVerified: boolean(),
|
|
6076
6302
|
identity: executionRecoveryIdentitySchema.nullable(),
|
|
6077
|
-
serviceSupportsResume:
|
|
6078
|
-
reasonCode:
|
|
6303
|
+
serviceSupportsResume: boolean(),
|
|
6304
|
+
reasonCode: string().trim().min(1)
|
|
6079
6305
|
})]);
|
|
6080
|
-
|
|
6081
|
-
v:
|
|
6082
|
-
ownerUserId:
|
|
6083
|
-
operationId:
|
|
6306
|
+
strictObject({
|
|
6307
|
+
v: literal(1),
|
|
6308
|
+
ownerUserId: string().trim().min(1),
|
|
6309
|
+
operationId: string().trim().min(1),
|
|
6084
6310
|
identity: executionRecoveryIdentitySchema,
|
|
6085
6311
|
destination: executionRecoveryDestinationSchema,
|
|
6086
|
-
providerRuntimeWorkingDirectory:
|
|
6312
|
+
providerRuntimeWorkingDirectory: string().trim().min(1).max(4096)
|
|
6087
6313
|
});
|
|
6088
|
-
const runtimeTransportResumeControllerConversationFramePayloadSchema =
|
|
6089
|
-
requestId:
|
|
6090
|
-
operationId:
|
|
6314
|
+
const runtimeTransportResumeControllerConversationFramePayloadSchema = strictObject({
|
|
6315
|
+
requestId: string().trim().min(1),
|
|
6316
|
+
operationId: string().trim().min(1),
|
|
6091
6317
|
identity: executionRecoveryIdentitySchema,
|
|
6092
6318
|
destination: executionRecoveryDestinationSchema,
|
|
6093
|
-
providerRuntimeWorkingDirectory:
|
|
6094
|
-
sourceEventId:
|
|
6319
|
+
providerRuntimeWorkingDirectory: string().trim().min(1).max(4096),
|
|
6320
|
+
sourceEventId: string().trim().min(1),
|
|
6095
6321
|
transportMode: runtimeTransportModeSchema
|
|
6096
6322
|
});
|
|
6097
|
-
const runtimeTransportResumeControllerConversationResultSchema =
|
|
6098
|
-
status:
|
|
6099
|
-
operationId:
|
|
6323
|
+
const runtimeTransportResumeControllerConversationResultSchema = discriminatedUnion("status", [strictObject({
|
|
6324
|
+
status: literal("completed"),
|
|
6325
|
+
operationId: string().trim().min(1),
|
|
6100
6326
|
identity: executionRecoveryIdentitySchema,
|
|
6101
6327
|
destination: executionRecoveryDestinationSchema,
|
|
6102
|
-
output:
|
|
6103
|
-
agentControllerConversationId:
|
|
6104
|
-
}),
|
|
6105
|
-
status:
|
|
6106
|
-
operationId:
|
|
6328
|
+
output: string().trim().min(1),
|
|
6329
|
+
agentControllerConversationId: string().trim().min(1)
|
|
6330
|
+
}), strictObject({
|
|
6331
|
+
status: enumFactory(["outcome_unknown", "rejected"]),
|
|
6332
|
+
operationId: string().trim().min(1),
|
|
6107
6333
|
identity: executionRecoveryIdentitySchema,
|
|
6108
6334
|
destination: executionRecoveryDestinationSchema,
|
|
6109
|
-
reasonCode:
|
|
6110
|
-
message:
|
|
6335
|
+
reasonCode: string().trim().min(1),
|
|
6336
|
+
message: string().trim().min(1)
|
|
6111
6337
|
})]);
|
|
6112
|
-
const runtimeTransportResumeControllerConversationResultFramePayloadSchema =
|
|
6113
|
-
requestId:
|
|
6338
|
+
const runtimeTransportResumeControllerConversationResultFramePayloadSchema = strictObject({
|
|
6339
|
+
requestId: string().trim().min(1),
|
|
6114
6340
|
result: runtimeTransportResumeControllerConversationResultSchema
|
|
6115
6341
|
});
|
|
6116
|
-
|
|
6117
|
-
v:
|
|
6118
|
-
ownerUserId:
|
|
6119
|
-
profileId:
|
|
6342
|
+
strictObject({
|
|
6343
|
+
v: literal(1),
|
|
6344
|
+
ownerUserId: string().min(1),
|
|
6345
|
+
profileId: string().min(1)
|
|
6120
6346
|
});
|
|
6121
|
-
const runtimeTransportLookupRouteOwnerServiceEvidenceSchema =
|
|
6122
|
-
daemonSessionId:
|
|
6123
|
-
deviceId:
|
|
6347
|
+
const runtimeTransportLookupRouteOwnerServiceEvidenceSchema = strictObject({
|
|
6348
|
+
daemonSessionId: string().min(1),
|
|
6349
|
+
deviceId: string().min(1),
|
|
6124
6350
|
lane: daemonServiceLaneSchema,
|
|
6125
|
-
serviceVersion:
|
|
6126
|
-
connectionGeneration:
|
|
6127
|
-
lastHeartbeatMs:
|
|
6351
|
+
serviceVersion: string().trim().min(1).nullable().optional(),
|
|
6352
|
+
connectionGeneration: number().int().positive(),
|
|
6353
|
+
lastHeartbeatMs: number().int().nonnegative(),
|
|
6128
6354
|
capabilities: runtimeTransportCapabilitiesSchema,
|
|
6129
6355
|
executionCompatibility: daemonExecutionCompatibilitySchema
|
|
6130
6356
|
});
|
|
6131
|
-
const runtimeTransportLookupRouteResponseSchema =
|
|
6132
|
-
online:
|
|
6133
|
-
acceptingDispatches:
|
|
6357
|
+
const runtimeTransportLookupRouteResponseSchema = discriminatedUnion("online", [strictObject({
|
|
6358
|
+
online: literal(true),
|
|
6359
|
+
acceptingDispatches: boolean().optional(),
|
|
6134
6360
|
stopCause: runtimeTransportStopCauseSchema.optional(),
|
|
6135
|
-
daemonSessionId:
|
|
6136
|
-
deviceId:
|
|
6361
|
+
daemonSessionId: string().min(1),
|
|
6362
|
+
deviceId: string().min(1),
|
|
6137
6363
|
lane: daemonServiceLaneSchema,
|
|
6138
|
-
serviceVersion:
|
|
6139
|
-
connectionGeneration:
|
|
6140
|
-
leaseEpoch:
|
|
6141
|
-
lastHeartbeatMs:
|
|
6364
|
+
serviceVersion: string().trim().min(1).nullable().optional(),
|
|
6365
|
+
connectionGeneration: number().int().positive(),
|
|
6366
|
+
leaseEpoch: number().int().positive(),
|
|
6367
|
+
lastHeartbeatMs: number().int().nonnegative(),
|
|
6142
6368
|
capabilities: runtimeTransportCapabilitiesSchema,
|
|
6143
6369
|
executionCompatibility: daemonExecutionCompatibilitySchema,
|
|
6144
6370
|
localWakeRouteReport: localWakeRouteReportSchema.optional()
|
|
6145
|
-
}),
|
|
6146
|
-
online:
|
|
6371
|
+
}), strictObject({
|
|
6372
|
+
online: literal(false),
|
|
6147
6373
|
reasonCode: runtimeTransportErrorCodeSchema,
|
|
6148
|
-
lastHeartbeatMs:
|
|
6374
|
+
lastHeartbeatMs: number().int().nonnegative().optional(),
|
|
6149
6375
|
ownerService: runtimeTransportLookupRouteOwnerServiceEvidenceSchema.optional(),
|
|
6150
6376
|
executionCompatibility: daemonExecutionCompatibilitySchema.optional(),
|
|
6151
6377
|
localWakeRouteReport: localWakeRouteReportSchema.optional(),
|
|
6152
6378
|
rejectedProfileRegistration: runtimeTransportRejectedProfileRegistrationSchema.optional()
|
|
6153
6379
|
})]);
|
|
6154
|
-
|
|
6155
|
-
v:
|
|
6156
|
-
ownerUserId:
|
|
6157
|
-
profileIds:
|
|
6158
|
-
});
|
|
6159
|
-
|
|
6160
|
-
const runtimeTransportDispatchSourceSignalSchema =
|
|
6161
|
-
profileId:
|
|
6162
|
-
profileKind:
|
|
6380
|
+
strictObject({
|
|
6381
|
+
v: literal(1),
|
|
6382
|
+
ownerUserId: string().min(1),
|
|
6383
|
+
profileIds: array(string().min(1)).min(1).max(100)
|
|
6384
|
+
});
|
|
6385
|
+
strictObject({ routes: record(string(), runtimeTransportLookupRouteResponseSchema) });
|
|
6386
|
+
const runtimeTransportDispatchSourceSignalSchema = strictObject({
|
|
6387
|
+
profileId: string().min(1).nullable(),
|
|
6388
|
+
profileKind: enumFactory([
|
|
6163
6389
|
"agent",
|
|
6164
6390
|
"human",
|
|
6165
6391
|
"system"
|
|
6166
6392
|
]).nullable(),
|
|
6167
6393
|
profileHandle: profileHandleSchema.optional(),
|
|
6168
6394
|
profileMentionLabel: spaceMentionLabelSchema.optional(),
|
|
6169
|
-
text:
|
|
6395
|
+
text: string().min(1).max(MAX_TEXT_LENGTH)
|
|
6170
6396
|
});
|
|
6171
|
-
const runtimeTransportDeliverDispatchPayloadSchema =
|
|
6397
|
+
const runtimeTransportDeliverDispatchPayloadSchema = strictObject({
|
|
6172
6398
|
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId,
|
|
6173
6399
|
executionToken: runtimeCoordinatorExecutionTokenEnvelopeSchema.optional(),
|
|
6174
|
-
attemptId:
|
|
6175
|
-
dispatchId:
|
|
6400
|
+
attemptId: string().min(1),
|
|
6401
|
+
dispatchId: string().min(1),
|
|
6176
6402
|
executionIdentity: runtimeTransportDeliveryExecutionIdentitySchema,
|
|
6177
|
-
taskId:
|
|
6178
|
-
spaceId:
|
|
6179
|
-
sourceEventId:
|
|
6180
|
-
sourceClientMessageId:
|
|
6403
|
+
taskId: string().min(1),
|
|
6404
|
+
spaceId: string().min(1),
|
|
6405
|
+
sourceEventId: string().min(1),
|
|
6406
|
+
sourceClientMessageId: string().min(1).max(200).nullable().optional(),
|
|
6181
6407
|
sourceSignal: runtimeTransportDispatchSourceSignalSchema,
|
|
6182
|
-
targetProfileId:
|
|
6183
|
-
defaultProjectId:
|
|
6408
|
+
targetProfileId: string().min(1),
|
|
6409
|
+
defaultProjectId: string().trim().min(1).optional(),
|
|
6184
6410
|
organizationProtectedInformation: organizationProtectedInformationSchema.optional(),
|
|
6185
6411
|
workingLanguage: workingLanguageGuidanceSchema.optional(),
|
|
6186
|
-
dispatchContractVersion:
|
|
6412
|
+
dispatchContractVersion: number().int().positive(),
|
|
6187
6413
|
dispatchPolicy: runtimeDispatchPolicySchema,
|
|
6188
6414
|
controllerSnapshot: openMeldDaemonDispatchControllerSnapshotSchema,
|
|
6189
6415
|
contextIdMappingSpec: runtimeAgentControllerConversationIdMappingSpecSchema.nullable(),
|
|
6190
6416
|
dispatchRulesSnapshot: openMeldDaemonDispatchRulesSnapshotSchema,
|
|
6191
6417
|
spaceContractSnapshot: spaceContractSchema.optional(),
|
|
6192
6418
|
continuitySnapshot: openMeldDaemonDispatchContinuitySnapshotSchema.optional(),
|
|
6193
|
-
enqueuedAtMs:
|
|
6194
|
-
idempotencyKey:
|
|
6419
|
+
enqueuedAtMs: number().int().nonnegative(),
|
|
6420
|
+
idempotencyKey: string().min(1),
|
|
6195
6421
|
spacePassword: spacePasswordSchema.optional(),
|
|
6196
|
-
targetProfileName:
|
|
6422
|
+
targetProfileName: string().min(1).max(64).optional(),
|
|
6197
6423
|
targetProfileMentionLabel: spaceMentionLabelSchema.optional(),
|
|
6198
|
-
targetProfileIsCenterAgent:
|
|
6199
|
-
agentControllerConversationId:
|
|
6424
|
+
targetProfileIsCenterAgent: boolean().optional(),
|
|
6425
|
+
agentControllerConversationId: string().trim().min(1).optional(),
|
|
6200
6426
|
deliveryRecoveryReason: openMeldDaemonDispatchDeliveryRecoveryReasonSchema.optional(),
|
|
6201
|
-
dispatchChainId:
|
|
6202
|
-
autoRelayDepth:
|
|
6203
|
-
visitedProfileIds:
|
|
6204
|
-
visitedProfileIdsHash:
|
|
6427
|
+
dispatchChainId: string().min(1).optional(),
|
|
6428
|
+
autoRelayDepth: number().int().nonnegative().optional(),
|
|
6429
|
+
visitedProfileIds: array(string().min(1)).max(256).optional(),
|
|
6430
|
+
visitedProfileIdsHash: string().min(1).optional(),
|
|
6205
6431
|
transportMode: runtimeTransportModeSchema.nullable().optional(),
|
|
6206
6432
|
streamingMode: runtimeStreamingModeSchema.optional(),
|
|
6207
6433
|
sourceSignalSnapshot: openMeldDaemonDispatchSourceSignalSnapshotSchema.optional(),
|
|
6208
6434
|
sourceMessageEnvelope: messageEnvelopeSchema.optional(),
|
|
6209
6435
|
replyToSnapshot: openMeldDaemonDispatchReplyToSnapshotSchema.optional(),
|
|
6210
6436
|
threadContext: spaceThreadContextSchema.optional(),
|
|
6211
|
-
spaceNameSnapshot:
|
|
6212
|
-
});
|
|
6213
|
-
const runtimeTransportDeliverDispatchRequestSchema =
|
|
6214
|
-
v:
|
|
6215
|
-
dispatchId:
|
|
6216
|
-
attemptId:
|
|
6217
|
-
ownerUserId:
|
|
6218
|
-
profileId:
|
|
6219
|
-
daemonSessionId:
|
|
6220
|
-
connectionGeneration:
|
|
6221
|
-
leaseEpoch:
|
|
6437
|
+
spaceNameSnapshot: string().min(1).nullable().optional()
|
|
6438
|
+
});
|
|
6439
|
+
const runtimeTransportDeliverDispatchRequestSchema = strictObject({
|
|
6440
|
+
v: literal(1),
|
|
6441
|
+
dispatchId: string().min(1),
|
|
6442
|
+
attemptId: string().min(1),
|
|
6443
|
+
ownerUserId: string().min(1),
|
|
6444
|
+
profileId: string().min(1),
|
|
6445
|
+
daemonSessionId: string().min(1),
|
|
6446
|
+
connectionGeneration: number().int().positive(),
|
|
6447
|
+
leaseEpoch: number().int().positive(),
|
|
6222
6448
|
deliveryRecoveryReason: openMeldDaemonDispatchDeliveryRecoveryReasonSchema.optional(),
|
|
6223
6449
|
payload: runtimeTransportDeliverDispatchPayloadSchema
|
|
6224
6450
|
});
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
accepted:
|
|
6228
|
-
status:
|
|
6451
|
+
discriminatedUnion("status", [
|
|
6452
|
+
strictObject({
|
|
6453
|
+
accepted: literal(true),
|
|
6454
|
+
status: literal("delivered")
|
|
6229
6455
|
}),
|
|
6230
|
-
|
|
6231
|
-
accepted:
|
|
6232
|
-
status:
|
|
6233
|
-
existingAttemptId:
|
|
6456
|
+
strictObject({
|
|
6457
|
+
accepted: literal(true),
|
|
6458
|
+
status: literal("already_pending"),
|
|
6459
|
+
existingAttemptId: string().min(1)
|
|
6234
6460
|
}),
|
|
6235
|
-
|
|
6236
|
-
accepted:
|
|
6237
|
-
status:
|
|
6238
|
-
completedAttemptId:
|
|
6461
|
+
strictObject({
|
|
6462
|
+
accepted: literal(true),
|
|
6463
|
+
status: literal("already_completed"),
|
|
6464
|
+
completedAttemptId: string().min(1)
|
|
6239
6465
|
}),
|
|
6240
|
-
|
|
6241
|
-
accepted:
|
|
6242
|
-
status:
|
|
6466
|
+
strictObject({
|
|
6467
|
+
accepted: literal(false),
|
|
6468
|
+
status: literal("rejected"),
|
|
6243
6469
|
reasonCode: runtimeTransportErrorCodeSchema
|
|
6244
6470
|
})
|
|
6245
6471
|
]);
|
|
6246
|
-
|
|
6247
|
-
dispatchId:
|
|
6248
|
-
attemptId:
|
|
6249
|
-
daemonSessionId:
|
|
6250
|
-
connectionGeneration:
|
|
6251
|
-
leaseEpoch:
|
|
6252
|
-
timeoutMs:
|
|
6253
|
-
});
|
|
6254
|
-
const runtimeCoordinatorDecisionReasonCodeSchema =
|
|
6255
|
-
const runtimeTransportRuntimeCoordinatorDecisionEventKindSchema =
|
|
6472
|
+
strictObject({
|
|
6473
|
+
dispatchId: string().min(1),
|
|
6474
|
+
attemptId: string().min(1),
|
|
6475
|
+
daemonSessionId: string().min(1),
|
|
6476
|
+
connectionGeneration: number().int().positive(),
|
|
6477
|
+
leaseEpoch: number().int().positive(),
|
|
6478
|
+
timeoutMs: number().int().positive().optional()
|
|
6479
|
+
});
|
|
6480
|
+
const runtimeCoordinatorDecisionReasonCodeSchema = string().trim().min(1).max(160);
|
|
6481
|
+
const runtimeTransportRuntimeCoordinatorDecisionEventKindSchema = enumFactory([
|
|
6256
6482
|
"owner_conflict",
|
|
6257
6483
|
"reclaim",
|
|
6258
6484
|
"retry",
|
|
6259
6485
|
"timeout"
|
|
6260
6486
|
]);
|
|
6261
|
-
const runtimeTransportRuntimeCoordinatorDecisionTriggerSchema =
|
|
6487
|
+
const runtimeTransportRuntimeCoordinatorDecisionTriggerSchema = enumFactory([
|
|
6262
6488
|
"alarm",
|
|
6263
6489
|
"daemon",
|
|
6264
6490
|
"queue"
|
|
6265
6491
|
]);
|
|
6266
|
-
|
|
6267
|
-
v:
|
|
6492
|
+
strictObject({
|
|
6493
|
+
v: literal(1),
|
|
6268
6494
|
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId,
|
|
6269
|
-
dispatchId:
|
|
6270
|
-
spaceId:
|
|
6271
|
-
targetProfileId:
|
|
6272
|
-
sourceClientMessageId:
|
|
6273
|
-
attemptId:
|
|
6274
|
-
claimDecision:
|
|
6495
|
+
dispatchId: string().min(1),
|
|
6496
|
+
spaceId: string().min(1),
|
|
6497
|
+
targetProfileId: string().min(1),
|
|
6498
|
+
sourceClientMessageId: string().min(1).max(200).nullable(),
|
|
6499
|
+
attemptId: string().min(1).nullable().optional(),
|
|
6500
|
+
claimDecision: enumFactory([
|
|
6275
6501
|
"continue_existing",
|
|
6276
6502
|
"reset_existing",
|
|
6277
6503
|
"claim_recovery",
|
|
@@ -6280,15 +6506,15 @@ z$1.strictObject({
|
|
|
6280
6506
|
"reclaim_stale_queued"
|
|
6281
6507
|
]).optional(),
|
|
6282
6508
|
eventKind: runtimeTransportRuntimeCoordinatorDecisionEventKindSchema,
|
|
6283
|
-
idempotencyKey:
|
|
6284
|
-
observedRunId:
|
|
6509
|
+
idempotencyKey: string().min(1).max(512),
|
|
6510
|
+
observedRunId: string().min(1).nullable().optional(),
|
|
6285
6511
|
reasonCode: runtimeCoordinatorDecisionReasonCodeSchema.optional(),
|
|
6286
6512
|
trigger: runtimeTransportRuntimeCoordinatorDecisionTriggerSchema
|
|
6287
6513
|
});
|
|
6288
|
-
|
|
6289
|
-
ok:
|
|
6290
|
-
status:
|
|
6291
|
-
action:
|
|
6514
|
+
discriminatedUnion("status", [strictObject({
|
|
6515
|
+
ok: literal(true),
|
|
6516
|
+
status: enumFactory(["already_recorded", "recorded"]),
|
|
6517
|
+
action: enumFactory([
|
|
6292
6518
|
"diagnostic_only",
|
|
6293
6519
|
"keep_waiting",
|
|
6294
6520
|
"owner_conflict_terminal",
|
|
@@ -6302,63 +6528,63 @@ z$1.discriminatedUnion("status", [z$1.strictObject({
|
|
|
6302
6528
|
]),
|
|
6303
6529
|
reasonCode: runtimeCoordinatorDecisionReasonCodeSchema,
|
|
6304
6530
|
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId
|
|
6305
|
-
}),
|
|
6306
|
-
ok:
|
|
6307
|
-
status:
|
|
6531
|
+
}), strictObject({
|
|
6532
|
+
ok: literal(false),
|
|
6533
|
+
status: literal("retry_later"),
|
|
6308
6534
|
reasonCode: runtimeCoordinatorDecisionReasonCodeSchema,
|
|
6309
6535
|
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId
|
|
6310
6536
|
})]);
|
|
6311
|
-
|
|
6312
|
-
v:
|
|
6313
|
-
ownerUserId:
|
|
6537
|
+
strictObject({
|
|
6538
|
+
v: literal(1),
|
|
6539
|
+
ownerUserId: string().min(1),
|
|
6314
6540
|
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId,
|
|
6315
|
-
dispatchId:
|
|
6316
|
-
spaceId:
|
|
6317
|
-
sourceClientMessageId:
|
|
6318
|
-
targetProfileId:
|
|
6319
|
-
reason:
|
|
6541
|
+
dispatchId: string().min(1),
|
|
6542
|
+
spaceId: string().min(1),
|
|
6543
|
+
sourceClientMessageId: string().min(1).max(200).nullable(),
|
|
6544
|
+
targetProfileId: string().min(1),
|
|
6545
|
+
reason: string().trim().min(1).max(512).optional()
|
|
6320
6546
|
});
|
|
6321
6547
|
const runtimeTransportRuntimeCoordinatorWakeStopResponseSchema = postSpaceWakeStopResponseSchema;
|
|
6322
|
-
|
|
6323
|
-
ownerUserId:
|
|
6548
|
+
strictObject({
|
|
6549
|
+
ownerUserId: string().trim().min(1).max(256),
|
|
6324
6550
|
targetProfileId: agentProfileIdSchema
|
|
6325
6551
|
});
|
|
6326
|
-
const runtimeTransportRuntimeCoordinatorHeadPreAgentStopReasonCodeSchema =
|
|
6327
|
-
|
|
6328
|
-
v:
|
|
6329
|
-
ownerUserId:
|
|
6330
|
-
dispatchId:
|
|
6331
|
-
idempotencyKey:
|
|
6332
|
-
reason:
|
|
6552
|
+
const runtimeTransportRuntimeCoordinatorHeadPreAgentStopReasonCodeSchema = enumFactory(["runtime_coordinator.pre_agent_stop_requested"]);
|
|
6553
|
+
strictObject({
|
|
6554
|
+
v: literal(1),
|
|
6555
|
+
ownerUserId: string().min(1),
|
|
6556
|
+
dispatchId: string().min(1),
|
|
6557
|
+
idempotencyKey: string().min(1).max(512),
|
|
6558
|
+
reason: string().trim().min(1).max(512).optional(),
|
|
6333
6559
|
targetProfileMentionLabel: spaceMentionLabelSchema.optional(),
|
|
6334
|
-
targetProfileName:
|
|
6560
|
+
targetProfileName: string().min(1).max(64).optional(),
|
|
6335
6561
|
targetWakeLifecycleIdentity: targetWakeLifecycleIdentitySchema
|
|
6336
6562
|
});
|
|
6337
|
-
const runtimeTransportRuntimeCoordinatorHeadPreAgentStopResponseSchema =
|
|
6338
|
-
ok:
|
|
6339
|
-
primaryDispatchId:
|
|
6340
|
-
publicationIntentId:
|
|
6563
|
+
const runtimeTransportRuntimeCoordinatorHeadPreAgentStopResponseSchema = discriminatedUnion("status", [strictObject({
|
|
6564
|
+
ok: literal(true),
|
|
6565
|
+
primaryDispatchId: string().min(1),
|
|
6566
|
+
publicationIntentId: string().min(1).max(4096),
|
|
6341
6567
|
reasonCode: runtimeTransportRuntimeCoordinatorHeadPreAgentStopReasonCodeSchema,
|
|
6342
|
-
runtimeCoordinatorExecutionId:
|
|
6343
|
-
status:
|
|
6344
|
-
targetWakeLifecycleId:
|
|
6345
|
-
}),
|
|
6346
|
-
ok:
|
|
6347
|
-
primaryDispatchId:
|
|
6348
|
-
publicationIntentId:
|
|
6349
|
-
reasonCode:
|
|
6568
|
+
runtimeCoordinatorExecutionId: nullFactory(),
|
|
6569
|
+
status: enumFactory(["stopped_before_execution", "already_stopped"]),
|
|
6570
|
+
targetWakeLifecycleId: string().min(1).max(2048)
|
|
6571
|
+
}), strictObject({
|
|
6572
|
+
ok: literal(false),
|
|
6573
|
+
primaryDispatchId: string().min(1).nullable(),
|
|
6574
|
+
publicationIntentId: string().min(1).max(4096).nullable(),
|
|
6575
|
+
reasonCode: string().min(1).max(160),
|
|
6350
6576
|
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.nullable(),
|
|
6351
|
-
status:
|
|
6577
|
+
status: enumFactory([
|
|
6352
6578
|
"conflict",
|
|
6353
6579
|
"execution_linked",
|
|
6354
6580
|
"retry_later"
|
|
6355
6581
|
]),
|
|
6356
|
-
targetWakeLifecycleId:
|
|
6582
|
+
targetWakeLifecycleId: string().min(1).max(2048)
|
|
6357
6583
|
})]);
|
|
6358
|
-
|
|
6359
|
-
executionStopOutcomes:
|
|
6360
|
-
headStopOutcomes:
|
|
6361
|
-
status:
|
|
6584
|
+
strictObject({
|
|
6585
|
+
executionStopOutcomes: array(runtimeTransportRuntimeCoordinatorWakeStopResponseSchema),
|
|
6586
|
+
headStopOutcomes: array(runtimeTransportRuntimeCoordinatorHeadPreAgentStopResponseSchema),
|
|
6587
|
+
status: enumFactory([
|
|
6362
6588
|
"inactive",
|
|
6363
6589
|
"cancellation_requested",
|
|
6364
6590
|
"partially_requested",
|
|
@@ -6366,45 +6592,45 @@ z$1.strictObject({
|
|
|
6366
6592
|
]),
|
|
6367
6593
|
targetProfileId: agentProfileIdSchema
|
|
6368
6594
|
});
|
|
6369
|
-
const runtimeTransportRuntimeCoordinatorHeadAcceptActionSchema =
|
|
6370
|
-
|
|
6371
|
-
v:
|
|
6372
|
-
ownerUserId:
|
|
6373
|
-
dispatchId:
|
|
6374
|
-
idempotencyKey:
|
|
6595
|
+
const runtimeTransportRuntimeCoordinatorHeadAcceptActionSchema = enumFactory(["create_execution", "skip_duplicate"]);
|
|
6596
|
+
strictObject({
|
|
6597
|
+
v: literal(1),
|
|
6598
|
+
ownerUserId: string().min(1),
|
|
6599
|
+
dispatchId: string().min(1),
|
|
6600
|
+
idempotencyKey: string().min(1).max(512),
|
|
6375
6601
|
targetProfileMentionLabel: spaceMentionLabelSchema.optional(),
|
|
6376
|
-
targetProfileName:
|
|
6602
|
+
targetProfileName: string().min(1).max(64).optional(),
|
|
6377
6603
|
targetWakeLifecycleIdentity: targetWakeLifecycleIdentitySchema
|
|
6378
6604
|
});
|
|
6379
|
-
|
|
6605
|
+
discriminatedUnion("status", [strictObject({
|
|
6380
6606
|
action: runtimeTransportRuntimeCoordinatorHeadAcceptActionSchema,
|
|
6381
|
-
ok:
|
|
6382
|
-
primaryDispatchId:
|
|
6383
|
-
reasonCode:
|
|
6607
|
+
ok: literal(true),
|
|
6608
|
+
primaryDispatchId: string().min(1),
|
|
6609
|
+
reasonCode: string().min(1).max(160),
|
|
6384
6610
|
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.nullable(),
|
|
6385
|
-
status:
|
|
6611
|
+
status: enumFactory([
|
|
6386
6612
|
"accepted",
|
|
6387
6613
|
"already_accepted",
|
|
6388
6614
|
"execution_linked",
|
|
6389
6615
|
"publication_intent_ready",
|
|
6390
6616
|
"stopped_before_execution"
|
|
6391
6617
|
]),
|
|
6392
|
-
targetWakeLifecycleId:
|
|
6393
|
-
}),
|
|
6394
|
-
ok:
|
|
6395
|
-
primaryDispatchId:
|
|
6396
|
-
reasonCode:
|
|
6397
|
-
status:
|
|
6398
|
-
targetWakeLifecycleId:
|
|
6618
|
+
targetWakeLifecycleId: string().min(1).max(2048)
|
|
6619
|
+
}), strictObject({
|
|
6620
|
+
ok: literal(false),
|
|
6621
|
+
primaryDispatchId: string().min(1).nullable(),
|
|
6622
|
+
reasonCode: string().min(1).max(160),
|
|
6623
|
+
status: enumFactory(["conflict", "retry_later"]),
|
|
6624
|
+
targetWakeLifecycleId: string().min(1).max(2048)
|
|
6399
6625
|
})]);
|
|
6400
|
-
const runtimeTransportRuntimeCoordinatorHeadLifecycleStatusSchema =
|
|
6626
|
+
const runtimeTransportRuntimeCoordinatorHeadLifecycleStatusSchema = enumFactory([
|
|
6401
6627
|
"accepted",
|
|
6402
6628
|
"execution_linked",
|
|
6403
6629
|
"publication_intent_ready",
|
|
6404
6630
|
"stopped_before_execution",
|
|
6405
6631
|
"waiting"
|
|
6406
6632
|
]);
|
|
6407
|
-
const runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema =
|
|
6633
|
+
const runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema = enumFactory([
|
|
6408
6634
|
"agent_profile_binding.missing",
|
|
6409
6635
|
"agent_profile_binding.disabled",
|
|
6410
6636
|
"agent_profile_binding.owner_mismatch",
|
|
@@ -6414,14 +6640,14 @@ const runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema = z$1.en
|
|
|
6414
6640
|
"daemon.profile.pending_first_report",
|
|
6415
6641
|
"service.update_required"
|
|
6416
6642
|
]);
|
|
6417
|
-
const runtimeTransportRuntimeCoordinatorHeadNoExecutionPublicationCategorySchema =
|
|
6643
|
+
const runtimeTransportRuntimeCoordinatorHeadNoExecutionPublicationCategorySchema = enumFactory([
|
|
6418
6644
|
"binding_required",
|
|
6419
6645
|
"local_connection_mismatch",
|
|
6420
6646
|
"service_not_connected",
|
|
6421
6647
|
"update_required",
|
|
6422
6648
|
"wake_route_registration_pending"
|
|
6423
6649
|
]);
|
|
6424
|
-
const runtimeTransportRuntimeCoordinatorHeadNoExecutionRecoveryActionSchema =
|
|
6650
|
+
const runtimeTransportRuntimeCoordinatorHeadNoExecutionRecoveryActionSchema = enumFactory([
|
|
6425
6651
|
"set_up_agent_binding",
|
|
6426
6652
|
"enable_agent_binding",
|
|
6427
6653
|
"repair_agent_binding",
|
|
@@ -6431,318 +6657,318 @@ const runtimeTransportRuntimeCoordinatorHeadNoExecutionRecoveryActionSchema = z$
|
|
|
6431
6657
|
"update_openmeld_service",
|
|
6432
6658
|
"wait_for_wake_route_report"
|
|
6433
6659
|
]);
|
|
6434
|
-
const runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionSourceSchema =
|
|
6660
|
+
const runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionSourceSchema = enumFactory([
|
|
6435
6661
|
"dispatch_preflight",
|
|
6436
6662
|
"dispatch_delivery_pre_execution",
|
|
6437
6663
|
"runtime_coordinator_head_waiting_deadline"
|
|
6438
6664
|
]);
|
|
6439
|
-
|
|
6440
|
-
v:
|
|
6441
|
-
ownerUserId:
|
|
6442
|
-
dispatchId:
|
|
6443
|
-
idempotencyKey:
|
|
6665
|
+
strictObject({
|
|
6666
|
+
v: literal(1),
|
|
6667
|
+
ownerUserId: string().min(1),
|
|
6668
|
+
dispatchId: string().min(1),
|
|
6669
|
+
idempotencyKey: string().min(1).max(512),
|
|
6444
6670
|
decisionSource: runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionSourceSchema.optional(),
|
|
6445
6671
|
reasonCode: runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema,
|
|
6446
6672
|
publicationCategory: runtimeTransportRuntimeCoordinatorHeadNoExecutionPublicationCategorySchema,
|
|
6447
6673
|
userRecoveryAction: runtimeTransportRuntimeCoordinatorHeadNoExecutionRecoveryActionSchema,
|
|
6448
6674
|
targetWakeLifecycleIdentity: targetWakeLifecycleIdentitySchema
|
|
6449
6675
|
});
|
|
6450
|
-
|
|
6451
|
-
ok:
|
|
6452
|
-
primaryDispatchId:
|
|
6453
|
-
publicationIntentId:
|
|
6676
|
+
discriminatedUnion("status", [strictObject({
|
|
6677
|
+
ok: literal(true),
|
|
6678
|
+
primaryDispatchId: string().min(1),
|
|
6679
|
+
publicationIntentId: string().min(1).max(4096),
|
|
6454
6680
|
reasonCode: runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema,
|
|
6455
|
-
runtimeCoordinatorExecutionId:
|
|
6456
|
-
status:
|
|
6457
|
-
targetWakeLifecycleId:
|
|
6458
|
-
}),
|
|
6459
|
-
ok:
|
|
6460
|
-
primaryDispatchId:
|
|
6461
|
-
publicationIntentId:
|
|
6462
|
-
reasonCode:
|
|
6463
|
-
runtimeCoordinatorExecutionId:
|
|
6464
|
-
status:
|
|
6465
|
-
targetWakeLifecycleId:
|
|
6681
|
+
runtimeCoordinatorExecutionId: nullFactory(),
|
|
6682
|
+
status: enumFactory(["publication_intent_ready", "already_recorded"]),
|
|
6683
|
+
targetWakeLifecycleId: string().min(1).max(2048)
|
|
6684
|
+
}), strictObject({
|
|
6685
|
+
ok: literal(false),
|
|
6686
|
+
primaryDispatchId: string().min(1).nullable(),
|
|
6687
|
+
publicationIntentId: string().min(1).max(4096).nullable(),
|
|
6688
|
+
reasonCode: string().min(1).max(160),
|
|
6689
|
+
runtimeCoordinatorExecutionId: nullFactory(),
|
|
6690
|
+
status: enumFactory(["conflict", "retry_later"]),
|
|
6691
|
+
targetWakeLifecycleId: string().min(1).max(2048)
|
|
6466
6692
|
})]);
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
|
|
6693
|
+
enumFactory(["daemon.profile.offline", "daemon.profile.pending_first_report"]);
|
|
6694
|
+
enumFactory(["service_not_connected", "wake_route_registration_pending"]);
|
|
6695
|
+
enumFactory(["start_or_restart_openmeld_service", "wait_for_wake_route_report"]);
|
|
6470
6696
|
const runtimeCoordinatorOfflineWaitingDecisionShape = {
|
|
6471
|
-
reasonCode:
|
|
6472
|
-
userRecoveryAction:
|
|
6473
|
-
waitingCategory:
|
|
6697
|
+
reasonCode: literal("daemon.profile.offline"),
|
|
6698
|
+
userRecoveryAction: literal("start_or_restart_openmeld_service"),
|
|
6699
|
+
waitingCategory: literal("service_not_connected")
|
|
6474
6700
|
};
|
|
6475
6701
|
const runtimeCoordinatorPendingFirstReportWaitingDecisionShape = {
|
|
6476
|
-
reasonCode:
|
|
6477
|
-
userRecoveryAction:
|
|
6478
|
-
waitingCategory:
|
|
6702
|
+
reasonCode: literal("daemon.profile.pending_first_report"),
|
|
6703
|
+
userRecoveryAction: literal("wait_for_wake_route_report"),
|
|
6704
|
+
waitingCategory: literal("wake_route_registration_pending")
|
|
6479
6705
|
};
|
|
6480
6706
|
const runtimeCoordinatorHeadWaitingBoundaryCommonShape = {
|
|
6481
|
-
deadlineAtMs:
|
|
6482
|
-
deadlineOutcome:
|
|
6483
|
-
observedAtMs:
|
|
6484
|
-
softDeadlineAtMs:
|
|
6485
|
-
triggerOwner:
|
|
6486
|
-
waitingSinceMs:
|
|
6707
|
+
deadlineAtMs: number().int().nonnegative(),
|
|
6708
|
+
deadlineOutcome: literal("publication_intent_ready"),
|
|
6709
|
+
observedAtMs: number().int().nonnegative(),
|
|
6710
|
+
softDeadlineAtMs: number().int().nonnegative(),
|
|
6711
|
+
triggerOwner: literal("runtime_coordinator"),
|
|
6712
|
+
waitingSinceMs: number().int().nonnegative()
|
|
6487
6713
|
};
|
|
6488
|
-
const runtimeTransportRuntimeCoordinatorHeadWaitingBoundarySchema =
|
|
6714
|
+
const runtimeTransportRuntimeCoordinatorHeadWaitingBoundarySchema = discriminatedUnion("reasonCode", [strictObject({
|
|
6489
6715
|
...runtimeCoordinatorHeadWaitingBoundaryCommonShape,
|
|
6490
6716
|
...runtimeCoordinatorOfflineWaitingDecisionShape,
|
|
6491
|
-
trigger:
|
|
6492
|
-
userVisibleState:
|
|
6493
|
-
waitingFor:
|
|
6494
|
-
}),
|
|
6717
|
+
trigger: literal("openmeld_service_route_connected"),
|
|
6718
|
+
userVisibleState: literal("waiting_for_openmeld_service"),
|
|
6719
|
+
waitingFor: literal("openmeld_service_route_connection")
|
|
6720
|
+
}), strictObject({
|
|
6495
6721
|
...runtimeCoordinatorHeadWaitingBoundaryCommonShape,
|
|
6496
6722
|
...runtimeCoordinatorPendingFirstReportWaitingDecisionShape,
|
|
6497
|
-
trigger:
|
|
6498
|
-
userVisibleState:
|
|
6499
|
-
waitingFor:
|
|
6723
|
+
trigger: literal("wake_route_reported"),
|
|
6724
|
+
userVisibleState: literal("waiting_for_wake_route_report"),
|
|
6725
|
+
waitingFor: literal("wake_route_report")
|
|
6500
6726
|
})]);
|
|
6501
6727
|
const runtimeCoordinatorHeadWaitingRequestCommonShape = {
|
|
6502
|
-
v:
|
|
6503
|
-
ownerUserId:
|
|
6504
|
-
dispatchId:
|
|
6505
|
-
idempotencyKey:
|
|
6506
|
-
observedAtMs:
|
|
6728
|
+
v: literal(1),
|
|
6729
|
+
ownerUserId: string().min(1),
|
|
6730
|
+
dispatchId: string().min(1),
|
|
6731
|
+
idempotencyKey: string().min(1).max(512),
|
|
6732
|
+
observedAtMs: number().int().nonnegative(),
|
|
6507
6733
|
targetWakeLifecycleIdentity: targetWakeLifecycleIdentitySchema
|
|
6508
6734
|
};
|
|
6509
|
-
|
|
6735
|
+
discriminatedUnion("reasonCode", [strictObject({
|
|
6510
6736
|
...runtimeCoordinatorHeadWaitingRequestCommonShape,
|
|
6511
6737
|
...runtimeCoordinatorOfflineWaitingDecisionShape
|
|
6512
|
-
}),
|
|
6738
|
+
}), strictObject({
|
|
6513
6739
|
...runtimeCoordinatorHeadWaitingRequestCommonShape,
|
|
6514
6740
|
...runtimeCoordinatorPendingFirstReportWaitingDecisionShape
|
|
6515
6741
|
})]);
|
|
6516
6742
|
const runtimeCoordinatorHeadWaitingResponseCommonShape = {
|
|
6517
|
-
deadlineAtMs:
|
|
6518
|
-
nextTriggerAtMs:
|
|
6519
|
-
ok:
|
|
6520
|
-
primaryDispatchId:
|
|
6521
|
-
runtimeCoordinatorExecutionId:
|
|
6522
|
-
softDeadlineAtMs:
|
|
6523
|
-
status:
|
|
6524
|
-
targetWakeLifecycleId:
|
|
6743
|
+
deadlineAtMs: number().int().nonnegative(),
|
|
6744
|
+
nextTriggerAtMs: number().int().nonnegative(),
|
|
6745
|
+
ok: literal(true),
|
|
6746
|
+
primaryDispatchId: string().min(1),
|
|
6747
|
+
runtimeCoordinatorExecutionId: nullFactory(),
|
|
6748
|
+
softDeadlineAtMs: number().int().nonnegative(),
|
|
6749
|
+
status: literal("waiting"),
|
|
6750
|
+
targetWakeLifecycleId: string().min(1).max(2048)
|
|
6525
6751
|
};
|
|
6526
|
-
|
|
6527
|
-
|
|
6752
|
+
union([
|
|
6753
|
+
strictObject({
|
|
6528
6754
|
...runtimeCoordinatorHeadWaitingResponseCommonShape,
|
|
6529
6755
|
...runtimeCoordinatorOfflineWaitingDecisionShape
|
|
6530
6756
|
}),
|
|
6531
|
-
|
|
6757
|
+
strictObject({
|
|
6532
6758
|
...runtimeCoordinatorHeadWaitingResponseCommonShape,
|
|
6533
6759
|
...runtimeCoordinatorPendingFirstReportWaitingDecisionShape
|
|
6534
6760
|
}),
|
|
6535
|
-
|
|
6536
|
-
ok:
|
|
6537
|
-
primaryDispatchId:
|
|
6538
|
-
publicationIntentId:
|
|
6761
|
+
strictObject({
|
|
6762
|
+
ok: literal(true),
|
|
6763
|
+
primaryDispatchId: string().min(1),
|
|
6764
|
+
publicationIntentId: string().min(1).max(4096),
|
|
6539
6765
|
reasonCode: runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema,
|
|
6540
|
-
runtimeCoordinatorExecutionId:
|
|
6541
|
-
status:
|
|
6542
|
-
targetWakeLifecycleId:
|
|
6766
|
+
runtimeCoordinatorExecutionId: nullFactory(),
|
|
6767
|
+
status: literal("publication_intent_ready"),
|
|
6768
|
+
targetWakeLifecycleId: string().min(1).max(2048)
|
|
6543
6769
|
}),
|
|
6544
|
-
|
|
6545
|
-
ok:
|
|
6546
|
-
primaryDispatchId:
|
|
6547
|
-
reasonCode:
|
|
6548
|
-
runtimeCoordinatorExecutionId:
|
|
6549
|
-
status:
|
|
6550
|
-
targetWakeLifecycleId:
|
|
6770
|
+
strictObject({
|
|
6771
|
+
ok: literal(false),
|
|
6772
|
+
primaryDispatchId: string().min(1).nullable(),
|
|
6773
|
+
reasonCode: string().min(1).max(160),
|
|
6774
|
+
runtimeCoordinatorExecutionId: nullFactory(),
|
|
6775
|
+
status: enumFactory(["conflict", "retry_later"]),
|
|
6776
|
+
targetWakeLifecycleId: string().min(1).max(2048)
|
|
6551
6777
|
})
|
|
6552
6778
|
]);
|
|
6553
|
-
const runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionTraceSchema =
|
|
6554
|
-
decidedAtMs:
|
|
6779
|
+
const runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionTraceSchema = strictObject({
|
|
6780
|
+
decidedAtMs: int().min(0),
|
|
6555
6781
|
publicationCategory: runtimeTransportRuntimeCoordinatorHeadNoExecutionPublicationCategorySchema,
|
|
6556
6782
|
reasonCode: runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema,
|
|
6557
6783
|
source: runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionSourceSchema,
|
|
6558
6784
|
userRecoveryAction: runtimeTransportRuntimeCoordinatorHeadNoExecutionRecoveryActionSchema
|
|
6559
6785
|
});
|
|
6560
|
-
const runtimeTransportRuntimeCoordinatorHeadPublicationIntentTraceSchema =
|
|
6561
|
-
intentId:
|
|
6562
|
-
kind:
|
|
6786
|
+
const runtimeTransportRuntimeCoordinatorHeadPublicationIntentTraceSchema = union([strictObject({
|
|
6787
|
+
intentId: string().min(1).max(4096),
|
|
6788
|
+
kind: literal("no_execution_failure"),
|
|
6563
6789
|
publicationCategory: runtimeTransportRuntimeCoordinatorHeadNoExecutionPublicationCategorySchema,
|
|
6564
|
-
readyAtMs:
|
|
6790
|
+
readyAtMs: int().min(0),
|
|
6565
6791
|
reasonCode: runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema,
|
|
6566
|
-
status:
|
|
6792
|
+
status: literal("ready_for_phase_6"),
|
|
6567
6793
|
userRecoveryAction: runtimeTransportRuntimeCoordinatorHeadNoExecutionRecoveryActionSchema
|
|
6568
|
-
}),
|
|
6569
|
-
intentId:
|
|
6570
|
-
kind:
|
|
6571
|
-
readyAtMs:
|
|
6794
|
+
}), strictObject({
|
|
6795
|
+
intentId: string().min(1).max(4096),
|
|
6796
|
+
kind: literal("stopped_notice"),
|
|
6797
|
+
readyAtMs: int().min(0),
|
|
6572
6798
|
reasonCode: runtimeTransportRuntimeCoordinatorHeadPreAgentStopReasonCodeSchema,
|
|
6573
|
-
status:
|
|
6799
|
+
status: literal("ready_for_phase_6")
|
|
6574
6800
|
})]);
|
|
6575
|
-
const runtimeTransportRuntimeCoordinatorHeadPublicationOutcomeTraceSchema =
|
|
6576
|
-
failurePublicationCommandId:
|
|
6577
|
-
finalMessageKind:
|
|
6801
|
+
const runtimeTransportRuntimeCoordinatorHeadPublicationOutcomeTraceSchema = strictObject({
|
|
6802
|
+
failurePublicationCommandId: string().min(1).max(4096),
|
|
6803
|
+
finalMessageKind: enumFactory([
|
|
6578
6804
|
"failure_notice",
|
|
6579
6805
|
"status",
|
|
6580
6806
|
"success_reply",
|
|
6581
6807
|
"unknown"
|
|
6582
6808
|
]).nullable(),
|
|
6583
|
-
observedAtMs:
|
|
6584
|
-
publicationErrorCode:
|
|
6585
|
-
publishedSignalId:
|
|
6586
|
-
status:
|
|
6809
|
+
observedAtMs: int().min(0),
|
|
6810
|
+
publicationErrorCode: string().min(1).max(160).nullable(),
|
|
6811
|
+
publishedSignalId: string().min(1).nullable(),
|
|
6812
|
+
status: enumFactory([
|
|
6587
6813
|
"failure_published",
|
|
6588
6814
|
"already_final",
|
|
6589
6815
|
"failure_publication_failed"
|
|
6590
6816
|
])
|
|
6591
6817
|
});
|
|
6592
|
-
const runtimeTransportRuntimeCoordinatorHeadPublicationExhaustionTraceSchema =
|
|
6593
|
-
attemptCount:
|
|
6594
|
-
exhaustedAtMs:
|
|
6595
|
-
lastFailureAtMs:
|
|
6596
|
-
lastReasonCode:
|
|
6597
|
-
reasonCode:
|
|
6598
|
-
status:
|
|
6818
|
+
const runtimeTransportRuntimeCoordinatorHeadPublicationExhaustionTraceSchema = strictObject({
|
|
6819
|
+
attemptCount: int().positive(),
|
|
6820
|
+
exhaustedAtMs: int().min(0),
|
|
6821
|
+
lastFailureAtMs: int().min(0),
|
|
6822
|
+
lastReasonCode: string().min(1).max(160),
|
|
6823
|
+
reasonCode: literal("runtime_coordinator.publication_retry_exhausted"),
|
|
6824
|
+
status: literal("publication_exhausted")
|
|
6599
6825
|
});
|
|
6600
|
-
const runtimeTransportRuntimeCoordinatorHeadTargetDisplayTraceSchema =
|
|
6826
|
+
const runtimeTransportRuntimeCoordinatorHeadTargetDisplayTraceSchema = strictObject({
|
|
6601
6827
|
targetProfileMentionLabel: spaceMentionLabelSchema.nullable(),
|
|
6602
|
-
targetProfileName:
|
|
6603
|
-
});
|
|
6604
|
-
const runtimeTransportRuntimeCoordinatorHeadLifecycleTraceRecordSchema =
|
|
6605
|
-
createdAtMs:
|
|
6606
|
-
duplicateDispatchCount:
|
|
6607
|
-
executionLinkedAtMs:
|
|
6608
|
-
modelVersion:
|
|
6609
|
-
noExecutionDecision:
|
|
6610
|
-
ownerUserId:
|
|
6611
|
-
primaryDispatchId:
|
|
6612
|
-
publicationIntent:
|
|
6828
|
+
targetProfileName: string().min(1).max(64).nullable()
|
|
6829
|
+
});
|
|
6830
|
+
const runtimeTransportRuntimeCoordinatorHeadLifecycleTraceRecordSchema = strictObject({
|
|
6831
|
+
createdAtMs: int().min(0),
|
|
6832
|
+
duplicateDispatchCount: int().min(0),
|
|
6833
|
+
executionLinkedAtMs: int().min(0).nullable(),
|
|
6834
|
+
modelVersion: literal("openmeld.runtime_coordinator.head_lifecycle.v1"),
|
|
6835
|
+
noExecutionDecision: union([runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionTraceSchema, nullFactory()]),
|
|
6836
|
+
ownerUserId: string().min(1),
|
|
6837
|
+
primaryDispatchId: string().min(1),
|
|
6838
|
+
publicationIntent: union([runtimeTransportRuntimeCoordinatorHeadPublicationIntentTraceSchema, nullFactory()]),
|
|
6613
6839
|
publicationExhaustion: runtimeTransportRuntimeCoordinatorHeadPublicationExhaustionTraceSchema.optional(),
|
|
6614
6840
|
publicationOutcome: runtimeTransportRuntimeCoordinatorHeadPublicationOutcomeTraceSchema.optional(),
|
|
6615
6841
|
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.nullable(),
|
|
6616
6842
|
status: runtimeTransportRuntimeCoordinatorHeadLifecycleStatusSchema,
|
|
6617
6843
|
targetWakeLifecycleIdentity: targetWakeLifecycleIdentitySchema,
|
|
6618
|
-
targetWakeLifecycleId:
|
|
6844
|
+
targetWakeLifecycleId: string().min(1).max(2048),
|
|
6619
6845
|
targetDisplay: runtimeTransportRuntimeCoordinatorHeadTargetDisplayTraceSchema.optional(),
|
|
6620
|
-
updatedAtMs:
|
|
6621
|
-
waitingBoundary:
|
|
6846
|
+
updatedAtMs: int().min(0),
|
|
6847
|
+
waitingBoundary: union([runtimeTransportRuntimeCoordinatorHeadWaitingBoundarySchema, nullFactory()])
|
|
6622
6848
|
});
|
|
6623
|
-
|
|
6624
|
-
v:
|
|
6849
|
+
strictObject({
|
|
6850
|
+
v: literal(1),
|
|
6625
6851
|
targetWakeLifecycleIdentity: targetWakeLifecycleIdentitySchema
|
|
6626
6852
|
});
|
|
6627
|
-
|
|
6628
|
-
|
|
6853
|
+
discriminatedUnion("readStatus", [
|
|
6854
|
+
strictObject({
|
|
6629
6855
|
lifecycle: runtimeTransportRuntimeCoordinatorHeadLifecycleTraceRecordSchema,
|
|
6630
|
-
ok:
|
|
6631
|
-
readStatus:
|
|
6856
|
+
ok: literal(true),
|
|
6857
|
+
readStatus: literal("found")
|
|
6632
6858
|
}),
|
|
6633
|
-
|
|
6634
|
-
ok:
|
|
6635
|
-
readStatus:
|
|
6636
|
-
reasonCode:
|
|
6637
|
-
targetWakeLifecycleId:
|
|
6859
|
+
strictObject({
|
|
6860
|
+
ok: literal(true),
|
|
6861
|
+
readStatus: literal("missing"),
|
|
6862
|
+
reasonCode: literal("runtime_coordinator.head_lifecycle_not_found"),
|
|
6863
|
+
targetWakeLifecycleId: string().min(1).max(2048)
|
|
6638
6864
|
}),
|
|
6639
|
-
|
|
6640
|
-
ok:
|
|
6641
|
-
readStatus:
|
|
6642
|
-
reasonCode:
|
|
6643
|
-
targetWakeLifecycleId:
|
|
6865
|
+
strictObject({
|
|
6866
|
+
ok: literal(false),
|
|
6867
|
+
readStatus: literal("authority_unavailable"),
|
|
6868
|
+
reasonCode: string().min(1).max(160),
|
|
6869
|
+
targetWakeLifecycleId: string().min(1).max(2048)
|
|
6644
6870
|
})
|
|
6645
6871
|
]);
|
|
6646
|
-
const runtimeTransportPreExecutionHandoffReasonCodeSchema =
|
|
6647
|
-
|
|
6648
|
-
v:
|
|
6649
|
-
attemptId:
|
|
6650
|
-
autoRelayDepth:
|
|
6651
|
-
dispatchChainId:
|
|
6652
|
-
dispatchId:
|
|
6653
|
-
firstSeenAtMs:
|
|
6654
|
-
idempotencyKey:
|
|
6655
|
-
observedAtMs:
|
|
6872
|
+
const runtimeTransportPreExecutionHandoffReasonCodeSchema = enumFactory(["daemon.profile.offline"]);
|
|
6873
|
+
strictObject({
|
|
6874
|
+
v: literal(1),
|
|
6875
|
+
attemptId: string().min(1).nullable().optional(),
|
|
6876
|
+
autoRelayDepth: number().int().nonnegative().optional(),
|
|
6877
|
+
dispatchChainId: string().min(1).nullable().optional(),
|
|
6878
|
+
dispatchId: string().min(1),
|
|
6879
|
+
firstSeenAtMs: number().int().nonnegative(),
|
|
6880
|
+
idempotencyKey: string().min(1).max(512),
|
|
6881
|
+
observedAtMs: number().int().nonnegative(),
|
|
6656
6882
|
reasonCode: runtimeTransportPreExecutionHandoffReasonCodeSchema,
|
|
6657
|
-
sourceClientMessageId:
|
|
6658
|
-
sourceEventId:
|
|
6659
|
-
spaceId:
|
|
6883
|
+
sourceClientMessageId: string().min(1).max(200).nullable().optional(),
|
|
6884
|
+
sourceEventId: string().min(1),
|
|
6885
|
+
spaceId: string().min(1),
|
|
6660
6886
|
spacePassword: spacePasswordSchema.optional(),
|
|
6661
|
-
targetProfileId:
|
|
6887
|
+
targetProfileId: string().min(1),
|
|
6662
6888
|
targetProfileMentionLabel: spaceMentionLabelSchema.optional(),
|
|
6663
|
-
targetProfileName:
|
|
6664
|
-
taskId:
|
|
6889
|
+
targetProfileName: string().min(1).max(64).optional(),
|
|
6890
|
+
taskId: string().min(1),
|
|
6665
6891
|
threadContext: spaceThreadContextSchema.optional(),
|
|
6666
|
-
visitedProfileIds:
|
|
6667
|
-
visitedProfileIdsHash:
|
|
6668
|
-
});
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
deadlineAtMs:
|
|
6672
|
-
nextAlarmAtMs:
|
|
6673
|
-
ok:
|
|
6892
|
+
visitedProfileIds: array(string().min(1)).max(256).optional(),
|
|
6893
|
+
visitedProfileIdsHash: string().min(1).nullable().optional()
|
|
6894
|
+
});
|
|
6895
|
+
discriminatedUnion("status", [
|
|
6896
|
+
strictObject({
|
|
6897
|
+
deadlineAtMs: number().int().nonnegative(),
|
|
6898
|
+
nextAlarmAtMs: number().int().nonnegative(),
|
|
6899
|
+
ok: literal(true),
|
|
6674
6900
|
reasonCode: runtimeTransportPreExecutionHandoffReasonCodeSchema,
|
|
6675
|
-
status:
|
|
6901
|
+
status: literal("waiting_for_recovery")
|
|
6676
6902
|
}),
|
|
6677
|
-
|
|
6678
|
-
deadlineAtMs:
|
|
6679
|
-
ok:
|
|
6680
|
-
publishedSignalId:
|
|
6903
|
+
strictObject({
|
|
6904
|
+
deadlineAtMs: number().int().nonnegative(),
|
|
6905
|
+
ok: literal(true),
|
|
6906
|
+
publishedSignalId: string().min(1),
|
|
6681
6907
|
reasonCode: runtimeTransportPreExecutionHandoffReasonCodeSchema,
|
|
6682
|
-
resultRef:
|
|
6683
|
-
status:
|
|
6908
|
+
resultRef: string().min(1),
|
|
6909
|
+
status: literal("failure_published")
|
|
6684
6910
|
}),
|
|
6685
|
-
|
|
6686
|
-
deadlineAtMs:
|
|
6687
|
-
nextPublicationRetryAtMs:
|
|
6688
|
-
ok:
|
|
6689
|
-
publicationErrorCode:
|
|
6911
|
+
strictObject({
|
|
6912
|
+
deadlineAtMs: number().int().nonnegative(),
|
|
6913
|
+
nextPublicationRetryAtMs: number().int().nonnegative(),
|
|
6914
|
+
ok: literal(true),
|
|
6915
|
+
publicationErrorCode: string().min(1),
|
|
6690
6916
|
reasonCode: runtimeTransportPreExecutionHandoffReasonCodeSchema,
|
|
6691
|
-
resultRef:
|
|
6692
|
-
status:
|
|
6917
|
+
resultRef: string().min(1),
|
|
6918
|
+
status: literal("failure_publication_retry_scheduled")
|
|
6693
6919
|
}),
|
|
6694
|
-
|
|
6695
|
-
deadlineAtMs:
|
|
6696
|
-
ok:
|
|
6920
|
+
strictObject({
|
|
6921
|
+
deadlineAtMs: number().int().nonnegative(),
|
|
6922
|
+
ok: literal(true),
|
|
6697
6923
|
reasonCode: runtimeTransportPreExecutionHandoffReasonCodeSchema,
|
|
6698
|
-
status:
|
|
6924
|
+
status: literal("handoff_recovered")
|
|
6699
6925
|
}),
|
|
6700
|
-
|
|
6701
|
-
deadlineAtMs:
|
|
6702
|
-
ok:
|
|
6926
|
+
strictObject({
|
|
6927
|
+
deadlineAtMs: number().int().nonnegative(),
|
|
6928
|
+
ok: literal(true),
|
|
6703
6929
|
reasonCode: runtimeTransportPreExecutionHandoffReasonCodeSchema,
|
|
6704
|
-
status:
|
|
6930
|
+
status: literal("legacy_evidence_only")
|
|
6705
6931
|
}),
|
|
6706
|
-
|
|
6707
|
-
ok:
|
|
6708
|
-
reasonCode:
|
|
6709
|
-
status:
|
|
6932
|
+
strictObject({
|
|
6933
|
+
ok: literal(false),
|
|
6934
|
+
reasonCode: string().min(1),
|
|
6935
|
+
status: literal("retry_later")
|
|
6710
6936
|
})
|
|
6711
6937
|
]);
|
|
6712
|
-
const runtimeTransportDispatchLifecyclePhaseSchema =
|
|
6938
|
+
const runtimeTransportDispatchLifecyclePhaseSchema = enumFactory([
|
|
6713
6939
|
"accepted_local",
|
|
6714
6940
|
"running",
|
|
6715
6941
|
"completed_local"
|
|
6716
6942
|
]);
|
|
6717
|
-
const runtimeTransportDispatchLocalQueueWaitReasonSchema =
|
|
6943
|
+
const runtimeTransportDispatchLocalQueueWaitReasonSchema = enumFactory([
|
|
6718
6944
|
"global_concurrency",
|
|
6719
6945
|
"local_execution_lane_concurrency",
|
|
6720
6946
|
"none"
|
|
6721
6947
|
]);
|
|
6722
|
-
const runtimeTransportDispatchLocalQueueDiagnosticsSchema =
|
|
6723
|
-
activeForLane:
|
|
6724
|
-
activeGlobal:
|
|
6725
|
-
globalConcurrency:
|
|
6726
|
-
queueDepth:
|
|
6727
|
-
queueMax:
|
|
6728
|
-
queuePosition:
|
|
6729
|
-
status:
|
|
6948
|
+
const runtimeTransportDispatchLocalQueueDiagnosticsSchema = strictObject({
|
|
6949
|
+
activeForLane: number().int().nonnegative(),
|
|
6950
|
+
activeGlobal: number().int().nonnegative(),
|
|
6951
|
+
globalConcurrency: number().int().positive(),
|
|
6952
|
+
queueDepth: number().int().nonnegative(),
|
|
6953
|
+
queueMax: number().int().positive(),
|
|
6954
|
+
queuePosition: union([number().int().positive(), nullFactory()]),
|
|
6955
|
+
status: enumFactory(["queued", "starting_runtime"]),
|
|
6730
6956
|
waitReason: runtimeTransportDispatchLocalQueueWaitReasonSchema
|
|
6731
6957
|
});
|
|
6732
|
-
const runtimeTransportDispatchLifecycleRequestSchema =
|
|
6733
|
-
v:
|
|
6958
|
+
const runtimeTransportDispatchLifecycleRequestSchema = strictObject({
|
|
6959
|
+
v: literal(1),
|
|
6734
6960
|
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.optional(),
|
|
6735
6961
|
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema.optional(),
|
|
6736
|
-
dispatchId:
|
|
6737
|
-
attemptId:
|
|
6738
|
-
daemonSessionId:
|
|
6739
|
-
connectionGeneration:
|
|
6740
|
-
leaseEpoch:
|
|
6962
|
+
dispatchId: string().min(1),
|
|
6963
|
+
attemptId: string().min(1),
|
|
6964
|
+
daemonSessionId: string().min(1),
|
|
6965
|
+
connectionGeneration: number().int().positive(),
|
|
6966
|
+
leaseEpoch: number().int().positive(),
|
|
6741
6967
|
phase: runtimeTransportDispatchLifecyclePhaseSchema,
|
|
6742
|
-
lifecycleAtMs:
|
|
6968
|
+
lifecycleAtMs: number().int().nonnegative(),
|
|
6743
6969
|
localQueue: runtimeTransportDispatchLocalQueueDiagnosticsSchema.optional()
|
|
6744
6970
|
});
|
|
6745
|
-
const runtimeTransportDispatchRuntimeEvidencePhaseSchema =
|
|
6971
|
+
const runtimeTransportDispatchRuntimeEvidencePhaseSchema = enumFactory([
|
|
6746
6972
|
"received",
|
|
6747
6973
|
"claimed",
|
|
6748
6974
|
"runtime_started",
|
|
@@ -6750,29 +6976,29 @@ const runtimeTransportDispatchRuntimeEvidencePhaseSchema = z$1.enum([
|
|
|
6750
6976
|
"completed",
|
|
6751
6977
|
"failed"
|
|
6752
6978
|
]);
|
|
6753
|
-
const runtimeTransportDispatchRuntimeEvidenceRequestSchema =
|
|
6754
|
-
v:
|
|
6979
|
+
const runtimeTransportDispatchRuntimeEvidenceRequestSchema = strictObject({
|
|
6980
|
+
v: literal(1),
|
|
6755
6981
|
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.optional(),
|
|
6756
6982
|
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema.optional(),
|
|
6757
|
-
dispatchId:
|
|
6758
|
-
attemptId:
|
|
6983
|
+
dispatchId: string().min(1),
|
|
6984
|
+
attemptId: string().min(1),
|
|
6759
6985
|
executionIdentityEcho: runtimeTransportRuntimeEvidenceIdentityEchoSchema,
|
|
6760
|
-
daemonSessionId:
|
|
6761
|
-
connectionGeneration:
|
|
6762
|
-
leaseEpoch:
|
|
6986
|
+
daemonSessionId: string().min(1),
|
|
6987
|
+
connectionGeneration: number().int().positive(),
|
|
6988
|
+
leaseEpoch: number().int().positive(),
|
|
6763
6989
|
phase: runtimeTransportDispatchRuntimeEvidencePhaseSchema,
|
|
6764
|
-
evidenceAtMs:
|
|
6765
|
-
taskId:
|
|
6766
|
-
spaceId:
|
|
6767
|
-
sourceSignalId:
|
|
6768
|
-
sourceClientMessageId:
|
|
6769
|
-
targetProfileId:
|
|
6770
|
-
claimLeaseId:
|
|
6771
|
-
durationMs:
|
|
6772
|
-
reasonCode:
|
|
6773
|
-
errorName:
|
|
6774
|
-
});
|
|
6775
|
-
const localAgentToolActivityNameSchema =
|
|
6990
|
+
evidenceAtMs: number().int().nonnegative(),
|
|
6991
|
+
taskId: string().min(1),
|
|
6992
|
+
spaceId: string().min(1),
|
|
6993
|
+
sourceSignalId: string().min(1),
|
|
6994
|
+
sourceClientMessageId: string().min(1).max(200).nullable().optional(),
|
|
6995
|
+
targetProfileId: string().min(1),
|
|
6996
|
+
claimLeaseId: string().min(1).optional(),
|
|
6997
|
+
durationMs: number().finite().nonnegative().optional(),
|
|
6998
|
+
reasonCode: string().trim().min(1).max(160).optional(),
|
|
6999
|
+
errorName: string().trim().min(1).max(160).optional()
|
|
7000
|
+
});
|
|
7001
|
+
const localAgentToolActivityNameSchema = enumFactory([
|
|
6776
7002
|
"agent_run_command",
|
|
6777
7003
|
"agent_read_files",
|
|
6778
7004
|
"agent_edit_files",
|
|
@@ -6784,78 +7010,78 @@ const localAgentToolActivityNameSchema = z$1.enum([
|
|
|
6784
7010
|
"agent_use_tool"
|
|
6785
7011
|
]);
|
|
6786
7012
|
const localAgentStreamToolPartSchema = agentStreamToolPartSchema.extend({ toolName: localAgentToolActivityNameSchema });
|
|
6787
|
-
const runtimeTransportDispatchToolActivityRequestSchema =
|
|
6788
|
-
v:
|
|
7013
|
+
const runtimeTransportDispatchToolActivityRequestSchema = strictObject({
|
|
7014
|
+
v: literal(1),
|
|
6789
7015
|
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.optional(),
|
|
6790
7016
|
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema.optional(),
|
|
6791
|
-
dispatchId:
|
|
6792
|
-
attemptId:
|
|
7017
|
+
dispatchId: string().min(1),
|
|
7018
|
+
attemptId: string().min(1),
|
|
6793
7019
|
executionIdentityEcho: runtimeTransportRuntimeEvidenceIdentityEchoSchema,
|
|
6794
|
-
daemonSessionId:
|
|
6795
|
-
connectionGeneration:
|
|
6796
|
-
leaseEpoch:
|
|
6797
|
-
sequence:
|
|
6798
|
-
observedAtMs:
|
|
6799
|
-
taskId:
|
|
6800
|
-
spaceId:
|
|
6801
|
-
sourceSignalId:
|
|
6802
|
-
targetProfileId:
|
|
7020
|
+
daemonSessionId: string().min(1),
|
|
7021
|
+
connectionGeneration: number().int().positive(),
|
|
7022
|
+
leaseEpoch: number().int().positive(),
|
|
7023
|
+
sequence: number().int().positive(),
|
|
7024
|
+
observedAtMs: number().int().nonnegative(),
|
|
7025
|
+
taskId: string().min(1),
|
|
7026
|
+
spaceId: string().min(1),
|
|
7027
|
+
sourceSignalId: string().min(1),
|
|
7028
|
+
targetProfileId: string().min(1),
|
|
6803
7029
|
part: localAgentStreamToolPartSchema
|
|
6804
7030
|
});
|
|
6805
|
-
const runtimeTransportDispatchInteractionRequestSchema =
|
|
6806
|
-
v:
|
|
7031
|
+
const runtimeTransportDispatchInteractionRequestSchema = strictObject({
|
|
7032
|
+
v: literal(1),
|
|
6807
7033
|
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId,
|
|
6808
7034
|
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema,
|
|
6809
|
-
dispatchId:
|
|
6810
|
-
attemptId:
|
|
7035
|
+
dispatchId: string().min(1),
|
|
7036
|
+
attemptId: string().min(1),
|
|
6811
7037
|
executionIdentityEcho: runtimeTransportRuntimeEvidenceIdentityEchoSchema,
|
|
6812
|
-
daemonSessionId:
|
|
6813
|
-
connectionGeneration:
|
|
6814
|
-
leaseEpoch:
|
|
6815
|
-
taskId:
|
|
7038
|
+
daemonSessionId: string().min(1),
|
|
7039
|
+
connectionGeneration: number().int().positive(),
|
|
7040
|
+
leaseEpoch: number().int().positive(),
|
|
7041
|
+
taskId: string().min(1),
|
|
6816
7042
|
interaction: agentInteractionRequestSchema
|
|
6817
7043
|
});
|
|
6818
|
-
const runtimeTransportDispatchInteractionResponseFramePayloadSchema =
|
|
7044
|
+
const runtimeTransportDispatchInteractionResponseFramePayloadSchema = strictObject({
|
|
6819
7045
|
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId,
|
|
6820
|
-
dispatchId:
|
|
6821
|
-
attemptId:
|
|
6822
|
-
interactionId:
|
|
7046
|
+
dispatchId: string().min(1),
|
|
7047
|
+
attemptId: string().min(1),
|
|
7048
|
+
interactionId: string().trim().min(1).max(256),
|
|
6823
7049
|
response: agentInteractionResponseSchema,
|
|
6824
|
-
respondedAtMs:
|
|
7050
|
+
respondedAtMs: number().int().nonnegative()
|
|
6825
7051
|
});
|
|
6826
|
-
const runtimeTransportDispatchInteractionDeliveredRequestSchema =
|
|
6827
|
-
v:
|
|
7052
|
+
const runtimeTransportDispatchInteractionDeliveredRequestSchema = strictObject({
|
|
7053
|
+
v: literal(1),
|
|
6828
7054
|
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId,
|
|
6829
7055
|
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema,
|
|
6830
|
-
dispatchId:
|
|
6831
|
-
attemptId:
|
|
7056
|
+
dispatchId: string().min(1),
|
|
7057
|
+
attemptId: string().min(1),
|
|
6832
7058
|
executionIdentityEcho: runtimeTransportRuntimeEvidenceIdentityEchoSchema,
|
|
6833
|
-
daemonSessionId:
|
|
6834
|
-
connectionGeneration:
|
|
6835
|
-
leaseEpoch:
|
|
6836
|
-
interactionId:
|
|
6837
|
-
deliveredAtMs:
|
|
6838
|
-
});
|
|
6839
|
-
|
|
6840
|
-
v:
|
|
6841
|
-
actorOwnerUserId:
|
|
7059
|
+
daemonSessionId: string().min(1),
|
|
7060
|
+
connectionGeneration: number().int().positive(),
|
|
7061
|
+
leaseEpoch: number().int().positive(),
|
|
7062
|
+
interactionId: string().trim().min(1).max(256),
|
|
7063
|
+
deliveredAtMs: number().int().nonnegative()
|
|
7064
|
+
});
|
|
7065
|
+
strictObject({
|
|
7066
|
+
v: literal(1),
|
|
7067
|
+
actorOwnerUserId: string().min(1),
|
|
6842
7068
|
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId
|
|
6843
7069
|
});
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
v:
|
|
6847
|
-
actorOwnerUserId:
|
|
7070
|
+
strictObject({ pendingInteraction: agentInteractionPendingSummarySchema.nullable() });
|
|
7071
|
+
strictObject({
|
|
7072
|
+
v: literal(1),
|
|
7073
|
+
actorOwnerUserId: string().min(1),
|
|
6848
7074
|
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId,
|
|
6849
|
-
interactionId:
|
|
7075
|
+
interactionId: string().trim().min(1).max(256),
|
|
6850
7076
|
response: agentInteractionResponseSchema
|
|
6851
7077
|
});
|
|
6852
|
-
const runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema =
|
|
6853
|
-
ok:
|
|
6854
|
-
status:
|
|
6855
|
-
respondedAtMs:
|
|
6856
|
-
}),
|
|
6857
|
-
ok:
|
|
6858
|
-
status:
|
|
7078
|
+
const runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema = discriminatedUnion("status", [strictObject({
|
|
7079
|
+
ok: literal(true),
|
|
7080
|
+
status: enumFactory(["accepted", "already_resolved"]),
|
|
7081
|
+
respondedAtMs: number().int().nonnegative()
|
|
7082
|
+
}), strictObject({
|
|
7083
|
+
ok: literal(false),
|
|
7084
|
+
status: enumFactory([
|
|
6859
7085
|
"expired",
|
|
6860
7086
|
"interaction_mismatch",
|
|
6861
7087
|
"not_found",
|
|
@@ -6863,91 +7089,91 @@ const runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema = z$1.d
|
|
|
6863
7089
|
"response_invalid",
|
|
6864
7090
|
"retry_later"
|
|
6865
7091
|
]),
|
|
6866
|
-
message:
|
|
7092
|
+
message: string().trim().min(1).max(1e3)
|
|
6867
7093
|
})]);
|
|
6868
|
-
const nullableLifecyclePhaseTimestampSchema =
|
|
6869
|
-
const runtimeTransportDispatchLifecycleSnapshotSchema =
|
|
6870
|
-
phase:
|
|
7094
|
+
const nullableLifecyclePhaseTimestampSchema = union([number().int().nonnegative(), nullFactory()]);
|
|
7095
|
+
const runtimeTransportDispatchLifecycleSnapshotSchema = strictObject({
|
|
7096
|
+
phase: enumFactory([
|
|
6871
7097
|
"starting",
|
|
6872
7098
|
"accepted_local",
|
|
6873
7099
|
"running",
|
|
6874
7100
|
"completed_local",
|
|
6875
7101
|
"result_received"
|
|
6876
7102
|
]),
|
|
6877
|
-
createdAtMs:
|
|
7103
|
+
createdAtMs: number().int().nonnegative(),
|
|
6878
7104
|
acceptedLocalAtMs: nullableLifecyclePhaseTimestampSchema,
|
|
6879
7105
|
runningAtMs: nullableLifecyclePhaseTimestampSchema,
|
|
6880
7106
|
completedLocalAtMs: nullableLifecyclePhaseTimestampSchema,
|
|
6881
|
-
lastLifecycleAtMs:
|
|
7107
|
+
lastLifecycleAtMs: number().int().nonnegative()
|
|
6882
7108
|
});
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
state:
|
|
7109
|
+
discriminatedUnion("state", [
|
|
7110
|
+
strictObject({
|
|
7111
|
+
state: literal("completed"),
|
|
6886
7112
|
lifecycle: runtimeTransportDispatchLifecycleSnapshotSchema.optional(),
|
|
6887
7113
|
taskResult: openMeldDaemonTaskResultEnvelopeSchema
|
|
6888
7114
|
}),
|
|
6889
|
-
|
|
6890
|
-
state:
|
|
7115
|
+
strictObject({
|
|
7116
|
+
state: literal("pending"),
|
|
6891
7117
|
lifecycle: runtimeTransportDispatchLifecycleSnapshotSchema
|
|
6892
7118
|
}),
|
|
6893
|
-
|
|
6894
|
-
state:
|
|
7119
|
+
strictObject({
|
|
7120
|
+
state: literal("failed"),
|
|
6895
7121
|
lifecycle: runtimeTransportDispatchLifecycleSnapshotSchema.optional(),
|
|
6896
7122
|
reasonCode: runtimeTransportErrorCodeSchema
|
|
6897
7123
|
})
|
|
6898
7124
|
]);
|
|
6899
|
-
const runtimeTransportSubmitTaskResultRequestSchema =
|
|
6900
|
-
v:
|
|
7125
|
+
const runtimeTransportSubmitTaskResultRequestSchema = strictObject({
|
|
7126
|
+
v: literal(1),
|
|
6901
7127
|
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.optional(),
|
|
6902
7128
|
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema.optional(),
|
|
6903
|
-
dispatchId:
|
|
6904
|
-
attemptId:
|
|
7129
|
+
dispatchId: string().min(1),
|
|
7130
|
+
attemptId: string().min(1).optional(),
|
|
6905
7131
|
executionIdentityEcho: runtimeTransportResultIdentityEchoSchema,
|
|
6906
|
-
daemonSessionId:
|
|
6907
|
-
connectionGeneration:
|
|
6908
|
-
leaseEpoch:
|
|
7132
|
+
daemonSessionId: string().min(1),
|
|
7133
|
+
connectionGeneration: number().int().positive(),
|
|
7134
|
+
leaseEpoch: number().int().positive(),
|
|
6909
7135
|
taskResult: openMeldDaemonTaskResultEnvelopeSchema
|
|
6910
7136
|
});
|
|
6911
|
-
|
|
6912
|
-
|
|
6913
|
-
ok:
|
|
6914
|
-
status:
|
|
7137
|
+
discriminatedUnion("status", [
|
|
7138
|
+
strictObject({
|
|
7139
|
+
ok: literal(true),
|
|
7140
|
+
status: literal("accepted")
|
|
6915
7141
|
}),
|
|
6916
|
-
|
|
6917
|
-
ok:
|
|
6918
|
-
status:
|
|
6919
|
-
reasonCode:
|
|
7142
|
+
strictObject({
|
|
7143
|
+
ok: literal(false),
|
|
7144
|
+
status: literal("review_required"),
|
|
7145
|
+
reasonCode: literal("space.agent_reply.context_changed")
|
|
6920
7146
|
}),
|
|
6921
|
-
|
|
6922
|
-
ok:
|
|
6923
|
-
status:
|
|
7147
|
+
strictObject({
|
|
7148
|
+
ok: literal(false),
|
|
7149
|
+
status: literal("retry_later"),
|
|
6924
7150
|
reasonCode: runtimeTransportErrorCodeSchema
|
|
6925
7151
|
}),
|
|
6926
|
-
|
|
6927
|
-
ok:
|
|
6928
|
-
status:
|
|
7152
|
+
strictObject({
|
|
7153
|
+
ok: literal(false),
|
|
7154
|
+
status: literal("rejected_terminal"),
|
|
6929
7155
|
reasonCode: runtimeTransportErrorCodeSchema
|
|
6930
7156
|
})
|
|
6931
7157
|
]);
|
|
6932
|
-
const runtimeTransportDispatchPreviewRequestSchema =
|
|
6933
|
-
v:
|
|
6934
|
-
dispatchId:
|
|
6935
|
-
attemptId:
|
|
6936
|
-
daemonSessionId:
|
|
6937
|
-
connectionGeneration:
|
|
6938
|
-
leaseEpoch:
|
|
6939
|
-
previewText:
|
|
6940
|
-
});
|
|
6941
|
-
const runtimeTransportDispatchPreviewEndRequestSchema =
|
|
6942
|
-
v:
|
|
6943
|
-
dispatchId:
|
|
6944
|
-
attemptId:
|
|
6945
|
-
daemonSessionId:
|
|
6946
|
-
connectionGeneration:
|
|
6947
|
-
leaseEpoch:
|
|
6948
|
-
targetProfileName:
|
|
6949
|
-
});
|
|
6950
|
-
const daemonStreamCodeSchema =
|
|
7158
|
+
const runtimeTransportDispatchPreviewRequestSchema = strictObject({
|
|
7159
|
+
v: literal(1),
|
|
7160
|
+
dispatchId: string().min(1),
|
|
7161
|
+
attemptId: string().min(1),
|
|
7162
|
+
daemonSessionId: string().min(1),
|
|
7163
|
+
connectionGeneration: number().int().positive(),
|
|
7164
|
+
leaseEpoch: number().int().positive(),
|
|
7165
|
+
previewText: string().min(1).max(MAX_TEXT_LENGTH)
|
|
7166
|
+
});
|
|
7167
|
+
const runtimeTransportDispatchPreviewEndRequestSchema = strictObject({
|
|
7168
|
+
v: literal(1),
|
|
7169
|
+
dispatchId: string().min(1),
|
|
7170
|
+
attemptId: string().min(1),
|
|
7171
|
+
daemonSessionId: string().min(1),
|
|
7172
|
+
connectionGeneration: number().int().positive(),
|
|
7173
|
+
leaseEpoch: number().int().positive(),
|
|
7174
|
+
targetProfileName: string().min(1).max(64).optional()
|
|
7175
|
+
});
|
|
7176
|
+
const daemonStreamCodeSchema = enumFactory([
|
|
6951
7177
|
"daemon.computer_file_access.read_policy",
|
|
6952
7178
|
"daemon.computer_file_access.read_policy_result",
|
|
6953
7179
|
"daemon.computer_file_access.update_policy",
|
|
@@ -6994,21 +7220,21 @@ const daemonStreamCodeSchema = z$1.enum([
|
|
|
6994
7220
|
"daemon.local_project_control.remove_missing_connections_result",
|
|
6995
7221
|
"daemon.error"
|
|
6996
7222
|
]);
|
|
6997
|
-
const daemonStreamFrameSchema =
|
|
6998
|
-
v:
|
|
7223
|
+
const daemonStreamFrameSchema = strictObject({
|
|
7224
|
+
v: literal(1),
|
|
6999
7225
|
code: daemonStreamCodeSchema,
|
|
7000
|
-
payload:
|
|
7226
|
+
payload: record(string(), unknown())
|
|
7001
7227
|
});
|
|
7002
|
-
const daemonStreamErrorFrameCodeSchema = runtimeTransportErrorCodeSchema.or(
|
|
7003
|
-
|
|
7004
|
-
v:
|
|
7005
|
-
code:
|
|
7006
|
-
payload:
|
|
7228
|
+
const daemonStreamErrorFrameCodeSchema = runtimeTransportErrorCodeSchema.or(union([literal("schema.invalid"), literal("schema.invalid.runtime_response")]));
|
|
7229
|
+
strictObject({
|
|
7230
|
+
v: literal(1),
|
|
7231
|
+
code: literal("daemon.error"),
|
|
7232
|
+
payload: strictObject({
|
|
7007
7233
|
code: daemonStreamErrorFrameCodeSchema,
|
|
7008
|
-
message:
|
|
7234
|
+
message: string().min(1)
|
|
7009
7235
|
})
|
|
7010
7236
|
});
|
|
7011
7237
|
//#endregion
|
|
7012
|
-
export { agentTaskCompletionObservationSchema as $,
|
|
7238
|
+
export { agentTaskCompletionObservationSchema as $, array as $n, profileWorkspaceModeSchema as $r, skippedDaemonProfileSchema as $t, runtimeTransportRegisterSessionResponseSchema as A, AGENT_INTERACTION_DEFAULT_TIMEOUT_MS as An, spaceTraceExecutionIdentityProjectionSchema as Ar, conversationCompactionMarkerSchema as At, openMeldDaemonTaskResultPayloadSchema as B, localCliComponentUpdateProjectionSchema as Bn, updateOrganizationInformationProtectionPolicyBodySchema as Br, resolveSpaceFileMimeType as Bt, runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema as C, AGENT_STREAM_SNAPSHOT_MAX_CHARS as Cn, clientMessageIdSchema as Cr, spaceAttachmentDescriptorSchema as Ct, runtimeTransportOpenMeldToolsControlFramePayloadSchema as D, spaceAgentStreamPresenceSchema as Dn, runtimeCoordinatorExecutionRecordSchema as Dr, spaceAttachmentSizeBytesSchema as Dt, runtimeTransportLookupRouteOwnerServiceEvidenceSchema as E, spaceAgentStreamPartFrameSchema as En, runtimeCoordinatorExecutionEventSchema as Er, spaceAttachmentMimeTypeSchema as Et, runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema as F, formatLocalComponentsSummaryDescription as Fn, resolveSpaceMentionLabels as Fr, createSpaceFolderResponseSchema as Ft, localFolderPickerDaemonFrameSchema as G, openMeldToolsMaintenanceMutationResultSchema as Gn, openMeldRequestContextSchema as Gr, spaceMessageFileReferencesSchema as Gt, openMeldSpaceEgressActionSchema as H, localComponentUpdateProjectionSchema as Hn, executeExecutionRecoveryResponseSchema as Hr, restoreSpaceFileRevisionResponseSchema as Ht, runtimeTransportSubmitTaskResultRequestSchema as I, formatLocalComponentsSummaryLabel as In, spaceMentionLabelSchema as Ir, getSpaceFileResponseSchema as It, localFolderPickerRequestSchema as J, openMeldToolsUpdateOperationPhaseSchema as Jn, normalizeOptionalWorkingDirectory as Jr, uploadSpaceFileResponseSchema as Jt, localFolderPickerHelperProtocolResultSchema as K, openMeldToolsMaintenanceProjectionSchema as Kn, MAX_PROFILE_WORKING_DIRECTORY_LENGTH as Kr, trashSpaceFileEntryResponseSchema as Kt, openMeldDaemonProviderAccessEvidenceProviderSchema as L, formatLocalSetupActionDescription as Ln, spaceMentionLabelSourceSchema as Lr, isSpaceFileTextEditable as Lt, runtimeTransportResumeControllerConversationFramePayloadSchema as M, agentInteractionRequestSchema as Mn, normalizeSpacePasswordText as Mr, centerAgentInteractionSourceSchema as Mt, runtimeTransportResumeControllerConversationResultFramePayloadSchema as N, agentInteractionResolutionSchema as Nn, spacePasswordSchema as Nr, SPACE_FILE_ERROR_CODES as Nt, runtimeTransportOpenMeldToolsControlResultFramePayloadSchema as O, spaceAgentStreamSnapshotSchema as On, runtimeCoordinatorExecutionTokenEnvelopeSchema as Or, spaceMessageAttachmentSchema as Ot, runtimeTransportRouteCatalogChangedFramePayloadSchema as P, agentInteractionResponseSchema as Pn, resolveSingleSpaceMentionLabels as Pr, SPACE_FILE_MAX_SIZE_BYTES as Pt, agentTaskCompletionConditionSchema as Q, NEVER as Qn, profileWorkingDirectorySchema as Qr, openMeldDaemonSyncRouteCatalogPayloadSchema as Qt, openMeldDaemonTaskResultEnvelopeWriteSchema as R, formatLocalSetupActionLabel as Rn, organizationInformationProtectionPolicyResponseSchema as Rr, listSpaceFileRevisionsResponseSchema as Rt, runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema as S, resolveMessageEnvelopeTargetField as Sn, postSpaceWakeStopResponseSchema as Sr, signalTextSchema as St, runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema as T, spaceAgentStreamDeltaFrameSchema as Tn, runtimeCoordinatorExecutionCreationDiagnosticSchema as Tr, spaceAttachmentFileNameSchema as Tt, LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY as U, localComponentUpdateStatusSchema as Un, inspectExecutionRecoveryResponseSchema as Ur, spaceFileMimeTypeSchema as Ut, openMeldDaemonTaskResultProjectFailureContextSchema as V, localComponentUpdatePolicySchema as Vn, executeExecutionRecoveryBodySchema as Vr, restoreSpaceFileEntryResponseSchema as Vt, OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER as W, localServiceComponentUpdateProjectionSchema as Wn, openMeldProfileIdSchema as Wr, spaceFileNameSchema as Wt, localFolderPathSchema as X, openMeldToolsUpdateRequestResultSchema as Xn, profileKindSchema as Xr, openMeldDaemonControlPlaneRequestSchema as Xt, localFolderPickerResultSchema as Y, openMeldToolsUpdateOperationSchema as Yn, openMeldRuntimeProfileIdSchema as Yr, localAgentInstallationOptionSchema as Yt, agentDelegationSnapshotSchema as Z, openMeldToolsUpdateRequestSourceSchema as Zn, profileSchema as Zr, openMeldDaemonControlPlaneResponseSchema as Zt, runtimeTransportHeartbeatRequestSchema as _, collectCanonicalMentionTextFragments as _n, undefinedFactory as _r, centerAgentTaskReferenceSchema as _t, runtimeTransportCapabilitiesSchema as a, MAX_TEXT_LENGTH as ai, spaceThreadSchema as an, int as ar, spaceWakeAgentTaskHandleSchema as at, runtimeTransportLocalAgentControlForkSessionFramePayloadSchema as b, messageEnvelopeSchema as bn, url as br, signalSystemNoticeDataSchema as bt, runtimeTransportDispatchInteractionRequestSchema as c, resolvePublicAgentAvailabilityCopy as ci, spaceContractSchema as cn, neverFactory as cr, AGENT_REPLY_PREVIEW_END_PURPOSE as ct, runtimeTransportDispatchPreviewEndRequestSchema as d, shouldPreferMappedPublicAgentFailureReason as di, spacePublicationModeSchema as dn, object as dr, DISPATCH_ACTIVITY_DISPATCHING_PURPOSE as dt, uuidProfileIdSchema as ei, providerDispatchRuntimeContextSchema as en, boolean as er, agentTaskHandleSchema as et, runtimeTransportDispatchPreviewRequestSchema as f, computerSetupModeSchema as fi, spaceDispatchPolicySchema as fn, preprocess as fr, DISPATCH_ACTIVITY_FAILED_PURPOSE as ft, runtimeTransportForkAgentSessionResultSchema as g, MESSAGE_MENTION_TYPE_VALUES as gn, tuple as gr, SPACE_MENTION_REJECT_NOTICE_PURPOSE as gt, runtimeTransportErrorCodeSchema as h, resolveCommandAgentWorkActivity as hi, targetWakeLifecycleIdentitySchema as hn, string as hr, SPACE_MEMBER_REMOVE_NOTICE_PURPOSE as ht, localWakeRouteReportSchema as i, trimmedStringFromUnknown as ii, spaceThreadEventSchema as in, enumFactory as ir, controllerAgentTaskHandleSchema as it, runtimeTransportRejectedProfileRegistrationSchema as j, agentInteractionPendingSummarySchema as jn, SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE as jr, spaceStatusSchema as jt, runtimeTransportRegisterSessionRequestSchema as k, spaceAgentStreamTerminalFrameSchema as kn, runtimeTransportDeliveryExecutionIdentitySchema as kr, spaceMessageAttachmentsSchema as kt, runtimeTransportDispatchInteractionResponseFramePayloadSchema as l, resolvePublicAgentFailureRecovery as li, resultArchivePolicySchema as ln, nullFactory as lr, AGENT_REPLY_PREVIEW_PURPOSE as lt, runtimeTransportDispatchToolActivityRequestSchema as m, openMeldWebUrlSchema as mi, workingLanguageTagSchema as mn, strictObject as mr, SPACE_MEMBER_JOIN_NOTICE_PURPOSE as mt, daemonExecutionCompatibilitySchema as n, nonEmptyTrimmedStringFromUnknown as ni, dispatchExecutionSchema as nn, discriminatedUnion as nr, areAgentTaskTerminalOutcomesEqual as nt, runtimeTransportDeliverDispatchRequestSchema as o, resolveDetailedPublicAgentFailureReason as oi, spaceThreadSignalPlacementSchema as on, iso as or, AGENT_REPLYING_END_PURPOSE as ot, runtimeTransportDispatchRuntimeEvidenceRequestSchema as p, openMeldNavigationTargetSchema as pi, workingLanguageGuidanceSchema as pn, record as pr, DISPATCH_ACTIVITY_RETRYING_PURPOSE as pt, localFolderPickerHelperResultSchema as q, openMeldToolsUpdateAttemptSchema as qn, agentProfileIdSchema as qr, updateSpaceFileEntryResponseSchema as qt, daemonStreamFrameSchema as r, optionalBooleanQuerySchema as ri, spaceThreadContextSchema as rn, email as rr, buildAgentTaskKey as rt, runtimeTransportDispatchInteractionDeliveredRequestSchema as s, resolveMappedPublicAgentFailureReason as si, spaceContractFieldsSchema as sn, literal as sr, AGENT_REPLYING_PURPOSE as st, CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH as t, finiteIntegerNumber as ti, conversationExecutionStateSchema as tn, coerce as tr, agentTaskTerminalOutcomeSchema as tt, runtimeTransportDispatchLifecycleRequestSchema as u, sanitizeDispatchErrorSummary as ui, spaceAllowedActionsSchema as un, number as ur, CONVERSATION_CONTINUITY_WARNING_PURPOSE as ut, runtimeTransportHeartbeatResponseSchema as v, formatCanonicalMentionLiteral as vn, union as vr, sanitizeSignalTextPreview as vt, runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema as w, agentStreamToolPartSchema as wn, parseOptionalClientMessageId as wr, spaceAttachmentDimensionSchema as wt, runtimeTransportLocalAgentControlInterruptFramePayloadSchema as x, normalizeMessageEnvelope as xn, postSpaceWakeStopBodySchema as xr, signalTextDataSchema as xt, runtimeTransportLocalAgentControlCancelFramePayloadSchema as y, getSpaceMessageAddressingRelationSupportForTargetKind as yn, unknown as yr, signalStatusDataSchema as yt, openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema as z, installedLocalComponentsSnapshotSchema as zn, organizationProtectedInformationSchema as zr, listSpaceFilesResponseSchema as zt };
|
|
7013
7239
|
|
|
7014
|
-
//# sourceMappingURL=runtime-transport-
|
|
7240
|
+
//# sourceMappingURL=runtime-transport-CWWB2Ily.js.map
|