deepline 0.3.521 → 0.3.523

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 (170) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +118 -0
  2. package/dist/bundling-sources/sdk/src/index.ts +3 -0
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +47 -18
  5. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +1 -0
  6. package/dist/bundling-sources/shared_libs/play-runtime/db-session-renewal.ts +209 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +24 -7
  8. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +5 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +1 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +38 -5
  11. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +92 -10
  12. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +96 -25
  13. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +29 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +139 -17
  15. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +26 -3
  16. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +145 -5
  17. package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +190 -10
  18. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +85 -5
  19. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +21 -11
  20. package/dist/cli/{artifacts-TYPU37IU.mjs → artifacts-RBHR2DG4.mjs} +6 -6
  21. package/dist/cli/{artifacts-JGH464N2.js → artifacts-RZTS2JHZ.js} +18 -18
  22. package/dist/cli/auth-DPWYFQR5.js +43 -0
  23. package/dist/cli/{auth-XPQT6NUB.mjs → auth-ENQUQS56.mjs} +5 -5
  24. package/dist/cli/{billing-47AMHOMP.mjs → billing-6A27ULCX.mjs} +7 -7
  25. package/dist/cli/{billing-6D4KXBFJ.js → billing-6HONTJOY.js} +82 -82
  26. package/dist/cli/{chunk-DY6634MN.js → chunk-2BRDHM4S.js} +9 -9
  27. package/dist/cli/{chunk-LGU2NIOT.js → chunk-326WVSWS.js} +108 -96
  28. package/dist/cli/{chunk-UAZKOH3J.js → chunk-36LQQL5C.js} +5 -5
  29. package/dist/cli/{chunk-VYY5V4M5.js → chunk-4NWY7JBB.js} +11 -11
  30. package/dist/cli/{chunk-2DQPB5HT.mjs → chunk-4V63IJCL.mjs} +5 -5
  31. package/dist/cli/{chunk-4MONKWYE.mjs → chunk-5WFQXAD4.mjs} +5 -5
  32. package/dist/cli/{chunk-A6USUS4L.mjs → chunk-6DBRBWHC.mjs} +2 -2
  33. package/dist/cli/{chunk-4I7I5CGB.mjs → chunk-6OZ2WSHD.mjs} +1 -1
  34. package/dist/cli/{chunk-MD43YAL6.js → chunk-7GNKAACY.js} +6 -6
  35. package/dist/cli/{chunk-7IYDCHTG.mjs → chunk-7M5FRSFP.mjs} +2 -2
  36. package/dist/cli/{chunk-HHBJJYKL.mjs → chunk-DNXP3D5H.mjs} +5 -5
  37. package/dist/cli/{chunk-4DB6JV7X.mjs → chunk-F3WRLFFM.mjs} +2 -2
  38. package/dist/cli/{chunk-AMVKLEPH.js → chunk-FBMOBNJY.js} +2 -2
  39. package/dist/cli/{chunk-EZNZDOAG.mjs → chunk-H7275EZU.mjs} +5 -5
  40. package/dist/cli/{chunk-CBBCUYIN.mjs → chunk-HSVGP4CI.mjs} +2 -2
  41. package/dist/cli/{chunk-FTZX4QZN.js → chunk-HUC5SGJQ.js} +2 -2
  42. package/dist/cli/{chunk-4MN65FRF.js → chunk-HUIFUE4L.js} +53 -53
  43. package/dist/cli/{chunk-5T7QKHQL.mjs → chunk-I62LJ7NU.mjs} +1 -1
  44. package/dist/cli/{chunk-EW3EAEWZ.js → chunk-IEVXYHGJ.js} +5 -5
  45. package/dist/cli/{chunk-E4ZS2B2J.mjs → chunk-JCTTXLAZ.mjs} +1 -1
  46. package/dist/cli/{chunk-LNBMEFOI.mjs → chunk-JGZQBDYG.mjs} +4 -4
  47. package/dist/cli/{chunk-GNYSODBR.js → chunk-JMMNCJ7Z.js} +1 -1
  48. package/dist/cli/{chunk-7AUXX6M5.mjs → chunk-JVEFMOY2.mjs} +1 -1
  49. package/dist/cli/{chunk-3Q7HEEH2.js → chunk-K326BEVR.js} +10 -10
  50. package/dist/cli/{chunk-TBIWR7M2.mjs → chunk-KILRUAXF.mjs} +1 -1
  51. package/dist/cli/{chunk-6UHYXNCP.mjs → chunk-LZL6V5M5.mjs} +2 -2
  52. package/dist/cli/{chunk-EILHJRPW.js → chunk-MCXPJYBN.js} +3 -3
  53. package/dist/cli/{chunk-VE6FHVXZ.mjs → chunk-MHTRYBXY.mjs} +78 -1
  54. package/dist/cli/{chunk-VSH3AE5E.js → chunk-MT3WG3KR.js} +16 -16
  55. package/dist/cli/{chunk-PUKWFJXW.js → chunk-MZROKQV3.js} +44 -44
  56. package/dist/cli/{chunk-QGTWGHYD.js → chunk-N5MLEXZ7.js} +50 -8
  57. package/dist/cli/{chunk-ZO2XJVFH.mjs → chunk-NWTMQGPP.mjs} +6 -6
  58. package/dist/cli/{chunk-6V2RI3AL.mjs → chunk-PCORO245.mjs} +2 -2
  59. package/dist/cli/{chunk-MRU4N33M.js → chunk-PESMXAUG.js} +6 -6
  60. package/dist/cli/{chunk-4GGXAYKI.mjs → chunk-QMBL5ZIQ.mjs} +3 -3
  61. package/dist/cli/{chunk-A2B5AAU3.mjs → chunk-QOO5W5XS.mjs} +22 -10
  62. package/dist/cli/{chunk-HRWVEIAX.mjs → chunk-QSAC3IVI.mjs} +1 -1
  63. package/dist/cli/{chunk-HYR34KFA.js → chunk-QYXIODWH.js} +78 -1
  64. package/dist/cli/{chunk-Y7IR4LBU.mjs → chunk-RKREB7MU.mjs} +3 -3
  65. package/dist/cli/{chunk-JFQJNYTB.js → chunk-RQN4PHRE.js} +16 -16
  66. package/dist/cli/{chunk-6DCBTJZP.js → chunk-S4YKRH3W.js} +3 -3
  67. package/dist/cli/{chunk-ULW2KBKL.js → chunk-SBGKKOCC.js} +26 -26
  68. package/dist/cli/{chunk-DQURY3WH.mjs → chunk-SXTVJIGB.mjs} +1 -1
  69. package/dist/cli/{chunk-7LRALARF.mjs → chunk-U6DLLV3S.mjs} +1 -1
  70. package/dist/cli/{chunk-NNDAVVBG.mjs → chunk-UH3EAFFN.mjs} +2 -2
  71. package/dist/cli/{chunk-HSFLMTED.js → chunk-UQN4VTZL.js} +4 -4
  72. package/dist/cli/{chunk-HD3KYCDC.js → chunk-V46J3UTM.js} +7 -7
  73. package/dist/cli/{chunk-WL6WPW6X.js → chunk-WGVJA4I5.js} +14 -14
  74. package/dist/cli/{chunk-FQJFONFT.mjs → chunk-WVQOXYTQ.mjs} +44 -2
  75. package/dist/cli/{chunk-Y23TOHNV.js → chunk-XVXEARHC.js} +41 -41
  76. package/dist/cli/{chunk-6N72GHAV.js → chunk-XYL26236.js} +2 -2
  77. package/dist/cli/{chunk-YROP3H6T.js → chunk-ZWN4RXC2.js} +22 -22
  78. package/dist/cli/command-docs.js +2 -2
  79. package/dist/cli/command-docs.mjs +1 -1
  80. package/dist/cli/{csv-5TM2OSYP.js → csv-UBACJK75.js} +13 -13
  81. package/dist/cli/{csv-PM3WDXDF.mjs → csv-YFJ2JLUP.mjs} +4 -4
  82. package/dist/cli/{db-3LJ32FZM.js → db-2ZPA2LZ7.js} +27 -27
  83. package/dist/cli/{db-5P72NPRL.mjs → db-NKGYTAQO.mjs} +6 -6
  84. package/dist/cli/{describe-ZLCMBGHG.mjs → describe-GX7DRKWZ.mjs} +18 -18
  85. package/dist/cli/describe-WQZF7MEG.js +50 -0
  86. package/dist/cli/describe-core.d.mts +3 -3
  87. package/dist/cli/describe-core.d.ts +3 -3
  88. package/dist/cli/{executions-JMFL6AV7.mjs → executions-HTHQ7KKD.mjs} +6 -6
  89. package/dist/cli/{executions-4AJ5TQVY.js → executions-NXMRGPIL.js} +8 -8
  90. package/dist/cli/{feedback-I2BLXMGH.js → feedback-TGVQACRO.js} +10 -10
  91. package/dist/cli/{feedback-DKMG2QB7.mjs → feedback-USP4T34P.mjs} +5 -5
  92. package/dist/cli/{git-ARG223MY.mjs → git-KUONEHCD.mjs} +5 -5
  93. package/dist/cli/git-X3SCQREB.js +25 -0
  94. package/dist/cli/index.js +145 -145
  95. package/dist/cli/index.mjs +44 -44
  96. package/dist/cli/{legacy-noops-N7SVA7PL.js → legacy-noops-2JY3CQ24.js} +9 -9
  97. package/dist/cli/{legacy-noops-24LOAOZN.mjs → legacy-noops-B2GMHU42.mjs} +6 -6
  98. package/dist/cli/{monitors-RYQFWM2T.mjs → monitors-2OVBZJ6Z.mjs} +7 -7
  99. package/dist/cli/{monitors-XNCYLOJM.js → monitors-XI6I52AX.js} +100 -100
  100. package/dist/cli/{org-I33TKZXF.js → org-5TUQ2H6Y.js} +235 -72
  101. package/dist/cli/{org-ORIH56E5.mjs → org-BNJW764Y.mjs} +169 -6
  102. package/dist/cli/{pages-ME43HSBL.mjs → pages-QC3TQIPW.mjs} +6 -6
  103. package/dist/cli/{pages-2UXXGIMF.js → pages-UXCLX53Y.js} +18 -18
  104. package/dist/cli/{play-XEKNY46M.mjs → play-45PPG5SZ.mjs} +18 -18
  105. package/dist/cli/{play-F4QOFU37.js → play-KRWMZ7FG.js} +317 -317
  106. package/dist/cli/{providers-XKU44G74.mjs → providers-JDT35MRL.mjs} +6 -6
  107. package/dist/cli/{providers-E7DPCBNX.js → providers-RBUJ72Y3.js} +9 -9
  108. package/dist/cli/{quickstart-J7NVEXV5.mjs → quickstart-GD2SWGAC.mjs} +4 -4
  109. package/dist/cli/{quickstart-ICLF2F6A.js → quickstart-JZ4Q3HFT.js} +6 -6
  110. package/dist/cli/{run-HJMHUQBN.js → run-JEAHA367.js} +41 -41
  111. package/dist/cli/{run-MQ5ZONGL.mjs → run-KIZ3HBI2.mjs} +23 -23
  112. package/dist/cli/{search-GGRC77CV.mjs → search-5UFNXHFK.mjs} +8 -8
  113. package/dist/cli/search-6JULJMD7.js +33 -0
  114. package/dist/cli/{search-output-NY4GDBRU.mjs → search-output-HAXPKQO6.mjs} +4 -4
  115. package/dist/cli/{search-output-MXZTZI2P.js → search-output-W3RDSVLE.js} +6 -6
  116. package/dist/cli/{secrets-FA37G4Q2.mjs → secrets-JAWT66B2.mjs} +6 -6
  117. package/dist/cli/{secrets-PFESG72B.js → secrets-PC7C2Q32.js} +15 -15
  118. package/dist/cli/{sessions-BLLXPETU.mjs → sessions-325V7G35.mjs} +6 -6
  119. package/dist/cli/sessions-WFUCOJHZ.js +18 -0
  120. package/dist/cli/{settings-U26S7MPH.mjs → settings-FKHTA65P.mjs} +13 -13
  121. package/dist/cli/{settings-32VPG4Z2.js → settings-RGU6Y2QR.js} +86 -86
  122. package/dist/cli/{setup-4AXBCX7C.mjs → setup-43GOYTFC.mjs} +10 -10
  123. package/dist/cli/{setup-R6NSENH7.js → setup-ZMZ7HU2I.js} +50 -50
  124. package/dist/cli/skills-3XTQ6FFM.js +37 -0
  125. package/dist/cli/{skills-JUH7AVUL.mjs → skills-Q2VAHSXM.mjs} +8 -8
  126. package/dist/cli/{tools-FOYLU3FH.mjs → tools-BUH7ZWDS.mjs} +17 -17
  127. package/dist/cli/tools-UK2R4YXQ.js +57 -0
  128. package/dist/cli/{update-FUVX22VM.mjs → update-JFALWOHD.mjs} +10 -10
  129. package/dist/cli/update-LNKPHS54.js +35 -0
  130. package/dist/cli/{workflow-QLT22BLT.mjs → workflow-ISJKLY6X.mjs} +7 -7
  131. package/dist/cli/{workflow-JACZW4GJ.js → workflow-YELST32A.js} +17 -17
  132. package/dist/{client-DA71-2_u.d.mts → client-C2N7MofG.d.mts} +1 -1
  133. package/dist/{client-B-2Am2y6.d.ts → client-C7lTRJjw.d.ts} +1 -1
  134. package/dist/{client-core-BXbds1cb.d.mts → client-core-BTkDSKGn.d.mts} +79 -2
  135. package/dist/{client-core-C0IzDKMJ.d.ts → client-core-hmhBi7Ib.d.ts} +79 -2
  136. package/dist/{compiler-manifest-B4mIIbw7.d.ts → compiler-manifest-DsxsQP-T.d.mts} +14 -7
  137. package/dist/{compiler-manifest-B4mIIbw7.d.mts → compiler-manifest-DsxsQP-T.d.ts} +14 -7
  138. package/dist/{errors-Gj9i5Rkd.d.ts → errors-Bk5h1D-C.d.ts} +1 -1
  139. package/dist/{errors-C2F4qzAq.d.mts → errors-qdJUVQ3g.d.mts} +1 -1
  140. package/dist/{index-5JZBufdF.d.mts → index-PaupwX1B.d.mts} +1 -1
  141. package/dist/{index-BXtSj8bv.d.ts → index-bL66eHYz.d.ts} +1 -1
  142. package/dist/index.d.mts +7 -7
  143. package/dist/index.d.ts +7 -7
  144. package/dist/index.js +9 -9
  145. package/dist/index.mjs +6 -6
  146. package/dist/install-integrity.json +117 -116
  147. package/dist/plays/bundle-play-file.d.mts +3 -3
  148. package/dist/plays/bundle-play-file.d.ts +3 -3
  149. package/dist/plays/bundle-play-file.mjs +7 -5
  150. package/dist/plays/play-description.d.mts +2 -2
  151. package/dist/plays/play-description.d.ts +2 -2
  152. package/dist/plays/run-request.d.mts +2 -2
  153. package/dist/plays/run-request.d.ts +2 -2
  154. package/dist/release.d.mts +1 -1
  155. package/dist/release.d.ts +1 -1
  156. package/dist/release.js +2 -2
  157. package/dist/release.mjs +1 -1
  158. package/dist/server.d.mts +4 -4
  159. package/dist/server.d.ts +4 -4
  160. package/dist/server.js +5 -5
  161. package/dist/server.mjs +3 -3
  162. package/package.json +1 -1
  163. package/dist/cli/auth-JWR3VSNT.js +0 -43
  164. package/dist/cli/describe-GRS3IRSX.js +0 -50
  165. package/dist/cli/git-2LNT43A2.js +0 -25
  166. package/dist/cli/search-V6IBJ4TX.js +0 -33
  167. package/dist/cli/sessions-DNFTQOQH.js +0 -18
  168. package/dist/cli/skills-G4ZE3OS5.js +0 -37
  169. package/dist/cli/tools-27LHZFJD.js +0 -57
  170. package/dist/cli/update-KNZ7N242.js +0 -35
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkHD3KYCDCjs = require('./chunk-HD3KYCDC.js');
5
+ var _chunkV46J3UTMjs = require('./chunk-V46J3UTM.js');
6
6
 
7
7
 
8
8
 
@@ -22,14 +22,14 @@ var _chunkHD3KYCDCjs = require('./chunk-HD3KYCDC.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkEILHJRPWjs = require('./chunk-EILHJRPW.js');
25
+ var _chunkMCXPJYBNjs = require('./chunk-MCXPJYBN.js');
26
26
 
27
27
 
28
28
 
29
29
 
30
30
 
31
31
 
32
- var _chunkHSFLMTEDjs = require('./chunk-HSFLMTED.js');
32
+ var _chunkUQN4VTZLjs = require('./chunk-UQN4VTZL.js');
33
33
 
34
34
 
35
35
  var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
@@ -60,7 +60,7 @@ function statusBannerLine(value) {
60
60
  return `Service notice: ${banner.message}`;
61
61
  }
62
62
  function envFilePath(baseUrl) {
63
- return _chunkEILHJRPWjs.hostEnvFilePath.call(void 0, baseUrl);
63
+ return _chunkMCXPJYBNjs.hostEnvFilePath.call(void 0, baseUrl);
64
64
  }
65
65
  function normalizeAuthScope(value) {
66
66
  if (!value || value === "global") return "global";
@@ -73,7 +73,7 @@ function parseAuthScope(args) {
73
73
  }
74
74
  function pendingClaimPath(baseUrl, scope) {
75
75
  if (scope === "folder") {
76
- const target = _chunkEILHJRPWjs.resolveProjectPinTarget.call(void 0, );
76
+ const target = _chunkMCXPJYBNjs.resolveProjectPinTarget.call(void 0, );
77
77
  if (!target.ok) {
78
78
  throw new Error(
79
79
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -83,10 +83,10 @@ function pendingClaimPath(baseUrl, scope) {
83
83
  }
84
84
  return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
85
85
  }
86
- return `${_chunkEILHJRPWjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
86
+ return `${_chunkMCXPJYBNjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
87
87
  }
88
88
  function legacyPendingClaimTokenPath(baseUrl) {
89
- return `${_chunkEILHJRPWjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
89
+ return `${_chunkMCXPJYBNjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
90
90
  }
91
91
  function savePendingClaim(baseUrl, claim) {
92
92
  const filePath = pendingClaimPath(baseUrl, claim.scope);
@@ -190,21 +190,21 @@ function parseRegisterWaitMode(args) {
190
190
  function shouldWaitForRegisterClaim(mode) {
191
191
  if (mode === "yes") return true;
192
192
  if (mode === "no") return false;
193
- return _chunkHSFLMTEDjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
193
+ return _chunkUQN4VTZLjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
194
194
  }
195
195
  function saveEnvValues(values, baseUrl, scope) {
196
196
  const filtered = {
197
- ...values[_chunkEILHJRPWjs.HOST_URL_ENV] ? { [_chunkEILHJRPWjs.HOST_URL_ENV]: values[_chunkEILHJRPWjs.HOST_URL_ENV] } : {},
198
- ...values[_chunkEILHJRPWjs.API_KEY_ENV] ? { [_chunkEILHJRPWjs.API_KEY_ENV]: values[_chunkEILHJRPWjs.API_KEY_ENV] } : {},
199
- ...values[_chunkEILHJRPWjs.ACTIVE_ORG_ID_ENV] ? { [_chunkEILHJRPWjs.ACTIVE_ORG_ID_ENV]: values[_chunkEILHJRPWjs.ACTIVE_ORG_ID_ENV] } : {},
200
- ...Object.prototype.hasOwnProperty.call(values, _chunkEILHJRPWjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkEILHJRPWjs.ACTIVE_ORG_NAME_ENV]: values[_chunkEILHJRPWjs.ACTIVE_ORG_NAME_ENV] } : {},
197
+ ...values[_chunkMCXPJYBNjs.HOST_URL_ENV] ? { [_chunkMCXPJYBNjs.HOST_URL_ENV]: values[_chunkMCXPJYBNjs.HOST_URL_ENV] } : {},
198
+ ...values[_chunkMCXPJYBNjs.API_KEY_ENV] ? { [_chunkMCXPJYBNjs.API_KEY_ENV]: values[_chunkMCXPJYBNjs.API_KEY_ENV] } : {},
199
+ ...values[_chunkMCXPJYBNjs.ACTIVE_ORG_ID_ENV] ? { [_chunkMCXPJYBNjs.ACTIVE_ORG_ID_ENV]: values[_chunkMCXPJYBNjs.ACTIVE_ORG_ID_ENV] } : {},
200
+ ...Object.prototype.hasOwnProperty.call(values, _chunkMCXPJYBNjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkMCXPJYBNjs.ACTIVE_ORG_NAME_ENV]: values[_chunkMCXPJYBNjs.ACTIVE_ORG_NAME_ENV] } : {},
201
201
  // An explicit empty list must reach the store: it clears a stale line.
202
- ...Object.prototype.hasOwnProperty.call(values, _chunkEILHJRPWjs.FEATURES_ENV) ? { [_chunkEILHJRPWjs.FEATURES_ENV]: values[_chunkEILHJRPWjs.FEATURES_ENV] } : {}
202
+ ...Object.prototype.hasOwnProperty.call(values, _chunkMCXPJYBNjs.FEATURES_ENV) ? { [_chunkMCXPJYBNjs.FEATURES_ENV]: values[_chunkMCXPJYBNjs.FEATURES_ENV] } : {}
203
203
  };
204
204
  if (scope === "folder") {
205
- _chunkEILHJRPWjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
205
+ _chunkMCXPJYBNjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
206
206
  } else {
207
- _chunkEILHJRPWjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
207
+ _chunkMCXPJYBNjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
208
208
  }
209
209
  }
210
210
  function activeOrgEnvValues(data) {
@@ -212,21 +212,21 @@ function activeOrgEnvValues(data) {
212
212
  if (!orgId) return {};
213
213
  const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
214
214
  return {
215
- [_chunkEILHJRPWjs.ACTIVE_ORG_ID_ENV]: orgId,
216
- [_chunkEILHJRPWjs.ACTIVE_ORG_NAME_ENV]: orgName,
217
- ..._chunkEILHJRPWjs.featureEnvValues.call(void 0, data)
215
+ [_chunkMCXPJYBNjs.ACTIVE_ORG_ID_ENV]: orgId,
216
+ [_chunkMCXPJYBNjs.ACTIVE_ORG_NAME_ENV]: orgName,
217
+ ..._chunkMCXPJYBNjs.featureEnvValues.call(void 0, data)
218
218
  };
219
219
  }
220
220
  async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
221
221
  const headers = {
222
222
  "Content-Type": "application/json",
223
- "User-Agent": `deepline-ts-sdk/${_chunkHSFLMTEDjs.SDK_VERSION}`,
223
+ "User-Agent": `deepline-ts-sdk/${_chunkUQN4VTZLjs.SDK_VERSION}`,
224
224
  "X-Deepline-Client-Family": "sdk",
225
225
  "X-Deepline-CLI-Family": "sdk",
226
- "X-Deepline-Agent-Runtime": _chunkHSFLMTEDjs.detectAgentRuntime.call(void 0, ),
227
- "X-Deepline-CLI-Version": _chunkHSFLMTEDjs.SDK_VERSION,
228
- "X-Deepline-SDK-Version": _chunkHSFLMTEDjs.SDK_VERSION,
229
- "X-Deepline-API-Contract": _chunkHSFLMTEDjs.SDK_API_CONTRACT
226
+ "X-Deepline-Agent-Runtime": _chunkUQN4VTZLjs.detectAgentRuntime.call(void 0, ),
227
+ "X-Deepline-CLI-Version": _chunkUQN4VTZLjs.SDK_VERSION,
228
+ "X-Deepline-SDK-Version": _chunkUQN4VTZLjs.SDK_VERSION,
229
+ "X-Deepline-API-Contract": _chunkUQN4VTZLjs.SDK_API_CONTRACT
230
230
  };
231
231
  if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
232
232
  const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
@@ -265,10 +265,10 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
265
265
  if (failure.name === "AbortError" || failure.name === "TimeoutError") {
266
266
  throw failure;
267
267
  }
268
- const causeCode = _chunkHSFLMTEDjs.networkCauseCode.call(void 0, failure);
268
+ const causeCode = _chunkUQN4VTZLjs.networkCauseCode.call(void 0, failure);
269
269
  throw Object.assign(
270
270
  new (0, _chunkSQWET4SLjs.DeeplineError)(
271
- _chunkHSFLMTEDjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
271
+ _chunkUQN4VTZLjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
272
272
  void 0,
273
273
  "NETWORK_ERROR",
274
274
  causeCode ? { causeCode } : void 0
@@ -285,7 +285,7 @@ async function readStatusBanner(baseUrl) {
285
285
  return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
286
286
  }
287
287
  async function reportSetupCompleted(input) {
288
- const apiKey = input.authScope === "folder" ? _chunkEILHJRPWjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkEILHJRPWjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
288
+ const apiKey = input.authScope === "folder" ? _chunkMCXPJYBNjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkMCXPJYBNjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
289
289
  if (!apiKey) return;
290
290
  try {
291
291
  await httpJson(
@@ -414,7 +414,7 @@ function endClaimPollOnRefusal(status, data, baseUrl, authScope) {
414
414
  return EXIT_SERVER;
415
415
  }
416
416
  async function handleRegister(args, options) {
417
- const baseUrl = _chunkEILHJRPWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
417
+ const baseUrl = _chunkMCXPJYBNjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
418
418
  let orgName = "";
419
419
  let orgId = "";
420
420
  let agentName = "";
@@ -473,19 +473,19 @@ async function handleRegister(args, options) {
473
473
  savePendingClaim(baseUrl, pendingClaim);
474
474
  saveEnvValues(
475
475
  {
476
- [_chunkEILHJRPWjs.HOST_URL_ENV]: baseUrl
476
+ [_chunkMCXPJYBNjs.HOST_URL_ENV]: baseUrl
477
477
  },
478
478
  baseUrl,
479
479
  authScope
480
480
  );
481
481
  }
482
482
  if (claimUrl) {
483
- const shouldOpen = waitMode !== "no" && _chunkHSFLMTEDjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
483
+ const shouldOpen = waitMode !== "no" && _chunkUQN4VTZLjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
484
484
  console.log(
485
485
  shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
486
486
  );
487
487
  console.log(` ${claimUrl}`);
488
- if (shouldOpen) _chunkHD3KYCDCjs.openInBrowser.call(void 0, claimUrl);
488
+ if (shouldOpen) _chunkV46J3UTMjs.openInBrowser.call(void 0, claimUrl);
489
489
  if (claimToken && pendingClaim.approvalLinkReporting && !_optionalChain([options, 'optionalAccess', _16 => _16.deferApprovalLinkReport])) {
490
490
  await reportApprovalLinkShown(
491
491
  baseUrl,
@@ -534,8 +534,8 @@ async function handleRegister(args, options) {
534
534
  if (apiKey) {
535
535
  saveEnvValues(
536
536
  {
537
- [_chunkEILHJRPWjs.HOST_URL_ENV]: baseUrl,
538
- [_chunkEILHJRPWjs.API_KEY_ENV]: apiKey,
537
+ [_chunkMCXPJYBNjs.HOST_URL_ENV]: baseUrl,
538
+ [_chunkMCXPJYBNjs.API_KEY_ENV]: apiKey,
539
539
  ...activeOrgEnvValues(statusData)
540
540
  },
541
541
  baseUrl,
@@ -557,7 +557,7 @@ async function handleRegister(args, options) {
557
557
  }
558
558
  }
559
559
  async function handleWait(args) {
560
- const baseUrl = _chunkEILHJRPWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
560
+ const baseUrl = _chunkMCXPJYBNjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
561
561
  let timeoutSeconds = 300;
562
562
  let requestedScope;
563
563
  if (args.includes("--auth-scope")) {
@@ -581,7 +581,7 @@ async function handleWait(args) {
581
581
  const authScope = resumed.scope;
582
582
  const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _17 => _17.claimToken]), () => ( ""));
583
583
  if (!pendingClaim) {
584
- const scopedApiKey = authScope === "folder" ? _chunkEILHJRPWjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkEILHJRPWjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
584
+ const scopedApiKey = authScope === "folder" ? _chunkMCXPJYBNjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkMCXPJYBNjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
585
585
  if (scopedApiKey) {
586
586
  console.log("Already connected.");
587
587
  return EXIT_OK;
@@ -623,8 +623,8 @@ async function handleWait(args) {
623
623
  if (apiKey) {
624
624
  saveEnvValues(
625
625
  {
626
- [_chunkEILHJRPWjs.HOST_URL_ENV]: baseUrl,
627
- [_chunkEILHJRPWjs.API_KEY_ENV]: apiKey,
626
+ [_chunkMCXPJYBNjs.HOST_URL_ENV]: baseUrl,
627
+ [_chunkMCXPJYBNjs.API_KEY_ENV]: apiKey,
628
628
  ...activeOrgEnvValues(data)
629
629
  },
630
630
  baseUrl,
@@ -648,8 +648,8 @@ async function handleWait(args) {
648
648
  return EXIT_AUTH;
649
649
  }
650
650
  async function authStatusLine(timeoutMs = 3e3) {
651
- const baseUrl = _chunkEILHJRPWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
652
- const apiKey = _chunkEILHJRPWjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
651
+ const baseUrl = _chunkMCXPJYBNjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
652
+ const apiKey = _chunkMCXPJYBNjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
653
653
  if (!apiKey) return `Auth: not connected (${baseUrl})`;
654
654
  try {
655
655
  const { status, data } = await httpJson(
@@ -672,9 +672,9 @@ async function authStatusLine(timeoutMs = 3e3) {
672
672
  }
673
673
  }
674
674
  async function handleStatus(args) {
675
- const baseUrl = _chunkEILHJRPWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
675
+ const baseUrl = _chunkMCXPJYBNjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
676
676
  const reveal = args.includes("--reveal");
677
- const jsonOutput = _chunkHD3KYCDCjs.argsWantJson.call(void 0, args);
677
+ const jsonOutput = _chunkV46J3UTMjs.argsWantJson.call(void 0, args);
678
678
  const hasExplicitAuthScope = args.includes("--auth-scope");
679
679
  let authScope = null;
680
680
  if (hasExplicitAuthScope) {
@@ -715,14 +715,14 @@ async function handleStatus(args) {
715
715
  };
716
716
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
717
717
  }
718
- const apiKey = authScope === "folder" ? _chunkEILHJRPWjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkEILHJRPWjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkEILHJRPWjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
718
+ const apiKey = authScope === "folder" ? _chunkMCXPJYBNjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkMCXPJYBNjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkMCXPJYBNjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
719
719
  if (!apiKey) {
720
720
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
721
721
  baseUrl,
722
722
  _nullishCoalesce(authScope, () => ( void 0))
723
723
  );
724
724
  if (pendingClaim) {
725
- _chunkHD3KYCDCjs.printCommandEnvelope.call(void 0,
725
+ _chunkV46J3UTMjs.printCommandEnvelope.call(void 0,
726
726
  {
727
727
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
728
728
  status: "pending",
@@ -743,7 +743,7 @@ async function handleStatus(args) {
743
743
  );
744
744
  return EXIT_OK;
745
745
  }
746
- _chunkHD3KYCDCjs.printCommandEnvelope.call(void 0,
746
+ _chunkV46J3UTMjs.printCommandEnvelope.call(void 0,
747
747
  {
748
748
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
749
749
  status: "not connected",
@@ -776,7 +776,7 @@ async function handleStatus(args) {
776
776
  }
777
777
  );
778
778
  if (status === 401 || status === 403) {
779
- _chunkHD3KYCDCjs.printCommandEnvelope.call(void 0,
779
+ _chunkV46J3UTMjs.printCommandEnvelope.call(void 0,
780
780
  {
781
781
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
782
782
  status: "unauthorized",
@@ -803,7 +803,7 @@ async function handleStatus(args) {
803
803
  console.error(`Auth status error (status ${status}).`);
804
804
  return EXIT_SERVER;
805
805
  }
806
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkEILHJRPWjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
806
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkMCXPJYBNjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
807
807
  clearSatisfiedPendingClaim(
808
808
  baseUrl,
809
809
  resolvedAuthScope,
@@ -831,28 +831,28 @@ async function handleStatus(args) {
831
831
  if (apiKeyResp) {
832
832
  saveEnvValues(
833
833
  {
834
- [_chunkEILHJRPWjs.HOST_URL_ENV]: baseUrl,
835
- [_chunkEILHJRPWjs.API_KEY_ENV]: apiKeyResp,
834
+ [_chunkMCXPJYBNjs.HOST_URL_ENV]: baseUrl,
835
+ [_chunkMCXPJYBNjs.API_KEY_ENV]: apiKeyResp,
836
836
  ...activeOrgEnvValues(data)
837
837
  },
838
838
  baseUrl,
839
839
  resolvedAuthScope
840
840
  );
841
841
  if (resolvedAuthScope === "folder") {
842
- const target = _chunkEILHJRPWjs.resolveProjectPinTarget.call(void 0, );
842
+ const target = _chunkMCXPJYBNjs.resolveProjectPinTarget.call(void 0, );
843
843
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
844
844
  } else {
845
845
  savedApiKeyPath = envFilePath(baseUrl);
846
846
  }
847
847
  }
848
- } else if (resolvedAuthScope === "folder" || _chunkEILHJRPWjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
849
- saveEnvValues(_chunkEILHJRPWjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
848
+ } else if (resolvedAuthScope === "folder" || _chunkMCXPJYBNjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
849
+ saveEnvValues(_chunkMCXPJYBNjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
850
850
  }
851
- _chunkHD3KYCDCjs.printCommandEnvelope.call(void 0,
851
+ _chunkV46J3UTMjs.printCommandEnvelope.call(void 0,
852
852
  {
853
853
  ...payload,
854
- ..._chunkHSFLMTEDjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
855
- command_context: _chunkEILHJRPWjs.resolveCliCommandContext.call(void 0,
854
+ ..._chunkUQN4VTZLjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
855
+ command_context: _chunkMCXPJYBNjs.resolveCliCommandContext.call(void 0,
856
856
  { baseUrl, apiKey },
857
857
  resolvedAuthScope
858
858
  )
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-A6USUS4L.mjs";
3
+ } from "./chunk-6DBRBWHC.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkQGTWGHYDjs = require('./chunk-QGTWGHYD.js');
3
+ var _chunkN5MLEXZ7js = require('./chunk-N5MLEXZ7.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkEILHJRPWjs = require('./chunk-EILHJRPW.js');
7
+ var _chunkMCXPJYBNjs = require('./chunk-MCXPJYBN.js');
8
8
 
9
9
  // src/plays/local-play-execution.ts
10
10
  function importedNodes(graph) {
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
137
137
 
138
138
  // src/plays/client.ts
139
139
  function createPlayClient(options) {
140
- const config = _chunkEILHJRPWjs.resolveConfig.call(void 0, options);
141
- return new (0, _chunkQGTWGHYDjs.PlayClient)(
142
- new (0, _chunkEILHJRPWjs.HttpClient)(config),
140
+ const config = _chunkMCXPJYBNjs.resolveConfig.call(void 0, options);
141
+ return new (0, _chunkN5MLEXZ7js.PlayClient)(
142
+ new (0, _chunkMCXPJYBNjs.HttpClient)(config),
143
143
  _nullishCoalesce(config.environment, () => ( process.env))
144
144
  );
145
145
  }
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-ZPGGW27Q.mjs";
18
18
  import {
19
19
  SDK_RELEASE
20
- } from "./chunk-7AUXX6M5.mjs";
20
+ } from "./chunk-JVEFMOY2.mjs";
21
21
 
22
22
  // src/version.ts
23
23
  var SDK_VERSION = SDK_RELEASE.version;
@@ -11,20 +11,20 @@ import {
11
11
  skillsInstallLeasePath,
12
12
  skillsSourceUrl,
13
13
  syncSdkSkillsIfNeeded
14
- } from "./chunk-2DQPB5HT.mjs";
14
+ } from "./chunk-4V63IJCL.mjs";
15
15
  import {
16
16
  printCommandEnvelope
17
- } from "./chunk-A6USUS4L.mjs";
17
+ } from "./chunk-6DBRBWHC.mjs";
18
18
  import {
19
19
  autoDetectBaseUrl,
20
20
  ensureProjectPrivatePathsIgnored,
21
21
  resolveProjectPinTarget,
22
22
  sdkCliStateDirPath
23
- } from "./chunk-DQURY3WH.mjs";
23
+ } from "./chunk-SXTVJIGB.mjs";
24
24
  import {
25
25
  SDK_VERSION,
26
26
  detectAgentRuntime
27
- } from "./chunk-E4ZS2B2J.mjs";
27
+ } from "./chunk-JCTTXLAZ.mjs";
28
28
  import {
29
29
  DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
30
30
  } from "./chunk-5JPKRDFC.mjs";
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.521",
52
+ version: "0.3.523",
53
53
  updateSummary: {
54
54
  introducedIn: "0.3.90",
55
55
  summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.521",
52
+ version: "0.3.523",
53
53
  updateSummary: {
54
54
  introducedIn: "0.3.90",
55
55
  summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
@@ -1,13 +1,13 @@
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; }
2
2
 
3
- var _chunkAMVKLEPHjs = require('./chunk-AMVKLEPH.js');
3
+ var _chunkFBMOBNJYjs = require('./chunk-FBMOBNJY.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkHD3KYCDCjs = require('./chunk-HD3KYCDC.js');
7
+ var _chunkV46J3UTMjs = require('./chunk-V46J3UTM.js');
8
8
 
9
9
 
10
- var _chunkHSFLMTEDjs = require('./chunk-HSFLMTED.js');
10
+ var _chunkUQN4VTZLjs = require('./chunk-UQN4VTZL.js');
11
11
 
12
12
  // src/cli/commands/sessions.ts
13
13
 
@@ -142,7 +142,7 @@ function currentSessionFile(agent) {
142
142
  const newestFirst = listSessionFiles(agent).sort(
143
143
  (a, b) => b.mtimeMs - a.mtimeMs
144
144
  );
145
- const sessionId = _chunkHSFLMTEDjs.agentSessionIdFromEnvironment.call(void 0,
145
+ const sessionId = _chunkUQN4VTZLjs.agentSessionIdFromEnvironment.call(void 0,
146
146
  process.env,
147
147
  agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
148
148
  );
@@ -454,7 +454,7 @@ function buildSessionUploadContent(raw) {
454
454
  return { encodedContent: encoded, needsChunking: true };
455
455
  }
456
456
  async function uploadPayload(path, payload) {
457
- const { http } = _chunkHD3KYCDCjs.getAuthedHttpClient.call(void 0, );
457
+ const { http } = _chunkV46J3UTMjs.getAuthedHttpClient.call(void 0, );
458
458
  return await http.post(path, payload);
459
459
  }
460
460
  async function uploadChunkedSessions(sessions, options) {
@@ -487,7 +487,7 @@ async function uploadChunkedSessions(sessions, options) {
487
487
  ...options.rating ? { rating: options.rating } : {}
488
488
  });
489
489
  const sessionIds = sessions.map((session) => session.sessionId);
490
- _chunkHD3KYCDCjs.printCommandEnvelope.call(void 0,
490
+ _chunkV46J3UTMjs.printCommandEnvelope.call(void 0,
491
491
  {
492
492
  ...response,
493
493
  ok: true,
@@ -508,7 +508,7 @@ async function uploadChunkedSessions(sessions, options) {
508
508
  );
509
509
  }
510
510
  async function handleSessionsSend(options) {
511
- if (_chunkAMVKLEPHjs.rejectRestrictedFeedback.call(void 0, options)) return;
511
+ if (_chunkFBMOBNJYjs.rejectRestrictedFeedback.call(void 0, options)) return;
512
512
  const rating = parseSessionRating(options.rating);
513
513
  if (options.file) {
514
514
  const filePath = _path.resolve.call(void 0, options.file);
@@ -520,7 +520,7 @@ async function handleSessionsSend(options) {
520
520
  filename: _path.basename.call(void 0, filePath),
521
521
  ...rating ? { rating } : {}
522
522
  });
523
- _chunkHD3KYCDCjs.printCommandEnvelope.call(void 0,
523
+ _chunkV46J3UTMjs.printCommandEnvelope.call(void 0,
524
524
  {
525
525
  ...response2,
526
526
  ok: true,
@@ -570,7 +570,7 @@ async function handleSessionsSend(options) {
570
570
  ...rating ? { rating } : {}
571
571
  });
572
572
  const sessionIds = built.map((session) => session.sessionId);
573
- _chunkHD3KYCDCjs.printCommandEnvelope.call(void 0,
573
+ _chunkV46J3UTMjs.printCommandEnvelope.call(void 0,
574
574
  {
575
575
  ...response,
576
576
  ok: true,
@@ -678,7 +678,7 @@ ${refreshMeta}
678
678
  </body>
679
679
  </html>`;
680
680
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
681
- _chunkHD3KYCDCjs.printCommandEnvelope.call(void 0,
681
+ _chunkV46J3UTMjs.printCommandEnvelope.call(void 0,
682
682
  {
683
683
  ok: true,
684
684
  file: outputPath,
@@ -8,7 +8,7 @@ import {
8
8
  csvStringFromRows,
9
9
  markJsonOutputHandled,
10
10
  writeRawStderr
11
- } from "./chunk-A6USUS4L.mjs";
11
+ } from "./chunk-6DBRBWHC.mjs";
12
12
 
13
13
  // src/cli/describe-options.ts
14
14
  function addDescribeOptions(command, options = {}) {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  autoDetectBaseUrl,
3
3
  resolveApiKeyForBaseUrl
4
- } from "./chunk-DQURY3WH.mjs";
4
+ } from "./chunk-SXTVJIGB.mjs";
5
5
  import {
6
6
  SDK_VERSION,
7
7
  agentSessionIdFromEnvironment,
8
8
  deploymentProtectionHeaders,
9
9
  detectAgentRuntime
10
- } from "./chunk-E4ZS2B2J.mjs";
10
+ } from "./chunk-JCTTXLAZ.mjs";
11
11
  import {
12
12
  DeeplineError
13
13
  } from "./chunk-ZPGGW27Q.mjs";
@@ -1,7 +1,7 @@
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; }
2
2
 
3
3
 
4
- var _chunkHSFLMTEDjs = require('./chunk-HSFLMTED.js');
4
+ var _chunkUQN4VTZLjs = require('./chunk-UQN4VTZL.js');
5
5
 
6
6
 
7
7
  var _chunkT2N3B7IQjs = require('./chunk-T2N3B7IQ.js');
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
711
711
  }
712
712
  }
713
713
  function resolveAutoSyncSkillAgents() {
714
- switch (_chunkHSFLMTEDjs.detectAgentRuntime.call(void 0, )) {
714
+ switch (_chunkUQN4VTZLjs.detectAgentRuntime.call(void 0, )) {
715
715
  case "codex":
716
716
  return ["codex"];
717
717
  case "claude_code":
@@ -781,7 +781,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
781
781
  }
782
782
 
783
783
  // src/http.ts
784
- var HttpClient2 = class extends _chunkHSFLMTEDjs.HttpClient {
784
+ var HttpClient2 = class extends _chunkUQN4VTZLjs.HttpClient {
785
785
  constructor(config) {
786
786
  super(config, readSdkSkillsLocalVersion);
787
787
  }
@@ -60,6 +60,60 @@ Existing member roles retain their permissions, including Play authoring. Only o
60
60
  and the last owner cannot be removed. Read-only tools may still spend credits.
61
61
  Output: ok, memberId, and the stored role.
62
62
  Cost: This command does not spend credits.`
63
+ },
64
+ "org service-accounts list": {
65
+ core: `Purpose: List the workspace's service accounts: members that are not people and own API keys,
66
+ so production credentials keep working when people leave.
67
+ Input: none.
68
+ Output: serviceAccounts (id, name, role, activeKeyCount, lastUsedAt, createdAt; keys with id, keyPrefix,
69
+ keyLast4, createdAt, and lastUsedAt for admins, null for other members). Never key material.
70
+ Cost: Does not spend credits.`
71
+ },
72
+ "org service-accounts create": {
73
+ core: `Purpose: Create a service account. Requires an admin grant.
74
+ Input: a name (1 to 64 characters, unique in the workspace ignoring case) and --role read, run, or member.
75
+ Service accounts cannot be admins or owners and cannot sign in.
76
+ Example: deepline org service-accounts create prod-pipeline --role run
77
+ Output: serviceAccount (id, name, role). Create its one key next with org service-accounts keys create <id>.
78
+ Cost: Does not spend credits.`
79
+ },
80
+ "org service-accounts set-role": {
81
+ core: `Purpose: Change a service account's role. Requires an admin grant.
82
+ Input: a service account id from org service-accounts list, then read, run, or member.
83
+ The service account's key uses the new role on its next request.
84
+ Output: serviceAccount with the stored role.
85
+ Cost: Does not spend credits.`
86
+ },
87
+ "org service-accounts delete": {
88
+ core: `Purpose: Delete a service account. Requires an admin grant.
89
+ Input: a service account id from org service-accounts list.
90
+ Revokes its key and removes its workspace membership. Deleting twice is a no-op.
91
+ Output: id and revokedKeyCount.
92
+ Cost: Does not spend credits.`
93
+ },
94
+ "org service-accounts keys create": {
95
+ core: `Purpose: Create the API key for a service account that has none. Requires an admin grant.
96
+ A service account holds one active key; this fails with SERVICE_ACCOUNT_KEY_EXISTS while it has one.
97
+ Input: a service account id from org service-accounts list.
98
+ Output: apiKey (shown once; Deepline stores only its hash) and key (id, keyPrefix, keyLast4).
99
+ Store apiKey in your secret manager and set it as DEEPLINE_API_KEY where the job runs.
100
+ Cost: Does not spend credits.`
101
+ },
102
+ "org service-accounts keys rotate": {
103
+ core: `Purpose: Replace a service account's API key. Requires an admin grant.
104
+ Input: a service account id from org service-accounts list.
105
+ In one step the active key is revoked and a new one issued; requests with the old key fail from then on,
106
+ so update DEEPLINE_API_KEY where the job runs right away. Not retried automatically: if the response is
107
+ lost, run org service-accounts list to see which key is active, and rotate again if you lack it.
108
+ Output: apiKey (shown once), key (id, keyPrefix, keyLast4), and revokedKeyIds.
109
+ Cost: Does not spend credits.`
110
+ },
111
+ "org service-accounts keys revoke": {
112
+ core: `Purpose: Revoke a service account's key without replacing it. Requires an admin grant.
113
+ Input: a service account id, then a key id, both from org service-accounts list.
114
+ Requests with the key fail from then on. Revoking a revoked key is a no-op.
115
+ Output: keyId and status.
116
+ Cost: Does not spend credits.`
63
117
  },
64
118
  "": {
65
119
  core: `
@@ -536,6 +590,26 @@ The sequence:
536
590
  Cost:
537
591
  search, describe, list, and grep are free. Running a tool can spend
538
592
  credits; [[cli:run <id> --dry-run]][[mcp:deepline_describe_tool]] shows the price.
593
+ `
594
+ },
595
+ "tools balance": {
596
+ core: `
597
+ Purpose:
598
+ Read the active workspace's connected LeadMagic account balance.
599
+ Output:
600
+ Provider credits, unit, source and observedAt timestamp. [[cli:--json returns the same fields]][[mcp:The API returns these fields]]
601
+ as GET /api/v2/integrations/balance?provider=leadmagic.
602
+ Every lookup is fresh; no cached balance is returned on failure. Missing or
603
+ inactive BYOK connections fail without using a managed account.
604
+ Provider credits are separate from Deepline charges. Tool receipts expose
605
+ BYOK facts in responseMeta.provider_usage (legacy meta.provider_usage),
606
+ including array results. Missing, invalid and conflicting values are null
607
+ with an explicit status; zero means the provider reported zero. Native
608
+ X-Credits-Cost and X-Credits-Remaining take precedence over body counters.
609
+ Cost:
610
+ The LeadMagic credit lookup is free. No Deepline credits are charged.
611
+ Examples:
612
+ [[cli:deepline tools balance leadmagic --json]]
539
613
  `
540
614
  },
541
615
  "tools connect": {
@@ -876,7 +950,10 @@ Authoring rules:
876
950
  provider call and no provider charge; Play compute still applies. This
877
951
  holds for every tool: a positive window on a write, send or purchase
878
952
  skips a repeat of it on purpose, so use 0 for a repeat and re-read after a
879
- write with 0. A repeat is skipped only after an earlier call has finished:
953
+ write with 0. Only these need 0: event waits, Google Workspace tools,
954
+ Customer DB SQL that changes data, live datasets, fetch other than
955
+ GET/HEAD/OPTIONS, and customerDb.query;
956
+ [[cli:plays check]][[mcp:deepline_check_play]] names the fix. A repeat is skipped only after an earlier call has finished:
880
957
  overlapping calls both run, so a send that must happen once needs a
881
958
  provider idempotency key. Failed, empty and unfinished answers are never
882
959
  reused, so a retry runs again. Resuming a run returns its own finished calls whatever