feat: add Augment Code runtime support
- Add --augment flag to install for Augment only - Add Augment to --all and interactive menu (now 9 runtimes + All) - Create conversion functions for Augment skills and agents: - convertClaudeToAugmentMarkdown: path and brand replacement - convertClaudeCommandToAugmentSkill: skill format with adapter header - convertClaudeAgentToAugmentAgent: agent format conversion - copyCommandsAsAugmentSkills: copy commands as skills - Map tool names: Bash → launch-process, Edit → str-replace-editor, etc. - Add runtime label and uninstall support for Augment - Add tests: augment-conversion.test.cjs with 15 test cases - Update multi-runtime-select.test.cjs to include Augment Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -25,9 +25,10 @@ const runtimeMap = {
|
||||
'5': 'copilot',
|
||||
'6': 'antigravity',
|
||||
'7': 'cursor',
|
||||
'8': 'windsurf'
|
||||
'8': 'windsurf',
|
||||
'9': 'augment'
|
||||
};
|
||||
const allRuntimes = ['claude', 'opencode', 'gemini', 'codex', 'copilot', 'antigravity', 'cursor', 'windsurf'];
|
||||
const allRuntimes = ['claude', 'opencode', 'gemini', 'codex', 'copilot', 'antigravity', 'cursor', 'windsurf', 'augment'];
|
||||
|
||||
/**
|
||||
* Simulate the parsing logic from promptRuntime without requiring readline.
|
||||
@@ -36,7 +37,7 @@ const allRuntimes = ['claude', 'opencode', 'gemini', 'codex', 'copilot', 'antigr
|
||||
function parseRuntimeInput(input) {
|
||||
input = input.trim() || '1';
|
||||
|
||||
if (input === '9') {
|
||||
if (input === '10') {
|
||||
return allRuntimes;
|
||||
}
|
||||
|
||||
@@ -78,8 +79,12 @@ describe('multi-runtime selection parsing', () => {
|
||||
assert.deepStrictEqual(parseRuntimeInput('8'), ['windsurf']);
|
||||
});
|
||||
|
||||
test('choice 9 returns all runtimes', () => {
|
||||
assert.deepStrictEqual(parseRuntimeInput('9'), allRuntimes);
|
||||
test('single choice for augment', () => {
|
||||
assert.deepStrictEqual(parseRuntimeInput('9'), ['augment']);
|
||||
});
|
||||
|
||||
test('choice 10 returns all runtimes', () => {
|
||||
assert.deepStrictEqual(parseRuntimeInput('10'), allRuntimes);
|
||||
});
|
||||
|
||||
test('empty input defaults to claude', () => {
|
||||
@@ -88,13 +93,13 @@ describe('multi-runtime selection parsing', () => {
|
||||
});
|
||||
|
||||
test('invalid choices are ignored, falls back to claude if all invalid', () => {
|
||||
assert.deepStrictEqual(parseRuntimeInput('10'), ['claude']);
|
||||
assert.deepStrictEqual(parseRuntimeInput('11'), ['claude']);
|
||||
assert.deepStrictEqual(parseRuntimeInput('0'), ['claude']);
|
||||
assert.deepStrictEqual(parseRuntimeInput('abc'), ['claude']);
|
||||
});
|
||||
|
||||
test('invalid choices mixed with valid are filtered out', () => {
|
||||
assert.deepStrictEqual(parseRuntimeInput('1,10,4'), ['claude', 'codex']);
|
||||
assert.deepStrictEqual(parseRuntimeInput('1,11,4'), ['claude', 'codex']);
|
||||
assert.deepStrictEqual(parseRuntimeInput('abc 3 xyz'), ['gemini']);
|
||||
});
|
||||
|
||||
@@ -110,7 +115,7 @@ describe('multi-runtime selection parsing', () => {
|
||||
});
|
||||
|
||||
describe('install.js source contains multi-select support', () => {
|
||||
test('runtimeMap is defined with all 8 runtimes', () => {
|
||||
test('runtimeMap is defined with all 9 runtimes', () => {
|
||||
for (const [key, name] of Object.entries(runtimeMap)) {
|
||||
assert.ok(
|
||||
installSrc.includes(`'${key}': '${name}'`),
|
||||
|
||||
Reference in New Issue
Block a user