deepline 0.3.395 → 0.3.396

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 (107) hide show
  1. package/dist/bundling-sources/sdk/src/plays/play-description.ts +1 -1
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
  4. package/dist/cli/{auth-NMQXZRS7.mjs → auth-3LTD62VL.mjs} +4 -4
  5. package/dist/cli/auth-562JPKOM.js +39 -0
  6. package/dist/cli/{billing-5MVXZRS6.mjs → billing-DP7ZAJBO.mjs} +5 -5
  7. package/dist/cli/{billing-Z4JTGUU3.js → billing-PA5OXEM5.js} +76 -76
  8. package/dist/cli/{chunk-BLYL3KOC.mjs → chunk-23GAA3YO.mjs} +1 -1
  9. package/dist/cli/{chunk-LZLBR2SF.js → chunk-2VOLOWYZ.js} +1087 -1056
  10. package/dist/cli/{chunk-EFLQHJZ6.mjs → chunk-3T4MCB5R.mjs} +1026 -995
  11. package/dist/cli/{chunk-VB6KECLU.mjs → chunk-5WNJF2T3.mjs} +102 -36
  12. package/dist/cli/{chunk-UKU6JM3S.js → chunk-772W2SAU.js} +8 -8
  13. package/dist/cli/{chunk-K5T3EN6D.js → chunk-7Z66NHUC.js} +26 -26
  14. package/dist/cli/{chunk-WCCKMLHL.mjs → chunk-AUYXWELC.mjs} +2 -2
  15. package/dist/cli/{chunk-PZ5BZ76S.js → chunk-AVHLATII.js} +50 -50
  16. package/dist/cli/{chunk-MYIBHORT.js → chunk-DC6LTULT.js} +2 -2
  17. package/dist/cli/{chunk-5VCZ3WRH.mjs → chunk-EIMG75BT.mjs} +1 -0
  18. package/dist/cli/{chunk-TO2MWPGR.js → chunk-GNN4MY5X.js} +1 -1
  19. package/dist/cli/{chunk-OCSG6X67.mjs → chunk-I4T4XAA2.mjs} +4 -4
  20. package/dist/cli/{chunk-ZWH2TFA7.mjs → chunk-JCN4DHF7.mjs} +2 -2
  21. package/dist/cli/{chunk-R4XZO6Z5.js → chunk-KAEZNPUM.js} +23 -8
  22. package/dist/cli/{chunk-DRM3CMHL.js → chunk-KXMNM4AQ.js} +2 -1
  23. package/dist/cli/{chunk-3TRY7KAC.mjs → chunk-LOGGNW4H.mjs} +2 -2
  24. package/dist/cli/{chunk-RDXFGPJU.js → chunk-LWERJUKN.js} +218 -218
  25. package/dist/cli/{chunk-UCXK2DS4.js → chunk-ME6XRFLY.js} +15 -15
  26. package/dist/cli/{chunk-G4IWGRMK.mjs → chunk-MR6XCBQJ.mjs} +2 -2
  27. package/dist/cli/{chunk-BON3DRC6.mjs → chunk-NHB5YUCS.mjs} +1 -1
  28. package/dist/cli/{chunk-ZMVJSS6N.js → chunk-NSOTASOP.js} +101 -35
  29. package/dist/cli/{chunk-7XAM7KDW.mjs → chunk-QHGPA362.mjs} +18 -3
  30. package/dist/cli/{chunk-VYLJJQ7Y.js → chunk-RMTASUAK.js} +65 -65
  31. package/dist/cli/{chunk-HRWUQJ4K.js → chunk-RTO5QZWT.js} +6 -6
  32. package/dist/cli/{chunk-7MVWUXOD.mjs → chunk-TLQ3FZOC.mjs} +3 -3
  33. package/dist/cli/{chunk-56IFFVIB.js → chunk-V7UP2F4U.js} +4 -4
  34. package/dist/cli/{chunk-6D7A2FSL.mjs → chunk-VE3U3SQC.mjs} +1 -1
  35. package/dist/cli/{chunk-36ML3YKA.js → chunk-WQJJNIMQ.js} +13 -13
  36. package/dist/cli/{chunk-47M6HPGP.mjs → chunk-XKZXO7D3.mjs} +1 -1
  37. package/dist/cli/{csv-SVOD5UBH.mjs → csv-RLRR74RQ.mjs} +3 -3
  38. package/dist/cli/{csv-HTS5ZYQ4.js → csv-TF576S77.js} +12 -12
  39. package/dist/cli/{db-7AP4P52N.js → db-FDBJUTFO.js} +30 -30
  40. package/dist/cli/{db-7QLNI3Q4.mjs → db-XORGNBIC.mjs} +5 -5
  41. package/dist/cli/{describe-DBRY5BNK.mjs → describe-6O2ENKTP.mjs} +86 -68
  42. package/dist/cli/{describe-YKOE54ZO.js → describe-EFWNECHI.js} +100 -82
  43. package/dist/cli/{executions-GRQXTB2P.js → executions-SFYAXPF4.js} +7 -7
  44. package/dist/cli/{executions-QNZTPNG4.mjs → executions-YPP7WR77.mjs} +5 -5
  45. package/dist/cli/{feedback-ZOLA2KY7.js → feedback-5UZFYMGB.js} +7 -7
  46. package/dist/cli/{feedback-JMCSR624.mjs → feedback-RBGA5ARU.mjs} +3 -3
  47. package/dist/cli/git-5LDY5ZID.js +23 -0
  48. package/dist/cli/{git-LJGL2IHS.mjs → git-IRSAJEK2.mjs} +4 -4
  49. package/dist/cli/index.js +94 -94
  50. package/dist/cli/index.mjs +38 -38
  51. package/dist/cli/{legacy-noops-YSCIR2SD.js → legacy-noops-CVAOQY2F.js} +7 -7
  52. package/dist/cli/{legacy-noops-F23PKVBN.mjs → legacy-noops-NA7N6ZOU.mjs} +4 -4
  53. package/dist/cli/{monitors-WMZ6HJZX.js → monitors-4OMRXCXP.js} +86 -86
  54. package/dist/cli/{monitors-S4LOEL7W.mjs → monitors-ILZ2XHYG.mjs} +5 -5
  55. package/dist/cli/{org-U3WA2NQM.mjs → org-QDDXAE3J.mjs} +5 -5
  56. package/dist/cli/{org-PFHM5ZLY.js → org-YGNJDD2X.js} +65 -65
  57. package/dist/cli/{chunk-4KLCLLTO.js → play-L535H26U.js} +266 -323
  58. package/dist/cli/{chunk-XMAPE2KH.mjs → play-VT6OHB2D.mjs} +72 -129
  59. package/dist/cli/{providers-XYMHLKCA.js → providers-GPZ6PQAL.js} +8 -8
  60. package/dist/cli/{providers-QBBRFBOH.mjs → providers-KG4W5MPK.mjs} +5 -5
  61. package/dist/cli/{quickstart-5JTDGISY.mjs → quickstart-2JDGTXIG.mjs} +3 -3
  62. package/dist/cli/{quickstart-IYGD6ZY3.js → quickstart-UI27S5LO.js} +5 -5
  63. package/dist/cli/search-MGWROZ33.js +28 -0
  64. package/dist/cli/{search-X6W6GRHS.mjs → search-PW3RAUX7.mjs} +6 -6
  65. package/dist/cli/{secrets-N55B67H6.mjs → secrets-HNOMK5A2.mjs} +5 -5
  66. package/dist/cli/{secrets-UHG6OQFD.js → secrets-WFAXOUZE.js} +14 -14
  67. package/dist/cli/{sessions-57L5MGHN.js → sessions-366KROUA.js} +5 -5
  68. package/dist/cli/{sessions-JTRSTDSS.mjs → sessions-XLX3E5UO.mjs} +4 -4
  69. package/dist/cli/{settings-ATX4U5AS.js → settings-GADAG2UK.js} +75 -75
  70. package/dist/cli/{settings-Q24HRAQI.mjs → settings-YNZ4YKCH.mjs} +8 -8
  71. package/dist/cli/{setup-77ZWLVHT.mjs → setup-PSEHIUXO.mjs} +6 -6
  72. package/dist/cli/{setup-EJCNOUCE.js → setup-R5YO7GT6.js} +41 -41
  73. package/dist/cli/skills-JF2LPEGM.js +28 -0
  74. package/dist/cli/{skills-XIS5AWQI.mjs → skills-LTQBP6CZ.mjs} +4 -4
  75. package/dist/cli/tools-CP2PEFRN.js +34 -0
  76. package/dist/cli/{tools-WCKLYEGQ.mjs → tools-UAXDWU63.mjs} +11 -19
  77. package/dist/cli/update-HZHZOU6C.js +28 -0
  78. package/dist/cli/{update-UT5WANMV.mjs → update-SMNIBIMS.mjs} +6 -6
  79. package/dist/cli/{workflow-226QYUN2.js → workflow-AOQVZHMD.js} +16 -16
  80. package/dist/cli/{workflow-ZMX3L4ML.mjs → workflow-IKGMBGF6.mjs} +6 -6
  81. package/dist/{client-CivP-PAI.d.ts → client-Bgis7F6-.d.ts} +2 -1
  82. package/dist/{client-hdFtwhTm.d.mts → client-DiGl8ska.d.mts} +2 -1
  83. package/dist/index.d.mts +2 -2
  84. package/dist/index.d.ts +2 -2
  85. package/dist/index.js +11 -11
  86. package/dist/index.mjs +9 -9
  87. package/dist/install-integrity.json +78 -80
  88. package/dist/plays/play-description.d.mts +1 -1
  89. package/dist/plays/play-description.d.ts +1 -1
  90. package/dist/plays/play-description.js +4 -2
  91. package/dist/plays/play-description.mjs +3 -1
  92. package/dist/plays/run-request.d.mts +1 -1
  93. package/dist/plays/run-request.d.ts +1 -1
  94. package/dist/release.d.mts +1 -1
  95. package/dist/release.d.ts +1 -1
  96. package/dist/release.js +2 -2
  97. package/dist/release.mjs +1 -1
  98. package/package.json +1 -1
  99. package/dist/cli/auth-UYCOBAL5.js +0 -39
  100. package/dist/cli/git-EJQLRK27.js +0 -23
  101. package/dist/cli/play-AGSECQFN.mjs +0 -159
  102. package/dist/cli/play-BR2LWGXK.js +0 -159
  103. package/dist/cli/search-ZVSYH5GY.js +0 -28
  104. package/dist/cli/skills-SPXUBLII.js +0 -28
  105. package/dist/cli/tools-DBHUUZJX.js +0 -42
  106. package/dist/cli/update-VSNFXRHJ.js +0 -28
  107. package/dist/cli/{chunk-KZZC33PY.mjs → chunk-H5KLUGY7.mjs} +214 -214
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-G4IWGRMK.mjs";
3
+ } from "./chunk-MR6XCBQJ.mjs";
4
4
  import "./chunk-6IKARAYD.mjs";
5
5
  import "./chunk-JI2B4RZP.mjs";
6
- import "./chunk-5VCZ3WRH.mjs";
6
+ import "./chunk-EIMG75BT.mjs";
7
7
  import "./chunk-UBKA33KY.mjs";
8
8
  import {
9
9
  printCommandEnvelope
10
- } from "./chunk-47M6HPGP.mjs";
10
+ } from "./chunk-XKZXO7D3.mjs";
11
11
  import {
12
12
  ACTIVE_ORG_ID_ENV,
13
13
  ACTIVE_ORG_NAME_ENV,
@@ -28,10 +28,10 @@ import {
28
28
  saveProjectDeeplineEnvValues,
29
29
  sdkCliStateDirPath,
30
30
  storedHostFeatures
31
- } from "./chunk-6D7A2FSL.mjs";
31
+ } from "./chunk-VE3U3SQC.mjs";
32
32
  import "./chunk-DLIRSHV6.mjs";
33
33
  import "./chunk-NXGCO4JB.mjs";
34
- import "./chunk-BON3DRC6.mjs";
34
+ import "./chunk-NHB5YUCS.mjs";
35
35
  import "./chunk-WZYKRD7T.mjs";
36
36
  import "./chunk-KRD6H754.mjs";
37
37
 
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunk36ML3YKAjs = require('./chunk-36ML3YKA.js');
3
+ var _chunkWQJJNIMQjs = require('./chunk-WQJJNIMQ.js');
4
4
  require('./chunk-S6R3OX7B.js');
5
5
  require('./chunk-UHNDVD3P.js');
6
- require('./chunk-DRM3CMHL.js');
6
+ require('./chunk-KXMNM4AQ.js');
7
7
  require('./chunk-XDVT3GOM.js');
8
8
 
9
9
 
10
- var _chunkHRWUQJ4Kjs = require('./chunk-HRWUQJ4K.js');
10
+ var _chunkRTO5QZWTjs = require('./chunk-RTO5QZWT.js');
11
11
 
12
12
 
13
13
 
@@ -28,10 +28,10 @@ var _chunkHRWUQJ4Kjs = require('./chunk-HRWUQJ4K.js');
28
28
 
29
29
 
30
30
 
31
- var _chunk56IFFVIBjs = require('./chunk-56IFFVIB.js');
31
+ var _chunkV7UP2F4Ujs = require('./chunk-V7UP2F4U.js');
32
32
  require('./chunk-XNYIZMNQ.js');
33
33
  require('./chunk-7P5AA3SN.js');
34
- require('./chunk-TO2MWPGR.js');
34
+ require('./chunk-GNN4MY5X.js');
35
35
  require('./chunk-OG64RBAC.js');
36
36
  require('./chunk-COGTRVWW.js');
37
37
 
@@ -47,7 +47,7 @@ var _fs = require('fs');
47
47
  var _path = require('path');
48
48
  function pendingOrgCreatePath(baseUrl, accountId, sourceOrgId, name) {
49
49
  const intent = _crypto.createHash.call(void 0, "sha256").update(accountId).update("\0").update(sourceOrgId).update("\0").update(name).digest("hex");
50
- return _path.join.call(void 0, _chunk56IFFVIBjs.sdkCliStateDirPath.call(void 0, baseUrl), `pending-org-create-${intent}.json`);
50
+ return _path.join.call(void 0, _chunkV7UP2F4Ujs.sdkCliStateDirPath.call(void 0, baseUrl), `pending-org-create-${intent}.json`);
51
51
  }
52
52
  function readPendingOrgCreate(path, accountId, sourceOrgId, name) {
53
53
  let value;
@@ -66,7 +66,7 @@ function readPendingOrgCreate(path, accountId, sourceOrgId, name) {
66
66
  return value;
67
67
  }
68
68
  function loadOrCreatePendingOrgCreate(input) {
69
- const stateDir = _chunk56IFFVIBjs.sdkCliStateDirPath.call(void 0, input.baseUrl);
69
+ const stateDir = _chunkV7UP2F4Ujs.sdkCliStateDirPath.call(void 0, input.baseUrl);
70
70
  const path = pendingOrgCreatePath(
71
71
  input.baseUrl,
72
72
  input.accountId,
@@ -151,11 +151,11 @@ function processEnvValue(name) {
151
151
  }
152
152
  function organizationAuthValues(input) {
153
153
  return {
154
- [_chunk56IFFVIBjs.HOST_URL_ENV]: input.baseUrl,
155
- [_chunk56IFFVIBjs.API_KEY_ENV]: input.apiKey,
156
- [_chunk56IFFVIBjs.ACTIVE_ORG_ID_ENV]: input.orgId,
157
- [_chunk56IFFVIBjs.ACTIVE_ORG_NAME_ENV]: input.orgName,
158
- ..._chunk56IFFVIBjs.featureEnvValues.call(void 0, input)
154
+ [_chunkV7UP2F4Ujs.HOST_URL_ENV]: input.baseUrl,
155
+ [_chunkV7UP2F4Ujs.API_KEY_ENV]: input.apiKey,
156
+ [_chunkV7UP2F4Ujs.ACTIVE_ORG_ID_ENV]: input.orgId,
157
+ [_chunkV7UP2F4Ujs.ACTIVE_ORG_NAME_ENV]: input.orgName,
158
+ ..._chunkV7UP2F4Ujs.featureEnvValues.call(void 0, input)
159
159
  };
160
160
  }
161
161
  function organizationCommandContext(input) {
@@ -169,14 +169,14 @@ function organizationCommandContext(input) {
169
169
  };
170
170
  }
171
171
  function agentCommandContext(commandContext) {
172
- return _chunk56IFFVIBjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? { command_context: commandContext } : {};
172
+ return _chunkV7UP2F4Ujs.detectAgentRuntime.call(void 0, ) !== "unknown" ? { command_context: commandContext } : {};
173
173
  }
174
174
  function resolveOrgSwitchAuthTarget(scope, config) {
175
- const activeProject = _chunk56IFFVIBjs.getResolvedProjectAuthSource.call(void 0,
175
+ const activeProject = _chunkV7UP2F4Ujs.getResolvedProjectAuthSource.call(void 0,
176
176
  config.baseUrl,
177
177
  config.apiKey
178
178
  );
179
- const folderTarget = _chunk56IFFVIBjs.resolveProjectPinTarget.call(void 0, );
179
+ const folderTarget = _chunkV7UP2F4Ujs.resolveProjectPinTarget.call(void 0, );
180
180
  const globalOverrideWarning = activeProject && scope === "global" ? [
181
181
  `Folder auth in ${activeProject.filePath} overrides global auth for commands run here.`
182
182
  ] : [];
@@ -248,10 +248,10 @@ function resolveOrgSwitchAuthTarget(scope, config) {
248
248
  };
249
249
  }
250
250
  async function handleOrgList(options) {
251
- const config = _chunk56IFFVIBjs.resolveConfig.call(void 0, );
252
- const http = new (0, _chunk56IFFVIBjs.HttpClient)(config);
251
+ const config = _chunkV7UP2F4Ujs.resolveConfig.call(void 0, );
252
+ const http = new (0, _chunkV7UP2F4Ujs.HttpClient)(config);
253
253
  const payload = await fetchOrganizations(http, config.apiKey);
254
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
254
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
255
255
  {
256
256
  ...payload,
257
257
  render: {
@@ -267,22 +267,22 @@ async function handleOrgList(options) {
267
267
  );
268
268
  }
269
269
  async function handleOrgStatus(options) {
270
- const config = _chunk56IFFVIBjs.resolveConfig.call(void 0, );
271
- const http = new (0, _chunk56IFFVIBjs.HttpClient)(config);
270
+ const config = _chunkV7UP2F4Ujs.resolveConfig.call(void 0, );
271
+ const http = new (0, _chunkV7UP2F4Ujs.HttpClient)(config);
272
272
  const payload = await fetchOrganizations(http, config.apiKey);
273
273
  const current = _nullishCoalesce(_nullishCoalesce(payload.organizations.find((org) => org.is_current), () => ( payload.organizations.find(
274
274
  (org) => org.org_id === payload.current_org_id
275
275
  ))), () => ( null));
276
- const projectCandidate = _chunk56IFFVIBjs.getActiveProjectAuthSource.call(void 0, );
277
- const activeProject = _chunk56IFFVIBjs.getResolvedProjectAuthSource.call(void 0,
276
+ const projectCandidate = _chunkV7UP2F4Ujs.getActiveProjectAuthSource.call(void 0, );
277
+ const activeProject = _chunkV7UP2F4Ujs.getResolvedProjectAuthSource.call(void 0,
278
278
  config.baseUrl,
279
279
  config.apiKey
280
280
  );
281
- const folderTarget = _chunk56IFFVIBjs.resolveProjectPinTarget.call(void 0, );
282
- const provenance = _chunk56IFFVIBjs.resolveCliAuthProvenance.call(void 0, config);
283
- const hostPath = _chunk56IFFVIBjs.hostEnvFilePath.call(void 0, config.baseUrl);
284
- const envApiKey = processEnvValue(_chunk56IFFVIBjs.API_KEY_ENV);
285
- const envHostUrl = processEnvValue(_chunk56IFFVIBjs.HOST_URL_ENV);
281
+ const folderTarget = _chunkV7UP2F4Ujs.resolveProjectPinTarget.call(void 0, );
282
+ const provenance = _chunkV7UP2F4Ujs.resolveCliAuthProvenance.call(void 0, config);
283
+ const hostPath = _chunkV7UP2F4Ujs.hostEnvFilePath.call(void 0, config.baseUrl);
284
+ const envApiKey = processEnvValue(_chunkV7UP2F4Ujs.API_KEY_ENV);
285
+ const envHostUrl = processEnvValue(_chunkV7UP2F4Ujs.HOST_URL_ENV);
286
286
  const authSource = envApiKey ? {
287
287
  scope: "env",
288
288
  source: "process",
@@ -323,17 +323,17 @@ async function handleOrgStatus(options) {
323
323
  if (authSource.path) {
324
324
  lines.push(`Auth file: ${authSource.path}`);
325
325
  } else {
326
- lines.push(`Auth source: ${_chunk56IFFVIBjs.API_KEY_ENV} process environment`);
326
+ lines.push(`Auth source: ${_chunkV7UP2F4Ujs.API_KEY_ENV} process environment`);
327
327
  }
328
328
  if (envApiKey) {
329
- lines.push(`${_chunk56IFFVIBjs.API_KEY_ENV} overrides saved auth for this process.`);
329
+ lines.push(`${_chunkV7UP2F4Ujs.API_KEY_ENV} overrides saved auth for this process.`);
330
330
  } else if (activeProject) {
331
331
  lines.push("Global auth is overridden in this folder.");
332
332
  } else if (provenance.scope === "global" && provenance.project.state === "project") {
333
333
  lines.push("Cloud mutations are blocked until this project is pinned.");
334
334
  lines.push("Pin it: deepline org set --auth-scope folder");
335
335
  }
336
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
336
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
337
337
  {
338
338
  ok: true,
339
339
  host: config.baseUrl,
@@ -367,25 +367,25 @@ async function handleOrgStatus(options) {
367
367
  }
368
368
  async function handleOrgSwitch(selection, options) {
369
369
  const authScope = normalizeAuthScope(options.authScope);
370
- const config = _chunk56IFFVIBjs.resolveConfig.call(void 0, );
371
- const provenance = _chunk56IFFVIBjs.resolveCliAuthProvenance.call(void 0, config);
370
+ const config = _chunkV7UP2F4Ujs.resolveConfig.call(void 0, );
371
+ const provenance = _chunkV7UP2F4Ujs.resolveCliAuthProvenance.call(void 0, config);
372
372
  if (!selection && !options.orgId && authScope === "folder" && provenance.scope === "global" && provenance.project.state === "project") {
373
- const commandContext = _chunk56IFFVIBjs.resolveCliCommandContext.call(void 0, config);
373
+ const commandContext = _chunkV7UP2F4Ujs.resolveCliCommandContext.call(void 0, config);
374
374
  const activeOrganization = commandContext.active_organization;
375
- const pinnedFeatures = _chunk56IFFVIBjs.storedHostFeatures.call(void 0, config.baseUrl);
376
- const project_env_paths2 = _chunk56IFFVIBjs.saveProjectDeeplineEnvValues.call(void 0,
375
+ const pinnedFeatures = _chunkV7UP2F4Ujs.storedHostFeatures.call(void 0, config.baseUrl);
376
+ const project_env_paths2 = _chunkV7UP2F4Ujs.saveProjectDeeplineEnvValues.call(void 0,
377
377
  {
378
- [_chunk56IFFVIBjs.HOST_URL_ENV]: config.baseUrl,
379
- [_chunk56IFFVIBjs.API_KEY_ENV]: config.apiKey,
378
+ [_chunkV7UP2F4Ujs.HOST_URL_ENV]: config.baseUrl,
379
+ [_chunkV7UP2F4Ujs.API_KEY_ENV]: config.apiKey,
380
380
  ...activeOrganization ? {
381
- [_chunk56IFFVIBjs.ACTIVE_ORG_ID_ENV]: activeOrganization.org_id,
382
- [_chunk56IFFVIBjs.ACTIVE_ORG_NAME_ENV]: _nullishCoalesce(activeOrganization.org_name, () => ( ""))
381
+ [_chunkV7UP2F4Ujs.ACTIVE_ORG_ID_ENV]: activeOrganization.org_id,
382
+ [_chunkV7UP2F4Ujs.ACTIVE_ORG_NAME_ENV]: _nullishCoalesce(activeOrganization.org_name, () => ( ""))
383
383
  } : {},
384
- ...pinnedFeatures !== void 0 ? { [_chunk56IFFVIBjs.FEATURES_ENV]: pinnedFeatures } : {}
384
+ ...pinnedFeatures !== void 0 ? { [_chunkV7UP2F4Ujs.FEATURES_ENV]: pinnedFeatures } : {}
385
385
  },
386
386
  provenance.project.dir
387
387
  );
388
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
388
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
389
389
  {
390
390
  ok: true,
391
391
  unchanged: true,
@@ -397,7 +397,7 @@ async function handleOrgSwitch(selection, options) {
397
397
  orgId: activeOrganization.org_id,
398
398
  orgName: activeOrganization.org_name,
399
399
  authScope: "folder"
400
- }) : _chunk56IFFVIBjs.resolveCliCommandContext.call(void 0, config, "folder")
400
+ }) : _chunkV7UP2F4Ujs.resolveCliCommandContext.call(void 0, config, "folder")
401
401
  ),
402
402
  project_env_paths: project_env_paths2,
403
403
  next: { status: "deepline org status" },
@@ -418,10 +418,10 @@ async function handleOrgSwitch(selection, options) {
418
418
  );
419
419
  return;
420
420
  }
421
- const http = new (0, _chunk56IFFVIBjs.HttpClient)(config);
421
+ const http = new (0, _chunkV7UP2F4Ujs.HttpClient)(config);
422
422
  const payload = await fetchOrganizations(http, config.apiKey);
423
423
  if (!selection && !options.orgId) {
424
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
424
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
425
425
  {
426
426
  ...payload,
427
427
  next: { set: "deepline org set <number>" },
@@ -472,9 +472,9 @@ async function handleOrgSwitch(selection, options) {
472
472
  features
473
473
  });
474
474
  if (authTarget.kind === "folder") {
475
- project_env_paths2 = _chunk56IFFVIBjs.saveProjectDeeplineEnvValues.call(void 0, authValues2);
475
+ project_env_paths2 = _chunkV7UP2F4Ujs.saveProjectDeeplineEnvValues.call(void 0, authValues2);
476
476
  } else {
477
- _chunk56IFFVIBjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues2);
477
+ _chunkV7UP2F4Ujs.saveHostEnvValues.call(void 0, config.baseUrl, authValues2);
478
478
  }
479
479
  const renderLines2 = [`Already on ${target.name}.`];
480
480
  for (const projectPath of project_env_paths2) {
@@ -482,7 +482,7 @@ async function handleOrgSwitch(selection, options) {
482
482
  }
483
483
  if (authTarget.kind === "global") {
484
484
  renderLines2.push(
485
- `Saved global auth in ${_chunk56IFFVIBjs.hostEnvFilePath.call(void 0, config.baseUrl)}`
485
+ `Saved global auth in ${_chunkV7UP2F4Ujs.hostEnvFilePath.call(void 0, config.baseUrl)}`
486
486
  );
487
487
  }
488
488
  renderLines2.push(
@@ -498,7 +498,7 @@ async function handleOrgSwitch(selection, options) {
498
498
  ...options.deprecatedSwitch ? ["org switch is deprecated; use org set."] : [],
499
499
  ...authTarget.warnings
500
500
  ];
501
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
501
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
502
502
  {
503
503
  ok: true,
504
504
  unchanged: true,
@@ -514,7 +514,7 @@ async function handleOrgSwitch(selection, options) {
514
514
  authScope: authTarget.effective_scope
515
515
  })
516
516
  ),
517
- host_env_path: authTarget.kind === "global" ? _chunk56IFFVIBjs.hostEnvFilePath.call(void 0, config.baseUrl) : null,
517
+ host_env_path: authTarget.kind === "global" ? _chunkV7UP2F4Ujs.hostEnvFilePath.call(void 0, config.baseUrl) : null,
518
518
  project_env_paths: project_env_paths2,
519
519
  deprecated_command: options.deprecatedSwitch ? "org switch" : null,
520
520
  replacement_command: options.deprecatedSwitch ? "deepline org set" : null,
@@ -540,9 +540,9 @@ async function handleOrgSwitch(selection, options) {
540
540
  features: switched.features
541
541
  });
542
542
  if (authTarget.kind === "folder") {
543
- project_env_paths = _chunk56IFFVIBjs.saveProjectDeeplineEnvValues.call(void 0, authValues);
543
+ project_env_paths = _chunkV7UP2F4Ujs.saveProjectDeeplineEnvValues.call(void 0, authValues);
544
544
  } else {
545
- _chunk56IFFVIBjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
545
+ _chunkV7UP2F4Ujs.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
546
546
  }
547
547
  const { api_key: _apiKey, ...publicSwitched } = switched;
548
548
  const renderLines = [`Switched to ${switched.org_name}.`];
@@ -551,7 +551,7 @@ async function handleOrgSwitch(selection, options) {
551
551
  renderLines.push(`Saved folder auth in ${projectPath}`);
552
552
  }
553
553
  } else {
554
- renderLines.push(`Saved global auth in ${_chunk56IFFVIBjs.hostEnvFilePath.call(void 0, config.baseUrl)}`);
554
+ renderLines.push(`Saved global auth in ${_chunkV7UP2F4Ujs.hostEnvFilePath.call(void 0, config.baseUrl)}`);
555
555
  }
556
556
  renderLines.push(
557
557
  `Scope: ${authTarget.requested_scope} -> ${authTarget.effective_scope} (${authTarget.reason})`
@@ -566,10 +566,10 @@ async function handleOrgSwitch(selection, options) {
566
566
  ...options.deprecatedSwitch ? ["org switch is deprecated; use org set."] : [],
567
567
  ...authTarget.warnings
568
568
  ];
569
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
569
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
570
570
  {
571
571
  ok: true,
572
- host_env_path: authTarget.kind === "global" ? _chunk56IFFVIBjs.hostEnvFilePath.call(void 0, config.baseUrl) : null,
572
+ host_env_path: authTarget.kind === "global" ? _chunkV7UP2F4Ujs.hostEnvFilePath.call(void 0, config.baseUrl) : null,
573
573
  project_env_paths,
574
574
  ...publicSwitched,
575
575
  api_key_saved: true,
@@ -600,12 +600,12 @@ async function handleOrgSwitch(selection, options) {
600
600
  );
601
601
  }
602
602
  async function handleOrgCreate(name, options) {
603
- const config = _chunk56IFFVIBjs.resolveConfig.call(void 0, );
603
+ const config = _chunkV7UP2F4Ujs.resolveConfig.call(void 0, );
604
604
  const normalizedName = name.trim();
605
605
  if (!normalizedName) {
606
606
  throw new Error("Workspace name is required.");
607
607
  }
608
- const http = new (0, _chunk56IFFVIBjs.HttpClient)(config);
608
+ const http = new (0, _chunkV7UP2F4Ujs.HttpClient)(config);
609
609
  const identity = await fetchWorkspaceCreationIdentity(http, config.apiKey);
610
610
  let created;
611
611
  let workspaceApiKey;
@@ -631,7 +631,7 @@ async function handleOrgCreate(name, options) {
631
631
  sourceOrgId: identity.orgId,
632
632
  name: normalizedName
633
633
  });
634
- const workspace = await new (0, _chunk36ML3YKAjs.DeeplineClient)({
634
+ const workspace = await new (0, _chunkWQJJNIMQjs.DeeplineClient)({
635
635
  apiKey: config.apiKey,
636
636
  baseUrl: config.baseUrl
637
637
  }).workspaces.create({
@@ -654,16 +654,16 @@ async function handleOrgCreate(name, options) {
654
654
  orgName: created.org_name,
655
655
  features: workspaceFeatures
656
656
  });
657
- _chunk56IFFVIBjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
657
+ _chunkV7UP2F4Ujs.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
658
658
  if (pendingIntentPath) _fs.unlinkSync.call(void 0, pendingIntentPath);
659
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
659
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
660
660
  {
661
661
  ok: true,
662
662
  ...created,
663
663
  initial_credits: typeof created.initial_credits === "number" ? created.initial_credits : 0,
664
664
  api_key_saved: true,
665
665
  switched: true,
666
- host_env_path: _chunk56IFFVIBjs.hostEnvFilePath.call(void 0, config.baseUrl),
666
+ host_env_path: _chunkV7UP2F4Ujs.hostEnvFilePath.call(void 0, config.baseUrl),
667
667
  ...agentCommandContext(
668
668
  organizationCommandContext({
669
669
  orgId: created.org_id,
@@ -678,7 +678,7 @@ async function handleOrgCreate(name, options) {
678
678
  lines: [
679
679
  `Created organization: ${created.org_name}.`,
680
680
  `Switched to ${created.org_name}.`,
681
- `Saved host auth in ${_chunk56IFFVIBjs.hostEnvFilePath.call(void 0, config.baseUrl)}`
681
+ `Saved host auth in ${_chunkV7UP2F4Ujs.hostEnvFilePath.call(void 0, config.baseUrl)}`
682
682
  ]
683
683
  }
684
684
  ]
@@ -730,7 +730,7 @@ Examples:
730
730
  );
731
731
  const sso = org.command("sso").description("Manage Enterprise workspace SSO.");
732
732
  const ssoPath = "/api/v2/auth/workspace/sso";
733
- const printSso = (payload, json) => _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
733
+ const printSso = (payload, json) => _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
734
734
  {
735
735
  ...payload,
736
736
  render: {
@@ -754,7 +754,7 @@ Examples:
754
754
  },
755
755
  { json }
756
756
  );
757
- const ssoHttp = () => new (0, _chunk56IFFVIBjs.HttpClient)(_chunk56IFFVIBjs.resolveConfig.call(void 0, ));
757
+ const ssoHttp = () => new (0, _chunkV7UP2F4Ujs.HttpClient)(_chunkV7UP2F4Ujs.resolveConfig.call(void 0, ));
758
758
  sso.command("status").description("Show this workspace's SSO connection and plan eligibility.").option("--json", "Emit JSON output").action(async (options) => {
759
759
  printSso(await ssoHttp().get(ssoPath), options.json);
760
760
  });
@@ -785,8 +785,8 @@ Examples:
785
785
  "Identity provider metadata XML file"
786
786
  ).option("--json", "Emit JSON output").action(
787
787
  async (options) => {
788
- const config = _chunk56IFFVIBjs.resolveConfig.call(void 0, );
789
- const http = new (0, _chunk56IFFVIBjs.HttpClient)(config);
788
+ const config = _chunkV7UP2F4Ujs.resolveConfig.call(void 0, );
789
+ const http = new (0, _chunkV7UP2F4Ujs.HttpClient)(config);
790
790
  const identity = await fetchWorkspaceCreationIdentity(
791
791
  http,
792
792
  config.apiKey