deepline 0.3.232 → 0.3.233

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.232',
203
+ version: '0.3.233',
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: {
@@ -366,6 +366,7 @@ export function buildBootMachineConfig(input: {
366
366
  componentInputHash?: string;
367
367
  region?: string;
368
368
  rollbackHoldUntilMs?: number;
369
+ draining?: boolean;
369
370
  }): Record<string, unknown> {
370
371
  return {
371
372
  region: input.region ?? DEFAULT_ABSURD_FLY_REGION,
@@ -389,6 +390,7 @@ export function buildBootMachineConfig(input: {
389
390
  },
390
391
  env: {
391
392
  [RUNTIME_DEPLOY_VERSION_ENV]: input.releaseId,
393
+ ...(input.draining ? { [DRAIN_EXIT_ENV]: '1' } : {}),
392
394
  },
393
395
  // Override the image CMD so rollback and recovery of an older image still
394
396
  // honor today's fleet-wide slot ceiling. Every historical Absurd worker
@@ -7091,6 +7091,7 @@ export type AbsurdWorkerWakeHook = ((
7091
7091
  wake: () => void,
7092
7092
  ) => (() => void) | void) & {
7093
7093
  isListening: () => boolean;
7094
+ close: () => void;
7094
7095
  };
7095
7096
 
7096
7097
  export function resolveAbsurdIdlePollFallbackMs(
@@ -7117,7 +7118,10 @@ export function createAbsurdWorkerWakeHook(input: {
7117
7118
  }): AbsurdWorkerWakeHook | undefined {
7118
7119
  if (input.draining || input.useDirectNotify === false) return undefined;
7119
7120
  let listening = false;
7121
+ let closed = false;
7122
+ const subscriptions = new Set<() => void>();
7120
7123
  const hook: AbsurdWorkerWakeHook = (wake) => {
7124
+ if (closed) return;
7121
7125
  const acquireNotifyHub =
7122
7126
  input.acquireNotifyHub ??
7123
7127
  ((notifyInput: {
@@ -7143,13 +7147,24 @@ export function createAbsurdWorkerWakeHook(input: {
7143
7147
  listening = state === 'listening';
7144
7148
  if (listening || wasListening) wake();
7145
7149
  });
7146
- return () => {
7150
+ let released = false;
7151
+ const release = () => {
7152
+ if (released) return;
7153
+ released = true;
7147
7154
  unsubscribeNotify();
7148
7155
  unsubscribeState();
7149
7156
  lease.release();
7157
+ subscriptions.delete(release);
7150
7158
  };
7159
+ subscriptions.add(release);
7160
+ return release;
7151
7161
  };
7152
7162
  hook.isListening = () => listening;
7163
+ hook.close = () => {
7164
+ closed = true;
7165
+ listening = false;
7166
+ for (const release of subscriptions) release();
7167
+ };
7153
7168
  return hook;
7154
7169
  }
7155
7170
 
@@ -7530,6 +7545,10 @@ export async function startRuntimeWorkerHost(
7530
7545
 
7531
7546
  return {
7532
7547
  close: async () => {
7548
+ // Accepted handlers and maintenance can take minutes to settle. Stop
7549
+ // owning a direct LISTEN session before waiting for that drain, so a
7550
+ // replacement can elect its listener without exhausting primary slots.
7551
+ onWake?.close();
7533
7552
  drainStopped = true;
7534
7553
  billingStopped = true;
7535
7554
  cleanupStopped = true;
package/dist/cli/index.js CHANGED
@@ -3454,7 +3454,7 @@ var SDK_RELEASE = {
3454
3454
  // getters keep their established compatibility behavior.
3455
3455
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
3456
3456
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
3457
- version: "0.3.232",
3457
+ version: "0.3.233",
3458
3458
  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.",
3459
3459
  packageCapabilities: {
3460
3460
  updatePreferences: 1
@@ -3449,7 +3449,7 @@ var SDK_RELEASE = {
3449
3449
  // getters keep their established compatibility behavior.
3450
3450
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
3451
3451
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
3452
- version: "0.3.232",
3452
+ version: "0.3.233",
3453
3453
  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.",
3454
3454
  packageCapabilities: {
3455
3455
  updatePreferences: 1
package/dist/index.js CHANGED
@@ -1267,7 +1267,7 @@ var SDK_RELEASE = {
1267
1267
  // getters keep their established compatibility behavior.
1268
1268
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
1269
1269
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
1270
- version: "0.3.232",
1270
+ version: "0.3.233",
1271
1271
  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.",
1272
1272
  packageCapabilities: {
1273
1273
  updatePreferences: 1
package/dist/index.mjs CHANGED
@@ -1171,7 +1171,7 @@ var SDK_RELEASE = {
1171
1171
  // getters keep their established compatibility behavior.
1172
1172
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
1173
1173
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
1174
- version: "0.3.232",
1174
+ version: "0.3.233",
1175
1175
  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.",
1176
1176
  packageCapabilities: {
1177
1177
  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.232";
152
+ readonly version: "0.3.233";
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.232";
152
+ readonly version: "0.3.233";
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.232",
77
+ version: "0.3.233",
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.232",
51
+ version: "0.3.233",
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.232",
3
+ "version": "0.3.233",
4
4
  "description": "GTM data CLI and TypeScript SDK for coding agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://code.deepline.com",