deepline 0.3.449 → 0.3.451

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/play.ts +1 -1
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +3 -3
  4. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +1 -1
  5. package/dist/bundling-sources/shared_libs/observability/telemetry.ts +2 -1
  6. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-terminal-push.ts +133 -2
  7. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +80 -1
  8. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +16 -3
  9. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +34 -10
  10. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +14 -11
  11. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +54 -6
  12. package/dist/cli/auth-WPQBEOES.js +40 -0
  13. package/dist/cli/{auth-YK26H6J4.mjs → auth-YLBWEMRW.mjs} +4 -4
  14. package/dist/cli/{billing-CNQTA3GB.mjs → billing-DUFOEOPT.mjs} +4 -4
  15. package/dist/cli/{billing-4KS7B4U3.js → billing-GWG5D3P6.js} +73 -73
  16. package/dist/cli/{chunk-7ZIXBQQ7.mjs → chunk-33EM4SMH.mjs} +3 -3
  17. package/dist/cli/{chunk-UBKYOUWW.mjs → chunk-37CPEQBE.mjs} +3 -3
  18. package/dist/cli/{chunk-6GZCN5TQ.mjs → chunk-3HT47QPJ.mjs} +2 -2
  19. package/dist/cli/{chunk-3NDIWD42.mjs → chunk-4C7HPD57.mjs} +1 -1
  20. package/dist/cli/{chunk-NZEKP7IE.js → chunk-5DUMNKQG.js} +50 -50
  21. package/dist/cli/{chunk-MPMLO7CZ.js → chunk-6G6KX7I7.js} +6 -6
  22. package/dist/cli/{chunk-EICL26GT.js → chunk-6TFACCXN.js} +2 -2
  23. package/dist/cli/{chunk-RPG4M5UD.js → chunk-7VRWERTM.js} +10 -10
  24. package/dist/cli/{chunk-L4RSMA4V.mjs → chunk-BJOVX7EB.mjs} +2 -2
  25. package/dist/cli/{chunk-KPTUP6NA.mjs → chunk-BQQLTSGC.mjs} +4 -4
  26. package/dist/cli/{chunk-XQ3SQONI.js → chunk-C4NPWUZY.js} +52 -52
  27. package/dist/cli/{chunk-PUXZ2KKO.js → chunk-CH2WDSBC.js} +8 -8
  28. package/dist/cli/{chunk-DNXWVDL7.mjs → chunk-E7V5CRA2.mjs} +8 -8
  29. package/dist/cli/{chunk-ZHFSBKLN.js → chunk-EJ6YI46S.js} +2 -2
  30. package/dist/cli/{chunk-EZTBBDYU.js → chunk-F2DW7DFE.js} +8 -8
  31. package/dist/cli/{chunk-S4RC3CBU.js → chunk-HSKLAPMD.js} +26 -26
  32. package/dist/cli/{chunk-NTQRNY4J.js → chunk-JRPNCMMN.js} +35 -35
  33. package/dist/cli/{chunk-TMPLRRFJ.mjs → chunk-JUCEEIEC.mjs} +1 -1
  34. package/dist/cli/{chunk-UKEINGF3.js → chunk-L2IUGWV5.js} +1 -1
  35. package/dist/cli/{chunk-TBOUEQKK.mjs → chunk-LPPAJJJN.mjs} +1 -1
  36. package/dist/cli/{chunk-UZN4GB6J.js → chunk-O3KVUHCG.js} +20 -20
  37. package/dist/cli/{chunk-2O4JOOZU.mjs → chunk-OKTCLFKM.mjs} +5 -5
  38. package/dist/cli/{chunk-56EULWUU.mjs → chunk-PJYTV24I.mjs} +1 -1
  39. package/dist/cli/{chunk-TEKBWPMT.mjs → chunk-RFPP4Q66.mjs} +3 -3
  40. package/dist/cli/{chunk-2PQAXRHK.js → chunk-TFCLUWDQ.js} +6 -6
  41. package/dist/cli/{chunk-HDGN7HC5.js → chunk-WDOWAOYB.js} +4 -4
  42. package/dist/cli/{chunk-HJ4KEE6R.mjs → chunk-WLVGRU5A.mjs} +2 -2
  43. package/dist/cli/{chunk-3653HHHS.mjs → chunk-XLOXUW5Y.mjs} +1 -1
  44. package/dist/cli/{chunk-ZSCS7MC2.mjs → chunk-YXXIFMXI.mjs} +2 -2
  45. package/dist/cli/{chunk-B77RQVZ3.js → chunk-Z3DBS4IB.js} +81 -81
  46. package/dist/cli/{chunk-RVB3VVEH.js → chunk-ZNDE2BTH.js} +16 -16
  47. package/dist/cli/{chunk-BZPSFI7J.mjs → chunk-ZPV7DMAA.mjs} +1 -1
  48. package/dist/cli/{csv-3CD3TJD6.js → csv-4CHXZQXO.js} +12 -12
  49. package/dist/cli/{csv-A4V7TFYC.mjs → csv-RL7WQD6Y.mjs} +3 -3
  50. package/dist/cli/{db-STC5BK4K.js → db-MRI5IM2A.js} +25 -25
  51. package/dist/cli/{db-VSUPLVTX.mjs → db-ZDBAWV7B.mjs} +4 -4
  52. package/dist/cli/{describe-ZKG4DMJT.js → describe-2FYKXM5B.js} +16 -16
  53. package/dist/cli/{describe-GHZKYS4A.mjs → describe-RRQUUJQ3.mjs} +12 -12
  54. package/dist/cli/{executions-HCC3CNO6.js → executions-KDBD47A5.js} +6 -6
  55. package/dist/cli/{executions-UJ3IL4UT.mjs → executions-RJL76TJS.mjs} +4 -4
  56. package/dist/cli/{feedback-ZU77DPV2.js → feedback-2CE24NHD.js} +7 -7
  57. package/dist/cli/{feedback-SAR53LLO.mjs → feedback-KOYLXHYE.mjs} +3 -3
  58. package/dist/cli/git-DZ5GROPH.js +24 -0
  59. package/dist/cli/{git-TVZCW7DR.mjs → git-RDUHU6L6.mjs} +4 -4
  60. package/dist/cli/index.js +131 -131
  61. package/dist/cli/index.mjs +36 -36
  62. package/dist/cli/{legacy-noops-J4ZZXHYM.mjs → legacy-noops-4HS2LYP6.mjs} +4 -4
  63. package/dist/cli/{legacy-noops-Z3WHNTSA.js → legacy-noops-7FOMGBMN.js} +7 -7
  64. package/dist/cli/{monitors-LV36TKZ4.js → monitors-IJXNK5BL.js} +93 -92
  65. package/dist/cli/{monitors-CWXHKFTV.mjs → monitors-JLBTNBVU.mjs} +13 -12
  66. package/dist/cli/{org-SCZUUDNC.js → org-JL7SW6VY.js} +66 -66
  67. package/dist/cli/{org-L62Y54LR.mjs → org-OWP6K4AA.mjs} +4 -4
  68. package/dist/cli/{play-BBPMHBOF.mjs → play-FNOVKU74.mjs} +10 -10
  69. package/dist/cli/{play-R3DYB7VW.js → play-LLNZWHT6.js} +283 -283
  70. package/dist/cli/{providers-FCEWCAU5.js → providers-E4XIEUC7.js} +7 -7
  71. package/dist/cli/{providers-UIIH2I5D.mjs → providers-WBOEOKE7.mjs} +4 -4
  72. package/dist/cli/{quickstart-RDPEZCYS.js → quickstart-3FUHKGEY.js} +5 -5
  73. package/dist/cli/{quickstart-TF3GJYKG.mjs → quickstart-6G5G3BVA.mjs} +3 -3
  74. package/dist/cli/search-4ECC773X.js +30 -0
  75. package/dist/cli/{search-YXLWFCC2.mjs → search-CNMB4Z6M.mjs} +5 -5
  76. package/dist/cli/{secrets-5BLHMG6B.mjs → secrets-5FY5APVK.mjs} +4 -4
  77. package/dist/cli/{secrets-CXK3KSSF.js → secrets-BDSWOYAT.js} +13 -13
  78. package/dist/cli/{sessions-AFBLVB2P.js → sessions-B7T2CHYK.js} +5 -5
  79. package/dist/cli/{sessions-LI5LSWTV.mjs → sessions-PMIKVPQN.mjs} +4 -4
  80. package/dist/cli/{settings-X4L4DAPQ.mjs → settings-4TAYLTPR.mjs} +8 -8
  81. package/dist/cli/{settings-52OZBLSO.js → settings-RXQJRRLR.js} +75 -75
  82. package/dist/cli/{setup-V7SWBDE7.mjs → setup-LVUISLVO.mjs} +7 -7
  83. package/dist/cli/{setup-RZAG66C6.js → setup-ZTMETGSO.js} +42 -42
  84. package/dist/cli/skills-MIENPTOD.js +29 -0
  85. package/dist/cli/{skills-SS563CGW.mjs → skills-NSJ43Z5Q.mjs} +5 -5
  86. package/dist/cli/{tools-BZJQPQAH.mjs → tools-CFCKIGDY.mjs} +12 -12
  87. package/dist/cli/tools-CXJO5XSH.js +44 -0
  88. package/dist/cli/update-B2LQGEXF.js +31 -0
  89. package/dist/cli/{update-B7FAZUAD.mjs → update-HYOCBXJO.mjs} +7 -7
  90. package/dist/cli/{workflow-ASOCZBWQ.mjs → workflow-RKX45RJ4.mjs} +6 -6
  91. package/dist/cli/{workflow-66DHJDSN.js → workflow-U6S4SWTF.js} +16 -16
  92. package/dist/index.d.mts +1 -1
  93. package/dist/index.d.ts +1 -1
  94. package/dist/index.js +6 -6
  95. package/dist/index.mjs +3 -3
  96. package/dist/install-integrity.json +78 -78
  97. package/dist/release.d.mts +1 -1
  98. package/dist/release.d.ts +1 -1
  99. package/dist/release.js +2 -2
  100. package/dist/release.mjs +1 -1
  101. package/package.json +1 -1
  102. package/dist/cli/auth-NVVEYCNF.js +0 -40
  103. package/dist/cli/git-GJLNAT37.js +0 -24
  104. package/dist/cli/search-GQK4C6UL.js +0 -30
  105. package/dist/cli/skills-4DXTSI6L.js +0 -29
  106. package/dist/cli/tools-63ZIXQJ5.js +0 -44
  107. package/dist/cli/update-ZDGSS4OW.js +0 -31
@@ -1,7 +1,7 @@
1
1
  import "./chunk-EXMLR72R.mjs";
2
2
  import {
3
3
  DeeplineClient
4
- } from "./chunk-TBOUEQKK.mjs";
4
+ } from "./chunk-LPPAJJJN.mjs";
5
5
  import "./chunk-L2VKAASU.mjs";
6
6
  import "./chunk-FAG4DFUC.mjs";
7
7
  import "./chunk-EIMG75BT.mjs";
@@ -19,8 +19,8 @@ import {
19
19
  printCommandEnvelope,
20
20
  printJson,
21
21
  shouldEmitJson
22
- } from "./chunk-3653HHHS.mjs";
23
- import "./chunk-56EULWUU.mjs";
22
+ } from "./chunk-XLOXUW5Y.mjs";
23
+ import "./chunk-PJYTV24I.mjs";
24
24
  import {
25
25
  AuthError
26
26
  } from "./chunk-4QF2K7TM.mjs";
@@ -28,7 +28,7 @@ import "./chunk-DLIRSHV6.mjs";
28
28
  import {
29
29
  DeeplineError
30
30
  } from "./chunk-HBL4PM5Q.mjs";
31
- import "./chunk-BZPSFI7J.mjs";
31
+ import "./chunk-ZPV7DMAA.mjs";
32
32
  import "./chunk-WZYKRD7T.mjs";
33
33
  import "./chunk-KRD6H754.mjs";
34
34
 
@@ -81,10 +81,10 @@ function monitorsFailureNextCommand(error, exitCode, options) {
81
81
  return "deepline monitors status";
82
82
  }
83
83
  if (error instanceof DeeplineError && error.code === "monitor_tool_not_found") {
84
- return "deepline monitors available";
84
+ return "deepline tools list --categories monitors";
85
85
  }
86
86
  if (exitCode === 3) return "deepline auth status";
87
- if (exitCode === 4) return "deepline monitors list --status all";
87
+ if (exitCode === 4) return "deepline monitors list --state all";
88
88
  return void 0;
89
89
  }
90
90
  function readValidationIssues(error) {
@@ -576,7 +576,7 @@ function renderAvailableToolsText(payload) {
576
576
  "",
577
577
  "Next:",
578
578
  " Inspect payload fields, output columns, and a play binding:",
579
- " deepline monitors available <provider.tool>",
579
+ " deepline describe <provider.tool>",
580
580
  " See monitors already deployed in this workspace:",
581
581
  " deepline monitors list",
582
582
  " Validate a monitor definition before deploying:",
@@ -592,7 +592,7 @@ async function handleMonitorsAvailable(toolId, options) {
592
592
  if (toolId !== void 0 && options.tool !== void 0) {
593
593
  if (toolId !== options.tool) {
594
594
  throw new MonitorsUsageError(
595
- `Pass the tool id once: got positional "${toolId}" and --tool "${options.tool}". Use: deepline monitors available ${toolId}`
595
+ `Pass the tool id once: got positional "${toolId}" and --tool "${options.tool}". Use: deepline describe ${toolId}`
596
596
  );
597
597
  }
598
598
  }
@@ -2456,7 +2456,7 @@ Examples:
2456
2456
  deepline monitors check '{"key":"job-openings","tool":"deepline_native.company_radar","payload":{"domain":"stripe.com","radar_type":"company_job_openings"}}'
2457
2457
  deepline monitors deploy --dry-run --file monitor.json
2458
2458
  deepline monitors deploy --file monitor.json
2459
- deepline monitors list --status all
2459
+ deepline monitors list --state all
2460
2460
  deepline monitors get my-monitor
2461
2461
  deepline monitors update my-monitor '{"name":"Interested replies"}'
2462
2462
  deepline monitors delete my-monitor --dry-run
@@ -2732,8 +2732,7 @@ Examples:
2732
2732
  deepline monitors list --state provisioning
2733
2733
  deepline monitors list --state billing_suspended
2734
2734
  deepline monitors list --state all
2735
- deepline monitors list --status all
2736
- deepline monitors list --status all --cursor <next_cursor>
2735
+ deepline monitors list --state all --cursor <next_cursor>
2737
2736
  deepline monitors list --include-consumers --limit 20
2738
2737
  `
2739
2738
  ).option(
@@ -2904,7 +2903,9 @@ Examples:
2904
2903
  Notes:
2905
2904
  DESTRUCTIVE. Deprovisions the upstream provider resource and removes its
2906
2905
  Deepline-managed monitor. Retries are safe: a delete that already reached its requested terminal state
2907
- returns already_deleted without making another upstream call.
2906
+ returns already_deleted without making another upstream call. A deleted monitor whose provider
2907
+ resource a later audit found still active has not reached that state: delete closes the resource
2908
+ again and proves it inactive, and the monitor stays deleted.
2908
2909
  A delete of a provisioning monitor returns delete_pending: true; the monitor
2909
2910
  is deleted as soon as its create settles.
2910
2911
  --dry-run shows the delete plan without deleting anything.
@@ -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 _chunkRPG4M5UDjs = require('./chunk-RPG4M5UD.js');
3
+ var _chunk7VRWERTMjs = require('./chunk-7VRWERTM.js');
4
4
  require('./chunk-E4CABWXL.js');
5
5
  require('./chunk-JKVRBCZL.js');
6
6
  require('./chunk-KXMNM4AQ.js');
7
7
  require('./chunk-XDVT3GOM.js');
8
8
 
9
9
 
10
- var _chunkMPMLO7CZjs = require('./chunk-MPMLO7CZ.js');
10
+ var _chunk6G6KX7I7js = require('./chunk-6G6KX7I7.js');
11
11
 
12
12
 
13
13
 
@@ -28,11 +28,11 @@ var _chunkMPMLO7CZjs = require('./chunk-MPMLO7CZ.js');
28
28
 
29
29
 
30
30
 
31
- var _chunkHDGN7HC5js = require('./chunk-HDGN7HC5.js');
31
+ var _chunkWDOWAOYBjs = require('./chunk-WDOWAOYB.js');
32
32
  require('./chunk-ALJJRZNJ.js');
33
33
  require('./chunk-XNYIZMNQ.js');
34
34
  require('./chunk-DIAWYWT5.js');
35
- require('./chunk-UKEINGF3.js');
35
+ require('./chunk-L2IUGWV5.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, _chunkHDGN7HC5js.sdkCliStateDirPath.call(void 0, baseUrl), `pending-org-create-${intent}.json`);
51
+ return _path.join.call(void 0, _chunkWDOWAOYBjs.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 = _chunkHDGN7HC5js.sdkCliStateDirPath.call(void 0, input.baseUrl);
70
+ const stateDir = _chunkWDOWAOYBjs.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
- [_chunkHDGN7HC5js.HOST_URL_ENV]: input.baseUrl,
156
- [_chunkHDGN7HC5js.API_KEY_ENV]: input.apiKey,
157
- [_chunkHDGN7HC5js.ACTIVE_ORG_ID_ENV]: input.orgId,
158
- [_chunkHDGN7HC5js.ACTIVE_ORG_NAME_ENV]: input.orgName,
159
- ..._chunkHDGN7HC5js.featureEnvValues.call(void 0, input)
155
+ [_chunkWDOWAOYBjs.HOST_URL_ENV]: input.baseUrl,
156
+ [_chunkWDOWAOYBjs.API_KEY_ENV]: input.apiKey,
157
+ [_chunkWDOWAOYBjs.ACTIVE_ORG_ID_ENV]: input.orgId,
158
+ [_chunkWDOWAOYBjs.ACTIVE_ORG_NAME_ENV]: input.orgName,
159
+ ..._chunkWDOWAOYBjs.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 _chunkHDGN7HC5js.detectAgentRuntime.call(void 0, ) !== "unknown" ? { command_context: commandContext } : {};
173
+ return _chunkWDOWAOYBjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? { command_context: commandContext } : {};
174
174
  }
175
175
  function resolveOrgSwitchAuthTarget(scope, config) {
176
- const activeProject = _chunkHDGN7HC5js.getResolvedProjectAuthSource.call(void 0,
176
+ const activeProject = _chunkWDOWAOYBjs.getResolvedProjectAuthSource.call(void 0,
177
177
  config.baseUrl,
178
178
  config.apiKey
179
179
  );
180
- const folderTarget = _chunkHDGN7HC5js.resolveProjectPinTarget.call(void 0, );
180
+ const folderTarget = _chunkWDOWAOYBjs.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 = _chunkHDGN7HC5js.resolveConfig.call(void 0, );
253
- const http = new (0, _chunkHDGN7HC5js.HttpClient)(config);
252
+ const config = _chunkWDOWAOYBjs.resolveConfig.call(void 0, );
253
+ const http = new (0, _chunkWDOWAOYBjs.HttpClient)(config);
254
254
  const payload = await fetchOrganizations(http, config.apiKey);
255
- _chunkMPMLO7CZjs.printCommandEnvelope.call(void 0,
255
+ _chunk6G6KX7I7js.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 = _chunkHDGN7HC5js.resolveConfig.call(void 0, );
272
- const http = new (0, _chunkHDGN7HC5js.HttpClient)(config);
271
+ const config = _chunkWDOWAOYBjs.resolveConfig.call(void 0, );
272
+ const http = new (0, _chunkWDOWAOYBjs.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 = _chunkHDGN7HC5js.getActiveProjectAuthSource.call(void 0, );
278
- const activeProject = _chunkHDGN7HC5js.getResolvedProjectAuthSource.call(void 0,
277
+ const projectCandidate = _chunkWDOWAOYBjs.getActiveProjectAuthSource.call(void 0, );
278
+ const activeProject = _chunkWDOWAOYBjs.getResolvedProjectAuthSource.call(void 0,
279
279
  config.baseUrl,
280
280
  config.apiKey
281
281
  );
282
- const folderTarget = _chunkHDGN7HC5js.resolveProjectPinTarget.call(void 0, );
283
- const provenance = _chunkHDGN7HC5js.resolveCliAuthProvenance.call(void 0, config);
284
- const hostPath = _chunkHDGN7HC5js.hostEnvFilePath.call(void 0, config.baseUrl);
285
- const envApiKey = processEnvValue(_chunkHDGN7HC5js.API_KEY_ENV);
286
- const envHostUrl = processEnvValue(_chunkHDGN7HC5js.HOST_URL_ENV);
282
+ const folderTarget = _chunkWDOWAOYBjs.resolveProjectPinTarget.call(void 0, );
283
+ const provenance = _chunkWDOWAOYBjs.resolveCliAuthProvenance.call(void 0, config);
284
+ const hostPath = _chunkWDOWAOYBjs.hostEnvFilePath.call(void 0, config.baseUrl);
285
+ const envApiKey = processEnvValue(_chunkWDOWAOYBjs.API_KEY_ENV);
286
+ const envHostUrl = processEnvValue(_chunkWDOWAOYBjs.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: ${_chunkHDGN7HC5js.API_KEY_ENV} process environment`);
327
+ lines.push(`Auth source: ${_chunkWDOWAOYBjs.API_KEY_ENV} process environment`);
328
328
  }
329
329
  if (envApiKey) {
330
- lines.push(`${_chunkHDGN7HC5js.API_KEY_ENV} overrides saved auth for this process.`);
330
+ lines.push(`${_chunkWDOWAOYBjs.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
- _chunkMPMLO7CZjs.printCommandEnvelope.call(void 0,
337
+ _chunk6G6KX7I7js.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 = _chunkHDGN7HC5js.resolveConfig.call(void 0, );
372
- const provenance = _chunkHDGN7HC5js.resolveCliAuthProvenance.call(void 0, config);
371
+ const config = _chunkWDOWAOYBjs.resolveConfig.call(void 0, );
372
+ const provenance = _chunkWDOWAOYBjs.resolveCliAuthProvenance.call(void 0, config);
373
373
  if (!selection && !options.orgId && authScope === "folder" && provenance.scope === "global" && provenance.project.state === "project") {
374
- const commandContext = _chunkHDGN7HC5js.resolveCliCommandContext.call(void 0, config);
374
+ const commandContext = _chunkWDOWAOYBjs.resolveCliCommandContext.call(void 0, config);
375
375
  const activeOrganization = commandContext.active_organization;
376
- const pinnedFeatures = _chunkHDGN7HC5js.storedHostFeatures.call(void 0, config.baseUrl);
377
- const project_env_paths2 = _chunkHDGN7HC5js.saveProjectDeeplineEnvValues.call(void 0,
376
+ const pinnedFeatures = _chunkWDOWAOYBjs.storedHostFeatures.call(void 0, config.baseUrl);
377
+ const project_env_paths2 = _chunkWDOWAOYBjs.saveProjectDeeplineEnvValues.call(void 0,
378
378
  {
379
- [_chunkHDGN7HC5js.HOST_URL_ENV]: config.baseUrl,
380
- [_chunkHDGN7HC5js.API_KEY_ENV]: config.apiKey,
379
+ [_chunkWDOWAOYBjs.HOST_URL_ENV]: config.baseUrl,
380
+ [_chunkWDOWAOYBjs.API_KEY_ENV]: config.apiKey,
381
381
  ...activeOrganization ? {
382
- [_chunkHDGN7HC5js.ACTIVE_ORG_ID_ENV]: activeOrganization.org_id,
383
- [_chunkHDGN7HC5js.ACTIVE_ORG_NAME_ENV]: _nullishCoalesce(activeOrganization.org_name, () => ( ""))
382
+ [_chunkWDOWAOYBjs.ACTIVE_ORG_ID_ENV]: activeOrganization.org_id,
383
+ [_chunkWDOWAOYBjs.ACTIVE_ORG_NAME_ENV]: _nullishCoalesce(activeOrganization.org_name, () => ( ""))
384
384
  } : {},
385
- ...pinnedFeatures !== void 0 ? { [_chunkHDGN7HC5js.FEATURES_ENV]: pinnedFeatures } : {}
385
+ ...pinnedFeatures !== void 0 ? { [_chunkWDOWAOYBjs.FEATURES_ENV]: pinnedFeatures } : {}
386
386
  },
387
387
  provenance.project.dir
388
388
  );
389
- _chunkMPMLO7CZjs.printCommandEnvelope.call(void 0,
389
+ _chunk6G6KX7I7js.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
- }) : _chunkHDGN7HC5js.resolveCliCommandContext.call(void 0, config, "folder")
401
+ }) : _chunkWDOWAOYBjs.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, _chunkHDGN7HC5js.HttpClient)(config);
422
+ const http = new (0, _chunkWDOWAOYBjs.HttpClient)(config);
423
423
  const payload = await fetchOrganizations(http, config.apiKey);
424
424
  if (!selection && !options.orgId) {
425
- _chunkMPMLO7CZjs.printCommandEnvelope.call(void 0,
425
+ _chunk6G6KX7I7js.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 = _chunkHDGN7HC5js.saveProjectDeeplineEnvValues.call(void 0, authValues2);
476
+ project_env_paths2 = _chunkWDOWAOYBjs.saveProjectDeeplineEnvValues.call(void 0, authValues2);
477
477
  } else {
478
- _chunkHDGN7HC5js.saveHostEnvValues.call(void 0, config.baseUrl, authValues2);
478
+ _chunkWDOWAOYBjs.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 ${_chunkHDGN7HC5js.hostEnvFilePath.call(void 0, config.baseUrl)}`
486
+ `Saved global auth in ${_chunkWDOWAOYBjs.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
- _chunkMPMLO7CZjs.printCommandEnvelope.call(void 0,
502
+ _chunk6G6KX7I7js.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" ? _chunkHDGN7HC5js.hostEnvFilePath.call(void 0, config.baseUrl) : null,
518
+ host_env_path: authTarget.kind === "global" ? _chunkWDOWAOYBjs.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 = _chunkHDGN7HC5js.saveProjectDeeplineEnvValues.call(void 0, authValues);
544
+ project_env_paths = _chunkWDOWAOYBjs.saveProjectDeeplineEnvValues.call(void 0, authValues);
545
545
  } else {
546
- _chunkHDGN7HC5js.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
546
+ _chunkWDOWAOYBjs.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 ${_chunkHDGN7HC5js.hostEnvFilePath.call(void 0, config.baseUrl)}`);
555
+ renderLines.push(`Saved global auth in ${_chunkWDOWAOYBjs.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
- _chunkMPMLO7CZjs.printCommandEnvelope.call(void 0,
570
+ _chunk6G6KX7I7js.printCommandEnvelope.call(void 0,
571
571
  {
572
572
  ok: true,
573
- host_env_path: authTarget.kind === "global" ? _chunkHDGN7HC5js.hostEnvFilePath.call(void 0, config.baseUrl) : null,
573
+ host_env_path: authTarget.kind === "global" ? _chunkWDOWAOYBjs.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 = _chunkHDGN7HC5js.resolveConfig.call(void 0, );
604
+ const config = _chunkWDOWAOYBjs.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, _chunkHDGN7HC5js.HttpClient)(config);
609
+ const http = new (0, _chunkWDOWAOYBjs.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, _chunkRPG4M5UDjs.DeeplineClient)({
635
+ const workspace = await new (0, _chunk7VRWERTMjs.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
- _chunkHDGN7HC5js.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
658
+ _chunkWDOWAOYBjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
659
659
  if (pendingIntentPath) _fs.unlinkSync.call(void 0, pendingIntentPath);
660
- _chunkMPMLO7CZjs.printCommandEnvelope.call(void 0,
660
+ _chunk6G6KX7I7js.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: _chunkHDGN7HC5js.hostEnvFilePath.call(void 0, config.baseUrl),
667
+ host_env_path: _chunkWDOWAOYBjs.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 ${_chunkHDGN7HC5js.hostEnvFilePath.call(void 0, config.baseUrl)}`
682
+ `Saved host auth in ${_chunkWDOWAOYBjs.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) => _chunkMPMLO7CZjs.printCommandEnvelope.call(void 0,
734
+ const printSso = (payload, json) => _chunk6G6KX7I7js.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, _chunkHDGN7HC5js.HttpClient)(_chunkHDGN7HC5js.resolveConfig.call(void 0, ));
758
+ const ssoHttp = () => new (0, _chunkWDOWAOYBjs.HttpClient)(_chunkWDOWAOYBjs.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 = _chunkHDGN7HC5js.resolveConfig.call(void 0, );
790
- const http = new (0, _chunkHDGN7HC5js.HttpClient)(config);
789
+ const config = _chunkWDOWAOYBjs.resolveConfig.call(void 0, );
790
+ const http = new (0, _chunkWDOWAOYBjs.HttpClient)(config);
791
791
  const identity = await fetchWorkspaceCreationIdentity(
792
792
  http,
793
793
  config.apiKey
@@ -851,13 +851,13 @@ Examples:
851
851
  if (chosen.length > 1) {
852
852
  throw new Error("Pass one of a logo URL, --domain, or --remove.");
853
853
  }
854
- const http = new (0, _chunkHDGN7HC5js.HttpClient)(_chunkHDGN7HC5js.resolveConfig.call(void 0, ));
854
+ const http = new (0, _chunkWDOWAOYBjs.HttpClient)(_chunkWDOWAOYBjs.resolveConfig.call(void 0, ));
855
855
  const path = "/api/v2/auth/workspace/logo";
856
856
  const payload = chosen.length === 0 ? await http.get(path) : await http.patch(
857
857
  path,
858
858
  options.domain ? { domain: options.domain } : { logo: _nullishCoalesce(url, () => ( null)) }
859
859
  );
860
- _chunkMPMLO7CZjs.printCommandEnvelope.call(void 0,
860
+ _chunk6G6KX7I7js.printCommandEnvelope.call(void 0,
861
861
  {
862
862
  ...payload,
863
863
  render: {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-TBOUEQKK.mjs";
3
+ } from "./chunk-LPPAJJJN.mjs";
4
4
  import "./chunk-L2VKAASU.mjs";
5
5
  import "./chunk-FAG4DFUC.mjs";
6
6
  import "./chunk-EIMG75BT.mjs";
7
7
  import "./chunk-UBKA33KY.mjs";
8
8
  import {
9
9
  printCommandEnvelope
10
- } from "./chunk-3653HHHS.mjs";
10
+ } from "./chunk-XLOXUW5Y.mjs";
11
11
  import {
12
12
  ACTIVE_ORG_ID_ENV,
13
13
  ACTIVE_ORG_NAME_ENV,
@@ -28,11 +28,11 @@ import {
28
28
  saveProjectDeeplineEnvValues,
29
29
  sdkCliStateDirPath,
30
30
  storedHostFeatures
31
- } from "./chunk-56EULWUU.mjs";
31
+ } from "./chunk-PJYTV24I.mjs";
32
32
  import "./chunk-4QF2K7TM.mjs";
33
33
  import "./chunk-DLIRSHV6.mjs";
34
34
  import "./chunk-HBL4PM5Q.mjs";
35
- import "./chunk-BZPSFI7J.mjs";
35
+ import "./chunk-ZPV7DMAA.mjs";
36
36
  import "./chunk-WZYKRD7T.mjs";
37
37
  import "./chunk-KRD6H754.mjs";
38
38
 
@@ -4,11 +4,11 @@ import {
4
4
  } from "./chunk-YBWAG72P.mjs";
5
5
  import {
6
6
  registerDeprecatedSearchCommand
7
- } from "./chunk-TEKBWPMT.mjs";
7
+ } from "./chunk-RFPP4Q66.mjs";
8
8
  import {
9
9
  handleDeploymentGet,
10
10
  handleDeploymentsList
11
- } from "./chunk-ZSCS7MC2.mjs";
11
+ } from "./chunk-YXXIFMXI.mjs";
12
12
  import {
13
13
  buildPlayDashboardUrl
14
14
  } from "./chunk-HDFRJ4IT.mjs";
@@ -49,7 +49,7 @@ import {
49
49
  normalizePlayStatus,
50
50
  normalizeRunEventOperationRequest,
51
51
  parseLogLevel
52
- } from "./chunk-TBOUEQKK.mjs";
52
+ } from "./chunk-LPPAJJJN.mjs";
53
53
  import "./chunk-L2VKAASU.mjs";
54
54
  import {
55
55
  CSV_DATA_INPUT_KEY,
@@ -70,17 +70,17 @@ import "./chunk-UBKA33KY.mjs";
70
70
  import {
71
71
  checkPlayRunCompatibility,
72
72
  usesInlinePlayAdmission
73
- } from "./chunk-6GZCN5TQ.mjs";
73
+ } from "./chunk-3HT47QPJ.mjs";
74
74
  import {
75
75
  isCliTraceEnabled,
76
76
  recordCliTrace,
77
77
  resolveCliMaintenancePolicy,
78
78
  traceCliSpan
79
- } from "./chunk-3NDIWD42.mjs";
79
+ } from "./chunk-4C7HPD57.mjs";
80
80
  import {
81
81
  createCliProgress,
82
82
  getActiveCliProgress
83
- } from "./chunk-7ZIXBQQ7.mjs";
83
+ } from "./chunk-33EM4SMH.mjs";
84
84
  import {
85
85
  argsWantJson,
86
86
  csvSafeJsonString,
@@ -95,16 +95,16 @@ import {
95
95
  printJsonError,
96
96
  renderCommandEnvelopeText,
97
97
  shouldEmitJson
98
- } from "./chunk-3653HHHS.mjs";
98
+ } from "./chunk-XLOXUW5Y.mjs";
99
99
  import {
100
100
  fetchWithDeploymentProtection
101
- } from "./chunk-56EULWUU.mjs";
101
+ } from "./chunk-PJYTV24I.mjs";
102
102
  import "./chunk-4QF2K7TM.mjs";
103
103
  import "./chunk-DLIRSHV6.mjs";
104
104
  import {
105
105
  DeeplineError
106
106
  } from "./chunk-HBL4PM5Q.mjs";
107
- import "./chunk-BZPSFI7J.mjs";
107
+ import "./chunk-ZPV7DMAA.mjs";
108
108
  import "./chunk-WZYKRD7T.mjs";
109
109
  import {
110
110
  __commonJS,
@@ -17236,7 +17236,7 @@ Examples:
17236
17236
  process.exitCode = await ownView();
17237
17237
  return;
17238
17238
  }
17239
- const { describeAnything } = await import("./describe-GHZKYS4A.mjs");
17239
+ const { describeAnything } = await import("./describe-RRQUUJQ3.mjs");
17240
17240
  process.exitCode = await describeAnything(
17241
17241
  name,
17242
17242
  {