@osfactory/otel-hook 0.12.0 → 0.13.1
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/README.md +6 -4
- package/dist/{adapter-DQiPu8xF.d.ts → adapter-DyCb7y1N.d.ts} +1 -1
- package/dist/cli.js +260 -74
- package/dist/cli.js.map +1 -1
- package/dist/{export-destinations-CI7z4n3i.d.ts → export-destinations-DUeQKr_C.d.ts} +2 -2
- package/dist/{filesystem-store-CmnUlj1O.d.ts → filesystem-store-B3CpiIRl.d.ts} +1 -1
- package/dist/{hook-vM_cgqS2.d.ts → hook-D5imE0Qc.d.ts} +3 -3
- package/dist/index.d.ts +10 -10
- package/dist/index.js +252 -66
- package/dist/index.js.map +1 -1
- package/dist/install.d.ts +3 -3
- package/dist/install.js +14 -2
- package/dist/install.js.map +1 -1
- package/dist/integration.d.ts +7 -7
- package/dist/integration.js +211 -58
- package/dist/integration.js.map +1 -1
- package/dist/lifecycle.d.ts +9 -2
- package/dist/lifecycle.js +10 -3
- package/dist/lifecycle.js.map +1 -1
- package/dist/{memory-DdU1U91y.d.ts → memory-B3r6sZtC.d.ts} +1 -1
- package/dist/{metric-model-C9lLqqpI.d.ts → metric-model-B4lIuk6i.d.ts} +10 -1
- package/dist/{payload-BT19hiVZ.d.ts → payload-CdDKeRpH.d.ts} +1 -1
- package/dist/{ports-C3k_5eOQ.d.ts → ports-DhpSDIkp.d.ts} +8 -1
- package/dist/providers.d.ts +27 -11
- package/dist/providers.js +132 -43
- package/dist/providers.js.map +1 -1
- package/dist/{registry-gyJqaWmp.d.ts → registry-BKQhhIO3.d.ts} +1 -1
- package/dist/runtime.d.ts +6 -6
- package/dist/runtime.js +12 -2
- package/dist/runtime.js.map +1 -1
- package/dist/state.d.ts +3 -3
- package/dist/state.js +20 -6
- package/dist/state.js.map +1 -1
- package/dist/telemetry.d.ts +3 -3
- package/dist/telemetry.js +72 -6
- package/dist/telemetry.js.map +1 -1
- package/dist/testing.d.ts +6 -6
- package/dist/testing.js +63 -8
- package/dist/testing.js.map +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -639,10 +639,12 @@ resource), no content, and no per-event ids.
|
|
|
639
639
|
retried, records nothing. A callback replayed after a crash restates its series'
|
|
640
640
|
totals instead of adding to them.
|
|
641
641
|
|
|
642
|
-
These numbers are **hook-derived**.
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
642
|
+
These numbers are **hook-derived**. For Claude Code, tokens exist only with
|
|
643
|
+
`providers.claudeCode.readTranscriptUsage` on: each turn's main-thread requests are
|
|
644
|
+
counted on its `Stop` generation, and each subagent's requests on a generation of
|
|
645
|
+
its own at `SubagentStop` (#68), named for the subagent's model and carrying
|
|
646
|
+
`otelhook.subagent.id`. A harness that already books Claude Code usage from native
|
|
647
|
+
telemetry should not add both.
|
|
646
648
|
|
|
647
649
|
| Field | Default | Flag | Variable |
|
|
648
650
|
| --- | --- | --- | --- |
|
|
@@ -5,7 +5,7 @@ import { I as IdentityClaim, d as InvocationIdentity } from './identity-BrVBs901
|
|
|
5
5
|
import { R as ResolvedProviderId, g as ProviderId, h as SourceTransport, d as EventId } from './primitives-CJ8-rn-f.js';
|
|
6
6
|
import { e as PrivacyLimits } from './policy-CimmCfRp.js';
|
|
7
7
|
import { P as PrivacyService } from './service-CbI9CObT.js';
|
|
8
|
-
import { C as Clock, I as IdGenerator, d as Logger } from './ports-
|
|
8
|
+
import { C as Clock, I as IdGenerator, d as Logger } from './ports-DhpSDIkp.js';
|
|
9
9
|
import { A as AttributionOutcome, a as AttributionReason } from './taxonomy-DwhTtuWd.js';
|
|
10
10
|
|
|
11
11
|
/** Raw input offered to adapters. `payload` is `unknown` on purpose. */
|