@baryonlabs/cli 0.3.4 → 0.3.6
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/package.json +1 -1
- package/src/commands.js +23 -8
- package/src/constants.js +6 -3
package/package.json
CHANGED
package/src/commands.js
CHANGED
|
@@ -246,17 +246,32 @@ export function keys() {
|
|
|
246
246
|
|
|
247
247
|
export function update() {
|
|
248
248
|
return new Promise((resolve) => {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
);
|
|
255
|
-
|
|
256
|
-
|
|
249
|
+
// 1/2 — CLI + pi core via npm (gets the latest pi binary, e.g. 0.80.x).
|
|
250
|
+
log(` ${sym.info} 1/2 CLI·코어 업데이트: ${c.lime(`npm install -g @baryonlabs/cli ${PI_PACKAGE}`)}\n`);
|
|
251
|
+
const npm = spawn("npm", ["install", "-g", "@baryonlabs/cli", PI_PACKAGE], {
|
|
252
|
+
stdio: "inherit",
|
|
253
|
+
shell: process.platform === "win32",
|
|
254
|
+
});
|
|
255
|
+
|
|
256
|
+
npm.on("error", () => {
|
|
257
257
|
err("npm 실행 실패 — 수동으로 위 명령을 실행하세요.");
|
|
258
258
|
resolve(1);
|
|
259
259
|
});
|
|
260
|
+
|
|
261
|
+
npm.on("exit", (code) => {
|
|
262
|
+
// 2/2 — pi's own packages (pi-mcp-adapter, pi-dynamic-workflows, …) are
|
|
263
|
+
// managed by `pi update`, not npm. Run it so those notices clear too.
|
|
264
|
+
const entry = resolvePiEntry();
|
|
265
|
+
if (!entry) return resolve(code ?? 0);
|
|
266
|
+
|
|
267
|
+
log(`\n ${sym.info} 2/2 pi 패키지 업데이트: ${c.lime("pi update")}\n`);
|
|
268
|
+
const pu = spawn(process.execPath, [entry, "update"], { stdio: "inherit" });
|
|
269
|
+
pu.on("error", () => resolve(code ?? 0));
|
|
270
|
+
pu.on("exit", () => {
|
|
271
|
+
log(`\n ${sym.ok} 업데이트 완료. ${c.dim("baryon doctor 로 점검 가능")}`);
|
|
272
|
+
resolve(code ?? 0);
|
|
273
|
+
});
|
|
274
|
+
});
|
|
260
275
|
});
|
|
261
276
|
}
|
|
262
277
|
|
package/src/constants.js
CHANGED
|
@@ -92,8 +92,7 @@ export const DEFAULT_MODELS = [
|
|
|
92
92
|
*/
|
|
93
93
|
export const DEFAULT_EXTENSIONS = [
|
|
94
94
|
{ name: "pi-canvas", src: "https://github.com/jyaunches/pi-canvas", note: "캔버스" },
|
|
95
|
-
{ name: "pi-interactive-shell", src: "https://github.com/nicobailon/pi-interactive-shell", note: "인터랙티브 셸" }
|
|
96
|
-
{ name: "pi-parallel-web-search", src: "https://github.com/philipp-spiess/pi-parallel-web-search", note: "병렬 웹 검색" }
|
|
95
|
+
{ name: "pi-interactive-shell", src: "https://github.com/nicobailon/pi-interactive-shell", note: "인터랙티브 셸" }
|
|
97
96
|
];
|
|
98
97
|
|
|
99
98
|
/**
|
|
@@ -111,7 +110,11 @@ export const DEPRECATED_EXTENSIONS = [
|
|
|
111
110
|
// path → "Cannot find module …/pi-ai/dist/index.js/compat". Both hard-fail
|
|
112
111
|
// startup; prune from existing installs. (web search remains via pi-parallel-web-search.)
|
|
113
112
|
{ name: "pi-subagents", src: "https://github.com/nicobailon/pi-subagents", owner: "nicobailon" },
|
|
114
|
-
{ name: "pi-web-access", src: "https://github.com/nicobailon/pi-web-access", owner: "nicobailon" }
|
|
113
|
+
{ name: "pi-web-access", src: "https://github.com/nicobailon/pi-web-access", owner: "nicobailon" },
|
|
114
|
+
// pi ≥0.78 ships a built-in `websearch` (Wikipedia-backed web_search + web_fetch,
|
|
115
|
+
// NO key). pi-parallel-web-search needs PARALLEL_API_KEY → "web_search: PARALLEL_API_KEY
|
|
116
|
+
// not set — tool disabled" noise + redundant. Prune it; search stays via built-in.
|
|
117
|
+
{ name: "pi-parallel-web-search", src: "https://github.com/philipp-spiess/pi-parallel-web-search", owner: "philipp-spiess" }
|
|
115
118
|
];
|
|
116
119
|
|
|
117
120
|
/**
|