@osfactory/otel-hook 0.12.0 → 0.13.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/README.md +6 -4
- package/dist/{adapter-DQiPu8xF.d.ts → adapter-DyCb7y1N.d.ts} +1 -1
- package/dist/cli.js +137 -44
- package/dist/cli.js.map +1 -1
- package/dist/{export-destinations-CI7z4n3i.d.ts → export-destinations-Bey2djRk.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 +137 -44
- package/dist/index.js.map +1 -1
- package/dist/install.d.ts +3 -3
- package/dist/install.js +10 -1
- package/dist/install.js.map +1 -1
- package/dist/integration.d.ts +7 -7
- package/dist/integration.js +107 -41
- package/dist/integration.js.map +1 -1
- package/dist/lifecycle.d.ts +2 -2
- package/dist/lifecycle.js +1 -1
- 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-CFIeUwqd.d.ts} +2 -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 +121 -41
- 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.map +1 -1
- package/dist/telemetry.d.ts +3 -3
- package/dist/telemetry.js +4 -1
- package/dist/telemetry.js.map +1 -1
- package/dist/testing.d.ts +6 -6
- package/dist/testing.js +52 -6
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
package/dist/install.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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-CdDKeRpH.js';
|
|
2
|
+
import { C as Clock } from './ports-DhpSDIkp.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import './primitives-CJ8-rn-f.js';
|
|
5
|
-
import './adapter-
|
|
5
|
+
import './adapter-DyCb7y1N.js';
|
|
6
6
|
import './errors.js';
|
|
7
7
|
import './taxonomy-DwhTtuWd.js';
|
|
8
8
|
import './events-fcomX6d5.js';
|
package/dist/install.js
CHANGED
|
@@ -468,7 +468,16 @@ var subagentStopPayloadSchema = z2.object({
|
|
|
468
468
|
last_assistant_message: z2.string().optional(),
|
|
469
469
|
/** True when this stop fired because a hook continued the subagent's turn. */
|
|
470
470
|
stop_hook_active: z2.boolean().optional(),
|
|
471
|
-
|
|
471
|
+
/**
|
|
472
|
+
* The subagent run's tokens since its previous stop — harness- or
|
|
473
|
+
* enricher-supplied, never upstream. Reported on the subagent's own
|
|
474
|
+
* generation, never on the parent turn (issue #68).
|
|
475
|
+
*/
|
|
476
|
+
usage: claudeUsageSchema.optional(),
|
|
477
|
+
/** Harness-supplied, never upstream: the subagent's model, from its transcript. */
|
|
478
|
+
model: z2.string().min(1).max(256).optional().catch(void 0),
|
|
479
|
+
/** Harness-supplied, never upstream: see `stopPayloadSchema.usage_partial`. */
|
|
480
|
+
usage_partial: z2.boolean().optional().catch(void 0)
|
|
472
481
|
});
|
|
473
482
|
var preCompactPayloadSchema = z2.object({
|
|
474
483
|
...commonFields2,
|