deepline 0.3.190 → 0.3.192

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.190',
203
+ version: '0.3.192',
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: {
@@ -486,8 +486,12 @@ export interface ToolSearchResult {
486
486
  tools: ToolDefinition[];
487
487
  /** Count included in this response when available. */
488
488
  count?: number;
489
- /** Total available count when the backend reports it. */
489
+ /** Matching count within the selected retrieval set. Check total_is_exact. */
490
490
  total?: number;
491
+ /** False when indexed retrieval uses a bounded candidate set. */
492
+ total_is_exact?: boolean;
493
+ /** True when indexed retrieval may have additional matching tools. */
494
+ may_have_more?: boolean;
491
495
  /** Whether results were truncated by server-side limits. */
492
496
  truncated?: boolean;
493
497
  /** Echoed query. */
@@ -994,6 +994,8 @@ function isRetryableAppRuntimeAction(
994
994
  action === 'heartbeat_runtime_step_receipts' ||
995
995
  action === 'claim_runtime_step_receipt' ||
996
996
  action === 'claim_runtime_step_receipts' ||
997
+ // Replaying the same owner only renews its existing execution fence.
998
+ action === 'acquire_runtime_receipt_execution_lock' ||
997
999
  action === 'mark_runtime_step_receipt_running' ||
998
1000
  action === 'mark_runtime_step_receipts_running' ||
999
1001
  action === 'mark_runtime_step_receipts_queued' ||
@@ -2210,7 +2210,7 @@ async function ensurePostgresSchedulerCronScheduleSchema(
2210
2210
  * current scheduler schema takes the fast path below, so keeping these only in
2211
2211
  * the full bootstrap leaves that estate with the old whole-envelope equality.
2212
2212
  */
2213
- async function ensurePostgresSchedulerLaunchAdmissionFunctions(
2213
+ export async function ensurePostgresSchedulerLaunchAdmissionFunctions(
2214
2214
  client: PostgresSchedulerQueryClient,
2215
2215
  options?: Pick<PostgresSchedulerOptions, 'schema'>,
2216
2216
  ): Promise<void> {
@@ -12102,9 +12102,10 @@ export async function cancelPostgresSchedulerRun(
12102
12102
  engineTaskTable: string | null;
12103
12103
  };
12104
12104
  /**
12105
- * Optional control-plane ownership for the pending causal head. The
12105
+ * Optional control-plane ownership for the pending causal prefix. The
12106
12106
  * caller resumes this same lease after commit to make cancellation visible
12107
- * synchronously in the canonical Run Ledger.
12107
+ * synchronously in the canonical Run Ledger, even when a later predecessor
12108
+ * was waiting on its retry schedule.
12108
12109
  */
12109
12110
  outboxLease?: { leaseOwner: string; leaseSeconds: number };
12110
12111
  },
@@ -12237,14 +12238,15 @@ export async function cancelPostgresSchedulerRun(
12237
12238
  AND NULLIF(resource->>'sandboxId', '') IS NOT NULL
12238
12239
  ON CONFLICT (provider, sandbox_id, routing_domain_key) DO NOTHING
12239
12240
  ),
12240
- cancellation_outbox_head AS MATERIALIZED (
12241
+ -- A head-only fence leaves a delayed successor between this request
12242
+ -- and its terminal event. Own and make due the complete pending prefix;
12243
+ -- the projector still claims it in causal order after commit.
12244
+ cancellation_outbox_pending AS MATERIALIZED (
12241
12245
  SELECT pending.event_id
12242
12246
  FROM ${tableName('outbox', options)} AS pending
12243
12247
  JOIN cancelled_run ON cancelled_run.run_id = pending.run_id
12244
12248
  WHERE pending.delivered_at IS NULL
12245
12249
  AND pending.failed_at IS NULL
12246
- ORDER BY ${runLedgerOrderSql('pending')}
12247
- LIMIT 1
12248
12250
  ),
12249
12251
  cancellation_outbox_lease AS (
12250
12252
  UPDATE ${tableName('outbox', options)} AS pending
@@ -12252,7 +12254,7 @@ export async function cancelPostgresSchedulerRun(
12252
12254
  lease_expires_at = now() + make_interval(secs => $7::integer),
12253
12255
  next_attempt_at = NULL
12254
12256
  WHERE $6::text IS NOT NULL
12255
- AND pending.event_id IN (SELECT event_id FROM cancellation_outbox_head)
12257
+ AND pending.event_id IN (SELECT event_id FROM cancellation_outbox_pending)
12256
12258
  RETURNING pending.event_id
12257
12259
  ),
12258
12260
  terminal_outbox AS (
@@ -12268,12 +12270,12 @@ export async function cancelPostgresSchedulerRun(
12268
12270
  ${causalOutboxCreatedAt('cancelled_run.run_id', options)},
12269
12271
  NULL,
12270
12272
  CASE
12271
- WHEN EXISTS (SELECT 1 FROM cancellation_outbox_head) THEN NULL
12273
+ WHEN EXISTS (SELECT 1 FROM cancellation_outbox_pending) THEN NULL
12272
12274
  ELSE $6::text
12273
12275
  END,
12274
12276
  CASE
12275
12277
  WHEN $6::text IS NULL
12276
- OR EXISTS (SELECT 1 FROM cancellation_outbox_head)
12278
+ OR EXISTS (SELECT 1 FROM cancellation_outbox_pending)
12277
12279
  THEN NULL
12278
12280
  ELSE now() + make_interval(secs => $7::integer)
12279
12281
  END
@@ -12311,18 +12313,12 @@ export async function cancelPostgresSchedulerRun(
12311
12313
  SET lease_owner = $2,
12312
12314
  lease_expires_at = now() + make_interval(secs => $3::integer),
12313
12315
  next_attempt_at = NULL
12314
- WHERE pending.event_id = (
12315
- SELECT candidate.event_id
12316
- FROM ${tableName('outbox', options)} AS candidate
12317
- JOIN ${tableName('runs', options)} AS terminal_run
12318
- ON terminal_run.run_id = candidate.run_id
12319
- WHERE candidate.run_id = $1
12320
- AND candidate.delivered_at IS NULL
12321
- AND candidate.failed_at IS NULL
12322
- AND terminal_run.status IN ('completed', 'failed', 'cancelled')
12323
- ORDER BY ${runLedgerOrderSql('candidate')}
12324
- LIMIT 1
12325
- )`,
12316
+ FROM ${tableName('runs', options)} AS terminal_run
12317
+ WHERE pending.run_id = $1
12318
+ AND terminal_run.run_id = pending.run_id
12319
+ AND terminal_run.status IN ('completed', 'failed', 'cancelled')
12320
+ AND pending.delivered_at IS NULL
12321
+ AND pending.failed_at IS NULL`,
12326
12322
  [input.runId, outboxLeaseOwner, outboxLeaseSeconds],
12327
12323
  );
12328
12324
  }
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.190",
3054
+ version: "0.3.192",
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.190",
3049
+ version: "0.3.192",
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.d.mts CHANGED
@@ -1391,8 +1391,12 @@ interface ToolSearchResult {
1391
1391
  tools: ToolDefinition[];
1392
1392
  /** Count included in this response when available. */
1393
1393
  count?: number;
1394
- /** Total available count when the backend reports it. */
1394
+ /** Matching count within the selected retrieval set. Check total_is_exact. */
1395
1395
  total?: number;
1396
+ /** False when indexed retrieval uses a bounded candidate set. */
1397
+ total_is_exact?: boolean;
1398
+ /** True when indexed retrieval may have additional matching tools. */
1399
+ may_have_more?: boolean;
1396
1400
  /** Whether results were truncated by server-side limits. */
1397
1401
  truncated?: boolean;
1398
1402
  /** Echoed query. */
package/dist/index.d.ts CHANGED
@@ -1391,8 +1391,12 @@ interface ToolSearchResult {
1391
1391
  tools: ToolDefinition[];
1392
1392
  /** Count included in this response when available. */
1393
1393
  count?: number;
1394
- /** Total available count when the backend reports it. */
1394
+ /** Matching count within the selected retrieval set. Check total_is_exact. */
1395
1395
  total?: number;
1396
+ /** False when indexed retrieval uses a bounded candidate set. */
1397
+ total_is_exact?: boolean;
1398
+ /** True when indexed retrieval may have additional matching tools. */
1399
+ may_have_more?: boolean;
1396
1400
  /** Whether results were truncated by server-side limits. */
1397
1401
  truncated?: boolean;
1398
1402
  /** Echoed query. */
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.190",
867
+ version: "0.3.192",
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.190",
771
+ version: "0.3.192",
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.190";
152
+ readonly version: "0.3.192";
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.190";
152
+ readonly version: "0.3.192";
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.190",
77
+ version: "0.3.192",
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.190",
51
+ version: "0.3.192",
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.190",
3
+ "version": "0.3.192",
4
4
  "description": "GTM data CLI and TypeScript SDK for coding agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://code.deepline.com",