@a1st/aix-schema 0.0.12 → 0.1.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.
@@ -0,0 +1,471 @@
1
+ export const supportedEditorNames = [
2
+ 'cursor',
3
+ 'copilot',
4
+ 'claude-code',
5
+ 'windsurf',
6
+ 'zed',
7
+ 'codex',
8
+ 'gemini',
9
+ 'opencode',
10
+ ];
11
+ export const editorSupportStatuses = ['native', 'shim', 'unsupported'];
12
+ export const editorFeatureKinds = ['managed', 'compatibility'];
13
+ export const editorFeatureDefinitions = [
14
+ {
15
+ id: 'rules',
16
+ label: 'Rules',
17
+ kind: 'managed',
18
+ shortDescription: 'Instruction files that shape editor behavior.',
19
+ },
20
+ {
21
+ id: 'prompts',
22
+ label: 'Prompts',
23
+ kind: 'managed',
24
+ shortDescription: 'Slash-command or workflow prompts.',
25
+ },
26
+ {
27
+ id: 'mcp',
28
+ label: 'MCP',
29
+ kind: 'managed',
30
+ shortDescription: 'Model Context Protocol server configuration.',
31
+ },
32
+ {
33
+ id: 'skills',
34
+ label: 'Skills',
35
+ kind: 'managed',
36
+ shortDescription: 'Reusable agent workflows or skill bundles.',
37
+ },
38
+ {
39
+ id: 'hooks',
40
+ label: 'Hooks',
41
+ kind: 'managed',
42
+ shortDescription: 'Lifecycle hooks that run commands around editor events.',
43
+ },
44
+ {
45
+ id: 'agents-md',
46
+ label: 'AGENTS.md',
47
+ kind: 'compatibility',
48
+ shortDescription: 'Compatibility with AGENTS.md-style repository instructions.',
49
+ },
50
+ {
51
+ id: 'agents-dir',
52
+ label: '.agents/skills',
53
+ kind: 'compatibility',
54
+ shortDescription: 'Compatibility with the Agent Skills folder convention.',
55
+ },
56
+ ];
57
+ function nativeScope(path, note, details = {}) {
58
+ return {
59
+ status: 'native',
60
+ path,
61
+ note,
62
+ editorSupported: details.editorSupported ?? true,
63
+ editorPath: details.editorPath,
64
+ editorNote: details.editorNote,
65
+ };
66
+ }
67
+ function shimScope(path, note, details = {}) {
68
+ return {
69
+ status: 'shim',
70
+ path,
71
+ note,
72
+ editorSupported: details.editorSupported ?? true,
73
+ editorPath: details.editorPath,
74
+ editorNote: details.editorNote,
75
+ };
76
+ }
77
+ function unsupportedScope(note, details = {}) {
78
+ return {
79
+ status: 'unsupported',
80
+ note,
81
+ editorSupported: details.editorSupported ?? false,
82
+ editorPath: details.editorPath,
83
+ editorNote: details.editorNote,
84
+ };
85
+ }
86
+ function feature(optionsOrId, ...rest) {
87
+ const options = typeof optionsOrId === 'string'
88
+ ? {
89
+ id: optionsOrId,
90
+ summary: rest[0],
91
+ terminology: rest[1],
92
+ implementation: rest[2],
93
+ project: rest[3],
94
+ user: rest[4],
95
+ supportedValues: rest[5]?.supportedValues,
96
+ notes: rest[5]?.notes,
97
+ }
98
+ : optionsOrId;
99
+ return {
100
+ id: options.id,
101
+ summary: options.summary,
102
+ terminology: options.terminology,
103
+ implementation: options.implementation,
104
+ project: options.project,
105
+ user: options.user,
106
+ supportedValues: options.supportedValues,
107
+ notes: options.notes,
108
+ };
109
+ }
110
+ export const editorSupportProfiles = [
111
+ {
112
+ id: 'cursor',
113
+ name: 'Cursor',
114
+ summary: 'Native rules, commands, MCP, skills, and hooks with project-first config files.',
115
+ migrationPitch: 'Cursor keeps most aix features native, but rules stay project-scoped.',
116
+ notes: [
117
+ 'Cursor prompt installs use `.cursor/commands/`, not `.cursor/prompts/`.',
118
+ 'Cursor hooks map aix event names onto Cursor-specific camelCase hook names.',
119
+ ],
120
+ terminology: [
121
+ { featureId: 'prompts', aixTerm: 'Prompts', editorTerm: 'Commands' },
122
+ { featureId: 'rules', aixTerm: 'Rules', editorTerm: 'Rules' },
123
+ ],
124
+ features: {
125
+ rules: feature({
126
+ id: 'rules',
127
+ summary: 'native',
128
+ terminology: 'Rules',
129
+ implementation: 'Markdown-with-frontmatter rule files.',
130
+ project: nativeScope('.cursor/rules/*.mdc'),
131
+ user: unsupportedScope('aix does not currently write Cursor user rules.', {
132
+ editorSupported: true,
133
+ editorPath: 'Settings UI',
134
+ editorNote: 'Cursor stores user rules in the Settings UI rather than a writable file.',
135
+ }),
136
+ supportedValues: ['alwaysApply', 'globs', 'description'],
137
+ notes: ['Cursor also reads AGENTS.md as a compatibility surface.'],
138
+ }),
139
+ prompts: feature({
140
+ id: 'prompts',
141
+ summary: 'native',
142
+ terminology: 'Commands',
143
+ implementation: 'Plain markdown command files.',
144
+ project: nativeScope('.cursor/commands/*.md'),
145
+ user: nativeScope('~/.cursor/commands/*.md'),
146
+ }),
147
+ mcp: feature({
148
+ id: 'mcp',
149
+ summary: 'native',
150
+ terminology: 'MCP servers',
151
+ implementation: 'JSON `mcpServers` configuration.',
152
+ project: nativeScope('.cursor/mcp.json'),
153
+ user: nativeScope('~/.cursor/mcp.json'),
154
+ }),
155
+ skills: feature({
156
+ id: 'skills',
157
+ summary: 'native',
158
+ terminology: 'Skills',
159
+ implementation: 'Symlinked native skill directories backed by `.aix/skills/`.',
160
+ project: nativeScope('.cursor/skills/{name}/'),
161
+ user: nativeScope('~/.cursor/skills/{name}/'),
162
+ notes: ['Cursor also discovers `.agents/skills/` for compatibility.'],
163
+ }),
164
+ hooks: feature({
165
+ id: 'hooks',
166
+ summary: 'native',
167
+ terminology: 'Hooks',
168
+ implementation: 'JSON hook configuration with event-name translation.',
169
+ project: nativeScope('.cursor/hooks.json'),
170
+ user: nativeScope('~/.cursor/hooks.json'),
171
+ supportedValues: [
172
+ 'sessionStart',
173
+ 'sessionEnd',
174
+ 'preToolUse',
175
+ 'postToolUse',
176
+ 'beforeReadFile',
177
+ 'beforeShellExecution',
178
+ 'afterShellExecution',
179
+ 'beforeMCPExecution',
180
+ 'afterMCPExecution',
181
+ 'afterFileEdit',
182
+ 'beforeSubmitPrompt',
183
+ 'stop',
184
+ ],
185
+ }),
186
+ 'agents-md': feature({
187
+ id: 'agents-md',
188
+ summary: 'native',
189
+ terminology: 'AGENTS.md',
190
+ implementation: 'Compatibility with root-level AGENTS.md instructions.',
191
+ project: nativeScope('AGENTS.md'),
192
+ user: unsupportedScope('Cursor does not expose a separate home-scoped AGENTS.md path in aix.'),
193
+ }),
194
+ 'agents-dir': feature({
195
+ id: 'agents-dir',
196
+ summary: 'native',
197
+ terminology: '.agents/skills',
198
+ implementation: 'Compatibility with the shared Agent Skills folder convention.',
199
+ project: nativeScope('.agents/skills/{name}/'),
200
+ user: unsupportedScope('Cursor documents project-level compatibility more clearly than home scope.'),
201
+ }),
202
+ },
203
+ },
204
+ {
205
+ id: 'copilot',
206
+ name: 'GitHub Copilot',
207
+ summary: 'Native rules, prompt files, hooks, and MCP with repo-root MCP config.',
208
+ migrationPitch: 'Copilot keeps most features native, but its repo instruction surfaces differ from other editors.',
209
+ notes: [
210
+ 'aix writes project MCP config to `.mcp.json` and still imports `.github/mcp.json` as a fallback.',
211
+ 'Copilot prompt installs use explicit frontmatter so slash commands keep the configured prompt name.',
212
+ ],
213
+ terminology: [
214
+ { featureId: 'prompts', aixTerm: 'Prompts', editorTerm: 'Prompt files' },
215
+ { featureId: 'rules', aixTerm: 'Rules', editorTerm: 'Instructions' },
216
+ ],
217
+ features: {
218
+ rules: feature('rules', 'native', 'Instructions', 'Markdown instruction files in `.github/instructions/`.', nativeScope('.github/instructions/*.instructions.md'), unsupportedScope('aix does not yet write user-scope Copilot instructions as separate files.', {
219
+ editorSupported: true,
220
+ editorPath: '~/.copilot/instructions/*.instructions.md',
221
+ })),
222
+ prompts: feature('prompts', 'native', 'Prompt files', 'Markdown prompt files with YAML frontmatter.', nativeScope('.github/prompts/*.prompt.md'), nativeScope('VS Code user prompts directory'), {
223
+ supportedValues: ['name', 'description', 'argument-hint'],
224
+ }),
225
+ mcp: feature('mcp', 'native', 'MCP servers', 'JSON `mcpServers` configuration.', nativeScope('.mcp.json'), nativeScope('~/.copilot/mcp-config.json'), {
226
+ notes: ['Imports also fall back to `.github/mcp.json` when `.mcp.json` is absent.'],
227
+ }),
228
+ skills: feature('skills', 'native', 'Skills', 'Symlinked native skill directories backed by `.aix/skills/`.', nativeScope('.github/skills/{name}/'), nativeScope('~/.copilot/skills/{name}/'), {
229
+ notes: ['Copilot also discovers `.agents/skills/` as a compatibility surface.'],
230
+ }),
231
+ hooks: feature('hooks', 'native', 'Hooks', 'JSON hooks with matcher-based tool routing.', nativeScope('.github/hooks/hooks.json'), nativeScope('~/.copilot/hooks/hooks.json'), {
232
+ supportedValues: [
233
+ 'preToolUse',
234
+ 'postToolUse',
235
+ 'sessionStart',
236
+ 'sessionEnd',
237
+ 'userPromptSubmitted',
238
+ 'preCompact',
239
+ 'subagentStart',
240
+ 'subagentStop',
241
+ 'stop',
242
+ ],
243
+ }),
244
+ 'agents-md': feature('agents-md', 'native', 'AGENTS.md', 'Compatibility with repository AGENTS.md instructions.', nativeScope('AGENTS.md in the repository tree'), unsupportedScope('Copilot does not expose a dedicated home-scoped AGENTS.md target in aix.')),
245
+ 'agents-dir': feature('agents-dir', 'native', '.agents/skills', 'Compatibility with the shared Agent Skills folder convention.', nativeScope('.agents/skills/{name}/'), nativeScope('~/.agents/skills/{name}/')),
246
+ },
247
+ },
248
+ {
249
+ id: 'claude-code',
250
+ name: 'Claude Code',
251
+ summary: 'Native rules, prompts, skills, MCP, and the broadest hook surface in the matrix.',
252
+ migrationPitch: 'Claude Code is the easiest target when you need native hooks and native prompts together.',
253
+ notes: [
254
+ 'Claude Code supports more lifecycle hook events than any other supported editor.',
255
+ 'Its native repo instruction file is `CLAUDE.md`, not `AGENTS.md`.',
256
+ ],
257
+ terminology: [
258
+ { featureId: 'prompts', aixTerm: 'Prompts', editorTerm: 'Commands' },
259
+ { featureId: 'rules', aixTerm: 'Rules', editorTerm: 'Rules' },
260
+ ],
261
+ features: {
262
+ rules: feature('rules', 'native', 'Rules', 'Markdown rule files.', nativeScope('.claude/rules/*.md'), nativeScope('~/.claude/CLAUDE.md'), {
263
+ notes: ['User scope is a single global memory file instead of per-rule files.'],
264
+ }),
265
+ prompts: feature('prompts', 'native', 'Commands', 'Markdown command files with YAML frontmatter.', nativeScope('.claude/commands/*.md'), nativeScope('~/.claude/commands/*.md'), {
266
+ supportedValues: ['description', 'argument-hint'],
267
+ }),
268
+ mcp: feature('mcp', 'native', 'MCP servers', 'JSON `mcpServers` configuration.', nativeScope('.mcp.json'), nativeScope('Claude desktop config file')),
269
+ skills: feature('skills', 'native', 'Skills', 'Symlinked native skill directories backed by `.aix/skills/`.', nativeScope('.claude/skills/{name}/'), nativeScope('~/.claude/skills/{name}/')),
270
+ hooks: feature('hooks', 'native', 'Hooks', 'JSON hooks with PascalCase event names and matcher routing.', nativeScope('.claude/settings.json'), nativeScope('~/.claude/settings.json'), {
271
+ supportedValues: [
272
+ 'SessionStart',
273
+ 'SessionEnd',
274
+ 'PreToolUse',
275
+ 'PostToolUse',
276
+ 'UserPromptSubmit',
277
+ 'PreCompact',
278
+ 'PostCompact',
279
+ 'SubagentStart',
280
+ 'SubagentStop',
281
+ 'TaskCreated',
282
+ 'TaskCompleted',
283
+ 'WorktreeCreate',
284
+ 'Stop',
285
+ ],
286
+ }),
287
+ 'agents-md': feature('agents-md', 'unsupported', 'CLAUDE.md', 'Claude Code uses `CLAUDE.md` instead of AGENTS.md.', unsupportedScope('Use `CLAUDE.md` for repository instructions.'), unsupportedScope('Use `~/.claude/CLAUDE.md` for home-scoped instructions.')),
288
+ 'agents-dir': feature('agents-dir', 'unsupported', '.claude/skills', 'Claude Code uses native `.claude/skills/` directories instead of `.agents/skills/`.', unsupportedScope('Use `.claude/skills/` instead of `.agents/skills/`.'), unsupportedScope('Use `~/.claude/skills/` instead of `.agents/skills/`.')),
289
+ },
290
+ },
291
+ {
292
+ id: 'windsurf',
293
+ name: 'Windsurf',
294
+ summary: 'Native rules, workflows, skills, and hooks, but MCP remains global-only.',
295
+ migrationPitch: 'Windsurf is strongest when project rules matter more than project-scoped MCP.',
296
+ notes: [
297
+ 'Windsurf MCP installs are tracked as global state because the editor only supports global MCP today.',
298
+ 'Its prompt surface is called workflows, not commands.',
299
+ ],
300
+ terminology: [
301
+ { featureId: 'prompts', aixTerm: 'Prompts', editorTerm: 'Workflows' },
302
+ { featureId: 'rules', aixTerm: 'Rules', editorTerm: 'Rules' },
303
+ ],
304
+ features: {
305
+ rules: feature('rules', 'native', 'Rules', 'Markdown rule files with Windsurf trigger frontmatter.', nativeScope('.windsurf/rules/*.md'), nativeScope('~/.codeium/windsurf/memories/global_rules.md'), {
306
+ supportedValues: ['always_on', 'model_decision', 'glob', 'manual'],
307
+ }),
308
+ prompts: feature('prompts', 'native', 'Workflows', 'Markdown workflow files with YAML frontmatter.', nativeScope('.windsurf/workflows/*.md'), nativeScope('~/.codeium/windsurf/global_workflows/*.md'), {
309
+ supportedValues: ['description'],
310
+ }),
311
+ mcp: feature('mcp', 'native', 'MCP servers', 'Global-only JSON MCP configuration.', unsupportedScope('Windsurf does not have a project-scoped MCP config file in aix.'), nativeScope('~/.codeium/windsurf/mcp_config.json'), {
312
+ notes: ['Project-scoped syncs report MCP as a skipped global-only write.'],
313
+ }),
314
+ skills: feature('skills', 'native', 'Skills', 'Symlinked native skill directories backed by `.aix/skills/`.', nativeScope('.windsurf/skills/{name}/'), nativeScope('~/.windsurf/skills/{name}/'), {
315
+ notes: ['Windsurf also discovers `.agents/skills/` for compatibility.'],
316
+ }),
317
+ hooks: feature('hooks', 'native', 'Hooks', 'JSON hook configuration using snake_case Windsurf event names.', nativeScope('.windsurf/hooks.json'), nativeScope('~/.windsurf/hooks.json'), {
318
+ supportedValues: [
319
+ 'pre_read_code',
320
+ 'post_read_code',
321
+ 'pre_write_code',
322
+ 'post_write_code',
323
+ 'pre_run_command',
324
+ 'post_run_command',
325
+ 'pre_mcp_tool_use',
326
+ 'post_mcp_tool_use',
327
+ 'pre_user_prompt',
328
+ 'post_cascade_response',
329
+ 'post_setup_worktree',
330
+ ],
331
+ }),
332
+ 'agents-md': feature('agents-md', 'native', 'AGENTS.md', 'Compatibility with AGENTS.md and agents.md repository files.', nativeScope('AGENTS.md or agents.md in the workspace'), unsupportedScope('Windsurf documentation focuses on workspace files, not a home-scoped AGENTS.md.')),
333
+ 'agents-dir': feature('agents-dir', 'native', '.agents/skills', 'Compatibility with the shared Agent Skills folder convention.', nativeScope('.agents/skills/{name}/'), nativeScope('~/.agents/skills/{name}/')),
334
+ },
335
+ },
336
+ {
337
+ id: 'zed',
338
+ name: 'Zed',
339
+ summary: 'Native rules and MCP, no native prompts, and skills are exposed through pointer rules.',
340
+ migrationPitch: 'Zed is a good target for rules and MCP, but prompts and native skills need translation.',
341
+ notes: [
342
+ 'Zed reads a single `.rules` file, so aix flattens all rules into one file.',
343
+ 'Zed skills are emitted as pointer rules because the editor has no native skill directory.',
344
+ ],
345
+ terminology: [
346
+ { featureId: 'mcp', aixTerm: 'MCP', editorTerm: 'Context servers' },
347
+ { featureId: 'skills', aixTerm: 'Skills', editorTerm: 'Pointer rules' },
348
+ ],
349
+ features: {
350
+ rules: feature('rules', 'native', 'Rules', 'A single concatenated `.rules` file.', nativeScope('.rules'), unsupportedScope('aix does not have a writable user-scope `.rules` target for Zed.'), {
351
+ notes: ['Zed also auto-detects AGENTS.md, CLAUDE.md, and other compatibility files.'],
352
+ }),
353
+ prompts: feature('prompts', 'unsupported', 'Rules Library prompts', 'Zed does not expose file-based prompt installs in aix.', unsupportedScope('Zed prompt installs are not supported.'), unsupportedScope('Zed prompt installs are not supported.'), {
354
+ notes: ['Zed does support MCP server-side prompts, but not file-based user prompts.'],
355
+ }),
356
+ mcp: feature('mcp', 'native', 'Context servers', 'JSON `context_servers` configuration.', nativeScope('.zed/settings.json'), nativeScope('~/.config/zed/settings.json')),
357
+ skills: feature('skills', 'shim', 'Pointer rules', 'Skill directories plus generated rules that point the agent at `.aix/skills/`.', shimScope('.rules', 'aix appends pointer rules that reference `.aix/skills/{name}/`.'), unsupportedScope('User-scoped Zed skills require a writable user rules file, which aix does not have.')),
358
+ hooks: feature('hooks', 'unsupported', 'Hooks', 'Hooks are not supported.', unsupportedScope('Zed does not support lifecycle hooks in aix.'), unsupportedScope('Zed does not support lifecycle hooks in aix.')),
359
+ 'agents-md': feature('agents-md', 'native', 'AGENTS.md', 'Compatibility with AGENTS.md repository instructions.', nativeScope('AGENTS.md'), unsupportedScope('Zed compatibility is documented for workspace files, not a home-scoped AGENTS.md.')),
360
+ 'agents-dir': feature('agents-dir', 'unsupported', '.agents/skills', 'Zed does not document native `.agents/skills/` discovery.', unsupportedScope('aix uses pointer rules instead of `.agents/skills/`.'), unsupportedScope('aix uses pointer rules instead of `.agents/skills/`.')),
361
+ },
362
+ },
363
+ {
364
+ id: 'codex',
365
+ name: 'Codex',
366
+ summary: 'Rules and skills are native, prompts become skills, and aix still treats MCP as global-only.',
367
+ migrationPitch: 'Codex is strongest when AGENTS.md and Agent Skills are the destination format you want.',
368
+ notes: [
369
+ 'Codex prompts are converted into skills because aix no longer writes native prompt files for Codex.',
370
+ 'Codex upstream supports project-scoped MCP config, but aix still manages the global file today.',
371
+ ],
372
+ terminology: [
373
+ { featureId: 'rules', aixTerm: 'Rules', editorTerm: 'AGENTS.md' },
374
+ { featureId: 'prompts', aixTerm: 'Prompts', editorTerm: 'Skills' },
375
+ ],
376
+ features: {
377
+ rules: feature('rules', 'native', 'AGENTS.md', 'Section-managed markdown in project and directory-specific AGENTS.md files.', nativeScope('AGENTS.md at the project root and selected subdirectories'), nativeScope('~/.codex/AGENTS.md'), {
378
+ notes: ['Activation modes collapse into plain markdown headings and directory placement.'],
379
+ }),
380
+ prompts: feature('prompts', 'shim', 'Skills', 'Prompt-to-skill conversion during install.', shimScope('.agents/skills/prompt-{name}/', 'Prompts are installed as instruction-only Agent Skills.'), shimScope('~/.codex/skills/prompt-{name}/', 'User-scoped prompts are also converted to skills.')),
381
+ mcp: feature('mcp', 'native', 'MCP servers', 'TOML MCP configuration currently managed as global-only by aix.', unsupportedScope('aix does not yet write Codex project MCP config.'), nativeScope('~/.codex/config.toml'), {
382
+ notes: ['Upstream Codex also supports `.codex/config.toml` in trusted projects.'],
383
+ }),
384
+ skills: feature('skills', 'native', 'Skills', 'Symlinked native skill directories backed by `.aix/skills/`.', nativeScope('.agents/skills/{name}/'), nativeScope('~/.codex/skills/{name}/')),
385
+ hooks: feature('hooks', 'unsupported', 'Hooks', 'Hooks are not supported.', unsupportedScope('Codex does not support lifecycle hooks in aix.'), unsupportedScope('Codex does not support lifecycle hooks in aix.')),
386
+ 'agents-md': feature('agents-md', 'native', 'AGENTS.md', 'Codex natively layers AGENTS.md files through the directory tree.', nativeScope('AGENTS.md in the repository tree'), nativeScope('~/.codex/AGENTS.md')),
387
+ 'agents-dir': feature('agents-dir', 'native', '.agents/skills', 'Codex natively discovers Agent Skills directories.', nativeScope('.agents/skills/{name}/'), nativeScope('~/.agents/skills/{name}/')),
388
+ },
389
+ },
390
+ {
391
+ id: 'gemini',
392
+ name: 'Gemini',
393
+ summary: 'Native GEMINI.md rules, TOML command prompts, MCP, and skills, but no hooks.',
394
+ migrationPitch: 'Gemini is a strong target for native prompts and MCP when hooks are not required.',
395
+ notes: [
396
+ 'Gemini prompts are TOML files, not markdown command files.',
397
+ 'Like Codex, Gemini collapses rule activation metadata into managed markdown content.',
398
+ ],
399
+ terminology: [
400
+ { featureId: 'rules', aixTerm: 'Rules', editorTerm: 'GEMINI.md' },
401
+ { featureId: 'prompts', aixTerm: 'Prompts', editorTerm: 'Commands' },
402
+ ],
403
+ features: {
404
+ rules: feature('rules', 'native', 'GEMINI.md', 'Section-managed markdown in `GEMINI.md`.', nativeScope('GEMINI.md'), nativeScope('~/.gemini/GEMINI.md'), {
405
+ notes: ['Activation modes are flattened into the managed markdown section.'],
406
+ }),
407
+ prompts: feature('prompts', 'native', 'Commands', 'TOML command files with `description` and `prompt` fields.', nativeScope('.gemini/commands/*.toml'), nativeScope('~/.gemini/commands/*.toml')),
408
+ mcp: feature('mcp', 'native', 'MCP servers', 'JSON settings file with editor-native MCP config.', nativeScope('.gemini/settings.json'), nativeScope('~/.gemini/settings.json')),
409
+ skills: feature('skills', 'native', 'Skills', 'Symlinked native skill directories backed by `.aix/skills/`.', nativeScope('.gemini/skills/{name}/'), nativeScope('~/.gemini/skills/{name}/'), {
410
+ notes: ['Gemini also supports `.agents/skills/` as an alias and gives it precedence.'],
411
+ }),
412
+ hooks: feature('hooks', 'unsupported', 'Hooks', 'Hooks are not supported.', unsupportedScope('Gemini does not support lifecycle hooks in aix.'), unsupportedScope('Gemini does not support lifecycle hooks in aix.')),
413
+ 'agents-md': feature('agents-md', 'native', 'AGENTS.md', 'Compatibility with AGENTS.md through configurable context filename support.', nativeScope('AGENTS.md when `context.fileName` is configured'), nativeScope('Home-scoped AGENTS.md when `context.fileName` is configured')),
414
+ 'agents-dir': feature('agents-dir', 'native', '.agents/skills', 'Compatibility with the shared Agent Skills folder convention.', nativeScope('.agents/skills/{name}/'), nativeScope('~/.agents/skills/{name}/')),
415
+ },
416
+ },
417
+ {
418
+ id: 'opencode',
419
+ name: 'OpenCode',
420
+ summary: 'Native AGENTS.md rules, markdown commands, MCP, and skills with user-scope support.',
421
+ migrationPitch: 'OpenCode stays close to Claude-style commands and skills while keeping AGENTS.md as the rule surface.',
422
+ notes: [
423
+ 'OpenCode uses `opencode.json` with a top-level `mcp` object instead of `mcpServers`.',
424
+ 'Rules are written with section-managed markdown so user-owned AGENTS.md content is preserved.',
425
+ ],
426
+ terminology: [
427
+ { featureId: 'rules', aixTerm: 'Rules', editorTerm: 'AGENTS.md' },
428
+ { featureId: 'prompts', aixTerm: 'Prompts', editorTerm: 'Commands' },
429
+ ],
430
+ features: {
431
+ rules: feature('rules', 'native', 'AGENTS.md', 'Section-managed markdown in AGENTS.md.', nativeScope('AGENTS.md'), nativeScope('~/.config/opencode/AGENTS.md')),
432
+ prompts: feature('prompts', 'native', 'Commands', 'Markdown command files with optional YAML frontmatter.', nativeScope('.opencode/commands/*.md'), nativeScope('~/.config/opencode/commands/*.md'), {
433
+ supportedValues: ['description', 'argument-hint'],
434
+ }),
435
+ mcp: feature('mcp', 'native', 'MCP servers', 'JSON config with a top-level `mcp` object.', nativeScope('opencode.json'), nativeScope('~/.config/opencode/opencode.json')),
436
+ skills: feature('skills', 'native', 'Skills', 'Symlinked native skill directories backed by `.aix/skills/`.', nativeScope('.opencode/skills/{name}/'), nativeScope('~/.config/opencode/skills/{name}/'), {
437
+ notes: ['OpenCode also discovers `.agents/skills/` as a compatibility surface.'],
438
+ }),
439
+ hooks: feature('hooks', 'unsupported', 'Hooks', 'Hooks are not supported.', unsupportedScope('OpenCode does not support lifecycle hooks in aix.'), unsupportedScope('OpenCode does not support lifecycle hooks in aix.')),
440
+ 'agents-md': feature('agents-md', 'native', 'AGENTS.md', 'OpenCode natively uses AGENTS.md for project and user instructions.', nativeScope('AGENTS.md'), nativeScope('~/.config/opencode/AGENTS.md')),
441
+ 'agents-dir': feature('agents-dir', 'native', '.agents/skills', 'Compatibility with the shared Agent Skills folder convention.', nativeScope('.agents/skills/{name}/'), nativeScope('Compatible home-scoped skill discovery')),
442
+ },
443
+ },
444
+ ];
445
+ export const editorSupportProfileMap = Object.freeze(editorSupportProfiles.reduce((memo, profile) => {
446
+ memo[profile.id] = profile;
447
+ return memo;
448
+ }, {}));
449
+ export const editorFeatureDefinitionMap = Object.freeze(editorFeatureDefinitions.reduce((memo, feature) => {
450
+ memo[feature.id] = feature;
451
+ return memo;
452
+ }, {}));
453
+ export function getEditorSupportProfile(editor) {
454
+ return editorSupportProfileMap[editor];
455
+ }
456
+ export function getEditorFeatureDefinition(featureId) {
457
+ return editorFeatureDefinitionMap[featureId];
458
+ }
459
+ export function listOrderedEditorPairs() {
460
+ const pairs = [];
461
+ for (const from of supportedEditorNames) {
462
+ for (const to of supportedEditorNames) {
463
+ if (from === to) {
464
+ continue;
465
+ }
466
+ pairs.push({ from, to });
467
+ }
468
+ }
469
+ return pairs;
470
+ }
471
+ //# sourceMappingURL=editor-support.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor-support.js","sourceRoot":"","sources":["../src/editor-support.ts"],"names":[],"mappings":"AAAA,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