@opencorelabs/lucidity 0.7.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 (502) hide show
  1. package/README.md +9 -2
  2. package/dist/assets/speech/lucidity-speech +0 -0
  3. package/dist/automations/agent.d.ts.map +1 -1
  4. package/dist/automations/agent.js +2 -0
  5. package/dist/automations/designer.d.ts +1 -1
  6. package/dist/automations/service.d.ts +4 -0
  7. package/dist/automations/service.d.ts.map +1 -1
  8. package/dist/automations/service.js +60 -22
  9. package/dist/automations/store.d.ts +9 -3
  10. package/dist/automations/store.d.ts.map +1 -1
  11. package/dist/automations/store.js +45 -32
  12. package/dist/automations/workflow.d.ts +14 -0
  13. package/dist/automations/workflow.d.ts.map +1 -0
  14. package/dist/automations/workflow.js +57 -0
  15. package/dist/chat/server.d.ts +1 -0
  16. package/dist/chat/server.d.ts.map +1 -1
  17. package/dist/chat/server.js +6 -1
  18. package/dist/coding/listPrs.d.ts +2 -0
  19. package/dist/coding/listPrs.d.ts.map +1 -1
  20. package/dist/coding/listPrs.js +10 -0
  21. package/dist/coding/runCodeTurn.d.ts +6 -30
  22. package/dist/coding/runCodeTurn.d.ts.map +1 -1
  23. package/dist/coding/runCodeTurn.js +145 -218
  24. package/dist/coding/runReview.d.ts +10 -0
  25. package/dist/coding/runReview.d.ts.map +1 -0
  26. package/dist/coding/runReview.js +87 -0
  27. package/dist/coding/workspaceRegistry.d.ts +72 -0
  28. package/dist/coding/workspaceRegistry.d.ts.map +1 -0
  29. package/dist/coding/workspaceRegistry.js +421 -0
  30. package/dist/coding/worktree.d.ts +72 -32
  31. package/dist/coding/worktree.d.ts.map +1 -1
  32. package/dist/coding/worktree.js +190 -38
  33. package/dist/coding/worktreeSetup.d.ts +7 -0
  34. package/dist/coding/worktreeSetup.d.ts.map +1 -0
  35. package/dist/coding/worktreeSetup.js +49 -0
  36. package/dist/config.d.ts +2 -0
  37. package/dist/config.d.ts.map +1 -1
  38. package/dist/daemonLease.d.ts +12 -0
  39. package/dist/daemonLease.d.ts.map +1 -0
  40. package/dist/daemonLease.js +32 -0
  41. package/dist/goals/assessment.d.ts +115 -0
  42. package/dist/goals/assessment.d.ts.map +1 -0
  43. package/dist/goals/assessment.js +67 -0
  44. package/dist/goals/notes.d.ts +18 -0
  45. package/dist/goals/notes.d.ts.map +1 -0
  46. package/dist/goals/notes.js +72 -0
  47. package/dist/index.js +75 -40
  48. package/dist/jobs/briefing.d.ts +2 -16
  49. package/dist/jobs/briefing.d.ts.map +1 -1
  50. package/dist/jobs/briefing.js +65 -93
  51. package/dist/jobs/goals.d.ts +15 -0
  52. package/dist/jobs/goals.d.ts.map +1 -0
  53. package/dist/jobs/goals.js +286 -0
  54. package/dist/jobs/weeklyReview.d.ts.map +1 -1
  55. package/dist/jobs/weeklyReview.js +3 -2
  56. package/dist/logTimestamps.d.ts +10 -0
  57. package/dist/logTimestamps.d.ts.map +1 -0
  58. package/dist/logTimestamps.js +12 -0
  59. package/dist/providerRecovery.d.ts +48 -0
  60. package/dist/providerRecovery.d.ts.map +1 -0
  61. package/dist/providerRecovery.js +100 -0
  62. package/dist/queue.d.ts +1 -0
  63. package/dist/queue.d.ts.map +1 -1
  64. package/dist/queue.js +4 -0
  65. package/dist/room/client.d.ts +6 -19
  66. package/dist/room/client.d.ts.map +1 -1
  67. package/dist/room/client.js +127 -123
  68. package/dist/room/computer.js +1 -1
  69. package/dist/room/durablePublish.d.ts +6 -0
  70. package/dist/room/durablePublish.d.ts.map +1 -0
  71. package/dist/room/durablePublish.js +19 -0
  72. package/dist/room/incidents.d.ts +4 -1
  73. package/dist/room/incidents.d.ts.map +1 -1
  74. package/dist/room/incidents.js +15 -7
  75. package/dist/room/turnQueue.d.ts.map +1 -1
  76. package/dist/room/turnQueue.js +55 -46
  77. package/dist/runtimeStore.d.ts +46 -0
  78. package/dist/runtimeStore.d.ts.map +1 -0
  79. package/dist/runtimeStore.js +205 -0
  80. package/dist/setup/server.js +1 -1
  81. package/dist/turnLog.d.ts +10 -40
  82. package/dist/turnLog.d.ts.map +1 -1
  83. package/dist/turnLog.js +33 -56
  84. package/dist/vault.d.ts +6 -3
  85. package/dist/vault.d.ts.map +1 -1
  86. package/dist/vault.js +18 -4
  87. package/package.json +4 -4
  88. package/src/automations/agent.ts +2 -0
  89. package/src/automations/service.ts +47 -21
  90. package/src/automations/store.ts +41 -50
  91. package/src/automations/workflow.ts +49 -0
  92. package/src/chat/server.ts +7 -1
  93. package/src/coding/listPrs.ts +14 -0
  94. package/src/coding/runCodeTurn.ts +51 -139
  95. package/src/coding/runReview.ts +83 -0
  96. package/src/coding/workspaceRegistry.ts +380 -0
  97. package/src/coding/worktree.ts +205 -40
  98. package/src/coding/worktreeSetup.ts +50 -0
  99. package/src/config.ts +2 -0
  100. package/src/daemonLease.ts +33 -0
  101. package/src/goals/assessment.ts +106 -0
  102. package/src/goals/notes.ts +88 -0
  103. package/src/index.ts +76 -46
  104. package/src/jobs/briefing.ts +62 -109
  105. package/src/jobs/goals.ts +384 -0
  106. package/src/jobs/weeklyReview.ts +4 -3
  107. package/src/logTimestamps.ts +14 -0
  108. package/src/providerRecovery.ts +99 -0
  109. package/src/queue.ts +4 -0
  110. package/src/room/client.ts +84 -116
  111. package/src/room/computer.ts +1 -1
  112. package/src/room/durablePublish.ts +25 -0
  113. package/src/room/incidents.ts +20 -8
  114. package/src/room/turnQueue.ts +53 -56
  115. package/src/runtimeStore.ts +207 -0
  116. package/src/setup/server.ts +1 -1
  117. package/src/turnLog.ts +32 -75
  118. package/src/vault.ts +16 -7
  119. package/vendor/mcp-server/dist/index.js +2 -0
  120. package/vendor/mcp-server/dist/tools/goals.d.ts +4 -0
  121. package/vendor/mcp-server/dist/tools/goals.d.ts.map +1 -0
  122. package/vendor/mcp-server/dist/tools/goals.js +38 -0
  123. package/vendor/mcp-server/package.json +1 -1
  124. package/vendor/mcp-server/src/index.ts +2 -0
  125. package/vendor/mcp-server/src/tools/goals.ts +62 -0
  126. package/vendor/runtime/README.md +36 -2
  127. package/vendor/runtime/dist/executor/asyncQueue.d.ts +1 -0
  128. package/vendor/runtime/dist/executor/asyncQueue.d.ts.map +1 -1
  129. package/vendor/runtime/dist/executor/asyncQueue.js +3 -0
  130. package/vendor/runtime/dist/executor/claudeAgent.d.ts +5 -1
  131. package/vendor/runtime/dist/executor/claudeAgent.d.ts.map +1 -1
  132. package/vendor/runtime/dist/executor/claudeAgent.js +77 -13
  133. package/vendor/runtime/dist/executor/codex.d.ts +8 -2
  134. package/vendor/runtime/dist/executor/codex.d.ts.map +1 -1
  135. package/vendor/runtime/dist/executor/codex.js +113 -38
  136. package/vendor/runtime/dist/executor/codexProtocol/AgentPath.d.ts +2 -0
  137. package/vendor/runtime/dist/executor/codexProtocol/AgentPath.d.ts.map +1 -0
  138. package/vendor/runtime/dist/executor/codexProtocol/AgentPath.js +2 -0
  139. package/vendor/runtime/dist/executor/codexProtocol/FunctionCallOutputContentItem.d.ts +4 -1
  140. package/vendor/runtime/dist/executor/codexProtocol/FunctionCallOutputContentItem.d.ts.map +1 -1
  141. package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationFailure.d.ts +6 -0
  142. package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationFailure.d.ts.map +1 -0
  143. package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationFailure.js +2 -0
  144. package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationItem.d.ts +12 -0
  145. package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationItem.d.ts.map +1 -0
  146. package/vendor/runtime/dist/executor/codexProtocol/ImageGenerationItem.js +2 -0
  147. package/vendor/runtime/dist/executor/codexProtocol/LegacyAppPathString.d.ts +24 -0
  148. package/vendor/runtime/dist/executor/codexProtocol/LegacyAppPathString.d.ts.map +1 -0
  149. package/vendor/runtime/dist/executor/codexProtocol/LegacyAppPathString.js +2 -0
  150. package/vendor/runtime/dist/executor/codexProtocol/MessagePhase.d.ts +8 -0
  151. package/vendor/runtime/dist/executor/codexProtocol/MessagePhase.d.ts.map +1 -0
  152. package/vendor/runtime/dist/executor/codexProtocol/MessagePhase.js +2 -0
  153. package/vendor/runtime/dist/executor/codexProtocol/Personality.d.ts +3 -0
  154. package/vendor/runtime/dist/executor/codexProtocol/Personality.d.ts.map +1 -1
  155. package/vendor/runtime/dist/executor/codexProtocol/PlanType.d.ts +1 -1
  156. package/vendor/runtime/dist/executor/codexProtocol/PlanType.d.ts.map +1 -1
  157. package/vendor/runtime/dist/executor/codexProtocol/SleepItem.d.ts +8 -0
  158. package/vendor/runtime/dist/executor/codexProtocol/SleepItem.d.ts.map +1 -0
  159. package/vendor/runtime/dist/executor/codexProtocol/SleepItem.js +2 -0
  160. package/vendor/runtime/dist/executor/codexProtocol/SubAgentSource.d.ts +14 -0
  161. package/vendor/runtime/dist/executor/codexProtocol/SubAgentSource.d.ts.map +1 -0
  162. package/vendor/runtime/dist/executor/codexProtocol/SubAgentSource.js +2 -0
  163. package/vendor/runtime/dist/executor/codexProtocol/ThreadId.d.ts +7 -0
  164. package/vendor/runtime/dist/executor/codexProtocol/ThreadId.d.ts.map +1 -0
  165. package/vendor/runtime/dist/executor/codexProtocol/ThreadId.js +2 -0
  166. package/vendor/runtime/dist/executor/codexProtocol/WebSearchItem.d.ts +15 -0
  167. package/vendor/runtime/dist/executor/codexProtocol/WebSearchItem.d.ts.map +1 -0
  168. package/vendor/runtime/dist/executor/codexProtocol/WebSearchItem.js +2 -0
  169. package/vendor/runtime/dist/executor/codexProtocol/v2/AgentMessageDelivery.d.ts +2 -0
  170. package/vendor/runtime/dist/executor/codexProtocol/v2/AgentMessageDelivery.d.ts.map +1 -0
  171. package/vendor/runtime/dist/executor/codexProtocol/v2/AgentMessageDelivery.js +2 -0
  172. package/vendor/runtime/dist/executor/codexProtocol/v2/AsyncUserInputQuestion.d.ts +5 -0
  173. package/vendor/runtime/dist/executor/codexProtocol/v2/AsyncUserInputQuestion.d.ts.map +1 -0
  174. package/vendor/runtime/dist/executor/codexProtocol/v2/AsyncUserInputQuestion.js +2 -0
  175. package/vendor/runtime/dist/executor/codexProtocol/v2/CodexErrorInfo.d.ts +29 -0
  176. package/vendor/runtime/dist/executor/codexProtocol/v2/CodexErrorInfo.d.ts.map +1 -0
  177. package/vendor/runtime/dist/executor/codexProtocol/v2/CodexErrorInfo.js +2 -0
  178. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentState.d.ts +6 -0
  179. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentState.d.ts.map +1 -0
  180. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentState.js +2 -0
  181. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentStatus.d.ts +2 -0
  182. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentStatus.d.ts.map +1 -0
  183. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentStatus.js +2 -0
  184. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentTool.d.ts +2 -0
  185. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentTool.d.ts.map +1 -0
  186. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentTool.js +2 -0
  187. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentToolCallStatus.d.ts +2 -0
  188. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentToolCallStatus.d.ts.map +1 -0
  189. package/vendor/runtime/dist/executor/codexProtocol/v2/CollabAgentToolCallStatus.js +2 -0
  190. package/vendor/runtime/dist/executor/codexProtocol/v2/CommandAction.d.ts +20 -0
  191. package/vendor/runtime/dist/executor/codexProtocol/v2/CommandAction.d.ts.map +1 -0
  192. package/vendor/runtime/dist/executor/codexProtocol/v2/CommandAction.js +2 -0
  193. package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionSource.d.ts +2 -0
  194. package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionSource.d.ts.map +1 -0
  195. package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionSource.js +2 -0
  196. package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionStatus.d.ts +2 -0
  197. package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionStatus.d.ts.map +1 -0
  198. package/vendor/runtime/dist/executor/codexProtocol/v2/CommandExecutionStatus.js +2 -0
  199. package/vendor/runtime/dist/executor/codexProtocol/v2/CyberAccessProgram.d.ts +6 -0
  200. package/vendor/runtime/dist/executor/codexProtocol/v2/CyberAccessProgram.d.ts.map +1 -0
  201. package/vendor/runtime/dist/executor/codexProtocol/v2/CyberAccessProgram.js +2 -0
  202. package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallOutputContentItem.d.ts +11 -0
  203. package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallOutputContentItem.d.ts.map +1 -0
  204. package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallOutputContentItem.js +2 -0
  205. package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallStatus.d.ts +2 -0
  206. package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallStatus.d.ts.map +1 -0
  207. package/vendor/runtime/dist/executor/codexProtocol/v2/DynamicToolCallStatus.js +2 -0
  208. package/vendor/runtime/dist/executor/codexProtocol/v2/FileUpdateChange.d.ts +7 -0
  209. package/vendor/runtime/dist/executor/codexProtocol/v2/FileUpdateChange.d.ts.map +1 -0
  210. package/vendor/runtime/dist/executor/codexProtocol/v2/FileUpdateChange.js +2 -0
  211. package/vendor/runtime/dist/executor/codexProtocol/v2/GetAccountRateLimitsResponse.d.ts +5 -0
  212. package/vendor/runtime/dist/executor/codexProtocol/v2/GetAccountRateLimitsResponse.d.ts.map +1 -1
  213. package/vendor/runtime/dist/executor/codexProtocol/v2/GitInfo.d.ts +6 -0
  214. package/vendor/runtime/dist/executor/codexProtocol/v2/GitInfo.d.ts.map +1 -0
  215. package/vendor/runtime/dist/executor/codexProtocol/v2/GitInfo.js +2 -0
  216. package/vendor/runtime/dist/executor/codexProtocol/v2/HookPromptFragment.d.ts +5 -0
  217. package/vendor/runtime/dist/executor/codexProtocol/v2/HookPromptFragment.d.ts.map +1 -0
  218. package/vendor/runtime/dist/executor/codexProtocol/v2/HookPromptFragment.js +2 -0
  219. package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppDisplayMode.d.ts +2 -0
  220. package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppDisplayMode.d.ts.map +1 -0
  221. package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppDisplayMode.js +2 -0
  222. package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppUi.d.ts +9 -0
  223. package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppUi.d.ts.map +1 -0
  224. package/vendor/runtime/dist/executor/codexProtocol/v2/McpAppUi.js +2 -0
  225. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallAppContext.d.ts +8 -0
  226. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallAppContext.d.ts.map +1 -0
  227. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallAppContext.js +2 -0
  228. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallError.d.ts +4 -0
  229. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallError.d.ts.map +1 -0
  230. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallError.js +2 -0
  231. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallResult.d.ts +7 -0
  232. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallResult.d.ts.map +1 -0
  233. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallResult.js +2 -0
  234. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallStatus.d.ts +2 -0
  235. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallStatus.d.ts.map +1 -0
  236. package/vendor/runtime/dist/executor/codexProtocol/v2/McpToolCallStatus.js +2 -0
  237. package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitation.d.ts +6 -0
  238. package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitation.d.ts.map +1 -0
  239. package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitation.js +2 -0
  240. package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitationEntry.d.ts +7 -0
  241. package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitationEntry.d.ts.map +1 -0
  242. package/vendor/runtime/dist/executor/codexProtocol/v2/MemoryCitationEntry.js +2 -0
  243. package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentErrorDetails.d.ts +16 -0
  244. package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentErrorDetails.d.ts.map +1 -0
  245. package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentErrorDetails.js +2 -0
  246. package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentSteer.d.ts +4 -0
  247. package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentSteer.d.ts.map +1 -0
  248. package/vendor/runtime/dist/executor/codexProtocol/v2/MisalignmentSteer.js +2 -0
  249. package/vendor/runtime/dist/executor/codexProtocol/v2/Model.d.ts +8 -0
  250. package/vendor/runtime/dist/executor/codexProtocol/v2/Model.d.ts.map +1 -1
  251. package/vendor/runtime/dist/executor/codexProtocol/v2/ModelAccessPrograms.d.ts +11 -0
  252. package/vendor/runtime/dist/executor/codexProtocol/v2/ModelAccessPrograms.d.ts.map +1 -0
  253. package/vendor/runtime/dist/executor/codexProtocol/v2/ModelAccessPrograms.js +2 -0
  254. package/vendor/runtime/dist/executor/codexProtocol/v2/NonSteerableTurnKind.d.ts +2 -0
  255. package/vendor/runtime/dist/executor/codexProtocol/v2/NonSteerableTurnKind.d.ts.map +1 -0
  256. package/vendor/runtime/dist/executor/codexProtocol/v2/NonSteerableTurnKind.js +2 -0
  257. package/vendor/runtime/dist/executor/codexProtocol/v2/PatchApplyStatus.d.ts +2 -0
  258. package/vendor/runtime/dist/executor/codexProtocol/v2/PatchApplyStatus.d.ts.map +1 -0
  259. package/vendor/runtime/dist/executor/codexProtocol/v2/PatchApplyStatus.js +2 -0
  260. package/vendor/runtime/dist/executor/codexProtocol/v2/PatchChangeKind.d.ts +9 -0
  261. package/vendor/runtime/dist/executor/codexProtocol/v2/PatchChangeKind.d.ts.map +1 -0
  262. package/vendor/runtime/dist/executor/codexProtocol/v2/PatchChangeKind.js +2 -0
  263. package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitSnapshot.d.ts +4 -0
  264. package/vendor/runtime/dist/executor/codexProtocol/v2/RateLimitSnapshot.d.ts.map +1 -1
  265. package/vendor/runtime/dist/executor/codexProtocol/v2/ReviewStartParams.d.ts +2 -0
  266. package/vendor/runtime/dist/executor/codexProtocol/v2/ReviewStartParams.d.ts.map +1 -1
  267. package/vendor/runtime/dist/executor/codexProtocol/v2/SessionSource.d.ts +7 -0
  268. package/vendor/runtime/dist/executor/codexProtocol/v2/SessionSource.d.ts.map +1 -0
  269. package/vendor/runtime/dist/executor/codexProtocol/v2/SessionSource.js +2 -0
  270. package/vendor/runtime/dist/executor/codexProtocol/v2/SubAgentActivityKind.d.ts +2 -0
  271. package/vendor/runtime/dist/executor/codexProtocol/v2/SubAgentActivityKind.d.ts.map +1 -0
  272. package/vendor/runtime/dist/executor/codexProtocol/v2/SubAgentActivityKind.js +2 -0
  273. package/vendor/runtime/dist/executor/codexProtocol/v2/Thread.d.ts +100 -0
  274. package/vendor/runtime/dist/executor/codexProtocol/v2/Thread.d.ts.map +1 -0
  275. package/vendor/runtime/dist/executor/codexProtocol/v2/Thread.js +2 -0
  276. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadActiveFlag.d.ts +2 -0
  277. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadActiveFlag.d.ts.map +1 -0
  278. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadActiveFlag.js +2 -0
  279. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadHistoryMode.d.ts +2 -0
  280. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadHistoryMode.d.ts.map +1 -0
  281. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadHistoryMode.js +2 -0
  282. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadItem.d.ts +216 -0
  283. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadItem.d.ts.map +1 -0
  284. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadItem.js +2 -0
  285. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadParams.d.ts +11 -0
  286. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadParams.d.ts.map +1 -0
  287. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadParams.js +2 -0
  288. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadResponse.d.ts +5 -0
  289. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadResponse.d.ts.map +1 -0
  290. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadReadResponse.js +2 -0
  291. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadResumeParams.d.ts +4 -1
  292. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadResumeParams.d.ts.map +1 -1
  293. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSection.d.ts +19 -0
  294. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSection.d.ts.map +1 -0
  295. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSection.js +2 -0
  296. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSectionAppearance.d.ts +8 -0
  297. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSectionAppearance.d.ts.map +1 -0
  298. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadSectionAppearance.js +2 -0
  299. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStartParams.d.ts +3 -1
  300. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStartParams.d.ts.map +1 -1
  301. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStatus.d.ts +12 -0
  302. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStatus.d.ts.map +1 -0
  303. package/vendor/runtime/dist/executor/codexProtocol/v2/ThreadStatus.js +2 -0
  304. package/vendor/runtime/dist/executor/codexProtocol/v2/Turn.d.ts +36 -0
  305. package/vendor/runtime/dist/executor/codexProtocol/v2/Turn.d.ts.map +1 -0
  306. package/vendor/runtime/dist/executor/codexProtocol/v2/Turn.js +2 -0
  307. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnError.d.ts +12 -0
  308. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnError.d.ts.map +1 -0
  309. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnError.js +2 -0
  310. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnItemsView.d.ts +2 -0
  311. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnItemsView.d.ts.map +1 -0
  312. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnItemsView.js +2 -0
  313. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStartParams.d.ts +7 -2
  314. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStartParams.d.ts.map +1 -1
  315. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStatus.d.ts +2 -0
  316. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStatus.d.ts.map +1 -0
  317. package/vendor/runtime/dist/executor/codexProtocol/v2/TurnStatus.js +2 -0
  318. package/vendor/runtime/dist/executor/codexProtocol/v2/UserInput.d.ts +3 -0
  319. package/vendor/runtime/dist/executor/codexProtocol/v2/UserInput.d.ts.map +1 -1
  320. package/vendor/runtime/dist/executor/codexProtocol/v2/WebSearchAction.d.ts +15 -0
  321. package/vendor/runtime/dist/executor/codexProtocol/v2/WebSearchAction.d.ts.map +1 -0
  322. package/vendor/runtime/dist/executor/codexProtocol/v2/WebSearchAction.js +2 -0
  323. package/vendor/runtime/dist/executor/codexRpc.d.ts +13 -4
  324. package/vendor/runtime/dist/executor/codexRpc.d.ts.map +1 -1
  325. package/vendor/runtime/dist/executor/codexRpc.js +21 -5
  326. package/vendor/runtime/dist/executor/codexSessions.d.ts +30 -0
  327. package/vendor/runtime/dist/executor/codexSessions.d.ts.map +1 -0
  328. package/vendor/runtime/dist/executor/codexSessions.js +88 -0
  329. package/vendor/runtime/dist/executor/health.d.ts +8 -2
  330. package/vendor/runtime/dist/executor/health.d.ts.map +1 -1
  331. package/vendor/runtime/dist/executor/health.js +21 -5
  332. package/vendor/runtime/dist/executor/liveTurns.d.ts +2 -1
  333. package/vendor/runtime/dist/executor/liveTurns.d.ts.map +1 -1
  334. package/vendor/runtime/dist/executor/liveTurns.js +12 -5
  335. package/vendor/runtime/dist/executor/ownership.d.ts +40 -0
  336. package/vendor/runtime/dist/executor/ownership.d.ts.map +1 -0
  337. package/vendor/runtime/dist/executor/ownership.js +106 -0
  338. package/vendor/runtime/dist/executor/providerRouter.d.ts +1 -0
  339. package/vendor/runtime/dist/executor/providerRouter.d.ts.map +1 -1
  340. package/vendor/runtime/dist/executor/providerRouter.js +5 -0
  341. package/vendor/runtime/dist/executor/types.d.ts +27 -0
  342. package/vendor/runtime/dist/executor/types.d.ts.map +1 -1
  343. package/vendor/runtime/dist/harness/index.d.ts.map +1 -1
  344. package/vendor/runtime/dist/harness/index.js +1 -0
  345. package/vendor/runtime/dist/index.d.ts +2 -1
  346. package/vendor/runtime/dist/index.d.ts.map +1 -1
  347. package/vendor/runtime/dist/index.js +1 -0
  348. package/vendor/runtime/src/executor/asyncQueue.ts +3 -0
  349. package/vendor/runtime/src/executor/claudeAgent.ts +66 -13
  350. package/vendor/runtime/src/executor/codex.ts +124 -47
  351. package/vendor/runtime/src/executor/codexProtocol/AgentPath.ts +5 -0
  352. package/vendor/runtime/src/executor/codexProtocol/FunctionCallOutputContentItem.ts +1 -1
  353. package/vendor/runtime/src/executor/codexProtocol/ImageGenerationFailure.ts +5 -0
  354. package/vendor/runtime/src/executor/codexProtocol/ImageGenerationItem.ts +7 -0
  355. package/vendor/runtime/src/executor/codexProtocol/LegacyAppPathString.ts +27 -0
  356. package/vendor/runtime/src/executor/codexProtocol/MessagePhase.ts +11 -0
  357. package/vendor/runtime/src/executor/codexProtocol/Personality.ts +3 -0
  358. package/vendor/runtime/src/executor/codexProtocol/PlanType.ts +1 -1
  359. package/vendor/runtime/src/executor/codexProtocol/README.md +2 -2
  360. package/vendor/runtime/src/executor/codexProtocol/SleepItem.ts +8 -0
  361. package/vendor/runtime/src/executor/codexProtocol/SubAgentSource.ts +7 -0
  362. package/vendor/runtime/src/executor/codexProtocol/ThreadId.ts +10 -0
  363. package/vendor/runtime/src/executor/codexProtocol/WebSearchItem.ts +14 -0
  364. package/vendor/runtime/src/executor/codexProtocol/v2/AgentMessageDelivery.ts +5 -0
  365. package/vendor/runtime/src/executor/codexProtocol/v2/AsyncUserInputQuestion.ts +5 -0
  366. package/vendor/runtime/src/executor/codexProtocol/v2/CodexErrorInfo.ts +12 -0
  367. package/vendor/runtime/src/executor/codexProtocol/v2/CollabAgentState.ts +6 -0
  368. package/vendor/runtime/src/executor/codexProtocol/v2/CollabAgentStatus.ts +5 -0
  369. package/vendor/runtime/src/executor/codexProtocol/v2/CollabAgentTool.ts +5 -0
  370. package/vendor/runtime/src/executor/codexProtocol/v2/CollabAgentToolCallStatus.ts +5 -0
  371. package/vendor/runtime/src/executor/codexProtocol/v2/CommandAction.ts +6 -0
  372. package/vendor/runtime/src/executor/codexProtocol/v2/CommandExecutionSource.ts +5 -0
  373. package/vendor/runtime/src/executor/codexProtocol/v2/CommandExecutionStatus.ts +5 -0
  374. package/vendor/runtime/src/executor/codexProtocol/v2/CyberAccessProgram.ts +9 -0
  375. package/vendor/runtime/src/executor/codexProtocol/v2/DynamicToolCallOutputContentItem.ts +5 -0
  376. package/vendor/runtime/src/executor/codexProtocol/v2/DynamicToolCallStatus.ts +5 -0
  377. package/vendor/runtime/src/executor/codexProtocol/v2/FileUpdateChange.ts +6 -0
  378. package/vendor/runtime/src/executor/codexProtocol/v2/GetAccountRateLimitsResponse.ts +5 -0
  379. package/vendor/runtime/src/executor/codexProtocol/v2/GitInfo.ts +5 -0
  380. package/vendor/runtime/src/executor/codexProtocol/v2/HookPromptFragment.ts +5 -0
  381. package/vendor/runtime/src/executor/codexProtocol/v2/McpAppDisplayMode.ts +5 -0
  382. package/vendor/runtime/src/executor/codexProtocol/v2/McpAppUi.ts +9 -0
  383. package/vendor/runtime/src/executor/codexProtocol/v2/McpToolCallAppContext.ts +5 -0
  384. package/vendor/runtime/src/executor/codexProtocol/v2/McpToolCallError.ts +5 -0
  385. package/vendor/runtime/src/executor/codexProtocol/v2/McpToolCallResult.ts +6 -0
  386. package/vendor/runtime/src/executor/codexProtocol/v2/McpToolCallStatus.ts +5 -0
  387. package/vendor/runtime/src/executor/codexProtocol/v2/MemoryCitation.ts +6 -0
  388. package/vendor/runtime/src/executor/codexProtocol/v2/MemoryCitationEntry.ts +5 -0
  389. package/vendor/runtime/src/executor/codexProtocol/v2/MisalignmentErrorDetails.ts +18 -0
  390. package/vendor/runtime/src/executor/codexProtocol/v2/MisalignmentSteer.ts +5 -0
  391. package/vendor/runtime/src/executor/codexProtocol/v2/Model.ts +11 -2
  392. package/vendor/runtime/src/executor/codexProtocol/v2/ModelAccessPrograms.ts +13 -0
  393. package/vendor/runtime/src/executor/codexProtocol/v2/NonSteerableTurnKind.ts +5 -0
  394. package/vendor/runtime/src/executor/codexProtocol/v2/PatchApplyStatus.ts +5 -0
  395. package/vendor/runtime/src/executor/codexProtocol/v2/PatchChangeKind.ts +5 -0
  396. package/vendor/runtime/src/executor/codexProtocol/v2/RateLimitSnapshot.ts +5 -1
  397. package/vendor/runtime/src/executor/codexProtocol/v2/ReviewStartParams.ts +2 -0
  398. package/vendor/runtime/src/executor/codexProtocol/v2/SessionSource.ts +6 -0
  399. package/vendor/runtime/src/executor/codexProtocol/v2/SubAgentActivityKind.ts +5 -0
  400. package/vendor/runtime/src/executor/codexProtocol/v2/Thread.ts +104 -0
  401. package/vendor/runtime/src/executor/codexProtocol/v2/ThreadActiveFlag.ts +5 -0
  402. package/vendor/runtime/src/executor/codexProtocol/v2/ThreadHistoryMode.ts +5 -0
  403. package/vendor/runtime/src/executor/codexProtocol/v2/ThreadItem.ts +125 -0
  404. package/vendor/runtime/src/executor/codexProtocol/v2/ThreadReadParams.ts +12 -0
  405. package/vendor/runtime/src/executor/codexProtocol/v2/ThreadReadResponse.ts +6 -0
  406. package/vendor/runtime/src/executor/codexProtocol/v2/ThreadResumeParams.ts +5 -1
  407. package/vendor/runtime/src/executor/codexProtocol/v2/ThreadSection.ts +21 -0
  408. package/vendor/runtime/src/executor/codexProtocol/v2/ThreadSectionAppearance.ts +8 -0
  409. package/vendor/runtime/src/executor/codexProtocol/v2/ThreadStartParams.ts +4 -1
  410. package/vendor/runtime/src/executor/codexProtocol/v2/ThreadStatus.ts +6 -0
  411. package/vendor/runtime/src/executor/codexProtocol/v2/Turn.ts +37 -0
  412. package/vendor/runtime/src/executor/codexProtocol/v2/TurnError.ts +11 -0
  413. package/vendor/runtime/src/executor/codexProtocol/v2/TurnItemsView.ts +5 -0
  414. package/vendor/runtime/src/executor/codexProtocol/v2/TurnStartParams.ts +7 -2
  415. package/vendor/runtime/src/executor/codexProtocol/v2/TurnStatus.ts +5 -0
  416. package/vendor/runtime/src/executor/codexProtocol/v2/UserInput.ts +1 -1
  417. package/vendor/runtime/src/executor/codexProtocol/v2/WebSearchAction.ts +5 -0
  418. package/vendor/runtime/src/executor/codexRpc.ts +26 -6
  419. package/vendor/runtime/src/executor/codexSessions.ts +108 -0
  420. package/vendor/runtime/src/executor/health.ts +21 -7
  421. package/vendor/runtime/src/executor/liveTurns.ts +12 -5
  422. package/vendor/runtime/src/executor/ownership.ts +83 -0
  423. package/vendor/runtime/src/executor/providerRouter.ts +6 -0
  424. package/vendor/runtime/src/executor/types.ts +20 -1
  425. package/vendor/runtime/src/harness/index.ts +1 -0
  426. package/vendor/runtime/src/index.ts +2 -1
  427. package/vendor/shared/dist/agentCommands.d.ts +1 -0
  428. package/vendor/shared/dist/agentCommands.d.ts.map +1 -1
  429. package/vendor/shared/dist/automations.d.ts +34 -0
  430. package/vendor/shared/dist/automations.d.ts.map +1 -1
  431. package/vendor/shared/dist/automations.js +12 -0
  432. package/vendor/shared/dist/cardStudio.d.ts +41 -0
  433. package/vendor/shared/dist/cardStudio.d.ts.map +1 -1
  434. package/vendor/shared/dist/cardStudio.js +13 -3
  435. package/vendor/shared/dist/computer.d.ts +7 -1
  436. package/vendor/shared/dist/computer.d.ts.map +1 -1
  437. package/vendor/shared/dist/computer.js +13 -4
  438. package/vendor/shared/dist/constants.d.ts +3 -3
  439. package/vendor/shared/dist/constants.d.ts.map +1 -1
  440. package/vendor/shared/dist/constants.js +8 -14
  441. package/vendor/shared/dist/goalNotes.d.ts +4 -0
  442. package/vendor/shared/dist/goalNotes.d.ts.map +1 -0
  443. package/vendor/shared/dist/goalNotes.js +23 -0
  444. package/vendor/shared/dist/goals.d.ts +835 -0
  445. package/vendor/shared/dist/goals.d.ts.map +1 -0
  446. package/vendor/shared/dist/goals.js +198 -0
  447. package/vendor/shared/dist/index.d.ts +7 -2
  448. package/vendor/shared/dist/index.d.ts.map +1 -1
  449. package/vendor/shared/dist/index.js +6 -1
  450. package/vendor/shared/dist/journal-vault.d.ts +1 -1
  451. package/vendor/shared/dist/messagingSafety.d.ts +21 -0
  452. package/vendor/shared/dist/messagingSafety.d.ts.map +1 -0
  453. package/vendor/shared/dist/messagingSafety.js +8 -0
  454. package/vendor/shared/dist/schemas/harness.d.ts +199 -169
  455. package/vendor/shared/dist/schemas/harness.d.ts.map +1 -1
  456. package/vendor/shared/dist/schemas/harness.js +25 -124
  457. package/vendor/shared/dist/smartCapture.d.ts +24 -0
  458. package/vendor/shared/dist/smartCapture.d.ts.map +1 -1
  459. package/vendor/shared/dist/smartCapture.js +15 -0
  460. package/vendor/shared/dist/taskSync.d.ts +342 -0
  461. package/vendor/shared/dist/taskSync.d.ts.map +1 -0
  462. package/vendor/shared/dist/taskSync.js +111 -0
  463. package/vendor/shared/dist/types.d.ts +1 -4
  464. package/vendor/shared/dist/types.d.ts.map +1 -1
  465. package/vendor/shared/dist/voiceCapture.d.ts +1 -1
  466. package/vendor/shared/dist/workspaces.d.ts +255 -0
  467. package/vendor/shared/dist/workspaces.d.ts.map +1 -0
  468. package/vendor/shared/dist/workspaces.js +89 -0
  469. package/vendor/shared/src/agentCommands.ts +1 -0
  470. package/vendor/shared/src/automations.ts +12 -0
  471. package/vendor/shared/src/cardStudio.ts +13 -3
  472. package/vendor/shared/src/computer.ts +19 -5
  473. package/vendor/shared/src/constants.ts +8 -14
  474. package/vendor/shared/src/goalNotes.ts +23 -0
  475. package/vendor/shared/src/goals.ts +237 -0
  476. package/vendor/shared/src/index.ts +7 -6
  477. package/vendor/shared/src/messagingSafety.ts +11 -0
  478. package/vendor/shared/src/schemas/harness.ts +24 -130
  479. package/vendor/shared/src/smartCapture.ts +27 -0
  480. package/vendor/shared/src/taskSync.ts +81 -0
  481. package/vendor/shared/src/types.ts +0 -6
  482. package/vendor/shared/src/workspaces.ts +103 -0
  483. package/dist/coding/conduct.d.ts +0 -69
  484. package/dist/coding/conduct.d.ts.map +0 -1
  485. package/dist/coding/conduct.js +0 -348
  486. package/dist/coding/fleetIntegrate.d.ts +0 -37
  487. package/dist/coding/fleetIntegrate.d.ts.map +0 -1
  488. package/dist/coding/fleetIntegrate.js +0 -64
  489. package/dist/coding/fleetPlan.d.ts +0 -20
  490. package/dist/coding/fleetPlan.d.ts.map +0 -1
  491. package/dist/coding/fleetPlan.js +0 -125
  492. package/dist/coding/fleetTasks.d.ts +0 -33
  493. package/dist/coding/fleetTasks.d.ts.map +0 -1
  494. package/dist/coding/fleetTasks.js +0 -75
  495. package/dist/coding/openFleetPr.d.ts +0 -41
  496. package/dist/coding/openFleetPr.d.ts.map +0 -1
  497. package/dist/coding/openFleetPr.js +0 -121
  498. package/src/coding/conduct.ts +0 -462
  499. package/src/coding/fleetIntegrate.ts +0 -95
  500. package/src/coding/fleetPlan.ts +0 -135
  501. package/src/coding/fleetTasks.ts +0 -109
  502. package/src/coding/openFleetPr.ts +0 -148
@@ -0,0 +1,835 @@
1
+ import { z } from 'zod';
2
+ export declare const GoalTimeZoneSchema: z.ZodString;
3
+ export declare const GoalTimeframeSchema: z.ZodObject<{
4
+ start: z.ZodString;
5
+ end: z.ZodString;
6
+ precision: z.ZodEnum<{
7
+ custom: "custom";
8
+ year: "year";
9
+ month: "month";
10
+ quarter: "quarter";
11
+ }>;
12
+ timeZone: z.ZodString;
13
+ }, z.core.$strip>;
14
+ export type GoalTimeframe = z.infer<typeof GoalTimeframeSchema>;
15
+ export declare const GoalStatusSchema: z.ZodEnum<{
16
+ archived: "archived";
17
+ completed: "completed";
18
+ paused: "paused";
19
+ active: "active";
20
+ }>;
21
+ export declare const GoalCadenceSchema: z.ZodEnum<{
22
+ weekly: "weekly";
23
+ monthly: "monthly";
24
+ yearly: "yearly";
25
+ }>;
26
+ export type GoalCadence = z.infer<typeof GoalCadenceSchema>;
27
+ export declare const GoalInputSchema: z.ZodObject<{
28
+ title: z.ZodString;
29
+ timeframe: z.ZodObject<{
30
+ start: z.ZodString;
31
+ end: z.ZodString;
32
+ precision: z.ZodEnum<{
33
+ custom: "custom";
34
+ year: "year";
35
+ month: "month";
36
+ quarter: "quarter";
37
+ }>;
38
+ timeZone: z.ZodString;
39
+ }, z.core.$strip>;
40
+ status: z.ZodDefault<z.ZodEnum<{
41
+ archived: "archived";
42
+ completed: "completed";
43
+ paused: "paused";
44
+ active: "active";
45
+ }>>;
46
+ tracking: z.ZodDefault<z.ZodBoolean>;
47
+ reviews: z.ZodDefault<z.ZodArray<z.ZodEnum<{
48
+ weekly: "weekly";
49
+ monthly: "monthly";
50
+ yearly: "yearly";
51
+ }>>>;
52
+ }, z.core.$strip>;
53
+ export type GoalInput = z.infer<typeof GoalInputSchema>;
54
+ export declare const SaveGoalSchema: z.ZodObject<{
55
+ title: z.ZodString;
56
+ timeframe: z.ZodObject<{
57
+ start: z.ZodString;
58
+ end: z.ZodString;
59
+ precision: z.ZodEnum<{
60
+ custom: "custom";
61
+ year: "year";
62
+ month: "month";
63
+ quarter: "quarter";
64
+ }>;
65
+ timeZone: z.ZodString;
66
+ }, z.core.$strip>;
67
+ status: z.ZodDefault<z.ZodEnum<{
68
+ archived: "archived";
69
+ completed: "completed";
70
+ paused: "paused";
71
+ active: "active";
72
+ }>>;
73
+ tracking: z.ZodDefault<z.ZodBoolean>;
74
+ reviews: z.ZodDefault<z.ZodArray<z.ZodEnum<{
75
+ weekly: "weekly";
76
+ monthly: "monthly";
77
+ yearly: "yearly";
78
+ }>>>;
79
+ id: z.ZodUUID;
80
+ revision: z.ZodNumber;
81
+ }, z.core.$strip>;
82
+ export declare const GoalSchema: z.ZodObject<{
83
+ title: z.ZodString;
84
+ timeframe: z.ZodObject<{
85
+ start: z.ZodString;
86
+ end: z.ZodString;
87
+ precision: z.ZodEnum<{
88
+ custom: "custom";
89
+ year: "year";
90
+ month: "month";
91
+ quarter: "quarter";
92
+ }>;
93
+ timeZone: z.ZodString;
94
+ }, z.core.$strip>;
95
+ status: z.ZodDefault<z.ZodEnum<{
96
+ archived: "archived";
97
+ completed: "completed";
98
+ paused: "paused";
99
+ active: "active";
100
+ }>>;
101
+ tracking: z.ZodDefault<z.ZodBoolean>;
102
+ reviews: z.ZodDefault<z.ZodArray<z.ZodEnum<{
103
+ weekly: "weekly";
104
+ monthly: "monthly";
105
+ yearly: "yearly";
106
+ }>>>;
107
+ id: z.ZodUUID;
108
+ revision: z.ZodNumber;
109
+ createdAt: z.ZodISODateTime;
110
+ updatedAt: z.ZodISODateTime;
111
+ }, z.core.$strip>;
112
+ export type Goal = z.infer<typeof GoalSchema>;
113
+ export declare const GoalReferenceSchema: z.ZodObject<{
114
+ kind: z.ZodEnum<{
115
+ task: "task";
116
+ project: "project";
117
+ habit: "habit";
118
+ note: "note";
119
+ }>;
120
+ id: z.ZodUUID;
121
+ }, z.core.$strip>;
122
+ export type GoalReference = z.infer<typeof GoalReferenceSchema>;
123
+ export declare const goalReferenceKey: (ref: GoalReference) => string;
124
+ export declare const GoalLinkInputSchema: z.ZodObject<{
125
+ kind: z.ZodEnum<{
126
+ task: "task";
127
+ project: "project";
128
+ habit: "habit";
129
+ note: "note";
130
+ }>;
131
+ id: z.ZodUUID;
132
+ source: z.ZodDefault<z.ZodEnum<{
133
+ manual: "manual";
134
+ ai: "ai";
135
+ }>>;
136
+ reason: z.ZodString;
137
+ state: z.ZodDefault<z.ZodEnum<{
138
+ active: "active";
139
+ rejected: "rejected";
140
+ }>>;
141
+ }, z.core.$strip>;
142
+ export declare const GoalLinkSchema: z.ZodObject<{
143
+ kind: z.ZodEnum<{
144
+ task: "task";
145
+ project: "project";
146
+ habit: "habit";
147
+ note: "note";
148
+ }>;
149
+ id: z.ZodUUID;
150
+ source: z.ZodDefault<z.ZodEnum<{
151
+ manual: "manual";
152
+ ai: "ai";
153
+ }>>;
154
+ reason: z.ZodString;
155
+ state: z.ZodDefault<z.ZodEnum<{
156
+ active: "active";
157
+ rejected: "rejected";
158
+ }>>;
159
+ title: z.ZodNullable<z.ZodString>;
160
+ available: z.ZodBoolean;
161
+ updatedAt: z.ZodISODateTime;
162
+ }, z.core.$strip>;
163
+ export type GoalLink = z.infer<typeof GoalLinkSchema>;
164
+ export declare const GoalEvidenceSchema: z.ZodObject<{
165
+ key: z.ZodString;
166
+ reference: z.ZodObject<{
167
+ kind: z.ZodEnum<{
168
+ task: "task";
169
+ project: "project";
170
+ habit: "habit";
171
+ note: "note";
172
+ }>;
173
+ id: z.ZodUUID;
174
+ }, z.core.$strip>;
175
+ at: z.ZodISODateTime;
176
+ kind: z.ZodEnum<{
177
+ task_completed: "task_completed";
178
+ task_started: "task_started";
179
+ task_reopened: "task_reopened";
180
+ task_changed: "task_changed";
181
+ habit_check_in: "habit_check_in";
182
+ note_changed: "note_changed";
183
+ }>;
184
+ title: z.ZodNullable<z.ZodString>;
185
+ available: z.ZodBoolean;
186
+ }, z.core.$strip>;
187
+ export type GoalEvidence = z.infer<typeof GoalEvidenceSchema>;
188
+ export declare const GoalCheckSchema: z.ZodObject<{
189
+ key: z.ZodString;
190
+ cadence: z.ZodEnum<{
191
+ daily: "daily";
192
+ weekly: "weekly";
193
+ monthly: "monthly";
194
+ yearly: "yearly";
195
+ }>;
196
+ start: z.ZodString;
197
+ end: z.ZodString;
198
+ checkedAt: z.ZodISODateTime;
199
+ signal: z.ZodEnum<{
200
+ unknown: "unknown";
201
+ moving: "moving";
202
+ quiet: "quiet";
203
+ }>;
204
+ summary: z.ZodString;
205
+ evidence: z.ZodArray<z.ZodObject<{
206
+ key: z.ZodString;
207
+ reference: z.ZodObject<{
208
+ kind: z.ZodEnum<{
209
+ task: "task";
210
+ project: "project";
211
+ habit: "habit";
212
+ note: "note";
213
+ }>;
214
+ id: z.ZodUUID;
215
+ }, z.core.$strip>;
216
+ at: z.ZodISODateTime;
217
+ kind: z.ZodEnum<{
218
+ task_completed: "task_completed";
219
+ task_started: "task_started";
220
+ task_reopened: "task_reopened";
221
+ task_changed: "task_changed";
222
+ habit_check_in: "habit_check_in";
223
+ note_changed: "note_changed";
224
+ }>;
225
+ title: z.ZodNullable<z.ZodString>;
226
+ available: z.ZodBoolean;
227
+ }, z.core.$strip>>;
228
+ references: z.ZodArray<z.ZodObject<{
229
+ kind: z.ZodEnum<{
230
+ task: "task";
231
+ project: "project";
232
+ habit: "habit";
233
+ note: "note";
234
+ }>;
235
+ id: z.ZodUUID;
236
+ }, z.core.$strip>>;
237
+ timeframe: z.ZodObject<{
238
+ start: z.ZodString;
239
+ end: z.ZodString;
240
+ precision: z.ZodEnum<{
241
+ custom: "custom";
242
+ year: "year";
243
+ month: "month";
244
+ quarter: "quarter";
245
+ }>;
246
+ timeZone: z.ZodString;
247
+ }, z.core.$strip>;
248
+ }, z.core.$strip>;
249
+ export type GoalCheck = z.infer<typeof GoalCheckSchema>;
250
+ export declare const GoalActionSchema: z.ZodObject<{
251
+ id: z.ZodUUID;
252
+ goalId: z.ZodUUID;
253
+ title: z.ZodString;
254
+ instruction: z.ZodString;
255
+ references: z.ZodArray<z.ZodObject<{
256
+ kind: z.ZodEnum<{
257
+ task: "task";
258
+ project: "project";
259
+ habit: "habit";
260
+ note: "note";
261
+ }>;
262
+ id: z.ZodUUID;
263
+ }, z.core.$strip>>;
264
+ status: z.ZodEnum<{
265
+ running: "running";
266
+ approved: "approved";
267
+ completed: "completed";
268
+ failed: "failed";
269
+ cancelled: "cancelled";
270
+ proposed: "proposed";
271
+ }>;
272
+ createdAt: z.ZodISODateTime;
273
+ updatedAt: z.ZodISODateTime;
274
+ resultNoteId: z.ZodNullable<z.ZodUUID>;
275
+ resultMarkdown: z.ZodNullable<z.ZodString>;
276
+ error: z.ZodNullable<z.ZodString>;
277
+ }, z.core.$strip>;
278
+ export type GoalAction = z.infer<typeof GoalActionSchema>;
279
+ export declare const GoalDetailSchema: z.ZodObject<{
280
+ goal: z.ZodObject<{
281
+ title: z.ZodString;
282
+ timeframe: z.ZodObject<{
283
+ start: z.ZodString;
284
+ end: z.ZodString;
285
+ precision: z.ZodEnum<{
286
+ custom: "custom";
287
+ year: "year";
288
+ month: "month";
289
+ quarter: "quarter";
290
+ }>;
291
+ timeZone: z.ZodString;
292
+ }, z.core.$strip>;
293
+ status: z.ZodDefault<z.ZodEnum<{
294
+ archived: "archived";
295
+ completed: "completed";
296
+ paused: "paused";
297
+ active: "active";
298
+ }>>;
299
+ tracking: z.ZodDefault<z.ZodBoolean>;
300
+ reviews: z.ZodDefault<z.ZodArray<z.ZodEnum<{
301
+ weekly: "weekly";
302
+ monthly: "monthly";
303
+ yearly: "yearly";
304
+ }>>>;
305
+ id: z.ZodUUID;
306
+ revision: z.ZodNumber;
307
+ createdAt: z.ZodISODateTime;
308
+ updatedAt: z.ZodISODateTime;
309
+ }, z.core.$strip>;
310
+ links: z.ZodArray<z.ZodObject<{
311
+ kind: z.ZodEnum<{
312
+ task: "task";
313
+ project: "project";
314
+ habit: "habit";
315
+ note: "note";
316
+ }>;
317
+ id: z.ZodUUID;
318
+ source: z.ZodDefault<z.ZodEnum<{
319
+ manual: "manual";
320
+ ai: "ai";
321
+ }>>;
322
+ reason: z.ZodString;
323
+ state: z.ZodDefault<z.ZodEnum<{
324
+ active: "active";
325
+ rejected: "rejected";
326
+ }>>;
327
+ title: z.ZodNullable<z.ZodString>;
328
+ available: z.ZodBoolean;
329
+ updatedAt: z.ZodISODateTime;
330
+ }, z.core.$strip>>;
331
+ checks: z.ZodArray<z.ZodObject<{
332
+ key: z.ZodString;
333
+ cadence: z.ZodEnum<{
334
+ daily: "daily";
335
+ weekly: "weekly";
336
+ monthly: "monthly";
337
+ yearly: "yearly";
338
+ }>;
339
+ start: z.ZodString;
340
+ end: z.ZodString;
341
+ checkedAt: z.ZodISODateTime;
342
+ signal: z.ZodEnum<{
343
+ unknown: "unknown";
344
+ moving: "moving";
345
+ quiet: "quiet";
346
+ }>;
347
+ summary: z.ZodString;
348
+ evidence: z.ZodArray<z.ZodObject<{
349
+ key: z.ZodString;
350
+ reference: z.ZodObject<{
351
+ kind: z.ZodEnum<{
352
+ task: "task";
353
+ project: "project";
354
+ habit: "habit";
355
+ note: "note";
356
+ }>;
357
+ id: z.ZodUUID;
358
+ }, z.core.$strip>;
359
+ at: z.ZodISODateTime;
360
+ kind: z.ZodEnum<{
361
+ task_completed: "task_completed";
362
+ task_started: "task_started";
363
+ task_reopened: "task_reopened";
364
+ task_changed: "task_changed";
365
+ habit_check_in: "habit_check_in";
366
+ note_changed: "note_changed";
367
+ }>;
368
+ title: z.ZodNullable<z.ZodString>;
369
+ available: z.ZodBoolean;
370
+ }, z.core.$strip>>;
371
+ references: z.ZodArray<z.ZodObject<{
372
+ kind: z.ZodEnum<{
373
+ task: "task";
374
+ project: "project";
375
+ habit: "habit";
376
+ note: "note";
377
+ }>;
378
+ id: z.ZodUUID;
379
+ }, z.core.$strip>>;
380
+ timeframe: z.ZodObject<{
381
+ start: z.ZodString;
382
+ end: z.ZodString;
383
+ precision: z.ZodEnum<{
384
+ custom: "custom";
385
+ year: "year";
386
+ month: "month";
387
+ quarter: "quarter";
388
+ }>;
389
+ timeZone: z.ZodString;
390
+ }, z.core.$strip>;
391
+ }, z.core.$strip>>;
392
+ actions: z.ZodArray<z.ZodObject<{
393
+ id: z.ZodUUID;
394
+ goalId: z.ZodUUID;
395
+ title: z.ZodString;
396
+ instruction: z.ZodString;
397
+ references: z.ZodArray<z.ZodObject<{
398
+ kind: z.ZodEnum<{
399
+ task: "task";
400
+ project: "project";
401
+ habit: "habit";
402
+ note: "note";
403
+ }>;
404
+ id: z.ZodUUID;
405
+ }, z.core.$strip>>;
406
+ status: z.ZodEnum<{
407
+ running: "running";
408
+ approved: "approved";
409
+ completed: "completed";
410
+ failed: "failed";
411
+ cancelled: "cancelled";
412
+ proposed: "proposed";
413
+ }>;
414
+ createdAt: z.ZodISODateTime;
415
+ updatedAt: z.ZodISODateTime;
416
+ resultNoteId: z.ZodNullable<z.ZodUUID>;
417
+ resultMarkdown: z.ZodNullable<z.ZodString>;
418
+ error: z.ZodNullable<z.ZodString>;
419
+ }, z.core.$strip>>;
420
+ }, z.core.$strip>;
421
+ export type GoalDetail = z.infer<typeof GoalDetailSchema>;
422
+ export declare const GoalsSnapshotSchema: z.ZodObject<{
423
+ goals: z.ZodArray<z.ZodObject<{
424
+ goal: z.ZodObject<{
425
+ title: z.ZodString;
426
+ timeframe: z.ZodObject<{
427
+ start: z.ZodString;
428
+ end: z.ZodString;
429
+ precision: z.ZodEnum<{
430
+ custom: "custom";
431
+ year: "year";
432
+ month: "month";
433
+ quarter: "quarter";
434
+ }>;
435
+ timeZone: z.ZodString;
436
+ }, z.core.$strip>;
437
+ status: z.ZodDefault<z.ZodEnum<{
438
+ archived: "archived";
439
+ completed: "completed";
440
+ paused: "paused";
441
+ active: "active";
442
+ }>>;
443
+ tracking: z.ZodDefault<z.ZodBoolean>;
444
+ reviews: z.ZodDefault<z.ZodArray<z.ZodEnum<{
445
+ weekly: "weekly";
446
+ monthly: "monthly";
447
+ yearly: "yearly";
448
+ }>>>;
449
+ id: z.ZodUUID;
450
+ revision: z.ZodNumber;
451
+ createdAt: z.ZodISODateTime;
452
+ updatedAt: z.ZodISODateTime;
453
+ }, z.core.$strip>;
454
+ links: z.ZodArray<z.ZodObject<{
455
+ kind: z.ZodEnum<{
456
+ task: "task";
457
+ project: "project";
458
+ habit: "habit";
459
+ note: "note";
460
+ }>;
461
+ id: z.ZodUUID;
462
+ source: z.ZodDefault<z.ZodEnum<{
463
+ manual: "manual";
464
+ ai: "ai";
465
+ }>>;
466
+ reason: z.ZodString;
467
+ state: z.ZodDefault<z.ZodEnum<{
468
+ active: "active";
469
+ rejected: "rejected";
470
+ }>>;
471
+ title: z.ZodNullable<z.ZodString>;
472
+ available: z.ZodBoolean;
473
+ updatedAt: z.ZodISODateTime;
474
+ }, z.core.$strip>>;
475
+ checks: z.ZodArray<z.ZodObject<{
476
+ key: z.ZodString;
477
+ cadence: z.ZodEnum<{
478
+ daily: "daily";
479
+ weekly: "weekly";
480
+ monthly: "monthly";
481
+ yearly: "yearly";
482
+ }>;
483
+ start: z.ZodString;
484
+ end: z.ZodString;
485
+ checkedAt: z.ZodISODateTime;
486
+ signal: z.ZodEnum<{
487
+ unknown: "unknown";
488
+ moving: "moving";
489
+ quiet: "quiet";
490
+ }>;
491
+ summary: z.ZodString;
492
+ evidence: z.ZodArray<z.ZodObject<{
493
+ key: z.ZodString;
494
+ reference: z.ZodObject<{
495
+ kind: z.ZodEnum<{
496
+ task: "task";
497
+ project: "project";
498
+ habit: "habit";
499
+ note: "note";
500
+ }>;
501
+ id: z.ZodUUID;
502
+ }, z.core.$strip>;
503
+ at: z.ZodISODateTime;
504
+ kind: z.ZodEnum<{
505
+ task_completed: "task_completed";
506
+ task_started: "task_started";
507
+ task_reopened: "task_reopened";
508
+ task_changed: "task_changed";
509
+ habit_check_in: "habit_check_in";
510
+ note_changed: "note_changed";
511
+ }>;
512
+ title: z.ZodNullable<z.ZodString>;
513
+ available: z.ZodBoolean;
514
+ }, z.core.$strip>>;
515
+ references: z.ZodArray<z.ZodObject<{
516
+ kind: z.ZodEnum<{
517
+ task: "task";
518
+ project: "project";
519
+ habit: "habit";
520
+ note: "note";
521
+ }>;
522
+ id: z.ZodUUID;
523
+ }, z.core.$strip>>;
524
+ timeframe: z.ZodObject<{
525
+ start: z.ZodString;
526
+ end: z.ZodString;
527
+ precision: z.ZodEnum<{
528
+ custom: "custom";
529
+ year: "year";
530
+ month: "month";
531
+ quarter: "quarter";
532
+ }>;
533
+ timeZone: z.ZodString;
534
+ }, z.core.$strip>;
535
+ }, z.core.$strip>>;
536
+ actions: z.ZodArray<z.ZodObject<{
537
+ id: z.ZodUUID;
538
+ goalId: z.ZodUUID;
539
+ title: z.ZodString;
540
+ instruction: z.ZodString;
541
+ references: z.ZodArray<z.ZodObject<{
542
+ kind: z.ZodEnum<{
543
+ task: "task";
544
+ project: "project";
545
+ habit: "habit";
546
+ note: "note";
547
+ }>;
548
+ id: z.ZodUUID;
549
+ }, z.core.$strip>>;
550
+ status: z.ZodEnum<{
551
+ running: "running";
552
+ approved: "approved";
553
+ completed: "completed";
554
+ failed: "failed";
555
+ cancelled: "cancelled";
556
+ proposed: "proposed";
557
+ }>;
558
+ createdAt: z.ZodISODateTime;
559
+ updatedAt: z.ZodISODateTime;
560
+ resultNoteId: z.ZodNullable<z.ZodUUID>;
561
+ resultMarkdown: z.ZodNullable<z.ZodString>;
562
+ error: z.ZodNullable<z.ZodString>;
563
+ }, z.core.$strip>>;
564
+ }, z.core.$strip>>;
565
+ refreshedAt: z.ZodISODateTime;
566
+ }, z.core.$strip>;
567
+ export type GoalsSnapshot = z.infer<typeof GoalsSnapshotSchema>;
568
+ /** Date-only arithmetic deliberately ignores DST and the computer's current zone. */
569
+ export declare function goalDaysRemaining(timeframe: GoalTimeframe, now?: Date): number;
570
+ export declare function goalPeriod(cadence: 'daily' | GoalCadence, today: string): {
571
+ start: string;
572
+ end: string;
573
+ key: string;
574
+ };
575
+ /** Completed periods only, with no backlog flood after a computer wakes. */
576
+ export declare function dueGoalPeriods(goal: Goal, existing: readonly Pick<GoalCheck, 'key'>[], now?: Date): {
577
+ start: string;
578
+ end: string;
579
+ key: string;
580
+ cadence: "daily" | "weekly" | "monthly" | "yearly";
581
+ }[];
582
+ export declare const GoalAnalysisSchema: z.ZodObject<{
583
+ links: z.ZodArray<z.ZodObject<{
584
+ kind: z.ZodEnum<{
585
+ task: "task";
586
+ project: "project";
587
+ habit: "habit";
588
+ note: "note";
589
+ }>;
590
+ id: z.ZodUUID;
591
+ reason: z.ZodString;
592
+ }, z.core.$strip>>;
593
+ summary: z.ZodString;
594
+ help: z.ZodNullable<z.ZodObject<{
595
+ title: z.ZodString;
596
+ instruction: z.ZodString;
597
+ references: z.ZodArray<z.ZodObject<{
598
+ kind: z.ZodEnum<{
599
+ task: "task";
600
+ project: "project";
601
+ habit: "habit";
602
+ note: "note";
603
+ }>;
604
+ id: z.ZodUUID;
605
+ }, z.core.$strip>>;
606
+ }, z.core.$strip>>;
607
+ }, z.core.$strip>;
608
+ export type GoalAnalysis = z.infer<typeof GoalAnalysisSchema>;
609
+ export declare const GoalCandidateSchema: z.ZodObject<{
610
+ kind: z.ZodEnum<{
611
+ task: "task";
612
+ project: "project";
613
+ habit: "habit";
614
+ note: "note";
615
+ }>;
616
+ id: z.ZodUUID;
617
+ title: z.ZodString;
618
+ description: z.ZodNullable<z.ZodString>;
619
+ updatedAt: z.ZodNullable<z.ZodISODateTime>;
620
+ status: z.ZodNullable<z.ZodString>;
621
+ projectId: z.ZodNullable<z.ZodUUID>;
622
+ }, z.core.$strip>;
623
+ export type GoalCandidate = z.infer<typeof GoalCandidateSchema>;
624
+ export declare const GoalTrackingContextSchema: z.ZodObject<{
625
+ detail: z.ZodObject<{
626
+ goal: z.ZodObject<{
627
+ title: z.ZodString;
628
+ timeframe: z.ZodObject<{
629
+ start: z.ZodString;
630
+ end: z.ZodString;
631
+ precision: z.ZodEnum<{
632
+ custom: "custom";
633
+ year: "year";
634
+ month: "month";
635
+ quarter: "quarter";
636
+ }>;
637
+ timeZone: z.ZodString;
638
+ }, z.core.$strip>;
639
+ status: z.ZodDefault<z.ZodEnum<{
640
+ archived: "archived";
641
+ completed: "completed";
642
+ paused: "paused";
643
+ active: "active";
644
+ }>>;
645
+ tracking: z.ZodDefault<z.ZodBoolean>;
646
+ reviews: z.ZodDefault<z.ZodArray<z.ZodEnum<{
647
+ weekly: "weekly";
648
+ monthly: "monthly";
649
+ yearly: "yearly";
650
+ }>>>;
651
+ id: z.ZodUUID;
652
+ revision: z.ZodNumber;
653
+ createdAt: z.ZodISODateTime;
654
+ updatedAt: z.ZodISODateTime;
655
+ }, z.core.$strip>;
656
+ links: z.ZodArray<z.ZodObject<{
657
+ kind: z.ZodEnum<{
658
+ task: "task";
659
+ project: "project";
660
+ habit: "habit";
661
+ note: "note";
662
+ }>;
663
+ id: z.ZodUUID;
664
+ source: z.ZodDefault<z.ZodEnum<{
665
+ manual: "manual";
666
+ ai: "ai";
667
+ }>>;
668
+ reason: z.ZodString;
669
+ state: z.ZodDefault<z.ZodEnum<{
670
+ active: "active";
671
+ rejected: "rejected";
672
+ }>>;
673
+ title: z.ZodNullable<z.ZodString>;
674
+ available: z.ZodBoolean;
675
+ updatedAt: z.ZodISODateTime;
676
+ }, z.core.$strip>>;
677
+ checks: z.ZodArray<z.ZodObject<{
678
+ key: z.ZodString;
679
+ cadence: z.ZodEnum<{
680
+ daily: "daily";
681
+ weekly: "weekly";
682
+ monthly: "monthly";
683
+ yearly: "yearly";
684
+ }>;
685
+ start: z.ZodString;
686
+ end: z.ZodString;
687
+ checkedAt: z.ZodISODateTime;
688
+ signal: z.ZodEnum<{
689
+ unknown: "unknown";
690
+ moving: "moving";
691
+ quiet: "quiet";
692
+ }>;
693
+ summary: z.ZodString;
694
+ evidence: z.ZodArray<z.ZodObject<{
695
+ key: z.ZodString;
696
+ reference: z.ZodObject<{
697
+ kind: z.ZodEnum<{
698
+ task: "task";
699
+ project: "project";
700
+ habit: "habit";
701
+ note: "note";
702
+ }>;
703
+ id: z.ZodUUID;
704
+ }, z.core.$strip>;
705
+ at: z.ZodISODateTime;
706
+ kind: z.ZodEnum<{
707
+ task_completed: "task_completed";
708
+ task_started: "task_started";
709
+ task_reopened: "task_reopened";
710
+ task_changed: "task_changed";
711
+ habit_check_in: "habit_check_in";
712
+ note_changed: "note_changed";
713
+ }>;
714
+ title: z.ZodNullable<z.ZodString>;
715
+ available: z.ZodBoolean;
716
+ }, z.core.$strip>>;
717
+ references: z.ZodArray<z.ZodObject<{
718
+ kind: z.ZodEnum<{
719
+ task: "task";
720
+ project: "project";
721
+ habit: "habit";
722
+ note: "note";
723
+ }>;
724
+ id: z.ZodUUID;
725
+ }, z.core.$strip>>;
726
+ timeframe: z.ZodObject<{
727
+ start: z.ZodString;
728
+ end: z.ZodString;
729
+ precision: z.ZodEnum<{
730
+ custom: "custom";
731
+ year: "year";
732
+ month: "month";
733
+ quarter: "quarter";
734
+ }>;
735
+ timeZone: z.ZodString;
736
+ }, z.core.$strip>;
737
+ }, z.core.$strip>>;
738
+ actions: z.ZodArray<z.ZodObject<{
739
+ id: z.ZodUUID;
740
+ goalId: z.ZodUUID;
741
+ title: z.ZodString;
742
+ instruction: z.ZodString;
743
+ references: z.ZodArray<z.ZodObject<{
744
+ kind: z.ZodEnum<{
745
+ task: "task";
746
+ project: "project";
747
+ habit: "habit";
748
+ note: "note";
749
+ }>;
750
+ id: z.ZodUUID;
751
+ }, z.core.$strip>>;
752
+ status: z.ZodEnum<{
753
+ running: "running";
754
+ approved: "approved";
755
+ completed: "completed";
756
+ failed: "failed";
757
+ cancelled: "cancelled";
758
+ proposed: "proposed";
759
+ }>;
760
+ createdAt: z.ZodISODateTime;
761
+ updatedAt: z.ZodISODateTime;
762
+ resultNoteId: z.ZodNullable<z.ZodUUID>;
763
+ resultMarkdown: z.ZodNullable<z.ZodString>;
764
+ error: z.ZodNullable<z.ZodString>;
765
+ }, z.core.$strip>>;
766
+ }, z.core.$strip>;
767
+ candidates: z.ZodArray<z.ZodObject<{
768
+ kind: z.ZodEnum<{
769
+ task: "task";
770
+ project: "project";
771
+ habit: "habit";
772
+ note: "note";
773
+ }>;
774
+ id: z.ZodUUID;
775
+ title: z.ZodString;
776
+ description: z.ZodNullable<z.ZodString>;
777
+ updatedAt: z.ZodNullable<z.ZodISODateTime>;
778
+ status: z.ZodNullable<z.ZodString>;
779
+ projectId: z.ZodNullable<z.ZodUUID>;
780
+ }, z.core.$strip>>;
781
+ evidence: z.ZodArray<z.ZodObject<{
782
+ key: z.ZodString;
783
+ reference: z.ZodObject<{
784
+ kind: z.ZodEnum<{
785
+ task: "task";
786
+ project: "project";
787
+ habit: "habit";
788
+ note: "note";
789
+ }>;
790
+ id: z.ZodUUID;
791
+ }, z.core.$strip>;
792
+ at: z.ZodISODateTime;
793
+ kind: z.ZodEnum<{
794
+ task_completed: "task_completed";
795
+ task_started: "task_started";
796
+ task_reopened: "task_reopened";
797
+ task_changed: "task_changed";
798
+ habit_check_in: "habit_check_in";
799
+ note_changed: "note_changed";
800
+ }>;
801
+ title: z.ZodNullable<z.ZodString>;
802
+ available: z.ZodBoolean;
803
+ }, z.core.$strip>>;
804
+ complete: z.ZodBoolean;
805
+ }, z.core.$strip>;
806
+ export type GoalTrackingContext = z.infer<typeof GoalTrackingContextSchema>;
807
+ export declare const RecordGoalCheckSchema: z.ZodObject<{
808
+ revision: z.ZodNumber;
809
+ cadence: z.ZodEnum<{
810
+ daily: "daily";
811
+ weekly: "weekly";
812
+ monthly: "monthly";
813
+ yearly: "yearly";
814
+ }>;
815
+ summary: z.ZodString;
816
+ noteObservations: z.ZodDefault<z.ZodArray<z.ZodObject<{
817
+ id: z.ZodUUID;
818
+ at: z.ZodISODateTime;
819
+ }, z.core.$strip>>>;
820
+ notesAvailable: z.ZodDefault<z.ZodBoolean>;
821
+ help: z.ZodNullable<z.ZodObject<{
822
+ title: z.ZodString;
823
+ instruction: z.ZodString;
824
+ references: z.ZodArray<z.ZodObject<{
825
+ kind: z.ZodEnum<{
826
+ task: "task";
827
+ project: "project";
828
+ habit: "habit";
829
+ note: "note";
830
+ }>;
831
+ id: z.ZodUUID;
832
+ }, z.core.$strip>>;
833
+ }, z.core.$strip>>;
834
+ }, z.core.$strip>;
835
+ //# sourceMappingURL=goals.d.ts.map