daycare-cli 0.1.1 → 2026.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (410) hide show
  1. package/dist/engine/agents/ops/agentHistoryContext.spec.js +2 -1
  2. package/dist/engine/agents/ops/agentHistoryContext.spec.js.map +1 -1
  3. package/dist/engine/agents/ops/agentHistoryPendingToolResults.d.ts.map +1 -1
  4. package/dist/engine/agents/ops/agentHistoryPendingToolResults.js +2 -1
  5. package/dist/engine/agents/ops/agentHistoryPendingToolResults.js.map +1 -1
  6. package/dist/engine/agents/ops/agentHistoryPendingToolResults.spec.js +9 -1
  7. package/dist/engine/agents/ops/agentHistoryPendingToolResults.spec.js.map +1 -1
  8. package/dist/engine/agents/ops/agentHistorySummary.spec.js +2 -1
  9. package/dist/engine/agents/ops/agentHistorySummary.spec.js.map +1 -1
  10. package/dist/engine/agents/ops/agentInferencePromptWrite.d.ts +16 -0
  11. package/dist/engine/agents/ops/agentInferencePromptWrite.d.ts.map +1 -0
  12. package/dist/engine/agents/ops/agentInferencePromptWrite.js +52 -0
  13. package/dist/engine/agents/ops/agentInferencePromptWrite.js.map +1 -0
  14. package/dist/engine/agents/ops/agentInferencePromptWrite.spec.d.ts +2 -0
  15. package/dist/engine/agents/ops/agentInferencePromptWrite.spec.d.ts.map +1 -0
  16. package/dist/engine/agents/ops/agentInferencePromptWrite.spec.js +45 -0
  17. package/dist/engine/agents/ops/agentInferencePromptWrite.spec.js.map +1 -0
  18. package/dist/engine/agents/ops/agentLoopRun.d.ts.map +1 -1
  19. package/dist/engine/agents/ops/agentLoopRun.js +16 -3
  20. package/dist/engine/agents/ops/agentLoopRun.js.map +1 -1
  21. package/dist/engine/agents/ops/agentLoopRun.spec.js +4 -2
  22. package/dist/engine/agents/ops/agentLoopRun.spec.js.map +1 -1
  23. package/dist/engine/agents/ops/agentSystemPrompt.spec.js +1 -1
  24. package/dist/engine/agents/ops/agentSystemPrompt.spec.js.map +1 -1
  25. package/dist/engine/agents/ops/agentSystemPromptSectionFormatting.d.ts.map +1 -1
  26. package/dist/engine/agents/ops/agentSystemPromptSectionFormatting.js +2 -0
  27. package/dist/engine/agents/ops/agentSystemPromptSectionFormatting.js.map +1 -1
  28. package/dist/engine/agents/ops/contextEstimateTokens.spec.js +6 -3
  29. package/dist/engine/agents/ops/contextEstimateTokens.spec.js.map +1 -1
  30. package/dist/engine/apps/appInstallToolBuild.d.ts.map +1 -1
  31. package/dist/engine/apps/appInstallToolBuild.js +20 -2
  32. package/dist/engine/apps/appInstallToolBuild.js.map +1 -1
  33. package/dist/engine/apps/appRuleToolBuild.d.ts.map +1 -1
  34. package/dist/engine/apps/appRuleToolBuild.js +33 -2
  35. package/dist/engine/apps/appRuleToolBuild.js.map +1 -1
  36. package/dist/engine/apps/appRuleToolBuild.spec.js +2 -1
  37. package/dist/engine/apps/appRuleToolBuild.spec.js.map +1 -1
  38. package/dist/engine/apps/appToolBuild.d.ts.map +1 -1
  39. package/dist/engine/apps/appToolBuild.js +21 -1
  40. package/dist/engine/apps/appToolBuild.js.map +1 -1
  41. package/dist/engine/apps/appToolExecutorBuild.d.ts.map +1 -1
  42. package/dist/engine/apps/appToolExecutorBuild.js +3 -6
  43. package/dist/engine/apps/appToolExecutorBuild.js.map +1 -1
  44. package/dist/engine/apps/appToolExecutorBuild.spec.js +2 -1
  45. package/dist/engine/apps/appToolExecutorBuild.spec.js.map +1 -1
  46. package/dist/engine/modules/monty/montyParameterEntriesBuild.d.ts +13 -0
  47. package/dist/engine/modules/monty/montyParameterEntriesBuild.d.ts.map +1 -0
  48. package/dist/engine/modules/{rlm/rlmParameterEntriesBuild.js → monty/montyParameterEntriesBuild.js} +5 -7
  49. package/dist/engine/modules/monty/montyParameterEntriesBuild.js.map +1 -0
  50. package/dist/engine/modules/{rlm/rlmPreambleBuild.d.ts → monty/montyPreambleBuild.d.ts} +2 -2
  51. package/dist/engine/modules/monty/montyPreambleBuild.d.ts.map +1 -0
  52. package/dist/engine/modules/monty/montyPreambleBuild.js +83 -0
  53. package/dist/engine/modules/monty/montyPreambleBuild.js.map +1 -0
  54. package/dist/engine/modules/monty/montyPreambleBuild.spec.d.ts +2 -0
  55. package/dist/engine/modules/monty/montyPreambleBuild.spec.d.ts.map +1 -0
  56. package/dist/engine/modules/monty/montyPreambleBuild.spec.js +137 -0
  57. package/dist/engine/modules/monty/montyPreambleBuild.spec.js.map +1 -0
  58. package/dist/engine/modules/monty/montyPythonDocstringEscape.d.ts +6 -0
  59. package/dist/engine/modules/monty/montyPythonDocstringEscape.d.ts.map +1 -0
  60. package/dist/engine/modules/monty/montyPythonDocstringEscape.js +8 -0
  61. package/dist/engine/modules/monty/montyPythonDocstringEscape.js.map +1 -0
  62. package/dist/engine/modules/monty/montyPythonIdentifierIs.d.ts +6 -0
  63. package/dist/engine/modules/monty/montyPythonIdentifierIs.d.ts.map +1 -0
  64. package/dist/engine/modules/monty/montyPythonIdentifierIs.js +8 -0
  65. package/dist/engine/modules/monty/montyPythonIdentifierIs.js.map +1 -0
  66. package/dist/engine/modules/monty/montyPythonSignatureBuild.d.ts +7 -0
  67. package/dist/engine/modules/monty/montyPythonSignatureBuild.d.ts.map +1 -0
  68. package/dist/engine/modules/monty/montyPythonSignatureBuild.js +20 -0
  69. package/dist/engine/modules/monty/montyPythonSignatureBuild.js.map +1 -0
  70. package/dist/engine/modules/monty/montyPythonSignatureBuild.spec.d.ts +2 -0
  71. package/dist/engine/modules/monty/montyPythonSignatureBuild.spec.d.ts.map +1 -0
  72. package/dist/engine/modules/monty/montyPythonSignatureBuild.spec.js +39 -0
  73. package/dist/engine/modules/monty/montyPythonSignatureBuild.spec.js.map +1 -0
  74. package/dist/engine/modules/monty/montyPythonTypeFromSchema.d.ts +6 -0
  75. package/dist/engine/modules/monty/montyPythonTypeFromSchema.d.ts.map +1 -0
  76. package/dist/engine/modules/monty/montyPythonTypeFromSchema.js +59 -0
  77. package/dist/engine/modules/monty/montyPythonTypeFromSchema.js.map +1 -0
  78. package/dist/engine/modules/monty/montyPythonTypeFromSchema.spec.d.ts +2 -0
  79. package/dist/engine/modules/monty/montyPythonTypeFromSchema.spec.d.ts.map +1 -0
  80. package/dist/engine/modules/monty/montyPythonTypeFromSchema.spec.js +26 -0
  81. package/dist/engine/modules/monty/montyPythonTypeFromSchema.spec.js.map +1 -0
  82. package/dist/engine/modules/monty/montyPythonTypeFromSchemaRuntime.spec.d.ts +2 -0
  83. package/dist/engine/modules/monty/montyPythonTypeFromSchemaRuntime.spec.d.ts.map +1 -0
  84. package/dist/engine/modules/monty/montyPythonTypeFromSchemaRuntime.spec.js +118 -0
  85. package/dist/engine/modules/monty/montyPythonTypeFromSchemaRuntime.spec.js.map +1 -0
  86. package/dist/engine/modules/monty/montyResponseSchemaKey.d.ts +6 -0
  87. package/dist/engine/modules/monty/montyResponseSchemaKey.d.ts.map +1 -0
  88. package/dist/engine/modules/monty/montyResponseSchemaKey.js +6 -0
  89. package/dist/engine/modules/monty/montyResponseSchemaKey.js.map +1 -0
  90. package/dist/engine/modules/monty/montyResponseTypeNameFromFunction.d.ts +6 -0
  91. package/dist/engine/modules/monty/montyResponseTypeNameFromFunction.d.ts.map +1 -0
  92. package/dist/engine/modules/monty/montyResponseTypeNameFromFunction.js +25 -0
  93. package/dist/engine/modules/monty/montyResponseTypeNameFromFunction.js.map +1 -0
  94. package/dist/engine/modules/monty/montyResponseTypeNameFromFunction.spec.d.ts +2 -0
  95. package/dist/engine/modules/monty/montyResponseTypeNameFromFunction.spec.d.ts.map +1 -0
  96. package/dist/engine/modules/monty/montyResponseTypeNameFromFunction.spec.js +13 -0
  97. package/dist/engine/modules/monty/montyResponseTypeNameFromFunction.spec.js.map +1 -0
  98. package/dist/engine/modules/monty/montyResponseTypedDictLinesBuild.d.ts +6 -0
  99. package/dist/engine/modules/monty/montyResponseTypedDictLinesBuild.d.ts.map +1 -0
  100. package/dist/engine/modules/monty/montyResponseTypedDictLinesBuild.js +77 -0
  101. package/dist/engine/modules/monty/montyResponseTypedDictLinesBuild.js.map +1 -0
  102. package/dist/engine/modules/monty/montyResponseTypedDictLinesBuild.spec.d.ts +2 -0
  103. package/dist/engine/modules/monty/montyResponseTypedDictLinesBuild.spec.d.ts.map +1 -0
  104. package/dist/engine/modules/monty/montyResponseTypedDictLinesBuild.spec.js +44 -0
  105. package/dist/engine/modules/monty/montyResponseTypedDictLinesBuild.spec.js.map +1 -0
  106. package/dist/engine/modules/monty/montyRuntimePreambleBuild.d.ts +7 -0
  107. package/dist/engine/modules/monty/montyRuntimePreambleBuild.d.ts.map +1 -0
  108. package/dist/engine/modules/monty/montyRuntimePreambleBuild.js +28 -0
  109. package/dist/engine/modules/monty/montyRuntimePreambleBuild.js.map +1 -0
  110. package/dist/engine/modules/monty/montyRuntimePreambleBuild.spec.d.ts +2 -0
  111. package/dist/engine/modules/monty/montyRuntimePreambleBuild.spec.d.ts.map +1 -0
  112. package/dist/engine/modules/monty/montyRuntimePreambleBuild.spec.js +35 -0
  113. package/dist/engine/modules/monty/montyRuntimePreambleBuild.spec.js.map +1 -0
  114. package/dist/engine/modules/rlm/rlmConvert.d.ts +2 -2
  115. package/dist/engine/modules/rlm/rlmConvert.d.ts.map +1 -1
  116. package/dist/engine/modules/rlm/rlmConvert.js +35 -2
  117. package/dist/engine/modules/rlm/rlmConvert.js.map +1 -1
  118. package/dist/engine/modules/rlm/rlmConvert.spec.js +26 -4
  119. package/dist/engine/modules/rlm/rlmConvert.spec.js.map +1 -1
  120. package/dist/engine/modules/rlm/rlmErrorTextBuild.d.ts.map +1 -1
  121. package/dist/engine/modules/rlm/rlmErrorTextBuild.js +11 -1
  122. package/dist/engine/modules/rlm/rlmErrorTextBuild.js.map +1 -1
  123. package/dist/engine/modules/rlm/rlmExecute.d.ts.map +1 -1
  124. package/dist/engine/modules/rlm/rlmExecute.js +12 -2
  125. package/dist/engine/modules/rlm/rlmExecute.js.map +1 -1
  126. package/dist/engine/modules/rlm/rlmExecute.spec.js +18 -10
  127. package/dist/engine/modules/rlm/rlmExecute.spec.js.map +1 -1
  128. package/dist/engine/modules/rlm/rlmNoToolsPromptBuild.js +2 -2
  129. package/dist/engine/modules/rlm/rlmNoToolsPromptBuild.js.map +1 -1
  130. package/dist/engine/modules/rlm/rlmNoToolsPromptBuild.spec.js +38 -4
  131. package/dist/engine/modules/rlm/rlmNoToolsPromptBuild.spec.js.map +1 -1
  132. package/dist/engine/modules/rlm/rlmPromptSkills.spec.js +1 -1
  133. package/dist/engine/modules/rlm/rlmPromptSkills.spec.js.map +1 -1
  134. package/dist/engine/modules/rlm/rlmRestore.spec.js +5 -4
  135. package/dist/engine/modules/rlm/rlmRestore.spec.js.map +1 -1
  136. package/dist/engine/modules/rlm/rlmTool.d.ts.map +1 -1
  137. package/dist/engine/modules/rlm/rlmTool.js +4 -3
  138. package/dist/engine/modules/rlm/rlmTool.js.map +1 -1
  139. package/dist/engine/modules/rlm/rlmTool.spec.js +9 -1
  140. package/dist/engine/modules/rlm/rlmTool.spec.js.map +1 -1
  141. package/dist/engine/modules/rlm/rlmToolDescriptionBuild.js +2 -2
  142. package/dist/engine/modules/rlm/rlmToolDescriptionBuild.js.map +1 -1
  143. package/dist/engine/modules/rlm/rlmToolDescriptionBuild.spec.js +36 -1
  144. package/dist/engine/modules/rlm/rlmToolDescriptionBuild.spec.js.map +1 -1
  145. package/dist/engine/modules/rlm/rlmToolResultBuild.d.ts +8 -1
  146. package/dist/engine/modules/rlm/rlmToolResultBuild.d.ts.map +1 -1
  147. package/dist/engine/modules/rlm/rlmToolResultBuild.js +16 -1
  148. package/dist/engine/modules/rlm/rlmToolResultBuild.js.map +1 -1
  149. package/dist/engine/modules/toolResolver.d.ts.map +1 -1
  150. package/dist/engine/modules/toolResolver.js +100 -6
  151. package/dist/engine/modules/toolResolver.js.map +1 -1
  152. package/dist/engine/modules/toolResolver.spec.js +106 -1
  153. package/dist/engine/modules/toolResolver.spec.js.map +1 -1
  154. package/dist/engine/modules/tools/background.d.ts.map +1 -1
  155. package/dist/engine/modules/tools/background.js +31 -4
  156. package/dist/engine/modules/tools/background.js.map +1 -1
  157. package/dist/engine/modules/tools/channelCreateTool.d.ts.map +1 -1
  158. package/dist/engine/modules/tools/channelCreateTool.js +22 -2
  159. package/dist/engine/modules/tools/channelCreateTool.js.map +1 -1
  160. package/dist/engine/modules/tools/channelHistoryTool.d.ts.map +1 -1
  161. package/dist/engine/modules/tools/channelHistoryTool.js +31 -2
  162. package/dist/engine/modules/tools/channelHistoryTool.js.map +1 -1
  163. package/dist/engine/modules/tools/channelMemberTool.d.ts.map +1 -1
  164. package/dist/engine/modules/tools/channelMemberTool.js +37 -6
  165. package/dist/engine/modules/tools/channelMemberTool.js.map +1 -1
  166. package/dist/engine/modules/tools/channelSendTool.d.ts.map +1 -1
  167. package/dist/engine/modules/tools/channelSendTool.js +23 -3
  168. package/dist/engine/modules/tools/channelSendTool.js.map +1 -1
  169. package/dist/engine/modules/tools/cron.d.ts.map +1 -1
  170. package/dist/engine/modules/tools/cron.js +68 -9
  171. package/dist/engine/modules/tools/cron.js.map +1 -1
  172. package/dist/engine/modules/tools/exposeCreateToolBuild.d.ts.map +1 -1
  173. package/dist/engine/modules/tools/exposeCreateToolBuild.js +26 -3
  174. package/dist/engine/modules/tools/exposeCreateToolBuild.js.map +1 -1
  175. package/dist/engine/modules/tools/exposeListToolBuild.d.ts.map +1 -1
  176. package/dist/engine/modules/tools/exposeListToolBuild.js +20 -3
  177. package/dist/engine/modules/tools/exposeListToolBuild.js.map +1 -1
  178. package/dist/engine/modules/tools/exposeRemoveToolBuild.d.ts.map +1 -1
  179. package/dist/engine/modules/tools/exposeRemoveToolBuild.js +18 -2
  180. package/dist/engine/modules/tools/exposeRemoveToolBuild.js.map +1 -1
  181. package/dist/engine/modules/tools/exposeUpdateToolBuild.d.ts.map +1 -1
  182. package/dist/engine/modules/tools/exposeUpdateToolBuild.js +22 -3
  183. package/dist/engine/modules/tools/exposeUpdateToolBuild.js.map +1 -1
  184. package/dist/engine/modules/tools/heartbeat.d.ts.map +1 -1
  185. package/dist/engine/modules/tools/heartbeat.js +62 -10
  186. package/dist/engine/modules/tools/heartbeat.js.map +1 -1
  187. package/dist/engine/modules/tools/image-generation.d.ts.map +1 -1
  188. package/dist/engine/modules/tools/image-generation.js +20 -2
  189. package/dist/engine/modules/tools/image-generation.js.map +1 -1
  190. package/dist/engine/modules/tools/mermaid-png.d.ts.map +1 -1
  191. package/dist/engine/modules/tools/mermaid-png.js +22 -2
  192. package/dist/engine/modules/tools/mermaid-png.js.map +1 -1
  193. package/dist/engine/modules/tools/permanentAgentToolBuild.d.ts.map +1 -1
  194. package/dist/engine/modules/tools/permanentAgentToolBuild.js +22 -2
  195. package/dist/engine/modules/tools/permanentAgentToolBuild.js.map +1 -1
  196. package/dist/engine/modules/tools/permissions.d.ts +26 -2
  197. package/dist/engine/modules/tools/permissions.d.ts.map +1 -1
  198. package/dist/engine/modules/tools/permissions.js +57 -5
  199. package/dist/engine/modules/tools/permissions.js.map +1 -1
  200. package/dist/engine/modules/tools/reaction.d.ts.map +1 -1
  201. package/dist/engine/modules/tools/reaction.js +22 -2
  202. package/dist/engine/modules/tools/reaction.js.map +1 -1
  203. package/dist/engine/modules/tools/send-file.d.ts.map +1 -1
  204. package/dist/engine/modules/tools/send-file.js +26 -2
  205. package/dist/engine/modules/tools/send-file.js.map +1 -1
  206. package/dist/engine/modules/tools/sendUserMessageTool.d.ts.map +1 -1
  207. package/dist/engine/modules/tools/sendUserMessageTool.js +20 -2
  208. package/dist/engine/modules/tools/sendUserMessageTool.js.map +1 -1
  209. package/dist/engine/modules/tools/sessionHistoryToolBuild.d.ts.map +1 -1
  210. package/dist/engine/modules/tools/sessionHistoryToolBuild.js +22 -2
  211. package/dist/engine/modules/tools/sessionHistoryToolBuild.js.map +1 -1
  212. package/dist/engine/modules/tools/signal.d.ts.map +1 -1
  213. package/dist/engine/modules/tools/signal.js +23 -2
  214. package/dist/engine/modules/tools/signal.js.map +1 -1
  215. package/dist/engine/modules/tools/signalEventsCsvToolBuild.d.ts.map +1 -1
  216. package/dist/engine/modules/tools/signalEventsCsvToolBuild.js +24 -2
  217. package/dist/engine/modules/tools/signalEventsCsvToolBuild.js.map +1 -1
  218. package/dist/engine/modules/tools/signalSubscribeToolBuild.d.ts.map +1 -1
  219. package/dist/engine/modules/tools/signalSubscribeToolBuild.js +22 -2
  220. package/dist/engine/modules/tools/signalSubscribeToolBuild.js.map +1 -1
  221. package/dist/engine/modules/tools/signalUnsubscribeToolBuild.d.ts.map +1 -1
  222. package/dist/engine/modules/tools/signalUnsubscribeToolBuild.js +24 -4
  223. package/dist/engine/modules/tools/signalUnsubscribeToolBuild.js.map +1 -1
  224. package/dist/engine/modules/tools/skillToolBuild.d.ts.map +1 -1
  225. package/dist/engine/modules/tools/skillToolBuild.js +30 -2
  226. package/dist/engine/modules/tools/skillToolBuild.js.map +1 -1
  227. package/dist/engine/modules/tools/toolResultFormatVerbose.spec.js +4 -2
  228. package/dist/engine/modules/tools/toolResultFormatVerbose.spec.js.map +1 -1
  229. package/dist/engine/modules/tools/toolResultTruncate.spec.js +4 -2
  230. package/dist/engine/modules/tools/toolResultTruncate.spec.js.map +1 -1
  231. package/dist/engine/modules/tools/toolReturnOutcome.d.ts +24 -0
  232. package/dist/engine/modules/tools/toolReturnOutcome.d.ts.map +1 -0
  233. package/dist/engine/modules/tools/toolReturnOutcome.js +53 -0
  234. package/dist/engine/modules/tools/toolReturnOutcome.js.map +1 -0
  235. package/dist/engine/modules/tools/topologyToolBuild.d.ts.map +1 -1
  236. package/dist/engine/modules/tools/topologyToolBuild.js +28 -3
  237. package/dist/engine/modules/tools/topologyToolBuild.js.map +1 -1
  238. package/dist/engine/modules/tools/types.d.ts +19 -3
  239. package/dist/engine/modules/tools/types.d.ts.map +1 -1
  240. package/dist/engine/plugins/manager.spec.js +13 -1
  241. package/dist/engine/plugins/manager.spec.js.map +1 -1
  242. package/dist/plugins/anthropic-fetch/plugin.d.ts +1 -1
  243. package/dist/plugins/anthropic-fetch/plugin.d.ts.map +1 -1
  244. package/dist/plugins/anthropic-fetch/plugin.js +22 -2
  245. package/dist/plugins/anthropic-fetch/plugin.js.map +1 -1
  246. package/dist/plugins/anthropic-search/plugin.d.ts +1 -1
  247. package/dist/plugins/anthropic-search/plugin.d.ts.map +1 -1
  248. package/dist/plugins/anthropic-search/plugin.js +22 -2
  249. package/dist/plugins/anthropic-search/plugin.js.map +1 -1
  250. package/dist/plugins/brave-search/plugin.d.ts +1 -1
  251. package/dist/plugins/brave-search/plugin.d.ts.map +1 -1
  252. package/dist/plugins/brave-search/plugin.js +20 -2
  253. package/dist/plugins/brave-search/plugin.js.map +1 -1
  254. package/dist/plugins/dashboard/site/404.html +1 -1
  255. package/dist/plugins/dashboard/site/_next/static/chunks/app/agent/{page-ef4ffb6752c06a6c.js → page-22dfc72e39faa099.js} +1 -1
  256. package/dist/plugins/dashboard/site/_next/static/chunks/app/agents/{page-41fd13b840f1700b.js → page-7b0c562c7534861a.js} +1 -1
  257. package/dist/plugins/dashboard/site/_next/static/chunks/app/automations/{page-2f1baf2daf5b7c64.js → page-9df2c7b543034651.js} +1 -1
  258. package/dist/plugins/dashboard/site/_next/static/chunks/app/connectors/{page-b176ae106af9aea0.js → page-036fb8590b50cc57.js} +1 -1
  259. package/dist/plugins/dashboard/site/_next/static/chunks/app/layout-08ad304396408ed8.js +1 -0
  260. package/dist/plugins/dashboard/site/_next/static/chunks/app/{page-91206a2a478288f5.js → page-8c0afc21c643ff8b.js} +1 -1
  261. package/dist/plugins/dashboard/site/_next/static/chunks/app/processes/{page-47342f6373baf797.js → page-98da30b493398bf7.js} +1 -1
  262. package/dist/plugins/dashboard/site/_next/static/chunks/app/providers/{page-d4b6da83fe486a9a.js → page-f0d02a91a69b9eb8.js} +1 -1
  263. package/dist/plugins/dashboard/site/_next/static/chunks/app/signals/{page-b87fc2cf8ad0f970.js → page-44ccbe1e003b1905.js} +1 -1
  264. package/dist/plugins/dashboard/site/_next/static/chunks/app/telemetry/{page-a878e1b05e076d2c.js → page-98aa9367902606e3.js} +1 -1
  265. package/dist/plugins/dashboard/site/_next/static/chunks/app/tools/{page-def9c6041a408295.js → page-6ff89d201c006847.js} +1 -1
  266. package/dist/plugins/dashboard/site/_next/static/chunks/{main-app-aa3f83c1af66c8cc.js → main-app-e47c27dd717b70ea.js} +1 -1
  267. package/dist/plugins/dashboard/site/agent.html +1 -1
  268. package/dist/plugins/dashboard/site/agent.txt +2 -2
  269. package/dist/plugins/dashboard/site/agents.html +1 -1
  270. package/dist/plugins/dashboard/site/agents.txt +2 -2
  271. package/dist/plugins/dashboard/site/automations.html +1 -1
  272. package/dist/plugins/dashboard/site/automations.txt +2 -2
  273. package/dist/plugins/dashboard/site/connectors.html +1 -1
  274. package/dist/plugins/dashboard/site/connectors.txt +2 -2
  275. package/dist/plugins/dashboard/site/index.html +2 -2
  276. package/dist/plugins/dashboard/site/index.txt +2 -2
  277. package/dist/plugins/dashboard/site/processes.html +1 -1
  278. package/dist/plugins/dashboard/site/processes.txt +2 -2
  279. package/dist/plugins/dashboard/site/providers.html +1 -1
  280. package/dist/plugins/dashboard/site/providers.txt +2 -2
  281. package/dist/plugins/dashboard/site/signals.html +1 -1
  282. package/dist/plugins/dashboard/site/signals.txt +2 -2
  283. package/dist/plugins/dashboard/site/telemetry.html +2 -2
  284. package/dist/plugins/dashboard/site/telemetry.txt +2 -2
  285. package/dist/plugins/dashboard/site/tools.html +1 -1
  286. package/dist/plugins/dashboard/site/tools.txt +2 -2
  287. package/dist/plugins/database/plugin.d.ts +1 -1
  288. package/dist/plugins/database/plugin.d.ts.map +1 -1
  289. package/dist/plugins/database/plugin.js +31 -6
  290. package/dist/plugins/database/plugin.js.map +1 -1
  291. package/dist/plugins/exa-ai/plugin.d.ts +1 -1
  292. package/dist/plugins/exa-ai/plugin.d.ts.map +1 -1
  293. package/dist/plugins/exa-ai/plugin.js +22 -2
  294. package/dist/plugins/exa-ai/plugin.js.map +1 -1
  295. package/dist/plugins/firecrawl/plugin.d.ts +1 -1
  296. package/dist/plugins/firecrawl/plugin.d.ts.map +1 -1
  297. package/dist/plugins/firecrawl/plugin.js +22 -2
  298. package/dist/plugins/firecrawl/plugin.js.map +1 -1
  299. package/dist/plugins/gemini-search/plugin.d.ts +1 -1
  300. package/dist/plugins/gemini-search/plugin.d.ts.map +1 -1
  301. package/dist/plugins/gemini-search/plugin.js +22 -2
  302. package/dist/plugins/gemini-search/plugin.js.map +1 -1
  303. package/dist/plugins/memory/tool.d.ts.map +1 -1
  304. package/dist/plugins/memory/tool.js +58 -10
  305. package/dist/plugins/memory/tool.js.map +1 -1
  306. package/dist/plugins/monty-python/tool.d.ts.map +1 -1
  307. package/dist/plugins/monty-python/tool.js +18 -1
  308. package/dist/plugins/monty-python/tool.js.map +1 -1
  309. package/dist/plugins/openai-search/plugin.d.ts +1 -1
  310. package/dist/plugins/openai-search/plugin.d.ts.map +1 -1
  311. package/dist/plugins/openai-search/plugin.js +22 -2
  312. package/dist/plugins/openai-search/plugin.js.map +1 -1
  313. package/dist/plugins/perplexity-search/plugin.d.ts +1 -1
  314. package/dist/plugins/perplexity-search/plugin.d.ts.map +1 -1
  315. package/dist/plugins/perplexity-search/plugin.js +22 -2
  316. package/dist/plugins/perplexity-search/plugin.js.map +1 -1
  317. package/dist/plugins/shell/processTools.d.ts.map +1 -1
  318. package/dist/plugins/shell/processTools.js +74 -32
  319. package/dist/plugins/shell/processTools.js.map +1 -1
  320. package/dist/plugins/shell/tool.d.ts.map +1 -1
  321. package/dist/plugins/shell/tool.js +64 -6
  322. package/dist/plugins/shell/tool.js.map +1 -1
  323. package/dist/plugins/web-fetch/plugin.d.ts +1 -1
  324. package/dist/plugins/web-fetch/plugin.d.ts.map +1 -1
  325. package/dist/plugins/web-fetch/plugin.js +24 -2
  326. package/dist/plugins/web-fetch/plugin.js.map +1 -1
  327. package/dist/prompts/SYSTEM_FORMATTING.md +3 -0
  328. package/dist/prompts/SYSTEM_TOOLS_RLM_INLINE.md +1 -2
  329. package/dist/skills/app-creator/SKILL.md +207 -0
  330. package/dist/skills/app-creator/references/rules-patterns.md +36 -0
  331. package/dist/skills/app-creator/references/workflows.md +32 -0
  332. package/dist/skills/scheduling/SKILL.md +2 -2
  333. package/dist/skills/skill-creator/SKILL.md +17 -3
  334. package/dist/types.d.ts +1 -1
  335. package/dist/types.d.ts.map +1 -1
  336. package/package.json +1 -1
  337. package/dist/engine/agents/ops/agentDescriptorBuild.d.ts +0 -7
  338. package/dist/engine/agents/ops/agentDescriptorBuild.d.ts.map +0 -1
  339. package/dist/engine/agents/ops/agentDescriptorBuild.js +0 -16
  340. package/dist/engine/agents/ops/agentDescriptorBuild.js.map +0 -1
  341. package/dist/engine/agents/ops/agentHistoryContextBuild.d.ts +0 -8
  342. package/dist/engine/agents/ops/agentHistoryContextBuild.d.ts.map +0 -1
  343. package/dist/engine/agents/ops/agentHistoryContextBuild.js +0 -86
  344. package/dist/engine/agents/ops/agentHistoryContextBuild.js.map +0 -1
  345. package/dist/engine/agents/ops/agentHistoryContextBuild.spec.d.ts +0 -2
  346. package/dist/engine/agents/ops/agentHistoryContextBuild.spec.d.ts.map +0 -1
  347. package/dist/engine/agents/ops/agentHistoryContextBuild.spec.js +0 -80
  348. package/dist/engine/agents/ops/agentHistoryContextBuild.spec.js.map +0 -1
  349. package/dist/engine/agents/ops/agentHistoryPendingToolResultsBuild.d.ts +0 -8
  350. package/dist/engine/agents/ops/agentHistoryPendingToolResultsBuild.d.ts.map +0 -1
  351. package/dist/engine/agents/ops/agentHistoryPendingToolResultsBuild.js +0 -60
  352. package/dist/engine/agents/ops/agentHistoryPendingToolResultsBuild.js.map +0 -1
  353. package/dist/engine/agents/ops/agentHistoryPendingToolResultsBuild.spec.d.ts +0 -2
  354. package/dist/engine/agents/ops/agentHistoryPendingToolResultsBuild.spec.d.ts.map +0 -1
  355. package/dist/engine/agents/ops/agentHistoryPendingToolResultsBuild.spec.js +0 -85
  356. package/dist/engine/agents/ops/agentHistoryPendingToolResultsBuild.spec.js.map +0 -1
  357. package/dist/engine/agents/ops/agentHistorySummaryBuild.d.ts +0 -20
  358. package/dist/engine/agents/ops/agentHistorySummaryBuild.d.ts.map +0 -1
  359. package/dist/engine/agents/ops/agentHistorySummaryBuild.js +0 -61
  360. package/dist/engine/agents/ops/agentHistorySummaryBuild.js.map +0 -1
  361. package/dist/engine/agents/ops/agentHistorySummaryBuild.spec.d.ts +0 -2
  362. package/dist/engine/agents/ops/agentHistorySummaryBuild.spec.d.ts.map +0 -1
  363. package/dist/engine/agents/ops/agentHistorySummaryBuild.spec.js +0 -76
  364. package/dist/engine/agents/ops/agentHistorySummaryBuild.spec.js.map +0 -1
  365. package/dist/engine/agents/ops/agentPathBuild.d.ts +0 -7
  366. package/dist/engine/agents/ops/agentPathBuild.d.ts.map +0 -1
  367. package/dist/engine/agents/ops/agentPathBuild.js +0 -9
  368. package/dist/engine/agents/ops/agentPathBuild.js.map +0 -1
  369. package/dist/engine/agents/ops/agentPathForDescriptor.d.ts +0 -7
  370. package/dist/engine/agents/ops/agentPathForDescriptor.d.ts.map +0 -1
  371. package/dist/engine/agents/ops/agentPathForDescriptor.js +0 -17
  372. package/dist/engine/agents/ops/agentPathForDescriptor.js.map +0 -1
  373. package/dist/engine/agents/ops/agentPermanentPromptBuild.d.ts +0 -7
  374. package/dist/engine/agents/ops/agentPermanentPromptBuild.d.ts.map +0 -1
  375. package/dist/engine/agents/ops/agentPermanentPromptBuild.js +0 -42
  376. package/dist/engine/agents/ops/agentPermanentPromptBuild.js.map +0 -1
  377. package/dist/engine/agents/ops/agentPermanentPromptBuild.spec.d.ts +0 -2
  378. package/dist/engine/agents/ops/agentPermanentPromptBuild.spec.d.ts.map +0 -1
  379. package/dist/engine/agents/ops/agentPermanentPromptBuild.spec.js +0 -47
  380. package/dist/engine/agents/ops/agentPermanentPromptBuild.spec.js.map +0 -1
  381. package/dist/engine/agents/ops/contextCompactionStatusBuild.d.ts +0 -20
  382. package/dist/engine/agents/ops/contextCompactionStatusBuild.d.ts.map +0 -1
  383. package/dist/engine/agents/ops/contextCompactionStatusBuild.js +0 -31
  384. package/dist/engine/agents/ops/contextCompactionStatusBuild.js.map +0 -1
  385. package/dist/engine/agents/ops/contextCompactionStatusBuild.spec.d.ts +0 -2
  386. package/dist/engine/agents/ops/contextCompactionStatusBuild.spec.d.ts.map +0 -1
  387. package/dist/engine/agents/ops/contextCompactionStatusBuild.spec.js +0 -37
  388. package/dist/engine/agents/ops/contextCompactionStatusBuild.spec.js.map +0 -1
  389. package/dist/engine/modules/rlm/rlmParameterEntriesBuild.d.ts +0 -13
  390. package/dist/engine/modules/rlm/rlmParameterEntriesBuild.d.ts.map +0 -1
  391. package/dist/engine/modules/rlm/rlmParameterEntriesBuild.js.map +0 -1
  392. package/dist/engine/modules/rlm/rlmPreambleBuild.d.ts.map +0 -1
  393. package/dist/engine/modules/rlm/rlmPreambleBuild.js +0 -122
  394. package/dist/engine/modules/rlm/rlmPreambleBuild.js.map +0 -1
  395. package/dist/engine/modules/rlm/rlmPreambleBuild.spec.d.ts +0 -2
  396. package/dist/engine/modules/rlm/rlmPreambleBuild.spec.d.ts.map +0 -1
  397. package/dist/engine/modules/rlm/rlmPreambleBuild.spec.js +0 -62
  398. package/dist/engine/modules/rlm/rlmPreambleBuild.spec.js.map +0 -1
  399. package/dist/engine/modules/tools/agentListToolBuild.d.ts +0 -7
  400. package/dist/engine/modules/tools/agentListToolBuild.d.ts.map +0 -1
  401. package/dist/engine/modules/tools/agentListToolBuild.js +0 -70
  402. package/dist/engine/modules/tools/agentListToolBuild.js.map +0 -1
  403. package/dist/engine/modules/tools/agentListToolBuild.spec.d.ts +0 -2
  404. package/dist/engine/modules/tools/agentListToolBuild.spec.d.ts.map +0 -1
  405. package/dist/engine/modules/tools/agentListToolBuild.spec.js +0 -94
  406. package/dist/engine/modules/tools/agentListToolBuild.spec.js.map +0 -1
  407. package/dist/plugins/dashboard/site/_next/static/chunks/app/layout-6a16ba4021006dee.js +0 -1
  408. package/dist/prompts/AGENTIC.md +0 -46
  409. /package/dist/plugins/dashboard/site/_next/static/{zFu-5LeJ-MEiVPh1DIcDe → jO4Z9GfuRRZ-KeKEyO3ST}/_buildManifest.js +0 -0
  410. /package/dist/plugins/dashboard/site/_next/static/{zFu-5LeJ-MEiVPh1DIcDe → jO4Z9GfuRRZ-KeKEyO3ST}/_ssgManifest.js +0 -0
@@ -0,0 +1,207 @@
1
+ ---
2
+ name: app-creator
3
+ description: Guide for creating effective apps. Use when users want to create a new app or update an existing app with APP.md, PERMISSIONS.md, allow and deny rules, and sandboxed execution.
4
+ license: Complete terms in LICENSE.txt
5
+ ---
6
+
7
+ # App Creator
8
+
9
+ This skill provides guidance for creating effective Daycare apps.
10
+
11
+ ## About Apps
12
+
13
+ Apps are sandboxed tool wrappers discovered from
14
+ `workspace/apps/<app-id>/APP.md` and `workspace/apps/<app-id>/PERMISSIONS.md`.
15
+ Each app is exposed as a callable tool named `app_<name>`.
16
+
17
+ On invocation, an app runs as a constrained app agent and each tool call is reviewed
18
+ against the app's allow/deny rules before execution.
19
+
20
+ ### What Apps Provide
21
+
22
+ 1. Isolated capabilities with explicit boundaries
23
+ 2. Rule-reviewed tool execution on every app tool call
24
+ 3. Persistent app state in `data/`
25
+ 4. Reusable app behavior via clear metadata and strict rules
26
+
27
+ ## Core Principles
28
+
29
+ ### Start Narrow
30
+
31
+ Default to restrictive rules and small scope. Add capabilities only when they are
32
+ required by real usage.
33
+
34
+ ### Keep Rules Concrete
35
+
36
+ Write allow/deny rules in specific, testable language. Prefer concrete constraints
37
+ (paths, hosts, command families) over vague policy statements.
38
+
39
+ ### Preserve Isolation
40
+
41
+ Design around Daycare app boundaries:
42
+
43
+ - App writes only to `workspace/apps/<app-id>/data/`
44
+ - App manifest and bundled files are read-only to the app
45
+ - Non-app agents should not read/write app directories
46
+
47
+ ## Anatomy of an App
48
+
49
+ Every app consists of required `APP.md` and `PERMISSIONS.md` files plus optional bundled resources:
50
+
51
+ ```text
52
+ app-id/
53
+ ├── APP.md (required)
54
+ │ ├── YAML frontmatter (required)
55
+ │ │ ├── name: (required, username-style; this is the app id)
56
+ │ │ ├── title: (required, human-readable)
57
+ │ │ ├── description: (required)
58
+ │ │ └── model: (optional)
59
+ │ └── Markdown body (required)
60
+ │ └── Full body is system prompt
61
+ ├── PERMISSIONS.md (required)
62
+ │ └── Markdown body (required)
63
+ │ ├── ## Source Intent
64
+ │ └── ## Rules
65
+ │ ├── ### Allow
66
+ │ └── ### Deny
67
+ ├── data/ (required runtime writable state)
68
+ └── scripts/ (optional read-only helpers)
69
+ ```
70
+
71
+ ### APP.md (required)
72
+
73
+ Every `APP.md` consists of:
74
+
75
+ - **Frontmatter** (YAML): `name`, `title`, `description`, optional `model`.
76
+ - **Body** (Markdown): full body is the system prompt.
77
+
78
+ When parsing or writing `APP.md`:
79
+
80
+ - Never parse frontmatter manually
81
+ - Never write frontmatter manually
82
+ - Always use `gray-matter` for parse and stringify flows
83
+
84
+ ### Example APP.md
85
+
86
+ ```markdown
87
+ ---
88
+ name: github-reviewer
89
+ title: GitHub Reviewer
90
+ description: Reviews pull requests and drafts feedback
91
+ model: default
92
+ ---
93
+
94
+ You review pull requests and provide concrete, actionable feedback.
95
+ ```
96
+
97
+ ### Example PERMISSIONS.md
98
+
99
+ ```markdown
100
+ ## Source Intent
101
+
102
+ Review pull requests and draft actionable feedback while preserving repository safety.
103
+
104
+ ## Rules
105
+
106
+ ### Allow
107
+ - Read files in the workspace
108
+ - Run read-only git commands
109
+
110
+ ### Deny
111
+ - Write outside data/
112
+ - Delete files
113
+ - Rewrite git history
114
+ ```
115
+
116
+ ## App Creation Process
117
+
118
+ App creation involves these steps:
119
+
120
+ 1. Understand concrete app use cases
121
+ 2. Plan boundaries and reusable app resources
122
+ 3. Initialize the app in workspace
123
+ 4. Edit `APP.md`, `PERMISSIONS.md`, and app resources
124
+ 5. Validate behavior and safety
125
+ 6. Iterate based on real usage
126
+
127
+ Follow these steps in order, skipping only if there is a clear reason.
128
+
129
+ ### Step 1: Understand with Concrete Examples
130
+
131
+ Collect examples that should be handled by the app and examples that should be denied
132
+ or handled elsewhere.
133
+
134
+ Capture:
135
+
136
+ - expected input/output shape
137
+ - required tool classes (`read`, `write`, `edit`, `exec`)
138
+ - safety boundaries and failure modes
139
+
140
+ ### Step 2: Plan Boundaries and Resources
141
+
142
+ Before creating files, define:
143
+
144
+ - app id and scope
145
+ - success criteria
146
+ - rule matrix (allow/deny/conditional)
147
+ - persistent state model for `data/`
148
+
149
+ Consult references:
150
+
151
+ - **Workflow design**: `references/workflows.md`
152
+ - **Rule design and anti-patterns**: `references/rules-patterns.md`
153
+
154
+ ### Step 3: Initialize App in Workspace
155
+
156
+ Create the app structure:
157
+
158
+ ```bash
159
+ mkdir -p workspace/apps/<app-id>/data
160
+ mkdir -p workspace/apps/<app-id>/scripts
161
+ ```
162
+
163
+ Then create `APP.md` and `PERMISSIONS.md` with required sections.
164
+
165
+ ### Step 4: Edit APP.md, PERMISSIONS.md, and Resources
166
+
167
+ Write clear metadata in `APP.md` and clear source intent + allow/deny rules in `PERMISSIONS.md`.
168
+
169
+ If scripts are needed, keep them minimal and app-specific.
170
+
171
+ ### Step 5: Validate Behavior and Safety
172
+
173
+ Validation checklist:
174
+
175
+ - Frontmatter has valid `name`, `title`, `description` (optional `model`)
176
+ - APP.md body is non-empty and contains the system prompt
177
+ - Tool name maps cleanly to `app_<name>`
178
+ - Writes are limited to `data/`
179
+ - Allow rules cover intended workflows
180
+ - Deny rules block destructive actions
181
+ - Error messages are actionable when calls are denied
182
+
183
+ Run tests and typecheck after changes.
184
+
185
+ ### Step 6: Iterate
186
+
187
+ After real usage:
188
+
189
+ 1. Capture failures and unnecessary denials
190
+ 2. Tighten prompt and rules
191
+ 3. Re-test representative workflows
192
+ 4. Keep changes small and reversible
193
+
194
+ ## Practical Guidance
195
+
196
+ ### Keep Apps Single-Purpose
197
+
198
+ If one app starts owning unrelated workflows, split it into multiple apps.
199
+
200
+ ### Prefer Stable Rules
201
+
202
+ Write rules that remain understandable months later and are tied to observable behavior.
203
+
204
+ ### Keep Runtime Rule Changes Aligned
205
+
206
+ If rules are modified at runtime via app rule tools, keep `PERMISSIONS.md` and runtime
207
+ behavior consistent.
@@ -0,0 +1,36 @@
1
+ # App Rules Patterns
2
+
3
+ Use this reference when writing `## Rules` sections in `PERMISSIONS.md`.
4
+
5
+ ## Rule writing checklist
6
+
7
+ - Keep one constraint per rule line.
8
+ - Use concrete nouns and verbs.
9
+ - Prefer explicit path and host constraints.
10
+ - State prohibited destructive operations directly.
11
+ - Avoid broad, ambiguous phrases.
12
+
13
+ ## Good allow examples
14
+
15
+ - Allow reading files under workspace root.
16
+ - Allow running `git status`, `git diff`, and `git show`.
17
+ - Allow writing only under `workspace/apps/<app-id>/data/`.
18
+
19
+ ## Good deny examples
20
+
21
+ - Deny deleting files.
22
+ - Deny changing git history (`git reset`, `git rebase`, forced pushes).
23
+ - Deny writes outside `data/`.
24
+ - Deny network access except approved hosts.
25
+
26
+ ## Anti-patterns
27
+
28
+ - "Be safe."
29
+ - "Only do reasonable things."
30
+ - "Avoid dangerous commands when possible."
31
+
32
+ These are hard to evaluate consistently and should be replaced with explicit constraints.
33
+
34
+ ## Reviewability heuristic
35
+
36
+ A rule is strong when a reviewer can answer "allowed or denied?" without guessing.
@@ -0,0 +1,32 @@
1
+ # App Workflows
2
+
3
+ Use this reference when designing end-to-end app workflows from user prompt to final result.
4
+
5
+ ## Minimal workflow pattern
6
+
7
+ 1. Define the task in one sentence.
8
+ 2. Identify required tools and data reads.
9
+ 3. Apply allow/deny constraints before execution.
10
+ 4. Execute tool calls through review middleware.
11
+ 5. Return concise final output with rationale.
12
+
13
+ ## Decision checkpoints
14
+
15
+ - **Before first call**: Is the requested action in app scope?
16
+ - **Before each tool call**: Does allow/deny policy permit it?
17
+ - **After denial**: Can the app adapt with a safer alternative?
18
+ - **Before response**: Is output complete and actionable?
19
+
20
+ ## Escalation pattern
21
+
22
+ If the app cannot complete safely:
23
+
24
+ 1. Explain what was blocked.
25
+ 2. Explain why it was blocked.
26
+ 3. Offer a safe alternative path.
27
+
28
+ ## Stable workflow guidance
29
+
30
+ - Prefer deterministic steps over open-ended exploration.
31
+ - Keep tool-call count low for predictable latency.
32
+ - Avoid mixing unrelated responsibilities in one app flow.
@@ -31,7 +31,7 @@ Use heartbeats when:
31
31
  - Prompts evolve over time and need periodic review
32
32
  - Lightweight status checks or reminders
33
33
 
34
- **Heartbeat tools:** `heartbeat_add`, `heartbeat_list`, `heartbeat_run`, `heartbeat_remove`
34
+ **Heartbeat tools:** `heartbeat_add`, `heartbeat_run`, `heartbeat_remove` (use `topology` to inspect tasks)
35
35
 
36
36
  ## Optional Exec Gate
37
37
 
@@ -114,7 +114,7 @@ If the API is down, notify me with a short summary.
114
114
  3. Each task gets isolated agent, memory file, and workspace
115
115
 
116
116
  **For heartbeats:**
117
- 1. Run `heartbeat_list` to see existing tasks
117
+ 1. Run `topology` to see existing heartbeat tasks and ownership
118
118
  2. Use `heartbeat_add` with title and prompt (optional `gate`)
119
119
  3. Use `heartbeat_run` to trigger immediately
120
120
  4. Use `heartbeat_remove` for cleanup
@@ -65,9 +65,21 @@ skill-name/
65
65
 
66
66
  Every SKILL.md consists of:
67
67
 
68
- - **Frontmatter** (YAML): Contains `name` and `description` fields. These are the only fields that Daycare reads to determine when the skill gets used, thus it is very important to be clear and comprehensive in describing what the skill is, and when it should be used.
68
+ - **Frontmatter** (YAML): Contains required `name` and `description` fields, plus optional execution fields like `sandbox` and `permissions`.
69
69
  - **Body** (Markdown): Instructions and guidance for using the skill. Only loaded AFTER the skill triggers (if at all).
70
70
 
71
+ Frontmatter fields used by Daycare:
72
+ - `name` (required): skill selector shown in prompt metadata.
73
+ - `description` (required): when/why to use the skill.
74
+ - `sandbox` (optional boolean): when `true`, runs the skill in a forked subagent.
75
+ - `permissions` (optional string array): permission tags (for example `@read:/workspace`, `@write:/workspace`, `@network`) granted to sandbox subagent; must be a subset of caller permissions.
76
+
77
+ Sandbox policy:
78
+ - Use a **strong default bias** toward `sandbox: true`.
79
+ - Choose `sandbox: true` when the skill can run autonomously from one prompt, may be long-running, may produce lots of intermediate output, may need isolated permissions, or should avoid polluting the caller context.
80
+ - Choose non-sandbox (omit `sandbox`) only when the skill is intentionally conversational and requires tight in-context collaboration with frequent back-and-forth decisions.
81
+ - When using `sandbox: true`, declare the minimal required `permissions` explicitly (principle of least privilege).
82
+
71
83
  #### Bundled Resources (optional)
72
84
 
73
85
  ##### Scripts (`scripts/`)
@@ -322,15 +334,17 @@ Any example files and directories not needed for the skill should be deleted.
322
334
 
323
335
  ##### Frontmatter
324
336
 
325
- Write the YAML frontmatter with `name` and `description`:
337
+ Write YAML frontmatter with required and execution fields:
326
338
 
327
339
  - `name`: The skill name
328
340
  - `description`: This is the primary triggering mechanism for your skill, and helps Daycare understand when to use the skill.
329
341
  - Include both what the Skill does and specific triggers/contexts for when to use it.
330
342
  - Include all "when to use" information here - Not in the body. The body is only loaded after triggering, so "When to Use This Skill" sections in the body are not helpful to Daycare.
331
343
  - Example description for a `docx` skill: "Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. Use when Daycare needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks"
344
+ - `sandbox` (recommended): default to `true` unless the skill must be collaborative in-context.
345
+ - `permissions` (required for sandboxed skills that need extra access): minimal list of permission tags.
332
346
 
333
- Do not include any other fields in YAML frontmatter.
347
+ Do not include unrelated custom fields in YAML frontmatter.
334
348
 
335
349
  ##### Body
336
350
 
package/dist/types.d.ts CHANGED
@@ -8,7 +8,7 @@ export type { AgentMessage, AgentState, AgentTokenEntry, AgentTokenSize, AgentTo
8
8
  export type { AgentDescriptor, AgentFetchStrategy } from "./engine/agents/ops/agentDescriptorTypes.js";
9
9
  export type { InferenceClient, InferenceProvider, InferenceProviderOptions } from "./engine/modules/inference/types.js";
10
10
  export type { ImageGenerationProvider } from "./engine/modules/images/types.js";
11
- export type { ToolDefinition, ToolExecutionContext, ToolExecutionResult } from "./engine/modules/tools/types.js";
11
+ export type { ToolDefinition, ToolResultContract, ToolExecutionContext, ToolExecutionResult, ToolResultPrimitive, ToolResultRow, ToolResultShallowObject, ToolResultOutcomeObject } from "./engine/modules/tools/types.js";
12
12
  export type { AgentSkill } from "./engine/skills/skillTypes.js";
13
13
  export type { Config } from "./config/configTypes.js";
14
14
  export type { Signal, DelayedSignal, DelayedSignalCancelRepeatKeyInput, DelayedSignalScheduleInput, SignalGenerateInput, SignalSource, SignalSubscription, SignalSubscribeInput, SignalUnsubscribeInput } from "./engine/signals/signalTypes.js";
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../sources/types.ts"],"names":[],"mappings":"AAIA,YAAY,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAGlE,YAAY,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,YAAY,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAGjF,YAAY,EACV,SAAS,EACT,qBAAqB,EACrB,aAAa,EACb,wBAAwB,EACxB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,uBAAuB,EACvB,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,sCAAsC,CAAC;AAG9C,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,YAAY,EACV,SAAS,EACT,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,2BAA2B,CAAC;AAGnC,YAAY,EACV,YAAY,EACZ,UAAU,EACV,eAAe,EACf,cAAc,EACd,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB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,iCAAiC,EACjC,0BAA0B,EAC1B,mBAAmB,EACnB,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,iCAAiC,CAAC;AAGzC,YAAY,EACV,OAAO,EACP,aAAa,EACb,cAAc,EACd,iBAAiB,EAClB,MAAM,mCAAmC,CAAC;AAG3C,YAAY,EACV,aAAa,EACb,WAAW,EACX,cAAc,EACd,iBAAiB,EACjB,OAAO,EACP,UAAU,EACX,MAAM,2BAA2B,CAAC;AAGnC,YAAY,EACV,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,UAAU,EACV,6BAA6B,EAC7B,YAAY,EACZ,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,gCAAgC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "daycare-cli",
3
- "version": "0.1.1",
3
+ "version": "2026.2.1",
4
4
  "description": "Local-first, plugin-driven multi-agent runtime",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1,7 +0,0 @@
1
- import type { AgentDescriptor } from "./agentDescriptorTypes.js";
2
- /**
3
- * Builds an AgentDescriptor from message source and context.
4
- * Expects: source === "system" for synthetic agents.
5
- */
6
- export declare function agentDescriptorBuild(source: string, _context: unknown, agentId: string): AgentDescriptor;
7
- //# sourceMappingURL=agentDescriptorBuild.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agentDescriptorBuild.d.ts","sourceRoot":"","sources":["../../../../sources/engine/agents/ops/agentDescriptorBuild.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,MAAM,GACd,eAAe,CAUjB"}
@@ -1,16 +0,0 @@
1
- /**
2
- * Builds an AgentDescriptor from message source and context.
3
- * Expects: source === "system" for synthetic agents.
4
- */
5
- export function agentDescriptorBuild(source, _context, agentId) {
6
- if (source === "system") {
7
- return {
8
- type: "subagent",
9
- id: agentId,
10
- parentAgentId: "system",
11
- name: "system"
12
- };
13
- }
14
- throw new Error("Agent descriptor requires explicit descriptor data for non-system sources");
15
- }
16
- //# sourceMappingURL=agentDescriptorBuild.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agentDescriptorBuild.js","sourceRoot":"","sources":["../../../../sources/engine/agents/ops/agentDescriptorBuild.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAClC,MAAc,EACd,QAAiB,EACjB,OAAe;IAEf,IAAI,MAAM,KAAK,QAAQ,EAAE,CAAC;QACxB,OAAO;YACL,IAAI,EAAE,UAAU;YAChB,EAAE,EAAE,OAAO;YACX,aAAa,EAAE,QAAQ;YACvB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,2EAA2E,CAAC,CAAC;AAC/F,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { Context } from "@mariozechner/pi-ai";
2
- import type { AgentHistoryRecord } from "@/types";
3
- /**
4
- * Rebuilds conversation context messages from persisted history records.
5
- * Expects: records are in chronological order and belong to one agent.
6
- */
7
- export declare function agentHistoryContextBuild(records: AgentHistoryRecord[], agentId: string): Promise<Context["messages"]>;
8
- //# sourceMappingURL=agentHistoryContextBuild.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agentHistoryContextBuild.d.ts","sourceRoot":"","sources":["../../../../sources/engine/agents/ops/agentHistoryContextBuild.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAY,MAAM,qBAAqB,CAAC;AAG7D,OAAO,KAAK,EAAE,kBAAkB,EAAgC,MAAM,SAAS,CAAC;AAKhF;;;GAGG;AACH,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,kBAAkB,EAAE,EAC7B,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAyE9B"}
@@ -1,86 +0,0 @@
1
- import { createId } from "@paralleldrive/cuid2";
2
- import { messageBuildUser } from "../../messages/messageBuildUser.js";
3
- import { messageBuildSystemText } from "../../messages/messageBuildSystemText.js";
4
- import { messageFormatIncoming } from "../../messages/messageFormatIncoming.js";
5
- /**
6
- * Rebuilds conversation context messages from persisted history records.
7
- * Expects: records are in chronological order and belong to one agent.
8
- */
9
- export async function agentHistoryContextBuild(records, agentId) {
10
- const messages = [];
11
- for (const record of records) {
12
- if (record.type === "rlm_start") {
13
- continue;
14
- }
15
- if (record.type === "rlm_tool_call") {
16
- continue;
17
- }
18
- if (record.type === "rlm_tool_result") {
19
- continue;
20
- }
21
- if (record.type === "rlm_complete") {
22
- continue;
23
- }
24
- if (record.type === "reset" && record.message && record.message.trim().length > 0) {
25
- messages.push(resetSystemMessageBuild(record.message, record.at, agentId));
26
- }
27
- if (record.type === "user_message") {
28
- const context = {};
29
- const message = messageFormatIncoming({
30
- text: record.text,
31
- files: record.files.map((file) => ({ ...file }))
32
- }, context, new Date(record.at));
33
- const userEntry = {
34
- id: createId(),
35
- message,
36
- context,
37
- receivedAt: record.at
38
- };
39
- messages.push(await messageBuildUser(userEntry));
40
- }
41
- if (record.type === "assistant_message") {
42
- const content = [];
43
- if (record.text.length > 0) {
44
- content.push({ type: "text", text: record.text });
45
- }
46
- for (const toolCall of record.toolCalls) {
47
- content.push(toolCall);
48
- }
49
- messages.push({
50
- role: "assistant",
51
- content,
52
- api: "history",
53
- provider: "history",
54
- model: "history",
55
- usage: {
56
- input: 0,
57
- output: 0,
58
- cacheRead: 0,
59
- cacheWrite: 0,
60
- totalTokens: 0,
61
- cost: {
62
- input: 0,
63
- output: 0,
64
- cacheRead: 0,
65
- cacheWrite: 0,
66
- total: 0
67
- }
68
- },
69
- stopReason: "stop",
70
- timestamp: record.at
71
- });
72
- }
73
- if (record.type === "tool_result") {
74
- messages.push(record.output.toolMessage);
75
- }
76
- }
77
- return messages;
78
- }
79
- function resetSystemMessageBuild(text, at, origin) {
80
- return {
81
- role: "user",
82
- content: messageBuildSystemText(text, origin),
83
- timestamp: at
84
- };
85
- }
86
- //# sourceMappingURL=agentHistoryContextBuild.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agentHistoryContextBuild.js","sourceRoot":"","sources":["../../../../sources/engine/agents/ops/agentHistoryContextBuild.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAEhF;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,OAA6B,EAC7B,OAAe;IAEf,MAAM,QAAQ,GAAwB,EAAE,CAAC;IACzC,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,IAAI,MAAM,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;YAChC,SAAS;QACX,CAAC;QACD,IAAI,MAAM,CAAC,IAAI,KAAK,eAAe,EAAE,CAAC;YACpC,SAAS;QACX,CAAC;QACD,IAAI,MAAM,CAAC,IAAI,KAAK,iBAAiB,EAAE,CAAC;YACtC,SAAS;QACX,CAAC;QACD,IAAI,MAAM,CAAC,IAAI,KAAK,cAAc,EAAE,CAAC;YACnC,SAAS;QACX,CAAC;QACD,IAAI,MAAM,CAAC,IAAI,KAAK,OAAO,IAAI,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAClF,QAAQ,CAAC,IAAI,CAAC,uBAAuB,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;QAC7E,CAA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,UAAU,EAAE,CAAC;oBACb,WAAW,EAAE,CAAC;oBACd,IAAI,EAAE;wBACJ,KAAK,EAAE,CAAC;wBACR,MAAM,EAAE,CAAC;wBACT,SAAS,EAAE,CAAC;wBACZ,UAAU,EAAE,CAAC;wBACb,KAAK,EAAE,CAAC;qBACT;iBACF;gBACD,UAAU,EAAE,MAAM;gBAClB,SAAS,EAAE,MAAM,CAAC,EAAE;aACrB,CAAC,CAAC;QACL,CAAC;QACD,IAAI,MAAM,CAAC,IAAI,KAAK,aAAa,EAAE,CAAC;YAClC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAS,uBAAuB,CAC9B,IAAY,EACZ,EAAU,EACV,MAAc;IAEd,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,sBAAsB,CAAC,IAAI,EAAE,MAAM,CAAC;QAC7C,SAAS,EAAE,EAAE;KACd,CAAC;AACJ,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=agentHistoryContextBuild.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agentHistoryContextBuild.spec.d.ts","sourceRoot":"","sources":["../../../../sources/engine/agents/ops/agentHistoryContextBuild.spec.ts"],"names":[],"mappings":""}
@@ -1,80 +0,0 @@
1
- import { describe, expect, it } from "vitest";
2
- import { agentHistoryContextBuild } from "./agentHistoryContextBuild.js";
3
- describe("agentHistoryContextBuild", () => {
4
- it("skips RLM checkpoint records while rebuilding context messages", async () => {
5
- const toolCall = {
6
- type: "toolCall",
7
- id: "run-python-1",
8
- name: "run_python",
9
- arguments: { code: "echo('x')" }
10
- };
11
- const records = [
12
- { type: "start", at: 1 },
13
- { type: "reset", at: 2, message: "session reset" },
14
- { type: "user_message", at: 3, text: "run", files: [] },
15
- {
16
- type: "assistant_message",
17
- at: 4,
18
- text: "",
19
- files: [],
20
- toolCalls: [toolCall],
21
- tokens: null
22
- },
23
- {
24
- type: "rlm_start",
25
- at: 5,
26
- toolCallId: "run-python-1",
27
- code: "echo('x')",
28
- preamble: "..."
29
- },
30
- {
31
- type: "rlm_tool_call",
32
- at: 6,
33
- toolCallId: "run-python-1",
34
- snapshot: "AQID",
35
- printOutput: [],
36
- toolCallCount: 0,
37
- toolName: "echo",
38
- toolArgs: { text: "x" }
39
- },
40
- {
41
- type: "rlm_tool_result",
42
- at: 7,
43
- toolCallId: "run-python-1",
44
- toolName: "echo",
45
- toolResult: "x",
46
- toolIsError: false
47
- },
48
- {
49
- type: "rlm_complete",
50
- at: 8,
51
- toolCallId: "run-python-1",
52
- output: "x",
53
- printOutput: [],
54
- toolCallCount: 1,
55
- isError: false
56
- },
57
- {
58
- type: "tool_result",
59
- at: 9,
60
- toolCallId: "run-python-1",
61
- output: {
62
- toolMessage: {
63
- role: "toolResult",
64
- toolCallId: "run-python-1",
65
- toolName: "run_python",
66
- content: [{ type: "text", text: "Python execution completed." }],
67
- isError: false,
68
- timestamp: 9
69
- }
70
- }
71
- }
72
- ];
73
- const messages = await agentHistoryContextBuild(records, "agent-1");
74
- expect(messages).toHaveLength(4);
75
- expect(messages[1]?.role).toBe("user");
76
- expect(messages[2]?.role).toBe("assistant");
77
- expect(messages[3]?.role).toBe("toolResult");
78
- });
79
- });
80
- //# sourceMappingURL=agentHistoryContextBuild.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agentHistoryContextBuild.spec.js","sourceRoot":"","sources":["../../../../sources/engine/agents/ops/agentHistoryContextBuild.spec.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAG9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,EAAE,CAAC,gEAAgE,EAAE,KA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AE,cAAc;gBAC1B,MAAM,EAAE,GAAG;gBACX,WAAW,EAAE,EAAE;gBACf,aAAa,EAAE,CAAC;gBAChB,OAAO,EAAE,KAAK;aACf;YACD;gBACE,IAAI,EAAE,aAAa;gBACnB,EAAE,EAAE,CAAC;gBACL,UAAU,EAAE,cAAc;gBAC1B,MAAM,EAAE;oBACN,WAAW,EAAE;wBACX,IAAI,EAAE,YAAY;wBAClB,UAAU,EAAE,cAAc;wBAC1B,QAAQ,EAAE,YAAY;wBACtB,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,6BAA6B,EAAE,CAAC;wBAChE,OAAO,EAAE,KAAK;wBACd,SAAS,EAAE,CAAC;qBACb;iBACF;aACF;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,wBAAwB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAEpE,MAAM,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QACjC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC5C,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { AgentHistoryRecord } from "@/types";
2
- export type AgentHistoryPendingReason = "session_crashed" | "user_aborted";
3
- /**
4
- * Builds synthetic tool_result records for unfinished tool calls.
5
- * Expects: records are ordered chronologically from oldest to newest.
6
- */
7
- export declare function agentHistoryPendingToolResultsBuild(records: AgentHistoryRecord[], reason: AgentHistoryPendingReason, at: number): AgentHistoryRecord[];
8
- //# sourceMappingURL=agentHistoryPendingToolResultsBuild.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agentHistoryPendingToolResultsBuild.d.ts","sourceRoot":"","sources":["../../../../sources/engine/agents/ops/agentHistoryPendingToolResultsBuild.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAuB,MAAM,SAAS,CAAC;AAEvE,MAAM,MAAM,yBAAyB,GAAG,iBAAiB,GAAG,cAAc,CAAC;AAO3E;;;GAGG;AACH,wBAAgB,mCAAmC,CACjD,OAAO,EAAE,kBAAkB,EAAE,EAC7B,MAAM,EAAE,yBAAyB,EACjC,EAAE,EAAE,MAAM,GACT,kBAAkB,EAAE,CAatB"}