@osfactory/otel-hook 0.3.0 → 0.5.0
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/{adapter-DXpNtnaf.d.ts → adapter-BS7xHKGQ.d.ts} +9 -3
- package/dist/cli.js +1043 -487
- package/dist/cli.js.map +1 -1
- package/dist/{events-VxBnDFaO.d.ts → events-CzZ5kukS.d.ts} +177 -1
- package/dist/{filesystem-store-J8jjDMTh.d.ts → filesystem-store-BcOveJYY.d.ts} +1 -1
- package/dist/{hook-_mlO3akA.d.ts → hook-DxTakjAD.d.ts} +12 -4
- package/dist/index.d.ts +12 -12
- package/dist/index.js +1171 -599
- package/dist/index.js.map +1 -1
- package/dist/install.d.ts +4 -4
- package/dist/install.js +103 -68
- package/dist/install.js.map +1 -1
- package/dist/integration.d.ts +14 -8
- package/dist/integration.js +547 -121
- package/dist/integration.js.map +1 -1
- package/dist/lifecycle.d.ts +3 -3
- package/dist/lifecycle.js +27 -2
- package/dist/lifecycle.js.map +1 -1
- package/dist/{memory-DXVBc8V9.d.ts → memory-DkTohdIa.d.ts} +2 -2
- package/dist/model.d.ts +1 -1
- package/dist/model.js +84 -41
- package/dist/model.js.map +1 -1
- package/dist/{otlp-log-sink-DTSa0KRF.d.ts → otlp-log-sink-DaZDPKnR.d.ts} +3 -3
- package/dist/{payload-BWV5-4n3.d.ts → payload-2lnpKodw.d.ts} +1 -1
- package/dist/{ports-Q8x0ODhs.d.ts → ports-B0rC49b3.d.ts} +28 -2
- package/dist/providers.d.ts +26 -9
- package/dist/providers.js +668 -452
- package/dist/providers.js.map +1 -1
- package/dist/{registry-Dqr3VNmT.d.ts → registry-DVnPA_b6.d.ts} +1 -1
- package/dist/runtime.d.ts +103 -11
- package/dist/runtime.js +416 -67
- package/dist/runtime.js.map +1 -1
- package/dist/{semconv-CIU-2kGO.d.ts → semconv-CtnDdsPk.d.ts} +1 -1
- package/dist/state.d.ts +4 -4
- package/dist/state.js.map +1 -1
- package/dist/telemetry.d.ts +6 -6
- package/dist/telemetry.js +92 -10
- package/dist/telemetry.js.map +1 -1
- package/dist/testing.d.ts +13 -7
- package/dist/testing.js +821 -492
- package/dist/testing.js.map +1 -1
- package/package.json +4 -1
|
@@ -155,6 +155,104 @@ declare const toReport: (usage: CanonicalUsage) => UsageReport;
|
|
|
155
155
|
*/
|
|
156
156
|
declare const addUsage: (a: CanonicalUsage, b: CanonicalUsage) => CanonicalUsage;
|
|
157
157
|
|
|
158
|
+
/**
|
|
159
|
+
* Per-event workspace targeting (ADR 0008).
|
|
160
|
+
*
|
|
161
|
+
* A session's `workspace` is where the agent was *started*. An agent routinely
|
|
162
|
+
* works somewhere else — in a linked git worktree beside the checkout it was
|
|
163
|
+
* launched from — and the session-level identity cannot show that. A tool event
|
|
164
|
+
* can: the file it edited, or the directory its shell command ran in, names the
|
|
165
|
+
* worktree it actually touched.
|
|
166
|
+
*
|
|
167
|
+
* Two values model that, and the split between them is the privacy boundary:
|
|
168
|
+
*
|
|
169
|
+
* - {@link TargetHint} is what an adapter observed — local paths. It is an
|
|
170
|
+
* in-process value only: it is never part of a {@link CanonicalEvent}, never
|
|
171
|
+
* persisted, never exported. The core resolves it and drops it.
|
|
172
|
+
* - {@link WorkspaceTarget} is what the core resolved — salted handles of the
|
|
173
|
+
* worktree and its repository, the worktree's kind, the checked-out branch, and
|
|
174
|
+
* what the evidence was. It travels on the event.
|
|
175
|
+
*/
|
|
176
|
+
/**
|
|
177
|
+
* What a target was derived from, strongest evidence first.
|
|
178
|
+
*
|
|
179
|
+
* - `tool-path` — a path the tool call itself named (an edited or read file, a
|
|
180
|
+
* patch header).
|
|
181
|
+
* - `shell-cwd` — the working directory the provider reports a shell command ran in.
|
|
182
|
+
* - `session-cwd` — only the session's own directory was known; the event may
|
|
183
|
+
* have reached elsewhere (e.g. a shell `cd`) without the provider saying so.
|
|
184
|
+
*/
|
|
185
|
+
declare const targetSourceSchema: z.ZodEnum<{
|
|
186
|
+
"tool-path": "tool-path";
|
|
187
|
+
"shell-cwd": "shell-cwd";
|
|
188
|
+
"session-cwd": "session-cwd";
|
|
189
|
+
}>;
|
|
190
|
+
type TargetSource = z.infer<typeof targetSourceSchema>;
|
|
191
|
+
/** Most paths one hint may name; a bound, not a sampling rule (all must agree). */
|
|
192
|
+
declare const MAX_TARGET_HINT_PATHS = 8;
|
|
193
|
+
/** Longest local path a hint may carry. Longer input is dropped, never truncated. */
|
|
194
|
+
declare const MAX_TARGET_PATH_LENGTH = 4096;
|
|
195
|
+
/**
|
|
196
|
+
* An adapter's observation of where a tool event pointed. **Carries local paths**
|
|
197
|
+
* — in-process only, see the module note.
|
|
198
|
+
*
|
|
199
|
+
* Every path in one hint must resolve to the same worktree, or the event gets no
|
|
200
|
+
* target at all: a patch touching two worktrees did not target either of them.
|
|
201
|
+
*/
|
|
202
|
+
declare const targetHintSchema: z.ZodReadonly<z.ZodObject<{
|
|
203
|
+
source: z.ZodEnum<{
|
|
204
|
+
"tool-path": "tool-path";
|
|
205
|
+
"shell-cwd": "shell-cwd";
|
|
206
|
+
"session-cwd": "session-cwd";
|
|
207
|
+
}>;
|
|
208
|
+
paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
209
|
+
baseDirectory: z.ZodOptional<z.ZodString>;
|
|
210
|
+
}, z.core.$strict>>;
|
|
211
|
+
type TargetHint = z.infer<typeof targetHintSchema>;
|
|
212
|
+
/**
|
|
213
|
+
* Whether a worktree is its repository's main checkout (`main`) or one added
|
|
214
|
+
* beside it with `git worktree add` (`linked`).
|
|
215
|
+
*/
|
|
216
|
+
declare const worktreeKindSchema: z.ZodEnum<{
|
|
217
|
+
main: "main";
|
|
218
|
+
linked: "linked";
|
|
219
|
+
}>;
|
|
220
|
+
type WorktreeKind = z.infer<typeof worktreeKindSchema>;
|
|
221
|
+
/**
|
|
222
|
+
* The git worktree a tool event targeted. Exported; carries no path.
|
|
223
|
+
*
|
|
224
|
+
* `workspaceId` is derived exactly like a `git-root` workspace identity, so a
|
|
225
|
+
* consumer holding the same salt can match it against one it derived itself.
|
|
226
|
+
* `repositoryId` is the same derivation applied to the repository's main
|
|
227
|
+
* worktree, so every worktree of one repository shares it — and for a main
|
|
228
|
+
* worktree it equals `workspaceId`.
|
|
229
|
+
*/
|
|
230
|
+
declare const workspaceTargetSchema: z.ZodReadonly<z.ZodObject<{
|
|
231
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">;
|
|
232
|
+
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
233
|
+
source: z.ZodEnum<{
|
|
234
|
+
"tool-path": "tool-path";
|
|
235
|
+
"shell-cwd": "shell-cwd";
|
|
236
|
+
"session-cwd": "session-cwd";
|
|
237
|
+
}>;
|
|
238
|
+
repositoryId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">>;
|
|
239
|
+
worktreeKind: z.ZodOptional<z.ZodEnum<{
|
|
240
|
+
main: "main";
|
|
241
|
+
linked: "linked";
|
|
242
|
+
}>>;
|
|
243
|
+
}, z.core.$strict>>;
|
|
244
|
+
type WorkspaceTarget = z.infer<typeof workspaceTargetSchema>;
|
|
245
|
+
/**
|
|
246
|
+
* Shape a provider's own subagent identifier must have to be exported.
|
|
247
|
+
*
|
|
248
|
+
* Identifier-shaped on purpose — no whitespace, no path separators — so a
|
|
249
|
+
* malformed payload field cannot carry prose or a path onto the wire under an id
|
|
250
|
+
* attribute. A value that does not fit is dropped, not repaired.
|
|
251
|
+
*/
|
|
252
|
+
declare const SUBAGENT_ID_PATTERN: RegExp;
|
|
253
|
+
declare const subagentIdSchema: z.ZodString;
|
|
254
|
+
type SubagentId = z.infer<typeof subagentIdSchema>;
|
|
255
|
+
|
|
158
256
|
/** Model being invoked. Model identifiers are not treated as sensitive. */
|
|
159
257
|
declare const modelDescriptorSchema: z.ZodObject<{
|
|
160
258
|
modelId: z.ZodString;
|
|
@@ -234,6 +332,7 @@ declare const sessionStartEventSchema: z.ZodObject<{
|
|
|
234
332
|
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
235
333
|
vcsRevisionId: z.ZodOptional<z.ZodString>;
|
|
236
334
|
}, z.core.$strict>>;
|
|
335
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
237
336
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
238
337
|
type: z.ZodLiteral<"session.start">;
|
|
239
338
|
sessionKind: z.ZodEnum<{
|
|
@@ -288,6 +387,7 @@ declare const sessionEndEventSchema: z.ZodObject<{
|
|
|
288
387
|
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
289
388
|
vcsRevisionId: z.ZodOptional<z.ZodString>;
|
|
290
389
|
}, z.core.$strict>>;
|
|
390
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
291
391
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
292
392
|
type: z.ZodLiteral<"session.end">;
|
|
293
393
|
reason: z.ZodEnum<{
|
|
@@ -370,6 +470,7 @@ declare const promptSubmittedEventSchema: z.ZodObject<{
|
|
|
370
470
|
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
371
471
|
vcsRevisionId: z.ZodOptional<z.ZodString>;
|
|
372
472
|
}, z.core.$strict>>;
|
|
473
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
373
474
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
374
475
|
type: z.ZodLiteral<"prompt.submitted">;
|
|
375
476
|
promptSource: z.ZodEnum<{
|
|
@@ -451,6 +552,7 @@ declare const generationStartEventSchema: z.ZodObject<{
|
|
|
451
552
|
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
452
553
|
vcsRevisionId: z.ZodOptional<z.ZodString>;
|
|
453
554
|
}, z.core.$strict>>;
|
|
555
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
454
556
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
455
557
|
type: z.ZodLiteral<"generation.start">;
|
|
456
558
|
generationId: z.ZodString;
|
|
@@ -532,6 +634,7 @@ declare const generationEndEventSchema: z.ZodObject<{
|
|
|
532
634
|
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
533
635
|
vcsRevisionId: z.ZodOptional<z.ZodString>;
|
|
534
636
|
}, z.core.$strict>>;
|
|
637
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
535
638
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
536
639
|
type: z.ZodLiteral<"generation.end">;
|
|
537
640
|
generationId: z.ZodString;
|
|
@@ -665,6 +768,7 @@ declare const toolStartEventSchema: z.ZodObject<{
|
|
|
665
768
|
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
666
769
|
vcsRevisionId: z.ZodOptional<z.ZodString>;
|
|
667
770
|
}, z.core.$strict>>;
|
|
771
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
668
772
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
669
773
|
type: z.ZodLiteral<"tool.start">;
|
|
670
774
|
toolCallId: z.ZodString;
|
|
@@ -712,6 +816,20 @@ declare const toolStartEventSchema: z.ZodObject<{
|
|
|
712
816
|
secretsRedacted: z.ZodNumber;
|
|
713
817
|
label: z.ZodOptional<z.ZodString>;
|
|
714
818
|
}, z.core.$strict>>;
|
|
819
|
+
target: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
820
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">;
|
|
821
|
+
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
822
|
+
source: z.ZodEnum<{
|
|
823
|
+
"tool-path": "tool-path";
|
|
824
|
+
"shell-cwd": "shell-cwd";
|
|
825
|
+
"session-cwd": "session-cwd";
|
|
826
|
+
}>;
|
|
827
|
+
repositoryId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">>;
|
|
828
|
+
worktreeKind: z.ZodOptional<z.ZodEnum<{
|
|
829
|
+
main: "main";
|
|
830
|
+
linked: "linked";
|
|
831
|
+
}>>;
|
|
832
|
+
}, z.core.$strict>>>;
|
|
715
833
|
}, z.core.$strict>;
|
|
716
834
|
declare const toolEndEventSchema: z.ZodObject<{
|
|
717
835
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -752,6 +870,7 @@ declare const toolEndEventSchema: z.ZodObject<{
|
|
|
752
870
|
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
753
871
|
vcsRevisionId: z.ZodOptional<z.ZodString>;
|
|
754
872
|
}, z.core.$strict>>;
|
|
873
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
755
874
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
756
875
|
type: z.ZodLiteral<"tool.end">;
|
|
757
876
|
toolCallId: z.ZodString;
|
|
@@ -803,6 +922,20 @@ declare const toolEndEventSchema: z.ZodObject<{
|
|
|
803
922
|
secretsRedacted: z.ZodNumber;
|
|
804
923
|
label: z.ZodOptional<z.ZodString>;
|
|
805
924
|
}, z.core.$strict>>;
|
|
925
|
+
target: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
926
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">;
|
|
927
|
+
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
928
|
+
source: z.ZodEnum<{
|
|
929
|
+
"tool-path": "tool-path";
|
|
930
|
+
"shell-cwd": "shell-cwd";
|
|
931
|
+
"session-cwd": "session-cwd";
|
|
932
|
+
}>;
|
|
933
|
+
repositoryId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">>;
|
|
934
|
+
worktreeKind: z.ZodOptional<z.ZodEnum<{
|
|
935
|
+
main: "main";
|
|
936
|
+
linked: "linked";
|
|
937
|
+
}>>;
|
|
938
|
+
}, z.core.$strict>>>;
|
|
806
939
|
}, z.core.$strict>;
|
|
807
940
|
declare const subagentStartEventSchema: z.ZodObject<{
|
|
808
941
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -843,6 +976,7 @@ declare const subagentStartEventSchema: z.ZodObject<{
|
|
|
843
976
|
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
844
977
|
vcsRevisionId: z.ZodOptional<z.ZodString>;
|
|
845
978
|
}, z.core.$strict>>;
|
|
979
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
846
980
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
847
981
|
type: z.ZodLiteral<"subagent.start">;
|
|
848
982
|
subagentInvocationId: z.core.$ZodBranded<z.ZodString, "InvocationId", "out">;
|
|
@@ -893,6 +1027,7 @@ declare const subagentEndEventSchema: z.ZodObject<{
|
|
|
893
1027
|
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
894
1028
|
vcsRevisionId: z.ZodOptional<z.ZodString>;
|
|
895
1029
|
}, z.core.$strict>>;
|
|
1030
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
896
1031
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
897
1032
|
type: z.ZodLiteral<"subagent.end">;
|
|
898
1033
|
subagentInvocationId: z.core.$ZodBranded<z.ZodString, "InvocationId", "out">;
|
|
@@ -969,6 +1104,7 @@ declare const compactionPerformedEventSchema: z.ZodObject<{
|
|
|
969
1104
|
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
970
1105
|
vcsRevisionId: z.ZodOptional<z.ZodString>;
|
|
971
1106
|
}, z.core.$strict>>;
|
|
1107
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
972
1108
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
973
1109
|
type: z.ZodLiteral<"compaction.performed">;
|
|
974
1110
|
trigger: z.ZodEnum<{
|
|
@@ -1043,6 +1179,7 @@ declare const errorRaisedEventSchema: z.ZodObject<{
|
|
|
1043
1179
|
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
1044
1180
|
vcsRevisionId: z.ZodOptional<z.ZodString>;
|
|
1045
1181
|
}, z.core.$strict>>;
|
|
1182
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
1046
1183
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
1047
1184
|
type: z.ZodLiteral<"error.raised">;
|
|
1048
1185
|
errorCode: z.ZodEnum<{
|
|
@@ -1152,6 +1289,7 @@ declare const canonicalEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1152
1289
|
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
1153
1290
|
vcsRevisionId: z.ZodOptional<z.ZodString>;
|
|
1154
1291
|
}, z.core.$strict>>;
|
|
1292
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
1155
1293
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
1156
1294
|
type: z.ZodLiteral<"session.start">;
|
|
1157
1295
|
sessionKind: z.ZodEnum<{
|
|
@@ -1205,6 +1343,7 @@ declare const canonicalEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1205
1343
|
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
1206
1344
|
vcsRevisionId: z.ZodOptional<z.ZodString>;
|
|
1207
1345
|
}, z.core.$strict>>;
|
|
1346
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
1208
1347
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
1209
1348
|
type: z.ZodLiteral<"session.end">;
|
|
1210
1349
|
reason: z.ZodEnum<{
|
|
@@ -1286,6 +1425,7 @@ declare const canonicalEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1286
1425
|
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
1287
1426
|
vcsRevisionId: z.ZodOptional<z.ZodString>;
|
|
1288
1427
|
}, z.core.$strict>>;
|
|
1428
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
1289
1429
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
1290
1430
|
type: z.ZodLiteral<"prompt.submitted">;
|
|
1291
1431
|
promptSource: z.ZodEnum<{
|
|
@@ -1366,6 +1506,7 @@ declare const canonicalEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1366
1506
|
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
1367
1507
|
vcsRevisionId: z.ZodOptional<z.ZodString>;
|
|
1368
1508
|
}, z.core.$strict>>;
|
|
1509
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
1369
1510
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
1370
1511
|
type: z.ZodLiteral<"generation.start">;
|
|
1371
1512
|
generationId: z.ZodString;
|
|
@@ -1446,6 +1587,7 @@ declare const canonicalEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1446
1587
|
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
1447
1588
|
vcsRevisionId: z.ZodOptional<z.ZodString>;
|
|
1448
1589
|
}, z.core.$strict>>;
|
|
1590
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
1449
1591
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
1450
1592
|
type: z.ZodLiteral<"generation.end">;
|
|
1451
1593
|
generationId: z.ZodString;
|
|
@@ -1567,6 +1709,7 @@ declare const canonicalEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1567
1709
|
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
1568
1710
|
vcsRevisionId: z.ZodOptional<z.ZodString>;
|
|
1569
1711
|
}, z.core.$strict>>;
|
|
1712
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
1570
1713
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
1571
1714
|
type: z.ZodLiteral<"tool.start">;
|
|
1572
1715
|
toolCallId: z.ZodString;
|
|
@@ -1614,6 +1757,20 @@ declare const canonicalEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1614
1757
|
secretsRedacted: z.ZodNumber;
|
|
1615
1758
|
label: z.ZodOptional<z.ZodString>;
|
|
1616
1759
|
}, z.core.$strict>>;
|
|
1760
|
+
target: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
1761
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">;
|
|
1762
|
+
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
1763
|
+
source: z.ZodEnum<{
|
|
1764
|
+
"tool-path": "tool-path";
|
|
1765
|
+
"shell-cwd": "shell-cwd";
|
|
1766
|
+
"session-cwd": "session-cwd";
|
|
1767
|
+
}>;
|
|
1768
|
+
repositoryId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">>;
|
|
1769
|
+
worktreeKind: z.ZodOptional<z.ZodEnum<{
|
|
1770
|
+
main: "main";
|
|
1771
|
+
linked: "linked";
|
|
1772
|
+
}>>;
|
|
1773
|
+
}, z.core.$strict>>>;
|
|
1617
1774
|
}, z.core.$strict>, z.ZodObject<{
|
|
1618
1775
|
schemaVersion: z.ZodLiteral<1>;
|
|
1619
1776
|
eventId: z.core.$ZodBranded<z.ZodString, "EventId", "out">;
|
|
@@ -1653,6 +1810,7 @@ declare const canonicalEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1653
1810
|
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
1654
1811
|
vcsRevisionId: z.ZodOptional<z.ZodString>;
|
|
1655
1812
|
}, z.core.$strict>>;
|
|
1813
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
1656
1814
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
1657
1815
|
type: z.ZodLiteral<"tool.end">;
|
|
1658
1816
|
toolCallId: z.ZodString;
|
|
@@ -1704,6 +1862,20 @@ declare const canonicalEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1704
1862
|
secretsRedacted: z.ZodNumber;
|
|
1705
1863
|
label: z.ZodOptional<z.ZodString>;
|
|
1706
1864
|
}, z.core.$strict>>;
|
|
1865
|
+
target: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
1866
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">;
|
|
1867
|
+
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
1868
|
+
source: z.ZodEnum<{
|
|
1869
|
+
"tool-path": "tool-path";
|
|
1870
|
+
"shell-cwd": "shell-cwd";
|
|
1871
|
+
"session-cwd": "session-cwd";
|
|
1872
|
+
}>;
|
|
1873
|
+
repositoryId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">>;
|
|
1874
|
+
worktreeKind: z.ZodOptional<z.ZodEnum<{
|
|
1875
|
+
main: "main";
|
|
1876
|
+
linked: "linked";
|
|
1877
|
+
}>>;
|
|
1878
|
+
}, z.core.$strict>>>;
|
|
1707
1879
|
}, z.core.$strict>, z.ZodObject<{
|
|
1708
1880
|
schemaVersion: z.ZodLiteral<1>;
|
|
1709
1881
|
eventId: z.core.$ZodBranded<z.ZodString, "EventId", "out">;
|
|
@@ -1743,6 +1915,7 @@ declare const canonicalEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1743
1915
|
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
1744
1916
|
vcsRevisionId: z.ZodOptional<z.ZodString>;
|
|
1745
1917
|
}, z.core.$strict>>;
|
|
1918
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
1746
1919
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
1747
1920
|
type: z.ZodLiteral<"subagent.start">;
|
|
1748
1921
|
subagentInvocationId: z.core.$ZodBranded<z.ZodString, "InvocationId", "out">;
|
|
@@ -1792,6 +1965,7 @@ declare const canonicalEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1792
1965
|
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
1793
1966
|
vcsRevisionId: z.ZodOptional<z.ZodString>;
|
|
1794
1967
|
}, z.core.$strict>>;
|
|
1968
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
1795
1969
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
1796
1970
|
type: z.ZodLiteral<"subagent.end">;
|
|
1797
1971
|
subagentInvocationId: z.core.$ZodBranded<z.ZodString, "InvocationId", "out">;
|
|
@@ -1867,6 +2041,7 @@ declare const canonicalEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1867
2041
|
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
1868
2042
|
vcsRevisionId: z.ZodOptional<z.ZodString>;
|
|
1869
2043
|
}, z.core.$strict>>;
|
|
2044
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
1870
2045
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
1871
2046
|
type: z.ZodLiteral<"compaction.performed">;
|
|
1872
2047
|
trigger: z.ZodEnum<{
|
|
@@ -1940,6 +2115,7 @@ declare const canonicalEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1940
2115
|
vcsBranchName: z.ZodOptional<z.ZodString>;
|
|
1941
2116
|
vcsRevisionId: z.ZodOptional<z.ZodString>;
|
|
1942
2117
|
}, z.core.$strict>>;
|
|
2118
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
1943
2119
|
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
1944
2120
|
type: z.ZodLiteral<"error.raised">;
|
|
1945
2121
|
errorCode: z.ZodEnum<{
|
|
@@ -2041,4 +2217,4 @@ declare const eventUsage: (event: CanonicalEvent) => CanonicalUsage | undefined;
|
|
|
2041
2217
|
/** Stable ordering: by sequence, then by timestamp, then by event id. */
|
|
2042
2218
|
declare const compareEvents: (a: CanonicalEvent, b: CanonicalEvent) => number;
|
|
2043
2219
|
|
|
2044
|
-
export {
|
|
2220
|
+
export { normalizeUsage as $, type UsageNormalizationResult as A, type UsageReport as B, CANONICAL_EVENT_TYPES as C, type UsageTemporality as D, EMPTY_DELTA_USAGE as E, type WorktreeKind as F, type GenerationEndEvent as G, addUsage as H, cacheCreationAccountingSchema as I, canonicalEventSchema as J, canonicalEventTypeSchema as K, canonicalUsageSchema as L, MAX_TARGET_HINT_PATHS as M, compactionPerformedEventSchema as N, compareEvents as O, type PromptSubmittedEvent as P, costFactsSchema as Q, cumulativeToDelta as R, SUBAGENT_ID_PATTERN as S, type TargetHint as T, type UsageDeltaResult as U, errorRaisedEventSchema as V, type WorkspaceTarget as W, eventUsage as X, generationEndEventSchema as Y, generationStartEventSchema as Z, modelDescriptorSchema as _, type CacheCreationAccounting as a, normalizeUsageOrThrow as a0, parseCanonicalEvent as a1, promptSubmittedEventSchema as a2, providerTotalAgreementSchema as a3, sessionEndEventSchema as a4, sessionStartEventSchema as a5, subagentEndEventSchema as a6, subagentIdSchema as a7, subagentStartEventSchema as a8, targetHintSchema as a9, targetSourceSchema as aa, toReport as ab, toolEndEventSchema as ac, toolKindSchema as ad, toolStartEventSchema as ae, usageReportSchema as af, usageTemporalitySchema as ag, validateCanonicalEvent as ah, workspaceTargetSchema as ai, worktreeKindSchema as aj, type CanonicalEvent as b, type CanonicalEventInput as c, type CanonicalEventOfType as d, type CanonicalEventType as e, type CanonicalUsage as f, type CompactionPerformedEvent as g, type CostFacts as h, type ErrorRaisedEvent as i, type EventOutcome as j, type EventValidationResult as k, type GenerationStartEvent as l, MAX_TARGET_PATH_LENGTH as m, type ModelDescriptor as n, type ProviderTotalAgreement as o, type SessionEndEvent as p, type SessionStartEvent as q, type SubagentEndEvent as r, type SubagentId as s, type SubagentStartEvent as t, type TargetSource as u, type ToolEndEvent as v, type ToolKind as w, type ToolStartEvent as x, UsageNormalizationError as y, type UsageNormalizationIssue as z };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { O as OtelHookConfig } from './schema-Cn0-xz8L.js';
|
|
3
3
|
import { OtelHookErrorInfo } from './errors.js';
|
|
4
|
-
import { b as CanonicalEvent,
|
|
4
|
+
import { b as CanonicalEvent, D as UsageTemporality, f as CanonicalUsage } from './events-CzZ5kukS.js';
|
|
5
5
|
import { I as IdentityClaim, W as WorkspaceIdentity, d as InvocationIdentity } from './identity-BrVBs901.js';
|
|
6
6
|
import { h as SourceTransport, R as ResolvedProviderId, c as DetectionConfidence, d as EventId } from './primitives-CJ8-rn-f.js';
|
|
7
7
|
import { P as PrivacyService } from './service-CbI9CObT.js';
|
|
8
|
-
import { b as DeliveryIdentifierSupport, f as ProviderDeliveryClaim, j as ProviderHookResponse } from './adapter-
|
|
9
|
-
import { P as ProviderRegistry } from './registry-
|
|
10
|
-
import { I as IdGenerator,
|
|
8
|
+
import { b as DeliveryIdentifierSupport, f as ProviderDeliveryClaim, j as ProviderHookResponse } from './adapter-BS7xHKGQ.js';
|
|
9
|
+
import { P as ProviderRegistry } from './registry-DVnPA_b6.js';
|
|
10
|
+
import { I as IdGenerator, g as TelemetrySink, e as StateStore, C as Clock, d as Logger, W as WorktreeLocator } from './ports-B0rC49b3.js';
|
|
11
11
|
import { A as AttributionOutcome, a as AttributionReason } from './taxonomy-DwhTtuWd.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -279,6 +279,14 @@ type OtelHookDependencies = {
|
|
|
279
279
|
* workspace is derived from it. Defaults to `"default"`.
|
|
280
280
|
*/
|
|
281
281
|
readonly installationId?: string;
|
|
282
|
+
/**
|
|
283
|
+
* Resolves tool events' target hints to the git worktree they touched
|
|
284
|
+
* (ADR 0008). Absent means no resolution: events carry no `target`. The
|
|
285
|
+
* filesystem implementation is `createFilesystemWorktreeLocator`.
|
|
286
|
+
*/
|
|
287
|
+
readonly worktreeLocator?: WorktreeLocator;
|
|
288
|
+
/** Ceiling on target resolution per callback. Default 50ms. */
|
|
289
|
+
readonly targetResolutionBudgetMillis?: number;
|
|
282
290
|
};
|
|
283
291
|
/**
|
|
284
292
|
* Minimal orchestrator wiring detection, identity, parsing, privacy checks,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { CANONICAL_SCHEMA_VERSION, CanonicalSchemaVersion, EMPTY_EXTENSIONS, EXTENSION_KEY_PATTERN, Extensions, MAX_EXTENSION_ENTRIES, RESERVED_EXTENSION_NAMESPACES, canonicalSchemaVersionSchema, emptyExtensions, extensionKeyNamespace, extensionsSchema, isReservedExtensionNamespace, isValidExtensionKey } from './model.js';
|
|
2
2
|
export { A as AttributePrimitive, a as AttributeValue, b as Attributes, D as DETECTION_CONFIDENCE_RANK, c as DetectionConfidence, E as EpochMillis, d as EventId, I as InvocationId, M as MAX_ATTRIBUTE_ARRAY_LENGTH, e as MAX_ATTRIBUTE_STRING_LENGTH, f as MAX_IDENTIFIER_LENGTH, P as PROVIDER_ID_PATTERN, g as ProviderId, R as ResolvedProviderId, S as SessionId, h as SourceTransport, U as UNKNOWN_PROVIDER_ID, i as UnknownProviderId, W as WORKSPACE_ID_PATTERN, j as WorkspaceId, k as attributePrimitiveSchema, l as attributeValueSchema, m as attributesSchema, n as compareDetectionConfidence, o as detectionConfidenceSchema, p as durationMillisSchema, q as epochMillisSchema, r as eventIdSchema, s as invocationIdSchema, t as isUnknownProvider, u as nonEmptyStringSchema, v as providerIdSchema, w as resolvedProviderIdSchema, x as sequenceNumberSchema, y as sessionIdSchema, z as sourceTransportSchema, B as tokenCountSchema, C as workspaceIdSchema } from './primitives-CJ8-rn-f.js';
|
|
3
3
|
export { C as CONTENT_HASH_PATTERN, a as ContentDisclosure, b as ContentFact, c as ContentKind, d as ContentRole, e as contentDisclosureSchema, f as contentFactSchema, g as contentFactsSchema, h as contentKindSchema, i as contentRoleSchema, j as isContentFactConsistent, k as isUnavailableContentFact } from './content-M9xIKG7h.js';
|
|
4
|
-
export { C as CANONICAL_EVENT_TYPES, a as CacheCreationAccounting, b as CanonicalEvent, c as CanonicalEventInput, d as CanonicalEventOfType, e as CanonicalEventType, f as CanonicalUsage, g as CompactionPerformedEvent, h as CostFacts, E as EMPTY_DELTA_USAGE, i as ErrorRaisedEvent, j as EventOutcome, k as EventValidationResult, G as GenerationEndEvent, l as GenerationStartEvent, M as ModelDescriptor, P as PromptSubmittedEvent,
|
|
4
|
+
export { C as CANONICAL_EVENT_TYPES, a as CacheCreationAccounting, b as CanonicalEvent, c as CanonicalEventInput, d as CanonicalEventOfType, e as CanonicalEventType, f as CanonicalUsage, g as CompactionPerformedEvent, h as CostFacts, E as EMPTY_DELTA_USAGE, i as ErrorRaisedEvent, j as EventOutcome, k as EventValidationResult, G as GenerationEndEvent, l as GenerationStartEvent, M as MAX_TARGET_HINT_PATHS, m as MAX_TARGET_PATH_LENGTH, n as ModelDescriptor, P as PromptSubmittedEvent, o as ProviderTotalAgreement, S as SUBAGENT_ID_PATTERN, p as SessionEndEvent, q as SessionStartEvent, r as SubagentEndEvent, s as SubagentId, t as SubagentStartEvent, T as TargetHint, u as TargetSource, v as ToolEndEvent, w as ToolKind, x as ToolStartEvent, U as UsageDeltaResult, y as UsageNormalizationError, z as UsageNormalizationIssue, A as UsageNormalizationResult, B as UsageReport, D as UsageTemporality, W as WorkspaceTarget, F as WorktreeKind, H as addUsage, I as cacheCreationAccountingSchema, J as canonicalEventSchema, K as canonicalEventTypeSchema, L as canonicalUsageSchema, N as compactionPerformedEventSchema, O as compareEvents, Q as costFactsSchema, R as cumulativeToDelta, V as errorRaisedEventSchema, X as eventUsage, Y as generationEndEventSchema, Z as generationStartEventSchema, _ as modelDescriptorSchema, $ as normalizeUsage, a0 as normalizeUsageOrThrow, a1 as parseCanonicalEvent, a2 as promptSubmittedEventSchema, a3 as providerTotalAgreementSchema, a4 as sessionEndEventSchema, a5 as sessionStartEventSchema, a6 as subagentEndEventSchema, a7 as subagentIdSchema, a8 as subagentStartEventSchema, a9 as targetHintSchema, aa as targetSourceSchema, ab as toReport, ac as toolEndEventSchema, ad as toolKindSchema, ae as toolStartEventSchema, af as usageReportSchema, ag as usageTemporalitySchema, ah as validateCanonicalEvent, ai as workspaceTargetSchema, aj as worktreeKindSchema } from './events-CzZ5kukS.js';
|
|
5
5
|
export { C as ConsumerAttributes, I as IdentityClaim, a as IdentityClaimFields, b as IdentityConflict, c as IdentityResolution, d as InvocationIdentity, R as ResolveIdentityInput, S as SourceProvenance, U as UNKNOWN_WORKSPACE_ID, W as WorkspaceIdentity, e as WorkspaceKeySource, f as consumerAttributesSchema, i as identityClaimFieldsSchema, g as identityClaimSchema, h as invocationIdentitySchema, r as resolveInvocationIdentity, s as sourceProvenanceSchema, u as unknownWorkspaceIdentity, w as workspaceIdentitySchema, j as workspaceKeySourceSchema } from './identity-BrVBs901.js';
|
|
6
6
|
export { CreateErrorInfoInput, OtelHookError, OtelHookErrorInfo, createErrorInfo, describeThrown, errorInfoFromThrown, isOtelHookError, otelHookErrorInfoSchema } from './errors.js';
|
|
7
7
|
export { C as CONTENT_MODE_DISCLOSURE, a as ContentMode, D as DEFAULT_PRIVACY_LIMITS, b as DEFAULT_PRIVACY_POLICY, c as DEFAULT_SECRET_KEY_PATTERNS, d as DEFAULT_SECRET_VALUE_PATTERNS, P as PolicyResolution, e as PrivacyLimits, f as PrivacyPolicy, g as contentModeSchema, p as privacyLimitsSchema, h as privacyPolicySchema, r as resolvePrivacyPolicy } from './policy-CimmCfRp.js';
|
|
@@ -9,20 +9,20 @@ export { D as DescribeContentInput, a as DescribeStructuredInput, P as PrivacySe
|
|
|
9
9
|
export { WorkspaceKeyInput, WorkspaceLabels, canonicalizeGitRemote, deriveWorkspaceIdentity } from './privacy.js';
|
|
10
10
|
export { CONFIG_SOURCE_PRECEDENCE, ConfigLayer, ConfigProvenance, ConfigResolution, ConfigSource, EMPTY_RESOURCE_ATTRIBUTES, ENVIRONMENT_VARIABLES, EnvironmentConfigResult, EnvironmentRecord, MAX_RESOURCE_ATTRIBUTES, MAX_RESOURCE_ATTRIBUTE_KEY_LENGTH, MAX_RESOURCE_ATTRIBUTE_VALUE_LENGTH, ParsedResourceAttributes, RESERVED_RESOURCE_ATTRIBUTE_KEYS, RESOURCE_ATTRIBUTE_KEY_PATTERN, RESOURCE_ATTRIBUTE_KEY_REJECTION_DETAIL, ResourceAttributeKeyRejection, ResourceAttributeValue, ResourceAttributes, checkResourceAttributeKey, configSourceSchema, describeResolvedConfig, describeResourceAttributeNames, isReservedResourceAttributeKey, isSecretResourceAttributeKey, parseEnvironmentConfig, parseResourceAttributesValue, resolveConfig, resourceAttributeValueSchema, resourceAttributesSchema, sanitizeResourceAttributes } from './config.js';
|
|
11
11
|
export { D as DEFAULT_CONFIG, a as DEFAULT_DETECTION_POLICY, b as DEFAULT_DIAGNOSTICS_POLICY, c as DEFAULT_EXPORTER_POLICY, d as DEFAULT_LOGS_POLICY, e as DetectionPolicy, f as DiagnosticsPolicy, E as ExporterPolicy, L as LogsPolicy, O as OtelHookConfig, g as OtelHookConfigPatch, h as detectionPolicySchema, i as diagnosticsPolicySchema, j as exporterPolicySchema, l as logsPolicySchema, o as otelHookConfigPatchSchema, k as otelHookConfigSchema } from './schema-Cn0-xz8L.js';
|
|
12
|
-
export { A as AdapterDescription, D as DELIVERY_COMPONENT_PATTERN, a as DELIVERY_GAP_REASON_PATTERN, b as DeliveryIdentifierSupport, M as MAX_DELIVERY_COMPONENTS, c as MAX_DELIVERY_GAPS, P as ProviderAdapter, d as ProviderCapabilities, e as ProviderContext, f as ProviderDeliveryClaim, g as ProviderDeliveryGaps, h as ProviderDetection, i as ProviderDetectionInput, j as ProviderHookResponse, k as ProviderHookResponseInput, l as ProviderIdentityInput, m as ProviderParseInput, n as ProviderParseResult, S as SILENT_HOOK_RESPONSE, o as adapterSupports, p as asProviderId, q as deliveryComponentSchema, r as deliveryGapReasonSchema, s as deliveryIdentifierSupportSchema, t as describeAdapter, u as providerCapabilitiesSchema, v as providerDeliveryClaimSchema, w as providerDeliveryGapsSchema, x as providerDetectionSchema, y as providerHookResponseSchema, z as readDeliveryClaim, B as readDeliveryGap, C as unknownDetection } from './adapter-
|
|
12
|
+
export { A as AdapterDescription, D as DELIVERY_COMPONENT_PATTERN, a as DELIVERY_GAP_REASON_PATTERN, b as DeliveryIdentifierSupport, M as MAX_DELIVERY_COMPONENTS, c as MAX_DELIVERY_GAPS, P as ProviderAdapter, d as ProviderCapabilities, e as ProviderContext, f as ProviderDeliveryClaim, g as ProviderDeliveryGaps, h as ProviderDetection, i as ProviderDetectionInput, j as ProviderHookResponse, k as ProviderHookResponseInput, l as ProviderIdentityInput, m as ProviderParseInput, n as ProviderParseResult, S as SILENT_HOOK_RESPONSE, o as adapterSupports, p as asProviderId, q as deliveryComponentSchema, r as deliveryGapReasonSchema, s as deliveryIdentifierSupportSchema, t as describeAdapter, u as providerCapabilitiesSchema, v as providerDeliveryClaimSchema, w as providerDeliveryGapsSchema, x as providerDetectionSchema, y as providerHookResponseSchema, z as readDeliveryClaim, B as readDeliveryGap, C as unknownDetection } from './adapter-BS7xHKGQ.js';
|
|
13
13
|
export { ANTIGRAVITY_PROMOTION_GATES, ANTIGRAVITY_PROVIDER_MATURITY, AntigravityProviderMaturity, CLAUDE_CODE_CAPABILITIES, CODEX_CAPABILITIES, CURSOR_ADAPTER_VERSION, CURSOR_CAPABILITIES, CanonicalEventDraft, ClaudeCodeAdapterOptions, CursorAdapterOptions, DELIVERY_IDENTIFIER_SUMMARY, DefaultRegistryOptions, EXPERIMENTAL_PROVIDER_IDS, EventFactory, EventFactoryInput, PROVIDER_DESCRIPTORS, ProviderCatalogEntry, ProviderDescriptor, ProviderMaturity, createClaudeCodeAdapter, createCodexAdapter, createCursorAdapter, createDefaultProviderRegistry, createEventFactory, describeProviderCatalog, findProviderDescriptor, isExperimentalProvider } from './providers.js';
|
|
14
|
-
export { B as BUILT_IN_PROVIDERS, D as DetectionCandidate, P as ProviderRegistry, R as RegistryDetectionResult, c as createProviderRegistry } from './registry-
|
|
15
|
-
export { A as ANTIGRAVITY_CAPABILITIES, a as ANTIGRAVITY_HOOK_EVENT_NAMES, b as ANTIGRAVITY_PROVIDER_ID, c as AntigravityAdapterOptions, d as AntigravityHookEventName, C as CLAUDE_CODE_PROVIDER_ID, e as CLAUDE_HOOK_EVENT_NAMES, f as CODEX_ADAPTER_VERSION, g as CODEX_HOOK_EVENT_NAMES, h as CODEX_PROVIDER_ID, i as CURSOR_DECISION_EVENTS, j as CURSOR_HOOK_EVENT_NAMES, k as CURSOR_PROVIDER_ID, l as CURSOR_UNMODELLED_HOOK_EVENT_NAMES, m as ClaudeHookEventName, n as CodexHookEventName, o as CursorHookEventName, D as DEFAULT_GEMINI_CAPABILITIES, G as GEMINI_ADAPTER_VERSION, p as GEMINI_HOOK_EVENT_NAMES, q as GEMINI_PROVIDER_ID, r as GeminiAdapterOptions, s as GeminiHookEventName, t as createAntigravityAdapter, u as createGeminiCliAdapter } from './payload-
|
|
16
|
-
export { A as AppliedDelivery, C as Clock, E as EventIdSeed, I as IdGenerator, a as InvocationIdSeed, L as LOG_LEVEL_RANK, b as
|
|
17
|
-
export { D as DeterministicIdOptions, F as FixedClock, a as FixedClockOptions, I as InMemoryStateStore, b as InMemoryStateStoreOptions, L as LogRecord, R as RecordingLogger, c as RecordingTelemetrySink, d as RecordingTelemetrySinkOptions, e as createDeterministicIdGenerator, f as createFixedClock, g as createInMemoryStateStore, h as createNullTelemetrySink, i as createRandomIdGenerator, j as createRecordingLogger, k as createRecordingTelemetrySink, l as createSystemClock } from './memory-
|
|
18
|
-
export { StderrLoggerOptions, createNullLogger, createStderrLogger } from './runtime.js';
|
|
19
|
-
export { C as CumulativeUsageSeries, D as DeliveryDurability, a as DeliveryOrigin, b as DeliveryResolution, c as DeliveryUnavailableReason, H as HookIngestInput, d as HookIngestOptions, e as HookIngestOutcome, O as OtelHook, f as OtelHookDependencies, R as ResolvedDeliveryIdentity, U as UsageObservation, g as UsageScope, h as classifyDurability, i as createOtelHook, j as hostDeliveryIdentity, k as isCommittable, r as resolveDeliveryIdentity, u as usageScopeSchema } from './hook-
|
|
14
|
+
export { B as BUILT_IN_PROVIDERS, D as DetectionCandidate, P as ProviderRegistry, R as RegistryDetectionResult, c as createProviderRegistry } from './registry-DVnPA_b6.js';
|
|
15
|
+
export { A as ANTIGRAVITY_CAPABILITIES, a as ANTIGRAVITY_HOOK_EVENT_NAMES, b as ANTIGRAVITY_PROVIDER_ID, c as AntigravityAdapterOptions, d as AntigravityHookEventName, C as CLAUDE_CODE_PROVIDER_ID, e as CLAUDE_HOOK_EVENT_NAMES, f as CODEX_ADAPTER_VERSION, g as CODEX_HOOK_EVENT_NAMES, h as CODEX_PROVIDER_ID, i as CURSOR_DECISION_EVENTS, j as CURSOR_HOOK_EVENT_NAMES, k as CURSOR_PROVIDER_ID, l as CURSOR_UNMODELLED_HOOK_EVENT_NAMES, m as ClaudeHookEventName, n as CodexHookEventName, o as CursorHookEventName, D as DEFAULT_GEMINI_CAPABILITIES, G as GEMINI_ADAPTER_VERSION, p as GEMINI_HOOK_EVENT_NAMES, q as GEMINI_PROVIDER_ID, r as GeminiAdapterOptions, s as GeminiHookEventName, t as createAntigravityAdapter, u as createGeminiCliAdapter } from './payload-2lnpKodw.js';
|
|
16
|
+
export { A as AppliedDelivery, C as Clock, E as EventIdSeed, I as IdGenerator, a as InvocationIdSeed, L as LOG_LEVEL_RANK, b as LocatedWorktree, c as LogLevel, d as Logger, S as StateRecord, e as StateStore, f as StateValue, T as TelemetryEmitResult, g as TelemetrySink, W as WorktreeLocator, h as appliedDeliverySchema, l as logLevelSchema, s as stateRecordSchema, i as stateValueSchema } from './ports-B0rC49b3.js';
|
|
17
|
+
export { D as DeterministicIdOptions, F as FixedClock, a as FixedClockOptions, I as InMemoryStateStore, b as InMemoryStateStoreOptions, L as LogRecord, R as RecordingLogger, c as RecordingTelemetrySink, d as RecordingTelemetrySinkOptions, e as createDeterministicIdGenerator, f as createFixedClock, g as createInMemoryStateStore, h as createNullTelemetrySink, i as createRandomIdGenerator, j as createRecordingLogger, k as createRecordingTelemetrySink, l as createSystemClock } from './memory-DkTohdIa.js';
|
|
18
|
+
export { DEFAULT_TARGET_RESOLUTION_BUDGET_MILLIS, DEFAULT_WORKTREE_CACHE_TTL_MILLIS, FilesystemWorktreeLocatorOptions, MAX_WORKTREE_WALK_DEPTH, ResolveEventTargetsInput, ResolveEventTargetsResult, StderrLoggerOptions, createFilesystemWorktreeLocator, createNullLogger, createStderrLogger, parseCommonDirFile, parseGitDirFile, parseHeadBranch, resolveEventTargets } from './runtime.js';
|
|
19
|
+
export { C as CumulativeUsageSeries, D as DeliveryDurability, a as DeliveryOrigin, b as DeliveryResolution, c as DeliveryUnavailableReason, H as HookIngestInput, d as HookIngestOptions, e as HookIngestOutcome, O as OtelHook, f as OtelHookDependencies, R as ResolvedDeliveryIdentity, U as UsageObservation, g as UsageScope, h as classifyDurability, i as createOtelHook, j as hostDeliveryIdentity, k as isCommittable, r as resolveDeliveryIdentity, u as usageScopeSchema } from './hook-DxTakjAD.js';
|
|
20
20
|
export { CallbackDeduplicator, CallbackDeduplicatorDependencies, DedupCheckResult, DedupCleanupResult, DeliveryClaimOptions, DeliveryClaimOutcome, DeliveryClaimResult, LifecycleCleanupReport, LifecycleJanitor, LifecycleJanitorOptions, LifecycleScope, LifecycleSweepStats, RollupCleanupResult, SPAN_RECORD_VERSION, SpanCleanupResult, SpanCorrelationFacts, SpanCorrelator, SpanCorrelatorDependencies, SpanEndInput, SpanEndOrphanReason, SpanEndResult, SpanStartInput, SpanStartResult, UsageAccumulator, UsageAccumulatorDependencies, UsageAccumulatorKey, UsageAccumulatorSnapshot, createCallbackDeduplicator, createLifecycleJanitor, createSpanCorrelator, createUsageAccumulator } from './lifecycle.js';
|
|
21
21
|
export { S as StoreNamespace } from './keys-Dej5bN3L.js';
|
|
22
|
-
export { F as FilesystemStateStore, a as FilesystemStateStoreOptions, L as LockingStateStore, S as StateStoreDependencies, c as createFilesystemStateStore, i as isLockingStateStore, w as withOptionalSessionLock } from './filesystem-store-
|
|
22
|
+
export { F as FilesystemStateStore, a as FilesystemStateStoreOptions, L as LockingStateStore, S as StateStoreDependencies, c as createFilesystemStateStore, i as isLockingStateStore, w as withOptionalSessionLock } from './filesystem-store-BcOveJYY.js';
|
|
23
23
|
export { BoundedMemoryStateStore, BoundedMemoryStateStoreOptions, createBoundedMemoryStateStore } from './state.js';
|
|
24
|
-
export { D as DEFAULT_INSTRUMENTATION_SCOPE, E as EventTraceIdentity, M as MAX_RECOVERED_START_ATTRIBUTES, S as SemanticMappingOptions, a as SpanCorrelation, b as SpanCorrelationResolver, c as SpanDisposition, d as SpanFamily, e as SpanOrphanClassification, f as SpanPairing, g as SpanScopeRef, h as canonicalEventTraceIdentities, i as canonicalEventsToReadableSpans, p as parentScopeRefOf, s as spanScopeRefOf, j as startOnlySpanAttributes } from './semconv-
|
|
25
|
-
export { C as ContentWithholdingReason, D as DurableLogSpool, a as DurableLogSpoolOptions, b as DurableSpool, c as DurableSpoolOptions, L as LOG_MAPPING_VERSION, d as LOG_SIGNALS, e as LogContentPolicy, f as LogMappingOptions, g as LogMappingResult, h as LogSignal, i as LogSpoolBatch, j as LogsDeliverability, M as MAX_LOG_BODY_CHARACTERS, k as MAX_LOG_RECORDS_PER_BATCH, l as MAX_LOG_RECORDS_PER_EVENT, m as MCP_TOOL_NAME_PATTERN, N as NO_LOG_CONTENT, O as OtlpLogSinkOptions, n as OtlpLogTelemetrySink, o as OtlpTelemetrySink, p as OtlpTraceSinkOptions, S as SerializedLogRecord, q as SerializedSpan, r as SpoolBatch, s as SpoolDrainResult, t as SpoolEnqueueResult, u as canonicalEventsToLogRecords, v as createFileDurableLogSpool, w as createFileDurableSpool, x as createOtlpLogSink, y as createOtlpTraceSink, z as describeLogsDeliverability, A as logSignalOf, B as logSignalsForLifecycleEvents, E as resolveLogsEndpoint } from './otlp-log-sink-
|
|
24
|
+
export { D as DEFAULT_INSTRUMENTATION_SCOPE, E as EventTraceIdentity, M as MAX_RECOVERED_START_ATTRIBUTES, S as SemanticMappingOptions, a as SpanCorrelation, b as SpanCorrelationResolver, c as SpanDisposition, d as SpanFamily, e as SpanOrphanClassification, f as SpanPairing, g as SpanScopeRef, h as canonicalEventTraceIdentities, i as canonicalEventsToReadableSpans, p as parentScopeRefOf, s as spanScopeRefOf, j as startOnlySpanAttributes } from './semconv-CtnDdsPk.js';
|
|
25
|
+
export { C as ContentWithholdingReason, D as DurableLogSpool, a as DurableLogSpoolOptions, b as DurableSpool, c as DurableSpoolOptions, L as LOG_MAPPING_VERSION, d as LOG_SIGNALS, e as LogContentPolicy, f as LogMappingOptions, g as LogMappingResult, h as LogSignal, i as LogSpoolBatch, j as LogsDeliverability, M as MAX_LOG_BODY_CHARACTERS, k as MAX_LOG_RECORDS_PER_BATCH, l as MAX_LOG_RECORDS_PER_EVENT, m as MCP_TOOL_NAME_PATTERN, N as NO_LOG_CONTENT, O as OtlpLogSinkOptions, n as OtlpLogTelemetrySink, o as OtlpTelemetrySink, p as OtlpTraceSinkOptions, S as SerializedLogRecord, q as SerializedSpan, r as SpoolBatch, s as SpoolDrainResult, t as SpoolEnqueueResult, u as canonicalEventsToLogRecords, v as createFileDurableLogSpool, w as createFileDurableSpool, x as createOtlpLogSink, y as createOtlpTraceSink, z as describeLogsDeliverability, A as logSignalOf, B as logSignalsForLifecycleEvents, E as resolveLogsEndpoint } from './otlp-log-sink-DaZDPKnR.js';
|
|
26
26
|
export { SignalFanoutOptions, SignalFanoutSink, createSignalFanout, shareCorrelationPerBatch } from './telemetry.js';
|
|
27
27
|
export { DeliveryHealthSnapshot, DeliverySubsystem, HealthTracker, HealthTrackerOptions, OverallHealth, createHealthTracker, summarizeHealth } from './diagnostics.js';
|
|
28
28
|
export { DeliveryReport, HookProcessInput, HookProcessOutcome, HookRuntime, HookRuntimeDelivery, HookRuntimeOptions, HookShutdownReport, UsageRollup, createHookRuntime, minimumStaleClaimMillis } from './integration.js';
|
|
@@ -41,6 +41,6 @@ import '@opentelemetry/sdk-logs';
|
|
|
41
41
|
*
|
|
42
42
|
* Updated by `scripts/release/sync-version.mjs` during semantic-release.
|
|
43
43
|
*/
|
|
44
|
-
declare const VERSION = "0.
|
|
44
|
+
declare const VERSION = "0.5.0";
|
|
45
45
|
|
|
46
46
|
export { VERSION };
|