openmeld 0.3.232 → 0.3.234
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-ChntsjGm.js → add-me-membership-CmHUjDvu.js} +2 -2
- package/dist/{add-me-membership-ChntsjGm.js.map → add-me-membership-CmHUjDvu.js.map} +1 -1
- package/dist/{agents-DruPcNSg.js → agents-CNW1dony.js} +9 -9
- package/dist/{agents-DruPcNSg.js.map → agents-CNW1dony.js.map} +1 -1
- package/dist/{api-client-foundation-CDj_9Rks.js → api-client-foundation-BHjffwwr.js} +1 -1
- package/dist/{api-client-foundation-EZpFLGVC.js → api-client-foundation-D6zHrrGV.js} +3 -3
- package/dist/{api-client-foundation-EZpFLGVC.js.map → api-client-foundation-D6zHrrGV.js.map} +1 -1
- package/dist/auth-session-CCLabxRT.js +4 -0
- package/dist/{auth-session-DhSHCYvl.js → auth-session-CjxqNKvh.js} +4 -4
- package/dist/{auth-session-DhSHCYvl.js.map → auth-session-CjxqNKvh.js.map} +1 -1
- package/dist/{channel-tvFZSSVr.js → channel-BW2_rI6u.js} +4 -4
- package/dist/{channel-tvFZSSVr.js.map → channel-BW2_rI6u.js.map} +1 -1
- package/dist/{cli-binary-manifest-Bjf6T7Ef.js → cli-binary-manifest-ETxqCzfS.js} +8 -1
- package/dist/cli-binary-manifest-ETxqCzfS.js.map +1 -0
- package/dist/{command-0yoZa1GT.js → command-9Iorb5GA.js} +16 -16
- package/dist/{command-0yoZa1GT.js.map → command-9Iorb5GA.js.map} +1 -1
- package/dist/{computer-connection-CoBDorh6.js → computer-connection-LX1R7jD0.js} +2 -2
- package/dist/{computer-connection-CoBDorh6.js.map → computer-connection-LX1R7jD0.js.map} +1 -1
- package/dist/{computer-connection-review-Dy7p1LXZ.js → computer-connection-review-CeOHkloT.js} +5 -5
- package/dist/{computer-connection-review-Dy7p1LXZ.js.map → computer-connection-review-CeOHkloT.js.map} +1 -1
- package/dist/{computer-disconnect-4Ks_DVXV.js → computer-disconnect-CXDO8zgT.js} +7 -7
- package/dist/{computer-disconnect-4Ks_DVXV.js.map → computer-disconnect-CXDO8zgT.js.map} +1 -1
- package/dist/{computer-setup-continuation-ZcQb7MvI.js → computer-setup-continuation-XgvjM0jF.js} +3 -3
- package/dist/{computer-setup-continuation-ZcQb7MvI.js.map → computer-setup-continuation-XgvjM0jF.js.map} +1 -1
- package/dist/{context-BPIoofMa.js → context-D3GnSqg8.js} +3 -3
- package/dist/{context-BPIoofMa.js.map → context-D3GnSqg8.js.map} +1 -1
- package/dist/{control-plane-rTE2rHZ5.js → control-plane-QqGL-jtT.js} +2 -2
- package/dist/{control-plane-rTE2rHZ5.js.map → control-plane-QqGL-jtT.js.map} +1 -1
- package/dist/{daemon-device-id-DDazRZUV.js → daemon-device-id-OMqh2F9_.js} +5 -5
- package/dist/{daemon-device-id-DDazRZUV.js.map → daemon-device-id-OMqh2F9_.js.map} +1 -1
- package/dist/{daemon-lifecycle-journal-CRxQL9m6.js → daemon-lifecycle-journal-Dq8W9V9C.js} +6 -6
- package/dist/{daemon-lifecycle-journal-CRxQL9m6.js.map → daemon-lifecycle-journal-Dq8W9V9C.js.map} +1 -1
- package/dist/{daemon-service-runtime-BTzL0w6s.js → daemon-service-runtime-B-x4bBKx.js} +4 -4
- package/dist/{daemon-service-runtime-BTzL0w6s.js.map → daemon-service-runtime-B-x4bBKx.js.map} +1 -1
- package/dist/{daemon-service-update-coordinator-BDs0p4bA.js → daemon-service-update-coordinator-Brv_30Kn.js} +20 -18
- package/dist/{daemon-service-update-coordinator-BDs0p4bA.js.map → daemon-service-update-coordinator-Brv_30Kn.js.map} +1 -1
- package/dist/{dispatch-owned-runtime-CK2YJ2Oo.js → dispatch-owned-runtime-Czq270vy.js} +52 -619
- package/dist/dispatch-owned-runtime-Czq270vy.js.map +1 -0
- package/dist/{dist-Bw6OBFYo.js → dist-CJL7LE-y.js} +203 -362
- package/dist/dist-CJL7LE-y.js.map +1 -0
- package/dist/{dist--TaSMxQz.js → dist-Ccpvj1tf.js} +3 -3
- package/dist/{dist--TaSMxQz.js.map → dist-Ccpvj1tf.js.map} +1 -1
- package/dist/{dist-B12upl5l.js → dist-MpN-h8da.js} +1 -1
- package/dist/{elapsed-time-C3nfbdd9.js → elapsed-time-BSphCejK.js} +6 -6
- package/dist/{elapsed-time-C3nfbdd9.js.map → elapsed-time-BSphCejK.js.map} +1 -1
- package/dist/{entry-De__5RVq.js → entry-CDablKgv.js} +7 -7
- package/dist/{entry-De__5RVq.js.map → entry-CDablKgv.js.map} +1 -1
- package/dist/{installation-inventory-Bq8iZfSa.js → installation-inventory-CRnah3Xf.js} +3 -3
- package/dist/{installation-inventory-Bq8iZfSa.js.map → installation-inventory-CRnah3Xf.js.map} +1 -1
- package/dist/{installer-C7iSAOSz.js → installer-BYBrLBth.js} +2 -2
- package/dist/{installer-C7iSAOSz.js.map → installer-BYBrLBth.js.map} +1 -1
- package/dist/{local-components-DleLEzSU.js → local-components-DJiMS67S.js} +36 -3
- package/dist/local-components-DJiMS67S.js.map +1 -0
- package/dist/{meta-api-BpwJWE22.js → meta-api-ClHCkzZB.js} +4 -4
- package/dist/{meta-api-BpwJWE22.js.map → meta-api-ClHCkzZB.js.map} +1 -1
- package/dist/{openmeld-C0OSZJtn.js → openmeld-Yz7J0OaB.js} +32 -32
- package/dist/{openmeld-C0OSZJtn.js.map → openmeld-Yz7J0OaB.js.map} +1 -1
- package/dist/openmeld-dev-environment-DwdvL7jg.js +24 -0
- package/dist/openmeld-dev-environment-DwdvL7jg.js.map +1 -0
- package/dist/openmeld-dev.js +1 -19
- package/dist/openmeld-dev.js.map +1 -1
- package/dist/{openmeld-maintenance-worker-DY90mkWW.js → openmeld-maintenance-worker-CVjbc-dv.js} +9 -9
- package/dist/{openmeld-maintenance-worker-DY90mkWW.js.map → openmeld-maintenance-worker-CVjbc-dv.js.map} +1 -1
- package/dist/{openmeld-tools-update-join-DgzNuaDy.js → openmeld-tools-update-join-Em7DfQt6.js} +4 -4
- package/dist/{openmeld-tools-update-join-DgzNuaDy.js.map → openmeld-tools-update-join-Em7DfQt6.js.map} +1 -1
- package/dist/{openmeld-tools-update-process-frame-DbEZ3fEh.js → openmeld-tools-update-process-frame-Csy2XKUf.js} +1 -1
- package/dist/{openmeld-tools-update-process-frame-BtFKp70p.js → openmeld-tools-update-process-frame-YLOS82E3.js} +2 -2
- package/dist/{openmeld-tools-update-process-frame-BtFKp70p.js.map → openmeld-tools-update-process-frame-YLOS82E3.js.map} +1 -1
- package/dist/openmeld.js +5 -5
- package/dist/{prepare-provider-runtime-BGdfbFyZ.js → prepare-provider-runtime-Bf2GBijn.js} +537 -213
- package/dist/prepare-provider-runtime-Bf2GBijn.js.map +1 -0
- package/dist/{prepare-session-executor-CA1gq8dR.js → prepare-session-executor-D8Vbyoq4.js} +19 -19
- package/dist/{prepare-session-executor-CA1gq8dR.js.map → prepare-session-executor-D8Vbyoq4.js.map} +1 -1
- package/dist/{process-channel-C1wRGUmk.js → process-channel-CTPL81j6.js} +2 -2
- package/dist/{process-channel-C1wRGUmk.js.map → process-channel-CTPL81j6.js.map} +1 -1
- package/dist/{runtime-DFlEdls4.js → runtime-aUrBNKSl.js} +7860 -7249
- package/dist/runtime-aUrBNKSl.js.map +1 -0
- package/dist/{runtime-agent-controller-reporting-submission-C_xD2A-P.js → runtime-agent-controller-reporting-submission-BJY9cLyh.js} +146 -70
- package/dist/runtime-agent-controller-reporting-submission-BJY9cLyh.js.map +1 -0
- package/dist/{runtime-transport-DH8Ks-AU.js → runtime-transport-DyBmX7ds.js} +569 -30
- package/dist/runtime-transport-DyBmX7ds.js.map +1 -0
- package/dist/{service-KHA_Yv8q.js → service-CMNaJrvV.js} +105 -39
- package/dist/service-CMNaJrvV.js.map +1 -0
- package/dist/{service-account-authorization-BHWs8cRP.js → service-account-authorization-CdyvPbvg.js} +2 -2
- package/dist/{service-account-authorization-BHWs8cRP.js.map → service-account-authorization-CdyvPbvg.js.map} +1 -1
- package/dist/{service-account-control-BcHjpVid.js → service-account-control-jnKTjLAR.js} +9 -9
- package/dist/{service-account-control-BcHjpVid.js.map → service-account-control-jnKTjLAR.js.map} +1 -1
- package/dist/{service-control-capabilities-B4433dGT.js → service-control-capabilities-CRsFO-Jf.js} +3 -3
- package/dist/{service-control-capabilities-B4433dGT.js.map → service-control-capabilities-CRsFO-Jf.js.map} +1 -1
- package/dist/{service-control-capabilities-DTKD2-o0.js → service-control-capabilities-DpJNUd1S.js} +1 -1
- package/dist/{state-iJqU2XWw.js → state-CON1kJsS.js} +2 -2
- package/dist/{state-iJqU2XWw.js.map → state-CON1kJsS.js.map} +1 -1
- package/dist/{runtime-reporting-health-state-_bvJcV1y.js → updates-api-BpWiCpAo.js} +378 -209
- package/dist/updates-api-BpWiCpAo.js.map +1 -0
- package/dist/{upgrade-DlBDEvs4.js → upgrade-Bdh732dG.js} +8 -8
- package/dist/{upgrade-DlBDEvs4.js.map → upgrade-Bdh732dG.js.map} +1 -1
- package/dist/upgrade-frLu7pCB.js +4 -0
- package/package.json +13 -13
- package/dist/auth-session-BOG3gV2K2.js +0 -4
- package/dist/cli-binary-manifest-Bjf6T7Ef.js.map +0 -1
- package/dist/dispatch-owned-runtime-CK2YJ2Oo.js.map +0 -1
- package/dist/dist-Bw6OBFYo.js.map +0 -1
- package/dist/local-components-DleLEzSU.js.map +0 -1
- package/dist/prepare-provider-runtime-BGdfbFyZ.js.map +0 -1
- package/dist/runtime-DFlEdls4.js.map +0 -1
- package/dist/runtime-agent-controller-reporting-submission-C_xD2A-P.js.map +0 -1
- package/dist/runtime-reporting-health-state-_bvJcV1y.js.map +0 -1
- package/dist/runtime-transport-DH8Ks-AU.js.map +0 -1
- package/dist/service-KHA_Yv8q.js.map +0 -1
- package/dist/upgrade-CuzsgsKh.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { at as prepareSessionSnapshotSchema, mt as computerConnectionProgressPhaseSchema, pt as computerConnectionProgressObservationSchema, rt as createPrepareSessionRequestSchema } from "./auth-session-CjxqNKvh.js";
|
|
4
4
|
import * as z$1 from "zod/v4";
|
|
5
5
|
//#region ../../packages/schemas/dist/computer-connection.js
|
|
6
6
|
const computerConnectionIntentSchema = z$1.strictObject({
|
|
@@ -117,4 +117,4 @@ z$1.union([desktopComputerConnectionOperationSchema, desktopComputerDisconnectOp
|
|
|
117
117
|
//#endregion
|
|
118
118
|
export { computerConnectionReviewSchema as n, computerConnectionIntentSchema as t };
|
|
119
119
|
|
|
120
|
-
//# sourceMappingURL=computer-connection-
|
|
120
|
+
//# sourceMappingURL=computer-connection-LX1R7jD0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computer-connection-
|
|
1
|
+
{"version":3,"file":"computer-connection-LX1R7jD0.js","names":[],"sources":["../../../packages/schemas/dist/computer-connection.js"],"sourcesContent":["import { computerConnectionProgressObservationSchema, computerConnectionProgressPhaseSchema } from \"./computer-connection-progress.js\";\nimport { createPrepareSessionRequestSchema, prepareSessionSnapshotSchema } from \"./schemas/prepare/session.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/computer-connection.ts\nconst computerConnectionIntentSchema = z$1.strictObject({\n\texpectedAccount: z$1.string().trim().min(1).max(256),\n\tpreviousSessionIdentity: z$1.string().min(1).max(128)\n});\nconst computerSetupVerboseOutputSchema = z$1.object({\n\ttype: z$1.string(),\n\tcode: z$1.string().min(1).max(256),\n\ttext: z$1.string().optional(),\n\tmessage: z$1.string().optional(),\n\tdata: z$1.object({\n\t\tstate: z$1.string().optional(),\n\t\tphase: computerConnectionProgressPhaseSchema.optional()\n\t}).optional()\n});\nconst computerSetupOutputSchema = z$1.union([computerSetupVerboseOutputSchema, z$1.object({\n\tt: z$1.string(),\n\tc: z$1.string().min(1).max(256),\n\tx: z$1.string().optional(),\n\tm: z$1.string().optional(),\n\td: computerSetupVerboseOutputSchema.shape.data\n}).transform((event) => ({\n\ttype: event.t,\n\tcode: event.c,\n\ttext: event.x,\n\tmessage: event.m,\n\tdata: event.d\n}))]);\nconst desktopComputerConnectionProgressSchema = computerConnectionProgressObservationSchema.extend({ expectedAccount: computerConnectionIntentSchema.shape.expectedAccount });\nconst computerConnectionReviewSchema = z$1.strictObject({\n\tprotocol: z$1.literal(\"computer-connection-v1\"),\n\tpreviousSessionIdentity: z$1.string().min(1).max(128),\n\taccount: z$1.strictObject({\n\t\tid: z$1.string().min(1).max(256),\n\t\temail: z$1.string().max(512).nullable()\n\t}).nullable(),\n\texistingConnection: z$1.strictObject({\n\t\tdeviceId: z$1.string().min(1),\n\t\truntimeLane: z$1.enum([\n\t\t\t\"prod\",\n\t\t\t\"dev-local\",\n\t\t\t\"canary\"\n\t\t])\n\t}).nullable()\n});\nconst desktopComputerDisconnectRequestSchema = z$1.strictObject({\n\texpectedAccount: computerConnectionIntentSchema.shape.expectedAccount,\n\texpectedConnection: computerConnectionReviewSchema.shape.existingConnection.unwrap().optional()\n});\nconst desktopComputerConnectionRequestSchema = createPrepareSessionRequestSchema.pick({\n\thumanProfileId: true,\n\ttargetSpaceId: true,\n\tsourceNavigationAction: true,\n\tconnectedComputerId: true\n}).extend({\n\texpectedAccount: computerConnectionIntentSchema.shape.expectedAccount,\n\tresetThisComputer: z$1.boolean().optional()\n});\nconst desktopComputerConnectionResultSchema = z$1.discriminatedUnion(\"status\", [\n\tz$1.strictObject({\n\t\tstatus: z$1.literal(\"failed\"),\n\t\tmessage: z$1.string().min(1),\n\t\tdiagnosticId: z$1.string().min(1),\n\t\tdiagnosticsPath: z$1.string().min(1).optional()\n\t}),\n\tz$1.strictObject({\n\t\tstatus: z$1.literal(\"reused\"),\n\t\tconnection: computerConnectionReviewSchema.shape.existingConnection.unwrap()\n\t}),\n\tz$1.strictObject({\n\t\tstatus: z$1.literal(\"completed\"),\n\t\tsnapshot: prepareSessionSnapshotSchema\n\t}),\n\tz$1.strictObject({ status: z$1.literal(\"cancelled\") })\n]);\nconst desktopComputerConnectionOperationSchema = z$1.strictObject({\n\toperationId: z$1.string().min(1).max(128),\n\trequest: desktopComputerConnectionRequestSchema,\n\tstatus: z$1.enum([\"pending\", \"settled\"]),\n\tprogress: desktopComputerConnectionProgressSchema.nullable(),\n\tresult: desktopComputerConnectionResultSchema.nullable(),\n\terrorMessage: z$1.string().min(1).max(4096).nullable()\n});\nconst desktopComputerDisconnectPhaseSchema = z$1.enum([\n\t\"checking\",\n\t\"waiting_for_confirmation\",\n\t\"disconnecting\"\n]);\nconst desktopComputerDisconnectResultSchema = z$1.union([\n\tz$1.strictObject({ status: z$1.literal(\"disconnected\") }),\n\tz$1.strictObject({ status: z$1.literal(\"cancelled\") }),\n\tz$1.strictObject({\n\t\tstatus: z$1.enum([\n\t\t\t\"connection_changed\",\n\t\t\t\"failed\",\n\t\t\t\"unconfirmed\"\n\t\t]),\n\t\tcode: z$1.string().min(1).max(256),\n\t\tmessage: z$1.string().min(1).max(4096),\n\t\tdiagnosticId: z$1.string().min(1).max(128).optional(),\n\t\tdiagnosticsPath: z$1.string().min(1).max(4096).optional()\n\t})\n]);\nconst desktopComputerDisconnectOperationSchema = z$1.strictObject({\n\tkind: z$1.literal(\"disconnect\"),\n\toperationId: desktopComputerConnectionOperationSchema.shape.operationId,\n\trequest: desktopComputerDisconnectRequestSchema,\n\tstatus: z$1.enum([\"pending\", \"settled\"]),\n\tphase: desktopComputerDisconnectPhaseSchema,\n\tresult: desktopComputerDisconnectResultSchema.nullable()\n});\nconst desktopComputerOperationSchema = z$1.union([desktopComputerConnectionOperationSchema, desktopComputerDisconnectOperationSchema]);\n//#endregion\nexport { computerConnectionIntentSchema, computerConnectionReviewSchema, computerSetupOutputSchema, desktopComputerConnectionOperationSchema, desktopComputerConnectionProgressSchema, desktopComputerConnectionRequestSchema, desktopComputerConnectionResultSchema, desktopComputerDisconnectOperationSchema, desktopComputerDisconnectPhaseSchema, desktopComputerDisconnectRequestSchema, desktopComputerDisconnectResultSchema, desktopComputer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.js → computer-connection-review-CeOHkloT.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { d as getAuthSessionState, o as buildStoredAuthSessionIdentity, u as getAuthSessionMetadata } from "./auth-session-
|
|
4
|
-
import { n as computerConnectionReviewSchema } from "./computer-connection-
|
|
3
|
+
import { d as getAuthSessionState, o as buildStoredAuthSessionIdentity, u as getAuthSessionMetadata } from "./auth-session-CjxqNKvh.js";
|
|
4
|
+
import { n as computerConnectionReviewSchema } from "./computer-connection-LX1R7jD0.js";
|
|
5
5
|
import { i as readDaemonServiceContract } from "./daemon-service-contract-COPKbCy_.js";
|
|
6
|
-
import { n as resolveServiceAccountIdentity } from "./service-account-authorization-
|
|
7
|
-
import { t as readServiceControlCapabilities } from "./service-control-capabilities-
|
|
6
|
+
import { n as resolveServiceAccountIdentity } from "./service-account-authorization-CdyvPbvg.js";
|
|
7
|
+
import { t as readServiceControlCapabilities } from "./service-control-capabilities-CRsFO-Jf.js";
|
|
8
8
|
//#region src/commands/computer-connection-review.ts
|
|
9
9
|
/** Display evidence only. Auth and Service owners validate an existing connection. */
|
|
10
10
|
async function readComputerConnectionReview() {
|
|
@@ -36,4 +36,4 @@ async function readComputerConnectionReview() {
|
|
|
36
36
|
//#endregion
|
|
37
37
|
export { readComputerConnectionReview };
|
|
38
38
|
|
|
39
|
-
//# sourceMappingURL=computer-connection-review-
|
|
39
|
+
//# sourceMappingURL=computer-connection-review-CeOHkloT.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computer-connection-review-
|
|
1
|
+
{"version":3,"file":"computer-connection-review-CeOHkloT.js","names":[],"sources":["../src/commands/computer-connection-review.ts"],"sourcesContent":["import { computerConnectionReviewSchema } from \"@openmeld/schemas\";\nimport {\n buildStoredAuthSessionIdentity,\n getAuthSessionMetadata,\n getAuthSessionState,\n} from \"../config/auth-session\";\nimport { readDaemonServiceContract } from \"../config/daemon-service-contract\";\nimport { resolveServiceAccountIdentity } from \"../local-service/lifecycle/service-account-authorization\";\nimport { readServiceControlCapabilities } from \"./service-control-capabilities\";\n\n/** Display evidence only. Auth and Service owners validate an existing connection. */\nexport async function readComputerConnectionReview() {\n const session = await getAuthSessionMetadata();\n if (session && !session.user?.id) {\n throw new Error(\n \"The computer account cannot be identified. Review its sign-in before connecting.\"\n );\n }\n let existingConnection: ReturnType<\n typeof computerConnectionReviewSchema.parse\n >[\"existingConnection\"] = null;\n const contract = await readDaemonServiceContract();\n if (session && contract && contract.ownerUserId === session.user?.id) {\n const auth = await getAuthSessionState({ validateRemote: true });\n if (auth.state === \"valid\" && auth.session) {\n const identity = await resolveServiceAccountIdentity(\n auth.session,\n contract\n );\n const capabilities = await readServiceControlCapabilities();\n if (capabilities.stop && capabilities.deviceId === identity.deviceId) {\n existingConnection = {\n deviceId: identity.deviceId,\n runtimeLane: identity.lane,\n };\n }\n }\n }\n return computerConnectionReviewSchema.parse({\n protocol: \"computer-connection-v1\",\n previousSessionIdentity: buildStoredAuthSessionIdentity(session),\n account: session\n ? { id: session.user?.id, email: session.user?.email ?? null }\n : null,\n existingConnection,\n });\n}\n"],"mappings":";;;;;;;;;AAWA,eAAsB,+BAA+B;CACnD,MAAM,UAAU,MAAM,uBAAuB;CAC7C,IAAI,WAAW,CAAC,QAAQ,MAAM,IAC5B,MAAM,IAAI,MACR,kFACF;CAEF,IAAI,qBAEsB;CAC1B,MAAM,WAAW,MAAM,0BAA0B;CACjD,IAAI,WAAW,YAAY,SAAS,gBAAgB,QAAQ,MAAM,IAAI;EACpE,MAAM,OAAO,MAAM,oBAAoB,EAAE,gBAAgB,KAAK,CAAC;EAC/D,IAAI,KAAK,UAAU,WAAW,KAAK,SAAS;GAC1C,MAAM,WAAW,MAAM,8BACrB,KAAK,SACL,QACF;GACA,MAAM,eAAe,MAAM,+BAA+B;GAC1D,IAAI,aAAa,QAAQ,aAAa,aAAa,SAAS,UAC1D,qBAAqB;IACnB,UAAU,SAAS;IACnB,aAAa,SAAS;GACxB;EAEJ;CACF;CACA,OAAO,+BAA+B,MAAM;EAC1C,UAAU;EACV,yBAAyB,+BAA+B,OAAO;EAC/D,SAAS,UACL;GAAE,IAAI,QAAQ,MAAM;GAAI,OAAO,QAAQ,MAAM,SAAS;EAAK,IAC3D;EACJ;CACF,CAAC;AACH"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { l as getAuthSession, o as buildStoredAuthSessionIdentity, s as clearAuthSession, u as getAuthSessionMetadata } from "./auth-session-
|
|
4
|
-
import { t as computerConnectionIntentSchema } from "./computer-connection-
|
|
5
|
-
import { r as readCurrentDaemonRuntimeContext } from "./daemon-service-runtime-
|
|
3
|
+
import { l as getAuthSession, o as buildStoredAuthSessionIdentity, s as clearAuthSession, u as getAuthSessionMetadata } from "./auth-session-CjxqNKvh.js";
|
|
4
|
+
import { t as computerConnectionIntentSchema } from "./computer-connection-LX1R7jD0.js";
|
|
5
|
+
import { r as readCurrentDaemonRuntimeContext } from "./daemon-service-runtime-B-x4bBKx.js";
|
|
6
6
|
import { K as withDaemonServiceRunLock } from "./daemon-state-Dte9re5V.js";
|
|
7
7
|
import { i as readDaemonServiceContract } from "./daemon-service-contract-COPKbCy_.js";
|
|
8
|
-
import { n as resolveServiceAccountIdentity } from "./service-account-authorization-
|
|
9
|
-
import { n as resolveRuntimeContext } from "./context-
|
|
8
|
+
import { n as resolveServiceAccountIdentity } from "./service-account-authorization-CdyvPbvg.js";
|
|
9
|
+
import { n as resolveRuntimeContext } from "./context-D3GnSqg8.js";
|
|
10
10
|
import { t as createPresenter } from "./presenter-MJ5YgsOT.js";
|
|
11
|
-
import { t as runServiceAccountControl } from "./service-account-control-
|
|
11
|
+
import { t as runServiceAccountControl } from "./service-account-control-jnKTjLAR.js";
|
|
12
12
|
//#region src/commands/computer-disconnect.ts
|
|
13
13
|
async function runComputerDisconnect(request, view) {
|
|
14
14
|
const presenter = createPresenter(await resolveRuntimeContext({ view }));
|
|
@@ -45,4 +45,4 @@ async function disconnectComputer(request) {
|
|
|
45
45
|
//#endregion
|
|
46
46
|
export { runComputerDisconnect };
|
|
47
47
|
|
|
48
|
-
//# sourceMappingURL=computer-disconnect-
|
|
48
|
+
//# sourceMappingURL=computer-disconnect-CXDO8zgT.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computer-disconnect-
|
|
1
|
+
{"version":3,"file":"computer-disconnect-CXDO8zgT.js","names":[],"sources":["../src/commands/computer-disconnect.ts"],"sourcesContent":["import {\n type ComputerConnectionIntent,\n computerConnectionIntentSchema,\n} from \"@openmeld/schemas\";\nimport {\n buildStoredAuthSessionIdentity,\n clearAuthSession,\n getAuthSession,\n getAuthSessionMetadata,\n} from \"../config/auth-session\";\nimport { readDaemonServiceContract } from \"../config/daemon-service-contract\";\nimport { withDaemonServiceRunLock } from \"../config/daemon-state\";\nimport { readCurrentDaemonRuntimeContext } from \"../local-service/lifecycle/daemon-service-runtime\";\nimport { resolveServiceAccountIdentity } from \"../local-service/lifecycle/service-account-authorization\";\nimport { resolveRuntimeContext } from \"../runtime/context\";\nimport { createPresenter } from \"../runtime/presenter/index\";\nimport { runServiceAccountControl } from \"./service-account-control\";\n\nexport async function runComputerDisconnect(\n request: ComputerConnectionIntent,\n view?: string\n) {\n const presenter = createPresenter(await resolveRuntimeContext({ view }));\n presenter.line({\n code: \"computer.disconnect.started\",\n text: \"Stopping OpenMeld Service…\",\n data: { state: \"started\" },\n });\n await disconnectComputer(request);\n presenter.line({\n code: \"computer.disconnected\",\n text: \"This computer is disconnected. Its record is still in your account.\",\n });\n}\n\n// Disconnect ends this Mac's local account connection. Forget remains the\n// separate cloud operation that removes the account's Computer record.\nexport async function disconnectComputer(\n request: ComputerConnectionIntent\n): Promise<void> {\n const intent = computerConnectionIntentSchema.parse(request);\n const session = await getAuthSessionMetadata();\n if (\n !session ||\n session.user?.id !== intent.expectedAccount ||\n buildStoredAuthSessionIdentity(session) !== intent.previousSessionIdentity\n ) {\n throw new Error(\n \"The computer sign-in changed. Review its connection before disconnecting.\"\n );\n }\n // The existing admission owner rechecks account, process and generation,\n // drains active work, and disables automatic startup. Never use an unscoped Stop.\n await withDaemonServiceRunLock(async () => {\n const contract = await readDaemonServiceContract();\n const runtime = await readCurrentDaemonRuntimeContext();\n if (contract?.desiredState === \"stopped\") {\n const current = await getAuthSession();\n if (!current) {\n throw new Error(\"Review this computer's sign-in before disconnecting.\");\n }\n await resolveServiceAccountIdentity(current, contract);\n }\n // A retry may follow an acknowledged Stop and a failed credential cleanup.\n // Only the owner's explicit stopped intent can skip another Stop.\n if (\n !(\n contract?.ownerUserId === intent.expectedAccount &&\n contract.desiredState === \"stopped\" &&\n runtime.effectiveRuntimeStatus === \"not_running\"\n )\n ) {\n await runServiceAccountControl(\n {\n operation: \"stop\",\n expectedAccount: intent.expectedAccount,\n },\n intent.previousSessionIdentity\n );\n }\n // Hold the existing lifecycle lock through cleanup so Start cannot race it.\n // A concurrent sign-in after Stop must never be cleared by this operation.\n await clearAuthSession(session);\n });\n}\n"],"mappings":";;;;;;;;;;;;AAkBA,eAAsB,sBACpB,SACA,MACA;CACA,MAAM,YAAY,gBAAgB,MAAM,sBAAsB,EAAE,KAAK,CAAC,CAAC;CACvE,UAAU,KAAK;EACb,MAAM;EACN,MAAM;EACN,MAAM,EAAE,OAAO,UAAU;CAC3B,CAAC;CACD,MAAM,mBAAmB,OAAO;CAChC,UAAU,KAAK;EACb,MAAM;EACN,MAAM;CACR,CAAC;AACH;AAIA,eAAsB,mBACpB,SACe;CACf,MAAM,SAAS,+BAA+B,MAAM,OAAO;CAC3D,MAAM,UAAU,MAAM,uBAAuB;CAC7C,IACE,CAAC,WACD,QAAQ,MAAM,OAAO,OAAO,mBAC5B,+BAA+B,OAAO,MAAM,OAAO,yBAEnD,MAAM,IAAI,MACR,2EACF;CAIF,MAAM,yBAAyB,YAAY;EACzC,MAAM,WAAW,MAAM,0BAA0B;EACjD,MAAM,UAAU,MAAM,gCAAgC;EACtD,IAAI,UAAU,iBAAiB,WAAW;GACxC,MAAM,UAAU,MAAM,eAAe;GACrC,IAAI,CAAC,SACH,MAAM,IAAI,MAAM,sDAAsD;GAExE,MAAM,8BAA8B,SAAS,QAAQ;EACvD;EAGA,IACE,EACE,UAAU,gBAAgB,OAAO,mBACjC,SAAS,iBAAiB,aAC1B,QAAQ,2BAA2B,gBAGrC,MAAM,yBACJ;GACE,WAAW;GACX,iBAAiB,OAAO;EAC1B,GACA,OAAO,uBACT;EAIF,MAAM,iBAAiB,OAAO;CAChC,CAAC;AACH"}
|
package/dist/{computer-setup-continuation-ZcQb7MvI.js → computer-setup-continuation-XgvjM0jF.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { m as hasPendingComputerSetupContinuation, x as resumeInterruptedComputerSetup } from "./auth-session-
|
|
3
|
+
import { m as hasPendingComputerSetupContinuation, x as resumeInterruptedComputerSetup } from "./auth-session-CjxqNKvh.js";
|
|
4
4
|
import { t as createPresenter } from "./presenter-MJ5YgsOT.js";
|
|
5
|
-
import { A as mintPrepareSessionReconnectToken, D as recoverInterruptedComputerAuthHandoff, i as runPrepareSessionExecutor } from "./prepare-session-executor-
|
|
5
|
+
import { A as mintPrepareSessionReconnectToken, D as recoverInterruptedComputerAuthHandoff, i as runPrepareSessionExecutor } from "./prepare-session-executor-D8Vbyoq4.js";
|
|
6
6
|
import { setTimeout } from "node:timers/promises";
|
|
7
7
|
//#region src/commands/computer-setup-continuation.ts
|
|
8
8
|
const runtime = {
|
|
@@ -39,4 +39,4 @@ async function recoverComputerSetupAfterBackgroundUpdate() {
|
|
|
39
39
|
//#endregion
|
|
40
40
|
export { finishComputerSetupAfterBackgroundUpdate, recoverComputerSetupAfterBackgroundUpdate };
|
|
41
41
|
|
|
42
|
-
//# sourceMappingURL=computer-setup-continuation-
|
|
42
|
+
//# sourceMappingURL=computer-setup-continuation-XgvjM0jF.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computer-setup-continuation-
|
|
1
|
+
{"version":3,"file":"computer-setup-continuation-XgvjM0jF.js","names":["sleep"],"sources":["../src/commands/computer-setup-continuation.ts"],"sourcesContent":["import { setTimeout as sleep } from \"node:timers/promises\";\nimport {\n hasPendingComputerSetupContinuation,\n resumeInterruptedComputerSetup,\n} from \"../config/auth-session\";\nimport { mintPrepareSessionReconnectToken } from \"../config/prepare-session-api\";\nimport { createPresenter } from \"../runtime/presenter/index\";\nimport type { RuntimeContext } from \"../runtime/types\";\nimport { recoverInterruptedComputerAuthHandoff } from \"./computer-auth-handoff-recovery\";\nimport { runPrepareSessionExecutor } from \"./prepare-session-executor\";\n\nconst runtime: RuntimeContext = {\n interactive: false,\n resolvedView: \"agent\",\n viewMode: \"agent\",\n};\n\n// Called only by the existing OS-owned maintenance worker after its update.\n// The live Terminal keeps ownership. If it exits, continue the same Core\n// Prepare session using the existing auth journal, not a second setup plan.\nexport async function finishComputerSetupAfterBackgroundUpdate(): Promise<void> {\n while (await hasPendingComputerSetupContinuation()) {\n const resumed = await resumeInterruptedComputerSetup(\n async (continuation) => {\n const { snapshot, opaqueToken } =\n await mintPrepareSessionReconnectToken({\n baseUrl: continuation.gatewayUrl,\n prepareSessionId: continuation.prepareSessionId,\n });\n if (\n snapshot.lifecycleStatus !== \"active\" &&\n snapshot.lifecycleStatus !== \"completed\"\n ) {\n return \"not_completed\";\n }\n const result = await runPrepareSessionExecutor({\n gatewayUrl: continuation.gatewayUrl,\n initialSnapshot: snapshot,\n interactive: false,\n localAgentSelection: continuation.localAgentSelection,\n presenter: createPresenter(runtime),\n runtime,\n startSession: opaqueToken,\n view: \"agent\",\n });\n return result.status;\n }\n );\n if (!resumed) {\n await sleep(500);\n }\n }\n}\n\n// Run after the completed update has released its pending job. Account rollback\n// uses the existing handoff recovery, which itself waits for active updates.\nexport async function recoverComputerSetupAfterBackgroundUpdate(): Promise<void> {\n await recoverInterruptedComputerAuthHandoff({\n presenter: createPresenter(runtime),\n runtime,\n view: \"agent\",\n });\n}\n"],"mappings":";;;;;;;AAWA,MAAM,UAA0B;CAC9B,aAAa;CACb,cAAc;CACd,UAAU;AACZ;AAKA,eAAsB,2CAA0D;CAC9E,OAAO,MAAM,oCAAoC,GA2B/C,IAAI,CAAC,MA1BiB,+BACpB,OAAO,iBAAiB;EACtB,MAAM,EAAE,UAAU,gBAChB,MAAM,iCAAiC;GACrC,SAAS,aAAa;GACtB,kBAAkB,aAAa;EACjC,CAAC;EACH,IACE,SAAS,oBAAoB,YAC7B,SAAS,oBAAoB,aAE7B,OAAO;EAYT,QAAO,MAVc,0BAA0B;GAC7C,YAAY,aAAa;GACzB,iBAAiB;GACjB,aAAa;GACb,qBAAqB,aAAa;GAClC,WAAW,gBAAgB,OAAO;GAClC;GACA,cAAc;GACd,MAAM;EACR,CAAC,EAAA,CACa;CAChB,CACF,GAEE,MAAMA,WAAM,GAAG;AAGrB;AAIA,eAAsB,4CAA2D;CAC/E,MAAM,sCAAsC;EAC1C,WAAW,gBAAgB,OAAO;EAClC;EACA,MAAM;CACR,CAAC;AACH"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { b as normalizeOpenMeldProfileId, i as accountProfileViewPath } from "./paths-De9xdA2h.js";
|
|
4
|
-
import {
|
|
5
|
-
import { V as resolveOpenMeldProfileOrNull, Y as resolveOpenMeldProfileByIdOrName, ht as resolveCurrentOpenMeldAccountContext, rt as getSelectedOpenMeldProfileId } from "./daemon-device-id-
|
|
4
|
+
import { Li as openMeldProfileIdSchema } from "./runtime-transport-DyBmX7ds.js";
|
|
5
|
+
import { V as resolveOpenMeldProfileOrNull, Y as resolveOpenMeldProfileByIdOrName, ht as resolveCurrentOpenMeldAccountContext, rt as getSelectedOpenMeldProfileId } from "./daemon-device-id-OMqh2F9_.js";
|
|
6
6
|
import { _ as getConfiguredViewCustomization } from "./base-url-0AoeTi3w.js";
|
|
7
7
|
import { dirname } from "node:path";
|
|
8
8
|
import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
|
|
@@ -159,4 +159,4 @@ function isInteractiveSession() {
|
|
|
159
159
|
//#endregion
|
|
160
160
|
export { setProfileDefaultView as a, getProfileDefaultView as i, resolveRuntimeContext as n, resolveViewProfileKey as r, parseCliViewMode as t };
|
|
161
161
|
|
|
162
|
-
//# sourceMappingURL=context-
|
|
162
|
+
//# sourceMappingURL=context-D3GnSqg8.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-BPIoofMa.js","names":[],"sources":["../src/config/profile-view.ts","../src/config/view-profile-key.ts","../src/runtime/context.ts"],"sourcesContent":["import { mkdir, readFile, rename, rm, writeFile } from \"node:fs/promises\";\nimport { dirname } from \"node:path\";\nimport { resolveCurrentOpenMeldAccountContext } from \"./account-context\";\nimport {\n accountProfileViewPath,\n normalizeOpenMeldProfileId,\n type OpenMeldProfileId,\n} from \"./paths\";\n\nexport type ProfileDefaultView = \"auto\" | \"human\" | \"agent\";\n\ntype ProfileViewV1 = {\n v: 1;\n openMeldProfileId: OpenMeldProfileId;\n defaultView: Exclude<ProfileDefaultView, \"auto\">;\n updatedAt: string;\n};\n\ntype StoredProfileViewInput = Partial<ProfileViewV1> & { profile?: string };\n\ntype NormalizedStoredProfileView = {\n needsRewrite: boolean;\n payload: ProfileViewV1;\n};\n\nexport async function getProfileDefaultView(\n openMeldProfileId: string\n): Promise<ProfileDefaultView> {\n const normalizedOpenMeldProfileId =\n normalizeOpenMeldProfileId(openMeldProfileId);\n const path = await resolveAccountProfileViewPath(normalizedOpenMeldProfileId);\n const raw = await readFile(path, \"utf8\").catch(() => null);\n if (!raw) {\n return \"auto\";\n }\n\n try {\n const parsed = JSON.parse(raw) as StoredProfileViewInput;\n if (parsed.v !== 1) {\n return \"auto\";\n }\n const normalizedStoredProfileView = normalizeStoredProfileView(parsed);\n if (!normalizedStoredProfileView) {\n return \"auto\";\n }\n if (\n normalizedStoredProfileView.payload.openMeldProfileId !==\n normalizedOpenMeldProfileId\n ) {\n await rm(path, { force: true });\n return \"auto\";\n }\n if (normalizedStoredProfileView.needsRewrite) {\n await writeProfileViewFile(path, normalizedStoredProfileView.payload);\n }\n return normalizedStoredProfileView.payload.defaultView;\n } catch {\n return \"auto\";\n }\n}\n\nexport async function setProfileDefaultView(input: {\n openMeldProfileId: string;\n view: ProfileDefaultView;\n}): Promise<void> {\n const openMeldProfileId = normalizeOpenMeldProfileId(input.openMeldProfileId);\n const path = await resolveAccountProfileViewPath(openMeldProfileId);\n\n if (input.view === \"auto\") {\n await rm(path, { force: true });\n return;\n }\n\n await writeProfileViewFile(path, {\n v: 1,\n openMeldProfileId,\n defaultView: input.view,\n updatedAt: new Date().toISOString(),\n });\n}\n\nasync function writeProfileViewFile(\n path: string,\n payload: ProfileViewV1\n): Promise<void> {\n await mkdir(dirname(path), { recursive: true });\n const tempPath = `${path}.tmp-${process.pid}-${Date.now()}`;\n await writeFile(tempPath, `${JSON.stringify(payload, null, 2)}\\n`, \"utf8\");\n try {\n await rename(tempPath, path);\n } catch (error) {\n await rm(tempPath, { force: true }).catch(() => undefined);\n throw error;\n }\n}\n\nasync function resolveAccountProfileViewPath(\n openMeldProfileId: OpenMeldProfileId\n): Promise<string> {\n const accountContext = await resolveCurrentOpenMeldAccountContext();\n return accountProfileViewPath(accountContext.key, openMeldProfileId);\n}\n\nfunction normalizeStoredProfileView(\n input: StoredProfileViewInput\n): NormalizedStoredProfileView | null {\n const openMeldProfileId = normalizeOptionalOpenMeldProfileId(\n input.openMeldProfileId\n );\n const legacyProfile = normalizeOptionalOpenMeldProfileId(input.profile);\n const resolvedOpenMeldProfileId = openMeldProfileId ?? legacyProfile;\n if (!resolvedOpenMeldProfileId) {\n return null;\n }\n const defaultView = normalizeStoredDefaultView(input.defaultView);\n if (!defaultView) {\n return null;\n }\n const updatedAt = normalizeStoredUpdatedAt(input.updatedAt);\n return {\n needsRewrite:\n openMeldProfileId !== resolvedOpenMeldProfileId ||\n input.profile !== undefined ||\n input.updatedAt !== updatedAt,\n payload: {\n v: 1,\n openMeldProfileId: resolvedOpenMeldProfileId,\n defaultView,\n updatedAt,\n },\n };\n}\n\nfunction normalizeStoredDefaultView(\n value: unknown\n): Exclude<ProfileDefaultView, \"auto\"> | null {\n if (value === \"human\" || value === \"agent\") {\n return value;\n }\n return null;\n}\n\nfunction normalizeStoredUpdatedAt(value: unknown): string {\n if (typeof value === \"string\") {\n const trimmedValue = value.trim();\n if (trimmedValue.length > 0 && !Number.isNaN(Date.parse(trimmedValue))) {\n return trimmedValue;\n }\n }\n return new Date().toISOString();\n}\n\nfunction normalizeOptionalOpenMeldProfileId(\n value: unknown\n): OpenMeldProfileId | null {\n if (typeof value !== \"string\") {\n return null;\n }\n try {\n return normalizeOpenMeldProfileId(value);\n } catch {\n return null;\n }\n}\n","import { openMeldProfileIdSchema } from \"@openmeld/schemas\";\nimport { getSelectedOpenMeldProfileId } from \"./openmeld-profile-selection\";\nimport { resolveOpenMeldProfileByIdOrName } from \"./openmeld-profiles-api\";\n\nexport async function resolveViewProfileKey(\n inputProfile?: string\n): Promise<string | null> {\n const explicit = normalizeOptionalString(inputProfile);\n if (explicit) {\n const profileId = openMeldProfileIdSchema.safeParse(explicit);\n if (profileId.success) {\n return profileId.data;\n }\n const profile = await resolveOpenMeldProfileByIdOrName({\n profileIdentifier: explicit,\n }).catch(() => null);\n return profile?.openMeldProfileId ?? explicit;\n }\n\n const selected = await getSelectedOpenMeldProfileId();\n if (selected) {\n return selected;\n }\n\n return null;\n}\n\nfunction normalizeOptionalString(value: unknown): string | null {\n const normalized = String(value ?? \"\").trim();\n return normalized.length > 0 ? normalized : null;\n}\n","import { getProfileDefaultView } from \"../config/profile-view\";\nimport { resolveOpenMeldProfileOrNull } from \"../config/resolve-openmeld-profile\";\nimport {\n getConfiguredViewCustomization,\n type RuntimeViewCustomization,\n} from \"../config/runtime-config\";\nimport { resolveViewProfileKey } from \"../config/view-profile-key\";\nimport type { CliViewMode, RuntimeContext } from \"./types\";\n\nexport type { CliViewMode, RuntimeContext } from \"./types\";\n\nexport async function resolveRuntimeContext(input?: {\n view?: string;\n profile?: string;\n interactive?: boolean;\n}): Promise<RuntimeContext> {\n const viewOpenMeldProfileId = await resolveViewProfileKey(input?.profile);\n const configuredViewMode = await readConfiguredDefaultView(\n viewOpenMeldProfileId\n );\n const viewMode = parseCliViewMode(input?.view ?? configuredViewMode);\n const interactive = input?.interactive ?? isInteractiveSession();\n const viewCustomization = await readViewCustomization();\n\n if (viewMode === \"human\" || viewMode === \"agent\") {\n return {\n viewMode,\n resolvedView: viewMode,\n interactive,\n ...(viewOpenMeldProfileId\n ? { openMeldProfileId: viewOpenMeldProfileId }\n : {}),\n ...(viewCustomization ? { viewCustomization } : {}),\n };\n }\n\n const openMeldProfile = await resolveOpenMeldProfileOrNull({\n openMeldProfileId: input?.profile,\n allowUnauthenticated: true,\n persistSelection: false,\n allowDefaultFallback: false,\n }).catch(() => null);\n const resolvedView =\n openMeldProfile?.profileKind === \"agent\" ? \"agent\" : \"human\";\n const resolvedOpenMeldProfileId = openMeldProfile\n ? openMeldProfile.openMeldProfileId\n : viewOpenMeldProfileId;\n\n return {\n viewMode,\n resolvedView,\n interactive,\n ...(resolvedOpenMeldProfileId\n ? { openMeldProfileId: resolvedOpenMeldProfileId }\n : {}),\n ...(openMeldProfile?.profileKind\n ? { profileKind: openMeldProfile.profileKind }\n : {}),\n ...(viewCustomization ? { viewCustomization } : {}),\n };\n}\n\nexport function parseCliViewMode(value?: string): CliViewMode {\n const normalized = String(value ?? \"auto\")\n .trim()\n .toLowerCase();\n if (\n normalized === \"auto\" ||\n normalized === \"human\" ||\n normalized === \"agent\"\n ) {\n return normalized;\n }\n\n throw new Error(`invalid --view value: ${normalized} (use auto|human|agent)`);\n}\n\nfunction readViewCustomization(): Promise<RuntimeViewCustomization | null> {\n return getConfiguredViewCustomization().catch(() => null);\n}\n\nfunction readConfiguredDefaultView(\n openMeldProfileId?: string | null\n): Promise<CliViewMode> {\n if (!openMeldProfileId) {\n return Promise.resolve(\"auto\");\n }\n return getProfileDefaultView(openMeldProfileId).catch(() => \"auto\");\n}\n\nfunction isInteractiveSession(): boolean {\n return Boolean(process.stdin.isTTY && process.stdout.isTTY);\n}\n"],"mappings":";;;;;;;;;AAyBA,eAAsB,sBACpB,mBAC6B;CAC7B,MAAM,8BACJ,2BAA2B,iBAAiB;CAC9C,MAAM,OAAO,MAAM,8BAA8B,2BAA2B;CAC5E,MAAM,MAAM,MAAM,SAAS,MAAM,MAAM,CAAC,CAAC,YAAY,IAAI;CACzD,IAAI,CAAC,KACH,OAAO;CAGT,IAAI;EACF,MAAM,SAAS,KAAK,MAAM,GAAG;EAC7B,IAAI,OAAO,MAAM,GACf,OAAO;EAET,MAAM,8BAA8B,2BAA2B,MAAM;EACrE,IAAI,CAAC,6BACH,OAAO;EAET,IACE,4BAA4B,QAAQ,sBACpC,6BACA;GACA,MAAM,GAAG,MAAM,EAAE,OAAO,KAAK,CAAC;GAC9B,OAAO;EACT;EACA,IAAI,4BAA4B,cAC9B,MAAM,qBAAqB,MAAM,4BAA4B,OAAO;EAEtE,OAAO,4BAA4B,QAAQ;CAC7C,QAAQ;EACN,OAAO;CACT;AACF;AAEA,eAAsB,sBAAsB,OAG1B;CAChB,MAAM,oBAAoB,2BAA2B,MAAM,iBAAiB;CAC5E,MAAM,OAAO,MAAM,8BAA8B,iBAAiB;CAElE,IAAI,MAAM,SAAS,QAAQ;EACzB,MAAM,GAAG,MAAM,EAAE,OAAO,KAAK,CAAC;EAC9B;CACF;CAEA,MAAM,qBAAqB,MAAM;EAC/B,GAAG;EACH;EACA,aAAa,MAAM;EACnB,4BAAW,IAAI,KAAK,EAAA,CAAE,YAAY;CACpC,CAAC;AACH;AAEA,eAAe,qBACb,MACA,SACe;CACf,MAAM,MAAM,QAAQ,IAAI,GAA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AAiB,cACjB,EAAE,aAAa,gBAAgB,YAAY,IAC3C,CAAC;EACL,GAAI,oBAAoB,EAAE,kBAAkB,IAAI,CAAC;CACnD;AACF;AAEA,SAAgB,iBAAiB,OAA6B;CAC5D,MAAM,aAAa,OAAO,SAAS,MAAM,CAAC,CACvC,KAAK,CAAC,CACN,YAAY;CACf,IACE,eAAe,UACf,eAAe,WACf,eAAe,SAEf,OAAO;CAGT,MAAM,IAAI,MAAM,yBAAyB,WAAW,wBAAwB;AAC9E;AAEA,SAAS,wBAAkE;CACzE,OAAO,+BAA+B,CAAC,CAAC,YAAY,IAAI;AAC1D;AAEA,SAAS,0BACP,mBACsB;CACtB,IAAI,CAAC,mBACH,OAAO,QAAQ,QAAQ,MAAM;CAE/B,OAAO,sBAAsB,iBAAiB,CAAC,CAAC,YAAY,MAAM;AACpE;AAEA,SAAS,uBAAgC;CACvC,OAAO,QAAQ,QAAQ,MAAM,SAAS,QAAQ,OAAO,KAAK;AAC5D"}
|
|
1
|
+
{"version":3,"file":"context-D3GnSqg8.js","names":[],"sources":["../src/config/profile-view.ts","../src/config/view-profile-key.ts","../src/runtime/context.ts"],"sourcesContent":["import { mkdir, readFile, rename, rm, writeFile } from \"node:fs/promises\";\nimport { dirname } from \"node:path\";\nimport { resolveCurrentOpenMeldAccountContext } from \"./account-context\";\nimport {\n accountProfileViewPath,\n normalizeOpenMeldProfileId,\n type OpenMeldProfileId,\n} from \"./paths\";\n\nexport type ProfileDefaultView = \"auto\" | \"human\" | \"agent\";\n\ntype ProfileViewV1 = {\n v: 1;\n openMeldProfileId: OpenMeldProfileId;\n defaultView: Exclude<ProfileDefaultView, \"auto\">;\n updatedAt: string;\n};\n\ntype StoredProfileViewInput = Partial<ProfileViewV1> & { profile?: string };\n\ntype NormalizedStoredProfileView = {\n needsRewrite: boolean;\n payload: ProfileViewV1;\n};\n\nexport async function getProfileDefaultView(\n openMeldProfileId: string\n): Promise<ProfileDefaultView> {\n const normalizedOpenMeldProfileId =\n normalizeOpenMeldProfileId(openMeldProfileId);\n const path = await resolveAccountProfileViewPath(normalizedOpenMeldProfileId);\n const raw = await readFile(path, \"utf8\").catch(() => null);\n if (!raw) {\n return \"auto\";\n }\n\n try {\n const parsed = JSON.parse(raw) as StoredProfileViewInput;\n if (parsed.v !== 1) {\n return \"auto\";\n }\n const normalizedStoredProfileView = normalizeStoredProfileView(parsed);\n if (!normalizedStoredProfileView) {\n return \"auto\";\n }\n if (\n normalizedStoredProfileView.payload.openMeldProfileId !==\n normalizedOpenMeldProfileId\n ) {\n await rm(path, { force: true });\n return \"auto\";\n }\n if (normalizedStoredProfileView.needsRewrite) {\n await writeProfileViewFile(path, normalizedStoredProfileView.payload);\n }\n return normalizedStoredProfileView.payload.defaultView;\n } catch {\n return \"auto\";\n }\n}\n\nexport async function setProfileDefaultView(input: {\n openMeldProfileId: string;\n view: ProfileDefaultView;\n}): Promise<void> {\n const openMeldProfileId = normalizeOpenMeldProfileId(input.openMeldProfileId);\n const path = await resolveAccountProfileViewPath(openMeldProfileId);\n\n if (input.view === \"auto\") {\n await rm(path, { force: true });\n return;\n }\n\n await writeProfileViewFile(path, {\n v: 1,\n openMeldProfileId,\n defaultView: input.view,\n updatedAt: new Date().toISOString(),\n });\n}\n\nasync function writeProfileViewFile(\n path: string,\n payload: ProfileViewV1\n): Promise<void> {\n await mkdir(dirname(path), { recursive: true });\n const tempPath = `${path}.tmp-${process.pid}-${Date.now()}`;\n await writeFile(tempPath, `${JSON.stringify(payload, null, 2)}\\n`, \"utf8\");\n try {\n await rename(tempPath, path);\n } catch (error) {\n await rm(tempPath, { force: true }).catch(() => undefined);\n throw error;\n }\n}\n\nasync function resolveAccountProfileViewPath(\n openMeldProfileId: OpenMeldProfileId\n): Promise<string> {\n const accountContext = await resolveCurrentOpenMeldAccountContext();\n return accountProfileViewPath(accountContext.key, openMeldProfileId);\n}\n\nfunction normalizeStoredProfileView(\n input: StoredProfileViewInput\n): NormalizedStoredProfileView | null {\n const openMeldProfileId = normalizeOptionalOpenMeldProfileId(\n input.openMeldProfileId\n );\n const legacyProfile = normalizeOptionalOpenMeldProfileId(input.profile);\n const resolvedOpenMeldProfileId = openMeldProfileId ?? legacyProfile;\n if (!resolvedOpenMeldProfileId) {\n return null;\n }\n const defaultView = normalizeStoredDefaultView(input.defaultView);\n if (!defaultView) {\n return null;\n }\n const updatedAt = normalizeStoredUpdatedAt(input.updatedAt);\n return {\n needsRewrite:\n openMeldProfileId !== resolvedOpenMeldProfileId ||\n input.profile !== undefined ||\n input.updatedAt !== updatedAt,\n payload: {\n v: 1,\n openMeldProfileId: resolvedOpenMeldProfileId,\n defaultView,\n updatedAt,\n },\n };\n}\n\nfunction normalizeStoredDefaultView(\n value: unknown\n): Exclude<ProfileDefaultView, \"auto\"> | null {\n if (value === \"human\" || value === \"agent\") {\n return value;\n }\n return null;\n}\n\nfunction normalizeStoredUpdatedAt(value: unknown): string {\n if (typeof value === \"string\") {\n const trimmedValue = value.trim();\n if (trimmedValue.length > 0 && !Number.isNaN(Date.parse(trimmedValue))) {\n return trimmedValue;\n }\n }\n return new Date().toISOString();\n}\n\nfunction normalizeOptionalOpenMeldProfileId(\n value: unknown\n): OpenMeldProfileId | null {\n if (typeof value !== \"string\") {\n return null;\n }\n try {\n return normalizeOpenMeldProfileId(value);\n } catch {\n return null;\n }\n}\n","import { openMeldProfileIdSchema } from \"@openmeld/schemas\";\nimport { getSelectedOpenMeldProfileId } from \"./openmeld-profile-selection\";\nimport { resolveOpenMeldProfileByIdOrName } from \"./openmeld-profiles-api\";\n\nexport async function resolveViewProfileKey(\n inputProfile?: string\n): Promise<string | null> {\n const explicit = normalizeOptionalString(inputProfile);\n if (explicit) {\n const profileId = openMeldProfileIdSchema.safeParse(explicit);\n if (profileId.success) {\n return profileId.data;\n }\n const profile = await resolveOpenMeldProfileByIdOrName({\n profileIdentifier: explicit,\n }).catch(() => null);\n return profile?.openMeldProfileId ?? explicit;\n }\n\n const selected = await getSelectedOpenMeldProfileId();\n if (selected) {\n return selected;\n }\n\n return null;\n}\n\nfunction normalizeOptionalString(value: unknown): string | null {\n const normalized = String(value ?? \"\").trim();\n return normalized.length > 0 ? normalized : null;\n}\n","import { getProfileDefaultView } from \"../config/profile-view\";\nimport { resolveOpenMeldProfileOrNull } from \"../config/resolve-openmeld-profile\";\nimport {\n getConfiguredViewCustomization,\n type RuntimeViewCustomization,\n} from \"../config/runtime-config\";\nimport { resolveViewProfileKey } from \"../config/view-profile-key\";\nimport type { CliViewMode, RuntimeContext } from \"./types\";\n\nexport type { CliViewMode, RuntimeContext } from \"./types\";\n\nexport async function resolveRuntimeContext(input?: {\n view?: string;\n profile?: string;\n interactive?: boolean;\n}): Promise<RuntimeContext> {\n const viewOpenMeldProfileId = await resolveViewProfileKey(input?.profile);\n const configuredViewMode = await readConfiguredDefaultView(\n viewOpenMeldProfileId\n );\n const viewMode = parseCliViewMode(input?.view ?? configuredViewMode);\n const interactive = input?.interactive ?? isInteractiveSession();\n const viewCustomization = await readViewCustomization();\n\n if (viewMode === \"human\" || viewMode === \"agent\") {\n return {\n viewMode,\n resolvedView: viewMode,\n interactive,\n ...(viewOpenMeldProfileId\n ? { openMeldProfileId: viewOpenMeldProfileId }\n : {}),\n ...(viewCustomization ? { viewCustomization } : {}),\n };\n }\n\n const openMeldProfile = await resolveOpenMeldProfileOrNull({\n openMeldProfileId: input?.profile,\n allowUnauthenticated: true,\n persistSelection: false,\n allowDefaultFallback: false,\n }).catch(() => null);\n const resolvedView =\n openMeldProfile?.profileKind === \"agent\" ? \"agent\" : \"human\";\n const resolvedOpenMeldProfileId = openMeldProfile\n ? openMeldProfile.openMeldProfileId\n : viewOpenMeldProfileId;\n\n return {\n viewMode,\n resolvedView,\n interactive,\n ...(resolvedOpenMeldProfileId\n ? { openMeldProfileId: resolvedOpenMeldProfileId }\n : {}),\n ...(openMeldProfile?.profileKind\n ? { profileKind: openMeldProfile.profileKind }\n : {}),\n ...(viewCustomization ? { viewCustomization } : {}),\n };\n}\n\nexport function parseCliViewMode(value?: string): CliViewMode {\n const normalized = String(value ?? \"auto\")\n .trim()\n .toLowerCase();\n if (\n normalized === \"auto\" ||\n normalized === \"human\" ||\n normalized === \"agent\"\n ) {\n return normalized;\n }\n\n throw new Error(`invalid --view value: ${normalized} (use auto|human|agent)`);\n}\n\nfunction readViewCustomization(): Promise<RuntimeViewCustomization | null> {\n return getConfiguredViewCustomization().catch(() => null);\n}\n\nfunction readConfiguredDefaultView(\n openMeldProfileId?: string | null\n): Promise<CliViewMode> {\n if (!openMeldProfileId) {\n return Promise.resolve(\"auto\");\n }\n return getProfileDefaultView(openMeldProfileId).catch(() => \"auto\");\n}\n\nfunction isInteractiveSession(): boolean {\n return Boolean(process.stdin.isTTY && process.stdout.isTTY);\n}\n"],"mappings":";;;;;;;;;AAyBA,eAAsB,sBACpB,mBAC6B;CAC7B,MAAM,8BACJ,2BAA2B,iBAAiB;CAC9C,MAAM,OAAO,MAAM,8BAA8B,2BAA2B;CAC5E,MAAM,MAAM,MAAM,SAAS,MAAM,MAAM,CAAC,CAAC,YAAY,IAAI;CACzD,IAAI,CAAC,KACH,OAAO;CAGT,IAAI;EACF,MAAM,SAAS,KAAK,MAAM,GAAG;EAC7B,IAAI,OAAO,MAAM,GACf,OAAO;EAET,MAAM,8BAA8B,2BAA2B,MAAM;EACrE,IAAI,CAAC,6BACH,OAAO;EAET,IACE,4BAA4B,QAAQ,sBACpC,6BACA;GACA,MAAM,GAAG,MAAM,EAAE,OAAO,KAAK,CAAC;GAC9B,OAAO;EACT;EACA,IAAI,4BAA4B,cAC9B,MAAM,qBAAqB,MAAM,4BAA4B,OAAO;EAEtE,OAAO,4BAA4B,QAAQ;CAC7C,QAAQ;EACN,OAAO;CACT;AACF;AAEA,eAAsB,sBAAsB,OAG1B;CAChB,MAAM,oBAAoB,2BAA2B,MAAM,iBAAiB;CAC5E,MAAM,OAAO,MAAM,8BAA8B,iBAAiB;CAElE,IAAI,MAAM,SAAS,QAAQ;EACzB,MAAM,GAAG,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sB;CACxB,CAAC,CAAC,CAAC,YAAY,IAAI;CACnB,MAAM,eACJ,iBAAiB,gBAAgB,UAAU,UAAU;CACvD,MAAM,4BAA4B,kBAC9B,gBAAgB,oBAChB;CAEJ,OAAO;EACL;EACA;EACA;EACA,GAAI,4BACA,EAAE,mBAAmB,0BAA0B,IAC/C,CAAC;EACL,GAAI,iBAAiB,cACjB,EAAE,aAAa,gBAAgB,YAAY,IAC3C,CAAC;EACL,GAAI,oBAAoB,EAAE,kBAAkB,IAAI,CAAC;CACnD;AACF;AAEA,SAAgB,iBAAiB,OAA6B;CAC5D,MAAM,aAAa,OAAO,SAAS,MAAM,CAAC,CACvC,KAAK,CAAC,CACN,YAAY;CACf,IACE,eAAe,UACf,eAAe,WACf,eAAe,SAEf,OAAO;CAGT,MAAM,IAAI,MAAM,yBAAyB,WAAW,wBAAwB;AAC9E;AAEA,SAAS,wBAAkE;CACzE,OAAO,+BAA+B,CAAC,CAAC,YAAY,IAAI;AAC1D;AAEA,SAAS,0BACP,mBACsB;CACtB,IAAI,CAAC,mBACH,OAAO,QAAQ,QAAQ,MAAM;CAE/B,OAAO,sBAAsB,iBAAiB,CAAC,CAAC,YAAY,MAAM;AACpE;AAEA,SAAS,uBAAgC;CACvC,OAAO,QAAQ,QAAQ,MAAM,SAAS,QAAQ,OAAO,KAAK;AAC5D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { c as agentControllerConversationRefSchema, s as runtimeTransportModeSchema } from "./controller-contract-DAOCaefz.js";
|
|
4
|
-
import {
|
|
4
|
+
import { A as boolean, B as nullFactory, G as strictObject, I as iso, K as string, M as discriminatedUnion, P as enumFactory, R as literal, V as number, Y as union, k as array } from "./local-components-DJiMS67S.js";
|
|
5
5
|
import * as z$1 from "zod/v4";
|
|
6
6
|
//#region ../../packages/schemas/dist/schemas/protocol/shared.js
|
|
7
7
|
const trimmedStringFromUnknown = (value) => String(value ?? "").trim();
|
|
@@ -681,4 +681,4 @@ const openMeldDaemonControlPlaneResponseSchema = discriminatedUnion("code", [
|
|
|
681
681
|
//#endregion
|
|
682
682
|
export { profileKindSchema as A, conversationExecutionStateSchema as C, normalizeOptionalWorkingDirectory as D, agentProfileIdSchema as E, uuidProfileIdSchema as F, finiteIntegerNumber as I, nonEmptyTrimmedStringFromUnknown as L, profileSchema as M, profileWorkingDirectorySchema as N, openMeldRuntimeProfileIdSchema as O, profileWorkspaceModeSchema as P, optionalBooleanQuerySchema as R, bootstrapTemplateFactsSchema as S, MAX_PROFILE_WORKING_DIRECTORY_LENGTH as T, openMeldDaemonSetProfileWorkspaceRequestPayloadSchema as _, openMeldDaemonCancelRequestPayloadSchema as a, skippedDaemonProfileSchema as b, openMeldDaemonConversationExecutionStatusPayloadSchema as c, openMeldDaemonInterruptRequestPayloadSchema as d, openMeldDaemonManageLocalAgentInstallationPayloadSchema as f, openMeldDaemonSetProfileWorkspacePayloadSchema as g, openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema as h, openMeldDaemonCancelPayloadSchema as i, profileLabelSchema as j, profileHandleSchema as k, openMeldDaemonConversationExecutionStatusRequestPayloadSchema as l, openMeldDaemonSetLocalAgentEnabledPayloadSchema as m, OPENMELD_DAEMON_CANCEL_WITHDRAWN_BEFORE_START_REASON_CODE as n, openMeldDaemonControlPlaneRequestSchema as o, openMeldDaemonManageLocalAgentInstallationRequestPayloadSchema as p, localAgentInstallationOptionSchema as r, openMeldDaemonControlPlaneResponseSchema as s, OPENMELD_DAEMON_CANCEL_STOP_REQUESTED_AFTER_START_REASON_CODE as t, openMeldDaemonInterruptPayloadSchema as u, openMeldDaemonSyncRouteCatalogPayloadSchema as v, dispatchExecutionSchema as w, providerDispatchRuntimeContextSchema as x, openMeldDaemonSyncRouteCatalogRequestPayloadSchema as y, trimmedStringFromUnknown as z };
|
|
683
683
|
|
|
684
|
-
//# sourceMappingURL=control-plane-
|
|
684
|
+
//# sourceMappingURL=control-plane-QqGL-jtT.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-plane-rTE2rHZ5.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\"model.retired\",\n\t\"model.unavailable\",\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, openMeldDaemonSyncRouteC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B,SAAS;AACV,CAAC;AACD,MAAM,wCAAwC,6CAA6C,OAAO;CACjG,MAAM,QAAQ,mBAAmB;CACjC,SAAS;AACV,CAAC;AACD,MAAM,qCAAqC,6CAA6C,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"}
|
|
1
|
+
{"version":3,"file":"control-plane-QqGL-jtT.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 { nonEmptyTrimmedStringFromUnknown } from \"../protocol/shared.js\";\nimport { agentProfileIdSchema, profileWorkingDirectorySchema, profileWorkspaceModeSchema } from \"../protocol/profile.js\";\nimport { array, boolean, discriminatedUnion, enum as enumFactory, iso, literal, null as nullFactory, number, strictObject, string, union } from \"../../lazy-zod.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\"model.retired\",\n\t\"model.unavailable\",\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,0BAA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,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"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import { D as openMeldRootDir, R as runtimeDir, U as systemDir, t as OPENMELD_HOME_ENV_KEY, y as normalizeAccountKey } from "./paths-De9xdA2h.js";
|
|
4
4
|
import { t as isLoopbackHostname } from "./loopback-hostname-DHQPKq8N.js";
|
|
5
|
+
import { Ai as authProfileManagedRoleSchema, Ei as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE, Mi as profileCapabilitiesResponseSchema, Ni as profileErrorResponseSchema, Ti as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH } from "./runtime-transport-DyBmX7ds.js";
|
|
6
|
+
import { E as agentProfileIdSchema, b as skippedDaemonProfileSchema } from "./control-plane-QqGL-jtT.js";
|
|
5
7
|
import { n as runtimeAgentControllerConversationIdMappingSpecSchema, o as runtimeStreamingModeSchema, r as runtimeAgentControllerLaunchContractSchema, s as runtimeTransportModeSchema, u as conversationPolicySchema } from "./controller-contract-DAOCaefz.js";
|
|
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-DhSHCYvl.js";
|
|
8
|
-
import { E as agentProfileIdSchema, b as skippedDaemonProfileSchema } from "./control-plane-rTE2rHZ5.js";
|
|
8
|
+
import { $ as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_INTERVAL_MS$1, F as CATALOG_SYNC_SIGNAL_POLL_INTERVAL_MS$1, I as DAEMON_RUNTIME_CONTRACT_EPOCH$1, K as MIN_HEARTBEAT_INTERVAL_MS$1, L as DAEMON_STREAM_CONNECT_TIMEOUT_MS$1, P as CATALOG_SYNC_RETRY_INTERVAL_MS$1, R as DAEMON_STREAM_KEEPALIVE_INTERVAL_MS$1, U as HEARTBEAT_RESPONSE_TIMEOUT_MS$1, V as DEFAULT_HEARTBEAT_INTERVAL_MS$1, W as MAX_HEARTBEAT_INTERVAL_MS$1, X as PROVIDER_CONVERSATION_PROOF_SYNC_RETRY_INTERVAL_MS$1, Y as PROVIDER_CONVERSATION_PROOF_SYNC_INTERVAL_MS$1, Z as REGISTER_RESPONSE_TIMEOUT_MS$1, d as getAuthSessionState, et as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_RETRY_INTERVAL_MS$1, tt as RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS$1, z as DAEMON_STREAM_KEEPALIVE_PONG_TIMEOUT_MS$1 } from "./auth-session-CjxqNKvh.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-DHFJYc_o.js";
|
|
11
11
|
import { _ as resolveCliContext, g as readCliContextState, h as listCliContextStates, y as writeCliContextState } from "./lock-BMI00i2F.js";
|
|
@@ -91,7 +91,7 @@ function resolveOpenMeldAccountContext(input) {
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
async function resolveCurrentOpenMeldAccountContext() {
|
|
94
|
-
const { getAuthSessionMetadata } = await import("./auth-session-
|
|
94
|
+
const { getAuthSessionMetadata } = await import("./auth-session-CCLabxRT.js");
|
|
95
95
|
return resolveOpenMeldAccountContext({ session: await getAuthSessionMetadata().catch(() => null) });
|
|
96
96
|
}
|
|
97
97
|
function resolveHostKey(baseUrl) {
|
|
@@ -1294,4 +1294,4 @@ async function migrateLegacyDaemonDeviceId(input) {
|
|
|
1294
1294
|
//#endregion
|
|
1295
1295
|
export { touchDaemonCatalogSyncSignal as $, DEFAULT_RECONNECT_DELAY_MS as A, requireOpenMeldProfile 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, getOpenMeldProfileCapabilities as G, createOpenMeldAgentProfile as H, RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_INTERVAL_MS as I, resolveOpenMeldProfile as J, listOpenMeldProfiles 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, readDaemonCatalogSyncSignal 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, createOpenMeldHumanProfile as U, resolveOpenMeldProfileOrNull as V, deleteOpenMeldProfile as W, updateOpenMeldProfile as X, resolveOpenMeldProfileByIdOrName as Y, assertAdditionalHumanProfileCreationEnabled as Z, toErrorMessage as _, cachedDaemonRouteConfigSchema as _t, asRecord as a, buildAgentAuthenticationGuide as at, CATALOG_SYNC_SIGNAL_POLL_INTERVAL_MS as b, normalizeHeartbeatIntervalMs as c, buildHumanAuthenticationCard as ct, normalizeText as d, resolveAuthenticationGuidance as dt, alignSelectedOpenMeldProfileStorage as et, nowIsoString as f, resolveAuthenticationGuidanceFromError as ft, parseTransportMode as g, DAEMON_ROUTE_CATALOG_CACHE_SCHEMA_NAME as gt, parseStreamingMode as h, resolveCurrentOpenMeldAccountContext as ht, resolvePreferredDaemonDeviceId as i, setSelectedOpenMeldProfileId as it, HEARTBEAT_RESPONSE_TIMEOUT_MS as j, DAEMON_STREAM_KEEPALIVE_PONG_TIMEOUT_MS as k, normalizeNonNegativeInteger as l, createAuthenticationError as lt, parseRuntimeTransportMode as m, resolveAuthenticationReasonFromState as mt, ensureDaemonRuntimePaths as n, clearSelectedOpenMeldProfileId as nt, dirnamePath as o, buildAuthenticationStatusLabel as ot, parseContextIdMappingSpec as p, resolveAuthenticationGuidanceFromMessage as pt, primeOpenMeldProfilesSessionCache as q, resolveDaemonDeviceId as r, getSelectedOpenMeldProfileId as rt, emitRunLine as s, buildCommandAuthenticationPromptMessage as st, buildLedgerPaths as t, clearAllSelectedOpenMeldProfileIds as tt, normalizeOptionalText as u, extractAuthenticationPromptAction as ut, warnDaemonEvent as v, daemonRouteCatalogCacheSchema as vt, DAEMON_RUNTIME_CONTRACT_EPOCH as w, CONTROLLED_SHUTDOWN_REQUEST_TIMEOUT_MS as x, CATALOG_SYNC_RETRY_INTERVAL_MS as y, isSelectedOpenMeldProfileRequiredError as z };
|
|
1296
1296
|
|
|
1297
|
-
//# sourceMappingURL=daemon-device-id-
|
|
1297
|
+
//# sourceMappingURL=daemon-device-id-OMqh2F9_.js.map
|