deepline 0.3.396 → 0.3.398

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 (118) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +2 -2
  3. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +50 -26
  4. package/dist/cli/auth-3GA2ASQF.js +40 -0
  5. package/dist/cli/{auth-3LTD62VL.mjs → auth-7ZBPAAZU.mjs} +5 -4
  6. package/dist/cli/{billing-DP7ZAJBO.mjs → billing-QTWEEL27.mjs} +5 -4
  7. package/dist/cli/{billing-PA5OXEM5.js → billing-WHP3YMNQ.js} +76 -75
  8. package/dist/cli/{chunk-I4T4XAA2.mjs → chunk-2QC2T7E3.mjs} +4 -4
  9. package/dist/cli/{chunk-3T4MCB5R.mjs → chunk-52HHMLRM.mjs} +89 -969
  10. package/dist/cli/{chunk-ME6XRFLY.js → chunk-6CBU7W56.js} +15 -15
  11. package/dist/cli/{chunk-LOGGNW4H.mjs → chunk-6DVXLWPB.mjs} +2 -2
  12. package/dist/cli/{chunk-AUYXWELC.mjs → chunk-6HXULNTW.mjs} +2 -2
  13. package/dist/cli/chunk-7DRPTGCK.js +930 -0
  14. package/dist/cli/{chunk-TLQ3FZOC.mjs → chunk-ATDUVJCW.mjs} +3 -3
  15. package/dist/cli/{chunk-23GAA3YO.mjs → chunk-AWQNG55D.mjs} +1 -1
  16. package/dist/cli/{chunk-NSOTASOP.js → chunk-BQR6UN3C.js} +1 -83
  17. package/dist/cli/{chunk-XKZXO7D3.mjs → chunk-CH6EFAJ3.mjs} +1 -1
  18. package/dist/cli/{chunk-KAEZNPUM.js → chunk-CTZJLQ7A.js} +13 -115
  19. package/dist/cli/{chunk-AVHLATII.js → chunk-FDAMQFQ7.js} +50 -50
  20. package/dist/cli/chunk-FIVKWNMT.mjs +210 -0
  21. package/dist/cli/{chunk-7Z66NHUC.js → chunk-G6BP55EP.js} +26 -26
  22. package/dist/cli/{chunk-GNN4MY5X.js → chunk-HFDBZXMV.js} +1 -1
  23. package/dist/cli/{describe-6O2ENKTP.mjs → chunk-HFYQBC2D.mjs} +22 -160
  24. package/dist/cli/chunk-HGFFYVXN.js +210 -0
  25. package/dist/cli/{chunk-5WNJF2T3.mjs → chunk-IHG7UAHD.mjs} +1 -83
  26. package/dist/cli/{chunk-QHGPA362.mjs → chunk-IJU5YQSF.mjs} +6 -108
  27. package/dist/cli/{chunk-772W2SAU.js → chunk-J4WYPANC.js} +8 -8
  28. package/dist/cli/{chunk-V7UP2F4U.js → chunk-JU3PF7WM.js} +21 -121
  29. package/dist/cli/{chunk-MR6XCBQJ.mjs → chunk-LCRQKI7D.mjs} +4 -2
  30. package/dist/cli/chunk-LJ5747UC.mjs +107 -0
  31. package/dist/cli/{chunk-LWERJUKN.js → chunk-NA4T3B62.js} +7 -215
  32. package/dist/cli/{chunk-WQJJNIMQ.js → chunk-NUBIAJI2.js} +11 -9
  33. package/dist/cli/chunk-OSDXE27V.mjs +88 -0
  34. package/dist/cli/{chunk-RMTASUAK.js → chunk-OU2RZYVS.js} +65 -65
  35. package/dist/cli/{chunk-JCN4DHF7.mjs → chunk-OVUFHUMG.mjs} +2 -2
  36. package/dist/cli/chunk-Q2E4E4FJ.js +112 -0
  37. package/dist/cli/{chunk-2VOLOWYZ.js → chunk-Q3FNSWJG.js} +293 -1173
  38. package/dist/cli/{chunk-NHB5YUCS.mjs → chunk-QP2TRM7M.mjs} +1 -1
  39. package/dist/cli/{describe-EFWNECHI.js → chunk-RFG3MRAC.js} +37 -175
  40. package/dist/cli/{chunk-RTO5QZWT.js → chunk-S22ZQZMU.js} +6 -6
  41. package/dist/cli/{chunk-H5KLUGY7.mjs → chunk-TXZVVBQZ.mjs} +1 -209
  42. package/dist/cli/{chunk-DC6LTULT.js → chunk-U46S43LV.js} +2 -2
  43. package/dist/cli/chunk-YHPYUZZX.mjs +112 -0
  44. package/dist/cli/chunk-YHZUZO3U.mjs +930 -0
  45. package/dist/cli/chunk-ZAAKSJAS.js +88 -0
  46. package/dist/cli/{chunk-VE3U3SQC.mjs → chunk-ZJ7HLJRF.mjs} +7 -107
  47. package/dist/cli/chunk-ZM2YPJQJ.js +107 -0
  48. package/dist/cli/{csv-TF576S77.js → csv-NM25BBX7.js} +13 -12
  49. package/dist/cli/{csv-RLRR74RQ.mjs → csv-TSBHKVNU.mjs} +4 -3
  50. package/dist/cli/{db-FDBJUTFO.js → db-GBDNQJF3.js} +30 -29
  51. package/dist/cli/{db-XORGNBIC.mjs → db-JQN6SYLK.mjs} +5 -4
  52. package/dist/cli/describe-ETTGW5LT.mjs +164 -0
  53. package/dist/cli/describe-NVLINP5A.js +164 -0
  54. package/dist/cli/describe-core.d.mts +100 -0
  55. package/dist/cli/describe-core.d.ts +100 -0
  56. package/dist/cli/describe-core.js +18 -0
  57. package/dist/cli/describe-core.mjs +18 -0
  58. package/dist/cli/{executions-YPP7WR77.mjs → executions-6S4KIVEY.mjs} +5 -4
  59. package/dist/cli/{executions-SFYAXPF4.js → executions-IH5JUPIT.js} +7 -6
  60. package/dist/cli/{feedback-5UZFYMGB.js → feedback-ER375ZCB.js} +8 -7
  61. package/dist/cli/{feedback-RBGA5ARU.mjs → feedback-PGOZLNXU.mjs} +4 -3
  62. package/dist/cli/{git-IRSAJEK2.mjs → git-7SBFCM52.mjs} +5 -4
  63. package/dist/cli/git-W6DBPLZO.js +24 -0
  64. package/dist/cli/index.js +93 -91
  65. package/dist/cli/index.mjs +35 -33
  66. package/dist/cli/{legacy-noops-CVAOQY2F.js → legacy-noops-IOEF2SB7.js} +8 -7
  67. package/dist/cli/{legacy-noops-NA7N6ZOU.mjs → legacy-noops-Q4UQIOQN.mjs} +5 -4
  68. package/dist/cli/{monitors-4OMRXCXP.js → monitors-NZ2J4YGD.js} +86 -85
  69. package/dist/cli/{monitors-ILZ2XHYG.mjs → monitors-RZYBFY3Z.mjs} +5 -4
  70. package/dist/cli/{org-YGNJDD2X.js → org-ERUOT4B2.js} +65 -64
  71. package/dist/cli/{org-QDDXAE3J.mjs → org-JLSEM6GG.mjs} +5 -4
  72. package/dist/cli/{play-L535H26U.js → play-7TUO7YNG.js} +251 -247
  73. package/dist/cli/{play-VT6OHB2D.mjs → play-Z73VC7YR.mjs} +19 -15
  74. package/dist/cli/{providers-KG4W5MPK.mjs → providers-7HIII2PW.mjs} +5 -4
  75. package/dist/cli/{providers-GPZ6PQAL.js → providers-ABKBK2C7.js} +8 -7
  76. package/dist/cli/{quickstart-UI27S5LO.js → quickstart-JBG5RTFZ.js} +6 -5
  77. package/dist/cli/{quickstart-2JDGTXIG.mjs → quickstart-QQAOCPCZ.mjs} +4 -3
  78. package/dist/cli/{search-PW3RAUX7.mjs → search-MT2Q64WC.mjs} +7 -5
  79. package/dist/cli/search-QMQBC6SV.js +30 -0
  80. package/dist/cli/{secrets-WFAXOUZE.js → secrets-MEW6LLU5.js} +14 -13
  81. package/dist/cli/{secrets-HNOMK5A2.mjs → secrets-ZFJPIT6B.mjs} +5 -4
  82. package/dist/cli/{sessions-XLX3E5UO.mjs → sessions-F2KVVZ2Z.mjs} +5 -4
  83. package/dist/cli/sessions-TBPU4S6M.js +16 -0
  84. package/dist/cli/{settings-GADAG2UK.js → settings-6VDZ6G5V.js} +75 -74
  85. package/dist/cli/{settings-YNZ4YKCH.mjs → settings-LUDDM7HO.mjs} +8 -7
  86. package/dist/cli/{setup-R5YO7GT6.js → setup-IP2KTFYO.js} +42 -41
  87. package/dist/cli/{setup-PSEHIUXO.mjs → setup-MCEY473G.mjs} +7 -6
  88. package/dist/cli/skills-EVIIEX6N.js +29 -0
  89. package/dist/cli/{skills-LTQBP6CZ.mjs → skills-KMJ3CY4O.mjs} +5 -4
  90. package/dist/cli/tools-KNLHQ3L6.js +39 -0
  91. package/dist/cli/{tools-UAXDWU63.mjs → tools-WY3PLUA7.mjs} +13 -8
  92. package/dist/cli/update-LVADY5YE.js +29 -0
  93. package/dist/cli/{update-SMNIBIMS.mjs → update-XBV52OFM.mjs} +7 -6
  94. package/dist/cli/{workflow-IKGMBGF6.mjs → workflow-5N5HMYDY.mjs} +6 -5
  95. package/dist/cli/{workflow-AOQVZHMD.js → workflow-CO7XWS4D.js} +16 -15
  96. package/dist/{client-DiGl8ska.d.mts → client-D0j-_aaa.d.mts} +1 -1
  97. package/dist/{client-Bgis7F6-.d.ts → client-DflfVyj6.d.ts} +1 -1
  98. package/dist/index.d.mts +2 -2
  99. package/dist/index.d.ts +2 -2
  100. package/dist/index.js +14 -10
  101. package/dist/index.mjs +19 -15
  102. package/dist/install-integrity.json +92 -76
  103. package/dist/plays/play-description.d.mts +1 -1
  104. package/dist/plays/play-description.d.ts +1 -1
  105. package/dist/plays/run-request.d.mts +1 -1
  106. package/dist/plays/run-request.d.ts +1 -1
  107. package/dist/release.d.mts +1 -1
  108. package/dist/release.d.ts +1 -1
  109. package/dist/release.js +2 -2
  110. package/dist/release.mjs +1 -1
  111. package/package.json +6 -1
  112. package/dist/cli/auth-562JPKOM.js +0 -39
  113. package/dist/cli/git-5LDY5ZID.js +0 -23
  114. package/dist/cli/search-MGWROZ33.js +0 -28
  115. package/dist/cli/sessions-366KROUA.js +0 -15
  116. package/dist/cli/skills-JF2LPEGM.js +0 -28
  117. package/dist/cli/tools-CP2PEFRN.js +0 -34
  118. package/dist/cli/update-HZHZOU6C.js +0 -28
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-GAMFK2ZP.mjs";
4
4
  import {
5
5
  printCommandEnvelope
6
- } from "./chunk-XKZXO7D3.mjs";
6
+ } from "./chunk-CH6EFAJ3.mjs";
7
7
  import {
8
8
  DEFAULT_SKILL_AGENTS,
9
9
  KNOWN_SKILL_AGENTS,
@@ -22,13 +22,13 @@ import {
22
22
  sdkCliStateDirPath,
23
23
  skillsAgentPathSegment,
24
24
  writeSdkSkillsLocalVersion
25
- } from "./chunk-VE3U3SQC.mjs";
25
+ } from "./chunk-ZJ7HLJRF.mjs";
26
26
  import {
27
27
  DeeplineError
28
28
  } from "./chunk-NXGCO4JB.mjs";
29
29
  import {
30
30
  SDK_RELEASE
31
- } from "./chunk-NHB5YUCS.mjs";
31
+ } from "./chunk-QP2TRM7M.mjs";
32
32
 
33
33
  // src/cli/commands/skills.ts
34
34
  import { spawn as spawn2 } from "child_process";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-TLQ3FZOC.mjs";
3
+ } from "./chunk-ATDUVJCW.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -682,88 +682,6 @@ function describedPlay(play) {
682
682
  };
683
683
  }
684
684
 
685
- // src/cli/describe-options.ts
686
- function addDescribeOptions(command, options = {}) {
687
- command.option(
688
- "--prebuilt",
689
- "Show the Deepline tool or play, not a play your workspace created under the same name"
690
- ).option("--tool", "Same as --prebuilt").option(
691
- "--verbose",
692
- "Show secondary fields, and fill in every input and read every output in the examples"
693
- ).option(
694
- "--cli-example",
695
- "Show only the CLI example, and explain how it takes inputs and returns outputs"
696
- ).option(
697
- "--play-example",
698
- "Show only the in-play example, and explain how it takes inputs and returns outputs"
699
- ).option("--no-example", "Hide the run examples").option(
700
- "--full-schema",
701
- `Print every field: a long schema unfolded (over ${SCHEMA_LINE_LIMIT} lines), list rows, and a tool's raw response`
702
- ).option(
703
- "--fields <names>",
704
- "Show only these fields, comma-separated, plus every required input"
705
- ).option(
706
- "--feature <name[=value]>",
707
- "Describe one feature of a tool, such as a model: --feature model=openai/gpt-5.6-luna. A tool lists its features."
708
- ).option(
709
- "-o, --out <path>",
710
- "Save the output to this file instead of printing it"
711
- );
712
- if (options.schemaOnly !== false) {
713
- command.option(
714
- "--schema-only",
715
- "Print only the schema, with every field, and nothing else"
716
- );
717
- }
718
- if (options.json !== false) {
719
- command.option(
720
- "--json",
721
- "Print JSON instead of text; with --schema-only, only the input and output JSON Schemas"
722
- );
723
- }
724
- return command;
725
- }
726
-
727
- // src/cli/execution-observation.ts
728
- var _fs = require('fs');
729
- function writeObservation(observation) {
730
- const path = process.env.DEEPLINE_EXECUTION_OBSERVATION_PATH;
731
- const invocationId = process.env.DEEPLINE_EXECUTION_OBSERVATION_ID;
732
- if (!path || !invocationId) return;
733
- const pending = `${path}.pending`;
734
- _fs.writeFileSync.call(void 0,
735
- pending,
736
- JSON.stringify({
737
- schema_version: 1,
738
- invocation_id: invocationId,
739
- ...observation
740
- }),
741
- { mode: 384 }
742
- );
743
- _fs.renameSync.call(void 0, pending, path);
744
- }
745
- function recordApiResponse(observation) {
746
- writeObservation({
747
- kind: "api_response",
748
- received_at_ms: observation.receivedAtMs,
749
- state: observation.state,
750
- http_status: observation.httpStatus
751
- });
752
- }
753
- function recordPlayTermination(run) {
754
- if (typeof run.id !== "string" || !["completed", "failed", "cancelled", "canceled"].includes(
755
- String(run.status)
756
- ) || typeof run.finishedAt !== "number" || !Number.isSafeInteger(run.finishedAt) || run.finishedAt <= 0)
757
- return;
758
- writeObservation({
759
- kind: "play_terminal",
760
- run: { id: run.id, status: run.status, finishedAt: run.finishedAt }
761
- });
762
- }
763
-
764
-
765
-
766
-
767
685
 
768
686
 
769
687
 
@@ -777,4 +695,4 @@ function recordPlayTermination(run) {
777
695
 
778
696
 
779
697
 
780
- exports.byokLines = byokLines; exports.SCHEMA_LINE_LIMIT = SCHEMA_LINE_LIMIT; exports.schemaField = schemaField; exports.schemaFields = schemaFields; exports.rateLimitSummary = rateLimitSummary; exports.schemaLines = schemaLines; exports.examples = examples; exports.describedLines = describedLines; exports.topLevelField = topLevelField; exports.describedJson = describedJson; exports.buildPlayDashboardUrl = buildPlayDashboardUrl; exports.describedPlay = describedPlay; exports.addDescribeOptions = addDescribeOptions; exports.recordApiResponse = recordApiResponse; exports.recordPlayTermination = recordPlayTermination;
698
+ exports.byokLines = byokLines; exports.SCHEMA_LINE_LIMIT = SCHEMA_LINE_LIMIT; exports.schemaField = schemaField; exports.schemaFields = schemaFields; exports.rateLimitSummary = rateLimitSummary; exports.schemaLines = schemaLines; exports.examples = examples; exports.describedLines = describedLines; exports.topLevelField = topLevelField; exports.describedJson = describedJson; exports.buildPlayDashboardUrl = buildPlayDashboardUrl; exports.describedPlay = describedPlay;
@@ -3,7 +3,7 @@ import {
3
3
  detectAgentRuntime,
4
4
  resolveCliCommandContext,
5
5
  resolveConfig
6
- } from "./chunk-VE3U3SQC.mjs";
6
+ } from "./chunk-ZJ7HLJRF.mjs";
7
7
  import {
8
8
  DeeplineError,
9
9
  serializeToolExecutionFailure
@@ -1,14 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkWQJJNIMQjs = require('./chunk-WQJJNIMQ.js');
3
+ var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
4
4
 
5
5
 
6
+ var _chunkNUBIAJI2js = require('./chunk-NUBIAJI2.js');
6
7
 
7
- var _chunkRTO5QZWTjs = require('./chunk-RTO5QZWT.js');
8
8
 
9
9
 
10
+ var _chunkS22ZQZMUjs = require('./chunk-S22ZQZMU.js');
10
11
 
11
- var _chunkV7UP2F4Ujs = require('./chunk-V7UP2F4U.js');
12
+
13
+
14
+ var _chunkJU3PF7WMjs = require('./chunk-JU3PF7WM.js');
12
15
 
13
16
  // src/cli/commands/search.ts
14
17
  var _commander = require('commander');
@@ -18,7 +21,7 @@ var _fs = require('fs');
18
21
  var _path = require('path');
19
22
  var SEARCH_REF_TTL_MS = 15 * 6e4;
20
23
  function lastSearchPath() {
21
- return _path.join.call(void 0, _chunkV7UP2F4Ujs.sdkCliStateDirPath.call(void 0, _chunkV7UP2F4Ujs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
24
+ return _path.join.call(void 0, _chunkJU3PF7WMjs.sdkCliStateDirPath.call(void 0, _chunkJU3PF7WMjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
22
25
  }
23
26
  function rememberSearchRef(searchRef) {
24
27
  try {
@@ -63,109 +66,6 @@ function formatTextTable(rows, columns) {
63
66
  }).split("\n").map((line) => line.trimEnd()).join("\n").trimEnd();
64
67
  }
65
68
 
66
- // src/cli/tool-description.ts
67
- function observedMaxText(pricing) {
68
- const max = recordValue(recordValue(pricing).observedMax);
69
- return typeof max.creditsPerCall === "number" && max.creditsPerCall > 0 ? `max observed ${max.creditsPerCall} credits/call (last ${String(max.windowDays)} days)` : "";
70
- }
71
- var Capability = class _Capability {
72
- #catalogEntry;
73
- constructor(catalogEntry) {
74
- this.#catalogEntry = catalogEntry;
75
- }
76
- static fromCatalogEntry(catalogEntry) {
77
- return new _Capability(catalogEntry);
78
- }
79
- describe() {
80
- return CapabilityDescription.fromCatalogEntry(this.#catalogEntry);
81
- }
82
- };
83
- var CapabilityDescription = class _CapabilityDescription {
84
- #catalogEntry;
85
- constructor(catalogEntry) {
86
- this.#catalogEntry = catalogEntry;
87
- }
88
- static fromCatalogEntry(catalogEntry) {
89
- return new _CapabilityDescription(catalogEntry);
90
- }
91
- /**
92
- * The customer price already resolved by the catalog. This intentionally
93
- * omits provider-price fields, even when a catalog Adapter carried them.
94
- */
95
- customerCost() {
96
- const legacyCost = recordValue(this.#catalogEntry.cost);
97
- const pricing = recordValue(this.#catalogEntry.pricing);
98
- const unit = stringValue(pricing.unit);
99
- const legacyPricingModel = stringValue(
100
- _nullishCoalesce(legacyCost.pricingModel, () => ( legacyCost.pricing_model))
101
- );
102
- const pricingModel = unit === "call" ? "fixed" : unit === "result" || unit === "page" ? `per_${unit}` : unit === "usage" ? "provider_usage" : legacyPricingModel;
103
- const canonicalCredits = pricingNumber(
104
- pricing,
105
- "creditsPerUnit",
106
- "credits_per_unit",
107
- _nullishCoalesce(this.#catalogEntry.deeplineCreditsPerPricingUnit, () => ( this.#catalogEntry.deepline_credits_per_pricing_unit))
108
- );
109
- const canonicalUsd = pricingNumber(
110
- pricing,
111
- "usdPerUnit",
112
- "usd_per_unit",
113
- _nullishCoalesce(this.#catalogEntry.deeplineUsdPerPricingUnit, () => ( this.#catalogEntry.deepline_usd_per_pricing_unit))
114
- );
115
- const billingSource = stringValue(
116
- _nullishCoalesce(this.#catalogEntry.billingSource, () => ( this.#catalogEntry.billing_source))
117
- );
118
- const billingSourceLabel = stringValue(
119
- _nullishCoalesce(this.#catalogEntry.billingSourceLabel, () => ( this.#catalogEntry.billing_source_label))
120
- );
121
- const isFree = billingSource === "free";
122
- return {
123
- pricingModel: pricingModel || null,
124
- unit: unit || null,
125
- displayText: isFree ? "Free" : stringValue(_nullishCoalesce(pricing.displayText, () => ( pricing.display_text))),
126
- summary: isFree ? null : stringValue(pricing.summary),
127
- billingMode: stringValue(
128
- _nullishCoalesce(legacyCost.billingMode, () => ( legacyCost.billing_mode))
129
- ),
130
- billingSource,
131
- billingSourceLabel,
132
- deeplineCreditsPerPricingUnit: isFree ? 0 : canonicalCredits,
133
- deeplineUsdPerPricingUnit: isFree ? 0 : canonicalUsd,
134
- ...pricing.estimatedRange && !isFree && billingSource !== "own_provider_credentials" ? {
135
- estimatedRange: pricing.estimatedRange,
136
- details: Array.isArray(pricing.details) ? pricing.details.filter(
137
- (value) => typeof value === "string"
138
- ) : []
139
- } : {},
140
- ...pricing.observedReference && !isFree && billingSource !== "own_provider_credentials" ? {
141
- observedReference: pricing.observedReference,
142
- details: Array.isArray(pricing.details) ? pricing.details.filter(
143
- (value) => typeof value === "string"
144
- ) : []
145
- } : {},
146
- ...pricing.observedMax && !isFree && billingSource !== "own_provider_credentials" ? {
147
- observedMax: pricing.observedMax
148
- } : {}
149
- };
150
- }
151
- };
152
- function recordValue(value) {
153
- return value && typeof value === "object" && !Array.isArray(value) ? value : {};
154
- }
155
- function stringValue(value) {
156
- return typeof value === "string" && value.trim() ? value : null;
157
- }
158
- function numberValue(value) {
159
- return typeof value === "number" && Number.isFinite(value) ? value : null;
160
- }
161
- function pricingNumber(pricing, canonicalKey, aliasKey, legacyValue) {
162
- for (const key of [canonicalKey, aliasKey]) {
163
- if (Object.prototype.hasOwnProperty.call(pricing, key))
164
- return numberValue(pricing[key]);
165
- }
166
- return numberValue(legacyValue);
167
- }
168
-
169
69
  // src/cli/search-output.ts
170
70
  function clipSummary(value) {
171
71
  const characters = Array.from(value.replace(/\s+/gu, " ").trim());
@@ -245,7 +145,7 @@ function failureRateDisplay(rate) {
245
145
  }
246
146
  function searchRow(item) {
247
147
  const { cost, notes } = pricingDisplay(item);
248
- const observedMax = item.billingSource === "own_provider_credentials" ? "" : observedMaxText(item.pricing);
148
+ const observedMax = item.billingSource === "own_provider_credentials" ? "" : _chunkZM2YPJQJjs.observedMaxText.call(void 0, item.pricing);
249
149
  if (observedMax)
250
150
  notes.push(`${observedMax[0].toUpperCase()}${observedMax.slice(1)}.`);
251
151
  if (item.credentialStatus === "requires_connection") {
@@ -267,7 +167,7 @@ function searchRow(item) {
267
167
  }
268
168
  function renderSearchResults(result) {
269
169
  if (result.results.length === 0)
270
- return _chunkRTO5QZWTjs.renderCommandEnvelopeText.call(void 0, result);
170
+ return _chunkS22ZQZMUjs.renderCommandEnvelopeText.call(void 0, result);
271
171
  const rows = result.results.map(searchRow);
272
172
  const kinds = new Set(rows.map((row) => row.kind));
273
173
  const onlyTools = kinds.size === 1 && kinds.has("tool");
@@ -298,7 +198,7 @@ function renderSearchResults(result) {
298
198
  actions: _optionalChain([render, 'optionalAccess', _11 => _11.actions])
299
199
  };
300
200
  const followUps = _optionalChain([remaining, 'access', _12 => _12.sections, 'optionalAccess', _13 => _13.length]) || _optionalChain([remaining, 'access', _14 => _14.actions, 'optionalAccess', _15 => _15.length]) ? `
301
- ${_chunkRTO5QZWTjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
201
+ ${_chunkS22ZQZMUjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
302
202
  const notes = rows.flatMap(
303
203
  (row) => row.notes.map((note) => ` ${row.id}: ${note}`)
304
204
  );
@@ -375,7 +275,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
375
275
  console.error(USAGE);
376
276
  return 1;
377
277
  }
378
- const { search_ref: searchRef, ...result } = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().search({
278
+ const { search_ref: searchRef, ...result } = await new (0, _chunkNUBIAJI2js.DeeplineClient)().search({
379
279
  query,
380
280
  types,
381
281
  exclude,
@@ -389,7 +289,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
389
289
  });
390
290
  if (searchRef) rememberSearchRef(searchRef);
391
291
  pointAtDescribe(result);
392
- _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, result, {
292
+ _chunkS22ZQZMUjs.printCommandEnvelope.call(void 0, result, {
393
293
  json: options.json === true,
394
294
  text: renderSearchResults(result)
395
295
  });
@@ -489,6 +389,4 @@ Examples:
489
389
 
490
390
 
491
391
 
492
-
493
-
494
- exports.recentSearchRef = recentSearchRef; exports.observedMaxText = observedMaxText; exports.Capability = Capability; exports.SEARCH_TYPES = SEARCH_TYPES; exports.parseTypes = parseTypes; exports.appendCsv = appendCsv; exports.pointAtDescribe = pointAtDescribe; exports.registerDeprecatedSearchCommand = registerDeprecatedSearchCommand; exports.registerSearchCommand = registerSearchCommand;
392
+ exports.recentSearchRef = recentSearchRef; exports.SEARCH_TYPES = SEARCH_TYPES; exports.parseTypes = parseTypes; exports.appendCsv = appendCsv; exports.pointAtDescribe = pointAtDescribe; exports.registerDeprecatedSearchCommand = registerDeprecatedSearchCommand; exports.registerSearchCommand = registerSearchCommand;
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkRTO5QZWTjs = require('./chunk-RTO5QZWT.js');
5
+ var _chunkS22ZQZMUjs = require('./chunk-S22ZQZMU.js');
6
6
 
7
7
 
8
8
 
@@ -25,7 +25,7 @@ var _chunkRTO5QZWTjs = require('./chunk-RTO5QZWT.js');
25
25
 
26
26
 
27
27
 
28
- var _chunkV7UP2F4Ujs = require('./chunk-V7UP2F4U.js');
28
+ var _chunkJU3PF7WMjs = require('./chunk-JU3PF7WM.js');
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
 
@@ -52,7 +52,7 @@ function statusBannerLine(value) {
52
52
  return `Service notice: ${banner.message}`;
53
53
  }
54
54
  function envFilePath(baseUrl) {
55
- return _chunkV7UP2F4Ujs.hostEnvFilePath.call(void 0, baseUrl);
55
+ return _chunkJU3PF7WMjs.hostEnvFilePath.call(void 0, baseUrl);
56
56
  }
57
57
  function normalizeAuthScope(value) {
58
58
  if (!value || value === "global") return "global";
@@ -65,7 +65,7 @@ function parseAuthScope(args) {
65
65
  }
66
66
  function pendingClaimPath(baseUrl, scope) {
67
67
  if (scope === "folder") {
68
- const target = _chunkV7UP2F4Ujs.resolveProjectPinTarget.call(void 0, );
68
+ const target = _chunkJU3PF7WMjs.resolveProjectPinTarget.call(void 0, );
69
69
  if (!target.ok) {
70
70
  throw new Error(
71
71
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -75,10 +75,10 @@ function pendingClaimPath(baseUrl, scope) {
75
75
  }
76
76
  return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
77
77
  }
78
- return `${_chunkV7UP2F4Ujs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
78
+ return `${_chunkJU3PF7WMjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
79
79
  }
80
80
  function legacyPendingClaimTokenPath(baseUrl) {
81
- return `${_chunkV7UP2F4Ujs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
81
+ return `${_chunkJU3PF7WMjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
82
82
  }
83
83
  function savePendingClaim(baseUrl, claim) {
84
84
  const filePath = pendingClaimPath(baseUrl, claim.scope);
@@ -180,21 +180,21 @@ function parseRegisterWaitMode(args) {
180
180
  function shouldWaitForRegisterClaim(mode) {
181
181
  if (mode === "yes") return true;
182
182
  if (mode === "no") return false;
183
- return _chunkV7UP2F4Ujs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
183
+ return _chunkJU3PF7WMjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
184
184
  }
185
185
  function saveEnvValues(values, baseUrl, scope) {
186
186
  const filtered = {
187
- ...values[_chunkV7UP2F4Ujs.HOST_URL_ENV] ? { [_chunkV7UP2F4Ujs.HOST_URL_ENV]: values[_chunkV7UP2F4Ujs.HOST_URL_ENV] } : {},
188
- ...values[_chunkV7UP2F4Ujs.API_KEY_ENV] ? { [_chunkV7UP2F4Ujs.API_KEY_ENV]: values[_chunkV7UP2F4Ujs.API_KEY_ENV] } : {},
189
- ...values[_chunkV7UP2F4Ujs.ACTIVE_ORG_ID_ENV] ? { [_chunkV7UP2F4Ujs.ACTIVE_ORG_ID_ENV]: values[_chunkV7UP2F4Ujs.ACTIVE_ORG_ID_ENV] } : {},
190
- ...Object.prototype.hasOwnProperty.call(values, _chunkV7UP2F4Ujs.ACTIVE_ORG_NAME_ENV) ? { [_chunkV7UP2F4Ujs.ACTIVE_ORG_NAME_ENV]: values[_chunkV7UP2F4Ujs.ACTIVE_ORG_NAME_ENV] } : {},
187
+ ...values[_chunkJU3PF7WMjs.HOST_URL_ENV] ? { [_chunkJU3PF7WMjs.HOST_URL_ENV]: values[_chunkJU3PF7WMjs.HOST_URL_ENV] } : {},
188
+ ...values[_chunkJU3PF7WMjs.API_KEY_ENV] ? { [_chunkJU3PF7WMjs.API_KEY_ENV]: values[_chunkJU3PF7WMjs.API_KEY_ENV] } : {},
189
+ ...values[_chunkJU3PF7WMjs.ACTIVE_ORG_ID_ENV] ? { [_chunkJU3PF7WMjs.ACTIVE_ORG_ID_ENV]: values[_chunkJU3PF7WMjs.ACTIVE_ORG_ID_ENV] } : {},
190
+ ...Object.prototype.hasOwnProperty.call(values, _chunkJU3PF7WMjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkJU3PF7WMjs.ACTIVE_ORG_NAME_ENV]: values[_chunkJU3PF7WMjs.ACTIVE_ORG_NAME_ENV] } : {},
191
191
  // An explicit empty list must reach the store: it clears a stale line.
192
- ...Object.prototype.hasOwnProperty.call(values, _chunkV7UP2F4Ujs.FEATURES_ENV) ? { [_chunkV7UP2F4Ujs.FEATURES_ENV]: values[_chunkV7UP2F4Ujs.FEATURES_ENV] } : {}
192
+ ...Object.prototype.hasOwnProperty.call(values, _chunkJU3PF7WMjs.FEATURES_ENV) ? { [_chunkJU3PF7WMjs.FEATURES_ENV]: values[_chunkJU3PF7WMjs.FEATURES_ENV] } : {}
193
193
  };
194
194
  if (scope === "folder") {
195
- _chunkV7UP2F4Ujs.saveProjectDeeplineEnvValues.call(void 0, filtered);
195
+ _chunkJU3PF7WMjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
196
196
  } else {
197
- _chunkV7UP2F4Ujs.saveHostEnvValues.call(void 0, baseUrl, filtered);
197
+ _chunkJU3PF7WMjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
198
198
  }
199
199
  }
200
200
  function activeOrgEnvValues(data) {
@@ -202,21 +202,21 @@ function activeOrgEnvValues(data) {
202
202
  if (!orgId) return {};
203
203
  const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
204
204
  return {
205
- [_chunkV7UP2F4Ujs.ACTIVE_ORG_ID_ENV]: orgId,
206
- [_chunkV7UP2F4Ujs.ACTIVE_ORG_NAME_ENV]: orgName,
207
- ..._chunkV7UP2F4Ujs.featureEnvValues.call(void 0, data)
205
+ [_chunkJU3PF7WMjs.ACTIVE_ORG_ID_ENV]: orgId,
206
+ [_chunkJU3PF7WMjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
+ ..._chunkJU3PF7WMjs.featureEnvValues.call(void 0, data)
208
208
  };
209
209
  }
210
210
  async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
211
211
  const headers = {
212
212
  "Content-Type": "application/json",
213
- "User-Agent": `deepline-ts-sdk/${_chunkV7UP2F4Ujs.SDK_VERSION}`,
213
+ "User-Agent": `deepline-ts-sdk/${_chunkJU3PF7WMjs.SDK_VERSION}`,
214
214
  "X-Deepline-Client-Family": "sdk",
215
215
  "X-Deepline-CLI-Family": "sdk",
216
- "X-Deepline-Agent-Runtime": _chunkV7UP2F4Ujs.detectAgentRuntime.call(void 0, ),
217
- "X-Deepline-CLI-Version": _chunkV7UP2F4Ujs.SDK_VERSION,
218
- "X-Deepline-SDK-Version": _chunkV7UP2F4Ujs.SDK_VERSION,
219
- "X-Deepline-API-Contract": _chunkV7UP2F4Ujs.SDK_API_CONTRACT
216
+ "X-Deepline-Agent-Runtime": _chunkJU3PF7WMjs.detectAgentRuntime.call(void 0, ),
217
+ "X-Deepline-CLI-Version": _chunkJU3PF7WMjs.SDK_VERSION,
218
+ "X-Deepline-SDK-Version": _chunkJU3PF7WMjs.SDK_VERSION,
219
+ "X-Deepline-API-Contract": _chunkJU3PF7WMjs.SDK_API_CONTRACT
220
220
  };
221
221
  if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
222
222
  const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
@@ -262,7 +262,7 @@ async function readStatusBanner(baseUrl) {
262
262
  return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
263
263
  }
264
264
  async function reportSetupCompleted(input) {
265
- const apiKey = input.authScope === "folder" ? _chunkV7UP2F4Ujs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkV7UP2F4Ujs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
265
+ const apiKey = input.authScope === "folder" ? _chunkJU3PF7WMjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkJU3PF7WMjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
266
266
  if (!apiKey) return;
267
267
  try {
268
268
  await httpJson(
@@ -359,7 +359,7 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
359
359
  }
360
360
  }
361
361
  async function handleRegister(args) {
362
- const baseUrl = _chunkV7UP2F4Ujs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
362
+ const baseUrl = _chunkJU3PF7WMjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
363
363
  let orgName = "";
364
364
  let orgId = "";
365
365
  let agentName = "";
@@ -414,19 +414,19 @@ async function handleRegister(args) {
414
414
  });
415
415
  saveEnvValues(
416
416
  {
417
- [_chunkV7UP2F4Ujs.HOST_URL_ENV]: baseUrl
417
+ [_chunkJU3PF7WMjs.HOST_URL_ENV]: baseUrl
418
418
  },
419
419
  baseUrl,
420
420
  authScope
421
421
  );
422
422
  }
423
423
  if (claimUrl) {
424
- const shouldOpen = waitMode !== "no" && _chunkV7UP2F4Ujs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
424
+ const shouldOpen = waitMode !== "no" && _chunkJU3PF7WMjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
425
425
  console.log(
426
426
  shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
427
427
  );
428
428
  console.log(` ${claimUrl}`);
429
- if (shouldOpen) _chunkRTO5QZWTjs.openInBrowser.call(void 0, claimUrl);
429
+ if (shouldOpen) _chunkS22ZQZMUjs.openInBrowser.call(void 0, claimUrl);
430
430
  }
431
431
  if (data.cli_message) {
432
432
  console.log(String(data.cli_message));
@@ -469,8 +469,8 @@ async function handleRegister(args) {
469
469
  if (apiKey) {
470
470
  saveEnvValues(
471
471
  {
472
- [_chunkV7UP2F4Ujs.HOST_URL_ENV]: baseUrl,
473
- [_chunkV7UP2F4Ujs.API_KEY_ENV]: apiKey,
472
+ [_chunkJU3PF7WMjs.HOST_URL_ENV]: baseUrl,
473
+ [_chunkJU3PF7WMjs.API_KEY_ENV]: apiKey,
474
474
  ...activeOrgEnvValues(statusData)
475
475
  },
476
476
  baseUrl,
@@ -492,7 +492,7 @@ async function handleRegister(args) {
492
492
  }
493
493
  }
494
494
  async function handleWait(args) {
495
- const baseUrl = _chunkV7UP2F4Ujs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
495
+ const baseUrl = _chunkJU3PF7WMjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
496
496
  let timeoutSeconds = 300;
497
497
  let requestedScope;
498
498
  if (args.includes("--auth-scope")) {
@@ -516,7 +516,7 @@ async function handleWait(args) {
516
516
  const authScope = resumed.scope;
517
517
  const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _12 => _12.claimToken]), () => ( ""));
518
518
  if (!pendingClaim) {
519
- const scopedApiKey = authScope === "folder" ? _chunkV7UP2F4Ujs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkV7UP2F4Ujs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
519
+ const scopedApiKey = authScope === "folder" ? _chunkJU3PF7WMjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkJU3PF7WMjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
520
520
  if (scopedApiKey) {
521
521
  console.log("Already connected.");
522
522
  return EXIT_OK;
@@ -559,8 +559,8 @@ async function handleWait(args) {
559
559
  if (apiKey) {
560
560
  saveEnvValues(
561
561
  {
562
- [_chunkV7UP2F4Ujs.HOST_URL_ENV]: baseUrl,
563
- [_chunkV7UP2F4Ujs.API_KEY_ENV]: apiKey,
562
+ [_chunkJU3PF7WMjs.HOST_URL_ENV]: baseUrl,
563
+ [_chunkJU3PF7WMjs.API_KEY_ENV]: apiKey,
564
564
  ...activeOrgEnvValues(data)
565
565
  },
566
566
  baseUrl,
@@ -584,8 +584,8 @@ async function handleWait(args) {
584
584
  return EXIT_AUTH;
585
585
  }
586
586
  async function authStatusLine(timeoutMs = 3e3) {
587
- const baseUrl = _chunkV7UP2F4Ujs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
588
- const apiKey = _chunkV7UP2F4Ujs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
587
+ const baseUrl = _chunkJU3PF7WMjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
588
+ const apiKey = _chunkJU3PF7WMjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
589
589
  if (!apiKey) return `Auth: not connected (${baseUrl})`;
590
590
  try {
591
591
  const { status, data } = await httpJson(
@@ -608,9 +608,9 @@ async function authStatusLine(timeoutMs = 3e3) {
608
608
  }
609
609
  }
610
610
  async function handleStatus(args) {
611
- const baseUrl = _chunkV7UP2F4Ujs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
611
+ const baseUrl = _chunkJU3PF7WMjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
612
612
  const reveal = args.includes("--reveal");
613
- const jsonOutput = _chunkRTO5QZWTjs.argsWantJson.call(void 0, args);
613
+ const jsonOutput = _chunkS22ZQZMUjs.argsWantJson.call(void 0, args);
614
614
  const hasExplicitAuthScope = args.includes("--auth-scope");
615
615
  let authScope = null;
616
616
  if (hasExplicitAuthScope) {
@@ -651,14 +651,14 @@ async function handleStatus(args) {
651
651
  };
652
652
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
653
653
  }
654
- const apiKey = authScope === "folder" ? _chunkV7UP2F4Ujs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkV7UP2F4Ujs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkV7UP2F4Ujs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
654
+ const apiKey = authScope === "folder" ? _chunkJU3PF7WMjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkJU3PF7WMjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkJU3PF7WMjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
655
655
  if (!apiKey) {
656
656
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
657
657
  baseUrl,
658
658
  _nullishCoalesce(authScope, () => ( void 0))
659
659
  );
660
660
  if (pendingClaim) {
661
- _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
661
+ _chunkS22ZQZMUjs.printCommandEnvelope.call(void 0,
662
662
  {
663
663
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
664
664
  status: "pending",
@@ -679,7 +679,7 @@ async function handleStatus(args) {
679
679
  );
680
680
  return EXIT_OK;
681
681
  }
682
- _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
682
+ _chunkS22ZQZMUjs.printCommandEnvelope.call(void 0,
683
683
  {
684
684
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
685
685
  status: "not connected",
@@ -712,7 +712,7 @@ async function handleStatus(args) {
712
712
  }
713
713
  );
714
714
  if (status === 401 || status === 403) {
715
- _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
715
+ _chunkS22ZQZMUjs.printCommandEnvelope.call(void 0,
716
716
  {
717
717
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
718
718
  status: "unauthorized",
@@ -739,7 +739,7 @@ async function handleStatus(args) {
739
739
  console.error(`Auth status error (status ${status}).`);
740
740
  return EXIT_SERVER;
741
741
  }
742
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkV7UP2F4Ujs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
742
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkJU3PF7WMjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
743
743
  clearSatisfiedPendingClaim(
744
744
  baseUrl,
745
745
  resolvedAuthScope,
@@ -767,28 +767,28 @@ async function handleStatus(args) {
767
767
  if (apiKeyResp) {
768
768
  saveEnvValues(
769
769
  {
770
- [_chunkV7UP2F4Ujs.HOST_URL_ENV]: baseUrl,
771
- [_chunkV7UP2F4Ujs.API_KEY_ENV]: apiKeyResp,
770
+ [_chunkJU3PF7WMjs.HOST_URL_ENV]: baseUrl,
771
+ [_chunkJU3PF7WMjs.API_KEY_ENV]: apiKeyResp,
772
772
  ...activeOrgEnvValues(data)
773
773
  },
774
774
  baseUrl,
775
775
  resolvedAuthScope
776
776
  );
777
777
  if (resolvedAuthScope === "folder") {
778
- const target = _chunkV7UP2F4Ujs.resolveProjectPinTarget.call(void 0, );
778
+ const target = _chunkJU3PF7WMjs.resolveProjectPinTarget.call(void 0, );
779
779
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
780
780
  } else {
781
781
  savedApiKeyPath = envFilePath(baseUrl);
782
782
  }
783
783
  }
784
- } else if (resolvedAuthScope === "folder" || _chunkV7UP2F4Ujs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
785
- saveEnvValues(_chunkV7UP2F4Ujs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
784
+ } else if (resolvedAuthScope === "folder" || _chunkJU3PF7WMjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
785
+ saveEnvValues(_chunkJU3PF7WMjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
786
786
  }
787
- _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
787
+ _chunkS22ZQZMUjs.printCommandEnvelope.call(void 0,
788
788
  {
789
789
  ...payload,
790
- ..._chunkV7UP2F4Ujs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
791
- command_context: _chunkV7UP2F4Ujs.resolveCliCommandContext.call(void 0,
790
+ ..._chunkJU3PF7WMjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
791
+ command_context: _chunkJU3PF7WMjs.resolveCliCommandContext.call(void 0,
792
792
  { baseUrl, apiKey },
793
793
  resolvedAuthScope
794
794
  )