deepline 0.3.199 → 0.3.200

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.199',
203
+ version: '0.3.200',
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: {
@@ -70,6 +70,7 @@ import {
70
70
  type DocflowObservationRecord,
71
71
  type DocflowObservationUpsert,
72
72
  } from '../docflow-observation';
73
+ import { normalizePlayDocflowNodeIoState } from '../docflow-node-io';
73
74
  import {
74
75
  workReceiptFailureKindCodeForWrite,
75
76
  workReceiptFailureKindFromCode,
@@ -16539,6 +16540,21 @@ export async function markPostgresSchedulerOutboxDelivered(
16539
16540
  return result.rows.length;
16540
16541
  }
16541
16542
 
16543
+ function normalizeOutboxIngressPreview(
16544
+ event: PlayRunLedgerIngressEvent,
16545
+ ): PlayRunLedgerIngressEvent {
16546
+ if (event.type !== 'step.progress' && event.key !== 'step.progress') {
16547
+ return event;
16548
+ }
16549
+ const progress = recordPayload(event.progress);
16550
+ if (!progress || !('nodeIo' in progress)) return event;
16551
+ const nodeIo = normalizePlayDocflowNodeIoState(progress.nodeIo);
16552
+ if (!nodeIo) return event;
16553
+ // Old outbox rows can be delivered to their launch-pinned app deployment.
16554
+ // Make their previews Convex-safe before crossing that older API boundary.
16555
+ return { ...event, progress: { ...progress, nodeIo } };
16556
+ }
16557
+
16542
16558
  export function buildRunLedgerEventsFromPostgresSchedulerOutbox(
16543
16559
  event: PostgresSchedulerOutboxEvent,
16544
16560
  ): PlayRunLedgerIngressEvent[] {
@@ -16565,7 +16581,9 @@ export function buildRunLedgerEventsFromPostgresSchedulerOutbox(
16565
16581
  }
16566
16582
  // Preserve event time, source, opaque payloads and positional log identity;
16567
16583
  // the outbox timestamp orders delivery, not the customer's execution trace.
16568
- return events as AcceptedPlayRunLedgerEvent[];
16584
+ return (events as AcceptedPlayRunLedgerEvent[]).map(
16585
+ normalizeOutboxIngressPreview,
16586
+ );
16569
16587
  }
16570
16588
  if (event.eventType === 'run.started') {
16571
16589
  return [
@@ -16588,7 +16606,7 @@ export function buildRunLedgerEventsFromPostgresSchedulerOutbox(
16588
16606
  const lines = stringArrayPayloadField(event.payload, 'terminalLogLines');
16589
16607
  const resultSummary = payloadField(event.payload, 'resultSummary');
16590
16608
  return [
16591
- ...progressEvents,
16609
+ ...progressEvents.map(normalizeOutboxIngressPreview),
16592
16610
  ...(lines.length === 0
16593
16611
  ? []
16594
16612
  : [
@@ -16626,7 +16644,7 @@ export function buildRunLedgerEventsFromPostgresSchedulerOutbox(
16626
16644
  );
16627
16645
  const resultSummary = payloadField(event.payload, 'resultSummary');
16628
16646
  return [
16629
- ...progressEvents,
16647
+ ...progressEvents.map(normalizeOutboxIngressPreview),
16630
16648
  ...(lines.length === 0
16631
16649
  ? []
16632
16650
  : [
package/dist/cli/index.js CHANGED
@@ -3051,7 +3051,7 @@ var SDK_RELEASE = {
3051
3051
  // getters keep their established compatibility behavior.
3052
3052
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
3053
3053
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
3054
- version: "0.3.199",
3054
+ version: "0.3.200",
3055
3055
  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.",
3056
3056
  packageCapabilities: {
3057
3057
  updatePreferences: 1
@@ -3046,7 +3046,7 @@ var SDK_RELEASE = {
3046
3046
  // getters keep their established compatibility behavior.
3047
3047
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
3048
3048
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
3049
- version: "0.3.199",
3049
+ version: "0.3.200",
3050
3050
  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.",
3051
3051
  packageCapabilities: {
3052
3052
  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.199",
867
+ version: "0.3.200",
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.199",
771
+ version: "0.3.200",
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.199";
152
+ readonly version: "0.3.200";
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.199";
152
+ readonly version: "0.3.200";
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.199",
77
+ version: "0.3.200",
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.199",
51
+ version: "0.3.200",
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.199",
3
+ "version": "0.3.200",
4
4
  "description": "GTM data CLI and TypeScript SDK for coding agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://code.deepline.com",