switch default to per-project skills to align with other tools
This commit is contained in:
parent
18a4a489c8
commit
62e0b0ba52
|
|
@ -25,28 +25,28 @@ class CodexSetup extends BaseIdeSetup {
|
||||||
* @returns {Object} Collected configuration
|
* @returns {Object} Collected configuration
|
||||||
*/
|
*/
|
||||||
async collectConfiguration(options = {}) {
|
async collectConfiguration(options = {}) {
|
||||||
// Non-interactive mode: use default (global)
|
// Non-interactive mode: use default (project)
|
||||||
if (options.skipPrompts) {
|
if (options.skipPrompts) {
|
||||||
return { installLocation: 'global' };
|
return { installLocation: 'project' };
|
||||||
}
|
}
|
||||||
|
|
||||||
let confirmed = false;
|
let confirmed = false;
|
||||||
let installLocation = 'global';
|
let installLocation = 'project';
|
||||||
|
|
||||||
while (!confirmed) {
|
while (!confirmed) {
|
||||||
installLocation = await prompts.select({
|
installLocation = await prompts.select({
|
||||||
message: 'Where would you like to install Codex CLI skills?',
|
message: 'Where would you like to install Codex CLI skills?',
|
||||||
choices: [
|
choices: [
|
||||||
{
|
{
|
||||||
name: 'Global - Simple for single project ' + '(~/.agents/skills, but references THIS project only)',
|
name: 'Project-specific - Recommended (<project>/.agents/skills)',
|
||||||
value: 'global',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Project-specific - Recommended for real work (<project>/.agents/skills)',
|
|
||||||
value: 'project',
|
value: 'project',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'Global - (~/.agents/skills)',
|
||||||
|
value: 'global',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
default: 'global',
|
default: 'project',
|
||||||
});
|
});
|
||||||
|
|
||||||
// Show brief confirmation hint (detailed instructions available via verbose)
|
// Show brief confirmation hint (detailed instructions available via verbose)
|
||||||
|
|
@ -82,8 +82,8 @@ class CodexSetup extends BaseIdeSetup {
|
||||||
// Always use CLI mode
|
// Always use CLI mode
|
||||||
const mode = 'cli';
|
const mode = 'cli';
|
||||||
|
|
||||||
// Get installation location from pre-collected config or default to global
|
// Get installation location from pre-collected config or default to project
|
||||||
const installLocation = options.preCollectedConfig?.installLocation || 'global';
|
const installLocation = options.preCollectedConfig?.installLocation || 'project';
|
||||||
|
|
||||||
const { artifacts, counts } = await this.collectClaudeArtifacts(projectDir, bmadDir, options);
|
const { artifacts, counts } = await this.collectClaudeArtifacts(projectDir, bmadDir, options);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ platforms:
|
||||||
name: "Codex"
|
name: "Codex"
|
||||||
preferred: false
|
preferred: false
|
||||||
category: cli
|
category: cli
|
||||||
description: "OpenAI Codex skills (agentskills.io format)"
|
description: "OpenAI Codex integration"
|
||||||
# No installer config - uses custom codex.js
|
# No installer config - uses custom codex.js
|
||||||
|
|
||||||
crush:
|
crush:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue