create-principles-disciple 1.154.5 → 1.155.1

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 (409) hide show
  1. package/_release/product-identity.json +2 -2
  2. package/codex-adapter/dist/codec/input-decoder.d.ts +17 -0
  3. package/codex-adapter/dist/codec/input-decoder.js +39 -0
  4. package/codex-adapter/dist/ingestion/explicit-owner-statement.js +125 -1
  5. package/codex-adapter/dist/ingestion/pain-receipt-fallback.d.ts +46 -0
  6. package/codex-adapter/dist/ingestion/pain-receipt-fallback.js +193 -0
  7. package/codex-adapter/dist/ingestion/turn-context.d.ts +10 -15
  8. package/codex-adapter/dist/ingestion/turn-context.js +35 -9
  9. package/codex-adapter/dist/pd-hook.js +57 -1
  10. package/codex-adapter/dist/worker/workspace-worker.d.ts +15 -0
  11. package/codex-adapter/dist/worker/workspace-worker.js +91 -12
  12. package/codex-adapter/package.json +1 -1
  13. package/console/dist/server/index.js +10 -0
  14. package/console/dist/server/models/EvidenceChainConsoleModel.js +31 -0
  15. package/console/dist/server/routes/service-host.d.ts +19 -0
  16. package/console/dist/server/routes/service-host.js +129 -0
  17. package/console/dist/web/assets/app.js +37 -37
  18. package/core/dist/runtime/context-payload.d.ts +48 -0
  19. package/core/dist/runtime/context-payload.d.ts.map +1 -1
  20. package/core/dist/runtime/context-payload.js +12 -0
  21. package/core/dist/runtime/context-payload.js.map +1 -1
  22. package/core/dist/runtime/diagnostician/rootcause-prompt-builder.d.ts.map +1 -1
  23. package/core/dist/runtime/diagnostician/rootcause-prompt-builder.js +18 -0
  24. package/core/dist/runtime/diagnostician/rootcause-prompt-builder.js.map +1 -1
  25. package/core/dist/runtime/diagnostician-candidate.d.ts.map +1 -1
  26. package/core/dist/runtime/diagnostician-candidate.js +18 -2
  27. package/core/dist/runtime/diagnostician-candidate.js.map +1 -1
  28. package/core/dist/runtime/evidence-guards.d.ts +7 -3
  29. package/core/dist/runtime/evidence-guards.d.ts.map +1 -1
  30. package/core/dist/runtime/evidence-guards.js +9 -7
  31. package/core/dist/runtime/evidence-guards.js.map +1 -1
  32. package/core/dist/runtime/feature-flags/feature-flag-contract.d.ts.map +1 -1
  33. package/core/dist/runtime/feature-flags/feature-flag-contract.js +14 -0
  34. package/core/dist/runtime/feature-flags/feature-flag-contract.js.map +1 -1
  35. package/core/dist/runtime/feature-flags/feature-flag-lifecycle.d.ts.map +1 -1
  36. package/core/dist/runtime/feature-flags/feature-flag-lifecycle.js +8 -0
  37. package/core/dist/runtime/feature-flags/feature-flag-lifecycle.js.map +1 -1
  38. package/core/dist/runtime/host-submission-context.d.ts +83 -0
  39. package/core/dist/runtime/host-submission-context.d.ts.map +1 -0
  40. package/core/dist/runtime/host-submission-context.js +183 -0
  41. package/core/dist/runtime/host-submission-context.js.map +1 -0
  42. package/core/dist/runtime/index.d.ts +9 -2
  43. package/core/dist/runtime/index.d.ts.map +1 -1
  44. package/core/dist/runtime/index.js +29 -2
  45. package/core/dist/runtime/index.js.map +1 -1
  46. package/core/dist/runtime/intent/intent-doc.d.ts.map +1 -1
  47. package/core/dist/runtime/intent/intent-doc.js +29 -5
  48. package/core/dist/runtime/intent/intent-doc.js.map +1 -1
  49. package/core/dist/runtime/internalization/diag-distiller-runner.d.ts +9 -0
  50. package/core/dist/runtime/internalization/diag-distiller-runner.d.ts.map +1 -1
  51. package/core/dist/runtime/internalization/diag-distiller-runner.js +13 -0
  52. package/core/dist/runtime/internalization/diag-distiller-runner.js.map +1 -1
  53. package/core/dist/runtime/internalization/diag-rootcause-runner.d.ts +11 -0
  54. package/core/dist/runtime/internalization/diag-rootcause-runner.d.ts.map +1 -1
  55. package/core/dist/runtime/internalization/diag-rootcause-runner.js +10 -0
  56. package/core/dist/runtime/internalization/diag-rootcause-runner.js.map +1 -1
  57. package/core/dist/runtime/internalization/diag-router-runner.d.ts +9 -0
  58. package/core/dist/runtime/internalization/diag-router-runner.d.ts.map +1 -1
  59. package/core/dist/runtime/internalization/diag-router-runner.js +13 -0
  60. package/core/dist/runtime/internalization/diag-router-runner.js.map +1 -1
  61. package/core/dist/runtime/internalization/index.d.ts +1 -1
  62. package/core/dist/runtime/internalization/index.d.ts.map +1 -1
  63. package/core/dist/runtime/internalization/index.js +1 -1
  64. package/core/dist/runtime/internalization/index.js.map +1 -1
  65. package/core/dist/runtime/internalization/intake-to-internalization-bridge.d.ts +19 -0
  66. package/core/dist/runtime/internalization/intake-to-internalization-bridge.d.ts.map +1 -1
  67. package/core/dist/runtime/internalization/intake-to-internalization-bridge.js +24 -0
  68. package/core/dist/runtime/internalization/intake-to-internalization-bridge.js.map +1 -1
  69. package/core/dist/runtime/internalization/internalization-orchestrator.d.ts +8 -0
  70. package/core/dist/runtime/internalization/internalization-orchestrator.d.ts.map +1 -1
  71. package/core/dist/runtime/internalization/internalization-orchestrator.js +36 -4
  72. package/core/dist/runtime/internalization/internalization-orchestrator.js.map +1 -1
  73. package/core/dist/runtime/internalization/source-authorization-boundary.d.ts +39 -0
  74. package/core/dist/runtime/internalization/source-authorization-boundary.d.ts.map +1 -0
  75. package/core/dist/runtime/internalization/source-authorization-boundary.js +57 -0
  76. package/core/dist/runtime/internalization/source-authorization-boundary.js.map +1 -0
  77. package/core/dist/runtime/internalization/split-diagnostician-runner.d.ts.map +1 -1
  78. package/core/dist/runtime/internalization/split-diagnostician-runner.js +72 -5
  79. package/core/dist/runtime/internalization/split-diagnostician-runner.js.map +1 -1
  80. package/core/dist/runtime/pain-admission-disposition.d.ts +60 -0
  81. package/core/dist/runtime/pain-admission-disposition.d.ts.map +1 -0
  82. package/core/dist/runtime/pain-admission-disposition.js +37 -0
  83. package/core/dist/runtime/pain-admission-disposition.js.map +1 -0
  84. package/core/dist/runtime/pain-ingress-payload.d.ts +36 -2
  85. package/core/dist/runtime/pain-ingress-payload.d.ts.map +1 -1
  86. package/core/dist/runtime/pain-ingress-payload.js +63 -6
  87. package/core/dist/runtime/pain-ingress-payload.js.map +1 -1
  88. package/core/dist/runtime/pain-ingress.d.ts.map +1 -1
  89. package/core/dist/runtime/pain-ingress.js +28 -0
  90. package/core/dist/runtime/pain-ingress.js.map +1 -1
  91. package/core/dist/runtime/pain-recall-read-model.d.ts +13 -1
  92. package/core/dist/runtime/pain-recall-read-model.d.ts.map +1 -1
  93. package/core/dist/runtime/pain-recall-read-model.js +50 -7
  94. package/core/dist/runtime/pain-recall-read-model.js.map +1 -1
  95. package/core/dist/runtime/pain-receipt-recovery.d.ts +147 -0
  96. package/core/dist/runtime/pain-receipt-recovery.d.ts.map +1 -0
  97. package/core/dist/runtime/pain-receipt-recovery.js +475 -0
  98. package/core/dist/runtime/pain-receipt-recovery.js.map +1 -0
  99. package/core/dist/runtime/pain-signal-bridge.d.ts +13 -1
  100. package/core/dist/runtime/pain-signal-bridge.d.ts.map +1 -1
  101. package/core/dist/runtime/pain-signal-bridge.js +174 -0
  102. package/core/dist/runtime/pain-signal-bridge.js.map +1 -1
  103. package/core/dist/runtime/pain-signal-runtime-factory.d.ts +9 -0
  104. package/core/dist/runtime/pain-signal-runtime-factory.d.ts.map +1 -1
  105. package/core/dist/runtime/pain-signal-runtime-factory.js +8 -3
  106. package/core/dist/runtime/pain-signal-runtime-factory.js.map +1 -1
  107. package/core/dist/runtime/pain-submit-capability.d.ts +11 -0
  108. package/core/dist/runtime/pain-submit-capability.d.ts.map +1 -1
  109. package/core/dist/runtime/pain-submit-capability.js +77 -3
  110. package/core/dist/runtime/pain-submit-capability.js.map +1 -1
  111. package/core/dist/runtime/pain-target-evidence-reconcile.d.ts +55 -0
  112. package/core/dist/runtime/pain-target-evidence-reconcile.d.ts.map +1 -0
  113. package/core/dist/runtime/pain-target-evidence-reconcile.js +164 -0
  114. package/core/dist/runtime/pain-target-evidence-reconcile.js.map +1 -0
  115. package/core/dist/runtime/pain-to-principle-service.d.ts +8 -0
  116. package/core/dist/runtime/pain-to-principle-service.d.ts.map +1 -1
  117. package/core/dist/runtime/pain-to-principle-service.js +1 -0
  118. package/core/dist/runtime/pain-to-principle-service.js.map +1 -1
  119. package/core/dist/runtime/source-material-authorization.d.ts +166 -0
  120. package/core/dist/runtime/source-material-authorization.d.ts.map +1 -0
  121. package/core/dist/runtime/source-material-authorization.js +250 -0
  122. package/core/dist/runtime/source-material-authorization.js.map +1 -0
  123. package/core/dist/runtime/store/context/index.d.ts +1 -0
  124. package/core/dist/runtime/store/context/index.d.ts.map +1 -1
  125. package/core/dist/runtime/store/context/index.js +1 -0
  126. package/core/dist/runtime/store/context/index.js.map +1 -1
  127. package/core/dist/runtime/store/context/promoted-evidence-reader.d.ts +8 -0
  128. package/core/dist/runtime/store/context/promoted-evidence-reader.d.ts.map +1 -1
  129. package/core/dist/runtime/store/context/promoted-evidence-reader.js +15 -1
  130. package/core/dist/runtime/store/context/promoted-evidence-reader.js.map +1 -1
  131. package/core/dist/runtime/store/context/sqlite-context-assembler.d.ts +22 -0
  132. package/core/dist/runtime/store/context/sqlite-context-assembler.d.ts.map +1 -1
  133. package/core/dist/runtime/store/context/sqlite-context-assembler.js +153 -3
  134. package/core/dist/runtime/store/context/sqlite-context-assembler.js.map +1 -1
  135. package/core/dist/runtime/store/context/trajectory-turn-reader.d.ts +13 -0
  136. package/core/dist/runtime/store/context/trajectory-turn-reader.d.ts.map +1 -1
  137. package/core/dist/runtime/store/lifecycle/lease-manager.d.ts +15 -0
  138. package/core/dist/runtime/store/lifecycle/lease-manager.d.ts.map +1 -1
  139. package/core/dist/runtime/store/lifecycle/lease-manager.js +16 -1
  140. package/core/dist/runtime/store/lifecycle/lease-manager.js.map +1 -1
  141. package/core/dist/runtime/store/runtime-state-manager.d.ts +2 -0
  142. package/core/dist/runtime/store/runtime-state-manager.d.ts.map +1 -1
  143. package/core/dist/runtime/store/runtime-state-manager.js.map +1 -1
  144. package/core/dist/runtime/store/task/memory-task-store.d.ts +1 -0
  145. package/core/dist/runtime/store/task/memory-task-store.d.ts.map +1 -1
  146. package/core/dist/runtime/store/task/memory-task-store.js +37 -0
  147. package/core/dist/runtime/store/task/memory-task-store.js.map +1 -1
  148. package/core/dist/runtime/store/task/sqlite-task-store.d.ts +10 -0
  149. package/core/dist/runtime/store/task/sqlite-task-store.d.ts.map +1 -1
  150. package/core/dist/runtime/store/task/sqlite-task-store.js +20 -0
  151. package/core/dist/runtime/store/task/sqlite-task-store.js.map +1 -1
  152. package/core/dist/runtime/store/task/task-store.d.ts +16 -0
  153. package/core/dist/runtime/store/task/task-store.d.ts.map +1 -1
  154. package/core/dist/runtime/task-status.d.ts +13 -0
  155. package/core/dist/runtime/task-status.d.ts.map +1 -1
  156. package/core/dist/runtime/task-status.js +9 -0
  157. package/core/dist/runtime/task-status.js.map +1 -1
  158. package/core/dist/runtime/types/evidence-chain-contract.d.ts +10 -0
  159. package/core/dist/runtime/types/evidence-chain-contract.d.ts.map +1 -1
  160. package/core/dist/runtime/types/evidence-chain-contract.js +7 -0
  161. package/core/dist/runtime/types/evidence-chain-contract.js.map +1 -1
  162. package/core/package.json +1 -1
  163. package/dist/index.d.ts.map +1 -1
  164. package/dist/index.js +11 -0
  165. package/dist/index.js.map +1 -1
  166. package/dist/installer.d.ts.map +1 -1
  167. package/dist/installer.js +77 -30
  168. package/dist/installer.js.map +1 -1
  169. package/dist/installers/mcp-registration-conflict.d.ts +8 -0
  170. package/dist/installers/mcp-registration-conflict.d.ts.map +1 -1
  171. package/dist/installers/mcp-registration-conflict.js +34 -1
  172. package/dist/installers/mcp-registration-conflict.js.map +1 -1
  173. package/dist/installers/workbuddy-host-installer.d.ts +45 -13
  174. package/dist/installers/workbuddy-host-installer.d.ts.map +1 -1
  175. package/dist/installers/workbuddy-host-installer.js +284 -21
  176. package/dist/installers/workbuddy-host-installer.js.map +1 -1
  177. package/dist/prompts.d.ts +11 -0
  178. package/dist/prompts.d.ts.map +1 -1
  179. package/dist/prompts.js +4 -0
  180. package/dist/prompts.js.map +1 -1
  181. package/dist/service-host-bridge.d.ts +67 -0
  182. package/dist/service-host-bridge.d.ts.map +1 -0
  183. package/dist/service-host-bridge.js +292 -0
  184. package/dist/service-host-bridge.js.map +1 -0
  185. package/dist/uninstaller.d.ts.map +1 -1
  186. package/dist/uninstaller.js +26 -0
  187. package/dist/uninstaller.js.map +1 -1
  188. package/dist/update/install-layout.d.ts +0 -12
  189. package/dist/update/install-layout.d.ts.map +1 -1
  190. package/dist/update/install-layout.js +42 -15
  191. package/dist/update/install-layout.js.map +1 -1
  192. package/host-runtime/dist/diagnostician-auto-run.js +4 -1
  193. package/host-runtime/dist/governance-observation-store.d.ts +7 -0
  194. package/host-runtime/dist/governance-observation-store.js +15 -4
  195. package/host-runtime/dist/governance-signal-admission.d.ts +49 -0
  196. package/host-runtime/dist/governance-signal-admission.js +355 -94
  197. package/host-runtime/dist/governance-trajectory-turn-reader.d.ts +20 -4
  198. package/host-runtime/dist/governance-trajectory-turn-reader.js +77 -5
  199. package/host-runtime/dist/index.d.ts +2 -0
  200. package/host-runtime/dist/index.js +5 -0
  201. package/host-runtime/dist/internalization-consumer-cycle.js +4 -1
  202. package/host-runtime/dist/pd-config.d.ts +10 -0
  203. package/host-runtime/dist/pd-config.js +37 -0
  204. package/host-runtime/dist/signal-stage2-cycle.js +28 -1
  205. package/host-runtime/dist/source-material-authorization.d.ts +53 -0
  206. package/host-runtime/dist/source-material-authorization.js +67 -0
  207. package/host-runtime/dist/source-revocation-sweep.d.ts +172 -0
  208. package/host-runtime/dist/source-revocation-sweep.js +928 -0
  209. package/host-runtime/package.json +5 -1
  210. package/install-layout/dist/background-execution-transition.d.ts +258 -0
  211. package/install-layout/dist/background-execution-transition.js +836 -0
  212. package/install-layout/dist/index.d.ts +8 -0
  213. package/install-layout/dist/index.js +8 -0
  214. package/install-layout/package.json +6 -2
  215. package/package.json +4 -4
  216. package/pd-cli/dist/commands/candidate.d.ts.map +1 -1
  217. package/pd-cli/dist/commands/candidate.js +16 -5
  218. package/pd-cli/dist/commands/candidate.js.map +1 -1
  219. package/pd-cli/dist/commands/codex-setup.d.ts.map +1 -1
  220. package/pd-cli/dist/commands/codex-setup.js +17 -1
  221. package/pd-cli/dist/commands/codex-setup.js.map +1 -1
  222. package/pd-cli/dist/commands/codex-worker.d.ts.map +1 -1
  223. package/pd-cli/dist/commands/codex-worker.js +8 -4
  224. package/pd-cli/dist/commands/codex-worker.js.map +1 -1
  225. package/pd-cli/dist/commands/consent-sweep-revoked.d.ts +20 -0
  226. package/pd-cli/dist/commands/consent-sweep-revoked.d.ts.map +1 -0
  227. package/pd-cli/dist/commands/consent-sweep-revoked.js +85 -0
  228. package/pd-cli/dist/commands/consent-sweep-revoked.js.map +1 -0
  229. package/pd-cli/dist/commands/context.d.ts.map +1 -1
  230. package/pd-cli/dist/commands/context.js +9 -1
  231. package/pd-cli/dist/commands/context.js.map +1 -1
  232. package/pd-cli/dist/commands/diagnose.d.ts.map +1 -1
  233. package/pd-cli/dist/commands/diagnose.js +12 -6
  234. package/pd-cli/dist/commands/diagnose.js.map +1 -1
  235. package/pd-cli/dist/commands/openclaw-worker.d.ts +11 -0
  236. package/pd-cli/dist/commands/openclaw-worker.d.ts.map +1 -0
  237. package/pd-cli/dist/commands/openclaw-worker.js +199 -0
  238. package/pd-cli/dist/commands/openclaw-worker.js.map +1 -0
  239. package/pd-cli/dist/commands/pain-explicit.d.ts.map +1 -1
  240. package/pd-cli/dist/commands/pain-explicit.js +1 -0
  241. package/pd-cli/dist/commands/pain-explicit.js.map +1 -1
  242. package/pd-cli/dist/commands/pain-recall.d.ts +2 -2
  243. package/pd-cli/dist/commands/pain-recall.d.ts.map +1 -1
  244. package/pd-cli/dist/commands/pain-recall.js +7 -1
  245. package/pd-cli/dist/commands/pain-recall.js.map +1 -1
  246. package/pd-cli/dist/commands/pain-retry.d.ts.map +1 -1
  247. package/pd-cli/dist/commands/pain-retry.js +12 -6
  248. package/pd-cli/dist/commands/pain-retry.js.map +1 -1
  249. package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.d.ts.map +1 -1
  250. package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js +2 -1
  251. package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js.map +1 -1
  252. package/pd-cli/dist/commands/runtime-internalization-run-once.d.ts +1 -0
  253. package/pd-cli/dist/commands/runtime-internalization-run-once.d.ts.map +1 -1
  254. package/pd-cli/dist/commands/runtime-internalization-run-once.js +32 -8
  255. package/pd-cli/dist/commands/runtime-internalization-run-once.js.map +1 -1
  256. package/pd-cli/dist/commands/runtime-internalization-wake-once.d.ts.map +1 -1
  257. package/pd-cli/dist/commands/runtime-internalization-wake-once.js +2 -1
  258. package/pd-cli/dist/commands/runtime-internalization-wake-once.js.map +1 -1
  259. package/pd-cli/dist/commands/service-handover.d.ts +12 -0
  260. package/pd-cli/dist/commands/service-handover.d.ts.map +1 -0
  261. package/pd-cli/dist/commands/service-handover.js +117 -0
  262. package/pd-cli/dist/commands/service-handover.js.map +1 -0
  263. package/pd-cli/dist/commands/service-lifecycle.d.ts +31 -0
  264. package/pd-cli/dist/commands/service-lifecycle.d.ts.map +1 -0
  265. package/pd-cli/dist/commands/service-lifecycle.js +207 -0
  266. package/pd-cli/dist/commands/service-lifecycle.js.map +1 -0
  267. package/pd-cli/dist/commands/service-run-once.d.ts +96 -0
  268. package/pd-cli/dist/commands/service-run-once.d.ts.map +1 -1
  269. package/pd-cli/dist/commands/service-run-once.js +432 -13
  270. package/pd-cli/dist/commands/service-run-once.js.map +1 -1
  271. package/pd-cli/dist/commands/workbuddy-setup.d.ts.map +1 -1
  272. package/pd-cli/dist/commands/workbuddy-setup.js +22 -2
  273. package/pd-cli/dist/commands/workbuddy-setup.js.map +1 -1
  274. package/pd-cli/dist/program.d.ts.map +1 -1
  275. package/pd-cli/dist/program.js +167 -9
  276. package/pd-cli/dist/program.js.map +1 -1
  277. package/pd-cli/dist/services/admission-write-gate.d.ts +3 -1
  278. package/pd-cli/dist/services/admission-write-gate.d.ts.map +1 -1
  279. package/pd-cli/dist/services/admission-write-gate.js +1 -0
  280. package/pd-cli/dist/services/admission-write-gate.js.map +1 -1
  281. package/pd-cli/dist/services/service-host/coordinator-common.d.ts +49 -0
  282. package/pd-cli/dist/services/service-host/coordinator-common.d.ts.map +1 -0
  283. package/pd-cli/dist/services/service-host/coordinator-common.js +158 -0
  284. package/pd-cli/dist/services/service-host/coordinator-common.js.map +1 -0
  285. package/pd-cli/dist/services/service-host/handover-claims.d.ts +14 -0
  286. package/pd-cli/dist/services/service-host/handover-claims.d.ts.map +1 -0
  287. package/pd-cli/dist/services/service-host/handover-claims.js +50 -0
  288. package/pd-cli/dist/services/service-host/handover-claims.js.map +1 -0
  289. package/pd-cli/dist/services/service-host/index.d.ts +19 -3
  290. package/pd-cli/dist/services/service-host/index.d.ts.map +1 -1
  291. package/pd-cli/dist/services/service-host/index.js +21 -3
  292. package/pd-cli/dist/services/service-host/index.js.map +1 -1
  293. package/pd-cli/dist/services/service-host/install-identity.d.ts +23 -3
  294. package/pd-cli/dist/services/service-host/install-identity.d.ts.map +1 -1
  295. package/pd-cli/dist/services/service-host/install-identity.js +15 -5
  296. package/pd-cli/dist/services/service-host/install-identity.js.map +1 -1
  297. package/pd-cli/dist/services/service-host/locking/service-run-lock.d.ts +130 -9
  298. package/pd-cli/dist/services/service-host/locking/service-run-lock.d.ts.map +1 -1
  299. package/pd-cli/dist/services/service-host/locking/service-run-lock.js +99 -19
  300. package/pd-cli/dist/services/service-host/locking/service-run-lock.js.map +1 -1
  301. package/pd-cli/dist/services/service-host/managed-run.d.ts +75 -0
  302. package/pd-cli/dist/services/service-host/managed-run.d.ts.map +1 -0
  303. package/pd-cli/dist/services/service-host/managed-run.js +550 -0
  304. package/pd-cli/dist/services/service-host/managed-run.js.map +1 -0
  305. package/pd-cli/dist/services/service-host/progress-evidence.d.ts +38 -0
  306. package/pd-cli/dist/services/service-host/progress-evidence.d.ts.map +1 -0
  307. package/pd-cli/dist/services/service-host/progress-evidence.js +155 -0
  308. package/pd-cli/dist/services/service-host/progress-evidence.js.map +1 -0
  309. package/pd-cli/dist/services/service-host/run-once.d.ts.map +1 -1
  310. package/pd-cli/dist/services/service-host/run-once.js +4 -136
  311. package/pd-cli/dist/services/service-host/run-once.js.map +1 -1
  312. package/pd-cli/dist/services/service-host/scheduler/contract.d.ts +184 -0
  313. package/pd-cli/dist/services/service-host/scheduler/contract.d.ts.map +1 -0
  314. package/pd-cli/dist/services/service-host/scheduler/contract.js +86 -0
  315. package/pd-cli/dist/services/service-host/scheduler/contract.js.map +1 -0
  316. package/pd-cli/dist/services/service-host/scheduler/index.d.ts +76 -0
  317. package/pd-cli/dist/services/service-host/scheduler/index.d.ts.map +1 -0
  318. package/pd-cli/dist/services/service-host/scheduler/index.js +128 -0
  319. package/pd-cli/dist/services/service-host/scheduler/index.js.map +1 -0
  320. package/pd-cli/dist/services/service-host/scheduler/linux.d.ts +27 -0
  321. package/pd-cli/dist/services/service-host/scheduler/linux.d.ts.map +1 -0
  322. package/pd-cli/dist/services/service-host/scheduler/linux.js +1010 -0
  323. package/pd-cli/dist/services/service-host/scheduler/linux.js.map +1 -0
  324. package/pd-cli/dist/services/service-host/scheduler/macos.d.ts +13 -0
  325. package/pd-cli/dist/services/service-host/scheduler/macos.d.ts.map +1 -0
  326. package/pd-cli/dist/services/service-host/scheduler/macos.js +819 -0
  327. package/pd-cli/dist/services/service-host/scheduler/macos.js.map +1 -0
  328. package/pd-cli/dist/services/service-host/scheduler/runtime-io.d.ts +13 -0
  329. package/pd-cli/dist/services/service-host/scheduler/runtime-io.d.ts.map +1 -0
  330. package/pd-cli/dist/services/service-host/scheduler/runtime-io.js +141 -0
  331. package/pd-cli/dist/services/service-host/scheduler/runtime-io.js.map +1 -0
  332. package/pd-cli/dist/services/service-host/scheduler/service-status.d.ts +99 -0
  333. package/pd-cli/dist/services/service-host/scheduler/service-status.d.ts.map +1 -0
  334. package/pd-cli/dist/services/service-host/scheduler/service-status.js +202 -0
  335. package/pd-cli/dist/services/service-host/scheduler/service-status.js.map +1 -0
  336. package/pd-cli/dist/services/service-host/scheduler/windows.d.ts +40 -0
  337. package/pd-cli/dist/services/service-host/scheduler/windows.d.ts.map +1 -0
  338. package/pd-cli/dist/services/service-host/scheduler/windows.js +688 -0
  339. package/pd-cli/dist/services/service-host/scheduler/windows.js.map +1 -0
  340. package/pd-cli/dist/services/service-host/shadow-progress-store.d.ts +43 -0
  341. package/pd-cli/dist/services/service-host/shadow-progress-store.d.ts.map +1 -0
  342. package/pd-cli/dist/services/service-host/shadow-progress-store.js +156 -0
  343. package/pd-cli/dist/services/service-host/shadow-progress-store.js.map +1 -0
  344. package/pd-cli/dist/services/service-host/shadow-run.d.ts +87 -0
  345. package/pd-cli/dist/services/service-host/shadow-run.d.ts.map +1 -0
  346. package/pd-cli/dist/services/service-host/shadow-run.js +549 -0
  347. package/pd-cli/dist/services/service-host/shadow-run.js.map +1 -0
  348. package/pd-cli/dist/services/service-host/status/service-run-status.d.ts +114 -4
  349. package/pd-cli/dist/services/service-host/status/service-run-status.d.ts.map +1 -1
  350. package/pd-cli/dist/services/service-host/status/service-run-status.js +37 -0
  351. package/pd-cli/dist/services/service-host/status/service-run-status.js.map +1 -1
  352. package/pd-cli/dist/services/service-host/worker-adapter-codex.d.ts +2 -0
  353. package/pd-cli/dist/services/service-host/worker-adapter-codex.d.ts.map +1 -0
  354. package/pd-cli/dist/services/service-host/worker-adapter-codex.js +76 -0
  355. package/pd-cli/dist/services/service-host/worker-adapter-codex.js.map +1 -0
  356. package/pd-cli/dist/services/service-host/worker-adapter-openclaw.d.ts +2 -0
  357. package/pd-cli/dist/services/service-host/worker-adapter-openclaw.d.ts.map +1 -0
  358. package/pd-cli/dist/services/service-host/worker-adapter-openclaw.js +49 -0
  359. package/pd-cli/dist/services/service-host/worker-adapter-openclaw.js.map +1 -0
  360. package/pd-cli/dist/services/service-host/worker-adapter-workbuddy.d.ts +2 -0
  361. package/pd-cli/dist/services/service-host/worker-adapter-workbuddy.d.ts.map +1 -0
  362. package/pd-cli/dist/services/service-host/worker-adapter-workbuddy.js +36 -0
  363. package/pd-cli/dist/services/service-host/worker-adapter-workbuddy.js.map +1 -0
  364. package/pd-cli/dist/services/service-host/worker-adapter.d.ts +187 -0
  365. package/pd-cli/dist/services/service-host/worker-adapter.d.ts.map +1 -0
  366. package/pd-cli/dist/services/service-host/worker-adapter.js +609 -0
  367. package/pd-cli/dist/services/service-host/worker-adapter.js.map +1 -0
  368. package/pd-cli/dist/services/service-host/worker-env.d.ts +84 -0
  369. package/pd-cli/dist/services/service-host/worker-env.d.ts.map +1 -0
  370. package/pd-cli/dist/services/service-host/worker-env.js +195 -0
  371. package/pd-cli/dist/services/service-host/worker-env.js.map +1 -0
  372. package/pd-cli/dist/services/service-host/worker-process.d.ts +75 -0
  373. package/pd-cli/dist/services/service-host/worker-process.d.ts.map +1 -0
  374. package/pd-cli/dist/services/service-host/worker-process.js +225 -0
  375. package/pd-cli/dist/services/service-host/worker-process.js.map +1 -0
  376. package/pd-cli/dist/services/service-host/workspace-dispatch.d.ts +61 -0
  377. package/pd-cli/dist/services/service-host/workspace-dispatch.d.ts.map +1 -0
  378. package/pd-cli/dist/services/service-host/workspace-dispatch.js +105 -0
  379. package/pd-cli/dist/services/service-host/workspace-dispatch.js.map +1 -0
  380. package/pd-cli/dist/services/service-host/workspace-handover.d.ts +190 -0
  381. package/pd-cli/dist/services/service-host/workspace-handover.d.ts.map +1 -0
  382. package/pd-cli/dist/services/service-host/workspace-handover.js +1393 -0
  383. package/pd-cli/dist/services/service-host/workspace-handover.js.map +1 -0
  384. package/pd-cli/package.json +6 -5
  385. package/pd-mcp-server/dist/submit-assembly.js +159 -42
  386. package/pd-mcp-server/dist/version.d.ts +1 -1
  387. package/pd-mcp-server/dist/version.js +1 -1
  388. package/pd-mcp-server/package.json +1 -1
  389. package/plugin/dist/bundle.js +586 -568
  390. package/plugin/dist/openclaw-worker.d.ts +92 -0
  391. package/plugin/dist/openclaw-worker.js +2439 -0
  392. package/plugin/dist/openclaw.plugin.json +1 -1
  393. package/plugin/dist/service/gateway-consumer-lease.d.ts +142 -0
  394. package/plugin/dist/service/gateway-quiesce-ack.d.ts +40 -0
  395. package/plugin/dist/service/internalization-auto-consumer-service.d.ts +68 -1
  396. package/plugin/openclaw.plugin.json +1 -1
  397. package/plugin/package.json +5 -1
  398. package/release-manager/dist/installer.js +77 -30
  399. package/release-manager/dist/installers/mcp-registration-conflict.js +34 -1
  400. package/release-manager/dist/installers/workbuddy-host-installer.js +284 -21
  401. package/release-manager/dist/service-host-bridge.js +292 -0
  402. package/release-manager/dist/update/install-layout.js +42 -15
  403. package/release-manager/package.json +2 -2
  404. package/workbuddy-adapter/dist/index.d.ts +1 -1
  405. package/workbuddy-adapter/dist/index.js +1 -1
  406. package/workbuddy-adapter/dist/worker/workspace-worker.d.ts +7 -0
  407. package/workbuddy-adapter/dist/worker/workspace-worker.js +179 -10
  408. package/workbuddy-adapter/package.json +1 -1
  409. package/workbuddy-adapter/plugin/.codebuddy-plugin/plugin.json +2 -2
@@ -0,0 +1,86 @@
1
+ /**
2
+ * OS Scheduler Adapter Contract — SPEC-PD-SERVICE-HOST-001 §11 Phase 3
3
+ * (PRI-1281).
4
+ *
5
+ * The Service Host's OS-level trigger is an INSTALL-LEVEL object: exactly one
6
+ * user-level scheduler registration per PD installation (NOT per workspace),
7
+ * bound to the trusted install identity resolved by the coordinator. The
8
+ * registration invokes the managed execution entry:
9
+ *
10
+ * <nodePath> <cliEntry> service run-once --json --trigger scheduler
11
+ * --pd-home <canonical pdHome>
12
+ *
13
+ * Platform implementations (Windows Task Scheduler / macOS LaunchAgent /
14
+ * Linux systemd --user) all expose the SAME five operations through this
15
+ * contract — the CLI never keeps three parallel lifecycle logic sets.
16
+ *
17
+ * Security invariants (SPEC §10, task §8):
18
+ * - runs as the current OS user only; no elevation, no system-level service;
19
+ * - no credential ever lands in the registration (arguments carry paths and
20
+ * flags only);
21
+ * - absolute install entry, no PATH / cwd dependence;
22
+ * - a registration whose definition does not reference THIS install's cli
23
+ * entry is FOREIGN — never overwritten or deleted (fail-closed);
24
+ * - the scheduler registration identity is derived from the canonical pdHome
25
+ * so two PD installations of the same user can never collide.
26
+ */
27
+ import * as crypto from 'node:crypto';
28
+ import * as path from 'node:path';
29
+ /**
30
+ * Default trigger interval — aligned with the existing Codex / WorkBuddy CLI
31
+ * worker default cadence (120,000 ms). This is a DEFAULT, not a performance
32
+ * SLA; every trigger runs one bounded run-once (task §3.5).
33
+ */
34
+ export const DEFAULT_SCHEDULER_INTERVAL_MS = 120_000;
35
+ /**
36
+ * Floor against meaningless high-frequency triggering (task §3.5). 60s: the
37
+ * Windows Task Scheduler repetition interval rejects anything below one
38
+ * minute (HRESULT 0x80041318, verified on a real host) — the contract keeps
39
+ * ONE cross-platform floor at the strictest platform minimum.
40
+ */
41
+ export const MIN_SCHEDULER_INTERVAL_MS = 60_000;
42
+ export const MAX_SCHEDULER_INTERVAL_MS = 30 * 24 * 60 * 60_000;
43
+ export function validateSchedulerIntervalMs(raw) {
44
+ if (raw === undefined)
45
+ return { ok: true, intervalMs: DEFAULT_SCHEDULER_INTERVAL_MS };
46
+ if (!Number.isSafeInteger(raw) || raw < MIN_SCHEDULER_INTERVAL_MS || raw > MAX_SCHEDULER_INTERVAL_MS) {
47
+ return {
48
+ ok: false,
49
+ reason: `scheduler_interval_out_of_range:${String(raw).slice(0, 40)}`,
50
+ nextAction: `--interval-ms must be an integer between ${MIN_SCHEDULER_INTERVAL_MS} (60s — the Windows Task Scheduler repetition floor) and ${MAX_SCHEDULER_INTERVAL_MS} (30 days). The default is ${DEFAULT_SCHEDULER_INTERVAL_MS} (120s, matching the existing CLI worker cadence).`,
51
+ };
52
+ }
53
+ return { ok: true, intervalMs: raw };
54
+ }
55
+ /**
56
+ * Derive the install-unique scheduler identity from a canonical pdHome.
57
+ * Windows path comparisons fold case so `D:\PD` and `d:\pd` cannot produce
58
+ * two registrations for one install (or collide two installs).
59
+ */
60
+ export function schedulerIdentityFor(pdHome) {
61
+ const normalized = process.platform === 'win32' ? path.resolve(pdHome).toLowerCase() : path.resolve(pdHome);
62
+ const installKey = crypto.createHash('sha256').update(normalized).digest('hex').slice(0, 10);
63
+ return {
64
+ installKey,
65
+ windowsTaskName: `PrinciplesDisciple-ServiceHost-${installKey}`,
66
+ macosLabel: `com.principles-disciple.service-host.${installKey}`,
67
+ linuxUnitBase: `pd-service-host-${installKey}`,
68
+ };
69
+ }
70
+ /**
71
+ * The exact managed-run invocation arguments registered with the OS. Kept in
72
+ * ONE place so every platform registers the identical command line. NOTE:
73
+ * `--pd-home` carries the trusted HOME root (registration.homeDir), matching
74
+ * the CLI flag's semantics (the CLI derives `<home>/.pd` itself).
75
+ */
76
+ export function schedulerInvocationArgs(registration) {
77
+ return [
78
+ registration.cliEntry,
79
+ 'service',
80
+ 'run-once',
81
+ '--json',
82
+ '--trigger', 'scheduler',
83
+ '--pd-home', registration.homeDir,
84
+ ];
85
+ }
86
+ //# sourceMappingURL=contract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.js","sourceRoot":"","sources":["../../../../src/services/service-host/scheduler/contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAKlC;;;;GAIG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,OAAO,CAAC;AACrD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC;AAChD,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;AAM/D,MAAM,UAAU,2BAA2B,CAAC,GAAuB;IACjE,IAAI,GAAG,KAAK,SAAS;QAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,6BAA6B,EAAE,CAAC;IACtF,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,yBAAyB,IAAI,GAAG,GAAG,yBA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, task §3.1/§5).
4
+ *
5
+ * One lifecycle logic set for every platform: resolve the TRUSTED install
6
+ * identity (OS account home / explicit trusted injection — never env-derived
7
+ * homes), resolve the active-release CLI entry, build the registration and
8
+ * hand it to the platform adapter. The CLI never keeps three parallel
9
+ * lifecycle paths.
10
+ */
11
+ import { type InstallIdentity } from '../install-identity.js';
12
+ import { resolveActiveReleaseCliEntry } from '../worker-adapter.js';
13
+ import { type SchedulerAdapter, type SchedulerCommandRunner, type SchedulerFileIo, type SchedulerFacts, type SchedulerRegistration } from './contract.js';
14
+ export * from './contract.js';
15
+ export { createWindowsSchedulerAdapter, buildWindowsTaskXml, windowsRepetitionDuration, parseWindowsIntervalMs } from './windows.js';
16
+ export type { WindowsSchedulerDeps } from './windows.js';
17
+ export { createMacosSchedulerAdapter, buildMacosLaunchAgentPlist, parseMacosStartIntervalMs } from './macos.js';
18
+ export type { MacosSchedulerDeps } from './macos.js';
19
+ export { createLinuxSchedulerAdapter, buildLinuxServiceUnit, buildLinuxTimerUnit, parseLinuxTimerIntervalMs } from './linux.js';
20
+ export type { LinuxSchedulerDeps } from './linux.js';
21
+ export { createSpawnSchedulerRunner, nodeSchedulerFileIo } from './runtime-io.js';
22
+ export type SchedulerAdapterResolution = {
23
+ readonly ok: true;
24
+ readonly adapter: SchedulerAdapter;
25
+ } | {
26
+ readonly ok: false;
27
+ readonly reason: 'platform_unsupported';
28
+ readonly platform: string;
29
+ readonly nextAction: string;
30
+ };
31
+ /** The three platforms a Phase 3 adapter exists for (process.platform values). */
32
+ export type SchedulerSupportedPlatform = 'win32' | 'darwin' | 'linux';
33
+ /** Select the platform adapter. process.platform unless injected. */
34
+ export declare function resolveSchedulerAdapter(deps?: {
35
+ readonly platform?: SchedulerSupportedPlatform;
36
+ readonly runner?: SchedulerCommandRunner;
37
+ readonly fileIo?: SchedulerFileIo;
38
+ }): SchedulerAdapterResolution;
39
+ export type SchedulerLifecycleOperation = 'install' | 'enable' | 'disable' | 'status' | 'uninstall';
40
+ export type SchedulerLifecycleResult = {
41
+ readonly ok: true;
42
+ readonly operation: SchedulerLifecycleOperation;
43
+ readonly identity: InstallIdentity;
44
+ readonly registration: SchedulerRegistration;
45
+ readonly changed: boolean;
46
+ readonly facts: SchedulerFacts;
47
+ } | {
48
+ readonly ok: false;
49
+ readonly operation: SchedulerLifecycleOperation;
50
+ readonly reason: string;
51
+ readonly nextAction: string;
52
+ readonly identity?: InstallIdentity;
53
+ readonly facts?: SchedulerFacts;
54
+ };
55
+ export interface SchedulerLifecycleOptions {
56
+ readonly env?: Readonly<Record<string, string | undefined>>;
57
+ /** Trusted home injection (installer / tests) — never env-derived. */
58
+ readonly trustedHomeDir?: string;
59
+ /** Install-time interval override (install only). */
60
+ readonly intervalMs?: number;
61
+ readonly probes?: {
62
+ readonly runner?: SchedulerCommandRunner;
63
+ readonly fileIo?: SchedulerFileIo;
64
+ readonly platform?: SchedulerSupportedPlatform;
65
+ /** CLI-entry resolution injection (tests; prod = active release). */
66
+ readonly resolveCliEntry?: typeof resolveActiveReleaseCliEntry;
67
+ /** Node executable pinned into the registration (tests; prod = process.execPath). */
68
+ readonly nodePath?: string;
69
+ };
70
+ }
71
+ /**
72
+ * Run one lifecycle operation against the real install identity. Never
73
+ * throws for expected refusals — structured results only (rc-9).
74
+ */
75
+ export declare function runSchedulerLifecycle(operation: SchedulerLifecycleOperation, options: SchedulerLifecycleOptions): Promise<SchedulerLifecycleResult>;
76
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/service-host/scheduler/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAqC,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACjG,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAIL,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,cAAc,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Q,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;KAC5B,CAAC;CACH;AAuBD;;;GAGG;AACH,wBAAsB,qBAAqB,CACzC,SAAS,EAAE,2BAA2B,EACtC,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,wBAAwB,CAAC,CAsEnC"}
@@ -0,0 +1,128 @@
1
+ /**
2
+ * Scheduler adapter resolution + the install-level lifecycle service the CLI
3
+ * commands call (SPEC-PD-SERVICE-HOST-001 §11 Phase 3, task §3.1/§5).
4
+ *
5
+ * One lifecycle logic set for every platform: resolve the TRUSTED install
6
+ * identity (OS account home / explicit trusted injection — never env-derived
7
+ * homes), resolve the active-release CLI entry, build the registration and
8
+ * hand it to the platform adapter. The CLI never keeps three parallel
9
+ * lifecycle paths.
10
+ */
11
+ import { resolveCoordinatorInstallIdentity } from '../install-identity.js';
12
+ import { resolveActiveReleaseCliEntry } from '../worker-adapter.js';
13
+ import { DEFAULT_SCHEDULER_INTERVAL_MS, schedulerIdentityFor, validateSchedulerIntervalMs, } from './contract.js';
14
+ export * from './contract.js';
15
+ import { createWindowsSchedulerAdapter } from './windows.js';
16
+ import { createMacosSchedulerAdapter } from './macos.js';
17
+ import { createLinuxSchedulerAdapter } from './linux.js';
18
+ import { createSpawnSchedulerRunner, nodeSchedulerFileIo } from './runtime-io.js';
19
+ export { createWindowsSchedulerAdapter, buildWindowsTaskXml, windowsRepetitionDuration, parseWindowsIntervalMs } from './windows.js';
20
+ export { createMacosSchedulerAdapter, buildMacosLaunchAgentPlist, parseMacosStartIntervalMs } from './macos.js';
21
+ export { createLinuxSchedulerAdapter, buildLinuxServiceUnit, buildLinuxTimerUnit, parseLinuxTimerIntervalMs } from './linux.js';
22
+ export { createSpawnSchedulerRunner, nodeSchedulerFileIo } from './runtime-io.js';
23
+ /** Select the platform adapter. process.platform unless injected. */
24
+ export function resolveSchedulerAdapter(deps) {
25
+ const platform = deps?.platform ?? process.platform;
26
+ const runner = deps?.runner ?? createSpawnSchedulerRunner();
27
+ const fileIo = deps?.fileIo ?? nodeSchedulerFileIo;
28
+ switch (platform) {
29
+ case 'win32':
30
+ return { ok: true, adapter: createWindowsSchedulerAdapter({ runner, fileIo }) };
31
+ case 'darwin':
32
+ return { ok: true, adapter: createMacosSchedulerAdapter({ runner, fileIo }) };
33
+ case 'linux':
34
+ return { ok: true, adapter: createLinuxSchedulerAdapter({ runner, fileIo }) };
35
+ default:
36
+ return {
37
+ ok: false,
38
+ reason: 'platform_unsupported',
39
+ platform: String(platform),
40
+ nextAction: `No user-level scheduler adapter exists for platform ${String(platform)}. Phase 3 supports Windows (Task Scheduler), macOS (LaunchAgent) and Linux (systemd --user).`,
41
+ };
42
+ }
43
+ }
44
+ /** Project an adapter operation result into the lifecycle result shape. */
45
+ function projectResult(args) {
46
+ const { operation, identity, registration, result } = args;
47
+ if (result.ok) {
48
+ return { ok: true, operation, identity, registration, changed: result.changed, facts: result.facts };
49
+ }
50
+ return {
51
+ ok: false,
52
+ operation,
53
+ identity,
54
+ reason: result.reason,
55
+ nextAction: result.nextAction,
56
+ ...(result.facts !== undefined ? { facts: result.facts } : {}),
57
+ };
58
+ }
59
+ /**
60
+ * Run one lifecycle operation against the real install identity. Never
61
+ * throws for expected refusals — structured results only (rc-9).
62
+ */
63
+ export async function runSchedulerLifecycle(operation, options) {
64
+ // Trusted identity only: the OS account record or an explicit trusted
65
+ // injection. Inherited HOME/USERPROFILE/PD_EXPERIMENT_ROOT never steer the
66
+ // registration (task §6.3, §8.6).
67
+ const identityResult = resolveCoordinatorInstallIdentity(options.env ?? process.env, {
68
+ ...(options.trustedHomeDir !== undefined ? { trustedHomeDir: options.trustedHomeDir } : {}),
69
+ canonicalHostRootsOnly: true,
70
+ });
71
+ if (!identityResult.ok) {
72
+ return { ok: false, operation, reason: identityResult.reason, nextAction: identityResult.nextAction };
73
+ }
74
+ const { identity } = identityResult;
75
+ const { probes } = options;
76
+ const adapterResolution = resolveSchedulerAdapter(probes === undefined ? undefined : {
77
+ ...(probes.runner !== undefined ? { runner: probes.runner } : {}),
78
+ ...(probes.fileIo !== undefined ? { fileIo: probes.fileIo } : {}),
79
+ ...(probes.platform !== undefined ? { platform: probes.platform } : {}),
80
+ });
81
+ if (!adapterResolution.ok) {
82
+ return { ok: false, operation, identity, reason: `${adapterResolution.reason}:${adapterResolution.platform}`, nextAction: adapterResolution.nextAction };
83
+ }
84
+ // The registration must invoke the INSTALLED CLI entry (active release),
85
+ // never the currently-running program file (task §6.2).
86
+ const resolveEntry = probes?.resolveCliEntry ?? resolveActiveReleaseCliEntry;
87
+ const entry = resolveEntry(identity);
88
+ if (entry.kind === 'missing') {
89
+ return {
90
+ ok: false,
91
+ operation,
92
+ identity,
93
+ reason: entry.reason,
94
+ nextAction: entry.nextAction,
95
+ };
96
+ }
97
+ if (operation === 'install') {
98
+ const interval = validateSchedulerIntervalMs(options.intervalMs);
99
+ if (!interval.ok) {
100
+ return { ok: false, operation, identity, reason: interval.reason, nextAction: interval.nextAction };
101
+ }
102
+ const registration = {
103
+ pdHome: identity.pdHome,
104
+ homeDir: identity.homeDir,
105
+ cliEntry: entry.entry,
106
+ nodePath: probes?.nodePath ?? process.execPath,
107
+ intervalMs: interval.intervalMs,
108
+ intervalExplicit: options.intervalMs !== undefined,
109
+ identity: schedulerIdentityFor(identity.pdHome),
110
+ };
111
+ const result = await adapterResolution.adapter.install(registration);
112
+ return projectResult({ operation, identity, registration, result });
113
+ }
114
+ // Non-install operations use the CURRENT registration definition for
115
+ // identity checks (the adapter compares it against the on-OS state); the
116
+ // interval is not consulted outside install.
117
+ const registration = {
118
+ pdHome: identity.pdHome,
119
+ homeDir: identity.homeDir,
120
+ cliEntry: entry.entry,
121
+ nodePath: probes?.nodePath ?? process.execPath,
122
+ intervalMs: DEFAULT_SCHEDULER_INTERVAL_MS,
123
+ identity: schedulerIdentityFor(identity.pdHome),
124
+ };
125
+ const result = await adapterResolution.adapter[operation](registration);
126
+ return projectResult({ operation, identity, registration, result });
127
+ }
128
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/service-host/scheduler/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,iCAAiC,EAAwB,MAAM,wBAAwB,CAAC;AACjG,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EACL,6BAA6B,EAC7B,oBAAoB,EACpB,2BAA2B,GAO5B,MAAM,eAAe,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAElF,OAAO,EAAE,6BAA6B,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAErI,OAAO,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAEhH,OAAO,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAEhI,OAAO,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AASlF,qEAAqE;AACrE,MAAM,UAAU,uBAAuB,CAAC,IAIvC;IACC,MAAM,QAAQ,GAAG,IAAI,EAAE,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC;IACpD,MAAM,MAAM,GAAG,IAAI,EAAE,MAAM,IAAI,0BAA0B,EAAE,CAAC;IAC5D,MAAM,MAAM,GAAG,IAAI,EAAE,MAAM,IAAI,mBAAmB,CAAC;IACnD,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,OAAO;YACV,OAAO,EAAE,EAA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C,MAAM,CAAC;SAChD,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,iBAAiB,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QACrE,OAAO,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC;IACtE,CAAC;IAED,qEAAqE;IACrE,yEAAyE;IACzE,6CAA6C;IAC7C,MAAM,YAAY,GAA0B;QAC1C,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,QAAQ,EAAE,KAAK,CAAC,KAAK;QACrB,QAAQ,EAAE,MAAM,EAAE,QAAQ,IAAI,OAAO,CAAC,QAAQ;QAC9C,UAAU,EAAE,6BAA6B;QACzC,QAAQ,EAAE,oBAAoB,CAAC,QAAQ,CAAC,MAAM,CAAC;KAChD,CAAC;IACF,MAAM,MAAM,GAAG,MAAM,iBAAiB,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC;IACxE,OAAO,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC;AACtE,CAAC"}
@@ -0,0 +1,27 @@
1
+ import type { SchedulerAdapter, SchedulerCommandRunner, SchedulerFileIo, SchedulerRegistration } from './contract.js';
2
+ /**
3
+ * systemd time-span → ms: `900s`, `15min`, `2h`, `1d`, `1w`, `1h30min`,
4
+ * `1h 30min`, or a bare number (seconds). Composite expressions are summed
5
+ * like systemd does; unknown units/leftover text yield null.
6
+ */
7
+ export declare function parseSystemdDurationMs(value: string): number | null;
8
+ /** Parse `OnUnitActiveSec=` from the timer unit's [Timer] section. */
9
+ export declare function parseLinuxTimerIntervalMs(timerUnit: string): number | null;
10
+ /**
11
+ * Quote one ExecStart argv token (task §7 review): double-quote the token
12
+ * and escape, in order, `%` → `%%` (specifier), `$` → `$$` (env
13
+ * expansion), `\` → `\\` and `"` → `\"` (quote syntax). The previous
14
+ * serializer escaped only `\` and `"`, silently corrupting paths like
15
+ * `/home/$USER dir` or `C:\proj%` on real hosts.
16
+ */
17
+ export declare function systemdQuote(value: string): string;
18
+ /** The oneshot service unit. Exported for unit tests. */
19
+ export declare function buildLinuxServiceUnit(registration: SchedulerRegistration): string;
20
+ /** The repeating timer unit. Exported for unit tests. */
21
+ export declare function buildLinuxTimerUnit(registration: SchedulerRegistration): string;
22
+ export interface LinuxSchedulerDeps {
23
+ readonly runner: SchedulerCommandRunner;
24
+ readonly fileIo: SchedulerFileIo;
25
+ }
26
+ export declare function createLinuxSchedulerAdapter(deps: LinuxSchedulerDeps): SchedulerAdapter;
27
+ //# sourceMappingURL=linux.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linux.d.ts","sourceRoot":"","sources":["../../../../src/services/service-host/scheduler/linux.ts"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EACV,gBAAgB,EAChB,sBAAsB,EAGtB,eAAe,EAEf,qBAAqB,EACtB,MAAM,eAAe,CAAC;AAmFvB;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAwCnE;AAED,sEAAsE;AACtE,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAK1E;AAaD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAOlD;AAOD,yDAAyD;AACzD,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,qBAAqB,GAAG,MAAM,CAejF;AAED,yDAAyD;AACzD,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,qBAAqB,GAAG,MAAM,CAe/E;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC;IACxC,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;CAClC;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,kBAAkB,GAAG,gBAAgB,CAkyBtF"}