@osfactory/otel-hook 0.4.1 → 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-BgqtlADe.d.ts → adapter-BJiz6lqM.d.ts} +2 -3
- package/dist/cli.js +100 -35
- package/dist/cli.js.map +1 -1
- package/dist/{events-C3h3GvHj.d.ts → events-B3MHoJTD.d.ts} +190 -1
- package/dist/{filesystem-store-BAq3VGVv.d.ts → filesystem-store-r-nNA3BA.d.ts} +1 -1
- package/dist/{hook-CQiNa88Q.d.ts → hook-Dh8OO4Wa.d.ts} +4 -4
- package/dist/index.d.ts +12 -13
- package/dist/index.js +105 -35
- package/dist/index.js.map +1 -1
- package/dist/install.d.ts +4 -5
- package/dist/install.js +13 -3
- package/dist/install.js.map +1 -1
- package/dist/integration.d.ts +8 -9
- package/dist/integration.js +2299 -2246
- package/dist/integration.js.map +1 -1
- package/dist/lifecycle.d.ts +3 -3
- package/dist/lifecycle.js +762 -213
- package/dist/lifecycle.js.map +1 -1
- package/dist/{memory-kflYgZbg.d.ts → memory-Bl9ANVff.d.ts} +2 -2
- package/dist/model.d.ts +1 -2
- package/dist/model.js +20 -4
- package/dist/model.js.map +1 -1
- package/dist/{otlp-log-sink-BZIgYPKN.d.ts → otlp-log-sink-eUEjaLhk.d.ts} +3 -3
- package/dist/{payload-DpyU8F-z.d.ts → payload-Ci8_ERm6.d.ts} +1 -1
- package/dist/{ports-B_iwJQPQ.d.ts → ports-n7KFOpKo.d.ts} +9 -1
- package/dist/providers.d.ts +10 -11
- package/dist/providers.js +37 -14
- package/dist/providers.js.map +1 -1
- package/dist/{registry-BSBS8t7S.d.ts → registry-CIVvRlVK.d.ts} +1 -1
- package/dist/runtime.d.ts +32 -16
- package/dist/runtime.js +57 -15
- package/dist/runtime.js.map +1 -1
- package/dist/{semconv-BeUPQ7_q.d.ts → semconv-fPRb-dpU.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 +953 -414
- package/dist/telemetry.js.map +1 -1
- package/dist/testing.d.ts +14 -9
- package/dist/testing.js +45 -20
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
- package/dist/target-8RfaVxp8.d.ts +0 -83
package/dist/install.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
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
|
-
import './target-8RfaVxp8.js';
|
|
11
10
|
import './policy-CimmCfRp.js';
|
|
12
11
|
import './content-M9xIKG7h.js';
|
|
13
12
|
import './service-CbI9CObT.js';
|
package/dist/install.js
CHANGED
|
@@ -1731,11 +1731,15 @@ var targetHintSchema = z12.strictObject({
|
|
|
1731
1731
|
/** Absolute directory that relative `paths` resolve against. */
|
|
1732
1732
|
baseDirectory: localPathSchema.optional()
|
|
1733
1733
|
}).readonly();
|
|
1734
|
+
var worktreeKindSchema = z12.enum(["main", "linked"]);
|
|
1734
1735
|
var workspaceTargetSchema = z12.strictObject({
|
|
1735
1736
|
workspaceId: workspaceIdSchema,
|
|
1736
1737
|
/** Branch checked out in that worktree; absent on a detached HEAD. */
|
|
1737
1738
|
vcsBranchName: nonEmptyStringSchema.optional(),
|
|
1738
|
-
source: targetSourceSchema
|
|
1739
|
+
source: targetSourceSchema,
|
|
1740
|
+
/** `git-root` handle of the repository's main worktree; absent when there is none to name. */
|
|
1741
|
+
repositoryId: workspaceIdSchema.optional(),
|
|
1742
|
+
worktreeKind: worktreeKindSchema.optional()
|
|
1739
1743
|
}).readonly();
|
|
1740
1744
|
var SUBAGENT_ID_PATTERN = /^[A-Za-z0-9_.:@+=-]{1,256}$/;
|
|
1741
1745
|
var subagentIdSchema = z12.string().regex(SUBAGENT_ID_PATTERN);
|
|
@@ -1977,7 +1981,9 @@ var sessionStartEventSchema = event2({
|
|
|
1977
1981
|
sessionKind: z15.enum(["interactive", "non-interactive", "unknown"]),
|
|
1978
1982
|
agentName: nonEmptyStringSchema.optional(),
|
|
1979
1983
|
agentVersion: nonEmptyStringSchema.optional(),
|
|
1980
|
-
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()
|
|
1981
1987
|
});
|
|
1982
1988
|
var sessionEndEventSchema = event2({
|
|
1983
1989
|
type: z15.literal("session.end"),
|
|
@@ -1991,7 +1997,9 @@ var promptSubmittedEventSchema = event2({
|
|
|
1991
1997
|
type: z15.literal("prompt.submitted"),
|
|
1992
1998
|
promptSource: z15.enum(["user", "automation", "resumed", "unknown"]),
|
|
1993
1999
|
content: contentFactSchema.optional(),
|
|
1994
|
-
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()
|
|
1995
2003
|
});
|
|
1996
2004
|
var generationStartEventSchema = event2({
|
|
1997
2005
|
type: z15.literal("generation.start"),
|
|
@@ -2091,6 +2099,8 @@ var canonicalEventSchema = z15.discriminatedUnion("type", [
|
|
|
2091
2099
|
compactionPerformedEventSchema,
|
|
2092
2100
|
errorRaisedEventSchema
|
|
2093
2101
|
]);
|
|
2102
|
+
var TARGETED_EVENT_TYPES = ["session.start", "prompt.submitted", "tool.start", "tool.end"];
|
|
2103
|
+
var TARGETED = new Set(TARGETED_EVENT_TYPES);
|
|
2094
2104
|
|
|
2095
2105
|
// src/providers/adapter.ts
|
|
2096
2106
|
var providerDetectionSchema = z16.strictObject({
|