openmeld 0.3.206 → 0.3.208
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-CZS8PbYL.js} +2 -2
- package/dist/{add-me-membership-BkHWMxE4.js.map → add-me-membership-CZS8PbYL.js.map} +1 -1
- package/dist/{agents-BOTlKiwS.js → agents-pHCyQoFw.js} +1327 -283
- package/dist/agents-pHCyQoFw.js.map +1 -0
- package/dist/{api-client-foundation-DpgDs0rw.js → api-client-foundation-BdBSoby4.js} +3 -3
- package/dist/{api-client-foundation-DpgDs0rw.js.map → api-client-foundation-BdBSoby4.js.map} +1 -1
- package/dist/{api-client-foundation-6ms5gSu8.js → api-client-foundation-JiKYZcZI.js} +1 -1
- package/dist/auth-session-DDsceN-R.js +4 -0
- package/dist/{auth-session-BjSqMLTz.js → auth-session-ijcuaSsZ.js} +266 -75
- package/dist/auth-session-ijcuaSsZ.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-CewWTp57.js} +53 -12
- package/dist/command-CewWTp57.js.map +1 -0
- package/dist/computer-connection-DK6L1_LF.js +54 -0
- package/dist/computer-connection-DK6L1_LF.js.map +1 -0
- package/dist/computer-connection-review-Dx4svB-T.js +39 -0
- package/dist/computer-connection-review-Dx4svB-T.js.map +1 -0
- package/dist/{computer-setup-continuation-Cd9nhLQ-.js → computer-setup-continuation-Bc0Tb7fi.js} +4 -4
- package/dist/{computer-setup-continuation-Cd9nhLQ-.js.map → computer-setup-continuation-Bc0Tb7fi.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-D0LhAIGx.js +3642 -0
- package/dist/daemon-service-runtime-D0LhAIGx.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-B8I8inkY.js} +768 -579
- package/dist/dist-B8I8inkY.js.map +1 -0
- package/dist/dist-Dtdw34oo.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-DZLKdEno.js} +7 -4
- package/dist/{elapsed-time-C7P-nWIO.js.map → elapsed-time-DZLKdEno.js.map} +1 -1
- package/dist/{installation-inventory-P49sTjhe.js → installation-inventory-_fMZas6v.js} +7 -6
- package/dist/{installation-inventory-P49sTjhe.js.map → installation-inventory-_fMZas6v.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-DQNVH1jx.js} +468 -41
- package/dist/openmeld-DQNVH1jx.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-CgGOwbP4.js} +9 -8
- package/dist/{openmeld-maintenance-worker-C7WykyDt.js.map → openmeld-maintenance-worker-CgGOwbP4.js.map} +1 -1
- package/dist/{openmeld-tools-update-coordinator-BBZhGo1A.js → openmeld-tools-update-coordinator-D6uuBitR.js} +558 -4107
- package/dist/openmeld-tools-update-coordinator-D6uuBitR.js.map +1 -0
- package/dist/openmeld.js +3 -3
- package/dist/{prepare-session-executor-CLmDoHom.js → prepare-session-executor-DQqmhjGj.js} +15 -13
- package/dist/{prepare-session-executor-CLmDoHom.js.map → prepare-session-executor-DQqmhjGj.js.map} +1 -1
- package/dist/{profiles-BCecj4Pj.js → runtime-transport-DryoU4rm.js} +1041 -2096
- package/dist/runtime-transport-DryoU4rm.js.map +1 -0
- package/dist/service-account-authorization-BN2F75_x.js +56 -0
- package/dist/service-account-authorization-BN2F75_x.js.map +1 -0
- package/dist/service-control-capabilities-BqEr7J9H.js +4 -0
- package/dist/service-control-capabilities-CnG1E-e3.js +54 -0
- package/dist/service-control-capabilities-CnG1E-e3.js.map +1 -0
- package/dist/upgrade-B9gjUOgQ.js +4 -0
- package/dist/{upgrade-l_5Tge_z.js → upgrade-CNeTiYSS.js} +6 -4
- package/dist/upgrade-CNeTiYSS.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/command-CkbzbvXy.js.map +0 -1
- 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
|
});
|
|
@@ -1307,6 +1667,42 @@ const PUBLIC_FAILURE_RECOVERY_BY_CODE = [
|
|
|
1307
1667
|
primaryActionId: "connect_local_agent",
|
|
1308
1668
|
recoveryTarget: "prepare_setup"
|
|
1309
1669
|
},
|
|
1670
|
+
{
|
|
1671
|
+
body: "This independent project task needs a connected Git repository with at least one commit. Choose that repository's root as the Agent's working folder, then start a new task.",
|
|
1672
|
+
kind: "local_agent_prepare",
|
|
1673
|
+
patterns: [
|
|
1674
|
+
"execution_context.project_repository_required",
|
|
1675
|
+
"execution_context.project_repository_root_required",
|
|
1676
|
+
"execution_context.project_commit_required"
|
|
1677
|
+
],
|
|
1678
|
+
primaryActionId: "manage_local_agent",
|
|
1679
|
+
preferMappedReasonOverDetail: true,
|
|
1680
|
+
recoveryTarget: "computer"
|
|
1681
|
+
},
|
|
1682
|
+
{
|
|
1683
|
+
body: "OpenMeld couldn't verify this task's project file boundary. Check this computer's file-access settings and use a task workspace outside system temporary folders, then start a new task.",
|
|
1684
|
+
kind: "local_agent_prepare",
|
|
1685
|
+
patterns: [
|
|
1686
|
+
"execution_context.workspace_access_unverified",
|
|
1687
|
+
"execution_context.workspace_probe_unsupported",
|
|
1688
|
+
"execution_context.workspace_probe_timeout"
|
|
1689
|
+
],
|
|
1690
|
+
primaryActionId: "manage_local_agent",
|
|
1691
|
+
preferMappedReasonOverDetail: true,
|
|
1692
|
+
recoveryTarget: "computer"
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
body: "This local Agent couldn't start with only the tools authorized for this task. Check the Agent's MCP configuration, then start a new task.",
|
|
1696
|
+
kind: "local_agent_prepare",
|
|
1697
|
+
patterns: [
|
|
1698
|
+
"execution_context.mcp_server_namespace_conflict",
|
|
1699
|
+
"execution_context.mcp_inventory_timeout",
|
|
1700
|
+
"context.mcp_isolation_unverified"
|
|
1701
|
+
],
|
|
1702
|
+
primaryActionId: "manage_local_agent",
|
|
1703
|
+
preferMappedReasonOverDetail: true,
|
|
1704
|
+
recoveryTarget: "computer"
|
|
1705
|
+
},
|
|
1310
1706
|
{
|
|
1311
1707
|
body: "This agent is missing its local workspace on this device. Run `openmeld doctor --repair`, then `openmeld setup --profile <agent-profile-id>`, and try again.",
|
|
1312
1708
|
kind: "local_agent_prepare",
|
|
@@ -1550,137 +1946,16 @@ function resolvePublicAgentFailureBody(body, targetName) {
|
|
|
1550
1946
|
return typeof body === "function" ? body(targetName) : body;
|
|
1551
1947
|
}
|
|
1552
1948
|
//#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
1949
|
//#region ../../packages/schemas/dist/schemas/space-mesh/space-thread.js
|
|
1675
|
-
const ISO_DATE_TIME_SCHEMA
|
|
1950
|
+
const ISO_DATE_TIME_SCHEMA = z$1.iso.datetime({ offset: true });
|
|
1676
1951
|
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
1952
|
const spaceThreadSchema = z$1.strictObject({
|
|
1678
1953
|
threadId: spaceThreadIdSchema,
|
|
1679
1954
|
spaceId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)),
|
|
1680
1955
|
rootSignalId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)),
|
|
1681
1956
|
createdByProfileId: openMeldRuntimeProfileIdSchema,
|
|
1682
|
-
createdAt: ISO_DATE_TIME_SCHEMA
|
|
1683
|
-
updatedAt: ISO_DATE_TIME_SCHEMA
|
|
1957
|
+
createdAt: ISO_DATE_TIME_SCHEMA,
|
|
1958
|
+
updatedAt: ISO_DATE_TIME_SCHEMA
|
|
1684
1959
|
});
|
|
1685
1960
|
const spaceThreadContextSchema = z$1.strictObject({
|
|
1686
1961
|
threadId: spaceThreadIdSchema,
|
|
@@ -1691,7 +1966,7 @@ const spaceThreadSignalPlacementSchema = z$1.strictObject({
|
|
|
1691
1966
|
threadId: spaceThreadIdSchema,
|
|
1692
1967
|
signalId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)),
|
|
1693
1968
|
placement: spaceThreadSignalPlacementKindSchema,
|
|
1694
|
-
createdAt: ISO_DATE_TIME_SCHEMA
|
|
1969
|
+
createdAt: ISO_DATE_TIME_SCHEMA
|
|
1695
1970
|
});
|
|
1696
1971
|
const spaceThreadEventTypeSchema = z$1.enum(["created"]);
|
|
1697
1972
|
const spaceThreadEventSchema = z$1.strictObject({
|
|
@@ -1700,63 +1975,10 @@ const spaceThreadEventSchema = z$1.strictObject({
|
|
|
1700
1975
|
eventType: spaceThreadEventTypeSchema,
|
|
1701
1976
|
actorProfileId: openMeldRuntimeProfileIdSchema,
|
|
1702
1977
|
clientMutationId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(200)),
|
|
1703
|
-
createdAt: ISO_DATE_TIME_SCHEMA
|
|
1978
|
+
createdAt: ISO_DATE_TIME_SCHEMA
|
|
1704
1979
|
});
|
|
1705
1980
|
const spaceThreadActionRefSchema = z$1.strictObject({ threadId: spaceThreadIdSchema });
|
|
1706
1981
|
//#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
1982
|
//#region ../../packages/schemas/dist/schemas/http/local-agent-reasoning.js
|
|
1761
1983
|
const OPENMELD_REASONING_STREAM_HEADER = "x-openmeld-reasoning-stream";
|
|
1762
1984
|
const LOCAL_AGENT_REASONING_MAX_CHARS = 8192;
|
|
@@ -2127,264 +2349,6 @@ const parseOptionalClientMessageId = (value) => {
|
|
|
2127
2349
|
return parsed.success ? parsed.data : null;
|
|
2128
2350
|
};
|
|
2129
2351
|
//#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
2352
|
//#region ../../packages/schemas/dist/schemas/http/space-files.js
|
|
2389
2353
|
const SPACE_FILE_MAX_SIZE_BYTES = 250 * 1024 * 1024;
|
|
2390
2354
|
const SPACE_FILE_RAW_UPLOAD_MAX_BYTES = 10 * 1024 * 1024;
|
|
@@ -2896,6 +2860,85 @@ const conversationCompactionMarkerSchema = z$1.strictObject({
|
|
|
2896
2860
|
v: z$1.literal(1)
|
|
2897
2861
|
});
|
|
2898
2862
|
//#endregion
|
|
2863
|
+
//#region ../../packages/schemas/dist/schemas/protocol/execution-context.js
|
|
2864
|
+
const reference = z$1.string().trim().min(1).max(2048);
|
|
2865
|
+
const executionContextAccessSchema = z$1.enum([
|
|
2866
|
+
"space_context",
|
|
2867
|
+
"read_only",
|
|
2868
|
+
"workspace"
|
|
2869
|
+
]);
|
|
2870
|
+
const workspace = z$1.enum(["current", "isolated"]);
|
|
2871
|
+
const preferences = {
|
|
2872
|
+
access: executionContextAccessSchema.optional(),
|
|
2873
|
+
workspace: workspace.optional()
|
|
2874
|
+
};
|
|
2875
|
+
const executionContextSelectionSchema = z$1.discriminatedUnion("mode", [
|
|
2876
|
+
z$1.strictObject({
|
|
2877
|
+
mode: z$1.literal("auto"),
|
|
2878
|
+
...preferences
|
|
2879
|
+
}),
|
|
2880
|
+
z$1.strictObject({
|
|
2881
|
+
mode: z$1.literal("new"),
|
|
2882
|
+
...preferences
|
|
2883
|
+
}),
|
|
2884
|
+
z$1.strictObject({
|
|
2885
|
+
mode: z$1.literal("resume"),
|
|
2886
|
+
sourceWakeId: reference
|
|
2887
|
+
}),
|
|
2888
|
+
z$1.strictObject({
|
|
2889
|
+
mode: z$1.literal("fork"),
|
|
2890
|
+
sourceWakeId: reference,
|
|
2891
|
+
...preferences
|
|
2892
|
+
})
|
|
2893
|
+
]);
|
|
2894
|
+
const executionContextScopeSchema = z$1.strictObject({
|
|
2895
|
+
organizationId: reference,
|
|
2896
|
+
requesterProfileId: reference,
|
|
2897
|
+
spaceId: reference,
|
|
2898
|
+
targetProfileId: reference,
|
|
2899
|
+
threadId: reference.nullable()
|
|
2900
|
+
});
|
|
2901
|
+
const executionContextRequestSchema = z$1.strictObject({
|
|
2902
|
+
required: z$1.boolean().optional(),
|
|
2903
|
+
scope: executionContextScopeSchema,
|
|
2904
|
+
selection: executionContextSelectionSchema
|
|
2905
|
+
});
|
|
2906
|
+
const executionContextAssignmentSchema = z$1.strictObject({
|
|
2907
|
+
version: z$1.literal(1),
|
|
2908
|
+
id: z$1.string().uuid(),
|
|
2909
|
+
scope: executionContextScopeSchema,
|
|
2910
|
+
access: executionContextAccessSchema,
|
|
2911
|
+
workspace,
|
|
2912
|
+
forkSource: z$1.strictObject({
|
|
2913
|
+
contextId: z$1.string().uuid(),
|
|
2914
|
+
sourceWakeId: reference,
|
|
2915
|
+
nativeConversationId: reference,
|
|
2916
|
+
completedHistoryId: reference,
|
|
2917
|
+
runtimeWorkspaceFingerprint: reference,
|
|
2918
|
+
workspace
|
|
2919
|
+
}).optional()
|
|
2920
|
+
});
|
|
2921
|
+
const executionContextCompletionSchema = z$1.strictObject({
|
|
2922
|
+
contextId: z$1.string().uuid(),
|
|
2923
|
+
nativeConversationId: reference,
|
|
2924
|
+
runtimeWorkspaceFingerprint: reference,
|
|
2925
|
+
completedHistoryId: reference.optional()
|
|
2926
|
+
});
|
|
2927
|
+
const executionContextLegacyAssociationSchema = z$1.strictObject({
|
|
2928
|
+
id: reference,
|
|
2929
|
+
bindingId: reference,
|
|
2930
|
+
configurationRevision: z$1.number().int().positive(),
|
|
2931
|
+
agentControllerRef: reference,
|
|
2932
|
+
openMeldServiceRuntimeId: reference,
|
|
2933
|
+
nativeConversationId: reference.nullable(),
|
|
2934
|
+
scope: z$1.literal("legacy_unclassified")
|
|
2935
|
+
});
|
|
2936
|
+
const executionContextTaskSchema = executionContextAssignmentSchema.extend({
|
|
2937
|
+
legacyAssociation: executionContextLegacyAssociationSchema.optional(),
|
|
2938
|
+
nativeConversationId: reference.nullable(),
|
|
2939
|
+
runtimeWorkspaceFingerprint: reference.nullable()
|
|
2940
|
+
});
|
|
2941
|
+
//#endregion
|
|
2899
2942
|
//#region ../../packages/schemas/dist/schemas/protocol/message-envelope.js
|
|
2900
2943
|
const MULTI_SPACE_PATTERN$1 = /\s+/g;
|
|
2901
2944
|
const CANONICAL_MENTION_LITERAL_PATTERN = /^@(?<name>.+)\((?<type>wake|reference|mention)\)$/u;
|
|
@@ -3360,6 +3403,7 @@ const addSignalTextContentIssues = (input, context) => {
|
|
|
3360
3403
|
const buildSignalTextDataSchema = (metaSchema) => z$1.strictObject({
|
|
3361
3404
|
text: signalTextContentSchema,
|
|
3362
3405
|
deviceWait: wakeDeviceWaitSchema.optional(),
|
|
3406
|
+
contextSelection: executionContextSelectionSchema.optional(),
|
|
3363
3407
|
attachments: spaceMessageAttachmentsSchema.optional(),
|
|
3364
3408
|
files: spaceMessageFileReferencesSchema.optional(),
|
|
3365
3409
|
messageEnvelope: messageEnvelopeSchema.optional(),
|
|
@@ -4210,293 +4254,6 @@ const postSpaceWakeStopResponseSchema = z$1.discriminatedUnion("status", [
|
|
|
4210
4254
|
});
|
|
4211
4255
|
});
|
|
4212
4256
|
//#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
|
-
})
|
|
4358
|
-
})
|
|
4359
|
-
});
|
|
4360
|
-
const installedLocalComponentsSnapshotSchema = strictObject({
|
|
4361
|
-
schemaVersion: literal(1),
|
|
4362
|
-
installedAt: iso.datetime({ offset: true }),
|
|
4363
|
-
source: enumFactory([
|
|
4364
|
-
"setup",
|
|
4365
|
-
"repair",
|
|
4366
|
-
"manual"
|
|
4367
|
-
]),
|
|
4368
|
-
manifest: localComponentsManifestSchema
|
|
4369
|
-
});
|
|
4370
|
-
const localComponentProjectionSchema = strictObject({
|
|
4371
|
-
reasonCodes: array(nonEmptyStringSchema),
|
|
4372
|
-
status: localComponentStatusSchema
|
|
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;
|
|
4485
|
-
}
|
|
4486
|
-
}
|
|
4487
|
-
function formatLocalSetupActionDescription(action) {
|
|
4488
|
-
switch (action) {
|
|
4489
|
-
case "connect_service": return "Connect this computer to OpenMeld so local agents can reply in Spaces.";
|
|
4490
|
-
case "reconnect_service": return "Reconnect this computer to the current OpenMeld account.";
|
|
4491
|
-
case "update_service": return "Update OpenMeld on this computer.";
|
|
4492
|
-
case "connect_local_agent": return "Connect this Agent Profile to a local agent runtime on this computer.";
|
|
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;
|
|
4497
|
-
}
|
|
4498
|
-
}
|
|
4499
|
-
//#endregion
|
|
4500
4257
|
//#region ../../packages/schemas/dist/schemas/protocol/agent-interaction.js
|
|
4501
4258
|
const AGENT_INTERACTION_DEFAULT_TIMEOUT_MS = 480 * 60 * 1e3;
|
|
4502
4259
|
const agentInteractionKindSchema = enumFactory([
|
|
@@ -4703,627 +4460,95 @@ const encodeLengthPrefixedTargetWakeLifecycleIdPart = (value) => {
|
|
|
4703
4460
|
function normalizeRequiredTargetWakeLifecycleIdPart(fieldName, value) {
|
|
4704
4461
|
if (typeof value !== "string") throw new Error(`target_wake_lifecycle.identity_invalid: ${fieldName} must be a string`);
|
|
4705
4462
|
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
|
|
4463
|
+
if (!normalized) throw new Error(`target_wake_lifecycle.identity_invalid: ${fieldName} is required`);
|
|
4464
|
+
return normalized;
|
|
4465
|
+
}
|
|
4466
|
+
//#endregion
|
|
4467
|
+
//#region ../../packages/schemas/dist/schemas/runtime/working-language.js
|
|
4468
|
+
const workingLanguageTagSchema = z$1.string().trim().min(2).max(64).transform((value, context) => {
|
|
4469
|
+
try {
|
|
4470
|
+
const [canonical] = Intl.getCanonicalLocales(value);
|
|
4471
|
+
if (!canonical) throw new TypeError("A language tag is required.");
|
|
4472
|
+
return canonical;
|
|
4473
|
+
} catch {
|
|
4474
|
+
context.addIssue({
|
|
4475
|
+
code: "custom",
|
|
4476
|
+
message: "Expected a valid BCP 47 language tag."
|
|
4477
|
+
});
|
|
4478
|
+
return z$1.NEVER;
|
|
4479
|
+
}
|
|
5285
4480
|
});
|
|
5286
|
-
const
|
|
5287
|
-
|
|
5288
|
-
|
|
4481
|
+
const organizationWorkingLanguageModeSchema = z$1.enum(["automatic", "selected"]);
|
|
4482
|
+
const workingLanguageGuidanceSchema = z$1.strictObject({
|
|
4483
|
+
languageTag: workingLanguageTagSchema,
|
|
4484
|
+
mode: organizationWorkingLanguageModeSchema
|
|
5289
4485
|
});
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
4486
|
+
//#endregion
|
|
4487
|
+
//#region ../../packages/schemas/dist/schemas/space-mesh/authority-order.js
|
|
4488
|
+
const spaceAuthorityOrderSchema = z$1.literal("default");
|
|
4489
|
+
//#endregion
|
|
4490
|
+
//#region ../../packages/schemas/dist/schemas/space-mesh/dispatch-policy.js
|
|
4491
|
+
const spaceDispatchPolicyModeSchema = z$1.enum(["mention_only", "listen_all"]);
|
|
4492
|
+
const spaceDispatchPolicySchema = z$1.strictObject({ mode: spaceDispatchPolicyModeSchema });
|
|
4493
|
+
//#endregion
|
|
4494
|
+
//#region ../../packages/schemas/dist/schemas/space-mesh/publication-policy.js
|
|
4495
|
+
const spacePublicationModeSchema = z$1.enum(["collaboration", "raw_context_sharing"]);
|
|
4496
|
+
const spaceAllowedActionSchema = z$1.enum([
|
|
4497
|
+
"post_message",
|
|
4498
|
+
"post_status",
|
|
4499
|
+
"stay_silent"
|
|
4500
|
+
]);
|
|
4501
|
+
const spaceAllowedActionsSchema = z$1.array(spaceAllowedActionSchema).superRefine((value, ctx) => {
|
|
4502
|
+
if (value.length === 0) {
|
|
4503
|
+
ctx.addIssue({
|
|
4504
|
+
code: "custom",
|
|
4505
|
+
message: "allowedActions must contain at least one action"
|
|
4506
|
+
});
|
|
4507
|
+
return;
|
|
4508
|
+
}
|
|
4509
|
+
if (new Set(value).size !== value.length) ctx.addIssue({
|
|
4510
|
+
code: "custom",
|
|
4511
|
+
message: "allowedActions must not contain duplicates"
|
|
4512
|
+
});
|
|
5293
4513
|
});
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
4514
|
+
//#endregion
|
|
4515
|
+
//#region ../../packages/schemas/dist/schemas/space-mesh/result-archive-policy.js
|
|
4516
|
+
const resultArchiveModeSchema = z$1.enum([
|
|
4517
|
+
"none",
|
|
4518
|
+
"space_reply_only",
|
|
4519
|
+
"all_final_results"
|
|
4520
|
+
]);
|
|
4521
|
+
const resultArchivePolicySchema = z$1.strictObject({ mode: resultArchiveModeSchema });
|
|
4522
|
+
//#endregion
|
|
4523
|
+
//#region ../../packages/schemas/dist/schemas/space-mesh/space-note.js
|
|
4524
|
+
const spaceNoteSchema = z$1.string().trim().min(1);
|
|
4525
|
+
//#endregion
|
|
4526
|
+
//#region ../../packages/schemas/dist/schemas/space-mesh/space-contract.js
|
|
4527
|
+
const isoDateTimeSchema = z$1.iso.datetime({ offset: true });
|
|
4528
|
+
const spaceBriefModeSchema = z$1.enum(["default", "none"]);
|
|
4529
|
+
const spaceContractFieldsSchema = z$1.strictObject({
|
|
4530
|
+
dispatchPolicy: spaceDispatchPolicySchema,
|
|
4531
|
+
publicationMode: spacePublicationModeSchema,
|
|
4532
|
+
allowedActions: spaceAllowedActionsSchema,
|
|
4533
|
+
resultArchivePolicy: resultArchivePolicySchema,
|
|
4534
|
+
spaceNote: spaceNoteSchema.optional(),
|
|
4535
|
+
authorityOrder: spaceAuthorityOrderSchema,
|
|
4536
|
+
entryBrief: spaceBriefModeSchema,
|
|
4537
|
+
dispatchBrief: spaceBriefModeSchema
|
|
5297
4538
|
});
|
|
5298
|
-
const
|
|
5299
|
-
|
|
5300
|
-
|
|
4539
|
+
const spaceContractSchema = z$1.strictObject({
|
|
4540
|
+
version: z$1.number().int().finite().positive(),
|
|
4541
|
+
updatedAt: isoDateTimeSchema,
|
|
4542
|
+
updatedBy: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)),
|
|
4543
|
+
dispatchPolicy: spaceDispatchPolicySchema,
|
|
4544
|
+
publicationMode: spacePublicationModeSchema,
|
|
4545
|
+
allowedActions: spaceAllowedActionsSchema,
|
|
4546
|
+
resultArchivePolicy: resultArchivePolicySchema,
|
|
4547
|
+
spaceNote: spaceNoteSchema.optional(),
|
|
4548
|
+
authorityOrder: spaceAuthorityOrderSchema,
|
|
4549
|
+
entryBrief: spaceBriefModeSchema,
|
|
4550
|
+
dispatchBrief: spaceBriefModeSchema
|
|
5301
4551
|
});
|
|
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
4552
|
//#endregion
|
|
5328
4553
|
//#region ../../packages/schemas/dist/schemas/runtime/agent-task-coordination.js
|
|
5329
4554
|
const nonEmptyIdSchema = string().trim().min(1).max(512);
|
|
@@ -5546,6 +4771,8 @@ const openMeldDaemonDispatchControllerSnapshotSchema = strictObject({
|
|
|
5546
4771
|
agentControllerRef: string().min(1).nullable()
|
|
5547
4772
|
});
|
|
5548
4773
|
const openMeldDaemonAcceptedDispatchSnapshotSchema = strictObject({
|
|
4774
|
+
contextRequest: executionContextRequestSchema.optional(),
|
|
4775
|
+
executionContext: executionContextAssignmentSchema.optional(),
|
|
5549
4776
|
deviceWait: wakeDeviceWaitSchema.optional(),
|
|
5550
4777
|
controllerSnapshot: strictObject({
|
|
5551
4778
|
bindingId: string().trim().min(1),
|
|
@@ -5567,6 +4794,13 @@ const openMeldDaemonDispatchSnapshotSchema = strictObject({
|
|
|
5567
4794
|
targetBindingEnabled: boolean().describe("Compatibility seed evidence captured at Space handoff time. Do not use this snapshot as Binding authority or per-Wake outcome truth.")
|
|
5568
4795
|
});
|
|
5569
4796
|
const openMeldDaemonDispatchSourceSignalSnapshotSchema = strictObject({
|
|
4797
|
+
contextMessages: array(strictObject({
|
|
4798
|
+
signalId: string().min(1),
|
|
4799
|
+
author: string().min(1).nullable(),
|
|
4800
|
+
text: string().max(16e3),
|
|
4801
|
+
files: spaceMessageFileReferencesSchema.optional(),
|
|
4802
|
+
attachments: spaceMessageAttachmentsSchema.optional()
|
|
4803
|
+
})).max(3).optional(),
|
|
5570
4804
|
callerContext: spaceCallerContextSchema.optional(),
|
|
5571
4805
|
pinnedFiles: array(spaceMessageFileReferenceSchema).max(100).optional(),
|
|
5572
4806
|
quotedMessage: strictObject({
|
|
@@ -5613,6 +4847,8 @@ discriminatedUnion("v", [
|
|
|
5613
4847
|
strictObject({
|
|
5614
4848
|
v: literal(2),
|
|
5615
4849
|
dispatchId: string().min(1),
|
|
4850
|
+
contextSelection: executionContextSelectionSchema.optional(),
|
|
4851
|
+
executionContext: executionContextTaskSchema.optional(),
|
|
5616
4852
|
deviceWait: wakeDeviceWaitSchema.optional(),
|
|
5617
4853
|
spaceId: string().min(1),
|
|
5618
4854
|
organizationId: string().trim().min(1).describe("Canonical Space Organization snapshot captured by the Space Durable Object when it creates the dispatch outbox seed. Optional only while old producers remain in the phase-1 rollout window.").optional(),
|
|
@@ -5729,6 +4965,7 @@ const providerRuntimeWorkspaceResumeBehaviorSchema = z$1.enum([
|
|
|
5729
4965
|
"validate_only"
|
|
5730
4966
|
]);
|
|
5731
4967
|
const providerRuntimeCapabilityDeclarationSchema = z$1.strictObject({
|
|
4968
|
+
executionContextVersion: z$1.union([z$1.literal(1), z$1.literal(2)]).optional(),
|
|
5732
4969
|
streamingCapability: providerRuntimeStreamingCapabilitySchema,
|
|
5733
4970
|
imageInputCapability: providerRuntimeImageInputCapabilitySchema.optional(),
|
|
5734
4971
|
runtimeWorkingDirectoryMode: providerRuntimeWorkingDirectoryModeSchema,
|
|
@@ -5950,6 +5187,8 @@ const openMeldDaemonTaskResultCommonSchemaV1 = strictObject({
|
|
|
5950
5187
|
agentControllerConversationId: string().min(1).optional()
|
|
5951
5188
|
});
|
|
5952
5189
|
const openMeldDaemonTaskResultCommonSchema = openMeldDaemonTaskResultCommonSchemaV1.extend({
|
|
5190
|
+
executionContextId: string().uuid().optional(),
|
|
5191
|
+
executionContextCompletion: executionContextCompletionSchema.optional(),
|
|
5953
5192
|
attemptId: string().min(1),
|
|
5954
5193
|
telemetry: openMeldDaemonTaskResultTelemetrySchema.optional(),
|
|
5955
5194
|
agentControllerConversation: agentControllerConversationRefSchema.optional(),
|
|
@@ -6268,7 +5507,9 @@ const runtimeTransportErrorCodeSchema = enumFactory([
|
|
|
6268
5507
|
"runtime_coordinator.pre_agent_stop_requested",
|
|
6269
5508
|
"runtime_coordinator.execution_token_authority_unavailable",
|
|
6270
5509
|
"runtime_coordinator.execution_token_scope_mismatch",
|
|
6271
|
-
"runtime_coordinator.execution_token_unavailable"
|
|
5510
|
+
"runtime_coordinator.execution_token_unavailable",
|
|
5511
|
+
"runtime_coordinator.execution_context_mismatch",
|
|
5512
|
+
"runtime_coordinator.execution_context_unavailable"
|
|
6272
5513
|
]);
|
|
6273
5514
|
const runtimeTransportLeaseSchema = strictObject({
|
|
6274
5515
|
profileId: string().min(1),
|
|
@@ -6846,6 +6087,7 @@ const runtimeTransportDeliverDispatchPayloadSchema = strictObject({
|
|
|
6846
6087
|
targetProfileMentionLabel: spaceMentionLabelSchema.optional(),
|
|
6847
6088
|
targetProfileIsCenterAgent: boolean().optional(),
|
|
6848
6089
|
agentControllerConversationId: string().trim().min(1).optional(),
|
|
6090
|
+
executionContext: executionContextTaskSchema.optional(),
|
|
6849
6091
|
deliveryRecoveryReason: openMeldDaemonDispatchDeliveryRecoveryReasonSchema.optional(),
|
|
6850
6092
|
dispatchChainId: string().min(1).optional(),
|
|
6851
6093
|
autoRelayDepth: number().int().nonnegative().optional(),
|
|
@@ -7032,6 +6274,7 @@ strictObject({
|
|
|
7032
6274
|
});
|
|
7033
6275
|
discriminatedUnion("status", [
|
|
7034
6276
|
strictObject({
|
|
6277
|
+
executionContext: executionContextTaskSchema.optional(),
|
|
7035
6278
|
acceptedDispatchSnapshot: openMeldDaemonAcceptedDispatchSnapshotSchema.optional(),
|
|
7036
6279
|
action: runtimeTransportRuntimeCoordinatorHeadAcceptActionSchema,
|
|
7037
6280
|
ok: literal(true),
|
|
@@ -7261,811 +6504,513 @@ const runtimeCoordinatorHeadWaitingResponseCommonShape = {
|
|
|
7261
6504
|
};
|
|
7262
6505
|
union([
|
|
7263
6506
|
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")
|
|
6507
|
+
...runtimeCoordinatorHeadWaitingResponseCommonShape,
|
|
6508
|
+
...runtimeCoordinatorAccessWaitingDecisionShape
|
|
7428
6509
|
}),
|
|
7429
6510
|
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")
|
|
6511
|
+
...runtimeCoordinatorHeadWaitingResponseCommonShape,
|
|
6512
|
+
...runtimeCoordinatorReadinessWaitingDecisionShape
|
|
7437
6513
|
}),
|
|
7438
6514
|
strictObject({
|
|
7439
|
-
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
6515
|
+
...runtimeCoordinatorHeadWaitingResponseCommonShape,
|
|
6516
|
+
...runtimeCoordinatorOfflineWaitingDecisionShape
|
|
6517
|
+
}),
|
|
6518
|
+
strictObject({
|
|
6519
|
+
...runtimeCoordinatorHeadWaitingResponseCommonShape,
|
|
6520
|
+
...runtimeCoordinatorPendingFirstReportWaitingDecisionShape
|
|
7443
6521
|
}),
|
|
7444
6522
|
strictObject({
|
|
7445
|
-
deadlineAtMs: number().int().nonnegative(),
|
|
7446
6523
|
ok: literal(true),
|
|
7447
|
-
|
|
7448
|
-
|
|
6524
|
+
primaryDispatchId: string().min(1),
|
|
6525
|
+
publicationIntentId: string().min(1).max(4096),
|
|
6526
|
+
reasonCode: runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema,
|
|
6527
|
+
runtimeCoordinatorExecutionId: nullFactory(),
|
|
6528
|
+
status: literal("publication_intent_ready"),
|
|
6529
|
+
targetWakeLifecycleId: string().min(1).max(2048)
|
|
7449
6530
|
}),
|
|
7450
6531
|
strictObject({
|
|
7451
6532
|
ok: literal(false),
|
|
7452
|
-
|
|
7453
|
-
|
|
6533
|
+
primaryDispatchId: string().min(1).nullable(),
|
|
6534
|
+
reasonCode: string().min(1).max(160),
|
|
6535
|
+
runtimeCoordinatorExecutionId: nullFactory(),
|
|
6536
|
+
status: enumFactory(["conflict", "retry_later"]),
|
|
6537
|
+
targetWakeLifecycleId: string().min(1).max(2048)
|
|
7454
6538
|
})
|
|
7455
6539
|
]);
|
|
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
|
|
6540
|
+
const runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionTraceSchema = strictObject({
|
|
6541
|
+
decidedAtMs: int().min(0),
|
|
6542
|
+
publicationCategory: runtimeTransportRuntimeCoordinatorHeadNoExecutionPublicationCategorySchema,
|
|
6543
|
+
reasonCode: runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema,
|
|
6544
|
+
source: runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionSourceSchema,
|
|
6545
|
+
userRecoveryAction: runtimeTransportRuntimeCoordinatorHeadNoExecutionRecoveryActionSchema
|
|
7606
6546
|
});
|
|
7607
|
-
const
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
6547
|
+
const runtimeTransportRuntimeCoordinatorHeadPublicationIntentTraceSchema = union([strictObject({
|
|
6548
|
+
intentId: string().min(1).max(4096),
|
|
6549
|
+
kind: literal("no_execution_failure"),
|
|
6550
|
+
publicationCategory: runtimeTransportRuntimeCoordinatorHeadNoExecutionPublicationCategorySchema,
|
|
6551
|
+
readyAtMs: int().min(0),
|
|
6552
|
+
reasonCode: runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema,
|
|
6553
|
+
status: literal("ready_for_phase_6"),
|
|
6554
|
+
userRecoveryAction: runtimeTransportRuntimeCoordinatorHeadNoExecutionRecoveryActionSchema
|
|
7611
6555
|
}), strictObject({
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
"owner_mismatch",
|
|
7618
|
-
"response_invalid",
|
|
7619
|
-
"retry_later"
|
|
7620
|
-
]),
|
|
7621
|
-
message: string().trim().min(1).max(1e3)
|
|
6556
|
+
intentId: string().min(1).max(4096),
|
|
6557
|
+
kind: literal("stopped_notice"),
|
|
6558
|
+
readyAtMs: int().min(0),
|
|
6559
|
+
reasonCode: runtimeTransportRuntimeCoordinatorHeadPreAgentStopReasonCodeSchema,
|
|
6560
|
+
status: literal("ready_for_phase_6")
|
|
7622
6561
|
})]);
|
|
7623
|
-
const
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
"
|
|
7627
|
-
"
|
|
7628
|
-
"
|
|
7629
|
-
"
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
|
|
6562
|
+
const runtimeTransportRuntimeCoordinatorHeadPublicationOutcomeTraceSchema = strictObject({
|
|
6563
|
+
failurePublicationCommandId: string().min(1).max(4096),
|
|
6564
|
+
finalMessageKind: enumFactory([
|
|
6565
|
+
"failure_notice",
|
|
6566
|
+
"status",
|
|
6567
|
+
"success_reply",
|
|
6568
|
+
"unknown"
|
|
6569
|
+
]).nullable(),
|
|
6570
|
+
observedAtMs: int().min(0),
|
|
6571
|
+
publicationErrorCode: string().min(1).max(160).nullable(),
|
|
6572
|
+
publishedSignalId: string().min(1).nullable(),
|
|
6573
|
+
status: enumFactory([
|
|
6574
|
+
"failure_published",
|
|
6575
|
+
"already_final",
|
|
6576
|
+
"failure_publication_failed"
|
|
6577
|
+
])
|
|
6578
|
+
});
|
|
6579
|
+
const runtimeTransportRuntimeCoordinatorHeadPublicationExhaustionTraceSchema = strictObject({
|
|
6580
|
+
attemptCount: int().positive(),
|
|
6581
|
+
exhaustedAtMs: int().min(0),
|
|
6582
|
+
lastFailureAtMs: int().min(0),
|
|
6583
|
+
lastReasonCode: string().min(1).max(160),
|
|
6584
|
+
reasonCode: literal("runtime_coordinator.publication_retry_exhausted"),
|
|
6585
|
+
status: literal("publication_exhausted")
|
|
7637
6586
|
});
|
|
7638
|
-
|
|
6587
|
+
const runtimeTransportRuntimeCoordinatorHeadTargetDisplayTraceSchema = strictObject({
|
|
6588
|
+
targetProfileMentionLabel: spaceMentionLabelSchema.nullable(),
|
|
6589
|
+
targetProfileName: string().min(1).max(64).nullable()
|
|
6590
|
+
});
|
|
6591
|
+
const runtimeTransportRuntimeCoordinatorHeadLifecycleTraceRecordSchema = strictObject({
|
|
6592
|
+
createdAtMs: int().min(0),
|
|
6593
|
+
duplicateDispatchCount: int().min(0),
|
|
6594
|
+
executionLinkedAtMs: int().min(0).nullable(),
|
|
6595
|
+
modelVersion: literal("openmeld.runtime_coordinator.head_lifecycle.v1"),
|
|
6596
|
+
noExecutionDecision: union([runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionTraceSchema, nullFactory()]),
|
|
6597
|
+
ownerUserId: string().min(1),
|
|
6598
|
+
primaryDispatchId: string().min(1),
|
|
6599
|
+
publicationIntent: union([runtimeTransportRuntimeCoordinatorHeadPublicationIntentTraceSchema, nullFactory()]),
|
|
6600
|
+
publicationExhaustion: runtimeTransportRuntimeCoordinatorHeadPublicationExhaustionTraceSchema.optional(),
|
|
6601
|
+
publicationOutcome: runtimeTransportRuntimeCoordinatorHeadPublicationOutcomeTraceSchema.optional(),
|
|
6602
|
+
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.nullable(),
|
|
6603
|
+
status: runtimeTransportRuntimeCoordinatorHeadLifecycleStatusSchema,
|
|
6604
|
+
targetWakeLifecycleIdentity: targetWakeLifecycleIdentitySchema,
|
|
6605
|
+
targetWakeLifecycleId: string().min(1).max(2048),
|
|
6606
|
+
targetDisplay: runtimeTransportRuntimeCoordinatorHeadTargetDisplayTraceSchema.optional(),
|
|
6607
|
+
updatedAtMs: int().min(0),
|
|
6608
|
+
waitingBoundary: union([runtimeTransportRuntimeCoordinatorHeadWaitingBoundarySchema, nullFactory()])
|
|
6609
|
+
});
|
|
6610
|
+
strictObject({
|
|
6611
|
+
v: literal(1),
|
|
6612
|
+
targetWakeLifecycleIdentity: targetWakeLifecycleIdentitySchema
|
|
6613
|
+
});
|
|
6614
|
+
discriminatedUnion("readStatus", [
|
|
7639
6615
|
strictObject({
|
|
7640
|
-
|
|
7641
|
-
|
|
7642
|
-
|
|
6616
|
+
lifecycle: runtimeTransportRuntimeCoordinatorHeadLifecycleTraceRecordSchema,
|
|
6617
|
+
ok: literal(true),
|
|
6618
|
+
readStatus: literal("found")
|
|
7643
6619
|
}),
|
|
7644
6620
|
strictObject({
|
|
7645
|
-
|
|
7646
|
-
|
|
6621
|
+
ok: literal(true),
|
|
6622
|
+
readStatus: literal("missing"),
|
|
6623
|
+
reasonCode: literal("runtime_coordinator.head_lifecycle_not_found"),
|
|
6624
|
+
targetWakeLifecycleId: string().min(1).max(2048)
|
|
7647
6625
|
}),
|
|
7648
6626
|
strictObject({
|
|
7649
|
-
|
|
7650
|
-
|
|
7651
|
-
reasonCode:
|
|
6627
|
+
ok: literal(false),
|
|
6628
|
+
readStatus: literal("authority_unavailable"),
|
|
6629
|
+
reasonCode: string().min(1).max(160),
|
|
6630
|
+
targetWakeLifecycleId: string().min(1).max(2048)
|
|
7652
6631
|
})
|
|
7653
6632
|
]);
|
|
7654
|
-
const
|
|
6633
|
+
const runtimeTransportPreExecutionHandoffReasonCodeSchema = enumFactory(["daemon.profile.offline"]);
|
|
6634
|
+
strictObject({
|
|
7655
6635
|
v: literal(1),
|
|
7656
|
-
|
|
7657
|
-
|
|
6636
|
+
attemptId: string().min(1).nullable().optional(),
|
|
6637
|
+
autoRelayDepth: number().int().nonnegative().optional(),
|
|
6638
|
+
dispatchChainId: string().min(1).nullable().optional(),
|
|
7658
6639
|
dispatchId: string().min(1),
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
|
|
7662
|
-
|
|
7663
|
-
|
|
7664
|
-
|
|
6640
|
+
firstSeenAtMs: number().int().nonnegative(),
|
|
6641
|
+
idempotencyKey: string().min(1).max(512),
|
|
6642
|
+
observedAtMs: number().int().nonnegative(),
|
|
6643
|
+
reasonCode: runtimeTransportPreExecutionHandoffReasonCodeSchema,
|
|
6644
|
+
sourceClientMessageId: string().min(1).max(200).nullable().optional(),
|
|
6645
|
+
sourceEventId: string().min(1),
|
|
6646
|
+
spaceId: string().min(1),
|
|
6647
|
+
spacePassword: spacePasswordSchema.optional(),
|
|
6648
|
+
targetProfileId: string().min(1),
|
|
6649
|
+
targetProfileMentionLabel: spaceMentionLabelSchema.optional(),
|
|
6650
|
+
targetProfileName: string().min(1).max(64).optional(),
|
|
6651
|
+
taskId: string().min(1),
|
|
6652
|
+
threadContext: spaceThreadContextSchema.optional(),
|
|
6653
|
+
visitedProfileIds: array(string().min(1)).max(256).optional(),
|
|
6654
|
+
visitedProfileIdsHash: string().min(1).nullable().optional()
|
|
7665
6655
|
});
|
|
7666
6656
|
discriminatedUnion("status", [
|
|
7667
6657
|
strictObject({
|
|
6658
|
+
deadlineAtMs: number().int().nonnegative(),
|
|
6659
|
+
nextAlarmAtMs: number().int().nonnegative(),
|
|
7668
6660
|
ok: literal(true),
|
|
7669
|
-
|
|
6661
|
+
reasonCode: runtimeTransportPreExecutionHandoffReasonCodeSchema,
|
|
6662
|
+
status: literal("waiting_for_recovery")
|
|
7670
6663
|
}),
|
|
7671
6664
|
strictObject({
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
6665
|
+
deadlineAtMs: number().int().nonnegative(),
|
|
6666
|
+
ok: literal(true),
|
|
6667
|
+
publishedSignalId: string().min(1),
|
|
6668
|
+
reasonCode: runtimeTransportPreExecutionHandoffReasonCodeSchema,
|
|
6669
|
+
resultRef: string().min(1),
|
|
6670
|
+
status: literal("failure_published")
|
|
7675
6671
|
}),
|
|
7676
6672
|
strictObject({
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
6673
|
+
deadlineAtMs: number().int().nonnegative(),
|
|
6674
|
+
nextPublicationRetryAtMs: number().int().nonnegative(),
|
|
6675
|
+
ok: literal(true),
|
|
6676
|
+
publicationErrorCode: string().min(1),
|
|
6677
|
+
reasonCode: runtimeTransportPreExecutionHandoffReasonCodeSchema,
|
|
6678
|
+
resultRef: string().min(1),
|
|
6679
|
+
status: literal("failure_publication_retry_scheduled")
|
|
6680
|
+
}),
|
|
6681
|
+
strictObject({
|
|
6682
|
+
deadlineAtMs: number().int().nonnegative(),
|
|
6683
|
+
ok: literal(true),
|
|
6684
|
+
reasonCode: runtimeTransportPreExecutionHandoffReasonCodeSchema,
|
|
6685
|
+
status: literal("handoff_recovered")
|
|
6686
|
+
}),
|
|
6687
|
+
strictObject({
|
|
6688
|
+
deadlineAtMs: number().int().nonnegative(),
|
|
6689
|
+
ok: literal(true),
|
|
6690
|
+
reasonCode: runtimeTransportPreExecutionHandoffReasonCodeSchema,
|
|
6691
|
+
status: literal("legacy_evidence_only")
|
|
7680
6692
|
}),
|
|
7681
6693
|
strictObject({
|
|
7682
6694
|
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)
|
|
6695
|
+
reasonCode: string().min(1),
|
|
6696
|
+
status: literal("retry_later")
|
|
7766
6697
|
})
|
|
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
6698
|
]);
|
|
7816
|
-
const
|
|
7817
|
-
"
|
|
7818
|
-
"
|
|
7819
|
-
"
|
|
7820
|
-
"not_available"
|
|
6699
|
+
const runtimeTransportDispatchLifecyclePhaseSchema = enumFactory([
|
|
6700
|
+
"accepted_local",
|
|
6701
|
+
"running",
|
|
6702
|
+
"completed_local"
|
|
7821
6703
|
]);
|
|
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)
|
|
6704
|
+
const runtimeTransportAgentControllerConversationOccupancySchema = strictObject({
|
|
6705
|
+
agentControllerConversationId: string().trim().min(1),
|
|
6706
|
+
contractVersion: literal(1),
|
|
6707
|
+
state: enumFactory(["available", "occupied"])
|
|
7957
6708
|
});
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
|
|
7965
|
-
literal(404),
|
|
7966
|
-
literal(409),
|
|
7967
|
-
literal(500)
|
|
6709
|
+
const runtimeTransportDispatchLocalQueueWaitReasonSchema = enumFactory([
|
|
6710
|
+
"workspace_conflict",
|
|
6711
|
+
"agent_profile_concurrency",
|
|
6712
|
+
"agent_controller_maintenance",
|
|
6713
|
+
"global_concurrency",
|
|
6714
|
+
"local_execution_lane_concurrency",
|
|
6715
|
+
"none"
|
|
7968
6716
|
]);
|
|
7969
|
-
const
|
|
7970
|
-
|
|
7971
|
-
|
|
7972
|
-
|
|
6717
|
+
const runtimeTransportDispatchLocalQueueDiagnosticsSchema = strictObject({
|
|
6718
|
+
activeForLane: number().int().nonnegative(),
|
|
6719
|
+
activeGlobal: number().int().nonnegative(),
|
|
6720
|
+
globalConcurrency: number().int().positive(),
|
|
6721
|
+
queueDepth: number().int().nonnegative(),
|
|
6722
|
+
queueMax: number().int().positive(),
|
|
6723
|
+
queuePosition: union([number().int().positive(), nullFactory()]),
|
|
6724
|
+
status: enumFactory(["queued", "starting_runtime"]),
|
|
6725
|
+
waitReason: runtimeTransportDispatchLocalQueueWaitReasonSchema
|
|
7973
6726
|
});
|
|
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
|
-
|
|
6727
|
+
const runtimeTransportDispatchLifecycleRequestSchema = strictObject({
|
|
6728
|
+
v: literal(1),
|
|
6729
|
+
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.optional(),
|
|
6730
|
+
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema.optional(),
|
|
6731
|
+
dispatchId: string().min(1),
|
|
6732
|
+
attemptId: string().min(1),
|
|
6733
|
+
daemonSessionId: string().min(1),
|
|
6734
|
+
connectionGeneration: number().int().positive(),
|
|
6735
|
+
leaseEpoch: number().int().positive(),
|
|
6736
|
+
phase: runtimeTransportDispatchLifecyclePhaseSchema,
|
|
6737
|
+
lifecycleAtMs: number().int().nonnegative(),
|
|
6738
|
+
agentControllerConversationOccupancy: runtimeTransportAgentControllerConversationOccupancySchema.optional(),
|
|
6739
|
+
localQueue: runtimeTransportDispatchLocalQueueDiagnosticsSchema.optional()
|
|
6740
|
+
});
|
|
6741
|
+
const runtimeTransportDispatchRuntimeEvidencePhaseSchema = enumFactory([
|
|
6742
|
+
"received",
|
|
6743
|
+
"claimed",
|
|
6744
|
+
"runtime_started",
|
|
6745
|
+
"first_output",
|
|
6746
|
+
"completed",
|
|
6747
|
+
"failed"
|
|
6748
|
+
]);
|
|
6749
|
+
const runtimeTransportDispatchRuntimeEvidenceRequestSchema = strictObject({
|
|
6750
|
+
v: literal(1),
|
|
6751
|
+
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.optional(),
|
|
6752
|
+
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema.optional(),
|
|
6753
|
+
dispatchId: string().min(1),
|
|
6754
|
+
attemptId: string().min(1),
|
|
6755
|
+
executionIdentityEcho: runtimeTransportRuntimeEvidenceIdentityEchoSchema,
|
|
6756
|
+
daemonSessionId: string().min(1),
|
|
6757
|
+
connectionGeneration: number().int().positive(),
|
|
6758
|
+
leaseEpoch: number().int().positive(),
|
|
6759
|
+
phase: runtimeTransportDispatchRuntimeEvidencePhaseSchema,
|
|
6760
|
+
evidenceAtMs: number().int().nonnegative(),
|
|
6761
|
+
taskId: string().min(1),
|
|
6762
|
+
spaceId: string().min(1),
|
|
6763
|
+
sourceSignalId: string().min(1),
|
|
6764
|
+
sourceClientMessageId: string().min(1).max(200).nullable().optional(),
|
|
6765
|
+
targetProfileId: string().min(1),
|
|
6766
|
+
claimLeaseId: string().min(1).optional(),
|
|
6767
|
+
durationMs: number().finite().nonnegative().optional(),
|
|
6768
|
+
reasonCode: string().trim().min(1).max(160).optional(),
|
|
6769
|
+
errorName: string().trim().min(1).max(160).optional()
|
|
6770
|
+
});
|
|
6771
|
+
const localAgentToolActivityNameSchema = enumFactory([
|
|
6772
|
+
"agent_run_command",
|
|
6773
|
+
"agent_read_files",
|
|
6774
|
+
"agent_edit_files",
|
|
6775
|
+
"agent_search_files",
|
|
6776
|
+
"agent_search_web",
|
|
6777
|
+
"agent_open_webpage",
|
|
6778
|
+
"agent_delegate_task",
|
|
6779
|
+
"agent_work_with_image",
|
|
6780
|
+
"agent_use_tool"
|
|
6781
|
+
]);
|
|
6782
|
+
const localAgentStreamToolPartSchema = agentStreamToolPartSchema.extend({ toolName: localAgentToolActivityNameSchema });
|
|
6783
|
+
const runtimeTransportDispatchToolActivityRequestSchema = strictObject({
|
|
6784
|
+
v: literal(1),
|
|
6785
|
+
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.optional(),
|
|
6786
|
+
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema.optional(),
|
|
6787
|
+
dispatchId: string().min(1),
|
|
6788
|
+
attemptId: string().min(1),
|
|
6789
|
+
executionIdentityEcho: runtimeTransportRuntimeEvidenceIdentityEchoSchema,
|
|
6790
|
+
daemonSessionId: string().min(1),
|
|
6791
|
+
connectionGeneration: number().int().positive(),
|
|
6792
|
+
leaseEpoch: number().int().positive(),
|
|
6793
|
+
sequence: number().int().positive(),
|
|
6794
|
+
observedAtMs: number().int().nonnegative(),
|
|
6795
|
+
taskId: string().min(1),
|
|
6796
|
+
spaceId: string().min(1),
|
|
6797
|
+
sourceSignalId: string().min(1),
|
|
6798
|
+
targetProfileId: string().min(1),
|
|
6799
|
+
part: localAgentStreamToolPartSchema
|
|
8010
6800
|
});
|
|
8011
|
-
const
|
|
8012
|
-
|
|
8013
|
-
|
|
6801
|
+
const runtimeTransportDispatchReasoningRequestSchema = runtimeTransportDispatchToolActivityRequestSchema.omit({ part: true }).extend({
|
|
6802
|
+
thinkingSnapshot: string().max(LOCAL_AGENT_REASONING_MAX_CHARS),
|
|
6803
|
+
reasoningState: localAgentReasoningStateSchema
|
|
8014
6804
|
});
|
|
8015
|
-
const
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
6805
|
+
const runtimeTransportDispatchInteractionRequestSchema = strictObject({
|
|
6806
|
+
v: literal(1),
|
|
6807
|
+
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId,
|
|
6808
|
+
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema,
|
|
6809
|
+
dispatchId: string().min(1),
|
|
6810
|
+
attemptId: string().min(1),
|
|
6811
|
+
executionIdentityEcho: runtimeTransportRuntimeEvidenceIdentityEchoSchema,
|
|
6812
|
+
daemonSessionId: string().min(1),
|
|
6813
|
+
connectionGeneration: number().int().positive(),
|
|
6814
|
+
leaseEpoch: number().int().positive(),
|
|
6815
|
+
taskId: string().min(1),
|
|
6816
|
+
interaction: agentInteractionRequestSchema
|
|
8020
6817
|
});
|
|
8021
|
-
strictObject({
|
|
8022
|
-
|
|
8023
|
-
|
|
6818
|
+
const runtimeTransportDispatchInteractionResponseFramePayloadSchema = strictObject({
|
|
6819
|
+
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId,
|
|
6820
|
+
dispatchId: string().min(1),
|
|
6821
|
+
attemptId: string().min(1),
|
|
6822
|
+
interactionId: string().trim().min(1).max(256),
|
|
6823
|
+
response: agentInteractionResponseSchema,
|
|
6824
|
+
respondedAtMs: number().int().nonnegative()
|
|
8024
6825
|
});
|
|
8025
|
-
strictObject({
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
6826
|
+
const runtimeTransportDispatchInteractionDeliveredRequestSchema = strictObject({
|
|
6827
|
+
v: literal(1),
|
|
6828
|
+
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId,
|
|
6829
|
+
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema,
|
|
6830
|
+
dispatchId: string().min(1),
|
|
6831
|
+
attemptId: string().min(1),
|
|
6832
|
+
executionIdentityEcho: runtimeTransportRuntimeEvidenceIdentityEchoSchema,
|
|
6833
|
+
daemonSessionId: string().min(1),
|
|
6834
|
+
connectionGeneration: number().int().positive(),
|
|
6835
|
+
leaseEpoch: number().int().positive(),
|
|
6836
|
+
interactionId: string().trim().min(1).max(256),
|
|
6837
|
+
deliveredAtMs: number().int().nonnegative()
|
|
8029
6838
|
});
|
|
8030
6839
|
strictObject({
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
6840
|
+
v: literal(1),
|
|
6841
|
+
actorOwnerUserId: string().min(1),
|
|
6842
|
+
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId
|
|
8034
6843
|
});
|
|
6844
|
+
strictObject({ pendingInteraction: agentInteractionPendingSummarySchema.nullable() });
|
|
8035
6845
|
strictObject({
|
|
8036
|
-
|
|
8037
|
-
|
|
8038
|
-
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
additionalHumanProfileCreationEnabled: boolean()
|
|
6846
|
+
v: literal(1),
|
|
6847
|
+
actorOwnerUserId: string().min(1),
|
|
6848
|
+
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId,
|
|
6849
|
+
interactionId: string().trim().min(1).max(256),
|
|
6850
|
+
response: agentInteractionResponseSchema
|
|
8042
6851
|
});
|
|
8043
|
-
strictObject({
|
|
6852
|
+
const runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema = discriminatedUnion("status", [strictObject({
|
|
8044
6853
|
ok: literal(true),
|
|
8045
|
-
|
|
6854
|
+
status: enumFactory(["accepted", "already_resolved"]),
|
|
6855
|
+
respondedAtMs: number().int().nonnegative()
|
|
6856
|
+
}), strictObject({
|
|
6857
|
+
ok: literal(false),
|
|
6858
|
+
status: enumFactory([
|
|
6859
|
+
"expired",
|
|
6860
|
+
"interaction_mismatch",
|
|
6861
|
+
"not_found",
|
|
6862
|
+
"owner_mismatch",
|
|
6863
|
+
"response_invalid",
|
|
6864
|
+
"retry_later"
|
|
6865
|
+
]),
|
|
6866
|
+
message: string().trim().min(1).max(1e3)
|
|
6867
|
+
})]);
|
|
6868
|
+
const nullableLifecyclePhaseTimestampSchema = union([number().int().nonnegative(), nullFactory()]);
|
|
6869
|
+
const runtimeTransportDispatchLifecycleSnapshotSchema = strictObject({
|
|
6870
|
+
phase: enumFactory([
|
|
6871
|
+
"starting",
|
|
6872
|
+
"accepted_local",
|
|
6873
|
+
"running",
|
|
6874
|
+
"completed_local",
|
|
6875
|
+
"result_received"
|
|
6876
|
+
]),
|
|
6877
|
+
createdAtMs: number().int().nonnegative(),
|
|
6878
|
+
acceptedLocalAtMs: nullableLifecyclePhaseTimestampSchema,
|
|
6879
|
+
runningAtMs: nullableLifecyclePhaseTimestampSchema,
|
|
6880
|
+
completedLocalAtMs: nullableLifecyclePhaseTimestampSchema,
|
|
6881
|
+
lastLifecycleAtMs: number().int().nonnegative()
|
|
8046
6882
|
});
|
|
8047
|
-
|
|
8048
|
-
|
|
8049
|
-
|
|
6883
|
+
discriminatedUnion("state", [
|
|
6884
|
+
strictObject({
|
|
6885
|
+
state: literal("completed"),
|
|
6886
|
+
lifecycle: runtimeTransportDispatchLifecycleSnapshotSchema.optional(),
|
|
6887
|
+
taskResult: openMeldDaemonTaskResultEnvelopeSchema
|
|
6888
|
+
}),
|
|
6889
|
+
strictObject({
|
|
6890
|
+
state: literal("pending"),
|
|
6891
|
+
lifecycle: runtimeTransportDispatchLifecycleSnapshotSchema
|
|
6892
|
+
}),
|
|
6893
|
+
strictObject({
|
|
6894
|
+
state: literal("failed"),
|
|
6895
|
+
lifecycle: runtimeTransportDispatchLifecycleSnapshotSchema.optional(),
|
|
6896
|
+
reasonCode: runtimeTransportErrorCodeSchema
|
|
6897
|
+
})
|
|
6898
|
+
]);
|
|
6899
|
+
const runtimeTransportSubmitTaskResultRequestSchema = strictObject({
|
|
6900
|
+
v: literal(1),
|
|
6901
|
+
runtimeCoordinatorExecutionId: runtimeCoordinatorExecutionRecordSchema.shape.runtimeCoordinatorExecutionId.optional(),
|
|
6902
|
+
executionTokenEcho: runtimeCoordinatorExecutionTokenEchoSchema.optional(),
|
|
6903
|
+
dispatchId: string().min(1),
|
|
6904
|
+
attemptId: string().min(1).optional(),
|
|
6905
|
+
executionIdentityEcho: runtimeTransportResultIdentityEchoSchema,
|
|
6906
|
+
daemonSessionId: string().min(1),
|
|
6907
|
+
connectionGeneration: number().int().positive(),
|
|
6908
|
+
leaseEpoch: number().int().positive(),
|
|
6909
|
+
taskResult: openMeldDaemonTaskResultEnvelopeSchema
|
|
8050
6910
|
});
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
|
|
6911
|
+
discriminatedUnion("status", [
|
|
6912
|
+
strictObject({
|
|
6913
|
+
ok: literal(true),
|
|
6914
|
+
status: literal("accepted")
|
|
6915
|
+
}),
|
|
6916
|
+
strictObject({
|
|
6917
|
+
ok: literal(false),
|
|
6918
|
+
status: literal("review_required"),
|
|
6919
|
+
reasonCode: literal("space.agent_reply.context_changed")
|
|
6920
|
+
}),
|
|
6921
|
+
strictObject({
|
|
6922
|
+
ok: literal(false),
|
|
6923
|
+
status: literal("retry_later"),
|
|
6924
|
+
reasonCode: runtimeTransportErrorCodeSchema
|
|
6925
|
+
}),
|
|
6926
|
+
strictObject({
|
|
6927
|
+
ok: literal(false),
|
|
6928
|
+
status: literal("rejected_terminal"),
|
|
6929
|
+
reasonCode: runtimeTransportErrorCodeSchema
|
|
6930
|
+
})
|
|
6931
|
+
]);
|
|
6932
|
+
const runtimeTransportDispatchPreviewRequestSchema = strictObject({
|
|
6933
|
+
v: literal(1),
|
|
6934
|
+
dispatchId: string().min(1),
|
|
6935
|
+
attemptId: string().min(1),
|
|
6936
|
+
daemonSessionId: string().min(1),
|
|
6937
|
+
connectionGeneration: number().int().positive(),
|
|
6938
|
+
leaseEpoch: number().int().positive(),
|
|
6939
|
+
previewText: string().min(1).max(MAX_TEXT_LENGTH)
|
|
8054
6940
|
});
|
|
8055
|
-
strictObject({
|
|
8056
|
-
|
|
8057
|
-
|
|
6941
|
+
const runtimeTransportDispatchPreviewEndRequestSchema = strictObject({
|
|
6942
|
+
v: literal(1),
|
|
6943
|
+
dispatchId: string().min(1),
|
|
6944
|
+
attemptId: string().min(1),
|
|
6945
|
+
daemonSessionId: string().min(1),
|
|
6946
|
+
connectionGeneration: number().int().positive(),
|
|
6947
|
+
leaseEpoch: number().int().positive(),
|
|
6948
|
+
targetProfileName: string().min(1).max(64).optional()
|
|
8058
6949
|
});
|
|
8059
|
-
const
|
|
8060
|
-
|
|
8061
|
-
|
|
6950
|
+
const daemonStreamCodeSchema = enumFactory([
|
|
6951
|
+
"daemon.computer_file_access.read_policy",
|
|
6952
|
+
"daemon.computer_file_access.read_policy_result",
|
|
6953
|
+
"daemon.computer_file_access.update_policy",
|
|
6954
|
+
"daemon.computer_file_access.update_policy_result",
|
|
6955
|
+
"daemon.local_folder_picker.select_folders",
|
|
6956
|
+
"daemon.local_folder_picker.select_folders_result",
|
|
6957
|
+
"daemon.session.register",
|
|
6958
|
+
"daemon.session.heartbeat",
|
|
6959
|
+
"daemon.dispatch.deliver",
|
|
6960
|
+
"daemon.dispatch.lifecycle",
|
|
6961
|
+
"daemon.dispatch.runtime_evidence",
|
|
6962
|
+
"daemon.dispatch.tool_activity",
|
|
6963
|
+
"daemon.dispatch.reasoning",
|
|
6964
|
+
"daemon.reasoning.preferences",
|
|
6965
|
+
"daemon.dispatch.interaction_request",
|
|
6966
|
+
"daemon.dispatch.interaction_response",
|
|
6967
|
+
"daemon.dispatch.interaction_delivered",
|
|
6968
|
+
"daemon.dispatch.preview",
|
|
6969
|
+
"daemon.dispatch.preview_end",
|
|
6970
|
+
"daemon.dispatch.accepted",
|
|
6971
|
+
"daemon.dispatch.result",
|
|
6972
|
+
"daemon.route_catalog.changed",
|
|
6973
|
+
"daemon.local_agent_control.cancel",
|
|
6974
|
+
"daemon.local_agent_control.interrupt",
|
|
6975
|
+
"daemon.local_agent_control.fork_session",
|
|
6976
|
+
"daemon.local_agent_control.manage_installation",
|
|
6977
|
+
"daemon.local_agent_control.refresh_catalog",
|
|
6978
|
+
"daemon.local_agent_control.set_enabled",
|
|
6979
|
+
"daemon.local_agent_control.set_profile_workspace",
|
|
6980
|
+
"daemon.local_agent_control.result",
|
|
6981
|
+
"daemon.openmeld_tools_control.request",
|
|
6982
|
+
"daemon.openmeld_tools_control.result",
|
|
6983
|
+
"daemon.execution_recovery.resume_controller_conversation",
|
|
6984
|
+
"daemon.execution_recovery.resume_controller_conversation_result",
|
|
6985
|
+
"daemon.local_project_control.discover_projects",
|
|
6986
|
+
"daemon.local_project_control.discover_projects_result",
|
|
6987
|
+
"daemon.local_project_control.connect_candidate",
|
|
6988
|
+
"daemon.local_project_control.connect_candidate_result",
|
|
6989
|
+
"daemon.local_project_control.connect_declared_path",
|
|
6990
|
+
"daemon.local_project_control.connect_declared_path_result",
|
|
6991
|
+
"daemon.local_project_control.set_default_connection",
|
|
6992
|
+
"daemon.local_project_control.set_default_connection_result",
|
|
6993
|
+
"daemon.local_project_control.remove_connection",
|
|
6994
|
+
"daemon.local_project_control.remove_connection_result",
|
|
6995
|
+
"daemon.local_project_control.remove_missing_connections",
|
|
6996
|
+
"daemon.local_project_control.remove_missing_connections_result",
|
|
6997
|
+
"daemon.error"
|
|
6998
|
+
]);
|
|
6999
|
+
const daemonStreamFrameSchema = strictObject({
|
|
7000
|
+
v: literal(1),
|
|
7001
|
+
code: daemonStreamCodeSchema,
|
|
7002
|
+
payload: record(string(), unknown())
|
|
8062
7003
|
});
|
|
8063
|
-
const
|
|
7004
|
+
const daemonStreamErrorFrameCodeSchema = runtimeTransportErrorCodeSchema.or(union([literal("schema.invalid"), literal("schema.invalid.runtime_response")]));
|
|
8064
7005
|
strictObject({
|
|
8065
|
-
|
|
8066
|
-
|
|
7006
|
+
v: literal(1),
|
|
7007
|
+
code: literal("daemon.error"),
|
|
7008
|
+
payload: strictObject({
|
|
7009
|
+
code: daemonStreamErrorFrameCodeSchema,
|
|
7010
|
+
message: string().min(1)
|
|
7011
|
+
})
|
|
8067
7012
|
});
|
|
8068
7013
|
//#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 };
|
|
7014
|
+
export { agentTaskHandleSchema as $, spaceFileMimeTypeSchema as $n, DISPATCH_ACTIVITY_RETRYING_PURPOSE as $t, runtimeTransportOpenMeldToolsControlResultFramePayloadSchema as A, resolveSpaceMentionLabels as An, openMeldWebUrlSchema as Ar, spacePasswordSchema as At, isOriginalErrorSafeForMessageDetails as B, listSpaceFileRevisionsResponseSchema as Bn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE as Br, localFolderPickerDaemonFrameSchema as Bt, runtimeTransportLocalAgentControlInterruptFramePayloadSchema as C, executionContextAssignmentSchema as Cn, resolveMappedPublicAgentFailureReason as Cr, runtimeCoordinatorExecutionEventSchema as Ct, runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema as D, centerAgentInteractionSourceSchema as Dn, shouldPreferMappedPublicAgentFailureReason as Dr, spaceTraceExecutionIdentityProjectionSchema as Dt, runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema as E, conversationCompactionMarkerSchema as En, sanitizeDispatchErrorSummary as Er, runtimeTransportDeliveryExecutionIdentitySchema as Et, runtimeTransportResumeControllerConversationResultFramePayloadSchema as F, SPACE_FILE_RAW_UPLOAD_MAX_BYTES as Fn, startReplyReadinessSummarySchema as Fr, executeExecutionRecoveryResponseSchema as Ft, openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema as G, restoreSpaceFileEntryResponseSchema as Gn, profileErrorResponseSchema as Gr, localFolderPathSchema as Gt, openMeldDaemonProviderAccessEvidenceProviderSchema as H, publishSpaceComposerUploadResponseSchema as Hn, authProfileManagedRoleSchema as Hr, localFolderPickerHelperResultSchema as Ht, runtimeTransportRouteCatalogChangedFramePayloadSchema as I, createSpaceFolderResponseSchema as In, localAgentCatalogLaunchStatusSchema as Ir, inspectExecutionRecoveryResponseSchema as It, openMeldSpaceEgressActionSchema as J, spaceComposerUploadIdSchema as Jn, updateProfileResponseSchema as Jr, AGENT_REPLY_PREVIEW_END_PURPOSE as Jt, openMeldDaemonTaskResultPayloadSchema as K, restoreSpaceFileRevisionResponseSchema as Kn, updateAgentProfileDefaultProjectBodySchema as Kr, AGENT_REPLYING_END_PURPOSE as Kt, runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema as L, discardSpaceComposerUploadResponseSchema as Ln, localAgentCatalogSchema as Lr, agentProfileWorkRecoveryActionKindSchema as Lt, runtimeTransportRegisterSessionResponseSchema as M, spaceMentionLabelSourceSchema as Mn, START_BOUNDED_VERSION_SCHEMA as Mr, organizationProtectedInformationSchema as Mt, runtimeTransportRejectedProfileRegistrationSchema as N, SPACE_FILE_ERROR_CODES as Nn, START_ISO_DATE_TIME_SCHEMA as Nr, updateOrganizationInformationProtectionPolicyBodySchema as Nt, runtimeTransportLookupRouteOwnerServiceEvidenceSchema as O, spaceStatusSchema as On, computerSetupModeSchema as Or, SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE as Ot, runtimeTransportResumeControllerConversationFramePayloadSchema as P, SPACE_FILE_MAX_SIZE_BYTES as Pn, START_TRIMMED_NON_EMPTY_STRING_SCHEMA as Pr, executeExecutionRecoveryBodySchema as Pt, agentTaskCompletionObservationSchema as Q, spaceFileEntryIdSchema as Qn, resolveCommandAgentWorkActivity as Qr, DISPATCH_ACTIVITY_FAILED_PURPOSE as Qt, runtimeTransportSubmitTaskResultRequestSchema as R, getSpaceFileResponseSchema as Rn, localAgentCatalogWithLifecycleSchema as Rr, LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY as Rt, runtimeTransportLocalAgentControlForkSessionFramePayloadSchema as S, resolveMessageEnvelopeTargetField as Sn, spaceThreadSignalPlacementSchema as Sr, runtimeCoordinatorExecutionCreationDiagnosticSchema as St, runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema as T, executionContextTaskSchema as Tn, resolvePublicAgentFailureRecovery as Tr, runtimeCoordinatorExecutionTokenEnvelopeSchema as Tt, openMeldDaemonProviderAccessEvidenceSchema as U, readSpaceFileTextResponseSchema as Un, authProfileViewSchema as Ur, localFolderPickerRequestSchema as Ut, openMeldDaemonOriginalErrorSchema as V, listSpaceFilesResponseSchema as Vn, authProfileKindSchema as Vr, localFolderPickerHelperProtocolResultSchema as Vt, openMeldDaemonTaskResultEnvelopeWriteSchema as W, resolveSpaceFileMimeType as Wn, profileCapabilitiesResponseSchema as Wr, localFolderPickerResultSchema as Wt, agentDelegationSnapshotSchema as X, spaceFileClientMutationIdSchema as Xn, openMeldRequestContextSchema as Xr, CONVERSATION_CONTINUITY_WARNING_PURPOSE as Xt, spaceCallerContextSchema as Y, spaceFileActorSchema as Yn, openMeldProfileIdSchema as Yr, AGENT_REPLY_PREVIEW_PURPOSE as Yt, agentTaskCompletionConditionSchema as Z, spaceFileDescriptorSchema as Zn, MAX_TEXT_LENGTH as Zr, DISPATCH_ACTIVITY_DISPATCHING_PURPOSE as Zt, runtimeTransportErrorCodeSchema as _, collectCanonicalMentionTextFragments as _n, OPENMELD_REASONING_STREAM_HEADER as _r, agentInteractionRequestSchema as _t, localWakeRouteWorkingFolderObservationSchema as a, signalSystemNoticeDataSchema as an, updateSpaceFileEntryResponseSchema as ar, spaceContractFieldsSchema as at, runtimeTransportHeartbeatResponseSchema as b, messageEnvelopeSchema as bn, spaceThreadEventSchema as br, postSpaceWakeStopBodySchema as bt, runtimeTransportDispatchInteractionDeliveredRequestSchema as c, wakeDeviceWaitTargetSchema as cn, parseOptionalClientMessageId as cr, spaceAllowedActionsSchema as ct, runtimeTransportDispatchLifecycleRequestSchema as d, spaceAttachmentFileNameSchema as dn, spaceAgentStreamDeltaFrameSchema as dr, workingLanguageGuidanceSchema as dt, SPACE_MEMBER_JOIN_NOTICE_PURPOSE as en, spaceFileNameSchema as er, agentTaskTerminalOutcomeSchema as et, runtimeTransportDispatchPreviewEndRequestSchema as f, spaceAttachmentMimeTypeSchema as fn, spaceAgentStreamPartFrameSchema as fr, workingLanguageTagSchema as ft, runtimeTransportDispatchToolActivityRequestSchema as g, MESSAGE_MENTION_TYPE_VALUES as gn, LOCAL_AGENT_REASONING_MAX_CHARS as gr, agentInteractionPendingSummarySchema as gt, runtimeTransportDispatchRuntimeEvidenceRequestSchema as h, spaceMessageAttachmentsSchema as hn, spaceAgentStreamTerminalFrameSchema as hr, AGENT_INTERACTION_DEFAULT_TIMEOUT_MS as ht, localWakeRouteReportSchema as i, signalStatusDataSchema as in, trashSpaceFileEntryResponseSchema as ir, spaceWakeAgentTaskHandleSchema as it, runtimeTransportRegisterSessionRequestSchema as j, spaceMentionLabelSchema as jn, START_BOUNDED_ID_SCHEMA as jr, organizationInformationProtectionPolicyResponseSchema as jt, runtimeTransportOpenMeldToolsControlFramePayloadSchema as k, resolveSingleSpaceMentionLabels as kn, openMeldNavigationTargetSchema as kr, normalizeSpacePasswordText as kt, runtimeTransportDispatchInteractionRequestSchema as l, spaceAttachmentDescriptorSchema as ln, AGENT_STREAM_SNAPSHOT_MAX_CHARS as lr, spacePublicationModeSchema as lt, runtimeTransportDispatchReasoningRequestSchema as m, spaceMessageAttachmentSchema as mn, spaceAgentStreamSnapshotSchema as mr, targetWakeLifecycleIdentitySchema as mt, daemonExecutionCompatibilitySchema as n, SPACE_MENTION_REJECT_NOTICE_PURPOSE as nn, spaceMessageFileReferencesSchema as nr, buildAgentTaskKey as nt, runtimeTransportCapabilitiesSchema as o, signalTextDataSchema as on, uploadSpaceFileResponseSchema as or, spaceContractSchema as ot, runtimeTransportDispatchPreviewRequestSchema as p, spaceAttachmentSizeBytesSchema as pn, spaceAgentStreamPresenceSchema as pr, buildTargetWakeLifecycleId as pt, openMeldDaemonTaskResultProjectFailureContextSchema as q, spaceComposerUploadDescriptorSchema as qn, updateAgentProfileDefaultProjectResponseSchema as qr, AGENT_REPLYING_PURPOSE as qt, daemonStreamFrameSchema as r, sanitizeSignalTextPreview as rn, stageSpaceComposerUploadResponseSchema as rr, controllerAgentTaskHandleSchema as rt, runtimeTransportDeliverDispatchRequestSchema as s, signalTextSchema as sn, clientMessageIdSchema as sr, resultArchivePolicySchema as st, CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH as t, SPACE_MEMBER_REMOVE_NOTICE_PURPOSE as tn, spaceFileRevisionNumberSchema as tr, areAgentTaskTerminalOutcomesEqual as tt, runtimeTransportDispatchInteractionResponseFramePayloadSchema as u, spaceAttachmentDimensionSchema as un, agentStreamToolPartSchema as ur, spaceDispatchPolicySchema as ut, runtimeTransportForkAgentSessionResultSchema as v, formatCanonicalMentionLiteral as vn, localAgentReasoningPreferencesSchema as vr, agentInteractionResolutionSchema as vt, runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema as w, executionContextSelectionSchema as wn, resolvePublicAgentAvailabilityCopy as wr, runtimeCoordinatorExecutionRecordSchema as wt, runtimeTransportLocalAgentControlCancelFramePayloadSchema as x, normalizeMessageEnvelope as xn, spaceThreadSchema as xr, postSpaceWakeStopResponseSchema as xt, runtimeTransportHeartbeatRequestSchema as y, getSpaceMessageAddressingRelationSupportForTargetKind as yn, spaceThreadContextSchema as yr, agentInteractionResponseSchema as yt, OPENMELD_ORIGINAL_ERROR_MAX_LENGTH as z, isSpaceFileTextEditable as zn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE as zr, OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER as zt };
|
|
8070
7015
|
|
|
8071
|
-
//# sourceMappingURL=
|
|
7016
|
+
//# sourceMappingURL=runtime-transport-DryoU4rm.js.map
|