deepline 0.3.182 → 0.3.183

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.182',
203
+ version: '0.3.183',
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: {
@@ -11836,6 +11836,9 @@ export async function failPostgresSchedulerAttempt(
11836
11836
  * Cancel a run: terminal `cancelled` status, all live attempts cancelled, and
11837
11837
  * terminal notify so observers settle immediately. An in-flight executor's
11838
11838
  * complete/fail then no-ops on its status guard (the run stays cancelled).
11839
+ * Receipt ownership is released by the terminal run status itself; claimers
11840
+ * lazily take an incomplete receipt from a terminal owner instead of making
11841
+ * cancellation rewrite an unbounded number of receipt rows.
11839
11842
  */
11840
11843
  export async function cancelPostgresSchedulerRun(
11841
11844
  client: PostgresSchedulerQueryClient,
@@ -11902,29 +11905,7 @@ export async function cancelPostgresSchedulerRun(
11902
11905
  WHERE target.run_id = $1
11903
11906
  AND target.status IN ('queued', 'running', 'waiting')
11904
11907
  ${strandedEligibility}
11905
- RETURNING target.run_id, target.org_id, target.launch_json
11906
- ),
11907
- released_receipts AS (
11908
- -- Cancellation is a terminal, and a terminal releases everything the
11909
- -- run claimed. A receipt left 'running' behind a dead lease matches no
11910
- -- non-forced claim status set, so a successor would park on it for the
11911
- -- whole receipt wait budget instead of executing the call itself.
11912
- UPDATE ${tableName('receipts', options)} AS receipt
11913
- SET ${RELEASE_RECEIPT_TO_PENDING_SET_CLAUSE}
11914
- FROM cancelled_run
11915
- WHERE receipt.org_id = cancelled_run.org_id
11916
- AND receipt.status IN ('queued', 'running')
11917
- -- Every successful claim stamps both run_id and
11918
- -- lease_owner_run_id with the current owner. Keep the explicit
11919
- -- owner fence below for mixed-version rows, while giving Postgres
11920
- -- the direct run_id equality it needs to use
11921
- -- runtime_scheduler_receipts_run_idx. Without this predicate,
11922
- -- COALESCE forces a scan of the org's complete receipt history and
11923
- -- cancellation can hit its statement timeout on a large workspace.
11924
- AND receipt.run_id = cancelled_run.run_id
11925
- AND COALESCE(receipt.lease_owner_run_id, receipt.run_id)
11926
- = cancelled_run.run_id
11927
- RETURNING receipt.k
11908
+ RETURNING target.run_id, target.launch_json
11928
11909
  ),
11929
11910
  cancelled_attempts AS (
11930
11911
  UPDATE ${tableName('attempts', options)}
@@ -14562,10 +14543,9 @@ export async function releasePostgresSchedulerReceipt(
14562
14543
  }
14563
14544
 
14564
14545
  /**
14565
- * The write that returns a claimed receipt to the free pool. Every release
14566
- * path shares it so a successor's non-forced claim always matches what a dead
14567
- * owner left behind. Claimers also understand terminal ownership directly so
14568
- * a later writer release can stop rewriting every receipt synchronously.
14546
+ * The write that returns one attempt's claimed receipts to the free pool.
14547
+ * Attempt cleanup uses this eager path; whole-run terminalization is the
14548
+ * constant-time ownership fence that claimers resolve lazily.
14569
14549
  */
14570
14550
  const RELEASE_RECEIPT_TO_PENDING_SET_CLAUSE = `status = 'pending',
14571
14551
  output_json = NULL,
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.182",
3054
+ version: "0.3.183",
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.182",
3049
+ version: "0.3.183",
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.182",
867
+ version: "0.3.183",
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.182",
771
+ version: "0.3.183",
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.182";
152
+ readonly version: "0.3.183";
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.182";
152
+ readonly version: "0.3.183";
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.182",
77
+ version: "0.3.183",
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.182",
51
+ version: "0.3.183",
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.182",
3
+ "version": "0.3.183",
4
4
  "description": "GTM data CLI and TypeScript SDK for coding agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://code.deepline.com",