deepline 0.3.254 → 0.3.256

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.254',
203
+ version: '0.3.256',
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: {
@@ -308,7 +308,10 @@ const POSTGRES_SCHEDULER_SCHEMA_INIT_STATEMENT_TIMEOUT_MS = 60_000;
308
308
  // receipt transitions; no existing runtime wire field changes.
309
309
  // v48 expands optional compact-log columns and readers before writer enablement.
310
310
  // v49 installs transactional compact-log writers; only new admissions opt in.
311
- export const POSTGRES_SCHEDULER_SCHEMA_VERSION = 49;
311
+ // v50 adds a partial run-scoped outbox index for projection lease verification.
312
+ // v51 also creates that index in isolated (transactional) bootstraps and makes
313
+ // deploy readiness require it; v50 only built it on the concurrent path.
314
+ export const POSTGRES_SCHEDULER_SCHEMA_VERSION = 51;
312
315
  const POSTGRES_SCHEDULER_SCHEMA_MIGRATIONS_TABLE =
313
316
  'scheduler_schema_migrations';
314
317
  export const POSTGRES_SCHEDULER_OPEN_RECOVERY_INDEX =
@@ -1828,6 +1831,15 @@ export async function hasCurrentPostgresSchedulerSchemaShape(
1828
1831
  AND index_row.indrelid = to_regclass($3)
1829
1832
  AND index_row.indisready AND index_row.indisvalid
1830
1833
  )
1834
+ AND EXISTS (
1835
+ SELECT 1 FROM pg_index AS index_row
1836
+ JOIN pg_class AS index_class ON index_class.oid = index_row.indexrelid
1837
+ JOIN pg_namespace AS index_namespace ON index_namespace.oid = index_class.relnamespace
1838
+ WHERE index_namespace.nspname = $1
1839
+ AND index_class.relname = 'runtime_scheduler_outbox_run_pending_order_idx'
1840
+ AND index_row.indrelid = to_regclass($3)
1841
+ AND index_row.indisready AND index_row.indisvalid
1842
+ )
1831
1843
  AND EXISTS (
1832
1844
  SELECT 1 FROM pg_index AS index_row
1833
1845
  JOIN pg_class AS index_class ON index_class.oid = index_row.indexrelid
@@ -3804,6 +3816,16 @@ export async function ensurePostgresSchedulerSchema(
3804
3816
  ON ${tableName('outbox', options)} (created_at, event_id)
3805
3817
  WHERE delivered_at IS NULL AND failed_at IS NULL
3806
3818
  `);
3819
+ await client.query(`
3820
+ CREATE INDEX IF NOT EXISTS runtime_scheduler_outbox_run_pending_order_idx
3821
+ ON ${tableName('outbox', options)} (
3822
+ run_id,
3823
+ (CASE event_type WHEN 'run.created' THEN 0 WHEN 'run.started' THEN 1 ELSE 2 END),
3824
+ created_at,
3825
+ event_id
3826
+ )
3827
+ WHERE delivered_at IS NULL
3828
+ `);
3807
3829
  await client.query(`
3808
3830
  CREATE INDEX IF NOT EXISTS runtime_scheduler_outbox_lease_health_idx
3809
3831
  ON ${tableName('outbox', options)}
@@ -3935,6 +3957,14 @@ const POSTGRES_SCHEDULER_RUNTIME_ADMIN_INDEXES = [
3935
3957
  definition: `(created_at, event_id)
3936
3958
  WHERE delivered_at IS NULL AND failed_at IS NULL`,
3937
3959
  },
3960
+ {
3961
+ name: 'runtime_scheduler_outbox_run_pending_order_idx',
3962
+ table: 'outbox',
3963
+ definition: `(run_id,
3964
+ (CASE event_type WHEN 'run.created' THEN 0 WHEN 'run.started' THEN 1 ELSE 2 END),
3965
+ created_at, event_id)
3966
+ WHERE delivered_at IS NULL`,
3967
+ },
3938
3968
  {
3939
3969
  name: 'runtime_scheduler_outbox_lease_health_idx',
3940
3970
  table: 'outbox',
package/dist/cli/index.js CHANGED
@@ -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.254",
3510
+ version: "0.3.256",
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
@@ -3502,7 +3502,7 @@ var SDK_RELEASE = {
3502
3502
  // getters keep their established compatibility behavior.
3503
3503
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
3504
3504
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
3505
- version: "0.3.254",
3505
+ version: "0.3.256",
3506
3506
  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.",
3507
3507
  packageCapabilities: {
3508
3508
  updatePreferences: 1
package/dist/index.js CHANGED
@@ -1320,7 +1320,7 @@ var SDK_RELEASE = {
1320
1320
  // getters keep their established compatibility behavior.
1321
1321
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
1322
1322
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
1323
- version: "0.3.254",
1323
+ version: "0.3.256",
1324
1324
  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.",
1325
1325
  packageCapabilities: {
1326
1326
  updatePreferences: 1
package/dist/index.mjs CHANGED
@@ -1224,7 +1224,7 @@ var SDK_RELEASE = {
1224
1224
  // getters keep their established compatibility behavior.
1225
1225
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
1226
1226
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
1227
- version: "0.3.254",
1227
+ version: "0.3.256",
1228
1228
  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.",
1229
1229
  packageCapabilities: {
1230
1230
  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.254";
152
+ readonly version: "0.3.256";
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.254";
152
+ readonly version: "0.3.256";
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.254",
77
+ version: "0.3.256",
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.254",
51
+ version: "0.3.256",
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.254",
3
+ "version": "0.3.256",
4
4
  "description": "GTM data CLI and TypeScript SDK for coding agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://code.deepline.com",