deepline 0.3.556 → 0.3.558

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 (144) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/cli/{auth-MT7DWCZO.mjs → auth-JJXTMFWH.mjs} +5 -5
  3. package/dist/cli/auth-TWSGYOWI.js +44 -0
  4. package/dist/cli/{billing-4NOM52PO.mjs → billing-RBFJMAI5.mjs} +8 -8
  5. package/dist/cli/{billing-3HHUTNME.js → billing-V3TJKUHY.js} +99 -99
  6. package/dist/cli/{chunk-ASOLVHDL.mjs → chunk-2FFZ5SEU.mjs} +2 -2
  7. package/dist/cli/{chunk-NGB2VSGB.js → chunk-4CTBC6Q7.js} +3 -3
  8. package/dist/cli/{chunk-VCYPHVUE.mjs → chunk-4SVFZCCI.mjs} +2 -2
  9. package/dist/cli/{chunk-F5CE3JZQ.js → chunk-5V45LY6Y.js} +9 -9
  10. package/dist/cli/{chunk-GZFYLAXJ.js → chunk-67J4K4G2.js} +20 -20
  11. package/dist/cli/{chunk-EN5NHCCQ.js → chunk-6ASDTHEN.js} +17 -17
  12. package/dist/cli/{chunk-3R6RBAQW.js → chunk-6BDLYZYL.js} +26 -26
  13. package/dist/cli/{chunk-KA77KT46.mjs → chunk-6GBQNS6L.mjs} +1 -1
  14. package/dist/cli/{chunk-UO7NPJEK.js → chunk-6LFPPAMD.js} +3 -3
  15. package/dist/cli/{chunk-FQYEHUVR.mjs → chunk-6PIQC2XE.mjs} +3 -3
  16. package/dist/cli/{chunk-QVNX6AC3.js → chunk-7Q3EXOLC.js} +12 -12
  17. package/dist/cli/{chunk-VQZQCPCA.mjs → chunk-7Q5I4KEG.mjs} +4 -4
  18. package/dist/cli/{chunk-4HSPHSUB.js → chunk-A5MRMCMW.js} +5 -5
  19. package/dist/cli/{chunk-DAQQL743.mjs → chunk-AL4QQKUK.mjs} +2 -2
  20. package/dist/cli/{chunk-JRYF5W3A.mjs → chunk-ARGJDP77.mjs} +2 -2
  21. package/dist/cli/{chunk-4U5HIMZY.js → chunk-BFM2RCC3.js} +2 -2
  22. package/dist/cli/{chunk-C4GWTN3J.mjs → chunk-BHHCQGUY.mjs} +7 -7
  23. package/dist/cli/{chunk-XFZX6FNM.mjs → chunk-BM4GE67C.mjs} +18 -2
  24. package/dist/cli/{chunk-W5JM2QCI.mjs → chunk-BWWLLK56.mjs} +5 -5
  25. package/dist/cli/{chunk-7MD36QLK.js → chunk-C7BQBKRZ.js} +4 -4
  26. package/dist/cli/{chunk-KNOS6H4E.mjs → chunk-CB5DIX5K.mjs} +2 -2
  27. package/dist/cli/{chunk-ZGOTBBY3.mjs → chunk-CEEUL7ER.mjs} +1 -1
  28. package/dist/cli/{chunk-YO2FDGAN.mjs → chunk-CG3R4ZFS.mjs} +2 -2
  29. package/dist/cli/{chunk-MUIJGT2B.mjs → chunk-D4GCU735.mjs} +1 -1
  30. package/dist/cli/{chunk-YGW2CSB7.js → chunk-DDI4LNVC.js} +41 -41
  31. package/dist/cli/{chunk-L57JAXHI.mjs → chunk-DJAP2M5M.mjs} +1 -1
  32. package/dist/cli/{chunk-TGUQET3O.mjs → chunk-ENHQBPR5.mjs} +1 -1
  33. package/dist/cli/{chunk-SWVGAIJD.js → chunk-FCG42RQZ.js} +20 -20
  34. package/dist/cli/{chunk-UYPXQFJ4.mjs → chunk-FF3BWNLL.mjs} +1 -1
  35. package/dist/cli/{chunk-KN3NETDA.js → chunk-FH55SB63.js} +11 -11
  36. package/dist/cli/{chunk-LW2FKVCQ.mjs → chunk-GAQ6VSRS.mjs} +1 -1
  37. package/dist/cli/{chunk-PC2FTUCP.mjs → chunk-HUJMFETO.mjs} +2 -2
  38. package/dist/cli/{chunk-GY4S6A72.js → chunk-I3PX6NGG.js} +5 -5
  39. package/dist/cli/{chunk-ASMHON7N.mjs → chunk-I57JNBKA.mjs} +5 -5
  40. package/dist/cli/{chunk-CJF7AFBD.js → chunk-IS67LBNV.js} +2 -2
  41. package/dist/cli/{chunk-IFHMGEDN.mjs → chunk-KMNLER7F.mjs} +13 -13
  42. package/dist/cli/{chunk-LY5MMXFF.js → chunk-LHPYCJNL.js} +18 -2
  43. package/dist/cli/{chunk-QGQPVPJN.mjs → chunk-LIS6UJSC.mjs} +1 -1
  44. package/dist/cli/{chunk-N6LM2Q6V.js → chunk-M4CJGF53.js} +5 -5
  45. package/dist/cli/{chunk-P6ZIR4QD.mjs → chunk-MAN4IEO4.mjs} +4 -4
  46. package/dist/cli/{chunk-LU3OLGF3.js → chunk-NADXF2C5.js} +53 -53
  47. package/dist/cli/{chunk-CZ2RJTAQ.js → chunk-NAJAAIEE.js} +48 -48
  48. package/dist/cli/{chunk-KUDSTDSL.js → chunk-OWOUDGHO.js} +23 -23
  49. package/dist/cli/{chunk-O7QRNMSW.mjs → chunk-P2MVPTFJ.mjs} +1 -1
  50. package/dist/cli/{chunk-UERLY7PX.mjs → chunk-P3SLGOGA.mjs} +2 -2
  51. package/dist/cli/{chunk-G6BX5VJN.js → chunk-PAJLUB37.js} +274 -274
  52. package/dist/cli/{chunk-FFXLMJ5O.js → chunk-QGDU23YW.js} +8 -8
  53. package/dist/cli/{chunk-DAS66RGZ.js → chunk-QGJ4DYGE.js} +1 -1
  54. package/dist/cli/{chunk-KONNXKKX.js → chunk-RIQYBKHK.js} +2 -2
  55. package/dist/cli/{chunk-2ZS5PZB6.mjs → chunk-T6W7SKE7.mjs} +2 -2
  56. package/dist/cli/{chunk-3IKGZ4CG.js → chunk-TBLP7HDL.js} +7 -7
  57. package/dist/cli/{chunk-K4IPTGU5.js → chunk-VPJ663PV.js} +10 -10
  58. package/dist/cli/{chunk-B4RWCBU5.mjs → chunk-WJ7RY3PJ.mjs} +3 -3
  59. package/dist/cli/{chunk-HJO3MZ4M.mjs → chunk-XPSSXKBT.mjs} +2 -2
  60. package/dist/cli/{chunk-2NZQ432X.js → chunk-XV4DHKZ2.js} +13 -13
  61. package/dist/cli/{chunk-C2XLKCRH.mjs → chunk-YBJSDL34.mjs} +5 -5
  62. package/dist/cli/{chunk-7ERE37SK.js → chunk-YJ46MJMT.js} +6 -6
  63. package/dist/cli/{chunk-PWQ3IUD4.js → chunk-YVWINBZL.js} +20 -20
  64. package/dist/cli/concurrent-runs-help-4VRUNL3T.js +22 -0
  65. package/dist/cli/{concurrent-runs-help-AFJDK2SY.mjs → concurrent-runs-help-ZWWMHCK4.mjs} +6 -6
  66. package/dist/cli/{csv-CATF6MZU.mjs → csv-D76CXYOL.mjs} +4 -4
  67. package/dist/cli/{csv-NTNQLQXG.js → csv-V2FR4SO2.js} +13 -13
  68. package/dist/cli/{db-U3FK4FFM.mjs → db-2D7PD7A3.mjs} +6 -6
  69. package/dist/cli/{db-IKFKNLW5.js → db-B23O6Q4O.js} +27 -27
  70. package/dist/cli/{describe-F7OQQ7IO.mjs → describe-3LG6VO3D.mjs} +21 -21
  71. package/dist/cli/describe-QE4ITFPG.js +50 -0
  72. package/dist/cli/describe-core.d.mts +5 -0
  73. package/dist/cli/describe-core.d.ts +5 -0
  74. package/dist/cli/describe-core.js +4 -4
  75. package/dist/cli/describe-core.mjs +3 -3
  76. package/dist/cli/{executions-3TA5SATU.js → executions-4P4UBPMX.js} +8 -8
  77. package/dist/cli/{executions-6KUA7RPH.mjs → executions-ORWO4SR4.mjs} +6 -6
  78. package/dist/cli/{feedback-U5I6UTJG.mjs → feedback-AY47IRDD.mjs} +6 -6
  79. package/dist/cli/{feedback-GX7RVC4O.js → feedback-LPHCSOJT.js} +14 -14
  80. package/dist/cli/{git-DYNKPPNT.mjs → git-LQGZNBZM.mjs} +5 -5
  81. package/dist/cli/git-XXVGEPEM.js +26 -0
  82. package/dist/cli/index.js +143 -143
  83. package/dist/cli/index.mjs +45 -45
  84. package/dist/cli/{integrations-7FATBEB5.mjs → integrations-NEUZIBQT.mjs} +7 -7
  85. package/dist/cli/{integrations-PQX2FRPT.js → integrations-QEOUALDR.js} +15 -15
  86. package/dist/cli/{legacy-noops-ODATBQUL.mjs → legacy-noops-4G3DXN57.mjs} +6 -6
  87. package/dist/cli/{legacy-noops-JNXQWYUR.js → legacy-noops-PUO5VKHN.js} +9 -9
  88. package/dist/cli/{mcp-RXBXC4HW.js → mcp-EWAZKABW.js} +24 -24
  89. package/dist/cli/{mcp-UDNG33WQ.mjs → mcp-USM2QUKK.mjs} +4 -4
  90. package/dist/cli/{monitors-NDAGIRO4.js → monitors-2BI5J46A.js} +100 -100
  91. package/dist/cli/{monitors-L56QYFRW.mjs → monitors-T6FJSZCP.mjs} +7 -7
  92. package/dist/cli/{org-EA5DL5I7.mjs → org-BT45O64S.mjs} +6 -6
  93. package/dist/cli/{org-Q47O5ZTI.js → org-V6V3E7F7.js} +121 -121
  94. package/dist/cli/{outcomes-773GPYXN.mjs → outcomes-2T6W554M.mjs} +6 -6
  95. package/dist/cli/{outcomes-27ENBTWE.js → outcomes-B6RPHM6M.js} +14 -14
  96. package/dist/cli/{play-O6RGVBT7.mjs → play-CBBGJPRI.mjs} +20 -20
  97. package/dist/cli/{play-BOZIT25U.js → play-YCFVGEWK.js} +337 -337
  98. package/dist/cli/{providers-S2E5IGFO.js → providers-AGRUGBIY.js} +9 -9
  99. package/dist/cli/{providers-OOKYSLMJ.mjs → providers-RHBUQFFO.mjs} +6 -6
  100. package/dist/cli/{quickstart-YXKRRK43.js → quickstart-6N2KPWII.js} +6 -6
  101. package/dist/cli/{quickstart-7GVZ7YCQ.mjs → quickstart-OPR5NLIQ.mjs} +4 -4
  102. package/dist/cli/{run-3QGOVUHF.mjs → run-HAU2STMQ.mjs} +26 -26
  103. package/dist/cli/{run-7DXBARRO.js → run-MMANMS4E.js} +48 -48
  104. package/dist/cli/search-7LMUBMDC.js +32 -0
  105. package/dist/cli/{search-5UIB4QSG.mjs → search-TGWQMQ2C.mjs} +7 -7
  106. package/dist/cli/{search-output-MSUN3KPW.mjs → search-output-DZBYNJEO.mjs} +5 -5
  107. package/dist/cli/{search-output-C7ZPRC2B.js → search-output-VVM3DO2H.js} +8 -8
  108. package/dist/cli/{secrets-FU3DFFB6.js → secrets-V5WD552F.js} +15 -15
  109. package/dist/cli/{secrets-JYJS2VHO.mjs → secrets-Z6NEKNWM.mjs} +6 -6
  110. package/dist/cli/{sessions-JBD64DOX.mjs → sessions-C5GNXSPB.mjs} +6 -6
  111. package/dist/cli/sessions-VYIPZBSR.js +23 -0
  112. package/dist/cli/{settings-GDJGQXKT.js → settings-EZPZXJDG.js} +85 -85
  113. package/dist/cli/{settings-4KFYWSJI.mjs → settings-QUDVUIOJ.mjs} +12 -12
  114. package/dist/cli/{setup-46VMBV3K.mjs → setup-BCJBVQTI.mjs} +9 -9
  115. package/dist/cli/{setup-OKLUCTU7.js → setup-QY5VVGWQ.js} +49 -49
  116. package/dist/cli/{skills-XRJNXEEA.mjs → skills-LY2WZ22U.mjs} +7 -7
  117. package/dist/cli/skills-PKNTNDYL.js +37 -0
  118. package/dist/cli/tools-D6CKFZL3.js +57 -0
  119. package/dist/cli/{tools-WEBVZN3X.mjs → tools-FNCTTFWA.mjs} +19 -19
  120. package/dist/cli/update-E2H2DWH4.js +37 -0
  121. package/dist/cli/{update-RKTYJ6BO.mjs → update-YKQAC4AQ.mjs} +9 -9
  122. package/dist/cli/{views-VTOQ4U75.mjs → views-5R5NVYHL.mjs} +6 -6
  123. package/dist/cli/{views-XLAPDQXQ.js → views-NBTOBB67.js} +21 -21
  124. package/dist/cli/{workflow-RCO4R46B.mjs → workflow-HBDW43GT.mjs} +7 -7
  125. package/dist/cli/{workflow-HH4XVYPN.js → workflow-VNPT5VQS.js} +17 -17
  126. package/dist/index.js +9 -9
  127. package/dist/index.mjs +6 -6
  128. package/dist/install-integrity.json +118 -118
  129. package/dist/release.d.mts +1 -1
  130. package/dist/release.d.ts +1 -1
  131. package/dist/release.js +2 -2
  132. package/dist/release.mjs +1 -1
  133. package/dist/server.js +5 -5
  134. package/dist/server.mjs +3 -3
  135. package/package.json +1 -1
  136. package/dist/cli/auth-HA7TI6SA.js +0 -44
  137. package/dist/cli/concurrent-runs-help-ZHOCLINF.js +0 -22
  138. package/dist/cli/describe-ZHNZ4H6S.js +0 -50
  139. package/dist/cli/git-6DK7N4V7.js +0 -26
  140. package/dist/cli/search-4DZYX3FR.js +0 -32
  141. package/dist/cli/sessions-E2IX3GU7.js +0 -23
  142. package/dist/cli/skills-GJS4Q7NU.js +0 -37
  143. package/dist/cli/tools-LICQXFYA.js +0 -57
  144. package/dist/cli/update-3XH3NVVY.js +0 -37
@@ -1,6 +1,6 @@
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 _chunkPWQ3IUD4js = require('./chunk-PWQ3IUD4.js');
3
+ var _chunkYVWINBZLjs = require('./chunk-YVWINBZL.js');
4
4
 
5
5
  // src/cli/feedback-preferences.ts
6
6
 
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
57
57
  const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
58
58
  const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
59
59
  if (options.json) {
60
- _chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
60
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
61
61
  { ok: false, code, exitCode: 2, message },
62
62
  { json: true }
63
63
  );
@@ -2,7 +2,7 @@ import {
2
2
  addDescribeOptions,
3
3
  recordApiResponse,
4
4
  writeExecutionOutput
5
- } from "./chunk-YO2FDGAN.mjs";
5
+ } from "./chunk-CG3R4ZFS.mjs";
6
6
  import {
7
7
  registerIntegrationBalanceCommand,
8
8
  registerIntegrationConnectCommand,
@@ -11,11 +11,11 @@ import {
11
11
  registerLegacyHubSpotMembersCommand,
12
12
  registerLegacyWorkspaceConnectionCommand,
13
13
  registerWorkspaceConnectionListCommand
14
- } from "./chunk-HJO3MZ4M.mjs";
14
+ } from "./chunk-XPSSXKBT.mjs";
15
15
  import {
16
16
  recentSearchRef,
17
17
  registerDeprecatedSearchCommand
18
- } from "./chunk-VQZQCPCA.mjs";
18
+ } from "./chunk-7Q5I4KEG.mjs";
19
19
  import {
20
20
  Capability,
21
21
  arrayField,
@@ -37,10 +37,10 @@ import {
37
37
  toolInputFieldsForDisplay,
38
38
  toolMetadataJsonForDescribe,
39
39
  toolOutputFieldsForDisplay
40
- } from "./chunk-TGUQET3O.mjs";
40
+ } from "./chunk-ENHQBPR5.mjs";
41
41
  import {
42
42
  rateLimitQualifier
43
- } from "./chunk-XFZX6FNM.mjs";
43
+ } from "./chunk-BM4GE67C.mjs";
44
44
  import {
45
45
  shellArgument,
46
46
  shellQuote
@@ -57,29 +57,29 @@ import {
57
57
  } from "./chunk-FIVKWNMT.mjs";
58
58
  import {
59
59
  DeeplineClient
60
- } from "./chunk-2ZS5PZB6.mjs";
60
+ } from "./chunk-T6W7SKE7.mjs";
61
61
  import {
62
62
  validateExecutionIdempotencyKey
63
- } from "./chunk-UYPXQFJ4.mjs";
63
+ } from "./chunk-FF3BWNLL.mjs";
64
64
  import {
65
65
  beginToolExecuteCommand,
66
66
  getToolExecuteInvocationId,
67
67
  maybeAutoUpdateAndRelaunch,
68
68
  registerCompatibilityCatalog,
69
69
  runToolExecuteStage
70
- } from "./chunk-C2XLKCRH.mjs";
70
+ } from "./chunk-YBJSDL34.mjs";
71
71
  import {
72
72
  isCliTraceEnabled,
73
73
  recordCliTrace,
74
74
  resolveCliMaintenancePolicy
75
- } from "./chunk-QGQPVPJN.mjs";
75
+ } from "./chunk-LIS6UJSC.mjs";
76
76
  import {
77
77
  checkSdkCompatibility,
78
78
  enforceSdkCompatibilityResponse,
79
79
  flushDeferredSkillsSyncNotices,
80
80
  requireSdkCompatibility,
81
81
  syncSdkSkillsIfNeeded
82
- } from "./chunk-ASMHON7N.mjs";
82
+ } from "./chunk-I57JNBKA.mjs";
83
83
  import {
84
84
  errorToJsonPayload,
85
85
  printCommandEnvelope,
@@ -88,12 +88,12 @@ import {
88
88
  printJsonError,
89
89
  renderCommandEnvelopeText,
90
90
  shouldEmitJson
91
- } from "./chunk-KNOS6H4E.mjs";
91
+ } from "./chunk-CB5DIX5K.mjs";
92
92
  import {
93
93
  readSdkSkillsLocalVersion,
94
94
  resolveConfig,
95
95
  sdkCliStateDirPath
96
- } from "./chunk-ZGOTBBY3.mjs";
96
+ } from "./chunk-CEEUL7ER.mjs";
97
97
  import {
98
98
  DeeplineError
99
99
  } from "./chunk-Z3A2S3QM.mjs";
@@ -1052,7 +1052,7 @@ Examples:
1052
1052
  process.exitCode = await narrowView();
1053
1053
  return;
1054
1054
  }
1055
- const { describeAnything } = await import("./describe-F7OQQ7IO.mjs");
1055
+ const { describeAnything } = await import("./describe-3LG6VO3D.mjs");
1056
1056
  process.exitCode = await describeAnything(
1057
1057
  toolId,
1058
1058
  {
@@ -99,8 +99,22 @@ function schemaType(schema) {
99
99
  type: nonNull ? nonNull + nullable : nullable ? "null" : "unknown"
100
100
  };
101
101
  }
102
+ function pageSizeNote(schema) {
103
+ const declaration = schema.pageSize;
104
+ if (!isRecord(declaration)) return void 0;
105
+ const { minimum, maximum } = schema;
106
+ const range = typeof minimum === "number" && typeof maximum === "number" ? ` ${minimum} to ${maximum}` : typeof maximum === "number" ? ` up to ${maximum}` : "";
107
+ const notes = [
108
+ `page size${range}`,
109
+ typeof maximum === "number" ? `more runs at ${maximum}` : void 0,
110
+ typeof declaration.next === "string" ? `next page: ${declaration.next}` : typeof declaration.nextHint === "string" ? declaration.nextHint : void 0,
111
+ typeof declaration.count === "string" ? `to count: ${declaration.count}` : declaration.count === false ? "no count mode" : void 0
112
+ ];
113
+ return notes.filter(Boolean).join("; ");
114
+ }
102
115
  function schemaField(name, node, required) {
103
116
  const schema = isRecord(node) ? node : {};
117
+ const pageSize = pageSizeNote(schema);
104
118
  const { type, fields } = schemaType(schema);
105
119
  const example = [
106
120
  schema.example,
@@ -115,7 +129,8 @@ function schemaField(name, node, required) {
115
129
  ...typeof schema.description === "string" && schema.description ? { description: schema.description } : {},
116
130
  ...fields ? { fields } : {},
117
131
  ...schema.secondary === true ? { secondary: true } : {},
118
- ...typeof schema.means === "string" ? { means: schema.means } : {}
132
+ ...typeof schema.means === "string" ? { means: schema.means } : {},
133
+ ...pageSize ? { pageSize } : {}
119
134
  };
120
135
  }
121
136
  function resolveSchemaReference(root, ref) {
@@ -434,7 +449,7 @@ function schemaBlocks(sections, maxDepth, everyField = false) {
434
449
  const start = `${indent}${JSON.stringify(field.name)}${field.required ? "" : "?"}: `;
435
450
  if (!field.fields) {
436
451
  return [
437
- `${start}${field.type},${comment([field.means, example, field.description])}`
452
+ `${start}${field.type},${comment([field.means, example, field.pageSize, field.description])}`
438
453
  ];
439
454
  }
440
455
  const [before, after] = field.type.split(SHAPE);
@@ -750,6 +765,7 @@ function jsonFields(fields, options) {
750
765
  ...options.input ? { required: field.required } : {},
751
766
  ...field.means ? { means: field.means } : {},
752
767
  ...field.example !== void 0 ? { example: field.example } : {},
768
+ ...field.pageSize ? { page_size: field.pageSize } : {},
753
769
  ...field.description && field.description !== _optionalChain([shape, 'optionalAccess', _21 => _21.description]) ? { description: field.description } : {},
754
770
  ...field.secondary ? { secondary: true } : {},
755
771
  ...field.read ? { read: field.read } : {},
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-KNOS6H4E.mjs";
3
+ } from "./chunk-CB5DIX5K.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";
@@ -1,16 +1,16 @@
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 _chunkFFXLMJ5Ojs = require('./chunk-FFXLMJ5O.js');
3
+ var _chunkQGDU23YWjs = require('./chunk-QGDU23YW.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkNGB2VSGBjs = require('./chunk-NGB2VSGB.js');
7
+ var _chunk4CTBC6Q7js = require('./chunk-4CTBC6Q7.js');
8
8
 
9
9
  // src/client.ts
10
- var DeeplineClient2 = class extends _chunkFFXLMJ5Ojs.DeeplineClient {
10
+ var DeeplineClient2 = class extends _chunkQGDU23YWjs.DeeplineClient {
11
11
  constructor(options) {
12
- const config = _chunkNGB2VSGBjs.resolveConfig.call(void 0, options);
13
- super(config, new (0, _chunkNGB2VSGBjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
12
+ const config = _chunk4CTBC6Q7js.resolveConfig.call(void 0, options);
13
+ super(config, new (0, _chunk4CTBC6Q7js.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
14
14
  }
15
15
  };
16
16
 
@@ -11,20 +11,20 @@ import {
11
11
  skillsInstallLeasePath,
12
12
  skillsSourceUrl,
13
13
  syncSdkSkillsIfNeeded
14
- } from "./chunk-ASMHON7N.mjs";
14
+ } from "./chunk-I57JNBKA.mjs";
15
15
  import {
16
16
  printCommandEnvelope
17
- } from "./chunk-KNOS6H4E.mjs";
17
+ } from "./chunk-CB5DIX5K.mjs";
18
18
  import {
19
19
  autoDetectBaseUrl,
20
20
  ensureProjectPrivatePathsIgnored,
21
21
  resolveProjectPinTarget,
22
22
  sdkCliStateDirPath
23
- } from "./chunk-ZGOTBBY3.mjs";
23
+ } from "./chunk-CEEUL7ER.mjs";
24
24
  import {
25
25
  SDK_VERSION,
26
26
  detectAgentRuntime
27
- } from "./chunk-LW2FKVCQ.mjs";
27
+ } from "./chunk-GAQ6VSRS.mjs";
28
28
  import {
29
29
  DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
30
30
  } from "./chunk-5JPKRDFC.mjs";
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkPWQ3IUD4js = require('./chunk-PWQ3IUD4.js');
5
+ var _chunkYVWINBZLjs = require('./chunk-YVWINBZL.js');
6
6
 
7
7
 
8
8
 
@@ -22,14 +22,14 @@ var _chunkPWQ3IUD4js = require('./chunk-PWQ3IUD4.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkNGB2VSGBjs = require('./chunk-NGB2VSGB.js');
25
+ var _chunk4CTBC6Q7js = require('./chunk-4CTBC6Q7.js');
26
26
 
27
27
 
28
28
 
29
29
 
30
30
 
31
31
 
32
- var _chunk7MD36QLKjs = require('./chunk-7MD36QLK.js');
32
+ var _chunkC7BQBKRZjs = require('./chunk-C7BQBKRZ.js');
33
33
 
34
34
 
35
35
  var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
@@ -60,7 +60,7 @@ function statusBannerLine(value) {
60
60
  return `Service notice: ${banner.message}`;
61
61
  }
62
62
  function envFilePath(baseUrl) {
63
- return _chunkNGB2VSGBjs.hostEnvFilePath.call(void 0, baseUrl);
63
+ return _chunk4CTBC6Q7js.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 = _chunkNGB2VSGBjs.resolveProjectPinTarget.call(void 0, );
76
+ const target = _chunk4CTBC6Q7js.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 `${_chunkNGB2VSGBjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
86
+ return `${_chunk4CTBC6Q7js.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
87
87
  }
88
88
  function legacyPendingClaimTokenPath(baseUrl) {
89
- return `${_chunkNGB2VSGBjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
89
+ return `${_chunk4CTBC6Q7js.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 _chunk7MD36QLKjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
194
+ return _chunkC7BQBKRZjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
195
195
  }
196
196
  function saveEnvValues(values, baseUrl, scope) {
197
197
  const filtered = {
198
- ...values[_chunkNGB2VSGBjs.HOST_URL_ENV] ? { [_chunkNGB2VSGBjs.HOST_URL_ENV]: values[_chunkNGB2VSGBjs.HOST_URL_ENV] } : {},
199
- ...values[_chunkNGB2VSGBjs.API_KEY_ENV] ? { [_chunkNGB2VSGBjs.API_KEY_ENV]: values[_chunkNGB2VSGBjs.API_KEY_ENV] } : {},
200
- ...values[_chunkNGB2VSGBjs.ACTIVE_ORG_ID_ENV] ? { [_chunkNGB2VSGBjs.ACTIVE_ORG_ID_ENV]: values[_chunkNGB2VSGBjs.ACTIVE_ORG_ID_ENV] } : {},
201
- ...Object.prototype.hasOwnProperty.call(values, _chunkNGB2VSGBjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkNGB2VSGBjs.ACTIVE_ORG_NAME_ENV]: values[_chunkNGB2VSGBjs.ACTIVE_ORG_NAME_ENV] } : {},
198
+ ...values[_chunk4CTBC6Q7js.HOST_URL_ENV] ? { [_chunk4CTBC6Q7js.HOST_URL_ENV]: values[_chunk4CTBC6Q7js.HOST_URL_ENV] } : {},
199
+ ...values[_chunk4CTBC6Q7js.API_KEY_ENV] ? { [_chunk4CTBC6Q7js.API_KEY_ENV]: values[_chunk4CTBC6Q7js.API_KEY_ENV] } : {},
200
+ ...values[_chunk4CTBC6Q7js.ACTIVE_ORG_ID_ENV] ? { [_chunk4CTBC6Q7js.ACTIVE_ORG_ID_ENV]: values[_chunk4CTBC6Q7js.ACTIVE_ORG_ID_ENV] } : {},
201
+ ...Object.prototype.hasOwnProperty.call(values, _chunk4CTBC6Q7js.ACTIVE_ORG_NAME_ENV) ? { [_chunk4CTBC6Q7js.ACTIVE_ORG_NAME_ENV]: values[_chunk4CTBC6Q7js.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, _chunkNGB2VSGBjs.FEATURES_ENV) ? { [_chunkNGB2VSGBjs.FEATURES_ENV]: values[_chunkNGB2VSGBjs.FEATURES_ENV] } : {}
203
+ ...Object.prototype.hasOwnProperty.call(values, _chunk4CTBC6Q7js.FEATURES_ENV) ? { [_chunk4CTBC6Q7js.FEATURES_ENV]: values[_chunk4CTBC6Q7js.FEATURES_ENV] } : {}
204
204
  };
205
205
  if (scope === "folder") {
206
- _chunkNGB2VSGBjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
206
+ _chunk4CTBC6Q7js.saveProjectDeeplineEnvValues.call(void 0, filtered);
207
207
  } else {
208
- _chunkNGB2VSGBjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
208
+ _chunk4CTBC6Q7js.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
- [_chunkNGB2VSGBjs.ACTIVE_ORG_ID_ENV]: orgId,
217
- [_chunkNGB2VSGBjs.ACTIVE_ORG_NAME_ENV]: orgName,
218
- ..._chunkNGB2VSGBjs.featureEnvValues.call(void 0, data)
216
+ [_chunk4CTBC6Q7js.ACTIVE_ORG_ID_ENV]: orgId,
217
+ [_chunk4CTBC6Q7js.ACTIVE_ORG_NAME_ENV]: orgName,
218
+ ..._chunk4CTBC6Q7js.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/${_chunk7MD36QLKjs.SDK_VERSION}`,
224
+ "User-Agent": `deepline-ts-sdk/${_chunkC7BQBKRZjs.SDK_VERSION}`,
225
225
  "X-Deepline-Client-Family": "sdk",
226
226
  "X-Deepline-CLI-Family": "sdk",
227
- "X-Deepline-Agent-Runtime": _chunk7MD36QLKjs.detectAgentRuntime.call(void 0, ),
228
- "X-Deepline-CLI-Version": _chunk7MD36QLKjs.SDK_VERSION,
229
- "X-Deepline-SDK-Version": _chunk7MD36QLKjs.SDK_VERSION,
230
- "X-Deepline-API-Contract": _chunk7MD36QLKjs.SDK_API_CONTRACT
227
+ "X-Deepline-Agent-Runtime": _chunkC7BQBKRZjs.detectAgentRuntime.call(void 0, ),
228
+ "X-Deepline-CLI-Version": _chunkC7BQBKRZjs.SDK_VERSION,
229
+ "X-Deepline-SDK-Version": _chunkC7BQBKRZjs.SDK_VERSION,
230
+ "X-Deepline-API-Contract": _chunkC7BQBKRZjs.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 = _chunk7MD36QLKjs.networkCauseCode.call(void 0, failure);
269
+ const causeCode = _chunkC7BQBKRZjs.networkCauseCode.call(void 0, failure);
270
270
  throw Object.assign(
271
271
  new (0, _chunkLFQJW4S2js.DeeplineError)(
272
- _chunk7MD36QLKjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
272
+ _chunkC7BQBKRZjs.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" ? _chunkNGB2VSGBjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkNGB2VSGBjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
289
+ const apiKey = input.authScope === "folder" ? _chunk4CTBC6Q7js.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunk4CTBC6Q7js.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 = _chunkNGB2VSGBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
418
+ const baseUrl = _chunk4CTBC6Q7js.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
- [_chunkNGB2VSGBjs.HOST_URL_ENV]: baseUrl
489
+ [_chunk4CTBC6Q7js.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" && _chunk7MD36QLKjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
496
+ const shouldOpen = waitMode !== "no" && _chunkC7BQBKRZjs.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 && _chunkPWQ3IUD4js.openInBrowser.call(void 0, claimUrl) === "opened";
504
+ const opened = shouldOpen && _chunkYVWINBZLjs.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
- [_chunkNGB2VSGBjs.HOST_URL_ENV]: baseUrl,
558
- [_chunkNGB2VSGBjs.API_KEY_ENV]: apiKey,
557
+ [_chunk4CTBC6Q7js.HOST_URL_ENV]: baseUrl,
558
+ [_chunk4CTBC6Q7js.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 = _chunkNGB2VSGBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
580
+ const baseUrl = _chunk4CTBC6Q7js.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" ? _chunkNGB2VSGBjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkNGB2VSGBjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
604
+ const scopedApiKey = authScope === "folder" ? _chunk4CTBC6Q7js.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk4CTBC6Q7js.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
- [_chunkNGB2VSGBjs.HOST_URL_ENV]: baseUrl,
668
- [_chunkNGB2VSGBjs.API_KEY_ENV]: apiKey,
667
+ [_chunk4CTBC6Q7js.HOST_URL_ENV]: baseUrl,
668
+ [_chunk4CTBC6Q7js.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 = _chunkNGB2VSGBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
699
- const apiKey = _chunkNGB2VSGBjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
698
+ const baseUrl = _chunk4CTBC6Q7js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
699
+ const apiKey = _chunk4CTBC6Q7js.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 = _chunkNGB2VSGBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
722
+ const baseUrl = _chunk4CTBC6Q7js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
723
723
  const reveal = args.includes("--reveal");
724
- const jsonOutput = _chunkPWQ3IUD4js.argsWantJson.call(void 0, args);
724
+ const jsonOutput = _chunkYVWINBZLjs.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" ? _chunkNGB2VSGBjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkNGB2VSGBjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkNGB2VSGBjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
765
+ const apiKey = authScope === "folder" ? _chunk4CTBC6Q7js.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunk4CTBC6Q7js.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk4CTBC6Q7js.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
- _chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
772
+ _chunkYVWINBZLjs.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
- _chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
802
+ _chunkYVWINBZLjs.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
- _chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
835
+ _chunkYVWINBZLjs.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, () => ( (_chunkNGB2VSGBjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
862
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunk4CTBC6Q7js.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
- [_chunkNGB2VSGBjs.HOST_URL_ENV]: baseUrl,
891
- [_chunkNGB2VSGBjs.API_KEY_ENV]: apiKeyResp,
890
+ [_chunk4CTBC6Q7js.HOST_URL_ENV]: baseUrl,
891
+ [_chunk4CTBC6Q7js.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 = _chunkNGB2VSGBjs.resolveProjectPinTarget.call(void 0, );
898
+ const target = _chunk4CTBC6Q7js.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" || _chunkNGB2VSGBjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
905
- saveEnvValues(_chunkNGB2VSGBjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
904
+ } else if (resolvedAuthScope === "folder" || _chunk4CTBC6Q7js.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
905
+ saveEnvValues(_chunk4CTBC6Q7js.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
906
906
  }
907
- _chunkPWQ3IUD4js.printCommandEnvelope.call(void 0,
907
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
908
908
  {
909
909
  ...payload,
910
- ..._chunk7MD36QLKjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
911
- command_context: _chunkNGB2VSGBjs.resolveCliCommandContext.call(void 0,
910
+ ..._chunkC7BQBKRZjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
911
+ command_context: _chunk4CTBC6Q7js.resolveCliCommandContext.call(void 0,
912
912
  { baseUrl, apiKey },
913
913
  resolvedAuthScope
914
914
  )