openmeld 0.3.212 → 0.3.213

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.
Files changed (75) hide show
  1. package/dist/{add-me-membership-BwPpVKtA.js → add-me-membership-GbaxKxz-.js} +2 -2
  2. package/dist/{add-me-membership-BwPpVKtA.js.map → add-me-membership-GbaxKxz-.js.map} +1 -1
  3. package/dist/{agents-Y-UJ74By.js → agents-BNoz9DA5.js} +6 -6
  4. package/dist/{agents-Y-UJ74By.js.map → agents-BNoz9DA5.js.map} +1 -1
  5. package/dist/{api-client-foundation-CrQN8_-N.js → api-client-foundation-TEBOwWl1.js} +1 -1
  6. package/dist/{api-client-foundation-DjbtuE52.js → api-client-foundation-km8Ol1P4.js} +3 -3
  7. package/dist/{api-client-foundation-DjbtuE52.js.map → api-client-foundation-km8Ol1P4.js.map} +1 -1
  8. package/dist/auth-session-D6UDl3r3.js +4 -0
  9. package/dist/{auth-session-Dqz9X4F0.js → auth-session-DgHvRt5i.js} +61 -4
  10. package/dist/auth-session-DgHvRt5i.js.map +1 -0
  11. package/dist/{command-jgHbP21v.js → command-Dsa8gaFe.js} +10 -10
  12. package/dist/{command-jgHbP21v.js.map → command-Dsa8gaFe.js.map} +1 -1
  13. package/dist/computer-connection-D8tX14R_.js +120 -0
  14. package/dist/computer-connection-D8tX14R_.js.map +1 -0
  15. package/dist/{computer-connection-review-CzSpaHE0.js → computer-connection-review-CjOXBWiV.js} +6 -6
  16. package/dist/{computer-connection-review-CzSpaHE0.js.map → computer-connection-review-CjOXBWiV.js.map} +1 -1
  17. package/dist/{computer-disconnect-DNM7jvda.js → computer-disconnect-k6UVCsVF.js} +8 -8
  18. package/dist/{computer-disconnect-DNM7jvda.js.map → computer-disconnect-k6UVCsVF.js.map} +1 -1
  19. package/dist/{computer-setup-continuation-BqdhIAjT.js → computer-setup-continuation-DhY_sJis.js} +4 -4
  20. package/dist/{computer-setup-continuation-BqdhIAjT.js.map → computer-setup-continuation-DhY_sJis.js.map} +1 -1
  21. package/dist/{control-plane-PxntAyDq.js → control-plane-Bpu7g9Av.js} +2 -2
  22. package/dist/{control-plane-PxntAyDq.js.map → control-plane-Bpu7g9Av.js.map} +1 -1
  23. package/dist/{daemon-service-runtime-CWTlAhZY.js → daemon-service-runtime-CY6wdBe1.js} +94 -13
  24. package/dist/daemon-service-runtime-CY6wdBe1.js.map +1 -0
  25. package/dist/{daemon-service-update-coordinator-DcjOzGu1.js → daemon-service-update-coordinator-BcbbIDzC.js} +350 -164
  26. package/dist/daemon-service-update-coordinator-BcbbIDzC.js.map +1 -0
  27. package/dist/{dist--pb6JxqG.js → dist-Bsz_wafH.js} +1 -1
  28. package/dist/{dist-jsWwS864.js → dist-CAx_kxvt.js} +71 -32
  29. package/dist/dist-CAx_kxvt.js.map +1 -0
  30. package/dist/{elapsed-time-iFOSSUJo.js → elapsed-time-Do3uIV__.js} +8 -6
  31. package/dist/{elapsed-time-iFOSSUJo.js.map → elapsed-time-Do3uIV__.js.map} +1 -1
  32. package/dist/{installation-inventory-B0cbVLun.js → installation-inventory-C92AkQkA.js} +3 -3
  33. package/dist/{installation-inventory-B0cbVLun.js.map → installation-inventory-C92AkQkA.js.map} +1 -1
  34. package/dist/{local-components-H3SkJMC1.js → local-components-B6SCXZf9.js} +10 -2
  35. package/dist/local-components-B6SCXZf9.js.map +1 -0
  36. package/dist/{openmeld-B4gQCCex.js → openmeld-I4pLxQsY.js} +34 -23
  37. package/dist/openmeld-I4pLxQsY.js.map +1 -0
  38. package/dist/{openmeld-maintenance-worker-DtY_H7Bv.js → openmeld-maintenance-worker-D5VAO9GD.js} +5 -5
  39. package/dist/{openmeld-maintenance-worker-DtY_H7Bv.js.map → openmeld-maintenance-worker-D5VAO9GD.js.map} +1 -1
  40. package/dist/{openmeld-tools-update-join-DS_EIL5q.js → openmeld-tools-update-join-DsQdgYNw.js} +6 -4
  41. package/dist/{openmeld-tools-update-join-DS_EIL5q.js.map → openmeld-tools-update-join-DsQdgYNw.js.map} +1 -1
  42. package/dist/{openmeld-tools-update-process-frame-CbZPpc7D.js → openmeld-tools-update-process-frame-0X-t0Kjv.js} +2 -2
  43. package/dist/{openmeld-tools-update-process-frame-CbZPpc7D.js.map → openmeld-tools-update-process-frame-0X-t0Kjv.js.map} +1 -1
  44. package/dist/{openmeld-tools-update-process-frame-CcPLrSsw.js → openmeld-tools-update-process-frame-DX1Dc8VI.js} +1 -1
  45. package/dist/openmeld.js +4 -4
  46. package/dist/{prepare-session-executor-CWKqfuse.js → prepare-session-executor-BEzlM0hJ.js} +171 -18
  47. package/dist/prepare-session-executor-BEzlM0hJ.js.map +1 -0
  48. package/dist/{runtime-transport-BQAmcHwF.js → runtime-transport-DxISZdzf.js} +22 -5
  49. package/dist/runtime-transport-DxISZdzf.js.map +1 -0
  50. package/dist/{service-CTG3_X0o.js → service-Cev-7yAJ.js} +239 -50
  51. package/dist/service-Cev-7yAJ.js.map +1 -0
  52. package/dist/{service-account-authorization-Dq4LcAVa.js → service-account-authorization-AbowIr6n.js} +3 -3
  53. package/dist/{service-account-authorization-Dq4LcAVa.js.map → service-account-authorization-AbowIr6n.js.map} +1 -1
  54. package/dist/{service-account-control-BTR_X7QM.js → service-account-control-BV_tBiio.js} +6 -6
  55. package/dist/{service-account-control-BTR_X7QM.js.map → service-account-control-BV_tBiio.js.map} +1 -1
  56. package/dist/{service-control-capabilities-ChRe8hkw.js → service-control-capabilities-BGXPenm1.js} +1 -1
  57. package/dist/{service-control-capabilities-C5SxnBg2.js → service-control-capabilities-DUudAKoj.js} +2 -2
  58. package/dist/{service-control-capabilities-C5SxnBg2.js.map → service-control-capabilities-DUudAKoj.js.map} +1 -1
  59. package/dist/{upgrade-DAVEeo8B.js → upgrade-9h70HCQP.js} +10 -7
  60. package/dist/{upgrade-DAVEeo8B.js.map → upgrade-9h70HCQP.js.map} +1 -1
  61. package/dist/upgrade-CXgHeEKK.js +4 -0
  62. package/package.json +2 -2
  63. package/dist/auth-session-Dqz9X4F0.js.map +0 -1
  64. package/dist/auth-session-bRzDGlXy.js +0 -4
  65. package/dist/computer-connection-DvqsgYls.js +0 -81
  66. package/dist/computer-connection-DvqsgYls.js.map +0 -1
  67. package/dist/daemon-service-runtime-CWTlAhZY.js.map +0 -1
  68. package/dist/daemon-service-update-coordinator-DcjOzGu1.js.map +0 -1
  69. package/dist/dist-jsWwS864.js.map +0 -1
  70. package/dist/local-components-H3SkJMC1.js.map +0 -1
  71. package/dist/openmeld-B4gQCCex.js.map +0 -1
  72. package/dist/prepare-session-executor-CWKqfuse.js.map +0 -1
  73. package/dist/runtime-transport-BQAmcHwF.js.map +0 -1
  74. package/dist/service-CTG3_X0o.js.map +0 -1
  75. package/dist/upgrade-DKXu-1wO.js +0 -4
@@ -0,0 +1,120 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { ft as computerConnectionProgressObservationSchema, it as prepareSessionSnapshotSchema, nt as createPrepareSessionRequestSchema, pt as computerConnectionProgressPhaseSchema } from "./auth-session-DgHvRt5i.js";
4
+ import * as z$1 from "zod/v4";
5
+ //#region ../../packages/schemas/dist/computer-connection.js
6
+ const computerConnectionIntentSchema = z$1.strictObject({
7
+ expectedAccount: z$1.string().trim().min(1).max(256),
8
+ previousSessionIdentity: z$1.string().min(1).max(128)
9
+ });
10
+ const computerSetupVerboseOutputSchema = z$1.object({
11
+ type: z$1.string(),
12
+ code: z$1.string().min(1).max(256),
13
+ text: z$1.string().optional(),
14
+ message: z$1.string().optional(),
15
+ data: z$1.object({
16
+ state: z$1.string().optional(),
17
+ phase: computerConnectionProgressPhaseSchema.optional()
18
+ }).optional()
19
+ });
20
+ z$1.union([computerSetupVerboseOutputSchema, z$1.object({
21
+ t: z$1.string(),
22
+ c: z$1.string().min(1).max(256),
23
+ x: z$1.string().optional(),
24
+ m: z$1.string().optional(),
25
+ d: computerSetupVerboseOutputSchema.shape.data
26
+ }).transform((event) => ({
27
+ type: event.t,
28
+ code: event.c,
29
+ text: event.x,
30
+ message: event.m,
31
+ data: event.d
32
+ }))]);
33
+ const desktopComputerConnectionProgressSchema = computerConnectionProgressObservationSchema.extend({ expectedAccount: computerConnectionIntentSchema.shape.expectedAccount });
34
+ const computerConnectionReviewSchema = z$1.strictObject({
35
+ protocol: z$1.literal("computer-connection-v1"),
36
+ previousSessionIdentity: z$1.string().min(1).max(128),
37
+ account: z$1.strictObject({
38
+ id: z$1.string().min(1).max(256),
39
+ email: z$1.string().max(512).nullable()
40
+ }).nullable(),
41
+ existingConnection: z$1.strictObject({
42
+ deviceId: z$1.string().min(1),
43
+ runtimeLane: z$1.enum([
44
+ "prod",
45
+ "dev-local",
46
+ "canary"
47
+ ])
48
+ }).nullable()
49
+ });
50
+ const desktopComputerDisconnectRequestSchema = z$1.strictObject({
51
+ expectedAccount: computerConnectionIntentSchema.shape.expectedAccount,
52
+ expectedConnection: computerConnectionReviewSchema.shape.existingConnection.unwrap().optional()
53
+ });
54
+ const desktopComputerConnectionRequestSchema = createPrepareSessionRequestSchema.pick({
55
+ humanProfileId: true,
56
+ targetSpaceId: true,
57
+ sourceNavigationAction: true,
58
+ connectedComputerId: true
59
+ }).extend({
60
+ expectedAccount: computerConnectionIntentSchema.shape.expectedAccount,
61
+ resetThisComputer: z$1.boolean().optional()
62
+ });
63
+ const desktopComputerConnectionResultSchema = z$1.discriminatedUnion("status", [
64
+ z$1.strictObject({
65
+ status: z$1.literal("failed"),
66
+ message: z$1.string().min(1),
67
+ diagnosticId: z$1.string().min(1),
68
+ diagnosticsPath: z$1.string().min(1).optional()
69
+ }),
70
+ z$1.strictObject({
71
+ status: z$1.literal("reused"),
72
+ connection: computerConnectionReviewSchema.shape.existingConnection.unwrap()
73
+ }),
74
+ z$1.strictObject({
75
+ status: z$1.literal("completed"),
76
+ snapshot: prepareSessionSnapshotSchema
77
+ }),
78
+ z$1.strictObject({ status: z$1.literal("cancelled") })
79
+ ]);
80
+ const desktopComputerConnectionOperationSchema = z$1.strictObject({
81
+ operationId: z$1.string().min(1).max(128),
82
+ request: desktopComputerConnectionRequestSchema,
83
+ status: z$1.enum(["pending", "settled"]),
84
+ progress: desktopComputerConnectionProgressSchema.nullable(),
85
+ result: desktopComputerConnectionResultSchema.nullable(),
86
+ errorMessage: z$1.string().min(1).max(4096).nullable()
87
+ });
88
+ const desktopComputerDisconnectPhaseSchema = z$1.enum([
89
+ "checking",
90
+ "waiting_for_confirmation",
91
+ "disconnecting"
92
+ ]);
93
+ const desktopComputerDisconnectResultSchema = z$1.union([
94
+ z$1.strictObject({ status: z$1.literal("disconnected") }),
95
+ z$1.strictObject({ status: z$1.literal("cancelled") }),
96
+ z$1.strictObject({
97
+ status: z$1.enum([
98
+ "connection_changed",
99
+ "failed",
100
+ "unconfirmed"
101
+ ]),
102
+ code: z$1.string().min(1).max(256),
103
+ message: z$1.string().min(1).max(4096),
104
+ diagnosticId: z$1.string().min(1).max(128).optional(),
105
+ diagnosticsPath: z$1.string().min(1).max(4096).optional()
106
+ })
107
+ ]);
108
+ const desktopComputerDisconnectOperationSchema = z$1.strictObject({
109
+ kind: z$1.literal("disconnect"),
110
+ operationId: desktopComputerConnectionOperationSchema.shape.operationId,
111
+ request: desktopComputerDisconnectRequestSchema,
112
+ status: z$1.enum(["pending", "settled"]),
113
+ phase: desktopComputerDisconnectPhaseSchema,
114
+ result: desktopComputerDisconnectResultSchema.nullable()
115
+ });
116
+ z$1.union([desktopComputerConnectionOperationSchema, desktopComputerDisconnectOperationSchema]);
117
+ //#endregion
118
+ export { computerConnectionReviewSchema as n, computerConnectionIntentSchema as t };
119
+
120
+ //# sourceMappingURL=computer-connection-D8tX14R_.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computer-connection-D8tX14R_.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, desktopComputerOperationSchema };\n\n//# sourceMappingURL=computer-connection.js.map"],"mappings":";;;;;AAIA,MAAM,iCAAiC,IAAI,aAAa;CACvD,iBAAiB,IAAI,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG;CACnD,yBAAyB,IAAI,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG;AACrD,CAAC;AACD,MAAM,mCAAmC,IAAI,OAAO;CACnD,MAAM,IAAI,OAAO;CACjB,MAAM,IAAI,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG;CACjC,MAAM,IAAI,OAAO,CAAC,CAAC,SAAS;CAC5B,SAAS,IAAI,OAAO,CAAC,CAAC,SAAS;CAC/B,MAAM,IAAI,OAAO;EAChB,OAAO,IAAI,OAAO,CAAC,CAAC,SAAS;EAC7B,OAAO,sCAAsC,SAAS;CACvD,CAAC,CAAC,CAAC,SAAS;AACb,CAAC;AACiC,IAAI,MAAM,CAAC,kCAAkC,IAAI,OAAO;CACzF,GAAG,IAAI,OAAO;CACd,GAAG,IAAI,OAAO,CAAC,CAAC,IAAI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CAAC,CAAC,IAAI,IAAI;EACrC,cAAc,IAAI,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,SAAS;EACpD,iBAAiB,IAAI,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,SAAS;CACzD,CAAC;AACF,CAAC;AACD,MAAM,2CAA2C,IAAI,aAAa;CACjE,MAAM,IAAI,QAAQ,YAAY;CAC9B,aAAa,yCAAyC,MAAM;CAC5D,SAAS;CACT,QAAQ,IAAI,KAAK,CAAC,WAAW,SAAS,CAAC;CACvC,OAAO;CACP,QAAQ,sCAAsC,SAAS;AACxD,CAAC;AACsC,IAAI,MAAM,CAAC,0CAA0C,wCAAwC,CAAC"}
@@ -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-Dqz9X4F0.js";
4
- import { n as computerConnectionReviewSchema } from "./computer-connection-DvqsgYls.js";
5
- import { Vt as readDaemonServiceContract } from "./daemon-service-runtime-CWTlAhZY.js";
6
- import { n as resolveServiceAccountIdentity } from "./service-account-authorization-Dq4LcAVa.js";
7
- import { t as readServiceControlCapabilities } from "./service-control-capabilities-C5SxnBg2.js";
3
+ import { d as getAuthSessionState, o as buildStoredAuthSessionIdentity, u as getAuthSessionMetadata } from "./auth-session-DgHvRt5i.js";
4
+ import { n as computerConnectionReviewSchema } from "./computer-connection-D8tX14R_.js";
5
+ import { Vt as readDaemonServiceContract } from "./daemon-service-runtime-CY6wdBe1.js";
6
+ import { n as resolveServiceAccountIdentity } from "./service-account-authorization-AbowIr6n.js";
7
+ import { t as readServiceControlCapabilities } from "./service-control-capabilities-DUudAKoj.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-CzSpaHE0.js.map
39
+ //# sourceMappingURL=computer-connection-review-CjOXBWiV.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"computer-connection-review-CzSpaHE0.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
+ {"version":3,"file":"computer-connection-review-CjOXBWiV.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,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { Ra as resolveRuntimeContext } from "./daemon-service-update-coordinator-DcjOzGu1.js";
4
- import { l as getAuthSession, o as buildStoredAuthSessionIdentity, s as clearAuthSession, u as getAuthSessionMetadata } from "./auth-session-Dqz9X4F0.js";
5
- import { t as computerConnectionIntentSchema } from "./computer-connection-DvqsgYls.js";
6
- import { Vt as readDaemonServiceContract, r as readCurrentDaemonRuntimeContext } from "./daemon-service-runtime-CWTlAhZY.js";
7
- import { Gt as createPresenter } from "./elapsed-time-iFOSSUJo.js";
3
+ import { za as resolveRuntimeContext } from "./daemon-service-update-coordinator-BcbbIDzC.js";
4
+ import { l as getAuthSession, o as buildStoredAuthSessionIdentity, s as clearAuthSession, u as getAuthSessionMetadata } from "./auth-session-DgHvRt5i.js";
5
+ import { t as computerConnectionIntentSchema } from "./computer-connection-D8tX14R_.js";
6
+ import { Vt as readDaemonServiceContract, r as readCurrentDaemonRuntimeContext } from "./daemon-service-runtime-CY6wdBe1.js";
7
+ import { Gt as createPresenter } from "./elapsed-time-Do3uIV__.js";
8
8
  import { K as withDaemonServiceRunLock } from "./daemon-state-C37ZtIZK.js";
9
- import { n as resolveServiceAccountIdentity } from "./service-account-authorization-Dq4LcAVa.js";
10
- import { t as runServiceAccountControl } from "./service-account-control-BTR_X7QM.js";
9
+ import { n as resolveServiceAccountIdentity } from "./service-account-authorization-AbowIr6n.js";
10
+ import { t as runServiceAccountControl } from "./service-account-control-BV_tBiio.js";
11
11
  //#region src/commands/computer-disconnect.ts
12
12
  async function runComputerDisconnect(request, view) {
13
13
  const presenter = createPresenter(await resolveRuntimeContext({ view }));
@@ -44,4 +44,4 @@ async function disconnectComputer(request) {
44
44
  //#endregion
45
45
  export { runComputerDisconnect };
46
46
 
47
- //# sourceMappingURL=computer-disconnect-DNM7jvda.js.map
47
+ //# sourceMappingURL=computer-disconnect-k6UVCsVF.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"computer-disconnect-DNM7jvda.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"}
1
+ {"version":3,"file":"computer-disconnect-k6UVCsVF.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"}
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { m as hasPendingComputerSetupContinuation, x as resumeInterruptedComputerSetup } from "./auth-session-Dqz9X4F0.js";
4
- import { Gt as createPresenter } from "./elapsed-time-iFOSSUJo.js";
5
- import { A as mintPrepareSessionReconnectToken, D as recoverInterruptedComputerAuthHandoff, i as runPrepareSessionExecutor } from "./prepare-session-executor-CWKqfuse.js";
3
+ import { m as hasPendingComputerSetupContinuation, x as resumeInterruptedComputerSetup } from "./auth-session-DgHvRt5i.js";
4
+ import { Gt as createPresenter } from "./elapsed-time-Do3uIV__.js";
5
+ import { A as mintPrepareSessionReconnectToken, D as recoverInterruptedComputerAuthHandoff, i as runPrepareSessionExecutor } from "./prepare-session-executor-BEzlM0hJ.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-BqdhIAjT.js.map
42
+ //# sourceMappingURL=computer-setup-continuation-DhY_sJis.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"computer-setup-continuation-BqdhIAjT.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
+ {"version":3,"file":"computer-setup-continuation-DhY_sJis.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,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { c as agentControllerConversationRefSchema, s as runtimeTransportModeSchema } from "./controller-contract-pe3_Re-c.js";
4
- import { A as discriminatedUnion, D as array, I as literal, M as enumFactory, O as boolean, P as iso, R as nullFactory, U as strictObject, W as string, q as union, z as number } from "./local-components-H3SkJMC1.js";
4
+ import { B as number, F as iso, G as string, J as union, L as literal, N as enumFactory, O as array, W as strictObject, j as discriminatedUnion, k as boolean, z as nullFactory } from "./local-components-B6SCXZf9.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();
@@ -664,4 +664,4 @@ const openMeldDaemonControlPlaneResponseSchema = discriminatedUnion("code", [
664
664
  //#endregion
665
665
  export { profileWorkspaceModeSchema as A, normalizeOptionalWorkingDirectory as C, profileLabelSchema as D, profileKindSchema as E, trimmedStringFromUnknown as F, finiteIntegerNumber as M, nonEmptyTrimmedStringFromUnknown as N, profileSchema as O, optionalBooleanQuerySchema as P, agentProfileIdSchema as S, profileHandleSchema as T, providerDispatchRuntimeContextSchema as _, openMeldDaemonControlPlaneResponseSchema as a, dispatchExecutionSchema as b, openMeldDaemonManageLocalAgentInstallationPayloadSchema as c, openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema as d, openMeldDaemonSetProfileWorkspacePayloadSchema as f, skippedDaemonProfileSchema as g, openMeldDaemonSyncRouteCatalogRequestPayloadSchema as h, openMeldDaemonControlPlaneRequestSchema as i, uuidProfileIdSchema as j, profileWorkingDirectorySchema as k, openMeldDaemonManageLocalAgentInstallationRequestPayloadSchema as l, openMeldDaemonSyncRouteCatalogPayloadSchema as m, openMeldDaemonCancelPayloadSchema as n, openMeldDaemonInterruptPayloadSchema as o, openMeldDaemonSetProfileWorkspaceRequestPayloadSchema as p, openMeldDaemonCancelRequestPayloadSchema as r, openMeldDaemonInterruptRequestPayloadSchema as s, localAgentInstallationOptionSchema as t, openMeldDaemonSetLocalAgentEnabledPayloadSchema as u, bootstrapTemplateFactsSchema as v, openMeldRuntimeProfileIdSchema as w, MAX_PROFILE_WORKING_DIRECTORY_LENGTH as x, conversationExecutionStateSchema as y };
666
666
 
667
- //# sourceMappingURL=control-plane-PxntAyDq.js.map
667
+ //# sourceMappingURL=control-plane-Bpu7g9Av.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"control-plane-PxntAyDq.js","names":[],"sources":["../../../packages/schemas/dist/schemas/protocol/shared.js","../../../packages/schemas/dist/schemas/protocol/profile.js","../../../packages/schemas/dist/schemas/daemon/conversation-lifecycle.js","../../../packages/schemas/dist/schemas/daemon/conversation-execution-state.js","../../../packages/schemas/dist/schemas/daemon/provider-runtime-context.js","../../../packages/schemas/dist/schemas/daemon/control-plane.js"],"sourcesContent":["import * as z$1 from \"zod/v4\";\n//#region src/schemas/protocol/shared.ts\nconst trimmedStringFromUnknown = (value) => String(value ?? \"\").trim();\nconst nonEmptyTrimmedStringFromUnknown = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1));\nconst finiteIntegerNumber = z$1.number().int().finite();\nconst optionalBooleanQuerySchema = z$1.preprocess((value) => {\n\tif (value === void 0 || value === null || value === \"\") return;\n\tif (typeof value === \"boolean\") return value;\n\tconst normalized = String(value).trim().toLowerCase();\n\tif (normalized === \"true\" || normalized === \"1\") return true;\n\tif (normalized === \"false\" || normalized === \"0\") return false;\n\treturn value;\n}, z$1.boolean().optional());\n//#endregion\nexport { finiteIntegerNumber, nonEmptyTrimmedStringFromUnknown, optionalBooleanQuerySchema, trimmedStringFromUnknown };\n\n//# sourceMappingURL=shared.js.map"," \nimport { trimmedStringFromUnknown } from \"./shared.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/protocol/profile.ts\nconst PROFILE_KIND_VALUES = [\n\t\"human\",\n\t\"agent\",\n\t\"system\"\n];\nconst PROFILE_HANDLE_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/;\nconst UUID_PROFILE_ID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;\nconst AGENT_PROFILE_ID_PATTERN = /^agt_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;\nconst MAX_PROFILE_HANDLE_LENGTH = 128;\nconst normalizeOptionalProfileLabel = (value) => {\n\tconst normalized = trimmedStringFromUnknown(value);\n\tif (normalized.length === 0) return;\n\treturn normalized.slice(0, 64);\n};\nconst normalizeOptionalProfileHandle = (value) => {\n\tconst normalized = trimmedStringFromUnknown(value);\n\tif (normalized.length === 0) return;\n\treturn profileHandleSchema.safeParse(normalized).success ? normalized : void 0;\n};\nconst MAX_PROFILE_WORKING_DIRECTORY_LENGTH = 4096;\nconst profileWorkspaceModeSchema = z$1.enum([\"openmeld_managed\", \"custom\"]);\nconst profileWorkingDirectorySchema = z$1.string().min(1).max(MAX_PROFILE_WORKING_DIRECTORY_LENGTH).refine((value) => !value.includes(\"\\0\"), { message: \"workingDirectory must not contain NUL bytes\" });\nconst normalizeOptionalWorkingDirectory = (value) => {\n\tif (typeof value !== \"string\") return;\n\tconst parsed = profileWorkingDirectorySchema.safeParse(value);\n\treturn parsed.success ? parsed.data : void 0;\n};\nconst MAX_AVATAR_URL_LENGTH = 2048;\nconst HTTPS_URL_PATTERN = /^https?:\\/\\//i;\n/**\n* Avatar URLs are a public identity field that travels with the Profile across\n* domains. Only http(s) URLs are accepted so the value is safe to render as an\n* `<img src>` on web clients (rejects javascript:/data: injection vectors).\n*/\nconst normalizeOptionalAvatarUrl = (value) => {\n\tconst normalized = trimmedStringFromUnknown(value);\n\tif (normalized.length === 0 || normalized.length > 2048) return;\n\treturn HTTPS_URL_PATTERN.test(normalized) ? normalized : void 0;\n};\n/** Unknown or invalid kinds are normalized to \"agent\" for wire compatibility. */\nconst profileKindWithFallbackSchema = z$1.preprocess((value) => {\n\tconst parsed = z$1.enum(PROFILE_KIND_VALUES).safeParse(value);\n\treturn parsed.success ? parsed.data : \"agent\";\n}, z$1.enum(PROFILE_KIND_VALUES));\nconst profileKindSchema = z$1.enum(PROFILE_KIND_VALUES);\nconst profileLabelSchema = z$1.string().min(1).max(64);\nconst profileHandleSchema = z$1.string().min(1).max(128).regex(PROFILE_HANDLE_PATTERN);\nconst genericProfileIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64));\nconst uuidProfileIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64).regex(UUID_PROFILE_ID_PATTERN));\nconst agentProfileIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64).regex(AGENT_PROFILE_ID_PATTERN));\n/**\n* Runtime OpenMeld profile IDs are auth-backed and follow these rules:\n* - human/system profiles use a UUID\n* - agent profiles use agt_<UUID>\n*\n* Generic test fixtures or legacy intermediary strings should not reuse this\n* schema unless they represent a real runtime profile identity.\n*/\nconst openMeldRuntimeProfileIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64).refine((value) => UUID_PROFILE_ID_PATTERN.test(value) || AGENT_PROFILE_ID_PATTERN.test(value), \"Invalid OpenMeld runtime profile ID\"));\n/**\n* Generic wire/profile normalization rules:\n* - trims and validates profileId as a non-empty string\n* - defaults missing/invalid kind to \"agent\"\n* - truncates profileName/owner labels to max length\n* - preserves agent workingDirectory verbatim when it is a valid string\n* - keeps owner only for agent profiles\n*\n* This schema intentionally stays broader than auth-backed runtime IDs because\n* protocol/system messages may still use internal synthetic profile IDs such as\n* `openmeld-system`.\n*/\nconst profileSchema = z$1.object({\n\tkind: profileKindWithFallbackSchema.optional(),\n\tprofileId: genericProfileIdSchema,\n\tprofileHandle: z$1.unknown().optional(),\n\tprofileName: z$1.unknown().optional(),\n\towner: z$1.unknown().optional(),\n\townerName: z$1.unknown().optional(),\n\tagentControllerRef: z$1.unknown().optional(),\n\tagentControllerConversationId: z$1.unknown().optional(),\n\tworkingDirectory: z$1.unknown().optional(),\n\tavatarUrl: z$1.unknown().optional()\n}).transform((value) => {\n\tconst kind = value.kind ?? \"agent\";\n\tconst profileHandle = normalizeOptionalProfileHandle(value.profileHandle);\n\tconst profileName = normalizeOptionalProfileLabel(value.profileName);\n\tconst owner = kind === \"agent\" ? normalizeOptionalProfileLabel(value.owner) : void 0;\n\tconst ownerName = kind === \"agent\" ? normalizeOptionalProfileLabel(value.ownerName) : void 0;\n\tconst agentControllerRef = kind === \"agent\" ? normalizeOptionalProfileLabel(value.agentControllerRef) : void 0;\n\tconst agentControllerConversationId = kind === \"agent\" ? normalizeOptionalProfileLabel(value.agentControllerConversationId) : void 0;\n\tconst workingDirectory = kind === \"agent\" ? normalizeOptionalWorkingDirectory(value.workingDirectory) : void 0;\n\tconst avatarUrl = normalizeOptionalAvatarUrl(value.avatarUrl);\n\treturn {\n\t\tkind,\n\t\tprofileId: value.profileId,\n\t\t...profileHandle ? { profileHandle } : {},\n\t\t...profileName ? { profileName } : {},\n\t\t...owner ? { owner } : {},\n\t\t...ownerName ? { ownerName } : {},\n\t\t...agentControllerRef ? { agentControllerRef } : {},\n\t\t...agentControllerConversationId ? { agentControllerConversationId } : {},\n\t\t...workingDirectory ? { workingDirectory } : {},\n\t\t...avatarUrl ? { avatarUrl } : {}\n\t};\n});\n//#endregion\nexport { MAX_AVATAR_URL_LENGTH, MAX_PROFILE_HANDLE_LENGTH, MAX_PROFILE_WORKING_DIRECTORY_LENGTH, agentProfileIdSchema, genericProfileIdSchema, normalizeOptionalWorkingDirectory, openMeldRuntimeProfileIdSchema, profileHandleSchema, profileKindSchema, profileLabelSchema, profileSchema, profileWorkingDirectorySchema, profileWorkspaceModeSchema, uuidProfileIdSchema };\n\n//# sourceMappingURL=profile.js.map","import * as z$1 from \"zod/v4\";\n//#region src/schemas/daemon/conversation-lifecycle.ts\nconst conversationBootstrapReasonSchema = z$1.enum([\n\t\"missing_bootstrap_state\",\n\t\"compatibility_recreate\",\n\t\"template_changed\",\n\t\"idle_stale\",\n\t\"dispatch_count_stale\",\n\t\"context_healed\",\n\t\"context_replaced\"\n]);\nconst localRuntimeContextReasonSchema = z$1.enum([\n\t\"first_local_runtime_context\",\n\t\"workspace_changed\",\n\t\"transport_mode_changed\",\n\t\"policy_changed\",\n\t\"execution_state_missing\",\n\t\"controller_changed\"\n]);\nconst agentControllerConversationResumePlanBlockedReasonSchema = z$1.enum([\"controller_changed\"]);\nconst agentControllerConversationResumePlanSchema = z$1.discriminatedUnion(\"status\", [\n\tz$1.strictObject({ status: z$1.literal(\"not_bound\") }),\n\tz$1.strictObject({ status: z$1.literal(\"continue_existing\") }),\n\tz$1.strictObject({\n\t\tstatus: z$1.literal(\"blocked\"),\n\t\treason: agentControllerConversationResumePlanBlockedReasonSchema\n\t})\n]);\nconst localRuntimeContextPlanSchema = z$1.strictObject({\n\tstatus: z$1.enum([\"reuse\", \"recreate\"]),\n\treason: z$1.union([localRuntimeContextReasonSchema, z$1.null()])\n});\nconst conversationBootstrapSchema = z$1.discriminatedUnion(\"status\", [z$1.strictObject({\n\treason: z$1.null(),\n\tstatus: z$1.literal(\"applied\")\n}), z$1.strictObject({\n\treason: conversationBootstrapReasonSchema,\n\tstatus: z$1.literal(\"pending\")\n})]);\nconst nextDispatchPlanSchema = z$1.strictObject({\n\tagentControllerConversationResume: agentControllerConversationResumePlanSchema,\n\tlocalRuntimeContext: localRuntimeContextPlanSchema,\n\tbootstrap: conversationBootstrapSchema\n});\nconst agentControllerConversationResumeSchema = z$1.discriminatedUnion(\"status\", [\n\tz$1.strictObject({ status: z$1.literal(\"not_bound\") }),\n\tz$1.strictObject({ status: z$1.literal(\"continued\") }),\n\tz$1.strictObject({ status: z$1.literal(\"replaced_by_provider\") })\n]);\nconst localRuntimeContextExecutionSchema = z$1.strictObject({\n\tstatus: z$1.enum([\"reused\", \"recreated\"]),\n\treason: z$1.union([localRuntimeContextReasonSchema, z$1.null()])\n});\nconst dispatchExecutionSchema = z$1.strictObject({\n\tagentControllerConversationResume: agentControllerConversationResumeSchema,\n\tlocalRuntimeContext: localRuntimeContextExecutionSchema,\n\tbootstrap: conversationBootstrapSchema\n});\n//#endregion\nexport { agentControllerConversationResumePlanBlockedReasonSchema, agentControllerConversationResumePlanSchema, agentControllerConversationResumeSchema, conversationBootstrapReasonSchema, conversationBootstrapSchema, dispatchExecutionSchema, localRuntimeContextExecutionSchema, localRuntimeContextPlanSchema, localRuntimeContextReasonSchema, nextDispatchPlanSchema };\n\n//# sourceMappingURL=conversation-lifecycle.js.map","import { profileWorkingDirectorySchema } from \"../protocol/profile.js\";\nimport { agentControllerConversationRefSchema } from \"./conversation-contract.js\";\nimport { conversationBootstrapReasonSchema } from \"./conversation-lifecycle.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/daemon/conversation-execution-state.ts\nconst ISO_DATE_TIME_SCHEMA = z$1.iso.datetime({ offset: true });\nconst bootstrapTemplateFactsSchema = z$1.strictObject({\n\ttemplateVersion: z$1.string().min(1),\n\tcontentFingerprint: z$1.string().min(1)\n});\nconst conversationExecutionStateSchema = z$1.strictObject({\n\tagentContextLookupKey: z$1.string().min(1),\n\tactiveContextId: z$1.string().min(1).nullable(),\n\tlastResolvedAgentControllerConversation: agentControllerConversationRefSchema.optional(),\n\tlastRuntimeWorkspacePath: profileWorkingDirectorySchema.optional(),\n\truntimeWorkspaceFingerprint: z$1.string().min(1),\n\tbootstrapLastAppliedAt: ISO_DATE_TIME_SCHEMA.optional(),\n\tbootstrapLastActivatedAt: ISO_DATE_TIME_SCHEMA.optional(),\n\tdispatchesSinceBootstrapApplied: z$1.number().int().min(0),\n\tlastAppliedTemplateVersion: z$1.string().min(1).optional(),\n\tlastAppliedContentFingerprint: z$1.string().min(1).optional(),\n\tpendingBootstrapReason: conversationBootstrapReasonSchema.optional(),\n\tupdatedAt: ISO_DATE_TIME_SCHEMA\n});\n//#endregion\nexport { bootstrapTemplateFactsSchema, conversationExecutionStateSchema };\n\n//# sourceMappingURL=conversation-execution-state.js.map","import { MAX_PROFILE_WORKING_DIRECTORY_LENGTH } from \"../protocol/profile.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/daemon/provider-runtime-context.ts\nconst providerDispatchRuntimeContextSchema = z$1.strictObject({ providerRuntimeWorkingDirectory: z$1.string().trim().min(1).max(MAX_PROFILE_WORKING_DIRECTORY_LENGTH).refine((value) => !value.includes(\"\\0\"), { message: \"providerRuntimeWorkingDirectory must not contain NUL bytes\" }) });\n//#endregion\nexport { providerDispatchRuntimeContextSchema };\n\n//# sourceMappingURL=provider-runtime-context.js.map","import { array, boolean, discriminatedUnion, enum as enumFactory, iso, literal, null as nullFactory, number, strictObject, string, union } from \"../../lazy-zod.js\";\nimport { nonEmptyTrimmedStringFromUnknown } from \"../protocol/shared.js\";\nimport { agentProfileIdSchema, profileWorkingDirectorySchema, profileWorkspaceModeSchema } from \"../protocol/profile.js\";\nimport { runtimeTransportModeSchema } from \"./controller-contract.js\";\nimport { conversationExecutionStateSchema } from \"./conversation-execution-state.js\";\nimport { providerDispatchRuntimeContextSchema } from \"./provider-runtime-context.js\";\n//#region src/schemas/daemon/control-plane.ts\nconst OPENMELD_DAEMON_CONTROL_PLANE_SCHEMA_VERSION = 1;\nconst openMeldDaemonControlPlaneCommandSchema = enumFactory([\n\t\"status\",\n\t\"health\",\n\t\"history\",\n\t\"interrupt\",\n\t\"cancel\",\n\t\"conversation_execution_status\",\n\t\"request_agent_activity_sync\",\n\t\"sync_route_catalog\",\n\t\"set_local_agent_enabled\",\n\t\"set_profile_workspace\",\n\t\"service_update_readiness\",\n\t\"account_control_capabilities\",\n\t\"shutdown\"\n]);\nconst openMeldDaemonHealthStateSchema = enumFactory([\n\t\"ok\",\n\t\"degraded\",\n\t\"down\"\n]);\nconst openMeldDaemonRuntimeHealthStateSchema = enumFactory([\n\t\"healthy\",\n\t\"idle\",\n\t\"suspect\",\n\t\"down\"\n]);\nconst openMeldDaemonControlTargetSelectorSchema = discriminatedUnion(\"by\", [strictObject({\n\tby: literal(\"dispatch\"),\n\tdispatchId: string().min(1)\n}), strictObject({\n\tby: literal(\"task\"),\n\ttaskId: string().min(1)\n})]);\nconst openMeldDaemonInterruptRequestPayloadSchema = strictObject({\n\truntimeCoordinatorExecutionId: string().min(1).optional(),\n\ttarget: openMeldDaemonControlTargetSelectorSchema,\n\tmode: enumFactory([\"graceful\", \"force\"]).optional(),\n\treason: string().min(1).optional()\n});\nconst openMeldDaemonCancelRequestPayloadSchema = strictObject({\n\truntimeCoordinatorExecutionId: string().min(1).optional(),\n\ttarget: openMeldDaemonControlTargetSelectorSchema,\n\treason: string().min(1).optional()\n});\nconst openMeldDaemonShutdownRequestPayloadSchema = strictObject({\n\taccountAdmissionId: string().uuid().optional(),\n\tmode: enumFactory([\"graceful\", \"force\"]).default(\"graceful\"),\n\tgracePeriodMs: number().int().nonnegative().default(5e3)\n});\nconst openMeldDaemonServiceUpdateReadinessPayloadSchema = strictObject({\n\tacceptedWakeCount: number().int().nonnegative(),\n\tsafeToSwitch: boolean(),\n\tunacknowledgedResultCount: number().int().nonnegative()\n});\nconst openMeldDaemonConversationExecutionControllerLaunchStatusSchema = enumFactory([\n\t\"missing\",\n\t\"disabled\",\n\t\"repair_required\",\n\t\"ready\"\n]);\nconst nullableAgentControllerRefSchema = union([string().min(1), nullFactory()]);\nconst nullableNonEmptyStringSchema = union([string().min(1), nullFactory()]);\nconst openMeldDaemonConversationExecutionStatusRequestPayloadSchema = strictObject({\n\tboundAgentControllerRef: nullableAgentControllerRefSchema,\n\tagentControllerConversationId: nullableNonEmptyStringSchema,\n\tagentControllerRef: string().min(1),\n\tspaceId: nonEmptyTrimmedStringFromUnknown,\n\ttargetProfileId: agentProfileIdSchema,\n\ttransportMode: runtimeTransportModeSchema,\n\tvalidate: boolean()\n});\nconst openMeldDaemonSyncRouteCatalogRequestPayloadSchema = strictObject({ reason: string().min(1) });\nconst openMeldDaemonRequestAgentActivitySyncRequestPayloadSchema = strictObject({ reason: string().trim().min(1).max(128) });\nconst openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema = strictObject({\n\tagentId: string().trim().min(1).max(256),\n\tenabled: boolean()\n});\nconst localAgentInstallationOptionSchema = strictObject({\n\tinstallationId: string().trim().min(1).max(256),\n\tname: string().trim().min(1).max(256),\n\tdetails: string().trim().min(1).max(256),\n\tselected: boolean()\n});\nconst openMeldDaemonManageLocalAgentInstallationRequestPayloadSchema = discriminatedUnion(\"operation\", [strictObject({\n\tagentId: string().trim().min(1).max(256),\n\toperation: literal(\"list\")\n}), strictObject({\n\tagentId: string().trim().min(1).max(256),\n\tinstallationId: string().trim().min(1).max(256),\n\toperation: literal(\"select\")\n})]);\nconst openMeldDaemonSetProfileWorkspaceRequestPayloadSchema = strictObject({\n\ttargetProfileId: agentProfileIdSchema,\n\tworkspaceMode: profileWorkspaceModeSchema,\n\tworkspacePath: profileWorkingDirectorySchema.optional()\n}).superRefine((value, context) => {\n\tif (value.workspaceMode === \"custom\" && !value.workspacePath) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"workspacePath is required for a custom profile workspace\",\n\t\tpath: [\"workspacePath\"]\n\t});\n\tif (value.workspaceMode === \"openmeld_managed\" && value.workspacePath) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"workspacePath must be omitted for an OpenMeld-managed profile workspace\",\n\t\tpath: [\"workspacePath\"]\n\t});\n});\nconst openMeldDaemonConversationExecutionRuntimeWorkspaceReadySchema = strictObject({\n\tconfigPath: string().min(1),\n\tconfiguredWorkspacePath: string().min(1),\n\tfingerprint: string().min(1),\n\tpath: string().min(1),\n\treasonCode: nullFactory(),\n\treasonText: nullFactory(),\n\truntimeContext: providerDispatchRuntimeContextSchema,\n\tstatus: literal(\"ready\"),\n\tworkspaceMode: profileWorkspaceModeSchema\n});\nconst openMeldDaemonConversationExecutionRuntimeWorkspaceMissingSchema = strictObject({\n\tconfigPath: string().min(1),\n\tconfiguredWorkspacePath: nullFactory(),\n\tfingerprint: nullFactory(),\n\tpath: nullFactory(),\n\treasonCode: literal(\"workspace.missing\"),\n\treasonText: string().min(1),\n\truntimeContext: nullFactory(),\n\tstatus: literal(\"missing\"),\n\tworkspaceMode: nullFactory()\n});\nconst openMeldDaemonConversationExecutionRuntimeWorkspaceInvalidSchema = strictObject({\n\tconfigPath: string().min(1),\n\tconfiguredWorkspacePath: union([string().min(1), nullFactory()]),\n\tfingerprint: nullFactory(),\n\tpath: nullFactory(),\n\treasonCode: literal(\"workspace.invalid\"),\n\treasonText: string().min(1),\n\truntimeContext: nullFactory(),\n\tstatus: literal(\"invalid\"),\n\tworkspaceMode: union([profileWorkspaceModeSchema, nullFactory()])\n});\nconst openMeldDaemonConversationExecutionRuntimeWorkspaceSchema = discriminatedUnion(\"status\", [\n\topenMeldDaemonConversationExecutionRuntimeWorkspaceReadySchema,\n\topenMeldDaemonConversationExecutionRuntimeWorkspaceMissingSchema,\n\topenMeldDaemonConversationExecutionRuntimeWorkspaceInvalidSchema\n]);\nconst openMeldDaemonConversationExecutionLocalRuntimeContextStatusSchema = enumFactory([\n\t\"missing\",\n\t\"mismatch\",\n\t\"ready\"\n]);\nconst openMeldDaemonProviderConversationProofStatusSchema = enumFactory([\n\t\"failed\",\n\t\"not_applicable\",\n\t\"not_run\",\n\t\"passed\"\n]);\nconst openMeldDaemonProviderConversationProofProviderSchema = enumFactory([\n\t\"codex\",\n\t\"claude-code\",\n\t\"openclaw\"\n]);\nconst openMeldDaemonProviderConversationProofMethodSchema = enumFactory([\"codex_app_server_thread_resume\"]);\nconst openMeldDaemonProviderConversationProofSchema = strictObject({\n\tagentControllerConversationId: nullableNonEmptyStringSchema,\n\tcheckedAt: union([iso.datetime({ offset: true }), nullFactory()]),\n\terrorCode: nullableNonEmptyStringSchema,\n\terrorMessage: nullableNonEmptyStringSchema,\n\terrorType: nullableNonEmptyStringSchema,\n\texpiresAt: union([iso.datetime({ offset: true }), nullFactory()]),\n\tintrusive: literal(false),\n\tmethod: union([openMeldDaemonProviderConversationProofMethodSchema, nullFactory()]),\n\tprovider: union([openMeldDaemonProviderConversationProofProviderSchema, nullFactory()]),\n\tstatus: openMeldDaemonProviderConversationProofStatusSchema,\n\ttransportMode: union([runtimeTransportModeSchema, nullFactory()])\n});\nconst openMeldDaemonConversationExecutionStatusPayloadSchema = strictObject({\n\tagentContextLookupKey: string().min(1),\n\tcontrollerLaunchStatus: openMeldDaemonConversationExecutionControllerLaunchStatusSchema,\n\texecutionState: conversationExecutionStateSchema.nullable(),\n\tlocalRuntimeContext: strictObject({\n\t\tagentContextLookupKey: string().min(1),\n\t\truntimeWorkspaceFingerprint: nullableNonEmptyStringSchema,\n\t\tstatus: openMeldDaemonConversationExecutionLocalRuntimeContextStatusSchema\n\t}),\n\tproviderConversationProof: openMeldDaemonProviderConversationProofSchema,\n\truntimeWorkspace: openMeldDaemonConversationExecutionRuntimeWorkspaceSchema\n});\nconst openMeldDaemonSyncRouteCatalogStatusSchema = enumFactory([\n\t\"changed\",\n\t\"registered\",\n\t\"unchanged\",\n\t\"failed\",\n\t\"deferred\"\n]);\nconst DAEMON_PROFILE_SKIP_REASON_VALUES = [\n\t\"projection.missing\",\n\t\"controller.registry.disabled\",\n\t\"controller.launch.needs_repair\",\n\t\"runtime.adapter.unsupported\",\n\t\"controller.binding.disabled\",\n\t\"controller.binding.incomplete\",\n\t\"profile.status.inactive\",\n\t\"profile.binding.read_unavailable\",\n\t\"profile.binding.unbound\",\n\t\"workspace.missing\",\n\t\"workspace.invalid\"\n];\nconst daemonProfileSkipReasonSchema = enumFactory(DAEMON_PROFILE_SKIP_REASON_VALUES);\nconst skippedDaemonProfileSchema = strictObject({\n\tprofileId: agentProfileIdSchema,\n\tprofileName: nullableNonEmptyStringSchema,\n\tskipReason: daemonProfileSkipReasonSchema\n});\nconst openMeldDaemonSyncRouteCatalogPayloadSchema = strictObject({\n\taccepted: boolean(),\n\tsyncStatus: openMeldDaemonSyncRouteCatalogStatusSchema,\n\tprofileIds: array(agentProfileIdSchema),\n\taddedProfileIds: array(agentProfileIdSchema).optional(),\n\tkeptProfileIds: array(agentProfileIdSchema).optional(),\n\tremovedProfileIds: array(agentProfileIdSchema).optional(),\n\tskippedProfiles: array(skippedDaemonProfileSchema).optional(),\n\tnote: string().min(1).optional(),\n\terrorMessage: string().min(1).optional()\n});\nconst openMeldDaemonRequestAgentActivitySyncPayloadSchema = strictObject({ accepted: boolean() });\nconst openMeldDaemonSetLocalAgentEnabledPayloadSchema = strictObject({\n\taccepted: boolean(),\n\tagentControllerRef: string().min(1).optional(),\n\tagentId: string().trim().min(1).max(256),\n\tchanged: boolean(),\n\tenabled: boolean(),\n\tmessage: string().min(1).optional(),\n\treasonCode: string().min(1).optional(),\n\treportSyncStatus: enumFactory([\n\t\t\"submitted\",\n\t\t\"skipped\",\n\t\t\"failed\"\n\t]),\n\tstatus: enumFactory([\n\t\t\"updated\",\n\t\t\"unchanged\",\n\t\t\"rejected\"\n\t])\n});\nconst openMeldDaemonManageLocalAgentInstallationPayloadSchema = discriminatedUnion(\"accepted\", [strictObject({\n\taccepted: literal(true),\n\tagentControllerRef: string().min(1),\n\tagentId: string().trim().min(1).max(256),\n\tchanged: boolean(),\n\tinstallations: array(localAgentInstallationOptionSchema),\n\treportSyncStatus: enumFactory([\n\t\t\"submitted\",\n\t\t\"skipped\",\n\t\t\"failed\"\n\t]),\n\tselectionStatus: enumFactory([\n\t\t\"available\",\n\t\t\"blocked_by_work\",\n\t\t\"operation_in_progress\"\n\t]).optional(),\n\tselectedInstallationId: string().trim().min(1).max(256).nullable(),\n\tstatus: enumFactory([\n\t\t\"listed\",\n\t\t\"updated\",\n\t\t\"unchanged\"\n\t])\n}), strictObject({\n\taccepted: literal(false),\n\tagentId: string().trim().min(1).max(256),\n\tchanged: literal(false),\n\tinstallations: array(localAgentInstallationOptionSchema),\n\tmessage: string().min(1).optional(),\n\treasonCode: string().min(1).optional(),\n\treportSyncStatus: literal(\"failed\"),\n\tselectionStatus: enumFactory([\n\t\t\"available\",\n\t\t\"blocked_by_work\",\n\t\t\"operation_in_progress\"\n\t]).optional(),\n\tselectedInstallationId: string().trim().min(1).max(256).nullable(),\n\tstatus: literal(\"rejected\")\n})]);\nconst openMeldDaemonSetProfileWorkspacePayloadSchema = discriminatedUnion(\"accepted\", [strictObject({\n\taccepted: literal(true),\n\ttargetProfileId: agentProfileIdSchema,\n\tstatus: literal(\"updated\"),\n\tworkspaceMode: profileWorkspaceModeSchema,\n\tworkspacePath: string().min(1)\n}), strictObject({\n\taccepted: literal(false),\n\ttargetProfileId: agentProfileIdSchema,\n\tmessage: string().min(1).optional(),\n\treasonCode: string().min(1).optional(),\n\tstatus: literal(\"rejected\")\n})]);\nconst openMeldDaemonControlPlaneRequestBaseSchema = strictObject({\n\tv: literal(1),\n\trequestId: string().min(1).optional(),\n\tauthToken: string().min(1).optional()\n});\nconst openMeldDaemonControlPlaneRequestSchema = discriminatedUnion(\"command\", [\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal(\"account_control_capabilities\") }),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal(\"status\") }),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal(\"health\") }),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal(\"history\") }),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"interrupt\"),\n\t\tpayload: openMeldDaemonInterruptRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"cancel\"),\n\t\tpayload: openMeldDaemonCancelRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"conversation_execution_status\"),\n\t\tpayload: openMeldDaemonConversationExecutionStatusRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"sync_route_catalog\"),\n\t\tpayload: openMeldDaemonSyncRouteCatalogRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"request_agent_activity_sync\"),\n\t\tpayload: openMeldDaemonRequestAgentActivitySyncRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"set_local_agent_enabled\"),\n\t\tpayload: openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"set_profile_workspace\"),\n\t\tpayload: openMeldDaemonSetProfileWorkspaceRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal(\"service_update_readiness\") }),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"shutdown\"),\n\t\tpayload: openMeldDaemonShutdownRequestPayloadSchema.optional()\n\t})\n]);\nconst openMeldDaemonStatusPayloadSchema = strictObject({\n\tinstalled: boolean(),\n\trunning: boolean(),\n\tdaemonVersion: string().min(1),\n\truntimeRoot: string().min(1),\n\tcheckedAt: string().min(1)\n});\nconst openMeldDaemonHealthPayloadSchema = strictObject({\n\tstate: openMeldDaemonHealthStateSchema,\n\truntimeState: openMeldDaemonRuntimeHealthStateSchema.optional(),\n\treasonCode: string().min(1),\n\tcheckedAt: string().min(1)\n});\nconst openMeldDaemonHistoryEntrySchema = strictObject({\n\tid: string().min(1),\n\tts: string().min(1),\n\tcode: string().min(1),\n\tmessage: string().min(1)\n});\nconst openMeldDaemonHistoryPayloadSchema = strictObject({\n\tentries: array(openMeldDaemonHistoryEntrySchema),\n\tnextCursor: string().min(1).optional()\n});\nconst openMeldDaemonInterruptPayloadSchema = strictObject({\n\taccepted: boolean(),\n\ttarget: openMeldDaemonControlTargetSelectorSchema,\n\tresolvedDispatchId: string().min(1).optional(),\n\tresolvedRuntimeCoordinatorExecutionId: string().min(1).optional(),\n\tresolvedTaskId: string().min(1).optional(),\n\tnote: string().min(1).optional(),\n\treasonCode: string().min(1).optional()\n});\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_CONTROL_PLANE_SCHEMA_VERSION, daemonProfileSkipReasonSchema, localAgentInstallationOptionSchema, openMeldDaemonCancelPayloadSchema, openMeldDaemonCancelRequestPayloadSchema, openMeldDaemonCancelResponseSchema, openMeldDaemonControlPlaneCommandSchema, openMeldDaemonControlPlaneErrorPayloadSchema, openMeldDaemonControlPlaneErrorResponseSchema, openMeldDaemonControlPlaneRequestSchema, openMeldDaemonControlPlaneResponseSchema, openMeldDaemonControlTargetSelectorSchema, openMeldDaemonConversationExecutionControllerLaunchStatusSchema, openMeldDaemonConversationExecutionLocalRuntimeContextStatusSchema, openMeldDaemonConversationExecutionRuntimeWorkspaceInvalidSchema, openMeldDaemonConversationExecutionRuntimeWorkspaceMissingSchema, openMeldDaemonConversationExecutionRuntimeWorkspaceReadySchema, openMeldDaemonConversationExecutionRuntimeWorkspaceSchema, openMeldDaemonConversationExecutionStatusPayloadSchema, openMeldDaemonConversationExecutionStatusRequestPayloadSchema, openMeldDaemonConversationExecutionStatusResponseSchema, openMeldDaemonHealthPayloadSchema, openMeldDaemonHealthResponseSchema, openMeldDaemonHealthStateSchema, openMeldDaemonHistoryEntrySchema, openMeldDaemonHistoryPayloadSchema, openMeldDaemonHistoryResponseSchema, openMeldDaemonInterruptPayloadSchema, openMeldDaemonInterruptRequestPayloadSchema, openMeldDaemonInterruptResponseSchema, openMeldDaemonManageLocalAgentInstallationPayloadSchema, openMeldDaemonManageLocalAgentInstallationRequestPayloadSchema, openMeldDaemonProviderConversationProofMethodSchema, openMeldDaemonProviderConversationProofProviderSchema, openMeldDaemonProviderConversationProofSchema, openMeldDaemonProviderConversationProofStatusSchema, openMeldDaemonRequestAgentActivitySyncPayloadSchema, openMeldDaemonRequestAgentActivitySyncRequestPayloadSchema, openMeldDaemonRequestAgentActivitySyncResponseSchema, openMeldDaemonRuntimeHealthStateSchema, openMeldDaemonServiceUpdateReadinessPayloadSchema, openMeldDaemonServiceUpdateReadinessResponseSchema, openMeldDaemonSetLocalAgentEnabledPayloadSchema, openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema, openMeldDaemonSetLocalAgentEnabledResponseSchema, openMeldDaemonSetProfileWorkspacePayloadSchema, openMeldDaemonSetProfileWorkspaceRequestPayloadSchema, openMeldDaemonSetProfileWorkspaceResponseSchema, openMeldDaemonShutdownPayloadSchema, openMeldDaemonShutdownRequestPayloadSchema, openMeldDaemonShutdownResponseSchema, openMeldDaemonStatusPayloadSchema, openMeldDaemonStatusResponseSchema, openMeldDaemonSyncRouteCatalogPayloadSchema, openMeldDaemonSyncRouteCatalogRequestPayloadSchema, openMeldDaemonSyncRouteCatalogResponseSchema, openMeldDaemonSyncRouteCatalogStatusSchema, skippedDaemonProfileSchema };\n\n//# sourceMappingURL=control-plane.js.map"],"mappings":";;;;;;AAEA,MAAM,4BAA4B,UAAU,OAAO,SAAS,EAAE,CAAC,CAAC,KAAK;AACrE,MAAM,mCAAmC,IAAI,WAAW,0BAA0B,IAAI,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;AACrG,MAAM,sBAAsB,IAAI,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO;AACtD,MAAM,6BAA6B,IAAI,YAAY,UAAU;CAC5D,IAAI,UAAU,KAAK,KAAK,UAAU,QAAQ,UAAU,IAAI;CACxD,IAAI,OAAO,UAAU,WAAW,OAAO;CACvC,MAAM,aAAa,OAAO,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,YAAY;CACpD,IAAI,eAAe,UAAU,eAAe,KAAK,OAAO;CACxD,IAAI,eAAe,WAAW,eAAe,KAAK,OAAO;CACzD,OAAO;AACR,GAAG,IAAI,QAAQ,CAAC,CAAC,SAAS,CAAC;;;ACR3B,MAAM,sBAAsB;CAC3B;CACA;CACA;AACD;AACA,MAAM,yBAAyB;AAC/B,MAAM,0BAA0B;AAChC,MAAM,2BAA2B;AAEjC,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6C,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-Bpu7g9Av.js","names":[],"sources":["../../../packages/schemas/dist/schemas/protocol/shared.js","../../../packages/schemas/dist/schemas/protocol/profile.js","../../../packages/schemas/dist/schemas/daemon/conversation-lifecycle.js","../../../packages/schemas/dist/schemas/daemon/conversation-execution-state.js","../../../packages/schemas/dist/schemas/daemon/provider-runtime-context.js","../../../packages/schemas/dist/schemas/daemon/control-plane.js"],"sourcesContent":["import * as z$1 from \"zod/v4\";\n//#region src/schemas/protocol/shared.ts\nconst trimmedStringFromUnknown = (value) => String(value ?? \"\").trim();\nconst nonEmptyTrimmedStringFromUnknown = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1));\nconst finiteIntegerNumber = z$1.number().int().finite();\nconst optionalBooleanQuerySchema = z$1.preprocess((value) => {\n\tif (value === void 0 || value === null || value === \"\") return;\n\tif (typeof value === \"boolean\") return value;\n\tconst normalized = String(value).trim().toLowerCase();\n\tif (normalized === \"true\" || normalized === \"1\") return true;\n\tif (normalized === \"false\" || normalized === \"0\") return false;\n\treturn value;\n}, z$1.boolean().optional());\n//#endregion\nexport { finiteIntegerNumber, nonEmptyTrimmedStringFromUnknown, optionalBooleanQuerySchema, trimmedStringFromUnknown };\n\n//# sourceMappingURL=shared.js.map"," \nimport { trimmedStringFromUnknown } from \"./shared.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/protocol/profile.ts\nconst PROFILE_KIND_VALUES = [\n\t\"human\",\n\t\"agent\",\n\t\"system\"\n];\nconst PROFILE_HANDLE_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/;\nconst UUID_PROFILE_ID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;\nconst AGENT_PROFILE_ID_PATTERN = /^agt_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;\nconst MAX_PROFILE_HANDLE_LENGTH = 128;\nconst normalizeOptionalProfileLabel = (value) => {\n\tconst normalized = trimmedStringFromUnknown(value);\n\tif (normalized.length === 0) return;\n\treturn normalized.slice(0, 64);\n};\nconst normalizeOptionalProfileHandle = (value) => {\n\tconst normalized = trimmedStringFromUnknown(value);\n\tif (normalized.length === 0) return;\n\treturn profileHandleSchema.safeParse(normalized).success ? normalized : void 0;\n};\nconst MAX_PROFILE_WORKING_DIRECTORY_LENGTH = 4096;\nconst profileWorkspaceModeSchema = z$1.enum([\"openmeld_managed\", \"custom\"]);\nconst profileWorkingDirectorySchema = z$1.string().min(1).max(MAX_PROFILE_WORKING_DIRECTORY_LENGTH).refine((value) => !value.includes(\"\\0\"), { message: \"workingDirectory must not contain NUL bytes\" });\nconst normalizeOptionalWorkingDirectory = (value) => {\n\tif (typeof value !== \"string\") return;\n\tconst parsed = profileWorkingDirectorySchema.safeParse(value);\n\treturn parsed.success ? parsed.data : void 0;\n};\nconst MAX_AVATAR_URL_LENGTH = 2048;\nconst HTTPS_URL_PATTERN = /^https?:\\/\\//i;\n/**\n* Avatar URLs are a public identity field that travels with the Profile across\n* domains. Only http(s) URLs are accepted so the value is safe to render as an\n* `<img src>` on web clients (rejects javascript:/data: injection vectors).\n*/\nconst normalizeOptionalAvatarUrl = (value) => {\n\tconst normalized = trimmedStringFromUnknown(value);\n\tif (normalized.length === 0 || normalized.length > 2048) return;\n\treturn HTTPS_URL_PATTERN.test(normalized) ? normalized : void 0;\n};\n/** Unknown or invalid kinds are normalized to \"agent\" for wire compatibility. */\nconst profileKindWithFallbackSchema = z$1.preprocess((value) => {\n\tconst parsed = z$1.enum(PROFILE_KIND_VALUES).safeParse(value);\n\treturn parsed.success ? parsed.data : \"agent\";\n}, z$1.enum(PROFILE_KIND_VALUES));\nconst profileKindSchema = z$1.enum(PROFILE_KIND_VALUES);\nconst profileLabelSchema = z$1.string().min(1).max(64);\nconst profileHandleSchema = z$1.string().min(1).max(128).regex(PROFILE_HANDLE_PATTERN);\nconst genericProfileIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64));\nconst uuidProfileIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64).regex(UUID_PROFILE_ID_PATTERN));\nconst agentProfileIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64).regex(AGENT_PROFILE_ID_PATTERN));\n/**\n* Runtime OpenMeld profile IDs are auth-backed and follow these rules:\n* - human/system profiles use a UUID\n* - agent profiles use agt_<UUID>\n*\n* Generic test fixtures or legacy intermediary strings should not reuse this\n* schema unless they represent a real runtime profile identity.\n*/\nconst openMeldRuntimeProfileIdSchema = z$1.preprocess(trimmedStringFromUnknown, z$1.string().min(1).max(64).refine((value) => UUID_PROFILE_ID_PATTERN.test(value) || AGENT_PROFILE_ID_PATTERN.test(value), \"Invalid OpenMeld runtime profile ID\"));\n/**\n* Generic wire/profile normalization rules:\n* - trims and validates profileId as a non-empty string\n* - defaults missing/invalid kind to \"agent\"\n* - truncates profileName/owner labels to max length\n* - preserves agent workingDirectory verbatim when it is a valid string\n* - keeps owner only for agent profiles\n*\n* This schema intentionally stays broader than auth-backed runtime IDs because\n* protocol/system messages may still use internal synthetic profile IDs such as\n* `openmeld-system`.\n*/\nconst profileSchema = z$1.object({\n\tkind: profileKindWithFallbackSchema.optional(),\n\tprofileId: genericProfileIdSchema,\n\tprofileHandle: z$1.unknown().optional(),\n\tprofileName: z$1.unknown().optional(),\n\towner: z$1.unknown().optional(),\n\townerName: z$1.unknown().optional(),\n\tagentControllerRef: z$1.unknown().optional(),\n\tagentControllerConversationId: z$1.unknown().optional(),\n\tworkingDirectory: z$1.unknown().optional(),\n\tavatarUrl: z$1.unknown().optional()\n}).transform((value) => {\n\tconst kind = value.kind ?? \"agent\";\n\tconst profileHandle = normalizeOptionalProfileHandle(value.profileHandle);\n\tconst profileName = normalizeOptionalProfileLabel(value.profileName);\n\tconst owner = kind === \"agent\" ? normalizeOptionalProfileLabel(value.owner) : void 0;\n\tconst ownerName = kind === \"agent\" ? normalizeOptionalProfileLabel(value.ownerName) : void 0;\n\tconst agentControllerRef = kind === \"agent\" ? normalizeOptionalProfileLabel(value.agentControllerRef) : void 0;\n\tconst agentControllerConversationId = kind === \"agent\" ? normalizeOptionalProfileLabel(value.agentControllerConversationId) : void 0;\n\tconst workingDirectory = kind === \"agent\" ? normalizeOptionalWorkingDirectory(value.workingDirectory) : void 0;\n\tconst avatarUrl = normalizeOptionalAvatarUrl(value.avatarUrl);\n\treturn {\n\t\tkind,\n\t\tprofileId: value.profileId,\n\t\t...profileHandle ? { profileHandle } : {},\n\t\t...profileName ? { profileName } : {},\n\t\t...owner ? { owner } : {},\n\t\t...ownerName ? { ownerName } : {},\n\t\t...agentControllerRef ? { agentControllerRef } : {},\n\t\t...agentControllerConversationId ? { agentControllerConversationId } : {},\n\t\t...workingDirectory ? { workingDirectory } : {},\n\t\t...avatarUrl ? { avatarUrl } : {}\n\t};\n});\n//#endregion\nexport { MAX_AVATAR_URL_LENGTH, MAX_PROFILE_HANDLE_LENGTH, MAX_PROFILE_WORKING_DIRECTORY_LENGTH, agentProfileIdSchema, genericProfileIdSchema, normalizeOptionalWorkingDirectory, openMeldRuntimeProfileIdSchema, profileHandleSchema, profileKindSchema, profileLabelSchema, profileSchema, profileWorkingDirectorySchema, profileWorkspaceModeSchema, uuidProfileIdSchema };\n\n//# sourceMappingURL=profile.js.map","import * as z$1 from \"zod/v4\";\n//#region src/schemas/daemon/conversation-lifecycle.ts\nconst conversationBootstrapReasonSchema = z$1.enum([\n\t\"missing_bootstrap_state\",\n\t\"compatibility_recreate\",\n\t\"template_changed\",\n\t\"idle_stale\",\n\t\"dispatch_count_stale\",\n\t\"context_healed\",\n\t\"context_replaced\"\n]);\nconst localRuntimeContextReasonSchema = z$1.enum([\n\t\"first_local_runtime_context\",\n\t\"workspace_changed\",\n\t\"transport_mode_changed\",\n\t\"policy_changed\",\n\t\"execution_state_missing\",\n\t\"controller_changed\"\n]);\nconst agentControllerConversationResumePlanBlockedReasonSchema = z$1.enum([\"controller_changed\"]);\nconst agentControllerConversationResumePlanSchema = z$1.discriminatedUnion(\"status\", [\n\tz$1.strictObject({ status: z$1.literal(\"not_bound\") }),\n\tz$1.strictObject({ status: z$1.literal(\"continue_existing\") }),\n\tz$1.strictObject({\n\t\tstatus: z$1.literal(\"blocked\"),\n\t\treason: agentControllerConversationResumePlanBlockedReasonSchema\n\t})\n]);\nconst localRuntimeContextPlanSchema = z$1.strictObject({\n\tstatus: z$1.enum([\"reuse\", \"recreate\"]),\n\treason: z$1.union([localRuntimeContextReasonSchema, z$1.null()])\n});\nconst conversationBootstrapSchema = z$1.discriminatedUnion(\"status\", [z$1.strictObject({\n\treason: z$1.null(),\n\tstatus: z$1.literal(\"applied\")\n}), z$1.strictObject({\n\treason: conversationBootstrapReasonSchema,\n\tstatus: z$1.literal(\"pending\")\n})]);\nconst nextDispatchPlanSchema = z$1.strictObject({\n\tagentControllerConversationResume: agentControllerConversationResumePlanSchema,\n\tlocalRuntimeContext: localRuntimeContextPlanSchema,\n\tbootstrap: conversationBootstrapSchema\n});\nconst agentControllerConversationResumeSchema = z$1.discriminatedUnion(\"status\", [\n\tz$1.strictObject({ status: z$1.literal(\"not_bound\") }),\n\tz$1.strictObject({ status: z$1.literal(\"continued\") }),\n\tz$1.strictObject({ status: z$1.literal(\"replaced_by_provider\") })\n]);\nconst localRuntimeContextExecutionSchema = z$1.strictObject({\n\tstatus: z$1.enum([\"reused\", \"recreated\"]),\n\treason: z$1.union([localRuntimeContextReasonSchema, z$1.null()])\n});\nconst dispatchExecutionSchema = z$1.strictObject({\n\tagentControllerConversationResume: agentControllerConversationResumeSchema,\n\tlocalRuntimeContext: localRuntimeContextExecutionSchema,\n\tbootstrap: conversationBootstrapSchema\n});\n//#endregion\nexport { agentControllerConversationResumePlanBlockedReasonSchema, agentControllerConversationResumePlanSchema, agentControllerConversationResumeSchema, conversationBootstrapReasonSchema, conversationBootstrapSchema, dispatchExecutionSchema, localRuntimeContextExecutionSchema, localRuntimeContextPlanSchema, localRuntimeContextReasonSchema, nextDispatchPlanSchema };\n\n//# sourceMappingURL=conversation-lifecycle.js.map","import { profileWorkingDirectorySchema } from \"../protocol/profile.js\";\nimport { agentControllerConversationRefSchema } from \"./conversation-contract.js\";\nimport { conversationBootstrapReasonSchema } from \"./conversation-lifecycle.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/daemon/conversation-execution-state.ts\nconst ISO_DATE_TIME_SCHEMA = z$1.iso.datetime({ offset: true });\nconst bootstrapTemplateFactsSchema = z$1.strictObject({\n\ttemplateVersion: z$1.string().min(1),\n\tcontentFingerprint: z$1.string().min(1)\n});\nconst conversationExecutionStateSchema = z$1.strictObject({\n\tagentContextLookupKey: z$1.string().min(1),\n\tactiveContextId: z$1.string().min(1).nullable(),\n\tlastResolvedAgentControllerConversation: agentControllerConversationRefSchema.optional(),\n\tlastRuntimeWorkspacePath: profileWorkingDirectorySchema.optional(),\n\truntimeWorkspaceFingerprint: z$1.string().min(1),\n\tbootstrapLastAppliedAt: ISO_DATE_TIME_SCHEMA.optional(),\n\tbootstrapLastActivatedAt: ISO_DATE_TIME_SCHEMA.optional(),\n\tdispatchesSinceBootstrapApplied: z$1.number().int().min(0),\n\tlastAppliedTemplateVersion: z$1.string().min(1).optional(),\n\tlastAppliedContentFingerprint: z$1.string().min(1).optional(),\n\tpendingBootstrapReason: conversationBootstrapReasonSchema.optional(),\n\tupdatedAt: ISO_DATE_TIME_SCHEMA\n});\n//#endregion\nexport { bootstrapTemplateFactsSchema, conversationExecutionStateSchema };\n\n//# sourceMappingURL=conversation-execution-state.js.map","import { MAX_PROFILE_WORKING_DIRECTORY_LENGTH } from \"../protocol/profile.js\";\nimport * as z$1 from \"zod/v4\";\n//#region src/schemas/daemon/provider-runtime-context.ts\nconst providerDispatchRuntimeContextSchema = z$1.strictObject({ providerRuntimeWorkingDirectory: z$1.string().trim().min(1).max(MAX_PROFILE_WORKING_DIRECTORY_LENGTH).refine((value) => !value.includes(\"\\0\"), { message: \"providerRuntimeWorkingDirectory must not contain NUL bytes\" }) });\n//#endregion\nexport { providerDispatchRuntimeContextSchema };\n\n//# sourceMappingURL=provider-runtime-context.js.map","import { array, boolean, discriminatedUnion, enum as enumFactory, iso, literal, null as nullFactory, number, strictObject, string, union } from \"../../lazy-zod.js\";\nimport { nonEmptyTrimmedStringFromUnknown } from \"../protocol/shared.js\";\nimport { agentProfileIdSchema, profileWorkingDirectorySchema, profileWorkspaceModeSchema } from \"../protocol/profile.js\";\nimport { runtimeTransportModeSchema } from \"./controller-contract.js\";\nimport { conversationExecutionStateSchema } from \"./conversation-execution-state.js\";\nimport { providerDispatchRuntimeContextSchema } from \"./provider-runtime-context.js\";\n//#region src/schemas/daemon/control-plane.ts\nconst OPENMELD_DAEMON_CONTROL_PLANE_SCHEMA_VERSION = 1;\nconst openMeldDaemonControlPlaneCommandSchema = enumFactory([\n\t\"status\",\n\t\"health\",\n\t\"history\",\n\t\"interrupt\",\n\t\"cancel\",\n\t\"conversation_execution_status\",\n\t\"request_agent_activity_sync\",\n\t\"sync_route_catalog\",\n\t\"set_local_agent_enabled\",\n\t\"set_profile_workspace\",\n\t\"service_update_readiness\",\n\t\"account_control_capabilities\",\n\t\"shutdown\"\n]);\nconst openMeldDaemonHealthStateSchema = enumFactory([\n\t\"ok\",\n\t\"degraded\",\n\t\"down\"\n]);\nconst openMeldDaemonRuntimeHealthStateSchema = enumFactory([\n\t\"healthy\",\n\t\"idle\",\n\t\"suspect\",\n\t\"down\"\n]);\nconst openMeldDaemonControlTargetSelectorSchema = discriminatedUnion(\"by\", [strictObject({\n\tby: literal(\"dispatch\"),\n\tdispatchId: string().min(1)\n}), strictObject({\n\tby: literal(\"task\"),\n\ttaskId: string().min(1)\n})]);\nconst openMeldDaemonInterruptRequestPayloadSchema = strictObject({\n\truntimeCoordinatorExecutionId: string().min(1).optional(),\n\ttarget: openMeldDaemonControlTargetSelectorSchema,\n\tmode: enumFactory([\"graceful\", \"force\"]).optional(),\n\treason: string().min(1).optional()\n});\nconst openMeldDaemonCancelRequestPayloadSchema = strictObject({\n\truntimeCoordinatorExecutionId: string().min(1).optional(),\n\ttarget: openMeldDaemonControlTargetSelectorSchema,\n\treason: string().min(1).optional()\n});\nconst openMeldDaemonShutdownRequestPayloadSchema = strictObject({\n\taccountAdmissionId: string().uuid().optional(),\n\tmode: enumFactory([\"graceful\", \"force\"]).default(\"graceful\"),\n\tgracePeriodMs: number().int().nonnegative().default(5e3)\n});\nconst openMeldDaemonServiceUpdateReadinessPayloadSchema = strictObject({\n\tacceptedWakeCount: number().int().nonnegative(),\n\tsafeToSwitch: boolean(),\n\tunacknowledgedResultCount: number().int().nonnegative()\n});\nconst openMeldDaemonConversationExecutionControllerLaunchStatusSchema = enumFactory([\n\t\"missing\",\n\t\"disabled\",\n\t\"repair_required\",\n\t\"ready\"\n]);\nconst nullableAgentControllerRefSchema = union([string().min(1), nullFactory()]);\nconst nullableNonEmptyStringSchema = union([string().min(1), nullFactory()]);\nconst openMeldDaemonConversationExecutionStatusRequestPayloadSchema = strictObject({\n\tboundAgentControllerRef: nullableAgentControllerRefSchema,\n\tagentControllerConversationId: nullableNonEmptyStringSchema,\n\tagentControllerRef: string().min(1),\n\tspaceId: nonEmptyTrimmedStringFromUnknown,\n\ttargetProfileId: agentProfileIdSchema,\n\ttransportMode: runtimeTransportModeSchema,\n\tvalidate: boolean()\n});\nconst openMeldDaemonSyncRouteCatalogRequestPayloadSchema = strictObject({ reason: string().min(1) });\nconst openMeldDaemonRequestAgentActivitySyncRequestPayloadSchema = strictObject({ reason: string().trim().min(1).max(128) });\nconst openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema = strictObject({\n\tagentId: string().trim().min(1).max(256),\n\tenabled: boolean()\n});\nconst localAgentInstallationOptionSchema = strictObject({\n\tinstallationId: string().trim().min(1).max(256),\n\tname: string().trim().min(1).max(256),\n\tdetails: string().trim().min(1).max(256),\n\tselected: boolean()\n});\nconst openMeldDaemonManageLocalAgentInstallationRequestPayloadSchema = discriminatedUnion(\"operation\", [strictObject({\n\tagentId: string().trim().min(1).max(256),\n\toperation: literal(\"list\")\n}), strictObject({\n\tagentId: string().trim().min(1).max(256),\n\tinstallationId: string().trim().min(1).max(256),\n\toperation: literal(\"select\")\n})]);\nconst openMeldDaemonSetProfileWorkspaceRequestPayloadSchema = strictObject({\n\ttargetProfileId: agentProfileIdSchema,\n\tworkspaceMode: profileWorkspaceModeSchema,\n\tworkspacePath: profileWorkingDirectorySchema.optional()\n}).superRefine((value, context) => {\n\tif (value.workspaceMode === \"custom\" && !value.workspacePath) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"workspacePath is required for a custom profile workspace\",\n\t\tpath: [\"workspacePath\"]\n\t});\n\tif (value.workspaceMode === \"openmeld_managed\" && value.workspacePath) context.addIssue({\n\t\tcode: \"custom\",\n\t\tmessage: \"workspacePath must be omitted for an OpenMeld-managed profile workspace\",\n\t\tpath: [\"workspacePath\"]\n\t});\n});\nconst openMeldDaemonConversationExecutionRuntimeWorkspaceReadySchema = strictObject({\n\tconfigPath: string().min(1),\n\tconfiguredWorkspacePath: string().min(1),\n\tfingerprint: string().min(1),\n\tpath: string().min(1),\n\treasonCode: nullFactory(),\n\treasonText: nullFactory(),\n\truntimeContext: providerDispatchRuntimeContextSchema,\n\tstatus: literal(\"ready\"),\n\tworkspaceMode: profileWorkspaceModeSchema\n});\nconst openMeldDaemonConversationExecutionRuntimeWorkspaceMissingSchema = strictObject({\n\tconfigPath: string().min(1),\n\tconfiguredWorkspacePath: nullFactory(),\n\tfingerprint: nullFactory(),\n\tpath: nullFactory(),\n\treasonCode: literal(\"workspace.missing\"),\n\treasonText: string().min(1),\n\truntimeContext: nullFactory(),\n\tstatus: literal(\"missing\"),\n\tworkspaceMode: nullFactory()\n});\nconst openMeldDaemonConversationExecutionRuntimeWorkspaceInvalidSchema = strictObject({\n\tconfigPath: string().min(1),\n\tconfiguredWorkspacePath: union([string().min(1), nullFactory()]),\n\tfingerprint: nullFactory(),\n\tpath: nullFactory(),\n\treasonCode: literal(\"workspace.invalid\"),\n\treasonText: string().min(1),\n\truntimeContext: nullFactory(),\n\tstatus: literal(\"invalid\"),\n\tworkspaceMode: union([profileWorkspaceModeSchema, nullFactory()])\n});\nconst openMeldDaemonConversationExecutionRuntimeWorkspaceSchema = discriminatedUnion(\"status\", [\n\topenMeldDaemonConversationExecutionRuntimeWorkspaceReadySchema,\n\topenMeldDaemonConversationExecutionRuntimeWorkspaceMissingSchema,\n\topenMeldDaemonConversationExecutionRuntimeWorkspaceInvalidSchema\n]);\nconst openMeldDaemonConversationExecutionLocalRuntimeContextStatusSchema = enumFactory([\n\t\"missing\",\n\t\"mismatch\",\n\t\"ready\"\n]);\nconst openMeldDaemonProviderConversationProofStatusSchema = enumFactory([\n\t\"failed\",\n\t\"not_applicable\",\n\t\"not_run\",\n\t\"passed\"\n]);\nconst openMeldDaemonProviderConversationProofProviderSchema = enumFactory([\n\t\"codex\",\n\t\"claude-code\",\n\t\"openclaw\"\n]);\nconst openMeldDaemonProviderConversationProofMethodSchema = enumFactory([\"codex_app_server_thread_resume\"]);\nconst openMeldDaemonProviderConversationProofSchema = strictObject({\n\tagentControllerConversationId: nullableNonEmptyStringSchema,\n\tcheckedAt: union([iso.datetime({ offset: true }), nullFactory()]),\n\terrorCode: nullableNonEmptyStringSchema,\n\terrorMessage: nullableNonEmptyStringSchema,\n\terrorType: nullableNonEmptyStringSchema,\n\texpiresAt: union([iso.datetime({ offset: true }), nullFactory()]),\n\tintrusive: literal(false),\n\tmethod: union([openMeldDaemonProviderConversationProofMethodSchema, nullFactory()]),\n\tprovider: union([openMeldDaemonProviderConversationProofProviderSchema, nullFactory()]),\n\tstatus: openMeldDaemonProviderConversationProofStatusSchema,\n\ttransportMode: union([runtimeTransportModeSchema, nullFactory()])\n});\nconst openMeldDaemonConversationExecutionStatusPayloadSchema = strictObject({\n\tagentContextLookupKey: string().min(1),\n\tcontrollerLaunchStatus: openMeldDaemonConversationExecutionControllerLaunchStatusSchema,\n\texecutionState: conversationExecutionStateSchema.nullable(),\n\tlocalRuntimeContext: strictObject({\n\t\tagentContextLookupKey: string().min(1),\n\t\truntimeWorkspaceFingerprint: nullableNonEmptyStringSchema,\n\t\tstatus: openMeldDaemonConversationExecutionLocalRuntimeContextStatusSchema\n\t}),\n\tproviderConversationProof: openMeldDaemonProviderConversationProofSchema,\n\truntimeWorkspace: openMeldDaemonConversationExecutionRuntimeWorkspaceSchema\n});\nconst openMeldDaemonSyncRouteCatalogStatusSchema = enumFactory([\n\t\"changed\",\n\t\"registered\",\n\t\"unchanged\",\n\t\"failed\",\n\t\"deferred\"\n]);\nconst DAEMON_PROFILE_SKIP_REASON_VALUES = [\n\t\"projection.missing\",\n\t\"controller.registry.disabled\",\n\t\"controller.launch.needs_repair\",\n\t\"runtime.adapter.unsupported\",\n\t\"controller.binding.disabled\",\n\t\"controller.binding.incomplete\",\n\t\"profile.status.inactive\",\n\t\"profile.binding.read_unavailable\",\n\t\"profile.binding.unbound\",\n\t\"workspace.missing\",\n\t\"workspace.invalid\"\n];\nconst daemonProfileSkipReasonSchema = enumFactory(DAEMON_PROFILE_SKIP_REASON_VALUES);\nconst skippedDaemonProfileSchema = strictObject({\n\tprofileId: agentProfileIdSchema,\n\tprofileName: nullableNonEmptyStringSchema,\n\tskipReason: daemonProfileSkipReasonSchema\n});\nconst openMeldDaemonSyncRouteCatalogPayloadSchema = strictObject({\n\taccepted: boolean(),\n\tsyncStatus: openMeldDaemonSyncRouteCatalogStatusSchema,\n\tprofileIds: array(agentProfileIdSchema),\n\taddedProfileIds: array(agentProfileIdSchema).optional(),\n\tkeptProfileIds: array(agentProfileIdSchema).optional(),\n\tremovedProfileIds: array(agentProfileIdSchema).optional(),\n\tskippedProfiles: array(skippedDaemonProfileSchema).optional(),\n\tnote: string().min(1).optional(),\n\terrorMessage: string().min(1).optional()\n});\nconst openMeldDaemonRequestAgentActivitySyncPayloadSchema = strictObject({ accepted: boolean() });\nconst openMeldDaemonSetLocalAgentEnabledPayloadSchema = strictObject({\n\taccepted: boolean(),\n\tagentControllerRef: string().min(1).optional(),\n\tagentId: string().trim().min(1).max(256),\n\tchanged: boolean(),\n\tenabled: boolean(),\n\tmessage: string().min(1).optional(),\n\treasonCode: string().min(1).optional(),\n\treportSyncStatus: enumFactory([\n\t\t\"submitted\",\n\t\t\"skipped\",\n\t\t\"failed\"\n\t]),\n\tstatus: enumFactory([\n\t\t\"updated\",\n\t\t\"unchanged\",\n\t\t\"rejected\"\n\t])\n});\nconst openMeldDaemonManageLocalAgentInstallationPayloadSchema = discriminatedUnion(\"accepted\", [strictObject({\n\taccepted: literal(true),\n\tagentControllerRef: string().min(1),\n\tagentId: string().trim().min(1).max(256),\n\tchanged: boolean(),\n\tinstallations: array(localAgentInstallationOptionSchema),\n\treportSyncStatus: enumFactory([\n\t\t\"submitted\",\n\t\t\"skipped\",\n\t\t\"failed\"\n\t]),\n\tselectionStatus: enumFactory([\n\t\t\"available\",\n\t\t\"blocked_by_work\",\n\t\t\"operation_in_progress\"\n\t]).optional(),\n\tselectedInstallationId: string().trim().min(1).max(256).nullable(),\n\tstatus: enumFactory([\n\t\t\"listed\",\n\t\t\"updated\",\n\t\t\"unchanged\"\n\t])\n}), strictObject({\n\taccepted: literal(false),\n\tagentId: string().trim().min(1).max(256),\n\tchanged: literal(false),\n\tinstallations: array(localAgentInstallationOptionSchema),\n\tmessage: string().min(1).optional(),\n\treasonCode: string().min(1).optional(),\n\treportSyncStatus: literal(\"failed\"),\n\tselectionStatus: enumFactory([\n\t\t\"available\",\n\t\t\"blocked_by_work\",\n\t\t\"operation_in_progress\"\n\t]).optional(),\n\tselectedInstallationId: string().trim().min(1).max(256).nullable(),\n\tstatus: literal(\"rejected\")\n})]);\nconst openMeldDaemonSetProfileWorkspacePayloadSchema = discriminatedUnion(\"accepted\", [strictObject({\n\taccepted: literal(true),\n\ttargetProfileId: agentProfileIdSchema,\n\tstatus: literal(\"updated\"),\n\tworkspaceMode: profileWorkspaceModeSchema,\n\tworkspacePath: string().min(1)\n}), strictObject({\n\taccepted: literal(false),\n\ttargetProfileId: agentProfileIdSchema,\n\tmessage: string().min(1).optional(),\n\treasonCode: string().min(1).optional(),\n\tstatus: literal(\"rejected\")\n})]);\nconst openMeldDaemonControlPlaneRequestBaseSchema = strictObject({\n\tv: literal(1),\n\trequestId: string().min(1).optional(),\n\tauthToken: string().min(1).optional()\n});\nconst openMeldDaemonControlPlaneRequestSchema = discriminatedUnion(\"command\", [\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal(\"account_control_capabilities\") }),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal(\"status\") }),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal(\"health\") }),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal(\"history\") }),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"interrupt\"),\n\t\tpayload: openMeldDaemonInterruptRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"cancel\"),\n\t\tpayload: openMeldDaemonCancelRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"conversation_execution_status\"),\n\t\tpayload: openMeldDaemonConversationExecutionStatusRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"sync_route_catalog\"),\n\t\tpayload: openMeldDaemonSyncRouteCatalogRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"request_agent_activity_sync\"),\n\t\tpayload: openMeldDaemonRequestAgentActivitySyncRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"set_local_agent_enabled\"),\n\t\tpayload: openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"set_profile_workspace\"),\n\t\tpayload: openMeldDaemonSetProfileWorkspaceRequestPayloadSchema\n\t}),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({ command: literal(\"service_update_readiness\") }),\n\topenMeldDaemonControlPlaneRequestBaseSchema.extend({\n\t\tcommand: literal(\"shutdown\"),\n\t\tpayload: openMeldDaemonShutdownRequestPayloadSchema.optional()\n\t})\n]);\nconst openMeldDaemonStatusPayloadSchema = strictObject({\n\tinstalled: boolean(),\n\trunning: boolean(),\n\tdaemonVersion: string().min(1),\n\truntimeRoot: string().min(1),\n\tcheckedAt: string().min(1)\n});\nconst openMeldDaemonHealthPayloadSchema = strictObject({\n\tstate: openMeldDaemonHealthStateSchema,\n\truntimeState: openMeldDaemonRuntimeHealthStateSchema.optional(),\n\treasonCode: string().min(1),\n\tcheckedAt: string().min(1)\n});\nconst openMeldDaemonHistoryEntrySchema = strictObject({\n\tid: string().min(1),\n\tts: string().min(1),\n\tcode: string().min(1),\n\tmessage: string().min(1)\n});\nconst openMeldDaemonHistoryPayloadSchema = strictObject({\n\tentries: array(openMeldDaemonHistoryEntrySchema),\n\tnextCursor: string().min(1).optional()\n});\nconst openMeldDaemonInterruptPayloadSchema = strictObject({\n\taccepted: boolean(),\n\ttarget: openMeldDaemonControlTargetSelectorSchema,\n\tresolvedDispatchId: string().min(1).optional(),\n\tresolvedRuntimeCoordinatorExecutionId: string().min(1).optional(),\n\tresolvedTaskId: string().min(1).optional(),\n\tnote: string().min(1).optional(),\n\treasonCode: string().min(1).optional()\n});\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_CONTROL_PLANE_SCHEMA_VERSION, daemonProfileSkipReasonSchema, localAgentInstallationOptionSchema, openMeldDaemonCancelPayloadSchema, openMeldDaemonCancelRequestPayloadSchema, openMeldDaemonCancelResponseSchema, openMeldDaemonControlPlaneCommandSchema, openMeldDaemonControlPlaneErrorPayloadSchema, openMeldDaemonControlPlaneErrorResponseSchema, openMeldDaemonControlPlaneRequestSchema, openMeldDaemonControlPlaneResponseSchema, openMeldDaemonControlTargetSelectorSchema, openMeldDaemonConversationExecutionControllerLaunchStatusSchema, openMeldDaemonConversationExecutionLocalRuntimeContextStatusSchema, openMeldDaemonConversationExecutionRuntimeWorkspaceInvalidSchema, openMeldDaemonConversationExecutionRuntimeWorkspaceMissingSchema, openMeldDaemonConversationExecutionRuntimeWorkspaceReadySchema, openMeldDaemonConversationExecutionRuntimeWorkspaceSchema, openMeldDaemonConversationExecutionStatusPayloadSchema, openMeldDaemonConversationExecutionStatusRequestPayloadSchema, openMeldDaemonConversationExecutionStatusResponseSchema, openMeldDaemonHealthPayloadSchema, openMeldDaemonHealthResponseSchema, openMeldDaemonHealthStateSchema, openMeldDaemonHistoryEntrySchema, openMeldDaemonHistoryPayloadSchema, openMeldDaemonHistoryResponseSchema, openMeldDaemonInterruptPayloadSchema, openMeldDaemonInterruptRequestPayloadSchema, openMeldDaemonInterruptResponseSchema, openMeldDaemonManageLocalAgentInstallationPayloadSchema, openMeldDaemonManageLocalAgentInstallationRequestPayloadSchema, openMeldDaemonProviderConversationProofMethodSchema, openMeldDaemonProviderConversationProofProviderSchema, openMeldDaemonProviderConversationProofSchema, openMeldDaemonProviderConversationProofStatusSchema, openMeldDaemonRequestAgentActivitySyncPayloadSchema, openMeldDaemonRequestAgentActivitySyncRequestPayloadSchema, openMeldDaemonRequestAgentActivitySyncResponseSchema, openMeldDaemonRuntimeHealthStateSchema, openMeldDaemonServiceUpdateReadinessPayloadSchema, openMeldDaemonServiceUpdateReadinessResponseSchema, openMeldDaemonSetLocalAgentEnabledPayloadSchema, openMeldDaemonSetLocalAgentEnabledRequestPayloadSchema, openMeldDaemonSetLocalAgentEnabledResponseSchema, openMeldDaemonSetProfileWorkspacePayloadSchema, openMeldDaemonSetProfileWorkspaceRequestPayloadSchema, openMeldDaemonSetProfileWorkspaceResponseSchema, openMeldDaemonShutdownPayloadSchema, openMeldDaemonShutdownRequestPayloadSchema, openMeldDaemonShutdownResponseSchema, openMeldDaemonStatusPayloadSchema, openMeldDaemonStatusResponseSchema, openMeldDaemonSyncRouteCatalogPayloadSchema, openMeldDaemonSyncRouteCatalogRequestPayloadSchema, openMeldDaemonSyncRouteCatalogResponseSchema, openMeldDaemonSyncRouteCatalogStatusSchema, skippedDaemonProfileSchema };\n\n//# sourceMappingURL=control-plane.js.map"],"mappings":";;;;;;AAEA,MAAM,4BAA4B,UAAU,OAAO,SAAS,EAAE,CAAC,CAAC,KAAK;AACrE,MAAM,mCAAmC,IAAI,WAAW,0BAA0B,IAAI,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;AACrG,MAAM,sBAAsB,IAAI,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO;AACtD,MAAM,6BAA6B,IAAI,YAAY,UAAU;CAC5D,IAAI,UA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