deepline 0.3.583 → 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 (194) 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/output-size-limits.ts +54 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/terminal/postgres-adapter.ts +2 -1
  16. package/dist/bundling-sources/shared_libs/play-runtime/row-failure-summary.ts +1 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +4 -1
  18. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +12 -3
  19. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +197 -19
  20. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-writer.ts +25 -1
  21. package/dist/bundling-sources/shared_libs/play-runtime/runtime-scheduler-topology.ts +5 -0
  22. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +73 -3
  23. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-wake-policy.ts +419 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +20 -6
  25. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +24 -0
  26. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +1 -1
  27. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +36 -19
  28. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +380 -51
  29. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +21 -10
  30. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +32 -0
  31. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +6 -0
  32. package/dist/bundling-sources/shared_libs/plays/deploy/api-client.ts +3 -1
  33. package/dist/bundling-sources/shared_libs/plays/deploy/run-deployment.ts +34 -4
  34. package/dist/bundling-sources/shared_libs/plays/docflow-recording-lint.ts +512 -0
  35. package/dist/bundling-sources/shared_libs/plays/docflow-requirement.ts +346 -0
  36. package/dist/bundling-sources/shared_libs/plays/docflow-rule-codes.ts +38 -0
  37. package/dist/bundling-sources/shared_libs/plays/docflow-unreached-reason.ts +42 -2
  38. package/dist/bundling-sources/shared_libs/plays/docflow.ts +223 -32
  39. package/dist/bundling-sources/shared_libs/plays/play-check-compact.ts +14 -1
  40. package/dist/bundling-sources/shared_libs/plays/run-result.ts +35 -0
  41. package/dist/cli/{agents-G344SPW2.mjs → agents-AHXB7N7Y.mjs} +4 -4
  42. package/dist/cli/{agents-ZPDXVPEE.js → agents-KBZ7OUZS.js} +33 -33
  43. package/dist/cli/{auth-V66RP2A6.mjs → auth-3CACO52T.mjs} +5 -5
  44. package/dist/cli/auth-UOHCO5K6.js +44 -0
  45. package/dist/cli/{billing-ROYUQF67.js → billing-5KXPGKMO.js} +105 -105
  46. package/dist/cli/{billing-BTMGZJCR.mjs → billing-TSTK63NB.mjs} +9 -9
  47. package/dist/cli/{chunk-ROWROMXD.mjs → chunk-2GWKBQJZ.mjs} +1 -1
  48. package/dist/cli/{chunk-VXEZKZU4.mjs → chunk-3DJMPID5.mjs} +11 -11
  49. package/dist/cli/{chunk-VH45GV3T.js → chunk-3ET6NRXP.js} +7 -3
  50. package/dist/cli/{chunk-43MKV6E4.mjs → chunk-3MWTAM3F.mjs} +3 -3
  51. package/dist/cli/{chunk-U6BTY4WS.mjs → chunk-4ANDW2OT.mjs} +1 -1
  52. package/dist/cli/{chunk-H4BYWEV5.js → chunk-4BSCSQ6I.js} +4 -4
  53. package/dist/cli/{chunk-ACS6BYE5.mjs → chunk-4UEXAMDU.mjs} +2 -2
  54. package/dist/cli/{chunk-QPN662ZP.js → chunk-5XGLDVSD.js} +100 -100
  55. package/dist/cli/{chunk-MFPHCUHK.js → chunk-7XXJJVSI.js} +5 -5
  56. package/dist/cli/{chunk-QGOHEJVJ.js → chunk-7ZCD7OPO.js} +5 -5
  57. package/dist/cli/{chunk-AXKFZIXC.mjs → chunk-AJJSKKH4.mjs} +2 -2
  58. package/dist/cli/{chunk-KSXBLXLV.mjs → chunk-BHF5UW34.mjs} +1 -1
  59. package/dist/cli/{chunk-AHQDUMDM.js → chunk-BO2TXH5Y.js} +20 -20
  60. package/dist/cli/{chunk-W5WLWRKL.mjs → chunk-BUC2TNF2.mjs} +2 -2
  61. package/dist/cli/{chunk-6GYGMWQV.js → chunk-BUUAFSSN.js} +68 -50
  62. package/dist/cli/{chunk-WUVDJSZE.js → chunk-C45E47KC.js} +23 -23
  63. package/dist/cli/{chunk-BUMCOVBP.js → chunk-D4R3AL4F.js} +5 -5
  64. package/dist/cli/{chunk-PVDP3AZY.mjs → chunk-DAZRIAXW.mjs} +4 -4
  65. package/dist/cli/{chunk-W3ECB7GC.js → chunk-DNOZQGJF.js} +3 -3
  66. package/dist/cli/{chunk-HYT5B2NL.js → chunk-DUL6UQ2T.js} +2 -2
  67. package/dist/cli/{chunk-P2YNTAGL.mjs → chunk-ES3S6UXR.mjs} +2 -2
  68. package/dist/cli/{chunk-K6GDSCFL.mjs → chunk-FDAYUP3M.mjs} +3 -3
  69. package/dist/cli/{chunk-23LYXVI4.js → chunk-FEVUIT2U.js} +6 -6
  70. package/dist/cli/{chunk-6S3OAJCJ.mjs → chunk-FSPEUU3V.mjs} +49 -6
  71. package/dist/cli/{chunk-2QIVGZKS.mjs → chunk-FZZMCVOS.mjs} +5 -5
  72. package/dist/cli/{chunk-73IZARR5.js → chunk-GHOB72U6.js} +13 -13
  73. package/dist/cli/{chunk-LVJAHM2I.mjs → chunk-GLYWRTEL.mjs} +3 -3
  74. package/dist/cli/{chunk-AXOQ2FMS.mjs → chunk-HNTIGYRT.mjs} +1 -1
  75. package/dist/cli/{chunk-C7UCDL2K.js → chunk-IGPHYKEJ.js} +41 -41
  76. package/dist/cli/{chunk-PULU5YGX.js → chunk-ISSYN3DJ.js} +20 -20
  77. package/dist/cli/{chunk-ZHIJA4MW.mjs → chunk-JKQPITEE.mjs} +54 -36
  78. package/dist/cli/{chunk-EHV52KUV.mjs → chunk-KMLACXI2.mjs} +7 -3
  79. package/dist/cli/{chunk-WAZR72D5.js → chunk-KQXACHYA.js} +26 -26
  80. package/dist/cli/{chunk-PGUK5VPC.js → chunk-LW2GKYZW.js} +2 -2
  81. package/dist/cli/{chunk-J54DMFV5.mjs → chunk-O2KSPI2M.mjs} +2 -2
  82. package/dist/cli/{chunk-CCC3NIYB.js → chunk-O6GT6JD7.js} +9 -9
  83. package/dist/cli/{chunk-DNYFNOWG.mjs → chunk-OCXWUWUI.mjs} +5 -5
  84. package/dist/cli/{chunk-MEAWK5G7.js → chunk-QKRDAJ3T.js} +53 -53
  85. package/dist/cli/{chunk-N5XRUZRS.js → chunk-QQESWF6D.js} +16 -16
  86. package/dist/cli/{chunk-2D5YISAL.js → chunk-REX5SUYU.js} +2 -2
  87. package/dist/cli/{chunk-RO2LTLJA.js → chunk-RXIQWG2N.js} +48 -48
  88. package/dist/cli/{chunk-VXDKL434.js → chunk-S33BN7GZ.js} +3 -3
  89. package/dist/cli/{chunk-72MEXMSH.mjs → chunk-SGRJJLNV.mjs} +1 -1
  90. package/dist/cli/{chunk-HOGRT5X6.mjs → chunk-TCNYSNVU.mjs} +1 -1
  91. package/dist/cli/{chunk-H7F3ROT3.mjs → chunk-TFPMVSGK.mjs} +2 -2
  92. package/dist/cli/{chunk-GFX6CDAB.mjs → chunk-V73WDQEA.mjs} +5 -5
  93. package/dist/cli/{chunk-LHD3HOYN.js → chunk-VYERVFGB.js} +49 -6
  94. package/dist/cli/{chunk-C233ZRNX.mjs → chunk-WBRSVML3.mjs} +4 -4
  95. package/dist/cli/{chunk-7AFTLM74.mjs → chunk-WW52ANX4.mjs} +2 -2
  96. package/dist/cli/{chunk-ZFJNIZHI.js → chunk-XZS35M3Y.js} +10 -10
  97. package/dist/cli/{chunk-YRNWA2IL.js → chunk-YNYHYL5C.js} +15 -15
  98. package/dist/cli/{chunk-JQT3SHXL.mjs → chunk-ZHE5E2WJ.mjs} +1 -1
  99. package/dist/cli/{chunk-N5RCXI3M.mjs → chunk-ZJ2H77VV.mjs} +5 -5
  100. package/dist/cli/{chunk-GQHZV7EQ.js → chunk-ZX6UVPGZ.js} +7 -7
  101. package/dist/cli/command-docs.js +2 -2
  102. package/dist/cli/command-docs.mjs +1 -1
  103. package/dist/cli/concurrent-runs-help-H5SZUA5J.js +22 -0
  104. package/dist/cli/{concurrent-runs-help-A2Y33OQ5.mjs → concurrent-runs-help-IYELSCHB.mjs} +6 -6
  105. package/dist/cli/{csv-PS74WVXE.mjs → csv-ENEC3APZ.mjs} +4 -4
  106. package/dist/cli/{csv-TKSR2LFV.js → csv-X6CP57R4.js} +13 -13
  107. package/dist/cli/{db-R6GOM4VC.js → db-6HLRSE2M.js} +27 -27
  108. package/dist/cli/{db-EXLBRZ7K.mjs → db-YGKRFK4T.mjs} +6 -6
  109. package/dist/cli/{describe-JJBXFPVQ.mjs → describe-4SGQEX7K.mjs} +18 -18
  110. package/dist/cli/describe-Q2OYHDVZ.js +50 -0
  111. package/dist/cli/describe-core.d.mts +2 -2
  112. package/dist/cli/describe-core.d.ts +2 -2
  113. package/dist/cli/{executions-474U7R3Y.js → executions-IC55YJ67.js} +8 -8
  114. package/dist/cli/{executions-5PEODJQG.mjs → executions-PO2IOSZ7.mjs} +6 -6
  115. package/dist/cli/{feedback-QUQVRDBD.mjs → feedback-6BUD5F4I.mjs} +6 -6
  116. package/dist/cli/{feedback-URTCAOXP.js → feedback-BCGQLZ5T.js} +14 -14
  117. package/dist/cli/git-5X3MLBIP.js +26 -0
  118. package/dist/cli/{git-AQF23KKU.mjs → git-IN4IBL2K.mjs} +5 -5
  119. package/dist/cli/index.js +148 -148
  120. package/dist/cli/index.mjs +47 -47
  121. package/dist/cli/{integrations-NMFOOSS4.js → integrations-R2Z2MDO3.js} +29 -29
  122. package/dist/cli/{integrations-5POBI72U.mjs → integrations-ZMGB6NQA.mjs} +7 -7
  123. package/dist/cli/{legacy-noops-6YVCOSFO.mjs → legacy-noops-GIC5OZKP.mjs} +6 -6
  124. package/dist/cli/{legacy-noops-V75T5LHV.js → legacy-noops-X4JPRPTJ.js} +9 -9
  125. package/dist/cli/{mcp-7WEYQ5V7.mjs → mcp-G4IRJIKK.mjs} +4 -4
  126. package/dist/cli/{mcp-N6GYXCUQ.js → mcp-USZKTVL2.js} +24 -24
  127. package/dist/cli/{monitors-TAK4M5Y4.mjs → monitors-SNFZPSCY.mjs} +7 -7
  128. package/dist/cli/{monitors-HW4H4PE5.js → monitors-T7LRP7OB.js} +100 -100
  129. package/dist/cli/{org-FULXOXNE.js → org-2L2ZZL2P.js} +121 -121
  130. package/dist/cli/{org-3C2RN36N.mjs → org-YTXLKW52.mjs} +6 -6
  131. package/dist/cli/{outcomes-4KRZL6OL.mjs → outcomes-CJWBIFTA.mjs} +6 -6
  132. package/dist/cli/{outcomes-O3HDQWGN.js → outcomes-O63F57JF.js} +14 -14
  133. package/dist/cli/{play-ZTRWUODW.mjs → play-6UWPUHC6.mjs} +331 -70
  134. package/dist/cli/{play-HA4RGX7T.js → play-T353SULJ.js} +930 -669
  135. package/dist/cli/{providers-FAKWWJE2.mjs → providers-LZABK2UW.mjs} +6 -6
  136. package/dist/cli/{providers-DXMKWBZN.js → providers-XORJH2VW.js} +9 -9
  137. package/dist/cli/{quickstart-YWGBTW77.mjs → quickstart-O4RF7J55.mjs} +4 -4
  138. package/dist/cli/{quickstart-MA74UPNI.js → quickstart-QBNUNPZR.js} +6 -6
  139. package/dist/cli/{run-4DXSGXRB.js → run-2CPMFC6W.js} +44 -44
  140. package/dist/cli/{run-QHCYMSBP.mjs → run-GBRPFC6P.mjs} +23 -23
  141. package/dist/cli/{search-N4ZOK5XX.mjs → search-G7TS7OFB.mjs} +7 -7
  142. package/dist/cli/search-M3AHFCKQ.js +32 -0
  143. package/dist/cli/{search-output-F2OYLVK2.mjs → search-output-BIIJRUCP.mjs} +4 -4
  144. package/dist/cli/{search-output-D5VAC52B.js → search-output-NRKLNWSD.js} +6 -6
  145. package/dist/cli/{secrets-LD4FVAQI.mjs → secrets-DN3XEZNH.mjs} +6 -6
  146. package/dist/cli/{secrets-3KETOTDS.js → secrets-FUXYSEL5.js} +15 -15
  147. package/dist/cli/{sessions-LPLI4Z4O.mjs → sessions-PMUTPCTT.mjs} +6 -6
  148. package/dist/cli/sessions-VMBMBGVJ.js +23 -0
  149. package/dist/cli/{settings-NCGPJG3Z.mjs → settings-N6GNS2KA.mjs} +12 -12
  150. package/dist/cli/{settings-NFBTCOMB.js → settings-ZDTWCQ6B.js} +85 -85
  151. package/dist/cli/{setup-NH6MRYXZ.mjs → setup-LJ3KWPSA.mjs} +9 -9
  152. package/dist/cli/{setup-ATBSUSH4.js → setup-PN5TSSJE.js} +49 -49
  153. package/dist/cli/{skills-ITPBPIXD.mjs → skills-7J42K6VC.mjs} +7 -7
  154. package/dist/cli/skills-CXDENBLF.js +37 -0
  155. package/dist/cli/{tools-2XZPR65V.mjs → tools-M3S6D6DA.mjs} +17 -17
  156. package/dist/cli/tools-WY2GMOC7.js +57 -0
  157. package/dist/cli/{update-VFB22FWO.mjs → update-XTVFG74E.mjs} +9 -9
  158. package/dist/cli/update-ZB2IBGXG.js +37 -0
  159. package/dist/cli/{views-WJUZOQM2.js → views-B4X2FWTF.js} +21 -21
  160. package/dist/cli/{views-MRN3HWTG.mjs → views-UFYRDO4X.mjs} +6 -6
  161. package/dist/cli/{workflow-Q4JFBTVH.js → workflow-I2RM2J2J.js} +17 -17
  162. package/dist/cli/{workflow-A6P7YV5W.mjs → workflow-ZLMS3PDE.mjs} +7 -7
  163. package/dist/{client-QznpkWrk.d.ts → client-2QWMJInp.d.ts} +1 -1
  164. package/dist/{client-CmG8MT0x.d.mts → client-7H8TXmLa.d.mts} +1 -1
  165. package/dist/{client-core-CY0jNW0e.d.mts → client-core-BraEuxbg.d.mts} +67 -4
  166. package/dist/{client-core-CXDqfeiB.d.ts → client-core-DRglY5xa.d.ts} +67 -4
  167. package/dist/index.d.mts +3 -3
  168. package/dist/index.d.ts +3 -3
  169. package/dist/index.js +9 -9
  170. package/dist/index.mjs +6 -6
  171. package/dist/install-integrity.json +125 -120
  172. package/dist/plays/bundle-play-file.mjs +5 -0
  173. package/dist/plays/play-description.d.mts +1 -1
  174. package/dist/plays/play-description.d.ts +1 -1
  175. package/dist/plays/run-request.d.mts +1 -1
  176. package/dist/plays/run-request.d.ts +1 -1
  177. package/dist/release.d.mts +3 -3
  178. package/dist/release.d.ts +3 -3
  179. package/dist/release.js +2 -2
  180. package/dist/release.mjs +1 -1
  181. package/dist/server.d.mts +2 -2
  182. package/dist/server.d.ts +2 -2
  183. package/dist/server.js +5 -5
  184. package/dist/server.mjs +3 -3
  185. package/package.json +1 -1
  186. package/dist/cli/auth-VU6VIPVY.js +0 -44
  187. package/dist/cli/concurrent-runs-help-6WUNDV77.js +0 -22
  188. package/dist/cli/describe-CA2FL2OS.js +0 -50
  189. package/dist/cli/git-WJ4V2B4T.js +0 -26
  190. package/dist/cli/search-V765JH2H.js +0 -32
  191. package/dist/cli/sessions-XC65OMDS.js +0 -23
  192. package/dist/cli/skills-4NQBTGOL.js +0 -37
  193. package/dist/cli/tools-ZVOFATX2.js +0 -57
  194. package/dist/cli/update-QME3KPOP.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 _chunkPULU5YGXjs = require('./chunk-PULU5YGX.js');
4
+ var _chunkISSYN3DJjs = require('./chunk-ISSYN3DJ.js');
5
5
 
6
6
 
7
- var _chunkVXDKL434js = require('./chunk-VXDKL434.js');
8
- require('./chunk-H4BYWEV5.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-VH45GV3T.js');
15
+ require('./chunk-3ET6NRXP.js');
16
16
  require('./chunk-OG64RBAC.js');
17
17
  require('./chunk-COGTRVWW.js');
18
18
 
@@ -187,7 +187,7 @@ function describeOverview(overview) {
187
187
  ];
188
188
  }
189
189
  function print(payload, title, lines, options) {
190
- _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
190
+ _chunkISSYN3DJjs.printCommandEnvelope.call(void 0,
191
191
  { ...payload, render: { sections: [{ title, lines }] } },
192
192
  { json: options.json }
193
193
  );
@@ -281,7 +281,7 @@ async function readModelKey() {
281
281
  return Buffer.concat(chunks).toString("utf8").trim();
282
282
  }
283
283
  async function sendTestMessage(input2) {
284
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
284
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
285
285
  return http.post(
286
286
  `${AGENT_PATH}/test`,
287
287
  {
@@ -372,7 +372,7 @@ async function handleChat(channelId, options) {
372
372
  threadId = reply.threadId;
373
373
  const text = describeReply(channelId, reply, true).map((line2) => `agent> ${line2}
374
374
  `).join("");
375
- _chunkPULU5YGXjs.printCommandEnvelope.call(void 0, reply, { json: false, text });
375
+ _chunkISSYN3DJjs.printCommandEnvelope.call(void 0, reply, { json: false, text });
376
376
  }
377
377
  } finally {
378
378
  rl.close();
@@ -382,7 +382,7 @@ function registerWorkspaceCommands(agents, readKey) {
382
382
  agents.command("list").description(
383
383
  "Show whether agents are on, their model billing, every agent with its channels, and the skill library."
384
384
  ).option("--json", "Emit JSON output").action(async (options) => {
385
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
385
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
386
386
  const overview = await http.get(AGENT_PATH);
387
387
  print(overview, "deepline agents", describeOverview(overview), options);
388
388
  });
@@ -393,7 +393,7 @@ function registerWorkspaceCommands(agents, readKey) {
393
393
  printDryRun("POST", `${AGENT_PATH}/enable`, {}, options);
394
394
  return;
395
395
  }
396
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
396
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
397
397
  const result = await http.post(
398
398
  `${AGENT_PATH}/enable`,
399
399
  {}
@@ -415,7 +415,7 @@ function registerWorkspaceCommands(agents, readKey) {
415
415
  printDryRun("POST", `${AGENT_PATH}/disable`, {}, options);
416
416
  return;
417
417
  }
418
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
418
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
419
419
  const result = await http.post(
420
420
  `${AGENT_PATH}/disable`,
421
421
  {}
@@ -447,7 +447,7 @@ function registerWorkspaceCommands(agents, readKey) {
447
447
  }
448
448
  const apiKey = await readKey();
449
449
  if (!apiKey) throw new AgentUsageError("No key was given.");
450
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
450
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
451
451
  const overview = await http.put(`${AGENT_PATH}/billing`, {
452
452
  mode: "own_key",
453
453
  provider: _nullishCoalesce(options.provider, () => ( keyProvider(apiKey))),
@@ -459,7 +459,7 @@ function registerWorkspaceCommands(agents, readKey) {
459
459
  agents.command("models").description(
460
460
  "List the models an agent or one of its channels can run on, and which your workspace\u2019s key can run."
461
461
  ).option("--json", "Emit JSON output").action(async (options) => {
462
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
462
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
463
463
  const result = await http.get(
464
464
  `${AGENT_PATH}/models`
465
465
  );
@@ -483,7 +483,7 @@ function registerWorkspaceCommands(agents, readKey) {
483
483
  agents.command("outcomes").description(
484
484
  "List the outcomes Bot by Deepline owns by default (those with no home channel), with what woke it last on each."
485
485
  ).option("--json", "Emit JSON output").action(async (options) => {
486
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
486
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
487
487
  const result = await http.get(
488
488
  `${AGENT_PATH}/outcomes`
489
489
  );
@@ -503,7 +503,7 @@ function registerWorkspaceCommands(agents, readKey) {
503
503
  agents.command("wakes").description(
504
504
  "List outcome home channels with how their agent was last woken and its hourly turn budget."
505
505
  ).option("--json", "Emit JSON output").action(async (options) => {
506
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
506
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
507
507
  const result = await http.get(
508
508
  `${AGENT_PATH}/wakes`
509
509
  );
@@ -525,7 +525,7 @@ function registerWorkspaceCommands(agents, readKey) {
525
525
  async (outcome, options) => {
526
526
  const name = requireArgument(outcome, "an outcome name");
527
527
  const path = `${AGENT_PATH}/memory?outcome=${encodeURIComponent(name)}`;
528
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
528
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
529
529
  if (options.clear) {
530
530
  const result2 = await http.delete(path);
531
531
  print(
@@ -563,7 +563,7 @@ function describeOutcomeMemory(memory) {
563
563
  }
564
564
  function registerAgentCommands(agents) {
565
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) => {
566
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
566
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
567
567
  const result = await http.get(
568
568
  `${AGENT_PATH}/agents/${encodeURIComponent(requireArgument(name, "an agent name"))}`
569
569
  );
@@ -593,7 +593,7 @@ function registerAgentCommands(agents) {
593
593
  printDryRun("POST", `${AGENT_PATH}/agents`, body, options);
594
594
  return;
595
595
  }
596
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
596
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
597
597
  const result = await http.post(
598
598
  `${AGENT_PATH}/agents`,
599
599
  body
@@ -637,7 +637,7 @@ function registerAgentCommands(agents) {
637
637
  printDryRun("PATCH", path, body, options);
638
638
  return;
639
639
  }
640
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
640
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
641
641
  const result = await http.patch(path, body);
642
642
  print(result, "agent updated", describeAgent(result.agent), options);
643
643
  }
@@ -650,7 +650,7 @@ function registerAgentCommands(agents) {
650
650
  printDryRun("DELETE", path, null, options);
651
651
  return;
652
652
  }
653
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
653
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
654
654
  const result = await http.delete(path);
655
655
  print(
656
656
  result,
@@ -693,7 +693,7 @@ function registerChannelCommands(agents) {
693
693
  printDryRun("POST", `${AGENT_PATH}/channels`, body, options);
694
694
  return;
695
695
  }
696
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
696
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
697
697
  const result = await http.post(`${AGENT_PATH}/channels`, body);
698
698
  print(
699
699
  result,
@@ -753,7 +753,7 @@ function registerChannelCommands(agents) {
753
753
  printDryRun("PATCH", path, body, options);
754
754
  return;
755
755
  }
756
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
756
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
757
757
  const result = await http.patch(path, body);
758
758
  print(
759
759
  result,
@@ -782,7 +782,7 @@ function registerChannelCommands(agents) {
782
782
  printDryRun("DELETE", path, null, options);
783
783
  return;
784
784
  }
785
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
785
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
786
786
  const result = await http.delete(path);
787
787
  print(
788
788
  result,
@@ -818,7 +818,7 @@ function registerSlackCommands(agents) {
818
818
  slack.command("install").description(
819
819
  "Print a link that adds the agent to a Slack workspace (owners and admins). Open it, pick the Slack workspace and approve."
820
820
  ).option("--json", "Emit JSON output").action(async (options) => {
821
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
821
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
822
822
  const result = await http.post(
823
823
  `${AGENT_PATH}/slack/install`,
824
824
  {}
@@ -837,7 +837,7 @@ function registerSlackCommands(agents) {
837
837
  slack.command("link").description(
838
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."
839
839
  ).argument("<code>", "The code from the link, or the whole link").option("--json", "Emit JSON output").action(async (code, options) => {
840
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
840
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
841
841
  const result = await http.post(`${AGENT_PATH}/slack/link`, { code: slackLinkCode(code) });
842
842
  print(
843
843
  result,
@@ -851,7 +851,7 @@ function registerSlackCommands(agents) {
851
851
  slack.command("unlink").description(
852
852
  "Forget which Slack user you are in this workspace. Your clicks in Slack decide nothing until you link again."
853
853
  ).option("--json", "Emit JSON output").action(async (options) => {
854
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
854
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
855
855
  const result = await http.delete(
856
856
  `${AGENT_PATH}/slack/link`
857
857
  );
@@ -867,7 +867,7 @@ function registerSlackCommands(agents) {
867
867
  slack.command("status").description(
868
868
  "List the Slack workspaces this workspace installed the agent in."
869
869
  ).option("--json", "Emit JSON output").action(async (options) => {
870
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
870
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
871
871
  const result = await http.get(
872
872
  `${AGENT_PATH}/slack/installations`
873
873
  );
@@ -886,7 +886,7 @@ function registerSkillCommands(agents) {
886
886
  "The workspace\u2019s skill library: markdown an agent loads when its description matches the task."
887
887
  );
888
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) => {
889
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
889
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
890
890
  const result = await http.get(
891
891
  `${AGENT_PATH}/skills/${encodeURIComponent(requireArgument(name, "a skill name"))}`
892
892
  );
@@ -924,7 +924,7 @@ function registerSkillCommands(agents) {
924
924
  printDryRun("PUT", path, body, options);
925
925
  return;
926
926
  }
927
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
927
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
928
928
  const result = await http.put(path, body);
929
929
  print(
930
930
  result,
@@ -947,7 +947,7 @@ function registerSkillCommands(agents) {
947
947
  printDryRun("DELETE", path, null, options);
948
948
  return;
949
949
  }
950
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
950
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
951
951
  const result = await http.delete(path);
952
952
  print(
953
953
  result,
@@ -1001,7 +1001,7 @@ function registerFeedbackCommand(agents) {
1001
1001
  params.set("cursor", requireArgument(options.cursor, "--cursor"));
1002
1002
  }
1003
1003
  const query = params.toString();
1004
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
1004
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
1005
1005
  const page = await http.get(
1006
1006
  `${AGENT_PATH}/feedback${query ? `?${query}` : ""}`
1007
1007
  ).catch((error) => {
@@ -1064,7 +1064,7 @@ function registerRepliesCommand(agents) {
1064
1064
  params.set("cursor", requireArgument(options.cursor, "--cursor"));
1065
1065
  }
1066
1066
  const query = params.toString();
1067
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
1067
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
1068
1068
  const page = await http.get(`${AGENT_PATH}/replies${query ? `?${query}` : ""}`).catch((error) => {
1069
1069
  if (error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === REPLIES_INVALID_CURSOR) {
1070
1070
  throw new AgentUsageError(`--cursor: ${error.message}`);
@@ -1090,13 +1090,13 @@ function registerActivityCommand(agents) {
1090
1090
  agents.command("activity").description(
1091
1091
  "Sum each agent's replies over the last 7 days: how many, how they ended, median time, tokens and the last reply."
1092
1092
  ).option("--json", "Emit JSON output").action(async (options) => {
1093
- const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
1093
+ const { http } = _chunkISSYN3DJjs.getAuthedHttpClient.call(void 0, );
1094
1094
  const activity = await http.get(`${AGENT_PATH}/activity`);
1095
1095
  print(activity, "agent activity", describeActivity(activity), options);
1096
1096
  });
1097
1097
  }
1098
1098
  function registerAgentsCommands(program, readKey = readModelKey) {
1099
- const agents = program.command("agents", { hidden: !_chunkVXDKL434js.cliFeatureEnabled.call(void 0, AGENT_FEATURE) }).description(
1099
+ const agents = program.command("agents", { hidden: !_chunkS33BN7GZjs.cliFeatureEnabled.call(void 0, AGENT_FEATURE) }).description(
1100
1100
  "Deepline agents in Slack: create agents with instructions and skills, bind channels to them, and talk to them."
1101
1101
  );
1102
1102
  registerWorkspaceCommands(agents, readKey);
@@ -14,15 +14,15 @@ import {
14
14
  reportSetupCompleted,
15
15
  resolvePendingAuthClaimForResume,
16
16
  statusBannerLine
17
- } from "./chunk-LVJAHM2I.mjs";
18
- import "./chunk-7AFTLM74.mjs";
19
- import "./chunk-U6BTY4WS.mjs";
20
- import "./chunk-AXOQ2FMS.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-EHV52KUV.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;