context-mode 2.0.0-next.9 → 2.0.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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/LICENSE +94 -0
- package/README.md +683 -0
- package/SHA256SUMS +22 -20
- package/claude-code/skills/ctx-stats/SKILL.md +2 -2
- package/cli.mjs +1393 -300
- package/codex/skills/ctx-stats/SKILL.md +2 -2
- package/copilot/plugin.json +1 -1
- package/fixtures/hook-roundtrip.json +133 -3
- package/gemini-extension.json +1 -1
- package/hook.mjs +99 -85
- package/hooks/claude-code.json +2 -2
- package/opencode/plugin.js +7075 -929
- package/package.json +7 -1
- package/pi/index.js +7217 -1070
- package/pi/skills/ctx-stats/SKILL.md +2 -2
- package/qwen-extension.json +1 -1
- package/run.mjs +547 -65
- package/search.mjs +547 -65
- package/server.mjs +6573 -910
- package/skills/ctx-stats/SKILL.md +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ctx-stats
|
|
3
|
-
description: Show how much context context-mode saved, as a
|
|
3
|
+
description: Show how much context context-mode saved, as a detailed report.
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
---
|
|
6
|
-
Call the mcp__context_mode__ctx_stats tool and show its
|
|
6
|
+
Call the mcp__context_mode__ctx_stats tool and show the text block of its reply to the user unchanged, inside a code block so the columns stay aligned. Add one sentence under it that names the largest saving.
|
package/copilot/plugin.json
CHANGED
|
@@ -5,18 +5,148 @@
|
|
|
5
5
|
"session_id": "11111111-1111-1111-1111-111111111111",
|
|
6
6
|
"transcript_path": "/tmp/transcript.jsonl",
|
|
7
7
|
"cwd": "/tmp/project",
|
|
8
|
+
"prompt_id": "33333333-3333-3333-3333-333333333333",
|
|
9
|
+
"permission_mode": "default",
|
|
10
|
+
"effort": {
|
|
11
|
+
"level": "low"
|
|
12
|
+
},
|
|
8
13
|
"hook_event_name": "PreToolUse",
|
|
9
14
|
"tool_name": "Bash",
|
|
10
|
-
"tool_input": {
|
|
15
|
+
"tool_input": {
|
|
16
|
+
"command": "echo gp3-fixture-probe",
|
|
17
|
+
"description": "Echo probe string"
|
|
18
|
+
},
|
|
19
|
+
"tool_use_id": "toolu_01KiGwzUtjjgbHVTtADJu5a9"
|
|
11
20
|
}
|
|
12
21
|
},
|
|
13
22
|
"codex": {
|
|
14
23
|
"event": "PreToolUse",
|
|
15
24
|
"payload": {
|
|
16
25
|
"session_id": "22222222-2222-2222-2222-222222222222",
|
|
26
|
+
"turn_id": "33333333-3333-3333-3333-333333333333",
|
|
27
|
+
"transcript_path": "/tmp/transcript.jsonl",
|
|
28
|
+
"cwd": "/tmp/project",
|
|
29
|
+
"hook_event_name": "PreToolUse",
|
|
30
|
+
"model": "gpt-6-astra",
|
|
31
|
+
"permission_mode": "bypassPermissions",
|
|
32
|
+
"tool_name": "Bash",
|
|
33
|
+
"tool_input": {
|
|
34
|
+
"command": "echo gp3-fixture-probe"
|
|
35
|
+
},
|
|
36
|
+
"tool_use_id": "exec-44444444-4444-4444-4444-444444444444"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"gemini": {
|
|
40
|
+
"event": "PreToolUse",
|
|
41
|
+
"payload": {
|
|
42
|
+
"session_id": "55555555-5555-5555-5555-555555555555",
|
|
43
|
+
"transcript_path": "/tmp/transcript.json",
|
|
44
|
+
"cwd": "/tmp/project",
|
|
45
|
+
"hook_event_name": "BeforeTool",
|
|
46
|
+
"timestamp": "2026-11-04T00:00:00.000Z",
|
|
47
|
+
"tool_name": "run_shell_command",
|
|
48
|
+
"tool_input": {
|
|
49
|
+
"command": "echo gp3-fixture-probe",
|
|
50
|
+
"description": "Echo probe string"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"qwen": {
|
|
55
|
+
"event": "PreToolUse",
|
|
56
|
+
"payload": {
|
|
57
|
+
"session_id": "66666666-6666-6666-6666-666666666666",
|
|
58
|
+
"transcript_path": "/tmp/transcript.jsonl",
|
|
59
|
+
"cwd": "/tmp/project",
|
|
60
|
+
"hook_event_name": "PreToolUse",
|
|
61
|
+
"timestamp": "2026-11-04T00:00:00.000Z",
|
|
62
|
+
"permission_mode": "default",
|
|
63
|
+
"tool_name": "run_shell_command",
|
|
64
|
+
"tool_input": {
|
|
65
|
+
"command": "echo gp3-fixture-probe",
|
|
66
|
+
"description": "Echo probe string"
|
|
67
|
+
},
|
|
68
|
+
"tool_use_id": "call_66666666"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"copilot-cli": {
|
|
72
|
+
"event": "PreToolUse",
|
|
73
|
+
"payload": {
|
|
74
|
+
"sessionId": "77777777-7777-7777-7777-777777777777",
|
|
75
|
+
"timestamp": 1793750400000,
|
|
76
|
+
"cwd": "/tmp/project",
|
|
77
|
+
"toolName": "bash",
|
|
78
|
+
"toolArgs": "{\"command\":\"echo gp3-fixture-probe\",\"description\":\"Echo probe string\"}"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"vscode": {
|
|
82
|
+
"event": "PreToolUse",
|
|
83
|
+
"payload": {
|
|
84
|
+
"timestamp": "2026-11-04T00:00:00.000Z",
|
|
85
|
+
"cwd": "/tmp/project",
|
|
86
|
+
"session_id": "88888888-8888-8888-8888-888888888888",
|
|
87
|
+
"hook_event_name": "PreToolUse",
|
|
88
|
+
"transcript_path": "/tmp/transcript.json",
|
|
89
|
+
"tool_name": "run_in_terminal",
|
|
90
|
+
"tool_input": {
|
|
91
|
+
"command": "echo gp3-fixture-probe",
|
|
92
|
+
"explanation": "Echo probe string",
|
|
93
|
+
"isBackground": false
|
|
94
|
+
},
|
|
95
|
+
"tool_use_id": "call_88888888"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"kiro": {
|
|
99
|
+
"event": "PreToolUse",
|
|
100
|
+
"payload": {
|
|
101
|
+
"hook_event_name": "PreToolUse",
|
|
102
|
+
"cwd": "/tmp/project",
|
|
103
|
+
"session_id": "99999999-9999-9999-9999-999999999999",
|
|
104
|
+
"tool_name": "execute_bash",
|
|
105
|
+
"tool_input": {
|
|
106
|
+
"command": "echo gp3-fixture-probe"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"zcode": {
|
|
111
|
+
"event": "PreToolUse",
|
|
112
|
+
"payload": {
|
|
113
|
+
"session_id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
|
|
114
|
+
"transcript_path": "/tmp/transcript.jsonl",
|
|
17
115
|
"cwd": "/tmp/project",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
116
|
+
"hook_event_name": "PreToolUse",
|
|
117
|
+
"tool_name": "Bash",
|
|
118
|
+
"tool_input": {
|
|
119
|
+
"command": "echo gp3-fixture-probe",
|
|
120
|
+
"description": "Echo probe string"
|
|
121
|
+
},
|
|
122
|
+
"tool_use_id": "toolu_aaaaaaaa"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"pi": {
|
|
126
|
+
"event": "PreToolUse",
|
|
127
|
+
"payload": {
|
|
128
|
+
"type": "tool_call",
|
|
129
|
+
"toolCallId": "call_bbbbbbbb",
|
|
130
|
+
"toolName": "bash",
|
|
131
|
+
"input": {
|
|
132
|
+
"command": "echo gp3-fixture-probe"
|
|
133
|
+
},
|
|
134
|
+
"sessionId": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb",
|
|
135
|
+
"cwd": "/tmp/project"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"opencode": {
|
|
139
|
+
"event": "PreToolUse",
|
|
140
|
+
"payload": {
|
|
141
|
+
"type": "execute.before",
|
|
142
|
+
"tool": "bash",
|
|
143
|
+
"sessionID": "ses_cccccccccccc",
|
|
144
|
+
"callID": "call_cccccccc",
|
|
145
|
+
"args": {
|
|
146
|
+
"command": "echo gp3-fixture-probe",
|
|
147
|
+
"description": "Echo probe string"
|
|
148
|
+
},
|
|
149
|
+
"directory": "/tmp/project"
|
|
20
150
|
}
|
|
21
151
|
}
|
|
22
152
|
}
|
package/gemini-extension.json
CHANGED