deepline 0.3.104 → 0.3.105

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.104',
203
+ version: '0.3.105',
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: {
@@ -32,6 +32,13 @@ export type PlayLaunchQueuePolicy = {
32
32
  sandboxCapacityMaxWaitSeconds: number | null;
33
33
  };
34
34
 
35
+ /**
36
+ * CLI/API launches are user-visible requests. Give a short capacity window so
37
+ * a temporary spike can clear, but never let an interactive run appear to
38
+ * succeed and then start charging much later without an explicit retry.
39
+ */
40
+ export const API_LAUNCH_CAPACITY_WAIT_SECONDS = 60;
41
+
35
42
  export function shouldTerminalizeSandboxCapacityRejection(input: {
36
43
  triggerSource?: PlayLaunchTriggerSource | null;
37
44
  submittedAtMs?: number | null;
@@ -68,13 +75,15 @@ export function resolvePlayLaunchQueuePolicy(
68
75
  case 'api':
69
76
  return {
70
77
  triggerSource: 'api',
71
- // A person waiting in the CLI/UI should get the next slot in their
72
- // own organization rather than sitting behind that org's automation.
73
- // The bounded deadline gives the caller a typed terminal outcome
74
- // instead of an indefinite watch.
78
+ // API/CLI callers need a bounded, user-visible outcome. A brief
79
+ // capacity window absorbs normal spikes; after that the run is
80
+ // terminalized with a typed queue-expired/capacity result rather than
81
+ // starting unexpectedly much later. The priority still lets manual
82
+ // work win the next slot within its organization without bypassing
83
+ // cross-org fairness.
75
84
  priority: 100,
76
- maxDelaySeconds: 10,
77
- sandboxCapacityMaxWaitSeconds: 0,
85
+ maxDelaySeconds: API_LAUNCH_CAPACITY_WAIT_SECONDS,
86
+ sandboxCapacityMaxWaitSeconds: API_LAUNCH_CAPACITY_WAIT_SECONDS,
78
87
  };
79
88
  case 'webhook':
80
89
  return {
@@ -82,8 +91,7 @@ export function resolvePlayLaunchQueuePolicy(
82
91
  priority: 0,
83
92
  // A 202 webhook response is a durable delivery promise. Capacity is
84
93
  // not a delivery failure: retain it until it executes, is explicitly
85
- // cancelled, or an operator terminalizes it. Interactive API launches
86
- // remain separately bounded above.
94
+ // cancelled, or an operator terminalizes it.
87
95
  maxDelaySeconds: null,
88
96
  sandboxCapacityMaxWaitSeconds: null,
89
97
  };
@@ -91,15 +99,21 @@ export function resolvePlayLaunchQueuePolicy(
91
99
  return {
92
100
  triggerSource: 'cron',
93
101
  priority: -10,
94
- maxDelaySeconds: 30 * 60,
95
- sandboxCapacityMaxWaitSeconds: 30 * 60,
102
+ // Scheduled automation is a durable customer intent. A capacity SEV
103
+ // must not silently discard a scheduled run; recovery/alerting owns
104
+ // platform-wide exhaustion and operators can cancel explicitly.
105
+ maxDelaySeconds: null,
106
+ sandboxCapacityMaxWaitSeconds: null,
96
107
  };
97
108
  case 'sql_listener':
98
109
  return {
99
110
  triggerSource: 'sql_listener',
100
111
  priority: -10,
101
- maxDelaySeconds: 30 * 60,
102
- sandboxCapacityMaxWaitSeconds: 30 * 60,
112
+ // SQL-listener automation has the same durable intent contract as
113
+ // cron. Capacity pressure is recoverable state, not a user-visible
114
+ // queue expiry.
115
+ maxDelaySeconds: null,
116
+ sandboxCapacityMaxWaitSeconds: null,
103
117
  };
104
118
  case 'async_child':
105
119
  return {
@@ -322,9 +322,9 @@ const HEARTBEAT_CLAIM_TIMEOUT_SECONDS = RUNTIME_CLAIM_LEASE_SECONDS;
322
322
  export const ABSURD_IDLE_POLL_INTERVAL_SECONDS = 30;
323
323
  /**
324
324
  * A direct LISTEN session is an optional latency optimization. When it is
325
- * unavailable, durable polling must still discover manual/API work before its
326
- * 10-second admission deadline. Keep enough margin for a pooled query, claim,
327
- * and scheduler receipt write.
325
+ * unavailable, durable polling should still discover newly accepted work
326
+ * promptly. Queue admission has source-specific deadlines, so a missed poll
327
+ * may add latency but must not invent a terminal result outside that policy.
328
328
  */
329
329
  export const ABSURD_WAKE_UNAVAILABLE_POLL_INTERVAL_MS = 1_000;
330
330
  /** Heartbeat throttle: keep the lease well ahead of expiry (leaseTimeout / 3). */
@@ -659,12 +659,16 @@ export type ProductNotificationTypeCatalogItem =
659
659
  export const PRODUCT_NOTIFICATION_MERGED_ROWS: readonly {
660
660
  key: string;
661
661
  name: string;
662
+ /** One sentence for the row, rather than each type's own description. */
663
+ description: string;
662
664
  category: ProductNotificationCategoryId;
663
665
  typeIds: readonly ConfigurableProductNotificationType[];
664
666
  }[] = [
665
667
  {
666
668
  key: 'out-of-credits',
667
669
  name: 'Out of credits',
670
+ description:
671
+ 'Notify when Deepline disables a resource because the workspace ran out of credits. Scheduled runs resume automatically once the workspace has enough credits.',
668
672
  category: 'credits',
669
673
  typeIds: [
670
674
  'monitor.disabled.insufficient_credits',
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.104",
1301
+ version: "0.3.105",
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.104",
1274
+ version: "0.3.105",
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.104",
863
+ version: "0.3.105",
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.104",
771
+ version: "0.3.105",
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.104";
152
+ readonly version: "0.3.105";
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.104";
152
+ readonly version: "0.3.105";
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.104",
77
+ version: "0.3.105",
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.104",
51
+ version: "0.3.105",
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.104",
3
+ "version": "0.3.105",
4
4
  "description": "GTM data CLI and TypeScript SDK for coding agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://code.deepline.com",