deepline 0.3.108 → 0.3.109

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.108',
203
+ version: '0.3.109',
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: {
@@ -409,26 +409,26 @@ function absurdProjectionQuery(queueTable: string): string {
409
409
  FROM ${table}
410
410
  WHERE state = 'pending' AND available_at <= $1::timestamptz
411
411
  ORDER BY available_at, run_id
412
- LIMIT $3)
412
+ LIMIT $2)
413
413
  UNION ALL
414
414
  (SELECT 'delayed'::text, available_at
415
415
  FROM ${table}
416
416
  WHERE state = 'sleeping'
417
417
  ORDER BY available_at, run_id
418
- LIMIT $3)
418
+ LIMIT $2)
419
419
  UNION ALL
420
420
  (SELECT 'delayed'::text, available_at
421
421
  FROM ${table}
422
422
  WHERE state = 'pending' AND available_at > $1::timestamptz
423
423
  ORDER BY available_at, run_id
424
- LIMIT $3)
424
+ LIMIT $2)
425
425
  UNION ALL
426
426
  (SELECT 'in_flight'::text, coalesce(started_at, created_at)
427
427
  FROM ${table}
428
428
  WHERE state = 'running'
429
429
  AND (claim_expires_at IS NULL OR claim_expires_at > $1::timestamptz)
430
430
  ORDER BY available_at, run_id
431
- LIMIT $3)
431
+ LIMIT $2)
432
432
  UNION ALL
433
433
  (SELECT 'blocked'::text, coalesce(claim_expires_at, started_at, created_at)
434
434
  FROM ${table}
@@ -436,30 +436,30 @@ function absurdProjectionQuery(queueTable: string): string {
436
436
  AND claim_expires_at IS NOT NULL
437
437
  AND claim_expires_at <= $1::timestamptz
438
438
  ORDER BY claim_expires_at, run_id
439
- LIMIT $3)
439
+ LIMIT $2)
440
440
  UNION ALL
441
441
  (SELECT 'dead_lettered'::text, coalesce(failed_at, created_at)
442
442
  FROM ${table}
443
443
  WHERE state = 'failed'
444
444
  ORDER BY available_at, run_id
445
- LIMIT $3)
445
+ LIMIT $2)
446
446
  )
447
447
  SELECT
448
- least(count(*) FILTER (WHERE bucket = 'ready'), $4) AS ready,
449
- least(count(*) FILTER (WHERE bucket = 'delayed'), $4) AS delayed,
450
- least(count(*) FILTER (WHERE bucket = 'in_flight'), $4) AS in_flight,
451
- least(count(*) FILTER (WHERE bucket = 'blocked'), $4) AS blocked,
452
- least(count(*) FILTER (WHERE bucket = 'dead_lettered'), $4) AS dead_lettered,
448
+ least(count(*) FILTER (WHERE bucket = 'ready'), $3) AS ready,
449
+ least(count(*) FILTER (WHERE bucket = 'delayed'), $3) AS delayed,
450
+ least(count(*) FILTER (WHERE bucket = 'in_flight'), $3) AS in_flight,
451
+ least(count(*) FILTER (WHERE bucket = 'blocked'), $3) AS blocked,
452
+ least(count(*) FILTER (WHERE bucket = 'dead_lettered'), $3) AS dead_lettered,
453
453
  max(${intervalExpr('age_at')}) FILTER (WHERE bucket = 'ready') AS oldest_ready_ms,
454
454
  max(${intervalExpr('age_at')}) FILTER (WHERE bucket = 'delayed') AS oldest_delayed_ms,
455
455
  max(${intervalExpr('age_at')}) FILTER (WHERE bucket = 'in_flight') AS oldest_in_flight_ms,
456
456
  max(${intervalExpr('age_at')}) FILTER (WHERE bucket = 'blocked') AS oldest_blocked_ms,
457
457
  max(${intervalExpr('age_at')}) FILTER (WHERE bucket = 'dead_lettered') AS oldest_dead_lettered_ms,
458
- count(*) FILTER (WHERE bucket = 'ready') > $4 AS ready_truncated,
459
- count(*) FILTER (WHERE bucket = 'delayed') > $4 AS delayed_truncated,
460
- count(*) FILTER (WHERE bucket = 'in_flight') > $4 AS in_flight_truncated,
461
- count(*) FILTER (WHERE bucket = 'blocked') > $4 AS blocked_truncated,
462
- count(*) FILTER (WHERE bucket = 'dead_lettered') > $4 AS dead_lettered_truncated,
458
+ count(*) FILTER (WHERE bucket = 'ready') > $3 AS ready_truncated,
459
+ count(*) FILTER (WHERE bucket = 'delayed') > $3 AS delayed_truncated,
460
+ count(*) FILTER (WHERE bucket = 'in_flight') > $3 AS in_flight_truncated,
461
+ count(*) FILTER (WHERE bucket = 'blocked') > $3 AS blocked_truncated,
462
+ count(*) FILTER (WHERE bucket = 'dead_lettered') > $3 AS dead_lettered_truncated,
463
463
  0::bigint AS admitted,
464
464
  0::bigint AS started,
465
465
  0::bigint AS completed,
@@ -493,34 +493,34 @@ function outboxProjectionQuery(schema: string): string {
493
493
  FROM ${table}
494
494
  WHERE delivered_at IS NULL AND failed_at IS NULL
495
495
  ORDER BY coalesce(next_attempt_at, created_at), created_at, event_id
496
- LIMIT $3
496
+ LIMIT $2
497
497
  ), dead_sample AS (
498
498
  SELECT 'dead_lettered'::text AS bucket, coalesce(failed_at, created_at) AS age_at
499
499
  FROM ${table}
500
500
  WHERE delivered_at IS NULL AND failed_at IS NOT NULL
501
501
  ORDER BY failed_at, event_id
502
- LIMIT $3
502
+ LIMIT $2
503
503
  ), sampled AS (
504
504
  SELECT * FROM pending_sample
505
505
  UNION ALL
506
506
  SELECT * FROM dead_sample
507
507
  )
508
508
  SELECT
509
- least(count(*) FILTER (WHERE bucket = 'ready'), $4) AS ready,
510
- least(count(*) FILTER (WHERE bucket = 'delayed'), $4) AS delayed,
511
- least(count(*) FILTER (WHERE bucket = 'in_flight'), $4) AS in_flight,
512
- least(count(*) FILTER (WHERE bucket = 'blocked'), $4) AS blocked,
513
- least(count(*) FILTER (WHERE bucket = 'dead_lettered'), $4) AS dead_lettered,
509
+ least(count(*) FILTER (WHERE bucket = 'ready'), $3) AS ready,
510
+ least(count(*) FILTER (WHERE bucket = 'delayed'), $3) AS delayed,
511
+ least(count(*) FILTER (WHERE bucket = 'in_flight'), $3) AS in_flight,
512
+ least(count(*) FILTER (WHERE bucket = 'blocked'), $3) AS blocked,
513
+ least(count(*) FILTER (WHERE bucket = 'dead_lettered'), $3) AS dead_lettered,
514
514
  max(${intervalExpr('age_at')}) FILTER (WHERE bucket = 'ready') AS oldest_ready_ms,
515
515
  max(${intervalExpr('age_at')}) FILTER (WHERE bucket = 'delayed') AS oldest_delayed_ms,
516
516
  max(${intervalExpr('age_at')}) FILTER (WHERE bucket = 'in_flight') AS oldest_in_flight_ms,
517
517
  max(${intervalExpr('age_at')}) FILTER (WHERE bucket = 'blocked') AS oldest_blocked_ms,
518
518
  max(${intervalExpr('age_at')}) FILTER (WHERE bucket = 'dead_lettered') AS oldest_dead_lettered_ms,
519
- count(*) FILTER (WHERE bucket <> 'dead_lettered') > $4 AS ready_truncated,
520
- count(*) FILTER (WHERE bucket <> 'dead_lettered') > $4 AS delayed_truncated,
521
- count(*) FILTER (WHERE bucket <> 'dead_lettered') > $4 AS in_flight_truncated,
522
- count(*) FILTER (WHERE bucket <> 'dead_lettered') > $4 AS blocked_truncated,
523
- count(*) FILTER (WHERE bucket = 'dead_lettered') > $4 AS dead_lettered_truncated,
519
+ count(*) FILTER (WHERE bucket <> 'dead_lettered') > $3 AS ready_truncated,
520
+ count(*) FILTER (WHERE bucket <> 'dead_lettered') > $3 AS delayed_truncated,
521
+ count(*) FILTER (WHERE bucket <> 'dead_lettered') > $3 AS in_flight_truncated,
522
+ count(*) FILTER (WHERE bucket <> 'dead_lettered') > $3 AS blocked_truncated,
523
+ count(*) FILTER (WHERE bucket = 'dead_lettered') > $3 AS dead_lettered_truncated,
524
524
  0::bigint AS admitted,
525
525
  0::bigint AS started,
526
526
  0::bigint AS completed,
@@ -556,23 +556,23 @@ function cleanupProjectionQuery(schema: string): string {
556
556
  FROM ${table}
557
557
  WHERE status <> 'deleted'
558
558
  ORDER BY available_at, created_at, provider, sandbox_id
559
- LIMIT $3
559
+ LIMIT $2
560
560
  )
561
561
  SELECT
562
- least(count(*) FILTER (WHERE bucket = 'ready'), $4) AS ready,
563
- least(count(*) FILTER (WHERE bucket = 'delayed'), $4) AS delayed,
564
- least(count(*) FILTER (WHERE bucket = 'in_flight'), $4) AS in_flight,
565
- least(count(*) FILTER (WHERE bucket = 'blocked'), $4) AS blocked,
562
+ least(count(*) FILTER (WHERE bucket = 'ready'), $3) AS ready,
563
+ least(count(*) FILTER (WHERE bucket = 'delayed'), $3) AS delayed,
564
+ least(count(*) FILTER (WHERE bucket = 'in_flight'), $3) AS in_flight,
565
+ least(count(*) FILTER (WHERE bucket = 'blocked'), $3) AS blocked,
566
566
  0::bigint AS dead_lettered,
567
567
  max(${intervalExpr('age_at')}) FILTER (WHERE bucket = 'ready') AS oldest_ready_ms,
568
568
  max(${intervalExpr('age_at')}) FILTER (WHERE bucket = 'delayed') AS oldest_delayed_ms,
569
569
  max(${intervalExpr('age_at')}) FILTER (WHERE bucket = 'in_flight') AS oldest_in_flight_ms,
570
570
  max(${intervalExpr('age_at')}) FILTER (WHERE bucket = 'blocked') AS oldest_blocked_ms,
571
571
  NULL::bigint AS oldest_dead_lettered_ms,
572
- count(*) > $4 AS ready_truncated,
573
- count(*) > $4 AS delayed_truncated,
574
- count(*) > $4 AS in_flight_truncated,
575
- count(*) > $4 AS blocked_truncated,
572
+ count(*) > $3 AS ready_truncated,
573
+ count(*) > $3 AS delayed_truncated,
574
+ count(*) > $3 AS in_flight_truncated,
575
+ count(*) > $3 AS blocked_truncated,
576
576
  false AS dead_lettered_truncated,
577
577
  0::bigint AS admitted,
578
578
  0::bigint AS started,
@@ -658,7 +658,7 @@ export async function readRuntimeQueueHealthFromClient(
658
658
  for (const queueName of queueNames) {
659
659
  const result = await client.query<CountRow>(
660
660
  absurdProjectionQuery(`r_${queueName}`),
661
- [now, now, sampleLimit + 1, sampleLimit],
661
+ [now, sampleLimit + 1, sampleLimit],
662
662
  );
663
663
  projections.push(
664
664
  projectionFromRow({
@@ -673,13 +673,11 @@ export async function readRuntimeQueueHealthFromClient(
673
673
  }
674
674
  const [outbox, cleanup] = await Promise.all([
675
675
  client.query<CountRow>(outboxProjectionQuery(schema), [
676
- now,
677
676
  now,
678
677
  sampleLimit + 1,
679
678
  sampleLimit,
680
679
  ]),
681
680
  client.query<CountRow>(cleanupProjectionQuery(schema), [
682
- now,
683
681
  now,
684
682
  sampleLimit + 1,
685
683
  sampleLimit,
package/dist/cli/index.js CHANGED
@@ -1298,7 +1298,7 @@ var SDK_RELEASE = {
1298
1298
  // getters keep their established compatibility behavior.
1299
1299
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
1300
1300
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
1301
- version: "0.3.108",
1301
+ version: "0.3.109",
1302
1302
  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.",
1303
1303
  packageCapabilities: {
1304
1304
  updatePreferences: 1
@@ -1271,7 +1271,7 @@ var SDK_RELEASE = {
1271
1271
  // getters keep their established compatibility behavior.
1272
1272
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
1273
1273
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
1274
- version: "0.3.108",
1274
+ version: "0.3.109",
1275
1275
  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.",
1276
1276
  packageCapabilities: {
1277
1277
  updatePreferences: 1
package/dist/index.js CHANGED
@@ -860,7 +860,7 @@ var SDK_RELEASE = {
860
860
  // getters keep their established compatibility behavior.
861
861
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
862
862
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
863
- version: "0.3.108",
863
+ version: "0.3.109",
864
864
  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.",
865
865
  packageCapabilities: {
866
866
  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.108",
771
+ version: "0.3.109",
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.108";
152
+ readonly version: "0.3.109";
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.108";
152
+ readonly version: "0.3.109";
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.108",
77
+ version: "0.3.109",
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.108",
51
+ version: "0.3.109",
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.108",
3
+ "version": "0.3.109",
4
4
  "description": "GTM data CLI and TypeScript SDK for coding agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://code.deepline.com",