deepline 0.3.543 → 0.3.544

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 (154) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +6 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/integration-contracts/monitor-fleet-contract.ts +3 -1
  4. package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +108 -1
  5. package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +29 -0
  6. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +2 -1
  7. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +3 -0
  8. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +3 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +1 -1
  10. package/dist/cli/auth-ENBXAKQS.js +43 -0
  11. package/dist/cli/{auth-ITAELTOA.mjs → auth-IMWJAHPU.mjs} +5 -5
  12. package/dist/cli/{billing-33XVFDUJ.js → billing-Y55PR2PV.js} +92 -92
  13. package/dist/cli/{billing-WZ7RVZW4.mjs → billing-YQMW3QJI.mjs} +8 -8
  14. package/dist/cli/{chunk-F6VSQ5LN.js → chunk-22OBDYHP.js} +12 -12
  15. package/dist/cli/{chunk-23D224GI.js → chunk-3I26HMJ7.js} +9 -9
  16. package/dist/cli/{chunk-274WKLSY.mjs → chunk-3JDA23NN.mjs} +2 -2
  17. package/dist/cli/{chunk-TBCNL2T5.js → chunk-3KGMM4KS.js} +1 -1
  18. package/dist/cli/{chunk-HKJ26NRN.mjs → chunk-456RRXAP.mjs} +5 -5
  19. package/dist/cli/{chunk-2KTGZKRE.js → chunk-4PKHFW56.js} +15 -15
  20. package/dist/cli/{chunk-XFPVFWZR.mjs → chunk-57G4NYOL.mjs} +1 -1
  21. package/dist/cli/{chunk-XBM3KABD.mjs → chunk-5PR4VLLL.mjs} +2 -2
  22. package/dist/cli/{chunk-NLENABRU.js → chunk-7GNZEOTH.js} +6 -6
  23. package/dist/cli/{chunk-C35NLLSA.js → chunk-7HMMTSDA.js} +5 -5
  24. package/dist/cli/{chunk-NR3O56FT.mjs → chunk-BEQ7RQLT.mjs} +5 -5
  25. package/dist/cli/{chunk-BGAUADV4.js → chunk-C4P2KLWT.js} +41 -41
  26. package/dist/cli/{chunk-MCBUWK5K.js → chunk-COJHT2KF.js} +22 -22
  27. package/dist/cli/{chunk-3JZXU5OB.js → chunk-DF2X7GJG.js} +5 -5
  28. package/dist/cli/{chunk-DH43ECTN.mjs → chunk-DVDWAC2M.mjs} +2 -2
  29. package/dist/cli/{chunk-2NCJQEZH.js → chunk-DYDHLBSK.js} +53 -53
  30. package/dist/cli/{chunk-GRCFX2EG.js → chunk-G26VJCNT.js} +4 -4
  31. package/dist/cli/{chunk-J2F6F5GL.js → chunk-GQHRGBHV.js} +5 -5
  32. package/dist/cli/{chunk-4SKDSSPU.mjs → chunk-GV45TTI6.mjs} +2 -2
  33. package/dist/cli/{chunk-W2OPPSAZ.mjs → chunk-H4SAHB3Q.mjs} +3 -3
  34. package/dist/cli/{chunk-52YK3EII.mjs → chunk-HAQRF6DJ.mjs} +2 -2
  35. package/dist/cli/{chunk-SYOPHFKB.mjs → chunk-HBSWATOU.mjs} +5 -5
  36. package/dist/cli/{chunk-FNW2SGPD.mjs → chunk-HVJQF5BI.mjs} +2 -2
  37. package/dist/cli/{chunk-R57UCXQG.mjs → chunk-HXM2JUGD.mjs} +1 -1
  38. package/dist/cli/{chunk-STXG2LFC.js → chunk-IFIJ4DBJ.js} +2 -2
  39. package/dist/cli/{chunk-5MN3BKNB.js → chunk-JBWOE6AP.js} +16 -16
  40. package/dist/cli/{chunk-2LNTKICO.js → chunk-JWVG7ZPX.js} +3 -3
  41. package/dist/cli/{chunk-O2KLWUNI.js → chunk-KE6CSCUF.js} +44 -44
  42. package/dist/cli/{chunk-OELJKQOL.mjs → chunk-LPUBBUKX.mjs} +2 -2
  43. package/dist/cli/{chunk-XSN6BAZT.mjs → chunk-LQ6RRYXN.mjs} +5 -5
  44. package/dist/cli/{chunk-5VIPTLRX.mjs → chunk-LW274RO7.mjs} +1 -1
  45. package/dist/cli/{chunk-QFRMVI4S.js → chunk-ON56ISO6.js} +3 -3
  46. package/dist/cli/{chunk-46BEBZ3M.js → chunk-PDJ4UDCO.js} +29 -28
  47. package/dist/cli/{chunk-ZRT2PNYY.mjs → chunk-PFGOCUH3.mjs} +1 -1
  48. package/dist/cli/{chunk-NHKP2NSU.js → chunk-PKRW76XG.js} +2 -2
  49. package/dist/cli/{chunk-6SJZMMD5.mjs → chunk-PMW5YP72.mjs} +11 -11
  50. package/dist/cli/{chunk-D6YAU3CF.mjs → chunk-Q7ZOWNKR.mjs} +2 -1
  51. package/dist/cli/{chunk-SZNJENGT.mjs → chunk-REEOMNCO.mjs} +3 -3
  52. package/dist/cli/{chunk-YJYKZ2U3.js → chunk-RG34YBDE.js} +2 -2
  53. package/dist/cli/{chunk-ZSPBJB7I.mjs → chunk-RJPDCSTD.mjs} +4 -4
  54. package/dist/cli/{chunk-YE3T73BV.js → chunk-RUFR4PUO.js} +10 -10
  55. package/dist/cli/{chunk-AACKPOGA.mjs → chunk-SK3HPU2J.mjs} +1 -1
  56. package/dist/cli/{chunk-OAFKUHN5.mjs → chunk-SKS53WM6.mjs} +4 -4
  57. package/dist/cli/{chunk-EHUG6EUT.js → chunk-UHIAQPVA.js} +26 -26
  58. package/dist/cli/{chunk-DUGTPVT7.js → chunk-UNMNGRPB.js} +7 -7
  59. package/dist/cli/{chunk-DI3GL3T6.js → chunk-W7X4KH45.js} +99 -99
  60. package/dist/cli/{chunk-7AUQTNLB.mjs → chunk-WBSGPLH5.mjs} +2 -2
  61. package/dist/cli/{chunk-SU4K4SUU.mjs → chunk-WUEORIOY.mjs} +1 -1
  62. package/dist/cli/{chunk-VSJEOSYL.mjs → chunk-YIRVKMON.mjs} +1 -1
  63. package/dist/cli/{chunk-UJ6GOV7K.js → chunk-Z44YTSTA.js} +13 -13
  64. package/dist/cli/{chunk-JXG7HWBA.mjs → chunk-ZHY4T5M6.mjs} +1 -1
  65. package/dist/cli/{chunk-PX7XAVUC.js → chunk-ZY6FL4O4.js} +19 -19
  66. package/dist/cli/{concurrent-runs-help-Z6ODNL4E.mjs → concurrent-runs-help-KBWPKSTP.mjs} +6 -6
  67. package/dist/cli/concurrent-runs-help-TOMLCMV7.js +21 -0
  68. package/dist/cli/{csv-5QW2HPHT.mjs → csv-M5EBEMZH.mjs} +4 -4
  69. package/dist/cli/{csv-SSOFTXHU.js → csv-XGGDZTQI.js} +13 -13
  70. package/dist/cli/{db-4LK5AJNO.js → db-CVPR54XK.js} +27 -27
  71. package/dist/cli/{db-K2JMR6EM.mjs → db-M6FJ6J6E.mjs} +6 -6
  72. package/dist/cli/describe-RUODIS6M.js +50 -0
  73. package/dist/cli/{describe-AXHQZHTT.mjs → describe-X6QA2U3C.mjs} +18 -18
  74. package/dist/cli/describe-core.d.mts +2 -2
  75. package/dist/cli/describe-core.d.ts +2 -2
  76. package/dist/cli/{executions-FY2XTX2W.mjs → executions-EHTS2XJX.mjs} +6 -6
  77. package/dist/cli/{executions-AATJQQAQ.js → executions-VJEEWN22.js} +8 -8
  78. package/dist/cli/{feedback-MKBPRGS6.mjs → feedback-76VGY4GP.mjs} +6 -6
  79. package/dist/cli/{feedback-QPVJER75.js → feedback-DQPUCUXO.js} +14 -14
  80. package/dist/cli/{git-AGRFZR3K.mjs → git-IY6DKKLR.mjs} +5 -5
  81. package/dist/cli/git-RLHTSYRY.js +25 -0
  82. package/dist/cli/index.js +142 -142
  83. package/dist/cli/index.mjs +44 -44
  84. package/dist/cli/{integrations-OUQ6U33M.mjs → integrations-242LE3TQ.mjs} +7 -7
  85. package/dist/cli/{integrations-R6OUFZXI.js → integrations-CQSTIKFY.js} +15 -15
  86. package/dist/cli/{legacy-noops-DVL2RRKL.mjs → legacy-noops-SWTSTMRY.mjs} +6 -6
  87. package/dist/cli/{legacy-noops-H7INM2QN.js → legacy-noops-U72DO6ZF.js} +9 -9
  88. package/dist/cli/{mcp-2Z2YVOLK.mjs → mcp-JJH6JR52.mjs} +4 -4
  89. package/dist/cli/{mcp-33F7D7WI.js → mcp-L473BKLJ.js} +24 -24
  90. package/dist/cli/{monitors-KDUJHAKJ.js → monitors-3TF2DOFD.js} +117 -102
  91. package/dist/cli/{monitors-NZD2WIKK.mjs → monitors-VSYHUBKC.mjs} +24 -9
  92. package/dist/cli/{org-EJW45RUA.mjs → org-S5VIKU2E.mjs} +6 -6
  93. package/dist/cli/{org-4PQGHLEB.js → org-YKVI2ZTI.js} +88 -88
  94. package/dist/cli/{play-3CM5RT5J.mjs → play-C7T5A3QM.mjs} +17 -17
  95. package/dist/cli/{play-MLHMQL4G.js → play-DOWEG45Y.js} +317 -317
  96. package/dist/cli/{providers-BHYBJI4R.mjs → providers-BMVVX3VD.mjs} +6 -6
  97. package/dist/cli/{providers-YBJG7277.js → providers-TAZPPFTB.js} +9 -9
  98. package/dist/cli/{quickstart-LL3MR562.mjs → quickstart-A3WKMKTW.mjs} +4 -4
  99. package/dist/cli/{quickstart-O7L2NNGJ.js → quickstart-HD6FQXGR.js} +6 -6
  100. package/dist/cli/{run-HJ2AR6CM.js → run-BVVV2UX7.js} +43 -43
  101. package/dist/cli/{run-OK545H5Q.mjs → run-FV7TWNOC.mjs} +23 -23
  102. package/dist/cli/{search-Z5ZKMRTX.mjs → search-MGK6WIKS.mjs} +7 -7
  103. package/dist/cli/search-VJFCWUZN.js +32 -0
  104. package/dist/cli/{search-output-SVW4DETG.js → search-output-6Y7KEPIE.js} +6 -6
  105. package/dist/cli/{search-output-Q5VHNUWG.mjs → search-output-GM7LDZKE.mjs} +4 -4
  106. package/dist/cli/{secrets-QIKIEFWB.mjs → secrets-4RFAR7YI.mjs} +6 -6
  107. package/dist/cli/{secrets-ENQWMCB5.js → secrets-SISXIXSZ.js} +15 -15
  108. package/dist/cli/{sessions-AETO22RF.mjs → sessions-CE3OMEG7.mjs} +6 -6
  109. package/dist/cli/sessions-OWWZJZXH.js +22 -0
  110. package/dist/cli/{settings-OFLIFTMZ.js → settings-4HPM3K4A.js} +85 -85
  111. package/dist/cli/{settings-G5RGRPFV.mjs → settings-E22IDSX2.mjs} +12 -12
  112. package/dist/cli/{setup-QW7Y62XD.js → setup-BDRSNLKX.js} +49 -49
  113. package/dist/cli/{setup-G4N3X6KG.mjs → setup-BK65MDZ6.mjs} +9 -9
  114. package/dist/cli/{skills-QRFQGHNA.mjs → skills-FI2GZMR4.mjs} +7 -7
  115. package/dist/cli/skills-ZLBFUAFR.js +36 -0
  116. package/dist/cli/tools-3K72VE33.js +57 -0
  117. package/dist/cli/{tools-52BH7UTF.mjs → tools-HMMWYUNW.mjs} +17 -17
  118. package/dist/cli/update-QZV6DH5V.js +34 -0
  119. package/dist/cli/{update-SDGZLAGL.mjs → update-WDKBSXV5.mjs} +9 -9
  120. package/dist/cli/{views-5QKAWYPI.js → views-775AUDWQ.js} +21 -21
  121. package/dist/cli/{views-3BIJFJMQ.mjs → views-JYIJCO23.mjs} +6 -6
  122. package/dist/cli/{workflow-G67RPWVY.js → workflow-4H6KQRFQ.js} +17 -17
  123. package/dist/cli/{workflow-QAK773FR.mjs → workflow-FKKHE3IU.mjs} +7 -7
  124. package/dist/{client-bd4QQIXo.d.mts → client-ANT3pyoa.d.mts} +1 -1
  125. package/dist/{client-D1ga52xq.d.ts → client-DD_FyJVd.d.ts} +1 -1
  126. package/dist/{client-core-CqfWNf2Q.d.mts → client-core-Dg9tKhdB.d.mts} +5 -0
  127. package/dist/{client-core-B6eMVx8h.d.ts → client-core-QHmo73k1.d.ts} +5 -0
  128. package/dist/index.d.mts +3 -3
  129. package/dist/index.d.ts +3 -3
  130. package/dist/index.js +9 -9
  131. package/dist/index.mjs +6 -6
  132. package/dist/install-integrity.json +114 -114
  133. package/dist/plays/play-description.d.mts +1 -1
  134. package/dist/plays/play-description.d.ts +1 -1
  135. package/dist/plays/run-request.d.mts +1 -1
  136. package/dist/plays/run-request.d.ts +1 -1
  137. package/dist/release.d.mts +1 -1
  138. package/dist/release.d.ts +1 -1
  139. package/dist/release.js +2 -2
  140. package/dist/release.mjs +1 -1
  141. package/dist/server.d.mts +2 -2
  142. package/dist/server.d.ts +2 -2
  143. package/dist/server.js +5 -5
  144. package/dist/server.mjs +3 -3
  145. package/package.json +1 -1
  146. package/dist/cli/auth-S6B5WUU5.js +0 -43
  147. package/dist/cli/concurrent-runs-help-E4OYD3DS.js +0 -21
  148. package/dist/cli/describe-AC6PLEFP.js +0 -50
  149. package/dist/cli/git-RUYFQEJX.js +0 -25
  150. package/dist/cli/search-UUNS6BCC.js +0 -32
  151. package/dist/cli/sessions-FNSUDERA.js +0 -22
  152. package/dist/cli/skills-3IXIY2IV.js +0 -36
  153. package/dist/cli/tools-MYBUMPKH.js +0 -57
  154. package/dist/cli/update-GT7574UU.js +0 -34
@@ -1,8 +1,8 @@
1
1
  import "./chunk-EXMLR72R.mjs";
2
2
  import {
3
3
  DeeplineClient
4
- } from "./chunk-4SKDSSPU.mjs";
5
- import "./chunk-D6YAU3CF.mjs";
4
+ } from "./chunk-GV45TTI6.mjs";
5
+ import "./chunk-Q7ZOWNKR.mjs";
6
6
  import "./chunk-HXIR3VQL.mjs";
7
7
  import "./chunk-LX35AXTN.mjs";
8
8
  import "./chunk-PSX3WHIH.mjs";
@@ -18,15 +18,15 @@ import {
18
18
  } from "./chunk-ZG7BOECV.mjs";
19
19
  import {
20
20
  createCliProgress
21
- } from "./chunk-VSJEOSYL.mjs";
21
+ } from "./chunk-YIRVKMON.mjs";
22
22
  import {
23
23
  errorToJsonPayload,
24
24
  printCommandEnvelope,
25
25
  printJson,
26
26
  shouldEmitJson
27
- } from "./chunk-DH43ECTN.mjs";
28
- import "./chunk-R57UCXQG.mjs";
29
- import "./chunk-JXG7HWBA.mjs";
27
+ } from "./chunk-DVDWAC2M.mjs";
28
+ import "./chunk-HXM2JUGD.mjs";
29
+ import "./chunk-ZHY4T5M6.mjs";
30
30
  import {
31
31
  AuthError
32
32
  } from "./chunk-CQBIO6HW.mjs";
@@ -34,7 +34,7 @@ import "./chunk-DLIRSHV6.mjs";
34
34
  import {
35
35
  DeeplineError
36
36
  } from "./chunk-JL2OTMSG.mjs";
37
- import "./chunk-ZRT2PNYY.mjs";
37
+ import "./chunk-PFGOCUH3.mjs";
38
38
  import "./chunk-WZYKRD7T.mjs";
39
39
  import "./chunk-KRD6H754.mjs";
40
40
 
@@ -1460,10 +1460,13 @@ function fleetPlanLine(payload) {
1460
1460
  }).sort(([left], [right]) => left.localeCompare(right));
1461
1461
  const blockedTotal = entries.reduce((sum, [, count]) => sum + count, 0);
1462
1462
  const detail = entries.length === 0 ? "" : entries.length === 1 ? ` (${entries[0][0]})` : ` (${entries.map(([id, count]) => `${id}: ${count}`).join(", ")})`;
1463
+ const renames = asFiniteNumber(plan.renames) ?? 0;
1464
+ const adopts = (asFiniteNumber(plan.adopts) ?? 0) + (asFiniteNumber(plan.adoptsWithUpdate) ?? 0);
1463
1465
  return [
1464
1466
  `creates ${asFiniteNumber(plan.creates) ?? 0}`,
1465
- `updates ${asFiniteNumber(plan.updates) ?? 0}`,
1467
+ `updates ${asFiniteNumber(plan.updates) ?? 0}${renames > 0 ? ` (${renames} name only)` : ""}`,
1466
1468
  `removes ${asFiniteNumber(plan.removes) ?? 0}`,
1469
+ ...adopts > 0 ? [`adopts ${adopts}`] : [],
1467
1470
  `blocked ${blockedTotal}${detail}`
1468
1471
  ].join(" \xB7 ");
1469
1472
  }
@@ -1774,6 +1777,7 @@ function fleetSyncCommandLine(target, options) {
1774
1777
  if (options.file) parts.push(`--file ${fleetShellArg(options.file)}`);
1775
1778
  else if (target) parts.push(fleetShellArg(target));
1776
1779
  if (options.dryRun) parts.push("--dry-run");
1780
+ if (options.adoptExisting) parts.push("--adopt-existing");
1777
1781
  if (options.wait) parts.push("--wait");
1778
1782
  if (options.timeout)
1779
1783
  parts.push(`--timeout ${fleetShellArg(options.timeout)}`);
@@ -1817,6 +1821,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
1817
1821
  definition ?? fleetId,
1818
1822
  {
1819
1823
  ...options.dryRun ? { dryRun: true } : {},
1824
+ ...options.adoptExisting ? { adoptExisting: true } : {},
1820
1825
  ...options.expectedGeneration !== void 0 ? {
1821
1826
  expectedGeneration: fleetIntegerOption(
1822
1827
  options.expectedGeneration,
@@ -3631,7 +3636,10 @@ ${MONITOR_FLEET_HELP_EPILOG}`
3631
3636
  withJsonOption(
3632
3637
  fleets.command("deploy [fleet-id]").description(
3633
3638
  "Apply a table-backed Fleet definition; sync remains an exact alias."
3634
- ).option("-f, --file <path>", "Fleet JSON file, or - for stdin").option("--dry-run", "Show the table-backed convergence plan").option("--wait", "Wait for the current Fleet generation to converge").option("--timeout <duration>", "How long --wait may poll (default 10m)").option(
3639
+ ).option("-f, --file <path>", "Fleet JSON file, or - for stdin").option("--dry-run", "Show the table-backed convergence plan").option(
3640
+ "--adopt-existing",
3641
+ "Take over live monitors no Fleet owns whose key a row renders"
3642
+ ).option("--wait", "Wait for the current Fleet generation to converge").option("--timeout <duration>", "How long --wait may poll (default 10m)").option(
3635
3643
  "--expected-generation <generation>",
3636
3644
  "Optimistic generation fence"
3637
3645
  ).option("--idempotency-key <key>", "Stable retry key")
@@ -3699,9 +3707,13 @@ Notes:
3699
3707
  degraded or billing_suspended exits 6 at once, and a timeout exits 6
3700
3708
  without implying anything broke.
3701
3709
  Progress goes to stderr, so stdout stays exactly one JSON object.
3710
+ A live monitor a named Batch deployed is taken over with its radar kept
3711
+ ("adopts" in the plan). Any other live monitor no Fleet owns is refused
3712
+ unless --adopt-existing is passed; preview it with --dry-run first.
3702
3713
 
3703
3714
  Examples:
3704
3715
  deepline monitors fleets sync --file fleet.json --dry-run
3716
+ deepline monitors fleets sync --file fleet.json --adopt-existing --dry-run
3705
3717
  deepline monitors fleets sync --file fleet.json --wait --timeout 20m
3706
3718
  deepline monitors fleets sync account-job-openings --wait
3707
3719
  cat fleet.json | deepline monitors fleets sync --file - --dry-run
@@ -3712,6 +3724,9 @@ Examples:
3712
3724
  ).option(
3713
3725
  "--dry-run",
3714
3726
  "Show the plan and the credits due without changing state"
3727
+ ).option(
3728
+ "--adopt-existing",
3729
+ "Take over live monitors no Fleet owns whose key a source row renders, keeping their radar (refused without it)"
3715
3730
  ).option("--wait", "Poll until the fleet reaches a terminal status").option(
3716
3731
  "--timeout <duration>",
3717
3732
  "How long --wait may poll: 500ms, 90s, 10m, 1h (default 10m)"
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-4SKDSSPU.mjs";
4
- import "./chunk-D6YAU3CF.mjs";
3
+ } from "./chunk-GV45TTI6.mjs";
4
+ import "./chunk-Q7ZOWNKR.mjs";
5
5
  import "./chunk-HXIR3VQL.mjs";
6
6
  import "./chunk-LX35AXTN.mjs";
7
7
  import "./chunk-PSX3WHIH.mjs";
8
8
  import "./chunk-UBKA33KY.mjs";
9
9
  import {
10
10
  printCommandEnvelope
11
- } from "./chunk-DH43ECTN.mjs";
11
+ } from "./chunk-DVDWAC2M.mjs";
12
12
  import {
13
13
  ACTIVE_ORG_ID_ENV,
14
14
  ACTIVE_ORG_NAME_ENV,
@@ -28,14 +28,14 @@ import {
28
28
  saveProjectDeeplineEnvValues,
29
29
  sdkCliStateDirPath,
30
30
  storedHostFeatures
31
- } from "./chunk-R57UCXQG.mjs";
31
+ } from "./chunk-HXM2JUGD.mjs";
32
32
  import {
33
33
  detectAgentRuntime
34
- } from "./chunk-JXG7HWBA.mjs";
34
+ } from "./chunk-ZHY4T5M6.mjs";
35
35
  import "./chunk-CQBIO6HW.mjs";
36
36
  import "./chunk-DLIRSHV6.mjs";
37
37
  import "./chunk-JL2OTMSG.mjs";
38
- import "./chunk-ZRT2PNYY.mjs";
38
+ import "./chunk-PFGOCUH3.mjs";
39
39
  import "./chunk-WZYKRD7T.mjs";
40
40
  import "./chunk-KRD6H754.mjs";
41
41
 
@@ -1,14 +1,14 @@
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 _chunk3JZXU5OBjs = require('./chunk-3JZXU5OB.js');
4
- require('./chunk-46BEBZ3M.js');
3
+ var _chunkDF2X7GJGjs = require('./chunk-DF2X7GJG.js');
4
+ require('./chunk-PDJ4UDCO.js');
5
5
  require('./chunk-TI6DTURF.js');
6
6
  require('./chunk-SL6MYJYM.js');
7
7
  require('./chunk-PMH4GLMD.js');
8
8
  require('./chunk-XDVT3GOM.js');
9
9
 
10
10
 
11
- var _chunkPX7XAVUCjs = require('./chunk-PX7XAVUC.js');
11
+ var _chunkZY6FL4O4js = require('./chunk-ZY6FL4O4.js');
12
12
 
13
13
 
14
14
 
@@ -28,14 +28,14 @@ var _chunkPX7XAVUCjs = require('./chunk-PX7XAVUC.js');
28
28
 
29
29
 
30
30
 
31
- var _chunkQFRMVI4Sjs = require('./chunk-QFRMVI4S.js');
31
+ var _chunkON56ISO6js = require('./chunk-ON56ISO6.js');
32
32
 
33
33
 
34
- var _chunkGRCFX2EGjs = require('./chunk-GRCFX2EG.js');
34
+ var _chunkG26VJCNTjs = require('./chunk-G26VJCNT.js');
35
35
  require('./chunk-2GJZLIKW.js');
36
36
  require('./chunk-XNYIZMNQ.js');
37
37
  require('./chunk-BBTKAASQ.js');
38
- require('./chunk-TBCNL2T5.js');
38
+ require('./chunk-3KGMM4KS.js');
39
39
  require('./chunk-OG64RBAC.js');
40
40
  require('./chunk-COGTRVWW.js');
41
41
 
@@ -51,7 +51,7 @@ var _fs = require('fs');
51
51
  var _path = require('path');
52
52
  function pendingOrgCreatePath(baseUrl, accountId, sourceOrgId, name) {
53
53
  const intent = _crypto.createHash.call(void 0, "sha256").update(accountId).update("\0").update(sourceOrgId).update("\0").update(name).digest("hex");
54
- return _path.join.call(void 0, _chunkQFRMVI4Sjs.sdkCliStateDirPath.call(void 0, baseUrl), `pending-org-create-${intent}.json`);
54
+ return _path.join.call(void 0, _chunkON56ISO6js.sdkCliStateDirPath.call(void 0, baseUrl), `pending-org-create-${intent}.json`);
55
55
  }
56
56
  function readPendingOrgCreate(path, accountId, sourceOrgId, name) {
57
57
  let value;
@@ -70,7 +70,7 @@ function readPendingOrgCreate(path, accountId, sourceOrgId, name) {
70
70
  return value;
71
71
  }
72
72
  function loadOrCreatePendingOrgCreate(input) {
73
- const stateDir = _chunkQFRMVI4Sjs.sdkCliStateDirPath.call(void 0, input.baseUrl);
73
+ const stateDir = _chunkON56ISO6js.sdkCliStateDirPath.call(void 0, input.baseUrl);
74
74
  const path = pendingOrgCreatePath(
75
75
  input.baseUrl,
76
76
  input.accountId,
@@ -155,11 +155,11 @@ function processEnvValue(name) {
155
155
  }
156
156
  function organizationAuthValues(input) {
157
157
  return {
158
- [_chunkQFRMVI4Sjs.HOST_URL_ENV]: input.baseUrl,
159
- [_chunkQFRMVI4Sjs.API_KEY_ENV]: input.apiKey,
160
- [_chunkQFRMVI4Sjs.ACTIVE_ORG_ID_ENV]: input.orgId,
161
- [_chunkQFRMVI4Sjs.ACTIVE_ORG_NAME_ENV]: input.orgName,
162
- ..._chunkQFRMVI4Sjs.featureEnvValues.call(void 0, input)
158
+ [_chunkON56ISO6js.HOST_URL_ENV]: input.baseUrl,
159
+ [_chunkON56ISO6js.API_KEY_ENV]: input.apiKey,
160
+ [_chunkON56ISO6js.ACTIVE_ORG_ID_ENV]: input.orgId,
161
+ [_chunkON56ISO6js.ACTIVE_ORG_NAME_ENV]: input.orgName,
162
+ ..._chunkON56ISO6js.featureEnvValues.call(void 0, input)
163
163
  };
164
164
  }
165
165
  function organizationCommandContext(input) {
@@ -173,14 +173,14 @@ function organizationCommandContext(input) {
173
173
  };
174
174
  }
175
175
  function agentCommandContext(commandContext) {
176
- return _chunkGRCFX2EGjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? { command_context: commandContext } : {};
176
+ return _chunkG26VJCNTjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? { command_context: commandContext } : {};
177
177
  }
178
178
  function resolveOrgSwitchAuthTarget(scope, config) {
179
- const activeProject = _chunkQFRMVI4Sjs.getResolvedProjectAuthSource.call(void 0,
179
+ const activeProject = _chunkON56ISO6js.getResolvedProjectAuthSource.call(void 0,
180
180
  config.baseUrl,
181
181
  config.apiKey
182
182
  );
183
- const folderTarget = _chunkQFRMVI4Sjs.resolveProjectPinTarget.call(void 0, );
183
+ const folderTarget = _chunkON56ISO6js.resolveProjectPinTarget.call(void 0, );
184
184
  const globalOverrideWarning = activeProject && scope === "global" ? [
185
185
  `Folder auth in ${activeProject.filePath} overrides global auth for commands run here.`
186
186
  ] : [];
@@ -252,10 +252,10 @@ function resolveOrgSwitchAuthTarget(scope, config) {
252
252
  };
253
253
  }
254
254
  async function handleOrgList(options) {
255
- const config = _chunkQFRMVI4Sjs.resolveConfig.call(void 0, );
256
- const http = new (0, _chunkQFRMVI4Sjs.HttpClient)(config);
255
+ const config = _chunkON56ISO6js.resolveConfig.call(void 0, );
256
+ const http = new (0, _chunkON56ISO6js.HttpClient)(config);
257
257
  const payload = await fetchOrganizations(http, config.apiKey);
258
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
258
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
259
259
  {
260
260
  ...payload,
261
261
  render: {
@@ -271,22 +271,22 @@ async function handleOrgList(options) {
271
271
  );
272
272
  }
273
273
  async function handleOrgStatus(options) {
274
- const config = _chunkQFRMVI4Sjs.resolveConfig.call(void 0, );
275
- const http = new (0, _chunkQFRMVI4Sjs.HttpClient)(config);
274
+ const config = _chunkON56ISO6js.resolveConfig.call(void 0, );
275
+ const http = new (0, _chunkON56ISO6js.HttpClient)(config);
276
276
  const payload = await fetchOrganizations(http, config.apiKey);
277
277
  const current = _nullishCoalesce(_nullishCoalesce(payload.organizations.find((org) => org.is_current), () => ( payload.organizations.find(
278
278
  (org) => org.org_id === payload.current_org_id
279
279
  ))), () => ( null));
280
- const projectCandidate = _chunkQFRMVI4Sjs.getActiveProjectAuthSource.call(void 0, );
281
- const activeProject = _chunkQFRMVI4Sjs.getResolvedProjectAuthSource.call(void 0,
280
+ const projectCandidate = _chunkON56ISO6js.getActiveProjectAuthSource.call(void 0, );
281
+ const activeProject = _chunkON56ISO6js.getResolvedProjectAuthSource.call(void 0,
282
282
  config.baseUrl,
283
283
  config.apiKey
284
284
  );
285
- const folderTarget = _chunkQFRMVI4Sjs.resolveProjectPinTarget.call(void 0, );
286
- const provenance = _chunkQFRMVI4Sjs.resolveCliAuthProvenance.call(void 0, config);
287
- const hostPath = _chunkQFRMVI4Sjs.hostEnvFilePath.call(void 0, config.baseUrl);
288
- const envApiKey = processEnvValue(_chunkQFRMVI4Sjs.API_KEY_ENV);
289
- const envHostUrl = processEnvValue(_chunkQFRMVI4Sjs.HOST_URL_ENV);
285
+ const folderTarget = _chunkON56ISO6js.resolveProjectPinTarget.call(void 0, );
286
+ const provenance = _chunkON56ISO6js.resolveCliAuthProvenance.call(void 0, config);
287
+ const hostPath = _chunkON56ISO6js.hostEnvFilePath.call(void 0, config.baseUrl);
288
+ const envApiKey = processEnvValue(_chunkON56ISO6js.API_KEY_ENV);
289
+ const envHostUrl = processEnvValue(_chunkON56ISO6js.HOST_URL_ENV);
290
290
  const authSource = envApiKey ? {
291
291
  scope: "env",
292
292
  source: "process",
@@ -327,17 +327,17 @@ async function handleOrgStatus(options) {
327
327
  if (authSource.path) {
328
328
  lines.push(`Auth file: ${authSource.path}`);
329
329
  } else {
330
- lines.push(`Auth source: ${_chunkQFRMVI4Sjs.API_KEY_ENV} process environment`);
330
+ lines.push(`Auth source: ${_chunkON56ISO6js.API_KEY_ENV} process environment`);
331
331
  }
332
332
  if (envApiKey) {
333
- lines.push(`${_chunkQFRMVI4Sjs.API_KEY_ENV} overrides saved auth for this process.`);
333
+ lines.push(`${_chunkON56ISO6js.API_KEY_ENV} overrides saved auth for this process.`);
334
334
  } else if (activeProject) {
335
335
  lines.push("Global auth is overridden in this folder.");
336
336
  } else if (provenance.scope === "global" && provenance.project.state === "project") {
337
337
  lines.push("Cloud mutations are blocked until this project is pinned.");
338
338
  lines.push("Pin it: deepline org set --auth-scope folder");
339
339
  }
340
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
340
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
341
341
  {
342
342
  ok: true,
343
343
  host: config.baseUrl,
@@ -371,25 +371,25 @@ async function handleOrgStatus(options) {
371
371
  }
372
372
  async function handleOrgSwitch(selection, options) {
373
373
  const authScope = normalizeAuthScope(options.authScope);
374
- const config = _chunkQFRMVI4Sjs.resolveConfig.call(void 0, );
375
- const provenance = _chunkQFRMVI4Sjs.resolveCliAuthProvenance.call(void 0, config);
374
+ const config = _chunkON56ISO6js.resolveConfig.call(void 0, );
375
+ const provenance = _chunkON56ISO6js.resolveCliAuthProvenance.call(void 0, config);
376
376
  if (!selection && !options.orgId && authScope === "folder" && provenance.scope === "global" && provenance.project.state === "project") {
377
- const commandContext = _chunkQFRMVI4Sjs.resolveCliCommandContext.call(void 0, config);
377
+ const commandContext = _chunkON56ISO6js.resolveCliCommandContext.call(void 0, config);
378
378
  const activeOrganization = commandContext.active_organization;
379
- const pinnedFeatures = _chunkQFRMVI4Sjs.storedHostFeatures.call(void 0, config.baseUrl);
380
- const project_env_paths2 = _chunkQFRMVI4Sjs.saveProjectDeeplineEnvValues.call(void 0,
379
+ const pinnedFeatures = _chunkON56ISO6js.storedHostFeatures.call(void 0, config.baseUrl);
380
+ const project_env_paths2 = _chunkON56ISO6js.saveProjectDeeplineEnvValues.call(void 0,
381
381
  {
382
- [_chunkQFRMVI4Sjs.HOST_URL_ENV]: config.baseUrl,
383
- [_chunkQFRMVI4Sjs.API_KEY_ENV]: config.apiKey,
382
+ [_chunkON56ISO6js.HOST_URL_ENV]: config.baseUrl,
383
+ [_chunkON56ISO6js.API_KEY_ENV]: config.apiKey,
384
384
  ...activeOrganization ? {
385
- [_chunkQFRMVI4Sjs.ACTIVE_ORG_ID_ENV]: activeOrganization.org_id,
386
- [_chunkQFRMVI4Sjs.ACTIVE_ORG_NAME_ENV]: _nullishCoalesce(activeOrganization.org_name, () => ( ""))
385
+ [_chunkON56ISO6js.ACTIVE_ORG_ID_ENV]: activeOrganization.org_id,
386
+ [_chunkON56ISO6js.ACTIVE_ORG_NAME_ENV]: _nullishCoalesce(activeOrganization.org_name, () => ( ""))
387
387
  } : {},
388
- ...pinnedFeatures !== void 0 ? { [_chunkQFRMVI4Sjs.FEATURES_ENV]: pinnedFeatures } : {}
388
+ ...pinnedFeatures !== void 0 ? { [_chunkON56ISO6js.FEATURES_ENV]: pinnedFeatures } : {}
389
389
  },
390
390
  provenance.project.dir
391
391
  );
392
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
392
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  ok: true,
395
395
  unchanged: true,
@@ -401,7 +401,7 @@ async function handleOrgSwitch(selection, options) {
401
401
  orgId: activeOrganization.org_id,
402
402
  orgName: activeOrganization.org_name,
403
403
  authScope: "folder"
404
- }) : _chunkQFRMVI4Sjs.resolveCliCommandContext.call(void 0, config, "folder")
404
+ }) : _chunkON56ISO6js.resolveCliCommandContext.call(void 0, config, "folder")
405
405
  ),
406
406
  project_env_paths: project_env_paths2,
407
407
  next: { status: "deepline org status" },
@@ -422,10 +422,10 @@ async function handleOrgSwitch(selection, options) {
422
422
  );
423
423
  return;
424
424
  }
425
- const http = new (0, _chunkQFRMVI4Sjs.HttpClient)(config);
425
+ const http = new (0, _chunkON56ISO6js.HttpClient)(config);
426
426
  const payload = await fetchOrganizations(http, config.apiKey);
427
427
  if (!selection && !options.orgId) {
428
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
428
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
429
429
  {
430
430
  ...payload,
431
431
  next: { set: "deepline org set <number>" },
@@ -476,9 +476,9 @@ async function handleOrgSwitch(selection, options) {
476
476
  features
477
477
  });
478
478
  if (authTarget.kind === "folder") {
479
- project_env_paths2 = _chunkQFRMVI4Sjs.saveProjectDeeplineEnvValues.call(void 0, authValues2);
479
+ project_env_paths2 = _chunkON56ISO6js.saveProjectDeeplineEnvValues.call(void 0, authValues2);
480
480
  } else {
481
- _chunkQFRMVI4Sjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues2);
481
+ _chunkON56ISO6js.saveHostEnvValues.call(void 0, config.baseUrl, authValues2);
482
482
  }
483
483
  const renderLines2 = [`Already on ${target.name}.`];
484
484
  for (const projectPath of project_env_paths2) {
@@ -486,7 +486,7 @@ async function handleOrgSwitch(selection, options) {
486
486
  }
487
487
  if (authTarget.kind === "global") {
488
488
  renderLines2.push(
489
- `Saved global auth in ${_chunkQFRMVI4Sjs.hostEnvFilePath.call(void 0, config.baseUrl)}`
489
+ `Saved global auth in ${_chunkON56ISO6js.hostEnvFilePath.call(void 0, config.baseUrl)}`
490
490
  );
491
491
  }
492
492
  renderLines2.push(
@@ -502,7 +502,7 @@ async function handleOrgSwitch(selection, options) {
502
502
  ...options.deprecatedSwitch ? ["org switch is deprecated; use org set."] : [],
503
503
  ...authTarget.warnings
504
504
  ];
505
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
505
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
506
506
  {
507
507
  ok: true,
508
508
  unchanged: true,
@@ -518,7 +518,7 @@ async function handleOrgSwitch(selection, options) {
518
518
  authScope: authTarget.effective_scope
519
519
  })
520
520
  ),
521
- host_env_path: authTarget.kind === "global" ? _chunkQFRMVI4Sjs.hostEnvFilePath.call(void 0, config.baseUrl) : null,
521
+ host_env_path: authTarget.kind === "global" ? _chunkON56ISO6js.hostEnvFilePath.call(void 0, config.baseUrl) : null,
522
522
  project_env_paths: project_env_paths2,
523
523
  deprecated_command: options.deprecatedSwitch ? "org switch" : null,
524
524
  replacement_command: options.deprecatedSwitch ? "deepline org set" : null,
@@ -544,9 +544,9 @@ async function handleOrgSwitch(selection, options) {
544
544
  features: switched.features
545
545
  });
546
546
  if (authTarget.kind === "folder") {
547
- project_env_paths = _chunkQFRMVI4Sjs.saveProjectDeeplineEnvValues.call(void 0, authValues);
547
+ project_env_paths = _chunkON56ISO6js.saveProjectDeeplineEnvValues.call(void 0, authValues);
548
548
  } else {
549
- _chunkQFRMVI4Sjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
549
+ _chunkON56ISO6js.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
550
550
  }
551
551
  const { api_key: _apiKey, ...publicSwitched } = switched;
552
552
  const renderLines = [`Switched to ${switched.org_name}.`];
@@ -555,7 +555,7 @@ async function handleOrgSwitch(selection, options) {
555
555
  renderLines.push(`Saved folder auth in ${projectPath}`);
556
556
  }
557
557
  } else {
558
- renderLines.push(`Saved global auth in ${_chunkQFRMVI4Sjs.hostEnvFilePath.call(void 0, config.baseUrl)}`);
558
+ renderLines.push(`Saved global auth in ${_chunkON56ISO6js.hostEnvFilePath.call(void 0, config.baseUrl)}`);
559
559
  }
560
560
  renderLines.push(
561
561
  `Scope: ${authTarget.requested_scope} -> ${authTarget.effective_scope} (${authTarget.reason})`
@@ -570,10 +570,10 @@ async function handleOrgSwitch(selection, options) {
570
570
  ...options.deprecatedSwitch ? ["org switch is deprecated; use org set."] : [],
571
571
  ...authTarget.warnings
572
572
  ];
573
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
573
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
574
574
  {
575
575
  ok: true,
576
- host_env_path: authTarget.kind === "global" ? _chunkQFRMVI4Sjs.hostEnvFilePath.call(void 0, config.baseUrl) : null,
576
+ host_env_path: authTarget.kind === "global" ? _chunkON56ISO6js.hostEnvFilePath.call(void 0, config.baseUrl) : null,
577
577
  project_env_paths,
578
578
  ...publicSwitched,
579
579
  api_key_saved: true,
@@ -604,12 +604,12 @@ async function handleOrgSwitch(selection, options) {
604
604
  );
605
605
  }
606
606
  async function handleOrgCreate(name, options) {
607
- const config = _chunkQFRMVI4Sjs.resolveConfig.call(void 0, );
607
+ const config = _chunkON56ISO6js.resolveConfig.call(void 0, );
608
608
  const normalizedName = name.trim();
609
609
  if (!normalizedName) {
610
610
  throw new Error("Workspace name is required.");
611
611
  }
612
- const http = new (0, _chunkQFRMVI4Sjs.HttpClient)(config);
612
+ const http = new (0, _chunkON56ISO6js.HttpClient)(config);
613
613
  const identity = await fetchWorkspaceCreationIdentity(http, config.apiKey);
614
614
  let created;
615
615
  let workspaceApiKey;
@@ -635,7 +635,7 @@ async function handleOrgCreate(name, options) {
635
635
  sourceOrgId: identity.orgId,
636
636
  name: normalizedName
637
637
  });
638
- const workspace = await new (0, _chunk3JZXU5OBjs.DeeplineClient)({
638
+ const workspace = await new (0, _chunkDF2X7GJGjs.DeeplineClient)({
639
639
  apiKey: config.apiKey,
640
640
  baseUrl: config.baseUrl
641
641
  }).workspaces.create({
@@ -658,16 +658,16 @@ async function handleOrgCreate(name, options) {
658
658
  orgName: created.org_name,
659
659
  features: workspaceFeatures
660
660
  });
661
- _chunkQFRMVI4Sjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
661
+ _chunkON56ISO6js.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
662
662
  if (pendingIntentPath) _fs.unlinkSync.call(void 0, pendingIntentPath);
663
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
663
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
664
664
  {
665
665
  ok: true,
666
666
  ...created,
667
667
  initial_credits: typeof created.initial_credits === "number" ? created.initial_credits : 0,
668
668
  api_key_saved: true,
669
669
  switched: true,
670
- host_env_path: _chunkQFRMVI4Sjs.hostEnvFilePath.call(void 0, config.baseUrl),
670
+ host_env_path: _chunkON56ISO6js.hostEnvFilePath.call(void 0, config.baseUrl),
671
671
  ...agentCommandContext(
672
672
  organizationCommandContext({
673
673
  orgId: created.org_id,
@@ -682,7 +682,7 @@ async function handleOrgCreate(name, options) {
682
682
  lines: [
683
683
  `Created organization: ${created.org_name}.`,
684
684
  `Switched to ${created.org_name}.`,
685
- `Saved host auth in ${_chunkQFRMVI4Sjs.hostEnvFilePath.call(void 0, config.baseUrl)}`
685
+ `Saved host auth in ${_chunkON56ISO6js.hostEnvFilePath.call(void 0, config.baseUrl)}`
686
686
  ]
687
687
  }
688
688
  ]
@@ -734,8 +734,8 @@ Examples:
734
734
  );
735
735
  const members = org.command("members").description("List workspace members and manage their grants.");
736
736
  members.command("list").description("List one page of memberships and effective grants.").option("--cursor <cursor>", "Continue from the previous page").option("--json", "Output JSON").action(async (options) => {
737
- const result = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().workspaces.members(options);
738
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
737
+ const result = await new (0, _chunkDF2X7GJGjs.DeeplineClient)().workspaces.members(options);
738
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
739
739
  {
740
740
  ...result,
741
741
  render: {
@@ -756,11 +756,11 @@ Examples:
756
756
  "Replace a member\u2019s grants (read, run, admin). Requires admin."
757
757
  ).option("--json", "Output JSON").action(
758
758
  async (memberId, grants, options) => {
759
- const result = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().workspaces.setMemberGrants(
759
+ const result = await new (0, _chunkDF2X7GJGjs.DeeplineClient)().workspaces.setMemberGrants(
760
760
  memberId,
761
761
  grants
762
762
  );
763
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
763
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
764
764
  {
765
765
  ...result,
766
766
  render: {
@@ -781,8 +781,8 @@ Examples:
781
781
  );
782
782
  const renderServiceAccount = (account) => `${account.id} ${account.name} role=${_nullishCoalesce(account.role, () => ( "none"))} keys=${account.activeKeyCount}`;
783
783
  serviceAccounts.command("list").description("List service accounts and, for admins, their keys.").option("--json", "Output JSON").action(async (options) => {
784
- const result = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().workspaces.serviceAccounts.list();
785
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
784
+ const result = await new (0, _chunkDF2X7GJGjs.DeeplineClient)().workspaces.serviceAccounts.list();
785
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
786
786
  {
787
787
  ...result,
788
788
  render: {
@@ -803,11 +803,11 @@ Examples:
803
803
  );
804
804
  });
805
805
  serviceAccounts.command("create <name>").description("Create a service account. Requires admin.").requiredOption("--role <role>", "read, run, or member").option("--json", "Output JSON").action(async (name, options) => {
806
- const result = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().workspaces.serviceAccounts.create({
806
+ const result = await new (0, _chunkDF2X7GJGjs.DeeplineClient)().workspaces.serviceAccounts.create({
807
807
  name,
808
808
  role: options.role
809
809
  });
810
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
810
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
811
811
  {
812
812
  ...result,
813
813
  render: {
@@ -827,11 +827,11 @@ Examples:
827
827
  });
828
828
  serviceAccounts.command("set-role <service-account-id> <role>").description("Change a service account\u2019s role. Requires admin.").option("--json", "Output JSON").action(
829
829
  async (serviceAccountId, role, options) => {
830
- const result = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().workspaces.serviceAccounts.setRole(
830
+ const result = await new (0, _chunkDF2X7GJGjs.DeeplineClient)().workspaces.serviceAccounts.setRole(
831
831
  serviceAccountId,
832
832
  role
833
833
  );
834
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
834
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
835
835
  {
836
836
  ...result,
837
837
  render: {
@@ -850,10 +850,10 @@ Examples:
850
850
  serviceAccounts.command("delete <service-account-id>").description(
851
851
  "Delete a service account and revoke its keys. Requires admin."
852
852
  ).option("--json", "Output JSON").action(async (serviceAccountId, options) => {
853
- const result = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().workspaces.serviceAccounts.delete(
853
+ const result = await new (0, _chunkDF2X7GJGjs.DeeplineClient)().workspaces.serviceAccounts.delete(
854
854
  serviceAccountId
855
855
  );
856
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
856
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
857
857
  {
858
858
  ...result,
859
859
  render: {
@@ -874,10 +874,10 @@ Examples:
874
874
  serviceAccountKeys.command("create <service-account-id>").description(
875
875
  "Create the API key for a service account that has none. Requires admin."
876
876
  ).option("--json", "Output JSON").action(async (serviceAccountId, options) => {
877
- const result = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().workspaces.serviceAccounts.createKey(
877
+ const result = await new (0, _chunkDF2X7GJGjs.DeeplineClient)().workspaces.serviceAccounts.createKey(
878
878
  serviceAccountId
879
879
  );
880
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
880
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
881
881
  {
882
882
  ...result,
883
883
  render: {
@@ -895,10 +895,10 @@ Examples:
895
895
  serviceAccountKeys.command("rotate <service-account-id>").description(
896
896
  "Replace a service account\u2019s API key: the old key stops working and the new one is shown once. Requires admin."
897
897
  ).option("--json", "Output JSON").action(async (serviceAccountId, options) => {
898
- const result = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().workspaces.serviceAccounts.rotateKey(
898
+ const result = await new (0, _chunkDF2X7GJGjs.DeeplineClient)().workspaces.serviceAccounts.rotateKey(
899
899
  serviceAccountId
900
900
  );
901
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
901
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
902
902
  {
903
903
  ...result,
904
904
  render: {
@@ -919,11 +919,11 @@ Examples:
919
919
  });
920
920
  serviceAccountKeys.command("revoke <service-account-id> <key-id>").description("Revoke a service account API key. Requires admin.").option("--json", "Output JSON").action(
921
921
  async (serviceAccountId, keyId, options) => {
922
- const result = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().workspaces.serviceAccounts.revokeKey(
922
+ const result = await new (0, _chunkDF2X7GJGjs.DeeplineClient)().workspaces.serviceAccounts.revokeKey(
923
923
  serviceAccountId,
924
924
  keyId
925
925
  );
926
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
926
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
927
927
  {
928
928
  ...result,
929
929
  render: {
@@ -941,7 +941,7 @@ Examples:
941
941
  );
942
942
  const sso = org.command("sso").description("Manage Enterprise workspace SSO.");
943
943
  const ssoPath = "/api/v2/auth/workspace/sso";
944
- const printSso = (payload, json) => _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
944
+ const printSso = (payload, json) => _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
945
945
  {
946
946
  ...payload,
947
947
  render: {
@@ -965,7 +965,7 @@ Examples:
965
965
  },
966
966
  { json }
967
967
  );
968
- const ssoHttp = () => new (0, _chunkQFRMVI4Sjs.HttpClient)(_chunkQFRMVI4Sjs.resolveConfig.call(void 0, ));
968
+ const ssoHttp = () => new (0, _chunkON56ISO6js.HttpClient)(_chunkON56ISO6js.resolveConfig.call(void 0, ));
969
969
  sso.command("status").description("Show this workspace's SSO connection and plan eligibility.").option("--json", "Emit JSON output").action(async (options) => {
970
970
  printSso(await ssoHttp().get(ssoPath), options.json);
971
971
  });
@@ -996,8 +996,8 @@ Examples:
996
996
  "Identity provider metadata XML file"
997
997
  ).option("--json", "Emit JSON output").action(
998
998
  async (options) => {
999
- const config = _chunkQFRMVI4Sjs.resolveConfig.call(void 0, );
1000
- const http = new (0, _chunkQFRMVI4Sjs.HttpClient)(config);
999
+ const config = _chunkON56ISO6js.resolveConfig.call(void 0, );
1000
+ const http = new (0, _chunkON56ISO6js.HttpClient)(config);
1001
1001
  const identity = await fetchWorkspaceCreationIdentity(
1002
1002
  http,
1003
1003
  config.apiKey
@@ -1060,7 +1060,7 @@ Examples:
1060
1060
  `
1061
1061
  );
1062
1062
  const scimPath = "/api/v2/auth/workspace/scim";
1063
- const printScim = (payload, json) => _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
1063
+ const printScim = (payload, json) => _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
1064
1064
  {
1065
1065
  ...payload,
1066
1066
  render: {
@@ -1084,7 +1084,7 @@ Examples:
1084
1084
  },
1085
1085
  { json }
1086
1086
  );
1087
- const scimHttp = () => new (0, _chunkQFRMVI4Sjs.HttpClient)(_chunkQFRMVI4Sjs.resolveConfig.call(void 0, ));
1087
+ const scimHttp = () => new (0, _chunkON56ISO6js.HttpClient)(_chunkON56ISO6js.resolveConfig.call(void 0, ));
1088
1088
  scim.command("status").description("Show this org's SCIM connection and plan eligibility.").option("--json", "Emit JSON output").action(async (options) => {
1089
1089
  printScim(await scimHttp().get(scimPath), options.json);
1090
1090
  });
@@ -1137,13 +1137,13 @@ Examples:
1137
1137
  if (chosen.length > 1) {
1138
1138
  throw new Error("Pass one of a logo URL, --domain, or --remove.");
1139
1139
  }
1140
- const http = new (0, _chunkQFRMVI4Sjs.HttpClient)(_chunkQFRMVI4Sjs.resolveConfig.call(void 0, ));
1140
+ const http = new (0, _chunkON56ISO6js.HttpClient)(_chunkON56ISO6js.resolveConfig.call(void 0, ));
1141
1141
  const path = "/api/v2/auth/workspace/logo";
1142
1142
  const payload = chosen.length === 0 ? await http.get(path) : await http.patch(
1143
1143
  path,
1144
1144
  options.domain ? { domain: options.domain } : { logo: _nullishCoalesce(url, () => ( null)) }
1145
1145
  );
1146
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
1146
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
1147
1147
  {
1148
1148
  ...payload,
1149
1149
  render: {