deepline 0.3.367 → 0.3.368

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 (100) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/sdk/src/types.ts +5 -0
  3. package/dist/cli/auth-NJ6RE6XQ.js +33 -0
  4. package/dist/cli/{auth-2DHYG3WZ.mjs → auth-RUWM7VTH.mjs} +4 -4
  5. package/dist/cli/{billing-YBTOTHXM.js → billing-PLBQKLDK.js} +73 -73
  6. package/dist/cli/{billing-VFBFBOO5.mjs → billing-WSS57VQY.mjs} +4 -4
  7. package/dist/cli/{chunk-MXJEKMHU.js → chunk-27QA6Q4G.js} +224 -224
  8. package/dist/cli/{chunk-MKRADCZK.js → chunk-2YOKZW46.js} +26 -26
  9. package/dist/cli/{chunk-CRRVBNZD.js → chunk-7AWSYT7H.js} +117 -9
  10. package/dist/cli/{chunk-HEWGTHI2.mjs → chunk-7PQTQSJY.mjs} +111 -3
  11. package/dist/cli/{chunk-LDSBBKSM.mjs → chunk-A2OLR6DK.mjs} +2 -2
  12. package/dist/cli/{chunk-LJIWLZHS.js → chunk-AUWKAVXB.js} +54 -146
  13. package/dist/cli/{chunk-XPIZKTYZ.js → chunk-BKEYQHJ2.js} +50 -50
  14. package/dist/cli/{chunk-KJFND3YT.js → chunk-DZOEDNSU.js} +9 -9
  15. package/dist/cli/{chunk-GXRUBTXZ.mjs → chunk-ENGMDXHN.mjs} +2 -2
  16. package/dist/cli/{chunk-OCX5D2WI.mjs → chunk-EZUGGC5A.mjs} +1 -1
  17. package/dist/cli/{chunk-GD2VVYGB.mjs → chunk-GHZUH33K.mjs} +1 -1
  18. package/dist/cli/{chunk-3BZR22CZ.js → chunk-GJO4H3NN.js} +60 -60
  19. package/dist/cli/{chunk-R2HHZLOP.js → chunk-GTC2KAZQ.js} +4 -4
  20. package/dist/cli/{chunk-5NVMNFCG.js → chunk-HZT2Y7WB.js} +15 -15
  21. package/dist/cli/{chunk-6DRGO4CB.mjs → chunk-IG7OYVS7.mjs} +6 -6
  22. package/dist/cli/{chunk-3Y3N7WQO.mjs → chunk-LEZWRLB3.mjs} +1 -1
  23. package/dist/cli/{chunk-Z35CB3I5.js → chunk-NZHVJB2W.js} +2 -2
  24. package/dist/cli/{chunk-BBQ5IWRX.mjs → chunk-OTI7CDLE.mjs} +10 -102
  25. package/dist/cli/{chunk-3ZO2O2LE.mjs → chunk-PU53IS6H.mjs} +2 -2
  26. package/dist/cli/{chunk-K4V4FX76.mjs → chunk-S3MDB6SI.mjs} +1 -1
  27. package/dist/cli/{chunk-B7JTGFDS.js → chunk-S4Y7B2O3.js} +1 -1
  28. package/dist/cli/{chunk-D7SELX66.js → chunk-SNENR3BL.js} +6 -6
  29. package/dist/cli/{chunk-JNQECSK5.mjs → chunk-THO6F53F.mjs} +1 -1
  30. package/dist/cli/{chunk-W2LUUB3U.mjs → chunk-XUMWO4ST.mjs} +4 -4
  31. package/dist/cli/{chunk-AVSPBILZ.js → chunk-YCJMDCTH.js} +8 -8
  32. package/dist/cli/{chunk-DIDYT2TH.mjs → chunk-ZS2YQ4YK.mjs} +2 -2
  33. package/dist/cli/{client-F6SEXBBG.mjs → client-JJEEIOIL.mjs} +3 -3
  34. package/dist/cli/client-UPKWYV32.js +20 -0
  35. package/dist/cli/{csv-DC3MLBOC.mjs → csv-75D36YRA.mjs} +3 -3
  36. package/dist/cli/{csv-4AB42QFI.js → csv-EPNNU27J.js} +12 -12
  37. package/dist/cli/{db-JAQHMLUY.mjs → db-6HYSGMLN.mjs} +4 -4
  38. package/dist/cli/{db-M3URDTLR.js → db-SWNKJUU5.js} +29 -29
  39. package/dist/cli/{describe-RYXCBLJG.mjs → describe-N2KSBPOR.mjs} +8 -8
  40. package/dist/cli/{describe-AVXUIRDK.js → describe-XMUHTICA.js} +15 -15
  41. package/dist/cli/{executions-DYDW4WY3.js → executions-3ESWUDHH.js} +6 -6
  42. package/dist/cli/{executions-XPY5FKOS.mjs → executions-WHSG2JGN.mjs} +4 -4
  43. package/dist/cli/{feedback-ZOI3GFAC.mjs → feedback-2VHTJXU7.mjs} +3 -3
  44. package/dist/cli/{feedback-HMP2ZYNW.js → feedback-CGZE7L7A.js} +7 -7
  45. package/dist/cli/{git-K35PB25D.mjs → git-IG4J5OUT.mjs} +4 -4
  46. package/dist/cli/git-WPEOAE72.js +23 -0
  47. package/dist/cli/index.js +82 -82
  48. package/dist/cli/index.mjs +32 -32
  49. package/dist/cli/{legacy-noops-PKGJRS75.mjs → legacy-noops-7WXL7PB3.mjs} +4 -4
  50. package/dist/cli/{legacy-noops-QNNMKQDW.js → legacy-noops-QF7S6JJB.js} +7 -7
  51. package/dist/cli/{monitors-MUMWTBID.js → monitors-6XYT53X6.js} +85 -85
  52. package/dist/cli/{monitors-JMNBMRSQ.mjs → monitors-QS4QFORU.mjs} +4 -4
  53. package/dist/cli/{org-AQPMMPQE.mjs → org-5IGU7FES.mjs} +4 -4
  54. package/dist/cli/{org-2QL6AY6G.js → org-NLR3D3M7.js} +64 -64
  55. package/dist/cli/play-3ECRZYD5.js +153 -0
  56. package/dist/cli/{play-AITTTWYK.mjs → play-JVENSY4T.mjs} +7 -7
  57. package/dist/cli/{providers-LRCYLIQA.mjs → providers-RSVO5U4E.mjs} +4 -4
  58. package/dist/cli/{providers-BGTPNAOA.js → providers-T4GCIOTW.js} +7 -7
  59. package/dist/cli/{quickstart-WMAUXWKW.js → quickstart-IHAG5QZ6.js} +5 -5
  60. package/dist/cli/{quickstart-3II563Z7.mjs → quickstart-ZDFOKNYW.mjs} +3 -3
  61. package/dist/cli/search-RYLADJUK.js +26 -0
  62. package/dist/cli/{search-J6ELRZNH.mjs → search-ZGEYJSMF.mjs} +5 -5
  63. package/dist/cli/{secrets-HDBB2647.js → secrets-DVTEZCPE.js} +13 -13
  64. package/dist/cli/{secrets-L7LOTLZB.mjs → secrets-OQZRZBP6.mjs} +4 -4
  65. package/dist/cli/{sessions-7DMN24LF.mjs → sessions-XM7PFJL2.mjs} +4 -4
  66. package/dist/cli/{sessions-ZO3WB3EF.js → sessions-XYEG53JJ.js} +5 -5
  67. package/dist/cli/{settings-OVUM5BLZ.js → settings-NWEBQOX4.js} +74 -74
  68. package/dist/cli/{settings-USHCF4YD.mjs → settings-TKXYRYYH.mjs} +7 -7
  69. package/dist/cli/{setup-FZQ7HDL4.mjs → setup-3UD5TDRJ.mjs} +6 -6
  70. package/dist/cli/{setup-W77Y5ALX.js → setup-JRU6VGFQ.js} +41 -41
  71. package/dist/cli/{skills-A2LR3RAP.mjs → skills-GLLMNOCY.mjs} +4 -4
  72. package/dist/cli/skills-PZQDJJWN.js +28 -0
  73. package/dist/cli/{tools-FX7G7KX5.mjs → tools-VXXAMH2X.mjs} +6 -6
  74. package/dist/cli/tools-WYXBAUMT.js +40 -0
  75. package/dist/cli/{update-EODE5FHU.mjs → update-UCGMUUDQ.mjs} +6 -6
  76. package/dist/cli/update-WM6SOME3.js +28 -0
  77. package/dist/cli/{workflow-7352UH6L.mjs → workflow-BGGKNZTG.mjs} +5 -5
  78. package/dist/cli/{workflow-JEY4ESZA.js → workflow-G2UU7WTU.js} +15 -15
  79. package/dist/{client-BmKft6Pr.d.mts → client-CjHv4K6D.d.mts} +8 -0
  80. package/dist/{client-Bra0Nc2D.d.ts → client-rTuhNN-x.d.ts} +8 -0
  81. package/dist/index.d.mts +2 -2
  82. package/dist/index.d.ts +2 -2
  83. package/dist/index.js +6 -6
  84. package/dist/index.mjs +3 -3
  85. package/dist/install-integrity.json +76 -76
  86. package/dist/plays/run-request.d.mts +1 -1
  87. package/dist/plays/run-request.d.ts +1 -1
  88. package/dist/release.d.mts +1 -1
  89. package/dist/release.d.ts +1 -1
  90. package/dist/release.js +2 -2
  91. package/dist/release.mjs +1 -1
  92. package/package.json +1 -1
  93. package/dist/cli/auth-I2E45QZK.js +0 -33
  94. package/dist/cli/client-VWGJIUGH.js +0 -20
  95. package/dist/cli/git-TJEM2U4K.js +0 -23
  96. package/dist/cli/play-YO52D4YP.js +0 -153
  97. package/dist/cli/search-FQ5NSE7R.js +0 -26
  98. package/dist/cli/skills-GLKEZPFV.js +0 -28
  99. package/dist/cli/tools-HBNJ3WP3.js +0 -40
  100. package/dist/cli/update-A2TZZO2S.js +0 -28
@@ -9,9 +9,11 @@ import {
9
9
  shellQuote
10
10
  } from "./chunk-OVDNJAJN.mjs";
11
11
  import {
12
+ Capability,
13
+ observedMaxText,
12
14
  recentSearchRef,
13
15
  registerDeprecatedSearchCommand
14
- } from "./chunk-HEWGTHI2.mjs";
16
+ } from "./chunk-7PQTQSJY.mjs";
15
17
  import {
16
18
  extractSummaryFields,
17
19
  projectRowOutput,
@@ -26,7 +28,7 @@ import {
26
28
  import {
27
29
  DeeplineClient,
28
30
  validateExecutionIdempotencyKey
29
- } from "./chunk-JNQECSK5.mjs";
31
+ } from "./chunk-THO6F53F.mjs";
30
32
  import {
31
33
  beginToolExecuteCommand,
32
34
  getToolExecuteInvocationId,
@@ -40,11 +42,11 @@ import {
40
42
  printJsonError,
41
43
  renderCommandEnvelopeText,
42
44
  shouldEmitJson
43
- } from "./chunk-K4V4FX76.mjs";
45
+ } from "./chunk-S3MDB6SI.mjs";
44
46
  import {
45
47
  resolveConfig,
46
48
  sdkCliStateDirPath
47
- } from "./chunk-OCX5D2WI.mjs";
49
+ } from "./chunk-EZUGGC5A.mjs";
48
50
  import {
49
51
  DeeplineError
50
52
  } from "./chunk-NXGCO4JB.mjs";
@@ -243,102 +245,6 @@ function arrayField(value, key) {
243
245
  return Array.isArray(candidate) ? candidate : [];
244
246
  }
245
247
 
246
- // src/cli/tool-description.ts
247
- var Capability = class _Capability {
248
- #catalogEntry;
249
- constructor(catalogEntry) {
250
- this.#catalogEntry = catalogEntry;
251
- }
252
- static fromCatalogEntry(catalogEntry) {
253
- return new _Capability(catalogEntry);
254
- }
255
- describe() {
256
- return CapabilityDescription.fromCatalogEntry(this.#catalogEntry);
257
- }
258
- };
259
- var CapabilityDescription = class _CapabilityDescription {
260
- #catalogEntry;
261
- constructor(catalogEntry) {
262
- this.#catalogEntry = catalogEntry;
263
- }
264
- static fromCatalogEntry(catalogEntry) {
265
- return new _CapabilityDescription(catalogEntry);
266
- }
267
- /**
268
- * The customer price already resolved by the catalog. This intentionally
269
- * omits provider-price fields, even when a catalog Adapter carried them.
270
- */
271
- customerCost() {
272
- const legacyCost = recordValue(this.#catalogEntry.cost);
273
- const pricing = recordValue(this.#catalogEntry.pricing);
274
- const unit = stringValue(pricing.unit);
275
- const legacyPricingModel = stringValue(
276
- legacyCost.pricingModel ?? legacyCost.pricing_model
277
- );
278
- const pricingModel = unit === "call" ? "fixed" : unit === "result" || unit === "page" ? `per_${unit}` : unit === "usage" ? "provider_usage" : legacyPricingModel;
279
- const canonicalCredits = pricingNumber(
280
- pricing,
281
- "creditsPerUnit",
282
- "credits_per_unit",
283
- this.#catalogEntry.deeplineCreditsPerPricingUnit ?? this.#catalogEntry.deepline_credits_per_pricing_unit
284
- );
285
- const canonicalUsd = pricingNumber(
286
- pricing,
287
- "usdPerUnit",
288
- "usd_per_unit",
289
- this.#catalogEntry.deeplineUsdPerPricingUnit ?? this.#catalogEntry.deepline_usd_per_pricing_unit
290
- );
291
- const billingSource = stringValue(
292
- this.#catalogEntry.billingSource ?? this.#catalogEntry.billing_source
293
- );
294
- const billingSourceLabel = stringValue(
295
- this.#catalogEntry.billingSourceLabel ?? this.#catalogEntry.billing_source_label
296
- );
297
- const isFree = billingSource === "free";
298
- return {
299
- pricingModel: pricingModel || null,
300
- unit: unit || null,
301
- displayText: isFree ? "Free" : stringValue(pricing.displayText ?? pricing.display_text),
302
- summary: isFree ? null : stringValue(pricing.summary),
303
- billingMode: stringValue(
304
- legacyCost.billingMode ?? legacyCost.billing_mode
305
- ),
306
- billingSource,
307
- billingSourceLabel,
308
- deeplineCreditsPerPricingUnit: isFree ? 0 : canonicalCredits,
309
- deeplineUsdPerPricingUnit: isFree ? 0 : canonicalUsd,
310
- ...pricing.estimatedRange && !isFree && billingSource !== "own_provider_credentials" ? {
311
- estimatedRange: pricing.estimatedRange,
312
- details: Array.isArray(pricing.details) ? pricing.details.filter(
313
- (value) => typeof value === "string"
314
- ) : []
315
- } : {},
316
- ...pricing.observedReference && !isFree && billingSource !== "own_provider_credentials" ? {
317
- observedReference: pricing.observedReference,
318
- details: Array.isArray(pricing.details) ? pricing.details.filter(
319
- (value) => typeof value === "string"
320
- ) : []
321
- } : {}
322
- };
323
- }
324
- };
325
- function recordValue(value) {
326
- return value && typeof value === "object" && !Array.isArray(value) ? value : {};
327
- }
328
- function stringValue(value) {
329
- return typeof value === "string" && value.trim() ? value : null;
330
- }
331
- function numberValue(value) {
332
- return typeof value === "number" && Number.isFinite(value) ? value : null;
333
- }
334
- function pricingNumber(pricing, canonicalKey, aliasKey, legacyValue) {
335
- for (const key of [canonicalKey, aliasKey]) {
336
- if (Object.prototype.hasOwnProperty.call(pricing, key))
337
- return numberValue(pricing[key]);
338
- }
339
- return numberValue(legacyValue);
340
- }
341
-
342
248
  // src/cli/tool-connection-status.ts
343
249
  function toolConnectionStatusMessage(input) {
344
250
  if (input.credentialStatus === "requires_connection") {
@@ -1030,7 +936,7 @@ Examples:
1030
936
  process.exitCode = await narrowView();
1031
937
  return;
1032
938
  }
1033
- const { describeAnything } = await import("./describe-RYXCBLJG.mjs");
939
+ const { describeAnything } = await import("./describe-N2KSBPOR.mjs");
1034
940
  process.exitCode = await describeAnything(
1035
941
  toolId,
1036
942
  { ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
@@ -1587,7 +1493,8 @@ function describedTool(tool, requestedToolId) {
1587
1493
  cost: [
1588
1494
  stringField2(cost, "displayText"),
1589
1495
  // "Free (free)" says the same thing twice.
1590
- billing.toLowerCase() === stringField2(cost, "displayText").toLowerCase() ? "" : billing && `(${billing})`
1496
+ billing.toLowerCase() === stringField2(cost, "displayText").toLowerCase() ? "" : billing && `(${billing})`,
1497
+ observedMaxText(cost) && `\u2014 ${observedMaxText(cost)}`
1591
1498
  ].filter(Boolean).join(" ") || void 0,
1592
1499
  guidance: [
1593
1500
  ...contract.deprecated === true ? [`Deprecated. ${stringField2(deprecation, "message")}`.trim()] : [],
@@ -1736,6 +1643,7 @@ function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
1736
1643
  const price = displayText || summary || (credits !== null ? `${formatDecimal(credits)} Deepline credits${usd !== null ? ` / ${formatUsd(usd)}` : ""} per ${unit}` : "pricing unavailable");
1737
1644
  return [
1738
1645
  `${options.heading ?? `Pricing: ${toolId}`}: ${price}`,
1646
+ ...observedMaxText(cost) ? [` ${observedMaxText(cost)}`] : [],
1739
1647
  ...cost.observedReference || cost.estimatedRange ? [
1740
1648
  ...summary ? [` ${summary}`] : [],
1741
1649
  ...(cost.details ?? []).map((detail) => ` ${detail}`)
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-K4V4FX76.mjs";
5
+ } from "./chunk-S3MDB6SI.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-OCX5D2WI.mjs";
28
+ } from "./chunk-EZUGGC5A.mjs";
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
  import {
@@ -3,7 +3,7 @@ import {
3
3
  detectAgentRuntime,
4
4
  resolveCliCommandContext,
5
5
  resolveConfig
6
- } from "./chunk-OCX5D2WI.mjs";
6
+ } from "./chunk-EZUGGC5A.mjs";
7
7
  import {
8
8
  DeeplineError
9
9
  } from "./chunk-NXGCO4JB.mjs";
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.367",
52
+ version: "0.3.368",
53
53
  updateSummary: "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.",
54
54
  packageCapabilities: {
55
55
  updatePreferences: 1
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkR2HHZLOPjs = require('./chunk-R2HHZLOP.js');
6
+ var _chunkGTC2KAZQjs = require('./chunk-GTC2KAZQ.js');
7
7
 
8
8
 
9
9
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
@@ -225,8 +225,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
225
225
  var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
226
226
  var defaultBrowserCommandRunner = childProcess;
227
227
  function getAuthedHttpClient() {
228
- const config = _chunkR2HHZLOPjs.resolveConfig.call(void 0, );
229
- return { config, http: new (0, _chunkR2HHZLOPjs.HttpClient)(config) };
228
+ const config = _chunkGTC2KAZQjs.resolveConfig.call(void 0, );
229
+ return { config, http: new (0, _chunkGTC2KAZQjs.HttpClient)(config) };
230
230
  }
231
231
  function stableOsUserId() {
232
232
  try {
@@ -566,7 +566,7 @@ function collectLocalEnvInfo() {
566
566
  os: `${process.platform} ${process.arch}`,
567
567
  node_version: process.version,
568
568
  home_dir: homeDir,
569
- agent_runtime: _chunkR2HHZLOPjs.detectAgentRuntime.call(void 0, )
569
+ agent_runtime: _chunkGTC2KAZQjs.detectAgentRuntime.call(void 0, )
570
570
  };
571
571
  const env = process.env;
572
572
  const optional = {
@@ -813,9 +813,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
813
813
  }
814
814
  function withAgentCommandContext(value) {
815
815
  const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
816
- return _chunkR2HHZLOPjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
816
+ return _chunkGTC2KAZQjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
817
817
  ...valueRecord,
818
- command_context: _chunkR2HHZLOPjs.resolveCliCommandContext.call(void 0, )
818
+ command_context: _chunkGTC2KAZQjs.resolveCliCommandContext.call(void 0, )
819
819
  } : value;
820
820
  }
821
821
  function printJson(value, fields) {
@@ -21,7 +21,7 @@ import {
21
21
  RETAINED_PIPELINE_RECEIVERS_HEADER,
22
22
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
23
23
  resolveConfig
24
- } from "./chunk-OCX5D2WI.mjs";
24
+ } from "./chunk-EZUGGC5A.mjs";
25
25
  import {
26
26
  DeeplineError,
27
27
  TOOL_EXECUTION_ERROR_SCHEMA_HEADER,
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-3Y3N7WQO.mjs";
4
+ } from "./chunk-LEZWRLB3.mjs";
5
5
  import {
6
6
  resolveShellSpawn,
7
7
  runSkillsCommand
8
- } from "./chunk-GXRUBTXZ.mjs";
8
+ } from "./chunk-ENGMDXHN.mjs";
9
9
  import {
10
10
  printCommandEnvelope
11
- } from "./chunk-K4V4FX76.mjs";
11
+ } from "./chunk-S3MDB6SI.mjs";
12
12
  import {
13
13
  autoDetectBaseUrl
14
- } from "./chunk-OCX5D2WI.mjs";
14
+ } from "./chunk-EZUGGC5A.mjs";
15
15
 
16
16
  // src/cli/commands/update.ts
17
17
  import { spawn, spawnSync } from "child_process";
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkD7SELX66js = require('./chunk-D7SELX66.js');
4
+ var _chunkSNENR3BLjs = require('./chunk-SNENR3BL.js');
5
5
 
6
6
 
7
- var _chunkR2HHZLOPjs = require('./chunk-R2HHZLOP.js');
7
+ var _chunkGTC2KAZQjs = require('./chunk-GTC2KAZQ.js');
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
 
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
139
139
  const newestFirst = listSessionFiles(agent).sort(
140
140
  (a, b) => b.mtimeMs - a.mtimeMs
141
141
  );
142
- const sessionId = _chunkR2HHZLOPjs.agentSessionIdFromEnvironment.call(void 0, );
142
+ const sessionId = _chunkGTC2KAZQjs.agentSessionIdFromEnvironment.call(void 0, );
143
143
  const cwd = process.cwd();
144
144
  return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(newestFirst.find((candidate) => candidate.sessionId === sessionId), () => ( newestFirst.find(
145
145
  (candidate) => sessionStartedInDirectory(candidate, cwd)
@@ -448,7 +448,7 @@ function buildSessionUploadContent(raw) {
448
448
  return { encodedContent: encoded, needsChunking: true };
449
449
  }
450
450
  async function uploadPayload(path, payload) {
451
- const { http } = _chunkD7SELX66js.getAuthedHttpClient.call(void 0, );
451
+ const { http } = _chunkSNENR3BLjs.getAuthedHttpClient.call(void 0, );
452
452
  return await http.post(path, payload);
453
453
  }
454
454
  async function uploadChunkedSessions(sessions, options) {
@@ -481,7 +481,7 @@ async function uploadChunkedSessions(sessions, options) {
481
481
  ...options.rating ? { rating: options.rating } : {}
482
482
  });
483
483
  const sessionIds = sessions.map((session) => session.sessionId);
484
- _chunkD7SELX66js.printCommandEnvelope.call(void 0,
484
+ _chunkSNENR3BLjs.printCommandEnvelope.call(void 0,
485
485
  {
486
486
  ...response,
487
487
  ok: true,
@@ -513,7 +513,7 @@ async function handleSessionsSend(options) {
513
513
  filename: _path.basename.call(void 0, filePath),
514
514
  ...rating ? { rating } : {}
515
515
  });
516
- _chunkD7SELX66js.printCommandEnvelope.call(void 0,
516
+ _chunkSNENR3BLjs.printCommandEnvelope.call(void 0,
517
517
  {
518
518
  ...response2,
519
519
  ok: true,
@@ -563,7 +563,7 @@ async function handleSessionsSend(options) {
563
563
  ...rating ? { rating } : {}
564
564
  });
565
565
  const sessionIds = built.map((session) => session.sessionId);
566
- _chunkD7SELX66js.printCommandEnvelope.call(void 0,
566
+ _chunkSNENR3BLjs.printCommandEnvelope.call(void 0,
567
567
  {
568
568
  ...response,
569
569
  ok: true,
@@ -671,7 +671,7 @@ ${refreshMeta}
671
671
  </body>
672
672
  </html>`;
673
673
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
674
- _chunkD7SELX66js.printCommandEnvelope.call(void 0,
674
+ _chunkSNENR3BLjs.printCommandEnvelope.call(void 0,
675
675
  {
676
676
  ok: true,
677
677
  file: outputPath,
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-K4V4FX76.mjs";
5
+ } from "./chunk-S3MDB6SI.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-OCX5D2WI.mjs";
8
+ } from "./chunk-EZUGGC5A.mjs";
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -3,13 +3,13 @@ import {
3
3
  MONITOR_JOB_PHASES,
4
4
  MONITOR_JOB_RECONCILIATION_STATES,
5
5
  MONITOR_JOB_STATES
6
- } from "./chunk-JNQECSK5.mjs";
6
+ } from "./chunk-THO6F53F.mjs";
7
7
  import "./chunk-6IKARAYD.mjs";
8
8
  import "./chunk-CBVIJSHF.mjs";
9
- import "./chunk-OCX5D2WI.mjs";
9
+ import "./chunk-EZUGGC5A.mjs";
10
10
  import "./chunk-DLIRSHV6.mjs";
11
11
  import "./chunk-NXGCO4JB.mjs";
12
- import "./chunk-GD2VVYGB.mjs";
12
+ import "./chunk-GHZUH33K.mjs";
13
13
  import "./chunk-WZYKRD7T.mjs";
14
14
  import "./chunk-KRD6H754.mjs";
15
15
  export {
@@ -0,0 +1,20 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+ var _chunkDZOEDNSUjs = require('./chunk-DZOEDNSU.js');
7
+ require('./chunk-S6R3OX7B.js');
8
+ require('./chunk-LA46MMTL.js');
9
+ require('./chunk-GTC2KAZQ.js');
10
+ require('./chunk-XNYIZMNQ.js');
11
+ require('./chunk-7P5AA3SN.js');
12
+ require('./chunk-S4Y7B2O3.js');
13
+ require('./chunk-OG64RBAC.js');
14
+ require('./chunk-COGTRVWW.js');
15
+
16
+
17
+
18
+
19
+
20
+ exports.DeeplineClient = _chunkDZOEDNSUjs.DeeplineClient; exports.MONITOR_JOB_PHASES = _chunkDZOEDNSUjs.MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = _chunkDZOEDNSUjs.MONITOR_JOB_RECONCILIATION_STATES; exports.MONITOR_JOB_STATES = _chunkDZOEDNSUjs.MONITOR_JOB_STATES;
@@ -4,11 +4,11 @@ import {
4
4
  printCommandEnvelope,
5
5
  printJson,
6
6
  readCsvRows
7
- } from "./chunk-K4V4FX76.mjs";
8
- import "./chunk-OCX5D2WI.mjs";
7
+ } from "./chunk-S3MDB6SI.mjs";
8
+ import "./chunk-EZUGGC5A.mjs";
9
9
  import "./chunk-DLIRSHV6.mjs";
10
10
  import "./chunk-NXGCO4JB.mjs";
11
- import "./chunk-GD2VVYGB.mjs";
11
+ import "./chunk-GHZUH33K.mjs";
12
12
  import "./chunk-WZYKRD7T.mjs";
13
13
  import "./chunk-KRD6H754.mjs";
14
14
 
@@ -4,11 +4,11 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkD7SELX66js = require('./chunk-D7SELX66.js');
8
- require('./chunk-R2HHZLOP.js');
7
+ var _chunkSNENR3BLjs = require('./chunk-SNENR3BL.js');
8
+ require('./chunk-GTC2KAZQ.js');
9
9
  require('./chunk-XNYIZMNQ.js');
10
10
  require('./chunk-7P5AA3SN.js');
11
- require('./chunk-B7JTGFDS.js');
11
+ require('./chunk-S4Y7B2O3.js');
12
12
  require('./chunk-OG64RBAC.js');
13
13
  require('./chunk-COGTRVWW.js');
14
14
 
@@ -126,7 +126,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
126
126
  column.length,
127
127
  ...rows.map((row) => {
128
128
  const value = _nullishCoalesce(row[column], () => ( ""));
129
- return (verbose ? value : _chunkD7SELX66js.clip.call(void 0, value, 42)).length;
129
+ return (verbose ? value : _chunkSNENR3BLjs.clip.call(void 0, value, 42)).length;
130
130
  })
131
131
  )
132
132
  ])
@@ -136,7 +136,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
136
136
  const body = rows.map(
137
137
  (row) => columns.map((column) => {
138
138
  const raw = _nullishCoalesce(row[column], () => ( ""));
139
- const display = verbose ? raw : _chunkD7SELX66js.clip.call(void 0, raw, 42);
139
+ const display = verbose ? raw : _chunkSNENR3BLjs.clip.call(void 0, raw, 42);
140
140
  return display.padEnd(widths[column]);
141
141
  }).join(" | ")
142
142
  );
@@ -156,7 +156,7 @@ async function handleCsvShow(path, options, command) {
156
156
  { exitCode: 2 }
157
157
  );
158
158
  }
159
- const allRows = _chunkD7SELX66js.readCsvRows.call(void 0, csvPath);
159
+ const allRows = _chunkSNENR3BLjs.readCsvRows.call(void 0, csvPath);
160
160
  const [rowStart, rowEnd] = parseRowRange(options.rows);
161
161
  const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
162
162
  const { rows: selected, columns } = selectColumns(
@@ -169,7 +169,7 @@ async function handleCsvShow(path, options, command) {
169
169
  if (options.summary) {
170
170
  const summaries = summarizeColumns(selected, columns);
171
171
  if (format === "json") {
172
- _chunkD7SELX66js.printJson.call(void 0, {
172
+ _chunkSNENR3BLjs.printJson.call(void 0, {
173
173
  rows: summaries,
174
174
  total_rows: selected.length,
175
175
  source_total_rows: allRows.length
@@ -178,7 +178,7 @@ async function handleCsvShow(path, options, command) {
178
178
  }
179
179
  const displayRows = summaryDisplayRows(summaries);
180
180
  if (format === "csv") {
181
- process.stdout.write(_chunkD7SELX66js.csvStringFromRows.call(void 0, displayRows));
181
+ process.stdout.write(_chunkSNENR3BLjs.csvStringFromRows.call(void 0, displayRows));
182
182
  return;
183
183
  }
184
184
  process.stdout.write(
@@ -193,7 +193,7 @@ async function handleCsvShow(path, options, command) {
193
193
  return;
194
194
  }
195
195
  if (format === "json") {
196
- _chunkD7SELX66js.printJson.call(void 0, {
196
+ _chunkSNENR3BLjs.printJson.call(void 0, {
197
197
  rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
198
198
  });
199
199
  return;
@@ -436,7 +436,7 @@ async function handleCsvRenderStart(options) {
436
436
  if (log) {
437
437
  detail = `
438
438
  CSV render log:
439
- ${_chunkD7SELX66js.clip.call(void 0, log, 2e3)}`;
439
+ ${_chunkSNENR3BLjs.clip.call(void 0, log, 2e3)}`;
440
440
  }
441
441
  } catch (e7) {
442
442
  }
@@ -487,7 +487,7 @@ async function handleCsvRenderStatus(options) {
487
487
  if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
488
488
  if (payload.url) lines.push(`Render URL: ${payload.url}`);
489
489
  lines.push(`Render Health: ${payload.health_status}`);
490
- _chunkD7SELX66js.printCommandEnvelope.call(void 0, payload, {
490
+ _chunkSNENR3BLjs.printCommandEnvelope.call(void 0, payload, {
491
491
  json: options.json,
492
492
  text: `${lines.join("\n")}
493
493
  `
@@ -523,7 +523,7 @@ async function handleCsvRenderStop(options) {
523
523
  };
524
524
  const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
525
525
  ` : "No running CSV render process found.\n";
526
- _chunkD7SELX66js.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
526
+ _chunkSNENR3BLjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
527
527
  }
528
528
  async function handleCsvRender(action, options) {
529
529
  const normalized = _nullishCoalesce(action, () => ( "start"));
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  DeeplineClient,
6
6
  planCustomerDbQuery
7
- } from "./chunk-JNQECSK5.mjs";
7
+ } from "./chunk-THO6F53F.mjs";
8
8
  import "./chunk-6IKARAYD.mjs";
9
9
  import "./chunk-CBVIJSHF.mjs";
10
10
  import {
@@ -16,15 +16,15 @@ import {
16
16
  printCommandEnvelope,
17
17
  recordRows,
18
18
  shouldEmitJson
19
- } from "./chunk-K4V4FX76.mjs";
19
+ } from "./chunk-S3MDB6SI.mjs";
20
20
  import {
21
21
  CustomerDbQueryOutcomeUnknownError
22
- } from "./chunk-OCX5D2WI.mjs";
22
+ } from "./chunk-EZUGGC5A.mjs";
23
23
  import "./chunk-DLIRSHV6.mjs";
24
24
  import {
25
25
  DeeplineError
26
26
  } from "./chunk-NXGCO4JB.mjs";
27
- import "./chunk-GD2VVYGB.mjs";
27
+ import "./chunk-GHZUH33K.mjs";
28
28
  import "./chunk-WZYKRD7T.mjs";
29
29
  import "./chunk-KRD6H754.mjs";
30
30