deepline 0.3.223 → 0.3.224
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/run-ledger-event-transport.ts +24 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +16 -15
- 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.224',
|
|
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: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PlayRunLedgerIngressEvent } from './run-ledger';
|
|
2
|
+
import type { RunLedgerProjectionChunk } from './run-ledger-projection-contract';
|
|
2
3
|
|
|
3
4
|
const APP_RUNTIME_LOG_EVENT_MAX_JSON_BYTES = 128 * 1024;
|
|
4
5
|
const APP_RUNTIME_EVENT_BATCH_MAX_JSON_BYTES = 512 * 1024;
|
|
@@ -108,3 +109,26 @@ export function partitionRunEventsForAppRuntime(
|
|
|
108
109
|
if (current.length > 0) batches.push(current);
|
|
109
110
|
return batches;
|
|
110
111
|
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Select a projection chunk from the raw canonical prefix. Callers must apply
|
|
115
|
+
* route sanitization only after this boundary is selected, because sanitizing
|
|
116
|
+
* event payloads can change their encoded sizes and shift transport chunks.
|
|
117
|
+
*/
|
|
118
|
+
export function selectRunEventsForAppRuntimeProjectionChunk(
|
|
119
|
+
events: readonly PlayRunLedgerIngressEvent[],
|
|
120
|
+
chunk: RunLedgerProjectionChunk,
|
|
121
|
+
): PlayRunLedgerIngressEvent[] | undefined {
|
|
122
|
+
if (
|
|
123
|
+
!Number.isSafeInteger(chunk.index) ||
|
|
124
|
+
!Number.isSafeInteger(chunk.count) ||
|
|
125
|
+
chunk.index < 0 ||
|
|
126
|
+
chunk.count < 2 ||
|
|
127
|
+
chunk.index >= chunk.count
|
|
128
|
+
) {
|
|
129
|
+
return undefined;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
const batches = partitionRunEventsForAppRuntime(events);
|
|
133
|
+
return batches.length === chunk.count ? batches[chunk.index] : undefined;
|
|
134
|
+
}
|
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
buildRunLedgerStartIdempotencyKey,
|
|
102
102
|
buildRunLedgerTerminalIdempotencyKey,
|
|
103
103
|
} from '../run-ledger-projection-contract';
|
|
104
|
-
import {
|
|
104
|
+
import { selectRunEventsForAppRuntimeProjectionChunk } from '../run-ledger-event-transport';
|
|
105
105
|
import {
|
|
106
106
|
assertTerminalRunResultWithinLimit,
|
|
107
107
|
isLedgerTerminalResultRef,
|
|
@@ -16030,7 +16030,7 @@ export async function assertPostgresRunLedgerDelivery(
|
|
|
16030
16030
|
leaseOwner?: string;
|
|
16031
16031
|
projectedEvents?: readonly AcceptedPlayRunLedgerEvent[];
|
|
16032
16032
|
projectionChunk?: RunLedgerProjectionChunk;
|
|
16033
|
-
|
|
16033
|
+
sanitizeExpectedProjectionEvents?: (
|
|
16034
16034
|
events: readonly PlayRunLedgerIngressEvent[],
|
|
16035
16035
|
) => readonly AcceptedPlayRunLedgerEvent[];
|
|
16036
16036
|
},
|
|
@@ -16163,24 +16163,25 @@ export async function assertPostgresRunLedgerDelivery(
|
|
|
16163
16163
|
}),
|
|
16164
16164
|
);
|
|
16165
16165
|
}
|
|
16166
|
-
const comparablePrefixEvents: readonly (
|
|
16167
|
-
| AcceptedPlayRunLedgerEvent
|
|
16168
|
-
| PlayRunLedgerIngressEvent
|
|
16169
|
-
)[] = input.normalizeProjectedEvents
|
|
16170
|
-
? input.normalizeProjectedEvents(prefixEvents)
|
|
16171
|
-
: prefixEvents;
|
|
16172
16166
|
let expectedProjectionEvents:
|
|
16173
16167
|
| readonly (AcceptedPlayRunLedgerEvent | PlayRunLedgerIngressEvent)[]
|
|
16174
|
-
| undefined
|
|
16168
|
+
| undefined;
|
|
16175
16169
|
if (input.projectionChunk) {
|
|
16176
16170
|
const chunk = input.projectionChunk;
|
|
16177
|
-
|
|
16178
|
-
|
|
16179
|
-
|
|
16180
|
-
|
|
16181
|
-
: [];
|
|
16171
|
+
// The sender partitions ingress events before the route sanitizes each chunk.
|
|
16172
|
+
const expectedTransportChunk = isRunLedgerProjectionChunk(chunk)
|
|
16173
|
+
? selectRunEventsForAppRuntimeProjectionChunk(prefixEvents, chunk)
|
|
16174
|
+
: undefined;
|
|
16182
16175
|
expectedProjectionEvents =
|
|
16183
|
-
|
|
16176
|
+
expectedTransportChunk === undefined
|
|
16177
|
+
? undefined
|
|
16178
|
+
: input.sanitizeExpectedProjectionEvents
|
|
16179
|
+
? input.sanitizeExpectedProjectionEvents(expectedTransportChunk)
|
|
16180
|
+
: expectedTransportChunk;
|
|
16181
|
+
} else {
|
|
16182
|
+
expectedProjectionEvents = input.sanitizeExpectedProjectionEvents
|
|
16183
|
+
? input.sanitizeExpectedProjectionEvents(prefixEvents)
|
|
16184
|
+
: prefixEvents;
|
|
16184
16185
|
}
|
|
16185
16186
|
if (
|
|
16186
16187
|
expectedProjectionEvents !== undefined &&
|
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.
|
|
3054
|
+
version: "0.3.224",
|
|
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
|
package/dist/cli/index.mjs
CHANGED
|
@@ -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.
|
|
3049
|
+
version: "0.3.224",
|
|
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.
|
|
867
|
+
version: "0.3.224",
|
|
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.
|
|
771
|
+
version: "0.3.224",
|
|
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.224";
|
|
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.224";
|
|
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.224",
|
|
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.224",
|
|
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
|