deepline 0.3.552 → 0.3.553

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 (319) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +107 -12
  2. package/dist/bundling-sources/sdk/src/compat.ts +239 -87
  3. package/dist/bundling-sources/sdk/src/config.ts +113 -2
  4. package/dist/bundling-sources/sdk/src/errors.ts +2 -0
  5. package/dist/bundling-sources/sdk/src/http-core.ts +118 -8
  6. package/dist/bundling-sources/sdk/src/index.ts +2 -0
  7. package/dist/bundling-sources/sdk/src/integrations.ts +6 -4
  8. package/dist/bundling-sources/sdk/src/play.ts +3 -0
  9. package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -1
  10. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  11. package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +8 -1
  12. package/dist/bundling-sources/sdk/src/tool-calls.ts +2 -1
  13. package/dist/bundling-sources/sdk/src/tool-failure-hint.ts +104 -0
  14. package/dist/bundling-sources/sdk/src/types.ts +9 -1
  15. package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +4 -2
  16. package/dist/bundling-sources/shared_libs/integration-contracts/billing-plan-skus.ts +25 -0
  17. package/dist/bundling-sources/shared_libs/monitors/action-actor.ts +2 -0
  18. package/dist/bundling-sources/shared_libs/monitors/billing/credit-recovery.ts +58 -4
  19. package/dist/bundling-sources/shared_libs/monitors/billing/policy-builders.ts +8 -0
  20. package/dist/bundling-sources/shared_libs/monitors/billing/pricing.ts +11 -0
  21. package/dist/bundling-sources/shared_libs/monitors/billing/types.ts +13 -0
  22. package/dist/bundling-sources/shared_libs/monitors/deactivation-reasons.ts +103 -5
  23. package/dist/bundling-sources/shared_libs/monitors/fleets/converge-admission.ts +133 -0
  24. package/dist/bundling-sources/shared_libs/monitors/fleets/fence-attention.ts +165 -0
  25. package/dist/bundling-sources/shared_libs/monitors/fleets/fence-release.ts +726 -0
  26. package/dist/bundling-sources/shared_libs/monitors/fleets/fence-walk.ts +274 -0
  27. package/dist/bundling-sources/shared_libs/monitors/fleets/issues.ts +1 -0
  28. package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +28 -0
  29. package/dist/bundling-sources/shared_libs/monitors/fleets/provider-bulk-wait.ts +126 -0
  30. package/dist/bundling-sources/shared_libs/monitors/fleets/shared-payload.ts +189 -0
  31. package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +28 -0
  32. package/dist/bundling-sources/shared_libs/monitors/inbound-publish-key.ts +4 -0
  33. package/dist/bundling-sources/shared_libs/monitors/inventory-counter-errors.ts +25 -0
  34. package/dist/bundling-sources/shared_libs/monitors/org-monitor-limits.ts +65 -0
  35. package/dist/bundling-sources/shared_libs/monitors/package.json +9 -0
  36. package/dist/bundling-sources/shared_libs/monitors/provider-callback-verification.ts +152 -1
  37. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +6 -0
  38. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +390 -10
  39. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-errors.ts +34 -0
  40. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-identity-claims.ts +66 -30
  41. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-state.ts +30 -0
  42. package/dist/bundling-sources/shared_libs/monitors/provider-resource-failure.ts +26 -3
  43. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +41 -13
  44. package/dist/bundling-sources/shared_libs/monitors/signal-radars/raw-receipt-causes.ts +219 -0
  45. package/dist/bundling-sources/shared_libs/monitors/snitcher-ip2company.ts +21 -10
  46. package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +13 -0
  47. package/dist/bundling-sources/shared_libs/monitors/tracking-provider-guidance.ts +6 -0
  48. package/dist/bundling-sources/shared_libs/monitors/tracking-provider-integrations.ts +13 -0
  49. package/dist/bundling-sources/shared_libs/observability/dlq.ts +1 -1
  50. package/dist/bundling-sources/shared_libs/observability/log-metadata.ts +5 -3
  51. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +10 -1
  52. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  53. package/dist/bundling-sources/shared_libs/observability/redaction.ts +24 -1
  54. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +168 -41
  55. package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +1 -2
  56. package/dist/bundling-sources/shared_libs/play-data-plane/preview-r2-oidc.ts +188 -0
  57. package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +170 -16
  58. package/dist/bundling-sources/shared_libs/play-data-plane/runtime-sheet-storage-contract.ts +5 -0
  59. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +68 -2
  60. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +444 -39
  61. package/dist/bundling-sources/shared_libs/play-runtime/ctx-fetch-caller-deadline.ts +200 -0
  62. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +6 -0
  63. package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-topology.ts +21 -1
  64. package/dist/bundling-sources/shared_libs/play-runtime/durable-call-cache.ts +3 -2
  65. package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +70 -2
  66. package/dist/bundling-sources/shared_libs/play-runtime/durable-tool-identity.ts +3 -3
  67. package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +16 -0
  68. package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +72 -0
  69. package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +1 -0
  70. package/dist/bundling-sources/shared_libs/play-runtime/governor/policy.ts +7 -1
  71. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +62 -0
  72. package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +74 -3
  73. package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +31 -3
  74. package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +6 -0
  75. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +8 -0
  76. package/dist/bundling-sources/shared_libs/play-runtime/query-result-dataset.ts +19 -0
  77. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +39 -2
  78. package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +9 -1
  79. package/dist/bundling-sources/shared_libs/play-runtime/run-identity.ts +33 -0
  80. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-projection-contract.ts +24 -0
  81. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +254 -44
  82. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +87 -6
  83. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +241 -10
  84. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox-egress.ts +161 -14
  85. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +16 -3
  86. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-compression.ts +37 -0
  87. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-paths.ts +9 -0
  88. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +259 -52
  89. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +13 -0
  90. package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +30 -0
  91. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +62 -1
  92. package/dist/bundling-sources/shared_libs/play-runtime/runtime-scheduler-topology.ts +36 -0
  93. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-row-transition.ts +36 -0
  94. package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +206 -2
  95. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +42 -0
  96. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +185 -64
  97. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-slot-ledger.ts +157 -0
  98. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +110 -2
  99. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-listener-hint.ts +323 -0
  100. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/executor-attempt-standing.ts +72 -0
  101. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/integration-operation-value-storage.ts +23 -4
  102. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-workspace-purge.ts +199 -0
  103. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +632 -66
  104. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +517 -16
  105. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-api-origin.ts +1 -1
  106. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-receipt-value-storage.ts +9 -0
  107. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +599 -2
  108. package/dist/bundling-sources/shared_libs/play-runtime/secret-resolution-retry-policy.ts +26 -1
  109. package/dist/bundling-sources/shared_libs/play-runtime/startup-read-tool-ids.ts +60 -0
  110. package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +51 -0
  111. package/dist/bundling-sources/shared_libs/play-runtime/tool-call-retry-facts.ts +2 -0
  112. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +113 -3
  113. package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +5 -7
  114. package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +2 -0
  115. package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +3 -0
  116. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +40 -5
  117. package/dist/bundling-sources/shared_libs/plays/deploy/api-client.ts +3 -0
  118. package/dist/bundling-sources/shared_libs/plays/deploy/control-plane-types.ts +16 -0
  119. package/dist/bundling-sources/shared_libs/plays/deploy/run-deployment.ts +10 -41
  120. package/dist/bundling-sources/shared_libs/plays/extension-bridge.ts +33 -0
  121. package/dist/bundling-sources/shared_libs/plays/row-identity.ts +18 -1
  122. package/dist/bundling-sources/shared_libs/plays/tool-execution-error.ts +108 -0
  123. package/dist/bundling-sources/shared_libs/plays/trigger-config-contract.ts +14 -0
  124. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +171 -0
  125. package/dist/bundling-sources/shared_libs/product-notifications/events.ts +27 -1
  126. package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +9 -24
  127. package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +178 -5
  128. package/dist/bundling-sources/shared_libs/security/signup-email-dns-screen.ts +148 -0
  129. package/dist/bundling-sources/shared_libs/tool-execution-error.ts +108 -0
  130. package/dist/cli/{auth-KVSBJZOX.mjs → auth-I3QAU4RV.mjs} +8 -7
  131. package/dist/cli/auth-MQCN7WGZ.js +44 -0
  132. package/dist/cli/{billing-54RHFEBI.mjs → billing-3IC54OQQ.mjs} +197 -61
  133. package/dist/cli/{billing-FQREA7UA.js → billing-YGFFVAIC.js} +297 -161
  134. package/dist/cli/{chunk-4MK42735.js → chunk-2B5B5KAW.js} +210 -128
  135. package/dist/cli/{chunk-UBKA33KY.mjs → chunk-2MGZAI54.mjs} +17 -0
  136. package/dist/cli/{chunk-4NQF6KJ3.js → chunk-3NTP2OSG.js} +13 -13
  137. package/dist/cli/{chunk-HYC4MKGK.mjs → chunk-45OAVGU6.mjs} +5 -5
  138. package/dist/cli/{chunk-WLN3SUIA.js → chunk-4747TPLV.js} +3 -3
  139. package/dist/cli/{chunk-AZQ264ID.mjs → chunk-4BFTDNHU.mjs} +1 -1
  140. package/dist/cli/{chunk-BGBJV26E.mjs → chunk-4HYNMXXF.mjs} +4 -4
  141. package/dist/cli/{chunk-DJ2JDK4O.mjs → chunk-4SMCFQ23.mjs} +1 -1
  142. package/dist/cli/{chunk-QPKH23EC.mjs → chunk-55F6HNOY.mjs} +5 -5
  143. package/dist/cli/{chunk-LX35AXTN.mjs → chunk-5TYLSS4Q.mjs} +6 -6
  144. package/dist/cli/{chunk-634ZDA3F.js → chunk-6NE3RRRY.js} +1 -1
  145. package/dist/cli/{chunk-EITMD3A5.js → chunk-6VLFQZK6.js} +8 -8
  146. package/dist/cli/{chunk-EOPEYCY7.mjs → chunk-72V4PDH5.mjs} +18 -18
  147. package/dist/cli/{chunk-IHRKLXZN.js → chunk-74RES4DS.js} +5 -5
  148. package/dist/cli/{chunk-45PVGZST.js → chunk-7GEMELKI.js} +366 -320
  149. package/dist/cli/{chunk-4UUR4TCH.js → chunk-7O6J6A7P.js} +1871 -92
  150. package/dist/cli/{chunk-XVB7V4N7.js → chunk-7SERLBNR.js} +161 -53
  151. package/dist/cli/{chunk-F2LH7TGF.js → chunk-7YRJ5UC4.js} +21 -21
  152. package/dist/cli/{chunk-YJHE3O5M.mjs → chunk-A7DLBE5K.mjs} +136 -54
  153. package/dist/cli/{chunk-6PRW5UBA.mjs → chunk-AGICYWGN.mjs} +299 -69
  154. package/dist/cli/{chunk-S5S355UY.mjs → chunk-AGIQDA2T.mjs} +12 -12
  155. package/dist/cli/{chunk-RBEUVDZF.js → chunk-AGLR6QVN.js} +249 -107
  156. package/dist/cli/{chunk-NURW5XH4.mjs → chunk-ASB47RXJ.mjs} +1 -1
  157. package/dist/cli/{chunk-RQZQVFCJ.js → chunk-BVDKFS2T.js} +2 -2
  158. package/dist/cli/{chunk-PFO3ISXA.js → chunk-CACFJODG.js} +174 -129
  159. package/dist/cli/{chunk-6RZOWL2V.mjs → chunk-CAEBJOYU.mjs} +1 -1
  160. package/dist/cli/{chunk-XDVT3GOM.js → chunk-CFJFUVX2.js} +18 -1
  161. package/dist/cli/{chunk-6YCA5NKJ.js → chunk-DP2VH7CO.js} +12 -12
  162. package/dist/cli/{chunk-AWJPDPMA.mjs → chunk-DP64MD6U.mjs} +1 -1
  163. package/dist/cli/{chunk-PTVD2GVQ.mjs → chunk-DZA7RFGL.mjs} +5 -5
  164. package/dist/cli/{chunk-V436Z54K.js → chunk-E2G2DNAB.js} +3 -1
  165. package/dist/cli/{chunk-GGGAEVCX.mjs → chunk-E7WZOX2A.mjs} +22 -18
  166. package/dist/cli/{chunk-IDVVIXPJ.js → chunk-FM7LPUPA.js} +41 -41
  167. package/dist/cli/{chunk-AQWQ2BFX.mjs → chunk-GAVZ4EOD.mjs} +1 -1
  168. package/dist/cli/{chunk-GKYAYLRI.js → chunk-HEBO3XNZ.js} +27 -31
  169. package/dist/cli/{chunk-IYSTRCLX.mjs → chunk-HSJ6X2AQ.mjs} +4 -4
  170. package/dist/cli/{chunk-UPMRIVZB.js → chunk-HVI55MTK.js} +61 -10
  171. package/dist/cli/{chunk-KWSH5T7K.js → chunk-IH6GDNKW.js} +21 -21
  172. package/dist/cli/{chunk-HO3XK3R7.js → chunk-IMX7J4DU.js} +8 -8
  173. package/dist/cli/{chunk-EUPVF4SU.mjs → chunk-INEMTYMT.mjs} +8 -8
  174. package/dist/cli/{chunk-3FD5EQ62.js → chunk-IUOGII7D.js} +6 -7
  175. package/dist/cli/{chunk-U7QRMBIY.mjs → chunk-JJGWHITQ.mjs} +5 -5
  176. package/dist/cli/{chunk-SHLFOPD6.js → chunk-JLGP5XAJ.js} +5 -5
  177. package/dist/cli/{chunk-4TALT2M3.mjs → chunk-LFOERUQY.mjs} +69 -3
  178. package/dist/cli/{chunk-BBTKAASQ.js → chunk-LFQJW4S2.js} +42 -1
  179. package/dist/cli/{chunk-Z5TSLLOW.mjs → chunk-LH5PZKER.mjs} +63 -18
  180. package/dist/cli/{chunk-S46HWQKO.js → chunk-LRDHPOZW.js} +69 -69
  181. package/dist/cli/{chunk-6ZORHRKB.mjs → chunk-LRZGS6RZ.mjs} +2 -0
  182. package/dist/cli/{chunk-SL6MYJYM.js → chunk-MJTVX4QK.js} +35 -35
  183. package/dist/cli/{chunk-7IKQKKNX.js → chunk-MLABYI4M.js} +90 -24
  184. package/dist/cli/{chunk-ZIAXDBXX.mjs → chunk-NDNHYONK.mjs} +17 -21
  185. package/dist/cli/{chunk-YLTMXJFC.mjs → chunk-OTV2UUKW.mjs} +158 -16
  186. package/dist/cli/{chunk-G4O75EXF.js → chunk-Q6Z6N3A7.js} +18 -18
  187. package/dist/cli/{chunk-WE5HES3H.mjs → chunk-QG6JIWUL.mjs} +151 -43
  188. package/dist/cli/{chunk-QY3ZNU6Z.mjs → chunk-QI5S5HWB.mjs} +2 -2
  189. package/dist/cli/{chunk-CBV7AKWM.js → chunk-R6DZ6NQ2.js} +5 -5
  190. package/dist/cli/{chunk-57VZVF5D.mjs → chunk-RMNOZKRI.mjs} +3 -3
  191. package/dist/cli/{chunk-BAIST2BR.js → chunk-RTV4RF7N.js} +36 -36
  192. package/dist/cli/{chunk-JWUAX6OP.js → chunk-SBH4CKPN.js} +11 -11
  193. package/dist/cli/{chunk-FTJLJCE5.mjs → chunk-SG3LUONJ.mjs} +3 -3
  194. package/dist/cli/{chunk-2WFPHBR4.js → chunk-TFEXSHPM.js} +22 -18
  195. package/dist/cli/{chunk-QAORXEY3.mjs → chunk-TN4TY6TT.mjs} +6 -7
  196. package/dist/cli/{chunk-WEHCBH5R.mjs → chunk-UEVKMZLR.mjs} +54 -3
  197. package/dist/cli/{chunk-QILKGXYF.mjs → chunk-UVQJYV76.mjs} +2 -2
  198. package/dist/cli/{chunk-FSIVF2SI.mjs → chunk-VZGLIK5U.mjs} +1 -1
  199. package/dist/cli/{chunk-MF2GHZDO.js → chunk-WOCHZCUJ.js} +2 -2
  200. package/dist/cli/{chunk-VQALXEXO.js → chunk-XLIHTJVM.js} +348 -118
  201. package/dist/cli/{chunk-ADRC5I3R.js → chunk-Y6SP3JMI.js} +22 -22
  202. package/dist/cli/{chunk-77AAAGVB.js → chunk-YUA6HA6D.js} +2 -2
  203. package/dist/cli/{chunk-JL2OTMSG.mjs → chunk-Z3A2S3QM.mjs} +41 -0
  204. package/dist/cli/{chunk-6O5HOODW.mjs → chunk-Z6XPSHKM.mjs} +87 -41
  205. package/dist/cli/{chunk-QX7LFGJR.mjs → chunk-Z7AOIHFE.mjs} +1870 -91
  206. package/dist/cli/command-docs.js +3 -3
  207. package/dist/cli/command-docs.mjs +2 -2
  208. package/dist/cli/concurrent-runs-help-CFJH4KXV.js +22 -0
  209. package/dist/cli/{concurrent-runs-help-Q4KPAUJX.mjs → concurrent-runs-help-DNV2X5AZ.mjs} +9 -8
  210. package/dist/cli/{csv-F5VAGX4K.js → csv-SA6ELJY6.js} +16 -15
  211. package/dist/cli/{csv-2PTVDNO6.mjs → csv-ZXZGHWOM.mjs} +7 -6
  212. package/dist/cli/{db-IEDXAUF7.mjs → db-A54SP6AD.mjs} +16 -16
  213. package/dist/cli/{db-Z3OIUFMM.js → db-JHFEIQBU.js} +43 -43
  214. package/dist/cli/describe-PHQ33AGS.mjs +50 -0
  215. package/dist/cli/describe-RHJ4XRFI.js +50 -0
  216. package/dist/cli/describe-core.d.mts +3 -3
  217. package/dist/cli/describe-core.d.ts +3 -3
  218. package/dist/cli/describe-core.js +6 -6
  219. package/dist/cli/describe-core.mjs +5 -5
  220. package/dist/cli/{executions-R3LP74QN.mjs → executions-HL2M2DFU.mjs} +10 -10
  221. package/dist/cli/{executions-H6H5655J.js → executions-TLFZRHBJ.js} +12 -12
  222. package/dist/cli/{feedback-VFOUR66B.js → feedback-5UEX5UZK.js} +17 -16
  223. package/dist/cli/{feedback-WL3MRVT5.mjs → feedback-QMBTNXVG.mjs} +9 -8
  224. package/dist/cli/git-4JWOOHBG.js +26 -0
  225. package/dist/cli/{git-YX2J4GCI.mjs → git-LKGXVIVC.mjs} +8 -7
  226. package/dist/cli/index.js +170 -158
  227. package/dist/cli/index.mjs +60 -48
  228. package/dist/cli/{integrations-E2JZYKHS.js → integrations-6RUTLMN7.js} +23 -27
  229. package/dist/cli/{integrations-5ZK5KLVP.mjs → integrations-FGGRVUJ7.mjs} +15 -19
  230. package/dist/cli/{legacy-noops-3VW4IJTH.js → legacy-noops-J3Z7QRWZ.js} +12 -11
  231. package/dist/cli/{legacy-noops-SMN3GSXY.mjs → legacy-noops-YIPRMVXZ.mjs} +9 -8
  232. package/dist/cli/{mcp-UQV2K4EW.js → mcp-6LWFP7RW.js} +121 -48
  233. package/dist/cli/{mcp-V6MGCYAG.mjs → mcp-CHDYFO7F.mjs} +100 -27
  234. package/dist/cli/{monitors-R3BBDCRC.js → monitors-STM6A7OU.js} +221 -186
  235. package/dist/cli/{monitors-GGKS5W6M.mjs → monitors-UGRY2BXI.mjs} +58 -23
  236. package/dist/cli/org-3SYOUQCX.mjs +2289 -0
  237. package/dist/cli/org-ZOBSNSIB.js +2289 -0
  238. package/dist/cli/outcomes-H4YYAT5X.js +2865 -0
  239. package/dist/cli/outcomes-Z3P2JE67.mjs +2865 -0
  240. package/dist/cli/{play-2MVO27VO.js → play-SM4CW2GS.js} +1116 -846
  241. package/dist/cli/{play-MDWPR4XG.mjs → play-SN5YWLS7.mjs} +375 -105
  242. package/dist/cli/{providers-AKDYFZJZ.mjs → providers-WZ4YBR5Y.mjs} +10 -10
  243. package/dist/cli/{providers-2AACRUZH.js → providers-WZARYMCF.js} +13 -13
  244. package/dist/cli/{quickstart-QDGRJFZY.mjs → quickstart-2575BNKA.mjs} +7 -6
  245. package/dist/cli/{quickstart-H6IV3PV3.js → quickstart-PS4YHQJ6.js} +9 -8
  246. package/dist/cli/{run-2634REDK.js → run-FLZ6OTM7.js} +51 -51
  247. package/dist/cli/{run-RTSQNGRD.mjs → run-ZUHCZOJS.mjs} +31 -31
  248. package/dist/cli/run-identity-LMLFMACS.js +31 -0
  249. package/dist/cli/{run-identity-MRNCEGV2.mjs → run-identity-MAZ7ANH5.mjs} +9 -3
  250. package/dist/cli/{search-6AOJ4XPP.mjs → search-HLPPKQEO.mjs} +11 -11
  251. package/dist/cli/search-JJWVHR3N.js +32 -0
  252. package/dist/cli/{search-output-6ADMTOU5.mjs → search-output-PDAXNOGP.mjs} +9 -8
  253. package/dist/cli/{search-output-S5ODBL5E.js → search-output-RXJLU36B.js} +12 -11
  254. package/dist/cli/{secrets-TFIFBFB3.mjs → secrets-CGELYQ3H.mjs} +11 -11
  255. package/dist/cli/{secrets-LHCIIHMT.js → secrets-QJNG7G2Y.js} +20 -20
  256. package/dist/cli/sessions-DHTBT2GN.js +23 -0
  257. package/dist/cli/{sessions-WHBVUHVW.mjs → sessions-ELMWVR4M.mjs} +9 -8
  258. package/dist/cli/{settings-CP4FVK2W.js → settings-44I44P5F.js} +89 -89
  259. package/dist/cli/{settings-EBONWL5C.mjs → settings-RR3LZXL7.mjs} +16 -16
  260. package/dist/cli/{setup-I5AZE3IU.mjs → setup-KGWRWH4B.mjs} +20 -19
  261. package/dist/cli/{setup-LFGHTNLQ.js → setup-KTEYOCJO.js} +60 -59
  262. package/dist/cli/skills-EPZPEXI2.js +37 -0
  263. package/dist/cli/{skills-W76AO5XE.mjs → skills-FPRID2I5.mjs} +10 -9
  264. package/dist/cli/tools-IGQQ5TML.js +57 -0
  265. package/dist/cli/{tools-7IJHGF6W.mjs → tools-PI4WMDLY.mjs} +23 -23
  266. package/dist/cli/update-4RNCVYGE.js +37 -0
  267. package/dist/cli/{update-GFOPZTHY.mjs → update-VJOJAZ7B.mjs} +14 -11
  268. package/dist/cli/{views-BPL2TQJ4.js → views-NTUOLNQU.js} +62 -64
  269. package/dist/cli/{views-D4NX4SBG.mjs → views-OVPSINZO.mjs} +47 -49
  270. package/dist/cli/{workflow-ZYNAUCKC.js → workflow-2UDYDM6F.js} +23 -23
  271. package/dist/cli/{workflow-YXP42FUI.mjs → workflow-7OEFNXZC.mjs} +13 -13
  272. package/dist/{client-CyXGrO4D.d.mts → client-B8f7RNF8.d.mts} +1 -1
  273. package/dist/{client-Bf3IpUKN.d.ts → client-C5TgXmJQ.d.ts} +1 -1
  274. package/dist/{client-core-BxsLnXlm.d.mts → client-core-SLLGBTht.d.mts} +268 -23
  275. package/dist/{client-core-BWd0lX0Z.d.ts → client-core-p0sOxnkl.d.ts} +268 -23
  276. package/dist/{compiler-manifest-BqwVrOri.d.ts → compiler-manifest-D_zZEh9Q.d.mts} +70 -5
  277. package/dist/{compiler-manifest-BqwVrOri.d.mts → compiler-manifest-D_zZEh9Q.d.ts} +70 -5
  278. package/dist/{errors-BU8FB99X.d.mts → errors-CZCrBFrQ.d.mts} +1 -1
  279. package/dist/{errors-DfVN_FUG.d.ts → errors-DsUkLrdZ.d.ts} +1 -1
  280. package/dist/{index-BGnvtYGc.d.ts → index-B6RTOZGC.d.ts} +1 -1
  281. package/dist/{index-DjZgwpGw.d.mts → index-DeOVrEmX.d.mts} +1 -1
  282. package/dist/index.d.mts +7 -7
  283. package/dist/index.d.ts +7 -7
  284. package/dist/index.js +66 -55
  285. package/dist/index.mjs +25 -14
  286. package/dist/install-integrity.json +161 -142
  287. package/dist/plays/bundle-play-file.d.mts +3 -3
  288. package/dist/plays/bundle-play-file.d.ts +3 -3
  289. package/dist/plays/bundle-play-file.mjs +23 -4
  290. package/dist/plays/csv-data-input.js +3 -3
  291. package/dist/plays/csv-data-input.mjs +2 -2
  292. package/dist/plays/play-description.d.mts +2 -2
  293. package/dist/plays/play-description.d.ts +2 -2
  294. package/dist/plays/run-request.d.mts +2 -2
  295. package/dist/plays/run-request.d.ts +2 -2
  296. package/dist/plays/run-request.js +4 -4
  297. package/dist/plays/run-request.mjs +3 -3
  298. package/dist/release.d.mts +1 -1
  299. package/dist/release.d.ts +1 -1
  300. package/dist/release.js +2 -2
  301. package/dist/release.mjs +1 -1
  302. package/dist/server.d.mts +4 -4
  303. package/dist/server.d.ts +4 -4
  304. package/dist/server.js +15 -13
  305. package/dist/server.mjs +9 -7
  306. package/package.json +1 -1
  307. package/dist/cli/auth-MMNVWATX.js +0 -43
  308. package/dist/cli/concurrent-runs-help-FQAIHKKC.js +0 -21
  309. package/dist/cli/describe-QDANCTS3.mjs +0 -50
  310. package/dist/cli/describe-VUTT5ZKU.js +0 -50
  311. package/dist/cli/git-ETB3GH3K.js +0 -25
  312. package/dist/cli/org-GRYVMNSW.js +0 -1282
  313. package/dist/cli/org-Z37NGJV4.mjs +0 -1282
  314. package/dist/cli/run-identity-G257GQED.js +0 -25
  315. package/dist/cli/search-VTW2YNBS.js +0 -32
  316. package/dist/cli/sessions-CJ4FJ2WB.js +0 -22
  317. package/dist/cli/skills-R7EBXREW.js +0 -36
  318. package/dist/cli/tools-V7U2BDXM.js +0 -57
  319. package/dist/cli/update-4COPZETK.js +0 -34
@@ -3,10 +3,10 @@
3
3
  var _chunkH4ALLC2Xjs = require('./chunk-H4ALLC2X.js');
4
4
 
5
5
 
6
- var _chunkV436Z54Kjs = require('./chunk-V436Z54K.js');
6
+ var _chunkE2G2DNABjs = require('./chunk-E2G2DNAB.js');
7
7
 
8
8
  // src/cli/command-docs.ts
9
- var PLAY_RUNTIME_PRICING_NOTE = `With included compute pricing, large (4gb) costs ${_chunkV436Z54Kjs.PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS.large}\xD7 and xlarge (8gb) costs ${_chunkV436Z54Kjs.PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS.xlarge}\xD7 the standard (1gb) hourly rate. Included compute applies proportionally.`;
9
+ var PLAY_RUNTIME_PRICING_NOTE = `With included compute pricing, large (4gb) costs ${_chunkE2G2DNABjs.PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS.large}\xD7 and xlarge (8gb) costs ${_chunkE2G2DNABjs.PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS.xlarge}\xD7 the standard (1gb) hourly rate. Included compute applies proportionally.`;
10
10
  var CONVENTIONS = `
11
11
  [[cli:
12
12
  Conventions (apply to every command):
@@ -26,6 +26,11 @@ Conventions (apply to every command):
26
26
  Read render.sections when you want the short human view of a JSON result.
27
27
  File inputs: every --input, --payload, and --sql flag accepts inline text or
28
28
  @path to read the value from a local file, for example --input @input.json.
29
+ Workspaces: deepline org workspace set <workspace> saves the workspace
30
+ commands act in for the current org; --workspace <workspace-id> (or
31
+ DEEPLINE_WORKSPACE_ID) picks one for a single command. With neither,
32
+ commands use the org's default workspace. A workspace you can't reach
33
+ fails with TEAM_ACCESS_DENIED; an unknown one with TEAM_NOT_FOUND.
29
34
  ]]
30
35
  [[mcp:
31
36
  Conventions (apply to every tool):
@@ -47,16 +52,75 @@ Conventions (apply to every tool):
47
52
  ]]
48
53
  `;
49
54
  var COMMAND_DOCS = {
55
+ "org scim groups list": {
56
+ core: `Purpose: List the groups your identity provider pushed over SCIM (/api/scim/v2/Groups) and the workspace each maps to.
57
+ Requires the owner or admin role.
58
+ Output: eligible (Enterprise SSO entitlement) and groups (group_id, display_name, external_id, team_id and team_name of the mapped workspace or null, member_count, updated_at of the last change).
59
+ Cost: Does not spend credits.`
60
+ },
61
+ "org scim groups get": {
62
+ core: `Purpose: Show one SCIM group and where each member stands. Requires the owner or admin role.
63
+ Input: a group id from org scim groups list.
64
+ Output: group, and members (user_id, email, org_member, in_workspace). org_member is false while SCIM has deactivated someone; their workspace access returns when they are reactivated.
65
+ Cost: Does not spend credits.`
66
+ },
67
+ "org scim groups map": {
68
+ core: `Purpose: Map a SCIM group to a workspace. Requires the owner or admin role and Enterprise SSO.
69
+ Input: a group id from org scim groups list and --workspace <workspace-id> from org workspaces list. The default workspace already has every org member and can't be mapped; an archived workspace can't be mapped.
70
+ Example: deepline org scim groups map <group-id> --workspace <workspace-id>
71
+ Every group member who is in the org joins the workspace. After that, people the identity provider adds to or removes from the group join or leave the workspace. A group maps to one workspace; mapping it again moves it. A workspace can have several groups.
72
+ Groups never add or remove org members and never change org roles; only SCIM user deprovisioning removes someone from the org.
73
+ Members of a large group join in the background: group.syncing is true until they all have; check it with org scim groups get.
74
+ Output: group (with syncing), changed (false when it was already mapped there), and the workspace memberships this request added and removed.
75
+ Cost: Does not spend credits.`
76
+ },
77
+ "org scim groups unmap": {
78
+ core: `Purpose: Unmap a SCIM group from its workspace. Requires the owner or admin role.
79
+ Input: a group id from org scim groups list.
80
+ Members leave the workspace as soon as this returns, unless someone added them manually (org workspaces add-member) or another mapped group still includes them. Removing a manual member who a mapped group includes keeps them in the workspace until the group no longer does.
81
+ Output: group, changed, and the workspace memberships this request removed.
82
+ Cost: Does not spend credits.`
83
+ },
84
+ "org workspaces cap list": {
85
+ core: `Purpose: List the org's workspace spending caps with each workspace's spend in the last 30 days, beside the organization cap.
86
+ Input: none. Owners and admins see every workspace; other members see the workspaces they belong to.
87
+ Output: org_cap (enabled, monthly_credits_limit, spent_credits) and caps (team_id, name, archived, enabled, monthly_credits_limit,
88
+ spent_credits, remaining_credits, version, updated_at, updated_by_user_id).
89
+ Cost: Does not spend credits.`
90
+ },
91
+ "org workspaces cap get": {
92
+ core: `Purpose: Show one workspace's rolling 30-day spending cap and its spend in the last 30 days.
93
+ Input: a workspace id from org workspaces list. The default workspace has no cap of its own; the organization cap bounds it.
94
+ Output: cap (the cap list fields) and org_cap.
95
+ Cost: Does not spend credits.`
96
+ },
97
+ "org workspaces cap set": {
98
+ core: `Purpose: Set, raise, or lower a workspace's rolling 30-day spending cap. Requires the owner or admin role.
99
+ Input: a workspace id from org workspaces list, then the cap in whole credits (at least 1).
100
+ Example: deepline org workspaces cap set <workspace-id> 500
101
+ A charge runs only when it fits both the organization cap and the workspace's cap; a denied call fails with
102
+ MONTHLY_BILLING_LIMIT_EXCEEDED and cap_scope "workspace". A workspace cap may be higher than the organization cap;
103
+ the organization cap still applies. Raising it brings back Monitors the cap paused.
104
+ Output: cap and changed (false when the cap already had this value).
105
+ Cost: Does not spend credits.`
106
+ },
107
+ "org workspaces cap remove": {
108
+ core: `Purpose: Remove a workspace's spending cap. Requires the owner or admin role.
109
+ Input: a workspace id from org workspaces list.
110
+ Removing it brings back Monitors the cap paused; the organization cap still applies.
111
+ Output: cap (enabled false) and changed (false when it had no cap).
112
+ Cost: Does not spend credits.`
113
+ },
50
114
  "org members list": {
51
- core: `Purpose: List one page of members in the authenticated workspace.
115
+ core: `Purpose: List one page of members in the authenticated org.
52
116
  Input: Optional --cursor from the previous page.
53
117
  Output: members (id, userId, role, effective grants) and cursor (null at the end).
54
118
  Cost: Does not spend credits.`
55
119
  },
56
120
  "org members set-grants": {
57
- core: `Purpose: Replace a workspace member's grants. Requires an admin grant.
121
+ core: `Purpose: Replace an org member's grants. Requires an admin grant.
58
122
  Input: a member id from org members list, followed by one or more grants:
59
- read (explicitly read-only tools), run (any tool and existing Plays; cannot create or edit Plays), admin (tools and workspace management), member (existing access, including Play authoring).
123
+ read (explicitly read-only tools), run (any tool and existing Plays; cannot create or edit Plays), admin (tools and org management), member (existing access, including Play authoring).
60
124
  Example: deepline org members set-grants <member-id> read
61
125
  Multiple grants are additive. Run includes read; admin includes both and can create, edit, and publish Plays.
62
126
  Existing member roles retain their permissions, including Play authoring. Only owners may change ownership,
@@ -65,7 +129,7 @@ Output: ok, memberId, and the stored role.
65
129
  Cost: This command does not spend credits.`
66
130
  },
67
131
  "org service-accounts list": {
68
- core: `Purpose: List the workspace's service accounts: members that are not people and own API keys,
132
+ core: `Purpose: List the org's service accounts: members that are not people and own API keys,
69
133
  so production credentials keep working when people leave.
70
134
  Input: none.
71
135
  Output: serviceAccounts (id, name, role, activeKeyCount, lastUsedAt, createdAt; keys with id, keyPrefix,
@@ -74,7 +138,7 @@ Cost: Does not spend credits.`
74
138
  },
75
139
  "org service-accounts create": {
76
140
  core: `Purpose: Create a service account. Requires an admin grant.
77
- Input: a name (1 to 64 characters, unique in the workspace ignoring case) and --role read, run, or member.
141
+ Input: a name (1 to 64 characters, unique in the org ignoring case) and --role read, run, or member.
78
142
  Service accounts cannot be admins or owners and cannot sign in.
79
143
  Example: deepline org service-accounts create prod-pipeline --role run
80
144
  Output: serviceAccount (id, name, role). Create its one key next with org service-accounts keys create <id>.
@@ -90,7 +154,7 @@ Cost: Does not spend credits.`
90
154
  "org service-accounts delete": {
91
155
  core: `Purpose: Delete a service account. Requires an admin grant.
92
156
  Input: a service account id from org service-accounts list.
93
- Revokes its key and removes its workspace membership. Deleting twice is a no-op.
157
+ Revokes its key and removes its org membership. Deleting twice is a no-op.
94
158
  Output: id and revokedKeyCount.
95
159
  Cost: Does not spend credits.`
96
160
  },
@@ -155,17 +219,17 @@ The agent path for a typical task:
155
219
  1. deepline billing balance only when you need the credit balance
156
220
  2. deepline search "<input you have -> result you need>"
157
221
  one search over prebuilt plays, tools, your
158
- workspace's plays, and monitor types
222
+ org's plays, and monitor types
159
223
  3. deepline describe <id> required input, CSV columns, output, price
160
224
  4. deepline run <id> --input '{"csv":"file.csv"}' --csv-out result.csv
161
225
  waits, saves the rows, prints a receipt
162
226
  with the run id and what it cost
163
227
  ]]
164
228
  [[mcp:
165
- 1. deepline_auth_status the connected workspace
229
+ 1. deepline_auth_status the connected org
166
230
  2. deepline_search with query "<input you have -> result you need>"
167
231
  one search over prebuilt plays, tools, your
168
- workspace's plays, and monitor types
232
+ org's plays, and monitor types
169
233
  3. deepline_describe_play read required input, CSV columns, output
170
234
  4. deepline_run_play returns the run id; a CSV goes in input_file
171
235
  5. deepline_read_play_output the result rows, a page at a time
@@ -273,10 +337,10 @@ Avoid:
273
337
  "auth status": {
274
338
  core: `
275
339
  Purpose:
276
- Report which Deepline host, workspace, and user this [[cli:shell]][[mcp:connector]] is authenticated
340
+ Report which Deepline host, org, and user this [[cli:shell]][[mcp:connector]] is authenticated
277
341
  as, without changing anything.
278
342
  When:
279
- When you need the workspace name or id[[cli:, or to confirm auth after a 3 exit
343
+ When you need the org name or id[[cli:, or to confirm auth after a 3 exit
280
344
  code]].
281
345
  [[cli:
282
346
  Input:
@@ -305,7 +369,7 @@ Avoid:
305
369
  Purpose:
306
370
  Start device authorization. Open the URL in any browser and click Approve
307
371
  if the displayed code matches your terminal. Approval gives the CLI a
308
- workspace API key.
372
+ org API key.
309
373
  When:
310
374
  Only in an interactive session where a person can open the URL. Never in an
311
375
  unattended agent shell: the command has nothing to do until a human acts.
@@ -316,7 +380,7 @@ Input:
316
380
  the login.
317
381
  ]]
318
382
  Output:
319
- The approval URL and, after approval, the connected workspace.
383
+ The approval URL and, after approval, the connected org.
320
384
  Cost:
321
385
  Free.
322
386
  Avoid:
@@ -336,7 +400,7 @@ Input:
336
400
  No arguments beyond the pending registration it finds locally.
337
401
  ]]
338
402
  Output:
339
- The connected workspace once approved; a timeout error otherwise.
403
+ The connected org once approved; a timeout error otherwise.
340
404
  Cost:
341
405
  Free.
342
406
  `
@@ -344,31 +408,33 @@ Cost:
344
408
  "billing balance": {
345
409
  core: `
346
410
  Purpose:
347
- Read the workspace's current Deepline credit balance.
411
+ Read the org's current Deepline credit balance.
348
412
  When:
349
413
  Once at the start of a task, before the first paid call, and after a run
350
414
  reports a balance or insufficient-credits error.
351
415
  [[cli:
352
416
  Input:
353
- No arguments. Prints the posted balance, spendable credits and pending
354
- spending. --verbose adds exposure details; --json returns the full record.
417
+ No arguments. Prints the posted balance, spendable credits and finalizing
418
+ usage (usage incurred, final price pending). --verbose adds exposure details; --json returns the full record.
355
419
  ]]
356
420
  [[cli:
357
421
  Output (JSON):
358
422
  balance (Deepline credits), balance_display, rough_usd_balance,
359
- balance_status, posted_balance_credits, pending_spend_credits,
360
- spendable_balance_credits, spendable_balance_status and render.sections.
423
+ balance_status, posted_balance_credits, pending_spend_credits (finalizing
424
+ usage), finalizing_call_count (with finalizing_call_count_truncated when it
425
+ is a lower bound), spendable_balance_credits, spendable_balance_status and
426
+ render.sections.
361
427
  The three credit amounts come from the same admission snapshot. Spendable
362
- credits subtract pending spending; a partial exposure diagnostic is not
428
+ credits subtract finalizing usage; a partial exposure diagnostic is not
363
429
  spendable capacity. Null/unavailable means complete capacity could not be read.
364
430
  Spending limits can still block a funded call. The balance includes other activity
365
- in the workspace, so a before and after difference does not isolate one
431
+ in the org, so a before and after difference does not isolate one
366
432
  command; use billing usage for that.
367
433
  ]]
368
434
  [[mcp:
369
435
  Output:
370
436
  balance {balance (Deepline credits), balance_display, rough_usd_balance,
371
- balance_status}. The balance includes other activity in the workspace, so
437
+ balance_status}. The balance includes other activity in the org, so
372
438
  a before and after difference does not isolate one call; read a run's
373
439
  spend with deepline_billing_usage with run_id.
374
440
  ]]
@@ -379,16 +445,18 @@ Cost:
379
445
  "billing compute": {
380
446
  core: `
381
447
  Purpose:
382
- Show Play runtime pricing, included compute, and usage.
448
+ Show sandbox and database compute pricing, included compute, and usage.
383
449
  Output:
384
450
  Your runtime price, allowance used, paid overage, and reset date.
451
+ When database charging is enabled, its price is shown in credits/CU-hour.
452
+ Database and sandbox charges share included compute by dollar value.
385
453
  Usage is shown in standard sandbox minutes at your current rate and in credits.
386
454
  ${PLAY_RUNTIME_PRICING_NOTE}
387
455
  ${_chunkH4ALLC2Xjs.PRICING_PAGE_NOTE}
388
456
  Cost:
389
457
  Free to check.
390
458
  [[cli:
391
- --enable switches the workspace to included compute pricing.
459
+ --enable switches the org to included compute pricing.
392
460
  Examples:
393
461
  deepline billing compute --json
394
462
  deepline billing quote --sandbox-timeout 30m --sandbox-size xlarge
@@ -396,7 +464,7 @@ Examples:
396
464
  `
397
465
  },
398
466
  "billing reuse": {
399
- core: `Purpose: Read the authenticated workspace's recorded reused-result count.
467
+ core: `Purpose: Read the authenticated org's recorded reused-result count.
400
468
  Only fully reported, supported terminal runs contribute. Historical runs and
401
469
  incomplete attempt reports are excluded. This is not a credit savings estimate.
402
470
  Output: --json returns data.org_id and data.reuse; reuse is null before any contribution.
@@ -406,7 +474,7 @@ Run: deepline billing reuse --json`
406
474
  "billing usage": {
407
475
  core: `
408
476
  Purpose:
409
- Read what the workspace, or one run, has spent in Deepline credits.
477
+ Read what the org, or one run, has spent in Deepline credits.
410
478
  When:
411
479
  After a run finishes, to report its actual cost: [[billing usage --run-id
412
480
  <run-id>]]. This is the canonical per-run cost read; [[runs get]] does not
@@ -415,7 +483,7 @@ When:
415
483
  Input:
416
484
  --run-id <run-id> scopes the spend to one play run. --limit and --cursor
417
485
  page the recent-call list. --json prints JSON.
418
- --recent-only returns just the recent billing activity page and workspace ID.
486
+ --recent-only returns just the recent billing activity page and org ID.
419
487
  --events reads raw usage-event history instead of the spend summary. Combine
420
488
  it with --run-id, --limit (1\u2013500), and --cursor; not --offset or --request-id.
421
489
  Follow next_cursor until null, even when entries is empty.
@@ -528,7 +596,7 @@ When:
528
596
  If a tool needs a connection, the description gives the dashboard setup link
529
597
  when available and the exact integrations connect command. Share byok.setupUrl
530
598
  from JSON, or run connectCommand and share the returned connect_url with a
531
- workspace owner or admin.
599
+ org owner or admin.
532
600
  ]]
533
601
  [[cli:
534
602
  Input:
@@ -540,7 +608,7 @@ Input:
540
608
  --feature <name>[=<value>] describes one.
541
609
  The byok feature marks tools that can use your own provider credentials.
542
610
  Use --feature byok for setup details and the dashboard link when available.
543
- A play your workspace created is shown instead of a Deepline tool or
611
+ A play your org created is shown instead of a Deepline tool or
544
612
  prebuilt play of the same name; deepline/<name> shows the Deepline one.
545
613
  ]]
546
614
  [[cli:
@@ -568,7 +636,7 @@ Input:
568
636
  --input-file input.json. A play that reads a CSV takes its path:
569
637
  --input '{"csv":"leads.csv"}'. -e '<code>' runs code as a play body.
570
638
  <play>@latest runs the newest revision; deepline/<id> runs Deepline's
571
- version when your workspace has one with the same name.
639
+ version when your org has one with the same name.
572
640
  Examples:
573
641
  deepline run hunter_email_verifier --input '{"email":"a@b.com"}'
574
642
  deepline run person-to-email-batch --input '{"csv":"leads.csv"}' --dry-run
@@ -583,8 +651,8 @@ Output:
583
651
  --fields picks values and CSV columns. Exit code 0 completed, 1 failed or
584
652
  still running, 2 nothing ran.
585
653
  A failed tool call's receipt error matches deepline tools execute:
586
- error.tool_error says whether a retry is safe, and error.upstreamResponse
587
- holds a connected provider's status and body.
654
+ error.retry says whether sending the same call again can succeed, and
655
+ error.upstreamResponse holds a connected provider's status and body.
588
656
  Cost:
589
657
  What the tool or play charges. --max-credits caps a play run. Running an
590
658
  interrupted call again replays it without paying twice.
@@ -613,14 +681,14 @@ Cost:
613
681
  integrations: {
614
682
  core: `
615
683
  Purpose:
616
- Set up provider access and manage named workspace authorizations.
684
+ Set up provider access and manage named org authorizations.
617
685
  providers lists the catalog; tools calls provider APIs; auth handles Deepline login.
618
686
  Input and output:
619
687
  connect <provider> returns the setup modal link. My account is the default;
620
- workspace admins can choose Workspace and complete the provider's approval.
621
- list shows workspace authorization names. get <name> shows one record and
688
+ org admins can choose Org-wide and complete the provider's approval.
689
+ list shows org authorization names. get <name> shows one record and
622
690
  its granted scopes. Use the name as connection in a tool call or Play.
623
- reconnect, disconnect, and delete act on existing workspace authorizations.
691
+ reconnect, disconnect, and delete act on existing org authorizations.
624
692
  Pass --provider when the same name occurs for more than one provider.
625
693
  verify <domain> checks an existing Google Admin grant and enables it locally.
626
694
  Scope changes require provider approval; a Play's connection selection
@@ -638,7 +706,7 @@ Examples:
638
706
  `
639
707
  },
640
708
  "integrations get": {
641
- core: `Purpose: Read one named workspace authorization from the connection inventory.
709
+ core: `Purpose: Read one named org authorization from the connection inventory.
642
710
  Input: the exact name from list; --provider disambiguates repeated names.
643
711
  Output: the inventory record, including identity, type, status, version, and
644
712
  granted scopes when supplied by the provider. Never credential material.
@@ -646,7 +714,7 @@ Cost: Does not spend credits.`,
646
714
  rolloutFeature: "integration-connections"
647
715
  },
648
716
  "integrations reconnect": {
649
- core: `Purpose: Reauthorize an existing named workspace connection.
717
+ core: `Purpose: Reauthorize an existing named org connection.
650
718
  Input: the exact name from list; --provider disambiguates repeated names.
651
719
  Google Workspace approvals also require --verification-email in that domain.
652
720
  After Google Admin approves the scope, use --list-calendars to verify calendar listing.
@@ -657,7 +725,7 @@ Cost: Does not spend credits.`,
657
725
  rolloutFeature: "integration-connections"
658
726
  },
659
727
  "integrations disconnect": {
660
- core: `Purpose: Disable a named workspace authorization for future execution.
728
+ core: `Purpose: Disable a named org authorization for future execution.
661
729
  Input: the exact name from list; --provider disambiguates repeated names.
662
730
  Output: the API's disconnect result. The stored connection remains available
663
731
  for reconnect. A Google Admin approval is separately revoked in Google Admin.
@@ -666,7 +734,7 @@ Cost: Does not spend credits.`,
666
734
  rolloutFeature: "integration-connections"
667
735
  },
668
736
  "integrations delete": {
669
- core: `Purpose: Remove a named workspace connection and free its slot.
737
+ core: `Purpose: Remove a named org connection and free its slot.
670
738
  Input: the exact name from list; --provider disambiguates repeated names.
671
739
  Disconnect Google Workspace approvals first. Their Google Admin grant remains
672
740
  until an administrator revokes it in Google Admin.
@@ -703,7 +771,7 @@ Cost: Does not spend credits.`,
703
771
  "integrations balance": {
704
772
  core: `
705
773
  Purpose:
706
- Read the active workspace's connected LeadMagic account balance.
774
+ Read the active org's connected LeadMagic account balance.
707
775
  Output:
708
776
  Provider credits, unit, source and observedAt timestamp. [[cli:--json returns the same fields]][[mcp:The API returns these fields]]
709
777
  as GET /api/v2/integrations/balance?provider=leadmagic.
@@ -723,11 +791,11 @@ Examples:
723
791
  "integrations list": {
724
792
  core: `
725
793
  Purpose:
726
- List workspace authorizations with Integration connections enabled.
794
+ List org authorizations with Integration connections enabled.
727
795
  Google Workspace entries include the domain, granted scopes, and the name
728
796
  a Play passes as connection. Use --inventory for compatibility records.
729
797
  Use --members with --provider to list teammates' linked accounts.
730
- This inventory contains workspace authorizations, not the caller's personal
798
+ This inventory contains org authorizations, not the caller's personal
731
799
  accounts. Personal connections are managed through the dashboard setup modal.
732
800
  Output:
733
801
  [[cli:Use --json for records with provider, status, label, and connection version.]]
@@ -739,9 +807,9 @@ Cost:
739
807
  "tools hubspot-members": {
740
808
  core: `
741
809
  Purpose:
742
- List personal HubSpot connection status as an admin in an enrolled workspace.
810
+ List personal HubSpot connection status as an admin in an enrolled org.
743
811
  Output:
744
- Workspace members, linked HubSpot account IDs, connection status, and a next-page cursor when available.
812
+ Org members, linked HubSpot account IDs, connection status, and a next-page cursor when available.
745
813
  [[cli:Use --json for a structured page and --cursor to continue.]]
746
814
  Cost:
747
815
  Does not spend Deepline credits.
@@ -751,15 +819,15 @@ Cost:
751
819
  "tools workspace-connection": {
752
820
  core: `
753
821
  Purpose:
754
- Manage shared Google Calendar access as a workspace owner or admin.
822
+ Manage shared Google Calendar access as an org owner or admin.
755
823
  In Production, use deepline integrations connect hubspot --link to manage shared HubSpot.
756
- Enrolled Preview workspaces can manage a dedicated shared HubSpot connection here.
824
+ Enrolled Preview orgs can manage a dedicated shared HubSpot connection here.
757
825
  Input:
758
826
  Pass the provider and connect, reconnect, replace, disconnect, or remove.
759
- Remove frees a connection slot for a named account or a Google workspace account.
827
+ Remove frees a connection slot for a named account or a Google Workspace account.
760
828
  Complete OAuth consent in the browser.
761
829
  Use connect --auto-name to let Deepline assign the connection name.
762
- Use --name <name> to select a named HubSpot or Google Calendar workspace
830
+ Use --name <name> to select a named HubSpot or Google Calendar org
763
831
  account in an enrolled local or Preview environment.
764
832
  Cost:
765
833
  Does not spend Deepline credits.
@@ -769,7 +837,7 @@ Cost:
769
837
  "tools calendar-delegation": {
770
838
  core: `
771
839
  Purpose:
772
- Verify and manage Google Workspace authorization as a workspace admin.
840
+ Verify and manage Google Workspace authorization as an org admin.
773
841
  Input:
774
842
  Use list to read approval IDs and revisions.
775
843
  Use status --domain <domain> to read the Google client ID and scope.
@@ -801,15 +869,15 @@ Cost:
801
869
  "integrations connect": {
802
870
  core: `
803
871
  Purpose:
804
- Open provider setup or connect provider credentials in the active workspace.
805
- Setup starts with My account; admins can choose Workspace in the modal.
806
- Direct credential updates require a workspace owner or admin.
872
+ Open provider setup or connect provider credentials in the active org.
873
+ Setup starts with My account; admins can choose Org-wide in the modal.
874
+ Direct credential updates require an org owner or admin.
807
875
  Input:
808
876
  With no setup flags, print the dashboard link. --link requests it explicitly.
809
877
  --link looks up the exact provider id. When a person needs to connect a
810
878
  provider, use the command printed by deepline describe <tool-id> or look up
811
879
  the tool's provider field. Give them the returned link and tell them to
812
- select the intended workspace in the dashboard.
880
+ select the intended org in the dashboard.
813
881
  The link opens that provider's setup without starting OAuth or saving anything.
814
882
  --credentials-file <path> saves a private JSON object of credential strings.
815
883
  A provider that takes one API key reads {"api_key": "..."}; a file with one
@@ -817,7 +885,7 @@ Input:
817
885
  example a warehouse) rejects a missing field and lists its accepted field
818
886
  names in the error.
819
887
  --oauth prints an authorization URL. Open it in a browser signed into the
820
- same Deepline workspace and finish provider consent.
888
+ same Deepline org and finish provider consent.
821
889
  HubSpot: --preset read-crm, update-crm, marketing, sales-sequences, tickets, or all.
822
890
  all requests every supported capability, including write and admin access.
823
891
  For custom access use comma-separated --scopes and --optional-scopes instead
@@ -826,7 +894,7 @@ Input:
826
894
  are validated by the server; requested access may differ from granted access.
827
895
  Output:
828
896
  Link: dashboard URL, or {provider, connect_url} with --json. Share connect_url
829
- with the workspace owner or admin who will finish setup in the browser.
897
+ with the org owner or admin who will finish setup in the browser.
830
898
  Credentials: confirmation without secret values.
831
899
  OAuth: URL, or {provider, redirect_url} with --json. This does not confirm a
832
900
  completed connection. The browser must finish authorization.
@@ -945,7 +1013,7 @@ Output fields:
945
1013
  $0.015 per result".
946
1014
  pricing.unit what one price unit is: result, call, row, credit.
947
1015
  connected false means the provider needs a connected account or
948
- key in this workspace; execute will fail with 3.
1016
+ key in this org; execute will fail with 3.
949
1017
  credentialStatus detail for connected false.
950
1018
  byok shown with --feature byok. supported says whether
951
1019
  you can connect your own provider credentials.
@@ -975,13 +1043,13 @@ Input:
975
1043
  -p email=a@b.com one key=value per -p, repeatable
976
1044
  --payload is an alias of --input. There is no --payload-file flag; use
977
1045
  @path. --out <file.csv> writes row-shaped output to a CSV file.
978
- --connection <name> selects a workspace authorization for supported
1046
+ --connection <name> selects an org authorization for supported
979
1047
  operations. For Google Workspace team availability, choose the approved
980
1048
  domain as the connection and pass primary work emails in calendarIds.
981
1049
  For booking, organizerEmail selects the primary calendar that receives the
982
1050
  event. Verify the calendars with a read-only call before publishing booking.
983
1051
  Where supported, omitting --connection uses the caller's default account.
984
- deepline integrations list --json lists workspace authorization names.
1052
+ deepline integrations list --json lists org authorization names.
985
1053
  Each authorization grants specific scopes. Missing scopes fail the call.
986
1054
  ]]
987
1055
  [[cli:
@@ -991,15 +1059,21 @@ Output (JSON):
991
1059
  listSourcePath}, summary, next, render.sections.
992
1060
  Failures:
993
1061
  A failed call prints {ok:false, status:"failed", statusCode, error} and
994
- exits non-zero. Record the row as failed and check
995
- error.tool_error.retryable before repeating the call.
996
- statusCode 429 is a rate or quota refusal; retry after the delay in
997
- error.tool_error.retryAfterMs.
1062
+ exits non-zero. Record the row as failed and read error.retry before
1063
+ repeating the call: canSucceed (true, false, or null when unknown),
1064
+ afterMs (the wait), reason, next (what to do), and for rejected input the
1065
+ named fields and the server's hint. Without --json it is the Retry: line.
1066
+ rate_limited wait afterMs, then retry; run fewer calls at once
1067
+ bad_input fix the input; the same call fails again
1068
+ no_match the provider has no record; treat it as found: false
1069
+ out_of_credits stop and tell the user to add credits
1070
+ spending_cap stop and tell the user; the error names the cap
1071
+ error.tool_error.retryable says whether repeating the call is
1072
+ delivery-safe, not whether it can succeed.
998
1073
  When a connected provider returns a failure, error.upstreamResponse
999
1074
  includes its HTTP status and body, with echoed authentication masked.
1000
1075
  Without --json the CLI prints that status and a short redacted body
1001
- excerpt. A provider 401, 403 or other 4xx except 408/425/429 is permanent:
1002
- fix the key, plan or input instead of retrying.
1076
+ excerpt.
1003
1077
  ]]
1004
1078
  [[mcp:
1005
1079
  Named authorizations:
@@ -1165,7 +1239,7 @@ Authoring rules:
1165
1239
  Tool calls: deepline.tools.execute({ id, tool, input, description,
1166
1240
  staleAfterSeconds }). staleAfterSeconds decides whether a finished answer
1167
1241
  may be reused. 0 is a fresh call, and leaving it out is the same as 0. A positive number accepts a
1168
- completed, successful answer to the same request (same workspace,
1242
+ completed, successful answer to the same request (same org,
1169
1243
  credential and tool version) up to that many seconds old, and otherwise
1170
1244
  runs the tool. null accepts an answer of any age. A reused answer makes no
1171
1245
  provider call and no provider charge; Play compute still applies. This
@@ -1218,16 +1292,18 @@ Authoring rules:
1218
1292
  res.ok. A play cannot loop deepline.fetch over pages: fan out over rows
1219
1293
  with deepline.dataset, or
1220
1294
  call one endpoint that returns the whole result.
1221
- Triggers: export const config = { cron: { schedule, timezone, input } };
1295
+ Triggers: export const config = { cron: { schedule, timezone, input, overlap } };
1222
1296
  or { webhook: {} }. A cron run receives {} unless cron.input is written
1223
- inline; it is pinned with the published revision.
1297
+ inline; it is pinned with the published revision. Add
1298
+ cron.overlap: 'skip' to skip an occurrence while an earlier cron run is
1299
+ still queued or running; omitted ('allow') starts every occurrence.
1224
1300
  Runtime: The default Play runtime is 30 minutes. Standard uses 1 GiB / 1 CPU.
1225
1301
  Set runtime.size to 'standard' or '1gb' (1 GiB / 1 CPU), 'large' or '4gb'
1226
1302
  (4 GiB / 2 CPU), or 'xlarge' or '8gb' (8 GiB / 4 CPU).
1227
1303
  Each alias selects the same profile and price as its named size.
1228
1304
  ${PLAY_RUNTIME_PRICING_NOTE}
1229
1305
  [[cli:Use deepline billing quote --sandbox-timeout 30m --sandbox-size large
1230
- for the workspace's session ceiling.]]
1306
+ for the org's session ceiling.]]
1231
1307
  Set runtime.timeout to extend a run up to 4h.
1232
1308
  For large datasets, keep working sets bounded and checkpoint progress;
1233
1309
  inline ctx.runPlay shares parent memory, while ctx.runPlayAsync starts an
@@ -1279,7 +1355,7 @@ Authoring rules:
1279
1355
  "plays grep": {
1280
1356
  core: `
1281
1357
  Purpose:
1282
- Full-text search over plays this workspace authored (not prebuilt ones).
1358
+ Full-text search over plays this org authored (not prebuilt ones).
1283
1359
  When:
1284
1360
  Finding a saved play by a phrase in its source or description.
1285
1361
  [[cli:
@@ -1304,7 +1380,7 @@ Output:
1304
1380
  reference, costEstimate, and for prebuilts observedCost. Estimates include
1305
1381
  the output unit, observed or static range and sample size.
1306
1382
  Cost:
1307
- Read-only. Uses the current workspace's pricing; does not start a run.
1383
+ Read-only. Uses the current org's pricing; does not start a run.
1308
1384
  `
1309
1385
  },
1310
1386
  "plays list": {
@@ -1369,7 +1445,7 @@ Output fields:
1369
1445
  declared tools).
1370
1446
  costEstimate.sampleRunCount how many runs the observation is based on.
1371
1447
  observedCost avgCredits, medianCredits, maxCredits per unit across
1372
- all workspaces' runs, or status "unavailable" with
1448
+ all orgs' runs, or status "unavailable" with
1373
1449
  typical {lowCredits, highCredits, unit}.
1374
1450
  has_more / next_cursor the page is bounded; pass --cursor to continue.
1375
1451
  is_truncated true when the page was cut for size.
@@ -1430,7 +1506,7 @@ Output fields:
1430
1506
  outputSchema.properties the per-row result fields, for example email,
1431
1507
  email_source, email_validated, waterfall_attempts.
1432
1508
  runCommand copy it and replace the placeholder input.
1433
- latestRunId the most recent run in this workspace, if any;
1509
+ latestRunId the most recent run in this org, if any;
1434
1510
  useful to reuse a finished result instead of
1435
1511
  rerunning.
1436
1512
  triggerStatus cron or webhook triggers configured for the play.
@@ -1569,13 +1645,13 @@ Output:
1569
1645
  rateLimited {latestRunId, nextAllowedAt, message}.
1570
1646
  ]]
1571
1647
  Concurrency:
1572
- A workspace runs as many Plays at once as its plan allows; each run holds
1648
+ An org runs as many Plays at once as its plan allows; each run holds
1573
1649
  one slot while it executes. A run over the limit is not rejected: it waits
1574
1650
  and starts when another finishes. While it waits, run.activity.summary
1575
1651
  starts with "Queued:", run.activity.observation.activityId is
1576
1652
  "run:sandbox-capacity", and warnings names the plan that runs more.
1577
1653
  [[cli:
1578
- deepline billing entitlements shows this workspace's plan and limit and
1654
+ deepline billing entitlements shows this org's plan and limit and
1579
1655
  every plan's limit; this help prints them too when you are signed in.
1580
1656
  ]]
1581
1657
  ${_chunkH4ALLC2Xjs.PRICING_PAGE_NOTE}
@@ -1644,7 +1720,7 @@ Related:
1644
1720
  "plays versions": {
1645
1721
  core: `
1646
1722
  Purpose:
1647
- List the saved revisions of a workspace play, newest first, and which one
1723
+ List the saved revisions of an org play, newest first, and which one
1648
1724
  is live.
1649
1725
  When:
1650
1726
  Before making an older revision live or running a specific revision.
@@ -1661,7 +1737,7 @@ Cost:
1661
1737
  "plays delete": {
1662
1738
  core: `
1663
1739
  Purpose:
1664
- Move a workspace play to Trash and stop its triggers. Its revisions and
1740
+ Move an org play to Trash and stop its triggers. Its revisions and
1665
1741
  run history are kept, so it can be restored.
1666
1742
  When:
1667
1743
  When the user asks to remove a play. Prebuilt plays cannot be deleted.
@@ -1820,13 +1896,13 @@ Output:
1820
1896
  With full: true the package is under package, beside the diagnostics.
1821
1897
  ]]
1822
1898
  Concurrency:
1823
- A workspace runs as many Plays at once as its plan allows; each run holds
1899
+ An org runs as many Plays at once as its plan allows; each run holds
1824
1900
  one slot while it executes. A run over the limit is not rejected: it waits
1825
1901
  and starts when another finishes. While it waits, run.activity.summary
1826
1902
  starts with "Queued:", run.activity.observation.activityId is
1827
1903
  "run:sandbox-capacity", and warnings names the plan that runs more.
1828
1904
  [[cli:
1829
- deepline billing entitlements shows this workspace's plan and limit and
1905
+ deepline billing entitlements shows this org's plan and limit and
1830
1906
  every plan's limit; this help prints them too when you are signed in.
1831
1907
  ]]
1832
1908
  ${_chunkH4ALLC2Xjs.PRICING_PAGE_NOTE}
@@ -1850,7 +1926,7 @@ Output fields:
1850
1926
  the last three are terminal.
1851
1927
  run.activity the current step while running, null when finished.
1852
1928
  A queued capacity activity means it is waiting for a
1853
- workspace concurrency slot, even if run.status says
1929
+ org concurrency slot, even if run.status says
1854
1930
  running. target.limit is the observed limit;
1855
1931
  target.limitSource=admission means it was pinned at
1856
1932
  launch. Plan changes apply to new launches, not that
@@ -1994,7 +2070,7 @@ Avoid:
1994
2070
  core: `
1995
2071
  Purpose:
1996
2072
  The stored text logs of one run, or a search of recent events across the
1997
- workspace's runs. Nothing runs again.
2073
+ org's runs. Nothing runs again.
1998
2074
  When:
1999
2075
  [[cli:
2000
2076
  When a run failed and the runs get error is not enough: runs logs
@@ -2060,7 +2136,7 @@ Cost:
2060
2136
  Avoid:
2061
2137
  Exit 4 means a key was not found; exit 5 means a result is incomplete or
2062
2138
  unavailable, with the successful entries still returned. Reads need the
2063
- workspace the run belongs to.
2139
+ org the run belongs to.
2064
2140
  `
2065
2141
  },
2066
2142
  "runs watch": {
@@ -2105,9 +2181,9 @@ Cost:
2105
2181
  "runs stop-all": {
2106
2182
  core: `
2107
2183
  Purpose:
2108
- Request cancellation of every active run in the workspace.
2184
+ Request cancellation of every active run in the org.
2109
2185
  When:
2110
- Unjamming a workspace. Do not use it to stop one run; use [[runs stop]].
2186
+ Unjamming an org. Do not use it to stop one run; use [[runs stop]].
2111
2187
  [[cli:
2112
2188
  Input:
2113
2189
  --reason "<text>". --dry-run lists what would be stopped. --json.
@@ -2256,16 +2332,25 @@ Output (JSON):
2256
2332
  Cost:
2257
2333
  [[--dry-run]] is free. Deploying creates monitors, which spend credits:
2258
2334
  credits_due_now in the plan is what the creates cost.
2335
+ Timing:
2336
+ Members usually settle within minutes, but the provider can take hours to
2337
+ finish its creates. A member whose error says the provider is still
2338
+ creating it is waiting, not failing.
2339
+ [[cli:
2340
+ --wait stopping at its timeout means the same.
2341
+ ]]
2259
2342
  Avoid:
2260
2343
  Do not interrupt a multi-request commit and start a different definition:
2261
2344
  the open stage holds the fleet against another plan for ten minutes. Re-run
2262
- the same command to continue it.
2345
+ the same command to continue it. Do not deactivate or redeploy a converging
2346
+ Fleet to unstick it: neither cancels a create the provider has accepted. A
2347
+ deactivation waits for that create to land, then deletes it.
2263
2348
  `
2264
2349
  },
2265
2350
  "db query": {
2266
2351
  core: `
2267
2352
  Purpose:
2268
- Run SQL against the workspace's customer database, where play runs persist
2353
+ Run SQL against the org's customer database, where play runs persist
2269
2354
  their result rows.
2270
2355
  When:
2271
2356
  To read result rows in place (filter, join, count) instead of exporting,
@@ -2287,6 +2372,1695 @@ Cost:
2287
2372
  Avoid:
2288
2373
  Do not guess table names; a run's dataset table is named in [[runs get]]
2289
2374
  under datasets[].storage.
2375
+ `
2376
+ },
2377
+ outcomes: {
2378
+ rolloutFeature: "outcomes",
2379
+ core: `
2380
+ Purpose:
2381
+ Hand a role to agents and people. An outcome says what should be true, how
2382
+ it is measured, what must never happen, and who is on it. Everyone on it
2383
+ shares one feed.
2384
+ The four parts:
2385
+ Spec: one file, <outcome>.outcome.ts, versioned the way plays are.
2386
+ Feed: everything said on the outcome. Every item is an entry with an id
2387
+ like enrichment-coverage/14.
2388
+ Work: tasks and asks are entries with a state.
2389
+ Stakeholders: agents, people and channels. People and channels are reached
2390
+ through Slack.
2391
+ The sequence:
2392
+ 1. [[outcomes describe <outcome> --as claude]] returns the live spec, where
2393
+ each key result stands, open asks, tasks, the latest entries, a cursor,
2394
+ and the commands to run next.
2395
+ 2. [[outcomes tasks claim <outcome> --as claude --wait 10m]] takes the next
2396
+ task. [[outcomes tasks run <task> --as claude -- <command>]] claims it,
2397
+ runs the command and settles the task from its exit code.
2398
+ 3. [[outcomes post <outcome> <text> --as claude]] says what happened
2399
+ (--file attaches an image or video), then
2400
+ [[outcomes tasks complete <task> --as claude]].
2401
+ 4. [[outcomes measure <outcome> <value> --as claude]] reports where a key
2402
+ result stands now. The outcome is met when its key results are, not
2403
+ when its tasks are done.
2404
+ 5. [[outcomes wait <outcome> --after <cursor>]] blocks until a person or
2405
+ another agent writes.
2406
+ An agent's first action puts it on the outcome; there is no join step.
2407
+ Being told, instead of asking:
2408
+ An outcome runs for months and no agent stays running that long. A watch
2409
+ says what an agent wants to hear about; what matches waits in its inbox
2410
+ until it is pulled and acknowledged, however long that takes.
2411
+ 1. Once: [[outcomes watches add <outcome> --as claude]]. It hears @claude
2412
+ written in any post or reply, tasks made for claude, replies to and
2413
+ changes of what claude posted, and what claude's schedules post.
2414
+ 2. On a timer (cron, a scheduled agent run, every 30 minutes is fine):
2415
+ [[outcomes listen <outcome> --as claude --drain -- <command>]] runs
2416
+ the command once for each waiting match, then exits. Nothing waiting
2417
+ is exit 0 at once. Without --drain it stays connected and runs the
2418
+ command as each match arrives.
2419
+ 3. By hand instead: [[outcomes inbox <outcome> --as claude]], then
2420
+ [[outcomes ack <outcome> <match> --lease <lease>]] for each.
2421
+ To reach another agent, write its name in the text: "Done. @codex, your
2422
+ turn." [[outcomes post <outcome> <text> --in 2h]] and --every post later,
2423
+ so an agent can also wake itself.
2424
+ Setting one up:
2425
+ [[outcomes check <file>]], then [[outcomes publish <file>]].
2426
+ The outcome file, <outcome>.outcome.ts (the file name is the outcome id):
2427
+ export default {
2428
+ role: 'Enrichment Coverage Owner', // string, required
2429
+ owner: 'chirag', // string, required: a workspace
2430
+ // member's name, first name or email
2431
+ objective: 'Every contact at an ICP account can be reached.', // string, required
2432
+ keyResults: [ // list of strings, at least one
2433
+ 'Verified work email on 85% of ICP contacts',
2434
+ ],
2435
+ measure: 'Coverage query, every Monday.', // string, optional
2436
+ guardrails: [ // list, optional; one key per item
2437
+ { ask: { before: 'plays.set-live' } }, // before: plays.set-live
2438
+ { cap: { credits: 2000, per: 'week' } }, // per: 'day' | 'week' | 'month'
2439
+ { never: 'overwrite a field a person edited' }, // string
2440
+ { rule: 'Post a summary to #revops every Friday' }, // string
2441
+ ],
2442
+ feedbackLoop: ['hubspot'], // list of integration ids, optional
2443
+ plays: ['coverage-report'], // list of play names, optional
2444
+ };
2445
+ Plain values only: no imports, functions, variables or template strings.
2446
+ Ids:
2447
+ An outcome is its name: lower-case letters, numbers and dashes, at most 64.
2448
+ An entry is <outcome>/<n>, for example enrichment-coverage/14. Tasks, asks
2449
+ and replies are entries. A flag that takes an entry (--task, --after, --ask,
2450
+ --for, --before) refuses an entry of another outcome. A stakeholder is its
2451
+ key from [[outcomes stakeholders list <outcome>]]. A cursor counts changes;
2452
+ it is not an entry number.
2453
+ Acting as an agent:
2454
+ --as <agent> (or DEEPLINE_AGENT_NAME) names the agent: lower-case letters,
2455
+ numbers and dashes, at most 40. It uses your credentials and can never do
2456
+ more than you. Its first action puts it on the outcome, and the feed says
2457
+ so. A name a person or channel already holds is refused with
2458
+ AGENT_NOT_JOINED, as is a name that is not on the outcome where it was not
2459
+ the caller's own action: a task's --for, and inbox or listen. It is shown
2460
+ as "<your first name>'s <agent>": claude is Claude Code, codex is Codex,
2461
+ cursor is Cursor, and any other name is shown as typed. Without --as you act as yourself, and
2462
+ the output says "(no --as)".
2463
+ People and agents:
2464
+ A person may answer an ask, and may complete, release, renew or cancel a
2465
+ task whoever holds it. An agent may not answer an ask, and acts only on a
2466
+ task it holds. A claim is fenced by a token that the CLI keeps on the
2467
+ machine that claimed, in a file only you can read, so renew, complete,
2468
+ release and block take just the task's id there.
2469
+ Two hosts running under one agent name cannot act on each other's claims.
2470
+ Labels:
2471
+ A label is a key or key=value (team=emea): the key starts with a letter or
2472
+ number and holds letters, numbers, dots, dashes and underscores. An entry
2473
+ carries at most 10. --label sets them on a post or a task;
2474
+ [[outcomes label <entry>]] changes them later.
2475
+ Text:
2476
+ Text is what you type, never a path. In a post and in a reply, @name
2477
+ mentions an agent or person on the outcome and #name a channel on it; the
2478
+ output lists who was mentioned. A name that is not on the outcome
2479
+ mentions nobody. --text-file <path> reads the text from a file. Text that starts with - goes after --.
2480
+ An entry is at most 4,000 UTF-16 code units: most characters count as one,
2481
+ an emoji as two or more.
2482
+ Guardrails:
2483
+ ask: the server refuses the named action, run with --outcome, until an ask
2484
+ for it is approved by a person. Exit 3, code GUARDRAIL_APPROVAL_REQUIRED,
2485
+ with the ask command to run. One approval allows one run, and is used
2486
+ only when that run succeeds.
2487
+ cap: recorded and shown. Spend is not counted against it yet.
2488
+ never: text the agent must follow. Nothing enforces it.
2489
+ rule: any rule in your own words, { rule: '...' }. Shown as written.
2490
+ Nothing enforces it.
2491
+ JSON (--json):
2492
+ Success is one document: ok true, command, the result, and render.sections
2493
+ with the lines the text output prints. Failure is one document: ok false,
2494
+ code, message, exitCode, and next when there is a command to run. A file
2495
+ with errors adds the findings to that. A missing argument or an unknown
2496
+ option is reported by the CLI itself, in its own usage-error document.
2497
+ Text output escapes control characters in entry text; JSON does not.
2498
+ Exit codes:
2499
+ 0 ok (including nothing to claim and a wait that timed out).
2500
+ 2 usage: a missing argument, an option value that is not valid, or a local
2501
+ file that is not there.
2502
+ 3 refused: permission, a guardrail, an agent that has not joined, or an
2503
+ agent answering an ask.
2504
+ 4 not found: no such outcome, entry or revision, or the outcome is in Trash.
2505
+ 5 the request failed. OUTCOME_BUSY (too many writers at once, nothing
2506
+ written) is retried a few times first and is safe to run again.
2507
+ 7 the state does not allow it: a lost claim, an answered ask, a reused
2508
+ idempotency key, or a file with errors.
2509
+ Not built yet:
2510
+ Editing or deleting an entry, restoring an outcome from Trash, a diff
2511
+ between two revisions, and looking up a Slack handle.
2512
+ Cost:
2513
+ Free.
2514
+ `
2515
+ },
2516
+ "outcomes list": {
2517
+ rolloutFeature: "outcomes",
2518
+ core: `
2519
+ Purpose:
2520
+ List this workspace's outcomes, with the asks waiting on someone and the
2521
+ agents due or overdue for a check-in.
2522
+ [[cli:
2523
+ Input:
2524
+ --mine keeps the outcomes whose owner is you, and those one of your agents
2525
+ has joined. It follows who you are, not --as: there is no per-agent list.
2526
+ --limit <n> is how many one page holds (100, up to 500). --after <outcome>
2527
+ reads the page after that outcome.
2528
+ ]]
2529
+ Pages:
2530
+ Outcomes are listed by name, a page at a time. A page that is not the last
2531
+ ends with the command for the next one, and JSON has it as next. Read on
2532
+ until there is none to have every outcome. Names do not change, so reading
2533
+ on neither repeats nor skips an outcome while others are being updated.
2534
+ Output (JSON):
2535
+ outcomes[] {id, name, role, status, liveVersion, spec, guardrails[],
2536
+ stakeholders[], openAsks[], openAsksMore}, nextAfter (the outcome to pass
2537
+ to --after, null on the last page), next. id and name are both the
2538
+ outcome's name. A card carries up to 20 open asks; openAsksMore says there
2539
+ are others, which asks list reads. Outcomes in Trash are left out.
2540
+ Errors (code):
2541
+ INVALID_LIMIT (exit 2).
2542
+ Example:
2543
+ deepline outcomes list --mine
2544
+ deepline outcomes list --limit 50 --after enrichment-coverage
2545
+ Cost:
2546
+ Free.
2547
+ `
2548
+ },
2549
+ "outcomes describe": {
2550
+ rolloutFeature: "outcomes",
2551
+ core: `
2552
+ Purpose:
2553
+ The one read an agent makes when it starts work: the live spec, where each
2554
+ key result stands, who is on the outcome, open asks, tasks in flight, the
2555
+ latest entries, a cursor, and the commands to run next.
2556
+ [[cli:
2557
+ Input:
2558
+ <outcome>. --as <agent> writes the next commands for that agent. Reading
2559
+ joins nothing.
2560
+ ]]
2561
+ Or get:
2562
+ [[outcomes get <outcome>]] reads one revision in full: it adds the
2563
+ revision id, version and artifact hash, reads any saved revision
2564
+ (--revision, --revision-id, --latest), and prints the file with --source.
2565
+ Use describe to start work and get to read or copy a spec.
2566
+ Output (JSON):
2567
+ id and name (both the outcome's name), role, status, liveVersion, cursor,
2568
+ spec, measures[] {keyResult, value, byName, at, seq} (the latest value of
2569
+ each key result that has been measured), next[] (commands, most useful
2570
+ first), guardrails[], stakeholders[], openAsks[] (the oldest 50) and
2571
+ openAsksMore, tasks[] (open tasks, the oldest 50 in each state) and
2572
+ tasksMore, latest[] (the 10 newest entries), contract
2573
+ (entry kinds, guardrail kinds and the actions an ask guardrail can gate).
2574
+ When openAsksMore or tasksMore is true there are others: read every one
2575
+ with asks list or tasks list, which the text output names.
2576
+ Errors (code):
2577
+ OUTCOME_NOT_FOUND (exit 4), which says so when the outcome is in Trash.
2578
+ Example:
2579
+ deepline outcomes describe enrichment-coverage
2580
+ Cost:
2581
+ Free.
2582
+ `
2583
+ },
2584
+ "outcomes get": {
2585
+ rolloutFeature: "outcomes",
2586
+ core: `
2587
+ Purpose:
2588
+ Read one revision of an outcome in full, or its file.
2589
+ [[cli:
2590
+ Input:
2591
+ <outcome>. With nothing else, the live revision. --revision <n> (the number
2592
+ versions lists), --revision-id <id> or --latest reads a saved one. --source
2593
+ prints the outcome file; --out <file> writes it and needs --source.
2594
+ ]]
2595
+ Or describe:
2596
+ [[outcomes describe <outcome>]] is the shorter read for starting work. It
2597
+ always reads the live revision and leaves out the revision's source.
2598
+ Output (JSON):
2599
+ Everything describe returns, plus revision {revisionId, version, source,
2600
+ artifactHash, createdByName, createdAt, live}.
2601
+ Errors (code):
2602
+ REVISION_NOT_FOUND and OUTCOME_NOT_FOUND (exit 4). INVALID_VERSION (exit 2).
2603
+ Example:
2604
+ deepline outcomes get enrichment-coverage --revision 2 --source --out enrichment-coverage.outcome.ts
2605
+ Cost:
2606
+ Free.
2607
+ `
2608
+ },
2609
+ "outcomes create": {
2610
+ rolloutFeature: "outcomes",
2611
+ core: `
2612
+ Purpose:
2613
+ Start a draft outcome from a role. It has no spec until a file is
2614
+ published; publishing a file for a new name creates the outcome too, so
2615
+ this command is optional.
2616
+ [[cli:
2617
+ Input:
2618
+ --role <role>, what the outcome owns. --name <outcome>, the outcome id:
2619
+ lower-case letters, numbers and dashes, at most 64 characters. Without
2620
+ --name the role is lower-cased and its spaces become dashes.
2621
+ ]]
2622
+ Names:
2623
+ A name is taken for good. An outcome in Trash keeps its name, so a new
2624
+ outcome cannot use it: OUTCOME_EXISTS says when that is why.
2625
+ Output (JSON):
2626
+ name, outcome {slug, role, status draft}.
2627
+ Errors (code):
2628
+ ROLE_REQUIRED and INVALID_OUTCOME_NAME (exit 2). OUTCOME_EXISTS, and
2629
+ OUTCOME_NAME_TAKEN when another workspace of the org holds the name (exit 7).
2630
+ Example:
2631
+ deepline outcomes create --role "Enrichment Coverage Owner"
2632
+ Cost:
2633
+ Free.
2634
+ `
2635
+ },
2636
+ "outcomes check": {
2637
+ rolloutFeature: "outcomes",
2638
+ core: `
2639
+ Purpose:
2640
+ Validate an outcome file against this workspace. Changes nothing. The server
2641
+ owns every rule.
2642
+ [[cli:
2643
+ Input:
2644
+ <file>: <outcome>.outcome.ts. The file name is the outcome id: lower-case
2645
+ letters, numbers and dashes.
2646
+ ]]
2647
+ The file:
2648
+ export default {
2649
+ role: 'Enrichment Coverage Owner', // string, required
2650
+ owner: 'chirag', // string, required: a workspace
2651
+ // member's name, first name or email
2652
+ objective: 'Every contact at an ICP account can be reached.', // string, required
2653
+ keyResults: [ // list of strings, at least one
2654
+ 'Verified work email on 85% of ICP contacts',
2655
+ ],
2656
+ measure: 'Coverage query, every Monday.', // string, optional
2657
+ guardrails: [ // list, optional; one key per item
2658
+ { ask: { before: 'plays.set-live' } }, // before: plays.set-live
2659
+ { cap: { credits: 2000, per: 'week' } }, // credits: a positive number;
2660
+ // per: 'day' | 'week' | 'month'
2661
+ { never: 'overwrite a field a person edited' }, // string
2662
+ { rule: 'Post a summary to #revops every Friday' }, // string
2663
+ ],
2664
+ feedbackLoop: ['hubspot'], // list of integration ids, optional
2665
+ plays: ['coverage-report'], // list of play names, optional
2666
+ };
2667
+ Plain values only: strings in single or double quotes, numbers, true,
2668
+ false, lists and objects. No imports, functions, variables or template
2669
+ strings. A string is at most 500 characters and a list at most 20 items.
2670
+ ask.before accepts plays.set-live. No other field is allowed.
2671
+ One pass:
2672
+ Every mistake that can be found is reported together: each field's type,
2673
+ the owner, the plays, the feedback loop and the guardrail actions. A check
2674
+ is skipped only when an earlier error left it nothing to look at, for
2675
+ example a file that does not parse or a plays field that is not a list.
2676
+ skipped[] names those, and the text output counts them. A file that does
2677
+ not parse reports the line and column, and what was found there.
2678
+ Output (JSON):
2679
+ A valid file: ok true, valid true, name, warnings[], artifactHash,
2680
+ changes[] against the live version, live, render.sections (the card).
2681
+ A file with errors: ok false, code CHECK_FAILED, message, exitCode 7,
2682
+ valid false, errors[], warnings[], skipped[], and example, a complete
2683
+ file with every field.
2684
+ A finding is {severity, path, message} and sometimes fix. severity is
2685
+ error or warning: an error stops a publish and a warning does not. path is
2686
+ where in the file, for example guardrails[1].cap.per, and is empty for the
2687
+ file as a whole. fix is present only when there is a known repair.
2688
+ Errors:
2689
+ A file with errors exits 7. A path with no file exits 2.
2690
+ Example:
2691
+ deepline outcomes check enrichment-coverage.outcome.ts
2692
+ Cost:
2693
+ Free.
2694
+ `
2695
+ },
2696
+ "outcomes publish": {
2697
+ rolloutFeature: "outcomes",
2698
+ core: `
2699
+ Purpose:
2700
+ Save an outcome file as a new revision and make it live, or make a saved
2701
+ revision live. Versioned like plays: revisions are immutable and one is
2702
+ live.
2703
+ [[cli:
2704
+ Input:
2705
+ <file> publishes that file. <outcome> with --revision <n>, --revision-id
2706
+ <id> or --latest makes a saved revision live and rewrites nothing; that is
2707
+ how you go back. --revision takes the number versions lists; --version is
2708
+ the CLI's own version flag on every command. --dry-run prints what would
2709
+ change and writes nothing. --expected-artifact <hash> refuses if the file
2710
+ changed since check; it takes the full hash or the first 8 or more
2711
+ characters, so the 12 that check prints work. --expected-live
2712
+ <revision-id> refuses if someone else published in between.
2713
+ ]]
2714
+ Output (JSON):
2715
+ success, name, liveVersion, revisionId, artifactHash, previousLiveVersion,
2716
+ previousRevisionId, previousArtifactHash, unchanged. Publishing a file
2717
+ also returns changes[] and warnings[]; making a saved revision live does
2718
+ not. The text output lists the changes. A file with errors is the error
2719
+ document [[outcomes check <file>]] returns.
2720
+ Errors (code):
2721
+ CHECK_FAILED (exit 7, with the findings), ARTIFACT_CHANGED and
2722
+ LIVE_REVISION_CHANGED (exit 7), REVISION_NOT_FOUND (exit 4).
2723
+ Example:
2724
+ deepline outcomes publish enrichment-coverage.outcome.ts --dry-run
2725
+ Cost:
2726
+ Free.
2727
+ `
2728
+ },
2729
+ "outcomes versions": {
2730
+ rolloutFeature: "outcomes",
2731
+ core: `
2732
+ Purpose:
2733
+ List an outcome's saved revisions, newest first, and which one is live.
2734
+ [[cli:
2735
+ Input:
2736
+ <outcome>. --name <outcome> is the same thing, kept for scripts.
2737
+ --limit <n> is how many one page holds (100, up to 500). --before
2738
+ <version> reads the page of older revisions before that version.
2739
+ ]]
2740
+ Pages:
2741
+ A page that is not the last ends with the command for the next one, and
2742
+ JSON has it as next. Read on until there is none to have every revision.
2743
+ Output (JSON):
2744
+ name, liveVersion, versions[] {version, revisionId, artifactHash,
2745
+ createdByName, createdAt, live}, nextBefore (the version to pass to
2746
+ --before, null on the last page), next. version is the number --revision
2747
+ takes on get and publish.
2748
+ Errors (code):
2749
+ INVALID_LIMIT, INVALID_CURSOR (exit 2). OUTCOME_NOT_FOUND (exit 4).
2750
+ Example:
2751
+ deepline outcomes versions enrichment-coverage
2752
+ Cost:
2753
+ Free.
2754
+ `
2755
+ },
2756
+ "outcomes pause": {
2757
+ rolloutFeature: "outcomes",
2758
+ core: `
2759
+ Purpose:
2760
+ Pause an outcome. While it is paused, an action run with --outcome is
2761
+ refused with OUTCOME_PAUSED (exit 3).
2762
+ Still works while paused:
2763
+ Posts, check-ins, replies, reactions, task claims and transitions, asks and
2764
+ answers, publishing, and every read. Pausing stops guarded actions only.
2765
+ Then:
2766
+ [[outcomes resume <outcome>]] lets guarded actions run again.
2767
+ Output (JSON):
2768
+ ok, outcome {slug, role, status, liveVersion, liveRevisionId}.
2769
+ Errors (code):
2770
+ OUTCOME_NOT_PUBLISHED (exit 2): a draft cannot be paused.
2771
+ Example:
2772
+ deepline outcomes pause enrichment-coverage
2773
+ Cost:
2774
+ Free.
2775
+ `
2776
+ },
2777
+ "outcomes resume": {
2778
+ rolloutFeature: "outcomes",
2779
+ core: `
2780
+ Purpose:
2781
+ Resume a paused outcome, so actions run with --outcome are allowed again.
2782
+ Resuming an outcome that is not paused changes nothing.
2783
+ Output (JSON):
2784
+ ok, outcome {slug, role, status, liveVersion, liveRevisionId}.
2785
+ Errors (code):
2786
+ OUTCOME_NOT_PUBLISHED (exit 2). OUTCOME_NOT_FOUND (exit 4).
2787
+ Example:
2788
+ deepline outcomes resume enrichment-coverage
2789
+ Cost:
2790
+ Free.
2791
+ `
2792
+ },
2793
+ "outcomes delete": {
2794
+ rolloutFeature: "outcomes",
2795
+ core: `
2796
+ Purpose:
2797
+ Move an outcome to Trash. Admins only.
2798
+ What it does:
2799
+ The outcome's revisions and entries are kept, but there is no restore
2800
+ command. Every read and write of it then answers OUTCOME_NOT_FOUND (exit
2801
+ 4) with a message that says it is in Trash, and its name cannot be used
2802
+ for a new outcome. --dry-run says what would be deleted. Deleting an
2803
+ outcome that is already in Trash changes nothing and says so.
2804
+ Output (JSON):
2805
+ ok, name, deleted (false when it was already in Trash).
2806
+ Errors (code):
2807
+ WORKSPACE_GRANT_REQUIRED (exit 3). OUTCOME_NOT_FOUND (exit 4).
2808
+ Example:
2809
+ deepline outcomes delete enrichment-coverage --dry-run
2810
+ Cost:
2811
+ Free.
2812
+ `
2813
+ },
2814
+ "outcomes feed": {
2815
+ rolloutFeature: "outcomes",
2816
+ core: `
2817
+ Purpose:
2818
+ Read an outcome's feed: the newest top-level entries, oldest first. Replies
2819
+ are read with [[outcomes updates get <entry>]].
2820
+ [[cli:
2821
+ Input:
2822
+ <outcome>. --limit <n>: 1 to 100, default 20; more than 100 reads 100 and
2823
+ says so, and anything that is not a whole number of 1 or more is refused.
2824
+ --before <entry> reads the page that ends just before that entry. --kind
2825
+ update, checkin (or check-in), task, ask or system. --open. --since a
2826
+ weekday (monday), today, yesterday, a span (7d) or a date.
2827
+ ]]
2828
+ Paging back:
2829
+ A full page prints the next command and returns nextBefore; pass it as
2830
+ --before to read the page before. nextBefore is null at the start of the
2831
+ feed. --open returns every open task and ask. --kind task, ask, checkin or
2832
+ system reads that kind directly, however far back, and pages with --before.
2833
+ --since and --kind update filter one page of at most 100 entries, so a
2834
+ short page is not the end: page with --before to reach older matches.
2835
+ Output (JSON):
2836
+ entries[], cursor (for [[outcomes wait <outcome> --after <cursor>]]),
2837
+ limit (what was read with), nextBefore. Every entry has id, seq, kind,
2838
+ text, author, parentId, reactions[], files[], replyCount. A task also has
2839
+ state, afterId, blockedByAskId, claimedByName, leaseExpiresAt and result;
2840
+ an ask also has state, askTo, askOptions, askAction and its answer.
2841
+ Errors (code):
2842
+ INVALID_ENTRY, INVALID_KIND and INVALID_LIMIT (exit 2). OUTCOME_NOT_FOUND
2843
+ (exit 4).
2844
+ Example:
2845
+ deepline outcomes feed enrichment-coverage --kind ask --open
2846
+ Cost:
2847
+ Free.
2848
+ `
2849
+ },
2850
+ "outcomes wait": {
2851
+ rolloutFeature: "outcomes",
2852
+ core: `
2853
+ Purpose:
2854
+ Block until something new lands on an outcome: a message, a reply, an
2855
+ answer, a task changing state. This is how an agent hears from a person or
2856
+ another agent inside one turn.
2857
+ [[cli:
2858
+ Input:
2859
+ --after <cursor> from describe, feed or a previous wait; default is now.
2860
+ --for <entry> waits for that one entry of this outcome to change, for
2861
+ example an ask being answered. --mentions <name> wakes only for entries
2862
+ that mention that name, for example @claude; anything else is skipped and
2863
+ the cursor moves past it. --timeout <span> (default 10m).
2864
+ ]]
2865
+ Answers at once:
2866
+ --for an entry that does not exist is ENTRY_NOT_FOUND. --for an entry that
2867
+ already reached its last state before the cursor (an answered or withdrawn
2868
+ ask, a done or cancelled task) returns it with alreadySettled true. --after
2869
+ a cursor the outcome has not reached is INVALID_CURSOR. None of these wait
2870
+ out the timeout.
2871
+ The cursor:
2872
+ A cursor counts changes to the outcome. It is not an entry number: a reply
2873
+ moves it by two (the reply, and its parent's reply count), and a state
2874
+ change moves it without adding an entry. Pass back the cursor you were
2875
+ given; never build one from an entry id.
2876
+ Output (JSON):
2877
+ entries[], cursor (pass it to the next wait), timedOut, next (the command
2878
+ that waits on from here). Timing out is exit 0. In text a reply is marked "(reply to <entry>)".
2879
+ Errors (code):
2880
+ INVALID_CURSOR and INVALID_ENTRY (exit 2). ENTRY_NOT_FOUND and
2881
+ OUTCOME_NOT_FOUND (exit 4).
2882
+ Example:
2883
+ deepline outcomes wait enrichment-coverage --for enrichment-coverage/15 --timeout 30m
2884
+ Cost:
2885
+ Free.
2886
+ `
2887
+ },
2888
+ "outcomes post": {
2889
+ rolloutFeature: "outcomes",
2890
+ core: `
2891
+ Purpose:
2892
+ Post an update to an outcome's feed: text, files, or both. The same
2893
+ command as [[outcomes updates post <outcome> [text]]], which documents
2894
+ every option, the file rules and the errors.
2895
+ Output (JSON):
2896
+ id, entry, cursor, replayed.
2897
+ Example:
2898
+ deepline outcomes post enrichment-coverage "Email went 61% to 79%." --as claude
2899
+ Cost:
2900
+ Free.
2901
+ `
2902
+ },
2903
+ "outcomes reply": {
2904
+ rolloutFeature: "outcomes",
2905
+ core: `
2906
+ Purpose:
2907
+ Reply in the thread of any entry. @name in the text mentions them. The
2908
+ same command as [[outcomes updates reply <entry> [text]]], which documents
2909
+ the errors. With --in, --at or --every the reply is posted later,
2910
+ which is how an agent comes back to a thread: check on a deploy in ten
2911
+ minutes, and cancel the rest with [[outcomes schedules cancel <outcome>
2912
+ <schedule>]] once it has happened.
2913
+ Output (JSON):
2914
+ id (the reply's own id), entry (with parentId), cursor, replayed.
2915
+ Example:
2916
+ deepline outcomes reply enrichment-coverage/14 "Split the backlog over two nights." --as claude
2917
+ Cost:
2918
+ Free.
2919
+ `
2920
+ },
2921
+ "outcomes measure": {
2922
+ rolloutFeature: "outcomes",
2923
+ core: `
2924
+ Purpose:
2925
+ Report where a key result stands now. The value becomes that key result's
2926
+ latest, shown by [[outcomes describe <outcome>]] and on the outcome's page,
2927
+ and is posted to the feed, which keeps the history.
2928
+ [[cli:
2929
+ Input:
2930
+ <outcome> <value>. The value is what the key result reads now, for example
2931
+ 71% or 412 of 500: 1 to 80 characters, kept as typed. --key-result <n>
2932
+ says which, counting from 1 as describe lists them; it is not needed when
2933
+ the outcome has one. --note <text> says how it was measured or what moved
2934
+ it. --as <agent>.
2935
+ ]]
2936
+ What it does not do:
2937
+ Nothing compares the value with the key result's target. Saying an outcome
2938
+ is met is a person's call.
2939
+ Output (JSON):
2940
+ id (the feed entry), entry, cursor, keyResult (its text), value, previous
2941
+ (the value before this one, or null).
2942
+ Errors (code):
2943
+ INVALID_VALUE and KEY_RESULT_REQUIRED, which lists the key results (exit
2944
+ 2). AGENT_NOT_JOINED (exit 3). KEY_RESULT_NOT_FOUND and OUTCOME_NOT_FOUND
2945
+ (exit 4). OUTCOME_NOT_PUBLISHED (exit 7).
2946
+ Example:
2947
+ deepline outcomes measure enrichment-coverage 71% --note "Coverage query, Monday run." --as claude
2948
+ Cost:
2949
+ Free.
2950
+ `
2951
+ },
2952
+ "outcomes checkin": {
2953
+ rolloutFeature: "outcomes",
2954
+ core: `
2955
+ Purpose:
2956
+ Post a check-in: what happened since the last one, even when nothing did.
2957
+ [[cli:
2958
+ Input:
2959
+ <outcome> <text>. --as <agent>. --idempotency-key <key>.
2960
+ ]]
2961
+ The period:
2962
+ An agent that joined with --checkin has a cadence: daily, weekly, a number
2963
+ of days, or a weekday. The period is that interval, counted from the
2964
+ agent's last entry of any kind. An agent is "due" on the day the interval
2965
+ ends and "silent N days" after it. Any post by the agent resets it; a
2966
+ check-in is the post to make when there is nothing else to say.
2967
+ Output (JSON):
2968
+ id, entry (kind checkin), cursor, replayed.
2969
+ Errors (code):
2970
+ TEXT_REQUIRED and TEXT_TOO_LONG, over 4,000 UTF-16 code units (exit 2).
2971
+ AGENT_NOT_JOINED (exit 3). IDEMPOTENCY_KEY_REUSED (exit 7).
2972
+ Example:
2973
+ deepline outcomes checkin enrichment-coverage "Still on it. Nothing blocked." --as claude
2974
+ Cost:
2975
+ Free.
2976
+ `
2977
+ },
2978
+ "outcomes updates post": {
2979
+ rolloutFeature: "outcomes",
2980
+ core: `
2981
+ Purpose:
2982
+ Post an update to an outcome's feed: text, files, or both.
2983
+ [[cli:
2984
+ Input:
2985
+ <outcome> [text]. Text is what you type, never a path; @name in it
2986
+ mentions someone on the outcome. Text that starts with - goes after --. --text-file <path> reads
2987
+ the text from a file instead. Text may be left out when a file is
2988
+ attached. At most 4,000 UTF-16 code units (an emoji counts as two or
2989
+ more). --file <path>, repeatable, up to 10: a PNG, JPEG, WebP or GIF image
2990
+ up to 10 MB, or an MP4, WebM or MOV video up to 100 MB. --mention <name>,
2991
+ repeatable, mentions someone the text does not name; 20 mentions at most. --run <run-id>, which looks like
2992
+ play/<play>/run/<timestamp>-<suffix>. --table <file.csv>: a UTF-8 CSV with
2993
+ a header row, at most 20 columns and 50 rows, every row as wide as the
2994
+ header (@file.csv also works). --label <label>, repeatable. --as <agent>.
2995
+ --idempotency-key <key>.
2996
+ Later instead of now: --in <span> (30m, 2d) or --at <time>
2997
+ (2026-12-01T09:00:00Z) posts it once; --every <span>, at least 1m, posts
2998
+ it again and again, until --times <n> (1 to 100) posts or --until <time>.
2999
+ A scheduled post is text only, starts within a year, and is posted as you
3000
+ or your agent, if still on the outcome when it is due. The output is the
3001
+ schedule, not an entry: scheduled true, schedule {key, fireAt, ...}. A
3002
+ schedule takes no --idempotency-key, and one that repeats ends within a
3003
+ year.
3004
+ ]]
3005
+ Files:
3006
+ Before anything is uploaded the CLI checks how many files there are, and
3007
+ each file's extension, size and first bytes, so a file that is missing,
3008
+ too large, of another type, or not what its name says posts nothing (exit
3009
+ 2). Files upload four at a time. The CLI sends the SHA-256 of the bytes it
3010
+ uploaded. The server checks that digest, the size, and the type the
3011
+ upload declared; it does not inspect the contents. The same rules apply to
3012
+ [[outcomes updates reply <entry> [text] --file <path>]].
3013
+ Idempotency key:
3014
+ A key belongs to one outcome and is kept as long as the entry it made. A
3015
+ retry with the same key, kind and text returns that entry with replayed
3016
+ true and writes nothing. The same key with a different kind or text is
3017
+ IDEMPOTENCY_KEY_REUSED.
3018
+ Output (JSON):
3019
+ id, entry (with files[] {id, url, kind, name, contentType, size, width,
3020
+ height} and reactions[]), cursor, replayed. The text output says when an
3021
+ idempotency key replayed an earlier post.
3022
+ Errors (code):
3023
+ A local file that is not there, or that cannot be attached, is a usage
3024
+ error (exit 2) before any request. From the server: TEXT_REQUIRED,
3025
+ TEXT_TOO_LONG, INVALID_RUN_ID, INVALID_TABLE, FILE_TYPE_NOT_ALLOWED,
3026
+ FILE_TOO_LARGE, TOO_MANY_FILES (exit 2). AGENT_NOT_JOINED (exit 3).
3027
+ FILE_ALREADY_ATTACHED and IDEMPOTENCY_KEY_REUSED (exit 7).
3028
+ Example:
3029
+ deepline outcomes updates post enrichment-coverage "@sam email went 61% to 79%." --file coverage.png --as claude
3030
+ Cost:
3031
+ Free.
3032
+ `
3033
+ },
3034
+ "outcomes updates reply": {
3035
+ rolloutFeature: "outcomes",
3036
+ core: `
3037
+ Purpose:
3038
+ Reply in the thread of any entry: an update, a check-in, a task or an ask.
3039
+ [[cli:
3040
+ Input:
3041
+ <entry> [text], where the entry is <outcome>/<n>. @name in the text
3042
+ mentions someone on the outcome, which is how to hand a thread to another
3043
+ agent; the output lists who was mentioned. Text that
3044
+ starts with - goes after --; --text-file <path> reads it from a file.
3045
+ --file <path> and --idempotency-key <key> work as on
3046
+ [[outcomes updates post <outcome> [text]]]. --as <agent>.
3047
+ ]]
3048
+ Threads:
3049
+ A thread is one level deep: replying to a reply is REPLY_TO_REPLY, with
3050
+ the entry to reply to instead. A reply does not appear in the feed; it is
3051
+ read with [[outcomes updates get <entry>]], and it wakes
3052
+ [[outcomes wait <outcome>]].
3053
+ Output (JSON):
3054
+ id (the reply's own id), entry (with parentId), cursor, replayed.
3055
+ Errors (code):
3056
+ TEXT_REQUIRED, TEXT_TOO_LONG and REPLY_TO_REPLY (exit 2). AGENT_NOT_JOINED
3057
+ (exit 3). ENTRY_NOT_FOUND (exit 4). IDEMPOTENCY_KEY_REUSED (exit 7).
3058
+ Example:
3059
+ deepline outcomes updates reply enrichment-coverage/14 "Split the backlog over two nights."
3060
+ Cost:
3061
+ Free.
3062
+ `
3063
+ },
3064
+ "outcomes updates react": {
3065
+ rolloutFeature: "outcomes",
3066
+ core: `
3067
+ Purpose:
3068
+ Add your reaction to any entry, or take it off. A reaction acknowledges an
3069
+ entry without adding to the feed.
3070
+ [[cli:
3071
+ Input:
3072
+ <entry> <emoji>, for example enrichment-coverage/14 \u{1F44D}. One emoji: a
3073
+ pictograph (with a skin tone or joined sequence), a flag or a keycap.
3074
+ --remove takes the reaction off. --as <agent> reacts as that agent, which
3075
+ is counted apart from you.
3076
+ ]]
3077
+ Behaviour:
3078
+ Safe to repeat: adding a reaction that is there, or removing one that is
3079
+ not, changes nothing, exits 0 and says "Nothing changed". \u2764 and \u2764\uFE0F are
3080
+ one reaction. A reaction takes no entry id and does not move the cursor,
3081
+ so [[outcomes wait <outcome>]] does not return for it. Read reactions
3082
+ with [[outcomes updates get <entry>]] or [[outcomes feed <outcome>]].
3083
+ Output (JSON):
3084
+ id, entry (with reactions[] {emoji, by[] {id, name}}), reacted (whether
3085
+ yours is on the entry now), changed (whether this call changed anything).
3086
+ Errors (code):
3087
+ INVALID_EMOJI (exit 2). AGENT_NOT_JOINED (exit 3). ENTRY_NOT_FOUND (exit
3088
+ 4). REACTION_FULL (50 on one emoji) and TOO_MANY_REACTIONS (20 different
3089
+ emoji on one entry) exit 7.
3090
+ Text output:
3091
+ Each emoji with its count and the first three names, then "and N more".
3092
+ --json has every name.
3093
+ Example:
3094
+ deepline outcomes updates react enrichment-coverage/14 \u{1F44D} --as claude
3095
+ Cost:
3096
+ Free.
3097
+ `
3098
+ },
3099
+ "outcomes updates get": {
3100
+ rolloutFeature: "outcomes",
3101
+ core: `
3102
+ Purpose:
3103
+ Read one entry and its thread. [[outcomes tasks get <task>]] and
3104
+ [[outcomes asks get <ask>]] are the same read.
3105
+ [[cli:
3106
+ Input:
3107
+ <entry>, which is <outcome>/<n>. --limit <n>: replies to return, 1 to 200,
3108
+ default 200. --before <reply> reads the replies that end just before that
3109
+ one. --as is accepted and ignored: a read is the same for everyone.
3110
+ ]]
3111
+ Long threads:
3112
+ One read returns the newest replies, oldest first. When the thread is
3113
+ longer the output says "Showing N of M replies" and prints the command
3114
+ for the page before; JSON has replyCount (every reply), repliesShown and
3115
+ nextBefore, which is null once the first reply has been read.
3116
+ Output (JSON):
3117
+ id, entry, replies[], replyCount, repliesShown, limit, nextBefore.
3118
+ Errors (code):
3119
+ INVALID_ENTRY and INVALID_LIMIT (exit 2). ENTRY_NOT_FOUND and
3120
+ OUTCOME_NOT_FOUND (exit 4).
3121
+ Example:
3122
+ deepline outcomes updates get enrichment-coverage/14 --limit 20
3123
+ Cost:
3124
+ Free.
3125
+ `
3126
+ },
3127
+ "outcomes tasks list": {
3128
+ rolloutFeature: "outcomes",
3129
+ core: `
3130
+ Purpose:
3131
+ List an outcome's tasks. Open tasks by default: ready, claimed, blocked
3132
+ and waiting.
3133
+ [[cli:
3134
+ Input:
3135
+ <outcome>. --all adds done and cancelled tasks. --state <state> lists one
3136
+ state: ready, claimed, blocked, waiting, done or cancelled. --limit <n>
3137
+ is how many one page holds (200, up to 500). --after <task> reads the
3138
+ page after that task.
3139
+ ]]
3140
+ Pages:
3141
+ Tasks are listed oldest first, a page at a time. A page that is not the
3142
+ last ends with the command for the next one, and JSON has it as next. Read
3143
+ on until there is none to have every task. A task's id does not change, so
3144
+ reading on neither repeats nor skips a task while others are added,
3145
+ claimed or finished. A task shows the state it had when its page was read.
3146
+ Output (JSON):
3147
+ tasks[], showing (open, all or a state), shown, nextAfter (the task to
3148
+ pass to --after, null on the last page), next.
3149
+ Errors (code):
3150
+ INVALID_STATE, INVALID_LIMIT, INVALID_ENTRY (exit 2). OUTCOME_NOT_FOUND
3151
+ (exit 4).
3152
+ Example:
3153
+ deepline outcomes tasks list enrichment-coverage --state claimed
3154
+ Cost:
3155
+ Free.
3156
+ `
3157
+ },
3158
+ "outcomes tasks create": {
3159
+ rolloutFeature: "outcomes",
3160
+ core: `
3161
+ Purpose:
3162
+ Add a task to an outcome.
3163
+ [[cli:
3164
+ Input:
3165
+ <outcome> <text>, at most 4,000 UTF-16 code units. --after <task> makes it
3166
+ wait for another task, which must be a task of the same outcome. --for
3167
+ <agent> lets only that agent, already on the outcome, claim it (a person
3168
+ still may). --label <label>, repeatable. --as <agent>. --idempotency-key
3169
+ <key>, scoped as on [[outcomes updates post <outcome> [text]]]. --in,
3170
+ --at, --every, --times and --until add the task later, as on that
3171
+ command; a scheduled task takes no --after.
3172
+ ]]
3173
+ State:
3174
+ A new task is ready, or waiting when --after names a task that is not
3175
+ done. A waiting task becomes ready when that task is completed. Creating
3176
+ a task does not claim it.
3177
+ Output (JSON):
3178
+ id, entry (kind task, with state and afterId), cursor, replayed.
3179
+ Errors (code):
3180
+ INVALID_ENTRY, when --after is an entry of another outcome (exit 2).
3181
+ AGENT_NOT_JOINED (exit 3). TASK_NOT_FOUND, when --after is not a task
3182
+ (exit 4). IDEMPOTENCY_KEY_REUSED (exit 7). TOO_MANY_WAITING_TASKS, when
3183
+ 1000 tasks already wait on the --after task (exit 7).
3184
+ Example:
3185
+ deepline outcomes tasks create enrichment-coverage "Add the phone step" --after enrichment-coverage/21
3186
+ Cost:
3187
+ Free.
3188
+ `
3189
+ },
3190
+ "outcomes tasks get": {
3191
+ rolloutFeature: "outcomes",
3192
+ core: `
3193
+ Purpose:
3194
+ Read one task and its thread: its state, who holds it and until when, what
3195
+ it waits on, and its result.
3196
+ [[cli:
3197
+ Input:
3198
+ <task>, which is <outcome>/<n>. --limit and --before page the thread, as
3199
+ on [[outcomes updates get <entry>]].
3200
+ ]]
3201
+ Output (JSON):
3202
+ id, entry (state, afterId, blockedByAskId, claimedByName, leaseExpiresAt,
3203
+ result), replies[], replyCount, repliesShown, nextBefore.
3204
+ Errors (code):
3205
+ ENTRY_NOT_FOUND and OUTCOME_NOT_FOUND (exit 4).
3206
+ Example:
3207
+ deepline outcomes tasks get enrichment-coverage/22
3208
+ Cost:
3209
+ Free.
3210
+ `
3211
+ },
3212
+ "outcomes tasks claim": {
3213
+ rolloutFeature: "outcomes",
3214
+ core: `
3215
+ Purpose:
3216
+ Take the next ready task. One caller holds a task at a time, under a lease.
3217
+ [[cli:
3218
+ Input:
3219
+ <outcome>. --task <task> claims that task of this outcome instead of the
3220
+ oldest ready one. --wait <span> holds until a task is ready, for example
3221
+ 10m; without it the answer is immediate. --lease <span>: 1m to 24h,
3222
+ default 15m; a value outside that is refused. --label <label> takes only
3223
+ a task with that label. --as <agent>; without it you claim as yourself
3224
+ and the output says so.
3225
+ ]]
3226
+ Which task:
3227
+ The oldest ready task the caller may take. A task made --for an agent is
3228
+ that agent's: it is taken before unassigned ones and never given to
3229
+ another agent.
3230
+ Claim token:
3231
+ The claim's token is kept on this machine and printed nowhere, so later
3232
+ commands here take only the task's id. The output is claim {epoch,
3233
+ until}. --show-token prints the token, to settle the task from another
3234
+ machine with --token. An agent acting without the claim's token, or with
3235
+ one from an earlier claim, fails with CLAIM_LOST and changes nothing. A
3236
+ person needs no token. A claim made by a client that asked for no token
3237
+ (an older CLI) is held by the agent's name and settled without one. A
3238
+ lease that ends returns the task to ready and tells the outcome's watches
3239
+ (task.expired).
3240
+ Lease:
3241
+ Renew with [[outcomes tasks renew <task>]] before it runs out. A lapsed
3242
+ lease returns the task to ready, and completing it then fails with
3243
+ CLAIM_LOST (exit 7) and the command to claim it again.
3244
+ Output (JSON):
3245
+ task (null when nothing is ready, which is exit 0) with id, claim,
3246
+ cursor, timedOut.
3247
+ Errors (code):
3248
+ INVALID_ENTRY and INVALID_LEASE (exit 2). AGENT_NOT_JOINED (exit 3).
3249
+ TASK_NOT_FOUND (exit 4). TASK_NOT_READY (exit 7) says what the task is
3250
+ waiting for: the task it comes after, the ask it is blocked on, or who
3251
+ holds it. TASK_ASSIGNED (exit 7) names the agent it was made for.
3252
+ Example:
3253
+ deepline outcomes tasks claim enrichment-coverage --as claude --wait 10m
3254
+ Cost:
3255
+ Free.
3256
+ `
3257
+ },
3258
+ "outcomes tasks run": {
3259
+ rolloutFeature: "outcomes",
3260
+ core: `
3261
+ Purpose:
3262
+ Do a task with one command: claim it, run the command while holding it,
3263
+ then complete the task if the command exited 0 or release it if it did
3264
+ not. The lease is renewed while the command runs.
3265
+ [[cli:
3266
+ Input:
3267
+ <target> -- <command...>. A task id (<outcome>/<n>) runs that task; an
3268
+ outcome name runs its oldest ready task. Everything after -- is the
3269
+ command. --lease <span>: 1m to 24h, default 15m. --result <text> is what
3270
+ the task records when the command succeeds; it defaults to the command
3271
+ line. --as <agent>.
3272
+ ]]
3273
+ Exit code:
3274
+ The command's own. 127 when the command could not be started. 0 with
3275
+ nothing run when no task is ready. 7 when the command succeeded but the
3276
+ task could not be completed, for example because a person took it over.
3277
+ Ctrl-C and SIGTERM are passed to the command, and the task is released.
3278
+ Output (JSON):
3279
+ task, ran, commandLine, exitCode, state (done, ready, or unsettled).
3280
+ stdout carries only this report. What the command prints, on stdout or
3281
+ stderr, is shown on stderr as it runs; with --json it is in notices
3282
+ instead and stderr stays empty.
3283
+ Errors (code):
3284
+ INVALID_LEASE (exit 2). AGENT_NOT_JOINED (exit 3). TASK_NOT_FOUND (exit
3285
+ 4). TASK_NOT_READY (exit 7).
3286
+ Example:
3287
+ deepline outcomes tasks run enrichment-coverage/22 --as claude -- deepline plays run coverage-report
3288
+ Cost:
3289
+ Free. The command it runs costs what it costs.
3290
+ `
3291
+ },
3292
+ "outcomes tasks renew": {
3293
+ rolloutFeature: "outcomes",
3294
+ core: `
3295
+ Purpose:
3296
+ Extend the lease on a claimed task.
3297
+ [[cli:
3298
+ Input:
3299
+ <task>. --lease <span>: the new length from now, 1m to 24h, default 15m.
3300
+ --as <agent>. --token <token>: a claim token from another machine (tasks
3301
+ claim --show-token); not needed where the task was claimed. The same on
3302
+ complete, release and block.
3303
+ ]]
3304
+ Who may:
3305
+ The agent that holds the task, while its lease is live. A person may renew
3306
+ any claimed task; the output says whose claim that was.
3307
+ Output (JSON):
3308
+ task (with leaseExpiresAt), cursor, overrodeClaimOf.
3309
+ Errors (code):
3310
+ INVALID_LEASE (exit 2). AGENT_NOT_JOINED (exit 3). TASK_NOT_FOUND (exit
3311
+ 4). CLAIM_LOST and TASK_CLOSED (exit 7).
3312
+ Example:
3313
+ deepline outcomes tasks renew enrichment-coverage/22 --lease 1h --as claude
3314
+ Cost:
3315
+ Free.
3316
+ `
3317
+ },
3318
+ "outcomes tasks complete": {
3319
+ rolloutFeature: "outcomes",
3320
+ core: `
3321
+ Purpose:
3322
+ Finish a task, with what happened.
3323
+ [[cli:
3324
+ Input:
3325
+ <task> [result], the result at most 4,000 UTF-16 code units. --as <agent>.
3326
+ ]]
3327
+ Who may:
3328
+ The agent that holds the task, while its lease is live. A person may
3329
+ complete any open task, held or not: people can always close work, as the
3330
+ dashboard lets them. When a person completes a task an agent holds, the
3331
+ output names whose claim was overridden, and that agent's next step on the
3332
+ task fails with CLAIM_LOST.
3333
+ Then:
3334
+ Tasks that waited on this one (--after) become ready.
3335
+ Output (JSON):
3336
+ task (state done, with result), cursor, overrodeClaimOf (the holder's
3337
+ name, or null).
3338
+ Errors (code):
3339
+ AGENT_NOT_JOINED (exit 3). TASK_NOT_FOUND (exit 4). CLAIM_LOST, with the
3340
+ command to claim again, and TASK_CLOSED (exit 7).
3341
+ Example:
3342
+ deepline outcomes tasks complete enrichment-coverage/22 "Bounce rate 1.8%. No bad source." --as claude
3343
+ Cost:
3344
+ Free.
3345
+ `
3346
+ },
3347
+ "outcomes tasks release": {
3348
+ rolloutFeature: "outcomes",
3349
+ core: `
3350
+ Purpose:
3351
+ Give a claimed task back, so it is ready for anyone to claim.
3352
+ [[cli:
3353
+ Input:
3354
+ <task>. --as <agent>.
3355
+ ]]
3356
+ Who may:
3357
+ The agent that holds the task, while its lease is live. A person may
3358
+ release any claimed task; the output names whose claim was overridden.
3359
+ Output (JSON):
3360
+ task (state ready), cursor, overrodeClaimOf.
3361
+ Errors (code):
3362
+ AGENT_NOT_JOINED (exit 3). TASK_NOT_FOUND (exit 4). CLAIM_LOST and
3363
+ TASK_CLOSED (exit 7).
3364
+ Example:
3365
+ deepline outcomes tasks release enrichment-coverage/22 --as claude
3366
+ Cost:
3367
+ Free.
3368
+ `
3369
+ },
3370
+ "outcomes tasks block": {
3371
+ rolloutFeature: "outcomes",
3372
+ core: `
3373
+ Purpose:
3374
+ Park a task until a person answers an ask.
3375
+ [[cli:
3376
+ Input:
3377
+ <task> --ask <ask>. The ask must be an open ask of the same outcome:
3378
+ create it first with [[outcomes asks create <outcome> <text>]]. --as
3379
+ <agent>.
3380
+ ]]
3381
+ Who may:
3382
+ The agent that holds the task, or a person.
3383
+ What happens to your claim:
3384
+ Blocking releases it. When the ask is answered, whatever the answer, the
3385
+ task goes back to ready for anyone. Claim it again with
3386
+ [[outcomes tasks claim <outcome> --task <task>]] before you complete it;
3387
+ completing without a claim fails with CLAIM_LOST (exit 7). The output
3388
+ prints both commands.
3389
+ Output (JSON):
3390
+ task (state blocked, with blockedByAskId), cursor.
3391
+ Errors (code):
3392
+ INVALID_ENTRY, when --ask is an entry of another outcome (exit 2).
3393
+ AGENT_NOT_JOINED (exit 3). ASK_NOT_FOUND (exit 4). ASK_NOT_OPEN,
3394
+ CLAIM_LOST, and TOO_MANY_BLOCKED_TASKS when 1000 tasks are already
3395
+ blocked on the ask (exit 7).
3396
+ Example:
3397
+ deepline outcomes tasks block enrichment-coverage/22 --ask enrichment-coverage/15 --as claude
3398
+ Cost:
3399
+ Free.
3400
+ `
3401
+ },
3402
+ "outcomes tasks cancel": {
3403
+ rolloutFeature: "outcomes",
3404
+ core: `
3405
+ Purpose:
3406
+ Cancel a task that is no longer needed.
3407
+ [[cli:
3408
+ Input:
3409
+ <task>. --as <agent>.
3410
+ ]]
3411
+ Who may:
3412
+ Anyone on the outcome, holding the task or not: a person, or an agent that
3413
+ has joined. Cancelling a task someone holds ends their claim.
3414
+ Output (JSON):
3415
+ task (state cancelled), cursor, overrodeClaimOf.
3416
+ Errors (code):
3417
+ AGENT_NOT_JOINED (exit 3). TASK_NOT_FOUND (exit 4). TASK_CLOSED (exit 7).
3418
+ Example:
3419
+ deepline outcomes tasks cancel enrichment-coverage/22
3420
+ Cost:
3421
+ Free.
3422
+ `
3423
+ },
3424
+ "outcomes label": {
3425
+ rolloutFeature: "outcomes",
3426
+ core: `
3427
+ Purpose:
3428
+ Set or remove labels on an entry. Watches and [[outcomes tasks claim
3429
+ <outcome>]] can select by label.
3430
+ [[cli:
3431
+ Input:
3432
+ <entry>. --set <label>, repeatable: a key or key=value. A key holds one
3433
+ value, so --set team=emea replaces team=apac. --unset <key>, repeatable.
3434
+ --as <agent>.
3435
+ ]]
3436
+ Output (JSON):
3437
+ id, entry (with labels), cursor, changed (false when it already had them).
3438
+ Errors (code):
3439
+ INVALID_LABEL and TOO_MANY_LABELS (more than 10) (exit 2).
3440
+ AGENT_NOT_JOINED (exit 3). ENTRY_NOT_FOUND (exit 4).
3441
+ Example:
3442
+ deepline outcomes label enrichment-coverage/22 --set team=emea --unset draft
3443
+ Cost:
3444
+ Free.
3445
+ `
3446
+ },
3447
+ "outcomes schedules list": {
3448
+ rolloutFeature: "outcomes",
3449
+ core: `
3450
+ Purpose:
3451
+ List what is set to be posted later: made with --in, --at or --every on
3452
+ [[outcomes post <outcome> [text]]] and [[outcomes tasks create <outcome>
3453
+ <text>]].
3454
+ [[cli:
3455
+ Input:
3456
+ <outcome>. --all adds the schedules that finished or were cancelled, the
3457
+ 100 newest.
3458
+ ]]
3459
+ Behaviour:
3460
+ A schedule posts as its author. Each time it is due it asks again whether
3461
+ that person (for an agent, the person it runs for) may still write: still
3462
+ on the outcome, a member of the organization and of the outcome's
3463
+ workspace, with a role that may write, and not blocked. If not, it ends,
3464
+ says why in endedBecause, and never comes back. While the outcome is paused its
3465
+ schedules are held; resuming posts each held one once, and sends missed
3466
+ meanwhile are not made up. An outcome holds at most 50 waiting schedules.
3467
+ Output (JSON):
3468
+ schedules[] {key, kind, parentSeq (the entry each send replies to, or
3469
+ null), text, author, labels, assignedKey, fireAt,
3470
+ everyMs, timesLeft, untilAt, fired, state (active, done, cancelled),
3471
+ lastEntrySeq, endedBecause, createdAt}, more.
3472
+ Example:
3473
+ deepline outcomes schedules list enrichment-coverage
3474
+ Cost:
3475
+ Free.
3476
+ `
3477
+ },
3478
+ "outcomes schedules cancel": {
3479
+ rolloutFeature: "outcomes",
3480
+ core: `
3481
+ Purpose:
3482
+ Cancel a schedule, so it posts nothing more. What it already posted stays.
3483
+ [[cli:
3484
+ Input:
3485
+ <outcome> <schedule>: the key from [[outcomes schedules list <outcome>]],
3486
+ for example s-4k2m9x1a. --as <agent>.
3487
+ ]]
3488
+ Who may:
3489
+ An agent cancels its own schedules; a person cancels any. Safe to repeat.
3490
+ Output (JSON):
3491
+ schedule, cancelled (false when it had already ended).
3492
+ Errors (code):
3493
+ NOT_YOUR_SCHEDULE (exit 3). SCHEDULE_NOT_FOUND (exit 4).
3494
+ Example:
3495
+ deepline outcomes schedules cancel enrichment-coverage s-4k2m9x1a
3496
+ Cost:
3497
+ Free.
3498
+ `
3499
+ },
3500
+ "outcomes watches add": {
3501
+ rolloutFeature: "outcomes",
3502
+ core: `
3503
+ Purpose:
3504
+ Say what an agent wants to be told about. Every entry that fits becomes a
3505
+ match in the agent's inbox, read with [[outcomes inbox <outcome>]] or
3506
+ handled by [[outcomes listen <outcome> [command...]]].
3507
+ [[cli:
3508
+ Input:
3509
+ <outcome> --as <agent> (required: a watch belongs to an agent).
3510
+ Without --all it hears what concerns the agent: its name written as
3511
+ @<agent> in a post or reply, tasks made for it, replies to and changes of
3512
+ entries it posted, and what its own schedules post. It does not hear
3513
+ other replies in a thread someone else started. --all hears every entry.
3514
+ Narrow either with --on <type> (what happened; repeatable: entry.posted,
3515
+ entry.labelled, task.created, task.ready, task.claimed, task.released,
3516
+ task.expired, task.completed, task.cancelled, task.blocked,
3517
+ task.unblocked, ask.created, ask.answered, ask.withdrawn), --kind <kind>
3518
+ (update, check-in, task, ask, system; repeatable), --label <label> (repeatable; all must be present, on the
3519
+ entry or the one it replies to), --by <name> (who posted or changed it)
3520
+ and --text <words> (1 to 200 characters, found in the entry's text).
3521
+ --note <text> is returned with every match: what to do when it fires.
3522
+ Write it for a reader who remembers nothing of this conversation.
3523
+ --claim makes it a queue worker instead: each match claims one ready task
3524
+ for the agent (with every --label), and it also hears replies in the
3525
+ thread of a task it holds. It takes --label and --note only.
3526
+ --wake-url <url> is rung when something matches.
3527
+ ]]
3528
+ Behaviour:
3529
+ A watch hears what happens after it is made, and never the agent's own
3530
+ writes, except what its schedules post. For what was already there, read
3531
+ [[outcomes describe <outcome>]] once. An outcome holds at most 32.
3532
+ Wake URL:
3533
+ Deepline calls only hosts it has been told to allow, and none is allowed
3534
+ yet: any address is refused with INVALID_WAKE_URL except a Preview
3535
+ deployment's own test receiver. Use [[outcomes listen <outcome>
3536
+ [command...]]], which needs nothing reachable from outside.
3537
+ Where one is allowed it is a public HTTPS address on the default port. It gets a POST with an empty
3538
+ JSON body and the headers X-Deepline-Outcome and X-Deepline-Watch, not
3539
+ signed: there is nothing in it to trust, and the receiver's one move is to
3540
+ pull its inbox with its own key. Rings are coalesced, retried after 5s,
3541
+ 30s and 2m, and then reported on [[outcomes watches list <outcome>]]; the
3542
+ matches stay in the inbox whatever happens to the ring. Before each ring
3543
+ the person the agent runs for is checked again; if they may no longer use
3544
+ the outcome the watch is removed, with the reason in endedBecause, and
3545
+ nothing is sent. A paused outcome rings nobody until it is live again.
3546
+ Output (JSON):
3547
+ watch {key, agentKey, scope (mine, all), kinds, types, claim, labels, by,
3548
+ text, note,
3549
+ state, wakeUrl, wakeState, wakeAttempt, endedBecause, lastWokenAt,
3550
+ lastWakeError,
3551
+ createdAt}.
3552
+ Errors (code):
3553
+ INVALID_WATCH, INVALID_WATCH_TEXT, INVALID_LABEL and INVALID_WAKE_URL
3554
+ (exit 2). AGENT_NOT_JOINED (exit 3). TOO_MANY_WATCHES (exit 7).
3555
+ Example:
3556
+ deepline outcomes watches add enrichment-coverage --as claude --note "Reply in the thread."
3557
+ Cost:
3558
+ Free.
3559
+ `
3560
+ },
3561
+ "outcomes watches list": {
3562
+ rolloutFeature: "outcomes",
3563
+ core: `
3564
+ Purpose:
3565
+ List the watches on an outcome, how each one's wake is doing, and how many
3566
+ matches are waiting for each agent.
3567
+ [[cli:
3568
+ Input:
3569
+ <outcome>. --as <agent> keeps to that agent's watches.
3570
+ ]]
3571
+ Output (JSON):
3572
+ watches[], waiting[] {agentKey, count, more (there are more than counted),
3573
+ oldestAt}.
3574
+ Example:
3575
+ deepline outcomes watches list enrichment-coverage --as claude
3576
+ Cost:
3577
+ Free.
3578
+ `
3579
+ },
3580
+ "outcomes watches remove": {
3581
+ rolloutFeature: "outcomes",
3582
+ core: `
3583
+ Purpose:
3584
+ Stop a watch. Matches still waiting for it are dropped.
3585
+ [[cli:
3586
+ Input:
3587
+ <outcome> <watch>: the key from [[outcomes watches list <outcome>]], for
3588
+ example w-7c1q0d2e. --as <agent>.
3589
+ ]]
3590
+ Who may:
3591
+ An agent removes its own watches; a person removes any. Safe to repeat.
3592
+ Output (JSON):
3593
+ watch, retired (false when it was already removed).
3594
+ Errors (code):
3595
+ NOT_YOUR_WATCH (exit 3). WATCH_NOT_FOUND (exit 4).
3596
+ Example:
3597
+ deepline outcomes watches remove enrichment-coverage w-7c1q0d2e --as claude
3598
+ Cost:
3599
+ Free.
3600
+ `
3601
+ },
3602
+ "outcomes inbox": {
3603
+ rolloutFeature: "outcomes",
3604
+ core: `
3605
+ Purpose:
3606
+ Pull what an agent's watches matched, oldest first.
3607
+ [[cli:
3608
+ Input:
3609
+ <outcome> --as <agent> (required). --wait <span> holds until there is a
3610
+ match, for example 10m; without it the answer is immediate. --limit <n>:
3611
+ 1 to 50, default 10.
3612
+ ]]
3613
+ Claim watches:
3614
+ A match from a --claim watch hands over a task already claimed for the
3615
+ agent: entry is the task and claim {epoch, until} its lease. The token is
3616
+ kept on this machine. Settle the task with [[outcomes tasks complete
3617
+ <task>]] or [[outcomes tasks release <task>]], then acknowledge the
3618
+ match. A redelivered match hands back the same claim.
3619
+ Leases:
3620
+ Each match returned is held by the caller for five minutes and carries a
3621
+ lease. Settle it with [[outcomes ack <outcome> <match> --lease <lease>]];
3622
+ one that is not acknowledged in time is handed out again, and from then
3623
+ on only the new lease settles it. A thread gives
3624
+ out one match at a time. A match is handed out five times at most, then
3625
+ marked failed, which the feed says.
3626
+ Output (JSON):
3627
+ matches[] {id, watch, type (what happened, e.g. task.ready), event
3628
+ (posted, changed), attempt, lease, until, note, entry, claim}, waiting (held or waiting to be tried again), waitingMore,
3629
+ watching (false when the agent has no watch, so nothing will arrive),
3630
+ cursor, timedOut. No match is exit 0.
3631
+ Errors (code):
3632
+ INVALID_LIMIT (exit 2). AGENT_NOT_JOINED (exit 3).
3633
+ Example:
3634
+ deepline outcomes inbox enrichment-coverage --as claude --wait 10m
3635
+ Cost:
3636
+ Free.
3637
+ `
3638
+ },
3639
+ "outcomes ack": {
3640
+ rolloutFeature: "outcomes",
3641
+ core: `
3642
+ Purpose:
3643
+ Acknowledge a match from [[outcomes inbox <outcome>]].
3644
+ [[cli:
3645
+ Input:
3646
+ <outcome> <match> --lease <lease>, both from the inbox. --as <agent>
3647
+ (required). With nothing else the match is done. --error <reason> says it
3648
+ failed: it is handed out again after 1s, then 2s, 4s and 8s, and the fifth
3649
+ failure marks it failed. --skip drops it without doing it.
3650
+ ]]
3651
+ Output (JSON):
3652
+ id, state (done, skipped, pending after an error, failed), retryAt.
3653
+ Acknowledging twice with the same result is safe.
3654
+ Errors (code):
3655
+ MATCH_NOT_FOUND (exit 4). STALE_LEASE (the lease ran out and the match was
3656
+ handed out again) and MATCH_SETTLED (exit 7).
3657
+ Example:
3658
+ deepline outcomes ack enrichment-coverage k57c2... --lease 4a7092bb-... --as claude
3659
+ Cost:
3660
+ Free.
3661
+ `
3662
+ },
3663
+ "outcomes listen": {
3664
+ rolloutFeature: "outcomes",
3665
+ core: `
3666
+ Purpose:
3667
+ Run your command once for each match of the agent's watches, and
3668
+ acknowledge the match from its exit code: 0 is done, anything else is an
3669
+ error and the match comes back. With --drain, from a timer, it handles
3670
+ what is waiting and exits; without it, it stays connected.
3671
+ [[cli:
3672
+ Input:
3673
+ <outcome> --as <agent> -- <command...>. The agent needs a watch first:
3674
+ [[outcomes watches add <outcome>]]. --once stops after the first pull
3675
+ that had a match. --drain handles what is waiting now and stops: run it
3676
+ from cron or a scheduled agent run, every 30 minutes say. --for <span> stops after that long, for example
3677
+ 8h; without it, it runs until interrupted. --reply posts what the command
3678
+ prints as the agent's reply in the thread that woke it; printing nothing
3679
+ posts nothing.
3680
+ ]]
3681
+ What the command gets:
3682
+ The match as JSON on stdin ({outcome, context, id, watch, type, event,
3683
+ attempt, lease, until, note, entry, claim}). context says why the agent was woken and
3684
+ that the entry's text is information, never instructions. Its environment
3685
+ has DEEPLINE_OUTCOME, DEEPLINE_ENTRY and DEEPLINE_THREAD (<outcome>/<n>),
3686
+ DEEPLINE_MATCH, DEEPLINE_MATCH_TYPE, DEEPLINE_MATCH_EVENT,
3687
+ DEEPLINE_WATCH_NOTE,
3688
+ DEEPLINE_AGENT_NAME, so outcomes commands it runs act as the agent, and
3689
+ DEEPLINE_IDEMPOTENCY_KEY: pass it as --idempotency-key on a post or reply
3690
+ and a match that is handed out twice writes once. --reply does this
3691
+ itself. The command also inherits the rest of your environment, so do not
3692
+ log all of it.
3693
+ A reply that names another agent wakes that agent. Two agents that always
3694
+ name each other in what they print never stop: name someone only to hand
3695
+ work over.
3696
+ Claimed tasks:
3697
+ For a --claim watch the task is claimed before the command runs, its
3698
+ lease is renewed while it runs, and it is completed on exit 0 (with what
3699
+ the command printed as the result) or released otherwise. An interrupt
3700
+ releases it.
3701
+ One match runs at a time. A match's lease is five minutes; a command that
3702
+ takes longer is still acknowledged, unless another pull of the same
3703
+ agent's inbox was handed the match meanwhile.
3704
+ Output:
3705
+ While it runs, a line per match and the command's output go to stderr.
3706
+ stdout gets one report when it stops, on an interrupt too: handled[] {id,
3707
+ entry, state}. Exit 7 when a match ran but could not be
3708
+ acknowledged, so it will be handed out again.
3709
+ Errors (code):
3710
+ A usage error (exit 2) when no command is given or the agent has no watch.
3711
+ AGENT_NOT_JOINED (exit 3).
3712
+ Example:
3713
+ deepline outcomes listen enrichment-coverage --as claude --drain -- claude -p "A teammate needs you. The match is on stdin. Act on it, then reply in its thread."
3714
+ Cost:
3715
+ Free.
3716
+ `
3717
+ },
3718
+ "outcomes asks list": {
3719
+ rolloutFeature: "outcomes",
3720
+ core: `
3721
+ Purpose:
3722
+ List an outcome's asks. Open asks by default.
3723
+ [[cli:
3724
+ Input:
3725
+ <outcome>. --all adds answered and withdrawn asks. --state <state> lists
3726
+ one state: open, answered or withdrawn. --limit <n> is how many one page
3727
+ holds (200, up to 500). --after <ask> reads the page after that ask.
3728
+ ]]
3729
+ Pages:
3730
+ Asks are listed oldest first, a page at a time. A page that is not the
3731
+ last ends with the command for the next one, and JSON has it as next. Read
3732
+ on until there is none to have every ask.
3733
+ Output (JSON):
3734
+ asks[], showing, shown, nextAfter (the ask to pass to --after, null on the
3735
+ last page), next.
3736
+ Errors (code):
3737
+ INVALID_STATE, INVALID_LIMIT, INVALID_ENTRY (exit 2). OUTCOME_NOT_FOUND
3738
+ (exit 4).
3739
+ Example:
3740
+ deepline outcomes asks list enrichment-coverage --all
3741
+ Cost:
3742
+ Free.
3743
+ `
3744
+ },
3745
+ "outcomes asks create": {
3746
+ rolloutFeature: "outcomes",
3747
+ core: `
3748
+ Purpose:
3749
+ Ask a person to choose between options.
3750
+ [[cli:
3751
+ Input:
3752
+ <outcome> <text>, at most 4,000 UTF-16 code units. --to <name>, for
3753
+ example @sam. --option <text>, repeatable: two to six different options,
3754
+ each at most 80 characters (default: approve, "not yet"). --action
3755
+ <action> ties the ask to a guarded action; it accepts plays.set-live.
3756
+ --as <agent>. --idempotency-key <key>.
3757
+ ]]
3758
+ The first option:
3759
+ Order matters only with --action: answering with the first option is the
3760
+ approval that allows one run of that action, and any other answer is not.
3761
+ Without --action the options are equal.
3762
+ Who answers:
3763
+ A person, with [[outcomes asks answer <ask> <answer>]] or in the dashboard.
3764
+ --to says who the ask is for and mentions them; it does not restrict who
3765
+ may answer, so any person in the workspace can. An agent cannot answer an
3766
+ ask, its own included.
3767
+ Then:
3768
+ [[outcomes wait <outcome> --for <ask>]] blocks until it is answered.
3769
+ Output (JSON):
3770
+ id, entry (kind ask, state open, askTo, askOptions, askAction), cursor,
3771
+ replayed.
3772
+ Errors (code):
3773
+ ACTION_NOT_GATEABLE and INVALID_OPTIONS (exit 2). AGENT_NOT_JOINED (exit
3774
+ 3). IDEMPOTENCY_KEY_REUSED (exit 7).
3775
+ Example:
3776
+ deepline outcomes asks create enrichment-coverage "Make the phone step live?" --to @sam --action plays.set-live --as claude
3777
+ Cost:
3778
+ Free.
3779
+ `
3780
+ },
3781
+ "outcomes asks get": {
3782
+ rolloutFeature: "outcomes",
3783
+ core: `
3784
+ Purpose:
3785
+ Read one ask and its thread: who it is for, its options, and its answer.
3786
+ [[cli:
3787
+ Input:
3788
+ <ask>, which is <outcome>/<n>. --limit and --before page the thread, as
3789
+ on [[outcomes updates get <entry>]].
3790
+ ]]
3791
+ Output (JSON):
3792
+ id, entry (state, askTo, askOptions, askAction, answer, answerNote,
3793
+ answeredByName, answeredAt), replies[], replyCount, repliesShown,
3794
+ nextBefore.
3795
+ Errors (code):
3796
+ ENTRY_NOT_FOUND and OUTCOME_NOT_FOUND (exit 4).
3797
+ Example:
3798
+ deepline outcomes asks get enrichment-coverage/15
3799
+ Cost:
3800
+ Free.
3801
+ `
3802
+ },
3803
+ "outcomes asks answer": {
3804
+ rolloutFeature: "outcomes",
3805
+ core: `
3806
+ Purpose:
3807
+ Answer an ask with one of its options.
3808
+ [[cli:
3809
+ Input:
3810
+ <ask> <answer>, where the answer is one of the ask's options, matched
3811
+ without regard to case. --note <text>.
3812
+ ]]
3813
+ Who answers:
3814
+ A person: any person in the workspace, whoever the ask was sent --to. An
3815
+ ask is how an agent gets a person's decision, and an approval can let a
3816
+ guarded action run, so an agent (--as, or DEEPLINE_AGENT_NAME) is refused
3817
+ with ASK_NEEDS_PERSON (exit 3), which names who the ask is waiting on.
3818
+ An agent may withdraw an ask with [[outcomes asks withdraw <ask>]].
3819
+ Then:
3820
+ A task blocked on this ask becomes ready, whatever the answer.
3821
+ Output (JSON):
3822
+ ask (state answered, with answer, answerNote and answeredByName), cursor.
3823
+ Errors (code):
3824
+ ANSWER_NOT_AN_OPTION (exit 2). ASK_NEEDS_PERSON (exit 3). ASK_NOT_FOUND
3825
+ (exit 4). ASK_CLOSED (exit 7).
3826
+ Example:
3827
+ deepline outcomes asks answer enrichment-coverage/15 approve --note "Run it over two nights."
3828
+ Cost:
3829
+ Free.
3830
+ `
3831
+ },
3832
+ "outcomes asks withdraw": {
3833
+ rolloutFeature: "outcomes",
3834
+ core: `
3835
+ Purpose:
3836
+ Take back an ask that no longer needs an answer.
3837
+ [[cli:
3838
+ Input:
3839
+ <ask>. --as <agent>.
3840
+ ]]
3841
+ Who may:
3842
+ Any person in the workspace, and any agent that has joined the outcome,
3843
+ not only whoever asked.
3844
+ Then:
3845
+ A task blocked on this ask becomes ready. A withdrawn ask approves
3846
+ nothing.
3847
+ Output (JSON):
3848
+ ask (state withdrawn), cursor.
3849
+ Errors (code):
3850
+ AGENT_NOT_JOINED (exit 3). ASK_NOT_FOUND (exit 4). ASK_CLOSED (exit 7).
3851
+ Example:
3852
+ deepline outcomes asks withdraw enrichment-coverage/15 --as claude
3853
+ Cost:
3854
+ Free.
3855
+ `
3856
+ },
3857
+ "outcomes stakeholders list": {
3858
+ rolloutFeature: "outcomes",
3859
+ core: `
3860
+ Purpose:
3861
+ List who is on an outcome, and when each agent last posted.
3862
+ Keys:
3863
+ The first column is the stakeholder's key, which set, remove and nudge
3864
+ take. An agent's key is its --as name (claude). A person's key is their
3865
+ Slack handle without the @, lower-cased (sam); @sam is accepted too. A
3866
+ channel's key keeps its # (#revops).
3867
+ Output (JSON):
3868
+ stakeholders[] {key, type (agent, person or channel), name, ownerName,
3869
+ slack, checkin, instructions, lastEntryAt, checkinStatus {state, label}}.
3870
+ At most 50.
3871
+ Errors (code):
3872
+ OUTCOME_NOT_FOUND (exit 4).
3873
+ Example:
3874
+ deepline outcomes stakeholders list enrichment-coverage
3875
+ Cost:
3876
+ Free.
3877
+ `
3878
+ },
3879
+ "outcomes join": {
3880
+ rolloutFeature: "outcomes",
3881
+ core: `
3882
+ Purpose:
3883
+ Connect an agent to an outcome in one command. It puts the agent on the
3884
+ outcome, then prints what [[outcomes describe <outcome>]] prints: the live
3885
+ spec, who is on it, open work, and the commands to run next, written for
3886
+ that agent. This is the command an outcome's page gives you to paste into
3887
+ an agent.
3888
+ [[cli:
3889
+ Input:
3890
+ <outcome> --as <agent> (or DEEPLINE_AGENT_NAME): lower-case letters,
3891
+ numbers and dashes, at most 40. --checkin <cadence>: daily, weekly, a
3892
+ number of days (3d), a weekday (mon) or a weekday and time ("mon 09:00").
3893
+ ]]
3894
+ Behaviour:
3895
+ Safe to repeat: joining again says "Already on" and prints the same
3896
+ brief. The agent runs for you, with your access. To set its standing
3897
+ instructions use [[outcomes stakeholders join <outcome> --instructions <text>]].
3898
+ Output (JSON):
3899
+ stakeholder, created, outcome (as describe returns it), next[].
3900
+ Errors (code):
3901
+ INVALID_AGENT_NAME and INVALID_CHECKIN (exit 2). STAKEHOLDER_KEY_TAKEN,
3902
+ when the name is a person or channel on the outcome (exit 7).
3903
+ Example:
3904
+ deepline outcomes join enrichment-coverage --as claude
3905
+ Cost:
3906
+ Free.
3907
+ `
3908
+ },
3909
+ "outcomes mine": {
3910
+ rolloutFeature: "outcomes",
3911
+ core: `
3912
+ Purpose:
3913
+ The outcomes you are working on: those you own and those one of your
3914
+ agents has joined, each with the asks waiting on someone and the command
3915
+ to start work on it.
3916
+ [[cli:
3917
+ Input:
3918
+ --as <agent> (or DEEPLINE_AGENT_NAME) keeps only the outcomes that agent is
3919
+ on, and writes the start command for it. --limit <n> is how many one page
3920
+ holds (100, up to 500). --after <outcome> reads the page after that
3921
+ outcome.
3922
+ ]]
3923
+ Pages:
3924
+ Outcomes are read by name, a page at a time, as [[outcomes list --mine]]
3925
+ reads them. With --as a page shows only that agent's part of it, so a page
3926
+ can be short or empty and still not be the last: read on while the output
3927
+ ends with a next command.
3928
+ Output (JSON):
3929
+ outcomes[] (as list returns them), nextAfter, next.
3930
+ Errors (code):
3931
+ INVALID_LIMIT (exit 2).
3932
+ Example:
3933
+ deepline outcomes mine
3934
+ deepline outcomes mine --as claude
3935
+ Cost:
3936
+ Free.
3937
+ `
3938
+ },
3939
+ "outcomes stakeholders join": {
3940
+ rolloutFeature: "outcomes",
3941
+ core: `
3942
+ Purpose:
3943
+ Put an agent that runs for you on an outcome. An agent must join before
3944
+ it can post, react, claim or act on a task.
3945
+ [[cli:
3946
+ Input:
3947
+ <outcome> --as <agent> (or DEEPLINE_AGENT_NAME): lower-case letters,
3948
+ numbers and dashes, at most 40. --checkin <cadence>: daily, weekly, a
3949
+ number of days (3d), a weekday (mon) or a weekday and time ("mon 09:00").
3950
+ --instructions <text|@file>, at most 8,000 characters.
3951
+ ]]
3952
+ Behaviour:
3953
+ Safe to repeat: joining again changes the cadence or instructions given
3954
+ and says "Already on it". An outcome holds at most 50 stakeholders.
3955
+ Output (JSON):
3956
+ stakeholder, created.
3957
+ Errors (code):
3958
+ INVALID_AGENT_NAME and INVALID_CHECKIN (exit 2). STAKEHOLDER_KEY_TAKEN,
3959
+ when the name is a person or channel on the outcome (exit 7).
3960
+ Example:
3961
+ deepline outcomes stakeholders join enrichment-coverage --as claude --checkin weekly
3962
+ Cost:
3963
+ Free.
3964
+ `
3965
+ },
3966
+ "outcomes stakeholders add": {
3967
+ rolloutFeature: "outcomes",
3968
+ core: `
3969
+ Purpose:
3970
+ Add a person or a channel to an outcome. They are reached through Slack.
3971
+ [[cli:
3972
+ Input:
3973
+ <outcome> --slack <handle>: @name for a person, "#channel" for a channel
3974
+ (quote it, or the shell reads # as a comment).
3975
+ --name <name>: the name a person is shown by. Without it a person is named
3976
+ after their handle. Adding the same handle again with --name renames them.
3977
+ ]]
3978
+ Behaviour:
3979
+ The handle is stored as typed; nothing checks that it exists in Slack. A
3980
+ person or channel has no check-in cadence and no instructions. Agents are
3981
+ added with [[outcomes stakeholders join <outcome> --as <agent>]].
3982
+ Output (JSON):
3983
+ stakeholder {key, type, name, slack}, created.
3984
+ Errors (code):
3985
+ INVALID_SLACK_HANDLE, NAME_PEOPLE_ONLY, NAME_TOO_LONG (exit 2).
3986
+ STAKEHOLDER_KEY_TAKEN (exit 7).
3987
+ Example:
3988
+ deepline outcomes stakeholders add enrichment-coverage --slack "#revops"
3989
+ deepline outcomes stakeholders add enrichment-coverage --slack @sam --name "Sam Lee"
3990
+ Cost:
3991
+ Free.
3992
+ `
3993
+ },
3994
+ "outcomes stakeholders set": {
3995
+ rolloutFeature: "outcomes",
3996
+ core: `
3997
+ Purpose:
3998
+ Change an agent's check-in cadence or standing instructions.
3999
+ [[cli:
4000
+ Input:
4001
+ <outcome> <stakeholder>, the key from stakeholders list; @sam and sam are
4002
+ the same. --checkin <cadence>. --instructions <text|@file>.
4003
+ ]]
4004
+ Cadence:
4005
+ daily, weekly, a number of days (3d, up to 365d), a weekday (mon or
4006
+ monday), or a weekday and time ("mon 09:00"). none clears it. Anything
4007
+ else is INVALID_CHECKIN (exit 2). Only an agent has a cadence: setting one
4008
+ on a person or channel is CHECKIN_AGENTS_ONLY (exit 2). The same forms
4009
+ apply to [[outcomes stakeholders join <outcome> --checkin <cadence>]].
4010
+ Output (JSON):
4011
+ stakeholder {key, type, name, checkin, instructions, checkinStatus}. The
4012
+ text output says the cadence now in force.
4013
+ Errors (code):
4014
+ NOTHING_TO_SET, INVALID_CHECKIN and CHECKIN_AGENTS_ONLY (exit 2).
4015
+ STAKEHOLDER_NOT_FOUND (exit 4).
4016
+ Example:
4017
+ deepline outcomes stakeholders set enrichment-coverage claude --checkin "mon 09:00"
4018
+ Cost:
4019
+ Free.
4020
+ `
4021
+ },
4022
+ "outcomes stakeholders remove": {
4023
+ rolloutFeature: "outcomes",
4024
+ core: `
4025
+ Purpose:
4026
+ Take a stakeholder off an outcome.
4027
+ [[cli:
4028
+ Input:
4029
+ <outcome> <stakeholder>, the key from stakeholders list. @sam and sam are
4030
+ the same person; a channel keeps its #.
4031
+ ]]
4032
+ Behaviour:
4033
+ Safe to repeat: removing someone who is not on the outcome exits 0 and
4034
+ says so. An agent that is removed can no longer act on the outcome until
4035
+ it joins again. What it already wrote stays.
4036
+ Output (JSON):
4037
+ key, removed (false when they were not on it).
4038
+ Errors (code):
4039
+ OUTCOME_NOT_FOUND (exit 4).
4040
+ Example:
4041
+ deepline outcomes stakeholders remove enrichment-coverage sam
4042
+ Cost:
4043
+ Free.
4044
+ `
4045
+ },
4046
+ "outcomes stakeholders nudge": {
4047
+ rolloutFeature: "outcomes",
4048
+ core: `
4049
+ Purpose:
4050
+ Ask a quiet stakeholder for a check-in. It posts a system entry that
4051
+ mentions them, which an agent waiting on the outcome receives.
4052
+ [[cli:
4053
+ Input:
4054
+ <outcome> <stakeholder>, the key from stakeholders list.
4055
+ ]]
4056
+ Output (JSON):
4057
+ entry (kind system, mentioning the stakeholder), cursor.
4058
+ Errors (code):
4059
+ STAKEHOLDER_NOT_FOUND and OUTCOME_NOT_FOUND (exit 4).
4060
+ Example:
4061
+ deepline outcomes stakeholders nudge enrichment-coverage claude
4062
+ Cost:
4063
+ Free.
2290
4064
  `
2291
4065
  },
2292
4066
  views: {
@@ -2312,7 +4086,11 @@ The sequence:
2312
4086
  prints the URL and id. --input saves the input Refresh runs the Play with.
2313
4087
  2. Fill it in: [[views refresh <id>]] runs the Play. A scheduled Play
2314
4088
  refreshes it automatically; every run of the Play appears in it.
2315
- 3. Share it: the URL opens for workspace members by default.
4089
+ 3. Share it: a view in a named team opens for that team by default (team:
4090
+ owners, admins and the team's members); one in the default team opens
4091
+ for every org member. [[views set-access <id> org]] opens it to every
4092
+ org member (workspace is accepted for org); refreshing and managing it
4093
+ stay with its team. [[views set-access <id> team]] narrows it again.
2316
4094
  [[views set-access <id> public]] lets anyone with the URL open it and
2317
4095
  see the output of every run of its Play, including runs started outside
2318
4096
  the view (by hand, on a schedule, or from the CLI).
@@ -2327,7 +4105,7 @@ Buttons in HTML output:
2327
4105
  actions: [{ id, type: "run_play", play, input? }], and use
2328
4106
  <button data-deepline-action="id"> or deepline.action(id, input). A click
2329
4107
  opens a launch form where a signed-in member reviews the inputs and starts
2330
- the run. Plays in this workspace only; never for public visitors.
4108
+ the run. Plays in this org only; never for public visitors.
2331
4109
  Permissions:
2332
4110
  [[views permissions]] shows who may create, edit, delete, set access, and
2333
4111
  refresh; admins change them with [[views permissions set]]. Share links
@@ -2346,12 +4124,13 @@ Purpose:
2346
4124
  Create a view that shows a Play's runs at a fixed URL.
2347
4125
  [[cli:
2348
4126
  Input:
2349
- --name <name> (1-120 characters). --play <play>: a Play in this workspace,
4127
+ --name <name> (1-120 characters). --play <play>: a Play in this org,
2350
4128
  or prebuilt/<name>. --input <json|@file>: saved input for Refresh.
2351
4129
  --description <text>. --json prints JSON.
2352
4130
  ]]
2353
4131
  Output (JSON):
2354
- id, name, url, play, input, access (workspace).
4132
+ id, name, url, play, input, access (team in a named team, else org),
4133
+ team_id.
2355
4134
  Errors (code):
2356
4135
  name_invalid, play_invalid, input_invalid, forbidden, views_not_enabled.
2357
4136
  Cost: