deepline 0.2.24 → 0.2.25

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.
@@ -160,7 +160,7 @@ export const SDK_RELEASE = {
160
160
  // 0.2.0 makes Dataset Handles uniformly async-only after 0.1.320 briefly
161
161
  // exposed storage-dependent synchronous access. This deliberate minor
162
162
  // release keeps lazy paging semantics independent of row residency.
163
- version: '0.2.24',
163
+ version: '0.2.25',
164
164
  contracts: {
165
165
  api: {
166
166
  name: 'sdk-http-api',
package/dist/cli/index.js CHANGED
@@ -1044,7 +1044,7 @@ var SDK_RELEASE = {
1044
1044
  // 0.2.0 makes Dataset Handles uniformly async-only after 0.1.320 briefly
1045
1045
  // exposed storage-dependent synchronous access. This deliberate minor
1046
1046
  // release keeps lazy paging semantics independent of row residency.
1047
- version: "0.2.24",
1047
+ version: "0.2.25",
1048
1048
  contracts: {
1049
1049
  api: {
1050
1050
  name: "sdk-http-api",
@@ -7832,11 +7832,14 @@ async function handleUsage(options) {
7832
7832
  `Last 30 days usage: ${last30Usage ?? "(unknown)"}`,
7833
7833
  ...Number.isFinite(temporaryHolds) && temporaryHolds > 0 ? [`Temporary holds: ${temporaryHolds}`] : [],
7834
7834
  `Monthly limit: ${quota.enabled ? quota.monthly_credits_limit ?? "(unknown)" : "off"}`,
7835
+ ...options.runId && recent.run_id ? [
7836
+ `Run spend: ${(payload.run ?? {}).spent_credits ?? "(unknown)"} Deepline Credits`
7837
+ ] : [],
7835
7838
  ...recentUsageLines(
7836
7839
  Array.isArray(recent.entries) ? recent.entries : []
7837
7840
  ),
7838
7841
  ...typeof recent.next_cursor === "string" && recent.next_cursor.length > 0 ? [
7839
- `Next page: deepline billing usage --cursor ${recent.next_cursor}${options.limit ? ` --limit ${options.limit}` : ""}`
7842
+ `Next page: deepline billing usage --cursor ${recent.next_cursor}${options.limit ? ` --limit ${options.limit}` : ""}${options.runId ? ` --run-id ${options.runId}` : ""}`
7840
7843
  ] : []
7841
7844
  ];
7842
7845
  printCommandEnvelope(
@@ -7991,7 +7994,7 @@ async function handleLedgerExportAll(options) {
7991
7994
  summary = summarizeLedgerRows(summary, rows);
7992
7995
  }
7993
7996
  const nextCursor = typeof payload.next_cursor === "string" && payload.next_cursor.length > 0 ? payload.next_cursor : null;
7994
- if (rows.length === 0 || payload.has_more !== true || nextCursor === null) {
7997
+ if (payload.has_more !== true || nextCursor === null) {
7995
7998
  break;
7996
7999
  }
7997
8000
  if (nextCursor === cursor) break;
@@ -8002,7 +8005,7 @@ async function handleLedgerExportAll(options) {
8002
8005
  output_path: outputPath,
8003
8006
  row_count: summary.row_count,
8004
8007
  net_delta_credits: summary.net_delta_credits,
8005
- scope: "current_auth_context",
8008
+ scope: "workspace",
8006
8009
  ...options.runId ? { run_id: options.runId } : {},
8007
8010
  render: {
8008
8011
  sections: [
@@ -8010,7 +8013,7 @@ async function handleLedgerExportAll(options) {
8010
8013
  title: "billing ledger",
8011
8014
  lines: [
8012
8015
  `Billing ledger written to ${outputPath}`,
8013
- `${summary.row_count} row(s) exported for the current auth context${options.runId ? ` and run ${options.runId}` : ""}.`,
8016
+ `${summary.row_count} row(s) exported for the active workspace${options.runId ? ` and run ${options.runId}` : ""}.`,
8014
8017
  `Net ledger delta: ${summary.net_delta_credits} Deepline Credits`
8015
8018
  ]
8016
8019
  }
@@ -8610,9 +8613,8 @@ Examples:
8610
8613
  "after",
8611
8614
  `
8612
8615
  Notes:
8613
- Read-only. Exports ledger rows for the current auth context. API-key auth is
8614
- scoped by the server to that API key; session auth is scoped to the active
8615
- workspace.
8616
+ Read-only. Exports every ledger row for the active workspace, including rows
8617
+ created without an API key.
8616
8618
 
8617
8619
  Examples:
8618
8620
  deepline billing ledger export all
@@ -8632,7 +8634,7 @@ Examples:
8632
8634
  "after",
8633
8635
  `
8634
8636
  Notes:
8635
- Pages through the ledger for the current auth context, writes CSV locally,
8637
+ Pages through the workspace ledger, writes CSV locally,
8636
8638
  then reports the row count and the net delta computed from delta_credits.
8637
8639
 
8638
8640
  Examples:
@@ -1030,7 +1030,7 @@ var SDK_RELEASE = {
1030
1030
  // 0.2.0 makes Dataset Handles uniformly async-only after 0.1.320 briefly
1031
1031
  // exposed storage-dependent synchronous access. This deliberate minor
1032
1032
  // release keeps lazy paging semantics independent of row residency.
1033
- version: "0.2.24",
1033
+ version: "0.2.25",
1034
1034
  contracts: {
1035
1035
  api: {
1036
1036
  name: "sdk-http-api",
@@ -7830,11 +7830,14 @@ async function handleUsage(options) {
7830
7830
  `Last 30 days usage: ${last30Usage ?? "(unknown)"}`,
7831
7831
  ...Number.isFinite(temporaryHolds) && temporaryHolds > 0 ? [`Temporary holds: ${temporaryHolds}`] : [],
7832
7832
  `Monthly limit: ${quota.enabled ? quota.monthly_credits_limit ?? "(unknown)" : "off"}`,
7833
+ ...options.runId && recent.run_id ? [
7834
+ `Run spend: ${(payload.run ?? {}).spent_credits ?? "(unknown)"} Deepline Credits`
7835
+ ] : [],
7833
7836
  ...recentUsageLines(
7834
7837
  Array.isArray(recent.entries) ? recent.entries : []
7835
7838
  ),
7836
7839
  ...typeof recent.next_cursor === "string" && recent.next_cursor.length > 0 ? [
7837
- `Next page: deepline billing usage --cursor ${recent.next_cursor}${options.limit ? ` --limit ${options.limit}` : ""}`
7840
+ `Next page: deepline billing usage --cursor ${recent.next_cursor}${options.limit ? ` --limit ${options.limit}` : ""}${options.runId ? ` --run-id ${options.runId}` : ""}`
7838
7841
  ] : []
7839
7842
  ];
7840
7843
  printCommandEnvelope(
@@ -7989,7 +7992,7 @@ async function handleLedgerExportAll(options) {
7989
7992
  summary = summarizeLedgerRows(summary, rows);
7990
7993
  }
7991
7994
  const nextCursor = typeof payload.next_cursor === "string" && payload.next_cursor.length > 0 ? payload.next_cursor : null;
7992
- if (rows.length === 0 || payload.has_more !== true || nextCursor === null) {
7995
+ if (payload.has_more !== true || nextCursor === null) {
7993
7996
  break;
7994
7997
  }
7995
7998
  if (nextCursor === cursor) break;
@@ -8000,7 +8003,7 @@ async function handleLedgerExportAll(options) {
8000
8003
  output_path: outputPath,
8001
8004
  row_count: summary.row_count,
8002
8005
  net_delta_credits: summary.net_delta_credits,
8003
- scope: "current_auth_context",
8006
+ scope: "workspace",
8004
8007
  ...options.runId ? { run_id: options.runId } : {},
8005
8008
  render: {
8006
8009
  sections: [
@@ -8008,7 +8011,7 @@ async function handleLedgerExportAll(options) {
8008
8011
  title: "billing ledger",
8009
8012
  lines: [
8010
8013
  `Billing ledger written to ${outputPath}`,
8011
- `${summary.row_count} row(s) exported for the current auth context${options.runId ? ` and run ${options.runId}` : ""}.`,
8014
+ `${summary.row_count} row(s) exported for the active workspace${options.runId ? ` and run ${options.runId}` : ""}.`,
8012
8015
  `Net ledger delta: ${summary.net_delta_credits} Deepline Credits`
8013
8016
  ]
8014
8017
  }
@@ -8608,9 +8611,8 @@ Examples:
8608
8611
  "after",
8609
8612
  `
8610
8613
  Notes:
8611
- Read-only. Exports ledger rows for the current auth context. API-key auth is
8612
- scoped by the server to that API key; session auth is scoped to the active
8613
- workspace.
8614
+ Read-only. Exports every ledger row for the active workspace, including rows
8615
+ created without an API key.
8614
8616
 
8615
8617
  Examples:
8616
8618
  deepline billing ledger export all
@@ -8630,7 +8632,7 @@ Examples:
8630
8632
  "after",
8631
8633
  `
8632
8634
  Notes:
8633
- Pages through the ledger for the current auth context, writes CSV locally,
8635
+ Pages through the workspace ledger, writes CSV locally,
8634
8636
  then reports the row count and the net delta computed from delta_credits.
8635
8637
 
8636
8638
  Examples:
package/dist/index.js CHANGED
@@ -763,7 +763,7 @@ var SDK_RELEASE = {
763
763
  // 0.2.0 makes Dataset Handles uniformly async-only after 0.1.320 briefly
764
764
  // exposed storage-dependent synchronous access. This deliberate minor
765
765
  // release keeps lazy paging semantics independent of row residency.
766
- version: "0.2.24",
766
+ version: "0.2.25",
767
767
  contracts: {
768
768
  api: {
769
769
  name: "sdk-http-api",
package/dist/index.mjs CHANGED
@@ -689,7 +689,7 @@ var SDK_RELEASE = {
689
689
  // 0.2.0 makes Dataset Handles uniformly async-only after 0.1.320 briefly
690
690
  // exposed storage-dependent synchronous access. This deliberate minor
691
691
  // release keeps lazy paging semantics independent of row residency.
692
- version: "0.2.24",
692
+ version: "0.2.25",
693
693
  contracts: {
694
694
  api: {
695
695
  name: "sdk-http-api",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.2.24",
3
+ "version": "0.2.25",
4
4
  "description": "Deepline SDK + CLI — B2B data enrichment powered by durable cloud execution",
5
5
  "license": "MIT",
6
6
  "repository": {