@opencorelabs/lucidity 0.8.0 → 0.9.5

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 (371) hide show
  1. package/README.md +2 -2
  2. package/dist/assets/speech/lucidity-speech +0 -0
  3. package/dist/automations/service.d.ts +4 -0
  4. package/dist/automations/service.d.ts.map +1 -1
  5. package/dist/automations/service.js +60 -22
  6. package/dist/automations/store.d.ts +9 -3
  7. package/dist/automations/store.d.ts.map +1 -1
  8. package/dist/automations/store.js +45 -32
  9. package/dist/automations/workflow.d.ts +14 -0
  10. package/dist/automations/workflow.d.ts.map +1 -0
  11. package/dist/automations/workflow.js +57 -0
  12. package/dist/coding/listPrs.d.ts +2 -0
  13. package/dist/coding/listPrs.d.ts.map +1 -1
  14. package/dist/coding/listPrs.js +10 -0
  15. package/dist/coding/runCodeTurn.d.ts +3 -14
  16. package/dist/coding/runCodeTurn.d.ts.map +1 -1
  17. package/dist/coding/runCodeTurn.js +21 -86
  18. package/dist/coding/runReview.d.ts +10 -0
  19. package/dist/coding/runReview.d.ts.map +1 -0
  20. package/dist/coding/runReview.js +87 -0
  21. package/dist/coding/workspaceRegistry.d.ts +49 -1
  22. package/dist/coding/workspaceRegistry.d.ts.map +1 -1
  23. package/dist/coding/workspaceRegistry.js +208 -17
  24. package/dist/coding/worktree.d.ts +61 -18
  25. package/dist/coding/worktree.d.ts.map +1 -1
  26. package/dist/coding/worktree.js +149 -17
  27. package/dist/coding/worktreeSetup.d.ts +7 -0
  28. package/dist/coding/worktreeSetup.d.ts.map +1 -0
  29. package/dist/coding/worktreeSetup.js +49 -0
  30. package/dist/index.js +21 -28
  31. package/dist/jobs/briefing.d.ts +2 -16
  32. package/dist/jobs/briefing.d.ts.map +1 -1
  33. package/dist/jobs/briefing.js +65 -93
  34. package/dist/logTimestamps.d.ts +10 -0
  35. package/dist/logTimestamps.d.ts.map +1 -0
  36. package/dist/logTimestamps.js +12 -0
  37. package/dist/providerRecovery.d.ts +48 -0
  38. package/dist/providerRecovery.d.ts.map +1 -0
  39. package/dist/providerRecovery.js +100 -0
  40. package/dist/room/client.d.ts +2 -20
  41. package/dist/room/client.d.ts.map +1 -1
  42. package/dist/room/client.js +18 -29
  43. package/dist/room/computer.d.ts.map +1 -1
  44. package/dist/room/computer.js +1 -2
  45. package/dist/room/incidents.d.ts +3 -0
  46. package/dist/room/incidents.d.ts.map +1 -1
  47. package/dist/room/incidents.js +1 -0
  48. package/dist/room/turnQueue.d.ts.map +1 -1
  49. package/dist/room/turnQueue.js +28 -22
  50. package/dist/runtimeStore.d.ts +2 -0
  51. package/dist/runtimeStore.d.ts.map +1 -1
  52. package/dist/runtimeStore.js +17 -0
  53. package/dist/vault.d.ts +6 -3
  54. package/dist/vault.d.ts.map +1 -1
  55. package/dist/vault.js +18 -4
  56. package/package.json +1 -1
  57. package/src/automations/service.ts +47 -21
  58. package/src/automations/store.ts +41 -50
  59. package/src/automations/workflow.ts +49 -0
  60. package/src/coding/listPrs.ts +14 -0
  61. package/src/coding/runCodeTurn.ts +26 -95
  62. package/src/coding/runReview.ts +83 -0
  63. package/src/coding/workspaceRegistry.ts +186 -16
  64. package/src/coding/worktree.ts +161 -20
  65. package/src/coding/worktreeSetup.ts +50 -0
  66. package/src/index.ts +22 -31
  67. package/src/jobs/briefing.ts +62 -109
  68. package/src/logTimestamps.ts +14 -0
  69. package/src/providerRecovery.ts +99 -0
  70. package/src/room/client.ts +19 -54
  71. package/src/room/computer.ts +1 -2
  72. package/src/room/incidents.ts +4 -0
  73. package/src/room/turnQueue.ts +27 -29
  74. package/src/runtimeStore.ts +18 -1
  75. package/src/vault.ts +16 -7
  76. package/vendor/mcp-server/package.json +1 -1
  77. package/vendor/runtime/README.md +34 -0
  78. package/vendor/runtime/dist/executor/claudeAgent.d.ts +4 -0
  79. package/vendor/runtime/dist/executor/claudeAgent.d.ts.map +1 -1
  80. package/vendor/runtime/dist/executor/claudeAgent.js +57 -4
  81. package/vendor/runtime/dist/executor/codex.d.ts +7 -2
  82. package/vendor/runtime/dist/executor/codex.d.ts.map +1 -1
  83. package/vendor/runtime/dist/executor/codex.js +47 -4
  84. package/vendor/runtime/dist/executor/codexProtocol/AgentPath.d.ts +2 -0
  85. package/vendor/runtime/dist/executor/codexProtocol/AgentPath.d.ts.map +1 -0
  86. package/vendor/runtime/dist/executor/codexProtocol/AgentPath.js +2 -0
  87. package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationFailure.d.ts +6 -0
  88. package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationFailure.d.ts.map +1 -0
  89. package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationFailure.js +2 -0
  90. package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationItem.d.ts +12 -0
  91. package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationItem.d.ts.map +1 -0
  92. package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationItem.js +2 -0
  93. package/vendor/runtime/dist/executor/codexProtocol/LegacyAppPathString.d.ts +24 -0
  94. package/vendor/runtime/dist/executor/codexProtocol/LegacyAppPathString.d.ts.map +1 -0
  95. package/vendor/runtime/dist/executor/codexProtocol/LegacyAppPathString.js +2 -0
  96. package/vendor/runtime/dist/executor/codexProtocol/MessagePhase.d.ts +8 -0
  97. package/vendor/runtime/dist/executor/codexProtocol/MessagePhase.d.ts.map +1 -0
  98. package/vendor/runtime/dist/executor/codexProtocol/MessagePhase.js +2 -0
  99. package/vendor/runtime/dist/executor/codexProtocol/SleepItem.d.ts +8 -0
  100. package/vendor/runtime/dist/executor/codexProtocol/SleepItem.d.ts.map +1 -0
  101. package/vendor/runtime/dist/executor/codexProtocol/SleepItem.js +2 -0
  102. package/vendor/runtime/dist/executor/codexProtocol/SubAgentSource.d.ts +14 -0
  103. package/vendor/runtime/dist/executor/codexProtocol/SubAgentSource.d.ts.map +1 -0
  104. package/vendor/runtime/dist/executor/codexProtocol/SubAgentSource.js +2 -0
  105. package/vendor/runtime/dist/executor/codexProtocol/ThreadId.d.ts +7 -0
  106. package/vendor/runtime/dist/executor/codexProtocol/ThreadId.d.ts.map +1 -0
  107. package/vendor/runtime/dist/executor/codexProtocol/ThreadId.js +2 -0
  108. package/vendor/runtime/dist/executor/codexProtocol/WebSearchItem.d.ts +15 -0
  109. package/vendor/runtime/dist/executor/codexProtocol/WebSearchItem.d.ts.map +1 -0
  110. package/vendor/runtime/dist/executor/codexProtocol/WebSearchItem.js +2 -0
  111. package/vendor/runtime/dist/executor/codexProtocol/v2/AgentMessageDelivery.d.ts +2 -0
  112. package/vendor/runtime/dist/executor/codexProtocol/v2/AgentMessageDelivery.d.ts.map +1 -0
  113. package/vendor/runtime/dist/executor/codexProtocol/v2/AgentMessageDelivery.js +2 -0
  114. package/vendor/runtime/dist/executor/codexProtocol/v2/AsyncUserInputQuestion.d.ts +5 -0
  115. package/vendor/runtime/dist/executor/codexProtocol/v2/AsyncUserInputQuestion.d.ts.map +1 -0
  116. package/vendor/runtime/dist/executor/codexProtocol/v2/AsyncUserInputQuestion.js +2 -0
  117. package/vendor/runtime/dist/executor/codexProtocol/v2/CodexErrorInfo.d.ts +29 -0
  118. package/vendor/runtime/dist/executor/codexProtocol/v2/CodexErrorInfo.d.ts.map +1 -0
  119. package/vendor/runtime/dist/executor/codexProtocol/v2/CodexErrorInfo.js +2 -0
  120. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentState.d.ts +6 -0
  121. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentState.d.ts.map +1 -0
  122. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentState.js +2 -0
  123. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentStatus.d.ts +2 -0
  124. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentStatus.d.ts.map +1 -0
  125. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentStatus.js +2 -0
  126. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentTool.d.ts +2 -0
  127. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentTool.d.ts.map +1 -0
  128. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentTool.js +2 -0
  129. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentToolCallStatus.d.ts +2 -0
  130. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentToolCallStatus.d.ts.map +1 -0
  131. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentToolCallStatus.js +2 -0
  132. package/vendor/runtime/dist/executor/codexProtocol/v2/CommandAction.d.ts +20 -0
  133. package/vendor/runtime/dist/executor/codexProtocol/v2/CommandAction.d.ts.map +1 -0
  134. package/vendor/runtime/dist/executor/codexProtocol/v2/CommandAction.js +2 -0
  135. package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionSource.d.ts +2 -0
  136. package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionSource.d.ts.map +1 -0
  137. package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionSource.js +2 -0
  138. package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionStatus.d.ts +2 -0
  139. package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionStatus.d.ts.map +1 -0
  140. package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionStatus.js +2 -0
  141. package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallOutputContentItem.d.ts +11 -0
  142. package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallOutputContentItem.d.ts.map +1 -0
  143. package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallOutputContentItem.js +2 -0
  144. package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallStatus.d.ts +2 -0
  145. package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallStatus.d.ts.map +1 -0
  146. package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallStatus.js +2 -0
  147. package/vendor/runtime/dist/executor/codexProtocol/v2/FileUpdateChange.d.ts +7 -0
  148. package/vendor/runtime/dist/executor/codexProtocol/v2/FileUpdateChange.d.ts.map +1 -0
  149. package/vendor/runtime/dist/executor/codexProtocol/v2/FileUpdateChange.js +2 -0
  150. package/vendor/runtime/dist/executor/codexProtocol/v2/GitInfo.d.ts +6 -0
  151. package/vendor/runtime/dist/executor/codexProtocol/v2/GitInfo.d.ts.map +1 -0
  152. package/vendor/runtime/dist/executor/codexProtocol/v2/GitInfo.js +2 -0
  153. package/vendor/runtime/dist/executor/codexProtocol/v2/HookPromptFragment.d.ts +5 -0
  154. package/vendor/runtime/dist/executor/codexProtocol/v2/HookPromptFragment.d.ts.map +1 -0
  155. package/vendor/runtime/dist/executor/codexProtocol/v2/HookPromptFragment.js +2 -0
  156. package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppDisplayMode.d.ts +2 -0
  157. package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppDisplayMode.d.ts.map +1 -0
  158. package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppDisplayMode.js +2 -0
  159. package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppUi.d.ts +9 -0
  160. package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppUi.d.ts.map +1 -0
  161. package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppUi.js +2 -0
  162. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallAppContext.d.ts +8 -0
  163. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallAppContext.d.ts.map +1 -0
  164. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallAppContext.js +2 -0
  165. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallError.d.ts +4 -0
  166. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallError.d.ts.map +1 -0
  167. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallError.js +2 -0
  168. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallResult.d.ts +7 -0
  169. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallResult.d.ts.map +1 -0
  170. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallResult.js +2 -0
  171. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallStatus.d.ts +2 -0
  172. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallStatus.d.ts.map +1 -0
  173. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallStatus.js +2 -0
  174. package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitation.d.ts +6 -0
  175. package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitation.d.ts.map +1 -0
  176. package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitation.js +2 -0
  177. package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitationEntry.d.ts +7 -0
  178. package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitationEntry.d.ts.map +1 -0
  179. package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitationEntry.js +2 -0
  180. package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentErrorDetails.d.ts +16 -0
  181. package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentErrorDetails.d.ts.map +1 -0
  182. package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentErrorDetails.js +2 -0
  183. package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentSteer.d.ts +4 -0
  184. package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentSteer.d.ts.map +1 -0
  185. package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentSteer.js +2 -0
  186. package/vendor/runtime/dist/executor/codexProtocol/v2/NonSteerableTurnKind.d.ts +2 -0
  187. package/vendor/runtime/dist/executor/codexProtocol/v2/NonSteerableTurnKind.d.ts.map +1 -0
  188. package/vendor/runtime/dist/executor/codexProtocol/v2/NonSteerableTurnKind.js +2 -0
  189. package/vendor/runtime/dist/executor/codexProtocol/v2/PatchApplyStatus.d.ts +2 -0
  190. package/vendor/runtime/dist/executor/codexProtocol/v2/PatchApplyStatus.d.ts.map +1 -0
  191. package/vendor/runtime/dist/executor/codexProtocol/v2/PatchApplyStatus.js +2 -0
  192. package/vendor/runtime/dist/executor/codexProtocol/v2/PatchChangeKind.d.ts +9 -0
  193. package/vendor/runtime/dist/executor/codexProtocol/v2/PatchChangeKind.d.ts.map +1 -0
  194. package/vendor/runtime/dist/executor/codexProtocol/v2/PatchChangeKind.js +2 -0
  195. package/vendor/runtime/dist/executor/codexProtocol/v2/SessionSource.d.ts +7 -0
  196. package/vendor/runtime/dist/executor/codexProtocol/v2/SessionSource.d.ts.map +1 -0
  197. package/vendor/runtime/dist/executor/codexProtocol/v2/SessionSource.js +2 -0
  198. package/vendor/runtime/dist/executor/codexProtocol/v2/SubAgentActivityKind.d.ts +2 -0
  199. package/vendor/runtime/dist/executor/codexProtocol/v2/SubAgentActivityKind.d.ts.map +1 -0
  200. package/vendor/runtime/dist/executor/codexProtocol/v2/SubAgentActivityKind.js +2 -0
  201. package/vendor/runtime/dist/executor/codexProtocol/v2/Thread.d.ts +100 -0
  202. package/vendor/runtime/dist/executor/codexProtocol/v2/Thread.d.ts.map +1 -0
  203. package/vendor/runtime/dist/executor/codexProtocol/v2/Thread.js +2 -0
  204. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadActiveFlag.d.ts +2 -0
  205. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadActiveFlag.d.ts.map +1 -0
  206. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadActiveFlag.js +2 -0
  207. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadHistoryMode.d.ts +2 -0
  208. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadHistoryMode.d.ts.map +1 -0
  209. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadHistoryMode.js +2 -0
  210. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadItem.d.ts +216 -0
  211. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadItem.d.ts.map +1 -0
  212. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadItem.js +2 -0
  213. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadParams.d.ts +11 -0
  214. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadParams.d.ts.map +1 -0
  215. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadParams.js +2 -0
  216. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadResponse.d.ts +5 -0
  217. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadResponse.d.ts.map +1 -0
  218. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadResponse.js +2 -0
  219. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSection.d.ts +19 -0
  220. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSection.d.ts.map +1 -0
  221. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSection.js +2 -0
  222. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSectionAppearance.d.ts +8 -0
  223. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSectionAppearance.d.ts.map +1 -0
  224. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSectionAppearance.js +2 -0
  225. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStatus.d.ts +12 -0
  226. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStatus.d.ts.map +1 -0
  227. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStatus.js +2 -0
  228. package/vendor/runtime/dist/executor/codexProtocol/v2/Turn.d.ts +36 -0
  229. package/vendor/runtime/dist/executor/codexProtocol/v2/Turn.d.ts.map +1 -0
  230. package/vendor/runtime/dist/executor/codexProtocol/v2/Turn.js +2 -0
  231. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnError.d.ts +12 -0
  232. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnError.d.ts.map +1 -0
  233. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnError.js +2 -0
  234. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnItemsView.d.ts +2 -0
  235. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnItemsView.d.ts.map +1 -0
  236. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnItemsView.js +2 -0
  237. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStatus.d.ts +2 -0
  238. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStatus.d.ts.map +1 -0
  239. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStatus.js +2 -0
  240. package/vendor/runtime/dist/executor/codexProtocol/v2/WebSearchAction.d.ts +15 -0
  241. package/vendor/runtime/dist/executor/codexProtocol/v2/WebSearchAction.d.ts.map +1 -0
  242. package/vendor/runtime/dist/executor/codexProtocol/v2/WebSearchAction.js +2 -0
  243. package/vendor/runtime/dist/executor/codexRpc.d.ts +3 -1
  244. package/vendor/runtime/dist/executor/codexRpc.d.ts.map +1 -1
  245. package/vendor/runtime/dist/executor/codexRpc.js +3 -2
  246. package/vendor/runtime/dist/executor/health.d.ts +6 -1
  247. package/vendor/runtime/dist/executor/health.d.ts.map +1 -1
  248. package/vendor/runtime/dist/executor/health.js +4 -0
  249. package/vendor/runtime/dist/executor/ownership.d.ts +6 -1
  250. package/vendor/runtime/dist/executor/ownership.d.ts.map +1 -1
  251. package/vendor/runtime/dist/executor/ownership.js +7 -0
  252. package/vendor/runtime/dist/executor/types.d.ts +25 -0
  253. package/vendor/runtime/dist/executor/types.d.ts.map +1 -1
  254. package/vendor/runtime/dist/harness/index.d.ts.map +1 -1
  255. package/vendor/runtime/dist/harness/index.js +1 -0
  256. package/vendor/runtime/dist/index.d.ts +1 -1
  257. package/vendor/runtime/dist/index.d.ts.map +1 -1
  258. package/vendor/runtime/src/executor/claudeAgent.ts +50 -4
  259. package/vendor/runtime/src/executor/codex.ts +51 -5
  260. package/vendor/runtime/src/executor/codexProtocol/AgentPath.ts +5 -0
  261. package/vendor/runtime/src/executor/codexProtocol/ImageGenerationFailure.ts +5 -0
  262. package/vendor/runtime/src/executor/codexProtocol/ImageGenerationItem.ts +7 -0
  263. package/vendor/runtime/src/executor/codexProtocol/LegacyAppPathString.ts +27 -0
  264. package/vendor/runtime/src/executor/codexProtocol/MessagePhase.ts +11 -0
  265. package/vendor/runtime/src/executor/codexProtocol/SleepItem.ts +8 -0
  266. package/vendor/runtime/src/executor/codexProtocol/SubAgentSource.ts +7 -0
  267. package/vendor/runtime/src/executor/codexProtocol/ThreadId.ts +10 -0
  268. package/vendor/runtime/src/executor/codexProtocol/WebSearchItem.ts +14 -0
  269. package/vendor/runtime/src/executor/codexProtocol/v2/AgentMessageDelivery.ts +5 -0
  270. package/vendor/runtime/src/executor/codexProtocol/v2/AsyncUserInputQuestion.ts +5 -0
  271. package/vendor/runtime/src/executor/codexProtocol/v2/CodexErrorInfo.ts +12 -0
  272. package/vendor/runtime/src/executor/codexProtocol/v2/CollabAgentState.ts +6 -0
  273. package/vendor/runtime/src/executor/codexProtocol/v2/CollabAgentStatus.ts +5 -0
  274. package/vendor/runtime/src/executor/codexProtocol/v2/CollabAgentTool.ts +5 -0
  275. package/vendor/runtime/src/executor/codexProtocol/v2/CollabAgentToolCallStatus.ts +5 -0
  276. package/vendor/runtime/src/executor/codexProtocol/v2/CommandAction.ts +6 -0
  277. package/vendor/runtime/src/executor/codexProtocol/v2/CommandExecutionSource.ts +5 -0
  278. package/vendor/runtime/src/executor/codexProtocol/v2/CommandExecutionStatus.ts +5 -0
  279. package/vendor/runtime/src/executor/codexProtocol/v2/DynamicToolCallOutputContentItem.ts +5 -0
  280. package/vendor/runtime/src/executor/codexProtocol/v2/DynamicToolCallStatus.ts +5 -0
  281. package/vendor/runtime/src/executor/codexProtocol/v2/FileUpdateChange.ts +6 -0
  282. package/vendor/runtime/src/executor/codexProtocol/v2/GitInfo.ts +5 -0
  283. package/vendor/runtime/src/executor/codexProtocol/v2/HookPromptFragment.ts +5 -0
  284. package/vendor/runtime/src/executor/codexProtocol/v2/McpAppDisplayMode.ts +5 -0
  285. package/vendor/runtime/src/executor/codexProtocol/v2/McpAppUi.ts +9 -0
  286. package/vendor/runtime/src/executor/codexProtocol/v2/McpToolCallAppContext.ts +5 -0
  287. package/vendor/runtime/src/executor/codexProtocol/v2/McpToolCallError.ts +5 -0
  288. package/vendor/runtime/src/executor/codexProtocol/v2/McpToolCallResult.ts +6 -0
  289. package/vendor/runtime/src/executor/codexProtocol/v2/McpToolCallStatus.ts +5 -0
  290. package/vendor/runtime/src/executor/codexProtocol/v2/MemoryCitation.ts +6 -0
  291. package/vendor/runtime/src/executor/codexProtocol/v2/MemoryCitationEntry.ts +5 -0
  292. package/vendor/runtime/src/executor/codexProtocol/v2/MisalignmentErrorDetails.ts +18 -0
  293. package/vendor/runtime/src/executor/codexProtocol/v2/MisalignmentSteer.ts +5 -0
  294. package/vendor/runtime/src/executor/codexProtocol/v2/NonSteerableTurnKind.ts +5 -0
  295. package/vendor/runtime/src/executor/codexProtocol/v2/PatchApplyStatus.ts +5 -0
  296. package/vendor/runtime/src/executor/codexProtocol/v2/PatchChangeKind.ts +5 -0
  297. package/vendor/runtime/src/executor/codexProtocol/v2/SessionSource.ts +6 -0
  298. package/vendor/runtime/src/executor/codexProtocol/v2/SubAgentActivityKind.ts +5 -0
  299. package/vendor/runtime/src/executor/codexProtocol/v2/Thread.ts +104 -0
  300. package/vendor/runtime/src/executor/codexProtocol/v2/ThreadActiveFlag.ts +5 -0
  301. package/vendor/runtime/src/executor/codexProtocol/v2/ThreadHistoryMode.ts +5 -0
  302. package/vendor/runtime/src/executor/codexProtocol/v2/ThreadItem.ts +125 -0
  303. package/vendor/runtime/src/executor/codexProtocol/v2/ThreadReadParams.ts +12 -0
  304. package/vendor/runtime/src/executor/codexProtocol/v2/ThreadReadResponse.ts +6 -0
  305. package/vendor/runtime/src/executor/codexProtocol/v2/ThreadSection.ts +21 -0
  306. package/vendor/runtime/src/executor/codexProtocol/v2/ThreadSectionAppearance.ts +8 -0
  307. package/vendor/runtime/src/executor/codexProtocol/v2/ThreadStatus.ts +6 -0
  308. package/vendor/runtime/src/executor/codexProtocol/v2/Turn.ts +37 -0
  309. package/vendor/runtime/src/executor/codexProtocol/v2/TurnError.ts +11 -0
  310. package/vendor/runtime/src/executor/codexProtocol/v2/TurnItemsView.ts +5 -0
  311. package/vendor/runtime/src/executor/codexProtocol/v2/TurnStatus.ts +5 -0
  312. package/vendor/runtime/src/executor/codexProtocol/v2/WebSearchAction.ts +5 -0
  313. package/vendor/runtime/src/executor/codexRpc.ts +4 -2
  314. package/vendor/runtime/src/executor/health.ts +5 -1
  315. package/vendor/runtime/src/executor/ownership.ts +8 -1
  316. package/vendor/runtime/src/executor/types.ts +18 -1
  317. package/vendor/runtime/src/harness/index.ts +1 -0
  318. package/vendor/runtime/src/index.ts +1 -1
  319. package/vendor/shared/dist/automations.d.ts +34 -0
  320. package/vendor/shared/dist/automations.d.ts.map +1 -1
  321. package/vendor/shared/dist/automations.js +12 -0
  322. package/vendor/shared/dist/computer.d.ts +1 -1
  323. package/vendor/shared/dist/computer.d.ts.map +1 -1
  324. package/vendor/shared/dist/computer.js +1 -2
  325. package/vendor/shared/dist/constants.d.ts +1 -1
  326. package/vendor/shared/dist/constants.d.ts.map +1 -1
  327. package/vendor/shared/dist/constants.js +3 -10
  328. package/vendor/shared/dist/index.d.ts +4 -2
  329. package/vendor/shared/dist/index.d.ts.map +1 -1
  330. package/vendor/shared/dist/index.js +3 -1
  331. package/vendor/shared/dist/journal-vault.d.ts +1 -1
  332. package/vendor/shared/dist/messagingSafety.d.ts +21 -0
  333. package/vendor/shared/dist/messagingSafety.d.ts.map +1 -0
  334. package/vendor/shared/dist/messagingSafety.js +8 -0
  335. package/vendor/shared/dist/schemas/harness.d.ts +98 -169
  336. package/vendor/shared/dist/schemas/harness.d.ts.map +1 -1
  337. package/vendor/shared/dist/schemas/harness.js +19 -124
  338. package/vendor/shared/dist/smartCapture.d.ts +24 -0
  339. package/vendor/shared/dist/smartCapture.d.ts.map +1 -1
  340. package/vendor/shared/dist/smartCapture.js +15 -0
  341. package/vendor/shared/dist/taskSync.d.ts +342 -0
  342. package/vendor/shared/dist/taskSync.d.ts.map +1 -0
  343. package/vendor/shared/dist/taskSync.js +111 -0
  344. package/vendor/shared/dist/types.d.ts +1 -4
  345. package/vendor/shared/dist/types.d.ts.map +1 -1
  346. package/vendor/shared/dist/voiceCapture.d.ts +1 -1
  347. package/vendor/shared/dist/workspaces.d.ts +117 -0
  348. package/vendor/shared/dist/workspaces.d.ts.map +1 -1
  349. package/vendor/shared/dist/workspaces.js +50 -1
  350. package/vendor/shared/src/automations.ts +12 -0
  351. package/vendor/shared/src/computer.ts +3 -3
  352. package/vendor/shared/src/constants.ts +3 -10
  353. package/vendor/shared/src/index.ts +3 -6
  354. package/vendor/shared/src/messagingSafety.ts +11 -0
  355. package/vendor/shared/src/schemas/harness.ts +18 -130
  356. package/vendor/shared/src/smartCapture.ts +27 -0
  357. package/vendor/shared/src/taskSync.ts +81 -0
  358. package/vendor/shared/src/types.ts +0 -6
  359. package/vendor/shared/src/workspaces.ts +56 -1
  360. package/dist/coding/conduct.d.ts +0 -48
  361. package/dist/coding/conduct.d.ts.map +0 -1
  362. package/dist/coding/conduct.js +0 -263
  363. package/dist/coding/fleetPlan.d.ts +0 -20
  364. package/dist/coding/fleetPlan.d.ts.map +0 -1
  365. package/dist/coding/fleetPlan.js +0 -125
  366. package/dist/coding/fleetTasks.d.ts +0 -33
  367. package/dist/coding/fleetTasks.d.ts.map +0 -1
  368. package/dist/coding/fleetTasks.js +0 -75
  369. package/src/coding/conduct.ts +0 -325
  370. package/src/coding/fleetPlan.ts +0 -135
  371. package/src/coding/fleetTasks.ts +0 -109
@@ -0,0 +1,11 @@
1
+ // GENERATED CODE! DO NOT MODIFY BY HAND!
2
+
3
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
4
+ import type { CodexErrorInfo } from "./CodexErrorInfo.js";
5
+ import type { MisalignmentErrorDetails } from "./MisalignmentErrorDetails.js";
6
+
7
+ export type TurnError = { message: string, codexErrorInfo: CodexErrorInfo | null, additionalDetails: string | null,
8
+ /**
9
+ * Optional public explanation and continuation instruction for a misalignment block.
10
+ */
11
+ misalignment: MisalignmentErrorDetails | null, };
@@ -0,0 +1,5 @@
1
+ // GENERATED CODE! DO NOT MODIFY BY HAND!
2
+
3
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
4
+
5
+ export type TurnItemsView = "notLoaded" | "summary" | "full";
@@ -0,0 +1,5 @@
1
+ // GENERATED CODE! DO NOT MODIFY BY HAND!
2
+
3
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
4
+
5
+ export type TurnStatus = "completed" | "interrupted" | "failed" | "inProgress";
@@ -0,0 +1,5 @@
1
+ // GENERATED CODE! DO NOT MODIFY BY HAND!
2
+
3
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
4
+
5
+ export type WebSearchAction = { "type": "search", query: string | null, queries: Array<string> | null, } | { "type": "openPage", url: string | null, } | { "type": "findInPage", url: string | null, pattern: string | null, } | { "type": "other" };
@@ -18,6 +18,7 @@ export interface RpcMessage {
18
18
  error?: { message: string };
19
19
  }
20
20
  export interface CodexConnection {
21
+ readonly pid?: number;
21
22
  readonly isConnected?: boolean;
22
23
  events: AsyncIterable<RpcMessage>;
23
24
  request<T>(method: string, params: unknown): Promise<T>;
@@ -37,6 +38,7 @@ export function codexSubscriptionEnv(): NodeJS.ProcessEnv {
37
38
 
38
39
  /** Bidirectional stdio JSON-RPC. Pending requests fail on timeout or child exit. */
39
40
  export class CodexRpc implements CodexConnection {
41
+ get pid(): number | undefined { return this.child.pid; }
40
42
  readonly events = new AsyncQueue<RpcMessage>();
41
43
  onRequest?: (message: RpcMessage) => Promise<unknown>;
42
44
  private child: ChildProcessWithoutNullStreams;
@@ -56,7 +58,7 @@ export class CodexRpc implements CodexConnection {
56
58
  }
57
59
  >();
58
60
 
59
- constructor(command?: string, cwd?: string) {
61
+ constructor(command?: string, cwd?: string, env?: Record<string, string>) {
60
62
  const prefix = command
61
63
  ? []
62
64
  : [require.resolve('@openai/codex/bin/codex.js')];
@@ -74,7 +76,7 @@ export class CodexRpc implements CodexConnection {
74
76
  ],
75
77
  {
76
78
  cwd,
77
- env: codexSubscriptionEnv(),
79
+ env: { ...codexSubscriptionEnv(), ...env },
78
80
  stdio: ['pipe', 'pipe', 'pipe'],
79
81
  },
80
82
  );
@@ -1,5 +1,5 @@
1
1
  import type { ProviderHealth } from '@lucidity/shared';
2
- import type { AgentExecutor, ExecutorRunInput } from './types.js';
2
+ import type { AgentExecutor, ExecutorRunInput, ProviderRunRef, ProviderInspection } from './types.js';
3
3
 
4
4
  export function providerFailure(
5
5
  error: unknown,
@@ -35,6 +35,10 @@ export class HealthAwareExecutor implements AgentExecutor {
35
35
  get name() {
36
36
  return this.executor.name;
37
37
  }
38
+ get recoveryCapability() { return this.executor.recoveryCapability; }
39
+ inspect(ref: ProviderRunRef, options?: { cwd?: string; timeoutMs?: number }): Promise<ProviderInspection> {
40
+ return this.executor.inspect?.(ref, options) ?? Promise.resolve({ status: 'unsupported', reason: 'Provider history inspection is unavailable.' });
41
+ }
38
42
  health(): ProviderHealth {
39
43
  return { ...this.state };
40
44
  }
@@ -1,7 +1,7 @@
1
1
  import { AsyncLocalStorage } from 'node:async_hooks';
2
2
  import { realpathSync } from 'node:fs';
3
3
  import { resolve } from 'node:path';
4
- import type { AgentExecutor, ExecutorRunInput } from './types.js';
4
+ import type { AgentExecutor, ExecutorRunInput, ProviderRunRef, ProviderInspection } from './types.js';
5
5
  import { abortError } from './liveTurns.js';
6
6
 
7
7
  /** Shared across providers and callers, including scheduled and local chat work. */
@@ -47,6 +47,13 @@ export class OwnedExecutor implements AgentExecutor {
47
47
  constructor(private readonly executor: AgentExecutor, private readonly provider: string, private readonly ownership: ExecutionOwnership) {}
48
48
  get name() { return this.executor.name; }
49
49
  get strictResume() { return this.executor.strictResume; }
50
+ get recoveryCapability() { return this.executor.recoveryCapability; }
51
+ inspect(ref: ProviderRunRef, options: { cwd?: string; timeoutMs?: number } = {}): Promise<ProviderInspection> {
52
+ return this.ownership.run([
53
+ ...(ref.sessionId ? [`session:${this.provider}:${ref.sessionId}`] : []),
54
+ ...(options.cwd ? [`workspace:${workspaceKey(options.cwd)}`] : []),
55
+ ], () => this.executor.inspect?.(ref, options) ?? Promise.resolve({ status: 'unsupported', reason: 'Provider history inspection is unavailable.' }));
56
+ }
50
57
  private keys(input: ExecutorRunInput): string[] {
51
58
  const session = input.resume ?? input.sessionId;
52
59
  return [
@@ -15,9 +15,22 @@ export interface ExecutorApproval {
15
15
  }
16
16
  export type ExecutorModel = import('@lucidity/shared').AgentModelOption;
17
17
 
18
+ export interface ProviderRunRef {
19
+ sessionId?: string;
20
+ turnId?: string;
21
+ pid?: number;
22
+ /** Commands do not necessarily have a native inference turn. */
23
+ inspectionDisabled?: boolean;
24
+ }
25
+ export type ProviderInspection =
26
+ | { status: 'completed'; result: ExecutorResult }
27
+ | { status: 'unknown' | 'unsupported'; reason: string };
28
+
18
29
  export interface ExecutorRunInput {
19
30
  /** Lucidity request identity, used for live controls; unrelated to provider session IDs. */
20
31
  requestId?: string;
32
+ /** Synchronous durable write. A failure must prevent further provider work. */
33
+ onRecovery?: (ref: ProviderRunRef) => void;
21
34
  /** Interactive callers can provide a permission surface. Absent means deny. */
22
35
  onApproval?: (approval: ExecutorApproval) => Promise<boolean>;
23
36
 
@@ -60,6 +73,8 @@ export interface ExecutorRunInput {
60
73
  provider?: AgentProvider;
61
74
  /** Working directory for the run (the target repo for a coding turn, M7). */
62
75
  cwd?: string;
76
+ /** Extra variables for the agent's process, on top of the sanitised daemon environment. */
77
+ env?: Record<string, string>;
63
78
  /** Compatibility policy names; each adapter maps them to native permissions. */
64
79
  permissionMode?:
65
80
  | 'default'
@@ -77,7 +92,7 @@ export interface ExecutorRunInput {
77
92
  export type ExecutorStreamEvent =
78
93
  | { type: 'session'; sessionId: string }
79
94
  | { type: 'delta'; text: string }
80
- | { type: 'tool_call'; name: string; phase: 'start' | 'end' }
95
+ | { type: 'tool_call'; name: string; phase: 'start' | 'end'; itemId?: string; outcome?: string }
81
96
  | { type: 'done'; text: string; sessionId?: string; costUsd?: number };
82
97
 
83
98
  export interface ExecutorResult {
@@ -95,6 +110,8 @@ export interface AgentExecutor {
95
110
  readonly name: string;
96
111
  /** Strict providers report resume failures instead of silently starting memoryless. */
97
112
  readonly strictResume?: boolean;
113
+ readonly recoveryCapability?: 'native-turn' | 'completion-receipt';
114
+ inspect?(ref: ProviderRunRef, options?: { cwd?: string; timeoutMs?: number }): Promise<ProviderInspection>;
98
115
  /** Resolves once input is accepted by the provider transport. */
99
116
  steer?(requestId: string, text: string): Promise<void>;
100
117
  /** Interrupt a turn owned by this adapter, including conductor workers. */
@@ -111,6 +111,7 @@ export function createLucidHarness(deps: LucidHarnessDeps): LucidHarness {
111
111
  const result = await deps.planningExecutor.run({
112
112
  ...buildDayPlanningPrompt(input.prompt, input.dayPlan),
113
113
  requestId: input.requestId, noTools: true, effort: 'high',
114
+ provider: input.provider,
114
115
  timeoutMs: 120_000, signal: input.signal,
115
116
  });
116
117
  return { text: JSON.stringify(parseDayPlanningResult(result.text, input.prompt, input.dayPlan)), costUsd: result.costUsd };
@@ -82,7 +82,7 @@ export { ClaudeAgentExecutor, CLAUDE_AGENT_SDK_VERSION } from './executor/claude
82
82
  export { CodexExecutor } from './executor/codex.js';
83
83
  export { CODEX_RUNTIME_VERSION } from './executor/codexRpc.js';
84
84
  export { ProviderRouter, encodeSession, decodeSession } from './executor/providerRouter.js';
85
- export type { AgentProvider, ExecutorApproval, ExecutorModel } from './executor/types.js';
85
+ export type { AgentProvider, ExecutorApproval, ExecutorModel, ProviderRunRef, ProviderInspection } from './executor/types.js';
86
86
  export { HealthAwareExecutor, providerFailure } from './executor/health.js';
87
87
  export { ExecutionOwnership, OwnedExecutor } from './executor/ownership.js';
88
88
 
@@ -420,6 +420,23 @@ export declare const AutomationRunSchema: z.ZodObject<{
420
420
  costUsd: z.ZodOptional<z.ZodNumber>;
421
421
  sessionId: z.ZodOptional<z.ZodString>;
422
422
  summary: z.ZodDefault<z.ZodString>;
423
+ cancelRequested: z.ZodOptional<z.ZodBoolean>;
424
+ workflow: z.ZodOptional<z.ZodObject<{
425
+ version: z.ZodNumber;
426
+ attempts: z.ZodNumber;
427
+ possibleAdditionalCost: z.ZodBoolean;
428
+ steps: z.ZodArray<z.ZodObject<{
429
+ key: z.ZodString;
430
+ status: z.ZodEnum<{
431
+ running: "running";
432
+ completed: "completed";
433
+ failed: "failed";
434
+ uncertain: "uncertain";
435
+ }>;
436
+ attempts: z.ZodNumber;
437
+ error: z.ZodOptional<z.ZodString>;
438
+ }, z.core.$strip>>;
439
+ }, z.core.$strip>>;
423
440
  error: z.ZodOptional<z.ZodString>;
424
441
  parentRunId: z.ZodOptional<z.ZodString>;
425
442
  input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -858,6 +875,23 @@ export declare const AutomationSnapshotSchema: z.ZodObject<{
858
875
  costUsd: z.ZodOptional<z.ZodNumber>;
859
876
  sessionId: z.ZodOptional<z.ZodString>;
860
877
  summary: z.ZodDefault<z.ZodString>;
878
+ cancelRequested: z.ZodOptional<z.ZodBoolean>;
879
+ workflow: z.ZodOptional<z.ZodObject<{
880
+ version: z.ZodNumber;
881
+ attempts: z.ZodNumber;
882
+ possibleAdditionalCost: z.ZodBoolean;
883
+ steps: z.ZodArray<z.ZodObject<{
884
+ key: z.ZodString;
885
+ status: z.ZodEnum<{
886
+ running: "running";
887
+ completed: "completed";
888
+ failed: "failed";
889
+ uncertain: "uncertain";
890
+ }>;
891
+ attempts: z.ZodNumber;
892
+ error: z.ZodOptional<z.ZodString>;
893
+ }, z.core.$strip>>;
894
+ }, z.core.$strip>>;
861
895
  error: z.ZodOptional<z.ZodString>;
862
896
  parentRunId: z.ZodOptional<z.ZodString>;
863
897
  input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"automations.d.ts","sourceRoot":"","sources":["../src/automations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA2BxB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;iBA6BnC,CAAC;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAiCzB,CAAC;AACZ,eAAO,MAAM,sBAAsB;;;;;;EAMjC,CAAC;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAuBnC,CAAC;AACL,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAGhC,CAAC;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAa9B,CAAC;AACH,eAAO,MAAM,qBAAqB;;;;;;iBAUhC,CAAC;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;iBAM7B,CAAC;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;iBASlC,CAAC;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;iBAK7B,CAAC;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAU/B,CAAC;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;iBAmB/B,CAAC;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,wBAAgB,eAAe,CAC7B,KAAK,EAAE,eAAe,GACrB,KAAK,IAAI,iBAAiB,CAE5B"}
@@ -219,6 +219,18 @@ export const AutomationRunSchema = z.object({
219
219
  costUsd: z.number().optional(),
220
220
  sessionId: z.string().optional(),
221
221
  summary: z.string().default(''),
222
+ cancelRequested: z.boolean().optional(),
223
+ workflow: z.object({
224
+ version: z.number().int(),
225
+ attempts: z.number().int(),
226
+ possibleAdditionalCost: z.boolean(),
227
+ steps: z.array(z.object({
228
+ key: z.string(),
229
+ status: z.enum(['running', 'completed', 'uncertain', 'failed']),
230
+ attempts: z.number().int(),
231
+ error: z.string().optional(),
232
+ })),
233
+ }).optional(),
222
234
  error: z.string().optional(),
223
235
  parentRunId: id.optional(),
224
236
  input: AutomationInputSchema.optional(),
@@ -213,7 +213,7 @@ export declare const ComputerPresenceSchema: z.ZodObject<{
213
213
  }, z.core.$strip>>>;
214
214
  }, z.core.$strip>;
215
215
  export type ComputerPresence = z.infer<typeof ComputerPresenceSchema>;
216
- export type ComputerFeature = 'checkout-history' | 'workspaces' | 'turn-queue' | 'provider-handoff' | 'queue-control' | 'day-plan' | 'ask' | 'code' | 'conduct' | 'briefing' | 'attention' | 'models' | 'commands' | 'steer' | 'permission' | 'pull' | 'repos' | 'prs' | 'clone' | 'getConfig' | 'getAutomations' | 'automation' | 'setConfig' | 'journal' | 'incident' | 'voice-diag' | 'transcribe' | 'voice-capture' | 'voice-capture-status' | 'cancel';
216
+ export type ComputerFeature = 'checkout-history' | 'workspaces' | 'repo-settings' | 'worktree-delete' | 'turn-queue' | 'provider-handoff' | 'queue-control' | 'day-plan' | 'ask' | 'code' | 'briefing' | 'attention' | 'models' | 'commands' | 'steer' | 'permission' | 'pull' | 'repos' | 'prs' | 'clone' | 'getConfig' | 'getAutomations' | 'automation' | 'setConfig' | 'journal' | 'incident' | 'voice-diag' | 'transcribe' | 'voice-capture' | 'voice-capture-status' | 'cancel';
217
217
  export type Availability = {
218
218
  state: 'checking' | 'network' | 'never_paired' | 'offline' | 'update' | 'permission' | 'other_device' | 'provider' | 'ready';
219
219
  title: string;
@@ -1 +1 @@
1
- {"version":3,"file":"computer.d.ts","sourceRoot":"","sources":["../src/computer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,qFAAqF;AACrF,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,cAAc;;;;;iBAKzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,eAAO,MAAM,oBAAoB;;;;;;;;;;;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AgB,eAAe,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAE7E;AAED,+FAA+F;AAC/F,wBAAgB,kBAAkB,CAAC,MAAM,CAAC,EAAE,MAAM,GAC9C;IAAE,QAAQ,EAAE,gBAAgB,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAC/D,SAAS,CAkBZ"}
@@ -46,7 +46,6 @@ export const INFERENCE_FEATURES = new Set([
46
46
  'ask',
47
47
  'day-plan',
48
48
  'code',
49
- 'conduct',
50
49
  'briefing',
51
50
  'attention',
52
51
  ]);
@@ -80,7 +79,7 @@ export function computerAvailability(presence, network, feature = 'ask', provide
80
79
  runtime.protocol !== COMPUTER_PROTOCOL ||
81
80
  !runtime.features.includes(feature))
82
81
  return blocked('update', 'Computer update required', `Update Lucidity on ${presence.computer?.name ?? presence.machine ?? 'your computer'} to use this feature. Other compatible features remain available.`);
83
- if (['code', 'conduct', 'repos', 'prs'].includes(feature) &&
82
+ if (['code', 'repos', 'prs'].includes(feature) &&
84
83
  !runtime.permissions.includes('coding'))
85
84
  return blocked('permission', 'Workspace access required', 'Add an approved repository on your computer before using coding features.');
86
85
  if (feature === 'clone' && !runtime.permissions.includes('clone'))
@@ -110,7 +110,7 @@ export declare const BIO_MAX_LENGTH = 80;
110
110
  * would otherwise break the header) and turns an all-blank value into null, so
111
111
  * "cleared" and "never set" are the same state rather than two. */
112
112
  export declare function normalizeBio(input: string): string | null;
113
- export declare const HARNESS_REQUEST_KINDS: readonly ["workspaces", "getAutomations", "automation", "queue-control", "ask", "briefing", "journal", "code", "repos", "prs", "clone", "cancel", "pull", "getConfig", "setConfig", "incident", "conduct", "attention", "voice-diag", "transcribe", "voice-capture", "voice-capture-status", "steer", "permission", "models", "commands"];
113
+ export declare const HARNESS_REQUEST_KINDS: readonly ["workspaces", "getAutomations", "automation", "queue-control", "ask", "briefing", "journal", "code", "repos", "prs", "clone", "cancel", "pull", "getConfig", "setConfig", "incident", "attention", "voice-diag", "transcribe", "voice-capture", "voice-capture-status", "steer", "permission", "models", "commands"];
114
114
  export declare const EFFORT_LEVELS: readonly ["auto", "low", "medium", "high", "xhigh", "max", "ultra"];
115
115
  export declare const EFFORT_OPTIONS: readonly [{
116
116
  readonly value: "auto";
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,yEAMrB,CAAC;AAEX,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AAEX,eAAO,MAAM,YAAY,IAAI,CAAC;AAC9B,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC,eAAO,MAAM,0BAA0B,mDAK7B,CAAC;AAEX,eAAO,MAAM,qBAAqB,6BAA8B,CAAC;AACjE,eAAO,MAAM,sBAAsB,oCAAqC,CAAC;AAEzE,eAAO,MAAM,0BAA0B,qCAAsC,CAAC;AAE9E,eAAO,MAAM,yBAAyB,0CAI5B,CAAC;AACX,eAAO,MAAM,oBAAoB,2BAA4B,CAAC;AAK9D,eAAO,MAAM,qBAAqB,oCAAqC,CAAC;AAUxE,eAAO,MAAM,YAAY,6BAA8B,CAAC;AAMxD,eAAO,MAAM,wBAAwB,kCAAmC,CAAC;AAMzE,eAAO,MAAM,iBAAiB,IAAI,CAAC;AAInC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAMpC,eAAO,MAAM,cAAc,QAAsB,CAAC;AAalD,eAAO,MAAM,eAAe,yqBAyElB,CAAC;AAEX;;2DAE2D;AAC3D,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAErD;AAED,sFAAsF;AACtF,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAExD;AAYD,eAAO,MAAM,eAAe,gDAAiD,CAAC;AAE9E,+EAA+E;AAC/E,eAAO,MAAM,aAAa,EAAE,MAAM,CA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M,qBAAqB,sJAUxB,CAAC;AAIX,eAAO,MAAM,eAAe,6BAA8B,CAAC;AAC3D,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAM7D,eAAO,MAAM,qBAAqB,QAAQ,CAAC;AAO3C,eAAO,MAAM,yBAAyB,wDAK5B,CAAC;AACX,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC;AAMhF,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAIrC,eAAO,MAAM,cAAc,mCAAoC,CAAC;AAEhE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D,eAAO,MAAM,iBAAiB,8CAA+C,CAAC;AAC9E,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE,eAAO,MAAM,qBAAqB,8BAA+B,CAAC;AAClE,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAMxE,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAI/C,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAIhD;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAavD;AAID,eAAO,MAAM,kBAAkB,4BAA6B,CAAC;AAW7D,eAAO,MAAM,eAAe,mCAAoC,CAAC"}
@@ -351,10 +351,6 @@ export const HARNESS_REQUEST_KINDS = [
351
351
  'getConfig',
352
352
  'setConfig',
353
353
  'incident',
354
- // Conductor (fleet of coding agents): `plan` decomposes a goal into workers (returns a
355
- // fan-out plan, runs no code); `run` executes an approved plan — one isolated worker
356
- // worktree per subtask, dispatched in merge order, integrated back onto lucid/<repo>.
357
- 'conduct',
358
354
  // Phone asks for the Dashboard's attention board (#320) — returns the cached one when it's
359
355
  // still fresh, otherwise composes a new one.
360
356
  'attention',
@@ -417,12 +413,9 @@ export const DELIVERY_CHANNELS = ['macos', 'stdout'];
417
413
  // meant to pair with the phone-approval bridge before it's surfaced in the app. Only
418
414
  // the interactive chat honours this; the unattended cron jobs stay tool-less.
419
415
  export const AGENT_MODES = ['off', 'auto', 'danger'];
420
- // The lifecycle of one conductor worker (a fan-out lane), as the Fleet board renders it.
421
- // `queued` = created, waiting on a merge-order dependency or a parallel-cap slot; `working` =
422
- // its code turn is streaming; `review` = done, its diff is waiting for the user; `merged` =
423
- // integrated onto the fleet branch; `blocked` = paused for an approval or a merge conflict;
424
- // `failed` = its turn errored. Mapped to Lucidity task status by the dogfood helper
425
- // (pending/in_progress/blocked/completed), since a worker IS a subtask.
416
+ // What a worktree's chat is doing, as the phone shows it. `queued` = being created; `working` =
417
+ // its turn is streaming; `review` = idle and waiting for you; `failed` = its turn or setup errored.
418
+ // `merged` and `blocked` are kept for lanes saved by older builds.
426
419
  export const WORKER_STATUSES = [
427
420
  'queued',
428
421
  'working',
@@ -4,6 +4,7 @@ export * from './githubContributions.js';
4
4
  export * from './projectCapture.js';
5
5
  export * from './taskActivity.js';
6
6
  export * from './recurrence.js';
7
+ export * from './taskSync.js';
7
8
  export * from './vault-search.js';
8
9
  export * from './journal-vault.js';
9
10
  export * from './journal-migration.js';
@@ -29,9 +30,9 @@ export { ProjectMemberSchema, CreateProjectMemberSchema, UpdateProjectMemberSche
29
30
  export { OrganizationSchema, CreateOrganizationSchema, UpdateOrganizationSchema, UpdateOrganizationSettingsSchema, OrganizationMemberWithUserSchema, InviteOrganizationMemberSchema, UpdateOrganizationMemberSchema, OrganizationDomainSchema, CreateOrganizationDomainSchema, MembershipRequestWithUserSchema, OrganizationPreviewSchema, OrganizationProfileSchema, UserOrganizationSchema, CreateInvitationSchema, InvitationSchema, InvitationPreviewSchema, } from './schemas/organization.js';
30
31
  export { REQUEST_KIND_VALUES, REQUEST_STATUS_LABELS, PROCUREMENT_PROJECT_KEY, PROCUREMENT_PROJECT_NAME, RequestSchema, CreateRequestSchema, UpdateRequestSchema, RequestWithTaskSchema, } from './schemas/request.js';
31
32
  export { NOTIFICATION_KINDS, NOTIFICATION_TARGETS, NotificationSchema, NotificationActorSchema, UnreadCountSchema, } from './schemas/notification.js';
32
- export { AgentProviderSchema, SteerRequestSchema, PermissionRequestSchema, ModelsRequestSchema, ControlResponseSchema, ModelsResponseSchema, AskRequestSchema, BriefingRequestSchema, JournalRequestSchema, CodeRequestSchema, ConductRequestSchema, FleetPlanSchema, FleetWorkerSchema, RepoListRequestSchema, ListPrsRequestSchema, GetConfigRequestSchema, SetConfigRequestSchema, IncidentTransitionSchema, IncidentTurnSchema, IncidentSnapshotSchema, IncidentDiagEventSchema, IncidentReportRequestSchema, IncidentAckResponseSchema, DaemonConfigViewSchema, DaemonConfigPatchSchema, DaemonCapabilitiesPatchSchema, ConfigResponseSchema, HarnessRequestSchema, ApprovalRequestSchema, ApprovalResponseSchema, JournalEntrySchema, AskResponseSchema, BriefingResponseSchema, JournalResponseSchema, RepoListResponseSchema, PrInfoSchema, PrListResponseSchema, HarnessResponseSchema, HarnessStreamEventSchema, HarnessMessageSchema, DeviceConflictSchema, AttentionBoardSchema, AttentionBoardEntrySchema, AttentionRequestSchema, AttentionResponseSchema, VoiceDiagChunkSchema, VoiceDiagReportRequestSchema, VoiceDiagAckResponseSchema, ProviderHandoffSchema, } from './schemas/harness.js';
33
+ export { AgentProviderSchema, SteerRequestSchema, PermissionRequestSchema, ModelsRequestSchema, ControlResponseSchema, ModelsResponseSchema, AskRequestSchema, BriefingRequestSchema, JournalRequestSchema, CodeRequestSchema, RepoListRequestSchema, ListPrsRequestSchema, GetConfigRequestSchema, SetConfigRequestSchema, IncidentTransitionSchema, IncidentTurnSchema, IncidentSnapshotSchema, IncidentDiagEventSchema, IncidentReportRequestSchema, IncidentAckResponseSchema, DaemonConfigViewSchema, DaemonConfigPatchSchema, DaemonCapabilitiesPatchSchema, ConfigResponseSchema, HarnessRequestSchema, ApprovalRequestSchema, ApprovalResponseSchema, JournalEntrySchema, AskResponseSchema, BriefingResponseSchema, JournalResponseSchema, RepoListResponseSchema, PrInfoSchema, PrListResponseSchema, HarnessResponseSchema, HarnessStreamEventSchema, HarnessMessageSchema, DeviceConflictSchema, AttentionBoardSchema, AttentionBoardEntrySchema, AttentionRequestSchema, AttentionResponseSchema, VoiceDiagChunkSchema, VoiceDiagReportRequestSchema, VoiceDiagAckResponseSchema, ProviderHandoffSchema, } from './schemas/harness.js';
33
34
  export type { ProviderHandoff } from './schemas/harness.js';
34
- export type { Task, CreateTask, UpdateTask, User, CreateUser, UpdateUser, Project, CreateProject, UpdateProject, SharedProject, Milestone, CreateMilestone, UpdateMilestone, Comment, CreateComment, UpdateComment, TimeSession, CreateTimeSession, UpdateTimeSession, ProjectMember, CreateProjectMember, UpdateProjectMember, ProjectMemberWithUser, Organization, CreateOrganization, UpdateOrganization, OrganizationMemberWithUser, InviteOrganizationMember, UpdateOrganizationMember, OrganizationDomain, CreateOrganizationDomain, MembershipRequestWithUser, OrganizationPreview, OrganizationProfile, UserOrganization, OrgRole, OrgEnrollmentMode, OrgCapability, CreateInvitation, Invitation, InvitationPreview, RequestKind, Request, CreateRequest, UpdateRequest, RequestWithTask, Notification, NotificationKind, NotificationTarget, InviteProjectMember, ProjectVisibility, MemberAccess, ProjectAccess, PublicUser, PublicProfile, ClaimHandle, UpdateProfile, Connection, CreateConnection, ConnectionWithUser, ConnectionStatus, Conversation, CreateConversation, ConversationSummary, JournalDay, JournalDayWithSegments, JournalDaySummary, JournalSegment, CreateJournalSegment, CorrectJournalSegment, JournalSegmentWithObservations, ExtractedObservation, WriteJournalObservations, JournalObservation, Proposal, ProposalWithEvidence, CreateProposal, AcceptProposal, RejectProposal, TaskProposalPayload, LinkProposalPayload, Message, CreateMessage, MessageWithAuthor, SenderKind, HarnessRequestKind, WorkspaceMode, HarnessImage, AskRequest, BriefingRequest, JournalRequest, CodeRequest, ConductRequest, FleetPlan, FleetWorker, RepoListRequest, ListPrsRequest, PrInfo, PrListResponse, GetConfigRequest, SetConfigRequest, DaemonConfigView, DaemonConfigPatch, ConfigResponse, IncidentTransition, IncidentTurn, IncidentSnapshot, IncidentDiagEvent, IncidentReportRequest, IncidentAckResponse, HarnessRequest, HarnessRequestInput, ApprovalRequest, ApprovalResponse, ApprovalDecision, JournalEntry, AskResponse, BriefingResponse, JournalResponse, RepoListResponse, HarnessResponse, HarnessStreamEvent, HarnessMessage, DeviceConflict, AttentionBoard, AttentionBoardEntry, AttentionRequest, AttentionResponse, VoiceDiagChunk, VoiceDiagReportRequest, VoiceDiagAckResponse, } from './types.js';
35
+ export type { Task, CreateTask, UpdateTask, User, CreateUser, UpdateUser, Project, CreateProject, UpdateProject, SharedProject, Milestone, CreateMilestone, UpdateMilestone, Comment, CreateComment, UpdateComment, TimeSession, CreateTimeSession, UpdateTimeSession, ProjectMember, CreateProjectMember, UpdateProjectMember, ProjectMemberWithUser, Organization, CreateOrganization, UpdateOrganization, OrganizationMemberWithUser, InviteOrganizationMember, UpdateOrganizationMember, OrganizationDomain, CreateOrganizationDomain, MembershipRequestWithUser, OrganizationPreview, OrganizationProfile, UserOrganization, OrgRole, OrgEnrollmentMode, OrgCapability, CreateInvitation, Invitation, InvitationPreview, RequestKind, Request, CreateRequest, UpdateRequest, RequestWithTask, Notification, NotificationKind, NotificationTarget, InviteProjectMember, ProjectVisibility, MemberAccess, ProjectAccess, PublicUser, PublicProfile, ClaimHandle, UpdateProfile, Connection, CreateConnection, ConnectionWithUser, ConnectionStatus, Conversation, CreateConversation, ConversationSummary, JournalDay, JournalDayWithSegments, JournalDaySummary, JournalSegment, CreateJournalSegment, CorrectJournalSegment, JournalSegmentWithObservations, ExtractedObservation, WriteJournalObservations, JournalObservation, Proposal, ProposalWithEvidence, CreateProposal, AcceptProposal, RejectProposal, TaskProposalPayload, LinkProposalPayload, Message, CreateMessage, MessageWithAuthor, SenderKind, HarnessRequestKind, WorkspaceMode, HarnessImage, AskRequest, BriefingRequest, JournalRequest, CodeRequest, RepoListRequest, ListPrsRequest, PrInfo, PrListResponse, GetConfigRequest, SetConfigRequest, DaemonConfigView, DaemonConfigPatch, ConfigResponse, IncidentTransition, IncidentTurn, IncidentSnapshot, IncidentDiagEvent, IncidentReportRequest, IncidentAckResponse, HarnessRequest, HarnessRequestInput, ApprovalRequest, ApprovalResponse, ApprovalDecision, JournalEntry, AskResponse, BriefingResponse, JournalResponse, RepoListResponse, HarnessResponse, HarnessStreamEvent, HarnessMessage, DeviceConflict, AttentionBoard, AttentionBoardEntry, AttentionRequest, AttentionResponse, VoiceDiagChunk, VoiceDiagReportRequest, VoiceDiagAckResponse, } from './types.js';
35
36
  export { AgentModelOptionSchema } from './schemas/harness.js';
36
37
  export type { AgentModelOption } from './schemas/harness.js';
37
38
  export * from './computer.js';
@@ -52,4 +53,5 @@ export { parseAgentCommand, findAgentCommand } from './agentCommands.js';
52
53
  export type { AgentCommandOption, AgentCommandContext } from './agentCommands.js';
53
54
  export * from './goals.js';
54
55
  export * from './goalNotes.js';
56
+ export * from './messagingSafety.js';
55
57
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AAGvC,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC1B,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,UAAU,EACV,oBAAoB,EACpB,mBA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mB,EAAE,MAAM,oBAAoB,CAAC;AAElF,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AAGvC,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC1B,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,UAAU,EACV,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,SAAS,EACT,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC1B,yBAAyB,EACzB,oBAAoB,EACpB,qBAAqB,EACrB,YAAY,EACZ,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,qBAAqB,EACrB,eAAe,EACf,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EACjB,qBAAqB,EACrB,WAAW,EACX,eAAe,EACf,eAAe,EACf,yBAAyB,EACzB,4BAA4B,EAC5B,iBAAiB,EACjB,cAAc,EACd,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,2BAA2B,EAC3B,qBAAqB,EACrB,gBA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AE7D,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACzE,YAAY,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAElF,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,sBAAsB,CAAC"}
@@ -4,6 +4,7 @@ export * from './githubContributions.js';
4
4
  export * from './projectCapture.js';
5
5
  export * from './taskActivity.js';
6
6
  export * from './recurrence.js';
7
+ export * from './taskSync.js';
7
8
  export * from './vault-search.js';
8
9
  export * from './journal-vault.js';
9
10
  export * from './journal-migration.js';
@@ -31,7 +32,7 @@ export { ProjectMemberSchema, CreateProjectMemberSchema, UpdateProjectMemberSche
31
32
  export { OrganizationSchema, CreateOrganizationSchema, UpdateOrganizationSchema, UpdateOrganizationSettingsSchema, OrganizationMemberWithUserSchema, InviteOrganizationMemberSchema, UpdateOrganizationMemberSchema, OrganizationDomainSchema, CreateOrganizationDomainSchema, MembershipRequestWithUserSchema, OrganizationPreviewSchema, OrganizationProfileSchema, UserOrganizationSchema, CreateInvitationSchema, InvitationSchema, InvitationPreviewSchema, } from './schemas/organization.js';
32
33
  export { REQUEST_KIND_VALUES, REQUEST_STATUS_LABELS, PROCUREMENT_PROJECT_KEY, PROCUREMENT_PROJECT_NAME, RequestSchema, CreateRequestSchema, UpdateRequestSchema, RequestWithTaskSchema, } from './schemas/request.js';
33
34
  export { NOTIFICATION_KINDS, NOTIFICATION_TARGETS, NotificationSchema, NotificationActorSchema, UnreadCountSchema, } from './schemas/notification.js';
34
- export { AgentProviderSchema, SteerRequestSchema, PermissionRequestSchema, ModelsRequestSchema, ControlResponseSchema, ModelsResponseSchema, AskRequestSchema, BriefingRequestSchema, JournalRequestSchema, CodeRequestSchema, ConductRequestSchema, FleetPlanSchema, FleetWorkerSchema, RepoListRequestSchema, ListPrsRequestSchema, GetConfigRequestSchema, SetConfigRequestSchema, IncidentTransitionSchema, IncidentTurnSchema, IncidentSnapshotSchema, IncidentDiagEventSchema, IncidentReportRequestSchema, IncidentAckResponseSchema, DaemonConfigViewSchema, DaemonConfigPatchSchema, DaemonCapabilitiesPatchSchema, ConfigResponseSchema, HarnessRequestSchema, ApprovalRequestSchema, ApprovalResponseSchema, JournalEntrySchema, AskResponseSchema, BriefingResponseSchema, JournalResponseSchema, RepoListResponseSchema, PrInfoSchema, PrListResponseSchema, HarnessResponseSchema, HarnessStreamEventSchema, HarnessMessageSchema, DeviceConflictSchema, AttentionBoardSchema, AttentionBoardEntrySchema, AttentionRequestSchema, AttentionResponseSchema, VoiceDiagChunkSchema, VoiceDiagReportRequestSchema, VoiceDiagAckResponseSchema, ProviderHandoffSchema, } from './schemas/harness.js';
35
+ export { AgentProviderSchema, SteerRequestSchema, PermissionRequestSchema, ModelsRequestSchema, ControlResponseSchema, ModelsResponseSchema, AskRequestSchema, BriefingRequestSchema, JournalRequestSchema, CodeRequestSchema, RepoListRequestSchema, ListPrsRequestSchema, GetConfigRequestSchema, SetConfigRequestSchema, IncidentTransitionSchema, IncidentTurnSchema, IncidentSnapshotSchema, IncidentDiagEventSchema, IncidentReportRequestSchema, IncidentAckResponseSchema, DaemonConfigViewSchema, DaemonConfigPatchSchema, DaemonCapabilitiesPatchSchema, ConfigResponseSchema, HarnessRequestSchema, ApprovalRequestSchema, ApprovalResponseSchema, JournalEntrySchema, AskResponseSchema, BriefingResponseSchema, JournalResponseSchema, RepoListResponseSchema, PrInfoSchema, PrListResponseSchema, HarnessResponseSchema, HarnessStreamEventSchema, HarnessMessageSchema, DeviceConflictSchema, AttentionBoardSchema, AttentionBoardEntrySchema, AttentionRequestSchema, AttentionResponseSchema, VoiceDiagChunkSchema, VoiceDiagReportRequestSchema, VoiceDiagAckResponseSchema, ProviderHandoffSchema, } from './schemas/harness.js';
35
36
  export { AgentModelOptionSchema } from './schemas/harness.js';
36
37
  export * from './computer.js';
37
38
  export * from './cardStudio.js';
@@ -50,3 +51,4 @@ export * from './dayPlan.js';
50
51
  export { parseAgentCommand, findAgentCommand } from './agentCommands.js';
51
52
  export * from './goals.js';
52
53
  export * from './goalNotes.js';
54
+ export * from './messagingSafety.js';
@@ -17,9 +17,9 @@ declare const recordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
17
17
  }>;
18
18
  durationMs: z.ZodNullable<z.ZodNumber>;
19
19
  capturedAt: z.ZodCoercedDate<unknown>;
20
+ userId: z.ZodUUID;
20
21
  engine: z.ZodNullable<z.ZodString>;
21
22
  dayId: z.ZodUUID;
22
- userId: z.ZodUUID;
23
23
  }, z.core.$strip>;
24
24
  day: z.ZodObject<{
25
25
  id: z.ZodUUID;
@@ -0,0 +1,21 @@
1
+ import { z } from 'zod';
2
+ export declare const MESSAGE_REPORT_REASONS: readonly ["harassment", "hate", "sexual_content", "violence", "spam", "other"];
3
+ export declare const MessageReportSchema: z.ZodObject<{
4
+ id: z.ZodUUID;
5
+ messageId: z.ZodUUID;
6
+ reason: z.ZodEnum<{
7
+ harassment: "harassment";
8
+ hate: "hate";
9
+ sexual_content: "sexual_content";
10
+ violence: "violence";
11
+ spam: "spam";
12
+ other: "other";
13
+ }>;
14
+ details: z.ZodDefault<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ export type MessageReportInput = z.infer<typeof MessageReportSchema>;
17
+ export type MessagingSafetyState = {
18
+ blockedByMe: boolean;
19
+ canMessage: boolean;
20
+ };
21
+ //# sourceMappingURL=messagingSafety.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messagingSafety.d.ts","sourceRoot":"","sources":["../src/messagingSafety.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB,gFAAiF,CAAC;AACrH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;iBAK9B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrE,MAAM,MAAM,oBAAoB,GAAG;IAAE,WAAW,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,OAAO,CAAA;CAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { z } from 'zod';
2
+ export const MESSAGE_REPORT_REASONS = ['harassment', 'hate', 'sexual_content', 'violence', 'spam', 'other'];
3
+ export const MessageReportSchema = z.object({
4
+ id: z.uuid(),
5
+ messageId: z.uuid(),
6
+ reason: z.enum(MESSAGE_REPORT_REASONS),
7
+ details: z.string().trim().max(2000).default(''),
8
+ });