@dtmd/temper 0.0.8 → 0.0.10
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/src/contract.d.ts
CHANGED
|
@@ -274,8 +274,8 @@ export declare const script: (path: string) => Verifier;
|
|
|
274
274
|
/**
|
|
275
275
|
* A telemetry verifier — the named documented harness events the emitted tap records
|
|
276
276
|
* to a local-locus log, judged by reading the field record. Each name must be a
|
|
277
|
-
* documented harness lifecycle event (`InstructionsLoaded`, `
|
|
278
|
-
* `UserPromptExpansion`, `
|
|
277
|
+
* documented harness lifecycle event (`InstructionsLoaded`, `SkillInvoked`,
|
|
278
|
+
* `UserPromptExpansion`, `ToolUse`; code.claude.com/docs/en/hooks, retrieved
|
|
279
279
|
* 2026-07-17) — the gate checks each resolves, never records into it.
|
|
280
280
|
*/
|
|
281
281
|
export declare const telemetry: (events: readonly string[]) => Verifier;
|
package/dist/src/contract.js
CHANGED
|
@@ -208,8 +208,8 @@ export const script = (path) => ({ species: "script", path });
|
|
|
208
208
|
/**
|
|
209
209
|
* A telemetry verifier — the named documented harness events the emitted tap records
|
|
210
210
|
* to a local-locus log, judged by reading the field record. Each name must be a
|
|
211
|
-
* documented harness lifecycle event (`InstructionsLoaded`, `
|
|
212
|
-
* `UserPromptExpansion`, `
|
|
211
|
+
* documented harness lifecycle event (`InstructionsLoaded`, `SkillInvoked`,
|
|
212
|
+
* `UserPromptExpansion`, `ToolUse`; code.claude.com/docs/en/hooks, retrieved
|
|
213
213
|
* 2026-07-17) — the gate checks each resolves, never records into it.
|
|
214
214
|
*/
|
|
215
215
|
export const telemetry = (events) => ({ species: "telemetry", events });
|
package/dist/src/declarations.js
CHANGED
|
@@ -147,7 +147,7 @@ function registrationLabel(registration) {
|
|
|
147
147
|
case "connection":
|
|
148
148
|
return "connection";
|
|
149
149
|
case "enablement":
|
|
150
|
-
return
|
|
150
|
+
return `enablement(${registration.field})`;
|
|
151
151
|
case "registry":
|
|
152
152
|
return "registry";
|
|
153
153
|
}
|
|
@@ -638,18 +638,18 @@ const TAP_COMMAND = "temper tap";
|
|
|
638
638
|
*
|
|
639
639
|
* - `InstructionsLoaded` fires on a rule/memory load; its matcher filters the load
|
|
640
640
|
* reason, and `path_glob_match` is the lazy per-path load the coverage tap reads.
|
|
641
|
-
* - `
|
|
641
|
+
* - `SkillInvoked` is a skill invocation, surfaced under `PostToolUse` with the tool-name
|
|
642
642
|
* matcher `Skill` — the tap's own read of a skill call.
|
|
643
643
|
* - `UserPromptExpansion` fires on a command expansion; its matcher filters the command
|
|
644
644
|
* name, `.*` capturing every one.
|
|
645
|
-
* - `
|
|
645
|
+
* - `ToolUse` fires after any tool call; its matcher filters the tool name, `.*`
|
|
646
646
|
* capturing every one.
|
|
647
647
|
*/
|
|
648
648
|
const TELEMETRY_EVENT_HOOKS = {
|
|
649
649
|
InstructionsLoaded: { event: "InstructionsLoaded", matcher: "path_glob_match" },
|
|
650
|
-
|
|
650
|
+
SkillInvoked: { event: "PostToolUse", matcher: "Skill" },
|
|
651
651
|
UserPromptExpansion: { event: "UserPromptExpansion", matcher: ".*" },
|
|
652
|
-
|
|
652
|
+
ToolUse: { event: "PostToolUse", matcher: ".*" },
|
|
653
653
|
};
|
|
654
654
|
/**
|
|
655
655
|
* The synthesized tap-hook `registration` rows — one deduped `hooks.<Event>`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dtmd/temper",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "The temper authoring face — the six-noun model as typed modules: harness(), kind<T>(), clause values, needs, and file()/text/blocks(). Emit compiles to the declaration rows the engine reads, a byte-faithful projection, and the lock.",
|
|
5
5
|
"license": "(MIT OR Apache-2.0)",
|
|
6
6
|
"repository": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"temper": "bin/temper.js"
|
|
53
53
|
},
|
|
54
54
|
"optionalDependencies": {
|
|
55
|
-
"@dtmd/temper-linux-x64": "0.0.
|
|
56
|
-
"@dtmd/temper-win32-x64": "0.0.
|
|
55
|
+
"@dtmd/temper-linux-x64": "0.0.10",
|
|
56
|
+
"@dtmd/temper-win32-x64": "0.0.10"
|
|
57
57
|
}
|
|
58
58
|
}
|