@bli-cockpit/telemetry-core 0.1.10 → 0.1.11
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.
|
@@ -7,10 +7,10 @@ import { z } from "zod";
|
|
|
7
7
|
* durable per-object ledger so interrupted uploads resume instead of
|
|
8
8
|
* re-sending bytes, and identical content is acknowledged without re-upload.
|
|
9
9
|
*/
|
|
10
|
-
export declare const RAW_EVIDENCE_UPLOAD_MAX_FILE_BYTES: number;
|
|
11
10
|
export declare const RAW_EVIDENCE_UPLOAD_MAX_CHUNK_BYTES: number;
|
|
12
11
|
export declare const RAW_EVIDENCE_UPLOAD_DEFAULT_CHUNK_BYTES: number;
|
|
13
|
-
export declare const RAW_EVIDENCE_UPLOAD_MAX_CHUNK_COUNT =
|
|
12
|
+
export declare const RAW_EVIDENCE_UPLOAD_MAX_CHUNK_COUNT = 192;
|
|
13
|
+
export declare const RAW_EVIDENCE_UPLOAD_MAX_FILE_BYTES: number;
|
|
14
14
|
export declare const RAW_EVIDENCE_UPLOAD_MAX_OBJECTS_PER_BEGIN = 25;
|
|
15
15
|
export declare const CODEX_SESSION_REPORT_MAX_SESSIONS = 200;
|
|
16
16
|
export declare const RawEvidenceUploadBeginObjectSchema: z.ZodObject<{
|
package/dist/evidence-upload.js
CHANGED
|
@@ -10,10 +10,17 @@ import { RawEvidenceRedactionMetadataSchema } from "./secret-guards.js";
|
|
|
10
10
|
* durable per-object ledger so interrupted uploads resume instead of
|
|
11
11
|
* re-sending bytes, and identical content is acknowledged without re-upload.
|
|
12
12
|
*/
|
|
13
|
-
export const RAW_EVIDENCE_UPLOAD_MAX_FILE_BYTES = 10 * 1024 * 1024;
|
|
14
13
|
export const RAW_EVIDENCE_UPLOAD_MAX_CHUNK_BYTES = 3 * 1024 * 1024;
|
|
15
14
|
export const RAW_EVIDENCE_UPLOAD_DEFAULT_CHUNK_BYTES = 2 * 1024 * 1024;
|
|
16
|
-
|
|
15
|
+
// Chunk COUNT is the safe axis for growing the file cap: chunk SIZE is pinned
|
|
16
|
+
// by Vercel's ~4.5MB request-body limit (see header comment). 192 chunks
|
|
17
|
+
// * 3 MiB gives a 576 MiB protocol ceiling above the 512 MiB file cap.
|
|
18
|
+
export const RAW_EVIDENCE_UPLOAD_MAX_CHUNK_COUNT = 192;
|
|
19
|
+
// Final-object cap. 512 MiB captures everything the fleet has ever produced
|
|
20
|
+
// with ~4x headroom over the largest observed session (118 MiB). Watch point:
|
|
21
|
+
// the commit route assembles and redaction-scans the whole object in memory,
|
|
22
|
+
// so objects near this cap are the thing to profile before raising it again.
|
|
23
|
+
export const RAW_EVIDENCE_UPLOAD_MAX_FILE_BYTES = 512 * 1024 * 1024;
|
|
17
24
|
export const RAW_EVIDENCE_UPLOAD_MAX_OBJECTS_PER_BEGIN = 25;
|
|
18
25
|
export const CODEX_SESSION_REPORT_MAX_SESSIONS = 200;
|
|
19
26
|
const SafeLabelSchema = z
|