deepline 0.3.582 → 0.4.0

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 (196) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +79 -36
  2. package/dist/bundling-sources/sdk/src/index.ts +2 -0
  3. package/dist/bundling-sources/sdk/src/release.ts +7 -3
  4. package/dist/bundling-sources/sdk/src/types.ts +37 -0
  5. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +22 -3
  6. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +94 -5
  7. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +66 -12
  8. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +10 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-topology.ts +6 -1
  10. package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-tuple-recovery.ts +9 -3
  11. package/dist/bundling-sources/shared_libs/play-runtime/docflow-node-io.ts +86 -20
  12. package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +17 -6
  13. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +22 -6
  14. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +14 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +54 -0
  16. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/terminal/postgres-adapter.ts +2 -1
  17. package/dist/bundling-sources/shared_libs/play-runtime/row-failure-summary.ts +1 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +4 -1
  19. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +62 -6
  20. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +14 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +197 -19
  22. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-writer.ts +25 -1
  23. package/dist/bundling-sources/shared_libs/play-runtime/runtime-scheduler-topology.ts +5 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +140 -1
  25. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-wake-policy.ts +419 -0
  26. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +47 -4
  27. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +24 -0
  28. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +1 -1
  29. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +36 -19
  30. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +380 -51
  31. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +21 -10
  32. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +32 -0
  33. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +6 -0
  34. package/dist/bundling-sources/shared_libs/plays/deploy/api-client.ts +3 -1
  35. package/dist/bundling-sources/shared_libs/plays/deploy/run-deployment.ts +34 -4
  36. package/dist/bundling-sources/shared_libs/plays/docflow-recording-lint.ts +512 -0
  37. package/dist/bundling-sources/shared_libs/plays/docflow-requirement.ts +346 -0
  38. package/dist/bundling-sources/shared_libs/plays/docflow-rule-codes.ts +38 -0
  39. package/dist/bundling-sources/shared_libs/plays/docflow-unreached-reason.ts +42 -2
  40. package/dist/bundling-sources/shared_libs/plays/docflow.ts +223 -32
  41. package/dist/bundling-sources/shared_libs/plays/play-check-compact.ts +14 -1
  42. package/dist/bundling-sources/shared_libs/plays/run-result.ts +35 -0
  43. package/dist/cli/{agents-UAXDG4FS.mjs → agents-AHXB7N7Y.mjs} +68 -4
  44. package/dist/cli/{agents-2L73CJHH.js → agents-KBZ7OUZS.js} +95 -31
  45. package/dist/cli/{auth-3B2QB4UH.mjs → auth-3CACO52T.mjs} +5 -5
  46. package/dist/cli/auth-UOHCO5K6.js +44 -0
  47. package/dist/cli/{billing-E7FO622G.js → billing-5KXPGKMO.js} +105 -105
  48. package/dist/cli/{billing-CPBRWG3M.mjs → billing-TSTK63NB.mjs} +9 -9
  49. package/dist/cli/{chunk-3DVWSTAI.mjs → chunk-2GWKBQJZ.mjs} +1 -1
  50. package/dist/cli/{chunk-PNQVB4UD.mjs → chunk-3DJMPID5.mjs} +11 -11
  51. package/dist/cli/{chunk-FBSPHBAF.js → chunk-3ET6NRXP.js} +7 -3
  52. package/dist/cli/{chunk-NZR5PBNP.mjs → chunk-3MWTAM3F.mjs} +3 -3
  53. package/dist/cli/{chunk-ROUNT4NX.mjs → chunk-4ANDW2OT.mjs} +1 -1
  54. package/dist/cli/{chunk-ZH23XGJO.js → chunk-4BSCSQ6I.js} +4 -4
  55. package/dist/cli/{chunk-7QX5PCHP.mjs → chunk-4UEXAMDU.mjs} +2 -2
  56. package/dist/cli/{chunk-3EOET5UB.js → chunk-5XGLDVSD.js} +100 -100
  57. package/dist/cli/{chunk-MRSYC74T.js → chunk-7XXJJVSI.js} +5 -5
  58. package/dist/cli/{chunk-NJGXYYHN.js → chunk-7ZCD7OPO.js} +5 -5
  59. package/dist/cli/{chunk-JF4DUC2F.mjs → chunk-AJJSKKH4.mjs} +2 -2
  60. package/dist/cli/{chunk-XYQMOXP4.mjs → chunk-BHF5UW34.mjs} +1 -1
  61. package/dist/cli/{chunk-POYADK77.js → chunk-BO2TXH5Y.js} +20 -20
  62. package/dist/cli/{chunk-RNZXMOA6.mjs → chunk-BUC2TNF2.mjs} +2 -2
  63. package/dist/cli/{chunk-EGH4JNJP.js → chunk-BUUAFSSN.js} +68 -50
  64. package/dist/cli/{chunk-GZBXN56A.js → chunk-C45E47KC.js} +23 -23
  65. package/dist/cli/{chunk-HP6A3JCX.js → chunk-D4R3AL4F.js} +5 -5
  66. package/dist/cli/{chunk-ABJZQHON.mjs → chunk-DAZRIAXW.mjs} +4 -4
  67. package/dist/cli/{chunk-SKKRESFB.js → chunk-DNOZQGJF.js} +3 -3
  68. package/dist/cli/{chunk-DPLYQITT.js → chunk-DUL6UQ2T.js} +2 -2
  69. package/dist/cli/{chunk-U2QQQNWW.mjs → chunk-ES3S6UXR.mjs} +2 -2
  70. package/dist/cli/{chunk-4TTEAUZV.mjs → chunk-FDAYUP3M.mjs} +3 -3
  71. package/dist/cli/{chunk-V54YQHPV.js → chunk-FEVUIT2U.js} +6 -6
  72. package/dist/cli/{chunk-KDITCSPN.mjs → chunk-FSPEUU3V.mjs} +68 -6
  73. package/dist/cli/{chunk-OUFOJTEJ.mjs → chunk-FZZMCVOS.mjs} +5 -5
  74. package/dist/cli/{chunk-ISN4F6AY.js → chunk-GHOB72U6.js} +13 -13
  75. package/dist/cli/{chunk-LHA45DNY.mjs → chunk-GLYWRTEL.mjs} +3 -3
  76. package/dist/cli/{chunk-LDMCTV2Z.mjs → chunk-HNTIGYRT.mjs} +1 -1
  77. package/dist/cli/{chunk-EB2YLLZJ.js → chunk-IGPHYKEJ.js} +41 -41
  78. package/dist/cli/{chunk-VA35T3AF.js → chunk-ISSYN3DJ.js} +20 -20
  79. package/dist/cli/{chunk-DSHIB2XQ.mjs → chunk-JKQPITEE.mjs} +54 -36
  80. package/dist/cli/{chunk-ZARGHLZZ.mjs → chunk-KMLACXI2.mjs} +7 -3
  81. package/dist/cli/{chunk-DI5MULNX.js → chunk-KQXACHYA.js} +26 -26
  82. package/dist/cli/{chunk-CPZL6Z7D.js → chunk-LW2GKYZW.js} +2 -2
  83. package/dist/cli/{chunk-G5YU6RJ4.mjs → chunk-O2KSPI2M.mjs} +2 -2
  84. package/dist/cli/{chunk-H3KVMALU.js → chunk-O6GT6JD7.js} +9 -9
  85. package/dist/cli/{chunk-4ZAWRCB6.mjs → chunk-OCXWUWUI.mjs} +5 -5
  86. package/dist/cli/{chunk-YPP436NM.js → chunk-QKRDAJ3T.js} +53 -53
  87. package/dist/cli/{chunk-KQEW3EAU.js → chunk-QQESWF6D.js} +16 -16
  88. package/dist/cli/{chunk-CYZSHD66.js → chunk-REX5SUYU.js} +2 -2
  89. package/dist/cli/{chunk-Z3IAEHID.js → chunk-RXIQWG2N.js} +48 -48
  90. package/dist/cli/{chunk-5436ZJPH.js → chunk-S33BN7GZ.js} +3 -3
  91. package/dist/cli/{chunk-JD7P73ZW.mjs → chunk-SGRJJLNV.mjs} +1 -1
  92. package/dist/cli/{chunk-2K6EIL2D.mjs → chunk-TCNYSNVU.mjs} +1 -1
  93. package/dist/cli/{chunk-I5J6HGVR.mjs → chunk-TFPMVSGK.mjs} +2 -2
  94. package/dist/cli/{chunk-6NEMTKTA.mjs → chunk-V73WDQEA.mjs} +5 -5
  95. package/dist/cli/{chunk-Y36SQMSN.js → chunk-VYERVFGB.js} +68 -6
  96. package/dist/cli/{chunk-SYWLWTWM.mjs → chunk-WBRSVML3.mjs} +4 -4
  97. package/dist/cli/{chunk-NVHICORD.mjs → chunk-WW52ANX4.mjs} +2 -2
  98. package/dist/cli/{chunk-3HIJNXRB.js → chunk-XZS35M3Y.js} +10 -10
  99. package/dist/cli/{chunk-ZL3O7F5J.js → chunk-YNYHYL5C.js} +15 -15
  100. package/dist/cli/{chunk-FWB3QR7W.mjs → chunk-ZHE5E2WJ.mjs} +1 -1
  101. package/dist/cli/{chunk-D7J33HTK.mjs → chunk-ZJ2H77VV.mjs} +5 -5
  102. package/dist/cli/{chunk-JUZIMW4S.js → chunk-ZX6UVPGZ.js} +7 -7
  103. package/dist/cli/command-docs.js +2 -2
  104. package/dist/cli/command-docs.mjs +1 -1
  105. package/dist/cli/concurrent-runs-help-H5SZUA5J.js +22 -0
  106. package/dist/cli/{concurrent-runs-help-UFNYQYU2.mjs → concurrent-runs-help-IYELSCHB.mjs} +6 -6
  107. package/dist/cli/{csv-QSDRGLQH.mjs → csv-ENEC3APZ.mjs} +4 -4
  108. package/dist/cli/{csv-ZI5LYFHF.js → csv-X6CP57R4.js} +13 -13
  109. package/dist/cli/{db-ZDL6Q53U.js → db-6HLRSE2M.js} +27 -27
  110. package/dist/cli/{db-WVWXNNMO.mjs → db-YGKRFK4T.mjs} +6 -6
  111. package/dist/cli/{describe-UUQBKUVL.mjs → describe-4SGQEX7K.mjs} +18 -18
  112. package/dist/cli/describe-Q2OYHDVZ.js +50 -0
  113. package/dist/cli/describe-core.d.mts +2 -2
  114. package/dist/cli/describe-core.d.ts +2 -2
  115. package/dist/cli/{executions-SCGHTWTC.js → executions-IC55YJ67.js} +8 -8
  116. package/dist/cli/{executions-QN3OYJKT.mjs → executions-PO2IOSZ7.mjs} +6 -6
  117. package/dist/cli/{feedback-7QPHLXGU.mjs → feedback-6BUD5F4I.mjs} +6 -6
  118. package/dist/cli/{feedback-6QQ7ONLW.js → feedback-BCGQLZ5T.js} +14 -14
  119. package/dist/cli/git-5X3MLBIP.js +26 -0
  120. package/dist/cli/{git-HFPJX573.mjs → git-IN4IBL2K.mjs} +5 -5
  121. package/dist/cli/index.js +148 -148
  122. package/dist/cli/index.mjs +47 -47
  123. package/dist/cli/{integrations-ND2HULSH.js → integrations-R2Z2MDO3.js} +29 -29
  124. package/dist/cli/{integrations-4SZ5O24P.mjs → integrations-ZMGB6NQA.mjs} +7 -7
  125. package/dist/cli/{legacy-noops-WUP3TBR2.mjs → legacy-noops-GIC5OZKP.mjs} +6 -6
  126. package/dist/cli/{legacy-noops-GQF6AYP5.js → legacy-noops-X4JPRPTJ.js} +9 -9
  127. package/dist/cli/{mcp-3GUFYGCQ.mjs → mcp-G4IRJIKK.mjs} +4 -4
  128. package/dist/cli/{mcp-L3YYVEU6.js → mcp-USZKTVL2.js} +24 -24
  129. package/dist/cli/{monitors-OFCVJSH5.mjs → monitors-SNFZPSCY.mjs} +7 -7
  130. package/dist/cli/{monitors-CVZZN5WG.js → monitors-T7LRP7OB.js} +100 -100
  131. package/dist/cli/{org-MQ5AUN7I.js → org-2L2ZZL2P.js} +121 -121
  132. package/dist/cli/{org-3DTAYA52.mjs → org-YTXLKW52.mjs} +6 -6
  133. package/dist/cli/{outcomes-42W24EXG.mjs → outcomes-CJWBIFTA.mjs} +6 -6
  134. package/dist/cli/{outcomes-MGDUYHUD.js → outcomes-O63F57JF.js} +14 -14
  135. package/dist/cli/{play-PD45RNYZ.mjs → play-6UWPUHC6.mjs} +331 -70
  136. package/dist/cli/{play-IMAD7QTV.js → play-T353SULJ.js} +930 -669
  137. package/dist/cli/{providers-DYKHG7NV.mjs → providers-LZABK2UW.mjs} +6 -6
  138. package/dist/cli/{providers-WONHPTRG.js → providers-XORJH2VW.js} +9 -9
  139. package/dist/cli/{quickstart-5QPGHLEX.mjs → quickstart-O4RF7J55.mjs} +4 -4
  140. package/dist/cli/{quickstart-6AAFULGC.js → quickstart-QBNUNPZR.js} +6 -6
  141. package/dist/cli/{run-WOW7QO3W.js → run-2CPMFC6W.js} +44 -44
  142. package/dist/cli/{run-4K6ZU7H7.mjs → run-GBRPFC6P.mjs} +23 -23
  143. package/dist/cli/{search-CKVFWVXQ.mjs → search-G7TS7OFB.mjs} +7 -7
  144. package/dist/cli/search-M3AHFCKQ.js +32 -0
  145. package/dist/cli/{search-output-WWB25JWA.mjs → search-output-BIIJRUCP.mjs} +4 -4
  146. package/dist/cli/{search-output-B5QE7ZNK.js → search-output-NRKLNWSD.js} +6 -6
  147. package/dist/cli/{secrets-SVZB6TSW.mjs → secrets-DN3XEZNH.mjs} +6 -6
  148. package/dist/cli/{secrets-WKIMR346.js → secrets-FUXYSEL5.js} +15 -15
  149. package/dist/cli/{sessions-P3QENG6T.mjs → sessions-PMUTPCTT.mjs} +6 -6
  150. package/dist/cli/sessions-VMBMBGVJ.js +23 -0
  151. package/dist/cli/{settings-V5ABL6D2.mjs → settings-N6GNS2KA.mjs} +12 -12
  152. package/dist/cli/{settings-UIFRGJW3.js → settings-ZDTWCQ6B.js} +85 -85
  153. package/dist/cli/{setup-E67NJTEF.mjs → setup-LJ3KWPSA.mjs} +9 -9
  154. package/dist/cli/{setup-A5MIJU3S.js → setup-PN5TSSJE.js} +49 -49
  155. package/dist/cli/{skills-WLHOQ4DO.mjs → skills-7J42K6VC.mjs} +7 -7
  156. package/dist/cli/skills-CXDENBLF.js +37 -0
  157. package/dist/cli/{tools-EG4KL3BB.mjs → tools-M3S6D6DA.mjs} +17 -17
  158. package/dist/cli/tools-WY2GMOC7.js +57 -0
  159. package/dist/cli/{update-IPFBE6SA.mjs → update-XTVFG74E.mjs} +9 -9
  160. package/dist/cli/update-ZB2IBGXG.js +37 -0
  161. package/dist/cli/{views-ZIBY2RVB.js → views-B4X2FWTF.js} +21 -21
  162. package/dist/cli/{views-XDN6SEWY.mjs → views-UFYRDO4X.mjs} +6 -6
  163. package/dist/cli/{workflow-BLKPBRBT.js → workflow-I2RM2J2J.js} +53 -29
  164. package/dist/cli/{workflow-O2XPMOVL.mjs → workflow-ZLMS3PDE.mjs} +42 -18
  165. package/dist/{client-QznpkWrk.d.ts → client-2QWMJInp.d.ts} +1 -1
  166. package/dist/{client-CmG8MT0x.d.mts → client-7H8TXmLa.d.mts} +1 -1
  167. package/dist/{client-core-CY0jNW0e.d.mts → client-core-BraEuxbg.d.mts} +67 -4
  168. package/dist/{client-core-CXDqfeiB.d.ts → client-core-DRglY5xa.d.ts} +67 -4
  169. package/dist/index.d.mts +3 -3
  170. package/dist/index.d.ts +3 -3
  171. package/dist/index.js +9 -9
  172. package/dist/index.mjs +6 -6
  173. package/dist/install-integrity.json +125 -120
  174. package/dist/plays/bundle-play-file.mjs +5 -0
  175. package/dist/plays/play-description.d.mts +1 -1
  176. package/dist/plays/play-description.d.ts +1 -1
  177. package/dist/plays/run-request.d.mts +1 -1
  178. package/dist/plays/run-request.d.ts +1 -1
  179. package/dist/release.d.mts +3 -3
  180. package/dist/release.d.ts +3 -3
  181. package/dist/release.js +2 -2
  182. package/dist/release.mjs +1 -1
  183. package/dist/server.d.mts +2 -2
  184. package/dist/server.d.ts +2 -2
  185. package/dist/server.js +5 -5
  186. package/dist/server.mjs +3 -3
  187. package/package.json +1 -1
  188. package/dist/cli/auth-ALBG5LF4.js +0 -44
  189. package/dist/cli/concurrent-runs-help-E3YMAO5Q.js +0 -22
  190. package/dist/cli/describe-QB5T47B3.js +0 -50
  191. package/dist/cli/git-4FXTWHXT.js +0 -26
  192. package/dist/cli/search-YZIJS7QU.js +0 -32
  193. package/dist/cli/sessions-VQPGPXMU.js +0 -23
  194. package/dist/cli/skills-GTBK33MV.js +0 -37
  195. package/dist/cli/tools-GPAIPRPQ.js +0 -57
  196. package/dist/cli/update-QLWS32WR.js +0 -37
@@ -1,18 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2;
2
2
 
3
3
 
4
- var _chunkVA35T3AFjs = require('./chunk-VA35T3AF.js');
4
+ var _chunkISSYN3DJjs = require('./chunk-ISSYN3DJ.js');
5
5
 
6
6
 
7
- var _chunk5436ZJPHjs = require('./chunk-5436ZJPH.js');
8
- require('./chunk-ZH23XGJO.js');
7
+ var _chunkS33BN7GZjs = require('./chunk-S33BN7GZ.js');
8
+ require('./chunk-4BSCSQ6I.js');
9
9
  require('./chunk-6VLFQZK6.js');
10
10
  require('./chunk-XNYIZMNQ.js');
11
11
 
12
12
 
13
13
  var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
14
14
  require('./chunk-CFJFUVX2.js');
15
- require('./chunk-FBSPHBAF.js');
15
+ require('./chunk-3ET6NRXP.js');
16
16
  require('./chunk-OG64RBAC.js');
17
17
  require('./chunk-COGTRVWW.js');
18
18
 
@@ -42,6 +42,10 @@ function describeOwnedOutcome(owned) {
42
42
  const last = owned.lastWake ? `last ring ${new Date(owned.lastWake.at).toISOString()} ${WAKE_STATUS_WORDS[owned.lastWake.status]}${owned.lastWake.what.length > 0 ? ` (${owned.lastWake.what.join(", ")})` : ""}` : "never rung";
43
43
  return `${owned.outcome} \u2014 as ${owned.agent}; ${watch}; ${last}; ${owned.turnsInWindow} of ${owned.turnLimit} turns this hour`;
44
44
  }
45
+ function describeHomeWakes(home) {
46
+ const last = home.lastWake ? `last ring ${new Date(home.lastWake.at).toISOString()} ${WAKE_STATUS_WORDS[home.lastWake.status]}${home.lastWake.what.length > 0 ? ` (${home.lastWake.what.join(", ")})` : ""}` : "never rung";
47
+ return `#${home.conversationName} (${home.conversationId}) \u2014 ${home.agent} on ${home.outcome}; ${home.watching ? "woken there" : "not woken (no watch)"}; ${last}; ${home.turnsInWindow} of ${home.turnLimit} turns this hour`;
48
+ }
45
49
  var REPLIES_MAX_LIMIT = 100;
46
50
  var REPLIES_INVALID_CURSOR = "DEEPLINE_AGENT_REPLIES_INVALID_CURSOR";
47
51
  var FEEDBACK_MAX_LIMIT = 100;
@@ -183,7 +187,7 @@ function describeOverview(overview) {
183
187
  ];
184
188
  }
185
189
  function print(payload, title, lines, options) {
186
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
190
+ _chunkISSYN3DJjs.printCommandEnvelope.call(void 0,
187
191
  { ...payload, render: { sections: [{ title, lines }] } },
188
192
  { json: options.json }
189
193
  );
@@ -277,7 +281,7 @@ async function readModelKey() {
277
281
  return Buffer.concat(chunks).toString("utf8").trim();
278
282
  }
279
283
  async function sendTestMessage(input2) {
280
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
284
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
281
285
  return http.post(
282
286
  `${AGENT_PATH}/test`,
283
287
  {
@@ -368,7 +372,7 @@ async function handleChat(channelId, options) {
368
372
  threadId = reply.threadId;
369
373
  const text = describeReply(channelId, reply, true).map((line2) => `agent> ${line2}
370
374
  `).join("");
371
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0, reply, { json: false, text });
375
+ _chunkISSYN3DJjs.printCommandEnvelope.call(void 0, reply, { json: false, text });
372
376
  }
373
377
  } finally {
374
378
  rl.close();
@@ -378,7 +382,7 @@ function registerWorkspaceCommands(agents, readKey) {
378
382
  agents.command("list").description(
379
383
  "Show whether agents are on, their model billing, every agent with its channels, and the skill library."
380
384
  ).option("--json", "Emit JSON output").action(async (options) => {
381
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
385
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
382
386
  const overview = await http.get(AGENT_PATH);
383
387
  print(overview, "deepline agents", describeOverview(overview), options);
384
388
  });
@@ -389,7 +393,7 @@ function registerWorkspaceCommands(agents, readKey) {
389
393
  printDryRun("POST", `${AGENT_PATH}/enable`, {}, options);
390
394
  return;
391
395
  }
392
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
396
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
393
397
  const result = await http.post(
394
398
  `${AGENT_PATH}/enable`,
395
399
  {}
@@ -411,7 +415,7 @@ function registerWorkspaceCommands(agents, readKey) {
411
415
  printDryRun("POST", `${AGENT_PATH}/disable`, {}, options);
412
416
  return;
413
417
  }
414
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
418
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
415
419
  const result = await http.post(
416
420
  `${AGENT_PATH}/disable`,
417
421
  {}
@@ -443,7 +447,7 @@ function registerWorkspaceCommands(agents, readKey) {
443
447
  }
444
448
  const apiKey = await readKey();
445
449
  if (!apiKey) throw new AgentUsageError("No key was given.");
446
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
450
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
447
451
  const overview = await http.put(`${AGENT_PATH}/billing`, {
448
452
  mode: "own_key",
449
453
  provider: _nullishCoalesce(options.provider, () => ( keyProvider(apiKey))),
@@ -455,7 +459,7 @@ function registerWorkspaceCommands(agents, readKey) {
455
459
  agents.command("models").description(
456
460
  "List the models an agent or one of its channels can run on, and which your workspace\u2019s key can run."
457
461
  ).option("--json", "Emit JSON output").action(async (options) => {
458
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
462
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
459
463
  const result = await http.get(
460
464
  `${AGENT_PATH}/models`
461
465
  );
@@ -479,7 +483,7 @@ function registerWorkspaceCommands(agents, readKey) {
479
483
  agents.command("outcomes").description(
480
484
  "List the outcomes Bot by Deepline owns by default (those with no home channel), with what woke it last on each."
481
485
  ).option("--json", "Emit JSON output").action(async (options) => {
482
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
486
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
483
487
  const result = await http.get(
484
488
  `${AGENT_PATH}/outcomes`
485
489
  );
@@ -496,10 +500,70 @@ function registerWorkspaceCommands(agents, readKey) {
496
500
  options
497
501
  );
498
502
  });
503
+ agents.command("wakes").description(
504
+ "List outcome home channels with how their agent was last woken and its hourly turn budget."
505
+ ).option("--json", "Emit JSON output").action(async (options) => {
506
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
507
+ const result = await http.get(
508
+ `${AGENT_PATH}/wakes`
509
+ );
510
+ print(
511
+ result,
512
+ "agent wakes",
513
+ result.homes.length === 0 ? [
514
+ "No channel is an outcome\u2019s home. Make one with: deepline agents channels set <channel-id> --outcome <outcome>"
515
+ ] : result.homes.map(describeHomeWakes),
516
+ options
517
+ );
518
+ });
519
+ agents.command("memory").description(
520
+ "Show what the agent remembers about an outcome, in each channel that works toward it, and who said it; --clear forgets it all (both need member access)."
521
+ ).argument("<outcome>", "Outcome name, as deepline outcomes list prints it").option(
522
+ "--clear",
523
+ "Forget everything the agent remembers about this outcome (member access)"
524
+ ).option("--json", "Emit JSON output").action(
525
+ async (outcome, options) => {
526
+ const name = requireArgument(outcome, "an outcome name");
527
+ const path = `${AGENT_PATH}/memory?outcome=${encodeURIComponent(name)}`;
528
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
529
+ if (options.clear) {
530
+ const result2 = await http.delete(path);
531
+ print(
532
+ result2,
533
+ "agent memory",
534
+ [
535
+ result2.cleared === 0 ? `The agent remembered nothing about ${name}.` : `Forgot ${result2.cleared} ${result2.cleared === 1 ? "thing" : "things"} the agent remembered about ${name}.`
536
+ ],
537
+ options
538
+ );
539
+ return;
540
+ }
541
+ const result = await http.get(path);
542
+ print(
543
+ result,
544
+ "agent memory",
545
+ result.memories.length === 0 ? [
546
+ `The agent remembers nothing about ${name} yet. It saves what people tell it that will matter later (decisions, deadlines, preferences, who owns what).`
547
+ ] : [
548
+ ...result.memories.flatMap(describeOutcomeMemory),
549
+ `Forget it all with: deepline agents memory ${name} --clear`
550
+ ],
551
+ options
552
+ );
553
+ }
554
+ );
555
+ }
556
+ function describeOutcomeMemory(memory) {
557
+ return [
558
+ memory.owner ? "Bot by Deepline (no channel):" : `#${memory.conversationName}:`,
559
+ ...memory.entries.map(
560
+ (entry) => ` ${entry.n}. ${entry.text} (${entry.source})`
561
+ )
562
+ ];
499
563
  }
500
564
  function registerAgentCommands(agents) {
501
565
  agents.command("get").description("Show one agent: its instructions, skills and channels.").argument("<name>", "Agent name").option("--json", "Emit JSON output").action(async (name, options) => {
502
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
566
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
503
567
  const result = await http.get(
504
568
  `${AGENT_PATH}/agents/${encodeURIComponent(requireArgument(name, "an agent name"))}`
505
569
  );
@@ -529,7 +593,7 @@ function registerAgentCommands(agents) {
529
593
  printDryRun("POST", `${AGENT_PATH}/agents`, body, options);
530
594
  return;
531
595
  }
532
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
596
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
533
597
  const result = await http.post(
534
598
  `${AGENT_PATH}/agents`,
535
599
  body
@@ -573,7 +637,7 @@ function registerAgentCommands(agents) {
573
637
  printDryRun("PATCH", path, body, options);
574
638
  return;
575
639
  }
576
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
640
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
577
641
  const result = await http.patch(path, body);
578
642
  print(result, "agent updated", describeAgent(result.agent), options);
579
643
  }
@@ -586,7 +650,7 @@ function registerAgentCommands(agents) {
586
650
  printDryRun("DELETE", path, null, options);
587
651
  return;
588
652
  }
589
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
653
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
590
654
  const result = await http.delete(path);
591
655
  print(
592
656
  result,
@@ -629,7 +693,7 @@ function registerChannelCommands(agents) {
629
693
  printDryRun("POST", `${AGENT_PATH}/channels`, body, options);
630
694
  return;
631
695
  }
632
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
696
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
633
697
  const result = await http.post(`${AGENT_PATH}/channels`, body);
634
698
  print(
635
699
  result,
@@ -689,7 +753,7 @@ function registerChannelCommands(agents) {
689
753
  printDryRun("PATCH", path, body, options);
690
754
  return;
691
755
  }
692
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
756
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
693
757
  const result = await http.patch(path, body);
694
758
  print(
695
759
  result,
@@ -718,7 +782,7 @@ function registerChannelCommands(agents) {
718
782
  printDryRun("DELETE", path, null, options);
719
783
  return;
720
784
  }
721
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
785
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
722
786
  const result = await http.delete(path);
723
787
  print(
724
788
  result,
@@ -754,7 +818,7 @@ function registerSlackCommands(agents) {
754
818
  slack.command("install").description(
755
819
  "Print a link that adds the agent to a Slack workspace (owners and admins). Open it, pick the Slack workspace and approve."
756
820
  ).option("--json", "Emit JSON output").action(async (options) => {
757
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
821
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
758
822
  const result = await http.post(
759
823
  `${AGENT_PATH}/slack/install`,
760
824
  {}
@@ -773,7 +837,7 @@ function registerSlackCommands(agents) {
773
837
  slack.command("link").description(
774
838
  "Say which Slack user you are, with the code from the link the agent showed you in Slack. Your clicks there (answering an ask, connecting a channel) are then made as you."
775
839
  ).argument("<code>", "The code from the link, or the whole link").option("--json", "Emit JSON output").action(async (code, options) => {
776
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
840
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
777
841
  const result = await http.post(`${AGENT_PATH}/slack/link`, { code: slackLinkCode(code) });
778
842
  print(
779
843
  result,
@@ -787,7 +851,7 @@ function registerSlackCommands(agents) {
787
851
  slack.command("unlink").description(
788
852
  "Forget which Slack user you are in this workspace. Your clicks in Slack decide nothing until you link again."
789
853
  ).option("--json", "Emit JSON output").action(async (options) => {
790
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
854
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
791
855
  const result = await http.delete(
792
856
  `${AGENT_PATH}/slack/link`
793
857
  );
@@ -803,7 +867,7 @@ function registerSlackCommands(agents) {
803
867
  slack.command("status").description(
804
868
  "List the Slack workspaces this workspace installed the agent in."
805
869
  ).option("--json", "Emit JSON output").action(async (options) => {
806
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
870
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
807
871
  const result = await http.get(
808
872
  `${AGENT_PATH}/slack/installations`
809
873
  );
@@ -822,7 +886,7 @@ function registerSkillCommands(agents) {
822
886
  "The workspace\u2019s skill library: markdown an agent loads when its description matches the task."
823
887
  );
824
888
  skills.command("get").description("Show one library skill with its markdown.").argument("<name>", "Skill name").option("--json", "Emit JSON output").action(async (name, options) => {
825
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
889
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
826
890
  const result = await http.get(
827
891
  `${AGENT_PATH}/skills/${encodeURIComponent(requireArgument(name, "a skill name"))}`
828
892
  );
@@ -860,7 +924,7 @@ function registerSkillCommands(agents) {
860
924
  printDryRun("PUT", path, body, options);
861
925
  return;
862
926
  }
863
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
927
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
864
928
  const result = await http.put(path, body);
865
929
  print(
866
930
  result,
@@ -883,7 +947,7 @@ function registerSkillCommands(agents) {
883
947
  printDryRun("DELETE", path, null, options);
884
948
  return;
885
949
  }
886
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
950
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
887
951
  const result = await http.delete(path);
888
952
  print(
889
953
  result,
@@ -937,7 +1001,7 @@ function registerFeedbackCommand(agents) {
937
1001
  params.set("cursor", requireArgument(options.cursor, "--cursor"));
938
1002
  }
939
1003
  const query = params.toString();
940
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
1004
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
941
1005
  const page = await http.get(
942
1006
  `${AGENT_PATH}/feedback${query ? `?${query}` : ""}`
943
1007
  ).catch((error) => {
@@ -1000,7 +1064,7 @@ function registerRepliesCommand(agents) {
1000
1064
  params.set("cursor", requireArgument(options.cursor, "--cursor"));
1001
1065
  }
1002
1066
  const query = params.toString();
1003
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
1067
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
1004
1068
  const page = await http.get(`${AGENT_PATH}/replies${query ? `?${query}` : ""}`).catch((error) => {
1005
1069
  if (error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === REPLIES_INVALID_CURSOR) {
1006
1070
  throw new AgentUsageError(`--cursor: ${error.message}`);
@@ -1026,13 +1090,13 @@ function registerActivityCommand(agents) {
1026
1090
  agents.command("activity").description(
1027
1091
  "Sum each agent's replies over the last 7 days: how many, how they ended, median time, tokens and the last reply."
1028
1092
  ).option("--json", "Emit JSON output").action(async (options) => {
1029
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
1093
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
1030
1094
  const activity = await http.get(`${AGENT_PATH}/activity`);
1031
1095
  print(activity, "agent activity", describeActivity(activity), options);
1032
1096
  });
1033
1097
  }
1034
1098
  function registerAgentsCommands(program, readKey = readModelKey) {
1035
- const agents = program.command("agents", { hidden: !_chunk5436ZJPHjs.cliFeatureEnabled.call(void 0, AGENT_FEATURE) }).description(
1099
+ const agents = program.command("agents", { hidden: !_chunkS33BN7GZjs.cliFeatureEnabled.call(void 0, AGENT_FEATURE) }).description(
1036
1100
  "Deepline agents in Slack: create agents with instructions and skills, bind channels to them, and talk to them."
1037
1101
  );
1038
1102
  registerWorkspaceCommands(agents, readKey);
@@ -14,15 +14,15 @@ import {
14
14
  reportSetupCompleted,
15
15
  resolvePendingAuthClaimForResume,
16
16
  statusBannerLine
17
- } from "./chunk-LHA45DNY.mjs";
18
- import "./chunk-NVHICORD.mjs";
19
- import "./chunk-ROUNT4NX.mjs";
20
- import "./chunk-LDMCTV2Z.mjs";
17
+ } from "./chunk-GLYWRTEL.mjs";
18
+ import "./chunk-WW52ANX4.mjs";
19
+ import "./chunk-4ANDW2OT.mjs";
20
+ import "./chunk-HNTIGYRT.mjs";
21
21
  import "./chunk-ASB47RXJ.mjs";
22
22
  import "./chunk-DLIRSHV6.mjs";
23
23
  import "./chunk-Z3A2S3QM.mjs";
24
24
  import "./chunk-2MGZAI54.mjs";
25
- import "./chunk-ZARGHLZZ.mjs";
25
+ import "./chunk-KMLACXI2.mjs";
26
26
  import "./chunk-WZYKRD7T.mjs";
27
27
  import "./chunk-KRD6H754.mjs";
28
28
  export {
@@ -0,0 +1,44 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+ var _chunkQKRDAJ3Tjs = require('./chunk-QKRDAJ3T.js');
18
+ require('./chunk-ISSYN3DJ.js');
19
+ require('./chunk-S33BN7GZ.js');
20
+ require('./chunk-4BSCSQ6I.js');
21
+ require('./chunk-6VLFQZK6.js');
22
+ require('./chunk-XNYIZMNQ.js');
23
+ require('./chunk-LFQJW4S2.js');
24
+ require('./chunk-CFJFUVX2.js');
25
+ require('./chunk-3ET6NRXP.js');
26
+ require('./chunk-OG64RBAC.js');
27
+ require('./chunk-COGTRVWW.js');
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+ exports.EXIT_WORKSPACE_MISMATCH = _chunkQKRDAJ3Tjs.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkQKRDAJ3Tjs.authStatusLine; exports.clearPendingClaim = _chunkQKRDAJ3Tjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkQKRDAJ3Tjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkQKRDAJ3Tjs.handleRegister; exports.handleStatus = _chunkQKRDAJ3Tjs.handleStatus; exports.handleWait = _chunkQKRDAJ3Tjs.handleWait; exports.httpJson = _chunkQKRDAJ3Tjs.httpJson; exports.readPendingAuthClaim = _chunkQKRDAJ3Tjs.readPendingAuthClaim; exports.readStatusBanner = _chunkQKRDAJ3Tjs.readStatusBanner; exports.registerAuthCommands = _chunkQKRDAJ3Tjs.registerAuthCommands; exports.reportApprovalLinkShown = _chunkQKRDAJ3Tjs.reportApprovalLinkShown; exports.reportSetupCompleted = _chunkQKRDAJ3Tjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkQKRDAJ3Tjs.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkQKRDAJ3Tjs.statusBannerLine;