openmeld 0.3.206 → 0.3.207
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-BkHWMxE4.js → add-me-membership-1JHMjZoR.js} +2 -2
- package/dist/{add-me-membership-BkHWMxE4.js.map → add-me-membership-1JHMjZoR.js.map} +1 -1
- package/dist/{agents-BOTlKiwS.js → agents-CIDsThyG.js} +150 -108
- package/dist/agents-CIDsThyG.js.map +1 -0
- package/dist/{api-client-foundation-6ms5gSu8.js → api-client-foundation-D6_NXHPV.js} +1 -1
- package/dist/{api-client-foundation-DpgDs0rw.js → api-client-foundation-DSurenul.js} +3 -3
- package/dist/{api-client-foundation-DpgDs0rw.js.map → api-client-foundation-DSurenul.js.map} +1 -1
- package/dist/auth-session-B7QMhHwh.js +4 -0
- package/dist/{auth-session-BjSqMLTz.js → auth-session-CO5XtFaq.js} +266 -75
- package/dist/auth-session-CO5XtFaq.js.map +1 -0
- package/dist/{base-url-CRAYNW-4.js → base-url-BE3pFiOZ.js} +1 -1
- package/dist/{base-url-9A557X2K.js → base-url-C6sHRNGu.js} +2 -2
- package/dist/{base-url-9A557X2K.js.map → base-url-C6sHRNGu.js.map} +1 -1
- package/dist/cli-binary-manifest-DiUulkp0.js +117 -0
- package/dist/cli-binary-manifest-DiUulkp0.js.map +1 -0
- package/dist/{command-CkbzbvXy.js → command-Bzt9zgnI.js} +13 -11
- package/dist/{command-CkbzbvXy.js.map → command-Bzt9zgnI.js.map} +1 -1
- package/dist/computer-connection-BOl79Ftf.js +54 -0
- package/dist/computer-connection-BOl79Ftf.js.map +1 -0
- package/dist/computer-connection-review-BTOvbJYL.js +39 -0
- package/dist/computer-connection-review-BTOvbJYL.js.map +1 -0
- package/dist/{computer-setup-continuation-Cd9nhLQ-.js → computer-setup-continuation-DmKdhR5u.js} +4 -4
- package/dist/{computer-setup-continuation-Cd9nhLQ-.js.map → computer-setup-continuation-DmKdhR5u.js.map} +1 -1
- package/dist/control-plane-D9jDcbMZ.js +1211 -0
- package/dist/control-plane-D9jDcbMZ.js.map +1 -0
- package/dist/daemon-local-state-file-jOXuXrky.js +45 -0
- package/dist/daemon-local-state-file-jOXuXrky.js.map +1 -0
- package/dist/daemon-runtime-lease-Dd4hdHNo.js +50 -0
- package/dist/daemon-runtime-lease-Dd4hdHNo.js.map +1 -0
- package/dist/{daemon-runtime-lease-BG9g0a6Z.js → daemon-runtime-lease-y3n1K0-C.js} +1 -1
- package/dist/{daemon-service-manager-DqVtRLBY.js → daemon-service-manager-Bh0LoLed.js} +1 -1
- package/dist/{daemon-service-manager-BVipiZwK.js → daemon-service-manager-GiMCiTmu.js} +99 -85
- package/dist/daemon-service-manager-GiMCiTmu.js.map +1 -0
- package/dist/daemon-service-runtime-DQW9gSLT.js +3642 -0
- package/dist/daemon-service-runtime-DQW9gSLT.js.map +1 -0
- package/dist/{daemon-state-BwIoDq7_.js → daemon-state-C37ZtIZK.js} +11 -5
- package/dist/daemon-state-C37ZtIZK.js.map +1 -0
- package/dist/{dist-CxadJClH.js → dist-D-kJdWZE.js} +726 -579
- package/dist/dist-D-kJdWZE.js.map +1 -0
- package/dist/dist-DTG_Vqc7.js +4 -0
- package/dist/distribution-DY2fBeSW.js +72 -0
- package/dist/distribution-DY2fBeSW.js.map +1 -0
- package/dist/{elapsed-time-C7P-nWIO.js → elapsed-time-CcoM2R3N.js} +7 -4
- package/dist/{elapsed-time-C7P-nWIO.js.map → elapsed-time-CcoM2R3N.js.map} +1 -1
- package/dist/{installation-inventory-P49sTjhe.js → installation-inventory-DJlwXa1q.js} +7 -6
- package/dist/{installation-inventory-P49sTjhe.js.map → installation-inventory-DJlwXa1q.js.map} +1 -1
- package/dist/{lock-CvBnBcFK.js → lock-Dxp6o_t_.js} +56 -7
- package/dist/lock-Dxp6o_t_.js.map +1 -0
- package/dist/{openmeld-ChOHuaqH.js → openmeld-CiL4AiB0.js} +226 -21
- package/dist/openmeld-CiL4AiB0.js.map +1 -0
- package/dist/openmeld-dev.js +1 -1
- package/dist/openmeld-environment-target-NtJYJe1D.js +256 -0
- package/dist/openmeld-environment-target-NtJYJe1D.js.map +1 -0
- package/dist/{openmeld-maintenance-worker-C7WykyDt.js → openmeld-maintenance-worker-DjdmRASI.js} +9 -8
- package/dist/{openmeld-maintenance-worker-C7WykyDt.js.map → openmeld-maintenance-worker-DjdmRASI.js.map} +1 -1
- package/dist/{openmeld-tools-update-coordinator-BBZhGo1A.js → openmeld-tools-update-coordinator-D9Skj8IE.js} +52 -4013
- package/dist/openmeld-tools-update-coordinator-D9Skj8IE.js.map +1 -0
- package/dist/openmeld.js +3 -3
- package/dist/{prepare-session-executor-CLmDoHom.js → prepare-session-executor-B0NtjHEL.js} +15 -13
- package/dist/{prepare-session-executor-CLmDoHom.js.map → prepare-session-executor-B0NtjHEL.js.map} +1 -1
- package/dist/{profiles-BCecj4Pj.js → runtime-transport-QIZmAo4-.js} +936 -2127
- package/dist/runtime-transport-QIZmAo4-.js.map +1 -0
- package/dist/service-account-authorization-Dt8kGvq8.js +56 -0
- package/dist/service-account-authorization-Dt8kGvq8.js.map +1 -0
- package/dist/service-control-capabilities-BU5F75zi.js +54 -0
- package/dist/service-control-capabilities-BU5F75zi.js.map +1 -0
- package/dist/service-control-capabilities-CzUB1ovW.js +4 -0
- package/dist/upgrade-DLECkjMt.js +4 -0
- package/dist/{upgrade-l_5Tge_z.js → upgrade-NxpTydHp.js} +6 -4
- package/dist/upgrade-NxpTydHp.js.map +1 -0
- package/package.json +2 -2
- package/dist/agents-BOTlKiwS.js.map +0 -1
- package/dist/auth-session-BjSqMLTz.js.map +0 -1
- package/dist/auth-session-ahQ5VXiF.js +0 -4
- package/dist/daemon-runtime-lease-CXlGR-iA.js +0 -87
- package/dist/daemon-runtime-lease-CXlGR-iA.js.map +0 -1
- package/dist/daemon-service-manager-BVipiZwK.js.map +0 -1
- package/dist/daemon-state-BwIoDq7_.js.map +0 -1
- package/dist/dist-0boZRalP.js +0 -4
- package/dist/dist-CxadJClH.js.map +0 -1
- package/dist/lock-CvBnBcFK.js.map +0 -1
- package/dist/openmeld-ChOHuaqH.js.map +0 -1
- package/dist/openmeld-tools-update-coordinator-BBZhGo1A.js.map +0 -1
- package/dist/profiles-BCecj4Pj.js.map +0 -1
- package/dist/upgrade-BKEAZKre.js +0 -4
- package/dist/upgrade-l_5Tge_z.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { a as runtimeDispatchPolicySchema, c as agentControllerConversationRefSchema, h as agentControllerRefSchema, n as runtimeAgentControllerConversationIdMappingSpecSchema, o as runtimeStreamingModeSchema, s as runtimeTransportModeSchema } from "./controller-contract-pe3_Re-c.js";
|
|
4
|
+
import { $ as literal, A as localComponentsStatusSchema, Dt as trimmedStringFromUnknown, G as boolean, M as openMeldToolsControlCapabilitySchema, N as openMeldToolsControlRequestSchema, P as openMeldToolsControlResultSchema, St as profileWorkspaceModeSchema, Tt as nonEmptyTrimmedStringFromUnknown, U as ZodIssueCode, W as array, X as int, Y as enumFactory, Z as iso, _t as profileHandleSchema, at as record, b as dispatchExecutionSchema, c as openMeldDaemonManageLocalAgentInstallationPayloadSchema, ct as tuple, d as openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema, dt as unknown, f as openMeldDaemonSetProfileWorkspacePayloadSchema, g as skippedDaemonProfileSchema, gt as openMeldRuntimeProfileIdSchema, h as openMeldDaemonSyncRouteCatalogRequestPayloadSchema, l as openMeldDaemonManageLocalAgentInstallationRequestPayloadSchema, m as openMeldDaemonSyncRouteCatalogPayloadSchema, mt as agentProfileIdSchema, n as openMeldDaemonCancelPayloadSchema, nt as number, o as openMeldDaemonInterruptPayloadSchema, ot as strictObject, p as openMeldDaemonSetProfileWorkspaceRequestPayloadSchema, q as discriminatedUnion, r as openMeldDaemonCancelRequestPayloadSchema, s as openMeldDaemonInterruptRequestPayloadSchema, st as string, tt as nullFactory, u as openMeldDaemonSetLocalAgentEnabledPayloadSchema, ut as union, v as bootstrapTemplateFactsSchema, vt as profileKindSchema, xt as profileWorkingDirectorySchema, yt as profileLabelSchema } from "./control-plane-D9jDcbMZ.js";
|
|
4
5
|
import { r as daemonServiceLaneSchema } from "./service-contract-CRyDcIIf.js";
|
|
5
6
|
import * as z$1 from "zod/v4";
|
|
6
7
|
//#region ../../packages/schemas/dist/agent-recovery-action.js
|
|
@@ -423,8 +424,367 @@ function work(key) {
|
|
|
423
424
|
};
|
|
424
425
|
}
|
|
425
426
|
//#endregion
|
|
427
|
+
//#region ../../packages/schemas/dist/schemas/protocol/constants.js
|
|
428
|
+
const MAX_TEXT_LENGTH = 1e5;
|
|
429
|
+
//#endregion
|
|
430
|
+
//#region ../../packages/schemas/dist/schemas/daemon/profile-identity.js
|
|
431
|
+
const nonEmptyTextSchema = z$1.string().transform((value) => value.trim()).refine((value) => value.length > 0, "Expected non-blank text");
|
|
432
|
+
const OPENMELD_SYSTEM_PROFILE_ID = "openmeld-system";
|
|
433
|
+
const openMeldSystemProfileIdSchema = z$1.literal(OPENMELD_SYSTEM_PROFILE_ID);
|
|
434
|
+
const openMeldActorProfileIdSchema = z$1.union([openMeldRuntimeProfileIdSchema, openMeldSystemProfileIdSchema]);
|
|
435
|
+
const visitedProfileIdsSchema = z$1.array(openMeldRuntimeProfileIdSchema).max(256);
|
|
436
|
+
const openMeldProfileIdSchema = openMeldRuntimeProfileIdSchema;
|
|
437
|
+
z$1.strictObject({
|
|
438
|
+
openMeldProfileId: openMeldProfileIdSchema,
|
|
439
|
+
profileKind: profileKindSchema,
|
|
440
|
+
profileName: profileLabelSchema,
|
|
441
|
+
ownerUserId: nonEmptyTextSchema,
|
|
442
|
+
profileHandle: profileHandleSchema.optional(),
|
|
443
|
+
ownerName: profileLabelSchema.optional(),
|
|
444
|
+
agentControllerRef: nonEmptyTextSchema.optional(),
|
|
445
|
+
avatarUrl: z$1.string().min(1).optional()
|
|
446
|
+
});
|
|
447
|
+
const openMeldActorContextSchema = z$1.strictObject({
|
|
448
|
+
requestId: nonEmptyTextSchema,
|
|
449
|
+
callerPrincipalId: nonEmptyTextSchema.optional(),
|
|
450
|
+
openMeldProfileId: openMeldActorProfileIdSchema,
|
|
451
|
+
profileKind: profileKindSchema,
|
|
452
|
+
profileHandle: profileHandleSchema.optional(),
|
|
453
|
+
profileName: profileLabelSchema.optional(),
|
|
454
|
+
ownerUserId: nonEmptyTextSchema.optional(),
|
|
455
|
+
ownerName: profileLabelSchema.optional(),
|
|
456
|
+
avatarUrl: z$1.string().min(1).optional(),
|
|
457
|
+
agentControllerRef: nonEmptyTextSchema.optional(),
|
|
458
|
+
dispatchChainId: nonEmptyTextSchema.optional(),
|
|
459
|
+
autoRelayDepth: z$1.number().int().nonnegative().optional(),
|
|
460
|
+
visitedProfileIds: visitedProfileIdsSchema.optional(),
|
|
461
|
+
visitedProfileIdsHash: nonEmptyTextSchema.optional()
|
|
462
|
+
}).superRefine((value, ctx) => {
|
|
463
|
+
if (value.profileKind === "system") {
|
|
464
|
+
if (value.openMeldProfileId !== OPENMELD_SYSTEM_PROFILE_ID) ctx.addIssue({
|
|
465
|
+
code: "custom",
|
|
466
|
+
message: "system actor context must use openmeld-system as openMeldProfileId",
|
|
467
|
+
path: ["openMeldProfileId"]
|
|
468
|
+
});
|
|
469
|
+
return;
|
|
470
|
+
}
|
|
471
|
+
if (!openMeldRuntimeProfileIdSchema.safeParse(value.openMeldProfileId).success) ctx.addIssue({
|
|
472
|
+
code: "custom",
|
|
473
|
+
message: "human/agent actor context must use an auth-backed OpenMeld runtime profile ID",
|
|
474
|
+
path: ["openMeldProfileId"]
|
|
475
|
+
});
|
|
476
|
+
});
|
|
477
|
+
const openMeldRequestContextSchema = z$1.strictObject({
|
|
478
|
+
actorContext: openMeldActorContextSchema,
|
|
479
|
+
activeOrganizationId: nonEmptyTextSchema.optional(),
|
|
480
|
+
agentControllerConversationId: nonEmptyTextSchema.optional()
|
|
481
|
+
});
|
|
482
|
+
//#endregion
|
|
483
|
+
//#region ../../packages/schemas/dist/schemas/http/profiles.js
|
|
484
|
+
const ISO_DATE_TIME_SCHEMA$1 = iso.datetime({ offset: true });
|
|
485
|
+
const ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE = "profile.additional_human_profile_creation_disabled";
|
|
486
|
+
const ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE = "Creating additional profiles for people is currently unavailable. Use your default profile, or create an Agent.";
|
|
487
|
+
const profileErrorStatusSchema = union([
|
|
488
|
+
literal(400),
|
|
489
|
+
literal(404),
|
|
490
|
+
literal(409),
|
|
491
|
+
literal(500)
|
|
492
|
+
]);
|
|
493
|
+
const profileErrorResponseSchema = strictObject({
|
|
494
|
+
ok: literal(false),
|
|
495
|
+
code: string().min(1),
|
|
496
|
+
message: string().min(1)
|
|
497
|
+
});
|
|
498
|
+
profileErrorResponseSchema.extend({ status: profileErrorStatusSchema });
|
|
499
|
+
profileErrorResponseSchema.extend({
|
|
500
|
+
code: literal(ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE),
|
|
501
|
+
message: literal(ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE)
|
|
502
|
+
}).extend({ status: literal(409) });
|
|
503
|
+
const authProfileKindSchema = enumFactory(["human", "agent"]);
|
|
504
|
+
const authProfileStatusSchema = enumFactory(["active", "disabled"]);
|
|
505
|
+
const authProfileManagedRoleSchema = enumFactory(["openmeld_assistant", "center_agent"]);
|
|
506
|
+
const authProfileViewManagedRoleSchema = authProfileManagedRoleSchema.nullish().transform((value) => value ?? null);
|
|
507
|
+
const authProfileViewSchema = strictObject({
|
|
508
|
+
openMeldProfileId: string().min(1),
|
|
509
|
+
profileName: string().min(1),
|
|
510
|
+
profileHandle: string().min(1),
|
|
511
|
+
profileKind: authProfileKindSchema,
|
|
512
|
+
isDefault: boolean(),
|
|
513
|
+
status: authProfileStatusSchema,
|
|
514
|
+
ownerUserId: string().min(1).nullable(),
|
|
515
|
+
organizationId: string().min(1).nullable().optional(),
|
|
516
|
+
ownerName: string().min(1).optional(),
|
|
517
|
+
avatarUrl: string().min(1).optional(),
|
|
518
|
+
source: string().min(1),
|
|
519
|
+
managedRole: authProfileViewManagedRoleSchema,
|
|
520
|
+
defaultProjectId: string().trim().min(1).nullable().optional(),
|
|
521
|
+
createdByUserId: string().min(1).nullable(),
|
|
522
|
+
creationActorProfileId: string().min(1).nullable().optional(),
|
|
523
|
+
creatorProfileId: string().min(1).nullable(),
|
|
524
|
+
lastUsedAt: ISO_DATE_TIME_SCHEMA$1.nullable(),
|
|
525
|
+
createdAt: ISO_DATE_TIME_SCHEMA$1,
|
|
526
|
+
updatedAt: ISO_DATE_TIME_SCHEMA$1
|
|
527
|
+
}).superRefine((profile, context) => {
|
|
528
|
+
if (profile.defaultProjectId === void 0 || profile.profileKind === "agent" && profile.managedRole === null) return;
|
|
529
|
+
context.addIssue({
|
|
530
|
+
code: "custom",
|
|
531
|
+
message: "Default Project is only available for ordinary Agent Profiles.",
|
|
532
|
+
path: ["defaultProjectId"]
|
|
533
|
+
});
|
|
534
|
+
});
|
|
535
|
+
const updateAgentProfileDefaultProjectBodySchema = strictObject({
|
|
536
|
+
expectedOrganizationId: string().trim().min(1),
|
|
537
|
+
defaultProjectId: string().trim().min(1).nullable()
|
|
538
|
+
});
|
|
539
|
+
const updateAgentProfileDefaultProjectRouteParamsShape = { agentProfileId: string().trim().min(1) };
|
|
540
|
+
strictObject(updateAgentProfileDefaultProjectRouteParamsShape);
|
|
541
|
+
updateAgentProfileDefaultProjectBodySchema.extend({
|
|
542
|
+
agentProfileId: updateAgentProfileDefaultProjectRouteParamsShape.agentProfileId,
|
|
543
|
+
context: openMeldRequestContextSchema
|
|
544
|
+
});
|
|
545
|
+
strictObject({
|
|
546
|
+
profileName: string().trim().min(1),
|
|
547
|
+
creatorProfileId: string().min(1).optional()
|
|
548
|
+
});
|
|
549
|
+
strictObject({
|
|
550
|
+
profileName: string().trim().min(1),
|
|
551
|
+
creatorProfileId: string().min(1).optional(),
|
|
552
|
+
idempotencyKey: string().trim().min(1).max(512).optional()
|
|
553
|
+
});
|
|
554
|
+
strictObject({
|
|
555
|
+
profileName: string().trim().min(1),
|
|
556
|
+
managedRole: authProfileManagedRoleSchema,
|
|
557
|
+
creatorProfileId: string().min(1).optional()
|
|
558
|
+
});
|
|
559
|
+
strictObject({
|
|
560
|
+
ok: literal(true),
|
|
561
|
+
profiles: array(authProfileViewSchema)
|
|
562
|
+
});
|
|
563
|
+
const profileCapabilitiesResponseSchema = strictObject({
|
|
564
|
+
ok: literal(true),
|
|
565
|
+
additionalHumanProfileCreationEnabled: boolean()
|
|
566
|
+
});
|
|
567
|
+
strictObject({
|
|
568
|
+
ok: literal(true),
|
|
569
|
+
profile: authProfileViewSchema
|
|
570
|
+
});
|
|
571
|
+
const createHumanProfileResponseSchema = strictObject({
|
|
572
|
+
ok: literal(true),
|
|
573
|
+
profile: authProfileViewSchema
|
|
574
|
+
});
|
|
575
|
+
const createAgentProfileResponseSchema = strictObject({
|
|
576
|
+
ok: literal(true),
|
|
577
|
+
profile: authProfileViewSchema
|
|
578
|
+
});
|
|
579
|
+
strictObject({
|
|
580
|
+
ok: literal(true),
|
|
581
|
+
profile: authProfileViewSchema
|
|
582
|
+
});
|
|
583
|
+
const updateProfileResponseSchema = strictObject({
|
|
584
|
+
ok: literal(true),
|
|
585
|
+
profile: authProfileViewSchema
|
|
586
|
+
});
|
|
587
|
+
const updateAgentProfileDefaultProjectResponseSchema = updateProfileResponseSchema;
|
|
588
|
+
const deleteProfileResponseSchema = strictObject({
|
|
589
|
+
ok: literal(true),
|
|
590
|
+
profile: authProfileViewSchema
|
|
591
|
+
});
|
|
592
|
+
createAgentProfileResponseSchema.refine((value) => value.profile.profileKind === "agent", "Expected an Agent Profile.");
|
|
593
|
+
createHumanProfileResponseSchema.refine((value) => value.profile.profileKind === "human", "Expected a Human Profile.");
|
|
594
|
+
deleteProfileResponseSchema.refine((value) => value.profile.profileKind === "agent", "Expected an Agent Profile.");
|
|
595
|
+
//#endregion
|
|
596
|
+
//#region ../../packages/schemas/dist/schemas/runtime/local-agent-catalog.js
|
|
597
|
+
const LOCAL_AGENT_CATALOG_BOUNDED_ID_SCHEMA = z$1.string().trim().min(1).max(256);
|
|
598
|
+
const LOCAL_AGENT_CATALOG_BOUNDED_LABEL_SCHEMA = z$1.string().trim().min(1).max(256);
|
|
599
|
+
const localAgentCatalogTargetKindSchema = z$1.enum(["builtin", "custom"]);
|
|
600
|
+
const localAgentCatalogLifecycleStatusSchema = z$1.enum(["active", "suspended"]);
|
|
601
|
+
const localAgentCatalogSelectableReasonSchema = z$1.enum([
|
|
602
|
+
"not_detected",
|
|
603
|
+
"not_supported_yet",
|
|
604
|
+
"needs_repair",
|
|
605
|
+
"custom_coming_soon"
|
|
606
|
+
]);
|
|
607
|
+
const localAgentCatalogLaunchStatusSchema = z$1.enum([
|
|
608
|
+
"ready",
|
|
609
|
+
"needs_choice",
|
|
610
|
+
"needs_repair",
|
|
611
|
+
"not_available"
|
|
612
|
+
]);
|
|
613
|
+
const localAgentCatalogEntryShape = {
|
|
614
|
+
agentId: LOCAL_AGENT_CATALOG_BOUNDED_ID_SCHEMA,
|
|
615
|
+
displayName: LOCAL_AGENT_CATALOG_BOUNDED_LABEL_SCHEMA,
|
|
616
|
+
targetKind: localAgentCatalogTargetKindSchema,
|
|
617
|
+
detected: z$1.boolean(),
|
|
618
|
+
enabled: z$1.boolean(),
|
|
619
|
+
launchStatus: localAgentCatalogLaunchStatusSchema,
|
|
620
|
+
selectable: z$1.boolean(),
|
|
621
|
+
selectableReason: z$1.union([localAgentCatalogSelectableReasonSchema, z$1.null()])
|
|
622
|
+
};
|
|
623
|
+
const localAgentCatalogEntrySchema = z$1.strictObject(localAgentCatalogEntryShape).superRefine(validateLocalAgentCatalogEntrySemantics);
|
|
624
|
+
const localAgentCatalogEntryWithLifecycleSchema = z$1.strictObject({
|
|
625
|
+
...localAgentCatalogEntryShape,
|
|
626
|
+
lifecycleStatus: localAgentCatalogLifecycleStatusSchema.default("active")
|
|
627
|
+
}).superRefine(validateLocalAgentCatalogEntrySemantics);
|
|
628
|
+
const localAgentCatalogSchema = createLocalAgentCatalogSchema(localAgentCatalogEntrySchema);
|
|
629
|
+
const localAgentCatalogWithLifecycleSchema = createLocalAgentCatalogSchema(localAgentCatalogEntryWithLifecycleSchema);
|
|
630
|
+
function createLocalAgentCatalogSchema(entrySchema) {
|
|
631
|
+
return z$1.strictObject({
|
|
632
|
+
totalBuiltins: z$1.number().int().min(0),
|
|
633
|
+
detectedSupported: z$1.number().int().min(0),
|
|
634
|
+
needsChoice: z$1.number().int().min(0),
|
|
635
|
+
needsRepair: z$1.number().int().min(0),
|
|
636
|
+
detectedNotSupportedYet: z$1.number().int().min(0),
|
|
637
|
+
notDetected: z$1.number().int().min(0),
|
|
638
|
+
entries: z$1.array(entrySchema)
|
|
639
|
+
}).superRefine(validateLocalAgentCatalogSummary);
|
|
640
|
+
}
|
|
641
|
+
function validateLocalAgentCatalogEntrySemantics(value, ctx) {
|
|
642
|
+
if (value.selectable && value.selectableReason !== null) ctx.addIssue({
|
|
643
|
+
code: "custom",
|
|
644
|
+
message: "selectableReason must be null when selectable is true",
|
|
645
|
+
path: ["selectableReason"]
|
|
646
|
+
});
|
|
647
|
+
if (!value.selectable && value.selectableReason === null) ctx.addIssue({
|
|
648
|
+
code: "custom",
|
|
649
|
+
message: "selectableReason must be present when selectable is false",
|
|
650
|
+
path: ["selectableReason"]
|
|
651
|
+
});
|
|
652
|
+
if (value.launchStatus === "needs_choice" && !(value.detected && value.targetKind === "builtin" && value.selectable)) ctx.addIssue({
|
|
653
|
+
code: "custom",
|
|
654
|
+
message: "needs_choice launchStatus only applies to detected selectable builtin entries",
|
|
655
|
+
path: ["launchStatus"]
|
|
656
|
+
});
|
|
657
|
+
if (value.launchStatus === "needs_repair" && !(value.detected && value.enabled && value.targetKind === "builtin" && value.selectable && value.selectableReason === null)) ctx.addIssue({
|
|
658
|
+
code: "custom",
|
|
659
|
+
message: "needs_repair launchStatus only applies to detected selectable builtin entries",
|
|
660
|
+
path: ["launchStatus"]
|
|
661
|
+
});
|
|
662
|
+
if (value.selectableReason === "not_detected" && value.detected) ctx.addIssue({
|
|
663
|
+
code: "custom",
|
|
664
|
+
message: "not_detected selectableReason requires detected to be false",
|
|
665
|
+
path: ["detected"]
|
|
666
|
+
});
|
|
667
|
+
if (value.selectableReason === "not_supported_yet" && (!value.detected || value.targetKind !== "builtin")) ctx.addIssue({
|
|
668
|
+
code: "custom",
|
|
669
|
+
message: "not_supported_yet selectableReason only applies to detected builtin entries",
|
|
670
|
+
path: ["selectableReason"]
|
|
671
|
+
});
|
|
672
|
+
if (value.selectableReason === "needs_repair" && (!value.detected || value.targetKind !== "builtin")) ctx.addIssue({
|
|
673
|
+
code: "custom",
|
|
674
|
+
message: "needs_repair selectableReason only applies to detected builtin entries",
|
|
675
|
+
path: ["selectableReason"]
|
|
676
|
+
});
|
|
677
|
+
if (value.selectableReason === "custom_coming_soon" && value.targetKind !== "custom") ctx.addIssue({
|
|
678
|
+
code: "custom",
|
|
679
|
+
message: "custom_coming_soon selectableReason only applies to custom entries",
|
|
680
|
+
path: ["selectableReason"]
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
function validateLocalAgentCatalogSummary(value, ctx) {
|
|
684
|
+
const builtinEntries = value.entries.filter((entry) => entry.targetKind === "builtin");
|
|
685
|
+
const detectedSupported = builtinEntries.filter((entry) => entry.detected && entry.launchStatus === "ready").length;
|
|
686
|
+
const needsChoice = builtinEntries.filter((entry) => entry.detected && entry.launchStatus === "needs_choice").length;
|
|
687
|
+
const detectedNotSupportedYet = builtinEntries.filter((entry) => entry.detected && entry.launchStatus === "not_available" && entry.selectableReason === "not_supported_yet").length;
|
|
688
|
+
const needsRepair = builtinEntries.filter((entry) => entry.detected && entry.launchStatus === "needs_repair").length;
|
|
689
|
+
const notDetected = builtinEntries.filter((entry) => !entry.detected).length;
|
|
690
|
+
const expectations = [
|
|
691
|
+
{
|
|
692
|
+
actual: builtinEntries.length,
|
|
693
|
+
expected: value.totalBuiltins,
|
|
694
|
+
label: "totalBuiltins",
|
|
695
|
+
path: ["totalBuiltins"]
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
actual: detectedSupported,
|
|
699
|
+
expected: value.detectedSupported,
|
|
700
|
+
label: "detectedSupported",
|
|
701
|
+
path: ["detectedSupported"]
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
actual: needsChoice,
|
|
705
|
+
expected: value.needsChoice,
|
|
706
|
+
label: "needsChoice",
|
|
707
|
+
path: ["needsChoice"]
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
actual: detectedNotSupportedYet,
|
|
711
|
+
expected: value.detectedNotSupportedYet,
|
|
712
|
+
label: "detectedNotSupportedYet",
|
|
713
|
+
path: ["detectedNotSupportedYet"]
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
actual: needsRepair,
|
|
717
|
+
expected: value.needsRepair,
|
|
718
|
+
label: "needsRepair",
|
|
719
|
+
path: ["needsRepair"]
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
actual: notDetected,
|
|
723
|
+
expected: value.notDetected,
|
|
724
|
+
label: "notDetected",
|
|
725
|
+
path: ["notDetected"]
|
|
726
|
+
}
|
|
727
|
+
];
|
|
728
|
+
for (const expectation of expectations) {
|
|
729
|
+
if (expectation.actual === expectation.expected) continue;
|
|
730
|
+
ctx.addIssue({
|
|
731
|
+
code: "custom",
|
|
732
|
+
message: `${expectation.label} must match the builtin entry summary`,
|
|
733
|
+
path: expectation.path
|
|
734
|
+
});
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
//#endregion
|
|
738
|
+
//#region ../../packages/schemas/dist/schemas/daemon/reply-readiness.js
|
|
739
|
+
const REPLY_READINESS_LEVEL_VALUES = [
|
|
740
|
+
"blocked",
|
|
741
|
+
"degraded",
|
|
742
|
+
"ready",
|
|
743
|
+
"unknown"
|
|
744
|
+
];
|
|
745
|
+
const REPLY_READINESS_REASON_CODE_VALUES = [
|
|
746
|
+
"service.not_installed",
|
|
747
|
+
"service.drifted",
|
|
748
|
+
"service.not_running",
|
|
749
|
+
"service.account_mismatch",
|
|
750
|
+
"service.auth_missing",
|
|
751
|
+
"service.auth_stale",
|
|
752
|
+
"dispatch.storage_not_ready",
|
|
753
|
+
"service.gateway_chain_unhealthy",
|
|
754
|
+
"profile.not_selected",
|
|
755
|
+
"profile.inactive",
|
|
756
|
+
"profile.unbound",
|
|
757
|
+
"controller.binding.disabled",
|
|
758
|
+
"projection.missing",
|
|
759
|
+
"controller.registry.disabled",
|
|
760
|
+
"controller.launch.choice_required",
|
|
761
|
+
"controller.launch.needs_repair",
|
|
762
|
+
"workspace.missing",
|
|
763
|
+
"workspace.invalid",
|
|
764
|
+
"runtime.adapter.unsupported",
|
|
765
|
+
"controller.bootstrap.failed",
|
|
766
|
+
"controller.gateway.unhealthy",
|
|
767
|
+
"local_agents.none_needed",
|
|
768
|
+
"route.offline",
|
|
769
|
+
"route.not_registered"
|
|
770
|
+
];
|
|
771
|
+
const replyReadinessLevelSchema = z$1.enum(REPLY_READINESS_LEVEL_VALUES);
|
|
772
|
+
const replyReadinessReasonCodeSchema = z$1.enum(REPLY_READINESS_REASON_CODE_VALUES);
|
|
773
|
+
//#endregion
|
|
774
|
+
//#region ../../packages/schemas/dist/schemas/start/shared.js
|
|
775
|
+
const START_ISO_DATE_TIME_SCHEMA = z$1.iso.datetime({ offset: true });
|
|
776
|
+
const START_TRIMMED_NON_EMPTY_STRING_SCHEMA = z$1.string().trim().min(1);
|
|
777
|
+
const START_BOUNDED_ID_SCHEMA = START_TRIMMED_NON_EMPTY_STRING_SCHEMA.max(256);
|
|
778
|
+
START_TRIMMED_NON_EMPTY_STRING_SCHEMA.max(256);
|
|
779
|
+
const START_BOUNDED_VERSION_SCHEMA = START_TRIMMED_NON_EMPTY_STRING_SCHEMA.max(128);
|
|
780
|
+
z$1.union([START_ISO_DATE_TIME_SCHEMA, z$1.null()]);
|
|
781
|
+
const startReplyReadinessSummarySchema = z$1.strictObject({
|
|
782
|
+
level: replyReadinessLevelSchema,
|
|
783
|
+
reasonCodes: z$1.array(replyReadinessReasonCodeSchema)
|
|
784
|
+
});
|
|
785
|
+
//#endregion
|
|
426
786
|
//#region ../../packages/schemas/dist/navigation-action.js
|
|
427
|
-
const nonEmptyStringSchema
|
|
787
|
+
const nonEmptyStringSchema = z$1.string().trim().min(1);
|
|
428
788
|
const computerSetupModeSchema = z$1.enum([
|
|
429
789
|
"setup",
|
|
430
790
|
"reconnect",
|
|
@@ -440,12 +800,12 @@ const computerSetupNavigationTargetSchema = z$1.discriminatedUnion("mode", [
|
|
|
440
800
|
mode: z$1.literal("setup")
|
|
441
801
|
}),
|
|
442
802
|
z$1.strictObject({
|
|
443
|
-
connectedComputerId: nonEmptyStringSchema
|
|
803
|
+
connectedComputerId: nonEmptyStringSchema,
|
|
444
804
|
kind: z$1.literal("computer_setup"),
|
|
445
805
|
mode: z$1.literal("reconnect")
|
|
446
806
|
}),
|
|
447
807
|
z$1.strictObject({
|
|
448
|
-
connectedComputerId: nonEmptyStringSchema
|
|
808
|
+
connectedComputerId: nonEmptyStringSchema,
|
|
449
809
|
kind: z$1.literal("computer_setup"),
|
|
450
810
|
mode: z$1.literal("update_service")
|
|
451
811
|
})
|
|
@@ -457,24 +817,24 @@ const openMeldNavigationTargetSchema = z$1.union([
|
|
|
457
817
|
}),
|
|
458
818
|
z$1.strictObject({
|
|
459
819
|
kind: z$1.literal("space"),
|
|
460
|
-
spaceId: nonEmptyStringSchema
|
|
820
|
+
spaceId: nonEmptyStringSchema
|
|
461
821
|
}),
|
|
462
822
|
z$1.strictObject({ kind: z$1.literal("projects") }),
|
|
463
823
|
z$1.strictObject({
|
|
464
824
|
kind: z$1.literal("project"),
|
|
465
|
-
projectId: nonEmptyStringSchema
|
|
825
|
+
projectId: nonEmptyStringSchema
|
|
466
826
|
}),
|
|
467
827
|
z$1.strictObject({ kind: z$1.literal("slack_identity_link") }),
|
|
468
828
|
z$1.strictObject({
|
|
469
|
-
connectToUserId: nonEmptyStringSchema
|
|
829
|
+
connectToUserId: nonEmptyStringSchema.optional(),
|
|
470
830
|
kind: z$1.literal("message_channel_identity_link"),
|
|
471
831
|
purpose: z$1.enum(["continue_request", "optional_setup"]),
|
|
472
|
-
requestedAction: nonEmptyStringSchema
|
|
832
|
+
requestedAction: nonEmptyStringSchema.max(160).optional()
|
|
473
833
|
}),
|
|
474
834
|
computerSetupNavigationTargetSchema
|
|
475
835
|
]);
|
|
476
836
|
const navigationActionSchema = z$1.strictObject({
|
|
477
|
-
label: nonEmptyStringSchema
|
|
837
|
+
label: nonEmptyStringSchema,
|
|
478
838
|
target: openMeldNavigationTargetSchema,
|
|
479
839
|
url: openMeldWebUrlSchema
|
|
480
840
|
});
|
|
@@ -1550,137 +1910,16 @@ function resolvePublicAgentFailureBody(body, targetName) {
|
|
|
1550
1910
|
return typeof body === "function" ? body(targetName) : body;
|
|
1551
1911
|
}
|
|
1552
1912
|
//#endregion
|
|
1553
|
-
//#region ../../packages/schemas/dist/schemas/protocol/constants.js
|
|
1554
|
-
const MAX_TEXT_LENGTH = 1e5;
|
|
1555
|
-
//#endregion
|
|
1556
|
-
//#region ../../packages/schemas/dist/schemas/protocol/shared.js
|
|
1557
|
-
const trimmedStringFromUnknown = (value) => String(value ?? "").trim();
|
|
1558
|
-
const nonEmptyTrimmedStringFromUnknown = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1));
|
|
1559
|
-
const finiteIntegerNumber = z$1.number().int().finite();
|
|
1560
|
-
const optionalBooleanQuerySchema = z$1.preprocess((value) => {
|
|
1561
|
-
if (value === void 0 || value === null || value === "") return;
|
|
1562
|
-
if (typeof value === "boolean") return value;
|
|
1563
|
-
const normalized = String(value).trim().toLowerCase();
|
|
1564
|
-
if (normalized === "true" || normalized === "1") return true;
|
|
1565
|
-
if (normalized === "false" || normalized === "0") return false;
|
|
1566
|
-
return value;
|
|
1567
|
-
}, z$1.boolean().optional());
|
|
1568
|
-
//#endregion
|
|
1569
|
-
//#region ../../packages/schemas/dist/schemas/protocol/profile.js
|
|
1570
|
-
const PROFILE_KIND_VALUES = [
|
|
1571
|
-
"human",
|
|
1572
|
-
"agent",
|
|
1573
|
-
"system"
|
|
1574
|
-
];
|
|
1575
|
-
const PROFILE_HANDLE_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/;
|
|
1576
|
-
const UUID_PROFILE_ID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
1577
|
-
const AGENT_PROFILE_ID_PATTERN = /^agt_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
1578
|
-
const normalizeOptionalProfileLabel = (value) => {
|
|
1579
|
-
const normalized = trimmedStringFromUnknown(value);
|
|
1580
|
-
if (normalized.length === 0) return;
|
|
1581
|
-
return normalized.slice(0, 64);
|
|
1582
|
-
};
|
|
1583
|
-
const normalizeOptionalProfileHandle = (value) => {
|
|
1584
|
-
const normalized = trimmedStringFromUnknown(value);
|
|
1585
|
-
if (normalized.length === 0) return;
|
|
1586
|
-
return profileHandleSchema.safeParse(normalized).success ? normalized : void 0;
|
|
1587
|
-
};
|
|
1588
|
-
const MAX_PROFILE_WORKING_DIRECTORY_LENGTH = 4096;
|
|
1589
|
-
const profileWorkspaceModeSchema = z$1.enum(["openmeld_managed", "custom"]);
|
|
1590
|
-
const profileWorkingDirectorySchema = z$1.string().min(1).max(MAX_PROFILE_WORKING_DIRECTORY_LENGTH).refine((value) => !value.includes("\0"), { message: "workingDirectory must not contain NUL bytes" });
|
|
1591
|
-
const normalizeOptionalWorkingDirectory = (value) => {
|
|
1592
|
-
if (typeof value !== "string") return;
|
|
1593
|
-
const parsed = profileWorkingDirectorySchema.safeParse(value);
|
|
1594
|
-
return parsed.success ? parsed.data : void 0;
|
|
1595
|
-
};
|
|
1596
|
-
const HTTPS_URL_PATTERN = /^https?:\/\//i;
|
|
1597
|
-
/**
|
|
1598
|
-
* Avatar URLs are a public identity field that travels with the Profile across
|
|
1599
|
-
* domains. Only http(s) URLs are accepted so the value is safe to render as an
|
|
1600
|
-
* `<img src>` on web clients (rejects javascript:/data: injection vectors).
|
|
1601
|
-
*/
|
|
1602
|
-
const normalizeOptionalAvatarUrl = (value) => {
|
|
1603
|
-
const normalized = trimmedStringFromUnknown(value);
|
|
1604
|
-
if (normalized.length === 0 || normalized.length > 2048) return;
|
|
1605
|
-
return HTTPS_URL_PATTERN.test(normalized) ? normalized : void 0;
|
|
1606
|
-
};
|
|
1607
|
-
/** Unknown or invalid kinds are normalized to "agent" for wire compatibility. */
|
|
1608
|
-
const profileKindWithFallbackSchema = z$1.preprocess((value) => {
|
|
1609
|
-
const parsed = z$1.enum(PROFILE_KIND_VALUES).safeParse(value);
|
|
1610
|
-
return parsed.success ? parsed.data : "agent";
|
|
1611
|
-
}, z$1.enum(PROFILE_KIND_VALUES));
|
|
1612
|
-
const profileKindSchema = z$1.enum(PROFILE_KIND_VALUES);
|
|
1613
|
-
const profileLabelSchema = z$1.string().min(1).max(64);
|
|
1614
|
-
const profileHandleSchema = z$1.string().min(1).max(128).regex(PROFILE_HANDLE_PATTERN);
|
|
1615
|
-
const genericProfileIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64));
|
|
1616
|
-
const uuidProfileIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64).regex(UUID_PROFILE_ID_PATTERN));
|
|
1617
|
-
const agentProfileIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64).regex(AGENT_PROFILE_ID_PATTERN));
|
|
1618
|
-
/**
|
|
1619
|
-
* Runtime OpenMeld profile IDs are auth-backed and follow these rules:
|
|
1620
|
-
* - human/system profiles use a UUID
|
|
1621
|
-
* - agent profiles use agt_<UUID>
|
|
1622
|
-
*
|
|
1623
|
-
* Generic test fixtures or legacy intermediary strings should not reuse this
|
|
1624
|
-
* schema unless they represent a real runtime profile identity.
|
|
1625
|
-
*/
|
|
1626
|
-
const openMeldRuntimeProfileIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64).refine((value) => UUID_PROFILE_ID_PATTERN.test(value) || AGENT_PROFILE_ID_PATTERN.test(value), "Invalid OpenMeld runtime profile ID"));
|
|
1627
|
-
/**
|
|
1628
|
-
* Generic wire/profile normalization rules:
|
|
1629
|
-
* - trims and validates profileId as a non-empty string
|
|
1630
|
-
* - defaults missing/invalid kind to "agent"
|
|
1631
|
-
* - truncates profileName/owner labels to max length
|
|
1632
|
-
* - preserves agent workingDirectory verbatim when it is a valid string
|
|
1633
|
-
* - keeps owner only for agent profiles
|
|
1634
|
-
*
|
|
1635
|
-
* This schema intentionally stays broader than auth-backed runtime IDs because
|
|
1636
|
-
* protocol/system messages may still use internal synthetic profile IDs such as
|
|
1637
|
-
* `openmeld-system`.
|
|
1638
|
-
*/
|
|
1639
|
-
const profileSchema = z$1.object({
|
|
1640
|
-
kind: profileKindWithFallbackSchema.optional(),
|
|
1641
|
-
profileId: genericProfileIdSchema,
|
|
1642
|
-
profileHandle: z$1.unknown().optional(),
|
|
1643
|
-
profileName: z$1.unknown().optional(),
|
|
1644
|
-
owner: z$1.unknown().optional(),
|
|
1645
|
-
ownerName: z$1.unknown().optional(),
|
|
1646
|
-
agentControllerRef: z$1.unknown().optional(),
|
|
1647
|
-
agentControllerConversationId: z$1.unknown().optional(),
|
|
1648
|
-
workingDirectory: z$1.unknown().optional(),
|
|
1649
|
-
avatarUrl: z$1.unknown().optional()
|
|
1650
|
-
}).transform((value) => {
|
|
1651
|
-
const kind = value.kind ?? "agent";
|
|
1652
|
-
const profileHandle = normalizeOptionalProfileHandle(value.profileHandle);
|
|
1653
|
-
const profileName = normalizeOptionalProfileLabel(value.profileName);
|
|
1654
|
-
const owner = kind === "agent" ? normalizeOptionalProfileLabel(value.owner) : void 0;
|
|
1655
|
-
const ownerName = kind === "agent" ? normalizeOptionalProfileLabel(value.ownerName) : void 0;
|
|
1656
|
-
const agentControllerRef = kind === "agent" ? normalizeOptionalProfileLabel(value.agentControllerRef) : void 0;
|
|
1657
|
-
const agentControllerConversationId = kind === "agent" ? normalizeOptionalProfileLabel(value.agentControllerConversationId) : void 0;
|
|
1658
|
-
const workingDirectory = kind === "agent" ? normalizeOptionalWorkingDirectory(value.workingDirectory) : void 0;
|
|
1659
|
-
const avatarUrl = normalizeOptionalAvatarUrl(value.avatarUrl);
|
|
1660
|
-
return {
|
|
1661
|
-
kind,
|
|
1662
|
-
profileId: value.profileId,
|
|
1663
|
-
...profileHandle ? { profileHandle } : {},
|
|
1664
|
-
...profileName ? { profileName } : {},
|
|
1665
|
-
...owner ? { owner } : {},
|
|
1666
|
-
...ownerName ? { ownerName } : {},
|
|
1667
|
-
...agentControllerRef ? { agentControllerRef } : {},
|
|
1668
|
-
...agentControllerConversationId ? { agentControllerConversationId } : {},
|
|
1669
|
-
...workingDirectory ? { workingDirectory } : {},
|
|
1670
|
-
...avatarUrl ? { avatarUrl } : {}
|
|
1671
|
-
};
|
|
1672
|
-
});
|
|
1673
|
-
//#endregion
|
|
1674
1913
|
//#region ../../packages/schemas/dist/schemas/space-mesh/space-thread.js
|
|
1675
|
-
const ISO_DATE_TIME_SCHEMA
|
|
1914
|
+
const ISO_DATE_TIME_SCHEMA = z$1.iso.datetime({ offset: true });
|
|
1676
1915
|
const spaceThreadIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64).regex(/^thr_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/u));
|
|
1677
1916
|
const spaceThreadSchema = z$1.strictObject({
|
|
1678
1917
|
threadId: spaceThreadIdSchema,
|
|
1679
1918
|
spaceId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)),
|
|
1680
1919
|
rootSignalId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)),
|
|
1681
1920
|
createdByProfileId: openMeldRuntimeProfileIdSchema,
|
|
1682
|
-
createdAt: ISO_DATE_TIME_SCHEMA
|
|
1683
|
-
updatedAt: ISO_DATE_TIME_SCHEMA
|
|
1921
|
+
createdAt: ISO_DATE_TIME_SCHEMA,
|
|
1922
|
+
updatedAt: ISO_DATE_TIME_SCHEMA
|
|
1684
1923
|
});
|
|
1685
1924
|
const spaceThreadContextSchema = z$1.strictObject({
|
|
1686
1925
|
threadId: spaceThreadIdSchema,
|
|
@@ -1691,7 +1930,7 @@ const spaceThreadSignalPlacementSchema = z$1.strictObject({
|
|
|
1691
1930
|
threadId: spaceThreadIdSchema,
|
|
1692
1931
|
signalId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)),
|
|
1693
1932
|
placement: spaceThreadSignalPlacementKindSchema,
|
|
1694
|
-
createdAt: ISO_DATE_TIME_SCHEMA
|
|
1933
|
+
createdAt: ISO_DATE_TIME_SCHEMA
|
|
1695
1934
|
});
|
|
1696
1935
|
const spaceThreadEventTypeSchema = z$1.enum(["created"]);
|
|
1697
1936
|
const spaceThreadEventSchema = z$1.strictObject({
|
|
@@ -1700,63 +1939,10 @@ const spaceThreadEventSchema = z$1.strictObject({
|
|
|
1700
1939
|
eventType: spaceThreadEventTypeSchema,
|
|
1701
1940
|
actorProfileId: openMeldRuntimeProfileIdSchema,
|
|
1702
1941
|
clientMutationId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(200)),
|
|
1703
|
-
createdAt: ISO_DATE_TIME_SCHEMA
|
|
1942
|
+
createdAt: ISO_DATE_TIME_SCHEMA
|
|
1704
1943
|
});
|
|
1705
1944
|
const spaceThreadActionRefSchema = z$1.strictObject({ threadId: spaceThreadIdSchema });
|
|
1706
1945
|
//#endregion
|
|
1707
|
-
//#region ../../packages/schemas/dist/schemas/daemon/profile-identity.js
|
|
1708
|
-
const nonEmptyTextSchema = z$1.string().transform((value) => value.trim()).refine((value) => value.length > 0, "Expected non-blank text");
|
|
1709
|
-
const OPENMELD_SYSTEM_PROFILE_ID = "openmeld-system";
|
|
1710
|
-
const openMeldSystemProfileIdSchema = z$1.literal(OPENMELD_SYSTEM_PROFILE_ID);
|
|
1711
|
-
const openMeldActorProfileIdSchema = z$1.union([openMeldRuntimeProfileIdSchema, openMeldSystemProfileIdSchema]);
|
|
1712
|
-
const visitedProfileIdsSchema = z$1.array(openMeldRuntimeProfileIdSchema).max(256);
|
|
1713
|
-
const openMeldProfileIdSchema = openMeldRuntimeProfileIdSchema;
|
|
1714
|
-
z$1.strictObject({
|
|
1715
|
-
openMeldProfileId: openMeldProfileIdSchema,
|
|
1716
|
-
profileKind: profileKindSchema,
|
|
1717
|
-
profileName: profileLabelSchema,
|
|
1718
|
-
ownerUserId: nonEmptyTextSchema,
|
|
1719
|
-
profileHandle: profileHandleSchema.optional(),
|
|
1720
|
-
ownerName: profileLabelSchema.optional(),
|
|
1721
|
-
agentControllerRef: nonEmptyTextSchema.optional(),
|
|
1722
|
-
avatarUrl: z$1.string().min(1).optional()
|
|
1723
|
-
});
|
|
1724
|
-
const openMeldActorContextSchema = z$1.strictObject({
|
|
1725
|
-
requestId: nonEmptyTextSchema,
|
|
1726
|
-
callerPrincipalId: nonEmptyTextSchema.optional(),
|
|
1727
|
-
openMeldProfileId: openMeldActorProfileIdSchema,
|
|
1728
|
-
profileKind: profileKindSchema,
|
|
1729
|
-
profileHandle: profileHandleSchema.optional(),
|
|
1730
|
-
profileName: profileLabelSchema.optional(),
|
|
1731
|
-
ownerUserId: nonEmptyTextSchema.optional(),
|
|
1732
|
-
ownerName: profileLabelSchema.optional(),
|
|
1733
|
-
avatarUrl: z$1.string().min(1).optional(),
|
|
1734
|
-
agentControllerRef: nonEmptyTextSchema.optional(),
|
|
1735
|
-
dispatchChainId: nonEmptyTextSchema.optional(),
|
|
1736
|
-
autoRelayDepth: z$1.number().int().nonnegative().optional(),
|
|
1737
|
-
visitedProfileIds: visitedProfileIdsSchema.optional(),
|
|
1738
|
-
visitedProfileIdsHash: nonEmptyTextSchema.optional()
|
|
1739
|
-
}).superRefine((value, ctx) => {
|
|
1740
|
-
if (value.profileKind === "system") {
|
|
1741
|
-
if (value.openMeldProfileId !== OPENMELD_SYSTEM_PROFILE_ID) ctx.addIssue({
|
|
1742
|
-
code: "custom",
|
|
1743
|
-
message: "system actor context must use openmeld-system as openMeldProfileId",
|
|
1744
|
-
path: ["openMeldProfileId"]
|
|
1745
|
-
});
|
|
1746
|
-
return;
|
|
1747
|
-
}
|
|
1748
|
-
if (!openMeldRuntimeProfileIdSchema.safeParse(value.openMeldProfileId).success) ctx.addIssue({
|
|
1749
|
-
code: "custom",
|
|
1750
|
-
message: "human/agent actor context must use an auth-backed OpenMeld runtime profile ID",
|
|
1751
|
-
path: ["openMeldProfileId"]
|
|
1752
|
-
});
|
|
1753
|
-
});
|
|
1754
|
-
const openMeldRequestContextSchema = z$1.strictObject({
|
|
1755
|
-
actorContext: openMeldActorContextSchema,
|
|
1756
|
-
activeOrganizationId: nonEmptyTextSchema.optional(),
|
|
1757
|
-
agentControllerConversationId: nonEmptyTextSchema.optional()
|
|
1758
|
-
});
|
|
1759
|
-
//#endregion
|
|
1760
1946
|
//#region ../../packages/schemas/dist/schemas/http/local-agent-reasoning.js
|
|
1761
1947
|
const OPENMELD_REASONING_STREAM_HEADER = "x-openmeld-reasoning-stream";
|
|
1762
1948
|
const LOCAL_AGENT_REASONING_MAX_CHARS = 8192;
|
|
@@ -2127,264 +2313,6 @@ const parseOptionalClientMessageId = (value) => {
|
|
|
2127
2313
|
return parsed.success ? parsed.data : null;
|
|
2128
2314
|
};
|
|
2129
2315
|
//#endregion
|
|
2130
|
-
//#region ../../packages/schemas/dist/lazy-zod.js
|
|
2131
|
-
const NEVER = z$1.NEVER;
|
|
2132
|
-
const ZodIssueCode = z$1.ZodIssueCode;
|
|
2133
|
-
const DEFERRED_SCHEMA_METHODS = /* @__PURE__ */ new Set([
|
|
2134
|
-
"and",
|
|
2135
|
-
"array",
|
|
2136
|
-
"base64",
|
|
2137
|
-
"base64url",
|
|
2138
|
-
"catch",
|
|
2139
|
-
"catchall",
|
|
2140
|
-
"check",
|
|
2141
|
-
"cidrv4",
|
|
2142
|
-
"cidrv6",
|
|
2143
|
-
"clone",
|
|
2144
|
-
"cuid",
|
|
2145
|
-
"cuid2",
|
|
2146
|
-
"date",
|
|
2147
|
-
"datetime",
|
|
2148
|
-
"default",
|
|
2149
|
-
"duration",
|
|
2150
|
-
"e164",
|
|
2151
|
-
"email",
|
|
2152
|
-
"emoji",
|
|
2153
|
-
"endsWith",
|
|
2154
|
-
"exactOptional",
|
|
2155
|
-
"exclude",
|
|
2156
|
-
"extend",
|
|
2157
|
-
"extract",
|
|
2158
|
-
"gt",
|
|
2159
|
-
"gte",
|
|
2160
|
-
"guid",
|
|
2161
|
-
"includes",
|
|
2162
|
-
"input",
|
|
2163
|
-
"int",
|
|
2164
|
-
"ipv4",
|
|
2165
|
-
"ipv6",
|
|
2166
|
-
"jwt",
|
|
2167
|
-
"keyof",
|
|
2168
|
-
"ksuid",
|
|
2169
|
-
"length",
|
|
2170
|
-
"loose",
|
|
2171
|
-
"lowercase",
|
|
2172
|
-
"lt",
|
|
2173
|
-
"lte",
|
|
2174
|
-
"max",
|
|
2175
|
-
"merge",
|
|
2176
|
-
"mime",
|
|
2177
|
-
"min",
|
|
2178
|
-
"multipleOf",
|
|
2179
|
-
"nanoid",
|
|
2180
|
-
"negative",
|
|
2181
|
-
"nonempty",
|
|
2182
|
-
"nonnegative",
|
|
2183
|
-
"nonoptional",
|
|
2184
|
-
"nonpositive",
|
|
2185
|
-
"normalize",
|
|
2186
|
-
"nullable",
|
|
2187
|
-
"nullish",
|
|
2188
|
-
"omit",
|
|
2189
|
-
"optional",
|
|
2190
|
-
"or",
|
|
2191
|
-
"output",
|
|
2192
|
-
"overwrite",
|
|
2193
|
-
"partial",
|
|
2194
|
-
"passthrough",
|
|
2195
|
-
"pick",
|
|
2196
|
-
"pipe",
|
|
2197
|
-
"positive",
|
|
2198
|
-
"prefault",
|
|
2199
|
-
"readonly",
|
|
2200
|
-
"refine",
|
|
2201
|
-
"regex",
|
|
2202
|
-
"removeCatch",
|
|
2203
|
-
"removeDefault",
|
|
2204
|
-
"required",
|
|
2205
|
-
"rest",
|
|
2206
|
-
"safe",
|
|
2207
|
-
"safeExtend",
|
|
2208
|
-
"size",
|
|
2209
|
-
"slugify",
|
|
2210
|
-
"startsWith",
|
|
2211
|
-
"step",
|
|
2212
|
-
"strict",
|
|
2213
|
-
"strip",
|
|
2214
|
-
"superRefine",
|
|
2215
|
-
"time",
|
|
2216
|
-
"toLowerCase",
|
|
2217
|
-
"toUpperCase",
|
|
2218
|
-
"transform",
|
|
2219
|
-
"trim",
|
|
2220
|
-
"ulid",
|
|
2221
|
-
"unwrap",
|
|
2222
|
-
"uppercase",
|
|
2223
|
-
"url",
|
|
2224
|
-
"uuid",
|
|
2225
|
-
"uuidv4",
|
|
2226
|
-
"uuidv6",
|
|
2227
|
-
"uuidv7",
|
|
2228
|
-
"with",
|
|
2229
|
-
"xid"
|
|
2230
|
-
]);
|
|
2231
|
-
const SELF_RETURNING_METHODS = /* @__PURE__ */ new Set(["brand", "finite"]);
|
|
2232
|
-
const UNHANDLED_PROPERTY = Symbol("unhandled lazy Zod property");
|
|
2233
|
-
const globalRegistry = z$1.globalRegistry;
|
|
2234
|
-
function lazySchema(createSchema) {
|
|
2235
|
-
let schema;
|
|
2236
|
-
let proxy;
|
|
2237
|
-
const target = Object.create(null);
|
|
2238
|
-
let targetIsMaterialized = false;
|
|
2239
|
-
const resolveSchema = () => {
|
|
2240
|
-
schema ??= createSchema();
|
|
2241
|
-
return schema;
|
|
2242
|
-
};
|
|
2243
|
-
const readResolvedProperty = (property) => {
|
|
2244
|
-
const resolved = resolveSchema();
|
|
2245
|
-
const value = Reflect.get(resolved, property, resolved);
|
|
2246
|
-
return typeof value === "function" ? value.bind(resolved) : value;
|
|
2247
|
-
};
|
|
2248
|
-
const deferSchemaMethod = (property, args) => lazySchema(() => {
|
|
2249
|
-
const resolved = resolveSchema();
|
|
2250
|
-
const method = Reflect.get(resolved, property, resolved);
|
|
2251
|
-
if (typeof method !== "function") throw new TypeError(`Lazy Zod property ${String(property)} is not callable`);
|
|
2252
|
-
const result = Reflect.apply(method, resolved, args);
|
|
2253
|
-
if (!(result instanceof z$1.ZodType)) throw new TypeError(`Lazy Zod method ${String(property)} did not return a schema`);
|
|
2254
|
-
return result;
|
|
2255
|
-
});
|
|
2256
|
-
const materializeTarget = () => {
|
|
2257
|
-
const resolved = resolveSchema();
|
|
2258
|
-
if (targetIsMaterialized) return resolved;
|
|
2259
|
-
Reflect.setPrototypeOf(target, Reflect.getPrototypeOf(resolved));
|
|
2260
|
-
for (const property of Reflect.ownKeys(resolved)) {
|
|
2261
|
-
const descriptor = Reflect.getOwnPropertyDescriptor(resolved, property);
|
|
2262
|
-
if (descriptor) Reflect.defineProperty(target, property, descriptor);
|
|
2263
|
-
}
|
|
2264
|
-
targetIsMaterialized = true;
|
|
2265
|
-
return resolved;
|
|
2266
|
-
};
|
|
2267
|
-
const readSpecialProperty = (property) => {
|
|
2268
|
-
switch (property) {
|
|
2269
|
-
case "description": {
|
|
2270
|
-
const metadata = globalRegistry.get(proxy);
|
|
2271
|
-
return metadata && typeof metadata === "object" ? Reflect.get(metadata, "description") : void 0;
|
|
2272
|
-
}
|
|
2273
|
-
case "apply": return (operation) => operation(proxy);
|
|
2274
|
-
case "register": return (registry, ...metadata) => {
|
|
2275
|
-
registry.add(proxy, ...metadata);
|
|
2276
|
-
return proxy;
|
|
2277
|
-
};
|
|
2278
|
-
case "meta": return (...metadata) => {
|
|
2279
|
-
if (metadata.length === 0) return globalRegistry.get(proxy);
|
|
2280
|
-
const registered = deferSchemaMethod(property, withoutRegistryIdentity(metadata));
|
|
2281
|
-
globalRegistry.add(registered, ...metadata);
|
|
2282
|
-
return registered;
|
|
2283
|
-
};
|
|
2284
|
-
case "describe": return (description) => {
|
|
2285
|
-
const described = deferSchemaMethod(property, [description]);
|
|
2286
|
-
globalRegistry.add(described, { description });
|
|
2287
|
-
return described;
|
|
2288
|
-
};
|
|
2289
|
-
case "toJSONSchema": return (...args) => Reflect.apply(z$1.toJSONSchema, z$1, [proxy, ...args]);
|
|
2290
|
-
default: return UNHANDLED_PROPERTY;
|
|
2291
|
-
}
|
|
2292
|
-
};
|
|
2293
|
-
proxy = new Proxy(target, {
|
|
2294
|
-
deleteProperty(_target, property) {
|
|
2295
|
-
const deletedFromTarget = Reflect.deleteProperty(target, property);
|
|
2296
|
-
const deletedFromSchema = Reflect.deleteProperty(resolveSchema(), property);
|
|
2297
|
-
return deletedFromTarget && deletedFromSchema;
|
|
2298
|
-
},
|
|
2299
|
-
get(_target, property, receiver) {
|
|
2300
|
-
const specialProperty = readSpecialProperty(property);
|
|
2301
|
-
if (specialProperty !== UNHANDLED_PROPERTY) return specialProperty;
|
|
2302
|
-
if (SELF_RETURNING_METHODS.has(property)) return () => proxy;
|
|
2303
|
-
if (DEFERRED_SCHEMA_METHODS.has(property)) return (...args) => deferSchemaMethod(property, args);
|
|
2304
|
-
return Reflect.getOwnPropertyDescriptor(target, property) ? Reflect.get(target, property, receiver) : readResolvedProperty(property);
|
|
2305
|
-
},
|
|
2306
|
-
getOwnPropertyDescriptor(_target, property) {
|
|
2307
|
-
const targetDescriptor = Reflect.getOwnPropertyDescriptor(target, property);
|
|
2308
|
-
if (targetDescriptor || targetIsMaterialized) return targetDescriptor;
|
|
2309
|
-
const descriptor = Reflect.getOwnPropertyDescriptor(resolveSchema(), property);
|
|
2310
|
-
return descriptor ? {
|
|
2311
|
-
...descriptor,
|
|
2312
|
-
configurable: true
|
|
2313
|
-
} : void 0;
|
|
2314
|
-
},
|
|
2315
|
-
getPrototypeOf() {
|
|
2316
|
-
return targetIsMaterialized ? Reflect.getPrototypeOf(target) : Reflect.getPrototypeOf(resolveSchema());
|
|
2317
|
-
},
|
|
2318
|
-
has(_target, property) {
|
|
2319
|
-
return Reflect.has(target, property) || Reflect.has(resolveSchema(), property);
|
|
2320
|
-
},
|
|
2321
|
-
ownKeys() {
|
|
2322
|
-
if (targetIsMaterialized) return Reflect.ownKeys(target);
|
|
2323
|
-
return [.../* @__PURE__ */ new Set([...Reflect.ownKeys(target), ...Reflect.ownKeys(resolveSchema())])];
|
|
2324
|
-
},
|
|
2325
|
-
preventExtensions() {
|
|
2326
|
-
const resolved = materializeTarget();
|
|
2327
|
-
return Reflect.preventExtensions(resolved) && Reflect.preventExtensions(target);
|
|
2328
|
-
},
|
|
2329
|
-
set(_target, property, value) {
|
|
2330
|
-
const resolved = resolveSchema();
|
|
2331
|
-
if (!targetIsMaterialized) return Reflect.set(resolved, property, value);
|
|
2332
|
-
return Reflect.set(resolved, property, value) && Reflect.set(target, property, value);
|
|
2333
|
-
}
|
|
2334
|
-
});
|
|
2335
|
-
return proxy;
|
|
2336
|
-
}
|
|
2337
|
-
function withoutRegistryIdentity(metadata) {
|
|
2338
|
-
const [firstMetadata] = metadata;
|
|
2339
|
-
if (!(firstMetadata && typeof firstMetadata === "object" && "id" in firstMetadata)) return metadata;
|
|
2340
|
-
return [Object.fromEntries(Object.entries(firstMetadata).filter(([key]) => key !== "id")), ...metadata.slice(1)];
|
|
2341
|
-
}
|
|
2342
|
-
function snapshotFactoryArgument(value) {
|
|
2343
|
-
return Array.isArray(value) ? [...value] : value;
|
|
2344
|
-
}
|
|
2345
|
-
function lazyFactory(factory) {
|
|
2346
|
-
const invoke = factory;
|
|
2347
|
-
return ((...args) => {
|
|
2348
|
-
const declaredArgs = args.map(snapshotFactoryArgument);
|
|
2349
|
-
return lazySchema(() => invoke(...declaredArgs));
|
|
2350
|
-
});
|
|
2351
|
-
}
|
|
2352
|
-
const array = lazyFactory(z$1.array);
|
|
2353
|
-
const boolean = lazyFactory(z$1.boolean);
|
|
2354
|
-
const discriminatedUnion = lazyFactory(z$1.discriminatedUnion);
|
|
2355
|
-
const email = lazyFactory(z$1.email);
|
|
2356
|
-
const enumFactory = lazyFactory(z$1.enum);
|
|
2357
|
-
const int = lazyFactory(z$1.int);
|
|
2358
|
-
const literal = lazyFactory(z$1.literal);
|
|
2359
|
-
const neverFactory = lazyFactory(z$1.never);
|
|
2360
|
-
const nullFactory = lazyFactory(z$1.null);
|
|
2361
|
-
const number = lazyFactory(z$1.number);
|
|
2362
|
-
const object = lazyFactory(z$1.object);
|
|
2363
|
-
const preprocess = lazyFactory(z$1.preprocess);
|
|
2364
|
-
const record = lazyFactory(z$1.record);
|
|
2365
|
-
const strictObject = lazyFactory(z$1.strictObject);
|
|
2366
|
-
const string = lazyFactory(z$1.string);
|
|
2367
|
-
const tuple = lazyFactory(z$1.tuple);
|
|
2368
|
-
const union = lazyFactory(z$1.union);
|
|
2369
|
-
const undefinedFactory = lazyFactory(z$1.undefined);
|
|
2370
|
-
const unknown = lazyFactory(z$1.unknown);
|
|
2371
|
-
const url = lazyFactory(z$1.url);
|
|
2372
|
-
const coerce = {
|
|
2373
|
-
...z$1.coerce,
|
|
2374
|
-
bigint: lazyFactory(z$1.coerce.bigint),
|
|
2375
|
-
boolean: lazyFactory(z$1.coerce.boolean),
|
|
2376
|
-
date: lazyFactory(z$1.coerce.date),
|
|
2377
|
-
number: lazyFactory(z$1.coerce.number),
|
|
2378
|
-
string: lazyFactory(z$1.coerce.string)
|
|
2379
|
-
};
|
|
2380
|
-
const iso = {
|
|
2381
|
-
...z$1.iso,
|
|
2382
|
-
date: lazyFactory(z$1.iso.date),
|
|
2383
|
-
datetime: lazyFactory(z$1.iso.datetime),
|
|
2384
|
-
duration: lazyFactory(z$1.iso.duration),
|
|
2385
|
-
time: lazyFactory(z$1.iso.time)
|
|
2386
|
-
};
|
|
2387
|
-
//#endregion
|
|
2388
2316
|
//#region ../../packages/schemas/dist/schemas/http/space-files.js
|
|
2389
2317
|
const SPACE_FILE_MAX_SIZE_BYTES = 250 * 1024 * 1024;
|
|
2390
2318
|
const SPACE_FILE_RAW_UPLOAD_MAX_BYTES = 10 * 1024 * 1024;
|
|
@@ -4176,326 +4104,39 @@ const postSpaceWakeStopResponseSchema = z$1.discriminatedUnion("status", [
|
|
|
4176
4104
|
cancellationState: wakeStopUnsupportedCancellationStateSchema,
|
|
4177
4105
|
status: z$1.literal("unsupported")
|
|
4178
4106
|
}),
|
|
4179
|
-
wakeStopFailureResponseBaseSchema.extend({
|
|
4180
|
-
cancellationState: wakeStopRetryLaterCancellationStateSchema,
|
|
4181
|
-
status: z$1.literal("retry_later")
|
|
4182
|
-
})
|
|
4183
|
-
]).superRefine((response, context) => {
|
|
4184
|
-
if (!response.ok) return;
|
|
4185
|
-
if (response.status === "cancellation_requested") {
|
|
4186
|
-
if (response.runtimeCoordinatorExecutionId === null && response.stopMode !== "remote_agent_native_delivery") context.addIssue({
|
|
4187
|
-
code: "custom",
|
|
4188
|
-
message: "controller-backed cancellation requests require a RuntimeCoordinator execution id",
|
|
4189
|
-
path: ["runtimeCoordinatorExecutionId"]
|
|
4190
|
-
});
|
|
4191
|
-
if (response.stopMode === "openmeld_owned_pre_agent") context.addIssue({
|
|
4192
|
-
code: "custom",
|
|
4193
|
-
message: "pre-agent Stop must be terminal cancelled, not cancellation_requested",
|
|
4194
|
-
path: ["stopMode"]
|
|
4195
|
-
});
|
|
4196
|
-
return;
|
|
4197
|
-
}
|
|
4198
|
-
if (response.runtimeCoordinatorExecutionId === null) {
|
|
4199
|
-
if (response.stopMode !== "openmeld_owned_pre_agent" && response.stopMode !== "remote_agent_native_delivery") context.addIssue({
|
|
4200
|
-
code: "custom",
|
|
4201
|
-
message: "Wake Stop success without an execution id must name its OpenMeld-owned stop mode",
|
|
4202
|
-
path: ["stopMode"]
|
|
4203
|
-
});
|
|
4204
|
-
return;
|
|
4205
|
-
}
|
|
4206
|
-
if (response.stopMode === "openmeld_owned_pre_agent") context.addIssue({
|
|
4207
|
-
code: "custom",
|
|
4208
|
-
message: "OpenMeld-owned pre-agent Stop must not carry a RuntimeCoordinator execution id",
|
|
4209
|
-
path: ["runtimeCoordinatorExecutionId"]
|
|
4210
|
-
});
|
|
4211
|
-
});
|
|
4212
|
-
//#endregion
|
|
4213
|
-
//#region ../../packages/schemas/dist/schemas/local-components.js
|
|
4214
|
-
const nonEmptyStringSchema = string().trim().min(1);
|
|
4215
|
-
const nullableNonEmptyStringSchema$1 = nonEmptyStringSchema.nullable();
|
|
4216
|
-
const localComponentStatusSchema = enumFactory([
|
|
4217
|
-
"ok",
|
|
4218
|
-
"update_available",
|
|
4219
|
-
"update_required"
|
|
4220
|
-
]);
|
|
4221
|
-
const localComponentUpdatePolicySchema = enumFactory([
|
|
4222
|
-
"ok",
|
|
4223
|
-
"available",
|
|
4224
|
-
"required"
|
|
4225
|
-
]);
|
|
4226
|
-
const localComponentUpdateStatusSchema = enumFactory([
|
|
4227
|
-
"current",
|
|
4228
|
-
"update_available",
|
|
4229
|
-
"update_required",
|
|
4230
|
-
"unknown"
|
|
4231
|
-
]);
|
|
4232
|
-
const openMeldToolsUpdateOperationPhaseSchema = enumFactory([
|
|
4233
|
-
"waiting_for_work",
|
|
4234
|
-
"updating",
|
|
4235
|
-
"updated",
|
|
4236
|
-
"restored",
|
|
4237
|
-
"needs_help"
|
|
4238
|
-
]);
|
|
4239
|
-
const openMeldToolsUpdateRequestSourceSchema = enumFactory([
|
|
4240
|
-
"automatic",
|
|
4241
|
-
"center_agent",
|
|
4242
|
-
"cli",
|
|
4243
|
-
"web"
|
|
4244
|
-
]);
|
|
4245
|
-
const openMeldToolsUpdateOperationSchema = strictObject({
|
|
4246
|
-
operationId: nonEmptyStringSchema,
|
|
4247
|
-
phase: openMeldToolsUpdateOperationPhaseSchema,
|
|
4248
|
-
requestSource: openMeldToolsUpdateRequestSourceSchema,
|
|
4249
|
-
requestedAt: iso.datetime({ offset: true }),
|
|
4250
|
-
targetVersion: nonEmptyStringSchema,
|
|
4251
|
-
updatedAt: iso.datetime({ offset: true }),
|
|
4252
|
-
urgency: enumFactory(["available", "required"])
|
|
4253
|
-
});
|
|
4254
|
-
const openMeldToolsMaintenanceProjectionSchema = strictObject({
|
|
4255
|
-
automaticUpdatesEnabled: boolean(),
|
|
4256
|
-
status: enumFactory(["ready", "needs_help"])
|
|
4257
|
-
});
|
|
4258
|
-
const openMeldToolsControlCapabilitySchema = strictObject({
|
|
4259
|
-
requestAutomaticUpdate: literal(true).optional(),
|
|
4260
|
-
requestUpdate: literal(true).optional(),
|
|
4261
|
-
setAutomaticUpdates: literal(true).optional()
|
|
4262
|
-
});
|
|
4263
|
-
const openMeldToolsUpdateRequestResultSchema = discriminatedUnion("status", [
|
|
4264
|
-
strictObject({ status: literal("disabled") }),
|
|
4265
|
-
strictObject({ status: literal("unavailable") }),
|
|
4266
|
-
strictObject({
|
|
4267
|
-
currentVersion: nonEmptyStringSchema,
|
|
4268
|
-
status: literal("current")
|
|
4269
|
-
}),
|
|
4270
|
-
strictObject({
|
|
4271
|
-
operation: openMeldToolsUpdateOperationSchema,
|
|
4272
|
-
status: enumFactory(["started", "already_running"])
|
|
4273
|
-
})
|
|
4274
|
-
]);
|
|
4275
|
-
const openMeldToolsMaintenanceMutationResultSchema = strictObject({
|
|
4276
|
-
automaticUpdatesEnabled: boolean(),
|
|
4277
|
-
status: enumFactory(["updated", "unchanged"])
|
|
4278
|
-
});
|
|
4279
|
-
const openMeldToolsControlRequestSchema = discriminatedUnion("operation", [strictObject({
|
|
4280
|
-
operation: literal("request_update"),
|
|
4281
|
-
requestSource: enumFactory([
|
|
4282
|
-
"automatic",
|
|
4283
|
-
"center_agent",
|
|
4284
|
-
"web"
|
|
4285
|
-
])
|
|
4286
|
-
}), strictObject({
|
|
4287
|
-
automaticUpdatesEnabled: boolean(),
|
|
4288
|
-
operation: literal("set_automatic_updates"),
|
|
4289
|
-
requestSource: enumFactory(["center_agent", "web"])
|
|
4290
|
-
})]);
|
|
4291
|
-
const openMeldToolsControlResultSchema = discriminatedUnion("operation", [strictObject({
|
|
4292
|
-
operation: literal("request_update"),
|
|
4293
|
-
result: openMeldToolsUpdateRequestResultSchema
|
|
4294
|
-
}), strictObject({
|
|
4295
|
-
operation: literal("set_automatic_updates"),
|
|
4296
|
-
result: openMeldToolsMaintenanceMutationResultSchema
|
|
4297
|
-
})]);
|
|
4298
|
-
const openMeldToolsUpdateAttemptSchema = strictObject({
|
|
4299
|
-
v: literal(1),
|
|
4300
|
-
attempts: number().int().nonnegative(),
|
|
4301
|
-
errorMessage: nullableNonEmptyStringSchema$1,
|
|
4302
|
-
operation: openMeldToolsUpdateOperationSchema
|
|
4303
|
-
});
|
|
4304
|
-
const localSetupActionSchema = enumFactory([
|
|
4305
|
-
"none",
|
|
4306
|
-
"connect_service",
|
|
4307
|
-
"reconnect_service",
|
|
4308
|
-
"update_service",
|
|
4309
|
-
"connect_local_agent",
|
|
4310
|
-
"update_skills",
|
|
4311
|
-
"update_cli"
|
|
4312
|
-
]);
|
|
4313
|
-
const localSetupEntrypointSchema = literal("setup");
|
|
4314
|
-
const localComponentsManifestSchema = strictObject({
|
|
4315
|
-
schemaVersion: literal(1),
|
|
4316
|
-
openMeldReleaseVersion: nonEmptyStringSchema,
|
|
4317
|
-
cli: strictObject({
|
|
4318
|
-
packageVersion: nonEmptyStringSchema,
|
|
4319
|
-
commandContractVersion: nonEmptyStringSchema
|
|
4320
|
-
}),
|
|
4321
|
-
service: strictObject({
|
|
4322
|
-
bundleHash: nullableNonEmptyStringSchema$1,
|
|
4323
|
-
bundleVersion: nonEmptyStringSchema,
|
|
4324
|
-
runtimeContractEpoch: nonEmptyStringSchema,
|
|
4325
|
-
serviceContractVersion: nonEmptyStringSchema
|
|
4326
|
-
}),
|
|
4327
|
-
skills: strictObject({
|
|
4328
|
-
bundleHash: nullableNonEmptyStringSchema$1,
|
|
4329
|
-
skillContractVersion: nonEmptyStringSchema,
|
|
4330
|
-
skillIds: array(nonEmptyStringSchema)
|
|
4331
|
-
})
|
|
4332
|
-
});
|
|
4333
|
-
strictObject({
|
|
4334
|
-
schemaVersion: literal(1),
|
|
4335
|
-
updatedAt: iso.datetime({ offset: true }),
|
|
4336
|
-
components: strictObject({
|
|
4337
|
-
cli: strictObject({
|
|
4338
|
-
packageVersion: nonEmptyStringSchema,
|
|
4339
|
-
commandContractVersion: nonEmptyStringSchema,
|
|
4340
|
-
updatePolicy: localComponentUpdatePolicySchema,
|
|
4341
|
-
reason: nonEmptyStringSchema
|
|
4342
|
-
}),
|
|
4343
|
-
service: strictObject({
|
|
4344
|
-
bundleHash: nullableNonEmptyStringSchema$1,
|
|
4345
|
-
bundleVersion: nonEmptyStringSchema,
|
|
4346
|
-
runtimeContractEpoch: nonEmptyStringSchema,
|
|
4347
|
-
serviceContractVersion: nonEmptyStringSchema,
|
|
4348
|
-
updatePolicy: localComponentUpdatePolicySchema,
|
|
4349
|
-
reason: nonEmptyStringSchema
|
|
4350
|
-
}),
|
|
4351
|
-
skills: strictObject({
|
|
4352
|
-
bundleHash: nullableNonEmptyStringSchema$1,
|
|
4353
|
-
skillContractVersion: nonEmptyStringSchema,
|
|
4354
|
-
skillIds: array(nonEmptyStringSchema),
|
|
4355
|
-
updatePolicy: localComponentUpdatePolicySchema,
|
|
4356
|
-
reason: nonEmptyStringSchema
|
|
4357
|
-
})
|
|
4107
|
+
wakeStopFailureResponseBaseSchema.extend({
|
|
4108
|
+
cancellationState: wakeStopRetryLaterCancellationStateSchema,
|
|
4109
|
+
status: z$1.literal("retry_later")
|
|
4358
4110
|
})
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
});
|
|
4374
|
-
const localCliComponentProjectionSchema = localComponentProjectionSchema.extend({
|
|
4375
|
-
commandContractVersion: nonEmptyStringSchema,
|
|
4376
|
-
latestPackageVersion: nullableNonEmptyStringSchema$1,
|
|
4377
|
-
packageVersion: nonEmptyStringSchema,
|
|
4378
|
-
requiredCommandContractVersion: nullableNonEmptyStringSchema$1
|
|
4379
|
-
});
|
|
4380
|
-
const localServiceComponentProjectionSchema = localComponentProjectionSchema.extend({
|
|
4381
|
-
expectedBundleHash: nullableNonEmptyStringSchema$1,
|
|
4382
|
-
expectedBundleVersion: nonEmptyStringSchema,
|
|
4383
|
-
installedBundleHash: nullableNonEmptyStringSchema$1,
|
|
4384
|
-
installedBundleVersion: nullableNonEmptyStringSchema$1,
|
|
4385
|
-
runtimeContractEpoch: nonEmptyStringSchema,
|
|
4386
|
-
serviceContractVersion: nonEmptyStringSchema
|
|
4387
|
-
});
|
|
4388
|
-
const localSkillsComponentProjectionSchema = localComponentProjectionSchema.extend({
|
|
4389
|
-
contentRelease: strictObject({
|
|
4390
|
-
revision: number().int().positive(),
|
|
4391
|
-
minimumCliVersion: string().regex(/^\d+\.\d+\.\d+$/)
|
|
4392
|
-
}).optional(),
|
|
4393
|
-
expectedBundleHash: nullableNonEmptyStringSchema$1,
|
|
4394
|
-
installedBundleHash: nullableNonEmptyStringSchema$1,
|
|
4395
|
-
skillContractVersion: nonEmptyStringSchema,
|
|
4396
|
-
targetCount: number().int().nonnegative()
|
|
4397
|
-
});
|
|
4398
|
-
const localComponentsStatusSchema = strictObject({
|
|
4399
|
-
schemaVersion: literal(1),
|
|
4400
|
-
generatedAt: iso.datetime({ offset: true }),
|
|
4401
|
-
entrypoint: localSetupEntrypointSchema,
|
|
4402
|
-
summaryLabel: nonEmptyStringSchema,
|
|
4403
|
-
summaryDescription: nonEmptyStringSchema,
|
|
4404
|
-
setupAction: localSetupActionSchema,
|
|
4405
|
-
setupActionLabel: nonEmptyStringSchema,
|
|
4406
|
-
setupActionDescription: nonEmptyStringSchema,
|
|
4407
|
-
maintenance: openMeldToolsMaintenanceProjectionSchema.optional(),
|
|
4408
|
-
updateOperation: openMeldToolsUpdateOperationSchema.optional(),
|
|
4409
|
-
cli: localCliComponentProjectionSchema,
|
|
4410
|
-
service: localServiceComponentProjectionSchema,
|
|
4411
|
-
skills: localSkillsComponentProjectionSchema
|
|
4412
|
-
});
|
|
4413
|
-
const localServiceComponentUpdateProjectionSchema = strictObject({
|
|
4414
|
-
installedVersion: nullableNonEmptyStringSchema$1,
|
|
4415
|
-
latestVersion: nullableNonEmptyStringSchema$1,
|
|
4416
|
-
reasonCodes: array(nonEmptyStringSchema),
|
|
4417
|
-
requiredVersion: nullableNonEmptyStringSchema$1,
|
|
4418
|
-
status: localComponentUpdateStatusSchema,
|
|
4419
|
-
updatePolicy: localComponentUpdatePolicySchema,
|
|
4420
|
-
wakeBlocked: boolean()
|
|
4421
|
-
});
|
|
4422
|
-
const localCliComponentUpdateProjectionSchema = strictObject({
|
|
4423
|
-
commandContractVersion: nullableNonEmptyStringSchema$1,
|
|
4424
|
-
installedPackageVersion: nullableNonEmptyStringSchema$1,
|
|
4425
|
-
latestPackageVersion: nullableNonEmptyStringSchema$1,
|
|
4426
|
-
reasonCodes: array(nonEmptyStringSchema),
|
|
4427
|
-
requiredCommandContractVersion: nullableNonEmptyStringSchema$1,
|
|
4428
|
-
status: localComponentUpdateStatusSchema,
|
|
4429
|
-
updatePolicy: localComponentUpdatePolicySchema,
|
|
4430
|
-
wakeBlocked: boolean()
|
|
4431
|
-
});
|
|
4432
|
-
const localSkillsComponentUpdateProjectionSchema = strictObject({
|
|
4433
|
-
expectedBundleHash: nullableNonEmptyStringSchema$1,
|
|
4434
|
-
expectedTargetCount: number().int().nonnegative(),
|
|
4435
|
-
installedBundleHash: nullableNonEmptyStringSchema$1,
|
|
4436
|
-
reasonCodes: array(nonEmptyStringSchema),
|
|
4437
|
-
skillContractVersion: nullableNonEmptyStringSchema$1,
|
|
4438
|
-
status: localComponentUpdateStatusSchema,
|
|
4439
|
-
targetCount: number().int().nonnegative().nullable(),
|
|
4440
|
-
updatePolicy: localComponentUpdatePolicySchema,
|
|
4441
|
-
wakeBlocked: boolean()
|
|
4442
|
-
});
|
|
4443
|
-
const localComponentUpdateProjectionSchema = strictObject({
|
|
4444
|
-
schemaVersion: literal(1),
|
|
4445
|
-
generatedAt: iso.datetime({ offset: true }),
|
|
4446
|
-
setupAction: localSetupActionSchema,
|
|
4447
|
-
setupActionLabel: nonEmptyStringSchema,
|
|
4448
|
-
setupActionDescription: nonEmptyStringSchema,
|
|
4449
|
-
humanSetupCommand: nonEmptyStringSchema,
|
|
4450
|
-
agentSetupCommand: nonEmptyStringSchema,
|
|
4451
|
-
maintenance: openMeldToolsMaintenanceProjectionSchema.optional(),
|
|
4452
|
-
updateOperation: openMeldToolsUpdateOperationSchema.optional(),
|
|
4453
|
-
cli: localCliComponentUpdateProjectionSchema,
|
|
4454
|
-
service: localServiceComponentUpdateProjectionSchema,
|
|
4455
|
-
skills: localSkillsComponentUpdateProjectionSchema
|
|
4456
|
-
});
|
|
4457
|
-
function formatLocalSetupActionLabel(action) {
|
|
4458
|
-
switch (action) {
|
|
4459
|
-
case "connect_service": return "Connect Computer";
|
|
4460
|
-
case "reconnect_service": return "Reconnect Computer";
|
|
4461
|
-
case "update_service": return "Update OpenMeld on Computer";
|
|
4462
|
-
case "connect_local_agent": return "Connect local agent";
|
|
4463
|
-
case "update_skills": return "Update OpenMeld skills";
|
|
4464
|
-
case "update_cli": return "Update OpenMeld CLI";
|
|
4465
|
-
case "none": return "Everything is up to date";
|
|
4466
|
-
default: return action;
|
|
4467
|
-
}
|
|
4468
|
-
}
|
|
4469
|
-
function formatLocalComponentsSummaryLabel(input) {
|
|
4470
|
-
if (input.setupAction !== "none") return formatLocalSetupActionLabel(input.setupAction);
|
|
4471
|
-
switch (input.cliStatus) {
|
|
4472
|
-
case "update_required": return "Update OpenMeld CLI";
|
|
4473
|
-
case "update_available": return "OpenMeld CLI update available";
|
|
4474
|
-
case "ok": return "Everything is up to date";
|
|
4475
|
-
default: return input.cliStatus;
|
|
4476
|
-
}
|
|
4477
|
-
}
|
|
4478
|
-
function formatLocalComponentsSummaryDescription(input) {
|
|
4479
|
-
if (input.setupAction !== "none") return formatLocalSetupActionDescription(input.setupAction);
|
|
4480
|
-
switch (input.cliStatus) {
|
|
4481
|
-
case "update_required": return "Update OpenMeld CLI before running this setup flow.";
|
|
4482
|
-
case "update_available": return "OpenMeld CLI can be updated, but this setup flow can continue.";
|
|
4483
|
-
case "ok": return "OpenMeld local components are aligned for this computer.";
|
|
4484
|
-
default: return input.cliStatus;
|
|
4111
|
+
]).superRefine((response, context) => {
|
|
4112
|
+
if (!response.ok) return;
|
|
4113
|
+
if (response.status === "cancellation_requested") {
|
|
4114
|
+
if (response.runtimeCoordinatorExecutionId === null && response.stopMode !== "remote_agent_native_delivery") context.addIssue({
|
|
4115
|
+
code: "custom",
|
|
4116
|
+
message: "controller-backed cancellation requests require a RuntimeCoordinator execution id",
|
|
4117
|
+
path: ["runtimeCoordinatorExecutionId"]
|
|
4118
|
+
});
|
|
4119
|
+
if (response.stopMode === "openmeld_owned_pre_agent") context.addIssue({
|
|
4120
|
+
code: "custom",
|
|
4121
|
+
message: "pre-agent Stop must be terminal cancelled, not cancellation_requested",
|
|
4122
|
+
path: ["stopMode"]
|
|
4123
|
+
});
|
|
4124
|
+
return;
|
|
4485
4125
|
}
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
case "update_skills": return "Update OpenMeld skills through setup on this computer.";
|
|
4494
|
-
case "update_cli": return "Update OpenMeld CLI before running this setup flow.";
|
|
4495
|
-
case "none": return "OpenMeld local components are aligned for this computer.";
|
|
4496
|
-
default: return action;
|
|
4126
|
+
if (response.runtimeCoordinatorExecutionId === null) {
|
|
4127
|
+
if (response.stopMode !== "openmeld_owned_pre_agent" && response.stopMode !== "remote_agent_native_delivery") context.addIssue({
|
|
4128
|
+
code: "custom",
|
|
4129
|
+
message: "Wake Stop success without an execution id must name its OpenMeld-owned stop mode",
|
|
4130
|
+
path: ["stopMode"]
|
|
4131
|
+
});
|
|
4132
|
+
return;
|
|
4497
4133
|
}
|
|
4498
|
-
|
|
4134
|
+
if (response.stopMode === "openmeld_owned_pre_agent") context.addIssue({
|
|
4135
|
+
code: "custom",
|
|
4136
|
+
message: "OpenMeld-owned pre-agent Stop must not carry a RuntimeCoordinator execution id",
|
|
4137
|
+
path: ["runtimeCoordinatorExecutionId"]
|
|
4138
|
+
});
|
|
4139
|
+
});
|
|
4499
4140
|
//#endregion
|
|
4500
4141
|
//#region ../../packages/schemas/dist/schemas/protocol/agent-interaction.js
|
|
4501
4142
|
const AGENT_INTERACTION_DEFAULT_TIMEOUT_MS = 480 * 60 * 1e3;
|
|
@@ -4701,629 +4342,97 @@ const encodeLengthPrefixedTargetWakeLifecycleIdPart = (value) => {
|
|
|
4701
4342
|
return `${value.length}:${value}`;
|
|
4702
4343
|
};
|
|
4703
4344
|
function normalizeRequiredTargetWakeLifecycleIdPart(fieldName, value) {
|
|
4704
|
-
if (typeof value !== "string") throw new Error(`target_wake_lifecycle.identity_invalid: ${fieldName} must be a string`);
|
|
4705
|
-
const normalized = value.trim();
|
|
4706
|
-
if (!normalized) throw new Error(`target_wake_lifecycle.identity_invalid: ${fieldName} is required`);
|
|
4707
|
-
return normalized;
|
|
4708
|
-
}
|
|
4709
|
-
//#endregion
|
|
4710
|
-
//#region ../../packages/schemas/dist/schemas/runtime/working-language.js
|
|
4711
|
-
const workingLanguageTagSchema = z$1.string().trim().min(2).max(64).transform((value, context) => {
|
|
4712
|
-
try {
|
|
4713
|
-
const [canonical] = Intl.getCanonicalLocales(value);
|
|
4714
|
-
if (!canonical) throw new TypeError("A language tag is required.");
|
|
4715
|
-
return canonical;
|
|
4716
|
-
} catch {
|
|
4717
|
-
context.addIssue({
|
|
4718
|
-
code: "custom",
|
|
4719
|
-
message: "Expected a valid BCP 47 language tag."
|
|
4720
|
-
});
|
|
4721
|
-
return z$1.NEVER;
|
|
4722
|
-
}
|
|
4723
|
-
});
|
|
4724
|
-
const organizationWorkingLanguageModeSchema = z$1.enum(["automatic", "selected"]);
|
|
4725
|
-
const workingLanguageGuidanceSchema = z$1.strictObject({
|
|
4726
|
-
languageTag: workingLanguageTagSchema,
|
|
4727
|
-
mode: organizationWorkingLanguageModeSchema
|
|
4728
|
-
});
|
|
4729
|
-
//#endregion
|
|
4730
|
-
//#region ../../packages/schemas/dist/schemas/space-mesh/authority-order.js
|
|
4731
|
-
const spaceAuthorityOrderSchema = z$1.literal("default");
|
|
4732
|
-
//#endregion
|
|
4733
|
-
//#region ../../packages/schemas/dist/schemas/space-mesh/dispatch-policy.js
|
|
4734
|
-
const spaceDispatchPolicyModeSchema = z$1.enum(["mention_only", "listen_all"]);
|
|
4735
|
-
const spaceDispatchPolicySchema = z$1.strictObject({ mode: spaceDispatchPolicyModeSchema });
|
|
4736
|
-
//#endregion
|
|
4737
|
-
//#region ../../packages/schemas/dist/schemas/space-mesh/publication-policy.js
|
|
4738
|
-
const spacePublicationModeSchema = z$1.enum(["collaboration", "raw_context_sharing"]);
|
|
4739
|
-
const spaceAllowedActionSchema = z$1.enum([
|
|
4740
|
-
"post_message",
|
|
4741
|
-
"post_status",
|
|
4742
|
-
"stay_silent"
|
|
4743
|
-
]);
|
|
4744
|
-
const spaceAllowedActionsSchema = z$1.array(spaceAllowedActionSchema).superRefine((value, ctx) => {
|
|
4745
|
-
if (value.length === 0) {
|
|
4746
|
-
ctx.addIssue({
|
|
4747
|
-
code: "custom",
|
|
4748
|
-
message: "allowedActions must contain at least one action"
|
|
4749
|
-
});
|
|
4750
|
-
return;
|
|
4751
|
-
}
|
|
4752
|
-
if (new Set(value).size !== value.length) ctx.addIssue({
|
|
4753
|
-
code: "custom",
|
|
4754
|
-
message: "allowedActions must not contain duplicates"
|
|
4755
|
-
});
|
|
4756
|
-
});
|
|
4757
|
-
//#endregion
|
|
4758
|
-
//#region ../../packages/schemas/dist/schemas/space-mesh/result-archive-policy.js
|
|
4759
|
-
const resultArchiveModeSchema = z$1.enum([
|
|
4760
|
-
"none",
|
|
4761
|
-
"space_reply_only",
|
|
4762
|
-
"all_final_results"
|
|
4763
|
-
]);
|
|
4764
|
-
const resultArchivePolicySchema = z$1.strictObject({ mode: resultArchiveModeSchema });
|
|
4765
|
-
//#endregion
|
|
4766
|
-
//#region ../../packages/schemas/dist/schemas/space-mesh/space-note.js
|
|
4767
|
-
const spaceNoteSchema = z$1.string().trim().min(1);
|
|
4768
|
-
//#endregion
|
|
4769
|
-
//#region ../../packages/schemas/dist/schemas/space-mesh/space-contract.js
|
|
4770
|
-
const isoDateTimeSchema = z$1.iso.datetime({ offset: true });
|
|
4771
|
-
const spaceBriefModeSchema = z$1.enum(["default", "none"]);
|
|
4772
|
-
const spaceContractFieldsSchema = z$1.strictObject({
|
|
4773
|
-
dispatchPolicy: spaceDispatchPolicySchema,
|
|
4774
|
-
publicationMode: spacePublicationModeSchema,
|
|
4775
|
-
allowedActions: spaceAllowedActionsSchema,
|
|
4776
|
-
resultArchivePolicy: resultArchivePolicySchema,
|
|
4777
|
-
spaceNote: spaceNoteSchema.optional(),
|
|
4778
|
-
authorityOrder: spaceAuthorityOrderSchema,
|
|
4779
|
-
entryBrief: spaceBriefModeSchema,
|
|
4780
|
-
dispatchBrief: spaceBriefModeSchema
|
|
4781
|
-
});
|
|
4782
|
-
const spaceContractSchema = z$1.strictObject({
|
|
4783
|
-
version: z$1.number().int().finite().positive(),
|
|
4784
|
-
updatedAt: isoDateTimeSchema,
|
|
4785
|
-
updatedBy: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)),
|
|
4786
|
-
dispatchPolicy: spaceDispatchPolicySchema,
|
|
4787
|
-
publicationMode: spacePublicationModeSchema,
|
|
4788
|
-
allowedActions: spaceAllowedActionsSchema,
|
|
4789
|
-
resultArchivePolicy: resultArchivePolicySchema,
|
|
4790
|
-
spaceNote: spaceNoteSchema.optional(),
|
|
4791
|
-
authorityOrder: spaceAuthorityOrderSchema,
|
|
4792
|
-
entryBrief: spaceBriefModeSchema,
|
|
4793
|
-
dispatchBrief: spaceBriefModeSchema
|
|
4794
|
-
});
|
|
4795
|
-
//#endregion
|
|
4796
|
-
//#region ../../packages/schemas/dist/schemas/daemon/conversation-lifecycle.js
|
|
4797
|
-
const conversationBootstrapReasonSchema = z$1.enum([
|
|
4798
|
-
"missing_bootstrap_state",
|
|
4799
|
-
"compatibility_recreate",
|
|
4800
|
-
"template_changed",
|
|
4801
|
-
"idle_stale",
|
|
4802
|
-
"dispatch_count_stale",
|
|
4803
|
-
"context_healed",
|
|
4804
|
-
"context_replaced"
|
|
4805
|
-
]);
|
|
4806
|
-
const localRuntimeContextReasonSchema = z$1.enum([
|
|
4807
|
-
"first_local_runtime_context",
|
|
4808
|
-
"workspace_changed",
|
|
4809
|
-
"transport_mode_changed",
|
|
4810
|
-
"policy_changed",
|
|
4811
|
-
"execution_state_missing",
|
|
4812
|
-
"controller_changed"
|
|
4813
|
-
]);
|
|
4814
|
-
const agentControllerConversationResumePlanBlockedReasonSchema = z$1.enum(["controller_changed"]);
|
|
4815
|
-
const agentControllerConversationResumePlanSchema = z$1.discriminatedUnion("status", [
|
|
4816
|
-
z$1.strictObject({ status: z$1.literal("not_bound") }),
|
|
4817
|
-
z$1.strictObject({ status: z$1.literal("continue_existing") }),
|
|
4818
|
-
z$1.strictObject({
|
|
4819
|
-
status: z$1.literal("blocked"),
|
|
4820
|
-
reason: agentControllerConversationResumePlanBlockedReasonSchema
|
|
4821
|
-
})
|
|
4822
|
-
]);
|
|
4823
|
-
const localRuntimeContextPlanSchema = z$1.strictObject({
|
|
4824
|
-
status: z$1.enum(["reuse", "recreate"]),
|
|
4825
|
-
reason: z$1.union([localRuntimeContextReasonSchema, z$1.null()])
|
|
4826
|
-
});
|
|
4827
|
-
const conversationBootstrapSchema = z$1.discriminatedUnion("status", [z$1.strictObject({
|
|
4828
|
-
reason: z$1.null(),
|
|
4829
|
-
status: z$1.literal("applied")
|
|
4830
|
-
}), z$1.strictObject({
|
|
4831
|
-
reason: conversationBootstrapReasonSchema,
|
|
4832
|
-
status: z$1.literal("pending")
|
|
4833
|
-
})]);
|
|
4834
|
-
z$1.strictObject({
|
|
4835
|
-
agentControllerConversationResume: agentControllerConversationResumePlanSchema,
|
|
4836
|
-
localRuntimeContext: localRuntimeContextPlanSchema,
|
|
4837
|
-
bootstrap: conversationBootstrapSchema
|
|
4838
|
-
});
|
|
4839
|
-
const agentControllerConversationResumeSchema = z$1.discriminatedUnion("status", [
|
|
4840
|
-
z$1.strictObject({ status: z$1.literal("not_bound") }),
|
|
4841
|
-
z$1.strictObject({ status: z$1.literal("continued") }),
|
|
4842
|
-
z$1.strictObject({ status: z$1.literal("replaced_by_provider") })
|
|
4843
|
-
]);
|
|
4844
|
-
const localRuntimeContextExecutionSchema = z$1.strictObject({
|
|
4845
|
-
status: z$1.enum(["reused", "recreated"]),
|
|
4846
|
-
reason: z$1.union([localRuntimeContextReasonSchema, z$1.null()])
|
|
4847
|
-
});
|
|
4848
|
-
const dispatchExecutionSchema = z$1.strictObject({
|
|
4849
|
-
agentControllerConversationResume: agentControllerConversationResumeSchema,
|
|
4850
|
-
localRuntimeContext: localRuntimeContextExecutionSchema,
|
|
4851
|
-
bootstrap: conversationBootstrapSchema
|
|
4852
|
-
});
|
|
4853
|
-
//#endregion
|
|
4854
|
-
//#region ../../packages/schemas/dist/schemas/daemon/conversation-execution-state.js
|
|
4855
|
-
const ISO_DATE_TIME_SCHEMA$1 = z$1.iso.datetime({ offset: true });
|
|
4856
|
-
const bootstrapTemplateFactsSchema = z$1.strictObject({
|
|
4857
|
-
templateVersion: z$1.string().min(1),
|
|
4858
|
-
contentFingerprint: z$1.string().min(1)
|
|
4859
|
-
});
|
|
4860
|
-
const conversationExecutionStateSchema = z$1.strictObject({
|
|
4861
|
-
agentContextLookupKey: z$1.string().min(1),
|
|
4862
|
-
activeContextId: z$1.string().min(1).nullable(),
|
|
4863
|
-
lastResolvedAgentControllerConversation: agentControllerConversationRefSchema.optional(),
|
|
4864
|
-
lastRuntimeWorkspacePath: profileWorkingDirectorySchema.optional(),
|
|
4865
|
-
runtimeWorkspaceFingerprint: z$1.string().min(1),
|
|
4866
|
-
bootstrapLastAppliedAt: ISO_DATE_TIME_SCHEMA$1.optional(),
|
|
4867
|
-
bootstrapLastActivatedAt: ISO_DATE_TIME_SCHEMA$1.optional(),
|
|
4868
|
-
dispatchesSinceBootstrapApplied: z$1.number().int().min(0),
|
|
4869
|
-
lastAppliedTemplateVersion: z$1.string().min(1).optional(),
|
|
4870
|
-
lastAppliedContentFingerprint: z$1.string().min(1).optional(),
|
|
4871
|
-
pendingBootstrapReason: conversationBootstrapReasonSchema.optional(),
|
|
4872
|
-
updatedAt: ISO_DATE_TIME_SCHEMA$1
|
|
4873
|
-
});
|
|
4874
|
-
//#endregion
|
|
4875
|
-
//#region ../../packages/schemas/dist/schemas/daemon/provider-runtime-context.js
|
|
4876
|
-
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" }) });
|
|
4877
|
-
enumFactory([
|
|
4878
|
-
"status",
|
|
4879
|
-
"health",
|
|
4880
|
-
"history",
|
|
4881
|
-
"interrupt",
|
|
4882
|
-
"cancel",
|
|
4883
|
-
"conversation_execution_status",
|
|
4884
|
-
"request_agent_activity_sync",
|
|
4885
|
-
"sync_route_catalog",
|
|
4886
|
-
"set_local_agent_enabled",
|
|
4887
|
-
"set_profile_workspace",
|
|
4888
|
-
"service_update_readiness",
|
|
4889
|
-
"shutdown"
|
|
4890
|
-
]);
|
|
4891
|
-
const openMeldDaemonHealthStateSchema = enumFactory([
|
|
4892
|
-
"ok",
|
|
4893
|
-
"degraded",
|
|
4894
|
-
"down"
|
|
4895
|
-
]);
|
|
4896
|
-
const openMeldDaemonRuntimeHealthStateSchema = enumFactory([
|
|
4897
|
-
"healthy",
|
|
4898
|
-
"idle",
|
|
4899
|
-
"suspect",
|
|
4900
|
-
"down"
|
|
4901
|
-
]);
|
|
4902
|
-
const openMeldDaemonControlTargetSelectorSchema = discriminatedUnion("by", [strictObject({
|
|
4903
|
-
by: literal("dispatch"),
|
|
4904
|
-
dispatchId: string().min(1)
|
|
4905
|
-
}), strictObject({
|
|
4906
|
-
by: literal("task"),
|
|
4907
|
-
taskId: string().min(1)
|
|
4908
|
-
})]);
|
|
4909
|
-
const openMeldDaemonInterruptRequestPayloadSchema = strictObject({
|
|
4910
|
-
runtimeCoordinatorExecutionId: string().min(1).optional(),
|
|
4911
|
-
target: openMeldDaemonControlTargetSelectorSchema,
|
|
4912
|
-
mode: enumFactory(["graceful", "force"]).optional(),
|
|
4913
|
-
reason: string().min(1).optional()
|
|
4914
|
-
});
|
|
4915
|
-
const openMeldDaemonCancelRequestPayloadSchema = strictObject({
|
|
4916
|
-
runtimeCoordinatorExecutionId: string().min(1).optional(),
|
|
4917
|
-
target: openMeldDaemonControlTargetSelectorSchema,
|
|
4918
|
-
reason: string().min(1).optional()
|
|
4919
|
-
});
|
|
4920
|
-
const openMeldDaemonShutdownRequestPayloadSchema = strictObject({
|
|
4921
|
-
mode: enumFactory(["graceful", "force"]).default("graceful"),
|
|
4922
|
-
gracePeriodMs: number().int().nonnegative().default(5e3)
|
|
4923
|
-
});
|
|
4924
|
-
const openMeldDaemonServiceUpdateReadinessPayloadSchema = strictObject({
|
|
4925
|
-
acceptedWakeCount: number().int().nonnegative(),
|
|
4926
|
-
safeToSwitch: boolean(),
|
|
4927
|
-
unacknowledgedResultCount: number().int().nonnegative()
|
|
4928
|
-
});
|
|
4929
|
-
const openMeldDaemonConversationExecutionControllerLaunchStatusSchema = enumFactory([
|
|
4930
|
-
"missing",
|
|
4931
|
-
"disabled",
|
|
4932
|
-
"repair_required",
|
|
4933
|
-
"ready"
|
|
4934
|
-
]);
|
|
4935
|
-
const nullableAgentControllerRefSchema = union([string().min(1), nullFactory()]);
|
|
4936
|
-
const nullableNonEmptyStringSchema = union([string().min(1), nullFactory()]);
|
|
4937
|
-
const openMeldDaemonConversationExecutionStatusRequestPayloadSchema = strictObject({
|
|
4938
|
-
boundAgentControllerRef: nullableAgentControllerRefSchema,
|
|
4939
|
-
agentControllerConversationId: nullableNonEmptyStringSchema,
|
|
4940
|
-
agentControllerRef: string().min(1),
|
|
4941
|
-
spaceId: nonEmptyTrimmedStringFromUnknown,
|
|
4942
|
-
targetProfileId: agentProfileIdSchema,
|
|
4943
|
-
transportMode: runtimeTransportModeSchema,
|
|
4944
|
-
validate: boolean()
|
|
4945
|
-
});
|
|
4946
|
-
const openMeldDaemonSyncRouteCatalogRequestPayloadSchema = strictObject({ reason: string().min(1) });
|
|
4947
|
-
const openMeldDaemonRequestAgentActivitySyncRequestPayloadSchema = strictObject({ reason: string().trim().min(1).max(128) });
|
|
4948
|
-
const openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema = strictObject({
|
|
4949
|
-
agentId: string().trim().min(1).max(256),
|
|
4950
|
-
enabled: boolean()
|
|
4951
|
-
});
|
|
4952
|
-
const localAgentInstallationOptionSchema = strictObject({
|
|
4953
|
-
installationId: string().trim().min(1).max(256),
|
|
4954
|
-
name: string().trim().min(1).max(256),
|
|
4955
|
-
details: string().trim().min(1).max(256),
|
|
4956
|
-
selected: boolean()
|
|
4957
|
-
});
|
|
4958
|
-
const openMeldDaemonManageLocalAgentInstallationRequestPayloadSchema = discriminatedUnion("operation", [strictObject({
|
|
4959
|
-
agentId: string().trim().min(1).max(256),
|
|
4960
|
-
operation: literal("list")
|
|
4961
|
-
}), strictObject({
|
|
4962
|
-
agentId: string().trim().min(1).max(256),
|
|
4963
|
-
installationId: string().trim().min(1).max(256),
|
|
4964
|
-
operation: literal("select")
|
|
4965
|
-
})]);
|
|
4966
|
-
const openMeldDaemonSetProfileWorkspaceRequestPayloadSchema = strictObject({
|
|
4967
|
-
targetProfileId: agentProfileIdSchema,
|
|
4968
|
-
workspaceMode: profileWorkspaceModeSchema,
|
|
4969
|
-
workspacePath: profileWorkingDirectorySchema.optional()
|
|
4970
|
-
}).superRefine((value, context) => {
|
|
4971
|
-
if (value.workspaceMode === "custom" && !value.workspacePath) context.addIssue({
|
|
4972
|
-
code: "custom",
|
|
4973
|
-
message: "workspacePath is required for a custom profile workspace",
|
|
4974
|
-
path: ["workspacePath"]
|
|
4975
|
-
});
|
|
4976
|
-
if (value.workspaceMode === "openmeld_managed" && value.workspacePath) context.addIssue({
|
|
4977
|
-
code: "custom",
|
|
4978
|
-
message: "workspacePath must be omitted for an OpenMeld-managed profile workspace",
|
|
4979
|
-
path: ["workspacePath"]
|
|
4980
|
-
});
|
|
4981
|
-
});
|
|
4982
|
-
const openMeldDaemonConversationExecutionRuntimeWorkspaceSchema = discriminatedUnion("status", [
|
|
4983
|
-
strictObject({
|
|
4984
|
-
configPath: string().min(1),
|
|
4985
|
-
configuredWorkspacePath: string().min(1),
|
|
4986
|
-
fingerprint: string().min(1),
|
|
4987
|
-
path: string().min(1),
|
|
4988
|
-
reasonCode: nullFactory(),
|
|
4989
|
-
reasonText: nullFactory(),
|
|
4990
|
-
runtimeContext: providerDispatchRuntimeContextSchema,
|
|
4991
|
-
status: literal("ready"),
|
|
4992
|
-
workspaceMode: profileWorkspaceModeSchema
|
|
4993
|
-
}),
|
|
4994
|
-
strictObject({
|
|
4995
|
-
configPath: string().min(1),
|
|
4996
|
-
configuredWorkspacePath: nullFactory(),
|
|
4997
|
-
fingerprint: nullFactory(),
|
|
4998
|
-
path: nullFactory(),
|
|
4999
|
-
reasonCode: literal("workspace.missing"),
|
|
5000
|
-
reasonText: string().min(1),
|
|
5001
|
-
runtimeContext: nullFactory(),
|
|
5002
|
-
status: literal("missing"),
|
|
5003
|
-
workspaceMode: nullFactory()
|
|
5004
|
-
}),
|
|
5005
|
-
strictObject({
|
|
5006
|
-
configPath: string().min(1),
|
|
5007
|
-
configuredWorkspacePath: union([string().min(1), nullFactory()]),
|
|
5008
|
-
fingerprint: nullFactory(),
|
|
5009
|
-
path: nullFactory(),
|
|
5010
|
-
reasonCode: literal("workspace.invalid"),
|
|
5011
|
-
reasonText: string().min(1),
|
|
5012
|
-
runtimeContext: nullFactory(),
|
|
5013
|
-
status: literal("invalid"),
|
|
5014
|
-
workspaceMode: union([profileWorkspaceModeSchema, nullFactory()])
|
|
5015
|
-
})
|
|
5016
|
-
]);
|
|
5017
|
-
const openMeldDaemonConversationExecutionLocalRuntimeContextStatusSchema = enumFactory([
|
|
5018
|
-
"missing",
|
|
5019
|
-
"mismatch",
|
|
5020
|
-
"ready"
|
|
5021
|
-
]);
|
|
5022
|
-
const openMeldDaemonProviderConversationProofStatusSchema = enumFactory([
|
|
5023
|
-
"failed",
|
|
5024
|
-
"not_applicable",
|
|
5025
|
-
"not_run",
|
|
5026
|
-
"passed"
|
|
5027
|
-
]);
|
|
5028
|
-
const openMeldDaemonProviderConversationProofProviderSchema = enumFactory([
|
|
5029
|
-
"codex",
|
|
5030
|
-
"claude-code",
|
|
5031
|
-
"openclaw"
|
|
5032
|
-
]);
|
|
5033
|
-
const openMeldDaemonProviderConversationProofMethodSchema = enumFactory(["codex_app_server_thread_resume"]);
|
|
5034
|
-
const openMeldDaemonProviderConversationProofSchema = strictObject({
|
|
5035
|
-
agentControllerConversationId: nullableNonEmptyStringSchema,
|
|
5036
|
-
checkedAt: union([iso.datetime({ offset: true }), nullFactory()]),
|
|
5037
|
-
errorCode: nullableNonEmptyStringSchema,
|
|
5038
|
-
errorMessage: nullableNonEmptyStringSchema,
|
|
5039
|
-
errorType: nullableNonEmptyStringSchema,
|
|
5040
|
-
expiresAt: union([iso.datetime({ offset: true }), nullFactory()]),
|
|
5041
|
-
intrusive: literal(false),
|
|
5042
|
-
method: union([openMeldDaemonProviderConversationProofMethodSchema, nullFactory()]),
|
|
5043
|
-
provider: union([openMeldDaemonProviderConversationProofProviderSchema, nullFactory()]),
|
|
5044
|
-
status: openMeldDaemonProviderConversationProofStatusSchema,
|
|
5045
|
-
transportMode: union([runtimeTransportModeSchema, nullFactory()])
|
|
5046
|
-
});
|
|
5047
|
-
const openMeldDaemonConversationExecutionStatusPayloadSchema = strictObject({
|
|
5048
|
-
agentContextLookupKey: string().min(1),
|
|
5049
|
-
controllerLaunchStatus: openMeldDaemonConversationExecutionControllerLaunchStatusSchema,
|
|
5050
|
-
executionState: conversationExecutionStateSchema.nullable(),
|
|
5051
|
-
localRuntimeContext: strictObject({
|
|
5052
|
-
agentContextLookupKey: string().min(1),
|
|
5053
|
-
runtimeWorkspaceFingerprint: nullableNonEmptyStringSchema,
|
|
5054
|
-
status: openMeldDaemonConversationExecutionLocalRuntimeContextStatusSchema
|
|
5055
|
-
}),
|
|
5056
|
-
providerConversationProof: openMeldDaemonProviderConversationProofSchema,
|
|
5057
|
-
runtimeWorkspace: openMeldDaemonConversationExecutionRuntimeWorkspaceSchema
|
|
5058
|
-
});
|
|
5059
|
-
const openMeldDaemonSyncRouteCatalogStatusSchema = enumFactory([
|
|
5060
|
-
"changed",
|
|
5061
|
-
"registered",
|
|
5062
|
-
"unchanged",
|
|
5063
|
-
"failed",
|
|
5064
|
-
"deferred"
|
|
5065
|
-
]);
|
|
5066
|
-
const skippedDaemonProfileSchema = strictObject({
|
|
5067
|
-
profileId: agentProfileIdSchema,
|
|
5068
|
-
profileName: nullableNonEmptyStringSchema,
|
|
5069
|
-
skipReason: enumFactory([
|
|
5070
|
-
"projection.missing",
|
|
5071
|
-
"controller.registry.disabled",
|
|
5072
|
-
"controller.launch.needs_repair",
|
|
5073
|
-
"runtime.adapter.unsupported",
|
|
5074
|
-
"controller.binding.disabled",
|
|
5075
|
-
"controller.binding.incomplete",
|
|
5076
|
-
"profile.status.inactive",
|
|
5077
|
-
"profile.binding.read_unavailable",
|
|
5078
|
-
"profile.binding.unbound",
|
|
5079
|
-
"workspace.missing",
|
|
5080
|
-
"workspace.invalid"
|
|
5081
|
-
])
|
|
5082
|
-
});
|
|
5083
|
-
const openMeldDaemonSyncRouteCatalogPayloadSchema = strictObject({
|
|
5084
|
-
accepted: boolean(),
|
|
5085
|
-
syncStatus: openMeldDaemonSyncRouteCatalogStatusSchema,
|
|
5086
|
-
profileIds: array(agentProfileIdSchema),
|
|
5087
|
-
addedProfileIds: array(agentProfileIdSchema).optional(),
|
|
5088
|
-
keptProfileIds: array(agentProfileIdSchema).optional(),
|
|
5089
|
-
removedProfileIds: array(agentProfileIdSchema).optional(),
|
|
5090
|
-
skippedProfiles: array(skippedDaemonProfileSchema).optional(),
|
|
5091
|
-
note: string().min(1).optional(),
|
|
5092
|
-
errorMessage: string().min(1).optional()
|
|
5093
|
-
});
|
|
5094
|
-
const openMeldDaemonRequestAgentActivitySyncPayloadSchema = strictObject({ accepted: boolean() });
|
|
5095
|
-
const openMeldDaemonSetLocalAgentEnabledPayloadSchema = strictObject({
|
|
5096
|
-
accepted: boolean(),
|
|
5097
|
-
agentControllerRef: string().min(1).optional(),
|
|
5098
|
-
agentId: string().trim().min(1).max(256),
|
|
5099
|
-
changed: boolean(),
|
|
5100
|
-
enabled: boolean(),
|
|
5101
|
-
message: string().min(1).optional(),
|
|
5102
|
-
reasonCode: string().min(1).optional(),
|
|
5103
|
-
reportSyncStatus: enumFactory([
|
|
5104
|
-
"submitted",
|
|
5105
|
-
"skipped",
|
|
5106
|
-
"failed"
|
|
5107
|
-
]),
|
|
5108
|
-
status: enumFactory([
|
|
5109
|
-
"updated",
|
|
5110
|
-
"unchanged",
|
|
5111
|
-
"rejected"
|
|
5112
|
-
])
|
|
5113
|
-
});
|
|
5114
|
-
const openMeldDaemonManageLocalAgentInstallationPayloadSchema = discriminatedUnion("accepted", [strictObject({
|
|
5115
|
-
accepted: literal(true),
|
|
5116
|
-
agentControllerRef: string().min(1),
|
|
5117
|
-
agentId: string().trim().min(1).max(256),
|
|
5118
|
-
changed: boolean(),
|
|
5119
|
-
installations: array(localAgentInstallationOptionSchema),
|
|
5120
|
-
reportSyncStatus: enumFactory([
|
|
5121
|
-
"submitted",
|
|
5122
|
-
"skipped",
|
|
5123
|
-
"failed"
|
|
5124
|
-
]),
|
|
5125
|
-
selectionStatus: enumFactory([
|
|
5126
|
-
"available",
|
|
5127
|
-
"blocked_by_work",
|
|
5128
|
-
"operation_in_progress"
|
|
5129
|
-
]).optional(),
|
|
5130
|
-
selectedInstallationId: string().trim().min(1).max(256).nullable(),
|
|
5131
|
-
status: enumFactory([
|
|
5132
|
-
"listed",
|
|
5133
|
-
"updated",
|
|
5134
|
-
"unchanged"
|
|
5135
|
-
])
|
|
5136
|
-
}), strictObject({
|
|
5137
|
-
accepted: literal(false),
|
|
5138
|
-
agentId: string().trim().min(1).max(256),
|
|
5139
|
-
changed: literal(false),
|
|
5140
|
-
installations: array(localAgentInstallationOptionSchema),
|
|
5141
|
-
message: string().min(1).optional(),
|
|
5142
|
-
reasonCode: string().min(1).optional(),
|
|
5143
|
-
reportSyncStatus: literal("failed"),
|
|
5144
|
-
selectionStatus: enumFactory([
|
|
5145
|
-
"available",
|
|
5146
|
-
"blocked_by_work",
|
|
5147
|
-
"operation_in_progress"
|
|
5148
|
-
]).optional(),
|
|
5149
|
-
selectedInstallationId: string().trim().min(1).max(256).nullable(),
|
|
5150
|
-
status: literal("rejected")
|
|
5151
|
-
})]);
|
|
5152
|
-
const openMeldDaemonSetProfileWorkspacePayloadSchema = discriminatedUnion("accepted", [strictObject({
|
|
5153
|
-
accepted: literal(true),
|
|
5154
|
-
targetProfileId: agentProfileIdSchema,
|
|
5155
|
-
status: literal("updated"),
|
|
5156
|
-
workspaceMode: profileWorkspaceModeSchema,
|
|
5157
|
-
workspacePath: string().min(1)
|
|
5158
|
-
}), strictObject({
|
|
5159
|
-
accepted: literal(false),
|
|
5160
|
-
targetProfileId: agentProfileIdSchema,
|
|
5161
|
-
message: string().min(1).optional(),
|
|
5162
|
-
reasonCode: string().min(1).optional(),
|
|
5163
|
-
status: literal("rejected")
|
|
5164
|
-
})]);
|
|
5165
|
-
const openMeldDaemonControlPlaneRequestBaseSchema = strictObject({
|
|
5166
|
-
v: literal(1),
|
|
5167
|
-
requestId: string().min(1).optional(),
|
|
5168
|
-
authToken: string().min(1).optional()
|
|
5169
|
-
});
|
|
5170
|
-
const openMeldDaemonControlPlaneRequestSchema = discriminatedUnion("command", [
|
|
5171
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal("status") }),
|
|
5172
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal("health") }),
|
|
5173
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal("history") }),
|
|
5174
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
5175
|
-
command: literal("interrupt"),
|
|
5176
|
-
payload: openMeldDaemonInterruptRequestPayloadSchema
|
|
5177
|
-
}),
|
|
5178
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
5179
|
-
command: literal("cancel"),
|
|
5180
|
-
payload: openMeldDaemonCancelRequestPayloadSchema
|
|
5181
|
-
}),
|
|
5182
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
5183
|
-
command: literal("conversation_execution_status"),
|
|
5184
|
-
payload: openMeldDaemonConversationExecutionStatusRequestPayloadSchema
|
|
5185
|
-
}),
|
|
5186
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
5187
|
-
command: literal("sync_route_catalog"),
|
|
5188
|
-
payload: openMeldDaemonSyncRouteCatalogRequestPayloadSchema
|
|
5189
|
-
}),
|
|
5190
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
5191
|
-
command: literal("request_agent_activity_sync"),
|
|
5192
|
-
payload: openMeldDaemonRequestAgentActivitySyncRequestPayloadSchema
|
|
5193
|
-
}),
|
|
5194
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
5195
|
-
command: literal("set_local_agent_enabled"),
|
|
5196
|
-
payload: openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema
|
|
5197
|
-
}),
|
|
5198
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
5199
|
-
command: literal("set_profile_workspace"),
|
|
5200
|
-
payload: openMeldDaemonSetProfileWorkspaceRequestPayloadSchema
|
|
5201
|
-
}),
|
|
5202
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal("service_update_readiness") }),
|
|
5203
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
5204
|
-
command: literal("shutdown"),
|
|
5205
|
-
payload: openMeldDaemonShutdownRequestPayloadSchema.optional()
|
|
5206
|
-
})
|
|
5207
|
-
]);
|
|
5208
|
-
const openMeldDaemonStatusPayloadSchema = strictObject({
|
|
5209
|
-
installed: boolean(),
|
|
5210
|
-
running: boolean(),
|
|
5211
|
-
daemonVersion: string().min(1),
|
|
5212
|
-
runtimeRoot: string().min(1),
|
|
5213
|
-
checkedAt: string().min(1)
|
|
5214
|
-
});
|
|
5215
|
-
const openMeldDaemonHealthPayloadSchema = strictObject({
|
|
5216
|
-
state: openMeldDaemonHealthStateSchema,
|
|
5217
|
-
runtimeState: openMeldDaemonRuntimeHealthStateSchema.optional(),
|
|
5218
|
-
reasonCode: string().min(1),
|
|
5219
|
-
checkedAt: string().min(1)
|
|
5220
|
-
});
|
|
5221
|
-
const openMeldDaemonHistoryPayloadSchema = strictObject({
|
|
5222
|
-
entries: array(strictObject({
|
|
5223
|
-
id: string().min(1),
|
|
5224
|
-
ts: string().min(1),
|
|
5225
|
-
code: string().min(1),
|
|
5226
|
-
message: string().min(1)
|
|
5227
|
-
})),
|
|
5228
|
-
nextCursor: string().min(1).optional()
|
|
5229
|
-
});
|
|
5230
|
-
const openMeldDaemonInterruptPayloadSchema = strictObject({
|
|
5231
|
-
accepted: boolean(),
|
|
5232
|
-
target: openMeldDaemonControlTargetSelectorSchema,
|
|
5233
|
-
resolvedDispatchId: string().min(1).optional(),
|
|
5234
|
-
resolvedRuntimeCoordinatorExecutionId: string().min(1).optional(),
|
|
5235
|
-
resolvedTaskId: string().min(1).optional(),
|
|
5236
|
-
note: string().min(1).optional(),
|
|
5237
|
-
reasonCode: string().min(1).optional()
|
|
5238
|
-
});
|
|
5239
|
-
const openMeldDaemonCancelPayloadSchema = strictObject({
|
|
5240
|
-
accepted: boolean(),
|
|
5241
|
-
target: openMeldDaemonControlTargetSelectorSchema,
|
|
5242
|
-
resolvedDispatchId: string().min(1).optional(),
|
|
5243
|
-
resolvedRuntimeCoordinatorExecutionId: string().min(1).optional(),
|
|
5244
|
-
resolvedTaskId: string().min(1).optional(),
|
|
5245
|
-
note: string().min(1).optional(),
|
|
5246
|
-
reasonCode: string().min(1).optional()
|
|
5247
|
-
});
|
|
5248
|
-
const openMeldDaemonControlPlaneErrorPayloadSchema = strictObject({
|
|
5249
|
-
errorCode: string().min(1),
|
|
5250
|
-
errorMessage: string().min(1),
|
|
5251
|
-
note: string().min(1).optional()
|
|
5252
|
-
});
|
|
5253
|
-
const openMeldDaemonShutdownPayloadSchema = strictObject({
|
|
5254
|
-
accepted: boolean(),
|
|
5255
|
-
mode: enumFactory(["graceful", "force"]),
|
|
5256
|
-
gracePeriodMs: number().int().nonnegative()
|
|
5257
|
-
});
|
|
5258
|
-
const openMeldDaemonControlPlaneResponseBaseSchema = strictObject({
|
|
5259
|
-
v: literal(1),
|
|
5260
|
-
requestId: string().min(1).optional()
|
|
5261
|
-
});
|
|
5262
|
-
const openMeldDaemonStatusResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
5263
|
-
code: literal("service.status"),
|
|
5264
|
-
payload: openMeldDaemonStatusPayloadSchema
|
|
5265
|
-
});
|
|
5266
|
-
const openMeldDaemonHealthResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
5267
|
-
code: literal("service.health"),
|
|
5268
|
-
payload: openMeldDaemonHealthPayloadSchema
|
|
5269
|
-
});
|
|
5270
|
-
const openMeldDaemonHistoryResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
5271
|
-
code: literal("service.history"),
|
|
5272
|
-
payload: openMeldDaemonHistoryPayloadSchema
|
|
5273
|
-
});
|
|
5274
|
-
const openMeldDaemonInterruptResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
5275
|
-
code: literal("service.interrupt"),
|
|
5276
|
-
payload: openMeldDaemonInterruptPayloadSchema
|
|
5277
|
-
});
|
|
5278
|
-
const openMeldDaemonCancelResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
5279
|
-
code: literal("service.cancel"),
|
|
5280
|
-
payload: openMeldDaemonCancelPayloadSchema
|
|
5281
|
-
});
|
|
5282
|
-
const openMeldDaemonConversationExecutionStatusResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
5283
|
-
code: literal("service.conversation_execution_status"),
|
|
5284
|
-
payload: openMeldDaemonConversationExecutionStatusPayloadSchema
|
|
4345
|
+
if (typeof value !== "string") throw new Error(`target_wake_lifecycle.identity_invalid: ${fieldName} must be a string`);
|
|
4346
|
+
const normalized = value.trim();
|
|
4347
|
+
if (!normalized) throw new Error(`target_wake_lifecycle.identity_invalid: ${fieldName} is required`);
|
|
4348
|
+
return normalized;
|
|
4349
|
+
}
|
|
4350
|
+
//#endregion
|
|
4351
|
+
//#region ../../packages/schemas/dist/schemas/runtime/working-language.js
|
|
4352
|
+
const workingLanguageTagSchema = z$1.string().trim().min(2).max(64).transform((value, context) => {
|
|
4353
|
+
try {
|
|
4354
|
+
const [canonical] = Intl.getCanonicalLocales(value);
|
|
4355
|
+
if (!canonical) throw new TypeError("A language tag is required.");
|
|
4356
|
+
return canonical;
|
|
4357
|
+
} catch {
|
|
4358
|
+
context.addIssue({
|
|
4359
|
+
code: "custom",
|
|
4360
|
+
message: "Expected a valid BCP 47 language tag."
|
|
4361
|
+
});
|
|
4362
|
+
return z$1.NEVER;
|
|
4363
|
+
}
|
|
5285
4364
|
});
|
|
5286
|
-
const
|
|
5287
|
-
|
|
5288
|
-
|
|
4365
|
+
const organizationWorkingLanguageModeSchema = z$1.enum(["automatic", "selected"]);
|
|
4366
|
+
const workingLanguageGuidanceSchema = z$1.strictObject({
|
|
4367
|
+
languageTag: workingLanguageTagSchema,
|
|
4368
|
+
mode: organizationWorkingLanguageModeSchema
|
|
5289
4369
|
});
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
4370
|
+
//#endregion
|
|
4371
|
+
//#region ../../packages/schemas/dist/schemas/space-mesh/authority-order.js
|
|
4372
|
+
const spaceAuthorityOrderSchema = z$1.literal("default");
|
|
4373
|
+
//#endregion
|
|
4374
|
+
//#region ../../packages/schemas/dist/schemas/space-mesh/dispatch-policy.js
|
|
4375
|
+
const spaceDispatchPolicyModeSchema = z$1.enum(["mention_only", "listen_all"]);
|
|
4376
|
+
const spaceDispatchPolicySchema = z$1.strictObject({ mode: spaceDispatchPolicyModeSchema });
|
|
4377
|
+
//#endregion
|
|
4378
|
+
//#region ../../packages/schemas/dist/schemas/space-mesh/publication-policy.js
|
|
4379
|
+
const spacePublicationModeSchema = z$1.enum(["collaboration", "raw_context_sharing"]);
|
|
4380
|
+
const spaceAllowedActionSchema = z$1.enum([
|
|
4381
|
+
"post_message",
|
|
4382
|
+
"post_status",
|
|
4383
|
+
"stay_silent"
|
|
4384
|
+
]);
|
|
4385
|
+
const spaceAllowedActionsSchema = z$1.array(spaceAllowedActionSchema).superRefine((value, ctx) => {
|
|
4386
|
+
if (value.length === 0) {
|
|
4387
|
+
ctx.addIssue({
|
|
4388
|
+
code: "custom",
|
|
4389
|
+
message: "allowedActions must contain at least one action"
|
|
4390
|
+
});
|
|
4391
|
+
return;
|
|
4392
|
+
}
|
|
4393
|
+
if (new Set(value).size !== value.length) ctx.addIssue({
|
|
4394
|
+
code: "custom",
|
|
4395
|
+
message: "allowedActions must not contain duplicates"
|
|
4396
|
+
});
|
|
5293
4397
|
});
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
4398
|
+
//#endregion
|
|
4399
|
+
//#region ../../packages/schemas/dist/schemas/space-mesh/result-archive-policy.js
|
|
4400
|
+
const resultArchiveModeSchema = z$1.enum([
|
|
4401
|
+
"none",
|
|
4402
|
+
"space_reply_only",
|
|
4403
|
+
"all_final_results"
|
|
4404
|
+
]);
|
|
4405
|
+
const resultArchivePolicySchema = z$1.strictObject({ mode: resultArchiveModeSchema });
|
|
4406
|
+
//#endregion
|
|
4407
|
+
//#region ../../packages/schemas/dist/schemas/space-mesh/space-note.js
|
|
4408
|
+
const spaceNoteSchema = z$1.string().trim().min(1);
|
|
4409
|
+
//#endregion
|
|
4410
|
+
//#region ../../packages/schemas/dist/schemas/space-mesh/space-contract.js
|
|
4411
|
+
const isoDateTimeSchema = z$1.iso.datetime({ offset: true });
|
|
4412
|
+
const spaceBriefModeSchema = z$1.enum(["default", "none"]);
|
|
4413
|
+
const spaceContractFieldsSchema = z$1.strictObject({
|
|
4414
|
+
dispatchPolicy: spaceDispatchPolicySchema,
|
|
4415
|
+
publicationMode: spacePublicationModeSchema,
|
|
4416
|
+
allowedActions: spaceAllowedActionsSchema,
|
|
4417
|
+
resultArchivePolicy: resultArchivePolicySchema,
|
|
4418
|
+
spaceNote: spaceNoteSchema.optional(),
|
|
4419
|
+
authorityOrder: spaceAuthorityOrderSchema,
|
|
4420
|
+
entryBrief: spaceBriefModeSchema,
|
|
4421
|
+
dispatchBrief: spaceBriefModeSchema
|
|
5297
4422
|
});
|
|
5298
|
-
const
|
|
5299
|
-
|
|
5300
|
-
|
|
4423
|
+
const spaceContractSchema = z$1.strictObject({
|
|
4424
|
+
version: z$1.number().int().finite().positive(),
|
|
4425
|
+
updatedAt: isoDateTimeSchema,
|
|
4426
|
+
updatedBy: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)),
|
|
4427
|
+
dispatchPolicy: spaceDispatchPolicySchema,
|
|
4428
|
+
publicationMode: spacePublicationModeSchema,
|
|
4429
|
+
allowedActions: spaceAllowedActionsSchema,
|
|
4430
|
+
resultArchivePolicy: resultArchivePolicySchema,
|
|
4431
|
+
spaceNote: spaceNoteSchema.optional(),
|
|
4432
|
+
authorityOrder: spaceAuthorityOrderSchema,
|
|
4433
|
+
entryBrief: spaceBriefModeSchema,
|
|
4434
|
+
dispatchBrief: spaceBriefModeSchema
|
|
5301
4435
|
});
|
|
5302
|
-
const openMeldDaemonShutdownResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
5303
|
-
code: literal("service.shutdown"),
|
|
5304
|
-
payload: openMeldDaemonShutdownPayloadSchema
|
|
5305
|
-
});
|
|
5306
|
-
const openMeldDaemonControlPlaneResponseSchema = discriminatedUnion("code", [
|
|
5307
|
-
openMeldDaemonStatusResponseSchema,
|
|
5308
|
-
openMeldDaemonHealthResponseSchema,
|
|
5309
|
-
openMeldDaemonHistoryResponseSchema,
|
|
5310
|
-
openMeldDaemonInterruptResponseSchema,
|
|
5311
|
-
openMeldDaemonCancelResponseSchema,
|
|
5312
|
-
openMeldDaemonConversationExecutionStatusResponseSchema,
|
|
5313
|
-
openMeldDaemonSyncRouteCatalogResponseSchema,
|
|
5314
|
-
openMeldDaemonRequestAgentActivitySyncResponseSchema,
|
|
5315
|
-
openMeldDaemonSetLocalAgentEnabledResponseSchema,
|
|
5316
|
-
openMeldDaemonSetProfileWorkspaceResponseSchema,
|
|
5317
|
-
openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
5318
|
-
code: literal("service.update_readiness"),
|
|
5319
|
-
payload: openMeldDaemonServiceUpdateReadinessPayloadSchema
|
|
5320
|
-
}),
|
|
5321
|
-
openMeldDaemonShutdownResponseSchema,
|
|
5322
|
-
openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
5323
|
-
code: literal("service.error"),
|
|
5324
|
-
payload: openMeldDaemonControlPlaneErrorPayloadSchema
|
|
5325
|
-
})
|
|
5326
|
-
]);
|
|
5327
4436
|
//#endregion
|
|
5328
4437
|
//#region ../../packages/schemas/dist/schemas/runtime/agent-task-coordination.js
|
|
5329
4438
|
const nonEmptyIdSchema = string().trim().min(1).max(512);
|
|
@@ -7261,811 +6370,511 @@ const runtimeCoordinatorHeadWaitingResponseCommonShape = {
|
|
|
7261
6370
|
};
|
|
7262
6371
|
union([
|
|
7263
6372
|
strictObject({
|
|
7264
|
-
...runtimeCoordinatorHeadWaitingResponseCommonShape,
|
|
7265
|
-
...runtimeCoordinatorAccessWaitingDecisionShape
|
|
7266
|
-
}),
|
|
7267
|
-
strictObject({
|
|
7268
|
-
...runtimeCoordinatorHeadWaitingResponseCommonShape,
|
|
7269
|
-
...runtimeCoordinatorReadinessWaitingDecisionShape
|
|
7270
|
-
}),
|
|
7271
|
-
strictObject({
|
|
7272
|
-
...runtimeCoordinatorHeadWaitingResponseCommonShape,
|
|
7273
|
-
...runtimeCoordinatorOfflineWaitingDecisionShape
|
|
7274
|
-
}),
|
|
7275
|
-
strictObject({
|
|
7276
|
-
...runtimeCoordinatorHeadWaitingResponseCommonShape,
|
|
7277
|
-
...runtimeCoordinatorPendingFirstReportWaitingDecisionShape
|
|
7278
|
-
}),
|
|
7279
|
-
strictObject({
|
|
7280
|
-
ok: literal(true),
|
|
7281
|
-
primaryDispatchId: string().min(1),
|
|
7282
|
-
publicationIntentId: string().min(1).max(4096),
|
|
7283
|
-
reasonCode: runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema,
|
|
7284
|
-
runtimeCoordinatorExecutionId: nullFactory(),
|
|
7285
|
-
status: literal("publication_intent_ready"),
|
|
7286
|
-
targetWakeLifecycleId: string().min(1).max(2048)
|
|
7287
|
-
}),
|
|
7288
|
-
strictObject({
|
|
7289
|
-
ok: literal(false),
|
|
7290
|
-
primaryDispatchId: string().min(1).nullable(),
|
|
7291
|
-
reasonCode: string().min(1).max(160),
|
|
7292
|
-
runtimeCoordinatorExecutionId: nullFactory(),
|
|
7293
|
-
status: enumFactory(["conflict", "retry_later"]),
|
|
7294
|
-
targetWakeLifecycleId: string().min(1).max(2048)
|
|
7295
|
-
})
|
|
7296
|
-
]);
|
|
7297
|
-
const runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionTraceSchema = strictObject({
|
|
7298
|
-
decidedAtMs: int().min(0),
|
|
7299
|
-
publicationCategory: runtimeTransportRuntimeCoordinatorHeadNoExecutionPublicationCategorySchema,
|
|
7300
|
-
reasonCode: runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema,
|
|
7301
|
-
source: runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionSourceSchema,
|
|
7302
|
-
userRecoveryAction: runtimeTransportRuntimeCoordinatorHeadNoExecutionRecoveryActionSchema
|
|
7303
|
-
});
|
|
7304
|
-
const runtimeTransportRuntimeCoordinatorHeadPublicationIntentTraceSchema = union([strictObject({
|
|
7305
|
-
intentId: string().min(1).max(4096),
|
|
7306
|
-
kind: literal("no_execution_failure"),
|
|
7307
|
-
publicationCategory: runtimeTransportRuntimeCoordinatorHeadNoExecutionPublicationCategorySchema,
|
|
7308
|
-
readyAtMs: int().min(0),
|
|
7309
|
-
reasonCode: runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema,
|
|
7310
|
-
status: literal("ready_for_phase_6"),
|
|
7311
|
-
userRecoveryAction: runtimeTransportRuntimeCoordinatorHeadNoExecutionRecoveryActionSchema
|
|
7312
|
-
}), strictObject({
|
|
7313
|
-
intentId: string().min(1).max(4096),
|
|
7314
|
-
kind: literal("stopped_notice"),
|
|
7315
|
-
readyAtMs: int().min(0),
|
|
7316
|
-
reasonCode: runtimeTransportRuntimeCoordinatorHeadPreAgentStopReasonCodeSchema,
|
|
7317
|
-
status: literal("ready_for_phase_6")
|
|
7318
|
-
})]);
|
|
7319
|
-
const runtimeTransportRuntimeCoordinatorHeadPublicationOutcomeTraceSchema = strictObject({
|
|
7320
|
-
failurePublicationCommandId: string().min(1).max(4096),
|
|
7321
|
-
finalMessageKind: enumFactory([
|
|
7322
|
-
"failure_notice",
|
|
7323
|
-
"status",
|
|
7324
|
-
"success_reply",
|
|
7325
|
-
"unknown"
|
|
7326
|
-
]).nullable(),
|
|
7327
|
-
observedAtMs: int().min(0),
|
|
7328
|
-
publicationErrorCode: string().min(1).max(160).nullable(),
|
|
7329
|
-
publishedSignalId: string().min(1).nullable(),
|
|
7330
|
-
status: enumFactory([
|
|
7331
|
-
"failure_published",
|
|
7332
|
-
"already_final",
|
|
7333
|
-
"failure_publication_failed"
|
|
7334
|
-
])
|
|
7335
|
-
});
|
|
7336
|
-
const runtimeTransportRuntimeCoordinatorHeadPublicationExhaustionTraceSchema = strictObject({
|
|
7337
|
-
attemptCount: int().positive(),
|
|
7338
|
-
exhaustedAtMs: int().min(0),
|
|
7339
|
-
lastFailureAtMs: int().min(0),
|
|
7340
|
-
lastReasonCode: string().min(1).max(160),
|
|
7341
|
-
reasonCode: literal("runtime_coordinator.publication_retry_exhausted"),
|
|
7342
|
-
status: literal("publication_exhausted")
|
|
7343
|
-
});
|
|
7344
|
-
const runtimeTransportRuntimeCoordinatorHeadTargetDisplayTraceSchema = strictObject({
|
|
7345
|
-
targetProfileMentionLabel: spaceMentionLabelSchema.nullable(),
|
|
7346
|
-
targetProfileName: string().min(1).max(64).nullable()
|
|
7347
|
-
});
|
|
7348
|
-
const runtimeTransportRuntimeCoordinatorHeadLifecycleTraceRecordSchema = strictObject({
|
|
7349
|
-
createdAtMs: int().min(0),
|
|
7350
|
-
duplicateDispatchCount: int().min(0),
|
|
7351
|
-
executionLinkedAtMs: int().min(0).nullable(),
|
|
7352
|
-
modelVersion: literal("openmeld.runtime_coordinator.head_lifecycle.v1"),
|
|
7353
|
-
noExecutionDecision: union([runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionTraceSchema, nullFactory()]),
|
|
7354
|
-
ownerUserId: string().min(1),
|
|
7355
|
-
primaryDispatchId: string().min(1),
|
|
7356
|
-
publicationIntent: union([runtimeTransportRuntimeCoordinatorHeadPublicationIntentTraceSchema, nullFactory()]),
|
|
7357
|
-
publicationExhaustion: runtimeTransportRuntimeCoordinatorHeadPublicationExhaustionTraceSchema.optional(),
|
|
7358
|
-
publicationOutcome: runtimeTransportRuntimeCoordinatorHeadPublicationOutcomeTraceSchema.optional(),
|
|
7359
|
-
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.nullable(),
|
|
7360
|
-
status: runtimeTransportRuntimeCoordinatorHeadLifecycleStatusSchema,
|
|
7361
|
-
targetWakeLifecycleIdentity: targetWakeLifecycleIdentitySchema,
|
|
7362
|
-
targetWakeLifecycleId: string().min(1).max(2048),
|
|
7363
|
-
targetDisplay: runtimeTransportRuntimeCoordinatorHeadTargetDisplayTraceSchema.optional(),
|
|
7364
|
-
updatedAtMs: int().min(0),
|
|
7365
|
-
waitingBoundary: union([runtimeTransportRuntimeCoordinatorHeadWaitingBoundarySchema, nullFactory()])
|
|
7366
|
-
});
|
|
7367
|
-
strictObject({
|
|
7368
|
-
v: literal(1),
|
|
7369
|
-
targetWakeLifecycleIdentity: targetWakeLifecycleIdentitySchema
|
|
7370
|
-
});
|
|
7371
|
-
discriminatedUnion("readStatus", [
|
|
7372
|
-
strictObject({
|
|
7373
|
-
lifecycle: runtimeTransportRuntimeCoordinatorHeadLifecycleTraceRecordSchema,
|
|
7374
|
-
ok: literal(true),
|
|
7375
|
-
readStatus: literal("found")
|
|
7376
|
-
}),
|
|
7377
|
-
strictObject({
|
|
7378
|
-
ok: literal(true),
|
|
7379
|
-
readStatus: literal("missing"),
|
|
7380
|
-
reasonCode: literal("runtime_coordinator.head_lifecycle_not_found"),
|
|
7381
|
-
targetWakeLifecycleId: string().min(1).max(2048)
|
|
7382
|
-
}),
|
|
7383
|
-
strictObject({
|
|
7384
|
-
ok: literal(false),
|
|
7385
|
-
readStatus: literal("authority_unavailable"),
|
|
7386
|
-
reasonCode: string().min(1).max(160),
|
|
7387
|
-
targetWakeLifecycleId: string().min(1).max(2048)
|
|
7388
|
-
})
|
|
7389
|
-
]);
|
|
7390
|
-
const runtimeTransportPreExecutionHandoffReasonCodeSchema = enumFactory(["daemon.profile.offline"]);
|
|
7391
|
-
strictObject({
|
|
7392
|
-
v: literal(1),
|
|
7393
|
-
attemptId: string().min(1).nullable().optional(),
|
|
7394
|
-
autoRelayDepth: number().int().nonnegative().optional(),
|
|
7395
|
-
dispatchChainId: string().min(1).nullable().optional(),
|
|
7396
|
-
dispatchId: string().min(1),
|
|
7397
|
-
firstSeenAtMs: number().int().nonnegative(),
|
|
7398
|
-
idempotencyKey: string().min(1).max(512),
|
|
7399
|
-
observedAtMs: number().int().nonnegative(),
|
|
7400
|
-
reasonCode: runtimeTransportPreExecutionHandoffReasonCodeSchema,
|
|
7401
|
-
sourceClientMessageId: string().min(1).max(200).nullable().optional(),
|
|
7402
|
-
sourceEventId: string().min(1),
|
|
7403
|
-
spaceId: string().min(1),
|
|
7404
|
-
spacePassword: spacePasswordSchema.optional(),
|
|
7405
|
-
targetProfileId: string().min(1),
|
|
7406
|
-
targetProfileMentionLabel: spaceMentionLabelSchema.optional(),
|
|
7407
|
-
targetProfileName: string().min(1).max(64).optional(),
|
|
7408
|
-
taskId: string().min(1),
|
|
7409
|
-
threadContext: spaceThreadContextSchema.optional(),
|
|
7410
|
-
visitedProfileIds: array(string().min(1)).max(256).optional(),
|
|
7411
|
-
visitedProfileIdsHash: string().min(1).nullable().optional()
|
|
7412
|
-
});
|
|
7413
|
-
discriminatedUnion("status", [
|
|
7414
|
-
strictObject({
|
|
7415
|
-
deadlineAtMs: number().int().nonnegative(),
|
|
7416
|
-
nextAlarmAtMs: number().int().nonnegative(),
|
|
7417
|
-
ok: literal(true),
|
|
7418
|
-
reasonCode: runtimeTransportPreExecutionHandoffReasonCodeSchema,
|
|
7419
|
-
status: literal("waiting_for_recovery")
|
|
7420
|
-
}),
|
|
7421
|
-
strictObject({
|
|
7422
|
-
deadlineAtMs: number().int().nonnegative(),
|
|
7423
|
-
ok: literal(true),
|
|
7424
|
-
publishedSignalId: string().min(1),
|
|
7425
|
-
reasonCode: runtimeTransportPreExecutionHandoffReasonCodeSchema,
|
|
7426
|
-
resultRef: string().min(1),
|
|
7427
|
-
status: literal("failure_published")
|
|
6373
|
+
...runtimeCoordinatorHeadWaitingResponseCommonShape,
|
|
6374
|
+
...runtimeCoordinatorAccessWaitingDecisionShape
|
|
7428
6375
|
}),
|
|
7429
6376
|
strictObject({
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
ok: literal(true),
|
|
7433
|
-
publicationErrorCode: string().min(1),
|
|
7434
|
-
reasonCode: runtimeTransportPreExecutionHandoffReasonCodeSchema,
|
|
7435
|
-
resultRef: string().min(1),
|
|
7436
|
-
status: literal("failure_publication_retry_scheduled")
|
|
6377
|
+
...runtimeCoordinatorHeadWaitingResponseCommonShape,
|
|
6378
|
+
...runtimeCoordinatorReadinessWaitingDecisionShape
|
|
7437
6379
|
}),
|
|
7438
6380
|
strictObject({
|
|
7439
|
-
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
6381
|
+
...runtimeCoordinatorHeadWaitingResponseCommonShape,
|
|
6382
|
+
...runtimeCoordinatorOfflineWaitingDecisionShape
|
|
6383
|
+
}),
|
|
6384
|
+
strictObject({
|
|
6385
|
+
...runtimeCoordinatorHeadWaitingResponseCommonShape,
|
|
6386
|
+
...runtimeCoordinatorPendingFirstReportWaitingDecisionShape
|
|
7443
6387
|
}),
|
|
7444
6388
|
strictObject({
|
|
7445
|
-
deadlineAtMs: number().int().nonnegative(),
|
|
7446
6389
|
ok: literal(true),
|
|
7447
|
-
|
|
7448
|
-
|
|
6390
|
+
primaryDispatchId: string().min(1),
|
|
6391
|
+
publicationIntentId: string().min(1).max(4096),
|
|
6392
|
+
reasonCode: runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema,
|
|
6393
|
+
runtimeCoordinatorExecutionId: nullFactory(),
|
|
6394
|
+
status: literal("publication_intent_ready"),
|
|
6395
|
+
targetWakeLifecycleId: string().min(1).max(2048)
|
|
7449
6396
|
}),
|
|
7450
6397
|
strictObject({
|
|
7451
6398
|
ok: literal(false),
|
|
7452
|
-
|
|
7453
|
-
|
|
6399
|
+
primaryDispatchId: string().min(1).nullable(),
|
|
6400
|
+
reasonCode: string().min(1).max(160),
|
|
6401
|
+
runtimeCoordinatorExecutionId: nullFactory(),
|
|
6402
|
+
status: enumFactory(["conflict", "retry_later"]),
|
|
6403
|
+
targetWakeLifecycleId: string().min(1).max(2048)
|
|
7454
6404
|
})
|
|
7455
6405
|
]);
|
|
7456
|
-
const
|
|
7457
|
-
|
|
7458
|
-
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
|
|
7462
|
-
agentControllerConversationId: string().trim().min(1),
|
|
7463
|
-
contractVersion: literal(1),
|
|
7464
|
-
state: enumFactory(["available", "occupied"])
|
|
7465
|
-
});
|
|
7466
|
-
const runtimeTransportDispatchLocalQueueWaitReasonSchema = enumFactory([
|
|
7467
|
-
"agent_controller_maintenance",
|
|
7468
|
-
"global_concurrency",
|
|
7469
|
-
"local_execution_lane_concurrency",
|
|
7470
|
-
"none"
|
|
7471
|
-
]);
|
|
7472
|
-
const runtimeTransportDispatchLocalQueueDiagnosticsSchema = strictObject({
|
|
7473
|
-
activeForLane: number().int().nonnegative(),
|
|
7474
|
-
activeGlobal: number().int().nonnegative(),
|
|
7475
|
-
globalConcurrency: number().int().positive(),
|
|
7476
|
-
queueDepth: number().int().nonnegative(),
|
|
7477
|
-
queueMax: number().int().positive(),
|
|
7478
|
-
queuePosition: union([number().int().positive(), nullFactory()]),
|
|
7479
|
-
status: enumFactory(["queued", "starting_runtime"]),
|
|
7480
|
-
waitReason: runtimeTransportDispatchLocalQueueWaitReasonSchema
|
|
7481
|
-
});
|
|
7482
|
-
const runtimeTransportDispatchLifecycleRequestSchema = strictObject({
|
|
7483
|
-
v: literal(1),
|
|
7484
|
-
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.optional(),
|
|
7485
|
-
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema.optional(),
|
|
7486
|
-
dispatchId: string().min(1),
|
|
7487
|
-
attemptId: string().min(1),
|
|
7488
|
-
daemonSessionId: string().min(1),
|
|
7489
|
-
connectionGeneration: number().int().positive(),
|
|
7490
|
-
leaseEpoch: number().int().positive(),
|
|
7491
|
-
phase: runtimeTransportDispatchLifecyclePhaseSchema,
|
|
7492
|
-
lifecycleAtMs: number().int().nonnegative(),
|
|
7493
|
-
agentControllerConversationOccupancy: runtimeTransportAgentControllerConversationOccupancySchema.optional(),
|
|
7494
|
-
localQueue: runtimeTransportDispatchLocalQueueDiagnosticsSchema.optional()
|
|
7495
|
-
});
|
|
7496
|
-
const runtimeTransportDispatchRuntimeEvidencePhaseSchema = enumFactory([
|
|
7497
|
-
"received",
|
|
7498
|
-
"claimed",
|
|
7499
|
-
"runtime_started",
|
|
7500
|
-
"first_output",
|
|
7501
|
-
"completed",
|
|
7502
|
-
"failed"
|
|
7503
|
-
]);
|
|
7504
|
-
const runtimeTransportDispatchRuntimeEvidenceRequestSchema = strictObject({
|
|
7505
|
-
v: literal(1),
|
|
7506
|
-
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.optional(),
|
|
7507
|
-
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema.optional(),
|
|
7508
|
-
dispatchId: string().min(1),
|
|
7509
|
-
attemptId: string().min(1),
|
|
7510
|
-
executionIdentityEcho: runtimeTransportRuntimeEvidenceIdentityEchoSchema,
|
|
7511
|
-
daemonSessionId: string().min(1),
|
|
7512
|
-
connectionGeneration: number().int().positive(),
|
|
7513
|
-
leaseEpoch: number().int().positive(),
|
|
7514
|
-
phase: runtimeTransportDispatchRuntimeEvidencePhaseSchema,
|
|
7515
|
-
evidenceAtMs: number().int().nonnegative(),
|
|
7516
|
-
taskId: string().min(1),
|
|
7517
|
-
spaceId: string().min(1),
|
|
7518
|
-
sourceSignalId: string().min(1),
|
|
7519
|
-
sourceClientMessageId: string().min(1).max(200).nullable().optional(),
|
|
7520
|
-
targetProfileId: string().min(1),
|
|
7521
|
-
claimLeaseId: string().min(1).optional(),
|
|
7522
|
-
durationMs: number().finite().nonnegative().optional(),
|
|
7523
|
-
reasonCode: string().trim().min(1).max(160).optional(),
|
|
7524
|
-
errorName: string().trim().min(1).max(160).optional()
|
|
7525
|
-
});
|
|
7526
|
-
const localAgentToolActivityNameSchema = enumFactory([
|
|
7527
|
-
"agent_run_command",
|
|
7528
|
-
"agent_read_files",
|
|
7529
|
-
"agent_edit_files",
|
|
7530
|
-
"agent_search_files",
|
|
7531
|
-
"agent_search_web",
|
|
7532
|
-
"agent_open_webpage",
|
|
7533
|
-
"agent_delegate_task",
|
|
7534
|
-
"agent_work_with_image",
|
|
7535
|
-
"agent_use_tool"
|
|
7536
|
-
]);
|
|
7537
|
-
const localAgentStreamToolPartSchema = agentStreamToolPartSchema.extend({ toolName: localAgentToolActivityNameSchema });
|
|
7538
|
-
const runtimeTransportDispatchToolActivityRequestSchema = strictObject({
|
|
7539
|
-
v: literal(1),
|
|
7540
|
-
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.optional(),
|
|
7541
|
-
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema.optional(),
|
|
7542
|
-
dispatchId: string().min(1),
|
|
7543
|
-
attemptId: string().min(1),
|
|
7544
|
-
executionIdentityEcho: runtimeTransportRuntimeEvidenceIdentityEchoSchema,
|
|
7545
|
-
daemonSessionId: string().min(1),
|
|
7546
|
-
connectionGeneration: number().int().positive(),
|
|
7547
|
-
leaseEpoch: number().int().positive(),
|
|
7548
|
-
sequence: number().int().positive(),
|
|
7549
|
-
observedAtMs: number().int().nonnegative(),
|
|
7550
|
-
taskId: string().min(1),
|
|
7551
|
-
spaceId: string().min(1),
|
|
7552
|
-
sourceSignalId: string().min(1),
|
|
7553
|
-
targetProfileId: string().min(1),
|
|
7554
|
-
part: localAgentStreamToolPartSchema
|
|
7555
|
-
});
|
|
7556
|
-
const runtimeTransportDispatchReasoningRequestSchema = runtimeTransportDispatchToolActivityRequestSchema.omit({ part: true }).extend({
|
|
7557
|
-
thinkingSnapshot: string().max(LOCAL_AGENT_REASONING_MAX_CHARS),
|
|
7558
|
-
reasoningState: localAgentReasoningStateSchema
|
|
7559
|
-
});
|
|
7560
|
-
const runtimeTransportDispatchInteractionRequestSchema = strictObject({
|
|
7561
|
-
v: literal(1),
|
|
7562
|
-
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId,
|
|
7563
|
-
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema,
|
|
7564
|
-
dispatchId: string().min(1),
|
|
7565
|
-
attemptId: string().min(1),
|
|
7566
|
-
executionIdentityEcho: runtimeTransportRuntimeEvidenceIdentityEchoSchema,
|
|
7567
|
-
daemonSessionId: string().min(1),
|
|
7568
|
-
connectionGeneration: number().int().positive(),
|
|
7569
|
-
leaseEpoch: number().int().positive(),
|
|
7570
|
-
taskId: string().min(1),
|
|
7571
|
-
interaction: agentInteractionRequestSchema
|
|
7572
|
-
});
|
|
7573
|
-
const runtimeTransportDispatchInteractionResponseFramePayloadSchema = strictObject({
|
|
7574
|
-
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId,
|
|
7575
|
-
dispatchId: string().min(1),
|
|
7576
|
-
attemptId: string().min(1),
|
|
7577
|
-
interactionId: string().trim().min(1).max(256),
|
|
7578
|
-
response: agentInteractionResponseSchema,
|
|
7579
|
-
respondedAtMs: number().int().nonnegative()
|
|
7580
|
-
});
|
|
7581
|
-
const runtimeTransportDispatchInteractionDeliveredRequestSchema = strictObject({
|
|
7582
|
-
v: literal(1),
|
|
7583
|
-
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId,
|
|
7584
|
-
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema,
|
|
7585
|
-
dispatchId: string().min(1),
|
|
7586
|
-
attemptId: string().min(1),
|
|
7587
|
-
executionIdentityEcho: runtimeTransportRuntimeEvidenceIdentityEchoSchema,
|
|
7588
|
-
daemonSessionId: string().min(1),
|
|
7589
|
-
connectionGeneration: number().int().positive(),
|
|
7590
|
-
leaseEpoch: number().int().positive(),
|
|
7591
|
-
interactionId: string().trim().min(1).max(256),
|
|
7592
|
-
deliveredAtMs: number().int().nonnegative()
|
|
7593
|
-
});
|
|
7594
|
-
strictObject({
|
|
7595
|
-
v: literal(1),
|
|
7596
|
-
actorOwnerUserId: string().min(1),
|
|
7597
|
-
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId
|
|
7598
|
-
});
|
|
7599
|
-
strictObject({ pendingInteraction: agentInteractionPendingSummarySchema.nullable() });
|
|
7600
|
-
strictObject({
|
|
7601
|
-
v: literal(1),
|
|
7602
|
-
actorOwnerUserId: string().min(1),
|
|
7603
|
-
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId,
|
|
7604
|
-
interactionId: string().trim().min(1).max(256),
|
|
7605
|
-
response: agentInteractionResponseSchema
|
|
6406
|
+
const runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionTraceSchema = strictObject({
|
|
6407
|
+
decidedAtMs: int().min(0),
|
|
6408
|
+
publicationCategory: runtimeTransportRuntimeCoordinatorHeadNoExecutionPublicationCategorySchema,
|
|
6409
|
+
reasonCode: runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema,
|
|
6410
|
+
source: runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionSourceSchema,
|
|
6411
|
+
userRecoveryAction: runtimeTransportRuntimeCoordinatorHeadNoExecutionRecoveryActionSchema
|
|
7606
6412
|
});
|
|
7607
|
-
const
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
6413
|
+
const runtimeTransportRuntimeCoordinatorHeadPublicationIntentTraceSchema = union([strictObject({
|
|
6414
|
+
intentId: string().min(1).max(4096),
|
|
6415
|
+
kind: literal("no_execution_failure"),
|
|
6416
|
+
publicationCategory: runtimeTransportRuntimeCoordinatorHeadNoExecutionPublicationCategorySchema,
|
|
6417
|
+
readyAtMs: int().min(0),
|
|
6418
|
+
reasonCode: runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema,
|
|
6419
|
+
status: literal("ready_for_phase_6"),
|
|
6420
|
+
userRecoveryAction: runtimeTransportRuntimeCoordinatorHeadNoExecutionRecoveryActionSchema
|
|
7611
6421
|
}), strictObject({
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
"owner_mismatch",
|
|
7618
|
-
"response_invalid",
|
|
7619
|
-
"retry_later"
|
|
7620
|
-
]),
|
|
7621
|
-
message: string().trim().min(1).max(1e3)
|
|
6422
|
+
intentId: string().min(1).max(4096),
|
|
6423
|
+
kind: literal("stopped_notice"),
|
|
6424
|
+
readyAtMs: int().min(0),
|
|
6425
|
+
reasonCode: runtimeTransportRuntimeCoordinatorHeadPreAgentStopReasonCodeSchema,
|
|
6426
|
+
status: literal("ready_for_phase_6")
|
|
7622
6427
|
})]);
|
|
7623
|
-
const
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
"
|
|
7627
|
-
"
|
|
7628
|
-
"
|
|
7629
|
-
"
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
|
|
6428
|
+
const runtimeTransportRuntimeCoordinatorHeadPublicationOutcomeTraceSchema = strictObject({
|
|
6429
|
+
failurePublicationCommandId: string().min(1).max(4096),
|
|
6430
|
+
finalMessageKind: enumFactory([
|
|
6431
|
+
"failure_notice",
|
|
6432
|
+
"status",
|
|
6433
|
+
"success_reply",
|
|
6434
|
+
"unknown"
|
|
6435
|
+
]).nullable(),
|
|
6436
|
+
observedAtMs: int().min(0),
|
|
6437
|
+
publicationErrorCode: string().min(1).max(160).nullable(),
|
|
6438
|
+
publishedSignalId: string().min(1).nullable(),
|
|
6439
|
+
status: enumFactory([
|
|
6440
|
+
"failure_published",
|
|
6441
|
+
"already_final",
|
|
6442
|
+
"failure_publication_failed"
|
|
6443
|
+
])
|
|
6444
|
+
});
|
|
6445
|
+
const runtimeTransportRuntimeCoordinatorHeadPublicationExhaustionTraceSchema = strictObject({
|
|
6446
|
+
attemptCount: int().positive(),
|
|
6447
|
+
exhaustedAtMs: int().min(0),
|
|
6448
|
+
lastFailureAtMs: int().min(0),
|
|
6449
|
+
lastReasonCode: string().min(1).max(160),
|
|
6450
|
+
reasonCode: literal("runtime_coordinator.publication_retry_exhausted"),
|
|
6451
|
+
status: literal("publication_exhausted")
|
|
7637
6452
|
});
|
|
7638
|
-
|
|
6453
|
+
const runtimeTransportRuntimeCoordinatorHeadTargetDisplayTraceSchema = strictObject({
|
|
6454
|
+
targetProfileMentionLabel: spaceMentionLabelSchema.nullable(),
|
|
6455
|
+
targetProfileName: string().min(1).max(64).nullable()
|
|
6456
|
+
});
|
|
6457
|
+
const runtimeTransportRuntimeCoordinatorHeadLifecycleTraceRecordSchema = strictObject({
|
|
6458
|
+
createdAtMs: int().min(0),
|
|
6459
|
+
duplicateDispatchCount: int().min(0),
|
|
6460
|
+
executionLinkedAtMs: int().min(0).nullable(),
|
|
6461
|
+
modelVersion: literal("openmeld.runtime_coordinator.head_lifecycle.v1"),
|
|
6462
|
+
noExecutionDecision: union([runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionTraceSchema, nullFactory()]),
|
|
6463
|
+
ownerUserId: string().min(1),
|
|
6464
|
+
primaryDispatchId: string().min(1),
|
|
6465
|
+
publicationIntent: union([runtimeTransportRuntimeCoordinatorHeadPublicationIntentTraceSchema, nullFactory()]),
|
|
6466
|
+
publicationExhaustion: runtimeTransportRuntimeCoordinatorHeadPublicationExhaustionTraceSchema.optional(),
|
|
6467
|
+
publicationOutcome: runtimeTransportRuntimeCoordinatorHeadPublicationOutcomeTraceSchema.optional(),
|
|
6468
|
+
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.nullable(),
|
|
6469
|
+
status: runtimeTransportRuntimeCoordinatorHeadLifecycleStatusSchema,
|
|
6470
|
+
targetWakeLifecycleIdentity: targetWakeLifecycleIdentitySchema,
|
|
6471
|
+
targetWakeLifecycleId: string().min(1).max(2048),
|
|
6472
|
+
targetDisplay: runtimeTransportRuntimeCoordinatorHeadTargetDisplayTraceSchema.optional(),
|
|
6473
|
+
updatedAtMs: int().min(0),
|
|
6474
|
+
waitingBoundary: union([runtimeTransportRuntimeCoordinatorHeadWaitingBoundarySchema, nullFactory()])
|
|
6475
|
+
});
|
|
6476
|
+
strictObject({
|
|
6477
|
+
v: literal(1),
|
|
6478
|
+
targetWakeLifecycleIdentity: targetWakeLifecycleIdentitySchema
|
|
6479
|
+
});
|
|
6480
|
+
discriminatedUnion("readStatus", [
|
|
7639
6481
|
strictObject({
|
|
7640
|
-
|
|
7641
|
-
|
|
7642
|
-
|
|
6482
|
+
lifecycle: runtimeTransportRuntimeCoordinatorHeadLifecycleTraceRecordSchema,
|
|
6483
|
+
ok: literal(true),
|
|
6484
|
+
readStatus: literal("found")
|
|
7643
6485
|
}),
|
|
7644
6486
|
strictObject({
|
|
7645
|
-
|
|
7646
|
-
|
|
6487
|
+
ok: literal(true),
|
|
6488
|
+
readStatus: literal("missing"),
|
|
6489
|
+
reasonCode: literal("runtime_coordinator.head_lifecycle_not_found"),
|
|
6490
|
+
targetWakeLifecycleId: string().min(1).max(2048)
|
|
7647
6491
|
}),
|
|
7648
6492
|
strictObject({
|
|
7649
|
-
|
|
7650
|
-
|
|
7651
|
-
reasonCode:
|
|
6493
|
+
ok: literal(false),
|
|
6494
|
+
readStatus: literal("authority_unavailable"),
|
|
6495
|
+
reasonCode: string().min(1).max(160),
|
|
6496
|
+
targetWakeLifecycleId: string().min(1).max(2048)
|
|
7652
6497
|
})
|
|
7653
6498
|
]);
|
|
7654
|
-
const
|
|
6499
|
+
const runtimeTransportPreExecutionHandoffReasonCodeSchema = enumFactory(["daemon.profile.offline"]);
|
|
6500
|
+
strictObject({
|
|
7655
6501
|
v: literal(1),
|
|
7656
|
-
|
|
7657
|
-
|
|
6502
|
+
attemptId: string().min(1).nullable().optional(),
|
|
6503
|
+
autoRelayDepth: number().int().nonnegative().optional(),
|
|
6504
|
+
dispatchChainId: string().min(1).nullable().optional(),
|
|
7658
6505
|
dispatchId: string().min(1),
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
|
|
7662
|
-
|
|
7663
|
-
|
|
7664
|
-
|
|
6506
|
+
firstSeenAtMs: number().int().nonnegative(),
|
|
6507
|
+
idempotencyKey: string().min(1).max(512),
|
|
6508
|
+
observedAtMs: number().int().nonnegative(),
|
|
6509
|
+
reasonCode: runtimeTransportPreExecutionHandoffReasonCodeSchema,
|
|
6510
|
+
sourceClientMessageId: string().min(1).max(200).nullable().optional(),
|
|
6511
|
+
sourceEventId: string().min(1),
|
|
6512
|
+
spaceId: string().min(1),
|
|
6513
|
+
spacePassword: spacePasswordSchema.optional(),
|
|
6514
|
+
targetProfileId: string().min(1),
|
|
6515
|
+
targetProfileMentionLabel: spaceMentionLabelSchema.optional(),
|
|
6516
|
+
targetProfileName: string().min(1).max(64).optional(),
|
|
6517
|
+
taskId: string().min(1),
|
|
6518
|
+
threadContext: spaceThreadContextSchema.optional(),
|
|
6519
|
+
visitedProfileIds: array(string().min(1)).max(256).optional(),
|
|
6520
|
+
visitedProfileIdsHash: string().min(1).nullable().optional()
|
|
7665
6521
|
});
|
|
7666
6522
|
discriminatedUnion("status", [
|
|
7667
6523
|
strictObject({
|
|
6524
|
+
deadlineAtMs: number().int().nonnegative(),
|
|
6525
|
+
nextAlarmAtMs: number().int().nonnegative(),
|
|
7668
6526
|
ok: literal(true),
|
|
7669
|
-
|
|
6527
|
+
reasonCode: runtimeTransportPreExecutionHandoffReasonCodeSchema,
|
|
6528
|
+
status: literal("waiting_for_recovery")
|
|
7670
6529
|
}),
|
|
7671
6530
|
strictObject({
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
6531
|
+
deadlineAtMs: number().int().nonnegative(),
|
|
6532
|
+
ok: literal(true),
|
|
6533
|
+
publishedSignalId: string().min(1),
|
|
6534
|
+
reasonCode: runtimeTransportPreExecutionHandoffReasonCodeSchema,
|
|
6535
|
+
resultRef: string().min(1),
|
|
6536
|
+
status: literal("failure_published")
|
|
7675
6537
|
}),
|
|
7676
6538
|
strictObject({
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
6539
|
+
deadlineAtMs: number().int().nonnegative(),
|
|
6540
|
+
nextPublicationRetryAtMs: number().int().nonnegative(),
|
|
6541
|
+
ok: literal(true),
|
|
6542
|
+
publicationErrorCode: string().min(1),
|
|
6543
|
+
reasonCode: runtimeTransportPreExecutionHandoffReasonCodeSchema,
|
|
6544
|
+
resultRef: string().min(1),
|
|
6545
|
+
status: literal("failure_publication_retry_scheduled")
|
|
6546
|
+
}),
|
|
6547
|
+
strictObject({
|
|
6548
|
+
deadlineAtMs: number().int().nonnegative(),
|
|
6549
|
+
ok: literal(true),
|
|
6550
|
+
reasonCode: runtimeTransportPreExecutionHandoffReasonCodeSchema,
|
|
6551
|
+
status: literal("handoff_recovered")
|
|
6552
|
+
}),
|
|
6553
|
+
strictObject({
|
|
6554
|
+
deadlineAtMs: number().int().nonnegative(),
|
|
6555
|
+
ok: literal(true),
|
|
6556
|
+
reasonCode: runtimeTransportPreExecutionHandoffReasonCodeSchema,
|
|
6557
|
+
status: literal("legacy_evidence_only")
|
|
7680
6558
|
}),
|
|
7681
6559
|
strictObject({
|
|
7682
6560
|
ok: literal(false),
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
})
|
|
7686
|
-
]);
|
|
7687
|
-
const runtimeTransportDispatchPreviewRequestSchema = strictObject({
|
|
7688
|
-
v: literal(1),
|
|
7689
|
-
dispatchId: string().min(1),
|
|
7690
|
-
attemptId: string().min(1),
|
|
7691
|
-
daemonSessionId: string().min(1),
|
|
7692
|
-
connectionGeneration: number().int().positive(),
|
|
7693
|
-
leaseEpoch: number().int().positive(),
|
|
7694
|
-
previewText: string().min(1).max(MAX_TEXT_LENGTH)
|
|
7695
|
-
});
|
|
7696
|
-
const runtimeTransportDispatchPreviewEndRequestSchema = strictObject({
|
|
7697
|
-
v: literal(1),
|
|
7698
|
-
dispatchId: string().min(1),
|
|
7699
|
-
attemptId: string().min(1),
|
|
7700
|
-
daemonSessionId: string().min(1),
|
|
7701
|
-
connectionGeneration: number().int().positive(),
|
|
7702
|
-
leaseEpoch: number().int().positive(),
|
|
7703
|
-
targetProfileName: string().min(1).max(64).optional()
|
|
7704
|
-
});
|
|
7705
|
-
const daemonStreamCodeSchema = enumFactory([
|
|
7706
|
-
"daemon.computer_file_access.read_policy",
|
|
7707
|
-
"daemon.computer_file_access.read_policy_result",
|
|
7708
|
-
"daemon.computer_file_access.update_policy",
|
|
7709
|
-
"daemon.computer_file_access.update_policy_result",
|
|
7710
|
-
"daemon.local_folder_picker.select_folders",
|
|
7711
|
-
"daemon.local_folder_picker.select_folders_result",
|
|
7712
|
-
"daemon.session.register",
|
|
7713
|
-
"daemon.session.heartbeat",
|
|
7714
|
-
"daemon.dispatch.deliver",
|
|
7715
|
-
"daemon.dispatch.lifecycle",
|
|
7716
|
-
"daemon.dispatch.runtime_evidence",
|
|
7717
|
-
"daemon.dispatch.tool_activity",
|
|
7718
|
-
"daemon.dispatch.reasoning",
|
|
7719
|
-
"daemon.reasoning.preferences",
|
|
7720
|
-
"daemon.dispatch.interaction_request",
|
|
7721
|
-
"daemon.dispatch.interaction_response",
|
|
7722
|
-
"daemon.dispatch.interaction_delivered",
|
|
7723
|
-
"daemon.dispatch.preview",
|
|
7724
|
-
"daemon.dispatch.preview_end",
|
|
7725
|
-
"daemon.dispatch.accepted",
|
|
7726
|
-
"daemon.dispatch.result",
|
|
7727
|
-
"daemon.route_catalog.changed",
|
|
7728
|
-
"daemon.local_agent_control.cancel",
|
|
7729
|
-
"daemon.local_agent_control.interrupt",
|
|
7730
|
-
"daemon.local_agent_control.fork_session",
|
|
7731
|
-
"daemon.local_agent_control.manage_installation",
|
|
7732
|
-
"daemon.local_agent_control.refresh_catalog",
|
|
7733
|
-
"daemon.local_agent_control.set_enabled",
|
|
7734
|
-
"daemon.local_agent_control.set_profile_workspace",
|
|
7735
|
-
"daemon.local_agent_control.result",
|
|
7736
|
-
"daemon.openmeld_tools_control.request",
|
|
7737
|
-
"daemon.openmeld_tools_control.result",
|
|
7738
|
-
"daemon.execution_recovery.resume_controller_conversation",
|
|
7739
|
-
"daemon.execution_recovery.resume_controller_conversation_result",
|
|
7740
|
-
"daemon.local_project_control.discover_projects",
|
|
7741
|
-
"daemon.local_project_control.discover_projects_result",
|
|
7742
|
-
"daemon.local_project_control.connect_candidate",
|
|
7743
|
-
"daemon.local_project_control.connect_candidate_result",
|
|
7744
|
-
"daemon.local_project_control.connect_declared_path",
|
|
7745
|
-
"daemon.local_project_control.connect_declared_path_result",
|
|
7746
|
-
"daemon.local_project_control.set_default_connection",
|
|
7747
|
-
"daemon.local_project_control.set_default_connection_result",
|
|
7748
|
-
"daemon.local_project_control.remove_connection",
|
|
7749
|
-
"daemon.local_project_control.remove_connection_result",
|
|
7750
|
-
"daemon.local_project_control.remove_missing_connections",
|
|
7751
|
-
"daemon.local_project_control.remove_missing_connections_result",
|
|
7752
|
-
"daemon.error"
|
|
7753
|
-
]);
|
|
7754
|
-
const daemonStreamFrameSchema = strictObject({
|
|
7755
|
-
v: literal(1),
|
|
7756
|
-
code: daemonStreamCodeSchema,
|
|
7757
|
-
payload: record(string(), unknown())
|
|
7758
|
-
});
|
|
7759
|
-
const daemonStreamErrorFrameCodeSchema = runtimeTransportErrorCodeSchema.or(union([literal("schema.invalid"), literal("schema.invalid.runtime_response")]));
|
|
7760
|
-
strictObject({
|
|
7761
|
-
v: literal(1),
|
|
7762
|
-
code: literal("daemon.error"),
|
|
7763
|
-
payload: strictObject({
|
|
7764
|
-
code: daemonStreamErrorFrameCodeSchema,
|
|
7765
|
-
message: string().min(1)
|
|
6561
|
+
reasonCode: string().min(1),
|
|
6562
|
+
status: literal("retry_later")
|
|
7766
6563
|
})
|
|
7767
|
-
});
|
|
7768
|
-
//#endregion
|
|
7769
|
-
//#region ../../packages/schemas/dist/schemas/daemon/reply-readiness.js
|
|
7770
|
-
const REPLY_READINESS_LEVEL_VALUES = [
|
|
7771
|
-
"blocked",
|
|
7772
|
-
"degraded",
|
|
7773
|
-
"ready",
|
|
7774
|
-
"unknown"
|
|
7775
|
-
];
|
|
7776
|
-
const REPLY_READINESS_REASON_CODE_VALUES = [
|
|
7777
|
-
"service.not_installed",
|
|
7778
|
-
"service.drifted",
|
|
7779
|
-
"service.not_running",
|
|
7780
|
-
"service.account_mismatch",
|
|
7781
|
-
"service.auth_missing",
|
|
7782
|
-
"service.auth_stale",
|
|
7783
|
-
"dispatch.storage_not_ready",
|
|
7784
|
-
"service.gateway_chain_unhealthy",
|
|
7785
|
-
"profile.not_selected",
|
|
7786
|
-
"profile.inactive",
|
|
7787
|
-
"profile.unbound",
|
|
7788
|
-
"controller.binding.disabled",
|
|
7789
|
-
"projection.missing",
|
|
7790
|
-
"controller.registry.disabled",
|
|
7791
|
-
"controller.launch.choice_required",
|
|
7792
|
-
"controller.launch.needs_repair",
|
|
7793
|
-
"workspace.missing",
|
|
7794
|
-
"workspace.invalid",
|
|
7795
|
-
"runtime.adapter.unsupported",
|
|
7796
|
-
"controller.bootstrap.failed",
|
|
7797
|
-
"controller.gateway.unhealthy",
|
|
7798
|
-
"local_agents.none_needed",
|
|
7799
|
-
"route.offline",
|
|
7800
|
-
"route.not_registered"
|
|
7801
|
-
];
|
|
7802
|
-
const replyReadinessLevelSchema = z$1.enum(REPLY_READINESS_LEVEL_VALUES);
|
|
7803
|
-
const replyReadinessReasonCodeSchema = z$1.enum(REPLY_READINESS_REASON_CODE_VALUES);
|
|
7804
|
-
//#endregion
|
|
7805
|
-
//#region ../../packages/schemas/dist/schemas/runtime/local-agent-catalog.js
|
|
7806
|
-
const LOCAL_AGENT_CATALOG_BOUNDED_ID_SCHEMA = z$1.string().trim().min(1).max(256);
|
|
7807
|
-
const LOCAL_AGENT_CATALOG_BOUNDED_LABEL_SCHEMA = z$1.string().trim().min(1).max(256);
|
|
7808
|
-
const localAgentCatalogTargetKindSchema = z$1.enum(["builtin", "custom"]);
|
|
7809
|
-
const localAgentCatalogLifecycleStatusSchema = z$1.enum(["active", "suspended"]);
|
|
7810
|
-
const localAgentCatalogSelectableReasonSchema = z$1.enum([
|
|
7811
|
-
"not_detected",
|
|
7812
|
-
"not_supported_yet",
|
|
7813
|
-
"needs_repair",
|
|
7814
|
-
"custom_coming_soon"
|
|
7815
6564
|
]);
|
|
7816
|
-
const
|
|
7817
|
-
"
|
|
7818
|
-
"
|
|
7819
|
-
"
|
|
7820
|
-
"not_available"
|
|
6565
|
+
const runtimeTransportDispatchLifecyclePhaseSchema = enumFactory([
|
|
6566
|
+
"accepted_local",
|
|
6567
|
+
"running",
|
|
6568
|
+
"completed_local"
|
|
7821
6569
|
]);
|
|
7822
|
-
const
|
|
7823
|
-
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
detected: z$1.boolean(),
|
|
7827
|
-
enabled: z$1.boolean(),
|
|
7828
|
-
launchStatus: localAgentCatalogLaunchStatusSchema,
|
|
7829
|
-
selectable: z$1.boolean(),
|
|
7830
|
-
selectableReason: z$1.union([localAgentCatalogSelectableReasonSchema, z$1.null()])
|
|
7831
|
-
};
|
|
7832
|
-
const localAgentCatalogEntrySchema = z$1.strictObject(localAgentCatalogEntryShape).superRefine(validateLocalAgentCatalogEntrySemantics);
|
|
7833
|
-
const localAgentCatalogEntryWithLifecycleSchema = z$1.strictObject({
|
|
7834
|
-
...localAgentCatalogEntryShape,
|
|
7835
|
-
lifecycleStatus: localAgentCatalogLifecycleStatusSchema.default("active")
|
|
7836
|
-
}).superRefine(validateLocalAgentCatalogEntrySemantics);
|
|
7837
|
-
const localAgentCatalogSchema = createLocalAgentCatalogSchema(localAgentCatalogEntrySchema);
|
|
7838
|
-
const localAgentCatalogWithLifecycleSchema = createLocalAgentCatalogSchema(localAgentCatalogEntryWithLifecycleSchema);
|
|
7839
|
-
function createLocalAgentCatalogSchema(entrySchema) {
|
|
7840
|
-
return z$1.strictObject({
|
|
7841
|
-
totalBuiltins: z$1.number().int().min(0),
|
|
7842
|
-
detectedSupported: z$1.number().int().min(0),
|
|
7843
|
-
needsChoice: z$1.number().int().min(0),
|
|
7844
|
-
needsRepair: z$1.number().int().min(0),
|
|
7845
|
-
detectedNotSupportedYet: z$1.number().int().min(0),
|
|
7846
|
-
notDetected: z$1.number().int().min(0),
|
|
7847
|
-
entries: z$1.array(entrySchema)
|
|
7848
|
-
}).superRefine(validateLocalAgentCatalogSummary);
|
|
7849
|
-
}
|
|
7850
|
-
function validateLocalAgentCatalogEntrySemantics(value, ctx) {
|
|
7851
|
-
if (value.selectable && value.selectableReason !== null) ctx.addIssue({
|
|
7852
|
-
code: "custom",
|
|
7853
|
-
message: "selectableReason must be null when selectable is true",
|
|
7854
|
-
path: ["selectableReason"]
|
|
7855
|
-
});
|
|
7856
|
-
if (!value.selectable && value.selectableReason === null) ctx.addIssue({
|
|
7857
|
-
code: "custom",
|
|
7858
|
-
message: "selectableReason must be present when selectable is false",
|
|
7859
|
-
path: ["selectableReason"]
|
|
7860
|
-
});
|
|
7861
|
-
if (value.launchStatus === "needs_choice" && !(value.detected && value.targetKind === "builtin" && value.selectable)) ctx.addIssue({
|
|
7862
|
-
code: "custom",
|
|
7863
|
-
message: "needs_choice launchStatus only applies to detected selectable builtin entries",
|
|
7864
|
-
path: ["launchStatus"]
|
|
7865
|
-
});
|
|
7866
|
-
if (value.launchStatus === "needs_repair" && !(value.detected && value.enabled && value.targetKind === "builtin" && value.selectable && value.selectableReason === null)) ctx.addIssue({
|
|
7867
|
-
code: "custom",
|
|
7868
|
-
message: "needs_repair launchStatus only applies to detected selectable builtin entries",
|
|
7869
|
-
path: ["launchStatus"]
|
|
7870
|
-
});
|
|
7871
|
-
if (value.selectableReason === "not_detected" && value.detected) ctx.addIssue({
|
|
7872
|
-
code: "custom",
|
|
7873
|
-
message: "not_detected selectableReason requires detected to be false",
|
|
7874
|
-
path: ["detected"]
|
|
7875
|
-
});
|
|
7876
|
-
if (value.selectableReason === "not_supported_yet" && (!value.detected || value.targetKind !== "builtin")) ctx.addIssue({
|
|
7877
|
-
code: "custom",
|
|
7878
|
-
message: "not_supported_yet selectableReason only applies to detected builtin entries",
|
|
7879
|
-
path: ["selectableReason"]
|
|
7880
|
-
});
|
|
7881
|
-
if (value.selectableReason === "needs_repair" && (!value.detected || value.targetKind !== "builtin")) ctx.addIssue({
|
|
7882
|
-
code: "custom",
|
|
7883
|
-
message: "needs_repair selectableReason only applies to detected builtin entries",
|
|
7884
|
-
path: ["selectableReason"]
|
|
7885
|
-
});
|
|
7886
|
-
if (value.selectableReason === "custom_coming_soon" && value.targetKind !== "custom") ctx.addIssue({
|
|
7887
|
-
code: "custom",
|
|
7888
|
-
message: "custom_coming_soon selectableReason only applies to custom entries",
|
|
7889
|
-
path: ["selectableReason"]
|
|
7890
|
-
});
|
|
7891
|
-
}
|
|
7892
|
-
function validateLocalAgentCatalogSummary(value, ctx) {
|
|
7893
|
-
const builtinEntries = value.entries.filter((entry) => entry.targetKind === "builtin");
|
|
7894
|
-
const detectedSupported = builtinEntries.filter((entry) => entry.detected && entry.launchStatus === "ready").length;
|
|
7895
|
-
const needsChoice = builtinEntries.filter((entry) => entry.detected && entry.launchStatus === "needs_choice").length;
|
|
7896
|
-
const detectedNotSupportedYet = builtinEntries.filter((entry) => entry.detected && entry.launchStatus === "not_available" && entry.selectableReason === "not_supported_yet").length;
|
|
7897
|
-
const needsRepair = builtinEntries.filter((entry) => entry.detected && entry.launchStatus === "needs_repair").length;
|
|
7898
|
-
const notDetected = builtinEntries.filter((entry) => !entry.detected).length;
|
|
7899
|
-
const expectations = [
|
|
7900
|
-
{
|
|
7901
|
-
actual: builtinEntries.length,
|
|
7902
|
-
expected: value.totalBuiltins,
|
|
7903
|
-
label: "totalBuiltins",
|
|
7904
|
-
path: ["totalBuiltins"]
|
|
7905
|
-
},
|
|
7906
|
-
{
|
|
7907
|
-
actual: detectedSupported,
|
|
7908
|
-
expected: value.detectedSupported,
|
|
7909
|
-
label: "detectedSupported",
|
|
7910
|
-
path: ["detectedSupported"]
|
|
7911
|
-
},
|
|
7912
|
-
{
|
|
7913
|
-
actual: needsChoice,
|
|
7914
|
-
expected: value.needsChoice,
|
|
7915
|
-
label: "needsChoice",
|
|
7916
|
-
path: ["needsChoice"]
|
|
7917
|
-
},
|
|
7918
|
-
{
|
|
7919
|
-
actual: detectedNotSupportedYet,
|
|
7920
|
-
expected: value.detectedNotSupportedYet,
|
|
7921
|
-
label: "detectedNotSupportedYet",
|
|
7922
|
-
path: ["detectedNotSupportedYet"]
|
|
7923
|
-
},
|
|
7924
|
-
{
|
|
7925
|
-
actual: needsRepair,
|
|
7926
|
-
expected: value.needsRepair,
|
|
7927
|
-
label: "needsRepair",
|
|
7928
|
-
path: ["needsRepair"]
|
|
7929
|
-
},
|
|
7930
|
-
{
|
|
7931
|
-
actual: notDetected,
|
|
7932
|
-
expected: value.notDetected,
|
|
7933
|
-
label: "notDetected",
|
|
7934
|
-
path: ["notDetected"]
|
|
7935
|
-
}
|
|
7936
|
-
];
|
|
7937
|
-
for (const expectation of expectations) {
|
|
7938
|
-
if (expectation.actual === expectation.expected) continue;
|
|
7939
|
-
ctx.addIssue({
|
|
7940
|
-
code: "custom",
|
|
7941
|
-
message: `${expectation.label} must match the builtin entry summary`,
|
|
7942
|
-
path: expectation.path
|
|
7943
|
-
});
|
|
7944
|
-
}
|
|
7945
|
-
}
|
|
7946
|
-
//#endregion
|
|
7947
|
-
//#region ../../packages/schemas/dist/schemas/start/shared.js
|
|
7948
|
-
const START_ISO_DATE_TIME_SCHEMA = z$1.iso.datetime({ offset: true });
|
|
7949
|
-
const START_TRIMMED_NON_EMPTY_STRING_SCHEMA = z$1.string().trim().min(1);
|
|
7950
|
-
const START_BOUNDED_ID_SCHEMA = START_TRIMMED_NON_EMPTY_STRING_SCHEMA.max(256);
|
|
7951
|
-
START_TRIMMED_NON_EMPTY_STRING_SCHEMA.max(256);
|
|
7952
|
-
const START_BOUNDED_VERSION_SCHEMA = START_TRIMMED_NON_EMPTY_STRING_SCHEMA.max(128);
|
|
7953
|
-
z$1.union([START_ISO_DATE_TIME_SCHEMA, z$1.null()]);
|
|
7954
|
-
const startReplyReadinessSummarySchema = z$1.strictObject({
|
|
7955
|
-
level: replyReadinessLevelSchema,
|
|
7956
|
-
reasonCodes: z$1.array(replyReadinessReasonCodeSchema)
|
|
6570
|
+
const runtimeTransportAgentControllerConversationOccupancySchema = strictObject({
|
|
6571
|
+
agentControllerConversationId: string().trim().min(1),
|
|
6572
|
+
contractVersion: literal(1),
|
|
6573
|
+
state: enumFactory(["available", "occupied"])
|
|
7957
6574
|
});
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
const profileErrorStatusSchema = union([
|
|
7964
|
-
literal(400),
|
|
7965
|
-
literal(404),
|
|
7966
|
-
literal(409),
|
|
7967
|
-
literal(500)
|
|
6575
|
+
const runtimeTransportDispatchLocalQueueWaitReasonSchema = enumFactory([
|
|
6576
|
+
"agent_controller_maintenance",
|
|
6577
|
+
"global_concurrency",
|
|
6578
|
+
"local_execution_lane_concurrency",
|
|
6579
|
+
"none"
|
|
7968
6580
|
]);
|
|
7969
|
-
const
|
|
7970
|
-
|
|
7971
|
-
|
|
7972
|
-
|
|
6581
|
+
const runtimeTransportDispatchLocalQueueDiagnosticsSchema = strictObject({
|
|
6582
|
+
activeForLane: number().int().nonnegative(),
|
|
6583
|
+
activeGlobal: number().int().nonnegative(),
|
|
6584
|
+
globalConcurrency: number().int().positive(),
|
|
6585
|
+
queueDepth: number().int().nonnegative(),
|
|
6586
|
+
queueMax: number().int().positive(),
|
|
6587
|
+
queuePosition: union([number().int().positive(), nullFactory()]),
|
|
6588
|
+
status: enumFactory(["queued", "starting_runtime"]),
|
|
6589
|
+
waitReason: runtimeTransportDispatchLocalQueueWaitReasonSchema
|
|
7973
6590
|
});
|
|
7974
|
-
|
|
7975
|
-
|
|
7976
|
-
|
|
7977
|
-
|
|
7978
|
-
|
|
7979
|
-
|
|
7980
|
-
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
|
|
7986
|
-
|
|
7987
|
-
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
|
|
7994
|
-
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
|
|
7998
|
-
|
|
7999
|
-
|
|
8000
|
-
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8009
|
-
|
|
6591
|
+
const runtimeTransportDispatchLifecycleRequestSchema = strictObject({
|
|
6592
|
+
v: literal(1),
|
|
6593
|
+
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.optional(),
|
|
6594
|
+
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema.optional(),
|
|
6595
|
+
dispatchId: string().min(1),
|
|
6596
|
+
attemptId: string().min(1),
|
|
6597
|
+
daemonSessionId: string().min(1),
|
|
6598
|
+
connectionGeneration: number().int().positive(),
|
|
6599
|
+
leaseEpoch: number().int().positive(),
|
|
6600
|
+
phase: runtimeTransportDispatchLifecyclePhaseSchema,
|
|
6601
|
+
lifecycleAtMs: number().int().nonnegative(),
|
|
6602
|
+
agentControllerConversationOccupancy: runtimeTransportAgentControllerConversationOccupancySchema.optional(),
|
|
6603
|
+
localQueue: runtimeTransportDispatchLocalQueueDiagnosticsSchema.optional()
|
|
6604
|
+
});
|
|
6605
|
+
const runtimeTransportDispatchRuntimeEvidencePhaseSchema = enumFactory([
|
|
6606
|
+
"received",
|
|
6607
|
+
"claimed",
|
|
6608
|
+
"runtime_started",
|
|
6609
|
+
"first_output",
|
|
6610
|
+
"completed",
|
|
6611
|
+
"failed"
|
|
6612
|
+
]);
|
|
6613
|
+
const runtimeTransportDispatchRuntimeEvidenceRequestSchema = strictObject({
|
|
6614
|
+
v: literal(1),
|
|
6615
|
+
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.optional(),
|
|
6616
|
+
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema.optional(),
|
|
6617
|
+
dispatchId: string().min(1),
|
|
6618
|
+
attemptId: string().min(1),
|
|
6619
|
+
executionIdentityEcho: runtimeTransportRuntimeEvidenceIdentityEchoSchema,
|
|
6620
|
+
daemonSessionId: string().min(1),
|
|
6621
|
+
connectionGeneration: number().int().positive(),
|
|
6622
|
+
leaseEpoch: number().int().positive(),
|
|
6623
|
+
phase: runtimeTransportDispatchRuntimeEvidencePhaseSchema,
|
|
6624
|
+
evidenceAtMs: number().int().nonnegative(),
|
|
6625
|
+
taskId: string().min(1),
|
|
6626
|
+
spaceId: string().min(1),
|
|
6627
|
+
sourceSignalId: string().min(1),
|
|
6628
|
+
sourceClientMessageId: string().min(1).max(200).nullable().optional(),
|
|
6629
|
+
targetProfileId: string().min(1),
|
|
6630
|
+
claimLeaseId: string().min(1).optional(),
|
|
6631
|
+
durationMs: number().finite().nonnegative().optional(),
|
|
6632
|
+
reasonCode: string().trim().min(1).max(160).optional(),
|
|
6633
|
+
errorName: string().trim().min(1).max(160).optional()
|
|
6634
|
+
});
|
|
6635
|
+
const localAgentToolActivityNameSchema = enumFactory([
|
|
6636
|
+
"agent_run_command",
|
|
6637
|
+
"agent_read_files",
|
|
6638
|
+
"agent_edit_files",
|
|
6639
|
+
"agent_search_files",
|
|
6640
|
+
"agent_search_web",
|
|
6641
|
+
"agent_open_webpage",
|
|
6642
|
+
"agent_delegate_task",
|
|
6643
|
+
"agent_work_with_image",
|
|
6644
|
+
"agent_use_tool"
|
|
6645
|
+
]);
|
|
6646
|
+
const localAgentStreamToolPartSchema = agentStreamToolPartSchema.extend({ toolName: localAgentToolActivityNameSchema });
|
|
6647
|
+
const runtimeTransportDispatchToolActivityRequestSchema = strictObject({
|
|
6648
|
+
v: literal(1),
|
|
6649
|
+
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.optional(),
|
|
6650
|
+
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema.optional(),
|
|
6651
|
+
dispatchId: string().min(1),
|
|
6652
|
+
attemptId: string().min(1),
|
|
6653
|
+
executionIdentityEcho: runtimeTransportRuntimeEvidenceIdentityEchoSchema,
|
|
6654
|
+
daemonSessionId: string().min(1),
|
|
6655
|
+
connectionGeneration: number().int().positive(),
|
|
6656
|
+
leaseEpoch: number().int().positive(),
|
|
6657
|
+
sequence: number().int().positive(),
|
|
6658
|
+
observedAtMs: number().int().nonnegative(),
|
|
6659
|
+
taskId: string().min(1),
|
|
6660
|
+
spaceId: string().min(1),
|
|
6661
|
+
sourceSignalId: string().min(1),
|
|
6662
|
+
targetProfileId: string().min(1),
|
|
6663
|
+
part: localAgentStreamToolPartSchema
|
|
8010
6664
|
});
|
|
8011
|
-
const
|
|
8012
|
-
|
|
8013
|
-
|
|
6665
|
+
const runtimeTransportDispatchReasoningRequestSchema = runtimeTransportDispatchToolActivityRequestSchema.omit({ part: true }).extend({
|
|
6666
|
+
thinkingSnapshot: string().max(LOCAL_AGENT_REASONING_MAX_CHARS),
|
|
6667
|
+
reasoningState: localAgentReasoningStateSchema
|
|
8014
6668
|
});
|
|
8015
|
-
const
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
6669
|
+
const runtimeTransportDispatchInteractionRequestSchema = strictObject({
|
|
6670
|
+
v: literal(1),
|
|
6671
|
+
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId,
|
|
6672
|
+
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema,
|
|
6673
|
+
dispatchId: string().min(1),
|
|
6674
|
+
attemptId: string().min(1),
|
|
6675
|
+
executionIdentityEcho: runtimeTransportRuntimeEvidenceIdentityEchoSchema,
|
|
6676
|
+
daemonSessionId: string().min(1),
|
|
6677
|
+
connectionGeneration: number().int().positive(),
|
|
6678
|
+
leaseEpoch: number().int().positive(),
|
|
6679
|
+
taskId: string().min(1),
|
|
6680
|
+
interaction: agentInteractionRequestSchema
|
|
8020
6681
|
});
|
|
8021
|
-
strictObject({
|
|
8022
|
-
|
|
8023
|
-
|
|
6682
|
+
const runtimeTransportDispatchInteractionResponseFramePayloadSchema = strictObject({
|
|
6683
|
+
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId,
|
|
6684
|
+
dispatchId: string().min(1),
|
|
6685
|
+
attemptId: string().min(1),
|
|
6686
|
+
interactionId: string().trim().min(1).max(256),
|
|
6687
|
+
response: agentInteractionResponseSchema,
|
|
6688
|
+
respondedAtMs: number().int().nonnegative()
|
|
8024
6689
|
});
|
|
8025
|
-
strictObject({
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
6690
|
+
const runtimeTransportDispatchInteractionDeliveredRequestSchema = strictObject({
|
|
6691
|
+
v: literal(1),
|
|
6692
|
+
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId,
|
|
6693
|
+
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema,
|
|
6694
|
+
dispatchId: string().min(1),
|
|
6695
|
+
attemptId: string().min(1),
|
|
6696
|
+
executionIdentityEcho: runtimeTransportRuntimeEvidenceIdentityEchoSchema,
|
|
6697
|
+
daemonSessionId: string().min(1),
|
|
6698
|
+
connectionGeneration: number().int().positive(),
|
|
6699
|
+
leaseEpoch: number().int().positive(),
|
|
6700
|
+
interactionId: string().trim().min(1).max(256),
|
|
6701
|
+
deliveredAtMs: number().int().nonnegative()
|
|
8029
6702
|
});
|
|
8030
6703
|
strictObject({
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
6704
|
+
v: literal(1),
|
|
6705
|
+
actorOwnerUserId: string().min(1),
|
|
6706
|
+
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId
|
|
8034
6707
|
});
|
|
6708
|
+
strictObject({ pendingInteraction: agentInteractionPendingSummarySchema.nullable() });
|
|
8035
6709
|
strictObject({
|
|
8036
|
-
|
|
8037
|
-
|
|
8038
|
-
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
additionalHumanProfileCreationEnabled: boolean()
|
|
6710
|
+
v: literal(1),
|
|
6711
|
+
actorOwnerUserId: string().min(1),
|
|
6712
|
+
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId,
|
|
6713
|
+
interactionId: string().trim().min(1).max(256),
|
|
6714
|
+
response: agentInteractionResponseSchema
|
|
8042
6715
|
});
|
|
8043
|
-
strictObject({
|
|
6716
|
+
const runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema = discriminatedUnion("status", [strictObject({
|
|
8044
6717
|
ok: literal(true),
|
|
8045
|
-
|
|
6718
|
+
status: enumFactory(["accepted", "already_resolved"]),
|
|
6719
|
+
respondedAtMs: number().int().nonnegative()
|
|
6720
|
+
}), strictObject({
|
|
6721
|
+
ok: literal(false),
|
|
6722
|
+
status: enumFactory([
|
|
6723
|
+
"expired",
|
|
6724
|
+
"interaction_mismatch",
|
|
6725
|
+
"not_found",
|
|
6726
|
+
"owner_mismatch",
|
|
6727
|
+
"response_invalid",
|
|
6728
|
+
"retry_later"
|
|
6729
|
+
]),
|
|
6730
|
+
message: string().trim().min(1).max(1e3)
|
|
6731
|
+
})]);
|
|
6732
|
+
const nullableLifecyclePhaseTimestampSchema = union([number().int().nonnegative(), nullFactory()]);
|
|
6733
|
+
const runtimeTransportDispatchLifecycleSnapshotSchema = strictObject({
|
|
6734
|
+
phase: enumFactory([
|
|
6735
|
+
"starting",
|
|
6736
|
+
"accepted_local",
|
|
6737
|
+
"running",
|
|
6738
|
+
"completed_local",
|
|
6739
|
+
"result_received"
|
|
6740
|
+
]),
|
|
6741
|
+
createdAtMs: number().int().nonnegative(),
|
|
6742
|
+
acceptedLocalAtMs: nullableLifecyclePhaseTimestampSchema,
|
|
6743
|
+
runningAtMs: nullableLifecyclePhaseTimestampSchema,
|
|
6744
|
+
completedLocalAtMs: nullableLifecyclePhaseTimestampSchema,
|
|
6745
|
+
lastLifecycleAtMs: number().int().nonnegative()
|
|
8046
6746
|
});
|
|
8047
|
-
|
|
8048
|
-
|
|
8049
|
-
|
|
6747
|
+
discriminatedUnion("state", [
|
|
6748
|
+
strictObject({
|
|
6749
|
+
state: literal("completed"),
|
|
6750
|
+
lifecycle: runtimeTransportDispatchLifecycleSnapshotSchema.optional(),
|
|
6751
|
+
taskResult: openMeldDaemonTaskResultEnvelopeSchema
|
|
6752
|
+
}),
|
|
6753
|
+
strictObject({
|
|
6754
|
+
state: literal("pending"),
|
|
6755
|
+
lifecycle: runtimeTransportDispatchLifecycleSnapshotSchema
|
|
6756
|
+
}),
|
|
6757
|
+
strictObject({
|
|
6758
|
+
state: literal("failed"),
|
|
6759
|
+
lifecycle: runtimeTransportDispatchLifecycleSnapshotSchema.optional(),
|
|
6760
|
+
reasonCode: runtimeTransportErrorCodeSchema
|
|
6761
|
+
})
|
|
6762
|
+
]);
|
|
6763
|
+
const runtimeTransportSubmitTaskResultRequestSchema = strictObject({
|
|
6764
|
+
v: literal(1),
|
|
6765
|
+
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.optional(),
|
|
6766
|
+
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema.optional(),
|
|
6767
|
+
dispatchId: string().min(1),
|
|
6768
|
+
attemptId: string().min(1).optional(),
|
|
6769
|
+
executionIdentityEcho: runtimeTransportResultIdentityEchoSchema,
|
|
6770
|
+
daemonSessionId: string().min(1),
|
|
6771
|
+
connectionGeneration: number().int().positive(),
|
|
6772
|
+
leaseEpoch: number().int().positive(),
|
|
6773
|
+
taskResult: openMeldDaemonTaskResultEnvelopeSchema
|
|
8050
6774
|
});
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
|
|
6775
|
+
discriminatedUnion("status", [
|
|
6776
|
+
strictObject({
|
|
6777
|
+
ok: literal(true),
|
|
6778
|
+
status: literal("accepted")
|
|
6779
|
+
}),
|
|
6780
|
+
strictObject({
|
|
6781
|
+
ok: literal(false),
|
|
6782
|
+
status: literal("review_required"),
|
|
6783
|
+
reasonCode: literal("space.agent_reply.context_changed")
|
|
6784
|
+
}),
|
|
6785
|
+
strictObject({
|
|
6786
|
+
ok: literal(false),
|
|
6787
|
+
status: literal("retry_later"),
|
|
6788
|
+
reasonCode: runtimeTransportErrorCodeSchema
|
|
6789
|
+
}),
|
|
6790
|
+
strictObject({
|
|
6791
|
+
ok: literal(false),
|
|
6792
|
+
status: literal("rejected_terminal"),
|
|
6793
|
+
reasonCode: runtimeTransportErrorCodeSchema
|
|
6794
|
+
})
|
|
6795
|
+
]);
|
|
6796
|
+
const runtimeTransportDispatchPreviewRequestSchema = strictObject({
|
|
6797
|
+
v: literal(1),
|
|
6798
|
+
dispatchId: string().min(1),
|
|
6799
|
+
attemptId: string().min(1),
|
|
6800
|
+
daemonSessionId: string().min(1),
|
|
6801
|
+
connectionGeneration: number().int().positive(),
|
|
6802
|
+
leaseEpoch: number().int().positive(),
|
|
6803
|
+
previewText: string().min(1).max(MAX_TEXT_LENGTH)
|
|
8054
6804
|
});
|
|
8055
|
-
strictObject({
|
|
8056
|
-
|
|
8057
|
-
|
|
6805
|
+
const runtimeTransportDispatchPreviewEndRequestSchema = strictObject({
|
|
6806
|
+
v: literal(1),
|
|
6807
|
+
dispatchId: string().min(1),
|
|
6808
|
+
attemptId: string().min(1),
|
|
6809
|
+
daemonSessionId: string().min(1),
|
|
6810
|
+
connectionGeneration: number().int().positive(),
|
|
6811
|
+
leaseEpoch: number().int().positive(),
|
|
6812
|
+
targetProfileName: string().min(1).max(64).optional()
|
|
8058
6813
|
});
|
|
8059
|
-
const
|
|
8060
|
-
|
|
8061
|
-
|
|
6814
|
+
const daemonStreamCodeSchema = enumFactory([
|
|
6815
|
+
"daemon.computer_file_access.read_policy",
|
|
6816
|
+
"daemon.computer_file_access.read_policy_result",
|
|
6817
|
+
"daemon.computer_file_access.update_policy",
|
|
6818
|
+
"daemon.computer_file_access.update_policy_result",
|
|
6819
|
+
"daemon.local_folder_picker.select_folders",
|
|
6820
|
+
"daemon.local_folder_picker.select_folders_result",
|
|
6821
|
+
"daemon.session.register",
|
|
6822
|
+
"daemon.session.heartbeat",
|
|
6823
|
+
"daemon.dispatch.deliver",
|
|
6824
|
+
"daemon.dispatch.lifecycle",
|
|
6825
|
+
"daemon.dispatch.runtime_evidence",
|
|
6826
|
+
"daemon.dispatch.tool_activity",
|
|
6827
|
+
"daemon.dispatch.reasoning",
|
|
6828
|
+
"daemon.reasoning.preferences",
|
|
6829
|
+
"daemon.dispatch.interaction_request",
|
|
6830
|
+
"daemon.dispatch.interaction_response",
|
|
6831
|
+
"daemon.dispatch.interaction_delivered",
|
|
6832
|
+
"daemon.dispatch.preview",
|
|
6833
|
+
"daemon.dispatch.preview_end",
|
|
6834
|
+
"daemon.dispatch.accepted",
|
|
6835
|
+
"daemon.dispatch.result",
|
|
6836
|
+
"daemon.route_catalog.changed",
|
|
6837
|
+
"daemon.local_agent_control.cancel",
|
|
6838
|
+
"daemon.local_agent_control.interrupt",
|
|
6839
|
+
"daemon.local_agent_control.fork_session",
|
|
6840
|
+
"daemon.local_agent_control.manage_installation",
|
|
6841
|
+
"daemon.local_agent_control.refresh_catalog",
|
|
6842
|
+
"daemon.local_agent_control.set_enabled",
|
|
6843
|
+
"daemon.local_agent_control.set_profile_workspace",
|
|
6844
|
+
"daemon.local_agent_control.result",
|
|
6845
|
+
"daemon.openmeld_tools_control.request",
|
|
6846
|
+
"daemon.openmeld_tools_control.result",
|
|
6847
|
+
"daemon.execution_recovery.resume_controller_conversation",
|
|
6848
|
+
"daemon.execution_recovery.resume_controller_conversation_result",
|
|
6849
|
+
"daemon.local_project_control.discover_projects",
|
|
6850
|
+
"daemon.local_project_control.discover_projects_result",
|
|
6851
|
+
"daemon.local_project_control.connect_candidate",
|
|
6852
|
+
"daemon.local_project_control.connect_candidate_result",
|
|
6853
|
+
"daemon.local_project_control.connect_declared_path",
|
|
6854
|
+
"daemon.local_project_control.connect_declared_path_result",
|
|
6855
|
+
"daemon.local_project_control.set_default_connection",
|
|
6856
|
+
"daemon.local_project_control.set_default_connection_result",
|
|
6857
|
+
"daemon.local_project_control.remove_connection",
|
|
6858
|
+
"daemon.local_project_control.remove_connection_result",
|
|
6859
|
+
"daemon.local_project_control.remove_missing_connections",
|
|
6860
|
+
"daemon.local_project_control.remove_missing_connections_result",
|
|
6861
|
+
"daemon.error"
|
|
6862
|
+
]);
|
|
6863
|
+
const daemonStreamFrameSchema = strictObject({
|
|
6864
|
+
v: literal(1),
|
|
6865
|
+
code: daemonStreamCodeSchema,
|
|
6866
|
+
payload: record(string(), unknown())
|
|
8062
6867
|
});
|
|
8063
|
-
const
|
|
6868
|
+
const daemonStreamErrorFrameCodeSchema = runtimeTransportErrorCodeSchema.or(union([literal("schema.invalid"), literal("schema.invalid.runtime_response")]));
|
|
8064
6869
|
strictObject({
|
|
8065
|
-
|
|
8066
|
-
|
|
6870
|
+
v: literal(1),
|
|
6871
|
+
code: literal("daemon.error"),
|
|
6872
|
+
payload: strictObject({
|
|
6873
|
+
code: daemonStreamErrorFrameCodeSchema,
|
|
6874
|
+
message: string().min(1)
|
|
6875
|
+
})
|
|
8067
6876
|
});
|
|
8068
6877
|
//#endregion
|
|
8069
|
-
export { runtimeTransportResumeControllerConversationResultFramePayloadSchema as $, computerSetupModeSchema as $i, spaceAttachmentFileNameSchema as $n, int as $r, localComponentUpdateStatusSchema as $t, runtimeTransportDispatchPreviewEndRequestSchema as A, spaceThreadContextSchema as Ai, localFolderPickerHelperResultSchema as An, restoreSpaceFileEntryResponseSchema as Ar, dispatchExecutionSchema as At, runtimeTransportLocalAgentControlForkSessionFramePayloadSchema as B, profileWorkingDirectorySchema as Bi, DISPATCH_ACTIVITY_FAILED_PURPOSE as Bn, spaceFileRevisionNumberSchema as Br, AGENT_INTERACTION_DEFAULT_TIMEOUT_MS as Bt, localWakeRouteWorkingFolderObservationSchema as C, spaceAgentStreamSnapshotSchema as Ci, executeExecutionRecoveryResponseSchema as Cn, getSpaceFileResponseSchema as Cr, localAgentInstallationOptionSchema as Ct, runtimeTransportDispatchInteractionRequestSchema as D, localAgentReasoningPreferencesSchema as Di, OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER as Dn, publishSpaceComposerUploadResponseSchema as Dr, skippedDaemonProfileSchema as Dt, runtimeTransportDispatchInteractionDeliveredRequestSchema as E, OPENMELD_REASONING_STREAM_HEADER as Ei, LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY as En, listSpaceFilesResponseSchema as Er, openMeldDaemonSyncRouteCatalogPayloadSchema as Et, runtimeTransportErrorCodeSchema as F, agentProfileIdSchema as Fi, AGENT_REPLYING_PURPOSE as Fn, spaceFileClientMutationIdSchema as Fr, spacePublicationModeSchema as Ft, runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema as G, optionalBooleanQuerySchema as Gi, sanitizeSignalTextPreview as Gn, uploadSpaceFileResponseSchema as Gr, formatLocalComponentsSummaryDescription as Gt, runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema as H, uuidProfileIdSchema as Hi, SPACE_MEMBER_JOIN_NOTICE_PURPOSE as Hn, stageSpaceComposerUploadResponseSchema as Hr, agentInteractionRequestSchema as Ht, runtimeTransportForkAgentSessionResultSchema as I, normalizeOptionalWorkingDirectory as Ii, AGENT_REPLY_PREVIEW_END_PURPOSE as In, spaceFileDescriptorSchema as Ir, spaceDispatchPolicySchema as It, runtimeTransportOpenMeldToolsControlResultFramePayloadSchema as J, resolveMappedPublicAgentFailureReason as Ji, signalTextDataSchema as Jn, boolean as Jr, formatLocalSetupActionLabel as Jt, runtimeTransportLookupRouteOwnerServiceEvidenceSchema as K, trimmedStringFromUnknown as Ki, signalStatusDataSchema as Kn, NEVER as Kr, formatLocalComponentsSummaryLabel as Kt, runtimeTransportHeartbeatRequestSchema as L, openMeldRuntimeProfileIdSchema as Li, AGENT_REPLY_PREVIEW_PURPOSE as Ln, spaceFileEntryIdSchema as Lr, workingLanguageGuidanceSchema as Lt, runtimeTransportDispatchReasoningRequestSchema as M, spaceThreadSchema as Mi, localFolderPickerResultSchema as Mn, spaceComposerUploadDescriptorSchema as Mr, spaceContractSchema as Mt, runtimeTransportDispatchRuntimeEvidenceRequestSchema as N, spaceThreadSignalPlacementSchema as Ni, localFolderPathSchema as Nn, spaceComposerUploadIdSchema as Nr, resultArchivePolicySchema as Nt, runtimeTransportDispatchInteractionResponseFramePayloadSchema as O, openMeldProfileIdSchema as Oi, localFolderPickerDaemonFrameSchema as On, readSpaceFileTextResponseSchema as Or, providerDispatchRuntimeContextSchema as Ot, runtimeTransportDispatchToolActivityRequestSchema as P, MAX_PROFILE_WORKING_DIRECTORY_LENGTH as Pi, AGENT_REPLYING_END_PURPOSE as Pn, spaceFileActorSchema as Pr, spaceAllowedActionsSchema as Pt, runtimeTransportResumeControllerConversationFramePayloadSchema as Q, shouldPreferMappedPublicAgentFailureReason as Qi, spaceAttachmentDimensionSchema as Qn, enumFactory as Qr, localComponentUpdateProjectionSchema as Qt, runtimeTransportHeartbeatResponseSchema as R, profileKindSchema as Ri, CONVERSATION_CONTINUITY_WARNING_PURPOSE as Rn, spaceFileMimeTypeSchema as Rr, workingLanguageTagSchema as Rt, localWakeRouteReportSchema as S, spaceAgentStreamPresenceSchema as Si, executeExecutionRecoveryBodySchema as Sn, discardSpaceComposerUploadResponseSchema as Sr, spaceWakeAgentTaskHandleSchema as St, runtimeTransportDeliverDispatchRequestSchema as T, LOCAL_AGENT_REASONING_MAX_CHARS as Ti, agentProfileWorkRecoveryActionKindSchema as Tn, listSpaceFileRevisionsResponseSchema as Tr, openMeldDaemonControlPlaneResponseSchema as Tt, runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema as U, finiteIntegerNumber as Ui, SPACE_MEMBER_REMOVE_NOTICE_PURPOSE as Un, trashSpaceFileEntryResponseSchema as Ur, agentInteractionResolutionSchema as Ut, runtimeTransportLocalAgentControlInterruptFramePayloadSchema as V, profileWorkspaceModeSchema as Vi, DISPATCH_ACTIVITY_RETRYING_PURPOSE as Vn, spaceMessageFileReferencesSchema as Vr, agentInteractionPendingSummarySchema as Vt, runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema as W, nonEmptyTrimmedStringFromUnknown as Wi, SPACE_MENTION_REJECT_NOTICE_PURPOSE as Wn, updateSpaceFileEntryResponseSchema as Wr, agentInteractionResponseSchema as Wt, runtimeTransportRegisterSessionResponseSchema as X, resolvePublicAgentFailureRecovery as Xi, wakeDeviceWaitTargetSchema as Xn, discriminatedUnion as Xr, localCliComponentUpdateProjectionSchema as Xt, runtimeTransportRegisterSessionRequestSchema as Y, resolvePublicAgentAvailabilityCopy as Yi, signalTextSchema as Yn, coerce as Yr, installedLocalComponentsSnapshotSchema as Yt, runtimeTransportRejectedProfileRegistrationSchema as Z, sanitizeDispatchErrorSummary as Zi, spaceAttachmentDescriptorSchema as Zn, email as Zr, localComponentUpdatePolicySchema as Zt, localAgentCatalogSchema as _, parseOptionalClientMessageId as _i, normalizeSpacePasswordText as _n, spaceMentionLabelSourceSchema as _r, agentTaskHandleSchema as _t, authProfileViewSchema as a, number as ai, openMeldToolsUpdateOperationSchema as an, collectCanonicalMentionTextFragments as ar, openMeldDaemonOriginalErrorSchema as at, daemonExecutionCompatibilitySchema as b, spaceAgentStreamDeltaFrameSchema as bi, organizationProtectedInformationSchema as bn, SPACE_FILE_RAW_UPLOAD_MAX_BYTES as br, buildAgentTaskKey as bt, updateAgentProfileDefaultProjectBodySchema as c, record as ci, postSpaceWakeStopBodySchema as cn, messageEnvelopeSchema as cr, openMeldDaemonTaskResultEnvelopeWriteSchema as ct, START_BOUNDED_ID_SCHEMA as d, tuple as di, runtimeCoordinatorExecutionEventSchema as dn, conversationCompactionMarkerSchema as dr, openMeldDaemonTaskResultProjectFailureContextSchema as dt, openMeldNavigationTargetSchema as ea, iso as ei, localServiceComponentUpdateProjectionSchema as en, spaceAttachmentMimeTypeSchema as er, runtimeTransportRouteCatalogChangedFramePayloadSchema as et, START_BOUNDED_VERSION_SCHEMA as f, undefinedFactory as fi, runtimeCoordinatorExecutionRecordSchema as fn, centerAgentInteractionSourceSchema as fr, openMeldSpaceEgressActionSchema as ft, localAgentCatalogLaunchStatusSchema as g, clientMessageIdSchema as gi, SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE as gn, spaceMentionLabelSchema as gr, agentTaskCompletionObservationSchema as gt, startReplyReadinessSummarySchema as h, url as hi, spaceTraceExecutionIdentityProjectionSchema as hn, resolveSpaceMentionLabels as hr, agentTaskCompletionConditionSchema as ht, authProfileManagedRoleSchema as i, nullFactory as ii, openMeldToolsUpdateOperationPhaseSchema as in, MESSAGE_MENTION_TYPE_VALUES as ir, isOriginalErrorSafeForMessageDetails as it, runtimeTransportDispatchPreviewRequestSchema as j, spaceThreadEventSchema as ji, localFolderPickerRequestSchema as jn, restoreSpaceFileRevisionResponseSchema as jr, spaceContractFieldsSchema as jt, runtimeTransportDispatchLifecycleRequestSchema as k, openMeldRequestContextSchema as ki, localFolderPickerHelperProtocolResultSchema as kn, resolveSpaceFileMimeType as kr, conversationExecutionStateSchema as kt, updateAgentProfileDefaultProjectResponseSchema as l, strictObject as li, postSpaceWakeStopResponseSchema as ln, normalizeMessageEnvelope as lr, openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema as lt, START_TRIMMED_NON_EMPTY_STRING_SCHEMA as m, unknown as mi, runtimeTransportDeliveryExecutionIdentitySchema as mn, resolveSingleSpaceMentionLabels as mr, agentDelegationSnapshotSchema as mt, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE as n, resolveCommandAgentWorkActivity as na, literal as ni, openMeldToolsMaintenanceProjectionSchema as nn, spaceMessageAttachmentSchema as nr, runtimeTransportSubmitTaskResultRequestSchema as nt, profileCapabilitiesResponseSchema as o, object as oi, openMeldToolsUpdateRequestResultSchema as on, formatCanonicalMentionLiteral as or, openMeldDaemonProviderAccessEvidenceProviderSchema as ot, START_ISO_DATE_TIME_SCHEMA as p, union as pi, runtimeCoordinatorExecutionTokenEnvelopeSchema as pn, spaceStatusSchema as pr, spaceCallerContextSchema as pt, runtimeTransportOpenMeldToolsControlFramePayloadSchema as q, MAX_TEXT_LENGTH as qi, signalSystemNoticeDataSchema as qn, array as qr, formatLocalSetupActionDescription as qt, authProfileKindSchema as r, neverFactory as ri, openMeldToolsUpdateAttemptSchema as rn, spaceMessageAttachmentsSchema as rr, OPENMELD_ORIGINAL_ERROR_MAX_LENGTH as rt, profileErrorResponseSchema as s, preprocess as si, openMeldToolsUpdateRequestSourceSchema as sn, getSpaceMessageAddressingRelationSupportForTargetKind as sr, openMeldDaemonProviderAccessEvidenceSchema as st, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE as t, openMeldWebUrlSchema as ta, lazySchema as ti, openMeldToolsMaintenanceMutationResultSchema as tn, spaceAttachmentSizeBytesSchema as tr, runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema as tt, updateProfileResponseSchema as u, string as ui, runtimeCoordinatorExecutionCreationDiagnosticSchema as un, resolveMessageEnvelopeTargetField as ur, openMeldDaemonTaskResultPayloadSchema as ut, localAgentCatalogWithLifecycleSchema as v, AGENT_STREAM_SNAPSHOT_MAX_CHARS as vi, spacePasswordSchema as vn, SPACE_FILE_ERROR_CODES as vr, agentTaskTerminalOutcomeSchema as vt, runtimeTransportCapabilitiesSchema as w, spaceAgentStreamTerminalFrameSchema as wi, inspectExecutionRecoveryResponseSchema as wn, isSpaceFileTextEditable as wr, openMeldDaemonControlPlaneRequestSchema as wt, daemonStreamFrameSchema as x, spaceAgentStreamPartFrameSchema as xi, updateOrganizationInformationProtectionPolicyBodySchema as xn, createSpaceFolderResponseSchema as xr, controllerAgentTaskHandleSchema as xt, CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH as y, agentStreamToolPartSchema as yi, organizationInformationProtectionPolicyResponseSchema as yn, SPACE_FILE_MAX_SIZE_BYTES as yr, areAgentTaskTerminalOutcomesEqual as yt, runtimeTransportLocalAgentControlCancelFramePayloadSchema as z, profileSchema as zi, DISPATCH_ACTIVITY_DISPATCHING_PURPOSE as zn, spaceFileNameSchema as zr, targetWakeLifecycleIdentitySchema as zt };
|
|
6878
|
+
export { agentTaskHandleSchema as $, stageSpaceComposerUploadResponseSchema as $n, SPACE_MEMBER_JOIN_NOTICE_PURPOSE as $t, runtimeTransportOpenMeldToolsControlResultFramePayloadSchema as A, SPACE_FILE_MAX_SIZE_BYTES as An, START_TRIMMED_NON_EMPTY_STRING_SCHEMA as Ar, organizationInformationProtectionPolicyResponseSchema as At, isOriginalErrorSafeForMessageDetails as B, resolveSpaceFileMimeType as Bn, profileCapabilitiesResponseSchema as Br, localFolderPickerHelperProtocolResultSchema as Bt, runtimeTransportLocalAgentControlInterruptFramePayloadSchema as C, centerAgentInteractionSourceSchema as Cn, shouldPreferMappedPublicAgentFailureReason as Cr, runtimeCoordinatorExecutionRecordSchema as Ct, runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema as D, spaceMentionLabelSchema as Dn, START_BOUNDED_ID_SCHEMA as Dr, SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE as Dt, runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema as E, resolveSpaceMentionLabels as En, openMeldWebUrlSchema as Er, spaceTraceExecutionIdentityProjectionSchema as Et, runtimeTransportResumeControllerConversationResultFramePayloadSchema as F, isSpaceFileTextEditable as Fn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE as Fr, inspectExecutionRecoveryResponseSchema as Ft, openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema as G, spaceFileActorSchema as Gn, openMeldProfileIdSchema as Gr, AGENT_REPLYING_END_PURPOSE as Gt, openMeldDaemonProviderAccessEvidenceProviderSchema as H, restoreSpaceFileRevisionResponseSchema as Hn, updateAgentProfileDefaultProjectBodySchema as Hr, localFolderPickerRequestSchema as Ht, runtimeTransportRouteCatalogChangedFramePayloadSchema as I, listSpaceFileRevisionsResponseSchema as In, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE as Ir, agentProfileWorkRecoveryActionKindSchema as It, openMeldSpaceEgressActionSchema as J, spaceFileEntryIdSchema as Jn, resolveCommandAgentWorkActivity as Jr, AGENT_REPLY_PREVIEW_PURPOSE as Jt, openMeldDaemonTaskResultPayloadSchema as K, spaceFileClientMutationIdSchema as Kn, openMeldRequestContextSchema as Kr, AGENT_REPLYING_PURPOSE as Kt, runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema as L, listSpaceFilesResponseSchema as Ln, authProfileKindSchema as Lr, LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY as Lt, runtimeTransportRegisterSessionResponseSchema as M, createSpaceFolderResponseSchema as Mn, localAgentCatalogLaunchStatusSchema as Mr, updateOrganizationInformationProtectionPolicyBodySchema as Mt, runtimeTransportRejectedProfileRegistrationSchema as N, discardSpaceComposerUploadResponseSchema as Nn, localAgentCatalogSchema as Nr, executeExecutionRecoveryBodySchema as Nt, runtimeTransportLookupRouteOwnerServiceEvidenceSchema as O, spaceMentionLabelSourceSchema as On, START_BOUNDED_VERSION_SCHEMA as Or, normalizeSpacePasswordText as Ot, runtimeTransportResumeControllerConversationFramePayloadSchema as P, getSpaceFileResponseSchema as Pn, localAgentCatalogWithLifecycleSchema as Pr, executeExecutionRecoveryResponseSchema as Pt, agentTaskCompletionObservationSchema as Q, spaceMessageFileReferencesSchema as Qn, DISPATCH_ACTIVITY_RETRYING_PURPOSE as Qt, runtimeTransportSubmitTaskResultRequestSchema as R, publishSpaceComposerUploadResponseSchema as Rn, authProfileManagedRoleSchema as Rr, OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER as Rt, runtimeTransportLocalAgentControlForkSessionFramePayloadSchema as S, conversationCompactionMarkerSchema as Sn, sanitizeDispatchErrorSummary as Sr, runtimeCoordinatorExecutionEventSchema as St, runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema as T, resolveSingleSpaceMentionLabels as Tn, openMeldNavigationTargetSchema as Tr, runtimeTransportDeliveryExecutionIdentitySchema as Tt, openMeldDaemonProviderAccessEvidenceSchema as U, spaceComposerUploadDescriptorSchema as Un, updateAgentProfileDefaultProjectResponseSchema as Ur, localFolderPickerResultSchema as Ut, openMeldDaemonOriginalErrorSchema as V, restoreSpaceFileEntryResponseSchema as Vn, profileErrorResponseSchema as Vr, localFolderPickerHelperResultSchema as Vt, openMeldDaemonTaskResultEnvelopeWriteSchema as W, spaceComposerUploadIdSchema as Wn, updateProfileResponseSchema as Wr, localFolderPathSchema as Wt, agentDelegationSnapshotSchema as X, spaceFileNameSchema as Xn, DISPATCH_ACTIVITY_DISPATCHING_PURPOSE as Xt, spaceCallerContextSchema as Y, spaceFileMimeTypeSchema as Yn, CONVERSATION_CONTINUITY_WARNING_PURPOSE as Yt, agentTaskCompletionConditionSchema as Z, spaceFileRevisionNumberSchema as Zn, DISPATCH_ACTIVITY_FAILED_PURPOSE as Zt, runtimeTransportErrorCodeSchema as _, formatCanonicalMentionLiteral as _n, spaceThreadSchema as _r, agentInteractionResolutionSchema as _t, localWakeRouteWorkingFolderObservationSchema as a, signalTextDataSchema as an, AGENT_STREAM_SNAPSHOT_MAX_CHARS as ar, spaceContractFieldsSchema as at, runtimeTransportHeartbeatResponseSchema as b, normalizeMessageEnvelope as bn, resolvePublicAgentAvailabilityCopy as br, postSpaceWakeStopResponseSchema as bt, runtimeTransportDispatchInteractionDeliveredRequestSchema as c, spaceAttachmentDescriptorSchema as cn, spaceAgentStreamPartFrameSchema as cr, spaceAllowedActionsSchema as ct, runtimeTransportDispatchLifecycleRequestSchema as d, spaceAttachmentMimeTypeSchema as dn, spaceAgentStreamTerminalFrameSchema as dr, workingLanguageGuidanceSchema as dt, SPACE_MEMBER_REMOVE_NOTICE_PURPOSE as en, trashSpaceFileEntryResponseSchema as er, agentTaskTerminalOutcomeSchema as et, runtimeTransportDispatchPreviewEndRequestSchema as f, spaceAttachmentSizeBytesSchema as fn, LOCAL_AGENT_REASONING_MAX_CHARS as fr, workingLanguageTagSchema as ft, runtimeTransportDispatchToolActivityRequestSchema as g, collectCanonicalMentionTextFragments as gn, spaceThreadEventSchema as gr, agentInteractionRequestSchema as gt, runtimeTransportDispatchRuntimeEvidenceRequestSchema as h, MESSAGE_MENTION_TYPE_VALUES as hn, spaceThreadContextSchema as hr, agentInteractionPendingSummarySchema as ht, localWakeRouteReportSchema as i, signalSystemNoticeDataSchema as in, parseOptionalClientMessageId as ir, spaceWakeAgentTaskHandleSchema as it, runtimeTransportRegisterSessionRequestSchema as j, SPACE_FILE_RAW_UPLOAD_MAX_BYTES as jn, startReplyReadinessSummarySchema as jr, organizationProtectedInformationSchema as jt, runtimeTransportOpenMeldToolsControlFramePayloadSchema as k, SPACE_FILE_ERROR_CODES as kn, START_ISO_DATE_TIME_SCHEMA as kr, spacePasswordSchema as kt, runtimeTransportDispatchInteractionRequestSchema as l, spaceAttachmentDimensionSchema as ln, spaceAgentStreamPresenceSchema as lr, spacePublicationModeSchema as lt, runtimeTransportDispatchReasoningRequestSchema as m, spaceMessageAttachmentsSchema as mn, localAgentReasoningPreferencesSchema as mr, AGENT_INTERACTION_DEFAULT_TIMEOUT_MS as mt, daemonExecutionCompatibilitySchema as n, sanitizeSignalTextPreview as nn, uploadSpaceFileResponseSchema as nr, buildAgentTaskKey as nt, runtimeTransportCapabilitiesSchema as o, signalTextSchema as on, agentStreamToolPartSchema as or, spaceContractSchema as ot, runtimeTransportDispatchPreviewRequestSchema as p, spaceMessageAttachmentSchema as pn, OPENMELD_REASONING_STREAM_HEADER as pr, targetWakeLifecycleIdentitySchema as pt, openMeldDaemonTaskResultProjectFailureContextSchema as q, spaceFileDescriptorSchema as qn, MAX_TEXT_LENGTH as qr, AGENT_REPLY_PREVIEW_END_PURPOSE as qt, daemonStreamFrameSchema as r, signalStatusDataSchema as rn, clientMessageIdSchema as rr, controllerAgentTaskHandleSchema as rt, runtimeTransportDeliverDispatchRequestSchema as s, wakeDeviceWaitTargetSchema as sn, spaceAgentStreamDeltaFrameSchema as sr, resultArchivePolicySchema as st, CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH as t, SPACE_MENTION_REJECT_NOTICE_PURPOSE as tn, updateSpaceFileEntryResponseSchema as tr, areAgentTaskTerminalOutcomesEqual as tt, runtimeTransportDispatchInteractionResponseFramePayloadSchema as u, spaceAttachmentFileNameSchema as un, spaceAgentStreamSnapshotSchema as ur, spaceDispatchPolicySchema as ut, runtimeTransportForkAgentSessionResultSchema as v, getSpaceMessageAddressingRelationSupportForTargetKind as vn, spaceThreadSignalPlacementSchema as vr, agentInteractionResponseSchema as vt, runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema as w, spaceStatusSchema as wn, computerSetupModeSchema as wr, runtimeCoordinatorExecutionTokenEnvelopeSchema as wt, runtimeTransportLocalAgentControlCancelFramePayloadSchema as x, resolveMessageEnvelopeTargetField as xn, resolvePublicAgentFailureRecovery as xr, runtimeCoordinatorExecutionCreationDiagnosticSchema as xt, runtimeTransportHeartbeatRequestSchema as y, messageEnvelopeSchema as yn, resolveMappedPublicAgentFailureReason as yr, postSpaceWakeStopBodySchema as yt, OPENMELD_ORIGINAL_ERROR_MAX_LENGTH as z, readSpaceFileTextResponseSchema as zn, authProfileViewSchema as zr, localFolderPickerDaemonFrameSchema as zt };
|
|
8070
6879
|
|
|
8071
|
-
//# sourceMappingURL=
|
|
6880
|
+
//# sourceMappingURL=runtime-transport-QIZmAo4-.js.map
|