deepline 0.3.102 → 0.3.103

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.
@@ -200,7 +200,7 @@ export const SDK_RELEASE = {
200
200
  // getters keep their established compatibility behavior.
201
201
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
202
202
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
203
- version: '0.3.102',
203
+ version: '0.3.103',
204
204
  updateSummary:
205
205
  'Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.',
206
206
  packageCapabilities: {
package/dist/cli/index.js CHANGED
@@ -1298,7 +1298,7 @@ var SDK_RELEASE = {
1298
1298
  // getters keep their established compatibility behavior.
1299
1299
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
1300
1300
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
1301
- version: "0.3.102",
1301
+ version: "0.3.103",
1302
1302
  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.",
1303
1303
  packageCapabilities: {
1304
1304
  updatePreferences: 1
@@ -42641,24 +42641,27 @@ var CapabilityDescription = class _CapabilityDescription {
42641
42641
  const canonicalUsd = numberValue(
42642
42642
  pricing.usdPerUnit ?? pricing.usd_per_unit
42643
42643
  );
42644
+ const billingSource = stringValue4(
42645
+ this.#catalogEntry.billingSource ?? this.#catalogEntry.billing_source
42646
+ );
42647
+ const billingSourceLabel = stringValue4(
42648
+ this.#catalogEntry.billingSourceLabel ?? this.#catalogEntry.billing_source_label
42649
+ );
42650
+ const isFree = billingSource === "free";
42644
42651
  return {
42645
42652
  pricingModel: pricingModel || null,
42646
42653
  unit: unit || null,
42647
- displayText: stringValue4(pricing.displayText ?? pricing.display_text),
42648
- summary: stringValue4(pricing.summary),
42654
+ displayText: isFree ? "Free" : stringValue4(pricing.displayText ?? pricing.display_text),
42655
+ summary: isFree ? null : stringValue4(pricing.summary),
42649
42656
  billingMode: stringValue4(
42650
42657
  legacyCost.billingMode ?? legacyCost.billing_mode
42651
42658
  ),
42652
- billingSource: stringValue4(
42653
- this.#catalogEntry.billingSource ?? this.#catalogEntry.billing_source
42654
- ),
42655
- billingSourceLabel: stringValue4(
42656
- this.#catalogEntry.billingSourceLabel ?? this.#catalogEntry.billing_source_label
42657
- ),
42658
- deeplineCreditsPerPricingUnit: canonicalCredits ?? numberValue(
42659
+ billingSource,
42660
+ billingSourceLabel,
42661
+ deeplineCreditsPerPricingUnit: isFree ? 0 : canonicalCredits ?? numberValue(
42659
42662
  this.#catalogEntry.deeplineCreditsPerPricingUnit ?? this.#catalogEntry.deepline_credits_per_pricing_unit
42660
42663
  ),
42661
- deeplineUsdPerPricingUnit: canonicalUsd ?? numberValue(
42664
+ deeplineUsdPerPricingUnit: isFree ? 0 : canonicalUsd ?? numberValue(
42662
42665
  this.#catalogEntry.deeplineUsdPerPricingUnit ?? this.#catalogEntry.deepline_usd_per_pricing_unit
42663
42666
  )
42664
42667
  };
@@ -43871,7 +43874,7 @@ function printToolPricingOnly(tool, requestedToolId, options = {}) {
43871
43874
  const contract = toolContractJsonForDescribe(tool, requestedToolId);
43872
43875
  const cost = isRecord12(contract.cost) ? contract.cost : {};
43873
43876
  const pricingModel = stringField2(cost, "pricingModel") || "unknown";
43874
- const billing = stringField2(cost, "billingMode") || stringField2(cost, "billingSourceLabel") || stringField2(cost, "billingSource") || "unknown";
43877
+ const billing = stringField2(cost, "billingSourceLabel") || stringField2(cost, "billingSource") || stringField2(cost, "billingMode") || "unknown";
43875
43878
  const explicitUnit = stringField2(cost, "unit");
43876
43879
  const unit = explicitUnit || (pricingModel === "per_page" ? "page" : pricingModel === "per_result" ? "result" : pricingModel === "fixed" ? "call" : pricingModel.replace(/^per_/, "") || "unit");
43877
43880
  const credits = numberField2(cost, "deeplineCreditsPerPricingUnit");
@@ -44144,6 +44147,9 @@ function listedToolDescription(tool) {
44144
44147
  }
44145
44148
  function formatListedToolCost(tool) {
44146
44149
  const record3 = tool;
44150
+ if (stringField2(record3, "billingSource", "billing_source") === "free") {
44151
+ return "Cost: Free";
44152
+ }
44147
44153
  const pricing = recordField2(record3, "pricing");
44148
44154
  const displayText = stringField2(pricing, "displayText", "display_text");
44149
44155
  return displayText ? `Cost: ${displayText}` : "";
@@ -1271,7 +1271,7 @@ var SDK_RELEASE = {
1271
1271
  // getters keep their established compatibility behavior.
1272
1272
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
1273
1273
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
1274
- version: "0.3.102",
1274
+ version: "0.3.103",
1275
1275
  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.",
1276
1276
  packageCapabilities: {
1277
1277
  updatePreferences: 1
@@ -42762,24 +42762,27 @@ var CapabilityDescription = class _CapabilityDescription {
42762
42762
  const canonicalUsd = numberValue(
42763
42763
  pricing.usdPerUnit ?? pricing.usd_per_unit
42764
42764
  );
42765
+ const billingSource = stringValue4(
42766
+ this.#catalogEntry.billingSource ?? this.#catalogEntry.billing_source
42767
+ );
42768
+ const billingSourceLabel = stringValue4(
42769
+ this.#catalogEntry.billingSourceLabel ?? this.#catalogEntry.billing_source_label
42770
+ );
42771
+ const isFree = billingSource === "free";
42765
42772
  return {
42766
42773
  pricingModel: pricingModel || null,
42767
42774
  unit: unit || null,
42768
- displayText: stringValue4(pricing.displayText ?? pricing.display_text),
42769
- summary: stringValue4(pricing.summary),
42775
+ displayText: isFree ? "Free" : stringValue4(pricing.displayText ?? pricing.display_text),
42776
+ summary: isFree ? null : stringValue4(pricing.summary),
42770
42777
  billingMode: stringValue4(
42771
42778
  legacyCost.billingMode ?? legacyCost.billing_mode
42772
42779
  ),
42773
- billingSource: stringValue4(
42774
- this.#catalogEntry.billingSource ?? this.#catalogEntry.billing_source
42775
- ),
42776
- billingSourceLabel: stringValue4(
42777
- this.#catalogEntry.billingSourceLabel ?? this.#catalogEntry.billing_source_label
42778
- ),
42779
- deeplineCreditsPerPricingUnit: canonicalCredits ?? numberValue(
42780
+ billingSource,
42781
+ billingSourceLabel,
42782
+ deeplineCreditsPerPricingUnit: isFree ? 0 : canonicalCredits ?? numberValue(
42780
42783
  this.#catalogEntry.deeplineCreditsPerPricingUnit ?? this.#catalogEntry.deepline_credits_per_pricing_unit
42781
42784
  ),
42782
- deeplineUsdPerPricingUnit: canonicalUsd ?? numberValue(
42785
+ deeplineUsdPerPricingUnit: isFree ? 0 : canonicalUsd ?? numberValue(
42783
42786
  this.#catalogEntry.deeplineUsdPerPricingUnit ?? this.#catalogEntry.deepline_usd_per_pricing_unit
42784
42787
  )
42785
42788
  };
@@ -43992,7 +43995,7 @@ function printToolPricingOnly(tool, requestedToolId, options = {}) {
43992
43995
  const contract = toolContractJsonForDescribe(tool, requestedToolId);
43993
43996
  const cost = isRecord12(contract.cost) ? contract.cost : {};
43994
43997
  const pricingModel = stringField2(cost, "pricingModel") || "unknown";
43995
- const billing = stringField2(cost, "billingMode") || stringField2(cost, "billingSourceLabel") || stringField2(cost, "billingSource") || "unknown";
43998
+ const billing = stringField2(cost, "billingSourceLabel") || stringField2(cost, "billingSource") || stringField2(cost, "billingMode") || "unknown";
43996
43999
  const explicitUnit = stringField2(cost, "unit");
43997
44000
  const unit = explicitUnit || (pricingModel === "per_page" ? "page" : pricingModel === "per_result" ? "result" : pricingModel === "fixed" ? "call" : pricingModel.replace(/^per_/, "") || "unit");
43998
44001
  const credits = numberField2(cost, "deeplineCreditsPerPricingUnit");
@@ -44265,6 +44268,9 @@ function listedToolDescription(tool) {
44265
44268
  }
44266
44269
  function formatListedToolCost(tool) {
44267
44270
  const record3 = tool;
44271
+ if (stringField2(record3, "billingSource", "billing_source") === "free") {
44272
+ return "Cost: Free";
44273
+ }
44268
44274
  const pricing = recordField2(record3, "pricing");
44269
44275
  const displayText = stringField2(pricing, "displayText", "display_text");
44270
44276
  return displayText ? `Cost: ${displayText}` : "";
package/dist/index.js CHANGED
@@ -860,7 +860,7 @@ var SDK_RELEASE = {
860
860
  // getters keep their established compatibility behavior.
861
861
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
862
862
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
863
- version: "0.3.102",
863
+ version: "0.3.103",
864
864
  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.",
865
865
  packageCapabilities: {
866
866
  updatePreferences: 1
package/dist/index.mjs CHANGED
@@ -768,7 +768,7 @@ var SDK_RELEASE = {
768
768
  // getters keep their established compatibility behavior.
769
769
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
770
770
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
771
- version: "0.3.102",
771
+ version: "0.3.103",
772
772
  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.",
773
773
  packageCapabilities: {
774
774
  updatePreferences: 1
@@ -149,7 +149,7 @@ type SdkRelease = {
149
149
  supportPolicy: SdkSupportPolicy;
150
150
  };
151
151
  declare const SDK_RELEASE: {
152
- readonly version: "0.3.102";
152
+ readonly version: "0.3.103";
153
153
  readonly 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.";
154
154
  readonly packageCapabilities: {
155
155
  readonly updatePreferences: 1;
package/dist/release.d.ts CHANGED
@@ -149,7 +149,7 @@ type SdkRelease = {
149
149
  supportPolicy: SdkSupportPolicy;
150
150
  };
151
151
  declare const SDK_RELEASE: {
152
- readonly version: "0.3.102";
152
+ readonly version: "0.3.103";
153
153
  readonly 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.";
154
154
  readonly packageCapabilities: {
155
155
  readonly updatePreferences: 1;
package/dist/release.js CHANGED
@@ -74,7 +74,7 @@ var SDK_RELEASE = {
74
74
  // getters keep their established compatibility behavior.
75
75
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
76
76
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
77
- version: "0.3.102",
77
+ version: "0.3.103",
78
78
  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.",
79
79
  packageCapabilities: {
80
80
  updatePreferences: 1
package/dist/release.mjs CHANGED
@@ -48,7 +48,7 @@ var SDK_RELEASE = {
48
48
  // getters keep their established compatibility behavior.
49
49
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
50
50
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
51
- version: "0.3.102",
51
+ version: "0.3.103",
52
52
  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.",
53
53
  packageCapabilities: {
54
54
  updatePreferences: 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.3.102",
3
+ "version": "0.3.103",
4
4
  "description": "GTM data CLI and TypeScript SDK for coding agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://code.deepline.com",