@bli-cockpit/telemetry-core 0.1.44 → 0.1.46
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.
|
@@ -30,6 +30,12 @@ export declare const CollectorRootLabelSchema: z.ZodObject<{
|
|
|
30
30
|
basename: z.ZodString;
|
|
31
31
|
path_sha256: z.ZodString;
|
|
32
32
|
}, z.core.$strict>;
|
|
33
|
+
export declare const OutsideRootDirectorySchema: z.ZodObject<{
|
|
34
|
+
basename: z.ZodString;
|
|
35
|
+
path_sha256: z.ZodString;
|
|
36
|
+
count: z.ZodNumber;
|
|
37
|
+
}, z.core.$strict>;
|
|
38
|
+
export type OutsideRootDirectory = z.infer<typeof OutsideRootDirectorySchema>;
|
|
33
39
|
export type CollectorRootLabel = z.infer<typeof CollectorRootLabelSchema>;
|
|
34
40
|
/** What the last collection tick decided, in the collector's own vocabulary. */
|
|
35
41
|
export declare const CollectorHeartbeatSyncStatusSchema: z.ZodEnum<{
|
|
@@ -55,6 +61,11 @@ export declare const CollectorHeartbeatSchema: z.ZodObject<{
|
|
|
55
61
|
}>>;
|
|
56
62
|
last_sync_reason: z.ZodOptional<z.ZodString>;
|
|
57
63
|
sessions_observed: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
outside_root_directories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
65
|
+
basename: z.ZodString;
|
|
66
|
+
path_sha256: z.ZodString;
|
|
67
|
+
count: z.ZodNumber;
|
|
68
|
+
}, z.core.$strict>>>;
|
|
58
69
|
sessions_outside_root: z.ZodOptional<z.ZodNumber>;
|
|
59
70
|
sessions_new_this_tick: z.ZodOptional<z.ZodNumber>;
|
|
60
71
|
sessions_pending_upload: z.ZodOptional<z.ZodNumber>;
|
|
@@ -44,6 +44,7 @@ export const CollectorRootLabelSchema = z
|
|
|
44
44
|
path_sha256: Sha256Schema,
|
|
45
45
|
})
|
|
46
46
|
.strict();
|
|
47
|
+
export const OutsideRootDirectorySchema = CollectorRootLabelSchema.extend({ count: z.number().int().nonnegative() }).strict();
|
|
47
48
|
/** What the last collection tick decided, in the collector's own vocabulary. */
|
|
48
49
|
export const CollectorHeartbeatSyncStatusSchema = z.enum([
|
|
49
50
|
"ok",
|
|
@@ -85,6 +86,7 @@ export const CollectorHeartbeatSchema = z
|
|
|
85
86
|
.optional(),
|
|
86
87
|
/** Counts only — how many sessions the tick saw, and how many were outside. */
|
|
87
88
|
sessions_observed: z.number().int().nonnegative().max(1_000_000).optional(),
|
|
89
|
+
outside_root_directories: z.array(OutsideRootDirectorySchema).max(40).optional(),
|
|
88
90
|
sessions_outside_root: z
|
|
89
91
|
.number()
|
|
90
92
|
.int()
|
|
@@ -507,6 +507,8 @@ export declare const AgentSessionSourceSchema: z.ZodDefault<z.ZodEnum<{
|
|
|
507
507
|
}>>;
|
|
508
508
|
export type AgentSessionSource = z.infer<typeof AgentSessionSourceSchema>;
|
|
509
509
|
export declare const CodexSessionAttributionSchema: z.ZodObject<{
|
|
510
|
+
ticket_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
511
|
+
ticket_binding_source: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"explicit_bind">>>;
|
|
510
512
|
codex_session_id: z.ZodString;
|
|
511
513
|
source: z.ZodDefault<z.ZodEnum<{
|
|
512
514
|
codex: "codex";
|
|
@@ -576,6 +578,8 @@ export declare const CodexSessionAttributionReportRequestSchema: z.ZodObject<{
|
|
|
576
578
|
work_context_id: z.ZodString;
|
|
577
579
|
}, z.core.$strict>;
|
|
578
580
|
sessions: z.ZodArray<z.ZodObject<{
|
|
581
|
+
ticket_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
582
|
+
ticket_binding_source: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"explicit_bind">>>;
|
|
579
583
|
codex_session_id: z.ZodString;
|
|
580
584
|
source: z.ZodDefault<z.ZodEnum<{
|
|
581
585
|
codex: "codex";
|
package/dist/evidence-upload.js
CHANGED
|
@@ -273,6 +273,8 @@ export const AgentSessionSourceSchema = z
|
|
|
273
273
|
.default("codex");
|
|
274
274
|
export const CodexSessionAttributionSchema = z
|
|
275
275
|
.object({
|
|
276
|
+
ticket_id: NonEmptyStringSchema.max(120).nullable().optional(),
|
|
277
|
+
ticket_binding_source: z.literal("explicit_bind").nullable().optional(),
|
|
276
278
|
codex_session_id: NonEmptyStringSchema.max(120),
|
|
277
279
|
source: AgentSessionSourceSchema,
|
|
278
280
|
observed_at: IsoDateTimeSchema,
|