deepline 0.3.395 → 0.3.396

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/dist/bundling-sources/sdk/src/plays/play-description.ts +1 -1
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
  4. package/dist/cli/{auth-NMQXZRS7.mjs → auth-3LTD62VL.mjs} +4 -4
  5. package/dist/cli/auth-562JPKOM.js +39 -0
  6. package/dist/cli/{billing-5MVXZRS6.mjs → billing-DP7ZAJBO.mjs} +5 -5
  7. package/dist/cli/{billing-Z4JTGUU3.js → billing-PA5OXEM5.js} +76 -76
  8. package/dist/cli/{chunk-BLYL3KOC.mjs → chunk-23GAA3YO.mjs} +1 -1
  9. package/dist/cli/{chunk-LZLBR2SF.js → chunk-2VOLOWYZ.js} +1087 -1056
  10. package/dist/cli/{chunk-EFLQHJZ6.mjs → chunk-3T4MCB5R.mjs} +1026 -995
  11. package/dist/cli/{chunk-VB6KECLU.mjs → chunk-5WNJF2T3.mjs} +102 -36
  12. package/dist/cli/{chunk-UKU6JM3S.js → chunk-772W2SAU.js} +8 -8
  13. package/dist/cli/{chunk-K5T3EN6D.js → chunk-7Z66NHUC.js} +26 -26
  14. package/dist/cli/{chunk-WCCKMLHL.mjs → chunk-AUYXWELC.mjs} +2 -2
  15. package/dist/cli/{chunk-PZ5BZ76S.js → chunk-AVHLATII.js} +50 -50
  16. package/dist/cli/{chunk-MYIBHORT.js → chunk-DC6LTULT.js} +2 -2
  17. package/dist/cli/{chunk-5VCZ3WRH.mjs → chunk-EIMG75BT.mjs} +1 -0
  18. package/dist/cli/{chunk-TO2MWPGR.js → chunk-GNN4MY5X.js} +1 -1
  19. package/dist/cli/{chunk-OCSG6X67.mjs → chunk-I4T4XAA2.mjs} +4 -4
  20. package/dist/cli/{chunk-ZWH2TFA7.mjs → chunk-JCN4DHF7.mjs} +2 -2
  21. package/dist/cli/{chunk-R4XZO6Z5.js → chunk-KAEZNPUM.js} +23 -8
  22. package/dist/cli/{chunk-DRM3CMHL.js → chunk-KXMNM4AQ.js} +2 -1
  23. package/dist/cli/{chunk-3TRY7KAC.mjs → chunk-LOGGNW4H.mjs} +2 -2
  24. package/dist/cli/{chunk-RDXFGPJU.js → chunk-LWERJUKN.js} +218 -218
  25. package/dist/cli/{chunk-UCXK2DS4.js → chunk-ME6XRFLY.js} +15 -15
  26. package/dist/cli/{chunk-G4IWGRMK.mjs → chunk-MR6XCBQJ.mjs} +2 -2
  27. package/dist/cli/{chunk-BON3DRC6.mjs → chunk-NHB5YUCS.mjs} +1 -1
  28. package/dist/cli/{chunk-ZMVJSS6N.js → chunk-NSOTASOP.js} +101 -35
  29. package/dist/cli/{chunk-7XAM7KDW.mjs → chunk-QHGPA362.mjs} +18 -3
  30. package/dist/cli/{chunk-VYLJJQ7Y.js → chunk-RMTASUAK.js} +65 -65
  31. package/dist/cli/{chunk-HRWUQJ4K.js → chunk-RTO5QZWT.js} +6 -6
  32. package/dist/cli/{chunk-7MVWUXOD.mjs → chunk-TLQ3FZOC.mjs} +3 -3
  33. package/dist/cli/{chunk-56IFFVIB.js → chunk-V7UP2F4U.js} +4 -4
  34. package/dist/cli/{chunk-6D7A2FSL.mjs → chunk-VE3U3SQC.mjs} +1 -1
  35. package/dist/cli/{chunk-36ML3YKA.js → chunk-WQJJNIMQ.js} +13 -13
  36. package/dist/cli/{chunk-47M6HPGP.mjs → chunk-XKZXO7D3.mjs} +1 -1
  37. package/dist/cli/{csv-SVOD5UBH.mjs → csv-RLRR74RQ.mjs} +3 -3
  38. package/dist/cli/{csv-HTS5ZYQ4.js → csv-TF576S77.js} +12 -12
  39. package/dist/cli/{db-7AP4P52N.js → db-FDBJUTFO.js} +30 -30
  40. package/dist/cli/{db-7QLNI3Q4.mjs → db-XORGNBIC.mjs} +5 -5
  41. package/dist/cli/{describe-DBRY5BNK.mjs → describe-6O2ENKTP.mjs} +86 -68
  42. package/dist/cli/{describe-YKOE54ZO.js → describe-EFWNECHI.js} +100 -82
  43. package/dist/cli/{executions-GRQXTB2P.js → executions-SFYAXPF4.js} +7 -7
  44. package/dist/cli/{executions-QNZTPNG4.mjs → executions-YPP7WR77.mjs} +5 -5
  45. package/dist/cli/{feedback-ZOLA2KY7.js → feedback-5UZFYMGB.js} +7 -7
  46. package/dist/cli/{feedback-JMCSR624.mjs → feedback-RBGA5ARU.mjs} +3 -3
  47. package/dist/cli/git-5LDY5ZID.js +23 -0
  48. package/dist/cli/{git-LJGL2IHS.mjs → git-IRSAJEK2.mjs} +4 -4
  49. package/dist/cli/index.js +94 -94
  50. package/dist/cli/index.mjs +38 -38
  51. package/dist/cli/{legacy-noops-YSCIR2SD.js → legacy-noops-CVAOQY2F.js} +7 -7
  52. package/dist/cli/{legacy-noops-F23PKVBN.mjs → legacy-noops-NA7N6ZOU.mjs} +4 -4
  53. package/dist/cli/{monitors-WMZ6HJZX.js → monitors-4OMRXCXP.js} +86 -86
  54. package/dist/cli/{monitors-S4LOEL7W.mjs → monitors-ILZ2XHYG.mjs} +5 -5
  55. package/dist/cli/{org-U3WA2NQM.mjs → org-QDDXAE3J.mjs} +5 -5
  56. package/dist/cli/{org-PFHM5ZLY.js → org-YGNJDD2X.js} +65 -65
  57. package/dist/cli/{chunk-4KLCLLTO.js → play-L535H26U.js} +266 -323
  58. package/dist/cli/{chunk-XMAPE2KH.mjs → play-VT6OHB2D.mjs} +72 -129
  59. package/dist/cli/{providers-XYMHLKCA.js → providers-GPZ6PQAL.js} +8 -8
  60. package/dist/cli/{providers-QBBRFBOH.mjs → providers-KG4W5MPK.mjs} +5 -5
  61. package/dist/cli/{quickstart-5JTDGISY.mjs → quickstart-2JDGTXIG.mjs} +3 -3
  62. package/dist/cli/{quickstart-IYGD6ZY3.js → quickstart-UI27S5LO.js} +5 -5
  63. package/dist/cli/search-MGWROZ33.js +28 -0
  64. package/dist/cli/{search-X6W6GRHS.mjs → search-PW3RAUX7.mjs} +6 -6
  65. package/dist/cli/{secrets-N55B67H6.mjs → secrets-HNOMK5A2.mjs} +5 -5
  66. package/dist/cli/{secrets-UHG6OQFD.js → secrets-WFAXOUZE.js} +14 -14
  67. package/dist/cli/{sessions-57L5MGHN.js → sessions-366KROUA.js} +5 -5
  68. package/dist/cli/{sessions-JTRSTDSS.mjs → sessions-XLX3E5UO.mjs} +4 -4
  69. package/dist/cli/{settings-ATX4U5AS.js → settings-GADAG2UK.js} +75 -75
  70. package/dist/cli/{settings-Q24HRAQI.mjs → settings-YNZ4YKCH.mjs} +8 -8
  71. package/dist/cli/{setup-77ZWLVHT.mjs → setup-PSEHIUXO.mjs} +6 -6
  72. package/dist/cli/{setup-EJCNOUCE.js → setup-R5YO7GT6.js} +41 -41
  73. package/dist/cli/skills-JF2LPEGM.js +28 -0
  74. package/dist/cli/{skills-XIS5AWQI.mjs → skills-LTQBP6CZ.mjs} +4 -4
  75. package/dist/cli/tools-CP2PEFRN.js +34 -0
  76. package/dist/cli/{tools-WCKLYEGQ.mjs → tools-UAXDWU63.mjs} +11 -19
  77. package/dist/cli/update-HZHZOU6C.js +28 -0
  78. package/dist/cli/{update-UT5WANMV.mjs → update-SMNIBIMS.mjs} +6 -6
  79. package/dist/cli/{workflow-226QYUN2.js → workflow-AOQVZHMD.js} +16 -16
  80. package/dist/cli/{workflow-ZMX3L4ML.mjs → workflow-IKGMBGF6.mjs} +6 -6
  81. package/dist/{client-CivP-PAI.d.ts → client-Bgis7F6-.d.ts} +2 -1
  82. package/dist/{client-hdFtwhTm.d.mts → client-DiGl8ska.d.mts} +2 -1
  83. package/dist/index.d.mts +2 -2
  84. package/dist/index.d.ts +2 -2
  85. package/dist/index.js +11 -11
  86. package/dist/index.mjs +9 -9
  87. package/dist/install-integrity.json +78 -80
  88. package/dist/plays/play-description.d.mts +1 -1
  89. package/dist/plays/play-description.d.ts +1 -1
  90. package/dist/plays/play-description.js +4 -2
  91. package/dist/plays/play-description.mjs +3 -1
  92. package/dist/plays/run-request.d.mts +1 -1
  93. package/dist/plays/run-request.d.ts +1 -1
  94. package/dist/release.d.mts +1 -1
  95. package/dist/release.d.ts +1 -1
  96. package/dist/release.js +2 -2
  97. package/dist/release.mjs +1 -1
  98. package/package.json +1 -1
  99. package/dist/cli/auth-UYCOBAL5.js +0 -39
  100. package/dist/cli/git-EJQLRK27.js +0 -23
  101. package/dist/cli/play-AGSECQFN.mjs +0 -159
  102. package/dist/cli/play-BR2LWGXK.js +0 -159
  103. package/dist/cli/search-ZVSYH5GY.js +0 -28
  104. package/dist/cli/skills-SPXUBLII.js +0 -28
  105. package/dist/cli/tools-DBHUUZJX.js +0 -42
  106. package/dist/cli/update-VSNFXRHJ.js +0 -28
  107. package/dist/cli/{chunk-KZZC33PY.mjs → chunk-H5KLUGY7.mjs} +214 -214
@@ -1,10 +1,10 @@
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; } var _class; var _class2;require('./chunk-I5YZLGMG.js');
2
2
 
3
3
 
4
- var _chunk36ML3YKAjs = require('./chunk-36ML3YKA.js');
4
+ var _chunkWQJJNIMQjs = require('./chunk-WQJJNIMQ.js');
5
5
  require('./chunk-S6R3OX7B.js');
6
6
  require('./chunk-UHNDVD3P.js');
7
- require('./chunk-DRM3CMHL.js');
7
+ require('./chunk-KXMNM4AQ.js');
8
8
  require('./chunk-XDVT3GOM.js');
9
9
 
10
10
 
@@ -19,15 +19,15 @@ var _chunkIF75RD6Ujs = require('./chunk-IF75RD6U.js');
19
19
 
20
20
 
21
21
 
22
- var _chunkHRWUQJ4Kjs = require('./chunk-HRWUQJ4K.js');
22
+ var _chunkRTO5QZWTjs = require('./chunk-RTO5QZWT.js');
23
23
 
24
24
 
25
- var _chunk56IFFVIBjs = require('./chunk-56IFFVIB.js');
25
+ var _chunkV7UP2F4Ujs = require('./chunk-V7UP2F4U.js');
26
26
  require('./chunk-XNYIZMNQ.js');
27
27
 
28
28
 
29
29
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
30
- require('./chunk-TO2MWPGR.js');
30
+ require('./chunk-GNN4MY5X.js');
31
31
  require('./chunk-OG64RBAC.js');
32
32
  require('./chunk-COGTRVWW.js');
33
33
 
@@ -58,7 +58,7 @@ var MonitorDryRunUnsupportedError = (_class2 = class extends Error {
58
58
  function monitorsErrorExitCode(error) {
59
59
  if (error instanceof MonitorsUsageError) return 2;
60
60
  if (error instanceof MonitorFleetStateError) return 6;
61
- if (error instanceof _chunk56IFFVIBjs.AuthError) return 3;
61
+ if (error instanceof _chunkV7UP2F4Ujs.AuthError) return 3;
62
62
  if (error instanceof _chunk7P5AA3SNjs.DeeplineError) {
63
63
  const status = error.statusCode;
64
64
  if (status === 401 || status === 403) return 3;
@@ -105,10 +105,10 @@ function reportMonitorsFailure(error, options) {
105
105
  const exitCode = monitorsErrorExitCode(error);
106
106
  const next = monitorsFailureNextCommand(error, exitCode, options);
107
107
  const retrySafe = exitCode === 5 && _optionalChain([options, 'optionalAccess', _9 => _9.retryCommand]) !== void 0;
108
- const wantsJson = _chunkHRWUQJ4Kjs.shouldEmitJson.call(void 0, process.argv.includes("--json"));
108
+ const wantsJson = _chunkRTO5QZWTjs.shouldEmitJson.call(void 0, process.argv.includes("--json"));
109
109
  if (wantsJson) {
110
- const payload = _chunkHRWUQJ4Kjs.errorToJsonPayload.call(void 0, error);
111
- _chunkHRWUQJ4Kjs.printJson.call(void 0, {
110
+ const payload = _chunkRTO5QZWTjs.errorToJsonPayload.call(void 0, error);
111
+ _chunkRTO5QZWTjs.printJson.call(void 0, {
112
112
  ok: false,
113
113
  exitCode,
114
114
  ...next ? { next } : {},
@@ -522,14 +522,14 @@ Preview the plan first with:
522
522
  );
523
523
  }
524
524
  async function handleMonitorsStatus(options) {
525
- const payload = await new (0, _chunk36ML3YKAjs.DeeplineClient)().monitors.status();
525
+ const payload = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().monitors.status();
526
526
  const hasAccess = payload.has_access === true;
527
527
  const reason = typeof payload.reason === "string" && payload.reason.trim() ? payload.reason.trim() : void 0;
528
528
  const text = hasAccess ? `\u2713 You have access to Deepline Monitors${reason ? `
529
529
  ${reason}` : ""}
530
530
  ` : `\u2717 No access to Deepline Monitors${reason ? ` \u2014 ${reason}` : ""}
531
531
  `;
532
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
532
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
533
533
  { has_access: hasAccess, ...reason ? { reason } : {} },
534
534
  { json: options.json, text }
535
535
  );
@@ -595,14 +595,14 @@ async function handleMonitorsAvailable(toolId, options) {
595
595
  }
596
596
  }
597
597
  const tool = _nullishCoalesce(toolId, () => ( options.tool));
598
- const payload = await new (0, _chunk36ML3YKAjs.DeeplineClient)().monitors.available(tool, {
598
+ const payload = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().monitors.available(tool, {
599
599
  ...options.provider ? { provider: options.provider } : {},
600
600
  ...options.search ? { search: options.search } : {},
601
601
  ...options.limit ? { limit: options.limit } : {},
602
602
  ...options.full ? { full: true } : {},
603
603
  ...options.compact ? { compact: true } : {}
604
604
  });
605
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload, {
605
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, payload, {
606
606
  json: options.json,
607
607
  // Human list view shows id + name + deployed_count ("deployed: N") so
608
608
  // can-deploy vs already-deployed is visible in one view. Describing a
@@ -705,14 +705,14 @@ async function handleMonitorsList(options) {
705
705
  "`--compact` is deprecated and now does nothing; returning the complete monitor records.\n"
706
706
  );
707
707
  }
708
- const payload = await new (0, _chunk36ML3YKAjs.DeeplineClient)().monitors.list({
708
+ const payload = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().monitors.list({
709
709
  ...state ? { state } : {},
710
710
  ...options.status ? { status: options.status } : {},
711
711
  ...options.limit ? { limit: options.limit } : {},
712
712
  ...options.cursor ? { cursor: options.cursor } : {},
713
713
  ...options.includeConsumers ? { includeConsumers: true } : {}
714
714
  });
715
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload, {
715
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, payload, {
716
716
  json: options.json,
717
717
  text: renderDeployedListText(
718
718
  payload,
@@ -728,10 +728,10 @@ async function handleMonitorsCheck(definition, options) {
728
728
  argLabel: "<definition>",
729
729
  command: "deepline monitors check"
730
730
  });
731
- const payload = await new (0, _chunk36ML3YKAjs.DeeplineClient)().monitors.check(
731
+ const payload = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().monitors.check(
732
732
  body
733
733
  );
734
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
734
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
735
735
  }
736
736
  async function handleMonitorsDeploy(definition, options) {
737
737
  const body = resolveMonitorJsonBody({
@@ -740,7 +740,7 @@ async function handleMonitorsDeploy(definition, options) {
740
740
  argLabel: "<definition>",
741
741
  command: "deepline monitors deploy"
742
742
  });
743
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
743
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
744
744
  const definitionArg = body;
745
745
  if (options.dryRun) {
746
746
  const payload2 = await client.monitors.deploy(definitionArg, {
@@ -748,7 +748,7 @@ async function handleMonitorsDeploy(definition, options) {
748
748
  });
749
749
  const valid = payload2.valid !== false;
750
750
  const hasIdentityConflict = Boolean(_optionalChain([asRecord, 'call', _21 => _21(payload2), 'optionalAccess', _22 => _22.identity_conflict]));
751
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
751
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
752
752
  { dry_run: true, ...payload2 },
753
753
  { json: options.json, text: renderMonitorDeployPlan(payload2) }
754
754
  );
@@ -758,7 +758,7 @@ async function handleMonitorsDeploy(definition, options) {
758
758
  return;
759
759
  }
760
760
  const payload = await client.monitors.deploy(definitionArg);
761
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload, {
761
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, payload, {
762
762
  json: options.json,
763
763
  text: renderMonitorDeployCompletion(payload)
764
764
  });
@@ -770,29 +770,29 @@ async function handleMonitorsSync(definition, options) {
770
770
  argLabel: "<definition>",
771
771
  command: "deepline monitors sync"
772
772
  });
773
- const payload = await new (0, _chunk36ML3YKAjs.DeeplineClient)().monitors.sync(body, {
773
+ const payload = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().monitors.sync(body, {
774
774
  ...options.dryRun ? { dryRun: true } : {},
775
775
  idempotencyKey: _nullishCoalesce(options.idempotencyKey, () => ( monitorJobIdempotencyKey("scalar-sync", void 0)))
776
776
  });
777
777
  if (options.dryRun) {
778
778
  const plan = payload;
779
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
779
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
780
780
  { dry_run: true, ...plan },
781
781
  { json: options.json, text: renderMonitorDeployPlan(plan) }
782
782
  );
783
783
  return;
784
784
  }
785
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload, {
785
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, payload, {
786
786
  json: options.json,
787
787
  text: renderMonitorJob(payload)
788
788
  });
789
789
  }
790
790
  async function handleScalarMonitorLifecycle(action, key, options) {
791
- const payload = await new (0, _chunk36ML3YKAjs.DeeplineClient)().monitors[action](key, {
791
+ const payload = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().monitors[action](key, {
792
792
  ...options.dryRun ? { dryRun: true } : {},
793
793
  idempotencyKey: _nullishCoalesce(options.idempotencyKey, () => ( monitorJobIdempotencyKey(`${action}-${key}`, void 0)))
794
794
  });
795
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload, {
795
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, payload, {
796
796
  json: options.json,
797
797
  text: options.dryRun ? void 0 : renderMonitorJob(payload)
798
798
  });
@@ -881,11 +881,11 @@ async function handleMonitorJobBatchDeploy(options, idempotencyKey) {
881
881
  lint.issues.filter((issue) => issue.severity === "error").map((issue) => `${issue.path || "batch"}: ${issue.message}`).join("; ")
882
882
  );
883
883
  }
884
- const payload = await new (0, _chunk36ML3YKAjs.DeeplineClient)().monitors.batch.deploy(
884
+ const payload = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().monitors.batch.deploy(
885
885
  lint.normalized.monitors,
886
886
  { idempotencyKey }
887
887
  );
888
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
888
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
889
889
  {
890
890
  ...payload,
891
891
  idempotency_key: idempotencyKey,
@@ -918,7 +918,7 @@ async function handleNamedMonitorBatchSync(batchId, options) {
918
918
  );
919
919
  }
920
920
  if (options.dryRun) {
921
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
921
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
922
922
  {
923
923
  ok: true,
924
924
  dry_run: true,
@@ -935,7 +935,7 @@ async function handleNamedMonitorBatchSync(batchId, options) {
935
935
  "sync",
936
936
  options.idempotencyKey
937
937
  );
938
- const payload = await new (0, _chunk36ML3YKAjs.DeeplineClient)().monitors.batches.sync(
938
+ const payload = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().monitors.batches.sync(
939
939
  batchId,
940
940
  lint.normalized.monitors,
941
941
  {
@@ -943,14 +943,14 @@ async function handleNamedMonitorBatchSync(batchId, options) {
943
943
  ...parsedGeneration === void 0 ? {} : { expectedGeneration: parsedGeneration }
944
944
  }
945
945
  );
946
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
946
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
947
947
  { ...payload, idempotency_key: idempotencyKey },
948
948
  { json: options.json, text: renderMonitorJob(payload) }
949
949
  );
950
950
  }
951
951
  async function handleNamedMonitorBatchLifecycle(batchId, intent, options) {
952
952
  if (options.dryRun) {
953
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
953
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
954
954
  {
955
955
  ok: true,
956
956
  dry_run: true,
@@ -966,17 +966,17 @@ async function handleNamedMonitorBatchLifecycle(batchId, intent, options) {
966
966
  intent,
967
967
  options.idempotencyKey
968
968
  );
969
- const payload = await new (0, _chunk36ML3YKAjs.DeeplineClient)().monitors.batches[intent](batchId, {
969
+ const payload = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().monitors.batches[intent](batchId, {
970
970
  idempotencyKey
971
971
  });
972
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
972
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
973
973
  { ...payload, idempotency_key: idempotencyKey },
974
974
  { json: options.json, text: renderMonitorJob(payload) }
975
975
  );
976
976
  }
977
977
  async function handleNamedMonitorBatchGet(batchId, options) {
978
- const payload = await new (0, _chunk36ML3YKAjs.DeeplineClient)().monitors.batches.get(batchId);
979
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload, {
978
+ const payload = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().monitors.batches.get(batchId);
979
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, payload, {
980
980
  json: options.json,
981
981
  text: renderMonitorJob(payload)
982
982
  });
@@ -990,7 +990,7 @@ async function handleMonitorBatchLint(options) {
990
990
  const result = _chunkIF75RD6Ujs.lintMonitorBatchInput.call(void 0,
991
991
  readMonitorDefinitionsJsonFile(options.file)
992
992
  );
993
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
993
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
994
994
  {
995
995
  ok: !result.issues.some((issue) => issue.severity === "error"),
996
996
  ...result.normalized ? { normalized: result.normalized } : {},
@@ -1010,7 +1010,7 @@ async function handleMonitorFleetLint(options) {
1010
1010
  const result = _chunkC374C22Yjs.lintMonitorFleetInput.call(void 0,
1011
1011
  readMonitorDefinitionsJsonFile(options.file)
1012
1012
  );
1013
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
1013
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
1014
1014
  {
1015
1015
  ok: !result.issues.some((issue) => issue.severity === "error"),
1016
1016
  ...result.normalized ? { normalized: result.normalized } : {},
@@ -1022,32 +1022,32 @@ async function handleMonitorFleetLint(options) {
1022
1022
  process.exitCode = 2;
1023
1023
  }
1024
1024
  async function handleMonitorJobGet(jobId, options) {
1025
- const payload = await new (0, _chunk36ML3YKAjs.DeeplineClient)().monitors.jobs.get(jobId);
1026
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload, {
1025
+ const payload = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().monitors.jobs.get(jobId);
1026
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, payload, {
1027
1027
  json: options.json,
1028
1028
  text: renderMonitorJob(payload)
1029
1029
  });
1030
1030
  }
1031
1031
  async function handleMonitorJobWait(jobId, options) {
1032
- const payload = await new (0, _chunk36ML3YKAjs.DeeplineClient)().monitors.jobs.wait(jobId, {
1032
+ const payload = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().monitors.jobs.wait(jobId, {
1033
1033
  timeoutMs: fleetTimeoutMs(options.timeout),
1034
1034
  pollIntervalMs: FLEET_POLL_INTERVAL_MS
1035
1035
  });
1036
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload, {
1036
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, payload, {
1037
1037
  json: options.json,
1038
1038
  text: renderMonitorJob(payload)
1039
1039
  });
1040
1040
  }
1041
1041
  async function handleMonitorJobLogs(jobId, options) {
1042
1042
  const limit = options.limit ? fleetIntegerOption(options.limit, "--limit") : void 0;
1043
- const payload = await new (0, _chunk36ML3YKAjs.DeeplineClient)().monitors.jobs.logs(jobId, {
1043
+ const payload = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().monitors.jobs.logs(jobId, {
1044
1044
  ...limit === void 0 ? {} : { limit }
1045
1045
  });
1046
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
1046
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
1047
1047
  }
1048
1048
  async function handleMonitorJobCancel(jobId, options) {
1049
- const payload = await new (0, _chunk36ML3YKAjs.DeeplineClient)().monitors.jobs.cancel(jobId);
1050
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload, {
1049
+ const payload = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().monitors.jobs.cancel(jobId);
1050
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, payload, {
1051
1051
  json: options.json,
1052
1052
  text: renderMonitorJob(payload)
1053
1053
  });
@@ -1345,7 +1345,7 @@ function renderFleetDeactivatePlan(payload, fleetId) {
1345
1345
  `;
1346
1346
  }
1347
1347
  function reportFleetState(payload, error, options) {
1348
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
1348
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
1349
1349
  {
1350
1350
  ...payload,
1351
1351
  code: error.code,
@@ -1460,7 +1460,7 @@ async function handleMonitorFleetsInit(fleetId, options) {
1460
1460
  _fs.writeFileSync.call(void 0, file, `${JSON.stringify(definition, null, 2)}
1461
1461
  `, "utf8");
1462
1462
  const next = `deepline monitors fleets deploy --file ${fleetShellArg(file)} --dry-run`;
1463
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
1463
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
1464
1464
  { schemaVersion: 2, file, definition, next },
1465
1465
  {
1466
1466
  json: options.json,
@@ -1522,7 +1522,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
1522
1522
  'The Fleet definition has no id. Add a top-level "id" and re-run.'
1523
1523
  );
1524
1524
  }
1525
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
1525
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
1526
1526
  const payload = await client.monitors.fleets.sync(
1527
1527
  _nullishCoalesce(definition, () => ( fleetId)),
1528
1528
  {
@@ -1544,7 +1544,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
1544
1544
  }
1545
1545
  const accepted = { ...payload, idempotency_key: idempotencyKey };
1546
1546
  if (!options.wait || options.dryRun) {
1547
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, accepted, {
1547
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, accepted, {
1548
1548
  json: options.json,
1549
1549
  text: renderFleetSync(payload, {
1550
1550
  fleetId,
@@ -1570,7 +1570,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
1570
1570
  const status = fleetStatus(final);
1571
1571
  const summary = renderFleetGet(final);
1572
1572
  if (status === "converged") {
1573
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
1573
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
1574
1574
  return;
1575
1575
  }
1576
1576
  const driftCommand = `deepline monitors fleets get ${fleetShellArg(fleetId)} --drift`;
@@ -1603,14 +1603,14 @@ async function handleMonitorFleetsGet(fleetId, options) {
1603
1603
  );
1604
1604
  }
1605
1605
  const limit = options.limit === void 0 ? void 0 : fleetIntegerOption(options.limit, "--limit");
1606
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
1606
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
1607
1607
  const payload = await client.monitors.fleets.get(fleetId, {
1608
1608
  ...options.drift ? { drift: true } : {},
1609
1609
  ...limit !== void 0 ? { limit } : {}
1610
1610
  });
1611
1611
  const text = fleetId ? renderFleetGet(payload) : renderFleetList(payload);
1612
1612
  if (!options.check) {
1613
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
1613
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
1614
1614
  return;
1615
1615
  }
1616
1616
  const statuses = fleetId ? [fleetStatus(payload)] : (Array.isArray(payload.fleets) ? payload.fleets : []).map(
@@ -1618,7 +1618,7 @@ async function handleMonitorFleetsGet(fleetId, options) {
1618
1618
  );
1619
1619
  const unconverged = statuses.filter((status) => status !== "converged");
1620
1620
  if (unconverged.length === 0) {
1621
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
1621
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
1622
1622
  return;
1623
1623
  }
1624
1624
  const target = _nullishCoalesce(fleetId, () => ( "<fleet-id>"));
@@ -1657,13 +1657,13 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
1657
1657
  ${fleetReactivateCommandLine(fleetId, options)}`
1658
1658
  );
1659
1659
  }
1660
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
1660
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
1661
1661
  const payload = await client.monitors.fleets.reactivate(fleetId, {
1662
1662
  idempotencyKey
1663
1663
  });
1664
1664
  const accepted = { ...payload, idempotency_key: idempotencyKey };
1665
1665
  if (!options.wait) {
1666
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, accepted, {
1666
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, accepted, {
1667
1667
  json: options.json,
1668
1668
  text: `Fleet ${fleetId} \u2014 ${readMonitorState(payload) ? `state ${readMonitorState(payload)}` : "reactivation accepted"}
1669
1669
  idempotency key ${idempotencyKey}
@@ -1686,7 +1686,7 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
1686
1686
  const envelope = { ...accepted, ...final };
1687
1687
  const text = renderFleetGet(final);
1688
1688
  if (fleetStatus(final) === "converged") {
1689
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text });
1689
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text });
1690
1690
  return;
1691
1691
  }
1692
1692
  reportFleetState(
@@ -1728,7 +1728,7 @@ async function confirmFleetDeactivate(fleetId, plan) {
1728
1728
  }
1729
1729
  }
1730
1730
  async function handleMonitorFleetsDeactivate(fleetId, options, idempotencyKey) {
1731
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
1731
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
1732
1732
  if (options.dryRun) {
1733
1733
  const plan = await client.monitors.fleets.deactivate(fleetId, {
1734
1734
  dryRun: true,
@@ -1738,7 +1738,7 @@ async function handleMonitorFleetsDeactivate(fleetId, options, idempotencyKey) {
1738
1738
  command: "deepline monitors fleets deactivate",
1739
1739
  mutation: "fleet deactivate"
1740
1740
  });
1741
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, plan, {
1741
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, plan, {
1742
1742
  json: options.json,
1743
1743
  text: renderFleetDeactivatePlan(plan, fleetId)
1744
1744
  });
@@ -1776,7 +1776,7 @@ Preview the blast radius first:
1776
1776
  });
1777
1777
  const accepted = { ...payload, idempotency_key: idempotencyKey };
1778
1778
  if (payload.already === true) {
1779
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, accepted, {
1779
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, accepted, {
1780
1780
  json: options.json,
1781
1781
  text: `Fleet ${fleetId} is already deactivated.
1782
1782
  `
@@ -1788,7 +1788,7 @@ Preview the blast radius first:
1788
1788
  ` + (fleetServerNext(payload) ? `Next: ${fleetServerNext(payload)}
1789
1789
  ` : "");
1790
1790
  if (!options.wait) {
1791
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, accepted, {
1791
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, accepted, {
1792
1792
  json: options.json,
1793
1793
  text: acceptedText
1794
1794
  });
@@ -1810,7 +1810,7 @@ Preview the blast radius first:
1810
1810
  const envelope = { ...accepted, ...final };
1811
1811
  const summary = renderFleetGet(final);
1812
1812
  if (fleetStatus(final) === "deactivated") {
1813
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
1813
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
1814
1814
  return;
1815
1815
  }
1816
1816
  reportFleetState(
@@ -1841,7 +1841,7 @@ function handleMonitorFleetsOverview(options) {
1841
1841
  "Agent notes:",
1842
1842
  ...MONITOR_FLEET_AGENT_NOTES.map((note) => ` ${note}`)
1843
1843
  ];
1844
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
1844
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
1845
1845
  {
1846
1846
  schemaVersion: 1,
1847
1847
  lifecycle: MONITOR_FLEET_LIFECYCLE,
@@ -2002,7 +2002,7 @@ function renderMonitorGet(payload) {
2002
2002
  `;
2003
2003
  }
2004
2004
  async function handleMonitorsGet(key, options) {
2005
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
2005
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
2006
2006
  const payload = await client.monitors.get(key);
2007
2007
  const boundPlays = Array.isArray(payload.bound_plays) ? payload.bound_plays : null;
2008
2008
  const dependents = boundPlays ? {
@@ -2010,24 +2010,24 @@ async function handleMonitorsGet(key, options) {
2010
2010
  truncated: payload.consumer_health_truncated === true
2011
2011
  } : await client.monitors.dependents(key);
2012
2012
  const detail = { ...payload, dependents };
2013
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, detail, {
2013
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, detail, {
2014
2014
  json: options.json,
2015
2015
  text: renderMonitorGet(detail)
2016
2016
  });
2017
2017
  }
2018
2018
  async function handleMonitorsTest(key, payload, options) {
2019
2019
  const explicitPayload = parseJsonObjectArg(payload, "<payload>");
2020
- const result = await new (0, _chunk36ML3YKAjs.DeeplineClient)().monitors.test(key, explicitPayload);
2020
+ const result = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().monitors.test(key, explicitPayload);
2021
2021
  const text = `Monitor diagnostic for ${key}: ${result.accepted === true ? "accepted" : "rejected"}
2022
2022
  mode: validation_only (no rows written, credits spent, or Plays dispatched)
2023
2023
  persisted rows: ${_nullishCoalesce(asFiniteNumber(result.persisted_rows), () => ( 0))}
2024
2024
  dispatched bound Plays: ${_nullishCoalesce(asFiniteNumber(result.dispatched_bound_plays), () => ( 0))}
2025
2025
  `;
2026
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, result, { json: options.json, text });
2026
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, result, { json: options.json, text });
2027
2027
  }
2028
2028
  async function handleMonitorsValidate(key, options) {
2029
- const result = await new (0, _chunk36ML3YKAjs.DeeplineClient)().monitors.validate(key);
2030
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, result, { json: options.json });
2029
+ const result = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().monitors.validate(key);
2030
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, result, { json: options.json });
2031
2031
  if (result.valid === false) process.exitCode = 7;
2032
2032
  }
2033
2033
  async function confirmMonitorDelete(key) {
@@ -2045,14 +2045,14 @@ async function confirmMonitorDelete(key) {
2045
2045
  }
2046
2046
  }
2047
2047
  async function handleMonitorsDelete(key, options) {
2048
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
2048
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
2049
2049
  if (options.dryRun) {
2050
2050
  const payload2 = await client.monitors.delete(key, { dryRun: true });
2051
2051
  assertMonitorDryRunAcknowledged(payload2, {
2052
2052
  command: "deepline monitors delete",
2053
2053
  mutation: "delete"
2054
2054
  });
2055
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload2, {
2055
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, payload2, {
2056
2056
  json: options.json,
2057
2057
  text: renderMonitorDeletePlan(payload2, key)
2058
2058
  });
@@ -2072,7 +2072,7 @@ async function handleMonitorsDelete(key, options) {
2072
2072
  }
2073
2073
  }
2074
2074
  const payload = await client.monitors.delete(key);
2075
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
2075
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
2076
2076
  }
2077
2077
  async function handleMonitorsUpdate(key, patch, options) {
2078
2078
  const body = resolveMonitorJsonBody({
@@ -2081,25 +2081,25 @@ async function handleMonitorsUpdate(key, patch, options) {
2081
2081
  argLabel: "<patch>",
2082
2082
  command: `deepline monitors update ${key}`
2083
2083
  });
2084
- const payload = await new (0, _chunk36ML3YKAjs.DeeplineClient)().monitors.update(key, body);
2085
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
2084
+ const payload = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().monitors.update(key, body);
2085
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
2086
2086
  }
2087
2087
  async function handleMonitorsReactivate(key, options) {
2088
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
2088
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
2089
2089
  if (options.dryRun) {
2090
2090
  const payload2 = await client.monitors.reactivate(key, { dryRun: true });
2091
2091
  assertMonitorDryRunAcknowledged(payload2, {
2092
2092
  command: "deepline monitors reactivate",
2093
2093
  mutation: "reactivate"
2094
2094
  });
2095
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload2, {
2095
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, payload2, {
2096
2096
  json: options.json,
2097
2097
  text: renderMonitorReactivatePlan(payload2, key)
2098
2098
  });
2099
2099
  return;
2100
2100
  }
2101
2101
  const payload = await client.monitors.reactivate(key);
2102
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
2102
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
2103
2103
  }
2104
2104
  var MONITOR_VERB_POLL_INTERVAL_MS = 2e3;
2105
2105
  function monitorHealthLine(health) {
@@ -2221,7 +2221,7 @@ function monitorHealthText(health) {
2221
2221
  `;
2222
2222
  }
2223
2223
  async function handleMonitorsAudit(options) {
2224
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
2224
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
2225
2225
  const fleetId = _optionalChain([options, 'access', _73 => _73.fleet, 'optionalAccess', _74 => _74.trim, 'call', _75 => _75()]) || void 0;
2226
2226
  const scope = fleetId ? { fleetId } : {};
2227
2227
  let result = await client.monitors.audit(scope);
@@ -2265,7 +2265,7 @@ async function handleMonitorsAudit(options) {
2265
2265
  "",
2266
2266
  monitorHealthText(health)
2267
2267
  ].join("\n");
2268
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2268
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
2269
2269
  { ...result, audit: { ...result.audit, totals }, health },
2270
2270
  { json: options.json, text }
2271
2271
  );
@@ -2278,10 +2278,10 @@ async function handleMonitorsRepair(options) {
2278
2278
  }
2279
2279
  async function handleMonitorsHealth(options) {
2280
2280
  const fleetId = _optionalChain([options, 'access', _79 => _79.fleet, 'optionalAccess', _80 => _80.trim, 'call', _81 => _81()]) || void 0;
2281
- const health = await new (0, _chunk36ML3YKAjs.DeeplineClient)().monitors.health(
2281
+ const health = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().monitors.health(
2282
2282
  fleetId ? { fleetId } : {}
2283
2283
  );
2284
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, health, {
2284
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, health, {
2285
2285
  json: options.json,
2286
2286
  text: monitorHealthText(health)
2287
2287
  });
@@ -2355,14 +2355,14 @@ async function handleMonitorBatchDeploy(options) {
2355
2355
  "deploy",
2356
2356
  options.idempotencyKey
2357
2357
  );
2358
- const result = await new (0, _chunk36ML3YKAjs.DeeplineClient)().monitors.batch.submit({
2358
+ const result = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().monitors.batch.submit({
2359
2359
  kind: "deploy",
2360
2360
  manifestNdjson,
2361
2361
  dryRun: options.dryRun === true,
2362
2362
  idempotencyKey
2363
2363
  });
2364
2364
  const operation = result.operation;
2365
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2365
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
2366
2366
  { ...result, idempotency_key: idempotencyKey },
2367
2367
  {
2368
2368
  json: options.json,
@@ -2390,7 +2390,7 @@ async function handleMonitorBatch(kind, options) {
2390
2390
  kind,
2391
2391
  options.idempotencyKey
2392
2392
  );
2393
- const result = await new (0, _chunk36ML3YKAjs.DeeplineClient)().monitors.batch.submit({
2393
+ const result = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().monitors.batch.submit({
2394
2394
  kind,
2395
2395
  scope,
2396
2396
  dryRun: options.dryRun === true,
@@ -2403,14 +2403,14 @@ async function handleMonitorBatch(kind, options) {
2403
2403
  `state ${operation.state} \xB7 retry key ${idempotencyKey}`,
2404
2404
  `inspect: deepline monitors batch get ${operation.runId}`
2405
2405
  ].join("\n");
2406
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2406
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
2407
2407
  { ...result, idempotency_key: idempotencyKey },
2408
2408
  { json: options.json, text: `${text}
2409
2409
  ` }
2410
2410
  );
2411
2411
  }
2412
2412
  async function handleMonitorBatchGet(operationId, options) {
2413
- const result = await new (0, _chunk36ML3YKAjs.DeeplineClient)().monitors.batch.get(operationId, {
2413
+ const result = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().monitors.batch.get(operationId, {
2414
2414
  ...options.cursor ? { cursor: options.cursor } : {}
2415
2415
  });
2416
2416
  const summary = _nullishCoalesce(result.operation.summary, () => ( {}));
@@ -2422,7 +2422,7 @@ async function handleMonitorBatchGet(operationId, options) {
2422
2422
  `results ${result.results.page.length}${result.results.isDone ? "" : " (more; pass --cursor)"}`
2423
2423
  ] : []
2424
2424
  ].join("\n");
2425
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, result, { json: options.json, text: `${text}
2425
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, result, { json: options.json, text: `${text}
2426
2426
  ` });
2427
2427
  }
2428
2428
  function registerMonitorsCommands(program) {
@@ -1,10 +1,10 @@
1
1
  import "./chunk-EXMLR72R.mjs";
2
2
  import {
3
3
  DeeplineClient
4
- } from "./chunk-G4IWGRMK.mjs";
4
+ } from "./chunk-MR6XCBQJ.mjs";
5
5
  import "./chunk-6IKARAYD.mjs";
6
6
  import "./chunk-JI2B4RZP.mjs";
7
- import "./chunk-5VCZ3WRH.mjs";
7
+ import "./chunk-EIMG75BT.mjs";
8
8
  import "./chunk-UBKA33KY.mjs";
9
9
  import {
10
10
  MONITOR_FLEET_DOCUMENTATION,
@@ -19,15 +19,15 @@ import {
19
19
  printCommandEnvelope,
20
20
  printJson,
21
21
  shouldEmitJson
22
- } from "./chunk-47M6HPGP.mjs";
22
+ } from "./chunk-XKZXO7D3.mjs";
23
23
  import {
24
24
  AuthError
25
- } from "./chunk-6D7A2FSL.mjs";
25
+ } from "./chunk-VE3U3SQC.mjs";
26
26
  import "./chunk-DLIRSHV6.mjs";
27
27
  import {
28
28
  DeeplineError
29
29
  } from "./chunk-NXGCO4JB.mjs";
30
- import "./chunk-BON3DRC6.mjs";
30
+ import "./chunk-NHB5YUCS.mjs";
31
31
  import "./chunk-WZYKRD7T.mjs";
32
32
  import "./chunk-KRD6H754.mjs";
33
33