deepline 0.3.552 → 0.3.554

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 (323) 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-HJUNW7T2.mjs} +8 -7
  131. package/dist/cli/auth-SP6SKZJZ.js +44 -0
  132. package/dist/cli/{billing-FQREA7UA.js → billing-4TSA5HEC.js} +297 -161
  133. package/dist/cli/{billing-54RHFEBI.mjs → billing-SJYRJAQ2.mjs} +197 -61
  134. package/dist/cli/{chunk-4MK42735.js → chunk-2HMN5H54.js} +215 -130
  135. package/dist/cli/{chunk-UBKA33KY.mjs → chunk-2MGZAI54.mjs} +17 -0
  136. package/dist/cli/{chunk-EOPEYCY7.mjs → chunk-2ORPFQUA.mjs} +18 -18
  137. package/dist/cli/{chunk-RQZQVFCJ.js → chunk-2OVHNHCF.js} +2 -2
  138. package/dist/cli/{chunk-QX7LFGJR.mjs → chunk-33WRQSQ2.mjs} +1874 -91
  139. package/dist/cli/{chunk-UPMRIVZB.js → chunk-3IKGZ4CG.js} +74 -13
  140. package/dist/cli/{chunk-EUPVF4SU.mjs → chunk-3Z4VFCXO.mjs} +8 -8
  141. package/dist/cli/{chunk-GKYAYLRI.js → chunk-4DOFGIEJ.js} +27 -31
  142. package/dist/cli/{chunk-4TALT2M3.mjs → chunk-52Q5KETX.mjs} +69 -3
  143. package/dist/cli/{chunk-RBEUVDZF.js → chunk-5CYZHOKI.js} +249 -107
  144. package/dist/cli/{chunk-LX35AXTN.mjs → chunk-5TYLSS4Q.mjs} +6 -6
  145. package/dist/cli/{chunk-IYSTRCLX.mjs → chunk-62AUAWQV.mjs} +4 -4
  146. package/dist/cli/{chunk-ZIAXDBXX.mjs → chunk-62HWJXST.mjs} +17 -21
  147. package/dist/cli/{chunk-QY3ZNU6Z.mjs → chunk-6EXOAT6T.mjs} +2 -2
  148. package/dist/cli/{chunk-EITMD3A5.js → chunk-6VLFQZK6.js} +8 -8
  149. package/dist/cli/{chunk-ADRC5I3R.js → chunk-7OWI736E.js} +30 -30
  150. package/dist/cli/{chunk-NURW5XH4.mjs → chunk-ASB47RXJ.mjs} +1 -1
  151. package/dist/cli/{chunk-PTVD2GVQ.mjs → chunk-B6HO2XWH.mjs} +13 -13
  152. package/dist/cli/{chunk-YJHE3O5M.mjs → chunk-BOZAP2EM.mjs} +141 -56
  153. package/dist/cli/chunk-BVXIGOBZ.js +32 -0
  154. package/dist/cli/{chunk-XDVT3GOM.js → chunk-CFJFUVX2.js} +18 -1
  155. package/dist/cli/{chunk-WE5HES3H.mjs → chunk-D6Z6POKE.mjs} +151 -43
  156. package/dist/cli/{chunk-AZQ264ID.mjs → chunk-DSKSFFK2.mjs} +1 -1
  157. package/dist/cli/{chunk-SHLFOPD6.js → chunk-DUBXUAAO.js} +5 -5
  158. package/dist/cli/{chunk-V436Z54K.js → chunk-E2G2DNAB.js} +3 -1
  159. package/dist/cli/{chunk-HO3XK3R7.js → chunk-E74KGKFZ.js} +8 -8
  160. package/dist/cli/{chunk-77AAAGVB.js → chunk-ECHKAC7M.js} +2 -2
  161. package/dist/cli/{chunk-KWSH5T7K.js → chunk-EN5NHCCQ.js} +21 -21
  162. package/dist/cli/{chunk-6RZOWL2V.mjs → chunk-F7CMRKSK.mjs} +1 -1
  163. package/dist/cli/{chunk-JWUAX6OP.js → chunk-FBAFX43W.js} +11 -11
  164. package/dist/cli/{chunk-AQWQ2BFX.mjs → chunk-FXQ3JKE3.mjs} +1 -1
  165. package/dist/cli/{chunk-QPKH23EC.mjs → chunk-GA2M3G3Y.mjs} +5 -5
  166. package/dist/cli/{chunk-G4O75EXF.js → chunk-GHT2NDL7.js} +18 -18
  167. package/dist/cli/{chunk-MF2GHZDO.js → chunk-GRZENGNE.js} +2 -2
  168. package/dist/cli/{chunk-4UUR4TCH.js → chunk-IVZKMJUK.js} +1875 -92
  169. package/dist/cli/{chunk-FTJLJCE5.mjs → chunk-KVBQY4ST.mjs} +3 -3
  170. package/dist/cli/{chunk-S5S355UY.mjs → chunk-KZHBDMGF.mjs} +12 -12
  171. package/dist/cli/{chunk-BBTKAASQ.js → chunk-LFQJW4S2.js} +42 -1
  172. package/dist/cli/{chunk-6ZORHRKB.mjs → chunk-LRZGS6RZ.mjs} +2 -0
  173. package/dist/cli/{chunk-2WFPHBR4.js → chunk-LY5MMXFF.js} +47 -29
  174. package/dist/cli/{chunk-BAIST2BR.js → chunk-M7STM3MZ.js} +36 -36
  175. package/dist/cli/{chunk-SL6MYJYM.js → chunk-MJTVX4QK.js} +35 -35
  176. package/dist/cli/{chunk-45PVGZST.js → chunk-OPTV7D2V.js} +508 -361
  177. package/dist/cli/{chunk-PFO3ISXA.js → chunk-OVEYWO4H.js} +174 -129
  178. package/dist/cli/{chunk-BGBJV26E.mjs → chunk-PC2FTUCP.mjs} +4 -4
  179. package/dist/cli/{chunk-WLN3SUIA.js → chunk-PQQMPUCZ.js} +3 -3
  180. package/dist/cli/{chunk-HYC4MKGK.mjs → chunk-Q7ACILL2.mjs} +5 -5
  181. package/dist/cli/{chunk-CBV7AKWM.js → chunk-R6DZ6NQ2.js} +5 -5
  182. package/dist/cli/{chunk-57VZVF5D.mjs → chunk-RBBTCYQB.mjs} +3 -3
  183. package/dist/cli/{chunk-F2LH7TGF.js → chunk-RTHMGSZX.js} +21 -21
  184. package/dist/cli/{chunk-YLTMXJFC.mjs → chunk-S6W6SJ6E.mjs} +158 -16
  185. package/dist/cli/chunk-STXDSVQZ.mjs +32 -0
  186. package/dist/cli/{chunk-WEHCBH5R.mjs → chunk-TGUQET3O.mjs} +67 -6
  187. package/dist/cli/{chunk-IHRKLXZN.js → chunk-TJ6HLN56.js} +5 -5
  188. package/dist/cli/{chunk-3FD5EQ62.js → chunk-TOO3YM5N.js} +6 -7
  189. package/dist/cli/{chunk-QILKGXYF.mjs → chunk-UBBYHB2B.mjs} +2 -2
  190. package/dist/cli/{chunk-6PRW5UBA.mjs → chunk-UC4BDZKI.mjs} +299 -69
  191. package/dist/cli/{chunk-634ZDA3F.js → chunk-UNNOZKRT.js} +1 -1
  192. package/dist/cli/{chunk-IDVVIXPJ.js → chunk-UOT7HPBH.js} +41 -41
  193. package/dist/cli/{chunk-6YCA5NKJ.js → chunk-UYCZFQYQ.js} +12 -12
  194. package/dist/cli/{chunk-7IKQKKNX.js → chunk-VIUUTEHY.js} +90 -24
  195. package/dist/cli/{chunk-Z5TSLLOW.mjs → chunk-VLO5NFH2.mjs} +63 -18
  196. package/dist/cli/{chunk-U7QRMBIY.mjs → chunk-VQ75KX7G.mjs} +5 -5
  197. package/dist/cli/{chunk-4NQF6KJ3.js → chunk-VV4XGZ24.js} +13 -13
  198. package/dist/cli/{chunk-FSIVF2SI.mjs → chunk-VZGLIK5U.mjs} +1 -1
  199. package/dist/cli/{chunk-S46HWQKO.js → chunk-W6CZDTIR.js} +69 -69
  200. package/dist/cli/{chunk-XVB7V4N7.js → chunk-WL7P32PI.js} +161 -53
  201. package/dist/cli/{chunk-DJ2JDK4O.mjs → chunk-XD3MFTHA.mjs} +1 -1
  202. package/dist/cli/{chunk-GGGAEVCX.mjs → chunk-XFZX6FNM.mjs} +40 -22
  203. package/dist/cli/{chunk-AWJPDPMA.mjs → chunk-XU6QNM4D.mjs} +1 -1
  204. package/dist/cli/{chunk-QAORXEY3.mjs → chunk-YCOGPOUX.mjs} +6 -7
  205. package/dist/cli/{chunk-VQALXEXO.js → chunk-YQKCH4R7.js} +348 -118
  206. package/dist/cli/{chunk-6O5HOODW.mjs → chunk-YY55NYAH.mjs} +207 -60
  207. package/dist/cli/{chunk-JL2OTMSG.mjs → chunk-Z3A2S3QM.mjs} +41 -0
  208. package/dist/cli/command-docs.js +3 -3
  209. package/dist/cli/command-docs.mjs +2 -2
  210. package/dist/cli/{concurrent-runs-help-Q4KPAUJX.mjs → concurrent-runs-help-O3Q5IPLF.mjs} +9 -8
  211. package/dist/cli/concurrent-runs-help-ZFRZWX5V.js +22 -0
  212. package/dist/cli/{csv-F5VAGX4K.js → csv-4ZQ2RATI.js} +16 -15
  213. package/dist/cli/{csv-2PTVDNO6.mjs → csv-Y3BFPEM6.mjs} +7 -6
  214. package/dist/cli/{db-IEDXAUF7.mjs → db-3JYY4JNN.mjs} +17 -17
  215. package/dist/cli/{db-Z3OIUFMM.js → db-VEIFS4M7.js} +45 -45
  216. package/dist/cli/describe-EVJ4MFVU.mjs +50 -0
  217. package/dist/cli/describe-FG625QPF.js +50 -0
  218. package/dist/cli/describe-core.d.mts +3 -3
  219. package/dist/cli/describe-core.d.ts +3 -3
  220. package/dist/cli/describe-core.js +7 -7
  221. package/dist/cli/describe-core.mjs +6 -6
  222. package/dist/cli/{executions-H6H5655J.js → executions-HPZXOOVX.js} +12 -12
  223. package/dist/cli/{executions-R3LP74QN.mjs → executions-PCXZKEHM.mjs} +10 -10
  224. package/dist/cli/{feedback-WL3MRVT5.mjs → feedback-Y6VKZNY6.mjs} +9 -8
  225. package/dist/cli/{feedback-VFOUR66B.js → feedback-ZKFHFVL6.js} +17 -16
  226. package/dist/cli/git-RUBMALLH.js +26 -0
  227. package/dist/cli/{git-YX2J4GCI.mjs → git-UMPR2QYC.mjs} +8 -7
  228. package/dist/cli/index.js +170 -158
  229. package/dist/cli/index.mjs +60 -48
  230. package/dist/cli/{integrations-E2JZYKHS.js → integrations-3GQCTRTF.js} +23 -27
  231. package/dist/cli/{integrations-5ZK5KLVP.mjs → integrations-V3TM6XAB.mjs} +15 -19
  232. package/dist/cli/{legacy-noops-SMN3GSXY.mjs → legacy-noops-JZBUD7ZE.mjs} +9 -8
  233. package/dist/cli/{legacy-noops-3VW4IJTH.js → legacy-noops-VYCO7NGW.js} +12 -11
  234. package/dist/cli/{mcp-UQV2K4EW.js → mcp-4OIWTCE6.js} +121 -48
  235. package/dist/cli/{mcp-V6MGCYAG.mjs → mcp-PH4KZ76P.mjs} +100 -27
  236. package/dist/cli/{monitors-R3BBDCRC.js → monitors-E2A6VPBY.js} +221 -186
  237. package/dist/cli/{monitors-GGKS5W6M.mjs → monitors-SSMGIDGX.mjs} +58 -23
  238. package/dist/cli/org-SFDKSK5D.mjs +2289 -0
  239. package/dist/cli/org-WUDZGWBT.js +2289 -0
  240. package/dist/cli/outcomes-QT7LQBPK.mjs +2865 -0
  241. package/dist/cli/outcomes-Y7SZTLSL.js +2865 -0
  242. package/dist/cli/{play-MDWPR4XG.mjs → play-EK7KSFPL.mjs} +376 -106
  243. package/dist/cli/{play-2MVO27VO.js → play-GDNHCRRR.js} +1150 -880
  244. package/dist/cli/{providers-AKDYFZJZ.mjs → providers-FVZLRXAU.mjs} +10 -10
  245. package/dist/cli/{providers-2AACRUZH.js → providers-ZKOSECLV.js} +13 -13
  246. package/dist/cli/{quickstart-H6IV3PV3.js → quickstart-KSDKIXYD.js} +9 -8
  247. package/dist/cli/{quickstart-QDGRJFZY.mjs → quickstart-UJZ6PIQV.mjs} +7 -6
  248. package/dist/cli/{run-RTSQNGRD.mjs → run-E7MZ7P35.mjs} +35 -33
  249. package/dist/cli/{run-2634REDK.js → run-PD2BBG6S.js} +55 -53
  250. package/dist/cli/run-identity-LMLFMACS.js +31 -0
  251. package/dist/cli/{run-identity-MRNCEGV2.mjs → run-identity-MAZ7ANH5.mjs} +9 -3
  252. package/dist/cli/search-TKSPTPHA.js +32 -0
  253. package/dist/cli/{search-6AOJ4XPP.mjs → search-VTFUFTOY.mjs} +11 -11
  254. package/dist/cli/{search-output-S5ODBL5E.js → search-output-G2AGDCOY.js} +13 -12
  255. package/dist/cli/{search-output-6ADMTOU5.mjs → search-output-PFVXQCWA.mjs} +10 -9
  256. package/dist/cli/{secrets-TFIFBFB3.mjs → secrets-7CIMEMX7.mjs} +11 -11
  257. package/dist/cli/{secrets-LHCIIHMT.js → secrets-BCOQ4U7U.js} +20 -20
  258. package/dist/cli/sessions-4CO556VD.js +23 -0
  259. package/dist/cli/{sessions-WHBVUHVW.mjs → sessions-IUCQZEF7.mjs} +9 -8
  260. package/dist/cli/{settings-EBONWL5C.mjs → settings-KZN62UQK.mjs} +16 -16
  261. package/dist/cli/{settings-CP4FVK2W.js → settings-REL4736M.js} +89 -89
  262. package/dist/cli/{setup-I5AZE3IU.mjs → setup-2P7OG3OU.mjs} +22 -24
  263. package/dist/cli/{setup-LFGHTNLQ.js → setup-2XIVBBCS.js} +62 -64
  264. package/dist/cli/skills-JYT5DEY6.js +37 -0
  265. package/dist/cli/{skills-W76AO5XE.mjs → skills-VIGNDJKI.mjs} +10 -9
  266. package/dist/cli/tools-NTVUQ2TG.js +57 -0
  267. package/dist/cli/{tools-7IJHGF6W.mjs → tools-W3QT5EJY.mjs} +24 -24
  268. package/dist/cli/{update-GFOPZTHY.mjs → update-GZVBVMY3.mjs} +14 -11
  269. package/dist/cli/update-TWJZPUZM.js +37 -0
  270. package/dist/cli/{views-D4NX4SBG.mjs → views-BOGEH424.mjs} +47 -49
  271. package/dist/cli/{views-BPL2TQJ4.js → views-TOLJNLSV.js} +62 -64
  272. package/dist/cli/{workflow-ZYNAUCKC.js → workflow-ENWFRK5M.js} +23 -23
  273. package/dist/cli/{workflow-YXP42FUI.mjs → workflow-VDG2FDQV.mjs} +13 -13
  274. package/dist/{client-CyXGrO4D.d.mts → client-B8f7RNF8.d.mts} +1 -1
  275. package/dist/{client-Bf3IpUKN.d.ts → client-C5TgXmJQ.d.ts} +1 -1
  276. package/dist/{client-core-BxsLnXlm.d.mts → client-core-SLLGBTht.d.mts} +268 -23
  277. package/dist/{client-core-BWd0lX0Z.d.ts → client-core-p0sOxnkl.d.ts} +268 -23
  278. package/dist/{compiler-manifest-BqwVrOri.d.ts → compiler-manifest-D_zZEh9Q.d.mts} +70 -5
  279. package/dist/{compiler-manifest-BqwVrOri.d.mts → compiler-manifest-D_zZEh9Q.d.ts} +70 -5
  280. package/dist/{errors-BU8FB99X.d.mts → errors-CZCrBFrQ.d.mts} +1 -1
  281. package/dist/{errors-DfVN_FUG.d.ts → errors-DsUkLrdZ.d.ts} +1 -1
  282. package/dist/{index-BGnvtYGc.d.ts → index-B6RTOZGC.d.ts} +1 -1
  283. package/dist/{index-DjZgwpGw.d.mts → index-DeOVrEmX.d.mts} +1 -1
  284. package/dist/index.d.mts +7 -7
  285. package/dist/index.d.ts +7 -7
  286. package/dist/index.js +66 -55
  287. package/dist/index.mjs +25 -14
  288. package/dist/install-integrity.json +163 -144
  289. package/dist/plays/bundle-play-file.d.mts +3 -3
  290. package/dist/plays/bundle-play-file.d.ts +3 -3
  291. package/dist/plays/bundle-play-file.mjs +23 -4
  292. package/dist/plays/csv-data-input.js +3 -3
  293. package/dist/plays/csv-data-input.mjs +2 -2
  294. package/dist/plays/play-description.d.mts +2 -2
  295. package/dist/plays/play-description.d.ts +2 -2
  296. package/dist/plays/run-request.d.mts +2 -2
  297. package/dist/plays/run-request.d.ts +2 -2
  298. package/dist/plays/run-request.js +4 -4
  299. package/dist/plays/run-request.mjs +3 -3
  300. package/dist/release.d.mts +1 -1
  301. package/dist/release.d.ts +1 -1
  302. package/dist/release.js +2 -2
  303. package/dist/release.mjs +1 -1
  304. package/dist/server.d.mts +4 -4
  305. package/dist/server.d.ts +4 -4
  306. package/dist/server.js +15 -13
  307. package/dist/server.mjs +9 -7
  308. package/package.json +1 -1
  309. package/dist/cli/auth-MMNVWATX.js +0 -43
  310. package/dist/cli/chunk-AID3OYVJ.js +0 -8
  311. package/dist/cli/chunk-OVDNJAJN.mjs +0 -8
  312. package/dist/cli/concurrent-runs-help-FQAIHKKC.js +0 -21
  313. package/dist/cli/describe-QDANCTS3.mjs +0 -50
  314. package/dist/cli/describe-VUTT5ZKU.js +0 -50
  315. package/dist/cli/git-ETB3GH3K.js +0 -25
  316. package/dist/cli/org-GRYVMNSW.js +0 -1282
  317. package/dist/cli/org-Z37NGJV4.mjs +0 -1282
  318. package/dist/cli/run-identity-G257GQED.js +0 -25
  319. package/dist/cli/search-VTW2YNBS.js +0 -32
  320. package/dist/cli/sessions-CJ4FJ2WB.js +0 -22
  321. package/dist/cli/skills-R7EBXREW.js +0 -36
  322. package/dist/cli/tools-V7U2BDXM.js +0 -57
  323. 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.
@@ -973,15 +1041,19 @@ Input:
973
1041
  --input '{"email":"a@b.com"}' inline JSON object
974
1042
  --input @input.json read the JSON object from a file
975
1043
  -p email=a@b.com one key=value per -p, repeatable
1044
+ A -p value is text unless the tool's input schema types it as a boolean or
1045
+ number: -p only_verified_email=true sends true. Windows: cmd.exe has no
1046
+ single quotes and Windows PowerShell 5.1 strips the quotes inside JSON, so
1047
+ use --input "@input.json" there (PowerShell reads a bare @ as splatting).
976
1048
  --payload is an alias of --input. There is no --payload-file flag; use
977
1049
  @path. --out <file.csv> writes row-shaped output to a CSV file.
978
- --connection <name> selects a workspace authorization for supported
1050
+ --connection <name> selects an org authorization for supported
979
1051
  operations. For Google Workspace team availability, choose the approved
980
1052
  domain as the connection and pass primary work emails in calendarIds.
981
1053
  For booking, organizerEmail selects the primary calendar that receives the
982
1054
  event. Verify the calendars with a read-only call before publishing booking.
983
1055
  Where supported, omitting --connection uses the caller's default account.
984
- deepline integrations list --json lists workspace authorization names.
1056
+ deepline integrations list --json lists org authorization names.
985
1057
  Each authorization grants specific scopes. Missing scopes fail the call.
986
1058
  ]]
987
1059
  [[cli:
@@ -991,15 +1063,21 @@ Output (JSON):
991
1063
  listSourcePath}, summary, next, render.sections.
992
1064
  Failures:
993
1065
  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.
1066
+ exits non-zero. Record the row as failed and read error.retry before
1067
+ repeating the call: canSucceed (true, false, or null when unknown),
1068
+ afterMs (the wait), reason, next (what to do), and for rejected input the
1069
+ named fields and the server's hint. Without --json it is the Retry: line.
1070
+ rate_limited wait afterMs, then retry; run fewer calls at once
1071
+ bad_input fix the input; the same call fails again
1072
+ no_match the provider has no record; treat it as found: false
1073
+ out_of_credits stop and tell the user to add credits
1074
+ spending_cap stop and tell the user; the error names the cap
1075
+ error.tool_error.retryable says whether repeating the call is
1076
+ delivery-safe, not whether it can succeed.
998
1077
  When a connected provider returns a failure, error.upstreamResponse
999
1078
  includes its HTTP status and body, with echoed authentication masked.
1000
1079
  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.
1080
+ excerpt.
1003
1081
  ]]
1004
1082
  [[mcp:
1005
1083
  Named authorizations:
@@ -1165,7 +1243,7 @@ Authoring rules:
1165
1243
  Tool calls: deepline.tools.execute({ id, tool, input, description,
1166
1244
  staleAfterSeconds }). staleAfterSeconds decides whether a finished answer
1167
1245
  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,
1246
+ completed, successful answer to the same request (same org,
1169
1247
  credential and tool version) up to that many seconds old, and otherwise
1170
1248
  runs the tool. null accepts an answer of any age. A reused answer makes no
1171
1249
  provider call and no provider charge; Play compute still applies. This
@@ -1218,16 +1296,18 @@ Authoring rules:
1218
1296
  res.ok. A play cannot loop deepline.fetch over pages: fan out over rows
1219
1297
  with deepline.dataset, or
1220
1298
  call one endpoint that returns the whole result.
1221
- Triggers: export const config = { cron: { schedule, timezone, input } };
1299
+ Triggers: export const config = { cron: { schedule, timezone, input, overlap } };
1222
1300
  or { webhook: {} }. A cron run receives {} unless cron.input is written
1223
- inline; it is pinned with the published revision.
1301
+ inline; it is pinned with the published revision. Add
1302
+ cron.overlap: 'skip' to skip an occurrence while an earlier cron run is
1303
+ still queued or running; omitted ('allow') starts every occurrence.
1224
1304
  Runtime: The default Play runtime is 30 minutes. Standard uses 1 GiB / 1 CPU.
1225
1305
  Set runtime.size to 'standard' or '1gb' (1 GiB / 1 CPU), 'large' or '4gb'
1226
1306
  (4 GiB / 2 CPU), or 'xlarge' or '8gb' (8 GiB / 4 CPU).
1227
1307
  Each alias selects the same profile and price as its named size.
1228
1308
  ${PLAY_RUNTIME_PRICING_NOTE}
1229
1309
  [[cli:Use deepline billing quote --sandbox-timeout 30m --sandbox-size large
1230
- for the workspace's session ceiling.]]
1310
+ for the org's session ceiling.]]
1231
1311
  Set runtime.timeout to extend a run up to 4h.
1232
1312
  For large datasets, keep working sets bounded and checkpoint progress;
1233
1313
  inline ctx.runPlay shares parent memory, while ctx.runPlayAsync starts an
@@ -1279,7 +1359,7 @@ Authoring rules:
1279
1359
  "plays grep": {
1280
1360
  core: `
1281
1361
  Purpose:
1282
- Full-text search over plays this workspace authored (not prebuilt ones).
1362
+ Full-text search over plays this org authored (not prebuilt ones).
1283
1363
  When:
1284
1364
  Finding a saved play by a phrase in its source or description.
1285
1365
  [[cli:
@@ -1304,7 +1384,7 @@ Output:
1304
1384
  reference, costEstimate, and for prebuilts observedCost. Estimates include
1305
1385
  the output unit, observed or static range and sample size.
1306
1386
  Cost:
1307
- Read-only. Uses the current workspace's pricing; does not start a run.
1387
+ Read-only. Uses the current org's pricing; does not start a run.
1308
1388
  `
1309
1389
  },
1310
1390
  "plays list": {
@@ -1369,7 +1449,7 @@ Output fields:
1369
1449
  declared tools).
1370
1450
  costEstimate.sampleRunCount how many runs the observation is based on.
1371
1451
  observedCost avgCredits, medianCredits, maxCredits per unit across
1372
- all workspaces' runs, or status "unavailable" with
1452
+ all orgs' runs, or status "unavailable" with
1373
1453
  typical {lowCredits, highCredits, unit}.
1374
1454
  has_more / next_cursor the page is bounded; pass --cursor to continue.
1375
1455
  is_truncated true when the page was cut for size.
@@ -1430,7 +1510,7 @@ Output fields:
1430
1510
  outputSchema.properties the per-row result fields, for example email,
1431
1511
  email_source, email_validated, waterfall_attempts.
1432
1512
  runCommand copy it and replace the placeholder input.
1433
- latestRunId the most recent run in this workspace, if any;
1513
+ latestRunId the most recent run in this org, if any;
1434
1514
  useful to reuse a finished result instead of
1435
1515
  rerunning.
1436
1516
  triggerStatus cron or webhook triggers configured for the play.
@@ -1569,13 +1649,13 @@ Output:
1569
1649
  rateLimited {latestRunId, nextAllowedAt, message}.
1570
1650
  ]]
1571
1651
  Concurrency:
1572
- A workspace runs as many Plays at once as its plan allows; each run holds
1652
+ An org runs as many Plays at once as its plan allows; each run holds
1573
1653
  one slot while it executes. A run over the limit is not rejected: it waits
1574
1654
  and starts when another finishes. While it waits, run.activity.summary
1575
1655
  starts with "Queued:", run.activity.observation.activityId is
1576
1656
  "run:sandbox-capacity", and warnings names the plan that runs more.
1577
1657
  [[cli:
1578
- deepline billing entitlements shows this workspace's plan and limit and
1658
+ deepline billing entitlements shows this org's plan and limit and
1579
1659
  every plan's limit; this help prints them too when you are signed in.
1580
1660
  ]]
1581
1661
  ${_chunkH4ALLC2Xjs.PRICING_PAGE_NOTE}
@@ -1644,7 +1724,7 @@ Related:
1644
1724
  "plays versions": {
1645
1725
  core: `
1646
1726
  Purpose:
1647
- List the saved revisions of a workspace play, newest first, and which one
1727
+ List the saved revisions of an org play, newest first, and which one
1648
1728
  is live.
1649
1729
  When:
1650
1730
  Before making an older revision live or running a specific revision.
@@ -1661,7 +1741,7 @@ Cost:
1661
1741
  "plays delete": {
1662
1742
  core: `
1663
1743
  Purpose:
1664
- Move a workspace play to Trash and stop its triggers. Its revisions and
1744
+ Move an org play to Trash and stop its triggers. Its revisions and
1665
1745
  run history are kept, so it can be restored.
1666
1746
  When:
1667
1747
  When the user asks to remove a play. Prebuilt plays cannot be deleted.
@@ -1820,13 +1900,13 @@ Output:
1820
1900
  With full: true the package is under package, beside the diagnostics.
1821
1901
  ]]
1822
1902
  Concurrency:
1823
- A workspace runs as many Plays at once as its plan allows; each run holds
1903
+ An org runs as many Plays at once as its plan allows; each run holds
1824
1904
  one slot while it executes. A run over the limit is not rejected: it waits
1825
1905
  and starts when another finishes. While it waits, run.activity.summary
1826
1906
  starts with "Queued:", run.activity.observation.activityId is
1827
1907
  "run:sandbox-capacity", and warnings names the plan that runs more.
1828
1908
  [[cli:
1829
- deepline billing entitlements shows this workspace's plan and limit and
1909
+ deepline billing entitlements shows this org's plan and limit and
1830
1910
  every plan's limit; this help prints them too when you are signed in.
1831
1911
  ]]
1832
1912
  ${_chunkH4ALLC2Xjs.PRICING_PAGE_NOTE}
@@ -1850,7 +1930,7 @@ Output fields:
1850
1930
  the last three are terminal.
1851
1931
  run.activity the current step while running, null when finished.
1852
1932
  A queued capacity activity means it is waiting for a
1853
- workspace concurrency slot, even if run.status says
1933
+ org concurrency slot, even if run.status says
1854
1934
  running. target.limit is the observed limit;
1855
1935
  target.limitSource=admission means it was pinned at
1856
1936
  launch. Plan changes apply to new launches, not that
@@ -1994,7 +2074,7 @@ Avoid:
1994
2074
  core: `
1995
2075
  Purpose:
1996
2076
  The stored text logs of one run, or a search of recent events across the
1997
- workspace's runs. Nothing runs again.
2077
+ org's runs. Nothing runs again.
1998
2078
  When:
1999
2079
  [[cli:
2000
2080
  When a run failed and the runs get error is not enough: runs logs
@@ -2060,7 +2140,7 @@ Cost:
2060
2140
  Avoid:
2061
2141
  Exit 4 means a key was not found; exit 5 means a result is incomplete or
2062
2142
  unavailable, with the successful entries still returned. Reads need the
2063
- workspace the run belongs to.
2143
+ org the run belongs to.
2064
2144
  `
2065
2145
  },
2066
2146
  "runs watch": {
@@ -2105,9 +2185,9 @@ Cost:
2105
2185
  "runs stop-all": {
2106
2186
  core: `
2107
2187
  Purpose:
2108
- Request cancellation of every active run in the workspace.
2188
+ Request cancellation of every active run in the org.
2109
2189
  When:
2110
- Unjamming a workspace. Do not use it to stop one run; use [[runs stop]].
2190
+ Unjamming an org. Do not use it to stop one run; use [[runs stop]].
2111
2191
  [[cli:
2112
2192
  Input:
2113
2193
  --reason "<text>". --dry-run lists what would be stopped. --json.
@@ -2256,16 +2336,25 @@ Output (JSON):
2256
2336
  Cost:
2257
2337
  [[--dry-run]] is free. Deploying creates monitors, which spend credits:
2258
2338
  credits_due_now in the plan is what the creates cost.
2339
+ Timing:
2340
+ Members usually settle within minutes, but the provider can take hours to
2341
+ finish its creates. A member whose error says the provider is still
2342
+ creating it is waiting, not failing.
2343
+ [[cli:
2344
+ --wait stopping at its timeout means the same.
2345
+ ]]
2259
2346
  Avoid:
2260
2347
  Do not interrupt a multi-request commit and start a different definition:
2261
2348
  the open stage holds the fleet against another plan for ten minutes. Re-run
2262
- the same command to continue it.
2349
+ the same command to continue it. Do not deactivate or redeploy a converging
2350
+ Fleet to unstick it: neither cancels a create the provider has accepted. A
2351
+ deactivation waits for that create to land, then deletes it.
2263
2352
  `
2264
2353
  },
2265
2354
  "db query": {
2266
2355
  core: `
2267
2356
  Purpose:
2268
- Run SQL against the workspace's customer database, where play runs persist
2357
+ Run SQL against the org's customer database, where play runs persist
2269
2358
  their result rows.
2270
2359
  When:
2271
2360
  To read result rows in place (filter, join, count) instead of exporting,
@@ -2287,6 +2376,1695 @@ Cost:
2287
2376
  Avoid:
2288
2377
  Do not guess table names; a run's dataset table is named in [[runs get]]
2289
2378
  under datasets[].storage.
2379
+ `
2380
+ },
2381
+ outcomes: {
2382
+ rolloutFeature: "outcomes",
2383
+ core: `
2384
+ Purpose:
2385
+ Hand a role to agents and people. An outcome says what should be true, how
2386
+ it is measured, what must never happen, and who is on it. Everyone on it
2387
+ shares one feed.
2388
+ The four parts:
2389
+ Spec: one file, <outcome>.outcome.ts, versioned the way plays are.
2390
+ Feed: everything said on the outcome. Every item is an entry with an id
2391
+ like enrichment-coverage/14.
2392
+ Work: tasks and asks are entries with a state.
2393
+ Stakeholders: agents, people and channels. People and channels are reached
2394
+ through Slack.
2395
+ The sequence:
2396
+ 1. [[outcomes describe <outcome> --as claude]] returns the live spec, where
2397
+ each key result stands, open asks, tasks, the latest entries, a cursor,
2398
+ and the commands to run next.
2399
+ 2. [[outcomes tasks claim <outcome> --as claude --wait 10m]] takes the next
2400
+ task. [[outcomes tasks run <task> --as claude -- <command>]] claims it,
2401
+ runs the command and settles the task from its exit code.
2402
+ 3. [[outcomes post <outcome> <text> --as claude]] says what happened
2403
+ (--file attaches an image or video), then
2404
+ [[outcomes tasks complete <task> --as claude]].
2405
+ 4. [[outcomes measure <outcome> <value> --as claude]] reports where a key
2406
+ result stands now. The outcome is met when its key results are, not
2407
+ when its tasks are done.
2408
+ 5. [[outcomes wait <outcome> --after <cursor>]] blocks until a person or
2409
+ another agent writes.
2410
+ An agent's first action puts it on the outcome; there is no join step.
2411
+ Being told, instead of asking:
2412
+ An outcome runs for months and no agent stays running that long. A watch
2413
+ says what an agent wants to hear about; what matches waits in its inbox
2414
+ until it is pulled and acknowledged, however long that takes.
2415
+ 1. Once: [[outcomes watches add <outcome> --as claude]]. It hears @claude
2416
+ written in any post or reply, tasks made for claude, replies to and
2417
+ changes of what claude posted, and what claude's schedules post.
2418
+ 2. On a timer (cron, a scheduled agent run, every 30 minutes is fine):
2419
+ [[outcomes listen <outcome> --as claude --drain -- <command>]] runs
2420
+ the command once for each waiting match, then exits. Nothing waiting
2421
+ is exit 0 at once. Without --drain it stays connected and runs the
2422
+ command as each match arrives.
2423
+ 3. By hand instead: [[outcomes inbox <outcome> --as claude]], then
2424
+ [[outcomes ack <outcome> <match> --lease <lease>]] for each.
2425
+ To reach another agent, write its name in the text: "Done. @codex, your
2426
+ turn." [[outcomes post <outcome> <text> --in 2h]] and --every post later,
2427
+ so an agent can also wake itself.
2428
+ Setting one up:
2429
+ [[outcomes check <file>]], then [[outcomes publish <file>]].
2430
+ The outcome file, <outcome>.outcome.ts (the file name is the outcome id):
2431
+ export default {
2432
+ role: 'Enrichment Coverage Owner', // string, required
2433
+ owner: 'chirag', // string, required: a workspace
2434
+ // member's name, first name or email
2435
+ objective: 'Every contact at an ICP account can be reached.', // string, required
2436
+ keyResults: [ // list of strings, at least one
2437
+ 'Verified work email on 85% of ICP contacts',
2438
+ ],
2439
+ measure: 'Coverage query, every Monday.', // string, optional
2440
+ guardrails: [ // list, optional; one key per item
2441
+ { ask: { before: 'plays.set-live' } }, // before: plays.set-live
2442
+ { cap: { credits: 2000, per: 'week' } }, // per: 'day' | 'week' | 'month'
2443
+ { never: 'overwrite a field a person edited' }, // string
2444
+ { rule: 'Post a summary to #revops every Friday' }, // string
2445
+ ],
2446
+ feedbackLoop: ['hubspot'], // list of integration ids, optional
2447
+ plays: ['coverage-report'], // list of play names, optional
2448
+ };
2449
+ Plain values only: no imports, functions, variables or template strings.
2450
+ Ids:
2451
+ An outcome is its name: lower-case letters, numbers and dashes, at most 64.
2452
+ An entry is <outcome>/<n>, for example enrichment-coverage/14. Tasks, asks
2453
+ and replies are entries. A flag that takes an entry (--task, --after, --ask,
2454
+ --for, --before) refuses an entry of another outcome. A stakeholder is its
2455
+ key from [[outcomes stakeholders list <outcome>]]. A cursor counts changes;
2456
+ it is not an entry number.
2457
+ Acting as an agent:
2458
+ --as <agent> (or DEEPLINE_AGENT_NAME) names the agent: lower-case letters,
2459
+ numbers and dashes, at most 40. It uses your credentials and can never do
2460
+ more than you. Its first action puts it on the outcome, and the feed says
2461
+ so. A name a person or channel already holds is refused with
2462
+ AGENT_NOT_JOINED, as is a name that is not on the outcome where it was not
2463
+ the caller's own action: a task's --for, and inbox or listen. It is shown
2464
+ as "<your first name>'s <agent>": claude is Claude Code, codex is Codex,
2465
+ cursor is Cursor, and any other name is shown as typed. Without --as you act as yourself, and
2466
+ the output says "(no --as)".
2467
+ People and agents:
2468
+ A person may answer an ask, and may complete, release, renew or cancel a
2469
+ task whoever holds it. An agent may not answer an ask, and acts only on a
2470
+ task it holds. A claim is fenced by a token that the CLI keeps on the
2471
+ machine that claimed, in a file only you can read, so renew, complete,
2472
+ release and block take just the task's id there.
2473
+ Two hosts running under one agent name cannot act on each other's claims.
2474
+ Labels:
2475
+ A label is a key or key=value (team=emea): the key starts with a letter or
2476
+ number and holds letters, numbers, dots, dashes and underscores. An entry
2477
+ carries at most 10. --label sets them on a post or a task;
2478
+ [[outcomes label <entry>]] changes them later.
2479
+ Text:
2480
+ Text is what you type, never a path. In a post and in a reply, @name
2481
+ mentions an agent or person on the outcome and #name a channel on it; the
2482
+ output lists who was mentioned. A name that is not on the outcome
2483
+ mentions nobody. --text-file <path> reads the text from a file. Text that starts with - goes after --.
2484
+ An entry is at most 4,000 UTF-16 code units: most characters count as one,
2485
+ an emoji as two or more.
2486
+ Guardrails:
2487
+ ask: the server refuses the named action, run with --outcome, until an ask
2488
+ for it is approved by a person. Exit 3, code GUARDRAIL_APPROVAL_REQUIRED,
2489
+ with the ask command to run. One approval allows one run, and is used
2490
+ only when that run succeeds.
2491
+ cap: recorded and shown. Spend is not counted against it yet.
2492
+ never: text the agent must follow. Nothing enforces it.
2493
+ rule: any rule in your own words, { rule: '...' }. Shown as written.
2494
+ Nothing enforces it.
2495
+ JSON (--json):
2496
+ Success is one document: ok true, command, the result, and render.sections
2497
+ with the lines the text output prints. Failure is one document: ok false,
2498
+ code, message, exitCode, and next when there is a command to run. A file
2499
+ with errors adds the findings to that. A missing argument or an unknown
2500
+ option is reported by the CLI itself, in its own usage-error document.
2501
+ Text output escapes control characters in entry text; JSON does not.
2502
+ Exit codes:
2503
+ 0 ok (including nothing to claim and a wait that timed out).
2504
+ 2 usage: a missing argument, an option value that is not valid, or a local
2505
+ file that is not there.
2506
+ 3 refused: permission, a guardrail, an agent that has not joined, or an
2507
+ agent answering an ask.
2508
+ 4 not found: no such outcome, entry or revision, or the outcome is in Trash.
2509
+ 5 the request failed. OUTCOME_BUSY (too many writers at once, nothing
2510
+ written) is retried a few times first and is safe to run again.
2511
+ 7 the state does not allow it: a lost claim, an answered ask, a reused
2512
+ idempotency key, or a file with errors.
2513
+ Not built yet:
2514
+ Editing or deleting an entry, restoring an outcome from Trash, a diff
2515
+ between two revisions, and looking up a Slack handle.
2516
+ Cost:
2517
+ Free.
2518
+ `
2519
+ },
2520
+ "outcomes list": {
2521
+ rolloutFeature: "outcomes",
2522
+ core: `
2523
+ Purpose:
2524
+ List this workspace's outcomes, with the asks waiting on someone and the
2525
+ agents due or overdue for a check-in.
2526
+ [[cli:
2527
+ Input:
2528
+ --mine keeps the outcomes whose owner is you, and those one of your agents
2529
+ has joined. It follows who you are, not --as: there is no per-agent list.
2530
+ --limit <n> is how many one page holds (100, up to 500). --after <outcome>
2531
+ reads the page after that outcome.
2532
+ ]]
2533
+ Pages:
2534
+ Outcomes are listed by name, a page at a time. A page that is not the last
2535
+ ends with the command for the next one, and JSON has it as next. Read on
2536
+ until there is none to have every outcome. Names do not change, so reading
2537
+ on neither repeats nor skips an outcome while others are being updated.
2538
+ Output (JSON):
2539
+ outcomes[] {id, name, role, status, liveVersion, spec, guardrails[],
2540
+ stakeholders[], openAsks[], openAsksMore}, nextAfter (the outcome to pass
2541
+ to --after, null on the last page), next. id and name are both the
2542
+ outcome's name. A card carries up to 20 open asks; openAsksMore says there
2543
+ are others, which asks list reads. Outcomes in Trash are left out.
2544
+ Errors (code):
2545
+ INVALID_LIMIT (exit 2).
2546
+ Example:
2547
+ deepline outcomes list --mine
2548
+ deepline outcomes list --limit 50 --after enrichment-coverage
2549
+ Cost:
2550
+ Free.
2551
+ `
2552
+ },
2553
+ "outcomes describe": {
2554
+ rolloutFeature: "outcomes",
2555
+ core: `
2556
+ Purpose:
2557
+ The one read an agent makes when it starts work: the live spec, where each
2558
+ key result stands, who is on the outcome, open asks, tasks in flight, the
2559
+ latest entries, a cursor, and the commands to run next.
2560
+ [[cli:
2561
+ Input:
2562
+ <outcome>. --as <agent> writes the next commands for that agent. Reading
2563
+ joins nothing.
2564
+ ]]
2565
+ Or get:
2566
+ [[outcomes get <outcome>]] reads one revision in full: it adds the
2567
+ revision id, version and artifact hash, reads any saved revision
2568
+ (--revision, --revision-id, --latest), and prints the file with --source.
2569
+ Use describe to start work and get to read or copy a spec.
2570
+ Output (JSON):
2571
+ id and name (both the outcome's name), role, status, liveVersion, cursor,
2572
+ spec, measures[] {keyResult, value, byName, at, seq} (the latest value of
2573
+ each key result that has been measured), next[] (commands, most useful
2574
+ first), guardrails[], stakeholders[], openAsks[] (the oldest 50) and
2575
+ openAsksMore, tasks[] (open tasks, the oldest 50 in each state) and
2576
+ tasksMore, latest[] (the 10 newest entries), contract
2577
+ (entry kinds, guardrail kinds and the actions an ask guardrail can gate).
2578
+ When openAsksMore or tasksMore is true there are others: read every one
2579
+ with asks list or tasks list, which the text output names.
2580
+ Errors (code):
2581
+ OUTCOME_NOT_FOUND (exit 4), which says so when the outcome is in Trash.
2582
+ Example:
2583
+ deepline outcomes describe enrichment-coverage
2584
+ Cost:
2585
+ Free.
2586
+ `
2587
+ },
2588
+ "outcomes get": {
2589
+ rolloutFeature: "outcomes",
2590
+ core: `
2591
+ Purpose:
2592
+ Read one revision of an outcome in full, or its file.
2593
+ [[cli:
2594
+ Input:
2595
+ <outcome>. With nothing else, the live revision. --revision <n> (the number
2596
+ versions lists), --revision-id <id> or --latest reads a saved one. --source
2597
+ prints the outcome file; --out <file> writes it and needs --source.
2598
+ ]]
2599
+ Or describe:
2600
+ [[outcomes describe <outcome>]] is the shorter read for starting work. It
2601
+ always reads the live revision and leaves out the revision's source.
2602
+ Output (JSON):
2603
+ Everything describe returns, plus revision {revisionId, version, source,
2604
+ artifactHash, createdByName, createdAt, live}.
2605
+ Errors (code):
2606
+ REVISION_NOT_FOUND and OUTCOME_NOT_FOUND (exit 4). INVALID_VERSION (exit 2).
2607
+ Example:
2608
+ deepline outcomes get enrichment-coverage --revision 2 --source --out enrichment-coverage.outcome.ts
2609
+ Cost:
2610
+ Free.
2611
+ `
2612
+ },
2613
+ "outcomes create": {
2614
+ rolloutFeature: "outcomes",
2615
+ core: `
2616
+ Purpose:
2617
+ Start a draft outcome from a role. It has no spec until a file is
2618
+ published; publishing a file for a new name creates the outcome too, so
2619
+ this command is optional.
2620
+ [[cli:
2621
+ Input:
2622
+ --role <role>, what the outcome owns. --name <outcome>, the outcome id:
2623
+ lower-case letters, numbers and dashes, at most 64 characters. Without
2624
+ --name the role is lower-cased and its spaces become dashes.
2625
+ ]]
2626
+ Names:
2627
+ A name is taken for good. An outcome in Trash keeps its name, so a new
2628
+ outcome cannot use it: OUTCOME_EXISTS says when that is why.
2629
+ Output (JSON):
2630
+ name, outcome {slug, role, status draft}.
2631
+ Errors (code):
2632
+ ROLE_REQUIRED and INVALID_OUTCOME_NAME (exit 2). OUTCOME_EXISTS, and
2633
+ OUTCOME_NAME_TAKEN when another workspace of the org holds the name (exit 7).
2634
+ Example:
2635
+ deepline outcomes create --role "Enrichment Coverage Owner"
2636
+ Cost:
2637
+ Free.
2638
+ `
2639
+ },
2640
+ "outcomes check": {
2641
+ rolloutFeature: "outcomes",
2642
+ core: `
2643
+ Purpose:
2644
+ Validate an outcome file against this workspace. Changes nothing. The server
2645
+ owns every rule.
2646
+ [[cli:
2647
+ Input:
2648
+ <file>: <outcome>.outcome.ts. The file name is the outcome id: lower-case
2649
+ letters, numbers and dashes.
2650
+ ]]
2651
+ The file:
2652
+ export default {
2653
+ role: 'Enrichment Coverage Owner', // string, required
2654
+ owner: 'chirag', // string, required: a workspace
2655
+ // member's name, first name or email
2656
+ objective: 'Every contact at an ICP account can be reached.', // string, required
2657
+ keyResults: [ // list of strings, at least one
2658
+ 'Verified work email on 85% of ICP contacts',
2659
+ ],
2660
+ measure: 'Coverage query, every Monday.', // string, optional
2661
+ guardrails: [ // list, optional; one key per item
2662
+ { ask: { before: 'plays.set-live' } }, // before: plays.set-live
2663
+ { cap: { credits: 2000, per: 'week' } }, // credits: a positive number;
2664
+ // per: 'day' | 'week' | 'month'
2665
+ { never: 'overwrite a field a person edited' }, // string
2666
+ { rule: 'Post a summary to #revops every Friday' }, // string
2667
+ ],
2668
+ feedbackLoop: ['hubspot'], // list of integration ids, optional
2669
+ plays: ['coverage-report'], // list of play names, optional
2670
+ };
2671
+ Plain values only: strings in single or double quotes, numbers, true,
2672
+ false, lists and objects. No imports, functions, variables or template
2673
+ strings. A string is at most 500 characters and a list at most 20 items.
2674
+ ask.before accepts plays.set-live. No other field is allowed.
2675
+ One pass:
2676
+ Every mistake that can be found is reported together: each field's type,
2677
+ the owner, the plays, the feedback loop and the guardrail actions. A check
2678
+ is skipped only when an earlier error left it nothing to look at, for
2679
+ example a file that does not parse or a plays field that is not a list.
2680
+ skipped[] names those, and the text output counts them. A file that does
2681
+ not parse reports the line and column, and what was found there.
2682
+ Output (JSON):
2683
+ A valid file: ok true, valid true, name, warnings[], artifactHash,
2684
+ changes[] against the live version, live, render.sections (the card).
2685
+ A file with errors: ok false, code CHECK_FAILED, message, exitCode 7,
2686
+ valid false, errors[], warnings[], skipped[], and example, a complete
2687
+ file with every field.
2688
+ A finding is {severity, path, message} and sometimes fix. severity is
2689
+ error or warning: an error stops a publish and a warning does not. path is
2690
+ where in the file, for example guardrails[1].cap.per, and is empty for the
2691
+ file as a whole. fix is present only when there is a known repair.
2692
+ Errors:
2693
+ A file with errors exits 7. A path with no file exits 2.
2694
+ Example:
2695
+ deepline outcomes check enrichment-coverage.outcome.ts
2696
+ Cost:
2697
+ Free.
2698
+ `
2699
+ },
2700
+ "outcomes publish": {
2701
+ rolloutFeature: "outcomes",
2702
+ core: `
2703
+ Purpose:
2704
+ Save an outcome file as a new revision and make it live, or make a saved
2705
+ revision live. Versioned like plays: revisions are immutable and one is
2706
+ live.
2707
+ [[cli:
2708
+ Input:
2709
+ <file> publishes that file. <outcome> with --revision <n>, --revision-id
2710
+ <id> or --latest makes a saved revision live and rewrites nothing; that is
2711
+ how you go back. --revision takes the number versions lists; --version is
2712
+ the CLI's own version flag on every command. --dry-run prints what would
2713
+ change and writes nothing. --expected-artifact <hash> refuses if the file
2714
+ changed since check; it takes the full hash or the first 8 or more
2715
+ characters, so the 12 that check prints work. --expected-live
2716
+ <revision-id> refuses if someone else published in between.
2717
+ ]]
2718
+ Output (JSON):
2719
+ success, name, liveVersion, revisionId, artifactHash, previousLiveVersion,
2720
+ previousRevisionId, previousArtifactHash, unchanged. Publishing a file
2721
+ also returns changes[] and warnings[]; making a saved revision live does
2722
+ not. The text output lists the changes. A file with errors is the error
2723
+ document [[outcomes check <file>]] returns.
2724
+ Errors (code):
2725
+ CHECK_FAILED (exit 7, with the findings), ARTIFACT_CHANGED and
2726
+ LIVE_REVISION_CHANGED (exit 7), REVISION_NOT_FOUND (exit 4).
2727
+ Example:
2728
+ deepline outcomes publish enrichment-coverage.outcome.ts --dry-run
2729
+ Cost:
2730
+ Free.
2731
+ `
2732
+ },
2733
+ "outcomes versions": {
2734
+ rolloutFeature: "outcomes",
2735
+ core: `
2736
+ Purpose:
2737
+ List an outcome's saved revisions, newest first, and which one is live.
2738
+ [[cli:
2739
+ Input:
2740
+ <outcome>. --name <outcome> is the same thing, kept for scripts.
2741
+ --limit <n> is how many one page holds (100, up to 500). --before
2742
+ <version> reads the page of older revisions before that version.
2743
+ ]]
2744
+ Pages:
2745
+ A page that is not the last ends with the command for the next one, and
2746
+ JSON has it as next. Read on until there is none to have every revision.
2747
+ Output (JSON):
2748
+ name, liveVersion, versions[] {version, revisionId, artifactHash,
2749
+ createdByName, createdAt, live}, nextBefore (the version to pass to
2750
+ --before, null on the last page), next. version is the number --revision
2751
+ takes on get and publish.
2752
+ Errors (code):
2753
+ INVALID_LIMIT, INVALID_CURSOR (exit 2). OUTCOME_NOT_FOUND (exit 4).
2754
+ Example:
2755
+ deepline outcomes versions enrichment-coverage
2756
+ Cost:
2757
+ Free.
2758
+ `
2759
+ },
2760
+ "outcomes pause": {
2761
+ rolloutFeature: "outcomes",
2762
+ core: `
2763
+ Purpose:
2764
+ Pause an outcome. While it is paused, an action run with --outcome is
2765
+ refused with OUTCOME_PAUSED (exit 3).
2766
+ Still works while paused:
2767
+ Posts, check-ins, replies, reactions, task claims and transitions, asks and
2768
+ answers, publishing, and every read. Pausing stops guarded actions only.
2769
+ Then:
2770
+ [[outcomes resume <outcome>]] lets guarded actions run again.
2771
+ Output (JSON):
2772
+ ok, outcome {slug, role, status, liveVersion, liveRevisionId}.
2773
+ Errors (code):
2774
+ OUTCOME_NOT_PUBLISHED (exit 2): a draft cannot be paused.
2775
+ Example:
2776
+ deepline outcomes pause enrichment-coverage
2777
+ Cost:
2778
+ Free.
2779
+ `
2780
+ },
2781
+ "outcomes resume": {
2782
+ rolloutFeature: "outcomes",
2783
+ core: `
2784
+ Purpose:
2785
+ Resume a paused outcome, so actions run with --outcome are allowed again.
2786
+ Resuming an outcome that is not paused changes nothing.
2787
+ Output (JSON):
2788
+ ok, outcome {slug, role, status, liveVersion, liveRevisionId}.
2789
+ Errors (code):
2790
+ OUTCOME_NOT_PUBLISHED (exit 2). OUTCOME_NOT_FOUND (exit 4).
2791
+ Example:
2792
+ deepline outcomes resume enrichment-coverage
2793
+ Cost:
2794
+ Free.
2795
+ `
2796
+ },
2797
+ "outcomes delete": {
2798
+ rolloutFeature: "outcomes",
2799
+ core: `
2800
+ Purpose:
2801
+ Move an outcome to Trash. Admins only.
2802
+ What it does:
2803
+ The outcome's revisions and entries are kept, but there is no restore
2804
+ command. Every read and write of it then answers OUTCOME_NOT_FOUND (exit
2805
+ 4) with a message that says it is in Trash, and its name cannot be used
2806
+ for a new outcome. --dry-run says what would be deleted. Deleting an
2807
+ outcome that is already in Trash changes nothing and says so.
2808
+ Output (JSON):
2809
+ ok, name, deleted (false when it was already in Trash).
2810
+ Errors (code):
2811
+ WORKSPACE_GRANT_REQUIRED (exit 3). OUTCOME_NOT_FOUND (exit 4).
2812
+ Example:
2813
+ deepline outcomes delete enrichment-coverage --dry-run
2814
+ Cost:
2815
+ Free.
2816
+ `
2817
+ },
2818
+ "outcomes feed": {
2819
+ rolloutFeature: "outcomes",
2820
+ core: `
2821
+ Purpose:
2822
+ Read an outcome's feed: the newest top-level entries, oldest first. Replies
2823
+ are read with [[outcomes updates get <entry>]].
2824
+ [[cli:
2825
+ Input:
2826
+ <outcome>. --limit <n>: 1 to 100, default 20; more than 100 reads 100 and
2827
+ says so, and anything that is not a whole number of 1 or more is refused.
2828
+ --before <entry> reads the page that ends just before that entry. --kind
2829
+ update, checkin (or check-in), task, ask or system. --open. --since a
2830
+ weekday (monday), today, yesterday, a span (7d) or a date.
2831
+ ]]
2832
+ Paging back:
2833
+ A full page prints the next command and returns nextBefore; pass it as
2834
+ --before to read the page before. nextBefore is null at the start of the
2835
+ feed. --open returns every open task and ask. --kind task, ask, checkin or
2836
+ system reads that kind directly, however far back, and pages with --before.
2837
+ --since and --kind update filter one page of at most 100 entries, so a
2838
+ short page is not the end: page with --before to reach older matches.
2839
+ Output (JSON):
2840
+ entries[], cursor (for [[outcomes wait <outcome> --after <cursor>]]),
2841
+ limit (what was read with), nextBefore. Every entry has id, seq, kind,
2842
+ text, author, parentId, reactions[], files[], replyCount. A task also has
2843
+ state, afterId, blockedByAskId, claimedByName, leaseExpiresAt and result;
2844
+ an ask also has state, askTo, askOptions, askAction and its answer.
2845
+ Errors (code):
2846
+ INVALID_ENTRY, INVALID_KIND and INVALID_LIMIT (exit 2). OUTCOME_NOT_FOUND
2847
+ (exit 4).
2848
+ Example:
2849
+ deepline outcomes feed enrichment-coverage --kind ask --open
2850
+ Cost:
2851
+ Free.
2852
+ `
2853
+ },
2854
+ "outcomes wait": {
2855
+ rolloutFeature: "outcomes",
2856
+ core: `
2857
+ Purpose:
2858
+ Block until something new lands on an outcome: a message, a reply, an
2859
+ answer, a task changing state. This is how an agent hears from a person or
2860
+ another agent inside one turn.
2861
+ [[cli:
2862
+ Input:
2863
+ --after <cursor> from describe, feed or a previous wait; default is now.
2864
+ --for <entry> waits for that one entry of this outcome to change, for
2865
+ example an ask being answered. --mentions <name> wakes only for entries
2866
+ that mention that name, for example @claude; anything else is skipped and
2867
+ the cursor moves past it. --timeout <span> (default 10m).
2868
+ ]]
2869
+ Answers at once:
2870
+ --for an entry that does not exist is ENTRY_NOT_FOUND. --for an entry that
2871
+ already reached its last state before the cursor (an answered or withdrawn
2872
+ ask, a done or cancelled task) returns it with alreadySettled true. --after
2873
+ a cursor the outcome has not reached is INVALID_CURSOR. None of these wait
2874
+ out the timeout.
2875
+ The cursor:
2876
+ A cursor counts changes to the outcome. It is not an entry number: a reply
2877
+ moves it by two (the reply, and its parent's reply count), and a state
2878
+ change moves it without adding an entry. Pass back the cursor you were
2879
+ given; never build one from an entry id.
2880
+ Output (JSON):
2881
+ entries[], cursor (pass it to the next wait), timedOut, next (the command
2882
+ that waits on from here). Timing out is exit 0. In text a reply is marked "(reply to <entry>)".
2883
+ Errors (code):
2884
+ INVALID_CURSOR and INVALID_ENTRY (exit 2). ENTRY_NOT_FOUND and
2885
+ OUTCOME_NOT_FOUND (exit 4).
2886
+ Example:
2887
+ deepline outcomes wait enrichment-coverage --for enrichment-coverage/15 --timeout 30m
2888
+ Cost:
2889
+ Free.
2890
+ `
2891
+ },
2892
+ "outcomes post": {
2893
+ rolloutFeature: "outcomes",
2894
+ core: `
2895
+ Purpose:
2896
+ Post an update to an outcome's feed: text, files, or both. The same
2897
+ command as [[outcomes updates post <outcome> [text]]], which documents
2898
+ every option, the file rules and the errors.
2899
+ Output (JSON):
2900
+ id, entry, cursor, replayed.
2901
+ Example:
2902
+ deepline outcomes post enrichment-coverage "Email went 61% to 79%." --as claude
2903
+ Cost:
2904
+ Free.
2905
+ `
2906
+ },
2907
+ "outcomes reply": {
2908
+ rolloutFeature: "outcomes",
2909
+ core: `
2910
+ Purpose:
2911
+ Reply in the thread of any entry. @name in the text mentions them. The
2912
+ same command as [[outcomes updates reply <entry> [text]]], which documents
2913
+ the errors. With --in, --at or --every the reply is posted later,
2914
+ which is how an agent comes back to a thread: check on a deploy in ten
2915
+ minutes, and cancel the rest with [[outcomes schedules cancel <outcome>
2916
+ <schedule>]] once it has happened.
2917
+ Output (JSON):
2918
+ id (the reply's own id), entry (with parentId), cursor, replayed.
2919
+ Example:
2920
+ deepline outcomes reply enrichment-coverage/14 "Split the backlog over two nights." --as claude
2921
+ Cost:
2922
+ Free.
2923
+ `
2924
+ },
2925
+ "outcomes measure": {
2926
+ rolloutFeature: "outcomes",
2927
+ core: `
2928
+ Purpose:
2929
+ Report where a key result stands now. The value becomes that key result's
2930
+ latest, shown by [[outcomes describe <outcome>]] and on the outcome's page,
2931
+ and is posted to the feed, which keeps the history.
2932
+ [[cli:
2933
+ Input:
2934
+ <outcome> <value>. The value is what the key result reads now, for example
2935
+ 71% or 412 of 500: 1 to 80 characters, kept as typed. --key-result <n>
2936
+ says which, counting from 1 as describe lists them; it is not needed when
2937
+ the outcome has one. --note <text> says how it was measured or what moved
2938
+ it. --as <agent>.
2939
+ ]]
2940
+ What it does not do:
2941
+ Nothing compares the value with the key result's target. Saying an outcome
2942
+ is met is a person's call.
2943
+ Output (JSON):
2944
+ id (the feed entry), entry, cursor, keyResult (its text), value, previous
2945
+ (the value before this one, or null).
2946
+ Errors (code):
2947
+ INVALID_VALUE and KEY_RESULT_REQUIRED, which lists the key results (exit
2948
+ 2). AGENT_NOT_JOINED (exit 3). KEY_RESULT_NOT_FOUND and OUTCOME_NOT_FOUND
2949
+ (exit 4). OUTCOME_NOT_PUBLISHED (exit 7).
2950
+ Example:
2951
+ deepline outcomes measure enrichment-coverage 71% --note "Coverage query, Monday run." --as claude
2952
+ Cost:
2953
+ Free.
2954
+ `
2955
+ },
2956
+ "outcomes checkin": {
2957
+ rolloutFeature: "outcomes",
2958
+ core: `
2959
+ Purpose:
2960
+ Post a check-in: what happened since the last one, even when nothing did.
2961
+ [[cli:
2962
+ Input:
2963
+ <outcome> <text>. --as <agent>. --idempotency-key <key>.
2964
+ ]]
2965
+ The period:
2966
+ An agent that joined with --checkin has a cadence: daily, weekly, a number
2967
+ of days, or a weekday. The period is that interval, counted from the
2968
+ agent's last entry of any kind. An agent is "due" on the day the interval
2969
+ ends and "silent N days" after it. Any post by the agent resets it; a
2970
+ check-in is the post to make when there is nothing else to say.
2971
+ Output (JSON):
2972
+ id, entry (kind checkin), cursor, replayed.
2973
+ Errors (code):
2974
+ TEXT_REQUIRED and TEXT_TOO_LONG, over 4,000 UTF-16 code units (exit 2).
2975
+ AGENT_NOT_JOINED (exit 3). IDEMPOTENCY_KEY_REUSED (exit 7).
2976
+ Example:
2977
+ deepline outcomes checkin enrichment-coverage "Still on it. Nothing blocked." --as claude
2978
+ Cost:
2979
+ Free.
2980
+ `
2981
+ },
2982
+ "outcomes updates post": {
2983
+ rolloutFeature: "outcomes",
2984
+ core: `
2985
+ Purpose:
2986
+ Post an update to an outcome's feed: text, files, or both.
2987
+ [[cli:
2988
+ Input:
2989
+ <outcome> [text]. Text is what you type, never a path; @name in it
2990
+ mentions someone on the outcome. Text that starts with - goes after --. --text-file <path> reads
2991
+ the text from a file instead. Text may be left out when a file is
2992
+ attached. At most 4,000 UTF-16 code units (an emoji counts as two or
2993
+ more). --file <path>, repeatable, up to 10: a PNG, JPEG, WebP or GIF image
2994
+ up to 10 MB, or an MP4, WebM or MOV video up to 100 MB. --mention <name>,
2995
+ repeatable, mentions someone the text does not name; 20 mentions at most. --run <run-id>, which looks like
2996
+ play/<play>/run/<timestamp>-<suffix>. --table <file.csv>: a UTF-8 CSV with
2997
+ a header row, at most 20 columns and 50 rows, every row as wide as the
2998
+ header (@file.csv also works). --label <label>, repeatable. --as <agent>.
2999
+ --idempotency-key <key>.
3000
+ Later instead of now: --in <span> (30m, 2d) or --at <time>
3001
+ (2026-12-01T09:00:00Z) posts it once; --every <span>, at least 1m, posts
3002
+ it again and again, until --times <n> (1 to 100) posts or --until <time>.
3003
+ A scheduled post is text only, starts within a year, and is posted as you
3004
+ or your agent, if still on the outcome when it is due. The output is the
3005
+ schedule, not an entry: scheduled true, schedule {key, fireAt, ...}. A
3006
+ schedule takes no --idempotency-key, and one that repeats ends within a
3007
+ year.
3008
+ ]]
3009
+ Files:
3010
+ Before anything is uploaded the CLI checks how many files there are, and
3011
+ each file's extension, size and first bytes, so a file that is missing,
3012
+ too large, of another type, or not what its name says posts nothing (exit
3013
+ 2). Files upload four at a time. The CLI sends the SHA-256 of the bytes it
3014
+ uploaded. The server checks that digest, the size, and the type the
3015
+ upload declared; it does not inspect the contents. The same rules apply to
3016
+ [[outcomes updates reply <entry> [text] --file <path>]].
3017
+ Idempotency key:
3018
+ A key belongs to one outcome and is kept as long as the entry it made. A
3019
+ retry with the same key, kind and text returns that entry with replayed
3020
+ true and writes nothing. The same key with a different kind or text is
3021
+ IDEMPOTENCY_KEY_REUSED.
3022
+ Output (JSON):
3023
+ id, entry (with files[] {id, url, kind, name, contentType, size, width,
3024
+ height} and reactions[]), cursor, replayed. The text output says when an
3025
+ idempotency key replayed an earlier post.
3026
+ Errors (code):
3027
+ A local file that is not there, or that cannot be attached, is a usage
3028
+ error (exit 2) before any request. From the server: TEXT_REQUIRED,
3029
+ TEXT_TOO_LONG, INVALID_RUN_ID, INVALID_TABLE, FILE_TYPE_NOT_ALLOWED,
3030
+ FILE_TOO_LARGE, TOO_MANY_FILES (exit 2). AGENT_NOT_JOINED (exit 3).
3031
+ FILE_ALREADY_ATTACHED and IDEMPOTENCY_KEY_REUSED (exit 7).
3032
+ Example:
3033
+ deepline outcomes updates post enrichment-coverage "@sam email went 61% to 79%." --file coverage.png --as claude
3034
+ Cost:
3035
+ Free.
3036
+ `
3037
+ },
3038
+ "outcomes updates reply": {
3039
+ rolloutFeature: "outcomes",
3040
+ core: `
3041
+ Purpose:
3042
+ Reply in the thread of any entry: an update, a check-in, a task or an ask.
3043
+ [[cli:
3044
+ Input:
3045
+ <entry> [text], where the entry is <outcome>/<n>. @name in the text
3046
+ mentions someone on the outcome, which is how to hand a thread to another
3047
+ agent; the output lists who was mentioned. Text that
3048
+ starts with - goes after --; --text-file <path> reads it from a file.
3049
+ --file <path> and --idempotency-key <key> work as on
3050
+ [[outcomes updates post <outcome> [text]]]. --as <agent>.
3051
+ ]]
3052
+ Threads:
3053
+ A thread is one level deep: replying to a reply is REPLY_TO_REPLY, with
3054
+ the entry to reply to instead. A reply does not appear in the feed; it is
3055
+ read with [[outcomes updates get <entry>]], and it wakes
3056
+ [[outcomes wait <outcome>]].
3057
+ Output (JSON):
3058
+ id (the reply's own id), entry (with parentId), cursor, replayed.
3059
+ Errors (code):
3060
+ TEXT_REQUIRED, TEXT_TOO_LONG and REPLY_TO_REPLY (exit 2). AGENT_NOT_JOINED
3061
+ (exit 3). ENTRY_NOT_FOUND (exit 4). IDEMPOTENCY_KEY_REUSED (exit 7).
3062
+ Example:
3063
+ deepline outcomes updates reply enrichment-coverage/14 "Split the backlog over two nights."
3064
+ Cost:
3065
+ Free.
3066
+ `
3067
+ },
3068
+ "outcomes updates react": {
3069
+ rolloutFeature: "outcomes",
3070
+ core: `
3071
+ Purpose:
3072
+ Add your reaction to any entry, or take it off. A reaction acknowledges an
3073
+ entry without adding to the feed.
3074
+ [[cli:
3075
+ Input:
3076
+ <entry> <emoji>, for example enrichment-coverage/14 \u{1F44D}. One emoji: a
3077
+ pictograph (with a skin tone or joined sequence), a flag or a keycap.
3078
+ --remove takes the reaction off. --as <agent> reacts as that agent, which
3079
+ is counted apart from you.
3080
+ ]]
3081
+ Behaviour:
3082
+ Safe to repeat: adding a reaction that is there, or removing one that is
3083
+ not, changes nothing, exits 0 and says "Nothing changed". \u2764 and \u2764\uFE0F are
3084
+ one reaction. A reaction takes no entry id and does not move the cursor,
3085
+ so [[outcomes wait <outcome>]] does not return for it. Read reactions
3086
+ with [[outcomes updates get <entry>]] or [[outcomes feed <outcome>]].
3087
+ Output (JSON):
3088
+ id, entry (with reactions[] {emoji, by[] {id, name}}), reacted (whether
3089
+ yours is on the entry now), changed (whether this call changed anything).
3090
+ Errors (code):
3091
+ INVALID_EMOJI (exit 2). AGENT_NOT_JOINED (exit 3). ENTRY_NOT_FOUND (exit
3092
+ 4). REACTION_FULL (50 on one emoji) and TOO_MANY_REACTIONS (20 different
3093
+ emoji on one entry) exit 7.
3094
+ Text output:
3095
+ Each emoji with its count and the first three names, then "and N more".
3096
+ --json has every name.
3097
+ Example:
3098
+ deepline outcomes updates react enrichment-coverage/14 \u{1F44D} --as claude
3099
+ Cost:
3100
+ Free.
3101
+ `
3102
+ },
3103
+ "outcomes updates get": {
3104
+ rolloutFeature: "outcomes",
3105
+ core: `
3106
+ Purpose:
3107
+ Read one entry and its thread. [[outcomes tasks get <task>]] and
3108
+ [[outcomes asks get <ask>]] are the same read.
3109
+ [[cli:
3110
+ Input:
3111
+ <entry>, which is <outcome>/<n>. --limit <n>: replies to return, 1 to 200,
3112
+ default 200. --before <reply> reads the replies that end just before that
3113
+ one. --as is accepted and ignored: a read is the same for everyone.
3114
+ ]]
3115
+ Long threads:
3116
+ One read returns the newest replies, oldest first. When the thread is
3117
+ longer the output says "Showing N of M replies" and prints the command
3118
+ for the page before; JSON has replyCount (every reply), repliesShown and
3119
+ nextBefore, which is null once the first reply has been read.
3120
+ Output (JSON):
3121
+ id, entry, replies[], replyCount, repliesShown, limit, nextBefore.
3122
+ Errors (code):
3123
+ INVALID_ENTRY and INVALID_LIMIT (exit 2). ENTRY_NOT_FOUND and
3124
+ OUTCOME_NOT_FOUND (exit 4).
3125
+ Example:
3126
+ deepline outcomes updates get enrichment-coverage/14 --limit 20
3127
+ Cost:
3128
+ Free.
3129
+ `
3130
+ },
3131
+ "outcomes tasks list": {
3132
+ rolloutFeature: "outcomes",
3133
+ core: `
3134
+ Purpose:
3135
+ List an outcome's tasks. Open tasks by default: ready, claimed, blocked
3136
+ and waiting.
3137
+ [[cli:
3138
+ Input:
3139
+ <outcome>. --all adds done and cancelled tasks. --state <state> lists one
3140
+ state: ready, claimed, blocked, waiting, done or cancelled. --limit <n>
3141
+ is how many one page holds (200, up to 500). --after <task> reads the
3142
+ page after that task.
3143
+ ]]
3144
+ Pages:
3145
+ Tasks are listed oldest first, a page at a time. A page that is not the
3146
+ last ends with the command for the next one, and JSON has it as next. Read
3147
+ on until there is none to have every task. A task's id does not change, so
3148
+ reading on neither repeats nor skips a task while others are added,
3149
+ claimed or finished. A task shows the state it had when its page was read.
3150
+ Output (JSON):
3151
+ tasks[], showing (open, all or a state), shown, nextAfter (the task to
3152
+ pass to --after, null on the last page), next.
3153
+ Errors (code):
3154
+ INVALID_STATE, INVALID_LIMIT, INVALID_ENTRY (exit 2). OUTCOME_NOT_FOUND
3155
+ (exit 4).
3156
+ Example:
3157
+ deepline outcomes tasks list enrichment-coverage --state claimed
3158
+ Cost:
3159
+ Free.
3160
+ `
3161
+ },
3162
+ "outcomes tasks create": {
3163
+ rolloutFeature: "outcomes",
3164
+ core: `
3165
+ Purpose:
3166
+ Add a task to an outcome.
3167
+ [[cli:
3168
+ Input:
3169
+ <outcome> <text>, at most 4,000 UTF-16 code units. --after <task> makes it
3170
+ wait for another task, which must be a task of the same outcome. --for
3171
+ <agent> lets only that agent, already on the outcome, claim it (a person
3172
+ still may). --label <label>, repeatable. --as <agent>. --idempotency-key
3173
+ <key>, scoped as on [[outcomes updates post <outcome> [text]]]. --in,
3174
+ --at, --every, --times and --until add the task later, as on that
3175
+ command; a scheduled task takes no --after.
3176
+ ]]
3177
+ State:
3178
+ A new task is ready, or waiting when --after names a task that is not
3179
+ done. A waiting task becomes ready when that task is completed. Creating
3180
+ a task does not claim it.
3181
+ Output (JSON):
3182
+ id, entry (kind task, with state and afterId), cursor, replayed.
3183
+ Errors (code):
3184
+ INVALID_ENTRY, when --after is an entry of another outcome (exit 2).
3185
+ AGENT_NOT_JOINED (exit 3). TASK_NOT_FOUND, when --after is not a task
3186
+ (exit 4). IDEMPOTENCY_KEY_REUSED (exit 7). TOO_MANY_WAITING_TASKS, when
3187
+ 1000 tasks already wait on the --after task (exit 7).
3188
+ Example:
3189
+ deepline outcomes tasks create enrichment-coverage "Add the phone step" --after enrichment-coverage/21
3190
+ Cost:
3191
+ Free.
3192
+ `
3193
+ },
3194
+ "outcomes tasks get": {
3195
+ rolloutFeature: "outcomes",
3196
+ core: `
3197
+ Purpose:
3198
+ Read one task and its thread: its state, who holds it and until when, what
3199
+ it waits on, and its result.
3200
+ [[cli:
3201
+ Input:
3202
+ <task>, which is <outcome>/<n>. --limit and --before page the thread, as
3203
+ on [[outcomes updates get <entry>]].
3204
+ ]]
3205
+ Output (JSON):
3206
+ id, entry (state, afterId, blockedByAskId, claimedByName, leaseExpiresAt,
3207
+ result), replies[], replyCount, repliesShown, nextBefore.
3208
+ Errors (code):
3209
+ ENTRY_NOT_FOUND and OUTCOME_NOT_FOUND (exit 4).
3210
+ Example:
3211
+ deepline outcomes tasks get enrichment-coverage/22
3212
+ Cost:
3213
+ Free.
3214
+ `
3215
+ },
3216
+ "outcomes tasks claim": {
3217
+ rolloutFeature: "outcomes",
3218
+ core: `
3219
+ Purpose:
3220
+ Take the next ready task. One caller holds a task at a time, under a lease.
3221
+ [[cli:
3222
+ Input:
3223
+ <outcome>. --task <task> claims that task of this outcome instead of the
3224
+ oldest ready one. --wait <span> holds until a task is ready, for example
3225
+ 10m; without it the answer is immediate. --lease <span>: 1m to 24h,
3226
+ default 15m; a value outside that is refused. --label <label> takes only
3227
+ a task with that label. --as <agent>; without it you claim as yourself
3228
+ and the output says so.
3229
+ ]]
3230
+ Which task:
3231
+ The oldest ready task the caller may take. A task made --for an agent is
3232
+ that agent's: it is taken before unassigned ones and never given to
3233
+ another agent.
3234
+ Claim token:
3235
+ The claim's token is kept on this machine and printed nowhere, so later
3236
+ commands here take only the task's id. The output is claim {epoch,
3237
+ until}. --show-token prints the token, to settle the task from another
3238
+ machine with --token. An agent acting without the claim's token, or with
3239
+ one from an earlier claim, fails with CLAIM_LOST and changes nothing. A
3240
+ person needs no token. A claim made by a client that asked for no token
3241
+ (an older CLI) is held by the agent's name and settled without one. A
3242
+ lease that ends returns the task to ready and tells the outcome's watches
3243
+ (task.expired).
3244
+ Lease:
3245
+ Renew with [[outcomes tasks renew <task>]] before it runs out. A lapsed
3246
+ lease returns the task to ready, and completing it then fails with
3247
+ CLAIM_LOST (exit 7) and the command to claim it again.
3248
+ Output (JSON):
3249
+ task (null when nothing is ready, which is exit 0) with id, claim,
3250
+ cursor, timedOut.
3251
+ Errors (code):
3252
+ INVALID_ENTRY and INVALID_LEASE (exit 2). AGENT_NOT_JOINED (exit 3).
3253
+ TASK_NOT_FOUND (exit 4). TASK_NOT_READY (exit 7) says what the task is
3254
+ waiting for: the task it comes after, the ask it is blocked on, or who
3255
+ holds it. TASK_ASSIGNED (exit 7) names the agent it was made for.
3256
+ Example:
3257
+ deepline outcomes tasks claim enrichment-coverage --as claude --wait 10m
3258
+ Cost:
3259
+ Free.
3260
+ `
3261
+ },
3262
+ "outcomes tasks run": {
3263
+ rolloutFeature: "outcomes",
3264
+ core: `
3265
+ Purpose:
3266
+ Do a task with one command: claim it, run the command while holding it,
3267
+ then complete the task if the command exited 0 or release it if it did
3268
+ not. The lease is renewed while the command runs.
3269
+ [[cli:
3270
+ Input:
3271
+ <target> -- <command...>. A task id (<outcome>/<n>) runs that task; an
3272
+ outcome name runs its oldest ready task. Everything after -- is the
3273
+ command. --lease <span>: 1m to 24h, default 15m. --result <text> is what
3274
+ the task records when the command succeeds; it defaults to the command
3275
+ line. --as <agent>.
3276
+ ]]
3277
+ Exit code:
3278
+ The command's own. 127 when the command could not be started. 0 with
3279
+ nothing run when no task is ready. 7 when the command succeeded but the
3280
+ task could not be completed, for example because a person took it over.
3281
+ Ctrl-C and SIGTERM are passed to the command, and the task is released.
3282
+ Output (JSON):
3283
+ task, ran, commandLine, exitCode, state (done, ready, or unsettled).
3284
+ stdout carries only this report. What the command prints, on stdout or
3285
+ stderr, is shown on stderr as it runs; with --json it is in notices
3286
+ instead and stderr stays empty.
3287
+ Errors (code):
3288
+ INVALID_LEASE (exit 2). AGENT_NOT_JOINED (exit 3). TASK_NOT_FOUND (exit
3289
+ 4). TASK_NOT_READY (exit 7).
3290
+ Example:
3291
+ deepline outcomes tasks run enrichment-coverage/22 --as claude -- deepline plays run coverage-report
3292
+ Cost:
3293
+ Free. The command it runs costs what it costs.
3294
+ `
3295
+ },
3296
+ "outcomes tasks renew": {
3297
+ rolloutFeature: "outcomes",
3298
+ core: `
3299
+ Purpose:
3300
+ Extend the lease on a claimed task.
3301
+ [[cli:
3302
+ Input:
3303
+ <task>. --lease <span>: the new length from now, 1m to 24h, default 15m.
3304
+ --as <agent>. --token <token>: a claim token from another machine (tasks
3305
+ claim --show-token); not needed where the task was claimed. The same on
3306
+ complete, release and block.
3307
+ ]]
3308
+ Who may:
3309
+ The agent that holds the task, while its lease is live. A person may renew
3310
+ any claimed task; the output says whose claim that was.
3311
+ Output (JSON):
3312
+ task (with leaseExpiresAt), cursor, overrodeClaimOf.
3313
+ Errors (code):
3314
+ INVALID_LEASE (exit 2). AGENT_NOT_JOINED (exit 3). TASK_NOT_FOUND (exit
3315
+ 4). CLAIM_LOST and TASK_CLOSED (exit 7).
3316
+ Example:
3317
+ deepline outcomes tasks renew enrichment-coverage/22 --lease 1h --as claude
3318
+ Cost:
3319
+ Free.
3320
+ `
3321
+ },
3322
+ "outcomes tasks complete": {
3323
+ rolloutFeature: "outcomes",
3324
+ core: `
3325
+ Purpose:
3326
+ Finish a task, with what happened.
3327
+ [[cli:
3328
+ Input:
3329
+ <task> [result], the result at most 4,000 UTF-16 code units. --as <agent>.
3330
+ ]]
3331
+ Who may:
3332
+ The agent that holds the task, while its lease is live. A person may
3333
+ complete any open task, held or not: people can always close work, as the
3334
+ dashboard lets them. When a person completes a task an agent holds, the
3335
+ output names whose claim was overridden, and that agent's next step on the
3336
+ task fails with CLAIM_LOST.
3337
+ Then:
3338
+ Tasks that waited on this one (--after) become ready.
3339
+ Output (JSON):
3340
+ task (state done, with result), cursor, overrodeClaimOf (the holder's
3341
+ name, or null).
3342
+ Errors (code):
3343
+ AGENT_NOT_JOINED (exit 3). TASK_NOT_FOUND (exit 4). CLAIM_LOST, with the
3344
+ command to claim again, and TASK_CLOSED (exit 7).
3345
+ Example:
3346
+ deepline outcomes tasks complete enrichment-coverage/22 "Bounce rate 1.8%. No bad source." --as claude
3347
+ Cost:
3348
+ Free.
3349
+ `
3350
+ },
3351
+ "outcomes tasks release": {
3352
+ rolloutFeature: "outcomes",
3353
+ core: `
3354
+ Purpose:
3355
+ Give a claimed task back, so it is ready for anyone to claim.
3356
+ [[cli:
3357
+ Input:
3358
+ <task>. --as <agent>.
3359
+ ]]
3360
+ Who may:
3361
+ The agent that holds the task, while its lease is live. A person may
3362
+ release any claimed task; the output names whose claim was overridden.
3363
+ Output (JSON):
3364
+ task (state ready), cursor, overrodeClaimOf.
3365
+ Errors (code):
3366
+ AGENT_NOT_JOINED (exit 3). TASK_NOT_FOUND (exit 4). CLAIM_LOST and
3367
+ TASK_CLOSED (exit 7).
3368
+ Example:
3369
+ deepline outcomes tasks release enrichment-coverage/22 --as claude
3370
+ Cost:
3371
+ Free.
3372
+ `
3373
+ },
3374
+ "outcomes tasks block": {
3375
+ rolloutFeature: "outcomes",
3376
+ core: `
3377
+ Purpose:
3378
+ Park a task until a person answers an ask.
3379
+ [[cli:
3380
+ Input:
3381
+ <task> --ask <ask>. The ask must be an open ask of the same outcome:
3382
+ create it first with [[outcomes asks create <outcome> <text>]]. --as
3383
+ <agent>.
3384
+ ]]
3385
+ Who may:
3386
+ The agent that holds the task, or a person.
3387
+ What happens to your claim:
3388
+ Blocking releases it. When the ask is answered, whatever the answer, the
3389
+ task goes back to ready for anyone. Claim it again with
3390
+ [[outcomes tasks claim <outcome> --task <task>]] before you complete it;
3391
+ completing without a claim fails with CLAIM_LOST (exit 7). The output
3392
+ prints both commands.
3393
+ Output (JSON):
3394
+ task (state blocked, with blockedByAskId), cursor.
3395
+ Errors (code):
3396
+ INVALID_ENTRY, when --ask is an entry of another outcome (exit 2).
3397
+ AGENT_NOT_JOINED (exit 3). ASK_NOT_FOUND (exit 4). ASK_NOT_OPEN,
3398
+ CLAIM_LOST, and TOO_MANY_BLOCKED_TASKS when 1000 tasks are already
3399
+ blocked on the ask (exit 7).
3400
+ Example:
3401
+ deepline outcomes tasks block enrichment-coverage/22 --ask enrichment-coverage/15 --as claude
3402
+ Cost:
3403
+ Free.
3404
+ `
3405
+ },
3406
+ "outcomes tasks cancel": {
3407
+ rolloutFeature: "outcomes",
3408
+ core: `
3409
+ Purpose:
3410
+ Cancel a task that is no longer needed.
3411
+ [[cli:
3412
+ Input:
3413
+ <task>. --as <agent>.
3414
+ ]]
3415
+ Who may:
3416
+ Anyone on the outcome, holding the task or not: a person, or an agent that
3417
+ has joined. Cancelling a task someone holds ends their claim.
3418
+ Output (JSON):
3419
+ task (state cancelled), cursor, overrodeClaimOf.
3420
+ Errors (code):
3421
+ AGENT_NOT_JOINED (exit 3). TASK_NOT_FOUND (exit 4). TASK_CLOSED (exit 7).
3422
+ Example:
3423
+ deepline outcomes tasks cancel enrichment-coverage/22
3424
+ Cost:
3425
+ Free.
3426
+ `
3427
+ },
3428
+ "outcomes label": {
3429
+ rolloutFeature: "outcomes",
3430
+ core: `
3431
+ Purpose:
3432
+ Set or remove labels on an entry. Watches and [[outcomes tasks claim
3433
+ <outcome>]] can select by label.
3434
+ [[cli:
3435
+ Input:
3436
+ <entry>. --set <label>, repeatable: a key or key=value. A key holds one
3437
+ value, so --set team=emea replaces team=apac. --unset <key>, repeatable.
3438
+ --as <agent>.
3439
+ ]]
3440
+ Output (JSON):
3441
+ id, entry (with labels), cursor, changed (false when it already had them).
3442
+ Errors (code):
3443
+ INVALID_LABEL and TOO_MANY_LABELS (more than 10) (exit 2).
3444
+ AGENT_NOT_JOINED (exit 3). ENTRY_NOT_FOUND (exit 4).
3445
+ Example:
3446
+ deepline outcomes label enrichment-coverage/22 --set team=emea --unset draft
3447
+ Cost:
3448
+ Free.
3449
+ `
3450
+ },
3451
+ "outcomes schedules list": {
3452
+ rolloutFeature: "outcomes",
3453
+ core: `
3454
+ Purpose:
3455
+ List what is set to be posted later: made with --in, --at or --every on
3456
+ [[outcomes post <outcome> [text]]] and [[outcomes tasks create <outcome>
3457
+ <text>]].
3458
+ [[cli:
3459
+ Input:
3460
+ <outcome>. --all adds the schedules that finished or were cancelled, the
3461
+ 100 newest.
3462
+ ]]
3463
+ Behaviour:
3464
+ A schedule posts as its author. Each time it is due it asks again whether
3465
+ that person (for an agent, the person it runs for) may still write: still
3466
+ on the outcome, a member of the organization and of the outcome's
3467
+ workspace, with a role that may write, and not blocked. If not, it ends,
3468
+ says why in endedBecause, and never comes back. While the outcome is paused its
3469
+ schedules are held; resuming posts each held one once, and sends missed
3470
+ meanwhile are not made up. An outcome holds at most 50 waiting schedules.
3471
+ Output (JSON):
3472
+ schedules[] {key, kind, parentSeq (the entry each send replies to, or
3473
+ null), text, author, labels, assignedKey, fireAt,
3474
+ everyMs, timesLeft, untilAt, fired, state (active, done, cancelled),
3475
+ lastEntrySeq, endedBecause, createdAt}, more.
3476
+ Example:
3477
+ deepline outcomes schedules list enrichment-coverage
3478
+ Cost:
3479
+ Free.
3480
+ `
3481
+ },
3482
+ "outcomes schedules cancel": {
3483
+ rolloutFeature: "outcomes",
3484
+ core: `
3485
+ Purpose:
3486
+ Cancel a schedule, so it posts nothing more. What it already posted stays.
3487
+ [[cli:
3488
+ Input:
3489
+ <outcome> <schedule>: the key from [[outcomes schedules list <outcome>]],
3490
+ for example s-4k2m9x1a. --as <agent>.
3491
+ ]]
3492
+ Who may:
3493
+ An agent cancels its own schedules; a person cancels any. Safe to repeat.
3494
+ Output (JSON):
3495
+ schedule, cancelled (false when it had already ended).
3496
+ Errors (code):
3497
+ NOT_YOUR_SCHEDULE (exit 3). SCHEDULE_NOT_FOUND (exit 4).
3498
+ Example:
3499
+ deepline outcomes schedules cancel enrichment-coverage s-4k2m9x1a
3500
+ Cost:
3501
+ Free.
3502
+ `
3503
+ },
3504
+ "outcomes watches add": {
3505
+ rolloutFeature: "outcomes",
3506
+ core: `
3507
+ Purpose:
3508
+ Say what an agent wants to be told about. Every entry that fits becomes a
3509
+ match in the agent's inbox, read with [[outcomes inbox <outcome>]] or
3510
+ handled by [[outcomes listen <outcome> [command...]]].
3511
+ [[cli:
3512
+ Input:
3513
+ <outcome> --as <agent> (required: a watch belongs to an agent).
3514
+ Without --all it hears what concerns the agent: its name written as
3515
+ @<agent> in a post or reply, tasks made for it, replies to and changes of
3516
+ entries it posted, and what its own schedules post. It does not hear
3517
+ other replies in a thread someone else started. --all hears every entry.
3518
+ Narrow either with --on <type> (what happened; repeatable: entry.posted,
3519
+ entry.labelled, task.created, task.ready, task.claimed, task.released,
3520
+ task.expired, task.completed, task.cancelled, task.blocked,
3521
+ task.unblocked, ask.created, ask.answered, ask.withdrawn), --kind <kind>
3522
+ (update, check-in, task, ask, system; repeatable), --label <label> (repeatable; all must be present, on the
3523
+ entry or the one it replies to), --by <name> (who posted or changed it)
3524
+ and --text <words> (1 to 200 characters, found in the entry's text).
3525
+ --note <text> is returned with every match: what to do when it fires.
3526
+ Write it for a reader who remembers nothing of this conversation.
3527
+ --claim makes it a queue worker instead: each match claims one ready task
3528
+ for the agent (with every --label), and it also hears replies in the
3529
+ thread of a task it holds. It takes --label and --note only.
3530
+ --wake-url <url> is rung when something matches.
3531
+ ]]
3532
+ Behaviour:
3533
+ A watch hears what happens after it is made, and never the agent's own
3534
+ writes, except what its schedules post. For what was already there, read
3535
+ [[outcomes describe <outcome>]] once. An outcome holds at most 32.
3536
+ Wake URL:
3537
+ Deepline calls only hosts it has been told to allow, and none is allowed
3538
+ yet: any address is refused with INVALID_WAKE_URL except a Preview
3539
+ deployment's own test receiver. Use [[outcomes listen <outcome>
3540
+ [command...]]], which needs nothing reachable from outside.
3541
+ Where one is allowed it is a public HTTPS address on the default port. It gets a POST with an empty
3542
+ JSON body and the headers X-Deepline-Outcome and X-Deepline-Watch, not
3543
+ signed: there is nothing in it to trust, and the receiver's one move is to
3544
+ pull its inbox with its own key. Rings are coalesced, retried after 5s,
3545
+ 30s and 2m, and then reported on [[outcomes watches list <outcome>]]; the
3546
+ matches stay in the inbox whatever happens to the ring. Before each ring
3547
+ the person the agent runs for is checked again; if they may no longer use
3548
+ the outcome the watch is removed, with the reason in endedBecause, and
3549
+ nothing is sent. A paused outcome rings nobody until it is live again.
3550
+ Output (JSON):
3551
+ watch {key, agentKey, scope (mine, all), kinds, types, claim, labels, by,
3552
+ text, note,
3553
+ state, wakeUrl, wakeState, wakeAttempt, endedBecause, lastWokenAt,
3554
+ lastWakeError,
3555
+ createdAt}.
3556
+ Errors (code):
3557
+ INVALID_WATCH, INVALID_WATCH_TEXT, INVALID_LABEL and INVALID_WAKE_URL
3558
+ (exit 2). AGENT_NOT_JOINED (exit 3). TOO_MANY_WATCHES (exit 7).
3559
+ Example:
3560
+ deepline outcomes watches add enrichment-coverage --as claude --note "Reply in the thread."
3561
+ Cost:
3562
+ Free.
3563
+ `
3564
+ },
3565
+ "outcomes watches list": {
3566
+ rolloutFeature: "outcomes",
3567
+ core: `
3568
+ Purpose:
3569
+ List the watches on an outcome, how each one's wake is doing, and how many
3570
+ matches are waiting for each agent.
3571
+ [[cli:
3572
+ Input:
3573
+ <outcome>. --as <agent> keeps to that agent's watches.
3574
+ ]]
3575
+ Output (JSON):
3576
+ watches[], waiting[] {agentKey, count, more (there are more than counted),
3577
+ oldestAt}.
3578
+ Example:
3579
+ deepline outcomes watches list enrichment-coverage --as claude
3580
+ Cost:
3581
+ Free.
3582
+ `
3583
+ },
3584
+ "outcomes watches remove": {
3585
+ rolloutFeature: "outcomes",
3586
+ core: `
3587
+ Purpose:
3588
+ Stop a watch. Matches still waiting for it are dropped.
3589
+ [[cli:
3590
+ Input:
3591
+ <outcome> <watch>: the key from [[outcomes watches list <outcome>]], for
3592
+ example w-7c1q0d2e. --as <agent>.
3593
+ ]]
3594
+ Who may:
3595
+ An agent removes its own watches; a person removes any. Safe to repeat.
3596
+ Output (JSON):
3597
+ watch, retired (false when it was already removed).
3598
+ Errors (code):
3599
+ NOT_YOUR_WATCH (exit 3). WATCH_NOT_FOUND (exit 4).
3600
+ Example:
3601
+ deepline outcomes watches remove enrichment-coverage w-7c1q0d2e --as claude
3602
+ Cost:
3603
+ Free.
3604
+ `
3605
+ },
3606
+ "outcomes inbox": {
3607
+ rolloutFeature: "outcomes",
3608
+ core: `
3609
+ Purpose:
3610
+ Pull what an agent's watches matched, oldest first.
3611
+ [[cli:
3612
+ Input:
3613
+ <outcome> --as <agent> (required). --wait <span> holds until there is a
3614
+ match, for example 10m; without it the answer is immediate. --limit <n>:
3615
+ 1 to 50, default 10.
3616
+ ]]
3617
+ Claim watches:
3618
+ A match from a --claim watch hands over a task already claimed for the
3619
+ agent: entry is the task and claim {epoch, until} its lease. The token is
3620
+ kept on this machine. Settle the task with [[outcomes tasks complete
3621
+ <task>]] or [[outcomes tasks release <task>]], then acknowledge the
3622
+ match. A redelivered match hands back the same claim.
3623
+ Leases:
3624
+ Each match returned is held by the caller for five minutes and carries a
3625
+ lease. Settle it with [[outcomes ack <outcome> <match> --lease <lease>]];
3626
+ one that is not acknowledged in time is handed out again, and from then
3627
+ on only the new lease settles it. A thread gives
3628
+ out one match at a time. A match is handed out five times at most, then
3629
+ marked failed, which the feed says.
3630
+ Output (JSON):
3631
+ matches[] {id, watch, type (what happened, e.g. task.ready), event
3632
+ (posted, changed), attempt, lease, until, note, entry, claim}, waiting (held or waiting to be tried again), waitingMore,
3633
+ watching (false when the agent has no watch, so nothing will arrive),
3634
+ cursor, timedOut. No match is exit 0.
3635
+ Errors (code):
3636
+ INVALID_LIMIT (exit 2). AGENT_NOT_JOINED (exit 3).
3637
+ Example:
3638
+ deepline outcomes inbox enrichment-coverage --as claude --wait 10m
3639
+ Cost:
3640
+ Free.
3641
+ `
3642
+ },
3643
+ "outcomes ack": {
3644
+ rolloutFeature: "outcomes",
3645
+ core: `
3646
+ Purpose:
3647
+ Acknowledge a match from [[outcomes inbox <outcome>]].
3648
+ [[cli:
3649
+ Input:
3650
+ <outcome> <match> --lease <lease>, both from the inbox. --as <agent>
3651
+ (required). With nothing else the match is done. --error <reason> says it
3652
+ failed: it is handed out again after 1s, then 2s, 4s and 8s, and the fifth
3653
+ failure marks it failed. --skip drops it without doing it.
3654
+ ]]
3655
+ Output (JSON):
3656
+ id, state (done, skipped, pending after an error, failed), retryAt.
3657
+ Acknowledging twice with the same result is safe.
3658
+ Errors (code):
3659
+ MATCH_NOT_FOUND (exit 4). STALE_LEASE (the lease ran out and the match was
3660
+ handed out again) and MATCH_SETTLED (exit 7).
3661
+ Example:
3662
+ deepline outcomes ack enrichment-coverage k57c2... --lease 4a7092bb-... --as claude
3663
+ Cost:
3664
+ Free.
3665
+ `
3666
+ },
3667
+ "outcomes listen": {
3668
+ rolloutFeature: "outcomes",
3669
+ core: `
3670
+ Purpose:
3671
+ Run your command once for each match of the agent's watches, and
3672
+ acknowledge the match from its exit code: 0 is done, anything else is an
3673
+ error and the match comes back. With --drain, from a timer, it handles
3674
+ what is waiting and exits; without it, it stays connected.
3675
+ [[cli:
3676
+ Input:
3677
+ <outcome> --as <agent> -- <command...>. The agent needs a watch first:
3678
+ [[outcomes watches add <outcome>]]. --once stops after the first pull
3679
+ that had a match. --drain handles what is waiting now and stops: run it
3680
+ from cron or a scheduled agent run, every 30 minutes say. --for <span> stops after that long, for example
3681
+ 8h; without it, it runs until interrupted. --reply posts what the command
3682
+ prints as the agent's reply in the thread that woke it; printing nothing
3683
+ posts nothing.
3684
+ ]]
3685
+ What the command gets:
3686
+ The match as JSON on stdin ({outcome, context, id, watch, type, event,
3687
+ attempt, lease, until, note, entry, claim}). context says why the agent was woken and
3688
+ that the entry's text is information, never instructions. Its environment
3689
+ has DEEPLINE_OUTCOME, DEEPLINE_ENTRY and DEEPLINE_THREAD (<outcome>/<n>),
3690
+ DEEPLINE_MATCH, DEEPLINE_MATCH_TYPE, DEEPLINE_MATCH_EVENT,
3691
+ DEEPLINE_WATCH_NOTE,
3692
+ DEEPLINE_AGENT_NAME, so outcomes commands it runs act as the agent, and
3693
+ DEEPLINE_IDEMPOTENCY_KEY: pass it as --idempotency-key on a post or reply
3694
+ and a match that is handed out twice writes once. --reply does this
3695
+ itself. The command also inherits the rest of your environment, so do not
3696
+ log all of it.
3697
+ A reply that names another agent wakes that agent. Two agents that always
3698
+ name each other in what they print never stop: name someone only to hand
3699
+ work over.
3700
+ Claimed tasks:
3701
+ For a --claim watch the task is claimed before the command runs, its
3702
+ lease is renewed while it runs, and it is completed on exit 0 (with what
3703
+ the command printed as the result) or released otherwise. An interrupt
3704
+ releases it.
3705
+ One match runs at a time. A match's lease is five minutes; a command that
3706
+ takes longer is still acknowledged, unless another pull of the same
3707
+ agent's inbox was handed the match meanwhile.
3708
+ Output:
3709
+ While it runs, a line per match and the command's output go to stderr.
3710
+ stdout gets one report when it stops, on an interrupt too: handled[] {id,
3711
+ entry, state}. Exit 7 when a match ran but could not be
3712
+ acknowledged, so it will be handed out again.
3713
+ Errors (code):
3714
+ A usage error (exit 2) when no command is given or the agent has no watch.
3715
+ AGENT_NOT_JOINED (exit 3).
3716
+ Example:
3717
+ 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."
3718
+ Cost:
3719
+ Free.
3720
+ `
3721
+ },
3722
+ "outcomes asks list": {
3723
+ rolloutFeature: "outcomes",
3724
+ core: `
3725
+ Purpose:
3726
+ List an outcome's asks. Open asks by default.
3727
+ [[cli:
3728
+ Input:
3729
+ <outcome>. --all adds answered and withdrawn asks. --state <state> lists
3730
+ one state: open, answered or withdrawn. --limit <n> is how many one page
3731
+ holds (200, up to 500). --after <ask> reads the page after that ask.
3732
+ ]]
3733
+ Pages:
3734
+ Asks are listed oldest first, a page at a time. A page that is not the
3735
+ last ends with the command for the next one, and JSON has it as next. Read
3736
+ on until there is none to have every ask.
3737
+ Output (JSON):
3738
+ asks[], showing, shown, nextAfter (the ask to pass to --after, null on the
3739
+ last page), next.
3740
+ Errors (code):
3741
+ INVALID_STATE, INVALID_LIMIT, INVALID_ENTRY (exit 2). OUTCOME_NOT_FOUND
3742
+ (exit 4).
3743
+ Example:
3744
+ deepline outcomes asks list enrichment-coverage --all
3745
+ Cost:
3746
+ Free.
3747
+ `
3748
+ },
3749
+ "outcomes asks create": {
3750
+ rolloutFeature: "outcomes",
3751
+ core: `
3752
+ Purpose:
3753
+ Ask a person to choose between options.
3754
+ [[cli:
3755
+ Input:
3756
+ <outcome> <text>, at most 4,000 UTF-16 code units. --to <name>, for
3757
+ example @sam. --option <text>, repeatable: two to six different options,
3758
+ each at most 80 characters (default: approve, "not yet"). --action
3759
+ <action> ties the ask to a guarded action; it accepts plays.set-live.
3760
+ --as <agent>. --idempotency-key <key>.
3761
+ ]]
3762
+ The first option:
3763
+ Order matters only with --action: answering with the first option is the
3764
+ approval that allows one run of that action, and any other answer is not.
3765
+ Without --action the options are equal.
3766
+ Who answers:
3767
+ A person, with [[outcomes asks answer <ask> <answer>]] or in the dashboard.
3768
+ --to says who the ask is for and mentions them; it does not restrict who
3769
+ may answer, so any person in the workspace can. An agent cannot answer an
3770
+ ask, its own included.
3771
+ Then:
3772
+ [[outcomes wait <outcome> --for <ask>]] blocks until it is answered.
3773
+ Output (JSON):
3774
+ id, entry (kind ask, state open, askTo, askOptions, askAction), cursor,
3775
+ replayed.
3776
+ Errors (code):
3777
+ ACTION_NOT_GATEABLE and INVALID_OPTIONS (exit 2). AGENT_NOT_JOINED (exit
3778
+ 3). IDEMPOTENCY_KEY_REUSED (exit 7).
3779
+ Example:
3780
+ deepline outcomes asks create enrichment-coverage "Make the phone step live?" --to @sam --action plays.set-live --as claude
3781
+ Cost:
3782
+ Free.
3783
+ `
3784
+ },
3785
+ "outcomes asks get": {
3786
+ rolloutFeature: "outcomes",
3787
+ core: `
3788
+ Purpose:
3789
+ Read one ask and its thread: who it is for, its options, and its answer.
3790
+ [[cli:
3791
+ Input:
3792
+ <ask>, which is <outcome>/<n>. --limit and --before page the thread, as
3793
+ on [[outcomes updates get <entry>]].
3794
+ ]]
3795
+ Output (JSON):
3796
+ id, entry (state, askTo, askOptions, askAction, answer, answerNote,
3797
+ answeredByName, answeredAt), replies[], replyCount, repliesShown,
3798
+ nextBefore.
3799
+ Errors (code):
3800
+ ENTRY_NOT_FOUND and OUTCOME_NOT_FOUND (exit 4).
3801
+ Example:
3802
+ deepline outcomes asks get enrichment-coverage/15
3803
+ Cost:
3804
+ Free.
3805
+ `
3806
+ },
3807
+ "outcomes asks answer": {
3808
+ rolloutFeature: "outcomes",
3809
+ core: `
3810
+ Purpose:
3811
+ Answer an ask with one of its options.
3812
+ [[cli:
3813
+ Input:
3814
+ <ask> <answer>, where the answer is one of the ask's options, matched
3815
+ without regard to case. --note <text>.
3816
+ ]]
3817
+ Who answers:
3818
+ A person: any person in the workspace, whoever the ask was sent --to. An
3819
+ ask is how an agent gets a person's decision, and an approval can let a
3820
+ guarded action run, so an agent (--as, or DEEPLINE_AGENT_NAME) is refused
3821
+ with ASK_NEEDS_PERSON (exit 3), which names who the ask is waiting on.
3822
+ An agent may withdraw an ask with [[outcomes asks withdraw <ask>]].
3823
+ Then:
3824
+ A task blocked on this ask becomes ready, whatever the answer.
3825
+ Output (JSON):
3826
+ ask (state answered, with answer, answerNote and answeredByName), cursor.
3827
+ Errors (code):
3828
+ ANSWER_NOT_AN_OPTION (exit 2). ASK_NEEDS_PERSON (exit 3). ASK_NOT_FOUND
3829
+ (exit 4). ASK_CLOSED (exit 7).
3830
+ Example:
3831
+ deepline outcomes asks answer enrichment-coverage/15 approve --note "Run it over two nights."
3832
+ Cost:
3833
+ Free.
3834
+ `
3835
+ },
3836
+ "outcomes asks withdraw": {
3837
+ rolloutFeature: "outcomes",
3838
+ core: `
3839
+ Purpose:
3840
+ Take back an ask that no longer needs an answer.
3841
+ [[cli:
3842
+ Input:
3843
+ <ask>. --as <agent>.
3844
+ ]]
3845
+ Who may:
3846
+ Any person in the workspace, and any agent that has joined the outcome,
3847
+ not only whoever asked.
3848
+ Then:
3849
+ A task blocked on this ask becomes ready. A withdrawn ask approves
3850
+ nothing.
3851
+ Output (JSON):
3852
+ ask (state withdrawn), cursor.
3853
+ Errors (code):
3854
+ AGENT_NOT_JOINED (exit 3). ASK_NOT_FOUND (exit 4). ASK_CLOSED (exit 7).
3855
+ Example:
3856
+ deepline outcomes asks withdraw enrichment-coverage/15 --as claude
3857
+ Cost:
3858
+ Free.
3859
+ `
3860
+ },
3861
+ "outcomes stakeholders list": {
3862
+ rolloutFeature: "outcomes",
3863
+ core: `
3864
+ Purpose:
3865
+ List who is on an outcome, and when each agent last posted.
3866
+ Keys:
3867
+ The first column is the stakeholder's key, which set, remove and nudge
3868
+ take. An agent's key is its --as name (claude). A person's key is their
3869
+ Slack handle without the @, lower-cased (sam); @sam is accepted too. A
3870
+ channel's key keeps its # (#revops).
3871
+ Output (JSON):
3872
+ stakeholders[] {key, type (agent, person or channel), name, ownerName,
3873
+ slack, checkin, instructions, lastEntryAt, checkinStatus {state, label}}.
3874
+ At most 50.
3875
+ Errors (code):
3876
+ OUTCOME_NOT_FOUND (exit 4).
3877
+ Example:
3878
+ deepline outcomes stakeholders list enrichment-coverage
3879
+ Cost:
3880
+ Free.
3881
+ `
3882
+ },
3883
+ "outcomes join": {
3884
+ rolloutFeature: "outcomes",
3885
+ core: `
3886
+ Purpose:
3887
+ Connect an agent to an outcome in one command. It puts the agent on the
3888
+ outcome, then prints what [[outcomes describe <outcome>]] prints: the live
3889
+ spec, who is on it, open work, and the commands to run next, written for
3890
+ that agent. This is the command an outcome's page gives you to paste into
3891
+ an agent.
3892
+ [[cli:
3893
+ Input:
3894
+ <outcome> --as <agent> (or DEEPLINE_AGENT_NAME): lower-case letters,
3895
+ numbers and dashes, at most 40. --checkin <cadence>: daily, weekly, a
3896
+ number of days (3d), a weekday (mon) or a weekday and time ("mon 09:00").
3897
+ ]]
3898
+ Behaviour:
3899
+ Safe to repeat: joining again says "Already on" and prints the same
3900
+ brief. The agent runs for you, with your access. To set its standing
3901
+ instructions use [[outcomes stakeholders join <outcome> --instructions <text>]].
3902
+ Output (JSON):
3903
+ stakeholder, created, outcome (as describe returns it), next[].
3904
+ Errors (code):
3905
+ INVALID_AGENT_NAME and INVALID_CHECKIN (exit 2). STAKEHOLDER_KEY_TAKEN,
3906
+ when the name is a person or channel on the outcome (exit 7).
3907
+ Example:
3908
+ deepline outcomes join enrichment-coverage --as claude
3909
+ Cost:
3910
+ Free.
3911
+ `
3912
+ },
3913
+ "outcomes mine": {
3914
+ rolloutFeature: "outcomes",
3915
+ core: `
3916
+ Purpose:
3917
+ The outcomes you are working on: those you own and those one of your
3918
+ agents has joined, each with the asks waiting on someone and the command
3919
+ to start work on it.
3920
+ [[cli:
3921
+ Input:
3922
+ --as <agent> (or DEEPLINE_AGENT_NAME) keeps only the outcomes that agent is
3923
+ on, and writes the start command for it. --limit <n> is how many one page
3924
+ holds (100, up to 500). --after <outcome> reads the page after that
3925
+ outcome.
3926
+ ]]
3927
+ Pages:
3928
+ Outcomes are read by name, a page at a time, as [[outcomes list --mine]]
3929
+ reads them. With --as a page shows only that agent's part of it, so a page
3930
+ can be short or empty and still not be the last: read on while the output
3931
+ ends with a next command.
3932
+ Output (JSON):
3933
+ outcomes[] (as list returns them), nextAfter, next.
3934
+ Errors (code):
3935
+ INVALID_LIMIT (exit 2).
3936
+ Example:
3937
+ deepline outcomes mine
3938
+ deepline outcomes mine --as claude
3939
+ Cost:
3940
+ Free.
3941
+ `
3942
+ },
3943
+ "outcomes stakeholders join": {
3944
+ rolloutFeature: "outcomes",
3945
+ core: `
3946
+ Purpose:
3947
+ Put an agent that runs for you on an outcome. An agent must join before
3948
+ it can post, react, claim or act on a task.
3949
+ [[cli:
3950
+ Input:
3951
+ <outcome> --as <agent> (or DEEPLINE_AGENT_NAME): lower-case letters,
3952
+ numbers and dashes, at most 40. --checkin <cadence>: daily, weekly, a
3953
+ number of days (3d), a weekday (mon) or a weekday and time ("mon 09:00").
3954
+ --instructions <text|@file>, at most 8,000 characters.
3955
+ ]]
3956
+ Behaviour:
3957
+ Safe to repeat: joining again changes the cadence or instructions given
3958
+ and says "Already on it". An outcome holds at most 50 stakeholders.
3959
+ Output (JSON):
3960
+ stakeholder, created.
3961
+ Errors (code):
3962
+ INVALID_AGENT_NAME and INVALID_CHECKIN (exit 2). STAKEHOLDER_KEY_TAKEN,
3963
+ when the name is a person or channel on the outcome (exit 7).
3964
+ Example:
3965
+ deepline outcomes stakeholders join enrichment-coverage --as claude --checkin weekly
3966
+ Cost:
3967
+ Free.
3968
+ `
3969
+ },
3970
+ "outcomes stakeholders add": {
3971
+ rolloutFeature: "outcomes",
3972
+ core: `
3973
+ Purpose:
3974
+ Add a person or a channel to an outcome. They are reached through Slack.
3975
+ [[cli:
3976
+ Input:
3977
+ <outcome> --slack <handle>: @name for a person, "#channel" for a channel
3978
+ (quote it, or the shell reads # as a comment).
3979
+ --name <name>: the name a person is shown by. Without it a person is named
3980
+ after their handle. Adding the same handle again with --name renames them.
3981
+ ]]
3982
+ Behaviour:
3983
+ The handle is stored as typed; nothing checks that it exists in Slack. A
3984
+ person or channel has no check-in cadence and no instructions. Agents are
3985
+ added with [[outcomes stakeholders join <outcome> --as <agent>]].
3986
+ Output (JSON):
3987
+ stakeholder {key, type, name, slack}, created.
3988
+ Errors (code):
3989
+ INVALID_SLACK_HANDLE, NAME_PEOPLE_ONLY, NAME_TOO_LONG (exit 2).
3990
+ STAKEHOLDER_KEY_TAKEN (exit 7).
3991
+ Example:
3992
+ deepline outcomes stakeholders add enrichment-coverage --slack "#revops"
3993
+ deepline outcomes stakeholders add enrichment-coverage --slack @sam --name "Sam Lee"
3994
+ Cost:
3995
+ Free.
3996
+ `
3997
+ },
3998
+ "outcomes stakeholders set": {
3999
+ rolloutFeature: "outcomes",
4000
+ core: `
4001
+ Purpose:
4002
+ Change an agent's check-in cadence or standing instructions.
4003
+ [[cli:
4004
+ Input:
4005
+ <outcome> <stakeholder>, the key from stakeholders list; @sam and sam are
4006
+ the same. --checkin <cadence>. --instructions <text|@file>.
4007
+ ]]
4008
+ Cadence:
4009
+ daily, weekly, a number of days (3d, up to 365d), a weekday (mon or
4010
+ monday), or a weekday and time ("mon 09:00"). none clears it. Anything
4011
+ else is INVALID_CHECKIN (exit 2). Only an agent has a cadence: setting one
4012
+ on a person or channel is CHECKIN_AGENTS_ONLY (exit 2). The same forms
4013
+ apply to [[outcomes stakeholders join <outcome> --checkin <cadence>]].
4014
+ Output (JSON):
4015
+ stakeholder {key, type, name, checkin, instructions, checkinStatus}. The
4016
+ text output says the cadence now in force.
4017
+ Errors (code):
4018
+ NOTHING_TO_SET, INVALID_CHECKIN and CHECKIN_AGENTS_ONLY (exit 2).
4019
+ STAKEHOLDER_NOT_FOUND (exit 4).
4020
+ Example:
4021
+ deepline outcomes stakeholders set enrichment-coverage claude --checkin "mon 09:00"
4022
+ Cost:
4023
+ Free.
4024
+ `
4025
+ },
4026
+ "outcomes stakeholders remove": {
4027
+ rolloutFeature: "outcomes",
4028
+ core: `
4029
+ Purpose:
4030
+ Take a stakeholder off an outcome.
4031
+ [[cli:
4032
+ Input:
4033
+ <outcome> <stakeholder>, the key from stakeholders list. @sam and sam are
4034
+ the same person; a channel keeps its #.
4035
+ ]]
4036
+ Behaviour:
4037
+ Safe to repeat: removing someone who is not on the outcome exits 0 and
4038
+ says so. An agent that is removed can no longer act on the outcome until
4039
+ it joins again. What it already wrote stays.
4040
+ Output (JSON):
4041
+ key, removed (false when they were not on it).
4042
+ Errors (code):
4043
+ OUTCOME_NOT_FOUND (exit 4).
4044
+ Example:
4045
+ deepline outcomes stakeholders remove enrichment-coverage sam
4046
+ Cost:
4047
+ Free.
4048
+ `
4049
+ },
4050
+ "outcomes stakeholders nudge": {
4051
+ rolloutFeature: "outcomes",
4052
+ core: `
4053
+ Purpose:
4054
+ Ask a quiet stakeholder for a check-in. It posts a system entry that
4055
+ mentions them, which an agent waiting on the outcome receives.
4056
+ [[cli:
4057
+ Input:
4058
+ <outcome> <stakeholder>, the key from stakeholders list.
4059
+ ]]
4060
+ Output (JSON):
4061
+ entry (kind system, mentioning the stakeholder), cursor.
4062
+ Errors (code):
4063
+ STAKEHOLDER_NOT_FOUND and OUTCOME_NOT_FOUND (exit 4).
4064
+ Example:
4065
+ deepline outcomes stakeholders nudge enrichment-coverage claude
4066
+ Cost:
4067
+ Free.
2290
4068
  `
2291
4069
  },
2292
4070
  views: {
@@ -2312,7 +4090,11 @@ The sequence:
2312
4090
  prints the URL and id. --input saves the input Refresh runs the Play with.
2313
4091
  2. Fill it in: [[views refresh <id>]] runs the Play. A scheduled Play
2314
4092
  refreshes it automatically; every run of the Play appears in it.
2315
- 3. Share it: the URL opens for workspace members by default.
4093
+ 3. Share it: a view in a named team opens for that team by default (team:
4094
+ owners, admins and the team's members); one in the default team opens
4095
+ for every org member. [[views set-access <id> org]] opens it to every
4096
+ org member (workspace is accepted for org); refreshing and managing it
4097
+ stay with its team. [[views set-access <id> team]] narrows it again.
2316
4098
  [[views set-access <id> public]] lets anyone with the URL open it and
2317
4099
  see the output of every run of its Play, including runs started outside
2318
4100
  the view (by hand, on a schedule, or from the CLI).
@@ -2327,7 +4109,7 @@ Buttons in HTML output:
2327
4109
  actions: [{ id, type: "run_play", play, input? }], and use
2328
4110
  <button data-deepline-action="id"> or deepline.action(id, input). A click
2329
4111
  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.
4112
+ the run. Plays in this org only; never for public visitors.
2331
4113
  Permissions:
2332
4114
  [[views permissions]] shows who may create, edit, delete, set access, and
2333
4115
  refresh; admins change them with [[views permissions set]]. Share links
@@ -2346,12 +4128,13 @@ Purpose:
2346
4128
  Create a view that shows a Play's runs at a fixed URL.
2347
4129
  [[cli:
2348
4130
  Input:
2349
- --name <name> (1-120 characters). --play <play>: a Play in this workspace,
4131
+ --name <name> (1-120 characters). --play <play>: a Play in this org,
2350
4132
  or prebuilt/<name>. --input <json|@file>: saved input for Refresh.
2351
4133
  --description <text>. --json prints JSON.
2352
4134
  ]]
2353
4135
  Output (JSON):
2354
- id, name, url, play, input, access (workspace).
4136
+ id, name, url, play, input, access (team in a named team, else org),
4137
+ team_id.
2355
4138
  Errors (code):
2356
4139
  name_invalid, play_invalid, input_invalid, forbidden, views_not_enabled.
2357
4140
  Cost: