@minhpnq1807/contextos 0.5.16 → 0.5.17
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/CHANGELOG.md +4 -0
- package/bin/ctx.js +6 -2
- package/package.json +1 -1
- package/plugins/ctx/lib/setup-wizard.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.17
|
|
4
|
+
|
|
5
|
+
- Makes `ctx setup --agents ...` honor the provided agent list without prompting for the same agents again.
|
|
6
|
+
|
|
3
7
|
## 0.5.16
|
|
4
8
|
|
|
5
9
|
- Prints a "Rebuilding skill embeddings... started" status before indexing large skillshare catalogs so `ctx sync --skills` no longer looks stuck after skillshare finishes.
|
package/bin/ctx.js
CHANGED
|
@@ -482,8 +482,12 @@ async function setup({ args = [], cwd = process.cwd() } = {}) {
|
|
|
482
482
|
console.log("Setup cancelled.");
|
|
483
483
|
return;
|
|
484
484
|
}
|
|
485
|
-
|
|
486
|
-
|
|
485
|
+
if (!options.agentsProvided) {
|
|
486
|
+
const agents = await askSetupQuestion(rl, "Install for agents? comma-separated", options.agents.join(","));
|
|
487
|
+
options.agents = parseAgentList(agents);
|
|
488
|
+
} else {
|
|
489
|
+
console.log(`◇ Install for agents:\n│ ${options.agents.join(", ")}`);
|
|
490
|
+
}
|
|
487
491
|
options.inject = await askSetupYesNo(rl, "Enable prompt context injection?", options.inject);
|
|
488
492
|
options.syncRules = await askSetupYesNo(rl, "Sync project rules and MCP servers through Ruler?", options.syncRules);
|
|
489
493
|
options.syncSkills = await askSetupYesNo(rl, "Sync skills through skillshare?", options.syncSkills);
|
package/package.json
CHANGED
|
@@ -2,12 +2,14 @@ const DEFAULT_AGENTS = ["codex", "claude", "agy"];
|
|
|
2
2
|
|
|
3
3
|
export function parseSetupArgs(args = []) {
|
|
4
4
|
const agentsFlag = args.indexOf("--agents");
|
|
5
|
+
const agentsProvided = agentsFlag >= 0;
|
|
5
6
|
const agents = agentsFlag >= 0
|
|
6
7
|
? parseAgentList(args[agentsFlag + 1])
|
|
7
8
|
: DEFAULT_AGENTS;
|
|
8
9
|
|
|
9
10
|
return {
|
|
10
11
|
agents,
|
|
12
|
+
agentsProvided,
|
|
11
13
|
yes: args.includes("--yes") || args.includes("-y"),
|
|
12
14
|
quiet: args.includes("--quiet"),
|
|
13
15
|
inject: !args.includes("--quiet") && !args.includes("--no-inject"),
|