deepline 0.3.370 → 0.3.372

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 (120) hide show
  1. package/README.md +1 -1
  2. package/dist/bundling-sources/sdk/src/client.ts +8 -8
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -7
  4. package/dist/bundling-sources/sdk/src/runs/overview.ts +7 -7
  5. package/dist/bundling-sources/sdk/src/tool-output.ts +5 -1
  6. package/dist/bundling-sources/sdk/src/types.ts +2 -2
  7. package/dist/bundling-sources/shared_libs/monitors/fleets/errors.ts +5 -5
  8. package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +18 -18
  9. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +1 -1
  10. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +2 -2
  11. package/dist/bundling-sources/shared_libs/play-runtime/dataset-lifecycle-log.ts +1 -1
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +1 -1
  13. package/dist/bundling-sources/shared_libs/plays/launch/input-contract.ts +34 -9
  14. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +15 -3
  15. package/dist/cli/auth-4SXMV3CD.js +33 -0
  16. package/dist/cli/{auth-RIH4S7NC.mjs → auth-ODSACXLF.mjs} +4 -4
  17. package/dist/cli/{billing-Q65H5GJM.js → billing-4ERXY2DZ.js} +148 -148
  18. package/dist/cli/{billing-ERNGN6WK.mjs → billing-OPIOZLAN.mjs} +79 -79
  19. package/dist/cli/{chunk-MX53GIOB.js → chunk-2JRRXXTA.js} +2 -2
  20. package/dist/cli/{chunk-H4IQJRFC.mjs → chunk-2RC5JQ3C.mjs} +9 -9
  21. package/dist/cli/{chunk-IDBLJSLL.mjs → chunk-3CTB7V5F.mjs} +5 -5
  22. package/dist/cli/{chunk-Z6B4UPM4.mjs → chunk-3GK3SH3G.mjs} +2 -2
  23. package/dist/cli/{chunk-RLXMRC6P.mjs → chunk-46JCJ7FT.mjs} +49 -96
  24. package/dist/cli/{chunk-YQMUTC2H.mjs → chunk-4LIUZ4QR.mjs} +11 -11
  25. package/dist/cli/{chunk-BGXG3GEI.mjs → chunk-5HYD3GMS.mjs} +5 -5
  26. package/dist/cli/{chunk-DFJDVQMH.js → chunk-6MDAGRZP.js} +2 -2
  27. package/dist/cli/{chunk-NHB3UWTZ.js → chunk-AQFA7HMN.js} +17 -17
  28. package/dist/cli/{chunk-LNEBKWXM.mjs → chunk-BFLPCGOR.mjs} +1 -1
  29. package/dist/cli/{chunk-5DUTNG37.mjs → chunk-BVUGPOU3.mjs} +10 -10
  30. package/dist/cli/{chunk-A6DJC2RC.js → chunk-D6O3NJHX.js} +68 -68
  31. package/dist/cli/{chunk-666HPUIZ.js → chunk-DM5QUZJR.js} +1 -6
  32. package/dist/cli/{chunk-HHH4MPFY.mjs → chunk-DONL233W.mjs} +6 -6
  33. package/dist/cli/{chunk-NXDRDJ4K.js → chunk-E5UD3JDQ.js} +3 -1
  34. package/dist/cli/{chunk-XTKVXHGD.js → chunk-EFJL5FCU.js} +17 -17
  35. package/dist/cli/{chunk-LJWOPNJJ.mjs → chunk-FGHRRJ3D.mjs} +1 -1
  36. package/dist/cli/{chunk-WQZ22EQU.js → chunk-GZQKUFM5.js} +26 -26
  37. package/dist/cli/{chunk-Y2B56VN7.js → chunk-IUWPC5K6.js} +53 -53
  38. package/dist/cli/{chunk-NEY2M4EZ.mjs → chunk-JAERLCMH.mjs} +1 -6
  39. package/dist/cli/{chunk-MIMASXO4.mjs → chunk-JB6ERQUV.mjs} +3 -1
  40. package/dist/cli/{chunk-CTMA3C3N.js → chunk-JSK6GUY6.js} +49 -96
  41. package/dist/cli/{chunk-T64NZ2A7.mjs → chunk-KC2YOJTU.mjs} +46 -47
  42. package/dist/cli/{chunk-GGRVNAOH.mjs → chunk-MIMV5LTU.mjs} +3 -3
  43. package/dist/cli/{chunk-SFI7U6CA.js → chunk-ML2ZY7YD.js} +4 -4
  44. package/dist/cli/{chunk-A4OX52RV.js → chunk-N5TPMNTT.js} +10 -10
  45. package/dist/cli/{chunk-YEEESF2T.js → chunk-RJ7JJMQO.js} +419 -413
  46. package/dist/cli/{chunk-4Y5UDYQK.js → chunk-RUYZAREB.js} +17 -17
  47. package/dist/cli/{chunk-BKHNCIQD.mjs → chunk-U3W7E5WT.mjs} +193 -187
  48. package/dist/cli/{chunk-MKFHZDBO.js → chunk-VVFH745L.js} +8 -8
  49. package/dist/cli/{chunk-R7AAYFDQ.js → chunk-WJWO74MM.js} +102 -103
  50. package/dist/cli/{chunk-A5RFERJQ.mjs → chunk-XSPAI6MF.mjs} +2 -2
  51. package/dist/cli/{client-QXOERIFI.mjs → client-KF2J754U.mjs} +3 -3
  52. package/dist/cli/client-UUNLXOHF.js +20 -0
  53. package/dist/cli/command-docs.js +2 -2
  54. package/dist/cli/command-docs.mjs +1 -1
  55. package/dist/cli/{csv-ZKIUSDIV.js → csv-UJ3M7NFP.js} +12 -12
  56. package/dist/cli/{csv-V7UKQ7AC.mjs → csv-UL3MCD5D.mjs} +3 -3
  57. package/dist/cli/{db-GWKRVHKS.js → db-444XYOTV.js} +42 -43
  58. package/dist/cli/{db-QQ4BYMPY.mjs → db-SIOWA63T.mjs} +17 -18
  59. package/dist/cli/{describe-XMWXEFMS.mjs → describe-GI5GHAKO.mjs} +12 -12
  60. package/dist/cli/{describe-3AJI2BOS.js → describe-RRBESS3S.js} +28 -28
  61. package/dist/cli/{executions-QV7UE5YG.mjs → executions-4YDP6BXI.mjs} +4 -4
  62. package/dist/cli/{executions-2IMCCV34.js → executions-ERXZUOL5.js} +6 -6
  63. package/dist/cli/{feedback-7SSJ7VPF.js → feedback-3M7D7DZQ.js} +12 -12
  64. package/dist/cli/{feedback-K6WNXZDB.mjs → feedback-CPWQL5LU.mjs} +8 -8
  65. package/dist/cli/git-ITSCNUVB.js +23 -0
  66. package/dist/cli/{git-UOE2K2XQ.mjs → git-XN6C3TJZ.mjs} +4 -4
  67. package/dist/cli/index.js +98 -109
  68. package/dist/cli/index.mjs +46 -57
  69. package/dist/cli/{legacy-noops-GC43OSXL.js → legacy-noops-5XDGOFWH.js} +9 -9
  70. package/dist/cli/{legacy-noops-SOYPIA2X.mjs → legacy-noops-KXQ6TFFL.mjs} +6 -6
  71. package/dist/cli/{monitors-FLCGMXVH.mjs → monitors-33IU5JR6.mjs} +59 -59
  72. package/dist/cli/{monitors-AXANB6WK.js → monitors-KH22PDOC.js} +140 -140
  73. package/dist/cli/{org-Q7EDNZMN.mjs → org-MHYMWUEP.mjs} +28 -27
  74. package/dist/cli/{org-MXD4BTQI.js → org-X4NSLQG5.js} +88 -87
  75. package/dist/cli/play-4QRPOBWW.js +155 -0
  76. package/dist/cli/{play-TZROCF7E.mjs → play-LCZKHKW2.mjs} +10 -8
  77. package/dist/cli/{providers-LOS4MHAG.js → providers-J6LWCF5R.js} +10 -10
  78. package/dist/cli/{providers-JEY4FTWG.mjs → providers-L5FJTSEA.mjs} +7 -7
  79. package/dist/cli/{quickstart-WO5KVVER.mjs → quickstart-NE3BTWGL.mjs} +4 -4
  80. package/dist/cli/{quickstart-27UQGHEH.js → quickstart-OOPFA4MX.js} +6 -6
  81. package/dist/cli/{search-LZHWXC2C.mjs → search-DBXOEOIE.mjs} +5 -5
  82. package/dist/cli/search-UGQDBP76.js +26 -0
  83. package/dist/cli/{secrets-AVJGZABR.mjs → secrets-U2MLWZH2.mjs} +5 -5
  84. package/dist/cli/{secrets-PE7P4L7N.js → secrets-WPMU7UBD.js} +14 -14
  85. package/dist/cli/{sessions-ZDSZTYZV.mjs → sessions-WYNC4AUE.mjs} +4 -4
  86. package/dist/cli/{sessions-I6UDBN7M.js → sessions-YYZ3UJDS.js} +5 -5
  87. package/dist/cli/{settings-SPWH3FET.mjs → settings-FQZSHFC6.mjs} +10 -10
  88. package/dist/cli/{settings-3SLMJHJ2.js → settings-WQDFX3X6.js} +77 -77
  89. package/dist/cli/{setup-R4LUWQE4.js → setup-DKYVNDTM.js} +50 -50
  90. package/dist/cli/{setup-Q3CJ4T2Q.mjs → setup-JKYJT35S.mjs} +15 -15
  91. package/dist/cli/skills-VBQMXDAX.js +28 -0
  92. package/dist/cli/{skills-FGXH432G.mjs → skills-VHVCJJJY.mjs} +4 -4
  93. package/dist/cli/tools-ACEJZMJD.js +40 -0
  94. package/dist/cli/{tools-O7C6PFF2.mjs → tools-E23PU7KM.mjs} +8 -8
  95. package/dist/cli/{update-PPCQV3CD.mjs → update-4A4VU6CW.mjs} +6 -6
  96. package/dist/cli/update-V5KMYHVE.js +28 -0
  97. package/dist/cli/{workflow-Z2KYQ2JE.mjs → workflow-2ZR2ECTG.mjs} +7 -7
  98. package/dist/cli/{workflow-ALKU4ZFD.js → workflow-WB2USWAA.js} +17 -17
  99. package/dist/{client-CjHv4K6D.d.mts → client-Cw0e2Uec.d.mts} +8 -7
  100. package/dist/{client-rTuhNN-x.d.ts → client-CwdiawoG.d.ts} +8 -7
  101. package/dist/index.d.mts +2 -2
  102. package/dist/index.d.ts +2 -2
  103. package/dist/index.js +15 -15
  104. package/dist/index.mjs +4 -4
  105. package/dist/install-integrity.json +82 -82
  106. package/dist/plays/run-request.d.mts +1 -1
  107. package/dist/plays/run-request.d.ts +1 -1
  108. package/dist/release.d.mts +1 -5
  109. package/dist/release.d.ts +1 -5
  110. package/dist/release.js +2 -2
  111. package/dist/release.mjs +1 -1
  112. package/package.json +1 -1
  113. package/dist/cli/auth-DD3PVIRQ.js +0 -33
  114. package/dist/cli/client-DNAFHKWV.js +0 -20
  115. package/dist/cli/git-EBSF3254.js +0 -23
  116. package/dist/cli/play-YWQXVOBT.js +0 -153
  117. package/dist/cli/search-OQ3OEFUA.js +0 -26
  118. package/dist/cli/skills-IDXBBOUW.js +0 -28
  119. package/dist/cli/tools-WHLD4Y4O.js +0 -40
  120. package/dist/cli/update-K6HE3XKO.js +0 -28
@@ -2,7 +2,7 @@ import {
2
2
  DeeplineClient,
3
3
  iterateCursorPages,
4
4
  requireBillingIdempotencyKey
5
- } from "./chunk-H4IQJRFC.mjs";
5
+ } from "./chunk-2RC5JQ3C.mjs";
6
6
  import "./chunk-6IKARAYD.mjs";
7
7
  import "./chunk-CBVIJSHF.mjs";
8
8
  import {
@@ -11,16 +11,16 @@ import {
11
11
  openInBrowser,
12
12
  printCommandEnvelope,
13
13
  shouldEmitJson
14
- } from "./chunk-GGRVNAOH.mjs";
14
+ } from "./chunk-MIMV5LTU.mjs";
15
15
  import {
16
16
  AuthError,
17
17
  ConfigError
18
- } from "./chunk-LJWOPNJJ.mjs";
18
+ } from "./chunk-FGHRRJ3D.mjs";
19
19
  import "./chunk-DLIRSHV6.mjs";
20
20
  import {
21
21
  DeeplineError
22
22
  } from "./chunk-NXGCO4JB.mjs";
23
- import "./chunk-NEY2M4EZ.mjs";
23
+ import "./chunk-JAERLCMH.mjs";
24
24
  import "./chunk-WZYKRD7T.mjs";
25
25
  import "./chunk-KRD6H754.mjs";
26
26
 
@@ -30,7 +30,7 @@ import { randomUUID } from "crypto";
30
30
  import { appendFile, mkdir, writeFile } from "fs/promises";
31
31
  import { dirname, resolve } from "path";
32
32
  import { stringify } from "csv-stringify/sync";
33
- var SUBSCRIPTION_STATUS_NEXT_COMMAND = "deepline billing subscription status --json";
33
+ var SUBSCRIPTION_STATUS_NEXT_COMMAND = "deepline billing subscription status";
34
34
  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;
@@ -40,7 +40,7 @@ function billingFailureFromError(error, options) {
40
40
  exitCode: 3,
41
41
  code: "AUTH_ERROR",
42
42
  message: error.message,
43
- next: "deepline auth status --json"
43
+ next: "deepline auth status"
44
44
  };
45
45
  }
46
46
  if (!(error instanceof DeeplineError) || typeof error.statusCode !== "number") {
@@ -96,10 +96,10 @@ function targetBillingIdempotencyKey(raw) {
96
96
  return typeof raw === "string" ? raw : `cli_target_billing:${Date.now()}:${randomUUID()}`;
97
97
  }
98
98
  function checkoutCommandForCredits(credits) {
99
- return `deepline billing checkout --credits ${credits} --no-open --json`;
99
+ return `deepline billing checkout --credits ${credits} --no-open`;
100
100
  }
101
101
  function approvedTopUpCommandForCredits(credits) {
102
- return `deepline billing top-up ${credits} --json`;
102
+ return `deepline billing top-up ${credits}`;
103
103
  }
104
104
  function balanceRecoveryForCredits(credits = DEFAULT_BALANCE_RECOVERY_CREDITS) {
105
105
  return {
@@ -114,7 +114,7 @@ function shellQuote(value) {
114
114
  return `'${value.replace(/'/g, `'\\''`)}'`;
115
115
  }
116
116
  function topUpRetryCommand(credits, idempotencyKey) {
117
- return `deepline billing top-up ${credits} --idempotency-key ${shellQuote(idempotencyKey)} --json`;
117
+ return `deepline billing top-up ${credits} --idempotency-key ${shellQuote(idempotencyKey)}`;
118
118
  }
119
119
  function apiErrorCode(error) {
120
120
  const response = error.details?.response;
@@ -132,7 +132,7 @@ function billingTopUpFailureFromError(error, input) {
132
132
  exitCode: 3,
133
133
  code: "AUTH_ERROR",
134
134
  message: error.message,
135
- next: "deepline auth status --json"
135
+ next: "deepline auth status"
136
136
  };
137
137
  }
138
138
  if (!(error instanceof DeeplineError) || typeof error.statusCode !== "number") {
@@ -152,7 +152,7 @@ function billingTopUpFailureFromError(error, input) {
152
152
  exitCode: 2,
153
153
  code: "INVALID_CREDITS",
154
154
  message: error.message,
155
- next: "deepline billing plans --json"
155
+ next: "deepline billing plans"
156
156
  };
157
157
  }
158
158
  if (error.statusCode === 409) {
@@ -434,7 +434,7 @@ async function handleUsage(options) {
434
434
  exitCode: 4,
435
435
  code: "USAGE_REQUEST_NOT_FOUND",
436
436
  message: `No billing record for request_id ${options.requestId} in the active workspace.`,
437
- next: "deepline billing usage --json"
437
+ next: "deepline billing usage"
438
438
  },
439
439
  options
440
440
  );
@@ -447,7 +447,7 @@ async function handleUsage(options) {
447
447
  const recent = payload.recent ?? {};
448
448
  const last30Usage = usage.last_30_days_usage_credits ?? usage.month_spent_credits;
449
449
  const temporaryHolds = Number(usage.temporary_hold_credits ?? 0);
450
- const nextPage = typeof recent.next_cursor === "string" && recent.next_cursor.length > 0 ? `deepline billing usage --cursor ${quoteShellArgument(recent.next_cursor)}${options.limit ? ` --limit ${options.limit}` : ""}${options.runId ? ` --run-id ${quoteShellArgument(options.runId)}` : ""} --json` : null;
450
+ const nextPage = typeof recent.next_cursor === "string" && recent.next_cursor.length > 0 ? `deepline billing usage --cursor ${quoteShellArgument(recent.next_cursor)}${options.limit ? ` --limit ${options.limit}` : ""}${options.runId ? ` --run-id ${quoteShellArgument(options.runId)}` : ""}` : null;
451
451
  const recentLines = recentUsageLines(
452
452
  Array.isArray(recent.entries) ? recent.entries : []
453
453
  );
@@ -466,7 +466,7 @@ async function handleUsage(options) {
466
466
  ...recent.incomplete === true ? ["Recent activity is incomplete; the matching count may be higher."] : [],
467
467
  ...nextPage ? [`Next page: ${nextPage}`] : [],
468
468
  ...!nextPage && (recent.has_more === true || recent.incomplete === true) ? [
469
- "No continuation is available for this view. Use deepline billing ledger export all --json for the full ledger."
469
+ "No continuation is available for this view. Use deepline billing ledger export all for the full ledger."
470
470
  ] : []
471
471
  ];
472
472
  printCommandEnvelope(
@@ -693,7 +693,7 @@ async function handlePlans(options) {
693
693
  `Pending plan: ${payload.pending_plan_sku ?? "none"}`,
694
694
  `Plan changes: ${payload.acquisition_enabled ? "enabled" : "disabled"}`,
695
695
  ...payload.plans.length === 0 ? ["Plans: none available"] : ["Plans:", ...payload.plans.map(targetPlanLine)],
696
- "Change plan: deepline billing change-plan <plan_sku> --json"
696
+ "Change plan: deepline billing change-plan <plan_sku>"
697
697
  ];
698
698
  const legacyPayload = shouldEmitJson(options.json) ? await client.billing.plans() : null;
699
699
  printCommandEnvelope(
@@ -959,7 +959,7 @@ async function handleTopUp(creditsRaw, options) {
959
959
  exitCode: 2,
960
960
  code: "INVALID_CREDITS",
961
961
  message: "<credits> must be a positive integer Deepline credit amount.",
962
- next: "deepline billing plans --json"
962
+ next: "deepline billing plans"
963
963
  },
964
964
  options
965
965
  );
@@ -1099,9 +1099,9 @@ async function handleTopUp(creditsRaw, options) {
1099
1099
  async function handleTargetStatus(options) {
1100
1100
  const client = new DeeplineClient();
1101
1101
  const payload = await client.billing.targetStatus();
1102
- const balanceCommand = "deepline billing balance --json";
1103
- const recentChargesCommand = "deepline billing usage --limit 5 --json";
1104
- const exactChargeCommand = "deepline billing usage --request-id <job_id> --json";
1102
+ const balanceCommand = "deepline billing balance";
1103
+ const recentChargesCommand = "deepline billing usage --limit 5";
1104
+ const exactChargeCommand = "deepline billing usage --request-id <job_id>";
1105
1105
  printCommandEnvelope(
1106
1106
  {
1107
1107
  ok: true,
@@ -1431,29 +1431,29 @@ Concepts:
1431
1431
 
1432
1432
  Examples:
1433
1433
  # See where you stand
1434
- deepline billing balance --json
1435
- deepline billing usage --limit 20 --json
1436
- deepline billing plans --json
1437
- deepline billing subscription status --json
1434
+ deepline billing balance
1435
+ deepline billing usage --limit 20
1436
+ deepline billing plans
1437
+ deepline billing subscription status
1438
1438
 
1439
1439
  # Price a tool before execution; look up its exact charge afterward
1440
1440
  deepline describe <tool-id>
1441
- deepline billing usage --request-id <job_id> --json
1441
+ deepline billing usage --request-id <job_id>
1442
1442
 
1443
1443
  # Buy credits or a plan
1444
- deepline billing top-up 1000 --json
1445
- deepline billing checkout --credits 1000 --no-open --json
1446
- deepline billing subscribe runtime-395-2026-07-v1 --no-open --json
1447
- deepline billing redeem-code --code ABC123 --no-open --json
1444
+ deepline billing top-up 1000
1445
+ deepline billing checkout --credits 1000 --no-open
1446
+ deepline billing subscribe runtime-395-2026-07-v1 --no-open
1447
+ deepline billing redeem-code --code ABC123 --no-open
1448
1448
 
1449
1449
  # Manage
1450
- deepline billing subscription cancel --dry-run --json
1451
- deepline billing set-limit 500 --json
1450
+ deepline billing subscription cancel --dry-run
1451
+ deepline billing set-limit 500
1452
1452
 
1453
1453
  # Records
1454
- deepline billing invoices --limit 12 --json
1455
- deepline billing history --time 1m --json
1456
- deepline billing ledger export all --json
1454
+ deepline billing invoices --limit 12
1455
+ deepline billing history --time 1m
1456
+ deepline billing ledger export all
1457
1457
  `
1458
1458
  );
1459
1459
  billing.command("balance").description("Show current billing balance.").addHelpText(
@@ -1462,16 +1462,16 @@ Examples:
1462
1462
  Notes:
1463
1463
  Read-only. Shows the current Deepline credit balance for the active workspace.
1464
1464
  The balance includes concurrent workspace activity, so a before/after difference
1465
- cannot isolate one command. Use billing usage --request-id <job_id> --json.
1465
+ cannot isolate one command. Use billing usage --request-id <job_id>.
1466
1466
 
1467
- Prints one line, "Balance: N credits", piped or not, plus what to do when
1467
+ Prints one line, "Balance: N credits", plus what to do when
1468
1468
  the workspace has no credits. --verbose adds reservations and usage awaiting
1469
1469
  settlement. --json returns the full record.
1470
1470
 
1471
1471
  Examples:
1472
1472
  deepline billing balance
1473
1473
  deepline billing balance --verbose
1474
- deepline billing balance --json
1474
+ deepline billing balance
1475
1475
  `
1476
1476
  ).option("--json", "Emit the full balance record as JSON").option("--verbose", "Add reservations and usage awaiting settlement").action(handleBalance);
1477
1477
  billing.command("usage").description("Show current usage plus recent calls.").addHelpText(
@@ -1486,9 +1486,9 @@ Notes:
1486
1486
 
1487
1487
  Examples:
1488
1488
  deepline billing usage
1489
- deepline billing usage --limit 50 --cursor <next_cursor> --json
1490
- deepline billing usage --run-id play/example/run/20260630t120000-000-abcdef --json
1491
- deepline billing usage --request-id <job_id> --json
1489
+ deepline billing usage --limit 50 --cursor <next_cursor>
1490
+ deepline billing usage --run-id play/example/run/20260630t120000-000-abcdef
1491
+ deepline billing usage --request-id <job_id>
1492
1492
  `
1493
1493
  ).option("--limit <n>", "Recent-call page size").option("--offset <n>", "Recent-call offset").option(
1494
1494
  "--cursor <cursor>",
@@ -1496,7 +1496,7 @@ Examples:
1496
1496
  ).option("--run-id <run_id>", "Show recent usage for one play run").option(
1497
1497
  "--request-id <job_id>",
1498
1498
  "Show the exact Deepline charge for one execution job_id"
1499
- ).option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleUsage);
1499
+ ).option("--json", "Emit JSON output").action(handleUsage);
1500
1500
  billing.command("limit").description("Show configured monthly usage cap.").addHelpText(
1501
1501
  "after",
1502
1502
  `
@@ -1506,9 +1506,9 @@ Notes:
1506
1506
 
1507
1507
  Examples:
1508
1508
  deepline billing limit
1509
- deepline billing limit --json
1509
+ deepline billing limit
1510
1510
  `
1511
- ).option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleLimit);
1511
+ ).option("--json", "Emit JSON output").action(handleLimit);
1512
1512
  billing.command("set-limit").description("Set monthly usage cap.").addHelpText(
1513
1513
  "after",
1514
1514
  `
@@ -1519,9 +1519,9 @@ Notes:
1519
1519
 
1520
1520
  Examples:
1521
1521
  deepline billing set-limit 500
1522
- deepline billing set-limit 500 --json
1522
+ deepline billing set-limit 500
1523
1523
  `
1524
- ).argument("<credits>", "Monthly credits limit").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleSetLimit);
1524
+ ).argument("<credits>", "Monthly credits limit").option("--json", "Emit JSON output").action(handleSetLimit);
1525
1525
  billing.command("off").description("Disable monthly usage cap.").addHelpText(
1526
1526
  "after",
1527
1527
  `
@@ -1530,9 +1530,9 @@ Notes:
1530
1530
 
1531
1531
  Examples:
1532
1532
  deepline billing off
1533
- deepline billing off --json
1533
+ deepline billing off
1534
1534
  `
1535
- ).option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleLimitOff);
1535
+ ).option("--json", "Emit JSON output").action(handleLimitOff);
1536
1536
  billing.command("ledger").description("Inspect and export billing ledger rows.").addHelpText(
1537
1537
  "after",
1538
1538
  `
@@ -1545,7 +1545,7 @@ Examples:
1545
1545
  deepline billing ledger export all --output ./ledger.csv
1546
1546
  deepline billing ledger export all --run-id play/demo/run/abc123
1547
1547
  deepline billing ledger export all --operation limadata_find_audience_identifiers --since 2026-09-01T00:00:00Z
1548
- deepline billing ledger export all --json
1548
+ deepline billing ledger export all
1549
1549
  `
1550
1550
  ).addCommand(
1551
1551
  new Command("export").description("Export billing ledger rows.").addHelpText(
@@ -1564,14 +1564,14 @@ Notes:
1564
1564
 
1565
1565
  Examples:
1566
1566
  deepline billing ledger export all
1567
- deepline billing ledger export all --json
1567
+ deepline billing ledger export all
1568
1568
  `
1569
1569
  ).option("--output <path>", "Write CSV to an explicit path").option("--run-id <run_id>", "Export ledger rows for one play run.").option("--operation <id>", "Export rows for one tool operation.").option(
1570
1570
  "--since <timestamp>",
1571
1571
  "Only export rows since ISO-8601 time or Unix milliseconds."
1572
1572
  ).option(
1573
1573
  "--json",
1574
- "Emit JSON output. Also automatic when stdout is piped"
1574
+ "Emit JSON output"
1575
1575
  ).action(handleLedgerExportAll)
1576
1576
  )
1577
1577
  );
@@ -1582,13 +1582,13 @@ Notes:
1582
1582
  Read-only server query that writes a local CSV file. With --json, stdout is a
1583
1583
  summary containing the output path, row count, and completeness metadata.
1584
1584
  Exports the complete window using bounded pages. For an exact start timestamp:
1585
- deepline billing ledger export all --since <ISO-8601> --json
1585
+ deepline billing ledger export all --since <ISO-8601>
1586
1586
 
1587
1587
  Examples:
1588
1588
  deepline billing history --time 1m
1589
- deepline billing history --time 1y --json
1589
+ deepline billing history --time 1y
1590
1590
  `
1591
- ).requiredOption("--time <window>", "Rolling time window: 1d, 1w, 1m, or 1y").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleHistory);
1591
+ ).requiredOption("--time <window>", "Rolling time window: 1d, 1w, 1m, or 1y").option("--json", "Emit JSON output").action(handleHistory);
1592
1592
  billing.command("checkout").description(
1593
1593
  "Create a checkout session and optionally open it in your browser."
1594
1594
  ).addHelpText(
@@ -1600,10 +1600,10 @@ Notes:
1600
1600
 
1601
1601
  Examples:
1602
1602
  deepline billing checkout --tier pro
1603
- deepline billing checkout --credits 1000 --no-open --json
1603
+ deepline billing checkout --credits 1000 --no-open
1604
1604
  deepline billing checkout --credits 1000 --discount-code LAUNCH --no-open
1605
1605
  `
1606
- ).option("--tier <tierId>", "Named pricing tier").option("--credits <credits>", "Custom credit amount").option("--discount-code <code>", "Apply a discount code").option("--no-open", "Print the checkout URL without opening a browser").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleCheckout);
1606
+ ).option("--tier <tierId>", "Named pricing tier").option("--credits <credits>", "Custom credit amount").option("--discount-code <code>", "Apply a discount code").option("--no-open", "Print the checkout URL without opening a browser").option("--json", "Emit JSON output").action(handleCheckout);
1607
1607
  billing.command("top-up").description("Charge the saved payment method and add Deepline credits.").addHelpText(
1608
1608
  "after",
1609
1609
  `
@@ -1618,14 +1618,14 @@ Notes:
1618
1618
 
1619
1619
  Examples:
1620
1620
  deepline billing top-up 1000
1621
- deepline billing top-up 1000 --json
1622
- deepline billing top-up 1000 --dry-run --json
1623
- deepline billing top-up 1000 --idempotency-key refill-2026-07-08 --json
1621
+ deepline billing top-up 1000
1622
+ deepline billing top-up 1000 --dry-run
1623
+ deepline billing top-up 1000 --idempotency-key refill-2026-07-08
1624
1624
  `
1625
1625
  ).argument("<credits>", "Positive integer Deepline credit amount").option(
1626
1626
  "--idempotency-key <key>",
1627
1627
  "Stable retry key for the same intended top-up (1\u2013200 characters, no padding, valid HTTP header text)"
1628
- ).option("--dry-run", "Print the planned top-up without charging").option("--compact", "Keep only high-signal fields in JSON output").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleTopUp);
1628
+ ).option("--dry-run", "Print the planned top-up without charging").option("--compact", "Keep only high-signal fields in JSON output").option("--json", "Emit JSON output").action(handleTopUp);
1629
1629
  billing.command("buy").description("Buy credits through the target billing contract.").argument("<credits>", "Positive integer Deepline credit amount").option("--idempotency-key <key>", "Stable retry key").option("--json", "Emit JSON output").action(handleBuyCredits);
1630
1630
  billing.command("top-up-recover").description(
1631
1631
  "Inspect or retire an original top-up intent without starting a payment."
@@ -1635,9 +1635,9 @@ Examples:
1635
1635
  ).requiredOption(
1636
1636
  "--idempotency-key <original-key>",
1637
1637
  "Original purchase key; never generates a new key"
1638
- ).option("--dry-run", "Print the recovery request without changing state").option("--json", "Emit JSON output. Also automatic when stdout is piped").addHelpText(
1638
+ ).option("--dry-run", "Print the recovery request without changing state").option("--json", "Emit JSON output").addHelpText(
1639
1639
  "after",
1640
- "\nAn absent intent is durably retired; an existing operation is returned unchanged.\nThis command never starts a payment. Use the original amount, workspace, and key.\nExample:\n deepline billing top-up-recover 1000 --org-id org_original --idempotency-key original-purchase-key --json\n"
1640
+ "\nAn absent intent is durably retired; an existing operation is returned unchanged.\nThis command never starts a payment. Use the original amount, workspace, and key.\nExample:\n deepline billing top-up-recover 1000 --org-id org_original --idempotency-key original-purchase-key\n"
1641
1641
  ).action(handleTopUpRecover);
1642
1642
  billing.command("status").description(
1643
1643
  "Show plan, payment, and recharge state; use usage for charges."
@@ -1647,9 +1647,9 @@ Examples:
1647
1647
  "after",
1648
1648
  `
1649
1649
  Examples:
1650
- deepline billing auto-recharge status --json
1651
- deepline billing auto-recharge set --threshold-credits 1000 --refill-to-credits 3500 --dry-run --json
1652
- deepline billing auto-recharge off --dry-run --json
1650
+ deepline billing auto-recharge status
1651
+ deepline billing auto-recharge set --threshold-credits 1000 --refill-to-credits 3500 --dry-run
1652
+ deepline billing auto-recharge off --dry-run
1653
1653
  `
1654
1654
  ).addCommand(
1655
1655
  new Command("status").description("Show the canonical automatic recharge configuration.").option("--json", "Emit JSON output").action(handleAutoRechargeStatus)
@@ -1701,9 +1701,9 @@ Notes:
1701
1701
 
1702
1702
  Examples:
1703
1703
  deepline billing plans
1704
- deepline billing plans --json
1704
+ deepline billing plans
1705
1705
  `
1706
- ).option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handlePlans);
1706
+ ).option("--json", "Emit JSON output").action(handlePlans);
1707
1707
  billing.command("subscribe").description(
1708
1708
  "Start a subscription checkout for a plan and optionally open it in your browser."
1709
1709
  ).addHelpText(
@@ -1717,18 +1717,18 @@ Notes:
1717
1717
 
1718
1718
  Examples:
1719
1719
  deepline billing subscribe runtime-395-2026-07-v1
1720
- deepline billing subscribe runtime-395-2026-07-v1 --no-open --json
1720
+ deepline billing subscribe runtime-395-2026-07-v1 --no-open
1721
1721
  `
1722
- ).argument("<plan_version_id>", "Legacy billing plan version id").option("--no-open", "Print the checkout URL without opening a browser").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleSubscribe);
1722
+ ).argument("<plan_version_id>", "Legacy billing plan version id").option("--no-open", "Print the checkout URL without opening a browser").option("--json", "Emit JSON output").action(handleSubscribe);
1723
1723
  billing.command("subscription").description("Inspect and manage subscription state for the workspace.").addHelpText(
1724
1724
  "after",
1725
1725
  `
1726
1726
  Examples:
1727
1727
  deepline billing subscription status
1728
- deepline billing subscription status --json
1728
+ deepline billing subscription status
1729
1729
  deepline billing subscription cancel --dry-run
1730
- deepline billing subscription cancel --json
1731
- deepline billing subscription cancel --undo --json
1730
+ deepline billing subscription cancel
1731
+ deepline billing subscription cancel --undo
1732
1732
  `
1733
1733
  ).addCommand(
1734
1734
  new Command("status").description("Show active plan, subscription state, and credit pools.").addHelpText(
@@ -1740,11 +1740,11 @@ Notes:
1740
1740
 
1741
1741
  Examples:
1742
1742
  deepline billing subscription status
1743
- deepline billing subscription status --json
1743
+ deepline billing subscription status
1744
1744
  `
1745
1745
  ).option(
1746
1746
  "--json",
1747
- "Emit JSON output. Also automatic when stdout is piped"
1747
+ "Emit JSON output"
1748
1748
  ).action(handleSubscriptionStatus)
1749
1749
  ).addCommand(
1750
1750
  new Command("cancel").description("Cancel the subscription at period end. Credits are kept.").addHelpText(
@@ -1768,14 +1768,14 @@ Examples:
1768
1768
  deepline billing subscription cancel --dry-run
1769
1769
  deepline billing subscription cancel
1770
1770
  deepline billing subscription cancel --undo
1771
- deepline billing subscription cancel --json
1771
+ deepline billing subscription cancel
1772
1772
  `
1773
1773
  ).option("--undo", "Reverse a pending cancellation before period end").option(
1774
1774
  "--dry-run",
1775
1775
  "Print the planned cancellation without calling the cancel endpoint"
1776
1776
  ).option(
1777
1777
  "--json",
1778
- "Emit JSON output. Also automatic when stdout is piped"
1778
+ "Emit JSON output"
1779
1779
  ).action(handleSubscriptionCancel)
1780
1780
  );
1781
1781
  billing.command("invoices").description("List subscription invoices and credit purchase receipts.").addHelpText(
@@ -1789,10 +1789,10 @@ Notes:
1789
1789
 
1790
1790
  Examples:
1791
1791
  deepline billing invoices
1792
- deepline billing invoices --limit 12 --json
1793
- deepline billing invoices --compact --json
1792
+ deepline billing invoices --limit 12
1793
+ deepline billing invoices --compact
1794
1794
  `
1795
- ).option("--limit <n>", "Maximum entries to return (1-100, default 24)").option("--compact", "Keep only id, date, amount, status, and url").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(handleInvoices);
1795
+ ).option("--limit <n>", "Maximum entries to return (1-100, default 24)").option("--compact", "Keep only id, date, amount, status, and url").option("--json", "Emit JSON output").action(handleInvoices);
1796
1796
  billing.command("redeem-code").description("Redeem a billing code.").addHelpText(
1797
1797
  "after",
1798
1798
  `
@@ -1802,9 +1802,9 @@ Notes:
1802
1802
 
1803
1803
  Examples:
1804
1804
  deepline billing redeem-code --code ABC123
1805
- deepline billing redeem-code --code ABC123 --no-open --json
1805
+ deepline billing redeem-code --code ABC123 --no-open
1806
1806
  `
1807
- ).requiredOption("--code <code>", "Code to redeem").option("--no-open", "Do not open a browser").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(({ code, ...options }) => handleRedeemCode(code, options));
1807
+ ).requiredOption("--code <code>", "Code to redeem").option("--no-open", "Do not open a browser").option("--json", "Emit JSON output").action(({ code, ...options }) => handleRedeemCode(code, options));
1808
1808
  }
1809
1809
  export {
1810
1810
  registerBillingCommands,
@@ -314,11 +314,11 @@ function examples(described, options) {
314
314
  }
315
315
  var EXPLANATIONS = {
316
316
  tool: {
317
- cli: "--input takes a JSON object or @file.json. The result prints when the call finishes; add --json for the full result payload.",
317
+ cli: "--input takes a JSON object or @file.json. The result prints when the call finishes.",
318
318
  play: "id names the step and must stay stable. Read a declared output with its getter; every other provider field is in result.toolResponse.rawV2."
319
319
  },
320
320
  play: {
321
- cli: "--input takes a JSON object or @file.json. The run waits and prints its output; add --json for the full result, or read it later with deepline runs get <run-id> --json.",
321
+ cli: "--input takes a JSON object or @file.json. The run waits and prints its output; read it later with deepline runs get <run-id>.",
322
322
  play: "The first argument is a stable key for the child run. The call waits and returns the output object."
323
323
  },
324
324
  monitor: {
@@ -21,7 +21,7 @@ import {
21
21
  RETAINED_PIPELINE_RECEIVERS_HEADER,
22
22
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
23
23
  resolveConfig
24
- } from "./chunk-LJWOPNJJ.mjs";
24
+ } from "./chunk-FGHRRJ3D.mjs";
25
25
  import {
26
26
  DeeplineError,
27
27
  TOOL_EXECUTION_ERROR_SCHEMA_HEADER,
@@ -3409,7 +3409,7 @@ var DeeplineClient = class _DeeplineClient {
3409
3409
  const cloneEditStarter = this.playCloneEditStarter(play);
3410
3410
  return {
3411
3411
  name: play.name,
3412
- // playKey and triggerStatus were projected away here, so `plays describe`
3412
+ // playKey and triggerStatus were projected away here, so `describe`
3413
3413
  // was strictly less informative than `plays list` for the same play — no
3414
3414
  // stable key, and no way to see that a cron was armed.
3415
3415
  ...play.playKey ? { playKey: play.playKey } : {},
@@ -4313,7 +4313,7 @@ var DeeplineClient = class _DeeplineClient {
4313
4313
  * This is the SDK equivalent of:
4314
4314
  *
4315
4315
  * ```bash
4316
- * deepline runs get <run-id> --json
4316
+ * deepline runs get <run-id>
4317
4317
  * ```
4318
4318
  */
4319
4319
  async getRunStatus(runId, options) {
@@ -4350,7 +4350,7 @@ var DeeplineClient = class _DeeplineClient {
4350
4350
  });
4351
4351
  } catch (error) {
4352
4352
  failedLogsLoaded = false;
4353
- const retryCommand = `deepline runs logs ${runId} --failed --json`;
4353
+ const retryCommand = `deepline runs logs ${runId} --failed`;
4354
4354
  const reason = error instanceof Error && error.message.trim() ? ` (${error.message.trim().slice(0, 500)})` : "";
4355
4355
  failedLogs = {
4356
4356
  runId,
@@ -4417,7 +4417,7 @@ var DeeplineClient = class _DeeplineClient {
4417
4417
  * This is the SDK equivalent of:
4418
4418
  *
4419
4419
  * ```bash
4420
- * deepline runs list --play <play-name> --status failed --json
4420
+ * deepline runs list --play <play-name> --status failed
4421
4421
  * ```
4422
4422
  */
4423
4423
  async listRuns(options) {
@@ -4555,7 +4555,7 @@ var DeeplineClient = class _DeeplineClient {
4555
4555
  * This is the SDK equivalent of:
4556
4556
  *
4557
4557
  * ```bash
4558
- * deepline runs logs <run-id> --limit 200 --json
4558
+ * deepline runs logs <run-id> --limit 200
4559
4559
  * ```
4560
4560
  */
4561
4561
  async getRunLogs(runId, options) {
@@ -4847,7 +4847,7 @@ var DeeplineClient = class _DeeplineClient {
4847
4847
  * This is the SDK equivalent of:
4848
4848
  *
4849
4849
  * ```bash
4850
- * deepline runs stop <run-id> --reason "stale lock" --json
4850
+ * deepline runs stop <run-id> --reason "stale lock"
4851
4851
  * ```
4852
4852
  */
4853
4853
  async stopRun(runId, options) {
@@ -4863,8 +4863,8 @@ var DeeplineClient = class _DeeplineClient {
4863
4863
  * This is the SDK equivalent of:
4864
4864
  *
4865
4865
  * ```bash
4866
- * deepline runs stop-all --dry-run --json
4867
- * deepline runs stop-all --reason "stale lock" --json
4866
+ * deepline runs stop-all --dry-run
4867
+ * deepline runs stop-all --reason "stale lock"
4868
4868
  * ```
4869
4869
  *
4870
4870
  * Use this when a failed parent run left child or waiting runs active and you
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-GGRVNAOH.mjs";
5
+ } from "./chunk-MIMV5LTU.mjs";
6
6
  import {
7
7
  ACTIVE_ORG_ID_ENV,
8
8
  ACTIVE_ORG_NAME_ENV,
@@ -25,7 +25,7 @@ import {
25
25
  saveHostEnvValues,
26
26
  saveProjectDeeplineEnvValues,
27
27
  storedHostApiKey
28
- } from "./chunk-LJWOPNJJ.mjs";
28
+ } from "./chunk-FGHRRJ3D.mjs";
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
  import {
@@ -825,7 +825,7 @@ Common commands:
825
825
  deepline auth register
826
826
  deepline auth wait --timeout 300
827
827
  deepline auth status
828
- deepline auth status --json
828
+ deepline auth status
829
829
 
830
830
  Notes:
831
831
  Auth status shows the target host and active workspace without printing secrets.
@@ -909,12 +909,12 @@ Notes:
909
909
  Examples:
910
910
  deepline auth status
911
911
  deepline auth status --auth-scope folder
912
- deepline auth status --json
912
+ deepline auth status
913
913
  `
914
914
  ).option(
915
915
  "--reveal",
916
916
  "Persist the revealed API key back to the host auth file"
917
- ).option("--auth-scope <scope>", "Read only folder or global auth").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(async (options) => {
917
+ ).option("--auth-scope <scope>", "Read only folder or global auth").option("--json", "Emit JSON output").action(async (options) => {
918
918
  process.exitCode = await handleStatus([
919
919
  ...options.reveal ? ["--reveal"] : [],
920
920
  ...options.authScope ? ["--auth-scope", String(options.authScope)] : [],
@@ -314,11 +314,11 @@ function examples(described, options) {
314
314
  }
315
315
  var EXPLANATIONS = {
316
316
  tool: {
317
- cli: "--input takes a JSON object or @file.json. The result prints when the call finishes; add --json for the full result payload.",
317
+ cli: "--input takes a JSON object or @file.json. The result prints when the call finishes.",
318
318
  play: "id names the step and must stay stable. Read a declared output with its getter; every other provider field is in result.toolResponse.rawV2."
319
319
  },
320
320
  play: {
321
- cli: "--input takes a JSON object or @file.json. The run waits and prints its output; add --json for the full result, or read it later with deepline runs get <run-id> --json.",
321
+ cli: "--input takes a JSON object or @file.json. The run waits and prints its output; read it later with deepline runs get <run-id>.",
322
322
  play: "The first argument is a stable key for the child run. The call waits and returns the output object."
323
323
  },
324
324
  monitor: {