@bli-cockpit/telemetry-core 0.1.65 → 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 +108 -0
- package/dist/agent-setup.js +28 -0
- package/dist/collector-heartbeat.d.ts +88 -0
- package/dist/evidence-upload.d.ts +2 -0
- package/dist/evidence-upload.js +11 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/ingest-dto.d.ts +2 -2
- package/dist/setup-receipt.d.ts +88 -0
- package/dist/setup-receipt.js +2 -0
- package/dist/work-context.d.ts +4 -4
- package/package.json +1 -1
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
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
|
+
}>;
|
|
20
|
+
export declare const AgentSetupSchema: z.ZodObject<{
|
|
21
|
+
checked_at: z.ZodString;
|
|
22
|
+
os: z.ZodEnum<{
|
|
23
|
+
darwin: "darwin";
|
|
24
|
+
win32: "win32";
|
|
25
|
+
other: "other";
|
|
26
|
+
}>;
|
|
27
|
+
cli_version: z.ZodString;
|
|
28
|
+
claude: z.ZodObject<{
|
|
29
|
+
version: z.ZodNullable<z.ZodString>;
|
|
30
|
+
model: z.ZodNullable<z.ZodString>;
|
|
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
|
+
}>>;
|
|
49
|
+
skills: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
50
|
+
plugins: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
51
|
+
agents: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
52
|
+
hooks: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
53
|
+
mcp: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
54
|
+
name: z.ZodString;
|
|
55
|
+
transport: z.ZodEnum<{
|
|
56
|
+
unknown: "unknown";
|
|
57
|
+
stdio: "stdio";
|
|
58
|
+
http: "http";
|
|
59
|
+
sse: "sse";
|
|
60
|
+
}>;
|
|
61
|
+
}, z.core.$strict>>>;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
codex: z.ZodObject<{
|
|
64
|
+
version: z.ZodNullable<z.ZodString>;
|
|
65
|
+
model: z.ZodNullable<z.ZodString>;
|
|
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
|
+
}>>;
|
|
84
|
+
skills: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
85
|
+
plugins: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
86
|
+
agents: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
87
|
+
hooks: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
88
|
+
mcp: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
89
|
+
name: z.ZodString;
|
|
90
|
+
transport: z.ZodEnum<{
|
|
91
|
+
unknown: "unknown";
|
|
92
|
+
stdio: "stdio";
|
|
93
|
+
http: "http";
|
|
94
|
+
sse: "sse";
|
|
95
|
+
}>;
|
|
96
|
+
}, z.core.$strict>>>;
|
|
97
|
+
}, z.core.$strict>;
|
|
98
|
+
instructions: z.ZodArray<z.ZodObject<{
|
|
99
|
+
name: z.ZodEnum<{
|
|
100
|
+
"CLAUDE.md": "CLAUDE.md";
|
|
101
|
+
"AGENTS.md": "AGENTS.md";
|
|
102
|
+
}>;
|
|
103
|
+
exists: z.ZodNullable<z.ZodBoolean>;
|
|
104
|
+
sha256: z.ZodNullable<z.ZodString>;
|
|
105
|
+
bytes: z.ZodNullable<z.ZodNumber>;
|
|
106
|
+
}, z.core.$strict>>;
|
|
107
|
+
}, z.core.$strict>;
|
|
108
|
+
export type AgentSetup = z.infer<typeof AgentSetupSchema>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { containsSecretLikeContent } from "./secret-guards.js";
|
|
3
|
+
// Names are the only free text allowed to cross this boundary. No command,
|
|
4
|
+
// URL, argument, path, environment value or configuration body is accepted.
|
|
5
|
+
export const SetupNameSchema = z.string().max(100).regex(/^[a-z0-9][a-z0-9_.@+-]*$/i)
|
|
6
|
+
.refine(value => !containsSecretLikeContent(value), "secret_like_name");
|
|
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"]);
|
|
15
|
+
const tool = z.object({
|
|
16
|
+
version: SetupNameSchema.nullable(), model: SetupNameSchema.nullable(), effort: SetupNameSchema.nullable(),
|
|
17
|
+
version_source: VersionSourceSchema.optional(), model_basis: ModelBasisSchema.optional(), effort_basis: EffortBasisSchema.optional(),
|
|
18
|
+
skills: names.nullable(), plugins: names.nullable(), agents: names.nullable(), hooks: names.nullable(),
|
|
19
|
+
mcp: z.array(z.object({ name: SetupNameSchema, transport: z.enum(["stdio", "http", "sse", "unknown"]) }).strict()).max(500).nullable(),
|
|
20
|
+
}).strict();
|
|
21
|
+
export const AgentSetupSchema = z.object({
|
|
22
|
+
checked_at: z.string().datetime(), os: z.enum(["darwin", "win32", "other"]), cli_version: SetupNameSchema,
|
|
23
|
+
claude: tool, codex: tool,
|
|
24
|
+
instructions: z.array(z.object({
|
|
25
|
+
name: z.enum(["CLAUDE.md", "AGENTS.md"]), exists: z.boolean().nullable(),
|
|
26
|
+
sha256: z.string().regex(/^[a-f0-9]{64}$/).nullable(), bytes: z.number().int().nonnegative().nullable(),
|
|
27
|
+
}).strict()).max(2),
|
|
28
|
+
}).strict();
|
|
@@ -172,6 +172,94 @@ export declare const CollectorHeartbeatSchema: z.ZodObject<{
|
|
|
172
172
|
}, z.core.$strict>>;
|
|
173
173
|
setup_receipt: z.ZodOptional<z.ZodObject<{
|
|
174
174
|
schema_version: z.ZodLiteral<"setup-receipt.v1">;
|
|
175
|
+
agent_setup: z.ZodOptional<z.ZodObject<{
|
|
176
|
+
checked_at: z.ZodString;
|
|
177
|
+
os: z.ZodEnum<{
|
|
178
|
+
darwin: "darwin";
|
|
179
|
+
win32: "win32";
|
|
180
|
+
other: "other";
|
|
181
|
+
}>;
|
|
182
|
+
cli_version: z.ZodString;
|
|
183
|
+
claude: z.ZodObject<{
|
|
184
|
+
version: z.ZodNullable<z.ZodString>;
|
|
185
|
+
model: z.ZodNullable<z.ZodString>;
|
|
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
|
+
}>>;
|
|
204
|
+
skills: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
205
|
+
plugins: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
206
|
+
agents: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
207
|
+
hooks: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
208
|
+
mcp: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
209
|
+
name: z.ZodString;
|
|
210
|
+
transport: z.ZodEnum<{
|
|
211
|
+
unknown: "unknown";
|
|
212
|
+
stdio: "stdio";
|
|
213
|
+
http: "http";
|
|
214
|
+
sse: "sse";
|
|
215
|
+
}>;
|
|
216
|
+
}, z.core.$strict>>>;
|
|
217
|
+
}, z.core.$strict>;
|
|
218
|
+
codex: z.ZodObject<{
|
|
219
|
+
version: z.ZodNullable<z.ZodString>;
|
|
220
|
+
model: z.ZodNullable<z.ZodString>;
|
|
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
|
+
}>>;
|
|
239
|
+
skills: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
240
|
+
plugins: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
241
|
+
agents: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
242
|
+
hooks: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
243
|
+
mcp: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
244
|
+
name: z.ZodString;
|
|
245
|
+
transport: z.ZodEnum<{
|
|
246
|
+
unknown: "unknown";
|
|
247
|
+
stdio: "stdio";
|
|
248
|
+
http: "http";
|
|
249
|
+
sse: "sse";
|
|
250
|
+
}>;
|
|
251
|
+
}, z.core.$strict>>>;
|
|
252
|
+
}, z.core.$strict>;
|
|
253
|
+
instructions: z.ZodArray<z.ZodObject<{
|
|
254
|
+
name: z.ZodEnum<{
|
|
255
|
+
"CLAUDE.md": "CLAUDE.md";
|
|
256
|
+
"AGENTS.md": "AGENTS.md";
|
|
257
|
+
}>;
|
|
258
|
+
exists: z.ZodNullable<z.ZodBoolean>;
|
|
259
|
+
sha256: z.ZodNullable<z.ZodString>;
|
|
260
|
+
bytes: z.ZodNullable<z.ZodNumber>;
|
|
261
|
+
}, z.core.$strict>>;
|
|
262
|
+
}, z.core.$strict>>;
|
|
175
263
|
checked_at: z.ZodString;
|
|
176
264
|
browser: z.ZodObject<{
|
|
177
265
|
status: z.ZodEnum<{
|
|
@@ -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/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/ingest-dto.d.ts
CHANGED
|
@@ -427,6 +427,7 @@ export declare const TelemetryIngestEnvelopeSchema: z.ZodObject<{
|
|
|
427
427
|
topic_summary_redacted: z.ZodOptional<z.ZodString>;
|
|
428
428
|
work_intent: z.ZodOptional<z.ZodEnum<{
|
|
429
429
|
unknown: "unknown";
|
|
430
|
+
other: "other";
|
|
430
431
|
implementation: "implementation";
|
|
431
432
|
bug_fix: "bug_fix";
|
|
432
433
|
root_cause_analysis: "root_cause_analysis";
|
|
@@ -440,10 +441,10 @@ export declare const TelemetryIngestEnvelopeSchema: z.ZodObject<{
|
|
|
440
441
|
coordination: "coordination";
|
|
441
442
|
maintenance: "maintenance";
|
|
442
443
|
analysis: "analysis";
|
|
443
|
-
other: "other";
|
|
444
444
|
}>>;
|
|
445
445
|
work_phase: z.ZodOptional<z.ZodEnum<{
|
|
446
446
|
unknown: "unknown";
|
|
447
|
+
other: "other";
|
|
447
448
|
implementation: "implementation";
|
|
448
449
|
planning: "planning";
|
|
449
450
|
discovery: "discovery";
|
|
@@ -452,7 +453,6 @@ export declare const TelemetryIngestEnvelopeSchema: z.ZodObject<{
|
|
|
452
453
|
documentation: "documentation";
|
|
453
454
|
release: "release";
|
|
454
455
|
analysis: "analysis";
|
|
455
|
-
other: "other";
|
|
456
456
|
debugging: "debugging";
|
|
457
457
|
handoff: "handoff";
|
|
458
458
|
}>>;
|
package/dist/setup-receipt.d.ts
CHANGED
|
@@ -66,6 +66,94 @@ declare const PieceSchema: z.ZodObject<{
|
|
|
66
66
|
export type SetupPiece = z.infer<typeof PieceSchema>;
|
|
67
67
|
export declare const SetupReceiptSchema: z.ZodObject<{
|
|
68
68
|
schema_version: z.ZodLiteral<"setup-receipt.v1">;
|
|
69
|
+
agent_setup: z.ZodOptional<z.ZodObject<{
|
|
70
|
+
checked_at: z.ZodString;
|
|
71
|
+
os: z.ZodEnum<{
|
|
72
|
+
darwin: "darwin";
|
|
73
|
+
win32: "win32";
|
|
74
|
+
other: "other";
|
|
75
|
+
}>;
|
|
76
|
+
cli_version: z.ZodString;
|
|
77
|
+
claude: z.ZodObject<{
|
|
78
|
+
version: z.ZodNullable<z.ZodString>;
|
|
79
|
+
model: z.ZodNullable<z.ZodString>;
|
|
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
|
+
}>>;
|
|
98
|
+
skills: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
99
|
+
plugins: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
100
|
+
agents: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
101
|
+
hooks: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
102
|
+
mcp: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
103
|
+
name: z.ZodString;
|
|
104
|
+
transport: z.ZodEnum<{
|
|
105
|
+
unknown: "unknown";
|
|
106
|
+
stdio: "stdio";
|
|
107
|
+
http: "http";
|
|
108
|
+
sse: "sse";
|
|
109
|
+
}>;
|
|
110
|
+
}, z.core.$strict>>>;
|
|
111
|
+
}, z.core.$strict>;
|
|
112
|
+
codex: z.ZodObject<{
|
|
113
|
+
version: z.ZodNullable<z.ZodString>;
|
|
114
|
+
model: z.ZodNullable<z.ZodString>;
|
|
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
|
+
}>>;
|
|
133
|
+
skills: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
134
|
+
plugins: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
135
|
+
agents: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
136
|
+
hooks: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
137
|
+
mcp: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
138
|
+
name: z.ZodString;
|
|
139
|
+
transport: z.ZodEnum<{
|
|
140
|
+
unknown: "unknown";
|
|
141
|
+
stdio: "stdio";
|
|
142
|
+
http: "http";
|
|
143
|
+
sse: "sse";
|
|
144
|
+
}>;
|
|
145
|
+
}, z.core.$strict>>>;
|
|
146
|
+
}, z.core.$strict>;
|
|
147
|
+
instructions: z.ZodArray<z.ZodObject<{
|
|
148
|
+
name: z.ZodEnum<{
|
|
149
|
+
"CLAUDE.md": "CLAUDE.md";
|
|
150
|
+
"AGENTS.md": "AGENTS.md";
|
|
151
|
+
}>;
|
|
152
|
+
exists: z.ZodNullable<z.ZodBoolean>;
|
|
153
|
+
sha256: z.ZodNullable<z.ZodString>;
|
|
154
|
+
bytes: z.ZodNullable<z.ZodNumber>;
|
|
155
|
+
}, z.core.$strict>>;
|
|
156
|
+
}, z.core.$strict>>;
|
|
69
157
|
checked_at: z.ZodString;
|
|
70
158
|
browser: z.ZodObject<{
|
|
71
159
|
status: z.ZodEnum<{
|
package/dist/setup-receipt.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { AgentSetupSchema } from "./agent-setup.js";
|
|
2
3
|
import { IsoDateTimeSchema } from "./common.js";
|
|
3
4
|
/**
|
|
4
5
|
* "Is this machine actually connected?" — one block, read back off the machine
|
|
@@ -86,6 +87,7 @@ const PieceSchema = z
|
|
|
86
87
|
export const SetupReceiptSchema = z
|
|
87
88
|
.object({
|
|
88
89
|
schema_version: z.literal(SETUP_RECEIPT_SCHEMA_VERSION),
|
|
90
|
+
agent_setup: AgentSetupSchema.optional(),
|
|
89
91
|
/** When these words were read off this machine. Ages out; never trusted stale. */
|
|
90
92
|
checked_at: IsoDateTimeSchema,
|
|
91
93
|
/** Did a person ever sign a browser in for this machine? */
|
package/dist/work-context.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export declare const TicketBindingCandidateSchema: z.ZodObject<{
|
|
|
27
27
|
export type TicketBindingCandidate = z.infer<typeof TicketBindingCandidateSchema>;
|
|
28
28
|
export declare const WorkIntentSchema: z.ZodEnum<{
|
|
29
29
|
unknown: "unknown";
|
|
30
|
+
other: "other";
|
|
30
31
|
implementation: "implementation";
|
|
31
32
|
bug_fix: "bug_fix";
|
|
32
33
|
root_cause_analysis: "root_cause_analysis";
|
|
@@ -40,11 +41,11 @@ export declare const WorkIntentSchema: z.ZodEnum<{
|
|
|
40
41
|
coordination: "coordination";
|
|
41
42
|
maintenance: "maintenance";
|
|
42
43
|
analysis: "analysis";
|
|
43
|
-
other: "other";
|
|
44
44
|
}>;
|
|
45
45
|
export type WorkIntent = z.infer<typeof WorkIntentSchema>;
|
|
46
46
|
export declare const WorkPhaseSchema: z.ZodEnum<{
|
|
47
47
|
unknown: "unknown";
|
|
48
|
+
other: "other";
|
|
48
49
|
implementation: "implementation";
|
|
49
50
|
planning: "planning";
|
|
50
51
|
discovery: "discovery";
|
|
@@ -53,7 +54,6 @@ export declare const WorkPhaseSchema: z.ZodEnum<{
|
|
|
53
54
|
documentation: "documentation";
|
|
54
55
|
release: "release";
|
|
55
56
|
analysis: "analysis";
|
|
56
|
-
other: "other";
|
|
57
57
|
debugging: "debugging";
|
|
58
58
|
handoff: "handoff";
|
|
59
59
|
}>;
|
|
@@ -106,6 +106,7 @@ export declare const LocalWorkContextSchema: z.ZodObject<{
|
|
|
106
106
|
topic_summary_redacted: z.ZodOptional<z.ZodString>;
|
|
107
107
|
work_intent: z.ZodOptional<z.ZodEnum<{
|
|
108
108
|
unknown: "unknown";
|
|
109
|
+
other: "other";
|
|
109
110
|
implementation: "implementation";
|
|
110
111
|
bug_fix: "bug_fix";
|
|
111
112
|
root_cause_analysis: "root_cause_analysis";
|
|
@@ -119,10 +120,10 @@ export declare const LocalWorkContextSchema: z.ZodObject<{
|
|
|
119
120
|
coordination: "coordination";
|
|
120
121
|
maintenance: "maintenance";
|
|
121
122
|
analysis: "analysis";
|
|
122
|
-
other: "other";
|
|
123
123
|
}>>;
|
|
124
124
|
work_phase: z.ZodOptional<z.ZodEnum<{
|
|
125
125
|
unknown: "unknown";
|
|
126
|
+
other: "other";
|
|
126
127
|
implementation: "implementation";
|
|
127
128
|
planning: "planning";
|
|
128
129
|
discovery: "discovery";
|
|
@@ -131,7 +132,6 @@ export declare const LocalWorkContextSchema: z.ZodObject<{
|
|
|
131
132
|
documentation: "documentation";
|
|
132
133
|
release: "release";
|
|
133
134
|
analysis: "analysis";
|
|
134
|
-
other: "other";
|
|
135
135
|
debugging: "debugging";
|
|
136
136
|
handoff: "handoff";
|
|
137
137
|
}>>;
|