deepline 0.3.364 → 0.3.365

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 (93) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/cli/{auth-AENUBFFJ.mjs → auth-4S26H44S.mjs} +4 -4
  3. package/dist/cli/auth-AXY27RN4.js +33 -0
  4. package/dist/cli/{billing-7YMKPYGM.mjs → billing-IMSQT3SR.mjs} +4 -4
  5. package/dist/cli/{billing-LATMZUM4.js → billing-JD3SGKJN.js} +73 -73
  6. package/dist/cli/{chunk-6SOSQ7MJ.js → chunk-4LQ3MCZU.js} +60 -60
  7. package/dist/cli/{chunk-LIEDEDMI.mjs → chunk-5OMKEQGL.mjs} +1 -1
  8. package/dist/cli/{chunk-3PNTOTQK.mjs → chunk-6RX64O34.mjs} +1 -1
  9. package/dist/cli/{chunk-3WNXXXUR.mjs → chunk-6ZZX3NVM.mjs} +2 -2
  10. package/dist/cli/{chunk-BEUEGHA4.js → chunk-7MF27ZQA.js} +2 -2
  11. package/dist/cli/{chunk-SW2I3DBK.mjs → chunk-7MS7JCBB.mjs} +2 -2
  12. package/dist/cli/{chunk-6NTOQXMC.js → chunk-E66FPPCT.js} +15 -15
  13. package/dist/cli/{chunk-PXA5K5CH.js → chunk-FTP4HYWY.js} +1 -1
  14. package/dist/cli/{chunk-WNO7IIFN.js → chunk-HHZIOAWI.js} +224 -224
  15. package/dist/cli/{chunk-6RCWXWL2.js → chunk-HNZNRS6I.js} +9 -9
  16. package/dist/cli/{chunk-RNVO2NHH.js → chunk-L7CUNWVR.js} +4 -4
  17. package/dist/cli/{chunk-6NPZL4HA.js → chunk-LYLMIZIK.js} +26 -26
  18. package/dist/cli/{chunk-GHV63LHK.mjs → chunk-NDQBGF6U.mjs} +1 -1
  19. package/dist/cli/{chunk-TZJHPJEX.mjs → chunk-NFBQAQRE.mjs} +5 -5
  20. package/dist/cli/{chunk-4JEWNPBO.mjs → chunk-QGVNIGCS.mjs} +1 -1
  21. package/dist/cli/{chunk-EJ2JJS4B.js → chunk-QNJZROLE.js} +50 -50
  22. package/dist/cli/{chunk-Y225FAT3.mjs → chunk-QTBWSCF4.mjs} +3 -3
  23. package/dist/cli/{chunk-PZVTEGO3.js → chunk-UIZZ6CC6.js} +8 -8
  24. package/dist/cli/{chunk-VPUCZSIS.mjs → chunk-VHWW76SC.mjs} +6 -6
  25. package/dist/cli/{chunk-UJCEPJQS.js → chunk-VZRENGJ2.js} +8 -8
  26. package/dist/cli/{chunk-ZEMABHFI.mjs → chunk-WJ4IGJR4.mjs} +4 -4
  27. package/dist/cli/{chunk-SR5XJPYZ.js → chunk-XA7MAC3G.js} +6 -6
  28. package/dist/cli/{chunk-4DP6SNP5.mjs → chunk-XH7A4IWD.mjs} +2 -2
  29. package/dist/cli/{chunk-XABOQZ4R.js → chunk-XPYEE2AU.js} +45 -45
  30. package/dist/cli/{chunk-4S34WZXL.mjs → chunk-YKRINWA2.mjs} +1 -1
  31. package/dist/cli/{chunk-SVTTXV4G.mjs → chunk-YME4BTRK.mjs} +2 -2
  32. package/dist/cli/client-OBQBVVUE.js +20 -0
  33. package/dist/cli/{client-5C7EWE2I.mjs → client-TIT2YEEY.mjs} +3 -3
  34. package/dist/cli/{csv-HQMLZZHT.mjs → csv-64W5LJIT.mjs} +3 -3
  35. package/dist/cli/{csv-KTXBVBID.js → csv-XYARLBKW.js} +12 -12
  36. package/dist/cli/{db-LWGWX7JH.js → db-52N7JAVE.js} +29 -29
  37. package/dist/cli/{db-TTRXGC6L.mjs → db-BGC5QKV6.mjs} +4 -4
  38. package/dist/cli/{describe-4TPO6SJ7.mjs → describe-3ZSRFCHD.mjs} +8 -8
  39. package/dist/cli/{describe-BHXNMNW4.js → describe-DPDNIXVH.js} +15 -15
  40. package/dist/cli/{executions-TUWWCJII.js → executions-WVIUSOSA.js} +6 -6
  41. package/dist/cli/{executions-EYEB344B.mjs → executions-ZIMU47UG.mjs} +4 -4
  42. package/dist/cli/{feedback-B7KMX5Q7.mjs → feedback-7Z2PUW4R.mjs} +3 -3
  43. package/dist/cli/{feedback-T3DIQUIY.js → feedback-VS5A3KAR.js} +7 -7
  44. package/dist/cli/{git-FBNXXKNZ.mjs → git-JTIF7PN4.mjs} +4 -4
  45. package/dist/cli/git-QJYLQED2.js +23 -0
  46. package/dist/cli/index.js +82 -82
  47. package/dist/cli/index.mjs +32 -32
  48. package/dist/cli/{legacy-noops-CUTE7NQM.mjs → legacy-noops-7IR7H7N4.mjs} +4 -4
  49. package/dist/cli/{legacy-noops-NRL7F5CQ.js → legacy-noops-B2WDO6FW.js} +7 -7
  50. package/dist/cli/{monitors-OCADR2JY.mjs → monitors-LWBSJ3OX.mjs} +4 -4
  51. package/dist/cli/{monitors-MZ4ED4ZB.js → monitors-OESDIJVL.js} +85 -85
  52. package/dist/cli/{org-ZOORMY2P.js → org-ENJDFLCZ.js} +157 -60
  53. package/dist/cli/{org-EGY6QPC2.mjs → org-T7OXEG5L.mjs} +101 -4
  54. package/dist/cli/{play-UWOXSZ5S.mjs → play-FOB5OCJ3.mjs} +7 -7
  55. package/dist/cli/play-Z6SXXNP5.js +153 -0
  56. package/dist/cli/{providers-ARFRC3BO.js → providers-3OGXEWHS.js} +7 -7
  57. package/dist/cli/{providers-6LEQ2IWJ.mjs → providers-TU3QNHIS.mjs} +4 -4
  58. package/dist/cli/{quickstart-FTAH5VJS.js → quickstart-DM4UGC7C.js} +5 -5
  59. package/dist/cli/{quickstart-7KOYCNWZ.mjs → quickstart-VSVPWMNU.mjs} +3 -3
  60. package/dist/cli/search-26IGFUMM.js +26 -0
  61. package/dist/cli/{search-F72JTURT.mjs → search-CBHKG7YA.mjs} +5 -5
  62. package/dist/cli/{secrets-Q46WCJV5.mjs → secrets-6ZQF4M27.mjs} +4 -4
  63. package/dist/cli/{secrets-RRLXGTKD.js → secrets-YTN4ZA4T.js} +13 -13
  64. package/dist/cli/{sessions-M6VVMEB7.mjs → sessions-BPRYFAWJ.mjs} +4 -4
  65. package/dist/cli/{sessions-5E7N7PV4.js → sessions-ZO7IOGUF.js} +5 -5
  66. package/dist/cli/{settings-DM2R5WKS.js → settings-N65YB4QA.js} +74 -74
  67. package/dist/cli/{settings-FAMIU4TW.mjs → settings-WYCYXUM7.mjs} +7 -7
  68. package/dist/cli/{setup-72X5PM4V.mjs → setup-KLEY2DJT.mjs} +6 -6
  69. package/dist/cli/{setup-T3GYC7VU.js → setup-RW4BMAKA.js} +41 -41
  70. package/dist/cli/{skills-JMZVXK4C.mjs → skills-DFXLS3KI.mjs} +4 -4
  71. package/dist/cli/skills-XTGVE76M.js +28 -0
  72. package/dist/cli/tools-AK4XQBQJ.js +40 -0
  73. package/dist/cli/{tools-NWPWZ6MB.mjs → tools-UDSCRFZN.mjs} +6 -6
  74. package/dist/cli/{update-ICF4SXJY.mjs → update-3MKDIO3Y.mjs} +6 -6
  75. package/dist/cli/update-NIIEFTPX.js +28 -0
  76. package/dist/cli/{workflow-JPKNILNY.js → workflow-64Y2B5YZ.js} +15 -15
  77. package/dist/cli/{workflow-RC5HBGYX.mjs → workflow-XNYXVEVF.mjs} +5 -5
  78. package/dist/index.js +6 -6
  79. package/dist/index.mjs +3 -3
  80. package/dist/install-integrity.json +74 -74
  81. package/dist/release.d.mts +1 -1
  82. package/dist/release.d.ts +1 -1
  83. package/dist/release.js +2 -2
  84. package/dist/release.mjs +1 -1
  85. package/package.json +1 -1
  86. package/dist/cli/auth-2LRYSEPY.js +0 -33
  87. package/dist/cli/client-UU566CHL.js +0 -20
  88. package/dist/cli/git-6EBZTPWN.js +0 -23
  89. package/dist/cli/play-PWZRGMFT.js +0 -153
  90. package/dist/cli/search-FNJ5RAJG.js +0 -26
  91. package/dist/cli/skills-FXSNHINV.js +0 -28
  92. package/dist/cli/tools-EDJJXAQK.js +0 -40
  93. package/dist/cli/update-WZYLWV3J.js +0 -28
@@ -21,7 +21,7 @@ var _chunkLA46MMTLjs = require('./chunk-LA46MMTL.js');
21
21
 
22
22
 
23
23
 
24
- var _chunkRNVO2NHHjs = require('./chunk-RNVO2NHH.js');
24
+ var _chunkL7CUNWVRjs = require('./chunk-L7CUNWVR.js');
25
25
 
26
26
 
27
27
 
@@ -167,7 +167,7 @@ async function queryCustomerDatabase(http, input) {
167
167
  if (error instanceof _chunk7P5AA3SNjs.DeeplineError && (_optionalChain([error, 'access', _2 => _2.code, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("NETWORK_")]) || // Older API readers return PostgreSQL errors as HTTP 400, including
168
168
  // lost connections and explicitly unknown transaction resolution.
169
169
  /^08[A-Z0-9]{3}$/.test(_nullishCoalesce(error.code, () => ( ""))) || ["57P01", "57P02", "57P03"].includes(_nullishCoalesce(error.code, () => ( ""))) || error.statusCode === 408 || (_nullishCoalesce(error.statusCode, () => ( 0))) >= 500)) {
170
- throw new (0, _chunkRNVO2NHHjs.CustomerDbQueryOutcomeUnknownError)(
170
+ throw new (0, _chunkL7CUNWVRjs.CustomerDbQueryOutcomeUnknownError)(
171
171
  error,
172
172
  plan.request.body.operation_key
173
173
  );
@@ -175,7 +175,7 @@ async function queryCustomerDatabase(http, input) {
175
175
  throw error;
176
176
  }
177
177
  if (!result || typeof result !== "object" || Array.isArray(result) || typeof result.command !== "string" || !Array.isArray(result.columns) || !Array.isArray(result.rows) || typeof result.truncated !== "boolean" || result.row_count !== null && (!Number.isSafeInteger(result.row_count) || result.row_count < 0) || !Number.isSafeInteger(result.row_count_returned) || result.row_count_returned < 0) {
178
- throw new (0, _chunkRNVO2NHHjs.CustomerDbQueryOutcomeUnknownError)(
178
+ throw new (0, _chunkL7CUNWVRjs.CustomerDbQueryOutcomeUnknownError)(
179
179
  new (0, _chunk7P5AA3SNjs.DeeplineError)(
180
180
  "The SQL response did not contain a valid result.",
181
181
  200,
@@ -186,7 +186,7 @@ async function queryCustomerDatabase(http, input) {
186
186
  }
187
187
  const operation = result.operation;
188
188
  if (input.operationKey !== void 0 && (!operation || operation.operation_key !== input.operationKey || !Number.isSafeInteger(operation.completed_at_ms) || operation.completed_at_ms < 0 || !["executed", "operation_recovery"].includes(operation.source))) {
189
- throw new (0, _chunkRNVO2NHHjs.CustomerDbQueryOutcomeUnknownError)(
189
+ throw new (0, _chunkL7CUNWVRjs.CustomerDbQueryOutcomeUnknownError)(
190
190
  new (0, _chunk7P5AA3SNjs.DeeplineError)(
191
191
  "The server did not confirm the original atomic SQL operation.",
192
192
  200,
@@ -2910,8 +2910,8 @@ function runtimeSelectionHeaders(runtime) {
2910
2910
  }
2911
2911
  const receivers = _optionalChain([process, 'access', _104 => _104.env, 'access', _105 => _105.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _106 => _106.trim, 'call', _107 => _107()]);
2912
2912
  return {
2913
- [_chunkRNVO2NHHjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2914
- ...receivers ? { [_chunkRNVO2NHHjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2913
+ [_chunkL7CUNWVRjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2914
+ ...receivers ? { [_chunkL7CUNWVRjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2915
2915
  };
2916
2916
  }
2917
2917
  function isolatedCiRuntimeEventReadHeaders() {
@@ -2927,7 +2927,7 @@ function isolatedCiRuntimeEventReadHeaders() {
2927
2927
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
2928
2928
  );
2929
2929
  }
2930
- return { [_chunkRNVO2NHHjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2930
+ return { [_chunkL7CUNWVRjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2931
2931
  }
2932
2932
  function normalizeTestPolicyOverrides(value, source) {
2933
2933
  if (value && typeof value === "object" && !Array.isArray(value)) {
@@ -3217,8 +3217,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
3217
3217
  * @throws {@link ConfigError} if no API key can be resolved from any source.
3218
3218
  */
3219
3219
  constructor(options) {
3220
- this.config = _chunkRNVO2NHHjs.resolveConfig.call(void 0, options);
3221
- this.http = new (0, _chunkRNVO2NHHjs.HttpClient)(this.config);
3220
+ this.config = _chunkL7CUNWVRjs.resolveConfig.call(void 0, options);
3221
+ this.http = new (0, _chunkL7CUNWVRjs.HttpClient)(this.config);
3222
3222
  this.toolCalls = new ToolCalls(
3223
3223
  this.http,
3224
3224
  this.config.timeout,
@@ -14,7 +14,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
14
14
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
15
15
 
16
16
 
17
- var _chunkPXA5K5CHjs = require('./chunk-PXA5K5CH.js');
17
+ var _chunkFTP4HYWYjs = require('./chunk-FTP4HYWY.js');
18
18
 
19
19
  // src/errors.ts
20
20
  var CustomerDbQueryOutcomeUnknownError = (_class = class extends _chunk7P5AA3SNjs.DeeplineError {
@@ -743,9 +743,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
743
743
  }
744
744
 
745
745
  // src/version.ts
746
- var SDK_VERSION = _chunkPXA5K5CHjs.SDK_RELEASE.version;
747
- var SDK_API_MAJOR = _chunkPXA5K5CHjs.SDK_RELEASE.contracts.api.currentMajor;
748
- var SDK_API_CONTRACT = _nullishCoalesce(_chunkPXA5K5CHjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
746
+ var SDK_VERSION = _chunkFTP4HYWYjs.SDK_RELEASE.version;
747
+ var SDK_API_MAJOR = _chunkFTP4HYWYjs.SDK_RELEASE.contracts.api.currentMajor;
748
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunkFTP4HYWYjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
749
749
 
750
750
  // src/agent-runtime.ts
751
751
 
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkSR5XJPYZjs = require('./chunk-SR5XJPYZ.js');
5
+ var _chunkXA7MAC3Gjs = require('./chunk-XA7MAC3G.js');
6
6
 
7
7
 
8
- var _chunkRNVO2NHHjs = require('./chunk-RNVO2NHH.js');
8
+ var _chunkL7CUNWVRjs = require('./chunk-L7CUNWVR.js');
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
32
32
  return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
33
33
  }
34
34
  async function handleList(options) {
35
- const { http } = _chunkSR5XJPYZjs.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkXA7MAC3Gjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
39
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
40
40
  {
41
41
  projects: payload.projects,
42
42
  count: payload.projects.length,
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
73
73
  }
74
74
  }
75
75
  async function handleStatus(options) {
76
- const { http } = _chunkSR5XJPYZjs.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkXA7MAC3Gjs.getAuthedHttpClient.call(void 0, );
77
77
  const payload = await http.get("/api/v2/github/installation");
78
78
  const installation = payload.installation;
79
79
  const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
@@ -136,7 +136,7 @@ async function handleStatus(options) {
136
136
  )
137
137
  );
138
138
  }
139
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
139
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
140
140
  {
141
141
  installation,
142
142
  installations: _nullishCoalesce(payload.installations, () => ( [])),
@@ -147,10 +147,10 @@ async function handleStatus(options) {
147
147
  );
148
148
  }
149
149
  async function handleRepos(options) {
150
- const { http } = _chunkSR5XJPYZjs.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkXA7MAC3Gjs.getAuthedHttpClient.call(void 0, );
151
151
  const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
152
152
  const payload = await http.get(`/api/v2/github/repos${query}`);
153
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
153
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
154
154
  {
155
155
  installation: payload.installation,
156
156
  repositories: payload.repositories,
@@ -171,7 +171,7 @@ async function handleRepos(options) {
171
171
  }
172
172
  async function resolveRepoId(repo, installation) {
173
173
  if (/^\d+$/.test(repo)) return Number(repo);
174
- const { http } = _chunkSR5XJPYZjs.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkXA7MAC3Gjs.getAuthedHttpClient.call(void 0, );
175
175
  const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
176
176
  const payload = await http.get(
177
177
  `/api/v2/github/repos${query}`
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
188
188
  }
189
189
  async function handleLink(repo, options) {
190
190
  const repoId = await resolveRepoId(repo, options.installation);
191
- const { http } = _chunkSR5XJPYZjs.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkXA7MAC3Gjs.getAuthedHttpClient.call(void 0, );
192
192
  const payload = await http.post("/api/v2/play-projects", {
193
193
  repoId,
194
194
  ...options.installation !== void 0 ? { installationId: options.installation } : {},
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
197
197
  ...options.branch !== void 0 ? { productionBranch: options.branch } : {},
198
198
  ...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
199
199
  });
200
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
200
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
201
201
  {
202
202
  project: payload.project,
203
203
  render: {
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
220
220
  );
221
221
  }
222
222
  async function handleGet(id, options) {
223
- const { http } = _chunkSR5XJPYZjs.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkXA7MAC3Gjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
227
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
228
228
  {
229
229
  project: payload.project,
230
230
  render: {
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
240
240
  );
241
241
  }
242
242
  async function handleSet(id, options) {
243
- const { http } = _chunkSR5XJPYZjs.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkXA7MAC3Gjs.getAuthedHttpClient.call(void 0, );
244
244
  const payload = await http.patch(
245
245
  `/api/v2/play-projects/${encodeURIComponent(id)}`,
246
246
  {
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
251
251
  ...options.disabled !== void 0 ? { disabled: options.disabled } : {}
252
252
  }
253
253
  );
254
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
254
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
255
255
  {
256
256
  project: payload.project,
257
257
  render: {
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
264
264
  );
265
265
  }
266
266
  async function handleUnlink(id, options) {
267
- const { http } = _chunkSR5XJPYZjs.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkXA7MAC3Gjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
269
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
270
270
  {
271
271
  ok: true,
272
272
  id,
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
286
286
  );
287
287
  }
288
288
  async function handleConnect(options) {
289
- const baseUrl = _chunkRNVO2NHHjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkL7CUNWVRjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkSR5XJPYZjs.openInBrowser.call(void 0, connectUrl);
292
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkXA7MAC3Gjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
293
293
  {
294
294
  connectUrl,
295
295
  browser: opened,
@@ -311,7 +311,7 @@ async function handleConnect(options) {
311
311
  );
312
312
  }
313
313
  async function handleDeploymentsList(options) {
314
- const { http } = _chunkSR5XJPYZjs.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkXA7MAC3Gjs.getAuthedHttpClient.call(void 0, );
315
315
  const query = new URLSearchParams();
316
316
  if (options.repo) query.set("projectId", options.repo);
317
317
  if (options.limit) query.set("limit", options.limit);
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
319
319
  const payload = await http.get(
320
320
  `/api/v2/deployments${suffix}`
321
321
  );
322
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
322
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
323
323
  {
324
324
  deployments: payload.deployments,
325
325
  count: payload.deployments.length,
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
363
363
  ]);
364
364
  }
365
365
  async function handleDeploymentGet(id, options) {
366
- const { http } = _chunkSR5XJPYZjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkXA7MAC3Gjs.getAuthedHttpClient.call(void 0, );
367
367
  const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
368
368
  const playLines = renderDeploymentPlayLines(payload.deployment.results);
369
369
  const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
370
370
  const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
371
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
371
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
372
372
  {
373
373
  deployment: payload.deployment,
374
374
  project: payload.project,
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
387
387
  );
388
388
  }
389
389
  async function handleDeploymentCancel(id, options) {
390
- const { http } = _chunkSR5XJPYZjs.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkXA7MAC3Gjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
392
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -3,7 +3,7 @@ import {
3
3
  detectAgentRuntime,
4
4
  resolveCliCommandContext,
5
5
  resolveConfig
6
- } from "./chunk-LIEDEDMI.mjs";
6
+ } from "./chunk-5OMKEQGL.mjs";
7
7
  import {
8
8
  DeeplineError
9
9
  } from "./chunk-NXGCO4JB.mjs";
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  recentSearchRef,
13
13
  registerDeprecatedSearchCommand
14
- } from "./chunk-Y225FAT3.mjs";
14
+ } from "./chunk-QTBWSCF4.mjs";
15
15
  import {
16
16
  extractSummaryFields,
17
17
  projectRowOutput,
@@ -26,7 +26,7 @@ import {
26
26
  import {
27
27
  DeeplineClient,
28
28
  validateExecutionIdempotencyKey
29
- } from "./chunk-3PNTOTQK.mjs";
29
+ } from "./chunk-6RX64O34.mjs";
30
30
  import {
31
31
  beginToolExecuteCommand,
32
32
  getToolExecuteInvocationId,
@@ -40,11 +40,11 @@ import {
40
40
  printJsonError,
41
41
  renderCommandEnvelopeText,
42
42
  shouldEmitJson
43
- } from "./chunk-GHV63LHK.mjs";
43
+ } from "./chunk-NDQBGF6U.mjs";
44
44
  import {
45
45
  resolveConfig,
46
46
  sdkCliStateDirPath
47
- } from "./chunk-LIEDEDMI.mjs";
47
+ } from "./chunk-5OMKEQGL.mjs";
48
48
  import {
49
49
  DeeplineError
50
50
  } from "./chunk-NXGCO4JB.mjs";
@@ -1030,7 +1030,7 @@ Examples:
1030
1030
  process.exitCode = await narrowView();
1031
1031
  return;
1032
1032
  }
1033
- const { describeAnything } = await import("./describe-4TPO6SJ7.mjs");
1033
+ const { describeAnything } = await import("./describe-3ZSRFCHD.mjs");
1034
1034
  process.exitCode = await describeAnything(
1035
1035
  toolId,
1036
1036
  { ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-SW2I3DBK.mjs";
3
+ } from "./chunk-7MS7JCBB.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkSR5XJPYZjs = require('./chunk-SR5XJPYZ.js');
5
+ var _chunkXA7MAC3Gjs = require('./chunk-XA7MAC3G.js');
6
6
 
7
7
 
8
8
 
@@ -25,7 +25,7 @@ var _chunkSR5XJPYZjs = require('./chunk-SR5XJPYZ.js');
25
25
 
26
26
 
27
27
 
28
- var _chunkRNVO2NHHjs = require('./chunk-RNVO2NHH.js');
28
+ var _chunkL7CUNWVRjs = require('./chunk-L7CUNWVR.js');
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
 
@@ -52,7 +52,7 @@ function statusBannerLine(value) {
52
52
  return `Service notice: ${banner.message}`;
53
53
  }
54
54
  function envFilePath(baseUrl) {
55
- return _chunkRNVO2NHHjs.hostEnvFilePath.call(void 0, baseUrl);
55
+ return _chunkL7CUNWVRjs.hostEnvFilePath.call(void 0, baseUrl);
56
56
  }
57
57
  function normalizeAuthScope(value) {
58
58
  if (!value || value === "global") return "global";
@@ -65,7 +65,7 @@ function parseAuthScope(args) {
65
65
  }
66
66
  function pendingClaimPath(baseUrl, scope) {
67
67
  if (scope === "folder") {
68
- const target = _chunkRNVO2NHHjs.resolveProjectPinTarget.call(void 0, );
68
+ const target = _chunkL7CUNWVRjs.resolveProjectPinTarget.call(void 0, );
69
69
  if (!target.ok) {
70
70
  throw new Error(
71
71
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -75,10 +75,10 @@ function pendingClaimPath(baseUrl, scope) {
75
75
  }
76
76
  return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
77
77
  }
78
- return `${_chunkRNVO2NHHjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
78
+ return `${_chunkL7CUNWVRjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
79
79
  }
80
80
  function legacyPendingClaimTokenPath(baseUrl) {
81
- return `${_chunkRNVO2NHHjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
81
+ return `${_chunkL7CUNWVRjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
82
82
  }
83
83
  function savePendingClaim(baseUrl, claim) {
84
84
  const filePath = pendingClaimPath(baseUrl, claim.scope);
@@ -180,21 +180,21 @@ function parseRegisterWaitMode(args) {
180
180
  function shouldWaitForRegisterClaim(mode) {
181
181
  if (mode === "yes") return true;
182
182
  if (mode === "no") return false;
183
- return _chunkRNVO2NHHjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
183
+ return _chunkL7CUNWVRjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
184
184
  }
185
185
  function saveEnvValues(values, baseUrl, scope) {
186
186
  const filtered = {
187
- ...values[_chunkRNVO2NHHjs.HOST_URL_ENV] ? { [_chunkRNVO2NHHjs.HOST_URL_ENV]: values[_chunkRNVO2NHHjs.HOST_URL_ENV] } : {},
188
- ...values[_chunkRNVO2NHHjs.API_KEY_ENV] ? { [_chunkRNVO2NHHjs.API_KEY_ENV]: values[_chunkRNVO2NHHjs.API_KEY_ENV] } : {},
189
- ...values[_chunkRNVO2NHHjs.ACTIVE_ORG_ID_ENV] ? { [_chunkRNVO2NHHjs.ACTIVE_ORG_ID_ENV]: values[_chunkRNVO2NHHjs.ACTIVE_ORG_ID_ENV] } : {},
190
- ...Object.prototype.hasOwnProperty.call(values, _chunkRNVO2NHHjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkRNVO2NHHjs.ACTIVE_ORG_NAME_ENV]: values[_chunkRNVO2NHHjs.ACTIVE_ORG_NAME_ENV] } : {},
187
+ ...values[_chunkL7CUNWVRjs.HOST_URL_ENV] ? { [_chunkL7CUNWVRjs.HOST_URL_ENV]: values[_chunkL7CUNWVRjs.HOST_URL_ENV] } : {},
188
+ ...values[_chunkL7CUNWVRjs.API_KEY_ENV] ? { [_chunkL7CUNWVRjs.API_KEY_ENV]: values[_chunkL7CUNWVRjs.API_KEY_ENV] } : {},
189
+ ...values[_chunkL7CUNWVRjs.ACTIVE_ORG_ID_ENV] ? { [_chunkL7CUNWVRjs.ACTIVE_ORG_ID_ENV]: values[_chunkL7CUNWVRjs.ACTIVE_ORG_ID_ENV] } : {},
190
+ ...Object.prototype.hasOwnProperty.call(values, _chunkL7CUNWVRjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkL7CUNWVRjs.ACTIVE_ORG_NAME_ENV]: values[_chunkL7CUNWVRjs.ACTIVE_ORG_NAME_ENV] } : {},
191
191
  // An explicit empty list must reach the store: it clears a stale line.
192
- ...Object.prototype.hasOwnProperty.call(values, _chunkRNVO2NHHjs.FEATURES_ENV) ? { [_chunkRNVO2NHHjs.FEATURES_ENV]: values[_chunkRNVO2NHHjs.FEATURES_ENV] } : {}
192
+ ...Object.prototype.hasOwnProperty.call(values, _chunkL7CUNWVRjs.FEATURES_ENV) ? { [_chunkL7CUNWVRjs.FEATURES_ENV]: values[_chunkL7CUNWVRjs.FEATURES_ENV] } : {}
193
193
  };
194
194
  if (scope === "folder") {
195
- _chunkRNVO2NHHjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
195
+ _chunkL7CUNWVRjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
196
196
  } else {
197
- _chunkRNVO2NHHjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
197
+ _chunkL7CUNWVRjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
198
198
  }
199
199
  }
200
200
  function activeOrgEnvValues(data) {
@@ -202,21 +202,21 @@ function activeOrgEnvValues(data) {
202
202
  if (!orgId) return {};
203
203
  const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
204
204
  return {
205
- [_chunkRNVO2NHHjs.ACTIVE_ORG_ID_ENV]: orgId,
206
- [_chunkRNVO2NHHjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
- ..._chunkRNVO2NHHjs.featureEnvValues.call(void 0, data)
205
+ [_chunkL7CUNWVRjs.ACTIVE_ORG_ID_ENV]: orgId,
206
+ [_chunkL7CUNWVRjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
+ ..._chunkL7CUNWVRjs.featureEnvValues.call(void 0, data)
208
208
  };
209
209
  }
210
210
  async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
211
211
  const headers = {
212
212
  "Content-Type": "application/json",
213
- "User-Agent": `deepline-ts-sdk/${_chunkRNVO2NHHjs.SDK_VERSION}`,
213
+ "User-Agent": `deepline-ts-sdk/${_chunkL7CUNWVRjs.SDK_VERSION}`,
214
214
  "X-Deepline-Client-Family": "sdk",
215
215
  "X-Deepline-CLI-Family": "sdk",
216
- "X-Deepline-Agent-Runtime": _chunkRNVO2NHHjs.detectAgentRuntime.call(void 0, ),
217
- "X-Deepline-CLI-Version": _chunkRNVO2NHHjs.SDK_VERSION,
218
- "X-Deepline-SDK-Version": _chunkRNVO2NHHjs.SDK_VERSION,
219
- "X-Deepline-API-Contract": _chunkRNVO2NHHjs.SDK_API_CONTRACT
216
+ "X-Deepline-Agent-Runtime": _chunkL7CUNWVRjs.detectAgentRuntime.call(void 0, ),
217
+ "X-Deepline-CLI-Version": _chunkL7CUNWVRjs.SDK_VERSION,
218
+ "X-Deepline-SDK-Version": _chunkL7CUNWVRjs.SDK_VERSION,
219
+ "X-Deepline-API-Contract": _chunkL7CUNWVRjs.SDK_API_CONTRACT
220
220
  };
221
221
  if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
222
222
  const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
@@ -254,7 +254,7 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
254
254
  throw lastError instanceof Error ? lastError : new Error(String(lastError));
255
255
  }
256
256
  async function reportSetupCompleted(input) {
257
- const apiKey = input.authScope === "folder" ? _chunkRNVO2NHHjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkRNVO2NHHjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
257
+ const apiKey = input.authScope === "folder" ? _chunkL7CUNWVRjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkL7CUNWVRjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
258
258
  if (!apiKey) return;
259
259
  try {
260
260
  await httpJson(
@@ -351,7 +351,7 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
351
351
  }
352
352
  }
353
353
  async function handleRegister(args) {
354
- const baseUrl = _chunkRNVO2NHHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
354
+ const baseUrl = _chunkL7CUNWVRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
355
355
  let orgName = "";
356
356
  let orgId = "";
357
357
  let agentName = "";
@@ -406,19 +406,19 @@ async function handleRegister(args) {
406
406
  });
407
407
  saveEnvValues(
408
408
  {
409
- [_chunkRNVO2NHHjs.HOST_URL_ENV]: baseUrl
409
+ [_chunkL7CUNWVRjs.HOST_URL_ENV]: baseUrl
410
410
  },
411
411
  baseUrl,
412
412
  authScope
413
413
  );
414
414
  }
415
415
  if (claimUrl) {
416
- const shouldOpen = waitMode !== "no" && _chunkRNVO2NHHjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
416
+ const shouldOpen = waitMode !== "no" && _chunkL7CUNWVRjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
417
417
  console.log(
418
418
  shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
419
419
  );
420
420
  console.log(` ${claimUrl}`);
421
- if (shouldOpen) _chunkSR5XJPYZjs.openInBrowser.call(void 0, claimUrl);
421
+ if (shouldOpen) _chunkXA7MAC3Gjs.openInBrowser.call(void 0, claimUrl);
422
422
  }
423
423
  if (data.cli_message) {
424
424
  console.log(String(data.cli_message));
@@ -461,8 +461,8 @@ async function handleRegister(args) {
461
461
  if (apiKey) {
462
462
  saveEnvValues(
463
463
  {
464
- [_chunkRNVO2NHHjs.HOST_URL_ENV]: baseUrl,
465
- [_chunkRNVO2NHHjs.API_KEY_ENV]: apiKey,
464
+ [_chunkL7CUNWVRjs.HOST_URL_ENV]: baseUrl,
465
+ [_chunkL7CUNWVRjs.API_KEY_ENV]: apiKey,
466
466
  ...activeOrgEnvValues(statusData)
467
467
  },
468
468
  baseUrl,
@@ -484,7 +484,7 @@ async function handleRegister(args) {
484
484
  }
485
485
  }
486
486
  async function handleWait(args) {
487
- const baseUrl = _chunkRNVO2NHHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
487
+ const baseUrl = _chunkL7CUNWVRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
488
488
  let timeoutSeconds = 300;
489
489
  let requestedScope;
490
490
  if (args.includes("--auth-scope")) {
@@ -508,7 +508,7 @@ async function handleWait(args) {
508
508
  const authScope = resumed.scope;
509
509
  const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _11 => _11.claimToken]), () => ( ""));
510
510
  if (!pendingClaim) {
511
- const scopedApiKey = authScope === "folder" ? _chunkRNVO2NHHjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkRNVO2NHHjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
511
+ const scopedApiKey = authScope === "folder" ? _chunkL7CUNWVRjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkL7CUNWVRjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
512
512
  if (scopedApiKey) {
513
513
  console.log("Already connected.");
514
514
  return EXIT_OK;
@@ -551,8 +551,8 @@ async function handleWait(args) {
551
551
  if (apiKey) {
552
552
  saveEnvValues(
553
553
  {
554
- [_chunkRNVO2NHHjs.HOST_URL_ENV]: baseUrl,
555
- [_chunkRNVO2NHHjs.API_KEY_ENV]: apiKey,
554
+ [_chunkL7CUNWVRjs.HOST_URL_ENV]: baseUrl,
555
+ [_chunkL7CUNWVRjs.API_KEY_ENV]: apiKey,
556
556
  ...activeOrgEnvValues(data)
557
557
  },
558
558
  baseUrl,
@@ -576,8 +576,8 @@ async function handleWait(args) {
576
576
  return EXIT_AUTH;
577
577
  }
578
578
  async function authStatusLine(timeoutMs = 3e3) {
579
- const baseUrl = _chunkRNVO2NHHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
580
- const apiKey = _chunkRNVO2NHHjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
579
+ const baseUrl = _chunkL7CUNWVRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
580
+ const apiKey = _chunkL7CUNWVRjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
581
581
  if (!apiKey) return `Auth: not connected (${baseUrl})`;
582
582
  try {
583
583
  const { status, data } = await httpJson(
@@ -600,9 +600,9 @@ async function authStatusLine(timeoutMs = 3e3) {
600
600
  }
601
601
  }
602
602
  async function handleStatus(args) {
603
- const baseUrl = _chunkRNVO2NHHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
603
+ const baseUrl = _chunkL7CUNWVRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
604
604
  const reveal = args.includes("--reveal");
605
- const jsonOutput = _chunkSR5XJPYZjs.argsWantJson.call(void 0, args);
605
+ const jsonOutput = _chunkXA7MAC3Gjs.argsWantJson.call(void 0, args);
606
606
  const hasExplicitAuthScope = args.includes("--auth-scope");
607
607
  let authScope = null;
608
608
  if (hasExplicitAuthScope) {
@@ -642,14 +642,14 @@ async function handleStatus(args) {
642
642
  };
643
643
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
644
644
  }
645
- const apiKey = authScope === "folder" ? _chunkRNVO2NHHjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkRNVO2NHHjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkRNVO2NHHjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
645
+ const apiKey = authScope === "folder" ? _chunkL7CUNWVRjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkL7CUNWVRjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkL7CUNWVRjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
646
646
  if (!apiKey) {
647
647
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
648
648
  baseUrl,
649
649
  _nullishCoalesce(authScope, () => ( void 0))
650
650
  );
651
651
  if (pendingClaim) {
652
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
652
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
653
653
  {
654
654
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
655
655
  status: "pending",
@@ -670,7 +670,7 @@ async function handleStatus(args) {
670
670
  );
671
671
  return EXIT_OK;
672
672
  }
673
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
673
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
674
674
  {
675
675
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
676
676
  status: "not connected",
@@ -703,7 +703,7 @@ async function handleStatus(args) {
703
703
  }
704
704
  );
705
705
  if (status === 401 || status === 403) {
706
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
706
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
707
707
  {
708
708
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
709
709
  status: "unauthorized",
@@ -730,7 +730,7 @@ async function handleStatus(args) {
730
730
  console.error(`Auth status error (status ${status}).`);
731
731
  return EXIT_SERVER;
732
732
  }
733
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkRNVO2NHHjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
733
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkL7CUNWVRjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
734
734
  clearSatisfiedPendingClaim(
735
735
  baseUrl,
736
736
  resolvedAuthScope,
@@ -758,28 +758,28 @@ async function handleStatus(args) {
758
758
  if (apiKeyResp) {
759
759
  saveEnvValues(
760
760
  {
761
- [_chunkRNVO2NHHjs.HOST_URL_ENV]: baseUrl,
762
- [_chunkRNVO2NHHjs.API_KEY_ENV]: apiKeyResp,
761
+ [_chunkL7CUNWVRjs.HOST_URL_ENV]: baseUrl,
762
+ [_chunkL7CUNWVRjs.API_KEY_ENV]: apiKeyResp,
763
763
  ...activeOrgEnvValues(data)
764
764
  },
765
765
  baseUrl,
766
766
  resolvedAuthScope
767
767
  );
768
768
  if (resolvedAuthScope === "folder") {
769
- const target = _chunkRNVO2NHHjs.resolveProjectPinTarget.call(void 0, );
769
+ const target = _chunkL7CUNWVRjs.resolveProjectPinTarget.call(void 0, );
770
770
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
771
771
  } else {
772
772
  savedApiKeyPath = envFilePath(baseUrl);
773
773
  }
774
774
  }
775
- } else if (resolvedAuthScope === "folder" || _chunkRNVO2NHHjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
776
- saveEnvValues(_chunkRNVO2NHHjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
775
+ } else if (resolvedAuthScope === "folder" || _chunkL7CUNWVRjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
776
+ saveEnvValues(_chunkL7CUNWVRjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
777
777
  }
778
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
778
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
779
779
  {
780
780
  ...payload,
781
- ..._chunkRNVO2NHHjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
782
- command_context: _chunkRNVO2NHHjs.resolveCliCommandContext.call(void 0,
781
+ ..._chunkL7CUNWVRjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
782
+ command_context: _chunkL7CUNWVRjs.resolveCliCommandContext.call(void 0,
783
783
  { baseUrl, apiKey },
784
784
  resolvedAuthScope
785
785
  )
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-3PNTOTQK.mjs";
3
+ } from "./chunk-6RX64O34.mjs";
4
4
  import {
5
5
  printCommandEnvelope,
6
6
  renderCommandEnvelopeText
7
- } from "./chunk-GHV63LHK.mjs";
7
+ } from "./chunk-NDQBGF6U.mjs";
8
8
  import {
9
9
  resolveConfig,
10
10
  sdkCliStateDirPath
11
- } from "./chunk-LIEDEDMI.mjs";
11
+ } from "./chunk-5OMKEQGL.mjs";
12
12
 
13
13
  // src/cli/commands/search.ts
14
14
  import { Option } from "commander";