@bli-cockpit/telemetry-core 0.1.66 → 0.1.67
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/agent-setup.d.ts +51 -0
- package/dist/agent-setup.js +8 -0
- package/dist/collector-heartbeat.d.ts +34 -0
- package/dist/evidence-upload.d.ts +2 -0
- package/dist/evidence-upload.js +11 -0
- package/dist/setup-receipt.d.ts +34 -0
- package/package.json +1 -1
package/dist/agent-setup.d.ts
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const SetupNameSchema: z.ZodString;
|
|
3
|
+
export declare const VersionSourceSchema: z.ZodEnum<{
|
|
4
|
+
cli: "cli";
|
|
5
|
+
package: "package";
|
|
6
|
+
transcript: "transcript";
|
|
7
|
+
none: "none";
|
|
8
|
+
}>;
|
|
9
|
+
export declare const ModelBasisSchema: z.ZodEnum<{
|
|
10
|
+
set: "set";
|
|
11
|
+
none: "none";
|
|
12
|
+
used: "used";
|
|
13
|
+
}>;
|
|
14
|
+
export declare const EffortBasisSchema: z.ZodEnum<{
|
|
15
|
+
set: "set";
|
|
16
|
+
default: "default";
|
|
17
|
+
none: "none";
|
|
18
|
+
observed: "observed";
|
|
19
|
+
}>;
|
|
3
20
|
export declare const AgentSetupSchema: z.ZodObject<{
|
|
4
21
|
checked_at: z.ZodString;
|
|
5
22
|
os: z.ZodEnum<{
|
|
@@ -12,6 +29,23 @@ export declare const AgentSetupSchema: z.ZodObject<{
|
|
|
12
29
|
version: z.ZodNullable<z.ZodString>;
|
|
13
30
|
model: z.ZodNullable<z.ZodString>;
|
|
14
31
|
effort: z.ZodNullable<z.ZodString>;
|
|
32
|
+
version_source: z.ZodOptional<z.ZodEnum<{
|
|
33
|
+
cli: "cli";
|
|
34
|
+
package: "package";
|
|
35
|
+
transcript: "transcript";
|
|
36
|
+
none: "none";
|
|
37
|
+
}>>;
|
|
38
|
+
model_basis: z.ZodOptional<z.ZodEnum<{
|
|
39
|
+
set: "set";
|
|
40
|
+
none: "none";
|
|
41
|
+
used: "used";
|
|
42
|
+
}>>;
|
|
43
|
+
effort_basis: z.ZodOptional<z.ZodEnum<{
|
|
44
|
+
set: "set";
|
|
45
|
+
default: "default";
|
|
46
|
+
none: "none";
|
|
47
|
+
observed: "observed";
|
|
48
|
+
}>>;
|
|
15
49
|
skills: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
16
50
|
plugins: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
17
51
|
agents: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
@@ -30,6 +64,23 @@ export declare const AgentSetupSchema: z.ZodObject<{
|
|
|
30
64
|
version: z.ZodNullable<z.ZodString>;
|
|
31
65
|
model: z.ZodNullable<z.ZodString>;
|
|
32
66
|
effort: z.ZodNullable<z.ZodString>;
|
|
67
|
+
version_source: z.ZodOptional<z.ZodEnum<{
|
|
68
|
+
cli: "cli";
|
|
69
|
+
package: "package";
|
|
70
|
+
transcript: "transcript";
|
|
71
|
+
none: "none";
|
|
72
|
+
}>>;
|
|
73
|
+
model_basis: z.ZodOptional<z.ZodEnum<{
|
|
74
|
+
set: "set";
|
|
75
|
+
none: "none";
|
|
76
|
+
used: "used";
|
|
77
|
+
}>>;
|
|
78
|
+
effort_basis: z.ZodOptional<z.ZodEnum<{
|
|
79
|
+
set: "set";
|
|
80
|
+
default: "default";
|
|
81
|
+
none: "none";
|
|
82
|
+
observed: "observed";
|
|
83
|
+
}>>;
|
|
33
84
|
skills: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
34
85
|
plugins: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
35
86
|
agents: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
package/dist/agent-setup.js
CHANGED
|
@@ -5,8 +5,16 @@ import { containsSecretLikeContent } from "./secret-guards.js";
|
|
|
5
5
|
export const SetupNameSchema = z.string().max(100).regex(/^[a-z0-9][a-z0-9_.@+-]*$/i)
|
|
6
6
|
.refine(value => !containsSecretLikeContent(value), "secret_like_name");
|
|
7
7
|
const names = z.array(SetupNameSchema).max(500);
|
|
8
|
+
// BLI-13055: where each of the three words came from. Optional so receipts
|
|
9
|
+
// written before this field existed still parse; a missing basis reads as
|
|
10
|
+
// "set" when a value is present and as "default" (effort) or "no evidence"
|
|
11
|
+
// (model, version) when it is null.
|
|
12
|
+
export const VersionSourceSchema = z.enum(["cli", "package", "transcript", "none"]);
|
|
13
|
+
export const ModelBasisSchema = z.enum(["set", "used", "none"]);
|
|
14
|
+
export const EffortBasisSchema = z.enum(["set", "observed", "default", "none"]);
|
|
8
15
|
const tool = z.object({
|
|
9
16
|
version: SetupNameSchema.nullable(), model: SetupNameSchema.nullable(), effort: SetupNameSchema.nullable(),
|
|
17
|
+
version_source: VersionSourceSchema.optional(), model_basis: ModelBasisSchema.optional(), effort_basis: EffortBasisSchema.optional(),
|
|
10
18
|
skills: names.nullable(), plugins: names.nullable(), agents: names.nullable(), hooks: names.nullable(),
|
|
11
19
|
mcp: z.array(z.object({ name: SetupNameSchema, transport: z.enum(["stdio", "http", "sse", "unknown"]) }).strict()).max(500).nullable(),
|
|
12
20
|
}).strict();
|
|
@@ -184,6 +184,23 @@ export declare const CollectorHeartbeatSchema: z.ZodObject<{
|
|
|
184
184
|
version: z.ZodNullable<z.ZodString>;
|
|
185
185
|
model: z.ZodNullable<z.ZodString>;
|
|
186
186
|
effort: z.ZodNullable<z.ZodString>;
|
|
187
|
+
version_source: z.ZodOptional<z.ZodEnum<{
|
|
188
|
+
cli: "cli";
|
|
189
|
+
package: "package";
|
|
190
|
+
transcript: "transcript";
|
|
191
|
+
none: "none";
|
|
192
|
+
}>>;
|
|
193
|
+
model_basis: z.ZodOptional<z.ZodEnum<{
|
|
194
|
+
set: "set";
|
|
195
|
+
none: "none";
|
|
196
|
+
used: "used";
|
|
197
|
+
}>>;
|
|
198
|
+
effort_basis: z.ZodOptional<z.ZodEnum<{
|
|
199
|
+
set: "set";
|
|
200
|
+
default: "default";
|
|
201
|
+
none: "none";
|
|
202
|
+
observed: "observed";
|
|
203
|
+
}>>;
|
|
187
204
|
skills: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
188
205
|
plugins: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
189
206
|
agents: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
@@ -202,6 +219,23 @@ export declare const CollectorHeartbeatSchema: z.ZodObject<{
|
|
|
202
219
|
version: z.ZodNullable<z.ZodString>;
|
|
203
220
|
model: z.ZodNullable<z.ZodString>;
|
|
204
221
|
effort: z.ZodNullable<z.ZodString>;
|
|
222
|
+
version_source: z.ZodOptional<z.ZodEnum<{
|
|
223
|
+
cli: "cli";
|
|
224
|
+
package: "package";
|
|
225
|
+
transcript: "transcript";
|
|
226
|
+
none: "none";
|
|
227
|
+
}>>;
|
|
228
|
+
model_basis: z.ZodOptional<z.ZodEnum<{
|
|
229
|
+
set: "set";
|
|
230
|
+
none: "none";
|
|
231
|
+
used: "used";
|
|
232
|
+
}>>;
|
|
233
|
+
effort_basis: z.ZodOptional<z.ZodEnum<{
|
|
234
|
+
set: "set";
|
|
235
|
+
default: "default";
|
|
236
|
+
none: "none";
|
|
237
|
+
observed: "observed";
|
|
238
|
+
}>>;
|
|
205
239
|
skills: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
206
240
|
plugins: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
207
241
|
agents: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
@@ -590,6 +590,7 @@ export declare const CodexSessionAttributionSchema: z.ZodObject<{
|
|
|
590
590
|
worktree_fingerprint: z.ZodOptional<z.ZodString>;
|
|
591
591
|
repo_label: z.ZodOptional<z.ZodString>;
|
|
592
592
|
branch: z.ZodOptional<z.ZodString>;
|
|
593
|
+
commit_shas: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
593
594
|
root_scope: z.ZodOptional<z.ZodEnum<{
|
|
594
595
|
inside: "inside";
|
|
595
596
|
outside: "outside";
|
|
@@ -698,6 +699,7 @@ export declare const CodexSessionAttributionReportRequestSchema: z.ZodObject<{
|
|
|
698
699
|
worktree_fingerprint: z.ZodOptional<z.ZodString>;
|
|
699
700
|
repo_label: z.ZodOptional<z.ZodString>;
|
|
700
701
|
branch: z.ZodOptional<z.ZodString>;
|
|
702
|
+
commit_shas: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
701
703
|
root_scope: z.ZodOptional<z.ZodEnum<{
|
|
702
704
|
inside: "inside";
|
|
703
705
|
outside: "outside";
|
package/dist/evidence-upload.js
CHANGED
|
@@ -311,6 +311,17 @@ export const CodexSessionAttributionSchema = z
|
|
|
311
311
|
worktree_fingerprint: SafeLabelSchema.optional(),
|
|
312
312
|
repo_label: BasenameSchema.optional(),
|
|
313
313
|
branch: z.string().trim().min(1).max(200).optional(),
|
|
314
|
+
/**
|
|
315
|
+
* BLI-13028: full SHAs of the commits this session's working tree created
|
|
316
|
+
* between its first and last transcript timestamp. Metadata only. Absent
|
|
317
|
+
* means the collector did not look (old CLI, no working tree, unreadable
|
|
318
|
+
* git); an empty list means it looked and found none. Lets the Setup page
|
|
319
|
+
* judge a session shipped without relying on its branch.
|
|
320
|
+
*/
|
|
321
|
+
commit_shas: z
|
|
322
|
+
.array(z.string().regex(/^(?:[0-9a-f]{40}|[0-9a-f]{64})$/))
|
|
323
|
+
.max(100)
|
|
324
|
+
.optional(),
|
|
314
325
|
root_scope: RootScopeSchema.optional(),
|
|
315
326
|
cwd_basename: BasenameSchema.optional(),
|
|
316
327
|
cwd_hash: z
|
package/dist/setup-receipt.d.ts
CHANGED
|
@@ -78,6 +78,23 @@ export declare const SetupReceiptSchema: z.ZodObject<{
|
|
|
78
78
|
version: z.ZodNullable<z.ZodString>;
|
|
79
79
|
model: z.ZodNullable<z.ZodString>;
|
|
80
80
|
effort: z.ZodNullable<z.ZodString>;
|
|
81
|
+
version_source: z.ZodOptional<z.ZodEnum<{
|
|
82
|
+
cli: "cli";
|
|
83
|
+
package: "package";
|
|
84
|
+
transcript: "transcript";
|
|
85
|
+
none: "none";
|
|
86
|
+
}>>;
|
|
87
|
+
model_basis: z.ZodOptional<z.ZodEnum<{
|
|
88
|
+
set: "set";
|
|
89
|
+
none: "none";
|
|
90
|
+
used: "used";
|
|
91
|
+
}>>;
|
|
92
|
+
effort_basis: z.ZodOptional<z.ZodEnum<{
|
|
93
|
+
set: "set";
|
|
94
|
+
default: "default";
|
|
95
|
+
none: "none";
|
|
96
|
+
observed: "observed";
|
|
97
|
+
}>>;
|
|
81
98
|
skills: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
82
99
|
plugins: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
83
100
|
agents: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
@@ -96,6 +113,23 @@ export declare const SetupReceiptSchema: z.ZodObject<{
|
|
|
96
113
|
version: z.ZodNullable<z.ZodString>;
|
|
97
114
|
model: z.ZodNullable<z.ZodString>;
|
|
98
115
|
effort: z.ZodNullable<z.ZodString>;
|
|
116
|
+
version_source: z.ZodOptional<z.ZodEnum<{
|
|
117
|
+
cli: "cli";
|
|
118
|
+
package: "package";
|
|
119
|
+
transcript: "transcript";
|
|
120
|
+
none: "none";
|
|
121
|
+
}>>;
|
|
122
|
+
model_basis: z.ZodOptional<z.ZodEnum<{
|
|
123
|
+
set: "set";
|
|
124
|
+
none: "none";
|
|
125
|
+
used: "used";
|
|
126
|
+
}>>;
|
|
127
|
+
effort_basis: z.ZodOptional<z.ZodEnum<{
|
|
128
|
+
set: "set";
|
|
129
|
+
default: "default";
|
|
130
|
+
none: "none";
|
|
131
|
+
observed: "observed";
|
|
132
|
+
}>>;
|
|
99
133
|
skills: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
100
134
|
plugins: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
101
135
|
agents: z.ZodNullable<z.ZodArray<z.ZodString>>;
|