@baryonlabs/cli 0.3.7 → 0.3.8
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/baryon.js +3 -0
- package/package.json +1 -1
- package/src/commands.js +16 -0
- package/src/i18n.js +2 -0
package/bin/baryon.js
CHANGED
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
keys,
|
|
10
10
|
extensions,
|
|
11
11
|
skills,
|
|
12
|
+
edge,
|
|
12
13
|
update,
|
|
13
14
|
help,
|
|
14
15
|
welcome,
|
|
@@ -75,6 +76,8 @@ async function main() {
|
|
|
75
76
|
case "skills":
|
|
76
77
|
case "skill":
|
|
77
78
|
return skills(rest);
|
|
79
|
+
case "edge":
|
|
80
|
+
return edge(rest);
|
|
78
81
|
case "update":
|
|
79
82
|
case "upgrade":
|
|
80
83
|
return update();
|
package/package.json
CHANGED
package/src/commands.js
CHANGED
|
@@ -251,6 +251,22 @@ export function keys() {
|
|
|
251
251
|
return 0;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
+
// Enterprise: delegate to @baryonlabs/edge's launcher (read-only data sandbox).
|
|
255
|
+
export function edge(args) {
|
|
256
|
+
return new Promise((resolve) => {
|
|
257
|
+
const child = spawn("baryon-edge", args, {
|
|
258
|
+
stdio: "inherit",
|
|
259
|
+
shell: process.platform === "win32",
|
|
260
|
+
});
|
|
261
|
+
child.on("error", () => {
|
|
262
|
+
log(` ${sym.warn} ${t("edge.notInstalled")}`);
|
|
263
|
+
log(` ${c.lime("npm i -g @baryonlabs/edge")}`);
|
|
264
|
+
resolve(1);
|
|
265
|
+
});
|
|
266
|
+
child.on("exit", (code) => resolve(code ?? 0));
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
|
|
254
270
|
export function update() {
|
|
255
271
|
return new Promise((resolve) => {
|
|
256
272
|
// 1/2 — CLI + pi core via npm (gets the latest pi binary, e.g. 0.80.x).
|
package/src/i18n.js
CHANGED
|
@@ -185,6 +185,7 @@ const MESSAGES = {
|
|
|
185
185
|
"bin.prunedConflicts": "충돌 확장 정리됨: {names}",
|
|
186
186
|
"bin.room": "🏫 {project} · 좌석 {seat}",
|
|
187
187
|
"bin.roomInactive": "🚫 {project} (비활성) · 좌석 {seat}",
|
|
188
|
+
"edge.notInstalled": "Baryon Edge(엔터프라이즈) 미설치 — 읽기전용 데이터 샌드박스:",
|
|
188
189
|
},
|
|
189
190
|
|
|
190
191
|
en: {
|
|
@@ -327,6 +328,7 @@ const MESSAGES = {
|
|
|
327
328
|
"bin.prunedConflicts": "Cleaned up conflicting extensions: {names}",
|
|
328
329
|
"bin.room": "🏫 {project} · seat {seat}",
|
|
329
330
|
"bin.roomInactive": "🚫 {project} (inactive) · seat {seat}",
|
|
331
|
+
"edge.notInstalled": "Baryon Edge (Enterprise) not installed — read-only data sandbox:",
|
|
330
332
|
},
|
|
331
333
|
};
|
|
332
334
|
|