openmeld 0.3.215 → 0.3.217
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-DIICpPeD.js → add-me-membership-C2Ys6Gq2.js} +2 -2
- package/dist/{add-me-membership-DIICpPeD.js.map → add-me-membership-C2Ys6Gq2.js.map} +1 -1
- package/dist/{agents-DkDhCPDQ.js → agents-ClqMS9aO.js} +11 -11
- package/dist/{agents-DkDhCPDQ.js.map → agents-ClqMS9aO.js.map} +1 -1
- package/dist/{api-client-foundation-DwFyNNaC.js → api-client-foundation-CMVD057A.js} +1 -1
- package/dist/{api-client-foundation-y_0cvP4z.js → api-client-foundation-Cib1elkI.js} +3 -3
- package/dist/{api-client-foundation-y_0cvP4z.js.map → api-client-foundation-Cib1elkI.js.map} +1 -1
- package/dist/auth-session-D7oAIuHk.js +4 -0
- package/dist/{auth-session-CunWE9Up.js → auth-session-DOjVKRI_.js} +4 -4
- package/dist/{auth-session-CunWE9Up.js.map → auth-session-DOjVKRI_.js.map} +1 -1
- package/dist/{base-url-CfyKRz89.js → base-url-CMBApK1J.js} +1 -1
- package/dist/{base-url-BczddvzH.js → base-url-D7uE_xTo.js} +3 -3
- package/dist/{base-url-BczddvzH.js.map → base-url-D7uE_xTo.js.map} +1 -1
- package/dist/{channel-D7RQQwTe.js → channel-BfTy6fDo.js} +4 -4
- package/dist/{channel-D7RQQwTe.js.map → channel-BfTy6fDo.js.map} +1 -1
- package/dist/{cli-space-api-BSpnKocX.js → cli-space-api-BT_Pu9Yg.js} +8 -8
- package/dist/{cli-space-api-BSpnKocX.js.map → cli-space-api-BT_Pu9Yg.js.map} +1 -1
- package/dist/{command-DJDcTWMC.js → command-C1w0UpIu.js} +29 -24
- package/dist/command-C1w0UpIu.js.map +1 -0
- package/dist/{computer-connection-jb6uriyR.js → computer-connection-DsjsjmPp.js} +2 -2
- package/dist/{computer-connection-jb6uriyR.js.map → computer-connection-DsjsjmPp.js.map} +1 -1
- package/dist/{computer-connection-review-BKbEyl1P.js → computer-connection-review-RXJyryCh.js} +6 -6
- package/dist/{computer-connection-review-BKbEyl1P.js.map → computer-connection-review-RXJyryCh.js.map} +1 -1
- package/dist/{computer-disconnect-CI-FglTs.js → computer-disconnect-B_LZM2QE.js} +9 -9
- package/dist/{computer-disconnect-CI-FglTs.js.map → computer-disconnect-B_LZM2QE.js.map} +1 -1
- package/dist/{computer-setup-continuation-F8hRRORE.js → computer-setup-continuation-BVI7SD0M.js} +3 -3
- package/dist/{computer-setup-continuation-F8hRRORE.js.map → computer-setup-continuation-BVI7SD0M.js.map} +1 -1
- package/dist/{context-BfxDJBzm.js → context-Di5R4iik.js} +6 -6
- package/dist/{context-BfxDJBzm.js.map → context-Di5R4iik.js.map} +1 -1
- package/dist/{control-plane-DKPz7DMv.js → control-plane-BDS63N7Y.js} +2 -2
- package/dist/{control-plane-DKPz7DMv.js.map → control-plane-BDS63N7Y.js.map} +1 -1
- package/dist/{controller-contract-pe3_Re-c.js → controller-contract-DAOCaefz.js} +9 -1
- package/dist/controller-contract-DAOCaefz.js.map +1 -0
- package/dist/{daemon-device-id-DCsEEIDx.js → daemon-device-id-bfkbZj9G.js} +9 -9
- package/dist/{daemon-device-id-DCsEEIDx.js.map → daemon-device-id-bfkbZj9G.js.map} +1 -1
- package/dist/{daemon-frame-transport-BI53VLpj.js → daemon-frame-transport-saNQVOyi.js} +10 -10
- package/dist/daemon-frame-transport-saNQVOyi.js.map +1 -0
- package/dist/{daemon-lifecycle-journal-CoWJG0xk.js → daemon-lifecycle-journal-DP01txRB.js} +9 -8
- package/dist/{daemon-lifecycle-journal-CoWJG0xk.js.map → daemon-lifecycle-journal-DP01txRB.js.map} +1 -1
- package/dist/{daemon-runtime-lease-CIzOT1zx.js → daemon-runtime-lease-BUr4qsLo.js} +2 -2
- package/dist/{daemon-runtime-lease-CIzOT1zx.js.map → daemon-runtime-lease-BUr4qsLo.js.map} +1 -1
- package/dist/{daemon-runtime-lease-_M6hW8Mg.js → daemon-runtime-lease-C9X8xV_F.js} +1 -1
- package/dist/{daemon-service-contract-XfV9t96H.js → daemon-service-contract-BpOBMGX0.js} +4 -4
- package/dist/{daemon-service-contract-XfV9t96H.js.map → daemon-service-contract-BpOBMGX0.js.map} +1 -1
- package/dist/{daemon-service-manager-BdYZkRIa.js → daemon-service-manager-CRHq3YSj.js} +1 -1
- package/dist/{daemon-service-manager-CyEK02Yv.js → daemon-service-manager-CXbN836B.js} +6 -6
- package/dist/{daemon-service-manager-CyEK02Yv.js.map → daemon-service-manager-CXbN836B.js.map} +1 -1
- package/dist/{daemon-service-runtime-DNBMVcCI.js → daemon-service-runtime-DpiD8oap.js} +12 -12
- package/dist/{daemon-service-runtime-DNBMVcCI.js.map → daemon-service-runtime-DpiD8oap.js.map} +1 -1
- package/dist/{daemon-service-update-coordinator-BXLsu_wO.js → daemon-service-update-coordinator-BuCEBJoe.js} +23 -23
- package/dist/{daemon-service-update-coordinator-BXLsu_wO.js.map → daemon-service-update-coordinator-BuCEBJoe.js.map} +1 -1
- package/dist/{daemon-state-CoAZLwpi.js → daemon-state-B44aq2nm.js} +3 -3
- package/dist/{daemon-state-CoAZLwpi.js.map → daemon-state-B44aq2nm.js.map} +1 -1
- package/dist/{dist-o3UL1EGQ.js → dist-BLuEEVHh.js} +2 -2
- package/dist/dist-BLuEEVHh.js.map +1 -0
- package/dist/{dist-Ddy96dwl.js → dist-BdibASYs.js} +3 -3
- package/dist/{dist-Ddy96dwl.js.map → dist-BdibASYs.js.map} +1 -1
- package/dist/{dist-CkGG099H.js → dist-DkRliHib.js} +9292 -9207
- package/dist/dist-DkRliHib.js.map +1 -0
- package/dist/{dist-DZYJ8yLA.js → dist-RR7jryeV.js} +1 -1
- package/dist/{elapsed-time-CtNv_azD.js → elapsed-time-CR9OIZSD.js} +6 -6
- package/dist/{elapsed-time-CtNv_azD.js.map → elapsed-time-CR9OIZSD.js.map} +1 -1
- package/dist/{entry-D8cla8ZV.js → entry-CSoHtCQ9.js} +11 -11
- package/dist/{entry-D8cla8ZV.js.map → entry-CSoHtCQ9.js.map} +1 -1
- package/dist/{installation-inventory-DDLKowYl.js → installation-inventory-CscX0nmD.js} +5 -5
- package/dist/{installation-inventory-DDLKowYl.js.map → installation-inventory-CscX0nmD.js.map} +1 -1
- package/dist/{installer-DWcT57F5.js → installer-CkF3gSdD.js} +2 -2
- package/dist/{installer-DWcT57F5.js.map → installer-CkF3gSdD.js.map} +1 -1
- package/dist/{lock-CAt9uTnZ.js → lock-Bsl_ElWy.js} +2 -2
- package/dist/{lock-CAt9uTnZ.js.map → lock-Bsl_ElWy.js.map} +1 -1
- package/dist/{openmeld-B3fWugAi.js → openmeld-BcyBlby4.js} +48 -44
- package/dist/openmeld-BcyBlby4.js.map +1 -0
- package/dist/openmeld-dev.js +1 -1
- package/dist/{openmeld-environment-target-dXGKoZuo.js → openmeld-environment-target-B6HqY0_a.js} +3 -3
- package/dist/{openmeld-environment-target-dXGKoZuo.js.map → openmeld-environment-target-B6HqY0_a.js.map} +1 -1
- package/dist/{openmeld-maintenance-worker-DWaFW0td.js → openmeld-maintenance-worker-Brsfy22C.js} +14 -14
- package/dist/{openmeld-maintenance-worker-DWaFW0td.js.map → openmeld-maintenance-worker-Brsfy22C.js.map} +1 -1
- package/dist/{openmeld-tools-update-join-C5OotAUF.js → openmeld-tools-update-join-CUh0JERe.js} +4 -4
- package/dist/{openmeld-tools-update-join-C5OotAUF.js.map → openmeld-tools-update-join-CUh0JERe.js.map} +1 -1
- package/dist/{openmeld-tools-update-process-frame-0X-t0Kjv.js → openmeld-tools-update-process-frame-B-XB4dmO.js} +2 -2
- package/dist/{openmeld-tools-update-process-frame-0X-t0Kjv.js.map → openmeld-tools-update-process-frame-B-XB4dmO.js.map} +1 -1
- package/dist/{openmeld-tools-update-process-frame-DX1Dc8VI.js → openmeld-tools-update-process-frame-j-RXwFsK.js} +1 -1
- package/dist/openmeld.js +5 -5
- package/dist/{prepare-provider-runtime-CMX59Gmv.js → prepare-provider-runtime-DxaGSe3R.js} +1260 -200
- package/dist/prepare-provider-runtime-DxaGSe3R.js.map +1 -0
- package/dist/{prepare-session-executor-BfYmxM6n.js → prepare-session-executor-CyouBl49.js} +25 -25
- package/dist/{prepare-session-executor-BfYmxM6n.js.map → prepare-session-executor-CyouBl49.js.map} +1 -1
- package/dist/{process-channel-8KzXhiJa.js → process-channel-Cocpv3Br.js} +2 -2
- package/dist/{process-channel-8KzXhiJa.js.map → process-channel-Cocpv3Br.js.map} +1 -1
- package/dist/{process-identity-Clby123a.js → process-identity-CNus0e6E.js} +3 -2
- package/dist/process-identity-CNus0e6E.js.map +1 -0
- package/dist/{published-production-safety-C4uPjpYe.js → published-production-safety-dp-fOmmB.js} +2 -2
- package/dist/{published-production-safety-C4uPjpYe.js.map → published-production-safety-dp-fOmmB.js.map} +1 -1
- package/dist/{runtime-CbAkLHoN.js → runtime-DGT66AR-.js} +20 -20
- package/dist/{runtime-CbAkLHoN.js.map → runtime-DGT66AR-.js.map} +1 -1
- package/dist/{runtime-agent-controller-reporting-submission-C0ZsJp2Y.js → runtime-agent-controller-reporting-submission-C1Vc_JWm.js} +60 -10
- package/dist/runtime-agent-controller-reporting-submission-C1Vc_JWm.js.map +1 -0
- package/dist/{runtime-reporting-health-state-za-84KvT.js → runtime-reporting-health-state-CPWlQ5IX.js} +12 -12
- package/dist/{runtime-reporting-health-state-za-84KvT.js.map → runtime-reporting-health-state-CPWlQ5IX.js.map} +1 -1
- package/dist/{runtime-transport-CVtBXzIp.js → runtime-transport-BLtOFrtv.js} +64 -11
- package/dist/runtime-transport-BLtOFrtv.js.map +1 -0
- package/dist/{service-DDYwhWFs.js → service-ClETdJbz.js} +54 -33
- package/dist/service-ClETdJbz.js.map +1 -0
- package/dist/{service-account-authorization-CI_QP6KS.js → service-account-authorization-kciEaW5t.js} +6 -6
- package/dist/{service-account-authorization-CI_QP6KS.js.map → service-account-authorization-kciEaW5t.js.map} +1 -1
- package/dist/{service-account-control-BAfBFVMv.js → service-account-control-3n_YwNsF.js} +14 -14
- package/dist/{service-account-control-BAfBFVMv.js.map → service-account-control-3n_YwNsF.js.map} +1 -1
- package/dist/{service-control-capabilities-BpjxqSzo.js → service-control-capabilities-C2tMMuFl.js} +5 -5
- package/dist/{service-control-capabilities-BpjxqSzo.js.map → service-control-capabilities-C2tMMuFl.js.map} +1 -1
- package/dist/{service-control-capabilities-CAvcBYz7.js → service-control-capabilities-DoW5MW7A.js} +1 -1
- package/dist/{service-control-carrier-capability-hvpD7hGf.js → service-control-carrier-capability-DDNyE5cB.js} +2 -2
- package/dist/{service-control-carrier-capability-hvpD7hGf.js.map → service-control-carrier-capability-DDNyE5cB.js.map} +1 -1
- package/dist/{state-1l1SJPpK.js → state-CMs4p0wo.js} +3 -3
- package/dist/{state-1l1SJPpK.js.map → state-CMs4p0wo.js.map} +1 -1
- package/dist/{upgrade-Bz8rRQiA.js → upgrade-2epQATRq.js} +8 -8
- package/dist/{upgrade-Bz8rRQiA.js.map → upgrade-2epQATRq.js.map} +1 -1
- package/dist/upgrade-BVIot_cP.js +4 -0
- package/dist/{windows-user-task-i0oHCBc0.js → windows-user-task-CSJpDs-S.js} +4 -4
- package/dist/{windows-user-task-i0oHCBc0.js.map → windows-user-task-CSJpDs-S.js.map} +1 -1
- package/dist/{windows-user-task-FdycoSb4.js → windows-user-task-CWDzkJCq.js} +1 -1
- package/package.json +4 -3
- package/skills/openmeld-cli/playbooks/agent-onboarding.md +15 -0
- package/dist/auth-session-DxQxcD2e.js +0 -4
- package/dist/command-DJDcTWMC.js.map +0 -1
- package/dist/controller-contract-pe3_Re-c.js.map +0 -1
- package/dist/daemon-frame-transport-BI53VLpj.js.map +0 -1
- package/dist/dist-CkGG099H.js.map +0 -1
- package/dist/dist-o3UL1EGQ.js.map +0 -1
- package/dist/openmeld-B3fWugAi.js.map +0 -1
- package/dist/prepare-provider-runtime-CMX59Gmv.js.map +0 -1
- package/dist/process-identity-Clby123a.js.map +0 -1
- package/dist/runtime-agent-controller-reporting-submission-C0ZsJp2Y.js.map +0 -1
- package/dist/runtime-transport-CVtBXzIp.js.map +0 -1
- package/dist/service-DDYwhWFs.js.map +0 -1
- package/dist/upgrade-DhFOD8dL.js +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-plane-DKPz7DMv.js","names":[],"sources":["../../../packages/schemas/dist/schemas/protocol/shared.js","../../../packages/schemas/dist/schemas/protocol/profile.js","../../../packages/schemas/dist/schemas/daemon/conversation-lifecycle.js","../../../packages/schemas/dist/schemas/daemon/conversation-execution-state.js","../../../packages/schemas/dist/schemas/daemon/provider-runtime-context.js","../../../packages/schemas/dist/schemas/daemon/control-plane.js"],"sourcesContent":["import * as z$1 from \"zod/v4\";\n//#region src/schemas/protocol/shared.ts\nconst trimmedStringFromUnknown = (value) => String(value ?? \"\").trim();\nconst nonEmptyTrimmedStringFromUnknown = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1));\nconst finiteIntegerNumber = z$1.number().int().finite();\nconst optionalBooleanQuerySchema = z$1.preprocess((value) => {\n\tif (value === void 0 || value === null || value === \"\") return;\n\tif (typeof value === \"boolean\") return value;\n\tconst normalized = String(value).trim().toLowerCase();\n\tif (normalized === \"true\" || normalized === \"1\") return true;\n\tif (normalized === \"false\" || normalized === \"0\") return false;\n\treturn value;\n}, z$1.boolean().optional());\n//#endregion\nexport { finiteIntegerNumber, nonEmptyTrimmedStringFromUnknown, optionalBooleanQuerySchema, trimmedStringFromUnknown };\n\n//# sourceMappingURL=shared.js.map"," \nimport { trimmedStringFromUnknown } from \"./shared.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/protocol/profile.ts\nconst PROFILE_KIND_VALUES = [\n\t\"human\",\n\t\"agent\",\n\t\"system\"\n];\nconst PROFILE_HANDLE_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/;\nconst UUID_PROFILE_ID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;\nconst 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}$/;\nconst MAX_PROFILE_HANDLE_LENGTH = 128;\nconst normalizeOptionalProfileLabel = (value) => {\n\tconst normalized = trimmedStringFromUnknown(value);\n\tif (normalized.length === 0) return;\n\treturn normalized.slice(0, 64);\n};\nconst normalizeOptionalProfileHandle = (value) => {\n\tconst normalized = trimmedStringFromUnknown(value);\n\tif (normalized.length === 0) return;\n\treturn profileHandleSchema.safeParse(normalized).success ? normalized : void 0;\n};\nconst MAX_PROFILE_WORKING_DIRECTORY_LENGTH = 4096;\nconst profileWorkspaceModeSchema = z$1.enum([\"openmeld_managed\", \"custom\"]);\nconst profileWorkingDirectorySchema = z$1.string().min(1).max(MAX_PROFILE_WORKING_DIRECTORY_LENGTH).refine((value) => !value.includes(\"\\0\"), { message: \"workingDirectory must not contain NUL bytes\" });\nconst normalizeOptionalWorkingDirectory = (value) => {\n\tif (typeof value !== \"string\") return;\n\tconst parsed = profileWorkingDirectorySchema.safeParse(value);\n\treturn parsed.success ? parsed.data : void 0;\n};\nconst MAX_AVATAR_URL_LENGTH = 2048;\nconst HTTPS_URL_PATTERN = /^https?:\\/\\//i;\n/**\n* Avatar URLs are a public identity field that travels with the Profile across\n* domains. Only http(s) URLs are accepted so the value is safe to render as an\n* `<img src>` on web clients (rejects javascript:/data: injection vectors).\n*/\nconst normalizeOptionalAvatarUrl = (value) => {\n\tconst normalized = trimmedStringFromUnknown(value);\n\tif (normalized.length === 0 || normalized.length > 2048) return;\n\treturn HTTPS_URL_PATTERN.test(normalized) ? normalized : void 0;\n};\n/** Unknown or invalid kinds are normalized to \"agent\" for wire compatibility. */\nconst profileKindWithFallbackSchema = z$1.preprocess((value) => {\n\tconst parsed = z$1.enum(PROFILE_KIND_VALUES).safeParse(value);\n\treturn parsed.success ? parsed.data : \"agent\";\n}, z$1.enum(PROFILE_KIND_VALUES));\nconst profileKindSchema = z$1.enum(PROFILE_KIND_VALUES);\nconst profileLabelSchema = z$1.string().min(1).max(64);\nconst profileHandleSchema = z$1.string().min(1).max(128).regex(PROFILE_HANDLE_PATTERN);\nconst genericProfileIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64));\nconst uuidProfileIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64).regex(UUID_PROFILE_ID_PATTERN));\nconst agentProfileIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64).regex(AGENT_PROFILE_ID_PATTERN));\n/**\n* Runtime OpenMeld profile IDs are auth-backed and follow these rules:\n* - human/system profiles use a UUID\n* - agent profiles use agt_<UUID>\n*\n* Generic test fixtures or legacy intermediary strings should not reuse this\n* schema unless they represent a real runtime profile identity.\n*/\nconst 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\"));\n/**\n* Generic wire/profile normalization rules:\n* - trims and validates profileId as a non-empty string\n* - defaults missing/invalid kind to \"agent\"\n* - truncates profileName/owner labels to max length\n* - preserves agent workingDirectory verbatim when it is a valid string\n* - keeps owner only for agent profiles\n*\n* This schema intentionally stays broader than auth-backed runtime IDs because\n* protocol/system messages may still use internal synthetic profile IDs such as\n* `openmeld-system`.\n*/\nconst profileSchema = z$1.object({\n\tkind: profileKindWithFallbackSchema.optional(),\n\tprofileId: genericProfileIdSchema,\n\tprofileHandle: z$1.unknown().optional(),\n\tprofileName: z$1.unknown().optional(),\n\towner: z$1.unknown().optional(),\n\townerName: z$1.unknown().optional(),\n\tagentControllerRef: z$1.unknown().optional(),\n\tagentControllerConversationId: z$1.unknown().optional(),\n\tworkingDirectory: z$1.unknown().optional(),\n\tavatarUrl: z$1.unknown().optional()\n}).transform((value) => {\n\tconst kind = value.kind ?? \"agent\";\n\tconst profileHandle = normalizeOptionalProfileHandle(value.profileHandle);\n\tconst profileName = normalizeOptionalProfileLabel(value.profileName);\n\tconst owner = kind === \"agent\" ? normalizeOptionalProfileLabel(value.owner) : void 0;\n\tconst ownerName = kind === \"agent\" ? normalizeOptionalProfileLabel(value.ownerName) : void 0;\n\tconst agentControllerRef = kind === \"agent\" ? normalizeOptionalProfileLabel(value.agentControllerRef) : void 0;\n\tconst agentControllerConversationId = kind === \"agent\" ? normalizeOptionalProfileLabel(value.agentControllerConversationId) : void 0;\n\tconst workingDirectory = kind === \"agent\" ? normalizeOptionalWorkingDirectory(value.workingDirectory) : void 0;\n\tconst avatarUrl = normalizeOptionalAvatarUrl(value.avatarUrl);\n\treturn {\n\t\tkind,\n\t\tprofileId: value.profileId,\n\t\t...profileHandle ? { profileHandle } : {},\n\t\t...profileName ? { profileName } : {},\n\t\t...owner ? { owner } : {},\n\t\t...ownerName ? { ownerName } : {},\n\t\t...agentControllerRef ? { agentControllerRef } : {},\n\t\t...agentControllerConversationId ? { agentControllerConversationId } : {},\n\t\t...workingDirectory ? { workingDirectory } : {},\n\t\t...avatarUrl ? { avatarUrl } : {}\n\t};\n});\n//#endregion\nexport { MAX_AVATAR_URL_LENGTH, MAX_PROFILE_HANDLE_LENGTH, MAX_PROFILE_WORKING_DIRECTORY_LENGTH, agentProfileIdSchema, genericProfileIdSchema, normalizeOptionalWorkingDirectory, openMeldRuntimeProfileIdSchema, profileHandleSchema, profileKindSchema, profileLabelSchema, profileSchema, profileWorkingDirectorySchema, profileWorkspaceModeSchema, uuidProfileIdSchema };\n\n//# sourceMappingURL=profile.js.map","import * as z$1 from \"zod/v4\";\n//#region src/schemas/daemon/conversation-lifecycle.ts\nconst conversationBootstrapReasonSchema = z$1.enum([\n\t\"missing_bootstrap_state\",\n\t\"compatibility_recreate\",\n\t\"template_changed\",\n\t\"idle_stale\",\n\t\"dispatch_count_stale\",\n\t\"context_healed\",\n\t\"context_replaced\"\n]);\nconst localRuntimeContextReasonSchema = z$1.enum([\n\t\"first_local_runtime_context\",\n\t\"workspace_changed\",\n\t\"transport_mode_changed\",\n\t\"policy_changed\",\n\t\"execution_state_missing\",\n\t\"controller_changed\"\n]);\nconst agentControllerConversationResumePlanBlockedReasonSchema = z$1.enum([\"controller_changed\"]);\nconst agentControllerConversationResumePlanSchema = z$1.discriminatedUnion(\"status\", [\n\tz$1.strictObject({ status: z$1.literal(\"not_bound\") }),\n\tz$1.strictObject({ status: z$1.literal(\"continue_existing\") }),\n\tz$1.strictObject({\n\t\tstatus: z$1.literal(\"blocked\"),\n\t\treason: agentControllerConversationResumePlanBlockedReasonSchema\n\t})\n]);\nconst localRuntimeContextPlanSchema = z$1.strictObject({\n\tstatus: z$1.enum([\"reuse\", \"recreate\"]),\n\treason: z$1.union([localRuntimeContextReasonSchema, z$1.null()])\n});\nconst conversationBootstrapSchema = z$1.discriminatedUnion(\"status\", [z$1.strictObject({\n\treason: z$1.null(),\n\tstatus: z$1.literal(\"applied\")\n}), z$1.strictObject({\n\treason: conversationBootstrapReasonSchema,\n\tstatus: z$1.literal(\"pending\")\n})]);\nconst nextDispatchPlanSchema = z$1.strictObject({\n\tagentControllerConversationResume: agentControllerConversationResumePlanSchema,\n\tlocalRuntimeContext: localRuntimeContextPlanSchema,\n\tbootstrap: conversationBootstrapSchema\n});\nconst agentControllerConversationResumeSchema = z$1.discriminatedUnion(\"status\", [\n\tz$1.strictObject({ status: z$1.literal(\"not_bound\") }),\n\tz$1.strictObject({ status: z$1.literal(\"continued\") }),\n\tz$1.strictObject({ status: z$1.literal(\"replaced_by_provider\") })\n]);\nconst localRuntimeContextExecutionSchema = z$1.strictObject({\n\tstatus: z$1.enum([\"reused\", \"recreated\"]),\n\treason: z$1.union([localRuntimeContextReasonSchema, z$1.null()])\n});\nconst dispatchExecutionSchema = z$1.strictObject({\n\tagentControllerConversationResume: agentControllerConversationResumeSchema,\n\tlocalRuntimeContext: localRuntimeContextExecutionSchema,\n\tbootstrap: conversationBootstrapSchema\n});\n//#endregion\nexport { agentControllerConversationResumePlanBlockedReasonSchema, agentControllerConversationResumePlanSchema, agentControllerConversationResumeSchema, conversationBootstrapReasonSchema, conversationBootstrapSchema, dispatchExecutionSchema, localRuntimeContextExecutionSchema, localRuntimeContextPlanSchema, localRuntimeContextReasonSchema, nextDispatchPlanSchema };\n\n//# sourceMappingURL=conversation-lifecycle.js.map","import { profileWorkingDirectorySchema } from \"../protocol/profile.js\";\nimport { agentControllerConversationRefSchema } from \"./conversation-contract.js\";\nimport { conversationBootstrapReasonSchema } from \"./conversation-lifecycle.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/daemon/conversation-execution-state.ts\nconst ISO_DATE_TIME_SCHEMA = z$1.iso.datetime({ offset: true });\nconst bootstrapTemplateFactsSchema = z$1.strictObject({\n\ttemplateVersion: z$1.string().min(1),\n\tcontentFingerprint: z$1.string().min(1)\n});\nconst conversationExecutionStateSchema = z$1.strictObject({\n\tagentContextLookupKey: z$1.string().min(1),\n\tactiveContextId: z$1.string().min(1).nullable(),\n\tlastResolvedAgentControllerConversation: agentControllerConversationRefSchema.optional(),\n\tlastRuntimeWorkspacePath: profileWorkingDirectorySchema.optional(),\n\truntimeWorkspaceFingerprint: z$1.string().min(1),\n\tbootstrapLastAppliedAt: ISO_DATE_TIME_SCHEMA.optional(),\n\tbootstrapLastActivatedAt: ISO_DATE_TIME_SCHEMA.optional(),\n\tdispatchesSinceBootstrapApplied: z$1.number().int().min(0),\n\tlastAppliedTemplateVersion: z$1.string().min(1).optional(),\n\tlastAppliedContentFingerprint: z$1.string().min(1).optional(),\n\tpendingBootstrapReason: conversationBootstrapReasonSchema.optional(),\n\tupdatedAt: ISO_DATE_TIME_SCHEMA\n});\n//#endregion\nexport { bootstrapTemplateFactsSchema, conversationExecutionStateSchema };\n\n//# sourceMappingURL=conversation-execution-state.js.map","import { MAX_PROFILE_WORKING_DIRECTORY_LENGTH } from \"../protocol/profile.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/daemon/provider-runtime-context.ts\nconst 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\" }) });\n//#endregion\nexport { providerDispatchRuntimeContextSchema };\n\n//# sourceMappingURL=provider-runtime-context.js.map","import { array, boolean, discriminatedUnion, enum as enumFactory, iso, literal, null as nullFactory, number, strictObject, string, union } from \"../../lazy-zod.js\";\nimport { nonEmptyTrimmedStringFromUnknown } from \"../protocol/shared.js\";\nimport { agentProfileIdSchema, profileWorkingDirectorySchema, profileWorkspaceModeSchema } from \"../protocol/profile.js\";\nimport { runtimeTransportModeSchema } from \"./controller-contract.js\";\nimport { conversationExecutionStateSchema } from \"./conversation-execution-state.js\";\nimport { providerDispatchRuntimeContextSchema } from \"./provider-runtime-context.js\";\n//#region src/schemas/daemon/control-plane.ts\nconst OPENMELD_DAEMON_CONTROL_PLANE_SCHEMA_VERSION = 1;\nconst openMeldDaemonControlPlaneCommandSchema = enumFactory([\n\t\"status\",\n\t\"health\",\n\t\"history\",\n\t\"interrupt\",\n\t\"cancel\",\n\t\"conversation_execution_status\",\n\t\"request_agent_activity_sync\",\n\t\"sync_route_catalog\",\n\t\"set_local_agent_enabled\",\n\t\"set_profile_workspace\",\n\t\"service_update_readiness\",\n\t\"account_control_capabilities\",\n\t\"shutdown\"\n]);\nconst openMeldDaemonHealthStateSchema = enumFactory([\n\t\"ok\",\n\t\"degraded\",\n\t\"down\"\n]);\nconst openMeldDaemonRuntimeHealthStateSchema = enumFactory([\n\t\"healthy\",\n\t\"idle\",\n\t\"suspect\",\n\t\"down\"\n]);\nconst openMeldDaemonControlTargetSelectorSchema = discriminatedUnion(\"by\", [strictObject({\n\tby: literal(\"dispatch\"),\n\tdispatchId: string().min(1)\n}), strictObject({\n\tby: literal(\"task\"),\n\ttaskId: string().min(1)\n})]);\nconst openMeldDaemonInterruptRequestPayloadSchema = strictObject({\n\truntimeCoordinatorExecutionId: string().min(1).optional(),\n\ttarget: openMeldDaemonControlTargetSelectorSchema,\n\tmode: enumFactory([\"graceful\", \"force\"]).optional(),\n\treason: string().min(1).optional()\n});\nconst openMeldDaemonCancelRequestPayloadSchema = strictObject({\n\truntimeCoordinatorExecutionId: string().min(1).optional(),\n\ttarget: openMeldDaemonControlTargetSelectorSchema,\n\treason: string().min(1).optional()\n});\nconst openMeldDaemonShutdownRequestPayloadSchema = strictObject({\n\taccountAdmissionId: string().uuid().optional(),\n\tmode: enumFactory([\"graceful\", \"force\"]).default(\"graceful\"),\n\tgracePeriodMs: number().int().nonnegative().default(5e3)\n});\nconst openMeldDaemonServiceUpdateReadinessPayloadSchema = strictObject({\n\tacceptedWakeCount: number().int().nonnegative(),\n\tsafeToSwitch: boolean(),\n\tunacknowledgedResultCount: number().int().nonnegative()\n});\nconst openMeldDaemonConversationExecutionControllerLaunchStatusSchema = enumFactory([\n\t\"missing\",\n\t\"disabled\",\n\t\"repair_required\",\n\t\"ready\"\n]);\nconst nullableAgentControllerRefSchema = union([string().min(1), nullFactory()]);\nconst nullableNonEmptyStringSchema = union([string().min(1), nullFactory()]);\nconst openMeldDaemonConversationExecutionStatusRequestPayloadSchema = strictObject({\n\tboundAgentControllerRef: nullableAgentControllerRefSchema,\n\tagentControllerConversationId: nullableNonEmptyStringSchema,\n\tagentControllerRef: string().min(1),\n\tspaceId: nonEmptyTrimmedStringFromUnknown,\n\ttargetProfileId: agentProfileIdSchema,\n\ttransportMode: runtimeTransportModeSchema,\n\tvalidate: boolean()\n});\nconst openMeldDaemonSyncRouteCatalogRequestPayloadSchema = strictObject({ reason: string().min(1) });\nconst openMeldDaemonRequestAgentActivitySyncRequestPayloadSchema = strictObject({ reason: string().trim().min(1).max(128) });\nconst openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema = strictObject({\n\tagentId: string().trim().min(1).max(256),\n\tenabled: boolean()\n});\nconst localAgentInstallationOptionSchema = strictObject({\n\tinstallationId: string().trim().min(1).max(256),\n\tname: string().trim().min(1).max(256),\n\tdetails: string().trim().min(1).max(256),\n\tselected: boolean()\n});\nconst openMeldDaemonManageLocalAgentInstallationRequestPayloadSchema = discriminatedUnion(\"operation\", [strictObject({\n\tagentId: string().trim().min(1).max(256),\n\toperation: literal(\"list\")\n}), strictObject({\n\tagentId: string().trim().min(1).max(256),\n\tinstallationId: string().trim().min(1).max(256),\n\toperation: literal(\"select\")\n})]);\nconst openMeldDaemonSetProfileWorkspaceRequestPayloadSchema = strictObject({\n\ttargetProfileId: agentProfileIdSchema,\n\tworkspaceMode: profileWorkspaceModeSchema,\n\tworkspacePath: profileWorkingDirectorySchema.optional()\n}).superRefine((value, context) => {\n\tif (value.workspaceMode === \"custom\" && !value.workspacePath) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"workspacePath is required for a custom profile workspace\",\n\t\tpath: [\"workspacePath\"]\n\t});\n\tif (value.workspaceMode === \"openmeld_managed\" && value.workspacePath) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"workspacePath must be omitted for an OpenMeld-managed profile workspace\",\n\t\tpath: [\"workspacePath\"]\n\t});\n});\nconst openMeldDaemonConversationExecutionRuntimeWorkspaceReadySchema = strictObject({\n\tconfigPath: string().min(1),\n\tconfiguredWorkspacePath: string().min(1),\n\tfingerprint: string().min(1),\n\tpath: string().min(1),\n\treasonCode: nullFactory(),\n\treasonText: nullFactory(),\n\truntimeContext: providerDispatchRuntimeContextSchema,\n\tstatus: literal(\"ready\"),\n\tworkspaceMode: profileWorkspaceModeSchema\n});\nconst openMeldDaemonConversationExecutionRuntimeWorkspaceMissingSchema = strictObject({\n\tconfigPath: string().min(1),\n\tconfiguredWorkspacePath: nullFactory(),\n\tfingerprint: nullFactory(),\n\tpath: nullFactory(),\n\treasonCode: literal(\"workspace.missing\"),\n\treasonText: string().min(1),\n\truntimeContext: nullFactory(),\n\tstatus: literal(\"missing\"),\n\tworkspaceMode: nullFactory()\n});\nconst openMeldDaemonConversationExecutionRuntimeWorkspaceInvalidSchema = strictObject({\n\tconfigPath: string().min(1),\n\tconfiguredWorkspacePath: union([string().min(1), nullFactory()]),\n\tfingerprint: nullFactory(),\n\tpath: nullFactory(),\n\treasonCode: literal(\"workspace.invalid\"),\n\treasonText: string().min(1),\n\truntimeContext: nullFactory(),\n\tstatus: literal(\"invalid\"),\n\tworkspaceMode: union([profileWorkspaceModeSchema, nullFactory()])\n});\nconst openMeldDaemonConversationExecutionRuntimeWorkspaceSchema = discriminatedUnion(\"status\", [\n\topenMeldDaemonConversationExecutionRuntimeWorkspaceReadySchema,\n\topenMeldDaemonConversationExecutionRuntimeWorkspaceMissingSchema,\n\topenMeldDaemonConversationExecutionRuntimeWorkspaceInvalidSchema\n]);\nconst openMeldDaemonConversationExecutionLocalRuntimeContextStatusSchema = enumFactory([\n\t\"missing\",\n\t\"mismatch\",\n\t\"ready\"\n]);\nconst openMeldDaemonProviderConversationProofStatusSchema = enumFactory([\n\t\"failed\",\n\t\"not_applicable\",\n\t\"not_run\",\n\t\"passed\"\n]);\nconst openMeldDaemonProviderConversationProofProviderSchema = enumFactory([\n\t\"codex\",\n\t\"claude-code\",\n\t\"openclaw\"\n]);\nconst openMeldDaemonProviderConversationProofMethodSchema = enumFactory([\"codex_app_server_thread_resume\"]);\nconst openMeldDaemonProviderConversationProofSchema = strictObject({\n\tagentControllerConversationId: nullableNonEmptyStringSchema,\n\tcheckedAt: union([iso.datetime({ offset: true }), nullFactory()]),\n\terrorCode: nullableNonEmptyStringSchema,\n\terrorMessage: nullableNonEmptyStringSchema,\n\terrorType: nullableNonEmptyStringSchema,\n\texpiresAt: union([iso.datetime({ offset: true }), nullFactory()]),\n\tintrusive: literal(false),\n\tmethod: union([openMeldDaemonProviderConversationProofMethodSchema, nullFactory()]),\n\tprovider: union([openMeldDaemonProviderConversationProofProviderSchema, nullFactory()]),\n\tstatus: openMeldDaemonProviderConversationProofStatusSchema,\n\ttransportMode: union([runtimeTransportModeSchema, nullFactory()])\n});\nconst openMeldDaemonConversationExecutionStatusPayloadSchema = strictObject({\n\tagentContextLookupKey: string().min(1),\n\tcontrollerLaunchStatus: openMeldDaemonConversationExecutionControllerLaunchStatusSchema,\n\texecutionState: conversationExecutionStateSchema.nullable(),\n\tlocalRuntimeContext: strictObject({\n\t\tagentContextLookupKey: string().min(1),\n\t\truntimeWorkspaceFingerprint: nullableNonEmptyStringSchema,\n\t\tstatus: openMeldDaemonConversationExecutionLocalRuntimeContextStatusSchema\n\t}),\n\tproviderConversationProof: openMeldDaemonProviderConversationProofSchema,\n\truntimeWorkspace: openMeldDaemonConversationExecutionRuntimeWorkspaceSchema\n});\nconst openMeldDaemonSyncRouteCatalogStatusSchema = enumFactory([\n\t\"changed\",\n\t\"registered\",\n\t\"unchanged\",\n\t\"failed\",\n\t\"deferred\"\n]);\nconst DAEMON_PROFILE_SKIP_REASON_VALUES = [\n\t\"projection.missing\",\n\t\"controller.registry.disabled\",\n\t\"controller.launch.needs_repair\",\n\t\"runtime.adapter.unsupported\",\n\t\"controller.binding.disabled\",\n\t\"controller.binding.incomplete\",\n\t\"profile.status.inactive\",\n\t\"profile.binding.read_unavailable\",\n\t\"profile.binding.unbound\",\n\t\"workspace.missing\",\n\t\"workspace.invalid\"\n];\nconst daemonProfileSkipReasonSchema = enumFactory(DAEMON_PROFILE_SKIP_REASON_VALUES);\nconst skippedDaemonProfileSchema = strictObject({\n\tprofileId: agentProfileIdSchema,\n\tprofileName: nullableNonEmptyStringSchema,\n\tskipReason: daemonProfileSkipReasonSchema\n});\nconst openMeldDaemonSyncRouteCatalogPayloadSchema = strictObject({\n\taccepted: boolean(),\n\tsyncStatus: openMeldDaemonSyncRouteCatalogStatusSchema,\n\tprofileIds: array(agentProfileIdSchema),\n\taddedProfileIds: array(agentProfileIdSchema).optional(),\n\tkeptProfileIds: array(agentProfileIdSchema).optional(),\n\tremovedProfileIds: array(agentProfileIdSchema).optional(),\n\tskippedProfiles: array(skippedDaemonProfileSchema).optional(),\n\tnote: string().min(1).optional(),\n\terrorMessage: string().min(1).optional()\n});\nconst openMeldDaemonRequestAgentActivitySyncPayloadSchema = strictObject({ accepted: boolean() });\nconst openMeldDaemonSetLocalAgentEnabledPayloadSchema = strictObject({\n\taccepted: boolean(),\n\tagentControllerRef: string().min(1).optional(),\n\tagentId: string().trim().min(1).max(256),\n\tchanged: boolean(),\n\tenabled: boolean(),\n\tmessage: string().min(1).optional(),\n\treasonCode: string().min(1).optional(),\n\treportSyncStatus: enumFactory([\n\t\t\"submitted\",\n\t\t\"skipped\",\n\t\t\"failed\"\n\t]),\n\tstatus: enumFactory([\n\t\t\"updated\",\n\t\t\"unchanged\",\n\t\t\"rejected\"\n\t])\n});\nconst openMeldDaemonManageLocalAgentInstallationPayloadSchema = discriminatedUnion(\"accepted\", [strictObject({\n\taccepted: literal(true),\n\tagentControllerRef: string().min(1),\n\tagentId: string().trim().min(1).max(256),\n\tchanged: boolean(),\n\tinstallations: array(localAgentInstallationOptionSchema),\n\treportSyncStatus: enumFactory([\n\t\t\"submitted\",\n\t\t\"skipped\",\n\t\t\"failed\"\n\t]),\n\tselectionStatus: enumFactory([\n\t\t\"available\",\n\t\t\"blocked_by_work\",\n\t\t\"operation_in_progress\"\n\t]).optional(),\n\tselectedInstallationId: string().trim().min(1).max(256).nullable(),\n\tstatus: enumFactory([\n\t\t\"listed\",\n\t\t\"updated\",\n\t\t\"unchanged\"\n\t])\n}), strictObject({\n\taccepted: literal(false),\n\tagentId: string().trim().min(1).max(256),\n\tchanged: literal(false),\n\tinstallations: array(localAgentInstallationOptionSchema),\n\tmessage: string().min(1).optional(),\n\treasonCode: string().min(1).optional(),\n\treportSyncStatus: literal(\"failed\"),\n\tselectionStatus: enumFactory([\n\t\t\"available\",\n\t\t\"blocked_by_work\",\n\t\t\"operation_in_progress\"\n\t]).optional(),\n\tselectedInstallationId: string().trim().min(1).max(256).nullable(),\n\tstatus: literal(\"rejected\")\n})]);\nconst openMeldDaemonSetProfileWorkspacePayloadSchema = discriminatedUnion(\"accepted\", [strictObject({\n\taccepted: literal(true),\n\ttargetProfileId: agentProfileIdSchema,\n\tstatus: literal(\"updated\"),\n\tworkspaceMode: profileWorkspaceModeSchema,\n\tworkspacePath: string().min(1)\n}), strictObject({\n\taccepted: literal(false),\n\ttargetProfileId: agentProfileIdSchema,\n\tmessage: string().min(1).optional(),\n\treasonCode: string().min(1).optional(),\n\tstatus: literal(\"rejected\")\n})]);\nconst openMeldDaemonControlPlaneRequestBaseSchema = strictObject({\n\tv: literal(1),\n\trequestId: string().min(1).optional(),\n\tauthToken: string().min(1).optional()\n});\nconst openMeldDaemonControlPlaneRequestSchema = discriminatedUnion(\"command\", [\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal(\"account_control_capabilities\") }),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal(\"status\") }),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal(\"health\") }),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal(\"history\") }),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"interrupt\"),\n\t\tpayload: openMeldDaemonInterruptRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"cancel\"),\n\t\tpayload: openMeldDaemonCancelRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"conversation_execution_status\"),\n\t\tpayload: openMeldDaemonConversationExecutionStatusRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"sync_route_catalog\"),\n\t\tpayload: openMeldDaemonSyncRouteCatalogRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"request_agent_activity_sync\"),\n\t\tpayload: openMeldDaemonRequestAgentActivitySyncRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"set_local_agent_enabled\"),\n\t\tpayload: openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"set_profile_workspace\"),\n\t\tpayload: openMeldDaemonSetProfileWorkspaceRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal(\"service_update_readiness\") }),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"shutdown\"),\n\t\tpayload: openMeldDaemonShutdownRequestPayloadSchema.optional()\n\t})\n]);\nconst openMeldDaemonStatusPayloadSchema = strictObject({\n\tinstalled: boolean(),\n\trunning: boolean(),\n\tdaemonVersion: string().min(1),\n\truntimeRoot: string().min(1),\n\tcheckedAt: string().min(1)\n});\nconst openMeldDaemonHealthPayloadSchema = strictObject({\n\tstate: openMeldDaemonHealthStateSchema,\n\truntimeState: openMeldDaemonRuntimeHealthStateSchema.optional(),\n\treasonCode: string().min(1),\n\tcheckedAt: string().min(1)\n});\nconst openMeldDaemonHistoryEntrySchema = strictObject({\n\tid: string().min(1),\n\tts: string().min(1),\n\tcode: string().min(1),\n\tmessage: string().min(1)\n});\nconst openMeldDaemonHistoryPayloadSchema = strictObject({\n\tentries: array(openMeldDaemonHistoryEntrySchema),\n\tnextCursor: string().min(1).optional()\n});\nconst openMeldDaemonInterruptPayloadSchema = strictObject({\n\taccepted: boolean(),\n\ttarget: openMeldDaemonControlTargetSelectorSchema,\n\tresolvedDispatchId: string().min(1).optional(),\n\tresolvedRuntimeCoordinatorExecutionId: string().min(1).optional(),\n\tresolvedTaskId: string().min(1).optional(),\n\tnote: string().min(1).optional(),\n\treasonCode: string().min(1).optional()\n});\n/**\n* What accepting a cancellation established, carried on `reasonCode`.\n*\n* `accepted` alone only means the control request was taken: an adapter can\n* register a stop signal before the provider turn is acknowledged, and\n* interrupting a started turn is a request, not a completion barrier. Work that\n* replaces the attempt needs `adapter.cancel.withdrawn_before_start`.\n*\n* This rides the existing free-form reason code on purpose. These payloads are\n* strict objects, so a Service that emitted a new key would have its whole\n* frame rejected by a Core that predates it, and local components can reach a\n* user before the matching Core deploy.\n*/\nconst OPENMELD_DAEMON_CANCEL_WITHDRAWN_BEFORE_START_REASON_CODE = \"adapter.cancel.withdrawn_before_start\";\nconst OPENMELD_DAEMON_CANCEL_STOP_REQUESTED_AFTER_START_REASON_CODE = \"adapter.cancel.stop_requested_after_start\";\nconst openMeldDaemonCancelPayloadSchema = strictObject({\n\taccepted: boolean(),\n\ttarget: openMeldDaemonControlTargetSelectorSchema,\n\tresolvedDispatchId: string().min(1).optional(),\n\tresolvedRuntimeCoordinatorExecutionId: string().min(1).optional(),\n\tresolvedTaskId: string().min(1).optional(),\n\tnote: string().min(1).optional(),\n\treasonCode: string().min(1).optional()\n});\nconst openMeldDaemonControlPlaneErrorPayloadSchema = strictObject({\n\terrorCode: string().min(1),\n\terrorMessage: string().min(1),\n\tnote: string().min(1).optional()\n});\nconst openMeldDaemonShutdownPayloadSchema = strictObject({\n\taccepted: boolean(),\n\tmode: enumFactory([\"graceful\", \"force\"]),\n\tgracePeriodMs: number().int().nonnegative()\n});\nconst openMeldDaemonControlPlaneResponseBaseSchema = strictObject({\n\tv: literal(1),\n\trequestId: string().min(1).optional()\n});\nconst openMeldDaemonStatusResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.status\"),\n\tpayload: openMeldDaemonStatusPayloadSchema\n});\nconst openMeldDaemonHealthResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.health\"),\n\tpayload: openMeldDaemonHealthPayloadSchema\n});\nconst openMeldDaemonHistoryResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.history\"),\n\tpayload: openMeldDaemonHistoryPayloadSchema\n});\nconst openMeldDaemonInterruptResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.interrupt\"),\n\tpayload: openMeldDaemonInterruptPayloadSchema\n});\nconst openMeldDaemonCancelResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.cancel\"),\n\tpayload: openMeldDaemonCancelPayloadSchema\n});\nconst openMeldDaemonConversationExecutionStatusResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.conversation_execution_status\"),\n\tpayload: openMeldDaemonConversationExecutionStatusPayloadSchema\n});\nconst openMeldDaemonSyncRouteCatalogResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.sync_route_catalog\"),\n\tpayload: openMeldDaemonSyncRouteCatalogPayloadSchema\n});\nconst openMeldDaemonRequestAgentActivitySyncResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.agent_activity_sync_requested\"),\n\tpayload: openMeldDaemonRequestAgentActivitySyncPayloadSchema\n});\nconst openMeldDaemonSetLocalAgentEnabledResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.set_local_agent_enabled\"),\n\tpayload: openMeldDaemonSetLocalAgentEnabledPayloadSchema\n});\nconst openMeldDaemonSetProfileWorkspaceResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.set_profile_workspace\"),\n\tpayload: openMeldDaemonSetProfileWorkspacePayloadSchema\n});\nconst openMeldDaemonShutdownResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.shutdown\"),\n\tpayload: openMeldDaemonShutdownPayloadSchema\n});\nconst openMeldDaemonServiceUpdateReadinessResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.update_readiness\"),\n\tpayload: openMeldDaemonServiceUpdateReadinessPayloadSchema\n});\nconst openMeldDaemonControlPlaneErrorResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.error\"),\n\tpayload: openMeldDaemonControlPlaneErrorPayloadSchema\n});\nconst openMeldDaemonControlPlaneResponseSchema = discriminatedUnion(\"code\", [\n\topenMeldDaemonControlPlaneResponseBaseSchema.extend({\n\t\tcode: literal(\"service.account_control_capabilities\"),\n\t\tpayload: strictObject({ supported: boolean() })\n\t}),\n\topenMeldDaemonStatusResponseSchema,\n\topenMeldDaemonHealthResponseSchema,\n\topenMeldDaemonHistoryResponseSchema,\n\topenMeldDaemonInterruptResponseSchema,\n\topenMeldDaemonCancelResponseSchema,\n\topenMeldDaemonConversationExecutionStatusResponseSchema,\n\topenMeldDaemonSyncRouteCatalogResponseSchema,\n\topenMeldDaemonRequestAgentActivitySyncResponseSchema,\n\topenMeldDaemonSetLocalAgentEnabledResponseSchema,\n\topenMeldDaemonSetProfileWorkspaceResponseSchema,\n\topenMeldDaemonServiceUpdateReadinessResponseSchema,\n\topenMeldDaemonShutdownResponseSchema,\n\topenMeldDaemonControlPlaneErrorResponseSchema\n]);\n//#endregion\nexport { DAEMON_PROFILE_SKIP_REASON_VALUES, OPENMELD_DAEMON_CANCEL_STOP_REQUESTED_AFTER_START_REASON_CODE, OPENMELD_DAEMON_CANCEL_WITHDRAWN_BEFORE_START_REASON_CODE, OPENMELD_DAEMON_CONTROL_PLANE_SCHEMA_VERSION, daemonProfileSkipReasonSchema, localAgentInstallationOptionSchema, openMeldDaemonCancelPayloadSchema, openMeldDaemonCancelRequestPayloadSchema, openMeldDaemonCancelResponseSchema, openMeldDaemonControlPlaneCommandSchema, openMeldDaemonControlPlaneErrorPayloadSchema, openMeldDaemonControlPlaneErrorResponseSchema, openMeldDaemonControlPlaneRequestSchema, openMeldDaemonControlPlaneResponseSchema, openMeldDaemonControlTargetSelectorSchema, openMeldDaemonConversationExecutionControllerLaunchStatusSchema, openMeldDaemonConversationExecutionLocalRuntimeContextStatusSchema, openMeldDaemonConversationExecutionRuntimeWorkspaceInvalidSchema, openMeldDaemonConversationExecutionRuntimeWorkspaceMissingSchema, openMeldDaemonConversationExecutionRuntimeWorkspaceReadySchema, openMeldDaemonConversationExecutionRuntimeWorkspaceSchema, openMeldDaemonConversationExecutionStatusPayloadSchema, openMeldDaemonConversationExecutionStatusRequestPayloadSchema, openMeldDaemonConversationExecutionStatusResponseSchema, openMeldDaemonHealthPayloadSchema, openMeldDaemonHealthResponseSchema, openMeldDaemonHealthStateSchema, openMeldDaemonHistoryEntrySchema, openMeldDaemonHistoryPayloadSchema, openMeldDaemonHistoryResponseSchema, openMeldDaemonInterruptPayloadSchema, openMeldDaemonInterruptRequestPayloadSchema, openMeldDaemonInterruptResponseSchema, openMeldDaemonManageLocalAgentInstallationPayloadSchema, openMeldDaemonManageLocalAgentInstallationRequestPayloadSchema, openMeldDaemonProviderConversationProofMethodSchema, openMeldDaemonProviderConversationProofProviderSchema, openMeldDaemonProviderConversationProofSchema, openMeldDaemonProviderConversationProofStatusSchema, openMeldDaemonRequestAgentActivitySyncPayloadSchema, openMeldDaemonRequestAgentActivitySyncRequestPayloadSchema, openMeldDaemonRequestAgentActivitySyncResponseSchema, openMeldDaemonRuntimeHealthStateSchema, openMeldDaemonServiceUpdateReadinessPayloadSchema, openMeldDaemonServiceUpdateReadinessResponseSchema, openMeldDaemonSetLocalAgentEnabledPayloadSchema, openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema, openMeldDaemonSetLocalAgentEnabledResponseSchema, openMeldDaemonSetProfileWorkspacePayloadSchema, openMeldDaemonSetProfileWorkspaceRequestPayloadSchema, openMeldDaemonSetProfileWorkspaceResponseSchema, openMeldDaemonShutdownPayloadSchema, openMeldDaemonShutdownRequestPayloadSchema, openMeldDaemonShutdownResponseSchema, openMeldDaemonStatusPayloadSchema, openMeldDaemonStatusResponseSchema, openMeldDaemonSyncRouteCatalogPayloadSchema, openMeldDaemonSyncRouteCatalogRequestPayloadSchema, openMeldDaemonSyncRouteCatalogResponseSchema, openMeldDaemonSyncRouteCatalogStatusSchema, skippedDaemonProfileSchema };\n\n//# sourceMappingURL=control-plane.js.map"],"mappings":";;;;;;AAEA,MAAM,4BAA4B,UAAU,OAAO,SAAS,EAAE,CAAC,CAAC,KAAK;AACrE,MAAM,mCAAmC,IAAI,WAAW,0BAA0B,IAAI,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;AACrG,MAAM,sBAAsB,IAAI,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO;AACtD,MAAM,6BAA6B,IAAI,YAAY,UAAU;CAC5D,IAAI,UAAU,KAAK,KAAK,UAAU,QAAQ,UAAU,IAAI;CACxD,IAAI,OAAO,UAAU,WAAW,OAAO;CACvC,MAAM,aAAa,OAAO,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,YAAY;CACpD,IAAI,eAAe,UAAU,eAAe,KAAK,OAAO;CACxD,IAAI,eAAe,WAAW,eAAe,KAAK,OAAO;CACzD,OAAO;AACR,GAAG,IAAI,QAAQ,CAAC,CAAC,SAAS,CAAC;;;ACR3B,MAAM,sBAAsB;CAC3B;CACA;CACA;AACD;AACA,MAAM,yBAAyB;AAC/B,MAAM,0BAA0B;AAChC,MAAM,2BAA2B;AAEjC,MAAM,iCAAiC,UAAU;CAChD,MAAM,aAAa,yBAAyB,KAAK;CACjD,IAAI,WAAW,WAAW,GAAG;CAC7B,OAAO,WAAW,MAAM,GAAG,EAAE;AAC9B;AACA,MAAM,kCAAkC,UAAU;CACjD,MAAM,aAAa,yBAAyB,KAAK;CACjD,IAAI,WAAW,WAAW,GAAG;CAC7B,OAAO,oBAAoB,UAAU,UAAU,CAAC,CAAC,UAAU,aAAa,KAAK;AAC9E;AACA,MAAM,uCAAuC;AAC7C,MAAM,6BAA6B,IAAI,KAAK,CAAC,oBAAoB,QAAQ,CAAC;AAC1E,MAAM,gCAAgC,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sources":["../../../packages/schemas/dist/schemas/protocol/shared.js","../../../packages/schemas/dist/schemas/protocol/profile.js","../../../packages/schemas/dist/schemas/daemon/conversation-lifecycle.js","../../../packages/schemas/dist/schemas/daemon/conversation-execution-state.js","../../../packages/schemas/dist/schemas/daemon/provider-runtime-context.js","../../../packages/schemas/dist/schemas/daemon/control-plane.js"],"sourcesContent":["import * as z$1 from \"zod/v4\";\n//#region src/schemas/protocol/shared.ts\nconst trimmedStringFromUnknown = (value) => String(value ?? \"\").trim();\nconst nonEmptyTrimmedStringFromUnknown = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1));\nconst finiteIntegerNumber = z$1.number().int().finite();\nconst optionalBooleanQuerySchema = z$1.preprocess((value) => {\n\tif (value === void 0 || value === null || value === \"\") return;\n\tif (typeof value === \"boolean\") return value;\n\tconst normalized = String(value).trim().toLowerCase();\n\tif (normalized === \"true\" || normalized === \"1\") return true;\n\tif (normalized === \"false\" || normalized === \"0\") return false;\n\treturn value;\n}, z$1.boolean().optional());\n//#endregion\nexport { finiteIntegerNumber, nonEmptyTrimmedStringFromUnknown, optionalBooleanQuerySchema, trimmedStringFromUnknown };\n\n//# sourceMappingURL=shared.js.map"," \nimport { trimmedStringFromUnknown } from \"./shared.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/protocol/profile.ts\nconst PROFILE_KIND_VALUES = [\n\t\"human\",\n\t\"agent\",\n\t\"system\"\n];\nconst PROFILE_HANDLE_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/;\nconst UUID_PROFILE_ID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;\nconst 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}$/;\nconst MAX_PROFILE_HANDLE_LENGTH = 128;\nconst normalizeOptionalProfileLabel = (value) => {\n\tconst normalized = trimmedStringFromUnknown(value);\n\tif (normalized.length === 0) return;\n\treturn normalized.slice(0, 64);\n};\nconst normalizeOptionalProfileHandle = (value) => {\n\tconst normalized = trimmedStringFromUnknown(value);\n\tif (normalized.length === 0) return;\n\treturn profileHandleSchema.safeParse(normalized).success ? normalized : void 0;\n};\nconst MAX_PROFILE_WORKING_DIRECTORY_LENGTH = 4096;\nconst profileWorkspaceModeSchema = z$1.enum([\"openmeld_managed\", \"custom\"]);\nconst profileWorkingDirectorySchema = z$1.string().min(1).max(MAX_PROFILE_WORKING_DIRECTORY_LENGTH).refine((value) => !value.includes(\"\\0\"), { message: \"workingDirectory must not contain NUL bytes\" });\nconst normalizeOptionalWorkingDirectory = (value) => {\n\tif (typeof value !== \"string\") return;\n\tconst parsed = profileWorkingDirectorySchema.safeParse(value);\n\treturn parsed.success ? parsed.data : void 0;\n};\nconst MAX_AVATAR_URL_LENGTH = 2048;\nconst HTTPS_URL_PATTERN = /^https?:\\/\\//i;\n/**\n* Avatar URLs are a public identity field that travels with the Profile across\n* domains. Only http(s) URLs are accepted so the value is safe to render as an\n* `<img src>` on web clients (rejects javascript:/data: injection vectors).\n*/\nconst normalizeOptionalAvatarUrl = (value) => {\n\tconst normalized = trimmedStringFromUnknown(value);\n\tif (normalized.length === 0 || normalized.length > 2048) return;\n\treturn HTTPS_URL_PATTERN.test(normalized) ? normalized : void 0;\n};\n/** Unknown or invalid kinds are normalized to \"agent\" for wire compatibility. */\nconst profileKindWithFallbackSchema = z$1.preprocess((value) => {\n\tconst parsed = z$1.enum(PROFILE_KIND_VALUES).safeParse(value);\n\treturn parsed.success ? parsed.data : \"agent\";\n}, z$1.enum(PROFILE_KIND_VALUES));\nconst profileKindSchema = z$1.enum(PROFILE_KIND_VALUES);\nconst profileLabelSchema = z$1.string().min(1).max(64);\nconst profileHandleSchema = z$1.string().min(1).max(128).regex(PROFILE_HANDLE_PATTERN);\nconst genericProfileIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64));\nconst uuidProfileIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64).regex(UUID_PROFILE_ID_PATTERN));\nconst agentProfileIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64).regex(AGENT_PROFILE_ID_PATTERN));\n/**\n* Runtime OpenMeld profile IDs are auth-backed and follow these rules:\n* - human/system profiles use a UUID\n* - agent profiles use agt_<UUID>\n*\n* Generic test fixtures or legacy intermediary strings should not reuse this\n* schema unless they represent a real runtime profile identity.\n*/\nconst 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\"));\n/**\n* Generic wire/profile normalization rules:\n* - trims and validates profileId as a non-empty string\n* - defaults missing/invalid kind to \"agent\"\n* - truncates profileName/owner labels to max length\n* - preserves agent workingDirectory verbatim when it is a valid string\n* - keeps owner only for agent profiles\n*\n* This schema intentionally stays broader than auth-backed runtime IDs because\n* protocol/system messages may still use internal synthetic profile IDs such as\n* `openmeld-system`.\n*/\nconst profileSchema = z$1.object({\n\tkind: profileKindWithFallbackSchema.optional(),\n\tprofileId: genericProfileIdSchema,\n\tprofileHandle: z$1.unknown().optional(),\n\tprofileName: z$1.unknown().optional(),\n\towner: z$1.unknown().optional(),\n\townerName: z$1.unknown().optional(),\n\tagentControllerRef: z$1.unknown().optional(),\n\tagentControllerConversationId: z$1.unknown().optional(),\n\tworkingDirectory: z$1.unknown().optional(),\n\tavatarUrl: z$1.unknown().optional()\n}).transform((value) => {\n\tconst kind = value.kind ?? \"agent\";\n\tconst profileHandle = normalizeOptionalProfileHandle(value.profileHandle);\n\tconst profileName = normalizeOptionalProfileLabel(value.profileName);\n\tconst owner = kind === \"agent\" ? normalizeOptionalProfileLabel(value.owner) : void 0;\n\tconst ownerName = kind === \"agent\" ? normalizeOptionalProfileLabel(value.ownerName) : void 0;\n\tconst agentControllerRef = kind === \"agent\" ? normalizeOptionalProfileLabel(value.agentControllerRef) : void 0;\n\tconst agentControllerConversationId = kind === \"agent\" ? normalizeOptionalProfileLabel(value.agentControllerConversationId) : void 0;\n\tconst workingDirectory = kind === \"agent\" ? normalizeOptionalWorkingDirectory(value.workingDirectory) : void 0;\n\tconst avatarUrl = normalizeOptionalAvatarUrl(value.avatarUrl);\n\treturn {\n\t\tkind,\n\t\tprofileId: value.profileId,\n\t\t...profileHandle ? { profileHandle } : {},\n\t\t...profileName ? { profileName } : {},\n\t\t...owner ? { owner } : {},\n\t\t...ownerName ? { ownerName } : {},\n\t\t...agentControllerRef ? { agentControllerRef } : {},\n\t\t...agentControllerConversationId ? { agentControllerConversationId } : {},\n\t\t...workingDirectory ? { workingDirectory } : {},\n\t\t...avatarUrl ? { avatarUrl } : {}\n\t};\n});\n//#endregion\nexport { MAX_AVATAR_URL_LENGTH, MAX_PROFILE_HANDLE_LENGTH, MAX_PROFILE_WORKING_DIRECTORY_LENGTH, agentProfileIdSchema, genericProfileIdSchema, normalizeOptionalWorkingDirectory, openMeldRuntimeProfileIdSchema, profileHandleSchema, profileKindSchema, profileLabelSchema, profileSchema, profileWorkingDirectorySchema, profileWorkspaceModeSchema, uuidProfileIdSchema };\n\n//# sourceMappingURL=profile.js.map","import * as z$1 from \"zod/v4\";\n//#region src/schemas/daemon/conversation-lifecycle.ts\nconst conversationBootstrapReasonSchema = z$1.enum([\n\t\"missing_bootstrap_state\",\n\t\"compatibility_recreate\",\n\t\"template_changed\",\n\t\"idle_stale\",\n\t\"dispatch_count_stale\",\n\t\"context_healed\",\n\t\"context_replaced\"\n]);\nconst localRuntimeContextReasonSchema = z$1.enum([\n\t\"first_local_runtime_context\",\n\t\"workspace_changed\",\n\t\"transport_mode_changed\",\n\t\"policy_changed\",\n\t\"execution_state_missing\",\n\t\"controller_changed\"\n]);\nconst agentControllerConversationResumePlanBlockedReasonSchema = z$1.enum([\"controller_changed\"]);\nconst agentControllerConversationResumePlanSchema = z$1.discriminatedUnion(\"status\", [\n\tz$1.strictObject({ status: z$1.literal(\"not_bound\") }),\n\tz$1.strictObject({ status: z$1.literal(\"continue_existing\") }),\n\tz$1.strictObject({\n\t\tstatus: z$1.literal(\"blocked\"),\n\t\treason: agentControllerConversationResumePlanBlockedReasonSchema\n\t})\n]);\nconst localRuntimeContextPlanSchema = z$1.strictObject({\n\tstatus: z$1.enum([\"reuse\", \"recreate\"]),\n\treason: z$1.union([localRuntimeContextReasonSchema, z$1.null()])\n});\nconst conversationBootstrapSchema = z$1.discriminatedUnion(\"status\", [z$1.strictObject({\n\treason: z$1.null(),\n\tstatus: z$1.literal(\"applied\")\n}), z$1.strictObject({\n\treason: conversationBootstrapReasonSchema,\n\tstatus: z$1.literal(\"pending\")\n})]);\nconst nextDispatchPlanSchema = z$1.strictObject({\n\tagentControllerConversationResume: agentControllerConversationResumePlanSchema,\n\tlocalRuntimeContext: localRuntimeContextPlanSchema,\n\tbootstrap: conversationBootstrapSchema\n});\nconst agentControllerConversationResumeSchema = z$1.discriminatedUnion(\"status\", [\n\tz$1.strictObject({ status: z$1.literal(\"not_bound\") }),\n\tz$1.strictObject({ status: z$1.literal(\"continued\") }),\n\tz$1.strictObject({ status: z$1.literal(\"replaced_by_provider\") })\n]);\nconst localRuntimeContextExecutionSchema = z$1.strictObject({\n\tstatus: z$1.enum([\"reused\", \"recreated\"]),\n\treason: z$1.union([localRuntimeContextReasonSchema, z$1.null()])\n});\nconst dispatchExecutionSchema = z$1.strictObject({\n\tagentControllerConversationResume: agentControllerConversationResumeSchema,\n\tlocalRuntimeContext: localRuntimeContextExecutionSchema,\n\tbootstrap: conversationBootstrapSchema\n});\n//#endregion\nexport { agentControllerConversationResumePlanBlockedReasonSchema, agentControllerConversationResumePlanSchema, agentControllerConversationResumeSchema, conversationBootstrapReasonSchema, conversationBootstrapSchema, dispatchExecutionSchema, localRuntimeContextExecutionSchema, localRuntimeContextPlanSchema, localRuntimeContextReasonSchema, nextDispatchPlanSchema };\n\n//# sourceMappingURL=conversation-lifecycle.js.map","import { profileWorkingDirectorySchema } from \"../protocol/profile.js\";\nimport { agentControllerConversationRefSchema } from \"./conversation-contract.js\";\nimport { conversationBootstrapReasonSchema } from \"./conversation-lifecycle.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/daemon/conversation-execution-state.ts\nconst ISO_DATE_TIME_SCHEMA = z$1.iso.datetime({ offset: true });\nconst bootstrapTemplateFactsSchema = z$1.strictObject({\n\ttemplateVersion: z$1.string().min(1),\n\tcontentFingerprint: z$1.string().min(1)\n});\nconst conversationExecutionStateSchema = z$1.strictObject({\n\tagentContextLookupKey: z$1.string().min(1),\n\tactiveContextId: z$1.string().min(1).nullable(),\n\tlastResolvedAgentControllerConversation: agentControllerConversationRefSchema.optional(),\n\tlastRuntimeWorkspacePath: profileWorkingDirectorySchema.optional(),\n\truntimeWorkspaceFingerprint: z$1.string().min(1),\n\tbootstrapLastAppliedAt: ISO_DATE_TIME_SCHEMA.optional(),\n\tbootstrapLastActivatedAt: ISO_DATE_TIME_SCHEMA.optional(),\n\tdispatchesSinceBootstrapApplied: z$1.number().int().min(0),\n\tlastAppliedTemplateVersion: z$1.string().min(1).optional(),\n\tlastAppliedContentFingerprint: z$1.string().min(1).optional(),\n\tpendingBootstrapReason: conversationBootstrapReasonSchema.optional(),\n\tupdatedAt: ISO_DATE_TIME_SCHEMA\n});\n//#endregion\nexport { bootstrapTemplateFactsSchema, conversationExecutionStateSchema };\n\n//# sourceMappingURL=conversation-execution-state.js.map","import { MAX_PROFILE_WORKING_DIRECTORY_LENGTH } from \"../protocol/profile.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/daemon/provider-runtime-context.ts\nconst 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\" }) });\n//#endregion\nexport { providerDispatchRuntimeContextSchema };\n\n//# sourceMappingURL=provider-runtime-context.js.map","import { array, boolean, discriminatedUnion, enum as enumFactory, iso, literal, null as nullFactory, number, strictObject, string, union } from \"../../lazy-zod.js\";\nimport { nonEmptyTrimmedStringFromUnknown } from \"../protocol/shared.js\";\nimport { agentProfileIdSchema, profileWorkingDirectorySchema, profileWorkspaceModeSchema } from \"../protocol/profile.js\";\nimport { runtimeTransportModeSchema } from \"./controller-contract.js\";\nimport { conversationExecutionStateSchema } from \"./conversation-execution-state.js\";\nimport { providerDispatchRuntimeContextSchema } from \"./provider-runtime-context.js\";\n//#region src/schemas/daemon/control-plane.ts\nconst OPENMELD_DAEMON_CONTROL_PLANE_SCHEMA_VERSION = 1;\nconst openMeldDaemonControlPlaneCommandSchema = enumFactory([\n\t\"status\",\n\t\"health\",\n\t\"history\",\n\t\"interrupt\",\n\t\"cancel\",\n\t\"conversation_execution_status\",\n\t\"request_agent_activity_sync\",\n\t\"sync_route_catalog\",\n\t\"set_local_agent_enabled\",\n\t\"set_profile_workspace\",\n\t\"service_update_readiness\",\n\t\"account_control_capabilities\",\n\t\"shutdown\"\n]);\nconst openMeldDaemonHealthStateSchema = enumFactory([\n\t\"ok\",\n\t\"degraded\",\n\t\"down\"\n]);\nconst openMeldDaemonRuntimeHealthStateSchema = enumFactory([\n\t\"healthy\",\n\t\"idle\",\n\t\"suspect\",\n\t\"down\"\n]);\nconst openMeldDaemonControlTargetSelectorSchema = discriminatedUnion(\"by\", [strictObject({\n\tby: literal(\"dispatch\"),\n\tdispatchId: string().min(1)\n}), strictObject({\n\tby: literal(\"task\"),\n\ttaskId: string().min(1)\n})]);\nconst openMeldDaemonInterruptRequestPayloadSchema = strictObject({\n\truntimeCoordinatorExecutionId: string().min(1).optional(),\n\ttarget: openMeldDaemonControlTargetSelectorSchema,\n\tmode: enumFactory([\"graceful\", \"force\"]).optional(),\n\treason: string().min(1).optional()\n});\nconst openMeldDaemonCancelRequestPayloadSchema = strictObject({\n\truntimeCoordinatorExecutionId: string().min(1).optional(),\n\ttarget: openMeldDaemonControlTargetSelectorSchema,\n\treason: string().min(1).optional()\n});\nconst openMeldDaemonShutdownRequestPayloadSchema = strictObject({\n\taccountAdmissionId: string().uuid().optional(),\n\tmode: enumFactory([\"graceful\", \"force\"]).default(\"graceful\"),\n\tgracePeriodMs: number().int().nonnegative().default(5e3)\n});\nconst openMeldDaemonServiceUpdateReadinessPayloadSchema = strictObject({\n\tacceptedWakeCount: number().int().nonnegative(),\n\tsafeToSwitch: boolean(),\n\tunacknowledgedResultCount: number().int().nonnegative()\n});\nconst openMeldDaemonConversationExecutionControllerLaunchStatusSchema = enumFactory([\n\t\"missing\",\n\t\"disabled\",\n\t\"repair_required\",\n\t\"ready\"\n]);\nconst nullableAgentControllerRefSchema = union([string().min(1), nullFactory()]);\nconst nullableNonEmptyStringSchema = union([string().min(1), nullFactory()]);\nconst openMeldDaemonConversationExecutionStatusRequestPayloadSchema = strictObject({\n\tboundAgentControllerRef: nullableAgentControllerRefSchema,\n\tagentControllerConversationId: nullableNonEmptyStringSchema,\n\tagentControllerRef: string().min(1),\n\tspaceId: nonEmptyTrimmedStringFromUnknown,\n\ttargetProfileId: agentProfileIdSchema,\n\ttransportMode: runtimeTransportModeSchema,\n\tvalidate: boolean()\n});\nconst openMeldDaemonSyncRouteCatalogRequestPayloadSchema = strictObject({ reason: string().min(1) });\nconst openMeldDaemonRequestAgentActivitySyncRequestPayloadSchema = strictObject({ reason: string().trim().min(1).max(128) });\nconst openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema = strictObject({\n\tagentId: string().trim().min(1).max(256),\n\tenabled: boolean()\n});\nconst localAgentInstallationOptionSchema = strictObject({\n\tinstallationId: string().trim().min(1).max(256),\n\tname: string().trim().min(1).max(256),\n\tdetails: string().trim().min(1).max(256),\n\tselected: boolean()\n});\nconst openMeldDaemonManageLocalAgentInstallationRequestPayloadSchema = discriminatedUnion(\"operation\", [strictObject({\n\tagentId: string().trim().min(1).max(256),\n\toperation: literal(\"list\")\n}), strictObject({\n\tagentId: string().trim().min(1).max(256),\n\tinstallationId: string().trim().min(1).max(256),\n\toperation: literal(\"select\")\n})]);\nconst openMeldDaemonSetProfileWorkspaceRequestPayloadSchema = strictObject({\n\ttargetProfileId: agentProfileIdSchema,\n\tworkspaceMode: profileWorkspaceModeSchema,\n\tworkspacePath: profileWorkingDirectorySchema.optional()\n}).superRefine((value, context) => {\n\tif (value.workspaceMode === \"custom\" && !value.workspacePath) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"workspacePath is required for a custom profile workspace\",\n\t\tpath: [\"workspacePath\"]\n\t});\n\tif (value.workspaceMode === \"openmeld_managed\" && value.workspacePath) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"workspacePath must be omitted for an OpenMeld-managed profile workspace\",\n\t\tpath: [\"workspacePath\"]\n\t});\n});\nconst openMeldDaemonConversationExecutionRuntimeWorkspaceReadySchema = strictObject({\n\tconfigPath: string().min(1),\n\tconfiguredWorkspacePath: string().min(1),\n\tfingerprint: string().min(1),\n\tpath: string().min(1),\n\treasonCode: nullFactory(),\n\treasonText: nullFactory(),\n\truntimeContext: providerDispatchRuntimeContextSchema,\n\tstatus: literal(\"ready\"),\n\tworkspaceMode: profileWorkspaceModeSchema\n});\nconst openMeldDaemonConversationExecutionRuntimeWorkspaceMissingSchema = strictObject({\n\tconfigPath: string().min(1),\n\tconfiguredWorkspacePath: nullFactory(),\n\tfingerprint: nullFactory(),\n\tpath: nullFactory(),\n\treasonCode: literal(\"workspace.missing\"),\n\treasonText: string().min(1),\n\truntimeContext: nullFactory(),\n\tstatus: literal(\"missing\"),\n\tworkspaceMode: nullFactory()\n});\nconst openMeldDaemonConversationExecutionRuntimeWorkspaceInvalidSchema = strictObject({\n\tconfigPath: string().min(1),\n\tconfiguredWorkspacePath: union([string().min(1), nullFactory()]),\n\tfingerprint: nullFactory(),\n\tpath: nullFactory(),\n\treasonCode: literal(\"workspace.invalid\"),\n\treasonText: string().min(1),\n\truntimeContext: nullFactory(),\n\tstatus: literal(\"invalid\"),\n\tworkspaceMode: union([profileWorkspaceModeSchema, nullFactory()])\n});\nconst openMeldDaemonConversationExecutionRuntimeWorkspaceSchema = discriminatedUnion(\"status\", [\n\topenMeldDaemonConversationExecutionRuntimeWorkspaceReadySchema,\n\topenMeldDaemonConversationExecutionRuntimeWorkspaceMissingSchema,\n\topenMeldDaemonConversationExecutionRuntimeWorkspaceInvalidSchema\n]);\nconst openMeldDaemonConversationExecutionLocalRuntimeContextStatusSchema = enumFactory([\n\t\"missing\",\n\t\"mismatch\",\n\t\"ready\"\n]);\nconst openMeldDaemonProviderConversationProofStatusSchema = enumFactory([\n\t\"failed\",\n\t\"not_applicable\",\n\t\"not_run\",\n\t\"passed\"\n]);\nconst openMeldDaemonProviderConversationProofProviderSchema = enumFactory([\n\t\"codex\",\n\t\"claude-code\",\n\t\"openclaw\"\n]);\nconst openMeldDaemonProviderConversationProofMethodSchema = enumFactory([\"codex_app_server_thread_resume\"]);\nconst openMeldDaemonProviderConversationProofSchema = strictObject({\n\tagentControllerConversationId: nullableNonEmptyStringSchema,\n\tcheckedAt: union([iso.datetime({ offset: true }), nullFactory()]),\n\terrorCode: nullableNonEmptyStringSchema,\n\terrorMessage: nullableNonEmptyStringSchema,\n\terrorType: nullableNonEmptyStringSchema,\n\texpiresAt: union([iso.datetime({ offset: true }), nullFactory()]),\n\tintrusive: literal(false),\n\tmethod: union([openMeldDaemonProviderConversationProofMethodSchema, nullFactory()]),\n\tprovider: union([openMeldDaemonProviderConversationProofProviderSchema, nullFactory()]),\n\tstatus: openMeldDaemonProviderConversationProofStatusSchema,\n\ttransportMode: union([runtimeTransportModeSchema, nullFactory()])\n});\nconst openMeldDaemonConversationExecutionStatusPayloadSchema = strictObject({\n\tagentContextLookupKey: string().min(1),\n\tcontrollerLaunchStatus: openMeldDaemonConversationExecutionControllerLaunchStatusSchema,\n\texecutionState: conversationExecutionStateSchema.nullable(),\n\tlocalRuntimeContext: strictObject({\n\t\tagentContextLookupKey: string().min(1),\n\t\truntimeWorkspaceFingerprint: nullableNonEmptyStringSchema,\n\t\tstatus: openMeldDaemonConversationExecutionLocalRuntimeContextStatusSchema\n\t}),\n\tproviderConversationProof: openMeldDaemonProviderConversationProofSchema,\n\truntimeWorkspace: openMeldDaemonConversationExecutionRuntimeWorkspaceSchema\n});\nconst openMeldDaemonSyncRouteCatalogStatusSchema = enumFactory([\n\t\"changed\",\n\t\"registered\",\n\t\"unchanged\",\n\t\"failed\",\n\t\"deferred\"\n]);\nconst DAEMON_PROFILE_SKIP_REASON_VALUES = [\n\t\"projection.missing\",\n\t\"controller.registry.disabled\",\n\t\"controller.launch.needs_repair\",\n\t\"runtime.adapter.unsupported\",\n\t\"controller.binding.disabled\",\n\t\"controller.binding.incomplete\",\n\t\"profile.status.inactive\",\n\t\"profile.binding.read_unavailable\",\n\t\"profile.binding.unbound\",\n\t\"workspace.missing\",\n\t\"workspace.invalid\"\n];\nconst daemonProfileSkipReasonSchema = enumFactory(DAEMON_PROFILE_SKIP_REASON_VALUES);\nconst skippedDaemonProfileSchema = strictObject({\n\tprofileId: agentProfileIdSchema,\n\tprofileName: nullableNonEmptyStringSchema,\n\tskipReason: daemonProfileSkipReasonSchema\n});\nconst openMeldDaemonSyncRouteCatalogPayloadSchema = strictObject({\n\taccepted: boolean(),\n\tsyncStatus: openMeldDaemonSyncRouteCatalogStatusSchema,\n\tprofileIds: array(agentProfileIdSchema),\n\taddedProfileIds: array(agentProfileIdSchema).optional(),\n\tkeptProfileIds: array(agentProfileIdSchema).optional(),\n\tremovedProfileIds: array(agentProfileIdSchema).optional(),\n\tskippedProfiles: array(skippedDaemonProfileSchema).optional(),\n\tnote: string().min(1).optional(),\n\terrorMessage: string().min(1).optional()\n});\nconst openMeldDaemonRequestAgentActivitySyncPayloadSchema = strictObject({ accepted: boolean() });\nconst openMeldDaemonSetLocalAgentEnabledPayloadSchema = strictObject({\n\taccepted: boolean(),\n\tagentControllerRef: string().min(1).optional(),\n\tagentId: string().trim().min(1).max(256),\n\tchanged: boolean(),\n\tenabled: boolean(),\n\tmessage: string().min(1).optional(),\n\treasonCode: string().min(1).optional(),\n\treportSyncStatus: enumFactory([\n\t\t\"submitted\",\n\t\t\"skipped\",\n\t\t\"failed\"\n\t]),\n\tstatus: enumFactory([\n\t\t\"updated\",\n\t\t\"unchanged\",\n\t\t\"rejected\"\n\t])\n});\nconst openMeldDaemonManageLocalAgentInstallationPayloadSchema = discriminatedUnion(\"accepted\", [strictObject({\n\taccepted: literal(true),\n\tagentControllerRef: string().min(1),\n\tagentId: string().trim().min(1).max(256),\n\tchanged: boolean(),\n\tinstallations: array(localAgentInstallationOptionSchema),\n\treportSyncStatus: enumFactory([\n\t\t\"submitted\",\n\t\t\"skipped\",\n\t\t\"failed\"\n\t]),\n\tselectionStatus: enumFactory([\n\t\t\"available\",\n\t\t\"blocked_by_work\",\n\t\t\"operation_in_progress\"\n\t]).optional(),\n\tselectedInstallationId: string().trim().min(1).max(256).nullable(),\n\tstatus: enumFactory([\n\t\t\"listed\",\n\t\t\"updated\",\n\t\t\"unchanged\"\n\t])\n}), strictObject({\n\taccepted: literal(false),\n\tagentId: string().trim().min(1).max(256),\n\tchanged: literal(false),\n\tinstallations: array(localAgentInstallationOptionSchema),\n\tmessage: string().min(1).optional(),\n\treasonCode: string().min(1).optional(),\n\treportSyncStatus: literal(\"failed\"),\n\tselectionStatus: enumFactory([\n\t\t\"available\",\n\t\t\"blocked_by_work\",\n\t\t\"operation_in_progress\"\n\t]).optional(),\n\tselectedInstallationId: string().trim().min(1).max(256).nullable(),\n\tstatus: literal(\"rejected\")\n})]);\nconst openMeldDaemonSetProfileWorkspacePayloadSchema = discriminatedUnion(\"accepted\", [strictObject({\n\taccepted: literal(true),\n\ttargetProfileId: agentProfileIdSchema,\n\tstatus: literal(\"updated\"),\n\tworkspaceMode: profileWorkspaceModeSchema,\n\tworkspacePath: string().min(1)\n}), strictObject({\n\taccepted: literal(false),\n\ttargetProfileId: agentProfileIdSchema,\n\tmessage: string().min(1).optional(),\n\treasonCode: string().min(1).optional(),\n\tstatus: literal(\"rejected\")\n})]);\nconst openMeldDaemonControlPlaneRequestBaseSchema = strictObject({\n\tv: literal(1),\n\trequestId: string().min(1).optional(),\n\tauthToken: string().min(1).optional()\n});\nconst openMeldDaemonControlPlaneRequestSchema = discriminatedUnion(\"command\", [\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal(\"account_control_capabilities\") }),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal(\"status\") }),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal(\"health\") }),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal(\"history\") }),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"interrupt\"),\n\t\tpayload: openMeldDaemonInterruptRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"cancel\"),\n\t\tpayload: openMeldDaemonCancelRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"conversation_execution_status\"),\n\t\tpayload: openMeldDaemonConversationExecutionStatusRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"sync_route_catalog\"),\n\t\tpayload: openMeldDaemonSyncRouteCatalogRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"request_agent_activity_sync\"),\n\t\tpayload: openMeldDaemonRequestAgentActivitySyncRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"set_local_agent_enabled\"),\n\t\tpayload: openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"set_profile_workspace\"),\n\t\tpayload: openMeldDaemonSetProfileWorkspaceRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal(\"service_update_readiness\") }),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"shutdown\"),\n\t\tpayload: openMeldDaemonShutdownRequestPayloadSchema.optional()\n\t})\n]);\nconst openMeldDaemonStatusPayloadSchema = strictObject({\n\tinstalled: boolean(),\n\trunning: boolean(),\n\tdaemonVersion: string().min(1),\n\truntimeRoot: string().min(1),\n\tcheckedAt: string().min(1)\n});\nconst openMeldDaemonHealthPayloadSchema = strictObject({\n\tstate: openMeldDaemonHealthStateSchema,\n\truntimeState: openMeldDaemonRuntimeHealthStateSchema.optional(),\n\treasonCode: string().min(1),\n\tcheckedAt: string().min(1)\n});\nconst openMeldDaemonHistoryEntrySchema = strictObject({\n\tid: string().min(1),\n\tts: string().min(1),\n\tcode: string().min(1),\n\tmessage: string().min(1)\n});\nconst openMeldDaemonHistoryPayloadSchema = strictObject({\n\tentries: array(openMeldDaemonHistoryEntrySchema),\n\tnextCursor: string().min(1).optional()\n});\nconst openMeldDaemonInterruptPayloadSchema = strictObject({\n\taccepted: boolean(),\n\ttarget: openMeldDaemonControlTargetSelectorSchema,\n\tresolvedDispatchId: string().min(1).optional(),\n\tresolvedRuntimeCoordinatorExecutionId: string().min(1).optional(),\n\tresolvedTaskId: string().min(1).optional(),\n\tnote: string().min(1).optional(),\n\treasonCode: string().min(1).optional()\n});\n/**\n* What accepting a cancellation established, carried on `reasonCode`.\n*\n* `accepted` alone only means the control request was taken: an adapter can\n* register a stop signal before the provider turn is acknowledged, and\n* interrupting a started turn is a request, not a completion barrier. Work that\n* replaces the attempt needs `adapter.cancel.withdrawn_before_start`.\n*\n* This rides the existing free-form reason code on purpose. These payloads are\n* strict objects, so a Service that emitted a new key would have its whole\n* frame rejected by a Core that predates it, and local components can reach a\n* user before the matching Core deploy.\n*/\nconst OPENMELD_DAEMON_CANCEL_WITHDRAWN_BEFORE_START_REASON_CODE = \"adapter.cancel.withdrawn_before_start\";\nconst OPENMELD_DAEMON_CANCEL_STOP_REQUESTED_AFTER_START_REASON_CODE = \"adapter.cancel.stop_requested_after_start\";\nconst openMeldDaemonCancelPayloadSchema = strictObject({\n\taccepted: boolean(),\n\ttarget: openMeldDaemonControlTargetSelectorSchema,\n\tresolvedDispatchId: string().min(1).optional(),\n\tresolvedRuntimeCoordinatorExecutionId: string().min(1).optional(),\n\tresolvedTaskId: string().min(1).optional(),\n\tnote: string().min(1).optional(),\n\treasonCode: string().min(1).optional()\n});\nconst openMeldDaemonControlPlaneErrorPayloadSchema = strictObject({\n\terrorCode: string().min(1),\n\terrorMessage: string().min(1),\n\tnote: string().min(1).optional()\n});\nconst openMeldDaemonShutdownPayloadSchema = strictObject({\n\taccepted: boolean(),\n\tmode: enumFactory([\"graceful\", \"force\"]),\n\tgracePeriodMs: number().int().nonnegative()\n});\nconst openMeldDaemonControlPlaneResponseBaseSchema = strictObject({\n\tv: literal(1),\n\trequestId: string().min(1).optional()\n});\nconst openMeldDaemonStatusResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.status\"),\n\tpayload: openMeldDaemonStatusPayloadSchema\n});\nconst openMeldDaemonHealthResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.health\"),\n\tpayload: openMeldDaemonHealthPayloadSchema\n});\nconst openMeldDaemonHistoryResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.history\"),\n\tpayload: openMeldDaemonHistoryPayloadSchema\n});\nconst openMeldDaemonInterruptResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.interrupt\"),\n\tpayload: openMeldDaemonInterruptPayloadSchema\n});\nconst openMeldDaemonCancelResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.cancel\"),\n\tpayload: openMeldDaemonCancelPayloadSchema\n});\nconst openMeldDaemonConversationExecutionStatusResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.conversation_execution_status\"),\n\tpayload: openMeldDaemonConversationExecutionStatusPayloadSchema\n});\nconst openMeldDaemonSyncRouteCatalogResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.sync_route_catalog\"),\n\tpayload: openMeldDaemonSyncRouteCatalogPayloadSchema\n});\nconst openMeldDaemonRequestAgentActivitySyncResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.agent_activity_sync_requested\"),\n\tpayload: openMeldDaemonRequestAgentActivitySyncPayloadSchema\n});\nconst openMeldDaemonSetLocalAgentEnabledResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.set_local_agent_enabled\"),\n\tpayload: openMeldDaemonSetLocalAgentEnabledPayloadSchema\n});\nconst openMeldDaemonSetProfileWorkspaceResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.set_profile_workspace\"),\n\tpayload: openMeldDaemonSetProfileWorkspacePayloadSchema\n});\nconst openMeldDaemonShutdownResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.shutdown\"),\n\tpayload: openMeldDaemonShutdownPayloadSchema\n});\nconst openMeldDaemonServiceUpdateReadinessResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.update_readiness\"),\n\tpayload: openMeldDaemonServiceUpdateReadinessPayloadSchema\n});\nconst openMeldDaemonControlPlaneErrorResponseSchema = openMeldDaemonControlPlaneResponseBaseSchema.extend({\n\tcode: literal(\"service.error\"),\n\tpayload: openMeldDaemonControlPlaneErrorPayloadSchema\n});\nconst openMeldDaemonControlPlaneResponseSchema = discriminatedUnion(\"code\", [\n\topenMeldDaemonControlPlaneResponseBaseSchema.extend({\n\t\tcode: literal(\"service.account_control_capabilities\"),\n\t\tpayload: strictObject({ supported: boolean() })\n\t}),\n\topenMeldDaemonStatusResponseSchema,\n\topenMeldDaemonHealthResponseSchema,\n\topenMeldDaemonHistoryResponseSchema,\n\topenMeldDaemonInterruptResponseSchema,\n\topenMeldDaemonCancelResponseSchema,\n\topenMeldDaemonConversationExecutionStatusResponseSchema,\n\topenMeldDaemonSyncRouteCatalogResponseSchema,\n\topenMeldDaemonRequestAgentActivitySyncResponseSchema,\n\topenMeldDaemonSetLocalAgentEnabledResponseSchema,\n\topenMeldDaemonSetProfileWorkspaceResponseSchema,\n\topenMeldDaemonServiceUpdateReadinessResponseSchema,\n\topenMeldDaemonShutdownResponseSchema,\n\topenMeldDaemonControlPlaneErrorResponseSchema\n]);\n//#endregion\nexport { DAEMON_PROFILE_SKIP_REASON_VALUES, OPENMELD_DAEMON_CANCEL_STOP_REQUESTED_AFTER_START_REASON_CODE, OPENMELD_DAEMON_CANCEL_WITHDRAWN_BEFORE_START_REASON_CODE, OPENMELD_DAEMON_CONTROL_PLANE_SCHEMA_VERSION, daemonProfileSkipReasonSchema, localAgentInstallationOptionSchema, openMeldDaemonCancelPayloadSchema, openMeldDaemonCancelRequestPayloadSchema, openMeldDaemonCancelResponseSchema, openMeldDaemonControlPlaneCommandSchema, openMeldDaemonControlPlaneErrorPayloadSchema, openMeldDaemonControlPlaneErrorResponseSchema, openMeldDaemonControlPlaneRequestSchema, openMeldDaemonControlPlaneResponseSchema, openMeldDaemonControlTargetSelectorSchema, openMeldDaemonConversationExecutionControllerLaunchStatusSchema, openMeldDaemonConversationExecutionLocalRuntimeContextStatusSchema, openMeldDaemonConversationExecutionRuntimeWorkspaceInvalidSchema, openMeldDaemonConversationExecutionRuntimeWorkspaceMissingSchema, openMeldDaemonConversationExecutionRuntimeWorkspaceReadySchema, openMeldDaemonConversationExecutionRuntimeWorkspaceSchema, openMeldDaemonConversationExecutionStatusPayloadSchema, openMeldDaemonConversationExecutionStatusRequestPayloadSchema, openMeldDaemonConversationExecutionStatusResponseSchema, openMeldDaemonHealthPayloadSchema, openMeldDaemonHealthResponseSchema, openMeldDaemonHealthStateSchema, openMeldDaemonHistoryEntrySchema, openMeldDaemonHistoryPayloadSchema, openMeldDaemonHistoryResponseSchema, openMeldDaemonInterruptPayloadSchema, openMeldDaemonInterruptRequestPayloadSchema, openMeldDaemonInterruptResponseSchema, openMeldDaemonManageLocalAgentInstallationPayloadSchema, openMeldDaemonManageLocalAgentInstallationRequestPayloadSchema, openMeldDaemonProviderConversationProofMethodSchema, openMeldDaemonProviderConversationProofProviderSchema, openMeldDaemonProviderConversationProofSchema, openMeldDaemonProviderConversationProofStatusSchema, openMeldDaemonRequestAgentActivitySyncPayloadSchema, openMeldDaemonRequestAgentActivitySyncRequestPayloadSchema, openMeldDaemonRequestAgentActivitySyncResponseSchema, openMeldDaemonRuntimeHealthStateSchema, openMeldDaemonServiceUpdateReadinessPayloadSchema, openMeldDaemonServiceUpdateReadinessResponseSchema, openMeldDaemonSetLocalAgentEnabledPayloadSchema, openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema, openMeldDaemonSetLocalAgentEnabledResponseSchema, openMeldDaemonSetProfileWorkspacePayloadSchema, openMeldDaemonSetProfileWorkspaceRequestPayloadSchema, openMeldDaemonSetProfileWorkspaceResponseSchema, openMeldDaemonShutdownPayloadSchema, openMeldDaemonShutdownRequestPayloadSchema, openMeldDaemonShutdownResponseSchema, openMeldDaemonStatusPayloadSchema, openMeldDaemonStatusResponseSchema, openMeldDaemonSyncRouteCatalogPayloadSchema, openMeldDaemonSyncRouteCatalogRequestPayloadSchema, openMeldDaemonSyncRouteCatalogResponseSchema, openMeldDaemonSyncRouteCatalogStatusSchema, skippedDaemonProfileSchema };\n\n//# sourceMappingURL=control-plane.js.map"],"mappings":";;;;;;AAEA,MAAM,4BAA4B,UAAU,OAAO,SAAS,EA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CAA6C,OAAO;CAC9F,MAAM,QAAQ,gBAAgB;CAC9B,SAAS;AACV,CAAC;AACD,MAAM,0DAA0D,6CAA6C,OAAO;CACnH,MAAM,QAAQ,uCAAuC;CACrD,SAAS;AACV,CAAC;AACD,MAAM,+CAA+C,6CAA6C,OAAO;CACxG,MAAM,QAAQ,4BAA4B;CAC1C,SAAS;AACV,CAAC;AACD,MAAM,uDAAuD,6CAA6C,OAAO;CAChH,MAAM,QAAQ,uCAAuC;CACrD,SAAS;AACV,CAAC;AACD,MAAM,mDAAmD,6CAA6C,OAAO;CAC5G,MAAM,QAAQ,iCAAiC;CAC/C,SAAS;AACV,CAAC;AACD,MAAM,kDAAkD,6CAA6C,OAAO;CAC3G,MAAM,QAAQ,+BAA+B;CAC7C,SAAS;AACV,CAAC;AACD,MAAM,uCAAuC,6CAA6C,OAAO;CAChG,MAAM,QAAQ,kBAAkB;CAChC,SAAS;AACV,CAAC;AACD,MAAM,qDAAqD,6CAA6C,OAAO;CAC9G,MAAM,QAAQ,0BAA0B;CACxC,SAAS;AACV,CAAC;AACD,MAAM,gDAAgD,6CAA6C,OAAO;CACzG,MAAM,QAAQ,eAAe;CAC7B,SAAS;AACV,CAAC;AACD,MAAM,2CAA2C,mBAAmB,QAAQ;CAC3E,6CAA6C,OAAO;EACnD,MAAM,QAAQ,sCAAsC;EACpD,SAAS,aAAa,EAAE,WAAW,QAAQ,EAAE,CAAC;CAC/C,CAAC;CACD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC"}
|
|
@@ -19,6 +19,13 @@ const agentControllerConversationCapabilitySchema = z$1.strictObject({
|
|
|
19
19
|
turnOverride: agentControllerConversationTurnOverrideCapabilitySchema
|
|
20
20
|
});
|
|
21
21
|
const BUILTIN_AGENT_CONTROLLER_CONVERSATION_CAPABILITY_BY_CONTROLLER_ID = {
|
|
22
|
+
antigravity: {
|
|
23
|
+
discover: "unsupported",
|
|
24
|
+
externalImport: "by_ref_id",
|
|
25
|
+
fork: "unsupported",
|
|
26
|
+
resume: "by_ref_id",
|
|
27
|
+
turnOverride: "unsupported"
|
|
28
|
+
},
|
|
22
29
|
codex: {
|
|
23
30
|
discover: "unsupported",
|
|
24
31
|
externalImport: "by_ref_id",
|
|
@@ -160,6 +167,7 @@ const conversationPolicySchema = z$1.strictObject({
|
|
|
160
167
|
reasoningLevel: z$1.string().min(1).optional()
|
|
161
168
|
});
|
|
162
169
|
const BUILTIN_AGENT_CONTROLLER_CONVERSATION_KIND_BY_CONTROLLER_ID = {
|
|
170
|
+
antigravity: "session",
|
|
163
171
|
codex: "thread",
|
|
164
172
|
"claude-code": "session",
|
|
165
173
|
cursor: "session",
|
|
@@ -228,4 +236,4 @@ z$1.strictObject({
|
|
|
228
236
|
//#endregion
|
|
229
237
|
export { resolveBuiltinAgentControllerConversationCapability as C, agentControllerConversationCapabilitySchema as S, canonicalizeAgentControllerRef as _, runtimeDispatchPolicySchema as a, normalizeKnownBuiltinAgentControllerId as b, agentControllerConversationRefSchema as c, resolveBuiltinAgentControllerConversationKind as d, HOSTED_CENTER_AGENT_CONTROLLER_REF as f, buildAgentControllerRoutingKey as g, agentControllerRefSchema as h, runtimeAgentControllerSettingsSchema as i, buildAgentControllerConversationRef as l, HOSTED_REMOTE_AGENT_CONTROLLER_REF as m, runtimeAgentControllerConversationIdMappingSpecSchema as n, runtimeStreamingModeSchema as o, HOSTED_CENTER_AGENT_CONTROLLER_REF_ID as p, runtimeAgentControllerLaunchContractSchema as r, runtimeTransportModeSchema as s, LEGACY_RUNTIME_DISPATCH_POLICY as t, conversationPolicySchema as u, canonicalizeBuiltinAgentControllerRef as v, parseAgentControllerRef as x, normalizeBuiltinAgentControllerId as y };
|
|
230
238
|
|
|
231
|
-
//# sourceMappingURL=controller-contract-
|
|
239
|
+
//# sourceMappingURL=controller-contract-DAOCaefz.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controller-contract-DAOCaefz.js","names":[],"sources":["../../../packages/schemas/dist/schemas/daemon/agent-controller-conversation-capability.js","../../../packages/schemas/dist/schemas/daemon/agent-controller-ref.js","../../../packages/schemas/dist/schemas/daemon/conversation-contract.js","../../../packages/schemas/dist/schemas/daemon/controller-contract.js"],"sourcesContent":["import * as z$1 from \"zod/v4\";\n//#region src/schemas/daemon/agent-controller-conversation-capability.ts\nconst agentControllerConversationExternalImportCapabilitySchema = z$1.enum([\"unsupported\", \"by_ref_id\"]);\nconst agentControllerConversationResumeCapabilitySchema = z$1.enum([\"unsupported\", \"by_ref_id\"]);\nconst agentControllerConversationForkCapabilitySchema = z$1.enum([\"unsupported\", \"by_ref_id\"]);\nconst agentControllerConversationDiscoverCapabilitySchema = z$1.literal(\"unsupported\");\nconst agentControllerConversationTurnOverrideCapabilitySchema = z$1.enum([\n\t\"unsupported\",\n\t\"stateless\",\n\t\"persistent\"\n]);\nconst agentControllerConversationCapabilitySchema = z$1.strictObject({\n\tdiscover: agentControllerConversationDiscoverCapabilitySchema,\n\texternalImport: agentControllerConversationExternalImportCapabilitySchema,\n\tfork: agentControllerConversationForkCapabilitySchema,\n\tresume: agentControllerConversationResumeCapabilitySchema,\n\tturnOverride: agentControllerConversationTurnOverrideCapabilitySchema\n});\nconst BUILTIN_AGENT_CONTROLLER_CONVERSATION_CAPABILITY_BY_CONTROLLER_ID = {\n\tantigravity: {\n\t\tdiscover: \"unsupported\",\n\t\texternalImport: \"by_ref_id\",\n\t\tfork: \"unsupported\",\n\t\tresume: \"by_ref_id\",\n\t\tturnOverride: \"unsupported\"\n\t},\n\tcodex: {\n\t\tdiscover: \"unsupported\",\n\t\texternalImport: \"by_ref_id\",\n\t\tfork: \"by_ref_id\",\n\t\tresume: \"by_ref_id\",\n\t\tturnOverride: \"unsupported\"\n\t},\n\t\"claude-code\": {\n\t\tdiscover: \"unsupported\",\n\t\texternalImport: \"by_ref_id\",\n\t\tfork: \"by_ref_id\",\n\t\tresume: \"by_ref_id\",\n\t\tturnOverride: \"unsupported\"\n\t},\n\tcursor: {\n\t\tdiscover: \"unsupported\",\n\t\texternalImport: \"by_ref_id\",\n\t\tfork: \"unsupported\",\n\t\tresume: \"by_ref_id\",\n\t\tturnOverride: \"unsupported\"\n\t},\n\t\"grok-build\": {\n\t\tdiscover: \"unsupported\",\n\t\texternalImport: \"by_ref_id\",\n\t\tfork: \"unsupported\",\n\t\tresume: \"by_ref_id\",\n\t\tturnOverride: \"unsupported\"\n\t},\n\topencode: {\n\t\tdiscover: \"unsupported\",\n\t\texternalImport: \"unsupported\",\n\t\tfork: \"by_ref_id\",\n\t\tresume: \"by_ref_id\",\n\t\tturnOverride: \"unsupported\"\n\t},\n\topenclaw: {\n\t\tdiscover: \"unsupported\",\n\t\texternalImport: \"unsupported\",\n\t\tfork: \"unsupported\",\n\t\tresume: \"by_ref_id\",\n\t\tturnOverride: \"unsupported\"\n\t}\n};\nconst resolveBuiltinAgentControllerConversationCapability = (builtinControllerId) => {\n\tconst capability = BUILTIN_AGENT_CONTROLLER_CONVERSATION_CAPABILITY_BY_CONTROLLER_ID[builtinControllerId];\n\treturn capability ? { ...capability } : null;\n};\n//#endregion\nexport { BUILTIN_AGENT_CONTROLLER_CONVERSATION_CAPABILITY_BY_CONTROLLER_ID, agentControllerConversationCapabilitySchema, agentControllerConversationDiscoverCapabilitySchema, agentControllerConversationExternalImportCapabilitySchema, agentControllerConversationForkCapabilitySchema, agentControllerConversationResumeCapabilitySchema, agentControllerConversationTurnOverrideCapabilitySchema, resolveBuiltinAgentControllerConversationCapability };\n\n//# sourceMappingURL=agent-controller-conversation-capability.js.map","import { resolveBuiltinAgentControllerConversationCapability } from \"./agent-controller-conversation-capability.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/daemon/agent-controller-ref.ts\nconst BUILTIN_AGENT_CONTROLLER_REF_PREFIX = \"builtin:\";\nconst AGENT_CONTROLLER_REF_SEPARATOR = \":\";\nconst HOSTED_CENTER_AGENT_CONTROLLER_REF = \"hosted:center-agent\";\nconst HOSTED_CENTER_AGENT_CONTROLLER_REF_ID = \"center-agent\";\nconst HOSTED_REMOTE_AGENT_CONTROLLER_REF = \"hosted:remote-agent\";\nconst agentControllerRefSchema = z$1.string().transform((value, context) => {\n\tconst parsed = parseAgentControllerRef(value);\n\tif (!parsed) {\n\t\tcontext.addIssue({\n\t\t\tcode: \"custom\",\n\t\t\tmessage: \"Agent Controller ref is invalid\"\n\t\t});\n\t\treturn z$1.NEVER;\n\t}\n\treturn parsed.ref;\n});\nfunction normalizeOptionalText(value) {\n\tif (typeof value !== \"string\") return null;\n\tconst normalized = value.trim();\n\treturn normalized.length > 0 ? normalized : null;\n}\nfunction normalizeBuiltinControllerId(agentControllerRef) {\n\tconst normalized = normalizeOptionalText(agentControllerRef);\n\tif (!normalized) return null;\n\tif (normalized.includes(\":\") && !normalized.startsWith(BUILTIN_AGENT_CONTROLLER_REF_PREFIX)) return null;\n\tconst builtinId = normalized.startsWith(BUILTIN_AGENT_CONTROLLER_REF_PREFIX) ? normalized.slice(8) : normalized;\n\tif (builtinId.length === 0 || builtinId.includes(\":\")) return null;\n\treturn builtinId;\n}\nfunction normalizeKnownBuiltinAgentControllerId(agentControllerRef) {\n\tconst builtinId = normalizeBuiltinControllerId(agentControllerRef);\n\treturn builtinId && resolveBuiltinAgentControllerConversationCapability(builtinId) ? builtinId : null;\n}\nfunction normalizeBuiltinAgentControllerId(agentControllerRef) {\n\treturn normalizeBuiltinControllerId(agentControllerRef);\n}\nfunction isExplicitBuiltinAgentControllerRef(agentControllerRef) {\n\tconst normalized = normalizeOptionalText(agentControllerRef);\n\treturn normalized?.startsWith(BUILTIN_AGENT_CONTROLLER_REF_PREFIX) === true && normalizeKnownBuiltinAgentControllerId(normalized) !== null;\n}\nfunction parseAgentControllerRef(agentControllerRef) {\n\tconst normalized = normalizeOptionalText(agentControllerRef);\n\tif (!normalized) return null;\n\tif (normalized === \"hosted:center-agent\") return {\n\t\tkind: HOSTED_CENTER_AGENT_CONTROLLER_REF,\n\t\tid: HOSTED_CENTER_AGENT_CONTROLLER_REF_ID,\n\t\tref: HOSTED_CENTER_AGENT_CONTROLLER_REF\n\t};\n\tif (normalized === \"hosted:remote-agent\") return {\n\t\tkind: HOSTED_REMOTE_AGENT_CONTROLLER_REF,\n\t\tid: \"remote-agent\",\n\t\tref: normalized\n\t};\n\tfor (const kind of [\"builtin\", \"custom\"]) {\n\t\tconst prefix = `${kind}${AGENT_CONTROLLER_REF_SEPARATOR}`;\n\t\tif (!normalized.startsWith(prefix)) continue;\n\t\tconst id = normalized.slice(prefix.length).trim();\n\t\tif (id.length === 0 || id.includes(AGENT_CONTROLLER_REF_SEPARATOR)) return null;\n\t\treturn {\n\t\t\tkind,\n\t\t\tid,\n\t\t\tref: `${kind}${AGENT_CONTROLLER_REF_SEPARATOR}${id}`\n\t\t};\n\t}\n\treturn null;\n}\nfunction canonicalizeAgentControllerRef(agentControllerRef) {\n\treturn parseAgentControllerRef(agentControllerRef)?.ref ?? null;\n}\nfunction buildAgentControllerRoutingKey(agentControllerRef) {\n\treturn canonicalizeAgentControllerRef(agentControllerRef);\n}\nfunction canonicalizeBuiltinAgentControllerRef(agentControllerRef) {\n\tconst builtinId = normalizeBuiltinControllerId(agentControllerRef);\n\treturn builtinId ? `${BUILTIN_AGENT_CONTROLLER_REF_PREFIX}${builtinId}` : null;\n}\nfunction areBuiltinAgentControllerRefsEquivalent(left, right) {\n\tconst parsedLeft = parseAgentControllerRef(left);\n\tconst parsedRight = parseAgentControllerRef(right);\n\tif (!(parsedLeft?.kind === \"builtin\" && parsedRight?.kind === \"builtin\")) return false;\n\treturn parsedLeft.ref === parsedRight.ref;\n}\nfunction isHostedCenterAgentControllerRef(agentControllerRef) {\n\treturn parseAgentControllerRef(agentControllerRef)?.kind === HOSTED_CENTER_AGENT_CONTROLLER_REF;\n}\nfunction isHostedAgentControllerRef(value) {\n\tconst ref = parseAgentControllerRef(value)?.ref;\n\treturn ref === \"hosted:center-agent\" || ref === \"hosted:remote-agent\";\n}\n//#endregion\nexport { HOSTED_CENTER_AGENT_CONTROLLER_REF, HOSTED_CENTER_AGENT_CONTROLLER_REF_ID, HOSTED_REMOTE_AGENT_CONTROLLER_REF, agentControllerRefSchema, areBuiltinAgentControllerRefsEquivalent, buildAgentControllerRoutingKey, canonicalizeAgentControllerRef, canonicalizeBuiltinAgentControllerRef, isExplicitBuiltinAgentControllerRef, isHostedAgentControllerRef, isHostedCenterAgentControllerRef, normalizeBuiltinAgentControllerId, normalizeKnownBuiltinAgentControllerId, parseAgentControllerRef };\n\n//# sourceMappingURL=agent-controller-ref.js.map","import { canonicalizeBuiltinAgentControllerRef } from \"./agent-controller-ref.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/daemon/conversation-contract.ts\nconst agentControllerConversationKindSchema = z$1.enum([\n\t\"session\",\n\t\"thread\",\n\t\"context\"\n]);\nconst trimmedNonEmptyStringSchema = z$1.string().trim().min(1);\nconst agentControllerConversationRefSchema = z$1.strictObject({\n\tagentControllerRef: trimmedNonEmptyStringSchema,\n\tagentControllerConversationKind: agentControllerConversationKindSchema,\n\tagentControllerConversationId: trimmedNonEmptyStringSchema\n});\nconst conversationPolicySchema = z$1.strictObject({\n\tcollaborationMode: z$1.enum([\"default\", \"plan\"]).optional(),\n\tfallbackModel: z$1.string().min(1).optional(),\n\tmodel: z$1.string().min(1).optional(),\n\treasoningLevel: z$1.string().min(1).optional()\n});\nconst BUILTIN_AGENT_CONTROLLER_CONVERSATION_KIND_BY_CONTROLLER_ID = {\n\tantigravity: \"session\",\n\tcodex: \"thread\",\n\t\"claude-code\": \"session\",\n\tcursor: \"session\",\n\t\"grok-build\": \"session\",\n\topenclaw: \"session\",\n\topencode: \"session\"\n};\nconst BUILTIN_AGENT_CONTROLLER_ALLOWS_DISTINCT_CONVERSATION_ID = { openclaw: true };\nconst resolveBuiltinAgentControllerConversationKind = (agentControllerRef) => {\n\tconst canonical = canonicalizeBuiltinAgentControllerRef(agentControllerRef);\n\tif (!canonical) return null;\n\tconst builtinControllerId = canonical.slice(8);\n\treturn BUILTIN_AGENT_CONTROLLER_CONVERSATION_KIND_BY_CONTROLLER_ID[builtinControllerId] ?? null;\n};\nconst builtinAgentControllerAllowsDistinctConversationId = (builtinControllerId) => BUILTIN_AGENT_CONTROLLER_ALLOWS_DISTINCT_CONVERSATION_ID[builtinControllerId] === true;\nconst buildAgentControllerConversationRef = (input) => ({\n\tagentControllerRef: input.agentControllerRef,\n\tagentControllerConversationKind: input.agentControllerConversationKind,\n\tagentControllerConversationId: input.agentControllerConversationId\n});\n//#endregion\nexport { BUILTIN_AGENT_CONTROLLER_ALLOWS_DISTINCT_CONVERSATION_ID, BUILTIN_AGENT_CONTROLLER_CONVERSATION_KIND_BY_CONTROLLER_ID, agentControllerConversationKindSchema, agentControllerConversationRefSchema, buildAgentControllerConversationRef, builtinAgentControllerAllowsDistinctConversationId, conversationPolicySchema, resolveBuiltinAgentControllerConversationKind };\n\n//# sourceMappingURL=conversation-contract.js.map","import { agentControllerConversationRefSchema } from \"./conversation-contract.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/daemon/controller-contract.ts\nconst LEGACY_RUNTIME_DISPATCH_POLICY = \"mention_only\";\nconst runtimeDispatchPolicySchema = z$1.enum([LEGACY_RUNTIME_DISPATCH_POLICY, \"listen_all\"]);\nconst runtimeTransportModeSchema = z$1.enum([\n\t\"local-cli\",\n\t\"codex-app-server\",\n\t\"acp\"\n]);\nconst runtimeStreamingModeSchema = z$1.enum([\"final\", \"stream\"]);\nconst runtimeAgentControllerConversationIdMappingSpecSchema = z$1.strictObject({\n\tsourceField: z$1.string().min(1),\n\tmappingVersion: z$1.number().int().min(1)\n});\nconst runtimeAgentExecutableLaunchContractSchema = z$1.strictObject({\n\tkind: z$1.literal(\"executable\"),\n\tcommandPath: z$1.string().min(1),\n\targsPrefix: z$1.array(z$1.string().min(1)).optional()\n});\nconst runtimeAgentNodeScriptLaunchContractSchema = z$1.strictObject({\n\tkind: z$1.literal(\"node_script\"),\n\tnodePath: z$1.string().min(1),\n\tscriptPath: z$1.string().min(1),\n\targsPrefix: z$1.array(z$1.string().min(1)).optional()\n});\nconst runtimeAgentControllerLaunchContractSchema = z$1.discriminatedUnion(\"kind\", [runtimeAgentExecutableLaunchContractSchema, runtimeAgentNodeScriptLaunchContractSchema]);\nconst runtimeAgentControllerLaunchCandidateSchema = z$1.strictObject({\n\tinstallId: z$1.string().min(1),\n\tlabel: z$1.string().min(1),\n\tdetail: z$1.string().min(1),\n\tcommandPath: z$1.string().min(1),\n\tlaunchContract: runtimeAgentControllerLaunchContractSchema\n});\nconst runtimeAgentControllerSettingsSchema = z$1.strictObject({\n\tdispatch_policy: runtimeDispatchPolicySchema.default(LEGACY_RUNTIME_DISPATCH_POLICY),\n\ttransport_mode: runtimeTransportModeSchema,\n\tstreaming_mode: runtimeStreamingModeSchema.default(\"final\"),\n\ttimeout_ms: z$1.number().int().positive().nullable().default(null),\n\tretry: z$1.number().int().min(0).default(0),\n\tcontext_id_mapping_spec: runtimeAgentControllerConversationIdMappingSpecSchema\n});\nconst agentContextResolutionSchema = z$1.strictObject({\n\tagentControllerConversationId: z$1.string().min(1).nullable(),\n\tagentControllerConversation: agentControllerConversationRefSchema.nullable().optional(),\n\tsourceField: z$1.string().min(1),\n\tmappingVersion: z$1.number().int().min(1)\n});\n//#endregion\nexport { LEGACY_RUNTIME_DISPATCH_POLICY, agentContextResolutionSchema, runtimeAgentControllerConversationIdMappingSpecSchema, runtimeAgentControllerLaunchCandidateSchema, runtimeAgentControllerLaunchContractSchema, runtimeAgentControllerSettingsSchema, runtimeAgentExecutableLaunchContractSchema, runtimeAgentNodeScriptLaunchContractSchema, runtimeDispatchPolicySchema, runtimeStreamingModeSchema, runtimeTransportModeSchema };\n\n//# sourceMappingURL=controller-contract.js.map"],"mappings":";;;;AAEA,MAAM,4DAA4D,IAAI,KAAK,CAAC,eAAe,WAAW,CAAC;AACvG,MAAM,oDAAoD,IAAI,KAAK,CAAC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C,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,IAAI;CACjE,OAAO,IAAI,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC;CAC1C,yBAAyB;AAC1B,CAAC;AACoC,IAAI,aAAa;CACrD,+BAA+B,IAAI,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;CAC5D,6BAA6B,qCAAqC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAa,IAAI,OAAO,CAAC,CAAC,IAAI,CAAC;CAC/B,gBAAgB,IAAI,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;AACzC,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { t as isLoopbackHostname } from "./loopback-hostname-DHQPKq8N.js";
|
|
4
|
-
import { A as OPENMELD_HOME_ENV_KEY, gt as systemDir, q as normalizeAccountKey } from "./lock-
|
|
5
|
-
import { n as runtimeAgentControllerConversationIdMappingSpecSchema, o as runtimeStreamingModeSchema, r as runtimeAgentControllerLaunchContractSchema, s as runtimeTransportModeSchema, u as conversationPolicySchema } from "./controller-contract-
|
|
6
|
-
import {
|
|
7
|
-
import { $ as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_RETRY_INTERVAL_MS$1, B as DEFAULT_HEARTBEAT_INTERVAL_MS$1, F as DAEMON_RUNTIME_CONTRACT_EPOCH$1, G as MIN_HEARTBEAT_INTERVAL_MS$1, H as HEARTBEAT_RESPONSE_TIMEOUT_MS$1, I as DAEMON_STREAM_CONNECT_TIMEOUT_MS$1, J as PROVIDER_CONVERSATION_PROOF_SYNC_INTERVAL_MS$1, L as DAEMON_STREAM_KEEPALIVE_INTERVAL_MS$1, N as CATALOG_SYNC_RETRY_INTERVAL_MS$1, P as CATALOG_SYNC_SIGNAL_POLL_INTERVAL_MS$1, Q as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_INTERVAL_MS$1, R as DAEMON_STREAM_KEEPALIVE_PONG_TIMEOUT_MS$1, U as MAX_HEARTBEAT_INTERVAL_MS$1, X as REGISTER_RESPONSE_TIMEOUT_MS$1, Y as PROVIDER_CONVERSATION_PROOF_SYNC_RETRY_INTERVAL_MS$1, d as getAuthSessionState, et as RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS$1 } from "./auth-session-
|
|
8
|
-
import { E as agentProfileIdSchema, b as skippedDaemonProfileSchema } from "./control-plane-
|
|
4
|
+
import { A as OPENMELD_HOME_ENV_KEY, gt as systemDir, q as normalizeAccountKey } from "./lock-Bsl_ElWy.js";
|
|
5
|
+
import { n as runtimeAgentControllerConversationIdMappingSpecSchema, o as runtimeStreamingModeSchema, r as runtimeAgentControllerLaunchContractSchema, s as runtimeTransportModeSchema, u as conversationPolicySchema } from "./controller-contract-DAOCaefz.js";
|
|
6
|
+
import { $r as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE, Qr as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE, ii as profileErrorResponseSchema, ri as profileCapabilitiesResponseSchema, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, ti as authProfileManagedRoleSchema } from "./runtime-transport-BLtOFrtv.js";
|
|
7
|
+
import { $ as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_RETRY_INTERVAL_MS$1, B as DEFAULT_HEARTBEAT_INTERVAL_MS$1, F as DAEMON_RUNTIME_CONTRACT_EPOCH$1, G as MIN_HEARTBEAT_INTERVAL_MS$1, H as HEARTBEAT_RESPONSE_TIMEOUT_MS$1, I as DAEMON_STREAM_CONNECT_TIMEOUT_MS$1, J as PROVIDER_CONVERSATION_PROOF_SYNC_INTERVAL_MS$1, L as DAEMON_STREAM_KEEPALIVE_INTERVAL_MS$1, N as CATALOG_SYNC_RETRY_INTERVAL_MS$1, P as CATALOG_SYNC_SIGNAL_POLL_INTERVAL_MS$1, Q as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_INTERVAL_MS$1, R as DAEMON_STREAM_KEEPALIVE_PONG_TIMEOUT_MS$1, U as MAX_HEARTBEAT_INTERVAL_MS$1, X as REGISTER_RESPONSE_TIMEOUT_MS$1, Y as PROVIDER_CONVERSATION_PROOF_SYNC_RETRY_INTERVAL_MS$1, d as getAuthSessionState, et as RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS$1 } from "./auth-session-DOjVKRI_.js";
|
|
8
|
+
import { E as agentProfileIdSchema, b as skippedDaemonProfileSchema } from "./control-plane-BDS63N7Y.js";
|
|
9
9
|
import { r as daemonServiceLaneSchema } from "./service-contract-CRyDcIIf.js";
|
|
10
10
|
import { n as agentControllerPermissionModeSchema, r as agentControllerCollaborationModeSchema, t as openCodePermissionConfigSchema } from "./open-code-permission-Doem1R2N.js";
|
|
11
|
-
import { h as daemonRuntimeRootPath, m as daemonRuntimeDataPath } from "./daemon-state-
|
|
11
|
+
import { h as daemonRuntimeRootPath, m as daemonRuntimeDataPath } from "./daemon-state-B44aq2nm.js";
|
|
12
12
|
import { r as formatOpenMeldCliCommands, t as formatInlineOpenMeldCliCommands } from "./cli-entry-command-CR_9QU1i.js";
|
|
13
|
-
import { n as toErrorMessage$1 } from "./dist-
|
|
13
|
+
import { n as toErrorMessage$1 } from "./dist-BLuEEVHh.js";
|
|
14
14
|
import { createHash, randomUUID } from "node:crypto";
|
|
15
15
|
import { join } from "node:path";
|
|
16
16
|
import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
|
|
@@ -90,7 +90,7 @@ function resolveOpenMeldAccountContext(input) {
|
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
async function resolveCurrentOpenMeldAccountContext() {
|
|
93
|
-
const { getAuthSessionMetadata } = await import("./auth-session-
|
|
93
|
+
const { getAuthSessionMetadata } = await import("./auth-session-D7oAIuHk.js");
|
|
94
94
|
return resolveOpenMeldAccountContext({ session: await getAuthSessionMetadata().catch(() => null) });
|
|
95
95
|
}
|
|
96
96
|
function resolveHostKey(baseUrl) {
|
|
@@ -985,4 +985,4 @@ async function migrateLegacyDaemonDeviceId(input) {
|
|
|
985
985
|
//#endregion
|
|
986
986
|
export { buildCommandAuthenticationPromptMessage as $, DEFAULT_RECONNECT_DELAY_MS as A, createOpenMeldHumanProfile as B, CONTROLLED_SHUTDOWN_SOCKET_CLOSE_TIMEOUT_MS as C, DAEMON_STREAM_CONNECT_TIMEOUT_MS as D, DAEMON_RUNTIME_CONTRACT_REPAIR_REPORT_FILE as E, REGISTER_RESPONSE_TIMEOUT_MS as F, resolveOpenMeldProfile as G, getOpenMeldProfileCapabilities as H, RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_INTERVAL_MS as I, assertAdditionalHumanProfileCreationEnabled as J, resolveOpenMeldProfileByIdOrName as K, RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_RETRY_INTERVAL_MS as L, MAX_RECONNECT_DELAY_MS as M, PROVIDER_CONVERSATION_PROOF_SYNC_INTERVAL_MS as N, DAEMON_STREAM_KEEPALIVE_INTERVAL_MS as O, PROVIDER_CONVERSATION_PROOF_SYNC_RETRY_INTERVAL_MS as P, buildAuthenticationStatusLabel as Q, RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS as R, CONTROLLED_SHUTDOWN_RESULT_ACK_TIMEOUT_MS as S, DAEMON_RUNTIME_CONTRACT_META_FILE as T, listOpenMeldProfiles as U, deleteOpenMeldProfile as V, primeOpenMeldProfilesSessionCache as W, touchDaemonCatalogSyncSignal as X, readDaemonCatalogSyncSignal as Y, buildAgentAuthenticationGuide as Z, toErrorMessage as _, asRecord as a, resolveAuthenticationGuidanceFromMessage as at, CATALOG_SYNC_SIGNAL_POLL_INTERVAL_MS as b, normalizeHeartbeatIntervalMs as c, DAEMON_ROUTE_CATALOG_CACHE_SCHEMA_NAME as ct, normalizeText as d, buildHumanAuthenticationCard as et, nowIsoString as f, parseTransportMode as g, parseStreamingMode as h, resolvePreferredDaemonDeviceId as i, resolveAuthenticationGuidanceFromError as it, HEARTBEAT_RESPONSE_TIMEOUT_MS as j, DAEMON_STREAM_KEEPALIVE_PONG_TIMEOUT_MS as k, normalizeNonNegativeInteger as l, cachedDaemonRouteConfigSchema as lt, parseRuntimeTransportMode as m, ensureDaemonRuntimePaths as n, extractAuthenticationPromptAction as nt, dirnamePath as o, resolveAuthenticationReasonFromState as ot, parseContextIdMappingSpec as p, updateOpenMeldProfile as q, resolveDaemonDeviceId as r, resolveAuthenticationGuidance as rt, emitRunLine as s, resolveCurrentOpenMeldAccountContext as st, buildLedgerPaths as t, createAuthenticationError as tt, normalizeOptionalText as u, daemonRouteCatalogCacheSchema as ut, warnDaemonEvent as v, DAEMON_RUNTIME_CONTRACT_EPOCH as w, CONTROLLED_SHUTDOWN_REQUEST_TIMEOUT_MS as x, CATALOG_SYNC_RETRY_INTERVAL_MS as y, createOpenMeldAgentProfile as z };
|
|
987
987
|
|
|
988
|
-
//# sourceMappingURL=daemon-device-id-
|
|
988
|
+
//# sourceMappingURL=daemon-device-id-bfkbZj9G.js.map
|