junis 0.1.7 → 0.1.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/dist/cli/index.js +8 -5
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var require_package = __commonJS({
|
|
|
31
31
|
"package.json"(exports2, module2) {
|
|
32
32
|
module2.exports = {
|
|
33
33
|
name: "junis",
|
|
34
|
-
version: "0.1.
|
|
34
|
+
version: "0.1.8",
|
|
35
35
|
description: "One-line device control for AI agents",
|
|
36
36
|
bin: {
|
|
37
37
|
junis: "dist/cli/index.js"
|
|
@@ -119,7 +119,8 @@ async function authenticate(deviceName, platform2, onBrowserOpen, onWaiting) {
|
|
|
119
119
|
body: JSON.stringify({ device_name: deviceName, platform: platform2 })
|
|
120
120
|
});
|
|
121
121
|
if (!startRes.ok) {
|
|
122
|
-
|
|
122
|
+
const body = await startRes.text().catch(() => "");
|
|
123
|
+
throw new Error(`Auth \uC2DC\uC791 \uC2E4\uD328: ${startRes.status} ${body}`);
|
|
123
124
|
}
|
|
124
125
|
const startData = await startRes.json();
|
|
125
126
|
const verificationUri = JUNIS_WEB ? startData.verification_uri.replace(/^https?:\/\/[^/]+/, JUNIS_WEB) : startData.verification_uri;
|
|
@@ -1115,9 +1116,11 @@ function getDeviceName() {
|
|
|
1115
1116
|
function printBanner() {
|
|
1116
1117
|
console.log("\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557");
|
|
1117
1118
|
console.log("\u2551 \u2551");
|
|
1118
|
-
|
|
1119
|
+
const versionLabel = `\u{1F99E} J U N I S v${version}`;
|
|
1120
|
+
const padding = " ".repeat(46 - 3 - versionLabel.length);
|
|
1121
|
+
console.log(`\u2551 ${versionLabel}${padding}\u2551`);
|
|
1119
1122
|
console.log("\u2551 \u2551");
|
|
1120
|
-
console.log("\u2551 Device Agent for AI Teams
|
|
1123
|
+
console.log("\u2551 Device Agent for AI Teams \u2551");
|
|
1121
1124
|
console.log("\u2551 \u2551");
|
|
1122
1125
|
console.log("\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D");
|
|
1123
1126
|
console.log("");
|
|
@@ -1249,7 +1252,7 @@ import_commander.program.command("start", { isDefault: true }).description("Juni
|
|
|
1249
1252
|
console.log(` \u2192 ${webUrl}`);
|
|
1250
1253
|
console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510");
|
|
1251
1254
|
console.log("\u2502 \u2502");
|
|
1252
|
-
console.log("\u2502 Try asking your AI:
|
|
1255
|
+
console.log("\u2502 Try asking your AI: \u2502");
|
|
1253
1256
|
console.log("\u2502 \u2502");
|
|
1254
1257
|
console.log('\u2502 "\uB370\uC2A4\uD06C\uD1B1 \uD30C\uC77C \uBAA9\uB85D \uBCF4\uC5EC\uC918" \u2502');
|
|
1255
1258
|
console.log('\u2502 "\uD06C\uB86C\uC5D0\uC11C \uC624\uB298 \uB274\uC2A4 \uAC80\uC0C9\uD574\uC918" \u2502');
|