copilot-tap-extension 2.0.4 → 2.0.5
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/bin/install.mjs +148 -72
- package/dist/extension.mjs +9775 -10894
- package/dist/skills/tap-monitor/SKILL.md +7 -7
- package/dist/version.json +1 -1
- package/package.json +2 -1
|
@@ -31,7 +31,7 @@ Use `tap_start_emitter` to start the CommandEmitter:
|
|
|
31
31
|
|
|
32
32
|
- `command` — the user's shell command.
|
|
33
33
|
- No `every` field — commands default to continuous (always running).
|
|
34
|
-
- Initial `
|
|
34
|
+
- Initial `eventFilter.rules` — derive a sensible starting rule set from the command context (e.g. keep `error|warn|fail|exception` for log tailing, or omit entirely and let the companion tune it on first review).
|
|
35
35
|
- `subscribe = true`, `delivery = "important"` — injected lines reach the session.
|
|
36
36
|
- `scope = "temporary"`, `managedBy = "modelOwned"` (unless the user asked for persistence).
|
|
37
37
|
- Name the emitter concisely after the command (e.g. `app-logs`, `docker-mycontainer`).
|
|
@@ -59,9 +59,9 @@ Steps:
|
|
|
59
59
|
1. Call tap_stream_history for stream '<stream-name>' (limit 50).
|
|
60
60
|
2. If there are fewer than 5 entries, stop — not enough data to judge patterns yet.
|
|
61
61
|
3. Scan the recent lines for recurring patterns:
|
|
62
|
-
- Lines that are always noise (timestamps-only, heartbeats, blank pings) → candidates for
|
|
63
|
-
- Lines that indicate important events (errors, warnings, state changes) → candidates for
|
|
64
|
-
- Lines that are never relevant at all → candidates for tighter
|
|
62
|
+
- Lines that are always noise (timestamps-only, heartbeats, blank pings) → candidates for `{ "match": "...", "outcome": "drop" }`.
|
|
63
|
+
- Lines that indicate important events (errors, warnings, state changes) → candidates for `{ "match": "...", "outcome": "inject" }`.
|
|
64
|
+
- Lines that are never relevant at all → candidates for tighter keep/drop rules.
|
|
65
65
|
4. Compare what you see against the current filter patterns for emitter '<command-emitter-name>'.
|
|
66
66
|
5. Only update if the evidence clearly justifies a change (signal-to-noise is poor or a pattern is clearly wrong).
|
|
67
67
|
6. If an update is needed, call tap_set_event_filter with the revised patterns for emitter '<command-emitter-name>'.
|
|
@@ -103,9 +103,9 @@ If the user explicitly asks to keep the monitor across sessions, set `scope = "p
|
|
|
103
103
|
Remind the companion (via the prompt) to be conservative:
|
|
104
104
|
|
|
105
105
|
- Update only when there is clear evidence from at least 5 recent entries (the same minimum checked inside the companion prompt).
|
|
106
|
-
- Prefer broadening
|
|
107
|
-
- Never remove
|
|
108
|
-
- Do not change
|
|
106
|
+
- Prefer broadening injection rules over narrowing them — missing a real event is worse than an extra notification.
|
|
107
|
+
- Never remove the injection rule entirely unless the stream is provably silent.
|
|
108
|
+
- Do not change keep/drop rules on every review cycle — only when a pattern is clearly wrong.
|
|
109
109
|
|
|
110
110
|
## If the input is incomplete
|
|
111
111
|
|
package/dist/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "copilot-tap-extension",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Copilot CLI extension for background event emitters, event streams, and session injection.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "node scripts/build.mjs",
|
|
22
|
+
"install:local": "npm run build && node bin/install.mjs --force",
|
|
22
23
|
"prepublishOnly": "npm run build",
|
|
23
24
|
"check": "node --check ./src/tap-runtime.mjs && node --check ./src/extension.mjs && node --check ./evals/run.mjs && node --check ./examples/heartbeat.mjs",
|
|
24
25
|
"demo:heartbeat": "node ./examples/heartbeat.mjs",
|