deepline 0.3.400 → 0.3.401

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 (86) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/cli/{auth-JL76JRJP.mjs → auth-4AWRW6ED.mjs} +4 -4
  3. package/dist/cli/auth-K6U65ROB.js +40 -0
  4. package/dist/cli/{billing-C6QEIDES.mjs → billing-AMQDNFSL.mjs} +4 -4
  5. package/dist/cli/{billing-BPYI4EUH.js → billing-FPHECIIS.js} +73 -73
  6. package/dist/cli/{chunk-JIDNO3FI.js → chunk-5QD6F5TW.js} +1 -1
  7. package/dist/cli/{chunk-PF3N65JD.js → chunk-72ESQ66A.js} +2 -2
  8. package/dist/cli/{chunk-OVYVMPEC.js → chunk-BHEJDACQ.js} +4 -4
  9. package/dist/cli/{chunk-GMMJMFCQ.mjs → chunk-BXRIA6OQ.mjs} +2 -2
  10. package/dist/cli/{chunk-III4UASP.mjs → chunk-C7JATIE5.mjs} +1 -1
  11. package/dist/cli/{chunk-2H37YDDG.js → chunk-D5KFELCC.js} +8 -8
  12. package/dist/cli/{chunk-ORQE3XBG.js → chunk-GDKUYYCJ.js} +50 -50
  13. package/dist/cli/{chunk-CKIELGYT.mjs → chunk-H4QOCJNY.mjs} +5 -5
  14. package/dist/cli/{chunk-V3T4CHXI.mjs → chunk-JDA2E5MQ.mjs} +1 -1
  15. package/dist/cli/{chunk-QUCAOIN7.js → chunk-LD7WUOAZ.js} +26 -26
  16. package/dist/cli/{chunk-O4JZTJEP.js → chunk-M3R2BG3A.js} +8 -8
  17. package/dist/cli/{chunk-BRMEK6KG.mjs → chunk-MSOOPRSP.mjs} +3 -3
  18. package/dist/cli/{chunk-IDXATBJB.js → chunk-OIODIUIC.js} +6 -6
  19. package/dist/cli/{chunk-QZDHNVKF.mjs → chunk-R2S7OCRB.mjs} +1 -1
  20. package/dist/cli/{chunk-UYIRTEU6.mjs → chunk-RMW6SXGP.mjs} +3 -3
  21. package/dist/cli/{chunk-H7Q6RK5Y.js → chunk-RWVQQ7O4.js} +44 -44
  22. package/dist/cli/{chunk-6SRV2NM3.js → chunk-S56LMBGA.js} +65 -65
  23. package/dist/cli/{chunk-USSWEZNP.js → chunk-SXGVRWAW.js} +15 -15
  24. package/dist/cli/{chunk-GCIMQKW4.mjs → chunk-TPA6R5EF.mjs} +2 -2
  25. package/dist/cli/{chunk-4OPBTEVW.js → chunk-WSKN3U4U.js} +6 -6
  26. package/dist/cli/{chunk-6PRUVCMW.mjs → chunk-X6WLVELL.mjs} +1 -1
  27. package/dist/cli/{chunk-H33BWG7S.mjs → chunk-YGHWGZMF.mjs} +1 -1
  28. package/dist/cli/{chunk-GYJSZ6J6.mjs → chunk-YJZM6SMA.mjs} +2 -2
  29. package/dist/cli/{chunk-BENKBQ2J.mjs → chunk-ZKV52IDD.mjs} +4 -4
  30. package/dist/cli/{csv-NK4QWZNT.js → csv-ARB6UC2S.js} +12 -12
  31. package/dist/cli/{csv-FLNTE5CW.mjs → csv-FICXQQRA.mjs} +3 -3
  32. package/dist/cli/{db-DU7J3CEM.js → db-HFQAZHLR.js} +25 -25
  33. package/dist/cli/{db-CAGTZIVN.mjs → db-OG5PJUEH.mjs} +4 -4
  34. package/dist/cli/{describe-IWQW7OLG.js → describe-HSHMULQM.js} +10 -10
  35. package/dist/cli/{describe-YJHDN5IE.mjs → describe-OU3J552L.mjs} +6 -6
  36. package/dist/cli/{executions-CDFAK267.mjs → executions-6JBC2LEV.mjs} +4 -4
  37. package/dist/cli/{executions-SUKU6I7V.js → executions-74BX6WTW.js} +6 -6
  38. package/dist/cli/{feedback-EQKQZTC4.mjs → feedback-DQMLYSYA.mjs} +3 -3
  39. package/dist/cli/{feedback-SRPRMYAN.js → feedback-QVDE26VJ.js} +7 -7
  40. package/dist/cli/git-62XASBWF.js +24 -0
  41. package/dist/cli/{git-M555IN55.mjs → git-CLGBVWOE.mjs} +4 -4
  42. package/dist/cli/index.js +89 -89
  43. package/dist/cli/index.mjs +32 -32
  44. package/dist/cli/{legacy-noops-M4X6PQFZ.js → legacy-noops-3WGVVY3K.js} +7 -7
  45. package/dist/cli/{legacy-noops-LRNAWLDN.mjs → legacy-noops-WRSE7SQJ.mjs} +4 -4
  46. package/dist/cli/{monitors-AOXY55KT.js → monitors-GY4VQLAC.js} +84 -84
  47. package/dist/cli/{monitors-IKRE2U3J.mjs → monitors-ZKFTF7YR.mjs} +4 -4
  48. package/dist/cli/{org-V5MRHKRO.mjs → org-D3PC2XSX.mjs} +4 -4
  49. package/dist/cli/{org-HNFRABMG.js → org-TYO2HXYG.js} +64 -64
  50. package/dist/cli/{play-Z22R7FWE.mjs → play-3OQWZXXS.mjs} +112 -33
  51. package/dist/cli/{play-LSGWSQE2.js → play-ZVHBPWSF.js} +375 -296
  52. package/dist/cli/{providers-BJJCETVG.mjs → providers-FFGKI5TY.mjs} +4 -4
  53. package/dist/cli/{providers-VYVFZR4J.js → providers-PGMUOSED.js} +7 -7
  54. package/dist/cli/{quickstart-EFPCKX32.mjs → quickstart-JCOPUMOG.mjs} +3 -3
  55. package/dist/cli/{quickstart-UGWUJK67.js → quickstart-PSA6H2J4.js} +5 -5
  56. package/dist/cli/search-OLW7VOVW.js +30 -0
  57. package/dist/cli/{search-NVPTBYU3.mjs → search-UBDRYRKV.mjs} +5 -5
  58. package/dist/cli/{secrets-ENLLOXON.js → secrets-35D7PHB6.js} +13 -13
  59. package/dist/cli/{secrets-4N4LSDKP.mjs → secrets-KERFAL3Q.mjs} +4 -4
  60. package/dist/cli/{sessions-PHGZZFBP.js → sessions-FDQFQHRN.js} +5 -5
  61. package/dist/cli/{sessions-7BKKDN5T.mjs → sessions-O2Z2KW6M.mjs} +4 -4
  62. package/dist/cli/{settings-CV2ZCTVK.js → settings-4FANCMJK.js} +74 -74
  63. package/dist/cli/{settings-VWEGOBRP.mjs → settings-4ZS7FR2D.mjs} +7 -7
  64. package/dist/cli/{setup-DEJSO3OM.js → setup-DO7JN6D5.js} +41 -41
  65. package/dist/cli/{setup-KG5HHXZD.mjs → setup-M2PE4H6S.mjs} +6 -6
  66. package/dist/cli/skills-OLGAL6KZ.js +29 -0
  67. package/dist/cli/{skills-EKFHOC3V.mjs → skills-TQBVDZRT.mjs} +4 -4
  68. package/dist/cli/{tools-4RLOPQJK.js → tools-3NNIOEWK.js} +7 -7
  69. package/dist/cli/{tools-4YNU6U4J.mjs → tools-WNRMVURQ.mjs} +6 -6
  70. package/dist/cli/{update-DE4SJRNA.mjs → update-3MF6MZJC.mjs} +6 -6
  71. package/dist/cli/update-6CWJ56OJ.js +29 -0
  72. package/dist/cli/{workflow-I7QMPLIW.js → workflow-EK3HMPGH.js} +15 -15
  73. package/dist/cli/{workflow-ODAFYNZA.mjs → workflow-UJB633SZ.mjs} +5 -5
  74. package/dist/index.js +6 -6
  75. package/dist/index.mjs +3 -3
  76. package/dist/install-integrity.json +70 -70
  77. package/dist/release.d.mts +1 -1
  78. package/dist/release.d.ts +1 -1
  79. package/dist/release.js +2 -2
  80. package/dist/release.mjs +1 -1
  81. package/package.json +1 -1
  82. package/dist/cli/auth-TNYZVC73.js +0 -40
  83. package/dist/cli/git-IRCN2ZZY.js +0 -24
  84. package/dist/cli/search-V3STUCIN.js +0 -30
  85. package/dist/cli/skills-YEVGRKB6.js +0 -29
  86. package/dist/cli/update-2RMF5UZD.js +0 -29
@@ -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 _chunkIDXATBJBjs = require('./chunk-IDXATBJB.js');
3
+ var _chunkOIODIUICjs = require('./chunk-OIODIUIC.js');
4
4
  require('./chunk-S6R3OX7B.js');
5
5
  require('./chunk-UHNDVD3P.js');
6
6
  require('./chunk-KXMNM4AQ.js');
7
7
  require('./chunk-XDVT3GOM.js');
8
8
 
9
9
 
10
- var _chunk4OPBTEVWjs = require('./chunk-4OPBTEVW.js');
10
+ var _chunkWSKN3U4Ujs = require('./chunk-WSKN3U4U.js');
11
11
 
12
12
 
13
13
 
@@ -28,11 +28,11 @@ var _chunk4OPBTEVWjs = require('./chunk-4OPBTEVW.js');
28
28
 
29
29
 
30
30
 
31
- var _chunkOVYVMPECjs = require('./chunk-OVYVMPEC.js');
31
+ var _chunkBHEJDACQjs = require('./chunk-BHEJDACQ.js');
32
32
  require('./chunk-Q2E4E4FJ.js');
33
33
  require('./chunk-XNYIZMNQ.js');
34
34
  require('./chunk-7P5AA3SN.js');
35
- require('./chunk-JIDNO3FI.js');
35
+ require('./chunk-5QD6F5TW.js');
36
36
  require('./chunk-OG64RBAC.js');
37
37
  require('./chunk-COGTRVWW.js');
38
38
 
@@ -48,7 +48,7 @@ var _fs = require('fs');
48
48
  var _path = require('path');
49
49
  function pendingOrgCreatePath(baseUrl, accountId, sourceOrgId, name) {
50
50
  const intent = _crypto.createHash.call(void 0, "sha256").update(accountId).update("\0").update(sourceOrgId).update("\0").update(name).digest("hex");
51
- return _path.join.call(void 0, _chunkOVYVMPECjs.sdkCliStateDirPath.call(void 0, baseUrl), `pending-org-create-${intent}.json`);
51
+ return _path.join.call(void 0, _chunkBHEJDACQjs.sdkCliStateDirPath.call(void 0, baseUrl), `pending-org-create-${intent}.json`);
52
52
  }
53
53
  function readPendingOrgCreate(path, accountId, sourceOrgId, name) {
54
54
  let value;
@@ -67,7 +67,7 @@ function readPendingOrgCreate(path, accountId, sourceOrgId, name) {
67
67
  return value;
68
68
  }
69
69
  function loadOrCreatePendingOrgCreate(input) {
70
- const stateDir = _chunkOVYVMPECjs.sdkCliStateDirPath.call(void 0, input.baseUrl);
70
+ const stateDir = _chunkBHEJDACQjs.sdkCliStateDirPath.call(void 0, input.baseUrl);
71
71
  const path = pendingOrgCreatePath(
72
72
  input.baseUrl,
73
73
  input.accountId,
@@ -152,11 +152,11 @@ function processEnvValue(name) {
152
152
  }
153
153
  function organizationAuthValues(input) {
154
154
  return {
155
- [_chunkOVYVMPECjs.HOST_URL_ENV]: input.baseUrl,
156
- [_chunkOVYVMPECjs.API_KEY_ENV]: input.apiKey,
157
- [_chunkOVYVMPECjs.ACTIVE_ORG_ID_ENV]: input.orgId,
158
- [_chunkOVYVMPECjs.ACTIVE_ORG_NAME_ENV]: input.orgName,
159
- ..._chunkOVYVMPECjs.featureEnvValues.call(void 0, input)
155
+ [_chunkBHEJDACQjs.HOST_URL_ENV]: input.baseUrl,
156
+ [_chunkBHEJDACQjs.API_KEY_ENV]: input.apiKey,
157
+ [_chunkBHEJDACQjs.ACTIVE_ORG_ID_ENV]: input.orgId,
158
+ [_chunkBHEJDACQjs.ACTIVE_ORG_NAME_ENV]: input.orgName,
159
+ ..._chunkBHEJDACQjs.featureEnvValues.call(void 0, input)
160
160
  };
161
161
  }
162
162
  function organizationCommandContext(input) {
@@ -170,14 +170,14 @@ function organizationCommandContext(input) {
170
170
  };
171
171
  }
172
172
  function agentCommandContext(commandContext) {
173
- return _chunkOVYVMPECjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? { command_context: commandContext } : {};
173
+ return _chunkBHEJDACQjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? { command_context: commandContext } : {};
174
174
  }
175
175
  function resolveOrgSwitchAuthTarget(scope, config) {
176
- const activeProject = _chunkOVYVMPECjs.getResolvedProjectAuthSource.call(void 0,
176
+ const activeProject = _chunkBHEJDACQjs.getResolvedProjectAuthSource.call(void 0,
177
177
  config.baseUrl,
178
178
  config.apiKey
179
179
  );
180
- const folderTarget = _chunkOVYVMPECjs.resolveProjectPinTarget.call(void 0, );
180
+ const folderTarget = _chunkBHEJDACQjs.resolveProjectPinTarget.call(void 0, );
181
181
  const globalOverrideWarning = activeProject && scope === "global" ? [
182
182
  `Folder auth in ${activeProject.filePath} overrides global auth for commands run here.`
183
183
  ] : [];
@@ -249,10 +249,10 @@ function resolveOrgSwitchAuthTarget(scope, config) {
249
249
  };
250
250
  }
251
251
  async function handleOrgList(options) {
252
- const config = _chunkOVYVMPECjs.resolveConfig.call(void 0, );
253
- const http = new (0, _chunkOVYVMPECjs.HttpClient)(config);
252
+ const config = _chunkBHEJDACQjs.resolveConfig.call(void 0, );
253
+ const http = new (0, _chunkBHEJDACQjs.HttpClient)(config);
254
254
  const payload = await fetchOrganizations(http, config.apiKey);
255
- _chunk4OPBTEVWjs.printCommandEnvelope.call(void 0,
255
+ _chunkWSKN3U4Ujs.printCommandEnvelope.call(void 0,
256
256
  {
257
257
  ...payload,
258
258
  render: {
@@ -268,22 +268,22 @@ async function handleOrgList(options) {
268
268
  );
269
269
  }
270
270
  async function handleOrgStatus(options) {
271
- const config = _chunkOVYVMPECjs.resolveConfig.call(void 0, );
272
- const http = new (0, _chunkOVYVMPECjs.HttpClient)(config);
271
+ const config = _chunkBHEJDACQjs.resolveConfig.call(void 0, );
272
+ const http = new (0, _chunkBHEJDACQjs.HttpClient)(config);
273
273
  const payload = await fetchOrganizations(http, config.apiKey);
274
274
  const current = _nullishCoalesce(_nullishCoalesce(payload.organizations.find((org) => org.is_current), () => ( payload.organizations.find(
275
275
  (org) => org.org_id === payload.current_org_id
276
276
  ))), () => ( null));
277
- const projectCandidate = _chunkOVYVMPECjs.getActiveProjectAuthSource.call(void 0, );
278
- const activeProject = _chunkOVYVMPECjs.getResolvedProjectAuthSource.call(void 0,
277
+ const projectCandidate = _chunkBHEJDACQjs.getActiveProjectAuthSource.call(void 0, );
278
+ const activeProject = _chunkBHEJDACQjs.getResolvedProjectAuthSource.call(void 0,
279
279
  config.baseUrl,
280
280
  config.apiKey
281
281
  );
282
- const folderTarget = _chunkOVYVMPECjs.resolveProjectPinTarget.call(void 0, );
283
- const provenance = _chunkOVYVMPECjs.resolveCliAuthProvenance.call(void 0, config);
284
- const hostPath = _chunkOVYVMPECjs.hostEnvFilePath.call(void 0, config.baseUrl);
285
- const envApiKey = processEnvValue(_chunkOVYVMPECjs.API_KEY_ENV);
286
- const envHostUrl = processEnvValue(_chunkOVYVMPECjs.HOST_URL_ENV);
282
+ const folderTarget = _chunkBHEJDACQjs.resolveProjectPinTarget.call(void 0, );
283
+ const provenance = _chunkBHEJDACQjs.resolveCliAuthProvenance.call(void 0, config);
284
+ const hostPath = _chunkBHEJDACQjs.hostEnvFilePath.call(void 0, config.baseUrl);
285
+ const envApiKey = processEnvValue(_chunkBHEJDACQjs.API_KEY_ENV);
286
+ const envHostUrl = processEnvValue(_chunkBHEJDACQjs.HOST_URL_ENV);
287
287
  const authSource = envApiKey ? {
288
288
  scope: "env",
289
289
  source: "process",
@@ -324,17 +324,17 @@ async function handleOrgStatus(options) {
324
324
  if (authSource.path) {
325
325
  lines.push(`Auth file: ${authSource.path}`);
326
326
  } else {
327
- lines.push(`Auth source: ${_chunkOVYVMPECjs.API_KEY_ENV} process environment`);
327
+ lines.push(`Auth source: ${_chunkBHEJDACQjs.API_KEY_ENV} process environment`);
328
328
  }
329
329
  if (envApiKey) {
330
- lines.push(`${_chunkOVYVMPECjs.API_KEY_ENV} overrides saved auth for this process.`);
330
+ lines.push(`${_chunkBHEJDACQjs.API_KEY_ENV} overrides saved auth for this process.`);
331
331
  } else if (activeProject) {
332
332
  lines.push("Global auth is overridden in this folder.");
333
333
  } else if (provenance.scope === "global" && provenance.project.state === "project") {
334
334
  lines.push("Cloud mutations are blocked until this project is pinned.");
335
335
  lines.push("Pin it: deepline org set --auth-scope folder");
336
336
  }
337
- _chunk4OPBTEVWjs.printCommandEnvelope.call(void 0,
337
+ _chunkWSKN3U4Ujs.printCommandEnvelope.call(void 0,
338
338
  {
339
339
  ok: true,
340
340
  host: config.baseUrl,
@@ -368,25 +368,25 @@ async function handleOrgStatus(options) {
368
368
  }
369
369
  async function handleOrgSwitch(selection, options) {
370
370
  const authScope = normalizeAuthScope(options.authScope);
371
- const config = _chunkOVYVMPECjs.resolveConfig.call(void 0, );
372
- const provenance = _chunkOVYVMPECjs.resolveCliAuthProvenance.call(void 0, config);
371
+ const config = _chunkBHEJDACQjs.resolveConfig.call(void 0, );
372
+ const provenance = _chunkBHEJDACQjs.resolveCliAuthProvenance.call(void 0, config);
373
373
  if (!selection && !options.orgId && authScope === "folder" && provenance.scope === "global" && provenance.project.state === "project") {
374
- const commandContext = _chunkOVYVMPECjs.resolveCliCommandContext.call(void 0, config);
374
+ const commandContext = _chunkBHEJDACQjs.resolveCliCommandContext.call(void 0, config);
375
375
  const activeOrganization = commandContext.active_organization;
376
- const pinnedFeatures = _chunkOVYVMPECjs.storedHostFeatures.call(void 0, config.baseUrl);
377
- const project_env_paths2 = _chunkOVYVMPECjs.saveProjectDeeplineEnvValues.call(void 0,
376
+ const pinnedFeatures = _chunkBHEJDACQjs.storedHostFeatures.call(void 0, config.baseUrl);
377
+ const project_env_paths2 = _chunkBHEJDACQjs.saveProjectDeeplineEnvValues.call(void 0,
378
378
  {
379
- [_chunkOVYVMPECjs.HOST_URL_ENV]: config.baseUrl,
380
- [_chunkOVYVMPECjs.API_KEY_ENV]: config.apiKey,
379
+ [_chunkBHEJDACQjs.HOST_URL_ENV]: config.baseUrl,
380
+ [_chunkBHEJDACQjs.API_KEY_ENV]: config.apiKey,
381
381
  ...activeOrganization ? {
382
- [_chunkOVYVMPECjs.ACTIVE_ORG_ID_ENV]: activeOrganization.org_id,
383
- [_chunkOVYVMPECjs.ACTIVE_ORG_NAME_ENV]: _nullishCoalesce(activeOrganization.org_name, () => ( ""))
382
+ [_chunkBHEJDACQjs.ACTIVE_ORG_ID_ENV]: activeOrganization.org_id,
383
+ [_chunkBHEJDACQjs.ACTIVE_ORG_NAME_ENV]: _nullishCoalesce(activeOrganization.org_name, () => ( ""))
384
384
  } : {},
385
- ...pinnedFeatures !== void 0 ? { [_chunkOVYVMPECjs.FEATURES_ENV]: pinnedFeatures } : {}
385
+ ...pinnedFeatures !== void 0 ? { [_chunkBHEJDACQjs.FEATURES_ENV]: pinnedFeatures } : {}
386
386
  },
387
387
  provenance.project.dir
388
388
  );
389
- _chunk4OPBTEVWjs.printCommandEnvelope.call(void 0,
389
+ _chunkWSKN3U4Ujs.printCommandEnvelope.call(void 0,
390
390
  {
391
391
  ok: true,
392
392
  unchanged: true,
@@ -398,7 +398,7 @@ async function handleOrgSwitch(selection, options) {
398
398
  orgId: activeOrganization.org_id,
399
399
  orgName: activeOrganization.org_name,
400
400
  authScope: "folder"
401
- }) : _chunkOVYVMPECjs.resolveCliCommandContext.call(void 0, config, "folder")
401
+ }) : _chunkBHEJDACQjs.resolveCliCommandContext.call(void 0, config, "folder")
402
402
  ),
403
403
  project_env_paths: project_env_paths2,
404
404
  next: { status: "deepline org status" },
@@ -419,10 +419,10 @@ async function handleOrgSwitch(selection, options) {
419
419
  );
420
420
  return;
421
421
  }
422
- const http = new (0, _chunkOVYVMPECjs.HttpClient)(config);
422
+ const http = new (0, _chunkBHEJDACQjs.HttpClient)(config);
423
423
  const payload = await fetchOrganizations(http, config.apiKey);
424
424
  if (!selection && !options.orgId) {
425
- _chunk4OPBTEVWjs.printCommandEnvelope.call(void 0,
425
+ _chunkWSKN3U4Ujs.printCommandEnvelope.call(void 0,
426
426
  {
427
427
  ...payload,
428
428
  next: { set: "deepline org set <number>" },
@@ -473,9 +473,9 @@ async function handleOrgSwitch(selection, options) {
473
473
  features
474
474
  });
475
475
  if (authTarget.kind === "folder") {
476
- project_env_paths2 = _chunkOVYVMPECjs.saveProjectDeeplineEnvValues.call(void 0, authValues2);
476
+ project_env_paths2 = _chunkBHEJDACQjs.saveProjectDeeplineEnvValues.call(void 0, authValues2);
477
477
  } else {
478
- _chunkOVYVMPECjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues2);
478
+ _chunkBHEJDACQjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues2);
479
479
  }
480
480
  const renderLines2 = [`Already on ${target.name}.`];
481
481
  for (const projectPath of project_env_paths2) {
@@ -483,7 +483,7 @@ async function handleOrgSwitch(selection, options) {
483
483
  }
484
484
  if (authTarget.kind === "global") {
485
485
  renderLines2.push(
486
- `Saved global auth in ${_chunkOVYVMPECjs.hostEnvFilePath.call(void 0, config.baseUrl)}`
486
+ `Saved global auth in ${_chunkBHEJDACQjs.hostEnvFilePath.call(void 0, config.baseUrl)}`
487
487
  );
488
488
  }
489
489
  renderLines2.push(
@@ -499,7 +499,7 @@ async function handleOrgSwitch(selection, options) {
499
499
  ...options.deprecatedSwitch ? ["org switch is deprecated; use org set."] : [],
500
500
  ...authTarget.warnings
501
501
  ];
502
- _chunk4OPBTEVWjs.printCommandEnvelope.call(void 0,
502
+ _chunkWSKN3U4Ujs.printCommandEnvelope.call(void 0,
503
503
  {
504
504
  ok: true,
505
505
  unchanged: true,
@@ -515,7 +515,7 @@ async function handleOrgSwitch(selection, options) {
515
515
  authScope: authTarget.effective_scope
516
516
  })
517
517
  ),
518
- host_env_path: authTarget.kind === "global" ? _chunkOVYVMPECjs.hostEnvFilePath.call(void 0, config.baseUrl) : null,
518
+ host_env_path: authTarget.kind === "global" ? _chunkBHEJDACQjs.hostEnvFilePath.call(void 0, config.baseUrl) : null,
519
519
  project_env_paths: project_env_paths2,
520
520
  deprecated_command: options.deprecatedSwitch ? "org switch" : null,
521
521
  replacement_command: options.deprecatedSwitch ? "deepline org set" : null,
@@ -541,9 +541,9 @@ async function handleOrgSwitch(selection, options) {
541
541
  features: switched.features
542
542
  });
543
543
  if (authTarget.kind === "folder") {
544
- project_env_paths = _chunkOVYVMPECjs.saveProjectDeeplineEnvValues.call(void 0, authValues);
544
+ project_env_paths = _chunkBHEJDACQjs.saveProjectDeeplineEnvValues.call(void 0, authValues);
545
545
  } else {
546
- _chunkOVYVMPECjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
546
+ _chunkBHEJDACQjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
547
547
  }
548
548
  const { api_key: _apiKey, ...publicSwitched } = switched;
549
549
  const renderLines = [`Switched to ${switched.org_name}.`];
@@ -552,7 +552,7 @@ async function handleOrgSwitch(selection, options) {
552
552
  renderLines.push(`Saved folder auth in ${projectPath}`);
553
553
  }
554
554
  } else {
555
- renderLines.push(`Saved global auth in ${_chunkOVYVMPECjs.hostEnvFilePath.call(void 0, config.baseUrl)}`);
555
+ renderLines.push(`Saved global auth in ${_chunkBHEJDACQjs.hostEnvFilePath.call(void 0, config.baseUrl)}`);
556
556
  }
557
557
  renderLines.push(
558
558
  `Scope: ${authTarget.requested_scope} -> ${authTarget.effective_scope} (${authTarget.reason})`
@@ -567,10 +567,10 @@ async function handleOrgSwitch(selection, options) {
567
567
  ...options.deprecatedSwitch ? ["org switch is deprecated; use org set."] : [],
568
568
  ...authTarget.warnings
569
569
  ];
570
- _chunk4OPBTEVWjs.printCommandEnvelope.call(void 0,
570
+ _chunkWSKN3U4Ujs.printCommandEnvelope.call(void 0,
571
571
  {
572
572
  ok: true,
573
- host_env_path: authTarget.kind === "global" ? _chunkOVYVMPECjs.hostEnvFilePath.call(void 0, config.baseUrl) : null,
573
+ host_env_path: authTarget.kind === "global" ? _chunkBHEJDACQjs.hostEnvFilePath.call(void 0, config.baseUrl) : null,
574
574
  project_env_paths,
575
575
  ...publicSwitched,
576
576
  api_key_saved: true,
@@ -601,12 +601,12 @@ async function handleOrgSwitch(selection, options) {
601
601
  );
602
602
  }
603
603
  async function handleOrgCreate(name, options) {
604
- const config = _chunkOVYVMPECjs.resolveConfig.call(void 0, );
604
+ const config = _chunkBHEJDACQjs.resolveConfig.call(void 0, );
605
605
  const normalizedName = name.trim();
606
606
  if (!normalizedName) {
607
607
  throw new Error("Workspace name is required.");
608
608
  }
609
- const http = new (0, _chunkOVYVMPECjs.HttpClient)(config);
609
+ const http = new (0, _chunkBHEJDACQjs.HttpClient)(config);
610
610
  const identity = await fetchWorkspaceCreationIdentity(http, config.apiKey);
611
611
  let created;
612
612
  let workspaceApiKey;
@@ -632,7 +632,7 @@ async function handleOrgCreate(name, options) {
632
632
  sourceOrgId: identity.orgId,
633
633
  name: normalizedName
634
634
  });
635
- const workspace = await new (0, _chunkIDXATBJBjs.DeeplineClient)({
635
+ const workspace = await new (0, _chunkOIODIUICjs.DeeplineClient)({
636
636
  apiKey: config.apiKey,
637
637
  baseUrl: config.baseUrl
638
638
  }).workspaces.create({
@@ -655,16 +655,16 @@ async function handleOrgCreate(name, options) {
655
655
  orgName: created.org_name,
656
656
  features: workspaceFeatures
657
657
  });
658
- _chunkOVYVMPECjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
658
+ _chunkBHEJDACQjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
659
659
  if (pendingIntentPath) _fs.unlinkSync.call(void 0, pendingIntentPath);
660
- _chunk4OPBTEVWjs.printCommandEnvelope.call(void 0,
660
+ _chunkWSKN3U4Ujs.printCommandEnvelope.call(void 0,
661
661
  {
662
662
  ok: true,
663
663
  ...created,
664
664
  initial_credits: typeof created.initial_credits === "number" ? created.initial_credits : 0,
665
665
  api_key_saved: true,
666
666
  switched: true,
667
- host_env_path: _chunkOVYVMPECjs.hostEnvFilePath.call(void 0, config.baseUrl),
667
+ host_env_path: _chunkBHEJDACQjs.hostEnvFilePath.call(void 0, config.baseUrl),
668
668
  ...agentCommandContext(
669
669
  organizationCommandContext({
670
670
  orgId: created.org_id,
@@ -679,7 +679,7 @@ async function handleOrgCreate(name, options) {
679
679
  lines: [
680
680
  `Created organization: ${created.org_name}.`,
681
681
  `Switched to ${created.org_name}.`,
682
- `Saved host auth in ${_chunkOVYVMPECjs.hostEnvFilePath.call(void 0, config.baseUrl)}`
682
+ `Saved host auth in ${_chunkBHEJDACQjs.hostEnvFilePath.call(void 0, config.baseUrl)}`
683
683
  ]
684
684
  }
685
685
  ]
@@ -731,7 +731,7 @@ Examples:
731
731
  );
732
732
  const sso = org.command("sso").description("Manage Enterprise workspace SSO.");
733
733
  const ssoPath = "/api/v2/auth/workspace/sso";
734
- const printSso = (payload, json) => _chunk4OPBTEVWjs.printCommandEnvelope.call(void 0,
734
+ const printSso = (payload, json) => _chunkWSKN3U4Ujs.printCommandEnvelope.call(void 0,
735
735
  {
736
736
  ...payload,
737
737
  render: {
@@ -755,7 +755,7 @@ Examples:
755
755
  },
756
756
  { json }
757
757
  );
758
- const ssoHttp = () => new (0, _chunkOVYVMPECjs.HttpClient)(_chunkOVYVMPECjs.resolveConfig.call(void 0, ));
758
+ const ssoHttp = () => new (0, _chunkBHEJDACQjs.HttpClient)(_chunkBHEJDACQjs.resolveConfig.call(void 0, ));
759
759
  sso.command("status").description("Show this workspace's SSO connection and plan eligibility.").option("--json", "Emit JSON output").action(async (options) => {
760
760
  printSso(await ssoHttp().get(ssoPath), options.json);
761
761
  });
@@ -786,8 +786,8 @@ Examples:
786
786
  "Identity provider metadata XML file"
787
787
  ).option("--json", "Emit JSON output").action(
788
788
  async (options) => {
789
- const config = _chunkOVYVMPECjs.resolveConfig.call(void 0, );
790
- const http = new (0, _chunkOVYVMPECjs.HttpClient)(config);
789
+ const config = _chunkBHEJDACQjs.resolveConfig.call(void 0, );
790
+ const http = new (0, _chunkBHEJDACQjs.HttpClient)(config);
791
791
  const identity = await fetchWorkspaceCreationIdentity(
792
792
  http,
793
793
  config.apiKey
@@ -4,11 +4,11 @@ import {
4
4
  } from "./chunk-OSDXE27V.mjs";
5
5
  import {
6
6
  registerDeprecatedSearchCommand
7
- } from "./chunk-BRMEK6KG.mjs";
7
+ } from "./chunk-MSOOPRSP.mjs";
8
8
  import {
9
9
  handleDeploymentGet,
10
10
  handleDeploymentsList
11
- } from "./chunk-GCIMQKW4.mjs";
11
+ } from "./chunk-TPA6R5EF.mjs";
12
12
  import {
13
13
  buildPlayDashboardUrl
14
14
  } from "./chunk-IHG7UAHD.mjs";
@@ -45,7 +45,7 @@ import {
45
45
  logProvenanceReaches,
46
46
  normalizeRunEventOperationRequest,
47
47
  parseLogLevel
48
- } from "./chunk-III4UASP.mjs";
48
+ } from "./chunk-C7JATIE5.mjs";
49
49
  import "./chunk-6IKARAYD.mjs";
50
50
  import {
51
51
  CSV_DATA_INPUT_KEY,
@@ -84,16 +84,16 @@ import {
84
84
  printJsonError,
85
85
  renderCommandEnvelopeText,
86
86
  shouldEmitJson
87
- } from "./chunk-V3T4CHXI.mjs";
87
+ } from "./chunk-JDA2E5MQ.mjs";
88
88
  import {
89
89
  fetchWithDeploymentProtection
90
- } from "./chunk-6PRUVCMW.mjs";
90
+ } from "./chunk-X6WLVELL.mjs";
91
91
  import "./chunk-YHPYUZZX.mjs";
92
92
  import "./chunk-DLIRSHV6.mjs";
93
93
  import {
94
94
  DeeplineError
95
95
  } from "./chunk-NXGCO4JB.mjs";
96
- import "./chunk-QZDHNVKF.mjs";
96
+ import "./chunk-R2S7OCRB.mjs";
97
97
  import "./chunk-WZYKRD7T.mjs";
98
98
  import {
99
99
  __commonJS,
@@ -13800,13 +13800,34 @@ function renderRunOverviewText(overview, extras = {}) {
13800
13800
 
13801
13801
  ${renderCommandEnvelopeText({ render: { sections, actions: actions2 } })}`;
13802
13802
  }
13803
+ var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
13804
+ async function withRunReadTiming(command, stage, enabled, action) {
13805
+ if (!enabled) return action();
13806
+ const startedAt = performance.now();
13807
+ const elapsedMs = () => Math.round(performance.now() - startedAt);
13808
+ console.error(`[${command}] ${stage} started`);
13809
+ const progressTimer = setInterval(() => {
13810
+ console.error(`[${command}] ${stage} still running after ${elapsedMs()}ms`);
13811
+ }, RUN_READ_TIMING_PROGRESS_INTERVAL_MS);
13812
+ progressTimer.unref?.();
13813
+ try {
13814
+ const result = await action();
13815
+ console.error(`[${command}] ${stage} completed in ${elapsedMs()}ms`);
13816
+ return result;
13817
+ } catch (error) {
13818
+ console.error(`[${command}] ${stage} failed after ${elapsedMs()}ms`);
13819
+ throw error;
13820
+ } finally {
13821
+ clearInterval(progressTimer);
13822
+ }
13823
+ }
13803
13824
  async function handleRunGet(args) {
13804
13825
  const selection = parseJsonFields(
13805
13826
  args,
13806
13827
  args.includes("--config") ? "config" : "get"
13807
13828
  );
13808
13829
  args = selection.args;
13809
- const usage2 = "Usage: deepline runs get <run-id> [--json] [--full] [--input] [--config] [--web-url]";
13830
+ const usage2 = "Usage: deepline runs get <run-id> [--json] [--full] [--input] [--config] [--web-url] [--timing]";
13810
13831
  let runId;
13811
13832
  try {
13812
13833
  runId = parseRunIdPositional(args, usage2);
@@ -13815,8 +13836,14 @@ async function handleRunGet(args) {
13815
13836
  return 1;
13816
13837
  }
13817
13838
  const client = new DeeplineClient();
13839
+ const timing = args.includes("--timing");
13818
13840
  if (args.includes("--web-url")) {
13819
- const status2 = await client.runs.get(runId, { full: false });
13841
+ const status2 = await withRunReadTiming(
13842
+ "runs get",
13843
+ "status",
13844
+ timing,
13845
+ () => client.runs.get(runId, { full: false })
13846
+ );
13820
13847
  const playName2 = resolveRunPlayName(status2, runId);
13821
13848
  if (!playName2) {
13822
13849
  console.error(`Run ${runId} does not name its play; no play page URL.`);
@@ -13837,7 +13864,12 @@ async function handleRunGet(args) {
13837
13864
  );
13838
13865
  return 1;
13839
13866
  }
13840
- const status2 = await client.runs.get(runId, { configuration: true });
13867
+ const status2 = await withRunReadTiming(
13868
+ "runs get",
13869
+ "configuration",
13870
+ timing,
13871
+ () => client.runs.get(runId, { configuration: true })
13872
+ );
13841
13873
  if (!Object.hasOwn(status2, "contract")) {
13842
13874
  throw new Error(
13843
13875
  "This server does not support recorded configuration reads."
@@ -13850,21 +13882,36 @@ async function handleRunGet(args) {
13850
13882
  return 0;
13851
13883
  }
13852
13884
  if (args.includes("--input")) {
13853
- const input = await client.getRunInput(runId);
13885
+ const input = await withRunReadTiming(
13886
+ "runs get",
13887
+ "input",
13888
+ timing,
13889
+ () => client.getRunInput(runId)
13890
+ );
13854
13891
  printCommandEnvelope(input, { json: true });
13855
13892
  return 0;
13856
13893
  }
13857
13894
  const full = args.includes("--full");
13858
- const status = await client.runs.get(runId, {
13859
- full: false,
13860
- failedLogs: args.includes("--log-failed")
13861
- });
13895
+ const status = await withRunReadTiming(
13896
+ "runs get",
13897
+ "status",
13898
+ timing,
13899
+ () => client.runs.get(runId, {
13900
+ full: false,
13901
+ failedLogs: args.includes("--log-failed")
13902
+ })
13903
+ );
13862
13904
  if (status.package) recordPlayTermination(buildRunOverview(status).run);
13863
13905
  if (!status.package) {
13864
- const legacyStatus = full ? await client.runs.get(runId, {
13865
- full: true,
13866
- failedLogs: args.includes("--log-failed")
13867
- }) : status;
13906
+ const legacyStatus = full ? await withRunReadTiming(
13907
+ "runs get",
13908
+ "legacy full status",
13909
+ timing,
13910
+ () => client.runs.get(runId, {
13911
+ full: true,
13912
+ failedLogs: args.includes("--log-failed")
13913
+ })
13914
+ ) : status;
13868
13915
  const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
13869
13916
  const legacyDashboardUrl = legacyPlayName ? buildPlayDashboardUrl(client.baseUrl, legacyPlayName) : null;
13870
13917
  if (argsWantJson(args)) {
@@ -13886,11 +13933,26 @@ async function handleRunGet(args) {
13886
13933
  }
13887
13934
  return 0;
13888
13935
  }
13889
- const fullStatus = full ? await client.runs.get(runId, { full: true }) : void 0;
13936
+ const fullStatus = full ? await withRunReadTiming(
13937
+ "runs get",
13938
+ "full result",
13939
+ timing,
13940
+ () => client.runs.get(runId, { full: true })
13941
+ ) : void 0;
13890
13942
  const overview = buildRunOverview(status, fullStatus);
13891
13943
  const [hits, credits] = await Promise.all([
13892
- readRunHitCounts(client, status),
13893
- readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
13944
+ withRunReadTiming(
13945
+ "runs get",
13946
+ "row summaries",
13947
+ timing,
13948
+ () => readRunHitCounts(client, status)
13949
+ ),
13950
+ withRunReadTiming(
13951
+ "runs get",
13952
+ "billing",
13953
+ timing,
13954
+ () => readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
13955
+ )
13894
13956
  ]);
13895
13957
  const hitLines = formatRunHitsLines(hits);
13896
13958
  const json = argsWantJson(args);
@@ -14053,7 +14115,8 @@ async function handleRunsRerun(args) {
14053
14115
  return runRunsRerunCommand(runId, options);
14054
14116
  }
14055
14117
  async function handleRunsList(args) {
14056
- const usage2 = "Usage: deepline runs list [--play <play-name>] [--node <mermaid-node-id>] [--status <status>] [--limit <count>] [--offset <count>] [--json]";
14118
+ const usage2 = "Usage: deepline runs list [--play <play-name>] [--node <mermaid-node-id>] [--status <status>] [--limit <count>] [--offset <count>] [--json] [--timing]";
14119
+ const timing = args.includes("--timing");
14057
14120
  let playName = null;
14058
14121
  let nodeId = null;
14059
14122
  let statusFilter = null;
@@ -14124,13 +14187,18 @@ Active runs: ${next.running}`
14124
14187
  return 1;
14125
14188
  }
14126
14189
  const client = new DeeplineClient();
14127
- const page = await client.runs.listPage({
14128
- ...playName ? { play: playName } : {},
14129
- ...statusFilter ? { status: statusFilter } : {},
14130
- ...nodeId ? { node: nodeId } : {},
14131
- ...limit !== void 0 ? { limit } : {},
14132
- ...offset !== void 0 ? { offset } : {}
14133
- });
14190
+ const page = await withRunReadTiming(
14191
+ "runs list",
14192
+ "run inventory",
14193
+ timing,
14194
+ () => client.runs.listPage({
14195
+ ...playName ? { play: playName } : {},
14196
+ ...statusFilter ? { status: statusFilter } : {},
14197
+ ...nodeId ? { node: nodeId } : {},
14198
+ ...limit !== void 0 ? { limit } : {},
14199
+ ...offset !== void 0 ? { offset } : {}
14200
+ })
14201
+ );
14134
14202
  const runs = page.runs.map((run) => ({
14135
14203
  id: run.workflowId,
14136
14204
  runId: run.workflowId,
@@ -16642,7 +16710,7 @@ Examples:
16642
16710
  process.exitCode = await ownView();
16643
16711
  return;
16644
16712
  }
16645
- const { describeAnything } = await import("./describe-YJHDN5IE.mjs");
16713
+ const { describeAnything } = await import("./describe-OU3J552L.mjs");
16646
16714
  process.exitCode = await describeAnything(
16647
16715
  name,
16648
16716
  {
@@ -16938,6 +17006,8 @@ Notes:
16938
17006
  --json run.status,datasets.name,actions selects fields without flattening.
16939
17007
  Selection changes stdout only, not the server query. Optional missing paths
16940
17008
  are omitted; array positions are preserved. --json diagnostics needs --full.
17009
+ --timing writes each read phase and periodic long-read updates to stderr;
17010
+ JSON stdout stays unchanged.
16941
17011
  dashboardUrl (text: "play page:") links the run's play page; link it in a
16942
17012
  final answer. --web-url prints only that URL (with --json: {"dashboardUrl"}).
16943
17013
 
@@ -16962,7 +17032,10 @@ Examples:
16962
17032
  ).option(
16963
17033
  "--config",
16964
17034
  "Explicitly print the recorded configuration, without full results"
16965
- ).option("--web-url", "Print only the run's play page URL").addOption(
17035
+ ).option("--web-url", "Print only the run's play page URL").option(
17036
+ "--timing",
17037
+ "Report read phases and periodic long-read updates to stderr"
17038
+ ).addOption(
16966
17039
  new Option2("--log-failed", "Attach terminal-failure logs").hideHelp()
16967
17040
  ).action(async (runId, options) => {
16968
17041
  process.exitCode = await handleRunGet([
@@ -16972,6 +17045,7 @@ Examples:
16972
17045
  ...options.full ? ["--full"] : [],
16973
17046
  ...options.input ? ["--input"] : [],
16974
17047
  ...options.config ? ["--config"] : [],
17048
+ ...options.timing ? ["--timing"] : [],
16975
17049
  ...options.logFailed ? ["--log-failed"] : []
16976
17050
  ]);
16977
17051
  });
@@ -17017,6 +17091,7 @@ Notes:
17017
17091
  JSON runs[].id is the public ID accepted by runs get, watch, export, and stop.
17018
17092
  runId and workflowId are compatibility aliases; temporalRunId is not the public ID.
17019
17093
  Use the ID returned by plays run for your execution, not the latest inventory entry.
17094
+ --timing writes the inventory request duration and periodic long-read updates to stderr.
17020
17095
 
17021
17096
  Examples:
17022
17097
  deepline runs list --play my-play
@@ -17024,14 +17099,18 @@ Examples:
17024
17099
  deepline runs list --play my-play --status failed --compact
17025
17100
  deepline runs list --status running --compact
17026
17101
  `
17027
- ).option("--play <name>", "Play name to filter runs").option("--status <status>", "Filter by run status").option("--limit <count>", "Maximum runs to return").option("--offset <count>", "Zero-based page offset (requires --play)").option("--compact", "Drop verbose fields from JSON output").option("--json", "Emit JSON output").action(async (options) => {
17102
+ ).option("--play <name>", "Play name to filter runs").option("--status <status>", "Filter by run status").option("--limit <count>", "Maximum runs to return").option("--offset <count>", "Zero-based page offset (requires --play)").option("--compact", "Drop verbose fields from JSON output").option("--json", "Emit JSON output").option(
17103
+ "--timing",
17104
+ "Report the inventory request duration and periodic long-read updates to stderr"
17105
+ ).action(async (options) => {
17028
17106
  process.exitCode = await handleRunsList([
17029
17107
  ...options.play ? ["--play", options.play] : [],
17030
17108
  ...options.status ? ["--status", options.status] : [],
17031
17109
  ...options.limit ? ["--limit", options.limit] : [],
17032
17110
  ...options.offset ? ["--offset", options.offset] : [],
17033
17111
  ...options.compact ? ["--compact"] : [],
17034
- ...options.json ? ["--json"] : []
17112
+ ...options.json ? ["--json"] : [],
17113
+ ...options.timing ? ["--timing"] : []
17035
17114
  ]);
17036
17115
  });
17037
17116
  runs.command("stop-all").description("Stop active play runs in the current workspace.").addHelpText(