supipowers 0.1.3 → 0.1.4
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/bin/install.mjs +18 -9
- package/package.json +1 -1
package/bin/install.mjs
CHANGED
|
@@ -91,9 +91,12 @@ async function main() {
|
|
|
91
91
|
|
|
92
92
|
// ── Step 1: OMP check ──────────────────────────────────────
|
|
93
93
|
|
|
94
|
+
const ompSpinner = spinner();
|
|
95
|
+
ompSpinner.start("Looking for OMP...");
|
|
94
96
|
let omp = findOmpBinary();
|
|
95
97
|
|
|
96
98
|
if (!omp) {
|
|
99
|
+
ompSpinner.stop("OMP not found");
|
|
97
100
|
note(
|
|
98
101
|
"OMP (oh-my-pi) is an AI coding agent that supipowers extends.\n" +
|
|
99
102
|
"It adds sub-agents, LSP integration, and plugin support to pi.\n" +
|
|
@@ -125,7 +128,7 @@ async function main() {
|
|
|
125
128
|
} else {
|
|
126
129
|
const version = run(omp, ["--version"]);
|
|
127
130
|
const ver = version.stdout?.trim() || "unknown";
|
|
128
|
-
|
|
131
|
+
ompSpinner.stop(`OMP ${ver} detected`);
|
|
129
132
|
}
|
|
130
133
|
|
|
131
134
|
// ── Step 2: Install supipowers ─────────────────────────────
|
|
@@ -154,16 +157,22 @@ async function main() {
|
|
|
154
157
|
|
|
155
158
|
// ── Step 3: LSP setup (optional) ──────────────────────────
|
|
156
159
|
|
|
160
|
+
const lspSpinner = spinner();
|
|
161
|
+
lspSpinner.start("Checking installed LSP servers...");
|
|
162
|
+
const lspOptions = LSP_SERVERS.map((srv) => {
|
|
163
|
+
const installed = isInstalled(srv.server);
|
|
164
|
+
return {
|
|
165
|
+
value: srv,
|
|
166
|
+
label: srv.language,
|
|
167
|
+
hint: installed ? `${srv.server} (installed)` : srv.server,
|
|
168
|
+
};
|
|
169
|
+
});
|
|
170
|
+
const installedCount = lspOptions.filter((o) => o.hint.includes("(installed)")).length;
|
|
171
|
+
lspSpinner.stop(`Found ${installedCount}/${LSP_SERVERS.length} LSP servers installed`);
|
|
172
|
+
|
|
157
173
|
const selected = await multiselect({
|
|
158
174
|
message: "Install LSP servers for better code intelligence?",
|
|
159
|
-
options:
|
|
160
|
-
const installed = isInstalled(srv.server);
|
|
161
|
-
return {
|
|
162
|
-
value: srv,
|
|
163
|
-
label: srv.language,
|
|
164
|
-
hint: installed ? `${srv.server} (installed)` : srv.server,
|
|
165
|
-
};
|
|
166
|
-
}),
|
|
175
|
+
options: lspOptions,
|
|
167
176
|
required: false,
|
|
168
177
|
});
|
|
169
178
|
|