deepline 0.3.547 → 0.3.548

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 (136) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +47 -0
  3. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +89 -0
  4. package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +3 -0
  5. package/dist/bundling-sources/shared_libs/security/email-domain.ts +24 -0
  6. package/dist/cli/auth-7UJFY5BY.js +43 -0
  7. package/dist/cli/{auth-WJEY4IDX.mjs → auth-YOOVLLUL.mjs} +5 -5
  8. package/dist/cli/{billing-PHJUDYF3.mjs → billing-2NCNX6L2.mjs} +8 -8
  9. package/dist/cli/{billing-IJITDDRQ.js → billing-HETIOUD6.js} +92 -92
  10. package/dist/cli/{chunk-FFBXLFKV.js → chunk-2OG2KBYJ.js} +1 -1
  11. package/dist/cli/{chunk-ECUD4QPD.mjs → chunk-3QRU6RY7.mjs} +3 -3
  12. package/dist/cli/{chunk-DJI5CLLW.mjs → chunk-53QLWPZK.mjs} +1 -1
  13. package/dist/cli/{chunk-IVFFCAV2.js → chunk-5OJOFUMO.js} +44 -44
  14. package/dist/cli/{chunk-MO7TGNXB.js → chunk-5XFJBIQT.js} +13 -13
  15. package/dist/cli/{chunk-E2OIYPB4.js → chunk-5XXPP3PR.js} +10 -10
  16. package/dist/cli/{chunk-Z2YGQZWV.mjs → chunk-64BFUBXX.mjs} +2 -2
  17. package/dist/cli/{chunk-QU3K3IY6.js → chunk-6GIZNOXQ.js} +12 -12
  18. package/dist/cli/{chunk-XNTDTAKC.mjs → chunk-7AJ5V3BK.mjs} +1 -1
  19. package/dist/cli/{chunk-HFIFKP3A.js → chunk-7H6TQ6W2.js} +5 -5
  20. package/dist/cli/{chunk-VNOQEDVC.js → chunk-7JIOJLTS.js} +7 -7
  21. package/dist/cli/{chunk-GIGAYLY6.js → chunk-7UJZWI5Z.js} +9 -9
  22. package/dist/cli/{chunk-L6QE2XVM.mjs → chunk-ATTURFOV.mjs} +1 -1
  23. package/dist/cli/{chunk-LMLSOHTU.js → chunk-AUYBBFPT.js} +53 -53
  24. package/dist/cli/{chunk-MBQELFL7.js → chunk-BDBEEV6X.js} +22 -22
  25. package/dist/cli/{chunk-L5J6UJ2X.js → chunk-BWJZ4NQJ.js} +15 -15
  26. package/dist/cli/{chunk-SAJWYN4B.js → chunk-CXZLHBNK.js} +4 -4
  27. package/dist/cli/{chunk-PBMO36BP.mjs → chunk-F4ON5COB.mjs} +2 -2
  28. package/dist/cli/{chunk-DIUNDLSX.mjs → chunk-FMQA7UZZ.mjs} +2 -2
  29. package/dist/cli/{chunk-ITLZBDSR.mjs → chunk-FUUYWEF4.mjs} +2 -2
  30. package/dist/cli/{chunk-G6KW764N.mjs → chunk-GCEGQ7TQ.mjs} +1 -1
  31. package/dist/cli/{chunk-2AHY47SI.js → chunk-GUIYFOG2.js} +3 -3
  32. package/dist/cli/{chunk-OVYXYTEP.js → chunk-HDLMX7SG.js} +16 -16
  33. package/dist/cli/{chunk-IKYN6PLO.mjs → chunk-HIMZ57QD.mjs} +5 -5
  34. package/dist/cli/{chunk-REAFIEV5.js → chunk-HTZIJORU.js} +99 -99
  35. package/dist/cli/{chunk-ESCVHDNY.mjs → chunk-HU3DDLGD.mjs} +5 -5
  36. package/dist/cli/{chunk-GJOGFWX3.js → chunk-I2JIWKCQ.js} +19 -19
  37. package/dist/cli/{chunk-2HPTLBNB.js → chunk-IIWXBRDK.js} +3 -3
  38. package/dist/cli/{chunk-CKIRKYW7.mjs → chunk-IQBXX54G.mjs} +3 -3
  39. package/dist/cli/{chunk-K3GMDSUX.js → chunk-JQWX377P.js} +5 -5
  40. package/dist/cli/{chunk-ABLTVG3J.js → chunk-LAVPP6WD.js} +41 -41
  41. package/dist/cli/{chunk-NBYFQZ6O.js → chunk-M2OZORIH.js} +2 -2
  42. package/dist/cli/{chunk-MOZEAGSR.mjs → chunk-MQSKSISW.mjs} +1 -1
  43. package/dist/cli/{chunk-56MEAGWA.mjs → chunk-MWQ4WWZF.mjs} +2 -2
  44. package/dist/cli/{chunk-G6XTCG3J.mjs → chunk-NFMX7BRF.mjs} +2 -2
  45. package/dist/cli/{chunk-TNJG4ZPN.mjs → chunk-OGDQFVCP.mjs} +2 -2
  46. package/dist/cli/{chunk-FMQXAOVE.mjs → chunk-OQCYSLML.mjs} +4 -4
  47. package/dist/cli/{chunk-GZFZZQL4.js → chunk-PVE3A2BO.js} +8 -8
  48. package/dist/cli/{chunk-5SFHPMBY.mjs → chunk-QQBRXMZM.mjs} +11 -11
  49. package/dist/cli/{chunk-GPAWLXW3.mjs → chunk-QZ74ZC55.mjs} +1 -1
  50. package/dist/cli/{chunk-YURGAKI3.js → chunk-T3RDWG5J.js} +2 -2
  51. package/dist/cli/{chunk-XMBVHJPR.mjs → chunk-TKGFHRHE.mjs} +1 -1
  52. package/dist/cli/{chunk-RXRC2COC.mjs → chunk-U35ZLVBA.mjs} +2 -2
  53. package/dist/cli/{chunk-YVKLF7RW.js → chunk-U7HJXE6Y.js} +2 -2
  54. package/dist/cli/{chunk-AEQ5VWZ5.mjs → chunk-UBQQR56I.mjs} +4 -4
  55. package/dist/cli/{chunk-N63U5CRG.js → chunk-VK2GSTRN.js} +26 -26
  56. package/dist/cli/{chunk-QLE3QKJ2.mjs → chunk-VSACOMIA.mjs} +5 -5
  57. package/dist/cli/{chunk-D6OIEH47.js → chunk-WI4MCR7M.js} +5 -5
  58. package/dist/cli/{chunk-DZC7LMYM.js → chunk-WIHQAZPV.js} +6 -6
  59. package/dist/cli/{chunk-IGAK22XO.mjs → chunk-WVZF4DU7.mjs} +1 -1
  60. package/dist/cli/{chunk-VPF54TXQ.mjs → chunk-XKEBQVCP.mjs} +5 -5
  61. package/dist/cli/{chunk-HARZ4AAX.mjs → chunk-XU3D2KFR.mjs} +1 -1
  62. package/dist/cli/concurrent-runs-help-A2IQVZRJ.js +21 -0
  63. package/dist/cli/{concurrent-runs-help-ZNGP563R.mjs → concurrent-runs-help-FDCCZ45D.mjs} +6 -6
  64. package/dist/cli/{csv-VAHQHYYV.mjs → csv-GJYLQ52D.mjs} +4 -4
  65. package/dist/cli/{csv-X6D4ZELE.js → csv-OCEQWZO3.js} +13 -13
  66. package/dist/cli/{db-4G4S2VOV.mjs → db-5MA2UUHQ.mjs} +6 -6
  67. package/dist/cli/{db-YA5ZGVEX.js → db-G5QGXFAX.js} +27 -27
  68. package/dist/cli/{describe-EVXEM2S6.mjs → describe-4DOJ4DHA.mjs} +18 -18
  69. package/dist/cli/describe-SD7DRTBW.js +50 -0
  70. package/dist/cli/{executions-HR6CTN5M.mjs → executions-C7SMBHHB.mjs} +6 -6
  71. package/dist/cli/{executions-5YC7ABF6.js → executions-IYEVUPJI.js} +8 -8
  72. package/dist/cli/{feedback-MJHSYLFF.js → feedback-GYAF46GA.js} +14 -14
  73. package/dist/cli/{feedback-GEU5SPLR.mjs → feedback-XUU2UKM6.mjs} +6 -6
  74. package/dist/cli/git-7YYVMY6L.js +25 -0
  75. package/dist/cli/{git-NPFF6QUS.mjs → git-WVCMK5AH.mjs} +5 -5
  76. package/dist/cli/index.js +142 -142
  77. package/dist/cli/index.mjs +44 -44
  78. package/dist/cli/{integrations-Z7EGVBHF.mjs → integrations-FXADGAX2.mjs} +7 -7
  79. package/dist/cli/{integrations-YPHFI77G.js → integrations-YYBJJFVX.js} +15 -15
  80. package/dist/cli/{legacy-noops-5IYCFWWX.mjs → legacy-noops-LJY7LDUE.mjs} +6 -6
  81. package/dist/cli/{legacy-noops-246E3KKG.js → legacy-noops-REZCYES2.js} +9 -9
  82. package/dist/cli/{mcp-YTYTW67G.js → mcp-L5PURE5S.js} +24 -24
  83. package/dist/cli/{mcp-WUYGZXPI.mjs → mcp-XSB3ZJFR.mjs} +4 -4
  84. package/dist/cli/{monitors-SA6ILD6Z.js → monitors-I5EIHSGV.js} +100 -100
  85. package/dist/cli/{monitors-73DQKCU7.mjs → monitors-UBPF2OLO.mjs} +7 -7
  86. package/dist/cli/{org-WVQRB2KX.mjs → org-PHHIN2ER.mjs} +6 -6
  87. package/dist/cli/{org-X7ELDV7B.js → org-SGSTGGUD.js} +88 -88
  88. package/dist/cli/{play-QI6V2EUQ.mjs → play-LEJNJLWY.mjs} +17 -17
  89. package/dist/cli/{play-QTYOAJPE.js → play-WQEKMANL.js} +317 -317
  90. package/dist/cli/{providers-DPVMVDS4.mjs → providers-3W26ZDAV.mjs} +6 -6
  91. package/dist/cli/{providers-XXFLVREV.js → providers-RSDXBXIS.js} +9 -9
  92. package/dist/cli/{quickstart-YWGNHULM.mjs → quickstart-LGJD2M36.mjs} +4 -4
  93. package/dist/cli/{quickstart-33ISXQJU.js → quickstart-U3QX4EMI.js} +6 -6
  94. package/dist/cli/{run-BWHZXLTD.js → run-F2UPZUJS.js} +43 -43
  95. package/dist/cli/{run-J6FCAKQC.mjs → run-YWZ3W5HK.mjs} +23 -23
  96. package/dist/cli/search-K6ANAXLF.js +32 -0
  97. package/dist/cli/{search-Z3UU3WBB.mjs → search-O2OJH3PY.mjs} +7 -7
  98. package/dist/cli/{search-output-OJYY4J7E.mjs → search-output-H5BF6SJ3.mjs} +4 -4
  99. package/dist/cli/{search-output-YIPV74ME.js → search-output-W7OCBYBU.js} +6 -6
  100. package/dist/cli/{secrets-YZZN2WST.mjs → secrets-65XCAA7U.mjs} +6 -6
  101. package/dist/cli/{secrets-UXRJCEN4.js → secrets-BN4GYVRI.js} +15 -15
  102. package/dist/cli/sessions-M52QWLA6.js +22 -0
  103. package/dist/cli/{sessions-ITCGPD7Z.mjs → sessions-SVEVESCQ.mjs} +6 -6
  104. package/dist/cli/{settings-LAFYMILP.js → settings-7YMDAFCN.js} +85 -85
  105. package/dist/cli/{settings-ZP2LSVNM.mjs → settings-HAU2NP2H.mjs} +12 -12
  106. package/dist/cli/{setup-WEQAQSYC.mjs → setup-5RXHZ6YI.mjs} +9 -9
  107. package/dist/cli/{setup-4AL3XYM5.js → setup-G37QXQGM.js} +49 -49
  108. package/dist/cli/{skills-NQH4HFW2.mjs → skills-Q7A3XFAU.mjs} +7 -7
  109. package/dist/cli/skills-ZK4D5BJW.js +36 -0
  110. package/dist/cli/tools-DBZTLYFM.js +57 -0
  111. package/dist/cli/{tools-CXK2GSI4.mjs → tools-ZG4NYRGB.mjs} +17 -17
  112. package/dist/cli/{update-3ROF3Z75.mjs → update-2CMZTZCL.mjs} +9 -9
  113. package/dist/cli/update-LC5HGEEH.js +34 -0
  114. package/dist/cli/{views-AOUHVGV2.mjs → views-A6IIY4OQ.mjs} +6 -6
  115. package/dist/cli/{views-XJFO5CEH.js → views-XUMDMDIE.js} +21 -21
  116. package/dist/cli/{workflow-GY3DBHXX.js → workflow-4EEW6MCD.js} +17 -17
  117. package/dist/cli/{workflow-KBS2QJK6.mjs → workflow-74MYISHU.mjs} +7 -7
  118. package/dist/index.js +9 -9
  119. package/dist/index.mjs +6 -6
  120. package/dist/install-integrity.json +110 -110
  121. package/dist/release.d.mts +1 -1
  122. package/dist/release.d.ts +1 -1
  123. package/dist/release.js +2 -2
  124. package/dist/release.mjs +1 -1
  125. package/dist/server.js +5 -5
  126. package/dist/server.mjs +3 -3
  127. package/package.json +1 -1
  128. package/dist/cli/auth-AC5277PI.js +0 -43
  129. package/dist/cli/concurrent-runs-help-ZYISYOQA.js +0 -21
  130. package/dist/cli/describe-GYYSLZLV.js +0 -50
  131. package/dist/cli/git-FZIQZNI4.js +0 -25
  132. package/dist/cli/search-JCWJX2XD.js +0 -32
  133. package/dist/cli/sessions-NA4SJH6Q.js +0 -22
  134. package/dist/cli/skills-XZ4Y6SZ7.js +0 -36
  135. package/dist/cli/tools-WJQ6Y7E4.js +0 -57
  136. package/dist/cli/update-ZLRLTBRD.js +0 -34
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkLMLSOHTUjs = require('./chunk-LMLSOHTU.js');
3
+ var _chunkAUYBBFPTjs = require('./chunk-AUYBBFPT.js');
4
4
 
5
5
 
6
6
  var _chunkUV4RU2TEjs = require('./chunk-UV4RU2TE.js');
7
7
 
8
8
 
9
9
 
10
- var _chunk2HPTLBNBjs = require('./chunk-2HPTLBNB.js');
10
+ var _chunkIIWXBRDKjs = require('./chunk-IIWXBRDK.js');
11
11
 
12
12
  // src/cli/concurrent-runs-help.ts
13
13
  var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
@@ -24,11 +24,11 @@ function concurrentRunsLine(payload) {
24
24
  return plans ? `${here} Plan limits: ${plans}.` : here;
25
25
  }
26
26
  async function concurrentRunsHelpStatus(timeoutMs = 2e3) {
27
- const baseUrl = _chunk2HPTLBNBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
28
- const apiKey = _chunk2HPTLBNBjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
27
+ const baseUrl = _chunkIIWXBRDKjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
28
+ const apiKey = _chunkIIWXBRDKjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
29
29
  if (!apiKey) return "";
30
30
  try {
31
- const { status, data } = await _chunkLMLSOHTUjs.httpJson.call(void 0,
31
+ const { status, data } = await _chunkAUYBBFPTjs.httpJson.call(void 0,
32
32
  "GET",
33
33
  `${baseUrl}/api/v2/billing/entitlements`,
34
34
  apiKey,
@@ -9,7 +9,7 @@ var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
9
9
 
10
10
 
11
11
 
12
- var _chunkGJOGFWX3js = require('./chunk-GJOGFWX3.js');
12
+ var _chunkI2JIWKCQjs = require('./chunk-I2JIWKCQ.js');
13
13
 
14
14
  // src/cli/describe-options.ts
15
15
  function addDescribeOptions(command, options = {}) {
@@ -250,7 +250,7 @@ function projectRunDatasetCell(value) {
250
250
  const logicalValue = parseSerializedDatasetValue(value);
251
251
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
252
252
  if (typeof logicalValue === "object") {
253
- return _chunkGJOGFWX3js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
253
+ return _chunkI2JIWKCQjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
254
254
  }
255
255
  return logicalValue;
256
256
  }
@@ -642,7 +642,7 @@ function csvText(rows, columns = []) {
642
642
  rows: rows.map((row) => record(row) ? row : { value: row }),
643
643
  columns
644
644
  });
645
- return _chunkGJOGFWX3js.csvStringFromRows.call(void 0, projection.rows, projection.columns);
645
+ return _chunkI2JIWKCQjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
646
646
  }
647
647
  function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
648
648
  let temp;
@@ -769,7 +769,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
769
769
  };
770
770
  if (options.receiptOut && !skipReceiptFile) {
771
771
  persist(options.receiptOut, jsonText(receipt));
772
- _chunkGJOGFWX3js.markJsonOutputHandled.call(void 0, );
772
+ _chunkI2JIWKCQjs.markJsonOutputHandled.call(void 0, );
773
773
  } else {
774
774
  printReceipt(receipt, options, {
775
775
  data: hasData ? result.data : void 0,
@@ -937,7 +937,7 @@ function receiptText(receipt, options, extra) {
937
937
  problems.push(
938
938
  `Error: ${record(error) && typeof error.message === "string" ? error.message : JSON.stringify(error)}`
939
939
  );
940
- const diagnostic = _chunkGJOGFWX3js.formatCliFailureDiagnostic.call(void 0, error);
940
+ const diagnostic = _chunkI2JIWKCQjs.formatCliFailureDiagnostic.call(void 0, error);
941
941
  if (diagnostic) problems.push(...diagnostic.split("\n"));
942
942
  if (record(error) && typeof error.recoveryFile === "string") {
943
943
  problems.push(
@@ -1030,8 +1030,8 @@ function printReceipt(receipt, options, extra) {
1030
1030
  const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
1031
1031
  ` : receiptText(receipt, options, extra);
1032
1032
  if (options.receiptOut !== void 0) {
1033
- _chunkGJOGFWX3js.writeRawStderr.call(void 0, text);
1034
- _chunkGJOGFWX3js.markJsonOutputHandled.call(void 0, );
1033
+ _chunkI2JIWKCQjs.writeRawStderr.call(void 0, text);
1034
+ _chunkI2JIWKCQjs.markJsonOutputHandled.call(void 0, );
1035
1035
  } else {
1036
1036
  (dataOnStdout(options) ? process.stderr : process.stdout).write(text);
1037
1037
  }
@@ -3,7 +3,7 @@
3
3
  var _chunkCSPHSNBWjs = require('./chunk-CSPHSNBW.js');
4
4
 
5
5
 
6
- var _chunkGZFZZQL4js = require('./chunk-GZFZZQL4.js');
6
+ var _chunkPVE3A2BOjs = require('./chunk-PVE3A2BO.js');
7
7
 
8
8
 
9
9
  var _chunkSL6MYJYMjs = require('./chunk-SL6MYJYM.js');
@@ -11,7 +11,7 @@ var _chunkSL6MYJYMjs = require('./chunk-SL6MYJYM.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkGJOGFWX3js = require('./chunk-GJOGFWX3.js');
14
+ var _chunkI2JIWKCQjs = require('./chunk-I2JIWKCQ.js');
15
15
 
16
16
 
17
17
  var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
@@ -581,7 +581,7 @@ function parseInputFlagValue(raw) {
581
581
  return raw;
582
582
  }
583
583
  function parsePlayRunOptions(args, initialInput = null) {
584
- const selection = _chunkGJOGFWX3js.parseJsonFields.call(void 0, args, "run");
584
+ const selection = _chunkI2JIWKCQjs.parseJsonFields.call(void 0, args, "run");
585
585
  args = selection.args;
586
586
  const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
587
587
  let filePath = null;
@@ -593,7 +593,7 @@ function parsePlayRunOptions(args, initialInput = null) {
593
593
  let revisionSelector = null;
594
594
  const watch = !args.includes("--no-wait");
595
595
  const dryRun = args.includes("--dry-run");
596
- let jsonOutput = dryRun ? _chunkGJOGFWX3js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkGJOGFWX3js.argsWantJson.call(void 0, args);
596
+ let jsonOutput = dryRun ? _chunkI2JIWKCQjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkI2JIWKCQjs.argsWantJson.call(void 0, args);
597
597
  const fullJson = args.includes("--full");
598
598
  const force = args.includes("--force") || args.includes("--from-start");
599
599
  const forceToolRefresh = args.includes("--force-tool-refresh") || args.includes("--refresh-cache");
@@ -657,7 +657,7 @@ function parsePlayRunOptions(args, initialInput = null) {
657
657
  "--log-level requires one of: debug, info, warn, error."
658
658
  );
659
659
  }
660
- const parsed = _chunkGZFZZQL4js.parseLogLevel.call(void 0, value);
660
+ const parsed = _chunkPVE3A2BOjs.parseLogLevel.call(void 0, value);
661
661
  if (!parsed) {
662
662
  throw new Error(
663
663
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -990,7 +990,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
990
990
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
991
991
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
992
992
  );
993
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkGZFZZQL4js.parseLogLevel.call(void 0, options.logLevel);
993
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkPVE3A2BOjs.parseLogLevel.call(void 0, options.logLevel);
994
994
  if (!logLevel)
995
995
  throw new Error("--log-level requires one of: debug, info, warn, error.");
996
996
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -1004,13 +1004,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
1004
1004
  if (debugAlias || debugMapLatency && logLevel === "info")
1005
1005
  logLevel = "debug";
1006
1006
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
1007
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkGJOGFWX3js.parseJsonFields.call(void 0,
1008
- [...fullJson ? ["--full"] : [], ..._chunkGJOGFWX3js.jsonFieldArgs.call(void 0, options.json)],
1007
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkI2JIWKCQjs.parseJsonFields.call(void 0,
1008
+ [...fullJson ? ["--full"] : [], ..._chunkI2JIWKCQjs.jsonFieldArgs.call(void 0, options.json)],
1009
1009
  "run"
1010
1010
  ).fields;
1011
1011
  const watch = options.wait === false ? false : base.watch;
1012
1012
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
1013
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkGJOGFWX3js.argsWantJson.call(void 0, []) : explicitJson;
1013
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkI2JIWKCQjs.argsWantJson.call(void 0, []) : explicitJson;
1014
1014
  const verboseLogs = Boolean(
1015
1015
  debugAlias || logLevel === "debug" || debugMapLatency
1016
1016
  );
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isJsonOutputMode
3
- } from "./chunk-TNJG4ZPN.mjs";
3
+ } from "./chunk-OGDQFVCP.mjs";
4
4
 
5
5
  // src/cli/progress.ts
6
6
  import { Worker } from "worker_threads";
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkGJOGFWX3js = require('./chunk-GJOGFWX3.js');
5
+ var _chunkI2JIWKCQjs = require('./chunk-I2JIWKCQ.js');
6
6
 
7
7
 
8
8
 
@@ -22,14 +22,14 @@ var _chunkGJOGFWX3js = require('./chunk-GJOGFWX3.js');
22
22
 
23
23
 
24
24
 
25
- var _chunk2HPTLBNBjs = require('./chunk-2HPTLBNB.js');
25
+ var _chunkIIWXBRDKjs = require('./chunk-IIWXBRDK.js');
26
26
 
27
27
 
28
28
 
29
29
 
30
30
 
31
31
 
32
- var _chunkSAJWYN4Bjs = require('./chunk-SAJWYN4B.js');
32
+ var _chunkCXZLHBNKjs = require('./chunk-CXZLHBNK.js');
33
33
 
34
34
 
35
35
  var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
@@ -60,7 +60,7 @@ function statusBannerLine(value) {
60
60
  return `Service notice: ${banner.message}`;
61
61
  }
62
62
  function envFilePath(baseUrl) {
63
- return _chunk2HPTLBNBjs.hostEnvFilePath.call(void 0, baseUrl);
63
+ return _chunkIIWXBRDKjs.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 = _chunk2HPTLBNBjs.resolveProjectPinTarget.call(void 0, );
76
+ const target = _chunkIIWXBRDKjs.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 `${_chunk2HPTLBNBjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
86
+ return `${_chunkIIWXBRDKjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
87
87
  }
88
88
  function legacyPendingClaimTokenPath(baseUrl) {
89
- return `${_chunk2HPTLBNBjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
89
+ return `${_chunkIIWXBRDKjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
90
90
  }
91
91
  function savePendingClaim(baseUrl, claim) {
92
92
  const filePath = pendingClaimPath(baseUrl, claim.scope);
@@ -191,21 +191,21 @@ function parseRegisterWaitMode(args) {
191
191
  function shouldWaitForRegisterClaim(mode) {
192
192
  if (mode === "yes") return true;
193
193
  if (mode === "no") return false;
194
- return _chunkSAJWYN4Bjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
194
+ return _chunkCXZLHBNKjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
195
195
  }
196
196
  function saveEnvValues(values, baseUrl, scope) {
197
197
  const filtered = {
198
- ...values[_chunk2HPTLBNBjs.HOST_URL_ENV] ? { [_chunk2HPTLBNBjs.HOST_URL_ENV]: values[_chunk2HPTLBNBjs.HOST_URL_ENV] } : {},
199
- ...values[_chunk2HPTLBNBjs.API_KEY_ENV] ? { [_chunk2HPTLBNBjs.API_KEY_ENV]: values[_chunk2HPTLBNBjs.API_KEY_ENV] } : {},
200
- ...values[_chunk2HPTLBNBjs.ACTIVE_ORG_ID_ENV] ? { [_chunk2HPTLBNBjs.ACTIVE_ORG_ID_ENV]: values[_chunk2HPTLBNBjs.ACTIVE_ORG_ID_ENV] } : {},
201
- ...Object.prototype.hasOwnProperty.call(values, _chunk2HPTLBNBjs.ACTIVE_ORG_NAME_ENV) ? { [_chunk2HPTLBNBjs.ACTIVE_ORG_NAME_ENV]: values[_chunk2HPTLBNBjs.ACTIVE_ORG_NAME_ENV] } : {},
198
+ ...values[_chunkIIWXBRDKjs.HOST_URL_ENV] ? { [_chunkIIWXBRDKjs.HOST_URL_ENV]: values[_chunkIIWXBRDKjs.HOST_URL_ENV] } : {},
199
+ ...values[_chunkIIWXBRDKjs.API_KEY_ENV] ? { [_chunkIIWXBRDKjs.API_KEY_ENV]: values[_chunkIIWXBRDKjs.API_KEY_ENV] } : {},
200
+ ...values[_chunkIIWXBRDKjs.ACTIVE_ORG_ID_ENV] ? { [_chunkIIWXBRDKjs.ACTIVE_ORG_ID_ENV]: values[_chunkIIWXBRDKjs.ACTIVE_ORG_ID_ENV] } : {},
201
+ ...Object.prototype.hasOwnProperty.call(values, _chunkIIWXBRDKjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkIIWXBRDKjs.ACTIVE_ORG_NAME_ENV]: values[_chunkIIWXBRDKjs.ACTIVE_ORG_NAME_ENV] } : {},
202
202
  // An explicit empty list must reach the store: it clears a stale line.
203
- ...Object.prototype.hasOwnProperty.call(values, _chunk2HPTLBNBjs.FEATURES_ENV) ? { [_chunk2HPTLBNBjs.FEATURES_ENV]: values[_chunk2HPTLBNBjs.FEATURES_ENV] } : {}
203
+ ...Object.prototype.hasOwnProperty.call(values, _chunkIIWXBRDKjs.FEATURES_ENV) ? { [_chunkIIWXBRDKjs.FEATURES_ENV]: values[_chunkIIWXBRDKjs.FEATURES_ENV] } : {}
204
204
  };
205
205
  if (scope === "folder") {
206
- _chunk2HPTLBNBjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
206
+ _chunkIIWXBRDKjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
207
207
  } else {
208
- _chunk2HPTLBNBjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
208
+ _chunkIIWXBRDKjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
209
209
  }
210
210
  }
211
211
  function activeOrgEnvValues(data) {
@@ -213,21 +213,21 @@ function activeOrgEnvValues(data) {
213
213
  if (!orgId) return {};
214
214
  const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
215
215
  return {
216
- [_chunk2HPTLBNBjs.ACTIVE_ORG_ID_ENV]: orgId,
217
- [_chunk2HPTLBNBjs.ACTIVE_ORG_NAME_ENV]: orgName,
218
- ..._chunk2HPTLBNBjs.featureEnvValues.call(void 0, data)
216
+ [_chunkIIWXBRDKjs.ACTIVE_ORG_ID_ENV]: orgId,
217
+ [_chunkIIWXBRDKjs.ACTIVE_ORG_NAME_ENV]: orgName,
218
+ ..._chunkIIWXBRDKjs.featureEnvValues.call(void 0, data)
219
219
  };
220
220
  }
221
221
  async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
222
222
  const headers = {
223
223
  "Content-Type": "application/json",
224
- "User-Agent": `deepline-ts-sdk/${_chunkSAJWYN4Bjs.SDK_VERSION}`,
224
+ "User-Agent": `deepline-ts-sdk/${_chunkCXZLHBNKjs.SDK_VERSION}`,
225
225
  "X-Deepline-Client-Family": "sdk",
226
226
  "X-Deepline-CLI-Family": "sdk",
227
- "X-Deepline-Agent-Runtime": _chunkSAJWYN4Bjs.detectAgentRuntime.call(void 0, ),
228
- "X-Deepline-CLI-Version": _chunkSAJWYN4Bjs.SDK_VERSION,
229
- "X-Deepline-SDK-Version": _chunkSAJWYN4Bjs.SDK_VERSION,
230
- "X-Deepline-API-Contract": _chunkSAJWYN4Bjs.SDK_API_CONTRACT
227
+ "X-Deepline-Agent-Runtime": _chunkCXZLHBNKjs.detectAgentRuntime.call(void 0, ),
228
+ "X-Deepline-CLI-Version": _chunkCXZLHBNKjs.SDK_VERSION,
229
+ "X-Deepline-SDK-Version": _chunkCXZLHBNKjs.SDK_VERSION,
230
+ "X-Deepline-API-Contract": _chunkCXZLHBNKjs.SDK_API_CONTRACT
231
231
  };
232
232
  if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
233
233
  const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
@@ -266,10 +266,10 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
266
266
  if (failure.name === "AbortError" || failure.name === "TimeoutError") {
267
267
  throw failure;
268
268
  }
269
- const causeCode = _chunkSAJWYN4Bjs.networkCauseCode.call(void 0, failure);
269
+ const causeCode = _chunkCXZLHBNKjs.networkCauseCode.call(void 0, failure);
270
270
  throw Object.assign(
271
271
  new (0, _chunkBBTKAASQjs.DeeplineError)(
272
- _chunkSAJWYN4Bjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
272
+ _chunkCXZLHBNKjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
273
273
  void 0,
274
274
  "NETWORK_ERROR",
275
275
  causeCode ? { causeCode } : void 0
@@ -286,7 +286,7 @@ async function readStatusBanner(baseUrl) {
286
286
  return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
287
287
  }
288
288
  async function reportSetupCompleted(input) {
289
- const apiKey = input.authScope === "folder" ? _chunk2HPTLBNBjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunk2HPTLBNBjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
289
+ const apiKey = input.authScope === "folder" ? _chunkIIWXBRDKjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkIIWXBRDKjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
290
290
  if (!apiKey) return;
291
291
  try {
292
292
  await httpJson(
@@ -415,7 +415,7 @@ function endClaimPollOnRefusal(status, data, baseUrl, authScope) {
415
415
  return EXIT_SERVER;
416
416
  }
417
417
  async function handleRegister(args, options) {
418
- const baseUrl = _chunk2HPTLBNBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
418
+ const baseUrl = _chunkIIWXBRDKjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
419
419
  let orgName = "";
420
420
  let orgId = "";
421
421
  let agentName = "";
@@ -486,14 +486,14 @@ async function handleRegister(args, options) {
486
486
  savePendingClaim(baseUrl, pendingClaim);
487
487
  saveEnvValues(
488
488
  {
489
- [_chunk2HPTLBNBjs.HOST_URL_ENV]: baseUrl
489
+ [_chunkIIWXBRDKjs.HOST_URL_ENV]: baseUrl
490
490
  },
491
491
  baseUrl,
492
492
  authScope
493
493
  );
494
494
  }
495
495
  if (claimUrl && !_optionalChain([options, 'optionalAccess', _16 => _16.delegatedApproval])) {
496
- const shouldOpen = waitMode !== "no" && _chunkSAJWYN4Bjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
496
+ const shouldOpen = waitMode !== "no" && _chunkCXZLHBNKjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
497
497
  console.log(" Open this approval page in your browser:");
498
498
  console.log(` ${claimUrl}`);
499
499
  if (pendingClaim.device) {
@@ -501,7 +501,7 @@ async function handleRegister(args, options) {
501
501
  ` Click Approve if the page shows ${pendingClaim.device.userCode}.`
502
502
  );
503
503
  }
504
- const opened = shouldOpen && _chunkGJOGFWX3js.openInBrowser.call(void 0, claimUrl) === "opened";
504
+ const opened = shouldOpen && _chunkI2JIWKCQjs.openInBrowser.call(void 0, claimUrl) === "opened";
505
505
  if (claimToken && pendingClaim.approvalLinkReporting) {
506
506
  await reportApprovalLinkShown(
507
507
  baseUrl,
@@ -554,8 +554,8 @@ async function handleRegister(args, options) {
554
554
  if (apiKey) {
555
555
  saveEnvValues(
556
556
  {
557
- [_chunk2HPTLBNBjs.HOST_URL_ENV]: baseUrl,
558
- [_chunk2HPTLBNBjs.API_KEY_ENV]: apiKey,
557
+ [_chunkIIWXBRDKjs.HOST_URL_ENV]: baseUrl,
558
+ [_chunkIIWXBRDKjs.API_KEY_ENV]: apiKey,
559
559
  ...activeOrgEnvValues(statusData)
560
560
  },
561
561
  baseUrl,
@@ -577,7 +577,7 @@ async function handleRegister(args, options) {
577
577
  }
578
578
  }
579
579
  async function handleWait(args, options) {
580
- const baseUrl = _chunk2HPTLBNBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
580
+ const baseUrl = _chunkIIWXBRDKjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
581
581
  let timeoutSeconds = 300;
582
582
  let requestedScope;
583
583
  if (args.includes("--auth-scope")) {
@@ -601,7 +601,7 @@ async function handleWait(args, options) {
601
601
  const authScope = resumed.scope;
602
602
  const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _18 => _18.claimToken]), () => ( ""));
603
603
  if (!pendingClaim) {
604
- const scopedApiKey = authScope === "folder" ? _chunk2HPTLBNBjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk2HPTLBNBjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
604
+ const scopedApiKey = authScope === "folder" ? _chunkIIWXBRDKjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkIIWXBRDKjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
605
605
  if (scopedApiKey) {
606
606
  if (!_optionalChain([options, 'optionalAccess', _19 => _19.quiet])) console.log("Already connected.");
607
607
  return EXIT_OK;
@@ -664,8 +664,8 @@ async function handleWait(args, options) {
664
664
  if (apiKey) {
665
665
  saveEnvValues(
666
666
  {
667
- [_chunk2HPTLBNBjs.HOST_URL_ENV]: baseUrl,
668
- [_chunk2HPTLBNBjs.API_KEY_ENV]: apiKey,
667
+ [_chunkIIWXBRDKjs.HOST_URL_ENV]: baseUrl,
668
+ [_chunkIIWXBRDKjs.API_KEY_ENV]: apiKey,
669
669
  ...activeOrgEnvValues(data)
670
670
  },
671
671
  baseUrl,
@@ -695,8 +695,8 @@ async function handleWait(args, options) {
695
695
  return EXIT_AUTH;
696
696
  }
697
697
  async function authStatusLine(timeoutMs = 3e3) {
698
- const baseUrl = _chunk2HPTLBNBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
699
- const apiKey = _chunk2HPTLBNBjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
698
+ const baseUrl = _chunkIIWXBRDKjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
699
+ const apiKey = _chunkIIWXBRDKjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
700
700
  if (!apiKey) return `Auth: not connected (${baseUrl})`;
701
701
  try {
702
702
  const { status, data } = await httpJson(
@@ -719,9 +719,9 @@ async function authStatusLine(timeoutMs = 3e3) {
719
719
  }
720
720
  }
721
721
  async function handleStatus(args) {
722
- const baseUrl = _chunk2HPTLBNBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
722
+ const baseUrl = _chunkIIWXBRDKjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
723
723
  const reveal = args.includes("--reveal");
724
- const jsonOutput = _chunkGJOGFWX3js.argsWantJson.call(void 0, args);
724
+ const jsonOutput = _chunkI2JIWKCQjs.argsWantJson.call(void 0, args);
725
725
  const hasExplicitAuthScope = args.includes("--auth-scope");
726
726
  let authScope = null;
727
727
  if (hasExplicitAuthScope) {
@@ -762,14 +762,14 @@ async function handleStatus(args) {
762
762
  };
763
763
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
764
764
  }
765
- const apiKey = authScope === "folder" ? _chunk2HPTLBNBjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunk2HPTLBNBjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk2HPTLBNBjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
765
+ const apiKey = authScope === "folder" ? _chunkIIWXBRDKjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkIIWXBRDKjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkIIWXBRDKjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
766
766
  if (!apiKey) {
767
767
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
768
768
  baseUrl,
769
769
  _nullishCoalesce(authScope, () => ( void 0))
770
770
  );
771
771
  if (pendingClaim) {
772
- _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
772
+ _chunkI2JIWKCQjs.printCommandEnvelope.call(void 0,
773
773
  {
774
774
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
775
775
  status: "pending",
@@ -799,7 +799,7 @@ async function handleStatus(args) {
799
799
  );
800
800
  return EXIT_OK;
801
801
  }
802
- _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
802
+ _chunkI2JIWKCQjs.printCommandEnvelope.call(void 0,
803
803
  {
804
804
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
805
805
  status: "not connected",
@@ -832,7 +832,7 @@ async function handleStatus(args) {
832
832
  }
833
833
  );
834
834
  if (status === 401 || status === 403) {
835
- _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
835
+ _chunkI2JIWKCQjs.printCommandEnvelope.call(void 0,
836
836
  {
837
837
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
838
838
  status: "unauthorized",
@@ -859,7 +859,7 @@ async function handleStatus(args) {
859
859
  console.error(`Auth status error (status ${status}).`);
860
860
  return EXIT_SERVER;
861
861
  }
862
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunk2HPTLBNBjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
862
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkIIWXBRDKjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
863
863
  clearSatisfiedPendingClaim(
864
864
  baseUrl,
865
865
  resolvedAuthScope,
@@ -887,28 +887,28 @@ async function handleStatus(args) {
887
887
  if (apiKeyResp) {
888
888
  saveEnvValues(
889
889
  {
890
- [_chunk2HPTLBNBjs.HOST_URL_ENV]: baseUrl,
891
- [_chunk2HPTLBNBjs.API_KEY_ENV]: apiKeyResp,
890
+ [_chunkIIWXBRDKjs.HOST_URL_ENV]: baseUrl,
891
+ [_chunkIIWXBRDKjs.API_KEY_ENV]: apiKeyResp,
892
892
  ...activeOrgEnvValues(data)
893
893
  },
894
894
  baseUrl,
895
895
  resolvedAuthScope
896
896
  );
897
897
  if (resolvedAuthScope === "folder") {
898
- const target = _chunk2HPTLBNBjs.resolveProjectPinTarget.call(void 0, );
898
+ const target = _chunkIIWXBRDKjs.resolveProjectPinTarget.call(void 0, );
899
899
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
900
900
  } else {
901
901
  savedApiKeyPath = envFilePath(baseUrl);
902
902
  }
903
903
  }
904
- } else if (resolvedAuthScope === "folder" || _chunk2HPTLBNBjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
905
- saveEnvValues(_chunk2HPTLBNBjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
904
+ } else if (resolvedAuthScope === "folder" || _chunkIIWXBRDKjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
905
+ saveEnvValues(_chunkIIWXBRDKjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
906
906
  }
907
- _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
907
+ _chunkI2JIWKCQjs.printCommandEnvelope.call(void 0,
908
908
  {
909
909
  ...payload,
910
- ..._chunkSAJWYN4Bjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
911
- command_context: _chunk2HPTLBNBjs.resolveCliCommandContext.call(void 0,
910
+ ..._chunkCXZLHBNKjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
911
+ command_context: _chunkIIWXBRDKjs.resolveCliCommandContext.call(void 0,
912
912
  { baseUrl, apiKey },
913
913
  resolvedAuthScope
914
914
  )
@@ -4,21 +4,21 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkOVYXYTEPjs = require('./chunk-OVYXYTEP.js');
7
+ var _chunkHDLMX7SGjs = require('./chunk-HDLMX7SG.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkIVFFCAV2js = require('./chunk-IVFFCAV2.js');
11
+ var _chunk5OJOFUMOjs = require('./chunk-5OJOFUMO.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkGJOGFWX3js = require('./chunk-GJOGFWX3.js');
15
+ var _chunkI2JIWKCQjs = require('./chunk-I2JIWKCQ.js');
16
16
 
17
17
 
18
- var _chunk2HPTLBNBjs = require('./chunk-2HPTLBNB.js');
18
+ var _chunkIIWXBRDKjs = require('./chunk-IIWXBRDK.js');
19
19
 
20
20
 
21
- var _chunkSAJWYN4Bjs = require('./chunk-SAJWYN4B.js');
21
+ var _chunkCXZLHBNKjs = require('./chunk-CXZLHBNK.js');
22
22
 
23
23
  // src/cli/compatibility-catalog.ts
24
24
  var readers = /* @__PURE__ */ new WeakMap();
@@ -45,7 +45,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
45
45
  async function reportAutoUpdateEvent(input) {
46
46
  let apiKey = "";
47
47
  try {
48
- apiKey = _chunk2HPTLBNBjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
48
+ apiKey = _chunkIIWXBRDKjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
49
49
  } catch (e2) {
50
50
  return;
51
51
  }
@@ -61,15 +61,15 @@ async function reportAutoUpdateEvent(input) {
61
61
  headers: {
62
62
  Authorization: `Bearer ${apiKey}`,
63
63
  "Content-Type": "application/json",
64
- "User-Agent": `deepline-ts-sdk/${_chunkSAJWYN4Bjs.SDK_VERSION}`,
64
+ "User-Agent": `deepline-ts-sdk/${_chunkCXZLHBNKjs.SDK_VERSION}`,
65
65
  "X-Deepline-Client-Family": "sdk",
66
66
  "X-Deepline-CLI-Family": "sdk",
67
- "X-Deepline-CLI-Version": _chunkSAJWYN4Bjs.SDK_VERSION,
68
- "X-Deepline-SDK-Version": _chunkSAJWYN4Bjs.SDK_VERSION
67
+ "X-Deepline-CLI-Version": _chunkCXZLHBNKjs.SDK_VERSION,
68
+ "X-Deepline-SDK-Version": _chunkCXZLHBNKjs.SDK_VERSION
69
69
  },
70
70
  body: JSON.stringify({
71
71
  event: input.event,
72
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkSAJWYN4Bjs.SDK_VERSION,
72
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkCXZLHBNKjs.SDK_VERSION,
73
73
  target_version: input.response.latest,
74
74
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
75
75
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -88,13 +88,13 @@ function envTruthy(name) {
88
88
  return value === "1" || value === "true" || value === "yes";
89
89
  }
90
90
  function shouldSkipSelfUpdate(policy) {
91
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkOVYXYTEPjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkIVFFCAV2js.isCiEnvironment.call(void 0, );
91
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkHDLMX7SGjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunk5OJOFUMOjs.isCiEnvironment.call(void 0, );
92
92
  }
93
93
  function isDowngradeAutoUpdateResponse(response) {
94
94
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
95
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkSAJWYN4Bjs.SDK_VERSION;
95
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkCXZLHBNKjs.SDK_VERSION;
96
96
  if (!target) return false;
97
- return _chunkOVYXYTEPjs.compareUpdateVersions.call(void 0, target, current) < 0;
97
+ return _chunkHDLMX7SGjs.compareUpdateVersions.call(void 0, target, current) < 0;
98
98
  }
99
99
  function relaunchCurrentCommand(plan, runtime = {}) {
100
100
  return new Promise((resolve) => {
@@ -147,7 +147,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
147
147
  }
148
148
  if (isDowngradeAutoUpdateResponse(response)) {
149
149
  const target = response.latest;
150
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkSAJWYN4Bjs.SDK_VERSION;
150
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkCXZLHBNKjs.SDK_VERSION;
151
151
  process.stderr.write(
152
152
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
153
153
  `
@@ -155,21 +155,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
155
155
  return false;
156
156
  }
157
157
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
158
- const plan = _chunkOVYXYTEPjs.resolveUpdatePlan.call(void 0, {
158
+ const plan = _chunkHDLMX7SGjs.resolveUpdatePlan.call(void 0, {
159
159
  packageSpec,
160
160
  requireVerifiedNpmOwnership: true,
161
161
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
162
162
  });
163
- if (!_chunkOVYXYTEPjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
163
+ if (!_chunkHDLMX7SGjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
164
164
  return false;
165
165
  }
166
166
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
167
167
  deferredAutoUpdate = async () => {
168
168
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
169
169
  };
170
- if (_chunkGJOGFWX3js.isJsonOutputMode.call(void 0, )) {
170
+ if (_chunkI2JIWKCQjs.isJsonOutputMode.call(void 0, )) {
171
171
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
172
- _chunkGJOGFWX3js.addJsonNotice.call(void 0, {
172
+ _chunkI2JIWKCQjs.addJsonNotice.call(void 0, {
173
173
  code: "sdk_update_queued",
174
174
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
175
175
  });
@@ -182,7 +182,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
182
182
  return true;
183
183
  }
184
184
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
185
- if (!_chunkOVYXYTEPjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
185
+ if (!_chunkHDLMX7SGjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
186
186
  const autoUpdate = response.auto_update;
187
187
  const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
188
188
  process.stderr.write(
@@ -195,7 +195,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
195
195
  event: "started",
196
196
  installKind: plan.kind
197
197
  });
198
- const updateResult = await _chunkOVYXYTEPjs.runAutomaticUpdatePlan.call(void 0, plan);
198
+ const updateResult = await _chunkHDLMX7SGjs.runAutomaticUpdatePlan.call(void 0, plan);
199
199
  if (updateResult.status === "skipped_previous_failure") {
200
200
  void reportAutoUpdateEvent({
201
201
  baseUrl,
@@ -233,7 +233,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
233
233
  exitCode: 0
234
234
  });
235
235
  try {
236
- await _chunkIVFFCAV2js.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
236
+ await _chunk5OJOFUMOjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
237
237
  mode: "detached",
238
238
  update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
239
239
  afterCliUpdate: {
@@ -260,7 +260,7 @@ var _crypto = require('crypto');
260
260
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
261
261
  var activeToolExecuteCommand = null;
262
262
  function progressLine(line) {
263
- if (!_chunkGJOGFWX3js.isJsonOutputMode.call(void 0, )) console.error(line);
263
+ if (!_chunkI2JIWKCQjs.isJsonOutputMode.call(void 0, )) console.error(line);
264
264
  }
265
265
  function beginToolExecuteCommand() {
266
266
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;