deepline 0.3.94 → 0.3.95
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.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +28 -4
- package/dist/cli/index.js +1 -1
- package/dist/cli/index.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +1 -1
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
|
@@ -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.
|
|
203
|
+
version: '0.3.95',
|
|
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: {
|
package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts
CHANGED
|
@@ -291,13 +291,31 @@ export class AppRuntimeRateStateBackend implements RateStateBackend {
|
|
|
291
291
|
laneKey: string,
|
|
292
292
|
rules: readonly PacingRule[],
|
|
293
293
|
): number {
|
|
294
|
-
const floor = APP_RUNTIME_RATE_STATE_LEASE_BLOCK_SIZE;
|
|
295
294
|
const configuredRps = Math.min(
|
|
296
295
|
...rules.map((rule) => (rule.requestsPerWindow / rule.windowMs) * 1_000),
|
|
297
296
|
);
|
|
297
|
+
const effectiveRps = Math.max(
|
|
298
|
+
1,
|
|
299
|
+
this.effectiveRps.get(laneKey) ?? configuredRps,
|
|
300
|
+
);
|
|
301
|
+
// Catalogued rates are advisory exploration seeds. At a low seed, a
|
|
302
|
+
// normal eight-permit prefetch books tens of seconds of dispatch time
|
|
303
|
+
// before the first healthy response can authorize AIMD recovery. Start
|
|
304
|
+
// with only the rate that can be spent within the short lease horizon;
|
|
305
|
+
// ordinary and explicitly capped rules retain the bounded prefetch floor.
|
|
306
|
+
const hasAdvisoryExplorationCeiling = rules.some((rule) => {
|
|
307
|
+
const baseRps = (rule.requestsPerWindow / rule.windowMs) * 1_000;
|
|
308
|
+
return rule.adaptiveMaxRps != null && rule.adaptiveMaxRps > baseRps;
|
|
309
|
+
});
|
|
310
|
+
const floor = hasAdvisoryExplorationCeiling
|
|
311
|
+
? Math.min(
|
|
312
|
+
APP_RUNTIME_RATE_STATE_LEASE_BLOCK_SIZE,
|
|
313
|
+
Math.max(1, Math.ceil(effectiveRps)),
|
|
314
|
+
)
|
|
315
|
+
: APP_RUNTIME_RATE_STATE_LEASE_BLOCK_SIZE;
|
|
298
316
|
const horizonBudget = Math.max(
|
|
299
317
|
1,
|
|
300
|
-
Math.ceil(
|
|
318
|
+
Math.ceil(effectiveRps),
|
|
301
319
|
);
|
|
302
320
|
const rateBudget = Math.min(
|
|
303
321
|
horizonBudget,
|
|
@@ -443,13 +461,19 @@ export class AppRuntimeRateStateBackend implements RateStateBackend {
|
|
|
443
461
|
try {
|
|
444
462
|
const successKey = pendingSuccessKey(bucketId, ordered);
|
|
445
463
|
const observedSuccesses = this.pendingSuccesses.get(successKey) ?? 0;
|
|
464
|
+
// Use the same prepared rules for local lease sizing and the durable
|
|
465
|
+
// controller. Catalogued rules receive their advisory AIMD ceiling in
|
|
466
|
+
// this step, so inspecting the raw rule here would retain the fixed
|
|
467
|
+
// eight-permit floor for exactly the provider lanes that need fast
|
|
468
|
+
// feedback to recover.
|
|
469
|
+
const rateRules = withAdaptiveMaxRps(ordered);
|
|
446
470
|
const response = await this.port.acquire({
|
|
447
471
|
bucketId,
|
|
448
472
|
rateScopeToken,
|
|
449
473
|
// Stamp the advisory ceiling so the durable DB row uses the same
|
|
450
474
|
// catalogued-rate AIMD range as this in-memory controller.
|
|
451
|
-
rules:
|
|
452
|
-
requested: this.requestedForBucket(laneKey,
|
|
475
|
+
rules: rateRules,
|
|
476
|
+
requested: this.requestedForBucket(laneKey, rateRules),
|
|
453
477
|
observedSuccesses,
|
|
454
478
|
schedulerSchema: this.schedulerSchema,
|
|
455
479
|
});
|
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.
|
|
1301
|
+
version: "0.3.95",
|
|
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
|
package/dist/cli/index.mjs
CHANGED
|
@@ -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.
|
|
1274
|
+
version: "0.3.95",
|
|
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
|
@@ -856,7 +856,7 @@ var SDK_RELEASE = {
|
|
|
856
856
|
// getters keep their established compatibility behavior.
|
|
857
857
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
858
858
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
859
|
-
version: "0.3.
|
|
859
|
+
version: "0.3.95",
|
|
860
860
|
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.",
|
|
861
861
|
packageCapabilities: {
|
|
862
862
|
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.
|
|
771
|
+
version: "0.3.95",
|
|
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
|
package/dist/release.d.mts
CHANGED
|
@@ -149,7 +149,7 @@ type SdkRelease = {
|
|
|
149
149
|
supportPolicy: SdkSupportPolicy;
|
|
150
150
|
};
|
|
151
151
|
declare const SDK_RELEASE: {
|
|
152
|
-
readonly version: "0.3.
|
|
152
|
+
readonly version: "0.3.95";
|
|
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.
|
|
152
|
+
readonly version: "0.3.95";
|
|
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.
|
|
77
|
+
version: "0.3.95",
|
|
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.
|
|
51
|
+
version: "0.3.95",
|
|
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
|