deepline 0.3.340 → 0.3.342

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 (95) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +14 -0
  3. package/dist/cli/{auth-AAHQCTJW.mjs → auth-7GVSCIFY.mjs} +4 -4
  4. package/dist/cli/auth-BFOCE76P.js +31 -0
  5. package/dist/cli/{billing-2X4SP44P.mjs → billing-BVCHOOOJ.mjs} +4 -4
  6. package/dist/cli/{billing-SBU4F4VS.js → billing-CQDTIFBF.js} +71 -71
  7. package/dist/cli/{chunk-AYAEVVB5.js → chunk-3BGGXEO5.js} +4 -4
  8. package/dist/cli/{chunk-XCB2WE4D.js → chunk-3BY3UMYO.js} +15 -15
  9. package/dist/cli/{chunk-YODUXBLR.js → chunk-4EW5CMVL.js} +225 -225
  10. package/dist/cli/{chunk-YRDTRTU4.mjs → chunk-4LPBIUQ2.mjs} +2 -2
  11. package/dist/cli/{chunk-EQFYORNR.js → chunk-5Y2DDT5K.js} +26 -26
  12. package/dist/cli/{chunk-VMEJLJJD.mjs → chunk-AC7QCWXV.mjs} +1 -1
  13. package/dist/cli/{chunk-X6A7PAR6.js → chunk-B2PMPAIJ.js} +60 -60
  14. package/dist/cli/{chunk-M3KIBSVO.mjs → chunk-BIA27ZNI.mjs} +2 -2
  15. package/dist/cli/{chunk-A4LUPRGL.js → chunk-DL5YQFZ6.js} +6 -6
  16. package/dist/cli/{chunk-YAYAOUH3.js → chunk-DP2XSXRA.js} +8 -8
  17. package/dist/cli/{chunk-WDB7AIXJ.mjs → chunk-ECBT2RXL.mjs} +6 -6
  18. package/dist/cli/{chunk-VLV2PVA2.js → chunk-ERC3XIUO.js} +8 -8
  19. package/dist/cli/{chunk-OD7LIBSF.mjs → chunk-FT4V72RC.mjs} +2 -2
  20. package/dist/cli/{chunk-PLSVHYRC.mjs → chunk-G6TM2GK2.mjs} +1 -1
  21. package/dist/cli/{chunk-DX37W6IS.mjs → chunk-GAQGAH34.mjs} +3 -3
  22. package/dist/cli/{chunk-6D77EBSR.mjs → chunk-GEGCG7MG.mjs} +5 -5
  23. package/dist/cli/{chunk-2IZ6RE5L.mjs → chunk-IDTUEEF4.mjs} +1 -1
  24. package/dist/cli/{chunk-B2HJ2OFH.js → chunk-K2P365R2.js} +48 -48
  25. package/dist/cli/{chunk-YLDIZ7A3.js → chunk-KM3JYG56.js} +9 -9
  26. package/dist/cli/{chunk-6ONNP4XL.js → chunk-KYHNFT7T.js} +1 -1
  27. package/dist/cli/{chunk-NPPD5XT6.js → chunk-LQGHKRNZ.js} +45 -45
  28. package/dist/cli/{chunk-N3X2DMF2.mjs → chunk-OJH4W52K.mjs} +1 -1
  29. package/dist/cli/{chunk-LR66EFVU.mjs → chunk-SBXCXMYT.mjs} +1 -1
  30. package/dist/cli/{chunk-77YWQTE6.mjs → chunk-VZHA6YHU.mjs} +4 -4
  31. package/dist/cli/{chunk-URO52CD6.js → chunk-W5BMDA4F.js} +2 -2
  32. package/dist/cli/{chunk-AN3X5XIR.mjs → chunk-XAMWA45P.mjs} +2 -2
  33. package/dist/cli/client-FCOLYBLU.js +20 -0
  34. package/dist/cli/{client-LKEH3EYO.mjs → client-UMFL6LP2.mjs} +3 -3
  35. package/dist/cli/{csv-WDWQGVDN.mjs → csv-EFHLVMV2.mjs} +3 -3
  36. package/dist/cli/{csv-ZQIEH4Q3.js → csv-HYZKDWVL.js} +12 -12
  37. package/dist/cli/{db-KKC6CT3W.mjs → db-GVC55S5W.mjs} +4 -4
  38. package/dist/cli/{db-CRQSATVK.js → db-RPWOYGIJ.js} +29 -29
  39. package/dist/cli/{describe-HGYOEBYE.js → describe-EPNNEVZG.js} +15 -15
  40. package/dist/cli/{describe-YEVXHHHH.mjs → describe-X5WLZXOS.mjs} +8 -8
  41. package/dist/cli/{executions-ISG5EEOO.js → executions-MEQFDGRU.js} +6 -6
  42. package/dist/cli/{executions-MMNCPQNE.mjs → executions-MPEF66XO.mjs} +4 -4
  43. package/dist/cli/{feedback-3HNMWGJA.mjs → feedback-I4UNJEHC.mjs} +3 -3
  44. package/dist/cli/{feedback-U5SC3CAL.js → feedback-SCZSITXP.js} +7 -7
  45. package/dist/cli/{git-REGKM36C.mjs → git-5H4ZVTTV.mjs} +4 -4
  46. package/dist/cli/git-YA73D6HG.js +23 -0
  47. package/dist/cli/index.js +79 -79
  48. package/dist/cli/index.mjs +31 -31
  49. package/dist/cli/{legacy-noops-KUIQG6VC.mjs → legacy-noops-326HSG4F.mjs} +4 -4
  50. package/dist/cli/{legacy-noops-GTUAF7TM.js → legacy-noops-BH6IRSKQ.js} +7 -7
  51. package/dist/cli/{monitors-7IYKWVMJ.mjs → monitors-AZ64IIUO.mjs} +4 -4
  52. package/dist/cli/{monitors-V5RFXFO5.js → monitors-SIXPXBKU.js} +85 -85
  53. package/dist/cli/{org-RSN7GZN4.mjs → org-2FAU4GBK.mjs} +4 -4
  54. package/dist/cli/{org-77BRBYNS.js → org-4VX6L3SZ.js} +60 -60
  55. package/dist/cli/{play-ZPWFRN3I.mjs → play-7VQABXW7.mjs} +7 -7
  56. package/dist/cli/play-SDZWMYJM.js +153 -0
  57. package/dist/cli/{providers-TVELPXNI.mjs → providers-DOFRWRDC.mjs} +4 -4
  58. package/dist/cli/{providers-2LD2BJUO.js → providers-WWEGDKWO.js} +7 -7
  59. package/dist/cli/{quickstart-CYL2GNSK.js → quickstart-64NWQZXP.js} +5 -5
  60. package/dist/cli/{quickstart-7RUT33IL.mjs → quickstart-JXN53CUE.mjs} +3 -3
  61. package/dist/cli/{search-GJURFP4W.mjs → search-NREYIQO7.mjs} +5 -5
  62. package/dist/cli/search-VKOBBQAN.js +26 -0
  63. package/dist/cli/{secrets-KWBPK5GP.js → secrets-FGZSIICG.js} +13 -13
  64. package/dist/cli/{secrets-L5LNMMSB.mjs → secrets-LO2S3ASQ.mjs} +4 -4
  65. package/dist/cli/{sessions-5EAEXNJY.mjs → sessions-FYHXMESN.mjs} +4 -4
  66. package/dist/cli/{sessions-5DWIUOGX.js → sessions-VOLIMKDL.js} +5 -5
  67. package/dist/cli/{settings-KBPJL4KI.js → settings-EYQHZTCR.js} +74 -74
  68. package/dist/cli/{settings-OPD6MT4Q.mjs → settings-WABX7ZVG.mjs} +7 -7
  69. package/dist/cli/{setup-B5UDLN32.js → setup-7H5EAAZK.js} +41 -41
  70. package/dist/cli/{setup-GFHBMHWJ.mjs → setup-JVECE4TU.mjs} +6 -6
  71. package/dist/cli/skills-4WHWKCUN.js +28 -0
  72. package/dist/cli/{skills-3245BDMO.mjs → skills-BEVLJDUH.mjs} +4 -4
  73. package/dist/cli/{tools-ZKXMREZU.mjs → tools-5D32S2CY.mjs} +6 -6
  74. package/dist/cli/tools-SGLGLR2H.js +40 -0
  75. package/dist/cli/{update-NBHQD6N6.mjs → update-EMNDLIDA.mjs} +6 -6
  76. package/dist/cli/update-HRB4G5LS.js +28 -0
  77. package/dist/cli/{workflow-T3IWKJI2.js → workflow-BBMZ2A2Y.js} +15 -15
  78. package/dist/cli/{workflow-5XYAE4BX.mjs → workflow-MMTSJB3D.mjs} +5 -5
  79. package/dist/index.js +10 -6
  80. package/dist/index.mjs +7 -3
  81. package/dist/install-integrity.json +74 -74
  82. package/dist/release.d.mts +1 -1
  83. package/dist/release.d.ts +1 -1
  84. package/dist/release.js +2 -2
  85. package/dist/release.mjs +1 -1
  86. package/dist/viewer/viewer.js +86 -11
  87. package/package.json +1 -1
  88. package/dist/cli/auth-WDM5N7LQ.js +0 -31
  89. package/dist/cli/client-2MTAJ6XW.js +0 -20
  90. package/dist/cli/git-BULAJZKJ.js +0 -23
  91. package/dist/cli/play-IKPMX4VZ.js +0 -153
  92. package/dist/cli/search-2ZFU42IA.js +0 -26
  93. package/dist/cli/skills-I5MHLBGC.js +0 -28
  94. package/dist/cli/tools-QQVNDK7W.js +0 -40
  95. package/dist/cli/update-6OCUCA4T.js +0 -28
@@ -200,7 +200,7 @@ export const SDK_RELEASE = {
200
200
  // getters keep their established compatibility behavior.
201
201
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
202
202
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
203
- version: '0.3.340',
203
+ version: '0.3.342',
204
204
  updateSummary:
205
205
  'Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.',
206
206
  packageCapabilities: {
@@ -782,12 +782,26 @@ function phoneTargetValue(value: unknown): string | null {
782
782
  return null;
783
783
  }
784
784
 
785
+ /**
786
+ * Contact targets other than phone that are always strings. PDL answers
787
+ * `work_email: true` when it holds an email the plan does not expose; that
788
+ * availability flag is not the email.
789
+ */
790
+ const STRING_CONTACT_TARGETS = new Set(['email', 'personal_email', 'linkedin']);
791
+
785
792
  /** The value a target accepts from a candidate, or undefined to keep looking. */
786
793
  function acceptedTargetValue(
787
794
  target: string | undefined,
788
795
  value: unknown,
789
796
  ): unknown {
790
797
  if (target === 'phone') return phoneTargetValue(value) ?? undefined;
798
+ if (
799
+ target &&
800
+ STRING_CONTACT_TARGETS.has(target) &&
801
+ typeof value === 'boolean'
802
+ ) {
803
+ return undefined;
804
+ }
791
805
  return isMeaningfulValue(value) ? value : undefined;
792
806
  }
793
807
 
@@ -9,11 +9,11 @@ import {
9
9
  registerAuthCommands,
10
10
  reportSetupCompleted,
11
11
  resolvePendingAuthClaimForResume
12
- } from "./chunk-AN3X5XIR.mjs";
13
- import "./chunk-N3X2DMF2.mjs";
14
- import "./chunk-PLSVHYRC.mjs";
12
+ } from "./chunk-XAMWA45P.mjs";
13
+ import "./chunk-OJH4W52K.mjs";
14
+ import "./chunk-G6TM2GK2.mjs";
15
15
  import "./chunk-DLIRSHV6.mjs";
16
- import "./chunk-VMEJLJJD.mjs";
16
+ import "./chunk-AC7QCWXV.mjs";
17
17
  import "./chunk-NXGCO4JB.mjs";
18
18
  import "./chunk-WZYKRD7T.mjs";
19
19
  import "./chunk-KRD6H754.mjs";
@@ -0,0 +1,31 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+ var _chunkK2P365R2js = require('./chunk-K2P365R2.js');
13
+ require('./chunk-DL5YQFZ6.js');
14
+ require('./chunk-3BGGXEO5.js');
15
+ require('./chunk-XNYIZMNQ.js');
16
+ require('./chunk-KYHNFT7T.js');
17
+ require('./chunk-7P5AA3SN.js');
18
+ require('./chunk-OG64RBAC.js');
19
+ require('./chunk-COGTRVWW.js');
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+ exports.EXIT_WORKSPACE_MISMATCH = _chunkK2P365R2js.EXIT_WORKSPACE_MISMATCH; exports.clearPendingClaim = _chunkK2P365R2js.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkK2P365R2js.clearSatisfiedPendingClaim; exports.handleRegister = _chunkK2P365R2js.handleRegister; exports.handleStatus = _chunkK2P365R2js.handleStatus; exports.handleWait = _chunkK2P365R2js.handleWait; exports.readPendingAuthClaim = _chunkK2P365R2js.readPendingAuthClaim; exports.registerAuthCommands = _chunkK2P365R2js.registerAuthCommands; exports.reportSetupCompleted = _chunkK2P365R2js.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkK2P365R2js.resolvePendingAuthClaimForResume;
@@ -2,7 +2,7 @@ import {
2
2
  DeeplineClient,
3
3
  iterateCursorPages,
4
4
  requireBillingIdempotencyKey
5
- } from "./chunk-LR66EFVU.mjs";
5
+ } from "./chunk-SBXCXMYT.mjs";
6
6
  import "./chunk-CBVIJSHF.mjs";
7
7
  import {
8
8
  createTimestampedName,
@@ -10,13 +10,13 @@ import {
10
10
  openInBrowser,
11
11
  printCommandEnvelope,
12
12
  shouldEmitJson
13
- } from "./chunk-N3X2DMF2.mjs";
13
+ } from "./chunk-OJH4W52K.mjs";
14
14
  import {
15
15
  AuthError,
16
16
  ConfigError
17
- } from "./chunk-PLSVHYRC.mjs";
17
+ } from "./chunk-G6TM2GK2.mjs";
18
18
  import "./chunk-DLIRSHV6.mjs";
19
- import "./chunk-VMEJLJJD.mjs";
19
+ import "./chunk-AC7QCWXV.mjs";
20
20
  import "./chunk-6IKARAYD.mjs";
21
21
  import {
22
22
  DeeplineError
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkYLDIZ7A3js = require('./chunk-YLDIZ7A3.js');
5
+ var _chunkKM3JYG56js = require('./chunk-KM3JYG56.js');
6
6
  require('./chunk-LA46MMTL.js');
7
7
 
8
8
 
@@ -10,13 +10,13 @@ require('./chunk-LA46MMTL.js');
10
10
 
11
11
 
12
12
 
13
- var _chunkA4LUPRGLjs = require('./chunk-A4LUPRGL.js');
13
+ var _chunkDL5YQFZ6js = require('./chunk-DL5YQFZ6.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkAYAEVVB5js = require('./chunk-AYAEVVB5.js');
17
+ var _chunk3BGGXEO5js = require('./chunk-3BGGXEO5.js');
18
18
  require('./chunk-XNYIZMNQ.js');
19
- require('./chunk-6ONNP4XL.js');
19
+ require('./chunk-KYHNFT7T.js');
20
20
  require('./chunk-S6R3OX7B.js');
21
21
 
22
22
 
@@ -35,7 +35,7 @@ var SUBSCRIPTION_CANCEL_PATH = "/api/v2/billing/subscription/cancel";
35
35
  var BILLING_TOP_UP_PATH = "/api/v2/billing/top-up";
36
36
  var DEFAULT_BALANCE_RECOVERY_CREDITS = 100;
37
37
  function billingFailureFromError(error, options) {
38
- if (error instanceof _chunkAYAEVVB5js.AuthError) {
38
+ if (error instanceof _chunk3BGGXEO5js.AuthError) {
39
39
  return {
40
40
  exitCode: 3,
41
41
  code: "AUTH_ERROR",
@@ -69,7 +69,7 @@ function reportBillingFailure(failure, options) {
69
69
  if (failure.next) {
70
70
  textLines.push(`Next: ${failure.next}`);
71
71
  }
72
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
72
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
73
73
  {
74
74
  ok: false,
75
75
  exitCode: failure.exitCode,
@@ -90,7 +90,7 @@ function parseTopUpCredits(raw) {
90
90
  return parsed;
91
91
  }
92
92
  function topUpIdempotencyKey(raw) {
93
- return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunkYLDIZ7A3js.requireBillingIdempotencyKey.call(void 0, raw);
93
+ return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunkKM3JYG56js.requireBillingIdempotencyKey.call(void 0, raw);
94
94
  }
95
95
  function targetBillingIdempotencyKey(raw) {
96
96
  return typeof raw === "string" ? raw : `cli_target_billing:${Date.now()}:${_crypto.randomUUID.call(void 0, )}`;
@@ -127,7 +127,7 @@ function apiErrorCode(error) {
127
127
  return _nullishCoalesce(error.code, () => ( "BILLING_API_ERROR"));
128
128
  }
129
129
  function billingTopUpFailureFromError(error, input) {
130
- if (error instanceof _chunkAYAEVVB5js.AuthError || error instanceof _chunkAYAEVVB5js.ConfigError) {
130
+ if (error instanceof _chunk3BGGXEO5js.AuthError || error instanceof _chunk3BGGXEO5js.ConfigError) {
131
131
  return {
132
132
  exitCode: 3,
133
133
  code: "AUTH_ERROR",
@@ -296,7 +296,7 @@ function defaultLedgerExportPath() {
296
296
  );
297
297
  }
298
298
  async function handleBalance(options) {
299
- const { http } = _chunkA4LUPRGLjs.getAuthedHttpClient.call(void 0, );
299
+ const { http } = _chunkDL5YQFZ6js.getAuthedHttpClient.call(void 0, );
300
300
  const payload = await http.get(
301
301
  "/api/v2/billing/balance"
302
302
  );
@@ -364,7 +364,7 @@ async function handleBalance(options) {
364
364
  ...options.verbose ? detail : [],
365
365
  ...lines.slice(1)
366
366
  ];
367
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
367
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
368
368
  {
369
369
  ...payload,
370
370
  ...recovery ? { recovery } : {},
@@ -388,7 +388,7 @@ function quoteShellArgument(value) {
388
388
  return `'${value.replace(/'/g, `'\\''`)}'`;
389
389
  }
390
390
  async function handleUsage(options) {
391
- const { http } = _chunkA4LUPRGLjs.getAuthedHttpClient.call(void 0, );
391
+ const { http } = _chunkDL5YQFZ6js.getAuthedHttpClient.call(void 0, );
392
392
  const params = new URLSearchParams();
393
393
  if (options.requestId !== void 0) {
394
394
  const requestId = options.requestId.trim();
@@ -469,7 +469,7 @@ async function handleUsage(options) {
469
469
  "No continuation is available for this view. Use deepline billing ledger export all --json for the full ledger."
470
470
  ] : []
471
471
  ];
472
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
472
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
473
473
  {
474
474
  ...payload,
475
475
  recent: {
@@ -483,7 +483,7 @@ async function handleUsage(options) {
483
483
  );
484
484
  }
485
485
  async function handleLimit(options) {
486
- const { http } = _chunkA4LUPRGLjs.getAuthedHttpClient.call(void 0, );
486
+ const { http } = _chunkDL5YQFZ6js.getAuthedHttpClient.call(void 0, );
487
487
  const payload = await http.get(
488
488
  "/api/v2/billing/limit"
489
489
  );
@@ -491,7 +491,7 @@ async function handleLimit(options) {
491
491
  `Monthly usage cap: ${_nullishCoalesce(payload.monthly_credits_limit, () => ( "(unknown)"))}`,
492
492
  "Enforcement: checked before new calls; in-flight work can exceed the cap."
493
493
  ] : ["Monthly usage cap: off"];
494
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
494
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
495
495
  {
496
496
  ...payload,
497
497
  render: { sections: [{ title: "billing limit", lines }] }
@@ -500,12 +500,12 @@ async function handleLimit(options) {
500
500
  );
501
501
  }
502
502
  async function handleSetLimit(credits, options) {
503
- const { http } = _chunkA4LUPRGLjs.getAuthedHttpClient.call(void 0, );
503
+ const { http } = _chunkDL5YQFZ6js.getAuthedHttpClient.call(void 0, );
504
504
  const payload = await http.request("/api/v2/billing/limit", {
505
505
  method: "PUT",
506
506
  body: { monthly_credits_limit: Number.parseInt(credits, 10) }
507
507
  });
508
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
508
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
509
509
  {
510
510
  ...payload,
511
511
  render: {
@@ -521,11 +521,11 @@ async function handleSetLimit(credits, options) {
521
521
  );
522
522
  }
523
523
  async function handleLimitOff(options) {
524
- const { http } = _chunkA4LUPRGLjs.getAuthedHttpClient.call(void 0, );
524
+ const { http } = _chunkDL5YQFZ6js.getAuthedHttpClient.call(void 0, );
525
525
  const payload = await http.request("/api/v2/billing/limit", {
526
526
  method: "DELETE"
527
527
  });
528
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
528
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
529
529
  {
530
530
  ...payload,
531
531
  render: {
@@ -545,7 +545,7 @@ async function exportLedger(http, outputPath, options) {
545
545
  let initialized = false;
546
546
  let pageNumber = 0;
547
547
  console.error(`Exporting billing ledger to ${outputPath}`);
548
- for await (const entries of _chunkYLDIZ7A3js.iterateCursorPages.call(void 0, async (cursor) => {
548
+ for await (const entries of _chunkKM3JYG56js.iterateCursorPages.call(void 0, async (cursor) => {
549
549
  pageNumber += 1;
550
550
  console.error(
551
551
  `Fetching page ${pageNumber}; ${summary.row_count} rows written.`
@@ -584,7 +584,7 @@ async function exportLedger(http, outputPath, options) {
584
584
  return summary;
585
585
  }
586
586
  async function handleHistory(options) {
587
- const { http } = _chunkA4LUPRGLjs.getAuthedHttpClient.call(void 0, );
587
+ const { http } = _chunkDL5YQFZ6js.getAuthedHttpClient.call(void 0, );
588
588
  const windows = {
589
589
  "1d": 86400,
590
590
  "1w": 604800,
@@ -596,10 +596,10 @@ async function handleHistory(options) {
596
596
  process.cwd(),
597
597
  "deepline",
598
598
  "data",
599
- _chunkA4LUPRGLjs.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
599
+ _chunkDL5YQFZ6js.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
600
600
  );
601
601
  const summary = await exportLedger(http, outputPath, { sinceAt });
602
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
602
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
603
603
  {
604
604
  output_path: outputPath,
605
605
  row_count: summary.row_count,
@@ -636,14 +636,14 @@ async function handleLedgerExportAll(options) {
636
636
  );
637
637
  return;
638
638
  }
639
- const { http } = _chunkA4LUPRGLjs.getAuthedHttpClient.call(void 0, );
639
+ const { http } = _chunkDL5YQFZ6js.getAuthedHttpClient.call(void 0, );
640
640
  const outputPath = options.output ? _path.resolve.call(void 0, String(options.output)) : defaultLedgerExportPath();
641
641
  const summary = await exportLedger(http, outputPath, {
642
642
  sinceAt,
643
643
  runId: options.runId,
644
644
  operation: options.operation
645
645
  });
646
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
646
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
647
647
  {
648
648
  output_path: outputPath,
649
649
  row_count: summary.row_count,
@@ -682,7 +682,7 @@ function targetPlanLine(plan) {
682
682
  return `${plan.name} (${plan.sku}) | ${planPriceText(plan.recurring_price_usd, plan.interval)} | ${plan.included_credits} included credits/month | $${plan.purchased_credit_price_usd}/purchased credit | ${plan.acquisition_enabled ? "available" : "unavailable"}`;
683
683
  }
684
684
  async function handlePlans(options) {
685
- const client = new (0, _chunkYLDIZ7A3js.DeeplineClient)();
685
+ const client = new (0, _chunkKM3JYG56js.DeeplineClient)();
686
686
  const payload = await client.billing.targetPlans();
687
687
  const listedCurrentPlan = payload.plans.find(
688
688
  (plan) => plan.sku === payload.current_plan_sku
@@ -695,8 +695,8 @@ async function handlePlans(options) {
695
695
  ...payload.plans.length === 0 ? ["Plans: none available"] : ["Plans:", ...payload.plans.map(targetPlanLine)],
696
696
  "Change plan: deepline billing change-plan <plan_sku> --json"
697
697
  ];
698
- const legacyPayload = _chunkA4LUPRGLjs.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
699
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
698
+ const legacyPayload = _chunkDL5YQFZ6js.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
699
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
700
700
  {
701
701
  ..._nullishCoalesce(legacyPayload, () => ( payload)),
702
702
  ...legacyPayload ? { target_billing: payload } : {},
@@ -706,7 +706,7 @@ async function handlePlans(options) {
706
706
  );
707
707
  }
708
708
  async function handleSubscribe(planVersionId, options) {
709
- const { http } = _chunkA4LUPRGLjs.getAuthedHttpClient.call(void 0, );
709
+ const { http } = _chunkDL5YQFZ6js.getAuthedHttpClient.call(void 0, );
710
710
  const payload = await http.request(
711
711
  "/api/v2/billing/subscription/checkout",
712
712
  {
@@ -715,8 +715,8 @@ async function handleSubscribe(planVersionId, options) {
715
715
  }
716
716
  );
717
717
  const url = String(payload.checkout_url || "");
718
- if (!options.json && options.open !== false && url) _chunkA4LUPRGLjs.openInBrowser.call(void 0, url);
719
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
718
+ if (!options.json && options.open !== false && url) _chunkDL5YQFZ6js.openInBrowser.call(void 0, url);
719
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
720
720
  {
721
721
  ...payload,
722
722
  render: {
@@ -732,7 +732,7 @@ async function handleSubscribe(planVersionId, options) {
732
732
  );
733
733
  }
734
734
  async function handleSubscriptionStatus(options) {
735
- const client = new (0, _chunkYLDIZ7A3js.DeeplineClient)();
735
+ const client = new (0, _chunkKM3JYG56js.DeeplineClient)();
736
736
  const payload = await client.billing.subscription.status();
737
737
  const pools = _nullishCoalesce(payload.credit_pools, () => ( []));
738
738
  const lines = [
@@ -752,7 +752,7 @@ async function handleSubscriptionStatus(options) {
752
752
  ],
753
753
  `Assigned by: ${_nullishCoalesce(payload.assigned_by, () => ( "default"))}`
754
754
  ];
755
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
755
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
756
756
  {
757
757
  ...payload,
758
758
  render: { sections: [{ title: "billing subscription", lines }] }
@@ -761,7 +761,7 @@ async function handleSubscriptionStatus(options) {
761
761
  );
762
762
  }
763
763
  async function handleSubscriptionCancel(options) {
764
- const client = new (0, _chunkYLDIZ7A3js.DeeplineClient)();
764
+ const client = new (0, _chunkKM3JYG56js.DeeplineClient)();
765
765
  const action = options.undo ? "undo_cancel" : "cancel";
766
766
  if (options.dryRun) {
767
767
  const status = await client.billing.subscription.status();
@@ -778,7 +778,7 @@ async function handleSubscriptionCancel(options) {
778
778
  return;
779
779
  }
780
780
  const consequence = action === "cancel" ? `Would schedule cancellation at period end${status.current_period_end ? ` (${status.current_period_end})` : ""}. The subscription stays active until then and remaining credits are kept.` : "Would reverse the pending cancellation; the subscription would renew normally.";
781
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
781
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
782
782
  {
783
783
  ok: true,
784
784
  dry_run: true,
@@ -833,7 +833,7 @@ async function handleSubscriptionCancel(options) {
833
833
  "Remaining credits are yours to keep \u2014 cancellation never removes credits.",
834
834
  "Undo with: deepline billing subscription cancel --undo"
835
835
  ];
836
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
836
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
837
837
  {
838
838
  ok: true,
839
839
  ...result,
@@ -887,7 +887,7 @@ async function handleInvoices(options) {
887
887
  return;
888
888
  }
889
889
  }
890
- const client = new (0, _chunkYLDIZ7A3js.DeeplineClient)();
890
+ const client = new (0, _chunkKM3JYG56js.DeeplineClient)();
891
891
  let payload;
892
892
  try {
893
893
  payload = await client.billing.invoices.list(
@@ -916,7 +916,7 @@ async function handleInvoices(options) {
916
916
  url: entry.url
917
917
  }))
918
918
  } : { ...payload, count: entries.length };
919
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
919
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
920
920
  {
921
921
  ...envelope,
922
922
  render: { sections: [{ title: "billing invoices", lines }] }
@@ -925,7 +925,7 @@ async function handleInvoices(options) {
925
925
  );
926
926
  }
927
927
  async function handleCheckout(options) {
928
- const { http } = _chunkA4LUPRGLjs.getAuthedHttpClient.call(void 0, );
928
+ const { http } = _chunkDL5YQFZ6js.getAuthedHttpClient.call(void 0, );
929
929
  const payload = await http.post(
930
930
  "/api/v2/billing/checkout",
931
931
  {
@@ -935,8 +935,8 @@ async function handleCheckout(options) {
935
935
  }
936
936
  );
937
937
  const url = String(payload.url || payload.checkout_url || "");
938
- if (!options.json && !options.noOpen && url) _chunkA4LUPRGLjs.openInBrowser.call(void 0, url);
939
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
938
+ if (!options.json && !options.noOpen && url) _chunkDL5YQFZ6js.openInBrowser.call(void 0, url);
939
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
940
940
  {
941
941
  ...payload,
942
942
  render: {
@@ -981,7 +981,7 @@ async function handleTopUp(creditsRaw, options) {
981
981
  return;
982
982
  }
983
983
  if (options.dryRun) {
984
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
984
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
985
985
  {
986
986
  ok: true,
987
987
  dry_run: true,
@@ -1011,7 +1011,7 @@ async function handleTopUp(creditsRaw, options) {
1011
1011
  );
1012
1012
  return;
1013
1013
  }
1014
- const client = new (0, _chunkYLDIZ7A3js.DeeplineClient)();
1014
+ const client = new (0, _chunkKM3JYG56js.DeeplineClient)();
1015
1015
  let payload;
1016
1016
  try {
1017
1017
  payload = await client.billing.topUpWithReceipt({
@@ -1028,7 +1028,7 @@ async function handleTopUp(creditsRaw, options) {
1028
1028
  return;
1029
1029
  }
1030
1030
  if (payload.status === "pending") {
1031
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
1031
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
1032
1032
  {
1033
1033
  ok: true,
1034
1034
  ...payload,
@@ -1092,17 +1092,17 @@ async function handleTopUp(creditsRaw, options) {
1092
1092
  ]
1093
1093
  }
1094
1094
  };
1095
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
1095
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
1096
1096
  json: options.json
1097
1097
  });
1098
1098
  }
1099
1099
  async function handleTargetStatus(options) {
1100
- const client = new (0, _chunkYLDIZ7A3js.DeeplineClient)();
1100
+ const client = new (0, _chunkKM3JYG56js.DeeplineClient)();
1101
1101
  const payload = await client.billing.targetStatus();
1102
1102
  const balanceCommand = "deepline billing balance --json";
1103
1103
  const recentChargesCommand = "deepline billing usage --limit 5 --json";
1104
1104
  const exactChargeCommand = "deepline billing usage --request-id <job_id> --json";
1105
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
1105
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
1106
1106
  {
1107
1107
  ok: true,
1108
1108
  ...payload,
@@ -1132,7 +1132,7 @@ async function handleTargetStatus(options) {
1132
1132
  );
1133
1133
  }
1134
1134
  async function handleAutoRechargeStatus(options) {
1135
- const payload = await new (0, _chunkYLDIZ7A3js.DeeplineClient)().billing.autoRecharge.get();
1135
+ const payload = await new (0, _chunkKM3JYG56js.DeeplineClient)().billing.autoRecharge.get();
1136
1136
  const state = payload.available ? payload.enabled ? "on" : "off" : "unavailable";
1137
1137
  const lines = [
1138
1138
  `State: ${state}`,
@@ -1142,7 +1142,7 @@ async function handleAutoRechargeStatus(options) {
1142
1142
  `Automatic credit purchase cap: ${payload.purchase_limit_credits} credits per rolling 30 days`
1143
1143
  ] : []
1144
1144
  ];
1145
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
1145
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
1146
1146
  {
1147
1147
  ok: true,
1148
1148
  ...payload,
@@ -1191,7 +1191,7 @@ async function handleAutoRechargeSet(options) {
1191
1191
  }
1192
1192
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1193
1193
  if (options.dryRun) {
1194
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
1194
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
1195
1195
  {
1196
1196
  ok: true,
1197
1197
  dry_run: true,
@@ -1212,7 +1212,7 @@ async function handleAutoRechargeSet(options) {
1212
1212
  );
1213
1213
  return;
1214
1214
  }
1215
- const payload = await new (0, _chunkYLDIZ7A3js.DeeplineClient)().billing.autoRecharge.update({
1215
+ const payload = await new (0, _chunkKM3JYG56js.DeeplineClient)().billing.autoRecharge.update({
1216
1216
  enabled: true,
1217
1217
  thresholdCredits,
1218
1218
  refillToCredits,
@@ -1220,7 +1220,7 @@ async function handleAutoRechargeSet(options) {
1220
1220
  ...rollingLimitCredits !== void 0 ? { purchaseLimitCredits: rollingLimitCredits } : {},
1221
1221
  idempotencyKey
1222
1222
  });
1223
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
1223
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
1224
1224
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1225
1225
  { json: options.json }
1226
1226
  );
@@ -1228,7 +1228,7 @@ async function handleAutoRechargeSet(options) {
1228
1228
  async function handleAutoRechargeOff(options) {
1229
1229
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1230
1230
  if (options.dryRun) {
1231
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
1231
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
1232
1232
  {
1233
1233
  ok: true,
1234
1234
  dry_run: true,
@@ -1243,11 +1243,11 @@ async function handleAutoRechargeOff(options) {
1243
1243
  );
1244
1244
  return;
1245
1245
  }
1246
- const payload = await new (0, _chunkYLDIZ7A3js.DeeplineClient)().billing.autoRecharge.update({
1246
+ const payload = await new (0, _chunkKM3JYG56js.DeeplineClient)().billing.autoRecharge.update({
1247
1247
  enabled: false,
1248
1248
  idempotencyKey
1249
1249
  });
1250
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
1250
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
1251
1251
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1252
1252
  { json: options.json }
1253
1253
  );
@@ -1266,11 +1266,11 @@ async function handleBuyCredits(creditsRaw, options) {
1266
1266
  return;
1267
1267
  }
1268
1268
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1269
- const payload = await new (0, _chunkYLDIZ7A3js.DeeplineClient)().billing.purchaseCredits({
1269
+ const payload = await new (0, _chunkKM3JYG56js.DeeplineClient)().billing.purchaseCredits({
1270
1270
  credits,
1271
1271
  idempotencyKey
1272
1272
  });
1273
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
1273
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
1274
1274
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1275
1275
  { json: options.json }
1276
1276
  );
@@ -1306,7 +1306,7 @@ async function handleTopUpRecover(creditsRaw, options) {
1306
1306
  return;
1307
1307
  }
1308
1308
  if (options.dryRun) {
1309
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
1309
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
1310
1310
  {
1311
1311
  ok: true,
1312
1312
  dry_run: true,
@@ -1319,12 +1319,12 @@ async function handleTopUpRecover(creditsRaw, options) {
1319
1319
  );
1320
1320
  return;
1321
1321
  }
1322
- const payload = await new (0, _chunkYLDIZ7A3js.DeeplineClient)().billing.recoverCreditPurchase({
1322
+ const payload = await new (0, _chunkKM3JYG56js.DeeplineClient)().billing.recoverCreditPurchase({
1323
1323
  credits,
1324
1324
  orgId: options.orgId,
1325
1325
  idempotencyKey: options.idempotencyKey
1326
1326
  });
1327
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
1327
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
1328
1328
  { ok: true, idempotency_key: options.idempotencyKey, ...payload },
1329
1329
  { json: options.json }
1330
1330
  );
@@ -1344,37 +1344,37 @@ async function handleTargetPlan(planSku, options) {
1344
1344
  return;
1345
1345
  }
1346
1346
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1347
- const payload = await new (0, _chunkYLDIZ7A3js.DeeplineClient)().billing.transitionPlan({
1347
+ const payload = await new (0, _chunkKM3JYG56js.DeeplineClient)().billing.transitionPlan({
1348
1348
  action: "start_or_change",
1349
1349
  targetPlanSku: planSku,
1350
1350
  ...options.billingEmail ? { billingEmail: options.billingEmail } : {},
1351
1351
  idempotencyKey
1352
1352
  });
1353
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
1353
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
1354
1354
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1355
1355
  { json: options.json }
1356
1356
  );
1357
1357
  }
1358
1358
  async function handleTargetPlanCancellation(options) {
1359
1359
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1360
- const payload = await new (0, _chunkYLDIZ7A3js.DeeplineClient)().billing.transitionPlan({
1360
+ const payload = await new (0, _chunkKM3JYG56js.DeeplineClient)().billing.transitionPlan({
1361
1361
  action: options.undo ? "undo_cancel" : "cancel",
1362
1362
  idempotencyKey
1363
1363
  });
1364
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
1364
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
1365
1365
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1366
1366
  { json: options.json }
1367
1367
  );
1368
1368
  }
1369
1369
  async function handleTargetPortal(options) {
1370
- const payload = await new (0, _chunkYLDIZ7A3js.DeeplineClient)().billing.portalSession(
1370
+ const payload = await new (0, _chunkKM3JYG56js.DeeplineClient)().billing.portalSession(
1371
1371
  options.billingAddress ? { flow: "customer_update" } : void 0
1372
1372
  );
1373
- if (!options.json && !options.noOpen) _chunkA4LUPRGLjs.openInBrowser.call(void 0, payload.url);
1374
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1373
+ if (!options.json && !options.noOpen) _chunkDL5YQFZ6js.openInBrowser.call(void 0, payload.url);
1374
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1375
1375
  }
1376
1376
  async function handleRedeemCode(code, options) {
1377
- const { http } = _chunkA4LUPRGLjs.getAuthedHttpClient.call(void 0, );
1377
+ const { http } = _chunkDL5YQFZ6js.getAuthedHttpClient.call(void 0, );
1378
1378
  const payload = await http.post(
1379
1379
  "/api/v2/billing/checkout",
1380
1380
  {
@@ -1382,8 +1382,8 @@ async function handleRedeemCode(code, options) {
1382
1382
  }
1383
1383
  );
1384
1384
  const url = String(payload.url || payload.checkout_url || "");
1385
- if (!options.json && !options.noOpen && url) _chunkA4LUPRGLjs.openInBrowser.call(void 0, url);
1386
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0,
1385
+ if (!options.json && !options.noOpen && url) _chunkDL5YQFZ6js.openInBrowser.call(void 0, url);
1386
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
1387
1387
  {
1388
1388
  ...payload,
1389
1389
  render: {
@@ -1652,8 +1652,8 @@ Examples:
1652
1652
  new (0, _commander.Command)("trigger").description(
1653
1653
  "Evaluate capped automatic recharge and resume any pending purchase."
1654
1654
  ).option("--json", "Emit JSON output").action(async (options) => {
1655
- const result = await new (0, _chunkYLDIZ7A3js.DeeplineClient)().billing.autoRecharge.trigger();
1656
- _chunkA4LUPRGLjs.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
1655
+ const result = await new (0, _chunkKM3JYG56js.DeeplineClient)().billing.autoRecharge.trigger();
1656
+ _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
1657
1657
  })
1658
1658
  );
1659
1659
  billing.command("change-plan").description("Start or change the target billing plan.").argument("<plan_sku>", "payg-v1, builder-v1, growth-v1, or team-v1").option(
@@ -4,7 +4,7 @@
4
4
  var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
5
5
 
6
6
 
7
- var _chunk6ONNP4XLjs = require('./chunk-6ONNP4XL.js');
7
+ var _chunkKYHNFT7Tjs = require('./chunk-KYHNFT7T.js');
8
8
 
9
9
 
10
10
 
@@ -743,9 +743,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
743
743
  }
744
744
 
745
745
  // src/version.ts
746
- var SDK_VERSION = _chunk6ONNP4XLjs.SDK_RELEASE.version;
747
- var SDK_API_MAJOR = _chunk6ONNP4XLjs.SDK_RELEASE.contracts.api.currentMajor;
748
- var SDK_API_CONTRACT = _nullishCoalesce(_chunk6ONNP4XLjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
746
+ var SDK_VERSION = _chunkKYHNFT7Tjs.SDK_RELEASE.version;
747
+ var SDK_API_MAJOR = _chunkKYHNFT7Tjs.SDK_RELEASE.contracts.api.currentMajor;
748
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunkKYHNFT7Tjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
749
749
 
750
750
  // src/agent-runtime.ts
751
751