@osfactory/otel-hook 0.5.0 → 0.6.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-BS7xHKGQ.d.ts → adapter-BJiz6lqM.d.ts} +2 -2
- package/dist/cli.js +47 -24
- package/dist/cli.js.map +1 -1
- package/dist/{events-CzZ5kukS.d.ts → events-B3MHoJTD.d.ts} +72 -1
- package/dist/{filesystem-store-BcOveJYY.d.ts → filesystem-store-r-nNA3BA.d.ts} +1 -1
- package/dist/{hook-DxTakjAD.d.ts → hook-Dh8OO4Wa.d.ts} +4 -4
- package/dist/index.d.ts +11 -11
- package/dist/index.js +50 -24
- package/dist/index.js.map +1 -1
- package/dist/install.d.ts +4 -4
- package/dist/install.js +8 -2
- package/dist/install.js.map +1 -1
- package/dist/integration.d.ts +8 -8
- package/dist/integration.js +2264 -2253
- package/dist/integration.js.map +1 -1
- package/dist/lifecycle.d.ts +3 -3
- package/dist/lifecycle.js +757 -212
- package/dist/lifecycle.js.map +1 -1
- package/dist/{memory-DkTohdIa.d.ts → memory-Bl9ANVff.d.ts} +2 -2
- package/dist/model.d.ts +1 -1
- package/dist/model.js +13 -2
- package/dist/model.js.map +1 -1
- package/dist/{otlp-log-sink-DaZDPKnR.d.ts → otlp-log-sink-eUEjaLhk.d.ts} +3 -3
- package/dist/{payload-2lnpKodw.d.ts → payload-Ci8_ERm6.d.ts} +1 -1
- package/dist/{ports-B0rC49b3.d.ts → ports-n7KFOpKo.d.ts} +1 -1
- package/dist/providers.d.ts +10 -10
- package/dist/providers.js +32 -13
- package/dist/providers.js.map +1 -1
- package/dist/{registry-DVnPA_b6.d.ts → registry-CIVvRlVK.d.ts} +1 -1
- package/dist/runtime.d.ts +8 -8
- package/dist/runtime.js +11 -6
- package/dist/runtime.js.map +1 -1
- package/dist/{semconv-CtnDdsPk.d.ts → semconv-fPRb-dpU.d.ts} +1 -1
- package/dist/state.d.ts +4 -4
- package/dist/telemetry.d.ts +6 -6
- package/dist/telemetry.js +945 -412
- package/dist/telemetry.js.map +1 -1
- package/dist/testing.d.ts +14 -8
- package/dist/testing.js +36 -18
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
package/dist/install.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { d as AntigravityHookEventName, m as ClaudeHookEventName, n as CodexHookEventName, o as CursorHookEventName, s as GeminiHookEventName, q as GEMINI_PROVIDER_ID, b as ANTIGRAVITY_PROVIDER_ID, C as CLAUDE_CODE_PROVIDER_ID, h as CODEX_PROVIDER_ID, k as CURSOR_PROVIDER_ID } from './payload-
|
|
2
|
-
import { C as Clock } from './ports-
|
|
1
|
+
import { d as AntigravityHookEventName, m as ClaudeHookEventName, n as CodexHookEventName, o as CursorHookEventName, s as GeminiHookEventName, q as GEMINI_PROVIDER_ID, b as ANTIGRAVITY_PROVIDER_ID, C as CLAUDE_CODE_PROVIDER_ID, h as CODEX_PROVIDER_ID, k as CURSOR_PROVIDER_ID } from './payload-Ci8_ERm6.js';
|
|
2
|
+
import { C as Clock } from './ports-n7KFOpKo.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import './primitives-CJ8-rn-f.js';
|
|
5
|
-
import './adapter-
|
|
5
|
+
import './adapter-BJiz6lqM.js';
|
|
6
6
|
import './errors.js';
|
|
7
7
|
import './taxonomy-DwhTtuWd.js';
|
|
8
|
-
import './events-
|
|
8
|
+
import './events-B3MHoJTD.js';
|
|
9
9
|
import './identity-BrVBs901.js';
|
|
10
10
|
import './policy-CimmCfRp.js';
|
|
11
11
|
import './content-M9xIKG7h.js';
|
package/dist/install.js
CHANGED
|
@@ -1981,7 +1981,9 @@ var sessionStartEventSchema = event2({
|
|
|
1981
1981
|
sessionKind: z15.enum(["interactive", "non-interactive", "unknown"]),
|
|
1982
1982
|
agentName: nonEmptyStringSchema.optional(),
|
|
1983
1983
|
agentVersion: nonEmptyStringSchema.optional(),
|
|
1984
|
-
model: modelDescriptorSchema.optional()
|
|
1984
|
+
model: modelDescriptorSchema.optional(),
|
|
1985
|
+
/** The git worktree the session runs in, resolved by the core (ADR 0008). */
|
|
1986
|
+
target: workspaceTargetSchema.optional()
|
|
1985
1987
|
});
|
|
1986
1988
|
var sessionEndEventSchema = event2({
|
|
1987
1989
|
type: z15.literal("session.end"),
|
|
@@ -1995,7 +1997,9 @@ var promptSubmittedEventSchema = event2({
|
|
|
1995
1997
|
type: z15.literal("prompt.submitted"),
|
|
1996
1998
|
promptSource: z15.enum(["user", "automation", "resumed", "unknown"]),
|
|
1997
1999
|
content: contentFactSchema.optional(),
|
|
1998
|
-
turnIndex: z15.number().int().min(0).optional()
|
|
2000
|
+
turnIndex: z15.number().int().min(0).optional(),
|
|
2001
|
+
/** The git worktree the session runs in, resolved by the core (ADR 0008). */
|
|
2002
|
+
target: workspaceTargetSchema.optional()
|
|
1999
2003
|
});
|
|
2000
2004
|
var generationStartEventSchema = event2({
|
|
2001
2005
|
type: z15.literal("generation.start"),
|
|
@@ -2095,6 +2099,8 @@ var canonicalEventSchema = z15.discriminatedUnion("type", [
|
|
|
2095
2099
|
compactionPerformedEventSchema,
|
|
2096
2100
|
errorRaisedEventSchema
|
|
2097
2101
|
]);
|
|
2102
|
+
var TARGETED_EVENT_TYPES = ["session.start", "prompt.submitted", "tool.start", "tool.end"];
|
|
2103
|
+
var TARGETED = new Set(TARGETED_EVENT_TYPES);
|
|
2098
2104
|
|
|
2099
2105
|
// src/providers/adapter.ts
|
|
2100
2106
|
var providerDetectionSchema = z16.strictObject({
|