@a1st/aix-core 0.1.0 → 0.2.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/dist/editors/adapters/base.d.ts +2 -1
- package/dist/editors/adapters/base.d.ts.map +1 -1
- package/dist/editors/adapters/base.js +10 -0
- package/dist/editors/adapters/base.js.map +1 -1
- package/dist/editors/adapters/claude-code.js +3 -3
- package/dist/editors/adapters/claude-code.js.map +1 -1
- package/dist/editors/adapters/codex.d.ts.map +1 -1
- package/dist/editors/adapters/codex.js +7 -15
- package/dist/editors/adapters/codex.js.map +1 -1
- package/dist/editors/adapters/copilot.d.ts +3 -2
- package/dist/editors/adapters/copilot.d.ts.map +1 -1
- package/dist/editors/adapters/copilot.js +21 -6
- package/dist/editors/adapters/copilot.js.map +1 -1
- package/dist/editors/adapters/gemini.d.ts +12 -2
- package/dist/editors/adapters/gemini.d.ts.map +1 -1
- package/dist/editors/adapters/gemini.js +51 -11
- package/dist/editors/adapters/gemini.js.map +1 -1
- package/dist/editors/import.d.ts +2 -1
- package/dist/editors/import.d.ts.map +1 -1
- package/dist/editors/import.js +95 -780
- package/dist/editors/import.js.map +1 -1
- package/dist/editors/install.d.ts.map +1 -1
- package/dist/editors/install.js +1 -3
- package/dist/editors/install.js.map +1 -1
- package/dist/editors/prompt-skill-installer.d.ts +17 -0
- package/dist/editors/prompt-skill-installer.d.ts.map +1 -0
- package/dist/editors/prompt-skill-installer.js +23 -0
- package/dist/editors/prompt-skill-installer.js.map +1 -0
- package/dist/editors/strategies/claude-code/hooks.d.ts +5 -1
- package/dist/editors/strategies/claude-code/hooks.d.ts.map +1 -1
- package/dist/editors/strategies/claude-code/hooks.js +270 -38
- package/dist/editors/strategies/claude-code/hooks.js.map +1 -1
- package/dist/editors/strategies/claude-code/mcp.d.ts +3 -2
- package/dist/editors/strategies/claude-code/mcp.d.ts.map +1 -1
- package/dist/editors/strategies/claude-code/mcp.js +6 -5
- package/dist/editors/strategies/claude-code/mcp.js.map +1 -1
- package/dist/editors/strategies/claude-code/prompts.d.ts.map +1 -1
- package/dist/editors/strategies/claude-code/prompts.js +15 -67
- package/dist/editors/strategies/claude-code/prompts.js.map +1 -1
- package/dist/editors/strategies/claude-code/rules.d.ts +1 -0
- package/dist/editors/strategies/claude-code/rules.d.ts.map +1 -1
- package/dist/editors/strategies/claude-code/rules.js +3 -0
- package/dist/editors/strategies/claude-code/rules.js.map +1 -1
- package/dist/editors/strategies/codex/prompts.d.ts.map +1 -1
- package/dist/editors/strategies/codex/prompts.js +20 -72
- package/dist/editors/strategies/codex/prompts.js.map +1 -1
- package/dist/editors/strategies/codex/rules.d.ts +2 -1
- package/dist/editors/strategies/codex/rules.d.ts.map +1 -1
- package/dist/editors/strategies/codex/rules.js +22 -0
- package/dist/editors/strategies/codex/rules.js.map +1 -1
- package/dist/editors/strategies/copilot/hooks.d.ts +7 -4
- package/dist/editors/strategies/copilot/hooks.d.ts.map +1 -1
- package/dist/editors/strategies/copilot/hooks.js +212 -50
- package/dist/editors/strategies/copilot/hooks.js.map +1 -1
- package/dist/editors/strategies/copilot/mcp.d.ts +1 -0
- package/dist/editors/strategies/copilot/mcp.d.ts.map +1 -1
- package/dist/editors/strategies/copilot/mcp.js +7 -0
- package/dist/editors/strategies/copilot/mcp.js.map +1 -1
- package/dist/editors/strategies/copilot/prompts.d.ts.map +1 -1
- package/dist/editors/strategies/copilot/prompts.js +17 -69
- package/dist/editors/strategies/copilot/prompts.js.map +1 -1
- package/dist/editors/strategies/cursor/hooks.d.ts +7 -2
- package/dist/editors/strategies/cursor/hooks.d.ts.map +1 -1
- package/dist/editors/strategies/cursor/hooks.js +171 -22
- package/dist/editors/strategies/cursor/hooks.js.map +1 -1
- package/dist/editors/strategies/cursor/prompts.d.ts.map +1 -1
- package/dist/editors/strategies/cursor/prompts.js +11 -44
- package/dist/editors/strategies/cursor/prompts.js.map +1 -1
- package/dist/editors/strategies/gemini/hooks.d.ts +18 -0
- package/dist/editors/strategies/gemini/hooks.d.ts.map +1 -0
- package/dist/editors/strategies/gemini/hooks.js +152 -0
- package/dist/editors/strategies/gemini/hooks.js.map +1 -0
- package/dist/editors/strategies/gemini/index.d.ts +1 -0
- package/dist/editors/strategies/gemini/index.d.ts.map +1 -1
- package/dist/editors/strategies/gemini/index.js +1 -0
- package/dist/editors/strategies/gemini/index.js.map +1 -1
- package/dist/editors/strategies/gemini/prompts.d.ts.map +1 -1
- package/dist/editors/strategies/gemini/prompts.js +7 -33
- package/dist/editors/strategies/gemini/prompts.js.map +1 -1
- package/dist/editors/strategies/gemini/rules.d.ts +2 -1
- package/dist/editors/strategies/gemini/rules.d.ts.map +1 -1
- package/dist/editors/strategies/gemini/rules.js +22 -0
- package/dist/editors/strategies/gemini/rules.js.map +1 -1
- package/dist/editors/strategies/opencode/import-utils.d.ts +5 -0
- package/dist/editors/strategies/opencode/import-utils.d.ts.map +1 -0
- package/dist/editors/strategies/opencode/import-utils.js +181 -0
- package/dist/editors/strategies/opencode/import-utils.js.map +1 -0
- package/dist/editors/strategies/opencode/mcp.d.ts +2 -0
- package/dist/editors/strategies/opencode/mcp.d.ts.map +1 -1
- package/dist/editors/strategies/opencode/mcp.js +11 -3
- package/dist/editors/strategies/opencode/mcp.js.map +1 -1
- package/dist/editors/strategies/opencode/prompts.d.ts +3 -1
- package/dist/editors/strategies/opencode/prompts.d.ts.map +1 -1
- package/dist/editors/strategies/opencode/prompts.js +72 -64
- package/dist/editors/strategies/opencode/prompts.js.map +1 -1
- package/dist/editors/strategies/opencode/rules.d.ts +3 -1
- package/dist/editors/strategies/opencode/rules.d.ts.map +1 -1
- package/dist/editors/strategies/opencode/rules.js +68 -0
- package/dist/editors/strategies/opencode/rules.js.map +1 -1
- package/dist/editors/strategies/shared/hook-import-utils.d.ts +21 -0
- package/dist/editors/strategies/shared/hook-import-utils.d.ts.map +1 -0
- package/dist/editors/strategies/shared/hook-import-utils.js +98 -0
- package/dist/editors/strategies/shared/hook-import-utils.js.map +1 -0
- package/dist/editors/strategies/shared/native-skills.d.ts +2 -0
- package/dist/editors/strategies/shared/native-skills.d.ts.map +1 -1
- package/dist/editors/strategies/shared/native-skills.js +6 -0
- package/dist/editors/strategies/shared/native-skills.js.map +1 -1
- package/dist/editors/strategies/shared/no-hooks.d.ts +7 -3
- package/dist/editors/strategies/shared/no-hooks.d.ts.map +1 -1
- package/dist/editors/strategies/shared/no-hooks.js +14 -2
- package/dist/editors/strategies/shared/no-hooks.js.map +1 -1
- package/dist/editors/strategies/shared/pointer-skills.d.ts +2 -0
- package/dist/editors/strategies/shared/pointer-skills.d.ts.map +1 -1
- package/dist/editors/strategies/shared/pointer-skills.js +6 -0
- package/dist/editors/strategies/shared/pointer-skills.js.map +1 -1
- package/dist/editors/strategies/shared/prompt-utils.d.ts +30 -0
- package/dist/editors/strategies/shared/prompt-utils.d.ts.map +1 -0
- package/dist/editors/strategies/shared/prompt-utils.js +101 -0
- package/dist/editors/strategies/shared/prompt-utils.js.map +1 -0
- package/dist/editors/strategies/types.d.ts +95 -0
- package/dist/editors/strategies/types.d.ts.map +1 -1
- package/dist/editors/strategies/windsurf/hooks.d.ts +5 -1
- package/dist/editors/strategies/windsurf/hooks.d.ts.map +1 -1
- package/dist/editors/strategies/windsurf/hooks.js +102 -21
- package/dist/editors/strategies/windsurf/hooks.js.map +1 -1
- package/dist/editors/strategies/windsurf/prompts.d.ts.map +1 -1
- package/dist/editors/strategies/windsurf/prompts.js +14 -62
- package/dist/editors/strategies/windsurf/prompts.js.map +1 -1
- package/dist/editors/strategies/windsurf/rules.js.map +1 -1
- package/dist/editors/strategies/zed/prompts.d.ts +2 -12
- package/dist/editors/strategies/zed/prompts.d.ts.map +1 -1
- package/dist/editors/strategies/zed/prompts.js +2 -19
- package/dist/editors/strategies/zed/prompts.js.map +1 -1
- package/dist/editors/strategies/zed/rules.d.ts +2 -1
- package/dist/editors/strategies/zed/rules.d.ts.map +1 -1
- package/dist/editors/strategies/zed/rules.js +27 -0
- package/dist/editors/strategies/zed/rules.js.map +1 -1
- package/dist/editors/types.d.ts +5 -0
- package/dist/editors/types.d.ts.map +1 -1
- package/dist/entity-hash.js.map +1 -1
- package/dist/format-error.d.ts +16 -3
- package/dist/format-error.d.ts.map +1 -1
- package/dist/format-error.js +101 -22
- package/dist/format-error.js.map +1 -1
- package/dist/fs/safe-rm.d.ts +2 -3
- package/dist/fs/safe-rm.d.ts.map +1 -1
- package/dist/fs/safe-rm.js +7 -1
- package/dist/fs/safe-rm.js.map +1 -1
- package/dist/global/processor.d.ts.map +1 -1
- package/dist/global/processor.js +3 -2
- package/dist/global/processor.js.map +1 -1
- package/dist/inheritance.js.map +1 -1
- package/dist/json.js.map +1 -1
- package/dist/loader.d.ts.map +1 -1
- package/dist/loader.js +3 -3
- package/dist/loader.js.map +1 -1
- package/dist/merge.js.map +1 -1
- package/dist/reference-resolver.js.map +1 -1
- package/dist/remote-loader.js.map +1 -1
- package/dist/rules/merger.d.ts.map +1 -1
- package/dist/rules/merger.js +2 -2
- package/dist/rules/merger.js.map +1 -1
- package/dist/rules/utils.js.map +1 -1
- package/dist/runtime/node.d.ts.map +1 -1
- package/dist/runtime/node.js +11 -4
- package/dist/runtime/node.js.map +1 -1
- package/dist/skills/resolve.js.map +1 -1
- package/package.json +10 -5
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { parseHookObject, parseMatcherImportedHooks } from '../shared/hook-import-utils.js';
|
|
1
2
|
/**
|
|
2
|
-
* Map from generic ai.json hook events to GitHub Copilot's camelCase event names.
|
|
3
|
-
*
|
|
3
|
+
* Map from generic ai.json hook events to GitHub Copilot CLI's camelCase event names.
|
|
4
|
+
* Source: https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-hooks-reference
|
|
4
5
|
*/
|
|
5
6
|
const EVENT_MAP = {
|
|
6
7
|
pre_tool_use: 'preToolUse',
|
|
7
8
|
post_tool_use: 'postToolUse',
|
|
9
|
+
post_tool_use_failure: 'postToolUseFailure',
|
|
8
10
|
pre_file_read: 'preToolUse',
|
|
9
11
|
post_file_read: 'postToolUse',
|
|
10
12
|
pre_file_write: 'preToolUse',
|
|
@@ -13,62 +15,163 @@ const EVENT_MAP = {
|
|
|
13
15
|
post_command: 'postToolUse',
|
|
14
16
|
pre_mcp_tool: 'preToolUse',
|
|
15
17
|
post_mcp_tool: 'postToolUse',
|
|
18
|
+
permission_request: 'permissionRequest',
|
|
19
|
+
notification: 'notification',
|
|
16
20
|
session_start: 'sessionStart',
|
|
17
21
|
session_end: 'sessionEnd',
|
|
18
|
-
agent_stop: '
|
|
22
|
+
agent_stop: 'agentStop',
|
|
19
23
|
pre_prompt: 'userPromptSubmitted',
|
|
20
24
|
pre_compact: 'preCompact',
|
|
21
25
|
subagent_start: 'subagentStart',
|
|
22
26
|
subagent_stop: 'subagentStop',
|
|
27
|
+
error_occurred: 'errorOccurred',
|
|
23
28
|
};
|
|
24
29
|
/**
|
|
25
|
-
* Tool-name matchers
|
|
26
|
-
*
|
|
27
|
-
*
|
|
30
|
+
* Tool-name matchers for Copilot CLI's tool registry. Tool names taken from the docs:
|
|
31
|
+
* `ask_user`, `bash`, `create`, `edit`, `glob`, `grep`, `powershell`, `task`, `view`,
|
|
32
|
+
* `web_fetch`.
|
|
28
33
|
*/
|
|
29
34
|
const TOOL_MATCHER_MAP = {
|
|
30
|
-
pre_command: '
|
|
31
|
-
post_command: '
|
|
32
|
-
pre_file_read: '
|
|
33
|
-
post_file_read: '
|
|
34
|
-
pre_file_write: '
|
|
35
|
-
post_file_write: '
|
|
35
|
+
pre_command: 'bash|powershell',
|
|
36
|
+
post_command: 'bash|powershell',
|
|
37
|
+
pre_file_read: 'view',
|
|
38
|
+
post_file_read: 'view',
|
|
39
|
+
pre_file_write: 'create|edit',
|
|
40
|
+
post_file_write: 'create|edit',
|
|
36
41
|
pre_mcp_tool: 'mcp__.*',
|
|
37
42
|
post_mcp_tool: 'mcp__.*',
|
|
38
43
|
};
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'
|
|
49
|
-
'
|
|
50
|
-
'
|
|
51
|
-
'
|
|
52
|
-
'
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
'
|
|
57
|
-
'
|
|
58
|
-
'subagent_start',
|
|
59
|
-
'subagent_stop',
|
|
44
|
+
const SUPPORTED_EVENTS = new Set(Object.keys(EVENT_MAP));
|
|
45
|
+
/** Fields the Copilot command hook entry surfaces natively. */
|
|
46
|
+
const COPILOT_COMMAND_FIELDS = new Set([
|
|
47
|
+
'type',
|
|
48
|
+
'command',
|
|
49
|
+
'bash',
|
|
50
|
+
'powershell',
|
|
51
|
+
'shell',
|
|
52
|
+
'cwd',
|
|
53
|
+
'working_directory',
|
|
54
|
+
'env',
|
|
55
|
+
'timeout',
|
|
56
|
+
'description',
|
|
57
|
+
'name',
|
|
58
|
+
]);
|
|
59
|
+
/** Fields the Copilot prompt hook entry (sessionStart only) surfaces natively. */
|
|
60
|
+
const COPILOT_PROMPT_FIELDS = new Set([
|
|
61
|
+
'type',
|
|
62
|
+
'prompt',
|
|
60
63
|
]);
|
|
64
|
+
function buildCommandEntry(action) {
|
|
65
|
+
const useBash = action.shell !== 'powershell', useShell = action.shell !== 'bash', bash = useBash ? action.bash ?? (action.shell !== 'powershell' ? action.command : undefined) : undefined, powershell = useShell
|
|
66
|
+
? action.powershell ?? (action.shell === 'powershell' ? action.command : undefined)
|
|
67
|
+
: undefined;
|
|
68
|
+
if (!bash && !powershell) {
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
const entry = { type: 'command' };
|
|
72
|
+
if (bash) {
|
|
73
|
+
entry.bash = bash;
|
|
74
|
+
}
|
|
75
|
+
if (powershell) {
|
|
76
|
+
entry.powershell = powershell;
|
|
77
|
+
}
|
|
78
|
+
const cwd = action.cwd ?? action.working_directory;
|
|
79
|
+
if (cwd) {
|
|
80
|
+
entry.cwd = cwd;
|
|
81
|
+
}
|
|
82
|
+
if (action.env) {
|
|
83
|
+
entry.env = action.env;
|
|
84
|
+
}
|
|
85
|
+
if (action.timeout !== undefined) {
|
|
86
|
+
entry.timeoutSec = action.timeout;
|
|
87
|
+
}
|
|
88
|
+
return entry;
|
|
89
|
+
}
|
|
90
|
+
function buildPromptEntry(action) {
|
|
91
|
+
if (!action.prompt) {
|
|
92
|
+
return undefined;
|
|
93
|
+
}
|
|
94
|
+
return { type: 'prompt', prompt: action.prompt };
|
|
95
|
+
}
|
|
96
|
+
function parseCopilotAction(value) {
|
|
97
|
+
if (!value || typeof value !== 'object') {
|
|
98
|
+
return null;
|
|
99
|
+
}
|
|
100
|
+
const entry = value;
|
|
101
|
+
if (entry.type === 'prompt') {
|
|
102
|
+
if (typeof entry.prompt !== 'string' || entry.prompt.length === 0) {
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
type: 'prompt',
|
|
107
|
+
prompt: entry.prompt,
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
const command = typeof entry.command === 'string' && entry.command.length > 0 ? entry.command : undefined, bash = typeof entry.bash === 'string' && entry.bash.length > 0 ? entry.bash : command, powershell = typeof entry.powershell === 'string' && entry.powershell.length > 0 ? entry.powershell : undefined;
|
|
111
|
+
if (!bash && !powershell) {
|
|
112
|
+
return null;
|
|
113
|
+
}
|
|
114
|
+
const action = {};
|
|
115
|
+
if (command) {
|
|
116
|
+
action.command = command;
|
|
117
|
+
}
|
|
118
|
+
else if (bash) {
|
|
119
|
+
action.bash = bash;
|
|
120
|
+
}
|
|
121
|
+
if (powershell) {
|
|
122
|
+
action.powershell = powershell;
|
|
123
|
+
}
|
|
124
|
+
if (typeof entry.cwd === 'string' && entry.cwd.length > 0) {
|
|
125
|
+
action.cwd = entry.cwd;
|
|
126
|
+
}
|
|
127
|
+
if (isStringRecord(entry.env)) {
|
|
128
|
+
action.env = entry.env;
|
|
129
|
+
}
|
|
130
|
+
if (typeof entry.timeoutSec === 'number' && entry.timeoutSec > 0) {
|
|
131
|
+
action.timeout = entry.timeoutSec;
|
|
132
|
+
}
|
|
133
|
+
else if (typeof entry.timeout === 'number' && entry.timeout > 0) {
|
|
134
|
+
action.timeout = entry.timeout;
|
|
135
|
+
}
|
|
136
|
+
return action;
|
|
137
|
+
}
|
|
138
|
+
function normalizeImportedMatcher(matcher) {
|
|
139
|
+
switch (matcher) {
|
|
140
|
+
case 'Bash':
|
|
141
|
+
return 'bash|powershell';
|
|
142
|
+
case 'Read':
|
|
143
|
+
return 'view';
|
|
144
|
+
case 'Write|Edit':
|
|
145
|
+
return 'create|edit';
|
|
146
|
+
default:
|
|
147
|
+
return matcher;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
function normalizeImportedHookObject(rawHooks) {
|
|
151
|
+
if (rawHooks.stop !== undefined && rawHooks.agentStop === undefined) {
|
|
152
|
+
return {
|
|
153
|
+
...rawHooks,
|
|
154
|
+
agentStop: rawHooks.stop,
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
return rawHooks;
|
|
158
|
+
}
|
|
159
|
+
function isStringRecord(value) {
|
|
160
|
+
if (!value || typeof value !== 'object' || Array.isArray(value)) {
|
|
161
|
+
return false;
|
|
162
|
+
}
|
|
163
|
+
return Object.values(value).every((entry) => typeof entry === 'string');
|
|
164
|
+
}
|
|
61
165
|
/**
|
|
62
|
-
* GitHub Copilot hooks strategy. Writes hooks to `.github/hooks/hooks.json
|
|
63
|
-
*
|
|
64
|
-
* Uses the same matcher-based structure as Claude Code hooks.
|
|
166
|
+
* GitHub Copilot CLI hooks strategy. Writes hooks to `.github/hooks/hooks.json` (project)
|
|
167
|
+
* or `~/.copilot/hooks/hooks.json` (user). Wraps output with `version: 1`.
|
|
65
168
|
*/
|
|
66
169
|
export class CopilotHooksStrategy {
|
|
67
170
|
isSupported() {
|
|
68
171
|
return true;
|
|
69
172
|
}
|
|
70
173
|
getConfigPath() {
|
|
71
|
-
//
|
|
174
|
+
// Copilot hooks live in `.github/hooks/`, two levels up from `.vscode/`.
|
|
72
175
|
return '../.github/hooks/hooks.json';
|
|
73
176
|
}
|
|
74
177
|
getGlobalConfigPath() {
|
|
@@ -77,28 +180,87 @@ export class CopilotHooksStrategy {
|
|
|
77
180
|
getUnsupportedEvents(hooks) {
|
|
78
181
|
return Object.keys(hooks).filter((event) => !SUPPORTED_EVENTS.has(event));
|
|
79
182
|
}
|
|
183
|
+
getUnsupportedFields(hooks) {
|
|
184
|
+
const result = [];
|
|
185
|
+
for (const [event, matchers] of Object.entries(hooks)) {
|
|
186
|
+
matchers?.forEach((matcher, matcherIndex) => {
|
|
187
|
+
matcher.hooks?.forEach((action, actionIndex) => {
|
|
188
|
+
const type = action.type ?? 'command';
|
|
189
|
+
const recognized = type === 'prompt' ? COPILOT_PROMPT_FIELDS : COPILOT_COMMAND_FIELDS;
|
|
190
|
+
const fields = Object.keys(action)
|
|
191
|
+
.filter((field) => !recognized.has(field));
|
|
192
|
+
if (type === 'prompt' && event !== 'session_start') {
|
|
193
|
+
fields.push('prompt');
|
|
194
|
+
}
|
|
195
|
+
if (fields.length > 0) {
|
|
196
|
+
result.push({ event, matcherIndex, actionIndex, fields });
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
return result;
|
|
202
|
+
}
|
|
203
|
+
getSupportedEvents() {
|
|
204
|
+
return Object.keys(EVENT_MAP).toSorted();
|
|
205
|
+
}
|
|
206
|
+
getNativeEventNames() {
|
|
207
|
+
return Array.from(new Set(Object.values(EVENT_MAP))).toSorted();
|
|
208
|
+
}
|
|
209
|
+
parseImportedConfig(content) {
|
|
210
|
+
const parsed = parseHookObject(content);
|
|
211
|
+
if (!parsed.rawHooks) {
|
|
212
|
+
return { hooks: {}, warnings: parsed.warnings };
|
|
213
|
+
}
|
|
214
|
+
return {
|
|
215
|
+
hooks: parseMatcherImportedHooks(normalizeImportedHookObject(parsed.rawHooks), {
|
|
216
|
+
eventMap: EVENT_MAP,
|
|
217
|
+
parseAction: parseCopilotAction,
|
|
218
|
+
toolMatchers: TOOL_MATCHER_MAP,
|
|
219
|
+
normalizeMatcher: normalizeImportedMatcher,
|
|
220
|
+
}),
|
|
221
|
+
warnings: parsed.warnings,
|
|
222
|
+
};
|
|
223
|
+
}
|
|
80
224
|
formatConfig(hooks) {
|
|
81
225
|
const copilotHooks = {};
|
|
82
226
|
for (const [event, matchers] of Object.entries(hooks)) {
|
|
83
227
|
const copilotEvent = EVENT_MAP[event];
|
|
84
|
-
if (!copilotEvent) {
|
|
228
|
+
if (!copilotEvent || !matchers) {
|
|
85
229
|
continue;
|
|
86
230
|
}
|
|
87
231
|
const toolMatcher = TOOL_MATCHER_MAP[event];
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
type
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
232
|
+
const groups = matchers.map((matcher) => {
|
|
233
|
+
const entries = [];
|
|
234
|
+
for (const action of matcher.hooks) {
|
|
235
|
+
const type = action.type ?? 'command';
|
|
236
|
+
if (type === 'prompt' && event === 'session_start') {
|
|
237
|
+
const prompt = buildPromptEntry(action);
|
|
238
|
+
if (prompt) {
|
|
239
|
+
entries.push(prompt);
|
|
240
|
+
}
|
|
241
|
+
continue;
|
|
242
|
+
}
|
|
243
|
+
if (type !== 'command') {
|
|
244
|
+
// Drop unsupported types; user is warned via getUnsupportedFields.
|
|
245
|
+
continue;
|
|
246
|
+
}
|
|
247
|
+
const command = buildCommandEntry(action);
|
|
248
|
+
if (command) {
|
|
249
|
+
entries.push(command);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
return {
|
|
253
|
+
matcher: toolMatcher ?? matcher.matcher ?? '',
|
|
254
|
+
hooks: entries,
|
|
255
|
+
};
|
|
256
|
+
});
|
|
257
|
+
const nonEmpty = groups.filter((group) => group.hooks.length > 0);
|
|
258
|
+
if (nonEmpty.length === 0) {
|
|
259
|
+
continue;
|
|
98
260
|
}
|
|
99
|
-
copilotHooks[copilotEvent].
|
|
261
|
+
copilotHooks[copilotEvent] = (copilotHooks[copilotEvent] ?? []).concat(nonEmpty);
|
|
100
262
|
}
|
|
101
|
-
return JSON.stringify({ hooks: copilotHooks }, null, 2) + '\n';
|
|
263
|
+
return JSON.stringify({ version: 1, hooks: copilotHooks }, null, 2) + '\n';
|
|
102
264
|
}
|
|
103
265
|
}
|
|
104
266
|
//# sourceMappingURL=hooks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../src/editors/strategies/copilot/hooks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../src/editors/strategies/copilot/hooks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE5F;;;GAGG;AACH,MAAM,SAAS,GAA2B;IACvC,YAAY,EAAE,YAAY;IAC1B,aAAa,EAAE,aAAa;IAC5B,qBAAqB,EAAE,oBAAoB;IAC3C,aAAa,EAAE,YAAY;IAC3B,cAAc,EAAE,aAAa;IAC7B,cAAc,EAAE,YAAY;IAC5B,eAAe,EAAE,aAAa;IAC9B,WAAW,EAAE,YAAY;IACzB,YAAY,EAAE,aAAa;IAC3B,YAAY,EAAE,YAAY;IAC1B,aAAa,EAAE,aAAa;IAC5B,kBAAkB,EAAE,mBAAmB;IACvC,YAAY,EAAE,cAAc;IAC5B,aAAa,EAAE,cAAc;IAC7B,WAAW,EAAE,YAAY;IACzB,UAAU,EAAE,WAAW;IACvB,UAAU,EAAE,qBAAqB;IACjC,WAAW,EAAE,YAAY;IACzB,cAAc,EAAE,eAAe;IAC/B,aAAa,EAAE,cAAc;IAC7B,cAAc,EAAE,eAAe;CACjC,CAAC;AAEF;;;;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C,YAAY,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACpF,CAAC;QAED,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC;IAC9E,CAAC;CACH"}
|
|
@@ -9,6 +9,7 @@ export declare class CopilotMcpStrategy implements McpStrategy {
|
|
|
9
9
|
getConfigPath(): string;
|
|
10
10
|
isProjectRootConfig(): boolean;
|
|
11
11
|
getGlobalMcpConfigPath(): string | null;
|
|
12
|
+
getProjectImportPaths(projectRoot: string): readonly string[];
|
|
12
13
|
formatConfig(mcp: Record<string, McpServerConfig>): string;
|
|
13
14
|
parseGlobalMcpConfig(content: string): {
|
|
14
15
|
mcp: Record<string, McpServerConfig>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../../../src/editors/strategies/copilot/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../../../src/editors/strategies/copilot/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C;;;GAGG;AACH,qBAAa,kBAAmB,YAAW,WAAW;IACnD,WAAW,IAAI,OAAO;IAItB,aAAa,IAAI,MAAM;IAIvB,mBAAmB,IAAI,OAAO;IAI9B,sBAAsB,IAAI,MAAM,GAAG,IAAI;IAIvC,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE;IAO7D,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,MAAM;IAyC1D,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG;QACpC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;QACrC,QAAQ,EAAE,MAAM,EAAE,CAAC;KACrB;CA4BH"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { join } from 'pathe';
|
|
1
2
|
import { getTransport } from '../../../mcp/normalize.js';
|
|
2
3
|
/**
|
|
3
4
|
* GitHub Copilot MCP strategy. Copilot CLI uses `.mcp.json` at the project root and
|
|
@@ -16,6 +17,12 @@ export class CopilotMcpStrategy {
|
|
|
16
17
|
getGlobalMcpConfigPath() {
|
|
17
18
|
return '.copilot/mcp-config.json';
|
|
18
19
|
}
|
|
20
|
+
getProjectImportPaths(projectRoot) {
|
|
21
|
+
return [
|
|
22
|
+
join(projectRoot, this.getConfigPath()),
|
|
23
|
+
join(projectRoot, '.github', 'mcp.json'),
|
|
24
|
+
];
|
|
25
|
+
}
|
|
19
26
|
formatConfig(mcp) {
|
|
20
27
|
const mcpServers = {};
|
|
21
28
|
for (const [name, serverConfig] of Object.entries(mcp)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../../../src/editors/strategies/copilot/mcp.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../../../src/editors/strategies/copilot/mcp.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD;;;GAGG;AACH,MAAM,OAAO,kBAAkB;IAC5B,WAAW;QACR,OAAO,IAAI,CAAC;IACf,CAAC;IAED,aAAa;QACV,OAAO,WAAW,CAAC;IACtB,CAAC;IAED,mBAAmB;QAChB,OAAO,IAAI,CAAC;IACf,CAAC;IAED,sBAAsB;QACnB,OAAO,0BAA0B,CAAC;IACrC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,GAAG,EAAE,MAAM,CAAC,GAAG;SACjB,CAAC;QAEF,IAAI,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACtE,MAAM,CAAC,OAAO,GAAG,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACpD,CAAC;QAED,OAAO,MAAM,CAAC;IACjB,CAAC;IAED,OAAO,IAAI,CAAC;AACf,CAAC;AAED,SAAS,eAAe,CAAC,KAA8B;IACpD,OAAO,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAChG,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC7B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC/E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../../src/editors/strategies/copilot/prompts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../../src/editors/strategies/copilot/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAS5E;;;;GAIG;AACH,qBAAa,sBAAuB,YAAW,eAAe;IAC3D,WAAW,IAAI,OAAO;IAItB,aAAa,IAAI,MAAM;IAKvB,gBAAgB,IAAI,MAAM;IAI1B,oBAAoB,IAAI,MAAM,GAAG,IAAI;IAUrC,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM;IAUpC,kBAAkB,CACrB,KAAK,EAAE,MAAM,EAAE,EACf,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,GAC/C,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IAUnE;;;OAGG;IACH,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAItC;;;OAGG;IACH,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,uBAAuB;CAG/D"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import pMap from 'p-map';
|
|
2
|
-
import { extractFrontmatter, parseYamlValue, quoteYamlString } from '../../../frontmatter-utils.js';
|
|
3
1
|
import { getRuntimeAdapter } from '../../../runtime/index.js';
|
|
2
|
+
import { formatPromptFile, hasPromptFrontmatterFields, parsePromptFiles, parsePromptFrontmatter, } from '../shared/prompt-utils.js';
|
|
4
3
|
/**
|
|
5
4
|
* GitHub Copilot prompts strategy. Uses markdown files with YAML frontmatter in `.github/prompts/`.
|
|
6
5
|
* Files use `.prompt.md` extension. Supports `name`, `description`, and `argument-hint`
|
|
@@ -26,87 +25,36 @@ export class CopilotPromptsStrategy {
|
|
|
26
25
|
return paths[getRuntimeAdapter().os.platform()] ?? null;
|
|
27
26
|
}
|
|
28
27
|
formatPrompt(prompt) {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
const lines = [];
|
|
38
|
-
if (Object.keys(frontmatter).length > 0) {
|
|
39
|
-
lines.push('---');
|
|
40
|
-
for (const [key, value] of Object.entries(frontmatter)) {
|
|
41
|
-
lines.push(`${key}: ${quoteYamlString(value)}`);
|
|
42
|
-
}
|
|
43
|
-
lines.push('---', '');
|
|
44
|
-
}
|
|
45
|
-
lines.push(prompt.content);
|
|
46
|
-
return lines.join('\n');
|
|
28
|
+
return formatPromptFile(prompt, {
|
|
29
|
+
frontmatterFields: [
|
|
30
|
+
{ key: 'name', value: prompt.name },
|
|
31
|
+
{ key: 'description', value: prompt.description },
|
|
32
|
+
{ key: 'argument-hint', value: prompt.argumentHint },
|
|
33
|
+
],
|
|
34
|
+
});
|
|
47
35
|
}
|
|
48
36
|
async parseGlobalPrompts(files, readFile) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
name: file.replace(/\.md$/, ''),
|
|
57
|
-
content: content.trim(),
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
return null;
|
|
61
|
-
}
|
|
62
|
-
catch (err) {
|
|
63
|
-
return {
|
|
64
|
-
type: 'warning',
|
|
65
|
-
message: `Failed to read prompt ${file}: ${err.message}`,
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
}, { concurrency: 5 });
|
|
69
|
-
const prompts = {}, warnings = [];
|
|
70
|
-
for (const result of results) {
|
|
71
|
-
if (!result) {
|
|
72
|
-
continue;
|
|
73
|
-
}
|
|
74
|
-
if (result.type === 'warning') {
|
|
75
|
-
warnings.push(result.message);
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
prompts[result.name] = result.content;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
return { prompts, warnings };
|
|
37
|
+
return parsePromptFiles({
|
|
38
|
+
files,
|
|
39
|
+
readFile,
|
|
40
|
+
includeFile: (file) => file.endsWith('.md') && !file.endsWith('.instructions.md'),
|
|
41
|
+
stripSuffix: /\.md$/,
|
|
42
|
+
concurrency: 5,
|
|
43
|
+
});
|
|
82
44
|
}
|
|
83
45
|
/**
|
|
84
46
|
* Detect if content appears to be in GitHub Copilot's prompt frontmatter format.
|
|
85
47
|
* GitHub Copilot prompts use `mode:` or `tools:` fields.
|
|
86
48
|
*/
|
|
87
49
|
detectFormat(content) {
|
|
88
|
-
|
|
89
|
-
if (!hasFrontmatter) {
|
|
90
|
-
return false;
|
|
91
|
-
}
|
|
92
|
-
const lines = frontmatter.split('\n'), hasMode = parseYamlValue(lines, 'mode') !== undefined, hasTools = parseYamlValue(lines, 'tools') !== undefined;
|
|
93
|
-
return hasMode || hasTools;
|
|
50
|
+
return hasPromptFrontmatterFields(content, ['mode', 'tools']);
|
|
94
51
|
}
|
|
95
52
|
/**
|
|
96
53
|
* Parse GitHub Copilot-specific frontmatter into unified format.
|
|
97
54
|
* Extracts `description` and `argument-hint` fields.
|
|
98
55
|
*/
|
|
99
56
|
parseFrontmatter(rawContent) {
|
|
100
|
-
|
|
101
|
-
if (!hasFrontmatter) {
|
|
102
|
-
return { content: rawContent };
|
|
103
|
-
}
|
|
104
|
-
const lines = frontmatter.split('\n'), description = parseYamlValue(lines, 'description'), argumentHint = parseYamlValue(lines, 'argument-hint');
|
|
105
|
-
return {
|
|
106
|
-
content,
|
|
107
|
-
description,
|
|
108
|
-
argumentHint,
|
|
109
|
-
};
|
|
57
|
+
return parsePromptFrontmatter(rawContent, ['description', 'argument-hint']);
|
|
110
58
|
}
|
|
111
59
|
}
|
|
112
60
|
//# sourceMappingURL=prompts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../../../src/editors/strategies/copilot/prompts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../../../src/editors/strategies/copilot/prompts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EACJ,gBAAgB,EAChB,0BAA0B,EAC1B,gBAAgB,EAChB,sBAAsB,GACxB,MAAM,2BAA2B,CAAC;AAEnC;;;;GAIG;AACH,MAAM,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QAChC,OAAO,sBAAsB,CAAC,UAAU,EAAE,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC,CAAC;IAC/E,CAAC;CACH"}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import type { HooksConfig } from '@a1st/aix-schema';
|
|
2
|
-
import type { HooksStrategy } from '../types.js';
|
|
2
|
+
import type { HooksStrategy, UnsupportedHookField, ParsedHooksImportResult } from '../types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Cursor hooks strategy. Writes hooks to `hooks.json` in the `.cursor` directory.
|
|
5
|
-
* Translates generic ai.json event names to Cursor's camelCase format
|
|
5
|
+
* Translates generic ai.json event names to Cursor's camelCase format and wraps the
|
|
6
|
+
* output with `version: 1`.
|
|
6
7
|
*/
|
|
7
8
|
export declare class CursorHooksStrategy implements HooksStrategy {
|
|
8
9
|
isSupported(): boolean;
|
|
9
10
|
getConfigPath(): string;
|
|
10
11
|
getGlobalConfigPath(): string;
|
|
11
12
|
getUnsupportedEvents(hooks: HooksConfig): string[];
|
|
13
|
+
getUnsupportedFields(hooks: HooksConfig): UnsupportedHookField[];
|
|
14
|
+
getSupportedEvents(): readonly string[];
|
|
15
|
+
getNativeEventNames(): readonly string[];
|
|
16
|
+
parseImportedConfig(content: string): ParsedHooksImportResult;
|
|
12
17
|
formatConfig(hooks: HooksConfig): string;
|
|
13
18
|
}
|
|
14
19
|
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../src/editors/strategies/cursor/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../src/editors/strategies/cursor/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,WAAW,EAAe,MAAM,kBAAkB,CAAC;AAC7E,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AA6LhG;;;;GAIG;AACH,qBAAa,mBAAoB,YAAW,aAAa;IACtD,WAAW,IAAI,OAAO;IAItB,aAAa,IAAI,MAAM;IAIvB,mBAAmB,IAAI,MAAM;IAI7B,oBAAoB,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,EAAE;IAIlD,oBAAoB,CAAC,KAAK,EAAE,WAAW,GAAG,oBAAoB,EAAE;IAuBhE,kBAAkB,IAAI,SAAS,MAAM,EAAE;IAIvC,mBAAmB,IAAI,SAAS,MAAM,EAAE;IAIxC,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,uBAAuB;IAa7D,YAAY,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM;CAyB1C"}
|