openmeld 0.3.205 → 0.3.207
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-me-membership-jhCNTfdl.js → add-me-membership-1JHMjZoR.js} +2 -2
- package/dist/{add-me-membership-jhCNTfdl.js.map → add-me-membership-1JHMjZoR.js.map} +1 -1
- package/dist/{agents-9krfNX_L.js → agents-CIDsThyG.js} +1041 -597
- package/dist/agents-CIDsThyG.js.map +1 -0
- package/dist/{api-client-foundation-BguumKMv.js → api-client-foundation-D6_NXHPV.js} +1 -1
- package/dist/{api-client-foundation-BMPOo4bG.js → api-client-foundation-DSurenul.js} +17 -7
- package/dist/api-client-foundation-DSurenul.js.map +1 -0
- package/dist/auth-session-B7QMhHwh.js +4 -0
- package/dist/{auth-session-wmefguut.js → auth-session-CO5XtFaq.js} +450 -128
- package/dist/auth-session-CO5XtFaq.js.map +1 -0
- package/dist/{base-url-C89TOpPV.js → base-url-BE3pFiOZ.js} +1 -1
- package/dist/{base-url-jWXPssF_.js → base-url-C6sHRNGu.js} +3 -3
- package/dist/{base-url-jWXPssF_.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-DKM3wO3V.js → command-Bzt9zgnI.js} +14 -12
- package/dist/{command-DKM3wO3V.js.map → command-Bzt9zgnI.js.map} +1 -1
- package/dist/computer-connection-BOl79Ftf.js +54 -0
- package/dist/computer-connection-BOl79Ftf.js.map +1 -0
- package/dist/computer-connection-review-BTOvbJYL.js +39 -0
- package/dist/computer-connection-review-BTOvbJYL.js.map +1 -0
- package/dist/{computer-setup-continuation-Dad0lLP9.js → computer-setup-continuation-DmKdhR5u.js} +4 -4
- package/dist/{computer-setup-continuation-Dad0lLP9.js.map → computer-setup-continuation-DmKdhR5u.js.map} +1 -1
- package/dist/control-plane-D9jDcbMZ.js +1211 -0
- package/dist/control-plane-D9jDcbMZ.js.map +1 -0
- package/dist/daemon-local-state-file-jOXuXrky.js +45 -0
- package/dist/daemon-local-state-file-jOXuXrky.js.map +1 -0
- package/dist/daemon-runtime-lease-Dd4hdHNo.js +50 -0
- package/dist/daemon-runtime-lease-Dd4hdHNo.js.map +1 -0
- package/dist/{daemon-runtime-lease-BG9g0a6Z.js → daemon-runtime-lease-y3n1K0-C.js} +1 -1
- package/dist/{daemon-service-manager-DqVtRLBY.js → daemon-service-manager-Bh0LoLed.js} +1 -1
- package/dist/{daemon-service-manager-BVipiZwK.js → daemon-service-manager-GiMCiTmu.js} +99 -85
- package/dist/daemon-service-manager-GiMCiTmu.js.map +1 -0
- package/dist/daemon-service-runtime-DQW9gSLT.js +3642 -0
- package/dist/daemon-service-runtime-DQW9gSLT.js.map +1 -0
- package/dist/{daemon-state-BwIoDq7_.js → daemon-state-C37ZtIZK.js} +11 -5
- package/dist/daemon-state-C37ZtIZK.js.map +1 -0
- package/dist/{dist-CkixulB-.js → dist-D-kJdWZE.js} +4272 -3990
- package/dist/dist-D-kJdWZE.js.map +1 -0
- package/dist/dist-DTG_Vqc7.js +4 -0
- package/dist/distribution-DY2fBeSW.js +72 -0
- package/dist/distribution-DY2fBeSW.js.map +1 -0
- package/dist/{elapsed-time-CjAPqg-B.js → elapsed-time-CcoM2R3N.js} +7 -4
- package/dist/{elapsed-time-CjAPqg-B.js.map → elapsed-time-CcoM2R3N.js.map} +1 -1
- package/dist/{installer-CZyyvNZr.js → installation-inventory-DJlwXa1q.js} +362 -361
- package/dist/installation-inventory-DJlwXa1q.js.map +1 -0
- package/dist/{lock-CvBnBcFK.js → lock-Dxp6o_t_.js} +56 -7
- package/dist/lock-Dxp6o_t_.js.map +1 -0
- package/dist/{openmeld-DVThrV4O.js → openmeld-CiL4AiB0.js} +232 -23
- package/dist/openmeld-CiL4AiB0.js.map +1 -0
- package/dist/openmeld-dev.js +1 -1
- package/dist/openmeld-environment-target-NtJYJe1D.js +256 -0
- package/dist/openmeld-environment-target-NtJYJe1D.js.map +1 -0
- package/dist/{openmeld-maintenance-worker-Cxp6fwB5.js → openmeld-maintenance-worker-DjdmRASI.js} +9 -8
- package/dist/{openmeld-maintenance-worker-Cxp6fwB5.js.map → openmeld-maintenance-worker-DjdmRASI.js.map} +1 -1
- package/dist/{openmeld-tools-update-coordinator-DJ65uI3O.js → openmeld-tools-update-coordinator-D9Skj8IE.js} +52 -4013
- package/dist/openmeld-tools-update-coordinator-D9Skj8IE.js.map +1 -0
- package/dist/openmeld.js +3 -3
- package/dist/{prepare-session-executor-aE1YARgn.js → prepare-session-executor-B0NtjHEL.js} +15 -13
- package/dist/{prepare-session-executor-aE1YARgn.js.map → prepare-session-executor-B0NtjHEL.js.map} +1 -1
- package/dist/{profiles-Dx3gaXgQ.js → runtime-transport-QIZmAo4-.js} +634 -1825
- package/dist/runtime-transport-QIZmAo4-.js.map +1 -0
- package/dist/service-account-authorization-Dt8kGvq8.js +56 -0
- package/dist/service-account-authorization-Dt8kGvq8.js.map +1 -0
- package/dist/service-control-capabilities-BU5F75zi.js +54 -0
- package/dist/service-control-capabilities-BU5F75zi.js.map +1 -0
- package/dist/service-control-capabilities-CzUB1ovW.js +4 -0
- package/dist/upgrade-DLECkjMt.js +4 -0
- package/dist/{upgrade-Bk8t5oav.js → upgrade-NxpTydHp.js} +6 -4
- package/dist/upgrade-NxpTydHp.js.map +1 -0
- package/dist/{urls-4D7CaXe3.js → urls-CY2uzH2-.js} +2 -1
- package/dist/urls-CY2uzH2-.js.map +1 -0
- package/package.json +2 -2
- package/dist/agents-9krfNX_L.js.map +0 -1
- package/dist/api-client-foundation-BMPOo4bG.js.map +0 -1
- package/dist/auth-session-CpPqG8Xz.js +0 -4
- package/dist/auth-session-wmefguut.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-BFbC-9BX.js +0 -4
- package/dist/dist-CkixulB-.js.map +0 -1
- package/dist/installer-CZyyvNZr.js.map +0 -1
- package/dist/lock-CvBnBcFK.js.map +0 -1
- package/dist/openmeld-DVThrV4O.js.map +0 -1
- package/dist/openmeld-tools-update-coordinator-DJ65uI3O.js.map +0 -1
- package/dist/profiles-Dx3gaXgQ.js.map +0 -1
- package/dist/upgrade-BFGKy5He.js +0 -4
- package/dist/upgrade-Bk8t5oav.js.map +0 -1
- package/dist/urls-4D7CaXe3.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { a as runtimeDispatchPolicySchema, c as agentControllerConversationRefSchema, h as agentControllerRefSchema, n as runtimeAgentControllerConversationIdMappingSpecSchema, o as runtimeStreamingModeSchema, s as runtimeTransportModeSchema } from "./controller-contract-pe3_Re-c.js";
|
|
4
|
+
import { $ as literal, A as localComponentsStatusSchema, Dt as trimmedStringFromUnknown, G as boolean, M as openMeldToolsControlCapabilitySchema, N as openMeldToolsControlRequestSchema, P as openMeldToolsControlResultSchema, St as profileWorkspaceModeSchema, Tt as nonEmptyTrimmedStringFromUnknown, U as ZodIssueCode, W as array, X as int, Y as enumFactory, Z as iso, _t as profileHandleSchema, at as record, b as dispatchExecutionSchema, c as openMeldDaemonManageLocalAgentInstallationPayloadSchema, ct as tuple, d as openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema, dt as unknown, f as openMeldDaemonSetProfileWorkspacePayloadSchema, g as skippedDaemonProfileSchema, gt as openMeldRuntimeProfileIdSchema, h as openMeldDaemonSyncRouteCatalogRequestPayloadSchema, l as openMeldDaemonManageLocalAgentInstallationRequestPayloadSchema, m as openMeldDaemonSyncRouteCatalogPayloadSchema, mt as agentProfileIdSchema, n as openMeldDaemonCancelPayloadSchema, nt as number, o as openMeldDaemonInterruptPayloadSchema, ot as strictObject, p as openMeldDaemonSetProfileWorkspaceRequestPayloadSchema, q as discriminatedUnion, r as openMeldDaemonCancelRequestPayloadSchema, s as openMeldDaemonInterruptRequestPayloadSchema, st as string, tt as nullFactory, u as openMeldDaemonSetLocalAgentEnabledPayloadSchema, ut as union, v as bootstrapTemplateFactsSchema, vt as profileKindSchema, xt as profileWorkingDirectorySchema, yt as profileLabelSchema } from "./control-plane-D9jDcbMZ.js";
|
|
4
5
|
import { r as daemonServiceLaneSchema } from "./service-contract-CRyDcIIf.js";
|
|
5
6
|
import * as z$1 from "zod/v4";
|
|
6
7
|
//#region ../../packages/schemas/dist/agent-recovery-action.js
|
|
@@ -423,8 +424,367 @@ function work(key) {
|
|
|
423
424
|
};
|
|
424
425
|
}
|
|
425
426
|
//#endregion
|
|
427
|
+
//#region ../../packages/schemas/dist/schemas/protocol/constants.js
|
|
428
|
+
const MAX_TEXT_LENGTH = 1e5;
|
|
429
|
+
//#endregion
|
|
430
|
+
//#region ../../packages/schemas/dist/schemas/daemon/profile-identity.js
|
|
431
|
+
const nonEmptyTextSchema = z$1.string().transform((value) => value.trim()).refine((value) => value.length > 0, "Expected non-blank text");
|
|
432
|
+
const OPENMELD_SYSTEM_PROFILE_ID = "openmeld-system";
|
|
433
|
+
const openMeldSystemProfileIdSchema = z$1.literal(OPENMELD_SYSTEM_PROFILE_ID);
|
|
434
|
+
const openMeldActorProfileIdSchema = z$1.union([openMeldRuntimeProfileIdSchema, openMeldSystemProfileIdSchema]);
|
|
435
|
+
const visitedProfileIdsSchema = z$1.array(openMeldRuntimeProfileIdSchema).max(256);
|
|
436
|
+
const openMeldProfileIdSchema = openMeldRuntimeProfileIdSchema;
|
|
437
|
+
z$1.strictObject({
|
|
438
|
+
openMeldProfileId: openMeldProfileIdSchema,
|
|
439
|
+
profileKind: profileKindSchema,
|
|
440
|
+
profileName: profileLabelSchema,
|
|
441
|
+
ownerUserId: nonEmptyTextSchema,
|
|
442
|
+
profileHandle: profileHandleSchema.optional(),
|
|
443
|
+
ownerName: profileLabelSchema.optional(),
|
|
444
|
+
agentControllerRef: nonEmptyTextSchema.optional(),
|
|
445
|
+
avatarUrl: z$1.string().min(1).optional()
|
|
446
|
+
});
|
|
447
|
+
const openMeldActorContextSchema = z$1.strictObject({
|
|
448
|
+
requestId: nonEmptyTextSchema,
|
|
449
|
+
callerPrincipalId: nonEmptyTextSchema.optional(),
|
|
450
|
+
openMeldProfileId: openMeldActorProfileIdSchema,
|
|
451
|
+
profileKind: profileKindSchema,
|
|
452
|
+
profileHandle: profileHandleSchema.optional(),
|
|
453
|
+
profileName: profileLabelSchema.optional(),
|
|
454
|
+
ownerUserId: nonEmptyTextSchema.optional(),
|
|
455
|
+
ownerName: profileLabelSchema.optional(),
|
|
456
|
+
avatarUrl: z$1.string().min(1).optional(),
|
|
457
|
+
agentControllerRef: nonEmptyTextSchema.optional(),
|
|
458
|
+
dispatchChainId: nonEmptyTextSchema.optional(),
|
|
459
|
+
autoRelayDepth: z$1.number().int().nonnegative().optional(),
|
|
460
|
+
visitedProfileIds: visitedProfileIdsSchema.optional(),
|
|
461
|
+
visitedProfileIdsHash: nonEmptyTextSchema.optional()
|
|
462
|
+
}).superRefine((value, ctx) => {
|
|
463
|
+
if (value.profileKind === "system") {
|
|
464
|
+
if (value.openMeldProfileId !== OPENMELD_SYSTEM_PROFILE_ID) ctx.addIssue({
|
|
465
|
+
code: "custom",
|
|
466
|
+
message: "system actor context must use openmeld-system as openMeldProfileId",
|
|
467
|
+
path: ["openMeldProfileId"]
|
|
468
|
+
});
|
|
469
|
+
return;
|
|
470
|
+
}
|
|
471
|
+
if (!openMeldRuntimeProfileIdSchema.safeParse(value.openMeldProfileId).success) ctx.addIssue({
|
|
472
|
+
code: "custom",
|
|
473
|
+
message: "human/agent actor context must use an auth-backed OpenMeld runtime profile ID",
|
|
474
|
+
path: ["openMeldProfileId"]
|
|
475
|
+
});
|
|
476
|
+
});
|
|
477
|
+
const openMeldRequestContextSchema = z$1.strictObject({
|
|
478
|
+
actorContext: openMeldActorContextSchema,
|
|
479
|
+
activeOrganizationId: nonEmptyTextSchema.optional(),
|
|
480
|
+
agentControllerConversationId: nonEmptyTextSchema.optional()
|
|
481
|
+
});
|
|
482
|
+
//#endregion
|
|
483
|
+
//#region ../../packages/schemas/dist/schemas/http/profiles.js
|
|
484
|
+
const ISO_DATE_TIME_SCHEMA$1 = iso.datetime({ offset: true });
|
|
485
|
+
const ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE = "profile.additional_human_profile_creation_disabled";
|
|
486
|
+
const ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE = "Creating additional profiles for people is currently unavailable. Use your default profile, or create an Agent.";
|
|
487
|
+
const profileErrorStatusSchema = union([
|
|
488
|
+
literal(400),
|
|
489
|
+
literal(404),
|
|
490
|
+
literal(409),
|
|
491
|
+
literal(500)
|
|
492
|
+
]);
|
|
493
|
+
const profileErrorResponseSchema = strictObject({
|
|
494
|
+
ok: literal(false),
|
|
495
|
+
code: string().min(1),
|
|
496
|
+
message: string().min(1)
|
|
497
|
+
});
|
|
498
|
+
profileErrorResponseSchema.extend({ status: profileErrorStatusSchema });
|
|
499
|
+
profileErrorResponseSchema.extend({
|
|
500
|
+
code: literal(ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE),
|
|
501
|
+
message: literal(ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE)
|
|
502
|
+
}).extend({ status: literal(409) });
|
|
503
|
+
const authProfileKindSchema = enumFactory(["human", "agent"]);
|
|
504
|
+
const authProfileStatusSchema = enumFactory(["active", "disabled"]);
|
|
505
|
+
const authProfileManagedRoleSchema = enumFactory(["openmeld_assistant", "center_agent"]);
|
|
506
|
+
const authProfileViewManagedRoleSchema = authProfileManagedRoleSchema.nullish().transform((value) => value ?? null);
|
|
507
|
+
const authProfileViewSchema = strictObject({
|
|
508
|
+
openMeldProfileId: string().min(1),
|
|
509
|
+
profileName: string().min(1),
|
|
510
|
+
profileHandle: string().min(1),
|
|
511
|
+
profileKind: authProfileKindSchema,
|
|
512
|
+
isDefault: boolean(),
|
|
513
|
+
status: authProfileStatusSchema,
|
|
514
|
+
ownerUserId: string().min(1).nullable(),
|
|
515
|
+
organizationId: string().min(1).nullable().optional(),
|
|
516
|
+
ownerName: string().min(1).optional(),
|
|
517
|
+
avatarUrl: string().min(1).optional(),
|
|
518
|
+
source: string().min(1),
|
|
519
|
+
managedRole: authProfileViewManagedRoleSchema,
|
|
520
|
+
defaultProjectId: string().trim().min(1).nullable().optional(),
|
|
521
|
+
createdByUserId: string().min(1).nullable(),
|
|
522
|
+
creationActorProfileId: string().min(1).nullable().optional(),
|
|
523
|
+
creatorProfileId: string().min(1).nullable(),
|
|
524
|
+
lastUsedAt: ISO_DATE_TIME_SCHEMA$1.nullable(),
|
|
525
|
+
createdAt: ISO_DATE_TIME_SCHEMA$1,
|
|
526
|
+
updatedAt: ISO_DATE_TIME_SCHEMA$1
|
|
527
|
+
}).superRefine((profile, context) => {
|
|
528
|
+
if (profile.defaultProjectId === void 0 || profile.profileKind === "agent" && profile.managedRole === null) return;
|
|
529
|
+
context.addIssue({
|
|
530
|
+
code: "custom",
|
|
531
|
+
message: "Default Project is only available for ordinary Agent Profiles.",
|
|
532
|
+
path: ["defaultProjectId"]
|
|
533
|
+
});
|
|
534
|
+
});
|
|
535
|
+
const updateAgentProfileDefaultProjectBodySchema = strictObject({
|
|
536
|
+
expectedOrganizationId: string().trim().min(1),
|
|
537
|
+
defaultProjectId: string().trim().min(1).nullable()
|
|
538
|
+
});
|
|
539
|
+
const updateAgentProfileDefaultProjectRouteParamsShape = { agentProfileId: string().trim().min(1) };
|
|
540
|
+
strictObject(updateAgentProfileDefaultProjectRouteParamsShape);
|
|
541
|
+
updateAgentProfileDefaultProjectBodySchema.extend({
|
|
542
|
+
agentProfileId: updateAgentProfileDefaultProjectRouteParamsShape.agentProfileId,
|
|
543
|
+
context: openMeldRequestContextSchema
|
|
544
|
+
});
|
|
545
|
+
strictObject({
|
|
546
|
+
profileName: string().trim().min(1),
|
|
547
|
+
creatorProfileId: string().min(1).optional()
|
|
548
|
+
});
|
|
549
|
+
strictObject({
|
|
550
|
+
profileName: string().trim().min(1),
|
|
551
|
+
creatorProfileId: string().min(1).optional(),
|
|
552
|
+
idempotencyKey: string().trim().min(1).max(512).optional()
|
|
553
|
+
});
|
|
554
|
+
strictObject({
|
|
555
|
+
profileName: string().trim().min(1),
|
|
556
|
+
managedRole: authProfileManagedRoleSchema,
|
|
557
|
+
creatorProfileId: string().min(1).optional()
|
|
558
|
+
});
|
|
559
|
+
strictObject({
|
|
560
|
+
ok: literal(true),
|
|
561
|
+
profiles: array(authProfileViewSchema)
|
|
562
|
+
});
|
|
563
|
+
const profileCapabilitiesResponseSchema = strictObject({
|
|
564
|
+
ok: literal(true),
|
|
565
|
+
additionalHumanProfileCreationEnabled: boolean()
|
|
566
|
+
});
|
|
567
|
+
strictObject({
|
|
568
|
+
ok: literal(true),
|
|
569
|
+
profile: authProfileViewSchema
|
|
570
|
+
});
|
|
571
|
+
const createHumanProfileResponseSchema = strictObject({
|
|
572
|
+
ok: literal(true),
|
|
573
|
+
profile: authProfileViewSchema
|
|
574
|
+
});
|
|
575
|
+
const createAgentProfileResponseSchema = strictObject({
|
|
576
|
+
ok: literal(true),
|
|
577
|
+
profile: authProfileViewSchema
|
|
578
|
+
});
|
|
579
|
+
strictObject({
|
|
580
|
+
ok: literal(true),
|
|
581
|
+
profile: authProfileViewSchema
|
|
582
|
+
});
|
|
583
|
+
const updateProfileResponseSchema = strictObject({
|
|
584
|
+
ok: literal(true),
|
|
585
|
+
profile: authProfileViewSchema
|
|
586
|
+
});
|
|
587
|
+
const updateAgentProfileDefaultProjectResponseSchema = updateProfileResponseSchema;
|
|
588
|
+
const deleteProfileResponseSchema = strictObject({
|
|
589
|
+
ok: literal(true),
|
|
590
|
+
profile: authProfileViewSchema
|
|
591
|
+
});
|
|
592
|
+
createAgentProfileResponseSchema.refine((value) => value.profile.profileKind === "agent", "Expected an Agent Profile.");
|
|
593
|
+
createHumanProfileResponseSchema.refine((value) => value.profile.profileKind === "human", "Expected a Human Profile.");
|
|
594
|
+
deleteProfileResponseSchema.refine((value) => value.profile.profileKind === "agent", "Expected an Agent Profile.");
|
|
595
|
+
//#endregion
|
|
596
|
+
//#region ../../packages/schemas/dist/schemas/runtime/local-agent-catalog.js
|
|
597
|
+
const LOCAL_AGENT_CATALOG_BOUNDED_ID_SCHEMA = z$1.string().trim().min(1).max(256);
|
|
598
|
+
const LOCAL_AGENT_CATALOG_BOUNDED_LABEL_SCHEMA = z$1.string().trim().min(1).max(256);
|
|
599
|
+
const localAgentCatalogTargetKindSchema = z$1.enum(["builtin", "custom"]);
|
|
600
|
+
const localAgentCatalogLifecycleStatusSchema = z$1.enum(["active", "suspended"]);
|
|
601
|
+
const localAgentCatalogSelectableReasonSchema = z$1.enum([
|
|
602
|
+
"not_detected",
|
|
603
|
+
"not_supported_yet",
|
|
604
|
+
"needs_repair",
|
|
605
|
+
"custom_coming_soon"
|
|
606
|
+
]);
|
|
607
|
+
const localAgentCatalogLaunchStatusSchema = z$1.enum([
|
|
608
|
+
"ready",
|
|
609
|
+
"needs_choice",
|
|
610
|
+
"needs_repair",
|
|
611
|
+
"not_available"
|
|
612
|
+
]);
|
|
613
|
+
const localAgentCatalogEntryShape = {
|
|
614
|
+
agentId: LOCAL_AGENT_CATALOG_BOUNDED_ID_SCHEMA,
|
|
615
|
+
displayName: LOCAL_AGENT_CATALOG_BOUNDED_LABEL_SCHEMA,
|
|
616
|
+
targetKind: localAgentCatalogTargetKindSchema,
|
|
617
|
+
detected: z$1.boolean(),
|
|
618
|
+
enabled: z$1.boolean(),
|
|
619
|
+
launchStatus: localAgentCatalogLaunchStatusSchema,
|
|
620
|
+
selectable: z$1.boolean(),
|
|
621
|
+
selectableReason: z$1.union([localAgentCatalogSelectableReasonSchema, z$1.null()])
|
|
622
|
+
};
|
|
623
|
+
const localAgentCatalogEntrySchema = z$1.strictObject(localAgentCatalogEntryShape).superRefine(validateLocalAgentCatalogEntrySemantics);
|
|
624
|
+
const localAgentCatalogEntryWithLifecycleSchema = z$1.strictObject({
|
|
625
|
+
...localAgentCatalogEntryShape,
|
|
626
|
+
lifecycleStatus: localAgentCatalogLifecycleStatusSchema.default("active")
|
|
627
|
+
}).superRefine(validateLocalAgentCatalogEntrySemantics);
|
|
628
|
+
const localAgentCatalogSchema = createLocalAgentCatalogSchema(localAgentCatalogEntrySchema);
|
|
629
|
+
const localAgentCatalogWithLifecycleSchema = createLocalAgentCatalogSchema(localAgentCatalogEntryWithLifecycleSchema);
|
|
630
|
+
function createLocalAgentCatalogSchema(entrySchema) {
|
|
631
|
+
return z$1.strictObject({
|
|
632
|
+
totalBuiltins: z$1.number().int().min(0),
|
|
633
|
+
detectedSupported: z$1.number().int().min(0),
|
|
634
|
+
needsChoice: z$1.number().int().min(0),
|
|
635
|
+
needsRepair: z$1.number().int().min(0),
|
|
636
|
+
detectedNotSupportedYet: z$1.number().int().min(0),
|
|
637
|
+
notDetected: z$1.number().int().min(0),
|
|
638
|
+
entries: z$1.array(entrySchema)
|
|
639
|
+
}).superRefine(validateLocalAgentCatalogSummary);
|
|
640
|
+
}
|
|
641
|
+
function validateLocalAgentCatalogEntrySemantics(value, ctx) {
|
|
642
|
+
if (value.selectable && value.selectableReason !== null) ctx.addIssue({
|
|
643
|
+
code: "custom",
|
|
644
|
+
message: "selectableReason must be null when selectable is true",
|
|
645
|
+
path: ["selectableReason"]
|
|
646
|
+
});
|
|
647
|
+
if (!value.selectable && value.selectableReason === null) ctx.addIssue({
|
|
648
|
+
code: "custom",
|
|
649
|
+
message: "selectableReason must be present when selectable is false",
|
|
650
|
+
path: ["selectableReason"]
|
|
651
|
+
});
|
|
652
|
+
if (value.launchStatus === "needs_choice" && !(value.detected && value.targetKind === "builtin" && value.selectable)) ctx.addIssue({
|
|
653
|
+
code: "custom",
|
|
654
|
+
message: "needs_choice launchStatus only applies to detected selectable builtin entries",
|
|
655
|
+
path: ["launchStatus"]
|
|
656
|
+
});
|
|
657
|
+
if (value.launchStatus === "needs_repair" && !(value.detected && value.enabled && value.targetKind === "builtin" && value.selectable && value.selectableReason === null)) ctx.addIssue({
|
|
658
|
+
code: "custom",
|
|
659
|
+
message: "needs_repair launchStatus only applies to detected selectable builtin entries",
|
|
660
|
+
path: ["launchStatus"]
|
|
661
|
+
});
|
|
662
|
+
if (value.selectableReason === "not_detected" && value.detected) ctx.addIssue({
|
|
663
|
+
code: "custom",
|
|
664
|
+
message: "not_detected selectableReason requires detected to be false",
|
|
665
|
+
path: ["detected"]
|
|
666
|
+
});
|
|
667
|
+
if (value.selectableReason === "not_supported_yet" && (!value.detected || value.targetKind !== "builtin")) ctx.addIssue({
|
|
668
|
+
code: "custom",
|
|
669
|
+
message: "not_supported_yet selectableReason only applies to detected builtin entries",
|
|
670
|
+
path: ["selectableReason"]
|
|
671
|
+
});
|
|
672
|
+
if (value.selectableReason === "needs_repair" && (!value.detected || value.targetKind !== "builtin")) ctx.addIssue({
|
|
673
|
+
code: "custom",
|
|
674
|
+
message: "needs_repair selectableReason only applies to detected builtin entries",
|
|
675
|
+
path: ["selectableReason"]
|
|
676
|
+
});
|
|
677
|
+
if (value.selectableReason === "custom_coming_soon" && value.targetKind !== "custom") ctx.addIssue({
|
|
678
|
+
code: "custom",
|
|
679
|
+
message: "custom_coming_soon selectableReason only applies to custom entries",
|
|
680
|
+
path: ["selectableReason"]
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
function validateLocalAgentCatalogSummary(value, ctx) {
|
|
684
|
+
const builtinEntries = value.entries.filter((entry) => entry.targetKind === "builtin");
|
|
685
|
+
const detectedSupported = builtinEntries.filter((entry) => entry.detected && entry.launchStatus === "ready").length;
|
|
686
|
+
const needsChoice = builtinEntries.filter((entry) => entry.detected && entry.launchStatus === "needs_choice").length;
|
|
687
|
+
const detectedNotSupportedYet = builtinEntries.filter((entry) => entry.detected && entry.launchStatus === "not_available" && entry.selectableReason === "not_supported_yet").length;
|
|
688
|
+
const needsRepair = builtinEntries.filter((entry) => entry.detected && entry.launchStatus === "needs_repair").length;
|
|
689
|
+
const notDetected = builtinEntries.filter((entry) => !entry.detected).length;
|
|
690
|
+
const expectations = [
|
|
691
|
+
{
|
|
692
|
+
actual: builtinEntries.length,
|
|
693
|
+
expected: value.totalBuiltins,
|
|
694
|
+
label: "totalBuiltins",
|
|
695
|
+
path: ["totalBuiltins"]
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
actual: detectedSupported,
|
|
699
|
+
expected: value.detectedSupported,
|
|
700
|
+
label: "detectedSupported",
|
|
701
|
+
path: ["detectedSupported"]
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
actual: needsChoice,
|
|
705
|
+
expected: value.needsChoice,
|
|
706
|
+
label: "needsChoice",
|
|
707
|
+
path: ["needsChoice"]
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
actual: detectedNotSupportedYet,
|
|
711
|
+
expected: value.detectedNotSupportedYet,
|
|
712
|
+
label: "detectedNotSupportedYet",
|
|
713
|
+
path: ["detectedNotSupportedYet"]
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
actual: needsRepair,
|
|
717
|
+
expected: value.needsRepair,
|
|
718
|
+
label: "needsRepair",
|
|
719
|
+
path: ["needsRepair"]
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
actual: notDetected,
|
|
723
|
+
expected: value.notDetected,
|
|
724
|
+
label: "notDetected",
|
|
725
|
+
path: ["notDetected"]
|
|
726
|
+
}
|
|
727
|
+
];
|
|
728
|
+
for (const expectation of expectations) {
|
|
729
|
+
if (expectation.actual === expectation.expected) continue;
|
|
730
|
+
ctx.addIssue({
|
|
731
|
+
code: "custom",
|
|
732
|
+
message: `${expectation.label} must match the builtin entry summary`,
|
|
733
|
+
path: expectation.path
|
|
734
|
+
});
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
//#endregion
|
|
738
|
+
//#region ../../packages/schemas/dist/schemas/daemon/reply-readiness.js
|
|
739
|
+
const REPLY_READINESS_LEVEL_VALUES = [
|
|
740
|
+
"blocked",
|
|
741
|
+
"degraded",
|
|
742
|
+
"ready",
|
|
743
|
+
"unknown"
|
|
744
|
+
];
|
|
745
|
+
const REPLY_READINESS_REASON_CODE_VALUES = [
|
|
746
|
+
"service.not_installed",
|
|
747
|
+
"service.drifted",
|
|
748
|
+
"service.not_running",
|
|
749
|
+
"service.account_mismatch",
|
|
750
|
+
"service.auth_missing",
|
|
751
|
+
"service.auth_stale",
|
|
752
|
+
"dispatch.storage_not_ready",
|
|
753
|
+
"service.gateway_chain_unhealthy",
|
|
754
|
+
"profile.not_selected",
|
|
755
|
+
"profile.inactive",
|
|
756
|
+
"profile.unbound",
|
|
757
|
+
"controller.binding.disabled",
|
|
758
|
+
"projection.missing",
|
|
759
|
+
"controller.registry.disabled",
|
|
760
|
+
"controller.launch.choice_required",
|
|
761
|
+
"controller.launch.needs_repair",
|
|
762
|
+
"workspace.missing",
|
|
763
|
+
"workspace.invalid",
|
|
764
|
+
"runtime.adapter.unsupported",
|
|
765
|
+
"controller.bootstrap.failed",
|
|
766
|
+
"controller.gateway.unhealthy",
|
|
767
|
+
"local_agents.none_needed",
|
|
768
|
+
"route.offline",
|
|
769
|
+
"route.not_registered"
|
|
770
|
+
];
|
|
771
|
+
const replyReadinessLevelSchema = z$1.enum(REPLY_READINESS_LEVEL_VALUES);
|
|
772
|
+
const replyReadinessReasonCodeSchema = z$1.enum(REPLY_READINESS_REASON_CODE_VALUES);
|
|
773
|
+
//#endregion
|
|
774
|
+
//#region ../../packages/schemas/dist/schemas/start/shared.js
|
|
775
|
+
const START_ISO_DATE_TIME_SCHEMA = z$1.iso.datetime({ offset: true });
|
|
776
|
+
const START_TRIMMED_NON_EMPTY_STRING_SCHEMA = z$1.string().trim().min(1);
|
|
777
|
+
const START_BOUNDED_ID_SCHEMA = START_TRIMMED_NON_EMPTY_STRING_SCHEMA.max(256);
|
|
778
|
+
START_TRIMMED_NON_EMPTY_STRING_SCHEMA.max(256);
|
|
779
|
+
const START_BOUNDED_VERSION_SCHEMA = START_TRIMMED_NON_EMPTY_STRING_SCHEMA.max(128);
|
|
780
|
+
z$1.union([START_ISO_DATE_TIME_SCHEMA, z$1.null()]);
|
|
781
|
+
const startReplyReadinessSummarySchema = z$1.strictObject({
|
|
782
|
+
level: replyReadinessLevelSchema,
|
|
783
|
+
reasonCodes: z$1.array(replyReadinessReasonCodeSchema)
|
|
784
|
+
});
|
|
785
|
+
//#endregion
|
|
426
786
|
//#region ../../packages/schemas/dist/navigation-action.js
|
|
427
|
-
const nonEmptyStringSchema
|
|
787
|
+
const nonEmptyStringSchema = z$1.string().trim().min(1);
|
|
428
788
|
const computerSetupModeSchema = z$1.enum([
|
|
429
789
|
"setup",
|
|
430
790
|
"reconnect",
|
|
@@ -440,12 +800,12 @@ const computerSetupNavigationTargetSchema = z$1.discriminatedUnion("mode", [
|
|
|
440
800
|
mode: z$1.literal("setup")
|
|
441
801
|
}),
|
|
442
802
|
z$1.strictObject({
|
|
443
|
-
connectedComputerId: nonEmptyStringSchema
|
|
803
|
+
connectedComputerId: nonEmptyStringSchema,
|
|
444
804
|
kind: z$1.literal("computer_setup"),
|
|
445
805
|
mode: z$1.literal("reconnect")
|
|
446
806
|
}),
|
|
447
807
|
z$1.strictObject({
|
|
448
|
-
connectedComputerId: nonEmptyStringSchema
|
|
808
|
+
connectedComputerId: nonEmptyStringSchema,
|
|
449
809
|
kind: z$1.literal("computer_setup"),
|
|
450
810
|
mode: z$1.literal("update_service")
|
|
451
811
|
})
|
|
@@ -457,24 +817,24 @@ const openMeldNavigationTargetSchema = z$1.union([
|
|
|
457
817
|
}),
|
|
458
818
|
z$1.strictObject({
|
|
459
819
|
kind: z$1.literal("space"),
|
|
460
|
-
spaceId: nonEmptyStringSchema
|
|
820
|
+
spaceId: nonEmptyStringSchema
|
|
461
821
|
}),
|
|
462
822
|
z$1.strictObject({ kind: z$1.literal("projects") }),
|
|
463
823
|
z$1.strictObject({
|
|
464
824
|
kind: z$1.literal("project"),
|
|
465
|
-
projectId: nonEmptyStringSchema
|
|
825
|
+
projectId: nonEmptyStringSchema
|
|
466
826
|
}),
|
|
467
827
|
z$1.strictObject({ kind: z$1.literal("slack_identity_link") }),
|
|
468
828
|
z$1.strictObject({
|
|
469
|
-
connectToUserId: nonEmptyStringSchema
|
|
829
|
+
connectToUserId: nonEmptyStringSchema.optional(),
|
|
470
830
|
kind: z$1.literal("message_channel_identity_link"),
|
|
471
831
|
purpose: z$1.enum(["continue_request", "optional_setup"]),
|
|
472
|
-
requestedAction: nonEmptyStringSchema
|
|
832
|
+
requestedAction: nonEmptyStringSchema.max(160).optional()
|
|
473
833
|
}),
|
|
474
834
|
computerSetupNavigationTargetSchema
|
|
475
835
|
]);
|
|
476
836
|
const navigationActionSchema = z$1.strictObject({
|
|
477
|
-
label: nonEmptyStringSchema
|
|
837
|
+
label: nonEmptyStringSchema,
|
|
478
838
|
target: openMeldNavigationTargetSchema,
|
|
479
839
|
url: openMeldWebUrlSchema
|
|
480
840
|
});
|
|
@@ -1550,137 +1910,16 @@ function resolvePublicAgentFailureBody(body, targetName) {
|
|
|
1550
1910
|
return typeof body === "function" ? body(targetName) : body;
|
|
1551
1911
|
}
|
|
1552
1912
|
//#endregion
|
|
1553
|
-
//#region ../../packages/schemas/dist/schemas/protocol/constants.js
|
|
1554
|
-
const MAX_TEXT_LENGTH = 1e5;
|
|
1555
|
-
//#endregion
|
|
1556
|
-
//#region ../../packages/schemas/dist/schemas/protocol/shared.js
|
|
1557
|
-
const trimmedStringFromUnknown = (value) => String(value ?? "").trim();
|
|
1558
|
-
const nonEmptyTrimmedStringFromUnknown = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1));
|
|
1559
|
-
const finiteIntegerNumber = z$1.number().int().finite();
|
|
1560
|
-
const optionalBooleanQuerySchema = z$1.preprocess((value) => {
|
|
1561
|
-
if (value === void 0 || value === null || value === "") return;
|
|
1562
|
-
if (typeof value === "boolean") return value;
|
|
1563
|
-
const normalized = String(value).trim().toLowerCase();
|
|
1564
|
-
if (normalized === "true" || normalized === "1") return true;
|
|
1565
|
-
if (normalized === "false" || normalized === "0") return false;
|
|
1566
|
-
return value;
|
|
1567
|
-
}, z$1.boolean().optional());
|
|
1568
|
-
//#endregion
|
|
1569
|
-
//#region ../../packages/schemas/dist/schemas/protocol/profile.js
|
|
1570
|
-
const PROFILE_KIND_VALUES = [
|
|
1571
|
-
"human",
|
|
1572
|
-
"agent",
|
|
1573
|
-
"system"
|
|
1574
|
-
];
|
|
1575
|
-
const PROFILE_HANDLE_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/;
|
|
1576
|
-
const UUID_PROFILE_ID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
1577
|
-
const AGENT_PROFILE_ID_PATTERN = /^agt_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
1578
|
-
const normalizeOptionalProfileLabel = (value) => {
|
|
1579
|
-
const normalized = trimmedStringFromUnknown(value);
|
|
1580
|
-
if (normalized.length === 0) return;
|
|
1581
|
-
return normalized.slice(0, 64);
|
|
1582
|
-
};
|
|
1583
|
-
const normalizeOptionalProfileHandle = (value) => {
|
|
1584
|
-
const normalized = trimmedStringFromUnknown(value);
|
|
1585
|
-
if (normalized.length === 0) return;
|
|
1586
|
-
return profileHandleSchema.safeParse(normalized).success ? normalized : void 0;
|
|
1587
|
-
};
|
|
1588
|
-
const MAX_PROFILE_WORKING_DIRECTORY_LENGTH = 4096;
|
|
1589
|
-
const profileWorkspaceModeSchema = z$1.enum(["openmeld_managed", "custom"]);
|
|
1590
|
-
const profileWorkingDirectorySchema = z$1.string().min(1).max(MAX_PROFILE_WORKING_DIRECTORY_LENGTH).refine((value) => !value.includes("\0"), { message: "workingDirectory must not contain NUL bytes" });
|
|
1591
|
-
const normalizeOptionalWorkingDirectory = (value) => {
|
|
1592
|
-
if (typeof value !== "string") return;
|
|
1593
|
-
const parsed = profileWorkingDirectorySchema.safeParse(value);
|
|
1594
|
-
return parsed.success ? parsed.data : void 0;
|
|
1595
|
-
};
|
|
1596
|
-
const HTTPS_URL_PATTERN = /^https?:\/\//i;
|
|
1597
|
-
/**
|
|
1598
|
-
* Avatar URLs are a public identity field that travels with the Profile across
|
|
1599
|
-
* domains. Only http(s) URLs are accepted so the value is safe to render as an
|
|
1600
|
-
* `<img src>` on web clients (rejects javascript:/data: injection vectors).
|
|
1601
|
-
*/
|
|
1602
|
-
const normalizeOptionalAvatarUrl = (value) => {
|
|
1603
|
-
const normalized = trimmedStringFromUnknown(value);
|
|
1604
|
-
if (normalized.length === 0 || normalized.length > 2048) return;
|
|
1605
|
-
return HTTPS_URL_PATTERN.test(normalized) ? normalized : void 0;
|
|
1606
|
-
};
|
|
1607
|
-
/** Unknown or invalid kinds are normalized to "agent" for wire compatibility. */
|
|
1608
|
-
const profileKindWithFallbackSchema = z$1.preprocess((value) => {
|
|
1609
|
-
const parsed = z$1.enum(PROFILE_KIND_VALUES).safeParse(value);
|
|
1610
|
-
return parsed.success ? parsed.data : "agent";
|
|
1611
|
-
}, z$1.enum(PROFILE_KIND_VALUES));
|
|
1612
|
-
const profileKindSchema = z$1.enum(PROFILE_KIND_VALUES);
|
|
1613
|
-
const profileLabelSchema = z$1.string().min(1).max(64);
|
|
1614
|
-
const profileHandleSchema = z$1.string().min(1).max(128).regex(PROFILE_HANDLE_PATTERN);
|
|
1615
|
-
const genericProfileIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64));
|
|
1616
|
-
const uuidProfileIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64).regex(UUID_PROFILE_ID_PATTERN));
|
|
1617
|
-
const agentProfileIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64).regex(AGENT_PROFILE_ID_PATTERN));
|
|
1618
|
-
/**
|
|
1619
|
-
* Runtime OpenMeld profile IDs are auth-backed and follow these rules:
|
|
1620
|
-
* - human/system profiles use a UUID
|
|
1621
|
-
* - agent profiles use agt_<UUID>
|
|
1622
|
-
*
|
|
1623
|
-
* Generic test fixtures or legacy intermediary strings should not reuse this
|
|
1624
|
-
* schema unless they represent a real runtime profile identity.
|
|
1625
|
-
*/
|
|
1626
|
-
const openMeldRuntimeProfileIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64).refine((value) => UUID_PROFILE_ID_PATTERN.test(value) || AGENT_PROFILE_ID_PATTERN.test(value), "Invalid OpenMeld runtime profile ID"));
|
|
1627
|
-
/**
|
|
1628
|
-
* Generic wire/profile normalization rules:
|
|
1629
|
-
* - trims and validates profileId as a non-empty string
|
|
1630
|
-
* - defaults missing/invalid kind to "agent"
|
|
1631
|
-
* - truncates profileName/owner labels to max length
|
|
1632
|
-
* - preserves agent workingDirectory verbatim when it is a valid string
|
|
1633
|
-
* - keeps owner only for agent profiles
|
|
1634
|
-
*
|
|
1635
|
-
* This schema intentionally stays broader than auth-backed runtime IDs because
|
|
1636
|
-
* protocol/system messages may still use internal synthetic profile IDs such as
|
|
1637
|
-
* `openmeld-system`.
|
|
1638
|
-
*/
|
|
1639
|
-
const profileSchema = z$1.object({
|
|
1640
|
-
kind: profileKindWithFallbackSchema.optional(),
|
|
1641
|
-
profileId: genericProfileIdSchema,
|
|
1642
|
-
profileHandle: z$1.unknown().optional(),
|
|
1643
|
-
profileName: z$1.unknown().optional(),
|
|
1644
|
-
owner: z$1.unknown().optional(),
|
|
1645
|
-
ownerName: z$1.unknown().optional(),
|
|
1646
|
-
agentControllerRef: z$1.unknown().optional(),
|
|
1647
|
-
agentControllerConversationId: z$1.unknown().optional(),
|
|
1648
|
-
workingDirectory: z$1.unknown().optional(),
|
|
1649
|
-
avatarUrl: z$1.unknown().optional()
|
|
1650
|
-
}).transform((value) => {
|
|
1651
|
-
const kind = value.kind ?? "agent";
|
|
1652
|
-
const profileHandle = normalizeOptionalProfileHandle(value.profileHandle);
|
|
1653
|
-
const profileName = normalizeOptionalProfileLabel(value.profileName);
|
|
1654
|
-
const owner = kind === "agent" ? normalizeOptionalProfileLabel(value.owner) : void 0;
|
|
1655
|
-
const ownerName = kind === "agent" ? normalizeOptionalProfileLabel(value.ownerName) : void 0;
|
|
1656
|
-
const agentControllerRef = kind === "agent" ? normalizeOptionalProfileLabel(value.agentControllerRef) : void 0;
|
|
1657
|
-
const agentControllerConversationId = kind === "agent" ? normalizeOptionalProfileLabel(value.agentControllerConversationId) : void 0;
|
|
1658
|
-
const workingDirectory = kind === "agent" ? normalizeOptionalWorkingDirectory(value.workingDirectory) : void 0;
|
|
1659
|
-
const avatarUrl = normalizeOptionalAvatarUrl(value.avatarUrl);
|
|
1660
|
-
return {
|
|
1661
|
-
kind,
|
|
1662
|
-
profileId: value.profileId,
|
|
1663
|
-
...profileHandle ? { profileHandle } : {},
|
|
1664
|
-
...profileName ? { profileName } : {},
|
|
1665
|
-
...owner ? { owner } : {},
|
|
1666
|
-
...ownerName ? { ownerName } : {},
|
|
1667
|
-
...agentControllerRef ? { agentControllerRef } : {},
|
|
1668
|
-
...agentControllerConversationId ? { agentControllerConversationId } : {},
|
|
1669
|
-
...workingDirectory ? { workingDirectory } : {},
|
|
1670
|
-
...avatarUrl ? { avatarUrl } : {}
|
|
1671
|
-
};
|
|
1672
|
-
});
|
|
1673
|
-
//#endregion
|
|
1674
1913
|
//#region ../../packages/schemas/dist/schemas/space-mesh/space-thread.js
|
|
1675
|
-
const ISO_DATE_TIME_SCHEMA
|
|
1914
|
+
const ISO_DATE_TIME_SCHEMA = z$1.iso.datetime({ offset: true });
|
|
1676
1915
|
const spaceThreadIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64).regex(/^thr_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/u));
|
|
1677
1916
|
const spaceThreadSchema = z$1.strictObject({
|
|
1678
1917
|
threadId: spaceThreadIdSchema,
|
|
1679
1918
|
spaceId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)),
|
|
1680
1919
|
rootSignalId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)),
|
|
1681
1920
|
createdByProfileId: openMeldRuntimeProfileIdSchema,
|
|
1682
|
-
createdAt: ISO_DATE_TIME_SCHEMA
|
|
1683
|
-
updatedAt: ISO_DATE_TIME_SCHEMA
|
|
1921
|
+
createdAt: ISO_DATE_TIME_SCHEMA,
|
|
1922
|
+
updatedAt: ISO_DATE_TIME_SCHEMA
|
|
1684
1923
|
});
|
|
1685
1924
|
const spaceThreadContextSchema = z$1.strictObject({
|
|
1686
1925
|
threadId: spaceThreadIdSchema,
|
|
@@ -1691,7 +1930,7 @@ const spaceThreadSignalPlacementSchema = z$1.strictObject({
|
|
|
1691
1930
|
threadId: spaceThreadIdSchema,
|
|
1692
1931
|
signalId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)),
|
|
1693
1932
|
placement: spaceThreadSignalPlacementKindSchema,
|
|
1694
|
-
createdAt: ISO_DATE_TIME_SCHEMA
|
|
1933
|
+
createdAt: ISO_DATE_TIME_SCHEMA
|
|
1695
1934
|
});
|
|
1696
1935
|
const spaceThreadEventTypeSchema = z$1.enum(["created"]);
|
|
1697
1936
|
const spaceThreadEventSchema = z$1.strictObject({
|
|
@@ -1700,63 +1939,10 @@ const spaceThreadEventSchema = z$1.strictObject({
|
|
|
1700
1939
|
eventType: spaceThreadEventTypeSchema,
|
|
1701
1940
|
actorProfileId: openMeldRuntimeProfileIdSchema,
|
|
1702
1941
|
clientMutationId: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(200)),
|
|
1703
|
-
createdAt: ISO_DATE_TIME_SCHEMA
|
|
1942
|
+
createdAt: ISO_DATE_TIME_SCHEMA
|
|
1704
1943
|
});
|
|
1705
1944
|
const spaceThreadActionRefSchema = z$1.strictObject({ threadId: spaceThreadIdSchema });
|
|
1706
1945
|
//#endregion
|
|
1707
|
-
//#region ../../packages/schemas/dist/schemas/daemon/profile-identity.js
|
|
1708
|
-
const nonEmptyTextSchema = z$1.string().transform((value) => value.trim()).refine((value) => value.length > 0, "Expected non-blank text");
|
|
1709
|
-
const OPENMELD_SYSTEM_PROFILE_ID = "openmeld-system";
|
|
1710
|
-
const openMeldSystemProfileIdSchema = z$1.literal(OPENMELD_SYSTEM_PROFILE_ID);
|
|
1711
|
-
const openMeldActorProfileIdSchema = z$1.union([openMeldRuntimeProfileIdSchema, openMeldSystemProfileIdSchema]);
|
|
1712
|
-
const visitedProfileIdsSchema = z$1.array(openMeldRuntimeProfileIdSchema).max(256);
|
|
1713
|
-
const openMeldProfileIdSchema = openMeldRuntimeProfileIdSchema;
|
|
1714
|
-
z$1.strictObject({
|
|
1715
|
-
openMeldProfileId: openMeldProfileIdSchema,
|
|
1716
|
-
profileKind: profileKindSchema,
|
|
1717
|
-
profileName: profileLabelSchema,
|
|
1718
|
-
ownerUserId: nonEmptyTextSchema,
|
|
1719
|
-
profileHandle: profileHandleSchema.optional(),
|
|
1720
|
-
ownerName: profileLabelSchema.optional(),
|
|
1721
|
-
agentControllerRef: nonEmptyTextSchema.optional(),
|
|
1722
|
-
avatarUrl: z$1.string().min(1).optional()
|
|
1723
|
-
});
|
|
1724
|
-
const openMeldActorContextSchema = z$1.strictObject({
|
|
1725
|
-
requestId: nonEmptyTextSchema,
|
|
1726
|
-
callerPrincipalId: nonEmptyTextSchema.optional(),
|
|
1727
|
-
openMeldProfileId: openMeldActorProfileIdSchema,
|
|
1728
|
-
profileKind: profileKindSchema,
|
|
1729
|
-
profileHandle: profileHandleSchema.optional(),
|
|
1730
|
-
profileName: profileLabelSchema.optional(),
|
|
1731
|
-
ownerUserId: nonEmptyTextSchema.optional(),
|
|
1732
|
-
ownerName: profileLabelSchema.optional(),
|
|
1733
|
-
avatarUrl: z$1.string().min(1).optional(),
|
|
1734
|
-
agentControllerRef: nonEmptyTextSchema.optional(),
|
|
1735
|
-
dispatchChainId: nonEmptyTextSchema.optional(),
|
|
1736
|
-
autoRelayDepth: z$1.number().int().nonnegative().optional(),
|
|
1737
|
-
visitedProfileIds: visitedProfileIdsSchema.optional(),
|
|
1738
|
-
visitedProfileIdsHash: nonEmptyTextSchema.optional()
|
|
1739
|
-
}).superRefine((value, ctx) => {
|
|
1740
|
-
if (value.profileKind === "system") {
|
|
1741
|
-
if (value.openMeldProfileId !== OPENMELD_SYSTEM_PROFILE_ID) ctx.addIssue({
|
|
1742
|
-
code: "custom",
|
|
1743
|
-
message: "system actor context must use openmeld-system as openMeldProfileId",
|
|
1744
|
-
path: ["openMeldProfileId"]
|
|
1745
|
-
});
|
|
1746
|
-
return;
|
|
1747
|
-
}
|
|
1748
|
-
if (!openMeldRuntimeProfileIdSchema.safeParse(value.openMeldProfileId).success) ctx.addIssue({
|
|
1749
|
-
code: "custom",
|
|
1750
|
-
message: "human/agent actor context must use an auth-backed OpenMeld runtime profile ID",
|
|
1751
|
-
path: ["openMeldProfileId"]
|
|
1752
|
-
});
|
|
1753
|
-
});
|
|
1754
|
-
const openMeldRequestContextSchema = z$1.strictObject({
|
|
1755
|
-
actorContext: openMeldActorContextSchema,
|
|
1756
|
-
activeOrganizationId: nonEmptyTextSchema.optional(),
|
|
1757
|
-
agentControllerConversationId: nonEmptyTextSchema.optional()
|
|
1758
|
-
});
|
|
1759
|
-
//#endregion
|
|
1760
1946
|
//#region ../../packages/schemas/dist/schemas/http/local-agent-reasoning.js
|
|
1761
1947
|
const OPENMELD_REASONING_STREAM_HEADER = "x-openmeld-reasoning-stream";
|
|
1762
1948
|
const LOCAL_AGENT_REASONING_MAX_CHARS = 8192;
|
|
@@ -2127,264 +2313,6 @@ const parseOptionalClientMessageId = (value) => {
|
|
|
2127
2313
|
return parsed.success ? parsed.data : null;
|
|
2128
2314
|
};
|
|
2129
2315
|
//#endregion
|
|
2130
|
-
//#region ../../packages/schemas/dist/lazy-zod.js
|
|
2131
|
-
const NEVER = z$1.NEVER;
|
|
2132
|
-
const ZodIssueCode = z$1.ZodIssueCode;
|
|
2133
|
-
const DEFERRED_SCHEMA_METHODS = /* @__PURE__ */ new Set([
|
|
2134
|
-
"and",
|
|
2135
|
-
"array",
|
|
2136
|
-
"base64",
|
|
2137
|
-
"base64url",
|
|
2138
|
-
"catch",
|
|
2139
|
-
"catchall",
|
|
2140
|
-
"check",
|
|
2141
|
-
"cidrv4",
|
|
2142
|
-
"cidrv6",
|
|
2143
|
-
"clone",
|
|
2144
|
-
"cuid",
|
|
2145
|
-
"cuid2",
|
|
2146
|
-
"date",
|
|
2147
|
-
"datetime",
|
|
2148
|
-
"default",
|
|
2149
|
-
"duration",
|
|
2150
|
-
"e164",
|
|
2151
|
-
"email",
|
|
2152
|
-
"emoji",
|
|
2153
|
-
"endsWith",
|
|
2154
|
-
"exactOptional",
|
|
2155
|
-
"exclude",
|
|
2156
|
-
"extend",
|
|
2157
|
-
"extract",
|
|
2158
|
-
"gt",
|
|
2159
|
-
"gte",
|
|
2160
|
-
"guid",
|
|
2161
|
-
"includes",
|
|
2162
|
-
"input",
|
|
2163
|
-
"int",
|
|
2164
|
-
"ipv4",
|
|
2165
|
-
"ipv6",
|
|
2166
|
-
"jwt",
|
|
2167
|
-
"keyof",
|
|
2168
|
-
"ksuid",
|
|
2169
|
-
"length",
|
|
2170
|
-
"loose",
|
|
2171
|
-
"lowercase",
|
|
2172
|
-
"lt",
|
|
2173
|
-
"lte",
|
|
2174
|
-
"max",
|
|
2175
|
-
"merge",
|
|
2176
|
-
"mime",
|
|
2177
|
-
"min",
|
|
2178
|
-
"multipleOf",
|
|
2179
|
-
"nanoid",
|
|
2180
|
-
"negative",
|
|
2181
|
-
"nonempty",
|
|
2182
|
-
"nonnegative",
|
|
2183
|
-
"nonoptional",
|
|
2184
|
-
"nonpositive",
|
|
2185
|
-
"normalize",
|
|
2186
|
-
"nullable",
|
|
2187
|
-
"nullish",
|
|
2188
|
-
"omit",
|
|
2189
|
-
"optional",
|
|
2190
|
-
"or",
|
|
2191
|
-
"output",
|
|
2192
|
-
"overwrite",
|
|
2193
|
-
"partial",
|
|
2194
|
-
"passthrough",
|
|
2195
|
-
"pick",
|
|
2196
|
-
"pipe",
|
|
2197
|
-
"positive",
|
|
2198
|
-
"prefault",
|
|
2199
|
-
"readonly",
|
|
2200
|
-
"refine",
|
|
2201
|
-
"regex",
|
|
2202
|
-
"removeCatch",
|
|
2203
|
-
"removeDefault",
|
|
2204
|
-
"required",
|
|
2205
|
-
"rest",
|
|
2206
|
-
"safe",
|
|
2207
|
-
"safeExtend",
|
|
2208
|
-
"size",
|
|
2209
|
-
"slugify",
|
|
2210
|
-
"startsWith",
|
|
2211
|
-
"step",
|
|
2212
|
-
"strict",
|
|
2213
|
-
"strip",
|
|
2214
|
-
"superRefine",
|
|
2215
|
-
"time",
|
|
2216
|
-
"toLowerCase",
|
|
2217
|
-
"toUpperCase",
|
|
2218
|
-
"transform",
|
|
2219
|
-
"trim",
|
|
2220
|
-
"ulid",
|
|
2221
|
-
"unwrap",
|
|
2222
|
-
"uppercase",
|
|
2223
|
-
"url",
|
|
2224
|
-
"uuid",
|
|
2225
|
-
"uuidv4",
|
|
2226
|
-
"uuidv6",
|
|
2227
|
-
"uuidv7",
|
|
2228
|
-
"with",
|
|
2229
|
-
"xid"
|
|
2230
|
-
]);
|
|
2231
|
-
const SELF_RETURNING_METHODS = /* @__PURE__ */ new Set(["brand", "finite"]);
|
|
2232
|
-
const UNHANDLED_PROPERTY = Symbol("unhandled lazy Zod property");
|
|
2233
|
-
const globalRegistry = z$1.globalRegistry;
|
|
2234
|
-
function lazySchema(createSchema) {
|
|
2235
|
-
let schema;
|
|
2236
|
-
let proxy;
|
|
2237
|
-
const target = Object.create(null);
|
|
2238
|
-
let targetIsMaterialized = false;
|
|
2239
|
-
const resolveSchema = () => {
|
|
2240
|
-
schema ??= createSchema();
|
|
2241
|
-
return schema;
|
|
2242
|
-
};
|
|
2243
|
-
const readResolvedProperty = (property) => {
|
|
2244
|
-
const resolved = resolveSchema();
|
|
2245
|
-
const value = Reflect.get(resolved, property, resolved);
|
|
2246
|
-
return typeof value === "function" ? value.bind(resolved) : value;
|
|
2247
|
-
};
|
|
2248
|
-
const deferSchemaMethod = (property, args) => lazySchema(() => {
|
|
2249
|
-
const resolved = resolveSchema();
|
|
2250
|
-
const method = Reflect.get(resolved, property, resolved);
|
|
2251
|
-
if (typeof method !== "function") throw new TypeError(`Lazy Zod property ${String(property)} is not callable`);
|
|
2252
|
-
const result = Reflect.apply(method, resolved, args);
|
|
2253
|
-
if (!(result instanceof z$1.ZodType)) throw new TypeError(`Lazy Zod method ${String(property)} did not return a schema`);
|
|
2254
|
-
return result;
|
|
2255
|
-
});
|
|
2256
|
-
const materializeTarget = () => {
|
|
2257
|
-
const resolved = resolveSchema();
|
|
2258
|
-
if (targetIsMaterialized) return resolved;
|
|
2259
|
-
Reflect.setPrototypeOf(target, Reflect.getPrototypeOf(resolved));
|
|
2260
|
-
for (const property of Reflect.ownKeys(resolved)) {
|
|
2261
|
-
const descriptor = Reflect.getOwnPropertyDescriptor(resolved, property);
|
|
2262
|
-
if (descriptor) Reflect.defineProperty(target, property, descriptor);
|
|
2263
|
-
}
|
|
2264
|
-
targetIsMaterialized = true;
|
|
2265
|
-
return resolved;
|
|
2266
|
-
};
|
|
2267
|
-
const readSpecialProperty = (property) => {
|
|
2268
|
-
switch (property) {
|
|
2269
|
-
case "description": {
|
|
2270
|
-
const metadata = globalRegistry.get(proxy);
|
|
2271
|
-
return metadata && typeof metadata === "object" ? Reflect.get(metadata, "description") : void 0;
|
|
2272
|
-
}
|
|
2273
|
-
case "apply": return (operation) => operation(proxy);
|
|
2274
|
-
case "register": return (registry, ...metadata) => {
|
|
2275
|
-
registry.add(proxy, ...metadata);
|
|
2276
|
-
return proxy;
|
|
2277
|
-
};
|
|
2278
|
-
case "meta": return (...metadata) => {
|
|
2279
|
-
if (metadata.length === 0) return globalRegistry.get(proxy);
|
|
2280
|
-
const registered = deferSchemaMethod(property, withoutRegistryIdentity(metadata));
|
|
2281
|
-
globalRegistry.add(registered, ...metadata);
|
|
2282
|
-
return registered;
|
|
2283
|
-
};
|
|
2284
|
-
case "describe": return (description) => {
|
|
2285
|
-
const described = deferSchemaMethod(property, [description]);
|
|
2286
|
-
globalRegistry.add(described, { description });
|
|
2287
|
-
return described;
|
|
2288
|
-
};
|
|
2289
|
-
case "toJSONSchema": return (...args) => Reflect.apply(z$1.toJSONSchema, z$1, [proxy, ...args]);
|
|
2290
|
-
default: return UNHANDLED_PROPERTY;
|
|
2291
|
-
}
|
|
2292
|
-
};
|
|
2293
|
-
proxy = new Proxy(target, {
|
|
2294
|
-
deleteProperty(_target, property) {
|
|
2295
|
-
const deletedFromTarget = Reflect.deleteProperty(target, property);
|
|
2296
|
-
const deletedFromSchema = Reflect.deleteProperty(resolveSchema(), property);
|
|
2297
|
-
return deletedFromTarget && deletedFromSchema;
|
|
2298
|
-
},
|
|
2299
|
-
get(_target, property, receiver) {
|
|
2300
|
-
const specialProperty = readSpecialProperty(property);
|
|
2301
|
-
if (specialProperty !== UNHANDLED_PROPERTY) return specialProperty;
|
|
2302
|
-
if (SELF_RETURNING_METHODS.has(property)) return () => proxy;
|
|
2303
|
-
if (DEFERRED_SCHEMA_METHODS.has(property)) return (...args) => deferSchemaMethod(property, args);
|
|
2304
|
-
return Reflect.getOwnPropertyDescriptor(target, property) ? Reflect.get(target, property, receiver) : readResolvedProperty(property);
|
|
2305
|
-
},
|
|
2306
|
-
getOwnPropertyDescriptor(_target, property) {
|
|
2307
|
-
const targetDescriptor = Reflect.getOwnPropertyDescriptor(target, property);
|
|
2308
|
-
if (targetDescriptor || targetIsMaterialized) return targetDescriptor;
|
|
2309
|
-
const descriptor = Reflect.getOwnPropertyDescriptor(resolveSchema(), property);
|
|
2310
|
-
return descriptor ? {
|
|
2311
|
-
...descriptor,
|
|
2312
|
-
configurable: true
|
|
2313
|
-
} : void 0;
|
|
2314
|
-
},
|
|
2315
|
-
getPrototypeOf() {
|
|
2316
|
-
return targetIsMaterialized ? Reflect.getPrototypeOf(target) : Reflect.getPrototypeOf(resolveSchema());
|
|
2317
|
-
},
|
|
2318
|
-
has(_target, property) {
|
|
2319
|
-
return Reflect.has(target, property) || Reflect.has(resolveSchema(), property);
|
|
2320
|
-
},
|
|
2321
|
-
ownKeys() {
|
|
2322
|
-
if (targetIsMaterialized) return Reflect.ownKeys(target);
|
|
2323
|
-
return [.../* @__PURE__ */ new Set([...Reflect.ownKeys(target), ...Reflect.ownKeys(resolveSchema())])];
|
|
2324
|
-
},
|
|
2325
|
-
preventExtensions() {
|
|
2326
|
-
const resolved = materializeTarget();
|
|
2327
|
-
return Reflect.preventExtensions(resolved) && Reflect.preventExtensions(target);
|
|
2328
|
-
},
|
|
2329
|
-
set(_target, property, value) {
|
|
2330
|
-
const resolved = resolveSchema();
|
|
2331
|
-
if (!targetIsMaterialized) return Reflect.set(resolved, property, value);
|
|
2332
|
-
return Reflect.set(resolved, property, value) && Reflect.set(target, property, value);
|
|
2333
|
-
}
|
|
2334
|
-
});
|
|
2335
|
-
return proxy;
|
|
2336
|
-
}
|
|
2337
|
-
function withoutRegistryIdentity(metadata) {
|
|
2338
|
-
const [firstMetadata] = metadata;
|
|
2339
|
-
if (!(firstMetadata && typeof firstMetadata === "object" && "id" in firstMetadata)) return metadata;
|
|
2340
|
-
return [Object.fromEntries(Object.entries(firstMetadata).filter(([key]) => key !== "id")), ...metadata.slice(1)];
|
|
2341
|
-
}
|
|
2342
|
-
function snapshotFactoryArgument(value) {
|
|
2343
|
-
return Array.isArray(value) ? [...value] : value;
|
|
2344
|
-
}
|
|
2345
|
-
function lazyFactory(factory) {
|
|
2346
|
-
const invoke = factory;
|
|
2347
|
-
return ((...args) => {
|
|
2348
|
-
const declaredArgs = args.map(snapshotFactoryArgument);
|
|
2349
|
-
return lazySchema(() => invoke(...declaredArgs));
|
|
2350
|
-
});
|
|
2351
|
-
}
|
|
2352
|
-
const array = lazyFactory(z$1.array);
|
|
2353
|
-
const boolean = lazyFactory(z$1.boolean);
|
|
2354
|
-
const discriminatedUnion = lazyFactory(z$1.discriminatedUnion);
|
|
2355
|
-
const email = lazyFactory(z$1.email);
|
|
2356
|
-
const enumFactory = lazyFactory(z$1.enum);
|
|
2357
|
-
const int = lazyFactory(z$1.int);
|
|
2358
|
-
const literal = lazyFactory(z$1.literal);
|
|
2359
|
-
const neverFactory = lazyFactory(z$1.never);
|
|
2360
|
-
const nullFactory = lazyFactory(z$1.null);
|
|
2361
|
-
const number = lazyFactory(z$1.number);
|
|
2362
|
-
const object = lazyFactory(z$1.object);
|
|
2363
|
-
const preprocess = lazyFactory(z$1.preprocess);
|
|
2364
|
-
const record = lazyFactory(z$1.record);
|
|
2365
|
-
const strictObject = lazyFactory(z$1.strictObject);
|
|
2366
|
-
const string = lazyFactory(z$1.string);
|
|
2367
|
-
const tuple = lazyFactory(z$1.tuple);
|
|
2368
|
-
const union = lazyFactory(z$1.union);
|
|
2369
|
-
const undefinedFactory = lazyFactory(z$1.undefined);
|
|
2370
|
-
const unknown = lazyFactory(z$1.unknown);
|
|
2371
|
-
const url = lazyFactory(z$1.url);
|
|
2372
|
-
const coerce = {
|
|
2373
|
-
...z$1.coerce,
|
|
2374
|
-
bigint: lazyFactory(z$1.coerce.bigint),
|
|
2375
|
-
boolean: lazyFactory(z$1.coerce.boolean),
|
|
2376
|
-
date: lazyFactory(z$1.coerce.date),
|
|
2377
|
-
number: lazyFactory(z$1.coerce.number),
|
|
2378
|
-
string: lazyFactory(z$1.coerce.string)
|
|
2379
|
-
};
|
|
2380
|
-
const iso = {
|
|
2381
|
-
...z$1.iso,
|
|
2382
|
-
date: lazyFactory(z$1.iso.date),
|
|
2383
|
-
datetime: lazyFactory(z$1.iso.datetime),
|
|
2384
|
-
duration: lazyFactory(z$1.iso.duration),
|
|
2385
|
-
time: lazyFactory(z$1.iso.time)
|
|
2386
|
-
};
|
|
2387
|
-
//#endregion
|
|
2388
2316
|
//#region ../../packages/schemas/dist/schemas/http/space-files.js
|
|
2389
2317
|
const SPACE_FILE_MAX_SIZE_BYTES = 250 * 1024 * 1024;
|
|
2390
2318
|
const SPACE_FILE_RAW_UPLOAD_MAX_BYTES = 10 * 1024 * 1024;
|
|
@@ -3328,265 +3256,182 @@ const postedSignalTextMetaSchema = signalTextMetaSchema.omit({
|
|
|
3328
3256
|
editedAt: true,
|
|
3329
3257
|
recalledAt: true,
|
|
3330
3258
|
changedMessageId: true,
|
|
3331
|
-
agentActivity: true,
|
|
3332
|
-
agentWorkSummary: true,
|
|
3333
|
-
conversationCompaction: true
|
|
3334
|
-
}).extend({ deviceWait: z$1.never({ error: "Set deviceWait only at the top level of the message request." }).optional() }).superRefine(validateAuthoredSignalTextMeta);
|
|
3335
|
-
const systemEmittedSignalTextMetaSchema = signalTextMetaSchema.omit({
|
|
3336
|
-
agentActivity: true,
|
|
3337
|
-
agentWorkSummary: true
|
|
3338
|
-
}).superRefine(validateAuthoredSignalTextMeta);
|
|
3339
|
-
const addSignalTextMessageEnvelopeIssues = (input, context) => {
|
|
3340
|
-
if (!input.messageEnvelope) return;
|
|
3341
|
-
if (input.messageEnvelope.text !== input.text) context.addIssue({
|
|
3342
|
-
code: z$1.ZodIssueCode.custom,
|
|
3343
|
-
path: ["messageEnvelope", "text"],
|
|
3344
|
-
message: "messageEnvelope.text must match text"
|
|
3345
|
-
});
|
|
3346
|
-
if (input.replyTo?.signalId && input.messageEnvelope.replyToSignalId && input.replyTo.signalId !== input.messageEnvelope.replyToSignalId) context.addIssue({
|
|
3347
|
-
code: z$1.ZodIssueCode.custom,
|
|
3348
|
-
path: ["messageEnvelope", "replyToSignalId"],
|
|
3349
|
-
message: "messageEnvelope.replyToSignalId must match replyTo.signalId"
|
|
3350
|
-
});
|
|
3351
|
-
};
|
|
3352
|
-
const addSignalTextContentIssues = (input, context) => {
|
|
3353
|
-
if (input.text.length > 0 || (input.files?.length ?? 0) > 0 || (input.attachments?.length ?? 0) > 0) return;
|
|
3354
|
-
context.addIssue({
|
|
3355
|
-
code: z$1.ZodIssueCode.custom,
|
|
3356
|
-
path: ["text"],
|
|
3357
|
-
message: "A message must include text or at least one file"
|
|
3358
|
-
});
|
|
3359
|
-
};
|
|
3360
|
-
const buildSignalTextDataSchema = (metaSchema) => z$1.strictObject({
|
|
3361
|
-
text: signalTextContentSchema,
|
|
3362
|
-
deviceWait: wakeDeviceWaitSchema.optional(),
|
|
3363
|
-
attachments: spaceMessageAttachmentsSchema.optional(),
|
|
3364
|
-
files: spaceMessageFileReferencesSchema.optional(),
|
|
3365
|
-
messageEnvelope: messageEnvelopeSchema.optional(),
|
|
3366
|
-
replyTo: signalTextReplyToSchema.optional(),
|
|
3367
|
-
meta: metaSchema.optional()
|
|
3368
|
-
}).superRefine(addSignalTextContentIssues).superRefine(addSignalTextMessageEnvelopeIssues);
|
|
3369
|
-
const signalTextDataSchema = buildSignalTextDataSchema(signalTextMetaSchema);
|
|
3370
|
-
const signalTextSchema = z$1.object({
|
|
3371
|
-
type: z$1.literal("signal.text"),
|
|
3372
|
-
data: buildSignalTextDataSchema(postedSignalTextMetaSchema)
|
|
3373
|
-
});
|
|
3374
|
-
z$1.object({
|
|
3375
|
-
type: z$1.literal("signal.text"),
|
|
3376
|
-
data: buildSignalTextDataSchema(systemEmittedSignalTextMetaSchema)
|
|
3377
|
-
});
|
|
3378
|
-
z$1.strictObject({
|
|
3379
|
-
type: z$1.literal("signal.status"),
|
|
3380
|
-
data: signalStatusDataSchema$1
|
|
3381
|
-
});
|
|
3382
|
-
const signalStatusDataSchema = signalStatusDataSchema$1;
|
|
3383
|
-
z$1.strictObject({
|
|
3384
|
-
type: z$1.literal("signal.system_notice"),
|
|
3385
|
-
data: signalSystemNoticeDataSchema$1
|
|
3386
|
-
});
|
|
3387
|
-
const signalSystemNoticeDataSchema = signalSystemNoticeDataSchema$1;
|
|
3388
|
-
const isControlCharacter = (character) => {
|
|
3389
|
-
const codePoint = character.codePointAt(0);
|
|
3390
|
-
return typeof codePoint === "number" && (codePoint < 32 || codePoint === DELETE_CODE_POINT);
|
|
3391
|
-
};
|
|
3392
|
-
//#endregion
|
|
3393
|
-
//#region ../../packages/schemas/dist/schemas/agent-profile-work-recovery.js
|
|
3394
|
-
const agentProfileWorkRecoveryActionKindSchema = z$1.enum([
|
|
3395
|
-
"continue_interrupted_work",
|
|
3396
|
-
"approve_queued_work",
|
|
3397
|
-
"skip_interrupted_work"
|
|
3398
|
-
]);
|
|
3399
|
-
//#endregion
|
|
3400
|
-
//#region ../../packages/schemas/dist/schemas/runtime/local-agent-catalog.js
|
|
3401
|
-
const LOCAL_AGENT_CATALOG_BOUNDED_ID_SCHEMA = z$1.string().trim().min(1).max(256);
|
|
3402
|
-
const LOCAL_AGENT_CATALOG_BOUNDED_LABEL_SCHEMA = z$1.string().trim().min(1).max(256);
|
|
3403
|
-
const localAgentCatalogTargetKindSchema = z$1.enum(["builtin", "custom"]);
|
|
3404
|
-
const localAgentCatalogLifecycleStatusSchema = z$1.enum(["active", "suspended"]);
|
|
3405
|
-
const localAgentCatalogSelectableReasonSchema = z$1.enum([
|
|
3406
|
-
"not_detected",
|
|
3407
|
-
"not_supported_yet",
|
|
3408
|
-
"needs_repair",
|
|
3409
|
-
"custom_coming_soon"
|
|
3410
|
-
]);
|
|
3411
|
-
const localAgentCatalogLaunchStatusSchema = z$1.enum([
|
|
3412
|
-
"ready",
|
|
3413
|
-
"needs_choice",
|
|
3414
|
-
"needs_repair",
|
|
3415
|
-
"not_available"
|
|
3416
|
-
]);
|
|
3417
|
-
const localAgentCatalogEntryShape = {
|
|
3418
|
-
agentId: LOCAL_AGENT_CATALOG_BOUNDED_ID_SCHEMA,
|
|
3419
|
-
displayName: LOCAL_AGENT_CATALOG_BOUNDED_LABEL_SCHEMA,
|
|
3420
|
-
targetKind: localAgentCatalogTargetKindSchema,
|
|
3421
|
-
detected: z$1.boolean(),
|
|
3422
|
-
enabled: z$1.boolean(),
|
|
3423
|
-
launchStatus: localAgentCatalogLaunchStatusSchema,
|
|
3424
|
-
selectable: z$1.boolean(),
|
|
3425
|
-
selectableReason: z$1.union([localAgentCatalogSelectableReasonSchema, z$1.null()])
|
|
3426
|
-
};
|
|
3427
|
-
const localAgentCatalogEntrySchema = z$1.strictObject(localAgentCatalogEntryShape).superRefine(validateLocalAgentCatalogEntrySemantics);
|
|
3428
|
-
const localAgentCatalogEntryWithLifecycleSchema = z$1.strictObject({
|
|
3429
|
-
...localAgentCatalogEntryShape,
|
|
3430
|
-
lifecycleStatus: localAgentCatalogLifecycleStatusSchema.default("active")
|
|
3431
|
-
}).superRefine(validateLocalAgentCatalogEntrySemantics);
|
|
3432
|
-
const localAgentCatalogSchema = createLocalAgentCatalogSchema(localAgentCatalogEntrySchema);
|
|
3433
|
-
const localAgentCatalogWithLifecycleSchema = createLocalAgentCatalogSchema(localAgentCatalogEntryWithLifecycleSchema);
|
|
3434
|
-
function createLocalAgentCatalogSchema(entrySchema) {
|
|
3435
|
-
return z$1.strictObject({
|
|
3436
|
-
totalBuiltins: z$1.number().int().min(0),
|
|
3437
|
-
detectedSupported: z$1.number().int().min(0),
|
|
3438
|
-
needsChoice: z$1.number().int().min(0),
|
|
3439
|
-
needsRepair: z$1.number().int().min(0),
|
|
3440
|
-
detectedNotSupportedYet: z$1.number().int().min(0),
|
|
3441
|
-
notDetected: z$1.number().int().min(0),
|
|
3442
|
-
entries: z$1.array(entrySchema)
|
|
3443
|
-
}).superRefine(validateLocalAgentCatalogSummary);
|
|
3444
|
-
}
|
|
3445
|
-
function validateLocalAgentCatalogEntrySemantics(value, ctx) {
|
|
3446
|
-
if (value.selectable && value.selectableReason !== null) ctx.addIssue({
|
|
3447
|
-
code: "custom",
|
|
3448
|
-
message: "selectableReason must be null when selectable is true",
|
|
3449
|
-
path: ["selectableReason"]
|
|
3450
|
-
});
|
|
3451
|
-
if (!value.selectable && value.selectableReason === null) ctx.addIssue({
|
|
3452
|
-
code: "custom",
|
|
3453
|
-
message: "selectableReason must be present when selectable is false",
|
|
3454
|
-
path: ["selectableReason"]
|
|
3455
|
-
});
|
|
3456
|
-
if (value.launchStatus === "needs_choice" && !(value.detected && value.targetKind === "builtin" && value.selectable)) ctx.addIssue({
|
|
3457
|
-
code: "custom",
|
|
3458
|
-
message: "needs_choice launchStatus only applies to detected selectable builtin entries",
|
|
3459
|
-
path: ["launchStatus"]
|
|
3460
|
-
});
|
|
3461
|
-
if (value.launchStatus === "needs_repair" && !(value.detected && value.enabled && value.targetKind === "builtin" && value.selectable && value.selectableReason === null)) ctx.addIssue({
|
|
3462
|
-
code: "custom",
|
|
3463
|
-
message: "needs_repair launchStatus only applies to detected selectable builtin entries",
|
|
3464
|
-
path: ["launchStatus"]
|
|
3465
|
-
});
|
|
3466
|
-
if (value.selectableReason === "not_detected" && value.detected) ctx.addIssue({
|
|
3467
|
-
code: "custom",
|
|
3468
|
-
message: "not_detected selectableReason requires detected to be false",
|
|
3469
|
-
path: ["detected"]
|
|
3470
|
-
});
|
|
3471
|
-
if (value.selectableReason === "not_supported_yet" && (!value.detected || value.targetKind !== "builtin")) ctx.addIssue({
|
|
3472
|
-
code: "custom",
|
|
3473
|
-
message: "not_supported_yet selectableReason only applies to detected builtin entries",
|
|
3474
|
-
path: ["selectableReason"]
|
|
3259
|
+
agentActivity: true,
|
|
3260
|
+
agentWorkSummary: true,
|
|
3261
|
+
conversationCompaction: true
|
|
3262
|
+
}).extend({ deviceWait: z$1.never({ error: "Set deviceWait only at the top level of the message request." }).optional() }).superRefine(validateAuthoredSignalTextMeta);
|
|
3263
|
+
const systemEmittedSignalTextMetaSchema = signalTextMetaSchema.omit({
|
|
3264
|
+
agentActivity: true,
|
|
3265
|
+
agentWorkSummary: true
|
|
3266
|
+
}).superRefine(validateAuthoredSignalTextMeta);
|
|
3267
|
+
const addSignalTextMessageEnvelopeIssues = (input, context) => {
|
|
3268
|
+
if (!input.messageEnvelope) return;
|
|
3269
|
+
if (input.messageEnvelope.text !== input.text) context.addIssue({
|
|
3270
|
+
code: z$1.ZodIssueCode.custom,
|
|
3271
|
+
path: ["messageEnvelope", "text"],
|
|
3272
|
+
message: "messageEnvelope.text must match text"
|
|
3475
3273
|
});
|
|
3476
|
-
if (
|
|
3477
|
-
code:
|
|
3478
|
-
|
|
3479
|
-
|
|
3274
|
+
if (input.replyTo?.signalId && input.messageEnvelope.replyToSignalId && input.replyTo.signalId !== input.messageEnvelope.replyToSignalId) context.addIssue({
|
|
3275
|
+
code: z$1.ZodIssueCode.custom,
|
|
3276
|
+
path: ["messageEnvelope", "replyToSignalId"],
|
|
3277
|
+
message: "messageEnvelope.replyToSignalId must match replyTo.signalId"
|
|
3480
3278
|
});
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3279
|
+
};
|
|
3280
|
+
const addSignalTextContentIssues = (input, context) => {
|
|
3281
|
+
if (input.text.length > 0 || (input.files?.length ?? 0) > 0 || (input.attachments?.length ?? 0) > 0) return;
|
|
3282
|
+
context.addIssue({
|
|
3283
|
+
code: z$1.ZodIssueCode.custom,
|
|
3284
|
+
path: ["text"],
|
|
3285
|
+
message: "A message must include text or at least one file"
|
|
3485
3286
|
});
|
|
3486
|
-
}
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
{
|
|
3520
|
-
actual: needsRepair,
|
|
3521
|
-
expected: value.needsRepair,
|
|
3522
|
-
label: "needsRepair",
|
|
3523
|
-
path: ["needsRepair"]
|
|
3524
|
-
},
|
|
3525
|
-
{
|
|
3526
|
-
actual: notDetected,
|
|
3527
|
-
expected: value.notDetected,
|
|
3528
|
-
label: "notDetected",
|
|
3529
|
-
path: ["notDetected"]
|
|
3530
|
-
}
|
|
3531
|
-
];
|
|
3532
|
-
for (const expectation of expectations) {
|
|
3533
|
-
if (expectation.actual === expectation.expected) continue;
|
|
3534
|
-
ctx.addIssue({
|
|
3535
|
-
code: "custom",
|
|
3536
|
-
message: `${expectation.label} must match the builtin entry summary`,
|
|
3537
|
-
path: expectation.path
|
|
3538
|
-
});
|
|
3539
|
-
}
|
|
3540
|
-
}
|
|
3287
|
+
};
|
|
3288
|
+
const buildSignalTextDataSchema = (metaSchema) => z$1.strictObject({
|
|
3289
|
+
text: signalTextContentSchema,
|
|
3290
|
+
deviceWait: wakeDeviceWaitSchema.optional(),
|
|
3291
|
+
attachments: spaceMessageAttachmentsSchema.optional(),
|
|
3292
|
+
files: spaceMessageFileReferencesSchema.optional(),
|
|
3293
|
+
messageEnvelope: messageEnvelopeSchema.optional(),
|
|
3294
|
+
replyTo: signalTextReplyToSchema.optional(),
|
|
3295
|
+
meta: metaSchema.optional()
|
|
3296
|
+
}).superRefine(addSignalTextContentIssues).superRefine(addSignalTextMessageEnvelopeIssues);
|
|
3297
|
+
const signalTextDataSchema = buildSignalTextDataSchema(signalTextMetaSchema);
|
|
3298
|
+
const signalTextSchema = z$1.object({
|
|
3299
|
+
type: z$1.literal("signal.text"),
|
|
3300
|
+
data: buildSignalTextDataSchema(postedSignalTextMetaSchema)
|
|
3301
|
+
});
|
|
3302
|
+
z$1.object({
|
|
3303
|
+
type: z$1.literal("signal.text"),
|
|
3304
|
+
data: buildSignalTextDataSchema(systemEmittedSignalTextMetaSchema)
|
|
3305
|
+
});
|
|
3306
|
+
z$1.strictObject({
|
|
3307
|
+
type: z$1.literal("signal.status"),
|
|
3308
|
+
data: signalStatusDataSchema$1
|
|
3309
|
+
});
|
|
3310
|
+
const signalStatusDataSchema = signalStatusDataSchema$1;
|
|
3311
|
+
z$1.strictObject({
|
|
3312
|
+
type: z$1.literal("signal.system_notice"),
|
|
3313
|
+
data: signalSystemNoticeDataSchema$1
|
|
3314
|
+
});
|
|
3315
|
+
const signalSystemNoticeDataSchema = signalSystemNoticeDataSchema$1;
|
|
3316
|
+
const isControlCharacter = (character) => {
|
|
3317
|
+
const codePoint = character.codePointAt(0);
|
|
3318
|
+
return typeof codePoint === "number" && (codePoint < 32 || codePoint === DELETE_CODE_POINT);
|
|
3319
|
+
};
|
|
3541
3320
|
//#endregion
|
|
3542
|
-
//#region ../../packages/schemas/dist/schemas/daemon/
|
|
3543
|
-
const
|
|
3544
|
-
|
|
3545
|
-
"degraded",
|
|
3546
|
-
"ready",
|
|
3547
|
-
"unknown"
|
|
3548
|
-
];
|
|
3549
|
-
const REPLY_READINESS_REASON_CODE_VALUES = [
|
|
3550
|
-
"service.not_installed",
|
|
3551
|
-
"service.drifted",
|
|
3552
|
-
"service.not_running",
|
|
3553
|
-
"service.account_mismatch",
|
|
3554
|
-
"service.auth_missing",
|
|
3555
|
-
"service.auth_stale",
|
|
3556
|
-
"dispatch.storage_not_ready",
|
|
3557
|
-
"service.gateway_chain_unhealthy",
|
|
3558
|
-
"profile.not_selected",
|
|
3559
|
-
"profile.inactive",
|
|
3560
|
-
"profile.unbound",
|
|
3561
|
-
"controller.binding.disabled",
|
|
3562
|
-
"projection.missing",
|
|
3563
|
-
"controller.registry.disabled",
|
|
3564
|
-
"controller.launch.choice_required",
|
|
3565
|
-
"controller.launch.needs_repair",
|
|
3566
|
-
"workspace.missing",
|
|
3567
|
-
"workspace.invalid",
|
|
3568
|
-
"runtime.adapter.unsupported",
|
|
3569
|
-
"controller.bootstrap.failed",
|
|
3570
|
-
"controller.gateway.unhealthy",
|
|
3571
|
-
"local_agents.none_needed",
|
|
3572
|
-
"route.offline",
|
|
3573
|
-
"route.not_registered"
|
|
3574
|
-
];
|
|
3575
|
-
const replyReadinessLevelSchema = z$1.enum(REPLY_READINESS_LEVEL_VALUES);
|
|
3576
|
-
const replyReadinessReasonCodeSchema = z$1.enum(REPLY_READINESS_REASON_CODE_VALUES);
|
|
3321
|
+
//#region ../../packages/schemas/dist/schemas/daemon/local-folder-path.js
|
|
3322
|
+
const WINDOWS_ABSOLUTE_PATH_PATTERN = /^[A-Za-z]:[\\/]/u;
|
|
3323
|
+
const localFolderPathSchema = profileWorkingDirectorySchema.refine((value) => value.startsWith("/") || value.startsWith("\\\\") || WINDOWS_ABSOLUTE_PATH_PATTERN.test(value), "Enter the full folder path on this computer.");
|
|
3577
3324
|
//#endregion
|
|
3578
|
-
//#region ../../packages/schemas/dist/schemas/
|
|
3579
|
-
const
|
|
3580
|
-
const
|
|
3581
|
-
const
|
|
3582
|
-
|
|
3583
|
-
const
|
|
3584
|
-
z$1.
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3325
|
+
//#region ../../packages/schemas/dist/schemas/daemon/local-folder-picker.js
|
|
3326
|
+
const boundedIdentifierSchema$4 = z$1.string().trim().min(1).max(512);
|
|
3327
|
+
const LOCAL_FOLDER_PICKER_FRAME_VERSION = 1;
|
|
3328
|
+
const OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER = "x-openmeld-local-folder-picker-capability";
|
|
3329
|
+
const LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY = "local-folder-picker-v1";
|
|
3330
|
+
const localFolderPickerRuntimeCapabilitySchema = z$1.strictObject({ selectFolders: z$1.literal(true) });
|
|
3331
|
+
const localFolderPickerPurposeSchema = z$1.enum([
|
|
3332
|
+
"computer_file_access",
|
|
3333
|
+
"project_connection",
|
|
3334
|
+
"agent_profile_working_folder"
|
|
3335
|
+
]);
|
|
3336
|
+
const localFolderPickerRequestSchema = z$1.strictObject({
|
|
3337
|
+
allowMultiple: z$1.boolean(),
|
|
3338
|
+
expectedDeviceId: boundedIdentifierSchema$4,
|
|
3339
|
+
purpose: localFolderPickerPurposeSchema
|
|
3340
|
+
});
|
|
3341
|
+
const localFolderPickerErrorCodeSchema = z$1.enum([
|
|
3342
|
+
"local.folder_picker.device_mismatch",
|
|
3343
|
+
"local.folder_picker.helper_missing",
|
|
3344
|
+
"local.folder_picker.internal_error",
|
|
3345
|
+
"local.folder_picker.invalid_request",
|
|
3346
|
+
"local.folder_picker.invalid_response",
|
|
3347
|
+
"local.folder_picker.no_interactive_session",
|
|
3348
|
+
"local.folder_picker.picker_busy",
|
|
3349
|
+
"local.folder_picker.portal_unavailable",
|
|
3350
|
+
"local.folder_picker.service_offline",
|
|
3351
|
+
"local.folder_picker.service_update_required",
|
|
3352
|
+
"local.folder_picker.timed_out",
|
|
3353
|
+
"local.folder_picker.unsupported_platform"
|
|
3354
|
+
]);
|
|
3355
|
+
const localFolderPickerHelperErrorCodeSchema = z$1.enum([
|
|
3356
|
+
"local.folder_picker.internal_error",
|
|
3357
|
+
"local.folder_picker.invalid_response",
|
|
3358
|
+
"local.folder_picker.no_interactive_session",
|
|
3359
|
+
"local.folder_picker.portal_unavailable",
|
|
3360
|
+
"local.folder_picker.timed_out",
|
|
3361
|
+
"local.folder_picker.unsupported_platform"
|
|
3362
|
+
]);
|
|
3363
|
+
const localFolderPickerHelperSelectedResultSchema = z$1.strictObject({
|
|
3364
|
+
paths: z$1.array(localFolderPathSchema).min(1).max(128),
|
|
3365
|
+
status: z$1.literal("selected")
|
|
3366
|
+
});
|
|
3367
|
+
const localFolderPickerHelperCancelledResultSchema = z$1.strictObject({ status: z$1.literal("cancelled") });
|
|
3368
|
+
const localFolderPickerHelperUnavailableResultSchema = z$1.strictObject({
|
|
3369
|
+
code: localFolderPickerHelperErrorCodeSchema,
|
|
3370
|
+
status: z$1.literal("unavailable")
|
|
3371
|
+
});
|
|
3372
|
+
const localFolderPickerHelperResultSchema = z$1.discriminatedUnion("status", [
|
|
3373
|
+
localFolderPickerHelperSelectedResultSchema,
|
|
3374
|
+
localFolderPickerHelperCancelledResultSchema,
|
|
3375
|
+
localFolderPickerHelperUnavailableResultSchema
|
|
3376
|
+
]);
|
|
3377
|
+
const localFolderPickerHelperProtocolResultSchema = z$1.discriminatedUnion("status", [
|
|
3378
|
+
localFolderPickerHelperSelectedResultSchema.extend({ v: z$1.literal(LOCAL_FOLDER_PICKER_FRAME_VERSION) }),
|
|
3379
|
+
localFolderPickerHelperCancelledResultSchema.extend({ v: z$1.literal(LOCAL_FOLDER_PICKER_FRAME_VERSION) }),
|
|
3380
|
+
localFolderPickerHelperUnavailableResultSchema.extend({ v: z$1.literal(LOCAL_FOLDER_PICKER_FRAME_VERSION) })
|
|
3381
|
+
]);
|
|
3382
|
+
const localFolderPickerSelectedResultSchema = z$1.strictObject({
|
|
3383
|
+
deviceId: boundedIdentifierSchema$4,
|
|
3384
|
+
paths: z$1.array(localFolderPathSchema).min(1).max(128),
|
|
3385
|
+
status: z$1.literal("selected")
|
|
3386
|
+
});
|
|
3387
|
+
const localFolderPickerCancelledResultSchema = z$1.strictObject({
|
|
3388
|
+
deviceId: boundedIdentifierSchema$4,
|
|
3389
|
+
status: z$1.literal("cancelled")
|
|
3390
|
+
});
|
|
3391
|
+
const localFolderPickerUnavailableResultSchema = z$1.strictObject({
|
|
3392
|
+
code: localFolderPickerErrorCodeSchema,
|
|
3393
|
+
message: z$1.string().trim().min(1).max(1024),
|
|
3394
|
+
status: z$1.literal("unavailable")
|
|
3395
|
+
});
|
|
3396
|
+
const localFolderPickerResultSchema = z$1.discriminatedUnion("status", [
|
|
3397
|
+
localFolderPickerSelectedResultSchema,
|
|
3398
|
+
localFolderPickerCancelledResultSchema,
|
|
3399
|
+
localFolderPickerUnavailableResultSchema
|
|
3400
|
+
]);
|
|
3401
|
+
localFolderPickerRequestSchema.extend({ context: openMeldRequestContextSchema });
|
|
3402
|
+
const localFolderPickerRequestFrameSchema = z$1.strictObject({
|
|
3403
|
+
code: z$1.literal("daemon.local_folder_picker.select_folders"),
|
|
3404
|
+
payload: z$1.strictObject({
|
|
3405
|
+
request: localFolderPickerRequestSchema,
|
|
3406
|
+
requestId: boundedIdentifierSchema$4
|
|
3407
|
+
}),
|
|
3408
|
+
v: z$1.literal(LOCAL_FOLDER_PICKER_FRAME_VERSION)
|
|
3409
|
+
});
|
|
3410
|
+
const localFolderPickerResultFrameSchema = z$1.strictObject({
|
|
3411
|
+
code: z$1.literal("daemon.local_folder_picker.select_folders_result"),
|
|
3412
|
+
payload: z$1.strictObject({
|
|
3413
|
+
requestId: boundedIdentifierSchema$4,
|
|
3414
|
+
result: localFolderPickerResultSchema
|
|
3415
|
+
}),
|
|
3416
|
+
v: z$1.literal(LOCAL_FOLDER_PICKER_FRAME_VERSION)
|
|
3417
|
+
});
|
|
3418
|
+
const localFolderPickerDaemonFrameSchema = z$1.discriminatedUnion("code", [localFolderPickerRequestFrameSchema, localFolderPickerResultFrameSchema]);
|
|
3419
|
+
z$1.strictObject({
|
|
3420
|
+
deviceId: boundedIdentifierSchema$4,
|
|
3421
|
+
lane: daemonServiceLaneSchema,
|
|
3422
|
+
ownerUserId: boundedIdentifierSchema$4,
|
|
3423
|
+
request: localFolderPickerRequestSchema,
|
|
3424
|
+
requestId: boundedIdentifierSchema$4,
|
|
3425
|
+
v: z$1.literal(LOCAL_FOLDER_PICKER_FRAME_VERSION)
|
|
3588
3426
|
});
|
|
3589
3427
|
//#endregion
|
|
3428
|
+
//#region ../../packages/schemas/dist/schemas/agent-profile-work-recovery.js
|
|
3429
|
+
const agentProfileWorkRecoveryActionKindSchema = z$1.enum([
|
|
3430
|
+
"continue_interrupted_work",
|
|
3431
|
+
"approve_queued_work",
|
|
3432
|
+
"skip_interrupted_work"
|
|
3433
|
+
]);
|
|
3434
|
+
//#endregion
|
|
3590
3435
|
//#region ../../packages/schemas/dist/schemas/http/execution-recovery.js
|
|
3591
3436
|
const requiredIdentifierSchema = z$1.string().trim().min(1).max(512);
|
|
3592
3437
|
const nullableIdentifierSchema$1 = requiredIdentifierSchema.nullable();
|
|
@@ -3682,14 +3527,14 @@ const executeExecutionRecoveryResponseSchema = z$1.strictObject({
|
|
|
3682
3527
|
//#endregion
|
|
3683
3528
|
//#region ../../packages/schemas/dist/schemas/http/organization-information-protection.js
|
|
3684
3529
|
const ORGANIZATION_PROTECTED_INFORMATION_MAX_CHARS = 2e3;
|
|
3685
|
-
const boundedIdentifierSchema$
|
|
3530
|
+
const boundedIdentifierSchema$3 = z$1.string().trim().min(1).max(256);
|
|
3686
3531
|
const isoDateTimeSchema$1 = z$1.iso.datetime({ offset: true });
|
|
3687
3532
|
const organizationProtectedInformationSchema = z$1.string().trim().min(1).max(ORGANIZATION_PROTECTED_INFORMATION_MAX_CHARS);
|
|
3688
3533
|
const organizationInformationProtectionPolicyResponseSchema = z$1.strictObject({
|
|
3689
|
-
organizationId: boundedIdentifierSchema$
|
|
3534
|
+
organizationId: boundedIdentifierSchema$3,
|
|
3690
3535
|
protectedInformation: organizationProtectedInformationSchema.nullable(),
|
|
3691
3536
|
updatedAt: isoDateTimeSchema$1.nullable(),
|
|
3692
|
-
updatedByUserId: boundedIdentifierSchema$
|
|
3537
|
+
updatedByUserId: boundedIdentifierSchema$3.nullable()
|
|
3693
3538
|
});
|
|
3694
3539
|
const updateOrganizationInformationProtectionPolicyBodySchema = z$1.strictObject({ protectedInformation: organizationProtectedInformationSchema.nullable() });
|
|
3695
3540
|
//#endregion
|
|
@@ -3705,19 +3550,19 @@ z$1.strictObject({ passwordProtected: z$1.boolean() });
|
|
|
3705
3550
|
//#endregion
|
|
3706
3551
|
//#region ../../packages/schemas/dist/schemas/daemon/execution-identity.js
|
|
3707
3552
|
const RUNTIME_EXECUTION_IDENTITY_MODEL_VERSION = "openmeld.runtime.execution_identity.v1";
|
|
3708
|
-
const boundedIdentifierSchema$
|
|
3553
|
+
const boundedIdentifierSchema$2 = z$1.string().trim().min(1).max(512);
|
|
3709
3554
|
const runtimeExecutionAuthorityOpenMeldServiceRuntimeIdSchema = z$1.strictObject({
|
|
3710
3555
|
source: z$1.literal("runtime_registry_authority"),
|
|
3711
|
-
value: boundedIdentifierSchema$
|
|
3556
|
+
value: boundedIdentifierSchema$2
|
|
3712
3557
|
});
|
|
3713
3558
|
const runtimeExecutionIdentityCoreSchema = z$1.strictObject({
|
|
3714
3559
|
modelVersion: z$1.literal(RUNTIME_EXECUTION_IDENTITY_MODEL_VERSION),
|
|
3715
|
-
spaceId: boundedIdentifierSchema$
|
|
3716
|
-
dispatchId: boundedIdentifierSchema$
|
|
3717
|
-
targetProfileId: boundedIdentifierSchema$
|
|
3560
|
+
spaceId: boundedIdentifierSchema$2,
|
|
3561
|
+
dispatchId: boundedIdentifierSchema$2,
|
|
3562
|
+
targetProfileId: boundedIdentifierSchema$2,
|
|
3718
3563
|
openMeldServiceRuntimeId: runtimeExecutionAuthorityOpenMeldServiceRuntimeIdSchema,
|
|
3719
|
-
bindingId: boundedIdentifierSchema$
|
|
3720
|
-
agentControllerRef: boundedIdentifierSchema$
|
|
3564
|
+
bindingId: boundedIdentifierSchema$2,
|
|
3565
|
+
agentControllerRef: boundedIdentifierSchema$2
|
|
3721
3566
|
});
|
|
3722
3567
|
const runtimeTransportDeliveryExecutionIdentitySchema = z$1.strictObject({
|
|
3723
3568
|
authority: z$1.literal("core_runtime_registry_binding_route"),
|
|
@@ -3756,8 +3601,8 @@ const RUNTIME_COORDINATOR_TOKEN_SECRET_FIELD_NAMES = [
|
|
|
3756
3601
|
"tokenValidationHash",
|
|
3757
3602
|
"validationHash"
|
|
3758
3603
|
];
|
|
3759
|
-
const boundedIdentifierSchema$
|
|
3760
|
-
const boundedNullableIdentifierSchema = boundedIdentifierSchema$
|
|
3604
|
+
const boundedIdentifierSchema$1 = z$1.string().trim().min(1).max(512);
|
|
3605
|
+
const boundedNullableIdentifierSchema = boundedIdentifierSchema$1.nullable();
|
|
3761
3606
|
const boundedReasonCodeSchema$2 = z$1.string().trim().min(1).max(160);
|
|
3762
3607
|
const nullablePositiveIntegerSchema$1 = z$1.number().int().positive().nullable();
|
|
3763
3608
|
const nullableTimestampSchema = z$1.number().int().nonnegative().nullable();
|
|
@@ -3793,16 +3638,16 @@ const RUNTIME_COORDINATOR_RETIRED_TOKEN_REASON_CODE_BY_STATUS = {
|
|
|
3793
3638
|
terminal: "execution_token_terminal_late"
|
|
3794
3639
|
};
|
|
3795
3640
|
const runtimeCoordinatorTokenExecutionScopeSchema = z$1.strictObject({
|
|
3796
|
-
dispatchId: boundedIdentifierSchema$
|
|
3797
|
-
runtimeCoordinatorExecutionId: boundedIdentifierSchema$
|
|
3798
|
-
sourceClientMessageId: boundedIdentifierSchema$
|
|
3799
|
-
spaceId: boundedIdentifierSchema$
|
|
3800
|
-
targetProfileId: boundedIdentifierSchema$
|
|
3641
|
+
dispatchId: boundedIdentifierSchema$1,
|
|
3642
|
+
runtimeCoordinatorExecutionId: boundedIdentifierSchema$1,
|
|
3643
|
+
sourceClientMessageId: boundedIdentifierSchema$1.nullable(),
|
|
3644
|
+
spaceId: boundedIdentifierSchema$1,
|
|
3645
|
+
targetProfileId: boundedIdentifierSchema$1
|
|
3801
3646
|
});
|
|
3802
3647
|
const runtimeCoordinatorTokenAuthorityScopeSchema = z$1.strictObject({
|
|
3803
|
-
bindingId: boundedIdentifierSchema$
|
|
3804
|
-
agentControllerRef: boundedIdentifierSchema$
|
|
3805
|
-
openMeldServiceRuntimeId: boundedIdentifierSchema$
|
|
3648
|
+
bindingId: boundedIdentifierSchema$1,
|
|
3649
|
+
agentControllerRef: boundedIdentifierSchema$1,
|
|
3650
|
+
openMeldServiceRuntimeId: boundedIdentifierSchema$1
|
|
3806
3651
|
});
|
|
3807
3652
|
const runtimeCoordinatorTokenDeliveryProvenanceSchema = z$1.strictObject({
|
|
3808
3653
|
connectionGeneration: nullablePositiveIntegerSchema$1,
|
|
@@ -3811,32 +3656,32 @@ const runtimeCoordinatorTokenDeliveryProvenanceSchema = z$1.strictObject({
|
|
|
3811
3656
|
});
|
|
3812
3657
|
const runtimeCoordinatorExecutionTokenEnvelopeSchema = z$1.strictObject({
|
|
3813
3658
|
authorityScope: runtimeCoordinatorTokenAuthorityScopeSchema,
|
|
3814
|
-
deliveryIdempotencyKey: boundedIdentifierSchema$
|
|
3659
|
+
deliveryIdempotencyKey: boundedIdentifierSchema$1,
|
|
3815
3660
|
deliveryProvenance: runtimeCoordinatorTokenDeliveryProvenanceSchema,
|
|
3816
3661
|
executionScope: runtimeCoordinatorTokenExecutionScopeSchema,
|
|
3817
3662
|
executionToken: runtimeCoordinatorExecutionTokenSchema,
|
|
3818
3663
|
expiresAtMs: nullableTimestampSchema,
|
|
3819
3664
|
issuedAtMs: z$1.number().int().nonnegative(),
|
|
3820
3665
|
modelVersion: z$1.literal(RUNTIME_COORDINATOR_EXECUTION_TOKEN_MODEL_VERSION),
|
|
3821
|
-
runId: boundedIdentifierSchema$
|
|
3666
|
+
runId: boundedIdentifierSchema$1,
|
|
3822
3667
|
tokenFingerprint: runtimeCoordinatorTokenFingerprintSchema,
|
|
3823
3668
|
tokenStatus: z$1.literal("active")
|
|
3824
3669
|
});
|
|
3825
3670
|
const runtimeCoordinatorExecutionTokenEchoSchema = z$1.strictObject({
|
|
3826
3671
|
executionToken: runtimeCoordinatorExecutionTokenSchema,
|
|
3827
|
-
runId: boundedIdentifierSchema$
|
|
3828
|
-
runtimeCoordinatorExecutionId: boundedIdentifierSchema$
|
|
3672
|
+
runId: boundedIdentifierSchema$1,
|
|
3673
|
+
runtimeCoordinatorExecutionId: boundedIdentifierSchema$1,
|
|
3829
3674
|
tokenFingerprint: runtimeCoordinatorTokenFingerprintSchema
|
|
3830
3675
|
});
|
|
3831
3676
|
z$1.strictObject({
|
|
3832
|
-
deliveryIdempotencyKey: boundedIdentifierSchema$
|
|
3677
|
+
deliveryIdempotencyKey: boundedIdentifierSchema$1,
|
|
3833
3678
|
expiresAtMs: nullableTimestampSchema,
|
|
3834
3679
|
issuedAtMs: z$1.number().int().nonnegative(),
|
|
3835
3680
|
modelVersion: z$1.literal(RUNTIME_COORDINATOR_EXECUTION_TOKEN_MODEL_VERSION),
|
|
3836
3681
|
reasonCode: runtimeCoordinatorTokenReasonCodeSchema.nullable(),
|
|
3837
3682
|
retiredAtMs: nullableTimestampSchema,
|
|
3838
3683
|
retentionExpiresAtMs: nullableTimestampSchema,
|
|
3839
|
-
runId: boundedIdentifierSchema$
|
|
3684
|
+
runId: boundedIdentifierSchema$1,
|
|
3840
3685
|
tokenFingerprint: runtimeCoordinatorTokenFingerprintSchema,
|
|
3841
3686
|
tokenStatus: runtimeCoordinatorTokenStatusSchema
|
|
3842
3687
|
});
|
|
@@ -3846,19 +3691,19 @@ z$1.strictObject({
|
|
|
3846
3691
|
observedAtMs: z$1.number().int().nonnegative(),
|
|
3847
3692
|
reasonCode: runtimeCoordinatorTokenReasonCodeSchema,
|
|
3848
3693
|
runId: boundedNullableIdentifierSchema,
|
|
3849
|
-
runtimeCoordinatorExecutionId: boundedIdentifierSchema$
|
|
3694
|
+
runtimeCoordinatorExecutionId: boundedIdentifierSchema$1,
|
|
3850
3695
|
tokenFingerprint: runtimeCoordinatorTokenFingerprintSchema.nullable(),
|
|
3851
3696
|
tokenStatus: runtimeCoordinatorTokenStatusSchema.nullable()
|
|
3852
3697
|
});
|
|
3853
3698
|
const runtimeCoordinatorTokenRunAuthoritySchema = z$1.strictObject({
|
|
3854
|
-
deliveryIdempotencyKey: boundedIdentifierSchema$
|
|
3699
|
+
deliveryIdempotencyKey: boundedIdentifierSchema$1,
|
|
3855
3700
|
deliveryProvenance: runtimeCoordinatorTokenDeliveryProvenanceSchema,
|
|
3856
3701
|
expiresAtMs: nullableTimestampSchema,
|
|
3857
3702
|
issuedAtMs: z$1.number().int().nonnegative(),
|
|
3858
3703
|
retentionExpiresAtMs: nullableTimestampSchema,
|
|
3859
3704
|
retiredAtMs: nullableTimestampSchema,
|
|
3860
3705
|
retiredReasonCode: runtimeCoordinatorTokenReasonCodeSchema.nullable(),
|
|
3861
|
-
runId: boundedIdentifierSchema$
|
|
3706
|
+
runId: boundedIdentifierSchema$1,
|
|
3862
3707
|
supersededByRunId: boundedNullableIdentifierSchema,
|
|
3863
3708
|
supersedesRunId: boundedNullableIdentifierSchema,
|
|
3864
3709
|
tokenFingerprint: runtimeCoordinatorTokenFingerprintSchema,
|
|
@@ -3876,8 +3721,8 @@ z$1.strictObject({
|
|
|
3876
3721
|
lateResultWindowMs: z$1.number().int().nonnegative(),
|
|
3877
3722
|
maxRetiredRuns: z$1.number().int().positive()
|
|
3878
3723
|
}),
|
|
3879
|
-
runtimeCoordinatorExecutionId: boundedIdentifierSchema$
|
|
3880
|
-
runsById: z$1.record(boundedIdentifierSchema$
|
|
3724
|
+
runtimeCoordinatorExecutionId: boundedIdentifierSchema$1,
|
|
3725
|
+
runsById: z$1.record(boundedIdentifierSchema$1, runtimeCoordinatorTokenRunAuthoritySchema),
|
|
3881
3726
|
terminalOutcome: z$1.strictObject({
|
|
3882
3727
|
finalizedAtMs: z$1.number().int().nonnegative(),
|
|
3883
3728
|
reasonCode: boundedReasonCodeSchema$2,
|
|
@@ -3888,7 +3733,7 @@ z$1.strictObject({
|
|
|
3888
3733
|
"cancelled"
|
|
3889
3734
|
])
|
|
3890
3735
|
}).nullable(),
|
|
3891
|
-
tokenValidationHashIndex: z$1.record(runtimeCoordinatorTokenValidationHashSchema, boundedIdentifierSchema$
|
|
3736
|
+
tokenValidationHashIndex: z$1.record(runtimeCoordinatorTokenValidationHashSchema, boundedIdentifierSchema$1)
|
|
3892
3737
|
}).superRefine((record, context) => {
|
|
3893
3738
|
validateCurrentTokenRun(record, context);
|
|
3894
3739
|
validateRetiredTokenHistoryLimit(record, context);
|
|
@@ -4039,10 +3884,10 @@ function normalizePayloadFieldName(fieldName) {
|
|
|
4039
3884
|
//#region ../../packages/schemas/dist/schemas/daemon/runtime-coordinator-execution.js
|
|
4040
3885
|
const RUNTIME_COORDINATOR_EXECUTION_MODEL_VERSION = "openmeld.runtime_coordinator.execution.v1";
|
|
4041
3886
|
const RUNTIME_COORDINATOR_CREATION_DIAGNOSTIC_MODEL_VERSION = "openmeld.runtime_coordinator.creation_diagnostic.v1";
|
|
4042
|
-
const boundedIdentifierSchema
|
|
3887
|
+
const boundedIdentifierSchema = z$1.string().trim().min(1).max(512);
|
|
4043
3888
|
const boundedReasonCodeSchema$1 = z$1.string().trim().min(1).max(160);
|
|
4044
3889
|
const nullableSourceClientMessageIdSchema = z$1.string().trim().min(1).max(200).nullable();
|
|
4045
|
-
const nullableIdentifierSchema = boundedIdentifierSchema
|
|
3890
|
+
const nullableIdentifierSchema = boundedIdentifierSchema.nullable();
|
|
4046
3891
|
const nullablePositiveIntegerSchema = z$1.number().int().positive().nullable();
|
|
4047
3892
|
const runtimeCoordinatorExecutionStatusSchema = z$1.enum([
|
|
4048
3893
|
"created",
|
|
@@ -4141,15 +3986,15 @@ const runtimeCoordinatorLegacyPointersSchema = z$1.strictObject({
|
|
|
4141
3986
|
leaseEpoch: nullablePositiveIntegerSchema
|
|
4142
3987
|
});
|
|
4143
3988
|
const runtimeCoordinatorExecutionRecordSchema = z$1.strictObject({
|
|
4144
|
-
runtimeCoordinatorExecutionId: boundedIdentifierSchema
|
|
3989
|
+
runtimeCoordinatorExecutionId: boundedIdentifierSchema,
|
|
4145
3990
|
modelVersion: z$1.literal(RUNTIME_COORDINATOR_EXECUTION_MODEL_VERSION),
|
|
4146
|
-
spaceId: boundedIdentifierSchema
|
|
4147
|
-
dispatchId: boundedIdentifierSchema
|
|
4148
|
-
targetProfileId: boundedIdentifierSchema
|
|
3991
|
+
spaceId: boundedIdentifierSchema,
|
|
3992
|
+
dispatchId: boundedIdentifierSchema,
|
|
3993
|
+
targetProfileId: boundedIdentifierSchema,
|
|
4149
3994
|
sourceClientMessageId: nullableSourceClientMessageIdSchema,
|
|
4150
3995
|
openMeldServiceRuntimeId: runtimeExecutionAuthorityOpenMeldServiceRuntimeIdSchema,
|
|
4151
|
-
bindingId: boundedIdentifierSchema
|
|
4152
|
-
agentControllerRef: boundedIdentifierSchema
|
|
3996
|
+
bindingId: boundedIdentifierSchema,
|
|
3997
|
+
agentControllerRef: boundedIdentifierSchema,
|
|
4153
3998
|
status: runtimeCoordinatorExecutionStatusSchema,
|
|
4154
3999
|
terminalOutcome: runtimeCoordinatorTerminalOutcomeSchema.nullable(),
|
|
4155
4000
|
createdAtMs: z$1.number().int().nonnegative(),
|
|
@@ -4168,21 +4013,21 @@ const runtimeCoordinatorExecutionRecordSchema = z$1.strictObject({
|
|
|
4168
4013
|
});
|
|
4169
4014
|
});
|
|
4170
4015
|
const runtimeCoordinatorExecutionEventSchema = z$1.strictObject({
|
|
4171
|
-
eventId: boundedIdentifierSchema
|
|
4172
|
-
runtimeCoordinatorExecutionId: boundedIdentifierSchema
|
|
4016
|
+
eventId: boundedIdentifierSchema,
|
|
4017
|
+
runtimeCoordinatorExecutionId: boundedIdentifierSchema,
|
|
4173
4018
|
eventType: runtimeCoordinatorExecutionEventTypeSchema,
|
|
4174
4019
|
statusAfter: runtimeCoordinatorExecutionStatusSchema.nullable(),
|
|
4175
4020
|
reasonCode: boundedReasonCodeSchema$1.nullable(),
|
|
4176
4021
|
observedAtMs: z$1.number().int().nonnegative(),
|
|
4177
|
-
idempotencyKey: boundedIdentifierSchema
|
|
4022
|
+
idempotencyKey: boundedIdentifierSchema,
|
|
4178
4023
|
payloadJson: runtimeCoordinatorSafeEventPayloadJsonSchema
|
|
4179
4024
|
});
|
|
4180
4025
|
const runtimeCoordinatorExecutionCreationStatusSchema = z$1.enum(["not_created"]);
|
|
4181
4026
|
const runtimeCoordinatorExecutionCreationDiagnosticSchema = z$1.strictObject({
|
|
4182
4027
|
modelVersion: z$1.literal(RUNTIME_COORDINATOR_CREATION_DIAGNOSTIC_MODEL_VERSION),
|
|
4183
|
-
spaceId: boundedIdentifierSchema
|
|
4184
|
-
dispatchId: boundedIdentifierSchema
|
|
4185
|
-
targetProfileId: boundedIdentifierSchema
|
|
4028
|
+
spaceId: boundedIdentifierSchema,
|
|
4029
|
+
dispatchId: boundedIdentifierSchema,
|
|
4030
|
+
targetProfileId: boundedIdentifierSchema,
|
|
4186
4031
|
sourceClientMessageId: nullableSourceClientMessageIdSchema,
|
|
4187
4032
|
creationStatus: runtimeCoordinatorExecutionCreationStatusSchema,
|
|
4188
4033
|
reasonCode: boundedReasonCodeSchema$1,
|
|
@@ -4293,293 +4138,6 @@ const postSpaceWakeStopResponseSchema = z$1.discriminatedUnion("status", [
|
|
|
4293
4138
|
});
|
|
4294
4139
|
});
|
|
4295
4140
|
//#endregion
|
|
4296
|
-
//#region ../../packages/schemas/dist/schemas/local-components.js
|
|
4297
|
-
const nonEmptyStringSchema = string().trim().min(1);
|
|
4298
|
-
const nullableNonEmptyStringSchema$1 = nonEmptyStringSchema.nullable();
|
|
4299
|
-
const localComponentStatusSchema = enumFactory([
|
|
4300
|
-
"ok",
|
|
4301
|
-
"update_available",
|
|
4302
|
-
"update_required"
|
|
4303
|
-
]);
|
|
4304
|
-
const localComponentUpdatePolicySchema = enumFactory([
|
|
4305
|
-
"ok",
|
|
4306
|
-
"available",
|
|
4307
|
-
"required"
|
|
4308
|
-
]);
|
|
4309
|
-
const localComponentUpdateStatusSchema = enumFactory([
|
|
4310
|
-
"current",
|
|
4311
|
-
"update_available",
|
|
4312
|
-
"update_required",
|
|
4313
|
-
"unknown"
|
|
4314
|
-
]);
|
|
4315
|
-
const openMeldToolsUpdateOperationPhaseSchema = enumFactory([
|
|
4316
|
-
"waiting_for_work",
|
|
4317
|
-
"updating",
|
|
4318
|
-
"updated",
|
|
4319
|
-
"restored",
|
|
4320
|
-
"needs_help"
|
|
4321
|
-
]);
|
|
4322
|
-
const openMeldToolsUpdateRequestSourceSchema = enumFactory([
|
|
4323
|
-
"automatic",
|
|
4324
|
-
"center_agent",
|
|
4325
|
-
"cli",
|
|
4326
|
-
"web"
|
|
4327
|
-
]);
|
|
4328
|
-
const openMeldToolsUpdateOperationSchema = strictObject({
|
|
4329
|
-
operationId: nonEmptyStringSchema,
|
|
4330
|
-
phase: openMeldToolsUpdateOperationPhaseSchema,
|
|
4331
|
-
requestSource: openMeldToolsUpdateRequestSourceSchema,
|
|
4332
|
-
requestedAt: iso.datetime({ offset: true }),
|
|
4333
|
-
targetVersion: nonEmptyStringSchema,
|
|
4334
|
-
updatedAt: iso.datetime({ offset: true }),
|
|
4335
|
-
urgency: enumFactory(["available", "required"])
|
|
4336
|
-
});
|
|
4337
|
-
const openMeldToolsMaintenanceProjectionSchema = strictObject({
|
|
4338
|
-
automaticUpdatesEnabled: boolean(),
|
|
4339
|
-
status: enumFactory(["ready", "needs_help"])
|
|
4340
|
-
});
|
|
4341
|
-
const openMeldToolsControlCapabilitySchema = strictObject({
|
|
4342
|
-
requestAutomaticUpdate: literal(true).optional(),
|
|
4343
|
-
requestUpdate: literal(true).optional(),
|
|
4344
|
-
setAutomaticUpdates: literal(true).optional()
|
|
4345
|
-
});
|
|
4346
|
-
const openMeldToolsUpdateRequestResultSchema = discriminatedUnion("status", [
|
|
4347
|
-
strictObject({ status: literal("disabled") }),
|
|
4348
|
-
strictObject({ status: literal("unavailable") }),
|
|
4349
|
-
strictObject({
|
|
4350
|
-
currentVersion: nonEmptyStringSchema,
|
|
4351
|
-
status: literal("current")
|
|
4352
|
-
}),
|
|
4353
|
-
strictObject({
|
|
4354
|
-
operation: openMeldToolsUpdateOperationSchema,
|
|
4355
|
-
status: enumFactory(["started", "already_running"])
|
|
4356
|
-
})
|
|
4357
|
-
]);
|
|
4358
|
-
const openMeldToolsMaintenanceMutationResultSchema = strictObject({
|
|
4359
|
-
automaticUpdatesEnabled: boolean(),
|
|
4360
|
-
status: enumFactory(["updated", "unchanged"])
|
|
4361
|
-
});
|
|
4362
|
-
const openMeldToolsControlRequestSchema = discriminatedUnion("operation", [strictObject({
|
|
4363
|
-
operation: literal("request_update"),
|
|
4364
|
-
requestSource: enumFactory([
|
|
4365
|
-
"automatic",
|
|
4366
|
-
"center_agent",
|
|
4367
|
-
"web"
|
|
4368
|
-
])
|
|
4369
|
-
}), strictObject({
|
|
4370
|
-
automaticUpdatesEnabled: boolean(),
|
|
4371
|
-
operation: literal("set_automatic_updates"),
|
|
4372
|
-
requestSource: enumFactory(["center_agent", "web"])
|
|
4373
|
-
})]);
|
|
4374
|
-
const openMeldToolsControlResultSchema = discriminatedUnion("operation", [strictObject({
|
|
4375
|
-
operation: literal("request_update"),
|
|
4376
|
-
result: openMeldToolsUpdateRequestResultSchema
|
|
4377
|
-
}), strictObject({
|
|
4378
|
-
operation: literal("set_automatic_updates"),
|
|
4379
|
-
result: openMeldToolsMaintenanceMutationResultSchema
|
|
4380
|
-
})]);
|
|
4381
|
-
const openMeldToolsUpdateAttemptSchema = strictObject({
|
|
4382
|
-
v: literal(1),
|
|
4383
|
-
attempts: number().int().nonnegative(),
|
|
4384
|
-
errorMessage: nullableNonEmptyStringSchema$1,
|
|
4385
|
-
operation: openMeldToolsUpdateOperationSchema
|
|
4386
|
-
});
|
|
4387
|
-
const localSetupActionSchema = enumFactory([
|
|
4388
|
-
"none",
|
|
4389
|
-
"connect_service",
|
|
4390
|
-
"reconnect_service",
|
|
4391
|
-
"update_service",
|
|
4392
|
-
"connect_local_agent",
|
|
4393
|
-
"update_skills",
|
|
4394
|
-
"update_cli"
|
|
4395
|
-
]);
|
|
4396
|
-
const localSetupEntrypointSchema = literal("setup");
|
|
4397
|
-
const localComponentsManifestSchema = strictObject({
|
|
4398
|
-
schemaVersion: literal(1),
|
|
4399
|
-
openMeldReleaseVersion: nonEmptyStringSchema,
|
|
4400
|
-
cli: strictObject({
|
|
4401
|
-
packageVersion: nonEmptyStringSchema,
|
|
4402
|
-
commandContractVersion: nonEmptyStringSchema
|
|
4403
|
-
}),
|
|
4404
|
-
service: strictObject({
|
|
4405
|
-
bundleHash: nullableNonEmptyStringSchema$1,
|
|
4406
|
-
bundleVersion: nonEmptyStringSchema,
|
|
4407
|
-
runtimeContractEpoch: nonEmptyStringSchema,
|
|
4408
|
-
serviceContractVersion: nonEmptyStringSchema
|
|
4409
|
-
}),
|
|
4410
|
-
skills: strictObject({
|
|
4411
|
-
bundleHash: nullableNonEmptyStringSchema$1,
|
|
4412
|
-
skillContractVersion: nonEmptyStringSchema,
|
|
4413
|
-
skillIds: array(nonEmptyStringSchema)
|
|
4414
|
-
})
|
|
4415
|
-
});
|
|
4416
|
-
strictObject({
|
|
4417
|
-
schemaVersion: literal(1),
|
|
4418
|
-
updatedAt: iso.datetime({ offset: true }),
|
|
4419
|
-
components: strictObject({
|
|
4420
|
-
cli: strictObject({
|
|
4421
|
-
packageVersion: nonEmptyStringSchema,
|
|
4422
|
-
commandContractVersion: nonEmptyStringSchema,
|
|
4423
|
-
updatePolicy: localComponentUpdatePolicySchema,
|
|
4424
|
-
reason: nonEmptyStringSchema
|
|
4425
|
-
}),
|
|
4426
|
-
service: strictObject({
|
|
4427
|
-
bundleHash: nullableNonEmptyStringSchema$1,
|
|
4428
|
-
bundleVersion: nonEmptyStringSchema,
|
|
4429
|
-
runtimeContractEpoch: nonEmptyStringSchema,
|
|
4430
|
-
serviceContractVersion: nonEmptyStringSchema,
|
|
4431
|
-
updatePolicy: localComponentUpdatePolicySchema,
|
|
4432
|
-
reason: nonEmptyStringSchema
|
|
4433
|
-
}),
|
|
4434
|
-
skills: strictObject({
|
|
4435
|
-
bundleHash: nullableNonEmptyStringSchema$1,
|
|
4436
|
-
skillContractVersion: nonEmptyStringSchema,
|
|
4437
|
-
skillIds: array(nonEmptyStringSchema),
|
|
4438
|
-
updatePolicy: localComponentUpdatePolicySchema,
|
|
4439
|
-
reason: nonEmptyStringSchema
|
|
4440
|
-
})
|
|
4441
|
-
})
|
|
4442
|
-
});
|
|
4443
|
-
const installedLocalComponentsSnapshotSchema = strictObject({
|
|
4444
|
-
schemaVersion: literal(1),
|
|
4445
|
-
installedAt: iso.datetime({ offset: true }),
|
|
4446
|
-
source: enumFactory([
|
|
4447
|
-
"setup",
|
|
4448
|
-
"repair",
|
|
4449
|
-
"manual"
|
|
4450
|
-
]),
|
|
4451
|
-
manifest: localComponentsManifestSchema
|
|
4452
|
-
});
|
|
4453
|
-
const localComponentProjectionSchema = strictObject({
|
|
4454
|
-
reasonCodes: array(nonEmptyStringSchema),
|
|
4455
|
-
status: localComponentStatusSchema
|
|
4456
|
-
});
|
|
4457
|
-
const localCliComponentProjectionSchema = localComponentProjectionSchema.extend({
|
|
4458
|
-
commandContractVersion: nonEmptyStringSchema,
|
|
4459
|
-
latestPackageVersion: nullableNonEmptyStringSchema$1,
|
|
4460
|
-
packageVersion: nonEmptyStringSchema,
|
|
4461
|
-
requiredCommandContractVersion: nullableNonEmptyStringSchema$1
|
|
4462
|
-
});
|
|
4463
|
-
const localServiceComponentProjectionSchema = localComponentProjectionSchema.extend({
|
|
4464
|
-
expectedBundleHash: nullableNonEmptyStringSchema$1,
|
|
4465
|
-
expectedBundleVersion: nonEmptyStringSchema,
|
|
4466
|
-
installedBundleHash: nullableNonEmptyStringSchema$1,
|
|
4467
|
-
installedBundleVersion: nullableNonEmptyStringSchema$1,
|
|
4468
|
-
runtimeContractEpoch: nonEmptyStringSchema,
|
|
4469
|
-
serviceContractVersion: nonEmptyStringSchema
|
|
4470
|
-
});
|
|
4471
|
-
const localSkillsComponentProjectionSchema = localComponentProjectionSchema.extend({
|
|
4472
|
-
contentRelease: strictObject({
|
|
4473
|
-
revision: number().int().positive(),
|
|
4474
|
-
minimumCliVersion: string().regex(/^\d+\.\d+\.\d+$/)
|
|
4475
|
-
}).optional(),
|
|
4476
|
-
expectedBundleHash: nullableNonEmptyStringSchema$1,
|
|
4477
|
-
installedBundleHash: nullableNonEmptyStringSchema$1,
|
|
4478
|
-
skillContractVersion: nonEmptyStringSchema,
|
|
4479
|
-
targetCount: number().int().nonnegative()
|
|
4480
|
-
});
|
|
4481
|
-
const localComponentsStatusSchema = strictObject({
|
|
4482
|
-
schemaVersion: literal(1),
|
|
4483
|
-
generatedAt: iso.datetime({ offset: true }),
|
|
4484
|
-
entrypoint: localSetupEntrypointSchema,
|
|
4485
|
-
summaryLabel: nonEmptyStringSchema,
|
|
4486
|
-
summaryDescription: nonEmptyStringSchema,
|
|
4487
|
-
setupAction: localSetupActionSchema,
|
|
4488
|
-
setupActionLabel: nonEmptyStringSchema,
|
|
4489
|
-
setupActionDescription: nonEmptyStringSchema,
|
|
4490
|
-
maintenance: openMeldToolsMaintenanceProjectionSchema.optional(),
|
|
4491
|
-
updateOperation: openMeldToolsUpdateOperationSchema.optional(),
|
|
4492
|
-
cli: localCliComponentProjectionSchema,
|
|
4493
|
-
service: localServiceComponentProjectionSchema,
|
|
4494
|
-
skills: localSkillsComponentProjectionSchema
|
|
4495
|
-
});
|
|
4496
|
-
const localServiceComponentUpdateProjectionSchema = strictObject({
|
|
4497
|
-
installedVersion: nullableNonEmptyStringSchema$1,
|
|
4498
|
-
latestVersion: nullableNonEmptyStringSchema$1,
|
|
4499
|
-
reasonCodes: array(nonEmptyStringSchema),
|
|
4500
|
-
requiredVersion: nullableNonEmptyStringSchema$1,
|
|
4501
|
-
status: localComponentUpdateStatusSchema,
|
|
4502
|
-
updatePolicy: localComponentUpdatePolicySchema,
|
|
4503
|
-
wakeBlocked: boolean()
|
|
4504
|
-
});
|
|
4505
|
-
const localCliComponentUpdateProjectionSchema = strictObject({
|
|
4506
|
-
commandContractVersion: nullableNonEmptyStringSchema$1,
|
|
4507
|
-
installedPackageVersion: nullableNonEmptyStringSchema$1,
|
|
4508
|
-
latestPackageVersion: nullableNonEmptyStringSchema$1,
|
|
4509
|
-
reasonCodes: array(nonEmptyStringSchema),
|
|
4510
|
-
requiredCommandContractVersion: nullableNonEmptyStringSchema$1,
|
|
4511
|
-
status: localComponentUpdateStatusSchema,
|
|
4512
|
-
updatePolicy: localComponentUpdatePolicySchema,
|
|
4513
|
-
wakeBlocked: boolean()
|
|
4514
|
-
});
|
|
4515
|
-
const localSkillsComponentUpdateProjectionSchema = strictObject({
|
|
4516
|
-
expectedBundleHash: nullableNonEmptyStringSchema$1,
|
|
4517
|
-
expectedTargetCount: number().int().nonnegative(),
|
|
4518
|
-
installedBundleHash: nullableNonEmptyStringSchema$1,
|
|
4519
|
-
reasonCodes: array(nonEmptyStringSchema),
|
|
4520
|
-
skillContractVersion: nullableNonEmptyStringSchema$1,
|
|
4521
|
-
status: localComponentUpdateStatusSchema,
|
|
4522
|
-
targetCount: number().int().nonnegative().nullable(),
|
|
4523
|
-
updatePolicy: localComponentUpdatePolicySchema,
|
|
4524
|
-
wakeBlocked: boolean()
|
|
4525
|
-
});
|
|
4526
|
-
const localComponentUpdateProjectionSchema = strictObject({
|
|
4527
|
-
schemaVersion: literal(1),
|
|
4528
|
-
generatedAt: iso.datetime({ offset: true }),
|
|
4529
|
-
setupAction: localSetupActionSchema,
|
|
4530
|
-
setupActionLabel: nonEmptyStringSchema,
|
|
4531
|
-
setupActionDescription: nonEmptyStringSchema,
|
|
4532
|
-
humanSetupCommand: nonEmptyStringSchema,
|
|
4533
|
-
agentSetupCommand: nonEmptyStringSchema,
|
|
4534
|
-
maintenance: openMeldToolsMaintenanceProjectionSchema.optional(),
|
|
4535
|
-
updateOperation: openMeldToolsUpdateOperationSchema.optional(),
|
|
4536
|
-
cli: localCliComponentUpdateProjectionSchema,
|
|
4537
|
-
service: localServiceComponentUpdateProjectionSchema,
|
|
4538
|
-
skills: localSkillsComponentUpdateProjectionSchema
|
|
4539
|
-
});
|
|
4540
|
-
function formatLocalSetupActionLabel(action) {
|
|
4541
|
-
switch (action) {
|
|
4542
|
-
case "connect_service": return "Connect Computer";
|
|
4543
|
-
case "reconnect_service": return "Reconnect Computer";
|
|
4544
|
-
case "update_service": return "Update OpenMeld on Computer";
|
|
4545
|
-
case "connect_local_agent": return "Connect local agent";
|
|
4546
|
-
case "update_skills": return "Update OpenMeld skills";
|
|
4547
|
-
case "update_cli": return "Update OpenMeld CLI";
|
|
4548
|
-
case "none": return "Everything is up to date";
|
|
4549
|
-
default: return action;
|
|
4550
|
-
}
|
|
4551
|
-
}
|
|
4552
|
-
function formatLocalComponentsSummaryLabel(input) {
|
|
4553
|
-
if (input.setupAction !== "none") return formatLocalSetupActionLabel(input.setupAction);
|
|
4554
|
-
switch (input.cliStatus) {
|
|
4555
|
-
case "update_required": return "Update OpenMeld CLI";
|
|
4556
|
-
case "update_available": return "OpenMeld CLI update available";
|
|
4557
|
-
case "ok": return "Everything is up to date";
|
|
4558
|
-
default: return input.cliStatus;
|
|
4559
|
-
}
|
|
4560
|
-
}
|
|
4561
|
-
function formatLocalComponentsSummaryDescription(input) {
|
|
4562
|
-
if (input.setupAction !== "none") return formatLocalSetupActionDescription(input.setupAction);
|
|
4563
|
-
switch (input.cliStatus) {
|
|
4564
|
-
case "update_required": return "Update OpenMeld CLI before running this setup flow.";
|
|
4565
|
-
case "update_available": return "OpenMeld CLI can be updated, but this setup flow can continue.";
|
|
4566
|
-
case "ok": return "OpenMeld local components are aligned for this computer.";
|
|
4567
|
-
default: return input.cliStatus;
|
|
4568
|
-
}
|
|
4569
|
-
}
|
|
4570
|
-
function formatLocalSetupActionDescription(action) {
|
|
4571
|
-
switch (action) {
|
|
4572
|
-
case "connect_service": return "Connect this computer to OpenMeld so local agents can reply in Spaces.";
|
|
4573
|
-
case "reconnect_service": return "Reconnect this computer to the current OpenMeld account.";
|
|
4574
|
-
case "update_service": return "Update OpenMeld on this computer.";
|
|
4575
|
-
case "connect_local_agent": return "Connect this Agent Profile to a local agent runtime on this computer.";
|
|
4576
|
-
case "update_skills": return "Update OpenMeld skills through setup on this computer.";
|
|
4577
|
-
case "update_cli": return "Update OpenMeld CLI before running this setup flow.";
|
|
4578
|
-
case "none": return "OpenMeld local components are aligned for this computer.";
|
|
4579
|
-
default: return action;
|
|
4580
|
-
}
|
|
4581
|
-
}
|
|
4582
|
-
//#endregion
|
|
4583
4141
|
//#region ../../packages/schemas/dist/schemas/protocol/agent-interaction.js
|
|
4584
4142
|
const AGENT_INTERACTION_DEFAULT_TIMEOUT_MS = 480 * 60 * 1e3;
|
|
4585
4143
|
const agentInteractionKindSchema = enumFactory([
|
|
@@ -4828,585 +4386,53 @@ const spaceAllowedActionsSchema = z$1.array(spaceAllowedActionSchema).superRefin
|
|
|
4828
4386
|
if (value.length === 0) {
|
|
4829
4387
|
ctx.addIssue({
|
|
4830
4388
|
code: "custom",
|
|
4831
|
-
message: "allowedActions must contain at least one action"
|
|
4832
|
-
});
|
|
4833
|
-
return;
|
|
4834
|
-
}
|
|
4835
|
-
if (new Set(value).size !== value.length) ctx.addIssue({
|
|
4836
|
-
code: "custom",
|
|
4837
|
-
message: "allowedActions must not contain duplicates"
|
|
4838
|
-
});
|
|
4839
|
-
});
|
|
4840
|
-
//#endregion
|
|
4841
|
-
//#region ../../packages/schemas/dist/schemas/space-mesh/result-archive-policy.js
|
|
4842
|
-
const resultArchiveModeSchema = z$1.enum([
|
|
4843
|
-
"none",
|
|
4844
|
-
"space_reply_only",
|
|
4845
|
-
"all_final_results"
|
|
4846
|
-
]);
|
|
4847
|
-
const resultArchivePolicySchema = z$1.strictObject({ mode: resultArchiveModeSchema });
|
|
4848
|
-
//#endregion
|
|
4849
|
-
//#region ../../packages/schemas/dist/schemas/space-mesh/space-note.js
|
|
4850
|
-
const spaceNoteSchema = z$1.string().trim().min(1);
|
|
4851
|
-
//#endregion
|
|
4852
|
-
//#region ../../packages/schemas/dist/schemas/space-mesh/space-contract.js
|
|
4853
|
-
const isoDateTimeSchema = z$1.iso.datetime({ offset: true });
|
|
4854
|
-
const spaceBriefModeSchema = z$1.enum(["default", "none"]);
|
|
4855
|
-
const spaceContractFieldsSchema = z$1.strictObject({
|
|
4856
|
-
dispatchPolicy: spaceDispatchPolicySchema,
|
|
4857
|
-
publicationMode: spacePublicationModeSchema,
|
|
4858
|
-
allowedActions: spaceAllowedActionsSchema,
|
|
4859
|
-
resultArchivePolicy: resultArchivePolicySchema,
|
|
4860
|
-
spaceNote: spaceNoteSchema.optional(),
|
|
4861
|
-
authorityOrder: spaceAuthorityOrderSchema,
|
|
4862
|
-
entryBrief: spaceBriefModeSchema,
|
|
4863
|
-
dispatchBrief: spaceBriefModeSchema
|
|
4864
|
-
});
|
|
4865
|
-
const spaceContractSchema = z$1.strictObject({
|
|
4866
|
-
version: z$1.number().int().finite().positive(),
|
|
4867
|
-
updatedAt: isoDateTimeSchema,
|
|
4868
|
-
updatedBy: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)),
|
|
4869
|
-
dispatchPolicy: spaceDispatchPolicySchema,
|
|
4870
|
-
publicationMode: spacePublicationModeSchema,
|
|
4871
|
-
allowedActions: spaceAllowedActionsSchema,
|
|
4872
|
-
resultArchivePolicy: resultArchivePolicySchema,
|
|
4873
|
-
spaceNote: spaceNoteSchema.optional(),
|
|
4874
|
-
authorityOrder: spaceAuthorityOrderSchema,
|
|
4875
|
-
entryBrief: spaceBriefModeSchema,
|
|
4876
|
-
dispatchBrief: spaceBriefModeSchema
|
|
4877
|
-
});
|
|
4878
|
-
//#endregion
|
|
4879
|
-
//#region ../../packages/schemas/dist/schemas/daemon/conversation-lifecycle.js
|
|
4880
|
-
const conversationBootstrapReasonSchema = z$1.enum([
|
|
4881
|
-
"missing_bootstrap_state",
|
|
4882
|
-
"compatibility_recreate",
|
|
4883
|
-
"template_changed",
|
|
4884
|
-
"idle_stale",
|
|
4885
|
-
"dispatch_count_stale",
|
|
4886
|
-
"context_healed",
|
|
4887
|
-
"context_replaced"
|
|
4888
|
-
]);
|
|
4889
|
-
const localRuntimeContextReasonSchema = z$1.enum([
|
|
4890
|
-
"first_local_runtime_context",
|
|
4891
|
-
"workspace_changed",
|
|
4892
|
-
"transport_mode_changed",
|
|
4893
|
-
"policy_changed",
|
|
4894
|
-
"execution_state_missing",
|
|
4895
|
-
"controller_changed"
|
|
4896
|
-
]);
|
|
4897
|
-
const agentControllerConversationResumePlanBlockedReasonSchema = z$1.enum(["controller_changed"]);
|
|
4898
|
-
const agentControllerConversationResumePlanSchema = z$1.discriminatedUnion("status", [
|
|
4899
|
-
z$1.strictObject({ status: z$1.literal("not_bound") }),
|
|
4900
|
-
z$1.strictObject({ status: z$1.literal("continue_existing") }),
|
|
4901
|
-
z$1.strictObject({
|
|
4902
|
-
status: z$1.literal("blocked"),
|
|
4903
|
-
reason: agentControllerConversationResumePlanBlockedReasonSchema
|
|
4904
|
-
})
|
|
4905
|
-
]);
|
|
4906
|
-
const localRuntimeContextPlanSchema = z$1.strictObject({
|
|
4907
|
-
status: z$1.enum(["reuse", "recreate"]),
|
|
4908
|
-
reason: z$1.union([localRuntimeContextReasonSchema, z$1.null()])
|
|
4909
|
-
});
|
|
4910
|
-
const conversationBootstrapSchema = z$1.discriminatedUnion("status", [z$1.strictObject({
|
|
4911
|
-
reason: z$1.null(),
|
|
4912
|
-
status: z$1.literal("applied")
|
|
4913
|
-
}), z$1.strictObject({
|
|
4914
|
-
reason: conversationBootstrapReasonSchema,
|
|
4915
|
-
status: z$1.literal("pending")
|
|
4916
|
-
})]);
|
|
4917
|
-
z$1.strictObject({
|
|
4918
|
-
agentControllerConversationResume: agentControllerConversationResumePlanSchema,
|
|
4919
|
-
localRuntimeContext: localRuntimeContextPlanSchema,
|
|
4920
|
-
bootstrap: conversationBootstrapSchema
|
|
4921
|
-
});
|
|
4922
|
-
const agentControllerConversationResumeSchema = z$1.discriminatedUnion("status", [
|
|
4923
|
-
z$1.strictObject({ status: z$1.literal("not_bound") }),
|
|
4924
|
-
z$1.strictObject({ status: z$1.literal("continued") }),
|
|
4925
|
-
z$1.strictObject({ status: z$1.literal("replaced_by_provider") })
|
|
4926
|
-
]);
|
|
4927
|
-
const localRuntimeContextExecutionSchema = z$1.strictObject({
|
|
4928
|
-
status: z$1.enum(["reused", "recreated"]),
|
|
4929
|
-
reason: z$1.union([localRuntimeContextReasonSchema, z$1.null()])
|
|
4930
|
-
});
|
|
4931
|
-
const dispatchExecutionSchema = z$1.strictObject({
|
|
4932
|
-
agentControllerConversationResume: agentControllerConversationResumeSchema,
|
|
4933
|
-
localRuntimeContext: localRuntimeContextExecutionSchema,
|
|
4934
|
-
bootstrap: conversationBootstrapSchema
|
|
4935
|
-
});
|
|
4936
|
-
//#endregion
|
|
4937
|
-
//#region ../../packages/schemas/dist/schemas/daemon/conversation-execution-state.js
|
|
4938
|
-
const ISO_DATE_TIME_SCHEMA$1 = z$1.iso.datetime({ offset: true });
|
|
4939
|
-
const bootstrapTemplateFactsSchema = z$1.strictObject({
|
|
4940
|
-
templateVersion: z$1.string().min(1),
|
|
4941
|
-
contentFingerprint: z$1.string().min(1)
|
|
4942
|
-
});
|
|
4943
|
-
const conversationExecutionStateSchema = z$1.strictObject({
|
|
4944
|
-
agentContextLookupKey: z$1.string().min(1),
|
|
4945
|
-
activeContextId: z$1.string().min(1).nullable(),
|
|
4946
|
-
lastResolvedAgentControllerConversation: agentControllerConversationRefSchema.optional(),
|
|
4947
|
-
lastRuntimeWorkspacePath: profileWorkingDirectorySchema.optional(),
|
|
4948
|
-
runtimeWorkspaceFingerprint: z$1.string().min(1),
|
|
4949
|
-
bootstrapLastAppliedAt: ISO_DATE_TIME_SCHEMA$1.optional(),
|
|
4950
|
-
bootstrapLastActivatedAt: ISO_DATE_TIME_SCHEMA$1.optional(),
|
|
4951
|
-
dispatchesSinceBootstrapApplied: z$1.number().int().min(0),
|
|
4952
|
-
lastAppliedTemplateVersion: z$1.string().min(1).optional(),
|
|
4953
|
-
lastAppliedContentFingerprint: z$1.string().min(1).optional(),
|
|
4954
|
-
pendingBootstrapReason: conversationBootstrapReasonSchema.optional(),
|
|
4955
|
-
updatedAt: ISO_DATE_TIME_SCHEMA$1
|
|
4956
|
-
});
|
|
4957
|
-
//#endregion
|
|
4958
|
-
//#region ../../packages/schemas/dist/schemas/daemon/provider-runtime-context.js
|
|
4959
|
-
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" }) });
|
|
4960
|
-
enumFactory([
|
|
4961
|
-
"status",
|
|
4962
|
-
"health",
|
|
4963
|
-
"history",
|
|
4964
|
-
"interrupt",
|
|
4965
|
-
"cancel",
|
|
4966
|
-
"conversation_execution_status",
|
|
4967
|
-
"request_agent_activity_sync",
|
|
4968
|
-
"sync_route_catalog",
|
|
4969
|
-
"set_local_agent_enabled",
|
|
4970
|
-
"set_profile_workspace",
|
|
4971
|
-
"service_update_readiness",
|
|
4972
|
-
"shutdown"
|
|
4973
|
-
]);
|
|
4974
|
-
const openMeldDaemonHealthStateSchema = enumFactory([
|
|
4975
|
-
"ok",
|
|
4976
|
-
"degraded",
|
|
4977
|
-
"down"
|
|
4978
|
-
]);
|
|
4979
|
-
const openMeldDaemonRuntimeHealthStateSchema = enumFactory([
|
|
4980
|
-
"healthy",
|
|
4981
|
-
"idle",
|
|
4982
|
-
"suspect",
|
|
4983
|
-
"down"
|
|
4984
|
-
]);
|
|
4985
|
-
const openMeldDaemonControlTargetSelectorSchema = discriminatedUnion("by", [strictObject({
|
|
4986
|
-
by: literal("dispatch"),
|
|
4987
|
-
dispatchId: string().min(1)
|
|
4988
|
-
}), strictObject({
|
|
4989
|
-
by: literal("task"),
|
|
4990
|
-
taskId: string().min(1)
|
|
4991
|
-
})]);
|
|
4992
|
-
const openMeldDaemonInterruptRequestPayloadSchema = strictObject({
|
|
4993
|
-
runtimeCoordinatorExecutionId: string().min(1).optional(),
|
|
4994
|
-
target: openMeldDaemonControlTargetSelectorSchema,
|
|
4995
|
-
mode: enumFactory(["graceful", "force"]).optional(),
|
|
4996
|
-
reason: string().min(1).optional()
|
|
4997
|
-
});
|
|
4998
|
-
const openMeldDaemonCancelRequestPayloadSchema = strictObject({
|
|
4999
|
-
runtimeCoordinatorExecutionId: string().min(1).optional(),
|
|
5000
|
-
target: openMeldDaemonControlTargetSelectorSchema,
|
|
5001
|
-
reason: string().min(1).optional()
|
|
5002
|
-
});
|
|
5003
|
-
const openMeldDaemonShutdownRequestPayloadSchema = strictObject({
|
|
5004
|
-
mode: enumFactory(["graceful", "force"]).default("graceful"),
|
|
5005
|
-
gracePeriodMs: number().int().nonnegative().default(5e3)
|
|
5006
|
-
});
|
|
5007
|
-
const openMeldDaemonServiceUpdateReadinessPayloadSchema = strictObject({
|
|
5008
|
-
acceptedWakeCount: number().int().nonnegative(),
|
|
5009
|
-
safeToSwitch: boolean(),
|
|
5010
|
-
unacknowledgedResultCount: number().int().nonnegative()
|
|
5011
|
-
});
|
|
5012
|
-
const openMeldDaemonConversationExecutionControllerLaunchStatusSchema = enumFactory([
|
|
5013
|
-
"missing",
|
|
5014
|
-
"disabled",
|
|
5015
|
-
"repair_required",
|
|
5016
|
-
"ready"
|
|
5017
|
-
]);
|
|
5018
|
-
const nullableAgentControllerRefSchema = union([string().min(1), nullFactory()]);
|
|
5019
|
-
const nullableNonEmptyStringSchema = union([string().min(1), nullFactory()]);
|
|
5020
|
-
const openMeldDaemonConversationExecutionStatusRequestPayloadSchema = strictObject({
|
|
5021
|
-
boundAgentControllerRef: nullableAgentControllerRefSchema,
|
|
5022
|
-
agentControllerConversationId: nullableNonEmptyStringSchema,
|
|
5023
|
-
agentControllerRef: string().min(1),
|
|
5024
|
-
spaceId: nonEmptyTrimmedStringFromUnknown,
|
|
5025
|
-
targetProfileId: agentProfileIdSchema,
|
|
5026
|
-
transportMode: runtimeTransportModeSchema,
|
|
5027
|
-
validate: boolean()
|
|
5028
|
-
});
|
|
5029
|
-
const openMeldDaemonSyncRouteCatalogRequestPayloadSchema = strictObject({ reason: string().min(1) });
|
|
5030
|
-
const openMeldDaemonRequestAgentActivitySyncRequestPayloadSchema = strictObject({ reason: string().trim().min(1).max(128) });
|
|
5031
|
-
const openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema = strictObject({
|
|
5032
|
-
agentId: string().trim().min(1).max(256),
|
|
5033
|
-
enabled: boolean()
|
|
5034
|
-
});
|
|
5035
|
-
const localAgentInstallationOptionSchema = strictObject({
|
|
5036
|
-
installationId: string().trim().min(1).max(256),
|
|
5037
|
-
name: string().trim().min(1).max(256),
|
|
5038
|
-
details: string().trim().min(1).max(256),
|
|
5039
|
-
selected: boolean()
|
|
5040
|
-
});
|
|
5041
|
-
const openMeldDaemonManageLocalAgentInstallationRequestPayloadSchema = discriminatedUnion("operation", [strictObject({
|
|
5042
|
-
agentId: string().trim().min(1).max(256),
|
|
5043
|
-
operation: literal("list")
|
|
5044
|
-
}), strictObject({
|
|
5045
|
-
agentId: string().trim().min(1).max(256),
|
|
5046
|
-
installationId: string().trim().min(1).max(256),
|
|
5047
|
-
operation: literal("select")
|
|
5048
|
-
})]);
|
|
5049
|
-
const openMeldDaemonSetProfileWorkspaceRequestPayloadSchema = strictObject({
|
|
5050
|
-
targetProfileId: agentProfileIdSchema,
|
|
5051
|
-
workspaceMode: profileWorkspaceModeSchema,
|
|
5052
|
-
workspacePath: profileWorkingDirectorySchema.optional()
|
|
5053
|
-
}).superRefine((value, context) => {
|
|
5054
|
-
if (value.workspaceMode === "custom" && !value.workspacePath) context.addIssue({
|
|
5055
|
-
code: "custom",
|
|
5056
|
-
message: "workspacePath is required for a custom profile workspace",
|
|
5057
|
-
path: ["workspacePath"]
|
|
5058
|
-
});
|
|
5059
|
-
if (value.workspaceMode === "openmeld_managed" && value.workspacePath) context.addIssue({
|
|
5060
|
-
code: "custom",
|
|
5061
|
-
message: "workspacePath must be omitted for an OpenMeld-managed profile workspace",
|
|
5062
|
-
path: ["workspacePath"]
|
|
5063
|
-
});
|
|
5064
|
-
});
|
|
5065
|
-
const openMeldDaemonConversationExecutionRuntimeWorkspaceSchema = discriminatedUnion("status", [
|
|
5066
|
-
strictObject({
|
|
5067
|
-
configPath: string().min(1),
|
|
5068
|
-
configuredWorkspacePath: string().min(1),
|
|
5069
|
-
fingerprint: string().min(1),
|
|
5070
|
-
path: string().min(1),
|
|
5071
|
-
reasonCode: nullFactory(),
|
|
5072
|
-
reasonText: nullFactory(),
|
|
5073
|
-
runtimeContext: providerDispatchRuntimeContextSchema,
|
|
5074
|
-
status: literal("ready"),
|
|
5075
|
-
workspaceMode: profileWorkspaceModeSchema
|
|
5076
|
-
}),
|
|
5077
|
-
strictObject({
|
|
5078
|
-
configPath: string().min(1),
|
|
5079
|
-
configuredWorkspacePath: nullFactory(),
|
|
5080
|
-
fingerprint: nullFactory(),
|
|
5081
|
-
path: nullFactory(),
|
|
5082
|
-
reasonCode: literal("workspace.missing"),
|
|
5083
|
-
reasonText: string().min(1),
|
|
5084
|
-
runtimeContext: nullFactory(),
|
|
5085
|
-
status: literal("missing"),
|
|
5086
|
-
workspaceMode: nullFactory()
|
|
5087
|
-
}),
|
|
5088
|
-
strictObject({
|
|
5089
|
-
configPath: string().min(1),
|
|
5090
|
-
configuredWorkspacePath: union([string().min(1), nullFactory()]),
|
|
5091
|
-
fingerprint: nullFactory(),
|
|
5092
|
-
path: nullFactory(),
|
|
5093
|
-
reasonCode: literal("workspace.invalid"),
|
|
5094
|
-
reasonText: string().min(1),
|
|
5095
|
-
runtimeContext: nullFactory(),
|
|
5096
|
-
status: literal("invalid"),
|
|
5097
|
-
workspaceMode: union([profileWorkspaceModeSchema, nullFactory()])
|
|
5098
|
-
})
|
|
5099
|
-
]);
|
|
5100
|
-
const openMeldDaemonConversationExecutionLocalRuntimeContextStatusSchema = enumFactory([
|
|
5101
|
-
"missing",
|
|
5102
|
-
"mismatch",
|
|
5103
|
-
"ready"
|
|
5104
|
-
]);
|
|
5105
|
-
const openMeldDaemonProviderConversationProofStatusSchema = enumFactory([
|
|
5106
|
-
"failed",
|
|
5107
|
-
"not_applicable",
|
|
5108
|
-
"not_run",
|
|
5109
|
-
"passed"
|
|
5110
|
-
]);
|
|
5111
|
-
const openMeldDaemonProviderConversationProofProviderSchema = enumFactory([
|
|
5112
|
-
"codex",
|
|
5113
|
-
"claude-code",
|
|
5114
|
-
"openclaw"
|
|
5115
|
-
]);
|
|
5116
|
-
const openMeldDaemonProviderConversationProofMethodSchema = enumFactory(["codex_app_server_thread_resume"]);
|
|
5117
|
-
const openMeldDaemonProviderConversationProofSchema = strictObject({
|
|
5118
|
-
agentControllerConversationId: nullableNonEmptyStringSchema,
|
|
5119
|
-
checkedAt: union([iso.datetime({ offset: true }), nullFactory()]),
|
|
5120
|
-
errorCode: nullableNonEmptyStringSchema,
|
|
5121
|
-
errorMessage: nullableNonEmptyStringSchema,
|
|
5122
|
-
errorType: nullableNonEmptyStringSchema,
|
|
5123
|
-
expiresAt: union([iso.datetime({ offset: true }), nullFactory()]),
|
|
5124
|
-
intrusive: literal(false),
|
|
5125
|
-
method: union([openMeldDaemonProviderConversationProofMethodSchema, nullFactory()]),
|
|
5126
|
-
provider: union([openMeldDaemonProviderConversationProofProviderSchema, nullFactory()]),
|
|
5127
|
-
status: openMeldDaemonProviderConversationProofStatusSchema,
|
|
5128
|
-
transportMode: union([runtimeTransportModeSchema, nullFactory()])
|
|
5129
|
-
});
|
|
5130
|
-
const openMeldDaemonConversationExecutionStatusPayloadSchema = strictObject({
|
|
5131
|
-
agentContextLookupKey: string().min(1),
|
|
5132
|
-
controllerLaunchStatus: openMeldDaemonConversationExecutionControllerLaunchStatusSchema,
|
|
5133
|
-
executionState: conversationExecutionStateSchema.nullable(),
|
|
5134
|
-
localRuntimeContext: strictObject({
|
|
5135
|
-
agentContextLookupKey: string().min(1),
|
|
5136
|
-
runtimeWorkspaceFingerprint: nullableNonEmptyStringSchema,
|
|
5137
|
-
status: openMeldDaemonConversationExecutionLocalRuntimeContextStatusSchema
|
|
5138
|
-
}),
|
|
5139
|
-
providerConversationProof: openMeldDaemonProviderConversationProofSchema,
|
|
5140
|
-
runtimeWorkspace: openMeldDaemonConversationExecutionRuntimeWorkspaceSchema
|
|
5141
|
-
});
|
|
5142
|
-
const openMeldDaemonSyncRouteCatalogStatusSchema = enumFactory([
|
|
5143
|
-
"changed",
|
|
5144
|
-
"registered",
|
|
5145
|
-
"unchanged",
|
|
5146
|
-
"failed",
|
|
5147
|
-
"deferred"
|
|
5148
|
-
]);
|
|
5149
|
-
const skippedDaemonProfileSchema = strictObject({
|
|
5150
|
-
profileId: agentProfileIdSchema,
|
|
5151
|
-
profileName: nullableNonEmptyStringSchema,
|
|
5152
|
-
skipReason: enumFactory([
|
|
5153
|
-
"projection.missing",
|
|
5154
|
-
"controller.registry.disabled",
|
|
5155
|
-
"controller.launch.needs_repair",
|
|
5156
|
-
"runtime.adapter.unsupported",
|
|
5157
|
-
"controller.binding.disabled",
|
|
5158
|
-
"controller.binding.incomplete",
|
|
5159
|
-
"profile.status.inactive",
|
|
5160
|
-
"profile.binding.read_unavailable",
|
|
5161
|
-
"profile.binding.unbound",
|
|
5162
|
-
"workspace.missing",
|
|
5163
|
-
"workspace.invalid"
|
|
5164
|
-
])
|
|
5165
|
-
});
|
|
5166
|
-
const openMeldDaemonSyncRouteCatalogPayloadSchema = strictObject({
|
|
5167
|
-
accepted: boolean(),
|
|
5168
|
-
syncStatus: openMeldDaemonSyncRouteCatalogStatusSchema,
|
|
5169
|
-
profileIds: array(agentProfileIdSchema),
|
|
5170
|
-
addedProfileIds: array(agentProfileIdSchema).optional(),
|
|
5171
|
-
keptProfileIds: array(agentProfileIdSchema).optional(),
|
|
5172
|
-
removedProfileIds: array(agentProfileIdSchema).optional(),
|
|
5173
|
-
skippedProfiles: array(skippedDaemonProfileSchema).optional(),
|
|
5174
|
-
note: string().min(1).optional(),
|
|
5175
|
-
errorMessage: string().min(1).optional()
|
|
5176
|
-
});
|
|
5177
|
-
const openMeldDaemonRequestAgentActivitySyncPayloadSchema = strictObject({ accepted: boolean() });
|
|
5178
|
-
const openMeldDaemonSetLocalAgentEnabledPayloadSchema = strictObject({
|
|
5179
|
-
accepted: boolean(),
|
|
5180
|
-
agentControllerRef: string().min(1).optional(),
|
|
5181
|
-
agentId: string().trim().min(1).max(256),
|
|
5182
|
-
changed: boolean(),
|
|
5183
|
-
enabled: boolean(),
|
|
5184
|
-
message: string().min(1).optional(),
|
|
5185
|
-
reasonCode: string().min(1).optional(),
|
|
5186
|
-
reportSyncStatus: enumFactory([
|
|
5187
|
-
"submitted",
|
|
5188
|
-
"skipped",
|
|
5189
|
-
"failed"
|
|
5190
|
-
]),
|
|
5191
|
-
status: enumFactory([
|
|
5192
|
-
"updated",
|
|
5193
|
-
"unchanged",
|
|
5194
|
-
"rejected"
|
|
5195
|
-
])
|
|
5196
|
-
});
|
|
5197
|
-
const openMeldDaemonManageLocalAgentInstallationPayloadSchema = discriminatedUnion("accepted", [strictObject({
|
|
5198
|
-
accepted: literal(true),
|
|
5199
|
-
agentControllerRef: string().min(1),
|
|
5200
|
-
agentId: string().trim().min(1).max(256),
|
|
5201
|
-
changed: boolean(),
|
|
5202
|
-
installations: array(localAgentInstallationOptionSchema),
|
|
5203
|
-
reportSyncStatus: enumFactory([
|
|
5204
|
-
"submitted",
|
|
5205
|
-
"skipped",
|
|
5206
|
-
"failed"
|
|
5207
|
-
]),
|
|
5208
|
-
selectionStatus: enumFactory([
|
|
5209
|
-
"available",
|
|
5210
|
-
"blocked_by_work",
|
|
5211
|
-
"operation_in_progress"
|
|
5212
|
-
]).optional(),
|
|
5213
|
-
selectedInstallationId: string().trim().min(1).max(256).nullable(),
|
|
5214
|
-
status: enumFactory([
|
|
5215
|
-
"listed",
|
|
5216
|
-
"updated",
|
|
5217
|
-
"unchanged"
|
|
5218
|
-
])
|
|
5219
|
-
}), strictObject({
|
|
5220
|
-
accepted: literal(false),
|
|
5221
|
-
agentId: string().trim().min(1).max(256),
|
|
5222
|
-
changed: literal(false),
|
|
5223
|
-
installations: array(localAgentInstallationOptionSchema),
|
|
5224
|
-
message: string().min(1).optional(),
|
|
5225
|
-
reasonCode: string().min(1).optional(),
|
|
5226
|
-
reportSyncStatus: literal("failed"),
|
|
5227
|
-
selectionStatus: enumFactory([
|
|
5228
|
-
"available",
|
|
5229
|
-
"blocked_by_work",
|
|
5230
|
-
"operation_in_progress"
|
|
5231
|
-
]).optional(),
|
|
5232
|
-
selectedInstallationId: string().trim().min(1).max(256).nullable(),
|
|
5233
|
-
status: literal("rejected")
|
|
5234
|
-
})]);
|
|
5235
|
-
const openMeldDaemonSetProfileWorkspacePayloadSchema = discriminatedUnion("accepted", [strictObject({
|
|
5236
|
-
accepted: literal(true),
|
|
5237
|
-
targetProfileId: agentProfileIdSchema,
|
|
5238
|
-
status: literal("updated"),
|
|
5239
|
-
workspaceMode: profileWorkspaceModeSchema,
|
|
5240
|
-
workspacePath: string().min(1)
|
|
5241
|
-
}), strictObject({
|
|
5242
|
-
accepted: literal(false),
|
|
5243
|
-
targetProfileId: agentProfileIdSchema,
|
|
5244
|
-
message: string().min(1).optional(),
|
|
5245
|
-
reasonCode: string().min(1).optional(),
|
|
5246
|
-
status: literal("rejected")
|
|
5247
|
-
})]);
|
|
5248
|
-
const openMeldDaemonControlPlaneRequestBaseSchema = strictObject({
|
|
5249
|
-
v: literal(1),
|
|
5250
|
-
requestId: string().min(1).optional(),
|
|
5251
|
-
authToken: string().min(1).optional()
|
|
5252
|
-
});
|
|
5253
|
-
const openMeldDaemonControlPlaneRequestSchema = discriminatedUnion("command", [
|
|
5254
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal("status") }),
|
|
5255
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal("health") }),
|
|
5256
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal("history") }),
|
|
5257
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
5258
|
-
command: literal("interrupt"),
|
|
5259
|
-
payload: openMeldDaemonInterruptRequestPayloadSchema
|
|
5260
|
-
}),
|
|
5261
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
5262
|
-
command: literal("cancel"),
|
|
5263
|
-
payload: openMeldDaemonCancelRequestPayloadSchema
|
|
5264
|
-
}),
|
|
5265
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
5266
|
-
command: literal("conversation_execution_status"),
|
|
5267
|
-
payload: openMeldDaemonConversationExecutionStatusRequestPayloadSchema
|
|
5268
|
-
}),
|
|
5269
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
5270
|
-
command: literal("sync_route_catalog"),
|
|
5271
|
-
payload: openMeldDaemonSyncRouteCatalogRequestPayloadSchema
|
|
5272
|
-
}),
|
|
5273
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
5274
|
-
command: literal("request_agent_activity_sync"),
|
|
5275
|
-
payload: openMeldDaemonRequestAgentActivitySyncRequestPayloadSchema
|
|
5276
|
-
}),
|
|
5277
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
5278
|
-
command: literal("set_local_agent_enabled"),
|
|
5279
|
-
payload: openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema
|
|
5280
|
-
}),
|
|
5281
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
5282
|
-
command: literal("set_profile_workspace"),
|
|
5283
|
-
payload: openMeldDaemonSetProfileWorkspaceRequestPayloadSchema
|
|
5284
|
-
}),
|
|
5285
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal("service_update_readiness") }),
|
|
5286
|
-
openMeldDaemonControlPlaneRequestBaseSchema.extend({
|
|
5287
|
-
command: literal("shutdown"),
|
|
5288
|
-
payload: openMeldDaemonShutdownRequestPayloadSchema.optional()
|
|
5289
|
-
})
|
|
5290
|
-
]);
|
|
5291
|
-
const openMeldDaemonStatusPayloadSchema = strictObject({
|
|
5292
|
-
installed: boolean(),
|
|
5293
|
-
running: boolean(),
|
|
5294
|
-
daemonVersion: string().min(1),
|
|
5295
|
-
runtimeRoot: string().min(1),
|
|
5296
|
-
checkedAt: string().min(1)
|
|
5297
|
-
});
|
|
5298
|
-
const openMeldDaemonHealthPayloadSchema = strictObject({
|
|
5299
|
-
state: openMeldDaemonHealthStateSchema,
|
|
5300
|
-
runtimeState: openMeldDaemonRuntimeHealthStateSchema.optional(),
|
|
5301
|
-
reasonCode: string().min(1),
|
|
5302
|
-
checkedAt: string().min(1)
|
|
5303
|
-
});
|
|
5304
|
-
const openMeldDaemonHistoryPayloadSchema = strictObject({
|
|
5305
|
-
entries: array(strictObject({
|
|
5306
|
-
id: string().min(1),
|
|
5307
|
-
ts: string().min(1),
|
|
5308
|
-
code: string().min(1),
|
|
5309
|
-
message: string().min(1)
|
|
5310
|
-
})),
|
|
5311
|
-
nextCursor: string().min(1).optional()
|
|
5312
|
-
});
|
|
5313
|
-
const openMeldDaemonInterruptPayloadSchema = strictObject({
|
|
5314
|
-
accepted: boolean(),
|
|
5315
|
-
target: openMeldDaemonControlTargetSelectorSchema,
|
|
5316
|
-
resolvedDispatchId: string().min(1).optional(),
|
|
5317
|
-
resolvedRuntimeCoordinatorExecutionId: string().min(1).optional(),
|
|
5318
|
-
resolvedTaskId: string().min(1).optional(),
|
|
5319
|
-
note: string().min(1).optional(),
|
|
5320
|
-
reasonCode: string().min(1).optional()
|
|
5321
|
-
});
|
|
5322
|
-
const openMeldDaemonCancelPayloadSchema = strictObject({
|
|
5323
|
-
accepted: boolean(),
|
|
5324
|
-
target: openMeldDaemonControlTargetSelectorSchema,
|
|
5325
|
-
resolvedDispatchId: string().min(1).optional(),
|
|
5326
|
-
resolvedRuntimeCoordinatorExecutionId: string().min(1).optional(),
|
|
5327
|
-
resolvedTaskId: string().min(1).optional(),
|
|
5328
|
-
note: string().min(1).optional(),
|
|
5329
|
-
reasonCode: string().min(1).optional()
|
|
5330
|
-
});
|
|
5331
|
-
const openMeldDaemonControlPlaneErrorPayloadSchema = strictObject({
|
|
5332
|
-
errorCode: string().min(1),
|
|
5333
|
-
errorMessage: string().min(1),
|
|
5334
|
-
note: string().min(1).optional()
|
|
5335
|
-
});
|
|
5336
|
-
const openMeldDaemonShutdownPayloadSchema = strictObject({
|
|
5337
|
-
accepted: boolean(),
|
|
5338
|
-
mode: enumFactory(["graceful", "force"]),
|
|
5339
|
-
gracePeriodMs: number().int().nonnegative()
|
|
5340
|
-
});
|
|
5341
|
-
const openMeldDaemonControlPlaneResponseBaseSchema = strictObject({
|
|
5342
|
-
v: literal(1),
|
|
5343
|
-
requestId: string().min(1).optional()
|
|
5344
|
-
});
|
|
5345
|
-
const openMeldDaemonStatusResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
5346
|
-
code: literal("service.status"),
|
|
5347
|
-
payload: openMeldDaemonStatusPayloadSchema
|
|
5348
|
-
});
|
|
5349
|
-
const openMeldDaemonHealthResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
5350
|
-
code: literal("service.health"),
|
|
5351
|
-
payload: openMeldDaemonHealthPayloadSchema
|
|
5352
|
-
});
|
|
5353
|
-
const openMeldDaemonHistoryResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
5354
|
-
code: literal("service.history"),
|
|
5355
|
-
payload: openMeldDaemonHistoryPayloadSchema
|
|
5356
|
-
});
|
|
5357
|
-
const openMeldDaemonInterruptResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
5358
|
-
code: literal("service.interrupt"),
|
|
5359
|
-
payload: openMeldDaemonInterruptPayloadSchema
|
|
5360
|
-
});
|
|
5361
|
-
const openMeldDaemonCancelResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
5362
|
-
code: literal("service.cancel"),
|
|
5363
|
-
payload: openMeldDaemonCancelPayloadSchema
|
|
5364
|
-
});
|
|
5365
|
-
const openMeldDaemonConversationExecutionStatusResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
5366
|
-
code: literal("service.conversation_execution_status"),
|
|
5367
|
-
payload: openMeldDaemonConversationExecutionStatusPayloadSchema
|
|
5368
|
-
});
|
|
5369
|
-
const openMeldDaemonSyncRouteCatalogResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
5370
|
-
code: literal("service.sync_route_catalog"),
|
|
5371
|
-
payload: openMeldDaemonSyncRouteCatalogPayloadSchema
|
|
5372
|
-
});
|
|
5373
|
-
const openMeldDaemonRequestAgentActivitySyncResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
5374
|
-
code: literal("service.agent_activity_sync_requested"),
|
|
5375
|
-
payload: openMeldDaemonRequestAgentActivitySyncPayloadSchema
|
|
4389
|
+
message: "allowedActions must contain at least one action"
|
|
4390
|
+
});
|
|
4391
|
+
return;
|
|
4392
|
+
}
|
|
4393
|
+
if (new Set(value).size !== value.length) ctx.addIssue({
|
|
4394
|
+
code: "custom",
|
|
4395
|
+
message: "allowedActions must not contain duplicates"
|
|
4396
|
+
});
|
|
5376
4397
|
});
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
4398
|
+
//#endregion
|
|
4399
|
+
//#region ../../packages/schemas/dist/schemas/space-mesh/result-archive-policy.js
|
|
4400
|
+
const resultArchiveModeSchema = z$1.enum([
|
|
4401
|
+
"none",
|
|
4402
|
+
"space_reply_only",
|
|
4403
|
+
"all_final_results"
|
|
4404
|
+
]);
|
|
4405
|
+
const resultArchivePolicySchema = z$1.strictObject({ mode: resultArchiveModeSchema });
|
|
4406
|
+
//#endregion
|
|
4407
|
+
//#region ../../packages/schemas/dist/schemas/space-mesh/space-note.js
|
|
4408
|
+
const spaceNoteSchema = z$1.string().trim().min(1);
|
|
4409
|
+
//#endregion
|
|
4410
|
+
//#region ../../packages/schemas/dist/schemas/space-mesh/space-contract.js
|
|
4411
|
+
const isoDateTimeSchema = z$1.iso.datetime({ offset: true });
|
|
4412
|
+
const spaceBriefModeSchema = z$1.enum(["default", "none"]);
|
|
4413
|
+
const spaceContractFieldsSchema = z$1.strictObject({
|
|
4414
|
+
dispatchPolicy: spaceDispatchPolicySchema,
|
|
4415
|
+
publicationMode: spacePublicationModeSchema,
|
|
4416
|
+
allowedActions: spaceAllowedActionsSchema,
|
|
4417
|
+
resultArchivePolicy: resultArchivePolicySchema,
|
|
4418
|
+
spaceNote: spaceNoteSchema.optional(),
|
|
4419
|
+
authorityOrder: spaceAuthorityOrderSchema,
|
|
4420
|
+
entryBrief: spaceBriefModeSchema,
|
|
4421
|
+
dispatchBrief: spaceBriefModeSchema
|
|
5380
4422
|
});
|
|
5381
|
-
const
|
|
5382
|
-
|
|
5383
|
-
|
|
4423
|
+
const spaceContractSchema = z$1.strictObject({
|
|
4424
|
+
version: z$1.number().int().finite().positive(),
|
|
4425
|
+
updatedAt: isoDateTimeSchema,
|
|
4426
|
+
updatedBy: z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1)),
|
|
4427
|
+
dispatchPolicy: spaceDispatchPolicySchema,
|
|
4428
|
+
publicationMode: spacePublicationModeSchema,
|
|
4429
|
+
allowedActions: spaceAllowedActionsSchema,
|
|
4430
|
+
resultArchivePolicy: resultArchivePolicySchema,
|
|
4431
|
+
spaceNote: spaceNoteSchema.optional(),
|
|
4432
|
+
authorityOrder: spaceAuthorityOrderSchema,
|
|
4433
|
+
entryBrief: spaceBriefModeSchema,
|
|
4434
|
+
dispatchBrief: spaceBriefModeSchema
|
|
5384
4435
|
});
|
|
5385
|
-
const openMeldDaemonShutdownResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
5386
|
-
code: literal("service.shutdown"),
|
|
5387
|
-
payload: openMeldDaemonShutdownPayloadSchema
|
|
5388
|
-
});
|
|
5389
|
-
const openMeldDaemonControlPlaneResponseSchema = discriminatedUnion("code", [
|
|
5390
|
-
openMeldDaemonStatusResponseSchema,
|
|
5391
|
-
openMeldDaemonHealthResponseSchema,
|
|
5392
|
-
openMeldDaemonHistoryResponseSchema,
|
|
5393
|
-
openMeldDaemonInterruptResponseSchema,
|
|
5394
|
-
openMeldDaemonCancelResponseSchema,
|
|
5395
|
-
openMeldDaemonConversationExecutionStatusResponseSchema,
|
|
5396
|
-
openMeldDaemonSyncRouteCatalogResponseSchema,
|
|
5397
|
-
openMeldDaemonRequestAgentActivitySyncResponseSchema,
|
|
5398
|
-
openMeldDaemonSetLocalAgentEnabledResponseSchema,
|
|
5399
|
-
openMeldDaemonSetProfileWorkspaceResponseSchema,
|
|
5400
|
-
openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
5401
|
-
code: literal("service.update_readiness"),
|
|
5402
|
-
payload: openMeldDaemonServiceUpdateReadinessPayloadSchema
|
|
5403
|
-
}),
|
|
5404
|
-
openMeldDaemonShutdownResponseSchema,
|
|
5405
|
-
openMeldDaemonControlPlaneResponseBaseSchema.extend({
|
|
5406
|
-
code: literal("service.error"),
|
|
5407
|
-
payload: openMeldDaemonControlPlaneErrorPayloadSchema
|
|
5408
|
-
})
|
|
5409
|
-
]);
|
|
5410
4436
|
//#endregion
|
|
5411
4437
|
//#region ../../packages/schemas/dist/schemas/runtime/agent-task-coordination.js
|
|
5412
4438
|
const nonEmptyIdSchema = string().trim().min(1).max(512);
|
|
@@ -5795,113 +4821,6 @@ discriminatedUnion("v", [
|
|
|
5795
4821
|
})
|
|
5796
4822
|
]);
|
|
5797
4823
|
//#endregion
|
|
5798
|
-
//#region ../../packages/schemas/dist/schemas/daemon/local-folder-path.js
|
|
5799
|
-
const WINDOWS_ABSOLUTE_PATH_PATTERN = /^[A-Za-z]:[\\/]/u;
|
|
5800
|
-
const localFolderPathSchema = profileWorkingDirectorySchema.refine((value) => value.startsWith("/") || value.startsWith("\\\\") || WINDOWS_ABSOLUTE_PATH_PATTERN.test(value), "Enter the full folder path on this computer.");
|
|
5801
|
-
//#endregion
|
|
5802
|
-
//#region ../../packages/schemas/dist/schemas/daemon/local-folder-picker.js
|
|
5803
|
-
const boundedIdentifierSchema = z$1.string().trim().min(1).max(512);
|
|
5804
|
-
const LOCAL_FOLDER_PICKER_FRAME_VERSION = 1;
|
|
5805
|
-
const OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER = "x-openmeld-local-folder-picker-capability";
|
|
5806
|
-
const LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY = "local-folder-picker-v1";
|
|
5807
|
-
const localFolderPickerRuntimeCapabilitySchema = z$1.strictObject({ selectFolders: z$1.literal(true) });
|
|
5808
|
-
const localFolderPickerPurposeSchema = z$1.enum([
|
|
5809
|
-
"computer_file_access",
|
|
5810
|
-
"project_connection",
|
|
5811
|
-
"agent_profile_working_folder"
|
|
5812
|
-
]);
|
|
5813
|
-
const localFolderPickerRequestSchema = z$1.strictObject({
|
|
5814
|
-
allowMultiple: z$1.boolean(),
|
|
5815
|
-
expectedDeviceId: boundedIdentifierSchema,
|
|
5816
|
-
purpose: localFolderPickerPurposeSchema
|
|
5817
|
-
});
|
|
5818
|
-
const localFolderPickerErrorCodeSchema = z$1.enum([
|
|
5819
|
-
"local.folder_picker.device_mismatch",
|
|
5820
|
-
"local.folder_picker.helper_missing",
|
|
5821
|
-
"local.folder_picker.internal_error",
|
|
5822
|
-
"local.folder_picker.invalid_request",
|
|
5823
|
-
"local.folder_picker.invalid_response",
|
|
5824
|
-
"local.folder_picker.no_interactive_session",
|
|
5825
|
-
"local.folder_picker.picker_busy",
|
|
5826
|
-
"local.folder_picker.portal_unavailable",
|
|
5827
|
-
"local.folder_picker.service_offline",
|
|
5828
|
-
"local.folder_picker.service_update_required",
|
|
5829
|
-
"local.folder_picker.timed_out",
|
|
5830
|
-
"local.folder_picker.unsupported_platform"
|
|
5831
|
-
]);
|
|
5832
|
-
const localFolderPickerHelperErrorCodeSchema = z$1.enum([
|
|
5833
|
-
"local.folder_picker.internal_error",
|
|
5834
|
-
"local.folder_picker.invalid_response",
|
|
5835
|
-
"local.folder_picker.no_interactive_session",
|
|
5836
|
-
"local.folder_picker.portal_unavailable",
|
|
5837
|
-
"local.folder_picker.timed_out",
|
|
5838
|
-
"local.folder_picker.unsupported_platform"
|
|
5839
|
-
]);
|
|
5840
|
-
const localFolderPickerHelperSelectedResultSchema = z$1.strictObject({
|
|
5841
|
-
paths: z$1.array(localFolderPathSchema).min(1).max(128),
|
|
5842
|
-
status: z$1.literal("selected")
|
|
5843
|
-
});
|
|
5844
|
-
const localFolderPickerHelperCancelledResultSchema = z$1.strictObject({ status: z$1.literal("cancelled") });
|
|
5845
|
-
const localFolderPickerHelperUnavailableResultSchema = z$1.strictObject({
|
|
5846
|
-
code: localFolderPickerHelperErrorCodeSchema,
|
|
5847
|
-
status: z$1.literal("unavailable")
|
|
5848
|
-
});
|
|
5849
|
-
const localFolderPickerHelperResultSchema = z$1.discriminatedUnion("status", [
|
|
5850
|
-
localFolderPickerHelperSelectedResultSchema,
|
|
5851
|
-
localFolderPickerHelperCancelledResultSchema,
|
|
5852
|
-
localFolderPickerHelperUnavailableResultSchema
|
|
5853
|
-
]);
|
|
5854
|
-
const localFolderPickerHelperProtocolResultSchema = z$1.discriminatedUnion("status", [
|
|
5855
|
-
localFolderPickerHelperSelectedResultSchema.extend({ v: z$1.literal(LOCAL_FOLDER_PICKER_FRAME_VERSION) }),
|
|
5856
|
-
localFolderPickerHelperCancelledResultSchema.extend({ v: z$1.literal(LOCAL_FOLDER_PICKER_FRAME_VERSION) }),
|
|
5857
|
-
localFolderPickerHelperUnavailableResultSchema.extend({ v: z$1.literal(LOCAL_FOLDER_PICKER_FRAME_VERSION) })
|
|
5858
|
-
]);
|
|
5859
|
-
const localFolderPickerSelectedResultSchema = z$1.strictObject({
|
|
5860
|
-
deviceId: boundedIdentifierSchema,
|
|
5861
|
-
paths: z$1.array(localFolderPathSchema).min(1).max(128),
|
|
5862
|
-
status: z$1.literal("selected")
|
|
5863
|
-
});
|
|
5864
|
-
const localFolderPickerCancelledResultSchema = z$1.strictObject({
|
|
5865
|
-
deviceId: boundedIdentifierSchema,
|
|
5866
|
-
status: z$1.literal("cancelled")
|
|
5867
|
-
});
|
|
5868
|
-
const localFolderPickerUnavailableResultSchema = z$1.strictObject({
|
|
5869
|
-
code: localFolderPickerErrorCodeSchema,
|
|
5870
|
-
message: z$1.string().trim().min(1).max(1024),
|
|
5871
|
-
status: z$1.literal("unavailable")
|
|
5872
|
-
});
|
|
5873
|
-
const localFolderPickerResultSchema = z$1.discriminatedUnion("status", [
|
|
5874
|
-
localFolderPickerSelectedResultSchema,
|
|
5875
|
-
localFolderPickerCancelledResultSchema,
|
|
5876
|
-
localFolderPickerUnavailableResultSchema
|
|
5877
|
-
]);
|
|
5878
|
-
localFolderPickerRequestSchema.extend({ context: openMeldRequestContextSchema });
|
|
5879
|
-
const localFolderPickerRequestFrameSchema = z$1.strictObject({
|
|
5880
|
-
code: z$1.literal("daemon.local_folder_picker.select_folders"),
|
|
5881
|
-
payload: z$1.strictObject({
|
|
5882
|
-
request: localFolderPickerRequestSchema,
|
|
5883
|
-
requestId: boundedIdentifierSchema
|
|
5884
|
-
}),
|
|
5885
|
-
v: z$1.literal(LOCAL_FOLDER_PICKER_FRAME_VERSION)
|
|
5886
|
-
});
|
|
5887
|
-
const localFolderPickerResultFrameSchema = z$1.strictObject({
|
|
5888
|
-
code: z$1.literal("daemon.local_folder_picker.select_folders_result"),
|
|
5889
|
-
payload: z$1.strictObject({
|
|
5890
|
-
requestId: boundedIdentifierSchema,
|
|
5891
|
-
result: localFolderPickerResultSchema
|
|
5892
|
-
}),
|
|
5893
|
-
v: z$1.literal(LOCAL_FOLDER_PICKER_FRAME_VERSION)
|
|
5894
|
-
});
|
|
5895
|
-
const localFolderPickerDaemonFrameSchema = z$1.discriminatedUnion("code", [localFolderPickerRequestFrameSchema, localFolderPickerResultFrameSchema]);
|
|
5896
|
-
z$1.strictObject({
|
|
5897
|
-
deviceId: boundedIdentifierSchema,
|
|
5898
|
-
lane: daemonServiceLaneSchema,
|
|
5899
|
-
ownerUserId: boundedIdentifierSchema,
|
|
5900
|
-
request: localFolderPickerRequestSchema,
|
|
5901
|
-
requestId: boundedIdentifierSchema,
|
|
5902
|
-
v: z$1.literal(LOCAL_FOLDER_PICKER_FRAME_VERSION)
|
|
5903
|
-
});
|
|
5904
|
-
//#endregion
|
|
5905
4824
|
//#region ../../packages/schemas/dist/schemas/daemon/provider-runtime-capability.js
|
|
5906
4825
|
const providerRuntimeStreamingCapabilitySchema = z$1.enum(["preview_capable", "final_only"]);
|
|
5907
4826
|
const providerRuntimeImageInputCapabilitySchema = z$1.enum(["local_file_path", "unsupported"]);
|
|
@@ -7956,116 +6875,6 @@ strictObject({
|
|
|
7956
6875
|
})
|
|
7957
6876
|
});
|
|
7958
6877
|
//#endregion
|
|
7959
|
-
|
|
7960
|
-
const ISO_DATE_TIME_SCHEMA = iso.datetime({ offset: true });
|
|
7961
|
-
const ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE = "profile.additional_human_profile_creation_disabled";
|
|
7962
|
-
const ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE = "Creating additional profiles for people is currently unavailable. Use your default profile, or create an Agent.";
|
|
7963
|
-
const profileErrorStatusSchema = union([
|
|
7964
|
-
literal(400),
|
|
7965
|
-
literal(404),
|
|
7966
|
-
literal(409),
|
|
7967
|
-
literal(500)
|
|
7968
|
-
]);
|
|
7969
|
-
const profileErrorResponseSchema = strictObject({
|
|
7970
|
-
ok: literal(false),
|
|
7971
|
-
code: string().min(1),
|
|
7972
|
-
message: string().min(1)
|
|
7973
|
-
});
|
|
7974
|
-
profileErrorResponseSchema.extend({ status: profileErrorStatusSchema });
|
|
7975
|
-
profileErrorResponseSchema.extend({
|
|
7976
|
-
code: literal(ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE),
|
|
7977
|
-
message: literal(ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE)
|
|
7978
|
-
}).extend({ status: literal(409) });
|
|
7979
|
-
const authProfileKindSchema = enumFactory(["human", "agent"]);
|
|
7980
|
-
const authProfileStatusSchema = enumFactory(["active", "disabled"]);
|
|
7981
|
-
const authProfileManagedRoleSchema = enumFactory(["openmeld_assistant", "center_agent"]);
|
|
7982
|
-
const authProfileViewManagedRoleSchema = authProfileManagedRoleSchema.nullish().transform((value) => value ?? null);
|
|
7983
|
-
const authProfileViewSchema = strictObject({
|
|
7984
|
-
openMeldProfileId: string().min(1),
|
|
7985
|
-
profileName: string().min(1),
|
|
7986
|
-
profileHandle: string().min(1),
|
|
7987
|
-
profileKind: authProfileKindSchema,
|
|
7988
|
-
isDefault: boolean(),
|
|
7989
|
-
status: authProfileStatusSchema,
|
|
7990
|
-
ownerUserId: string().min(1).nullable(),
|
|
7991
|
-
organizationId: string().min(1).nullable().optional(),
|
|
7992
|
-
ownerName: string().min(1).optional(),
|
|
7993
|
-
avatarUrl: string().min(1).optional(),
|
|
7994
|
-
source: string().min(1),
|
|
7995
|
-
managedRole: authProfileViewManagedRoleSchema,
|
|
7996
|
-
defaultProjectId: string().trim().min(1).nullable().optional(),
|
|
7997
|
-
createdByUserId: string().min(1).nullable(),
|
|
7998
|
-
creationActorProfileId: string().min(1).nullable().optional(),
|
|
7999
|
-
creatorProfileId: string().min(1).nullable(),
|
|
8000
|
-
lastUsedAt: ISO_DATE_TIME_SCHEMA.nullable(),
|
|
8001
|
-
createdAt: ISO_DATE_TIME_SCHEMA,
|
|
8002
|
-
updatedAt: ISO_DATE_TIME_SCHEMA
|
|
8003
|
-
}).superRefine((profile, context) => {
|
|
8004
|
-
if (profile.defaultProjectId === void 0 || profile.profileKind === "agent" && profile.managedRole === null) return;
|
|
8005
|
-
context.addIssue({
|
|
8006
|
-
code: "custom",
|
|
8007
|
-
message: "Default Project is only available for ordinary Agent Profiles.",
|
|
8008
|
-
path: ["defaultProjectId"]
|
|
8009
|
-
});
|
|
8010
|
-
});
|
|
8011
|
-
const updateAgentProfileDefaultProjectBodySchema = strictObject({
|
|
8012
|
-
expectedOrganizationId: string().trim().min(1),
|
|
8013
|
-
defaultProjectId: string().trim().min(1).nullable()
|
|
8014
|
-
});
|
|
8015
|
-
const updateAgentProfileDefaultProjectRouteParamsShape = { agentProfileId: string().trim().min(1) };
|
|
8016
|
-
strictObject(updateAgentProfileDefaultProjectRouteParamsShape);
|
|
8017
|
-
updateAgentProfileDefaultProjectBodySchema.extend({
|
|
8018
|
-
agentProfileId: updateAgentProfileDefaultProjectRouteParamsShape.agentProfileId,
|
|
8019
|
-
context: openMeldRequestContextSchema
|
|
8020
|
-
});
|
|
8021
|
-
strictObject({
|
|
8022
|
-
profileName: string().trim().min(1),
|
|
8023
|
-
creatorProfileId: string().min(1).optional()
|
|
8024
|
-
});
|
|
8025
|
-
strictObject({
|
|
8026
|
-
profileName: string().trim().min(1),
|
|
8027
|
-
creatorProfileId: string().min(1).optional(),
|
|
8028
|
-
idempotencyKey: string().trim().min(1).max(512).optional()
|
|
8029
|
-
});
|
|
8030
|
-
strictObject({
|
|
8031
|
-
profileName: string().trim().min(1),
|
|
8032
|
-
managedRole: authProfileManagedRoleSchema,
|
|
8033
|
-
creatorProfileId: string().min(1).optional()
|
|
8034
|
-
});
|
|
8035
|
-
strictObject({
|
|
8036
|
-
ok: literal(true),
|
|
8037
|
-
profiles: array(authProfileViewSchema)
|
|
8038
|
-
});
|
|
8039
|
-
const profileCapabilitiesResponseSchema = strictObject({
|
|
8040
|
-
ok: literal(true),
|
|
8041
|
-
additionalHumanProfileCreationEnabled: boolean()
|
|
8042
|
-
});
|
|
8043
|
-
strictObject({
|
|
8044
|
-
ok: literal(true),
|
|
8045
|
-
profile: authProfileViewSchema
|
|
8046
|
-
});
|
|
8047
|
-
strictObject({
|
|
8048
|
-
ok: literal(true),
|
|
8049
|
-
profile: authProfileViewSchema
|
|
8050
|
-
});
|
|
8051
|
-
strictObject({
|
|
8052
|
-
ok: literal(true),
|
|
8053
|
-
profile: authProfileViewSchema
|
|
8054
|
-
});
|
|
8055
|
-
strictObject({
|
|
8056
|
-
ok: literal(true),
|
|
8057
|
-
profile: authProfileViewSchema
|
|
8058
|
-
});
|
|
8059
|
-
const updateProfileResponseSchema = strictObject({
|
|
8060
|
-
ok: literal(true),
|
|
8061
|
-
profile: authProfileViewSchema
|
|
8062
|
-
});
|
|
8063
|
-
const updateAgentProfileDefaultProjectResponseSchema = updateProfileResponseSchema;
|
|
8064
|
-
strictObject({
|
|
8065
|
-
ok: literal(true),
|
|
8066
|
-
profile: authProfileViewSchema
|
|
8067
|
-
});
|
|
8068
|
-
//#endregion
|
|
8069
|
-
export { openMeldDaemonProviderAccessEvidenceSchema as $, computerSetupModeSchema as $i, spaceAttachmentFileNameSchema as $n, int as $r, localComponentUpdateStatusSchema as $t, runtimeTransportHeartbeatResponseSchema as A, spaceThreadContextSchema as Ai, localAgentCatalogLaunchStatusSchema as An, restoreSpaceFileEntryResponseSchema as Ar, dispatchExecutionSchema as At, runtimeTransportOpenMeldToolsControlResultFramePayloadSchema as B, profileWorkingDirectorySchema as Bi, DISPATCH_ACTIVITY_FAILED_PURPOSE as Bn, spaceFileRevisionNumberSchema as Br, AGENT_INTERACTION_DEFAULT_TIMEOUT_MS as Bt, runtimeTransportDispatchPreviewRequestSchema as C, spaceAgentStreamSnapshotSchema as Ci, executeExecutionRecoveryResponseSchema as Cn, getSpaceFileResponseSchema as Cr, localAgentInstallationOptionSchema as Ct, runtimeTransportErrorCodeSchema as D, localAgentReasoningPreferencesSchema as Di, START_ISO_DATE_TIME_SCHEMA as Dn, publishSpaceComposerUploadResponseSchema as Dr, skippedDaemonProfileSchema as Dt, runtimeTransportDispatchToolActivityRequestSchema as E, OPENMELD_REASONING_STREAM_HEADER as Ei, START_BOUNDED_VERSION_SCHEMA as En, listSpaceFilesResponseSchema as Er, openMeldDaemonSyncRouteCatalogPayloadSchema as Et, runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema as F, agentProfileIdSchema as Fi, AGENT_REPLYING_PURPOSE as Fn, spaceFileClientMutationIdSchema as Fr, spacePublicationModeSchema as Ft, runtimeTransportResumeControllerConversationResultFramePayloadSchema as G, optionalBooleanQuerySchema as Gi, sanitizeSignalTextPreview as Gn, uploadSpaceFileResponseSchema as Gr, formatLocalComponentsSummaryDescription as Gt, runtimeTransportRegisterSessionResponseSchema as H, uuidProfileIdSchema as Hi, SPACE_MEMBER_JOIN_NOTICE_PURPOSE as Hn, stageSpaceComposerUploadResponseSchema as Hr, agentInteractionRequestSchema as Ht, runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema as I, normalizeOptionalWorkingDirectory as Ii, AGENT_REPLY_PREVIEW_END_PURPOSE as In, spaceFileDescriptorSchema as Ir, spaceDispatchPolicySchema as It, runtimeTransportSubmitTaskResultRequestSchema as J, resolveMappedPublicAgentFailureReason as Ji, signalTextDataSchema as Jn, boolean as Jr, formatLocalSetupActionLabel as Jt, runtimeTransportRouteCatalogChangedFramePayloadSchema as K, trimmedStringFromUnknown as Ki, signalStatusDataSchema as Kn, NEVER as Kr, formatLocalComponentsSummaryLabel as Kt, runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema as L, openMeldRuntimeProfileIdSchema as Li, AGENT_REPLY_PREVIEW_PURPOSE as Ln, spaceFileEntryIdSchema as Lr, workingLanguageGuidanceSchema as Lt, runtimeTransportLocalAgentControlForkSessionFramePayloadSchema as M, spaceThreadSchema as Mi, localAgentCatalogWithLifecycleSchema as Mn, spaceComposerUploadDescriptorSchema as Mr, spaceContractSchema as Mt, runtimeTransportLocalAgentControlInterruptFramePayloadSchema as N, spaceThreadSignalPlacementSchema as Ni, agentProfileWorkRecoveryActionKindSchema as Nn, spaceComposerUploadIdSchema as Nr, resultArchivePolicySchema as Nt, runtimeTransportForkAgentSessionResultSchema as O, openMeldProfileIdSchema as Oi, START_TRIMMED_NON_EMPTY_STRING_SCHEMA as On, readSpaceFileTextResponseSchema as Or, providerDispatchRuntimeContextSchema as Ot, runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema as P, MAX_PROFILE_WORKING_DIRECTORY_LENGTH as Pi, AGENT_REPLYING_END_PURPOSE as Pn, spaceFileActorSchema as Pr, spaceAllowedActionsSchema as Pt, openMeldDaemonProviderAccessEvidenceProviderSchema as Q, shouldPreferMappedPublicAgentFailureReason as Qi, spaceAttachmentDimensionSchema as Qn, enumFactory as Qr, localComponentUpdateProjectionSchema as Qt, runtimeTransportLookupRouteOwnerServiceEvidenceSchema as R, profileKindSchema as Ri, CONVERSATION_CONTINUITY_WARNING_PURPOSE as Rn, spaceFileMimeTypeSchema as Rr, workingLanguageTagSchema as Rt, runtimeTransportDispatchPreviewEndRequestSchema as S, spaceAgentStreamPresenceSchema as Si, executeExecutionRecoveryBodySchema as Sn, discardSpaceComposerUploadResponseSchema as Sr, spaceWakeAgentTaskHandleSchema as St, runtimeTransportDispatchRuntimeEvidenceRequestSchema as T, LOCAL_AGENT_REASONING_MAX_CHARS as Ti, START_BOUNDED_ID_SCHEMA as Tn, listSpaceFileRevisionsResponseSchema as Tr, openMeldDaemonControlPlaneResponseSchema as Tt, runtimeTransportRejectedProfileRegistrationSchema as U, finiteIntegerNumber as Ui, SPACE_MEMBER_REMOVE_NOTICE_PURPOSE as Un, trashSpaceFileEntryResponseSchema as Ur, agentInteractionResolutionSchema as Ut, runtimeTransportRegisterSessionRequestSchema as V, profileWorkspaceModeSchema as Vi, DISPATCH_ACTIVITY_RETRYING_PURPOSE as Vn, spaceMessageFileReferencesSchema as Vr, agentInteractionPendingSummarySchema as Vt, runtimeTransportResumeControllerConversationFramePayloadSchema as W, nonEmptyTrimmedStringFromUnknown as Wi, SPACE_MENTION_REJECT_NOTICE_PURPOSE as Wn, updateSpaceFileEntryResponseSchema as Wr, agentInteractionResponseSchema as Wt, isOriginalErrorSafeForMessageDetails as X, resolvePublicAgentFailureRecovery as Xi, wakeDeviceWaitTargetSchema as Xn, discriminatedUnion as Xr, localCliComponentUpdateProjectionSchema as Xt, OPENMELD_ORIGINAL_ERROR_MAX_LENGTH as Y, resolvePublicAgentAvailabilityCopy as Yi, signalTextSchema as Yn, coerce as Yr, installedLocalComponentsSnapshotSchema as Yt, openMeldDaemonOriginalErrorSchema as Z, sanitizeDispatchErrorSummary as Zi, spaceAttachmentDescriptorSchema as Zn, email as Zr, localComponentUpdatePolicySchema as Zt, runtimeTransportDeliverDispatchRequestSchema 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, LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY as at, runtimeTransportDispatchInteractionResponseFramePayloadSchema 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, localFolderPickerHelperProtocolResultSchema as ct, CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH as d, tuple as di, runtimeCoordinatorExecutionEventSchema as dn, conversationCompactionMarkerSchema as dr, localFolderPickerResultSchema as dt, openMeldNavigationTargetSchema as ea, iso as ei, localServiceComponentUpdateProjectionSchema as en, spaceAttachmentMimeTypeSchema as er, openMeldDaemonTaskResultEnvelopeWriteSchema as et, daemonExecutionCompatibilitySchema as f, undefinedFactory as fi, runtimeCoordinatorExecutionRecordSchema as fn, centerAgentInteractionSourceSchema as fr, localFolderPathSchema as ft, runtimeTransportCapabilitiesSchema as g, clientMessageIdSchema as gi, SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE as gn, spaceMentionLabelSchema as gr, agentTaskCompletionObservationSchema as gt, localWakeRouteWorkingFolderObservationSchema 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, openMeldSpaceEgressActionSchema as it, runtimeTransportLocalAgentControlCancelFramePayloadSchema as j, spaceThreadEventSchema as ji, localAgentCatalogSchema as jn, restoreSpaceFileRevisionResponseSchema as jr, spaceContractFieldsSchema as jt, runtimeTransportHeartbeatRequestSchema as k, openMeldRequestContextSchema as ki, startReplyReadinessSummarySchema as kn, resolveSpaceFileMimeType as kr, conversationExecutionStateSchema as kt, updateAgentProfileDefaultProjectResponseSchema as l, strictObject as li, postSpaceWakeStopResponseSchema as ln, normalizeMessageEnvelope as lr, localFolderPickerHelperResultSchema as lt, localWakeRouteReportSchema 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, openMeldDaemonTaskResultPayloadSchema as nt, profileCapabilitiesResponseSchema as o, object as oi, openMeldToolsUpdateRequestResultSchema as on, formatCanonicalMentionLiteral as or, OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER as ot, daemonStreamFrameSchema as p, union as pi, runtimeCoordinatorExecutionTokenEnvelopeSchema as pn, spaceStatusSchema as pr, spaceCallerContextSchema as pt, runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema 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, openMeldDaemonTaskResultProjectFailureContextSchema as rt, profileErrorResponseSchema as s, preprocess as si, openMeldToolsUpdateRequestSourceSchema as sn, getSpaceMessageAddressingRelationSupportForTargetKind as sr, localFolderPickerDaemonFrameSchema as st, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE as t, openMeldWebUrlSchema as ta, lazySchema as ti, openMeldToolsMaintenanceMutationResultSchema as tn, spaceAttachmentSizeBytesSchema as tr, openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema as tt, updateProfileResponseSchema as u, string as ui, runtimeCoordinatorExecutionCreationDiagnosticSchema as un, resolveMessageEnvelopeTargetField as ur, localFolderPickerRequestSchema as ut, runtimeTransportDispatchInteractionDeliveredRequestSchema as v, AGENT_STREAM_SNAPSHOT_MAX_CHARS as vi, spacePasswordSchema as vn, SPACE_FILE_ERROR_CODES as vr, agentTaskTerminalOutcomeSchema as vt, runtimeTransportDispatchReasoningRequestSchema as w, spaceAgentStreamTerminalFrameSchema as wi, inspectExecutionRecoveryResponseSchema as wn, isSpaceFileTextEditable as wr, openMeldDaemonControlPlaneRequestSchema as wt, runtimeTransportDispatchLifecycleRequestSchema as x, spaceAgentStreamPartFrameSchema as xi, updateOrganizationInformationProtectionPolicyBodySchema as xn, createSpaceFolderResponseSchema as xr, controllerAgentTaskHandleSchema as xt, runtimeTransportDispatchInteractionRequestSchema as y, agentStreamToolPartSchema as yi, organizationInformationProtectionPolicyResponseSchema as yn, SPACE_FILE_MAX_SIZE_BYTES as yr, areAgentTaskTerminalOutcomesEqual as yt, runtimeTransportOpenMeldToolsControlFramePayloadSchema as z, profileSchema as zi, DISPATCH_ACTIVITY_DISPATCHING_PURPOSE as zn, spaceFileNameSchema as zr, targetWakeLifecycleIdentitySchema as zt };
|
|
6878
|
+
export { agentTaskHandleSchema as $, stageSpaceComposerUploadResponseSchema as $n, SPACE_MEMBER_JOIN_NOTICE_PURPOSE as $t, runtimeTransportOpenMeldToolsControlResultFramePayloadSchema as A, SPACE_FILE_MAX_SIZE_BYTES as An, START_TRIMMED_NON_EMPTY_STRING_SCHEMA as Ar, organizationInformationProtectionPolicyResponseSchema as At, isOriginalErrorSafeForMessageDetails as B, resolveSpaceFileMimeType as Bn, profileCapabilitiesResponseSchema as Br, localFolderPickerHelperProtocolResultSchema as Bt, runtimeTransportLocalAgentControlInterruptFramePayloadSchema as C, centerAgentInteractionSourceSchema as Cn, shouldPreferMappedPublicAgentFailureReason as Cr, runtimeCoordinatorExecutionRecordSchema as Ct, runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema as D, spaceMentionLabelSchema as Dn, START_BOUNDED_ID_SCHEMA as Dr, SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE as Dt, runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema as E, resolveSpaceMentionLabels as En, openMeldWebUrlSchema as Er, spaceTraceExecutionIdentityProjectionSchema as Et, runtimeTransportResumeControllerConversationResultFramePayloadSchema as F, isSpaceFileTextEditable as Fn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE as Fr, inspectExecutionRecoveryResponseSchema as Ft, openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema as G, spaceFileActorSchema as Gn, openMeldProfileIdSchema as Gr, AGENT_REPLYING_END_PURPOSE as Gt, openMeldDaemonProviderAccessEvidenceProviderSchema as H, restoreSpaceFileRevisionResponseSchema as Hn, updateAgentProfileDefaultProjectBodySchema as Hr, localFolderPickerRequestSchema as Ht, runtimeTransportRouteCatalogChangedFramePayloadSchema as I, listSpaceFileRevisionsResponseSchema as In, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE as Ir, agentProfileWorkRecoveryActionKindSchema as It, openMeldSpaceEgressActionSchema as J, spaceFileEntryIdSchema as Jn, resolveCommandAgentWorkActivity as Jr, AGENT_REPLY_PREVIEW_PURPOSE as Jt, openMeldDaemonTaskResultPayloadSchema as K, spaceFileClientMutationIdSchema as Kn, openMeldRequestContextSchema as Kr, AGENT_REPLYING_PURPOSE as Kt, runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema as L, listSpaceFilesResponseSchema as Ln, authProfileKindSchema as Lr, LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY as Lt, runtimeTransportRegisterSessionResponseSchema as M, createSpaceFolderResponseSchema as Mn, localAgentCatalogLaunchStatusSchema as Mr, updateOrganizationInformationProtectionPolicyBodySchema as Mt, runtimeTransportRejectedProfileRegistrationSchema as N, discardSpaceComposerUploadResponseSchema as Nn, localAgentCatalogSchema as Nr, executeExecutionRecoveryBodySchema as Nt, runtimeTransportLookupRouteOwnerServiceEvidenceSchema as O, spaceMentionLabelSourceSchema as On, START_BOUNDED_VERSION_SCHEMA as Or, normalizeSpacePasswordText as Ot, runtimeTransportResumeControllerConversationFramePayloadSchema as P, getSpaceFileResponseSchema as Pn, localAgentCatalogWithLifecycleSchema as Pr, executeExecutionRecoveryResponseSchema as Pt, agentTaskCompletionObservationSchema as Q, spaceMessageFileReferencesSchema as Qn, DISPATCH_ACTIVITY_RETRYING_PURPOSE as Qt, runtimeTransportSubmitTaskResultRequestSchema as R, publishSpaceComposerUploadResponseSchema as Rn, authProfileManagedRoleSchema as Rr, OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER as Rt, runtimeTransportLocalAgentControlForkSessionFramePayloadSchema as S, conversationCompactionMarkerSchema as Sn, sanitizeDispatchErrorSummary as Sr, runtimeCoordinatorExecutionEventSchema as St, runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema as T, resolveSingleSpaceMentionLabels as Tn, openMeldNavigationTargetSchema as Tr, runtimeTransportDeliveryExecutionIdentitySchema as Tt, openMeldDaemonProviderAccessEvidenceSchema as U, spaceComposerUploadDescriptorSchema as Un, updateAgentProfileDefaultProjectResponseSchema as Ur, localFolderPickerResultSchema as Ut, openMeldDaemonOriginalErrorSchema as V, restoreSpaceFileEntryResponseSchema as Vn, profileErrorResponseSchema as Vr, localFolderPickerHelperResultSchema as Vt, openMeldDaemonTaskResultEnvelopeWriteSchema as W, spaceComposerUploadIdSchema as Wn, updateProfileResponseSchema as Wr, localFolderPathSchema as Wt, agentDelegationSnapshotSchema as X, spaceFileNameSchema as Xn, DISPATCH_ACTIVITY_DISPATCHING_PURPOSE as Xt, spaceCallerContextSchema as Y, spaceFileMimeTypeSchema as Yn, CONVERSATION_CONTINUITY_WARNING_PURPOSE as Yt, agentTaskCompletionConditionSchema as Z, spaceFileRevisionNumberSchema as Zn, DISPATCH_ACTIVITY_FAILED_PURPOSE as Zt, runtimeTransportErrorCodeSchema as _, formatCanonicalMentionLiteral as _n, spaceThreadSchema as _r, agentInteractionResolutionSchema as _t, localWakeRouteWorkingFolderObservationSchema as a, signalTextDataSchema as an, AGENT_STREAM_SNAPSHOT_MAX_CHARS as ar, spaceContractFieldsSchema as at, runtimeTransportHeartbeatResponseSchema as b, normalizeMessageEnvelope as bn, resolvePublicAgentAvailabilityCopy as br, postSpaceWakeStopResponseSchema as bt, runtimeTransportDispatchInteractionDeliveredRequestSchema as c, spaceAttachmentDescriptorSchema as cn, spaceAgentStreamPartFrameSchema as cr, spaceAllowedActionsSchema as ct, runtimeTransportDispatchLifecycleRequestSchema as d, spaceAttachmentMimeTypeSchema as dn, spaceAgentStreamTerminalFrameSchema as dr, workingLanguageGuidanceSchema as dt, SPACE_MEMBER_REMOVE_NOTICE_PURPOSE as en, trashSpaceFileEntryResponseSchema as er, agentTaskTerminalOutcomeSchema as et, runtimeTransportDispatchPreviewEndRequestSchema as f, spaceAttachmentSizeBytesSchema as fn, LOCAL_AGENT_REASONING_MAX_CHARS as fr, workingLanguageTagSchema as ft, runtimeTransportDispatchToolActivityRequestSchema as g, collectCanonicalMentionTextFragments as gn, spaceThreadEventSchema as gr, agentInteractionRequestSchema as gt, runtimeTransportDispatchRuntimeEvidenceRequestSchema as h, MESSAGE_MENTION_TYPE_VALUES as hn, spaceThreadContextSchema as hr, agentInteractionPendingSummarySchema as ht, localWakeRouteReportSchema as i, signalSystemNoticeDataSchema as in, parseOptionalClientMessageId as ir, spaceWakeAgentTaskHandleSchema as it, runtimeTransportRegisterSessionRequestSchema as j, SPACE_FILE_RAW_UPLOAD_MAX_BYTES as jn, startReplyReadinessSummarySchema as jr, organizationProtectedInformationSchema as jt, runtimeTransportOpenMeldToolsControlFramePayloadSchema as k, SPACE_FILE_ERROR_CODES as kn, START_ISO_DATE_TIME_SCHEMA as kr, spacePasswordSchema as kt, runtimeTransportDispatchInteractionRequestSchema as l, spaceAttachmentDimensionSchema as ln, spaceAgentStreamPresenceSchema as lr, spacePublicationModeSchema as lt, runtimeTransportDispatchReasoningRequestSchema as m, spaceMessageAttachmentsSchema as mn, localAgentReasoningPreferencesSchema as mr, AGENT_INTERACTION_DEFAULT_TIMEOUT_MS as mt, daemonExecutionCompatibilitySchema as n, sanitizeSignalTextPreview as nn, uploadSpaceFileResponseSchema as nr, buildAgentTaskKey as nt, runtimeTransportCapabilitiesSchema as o, signalTextSchema as on, agentStreamToolPartSchema as or, spaceContractSchema as ot, runtimeTransportDispatchPreviewRequestSchema as p, spaceMessageAttachmentSchema as pn, OPENMELD_REASONING_STREAM_HEADER as pr, targetWakeLifecycleIdentitySchema as pt, openMeldDaemonTaskResultProjectFailureContextSchema as q, spaceFileDescriptorSchema as qn, MAX_TEXT_LENGTH as qr, AGENT_REPLY_PREVIEW_END_PURPOSE as qt, daemonStreamFrameSchema as r, signalStatusDataSchema as rn, clientMessageIdSchema as rr, controllerAgentTaskHandleSchema as rt, runtimeTransportDeliverDispatchRequestSchema as s, wakeDeviceWaitTargetSchema as sn, spaceAgentStreamDeltaFrameSchema as sr, resultArchivePolicySchema as st, CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH as t, SPACE_MENTION_REJECT_NOTICE_PURPOSE as tn, updateSpaceFileEntryResponseSchema as tr, areAgentTaskTerminalOutcomesEqual as tt, runtimeTransportDispatchInteractionResponseFramePayloadSchema as u, spaceAttachmentFileNameSchema as un, spaceAgentStreamSnapshotSchema as ur, spaceDispatchPolicySchema as ut, runtimeTransportForkAgentSessionResultSchema as v, getSpaceMessageAddressingRelationSupportForTargetKind as vn, spaceThreadSignalPlacementSchema as vr, agentInteractionResponseSchema as vt, runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema as w, spaceStatusSchema as wn, computerSetupModeSchema as wr, runtimeCoordinatorExecutionTokenEnvelopeSchema as wt, runtimeTransportLocalAgentControlCancelFramePayloadSchema as x, resolveMessageEnvelopeTargetField as xn, resolvePublicAgentFailureRecovery as xr, runtimeCoordinatorExecutionCreationDiagnosticSchema as xt, runtimeTransportHeartbeatRequestSchema as y, messageEnvelopeSchema as yn, resolveMappedPublicAgentFailureReason as yr, postSpaceWakeStopBodySchema as yt, OPENMELD_ORIGINAL_ERROR_MAX_LENGTH as z, readSpaceFileTextResponseSchema as zn, authProfileViewSchema as zr, localFolderPickerDaemonFrameSchema as zt };
|
|
8070
6879
|
|
|
8071
|
-
//# sourceMappingURL=
|
|
6880
|
+
//# sourceMappingURL=runtime-transport-QIZmAo4-.js.map
|