deepline 0.3.265 → 0.3.266

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.265',
203
+ version: '0.3.266',
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: {
@@ -316,7 +316,8 @@ const POSTGRES_SCHEDULER_SCHEMA_INIT_STATEMENT_TIMEOUT_MS = 60_000;
316
316
  // The concurrent build lets retention skip already-scrubbed history.
317
317
  // v53 refreshes the indexed runtime log reconciliation projection. Its query
318
318
  // indexes remain operator-prepared concurrently, outside shared bootstrap.
319
- export const POSTGRES_SCHEDULER_SCHEMA_VERSION = 53;
319
+ // v54 expands the optional per-run canonical event-store marker.
320
+ export const POSTGRES_SCHEDULER_SCHEMA_VERSION = 54;
320
321
  const POSTGRES_SCHEDULER_SCHEMA_MIGRATIONS_TABLE =
321
322
  'scheduler_schema_migrations';
322
323
  export const POSTGRES_SCHEDULER_OPEN_RECOVERY_INDEX =
@@ -1785,6 +1786,11 @@ export async function hasCurrentPostgresSchedulerSchemaShape(
1785
1786
  WHERE table_schema = $1 AND table_name = 'runs'
1786
1787
  AND column_name = 'run_log_store' AND is_nullable = 'YES'
1787
1788
  )
1789
+ AND EXISTS (
1790
+ SELECT 1 FROM information_schema.columns
1791
+ WHERE table_schema = $1 AND table_name = 'runs'
1792
+ AND column_name = 'run_event_store' AND is_nullable = 'YES'
1793
+ )
1788
1794
  AND (
1789
1795
  SELECT count(*) FROM information_schema.columns
1790
1796
  WHERE table_schema = $1 AND table_name = 'attempts'
@@ -2115,7 +2121,8 @@ async function ensurePostgresSchedulerRunLogStorageExpansion(
2115
2121
  options?: Pick<PostgresSchedulerOptions, 'schema'>,
2116
2122
  ): Promise<void> {
2117
2123
  await client.query(`ALTER TABLE ${tableName('runs', options)}
2118
- ADD COLUMN IF NOT EXISTS run_log_store text`);
2124
+ ADD COLUMN IF NOT EXISTS run_log_store text,
2125
+ ADD COLUMN IF NOT EXISTS run_event_store text`);
2119
2126
  await client.query(`ALTER TABLE ${tableName('attempts', options)}
2120
2127
  ADD COLUMN IF NOT EXISTS runner_result_digest text,
2121
2128
  ADD COLUMN IF NOT EXISTS runner_log_payload_json jsonb`);
@@ -589,6 +589,17 @@ export async function ensureRuntimeEventSearchSchema(
589
589
  CONSTRAINT runtime_events_message_size CHECK (message IS NULL OR octet_length(message) <= 8192)
590
590
  )
591
591
  `);
592
+ // Forward-only expansion: existing rows stay NULL and are never copied or
593
+ // assigned a synthetic event order.
594
+ await client.query(
595
+ `ALTER TABLE runtime_observability.events ADD COLUMN IF NOT EXISTS event_seq bigint, ADD COLUMN IF NOT EXISTS event_payload jsonb`,
596
+ );
597
+ await client.query(
598
+ `CREATE SEQUENCE IF NOT EXISTS runtime_observability.runtime_event_order_seq AS bigint`,
599
+ );
600
+ await client.query(
601
+ `REVOKE ALL ON SEQUENCE runtime_observability.runtime_event_order_seq FROM PUBLIC`,
602
+ );
592
603
  await client.query(
593
604
  `ALTER TABLE runtime_observability.events ADD COLUMN IF NOT EXISTS log_seq bigint`,
594
605
  );
@@ -1562,6 +1573,13 @@ export async function hasRuntimeEventSearchShape(
1562
1573
  AND EXISTS (SELECT 1 FROM pg_attribute
1563
1574
  WHERE attrelid = to_regclass('runtime_observability.events')
1564
1575
  AND attname = 'log_seq' AND NOT attisdropped)
1576
+ AND EXISTS (SELECT 1 FROM pg_attribute
1577
+ WHERE attrelid = to_regclass('runtime_observability.events')
1578
+ AND attname = 'event_seq' AND NOT attisdropped)
1579
+ AND EXISTS (SELECT 1 FROM pg_attribute
1580
+ WHERE attrelid = to_regclass('runtime_observability.events')
1581
+ AND attname = 'event_payload' AND NOT attisdropped)
1582
+ AND to_regclass('runtime_observability.runtime_event_order_seq') IS NOT NULL
1565
1583
  AND EXISTS (SELECT 1 FROM pg_attribute
1566
1584
  WHERE attrelid = to_regclass('runtime_observability.events')
1567
1585
  AND attname = 'log_body' AND NOT attisdropped)
package/dist/cli/index.js CHANGED
@@ -3512,7 +3512,7 @@ var SDK_RELEASE = {
3512
3512
  // getters keep their established compatibility behavior.
3513
3513
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
3514
3514
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
3515
- version: "0.3.265",
3515
+ version: "0.3.266",
3516
3516
  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.",
3517
3517
  packageCapabilities: {
3518
3518
  updatePreferences: 1
@@ -3507,7 +3507,7 @@ var SDK_RELEASE = {
3507
3507
  // getters keep their established compatibility behavior.
3508
3508
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
3509
3509
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
3510
- version: "0.3.265",
3510
+ version: "0.3.266",
3511
3511
  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.",
3512
3512
  packageCapabilities: {
3513
3513
  updatePreferences: 1
package/dist/index.js CHANGED
@@ -1325,7 +1325,7 @@ var SDK_RELEASE = {
1325
1325
  // getters keep their established compatibility behavior.
1326
1326
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
1327
1327
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
1328
- version: "0.3.265",
1328
+ version: "0.3.266",
1329
1329
  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.",
1330
1330
  packageCapabilities: {
1331
1331
  updatePreferences: 1
package/dist/index.mjs CHANGED
@@ -1229,7 +1229,7 @@ var SDK_RELEASE = {
1229
1229
  // getters keep their established compatibility behavior.
1230
1230
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
1231
1231
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
1232
- version: "0.3.265",
1232
+ version: "0.3.266",
1233
1233
  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.",
1234
1234
  packageCapabilities: {
1235
1235
  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.265";
152
+ readonly version: "0.3.266";
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.265";
152
+ readonly version: "0.3.266";
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.265",
77
+ version: "0.3.266",
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.265",
51
+ version: "0.3.266",
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.265",
3
+ "version": "0.3.266",
4
4
  "description": "GTM data CLI and TypeScript SDK for coding agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://code.deepline.com",