ascendant-skills 2.1.2 → 2.1.3

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.
Files changed (2) hide show
  1. package/bin/cli.mjs +25 -24
  2. package/package.json +1 -1
package/bin/cli.mjs CHANGED
@@ -97,35 +97,36 @@ const choose = ({ providersFlag, scope, yes, detected }) =>
97
97
  return { providers, scope: scope ?? "global" };
98
98
  }
99
99
 
100
- let providers;
101
- if (providersFlag === undefined) {
102
- const names = detected.map((id) => PROVIDERS.find((p) => p.id === id).name);
103
- yield* Console.log(
104
- detected.length > 0 ? `Detected: ${names.join(", ")}` : "No coding tools detected.",
105
- );
106
- const raw = yield* Prompt.run(
107
- Prompt.String({
108
- message: `Install for which tools? [${detected.length > 0 ? detected.join(",") : "e.g. claude,cursor"}]`,
109
- default: detected.join(","),
110
- }),
111
- );
112
- providers = raw.trim() === "" ? [] : yield* parseProvidersOrFail(raw);
113
- } else {
114
- providers = yield* parseProvidersOrFail(providersFlag);
115
- }
116
-
117
- let chosenScope = scope;
118
- if (chosenScope === undefined) {
119
- chosenScope = yield* Prompt.run(
100
+ // Every tool is listed; the detected ones start checked.
101
+ const providers =
102
+ providersFlag === undefined
103
+ ? yield* Prompt.run(
104
+ Prompt.MultiSelect({
105
+ message: "Install for which tools?",
106
+ choices: PROVIDERS.map((p) => ({
107
+ title: p.name,
108
+ value: p.id,
109
+ description: detected.includes(p.id) ? "detected" : undefined,
110
+ selected: detected.includes(p.id),
111
+ })),
112
+ min: 1,
113
+ // Room for every tool plus the select-all and inverse rows.
114
+ maxPerPage: PROVIDERS.length + 2,
115
+ }),
116
+ )
117
+ : yield* parseProvidersOrFail(providersFlag);
118
+
119
+ const chosenScope =
120
+ scope ??
121
+ (yield* Prompt.run(
120
122
  Prompt.Select({
121
123
  message: "Install for this project or globally?",
122
124
  choices: [
123
- { title: "Globally", value: "global" },
124
- { title: "This project", value: "project" },
125
+ { title: "Globally", value: "global", description: "For every project" },
126
+ { title: "This project", value: "project", description: "Only the current directory" },
125
127
  ],
126
128
  }),
127
- );
128
- }
129
+ ));
129
130
 
130
131
  return { providers, scope: chosenScope };
131
132
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ascendant-skills",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "One command to install the Ascendant Vedic astrology skill and plugins into Claude Code, Codex, OpenCode, Cursor, Gemini CLI and more.",
5
5
  "keywords": [
6
6
  "agent-skills",