deepline 0.3.131 → 0.3.132

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.131',
203
+ version: '0.3.132',
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: {
@@ -9461,6 +9461,7 @@ export class PlayContextImpl implements ScalarPlayAuthoringRuntimeContext {
9461
9461
  totalRows: totalInputCount,
9462
9462
  completedRowKeys,
9463
9463
  pendingRowKeys,
9464
+ failedRowsCount: 0,
9464
9465
  startedAt: Date.now(),
9465
9466
  updatedAt: Date.now(),
9466
9467
  });
@@ -10159,6 +10160,7 @@ export class PlayContextImpl implements ScalarPlayAuthoringRuntimeContext {
10159
10160
  let liveFrameSets: {
10160
10161
  completedRowKeys: Set<string>;
10161
10162
  pendingRowKeys: Set<string>;
10163
+ failedRowsCount: number;
10162
10164
  } | null = null;
10163
10165
  let lastFrameFlushAt = 0;
10164
10166
  let rowsSinceFrameFlush = 0;
@@ -10181,6 +10183,10 @@ export class PlayContextImpl implements ScalarPlayAuthoringRuntimeContext {
10181
10183
  liveFrameSets ??= {
10182
10184
  completedRowKeys: new Set(existing.completedRowKeys),
10183
10185
  pendingRowKeys: new Set(existing.pendingRowKeys),
10186
+ // Failure counts are explicit row outcomes, not the complement of the
10187
+ // live key sets. The sets may be intentionally sparse for a fed map
10188
+ // and may lag the durable row writer while a batch is in flight.
10189
+ failedRowsCount: 0,
10184
10190
  };
10185
10191
  const { completedRowKeys, pendingRowKeys } = liveFrameSets;
10186
10192
  const completedBefore = completedRowKeys.size;
@@ -10211,6 +10217,7 @@ export class PlayContextImpl implements ScalarPlayAuthoringRuntimeContext {
10211
10217
  if (input.failedRowKey?.trim()) {
10212
10218
  pendingRowKeys.delete(input.failedRowKey.trim());
10213
10219
  }
10220
+ liveFrameSets.failedRowsCount += Math.max(0, input.failedDelta ?? 0);
10214
10221
  rowsSinceFrameFlush += completedRowKeys.size - completedBefore;
10215
10222
 
10216
10223
  const isTransition =
@@ -10246,14 +10253,14 @@ export class PlayContextImpl implements ScalarPlayAuthoringRuntimeContext {
10246
10253
  pendingRowsCount: pendingRowKeys.size,
10247
10254
  failedRowsCount:
10248
10255
  liveNumber(runtimeOptions?.progressFailedOffset, 0) +
10249
- Math.max(
10250
- 0,
10251
- items.length - completedRowKeys.size - pendingRowKeys.size,
10252
- ),
10256
+ liveFrameSets.failedRowsCount,
10253
10257
  }
10254
10258
  : {
10255
10259
  completedRowKeys: [...completedRowKeys],
10256
10260
  pendingRowKeys: [...pendingRowKeys],
10261
+ failedRowsCount:
10262
+ liveNumber(runtimeOptions?.progressFailedOffset, 0) +
10263
+ liveFrameSets.failedRowsCount,
10257
10264
  }),
10258
10265
  ...(input.activeBoundaryId !== undefined
10259
10266
  ? { activeBoundaryId: input.activeBoundaryId }
@@ -10271,7 +10278,7 @@ export class PlayContextImpl implements ScalarPlayAuthoringRuntimeContext {
10271
10278
  const failedRows = Math.max(
10272
10279
  0,
10273
10280
  liveNumber(runtimeOptions?.progressFailedOffset, 0) +
10274
- (items.length - completedRowKeys.size - pendingRowKeys.size),
10281
+ liveFrameSets.failedRowsCount,
10275
10282
  );
10276
10283
  this.emitExecutionEvent({
10277
10284
  type: progressEventType,
@@ -10616,7 +10623,7 @@ export class PlayContextImpl implements ScalarPlayAuthoringRuntimeContext {
10616
10623
  rowKey,
10617
10624
  normalizedTableNamespace,
10618
10625
  );
10619
- updateMapFrameProgress({ failedRowKey: rowKey });
10626
+ updateMapFrameProgress({ failedDelta: 1, failedRowKey: rowKey });
10620
10627
  });
10621
10628
  return FAILED_ROW;
10622
10629
  } finally {
@@ -10799,6 +10806,7 @@ export class PlayContextImpl implements ScalarPlayAuthoringRuntimeContext {
10799
10806
  }
10800
10807
  const fieldName = rowContext.getStore()?.fieldName;
10801
10808
  updateMapFrameProgress({
10809
+ failedDelta: 1,
10802
10810
  status: 'failed',
10803
10811
  emitEventType: 'map.failed',
10804
10812
  });
@@ -39,6 +39,7 @@ export class MapExecutionFrameStore {
39
39
  totalRows: number;
40
40
  completedRowKeys: readonly string[];
41
41
  pendingRowKeys: readonly string[];
42
+ failedRows?: number;
42
43
  }): void {
43
44
  const now = Date.now();
44
45
  this.set({
@@ -50,6 +51,7 @@ export class MapExecutionFrameStore {
50
51
  totalRows: input.totalRows,
51
52
  completedRowKeys: [...input.completedRowKeys],
52
53
  pendingRowKeys: [...input.pendingRowKeys],
54
+ failedRowsCount: Math.max(0, input.failedRows ?? 0),
53
55
  startedAt: now,
54
56
  updatedAt: now,
55
57
  });
@@ -72,6 +74,7 @@ export class MapExecutionFrameStore {
72
74
  status?: MapExecutionFrame['status'];
73
75
  completedRowKey?: string | null;
74
76
  pendingRowKey?: string | null;
77
+ failedDelta?: number;
75
78
  activeBoundaryId?: string | null;
76
79
  emitEventType?: PlayExecutionEvent['type'];
77
80
  }): void {
@@ -91,11 +94,16 @@ export class MapExecutionFrameStore {
91
94
  if (input.pendingRowKey?.trim()) {
92
95
  pendingRowKeys.add(input.pendingRowKey.trim());
93
96
  }
97
+ const failedRowsCount = Math.max(
98
+ 0,
99
+ (existing.failedRowsCount ?? 0) + Math.max(0, input.failedDelta ?? 0),
100
+ );
94
101
  const nextFrame: MapExecutionFrame = {
95
102
  ...existing,
96
103
  status: input.status ?? existing.status,
97
104
  completedRowKeys: [...completedRowKeys],
98
105
  pendingRowKeys: [...pendingRowKeys],
106
+ failedRowsCount,
99
107
  ...(input.activeBoundaryId !== undefined
100
108
  ? { activeBoundaryId: input.activeBoundaryId }
101
109
  : {}),
@@ -113,12 +121,7 @@ export class MapExecutionFrameStore {
113
121
  logicalNamespace: input.scope.logicalNamespace,
114
122
  artifactTableNamespace: input.scope.artifactTableNamespace,
115
123
  completedRows: nextFrame.completedRowKeys.length,
116
- failedRows: Math.max(
117
- 0,
118
- input.totalRows -
119
- nextFrame.completedRowKeys.length -
120
- nextFrame.pendingRowKeys.length,
121
- ),
124
+ failedRows: failedRowsCount,
122
125
  totalRows: input.totalRows,
123
126
  at: Date.now(),
124
127
  } as PlayExecutionEvent);
package/dist/cli/index.js CHANGED
@@ -3068,7 +3068,7 @@ var SDK_RELEASE = {
3068
3068
  // getters keep their established compatibility behavior.
3069
3069
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
3070
3070
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
3071
- version: "0.3.131",
3071
+ version: "0.3.132",
3072
3072
  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.",
3073
3073
  packageCapabilities: {
3074
3074
  updatePreferences: 1
@@ -3063,7 +3063,7 @@ var SDK_RELEASE = {
3063
3063
  // getters keep their established compatibility behavior.
3064
3064
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
3065
3065
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
3066
- version: "0.3.131",
3066
+ version: "0.3.132",
3067
3067
  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.",
3068
3068
  packageCapabilities: {
3069
3069
  updatePreferences: 1
package/dist/index.js CHANGED
@@ -864,7 +864,7 @@ var SDK_RELEASE = {
864
864
  // getters keep their established compatibility behavior.
865
865
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
866
866
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
867
- version: "0.3.131",
867
+ version: "0.3.132",
868
868
  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.",
869
869
  packageCapabilities: {
870
870
  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.131",
771
+ version: "0.3.132",
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.131";
152
+ readonly version: "0.3.132";
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.131";
152
+ readonly version: "0.3.132";
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.131",
77
+ version: "0.3.132",
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.131",
51
+ version: "0.3.132",
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.131",
3
+ "version": "0.3.132",
4
4
  "description": "GTM data CLI and TypeScript SDK for coding agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://code.deepline.com",