botapp-cli 0.2.0 → 0.2.1
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/bin/bot.js +2 -16
- package/dist/bin/bot.js.map +1 -1
- package/dist/index.js +2 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2881,7 +2881,7 @@ Invalid ACP stdout: ${line}`;
|
|
|
2881
2881
|
clientInfo: {
|
|
2882
2882
|
name: "botapp-daemon",
|
|
2883
2883
|
title: "botapp daemon",
|
|
2884
|
-
version: "0.1
|
|
2884
|
+
version: "0.2.1"
|
|
2885
2885
|
}
|
|
2886
2886
|
});
|
|
2887
2887
|
const session = await request2("session/new", {
|
|
@@ -3055,20 +3055,6 @@ var pairingCommand = new Command18("pairing").alias("pair").description("Pair th
|
|
|
3055
3055
|
console.log(` ID: ${data.daemon.id}`);
|
|
3056
3056
|
console.log(` Server: ${serverUrl}`);
|
|
3057
3057
|
if (opts.run) {
|
|
3058
|
-
try {
|
|
3059
|
-
const summary = await registerAllDetectedAgents({
|
|
3060
|
-
server: serverUrl,
|
|
3061
|
-
token: data.token,
|
|
3062
|
-
cwd: process.cwd()
|
|
3063
|
-
});
|
|
3064
|
-
if (summary.created.length > 0) {
|
|
3065
|
-
console.log(pc19.green(`Registered agents: ${summary.created.join(", ")}`));
|
|
3066
|
-
} else if (summary.detected === 0) {
|
|
3067
|
-
console.log(pc19.dim("No local agent CLIs detected (codex, claude, \u2026) \u2014 chat will be unavailable until one is installed."));
|
|
3068
|
-
}
|
|
3069
|
-
} catch (err) {
|
|
3070
|
-
console.log(pc19.yellow(`Agent auto-registration failed: ${err?.message ?? err}`));
|
|
3071
|
-
}
|
|
3072
3058
|
const profile = loadDaemonProfile();
|
|
3073
3059
|
if (!profile) {
|
|
3074
3060
|
console.error(pc19.red("Pairing succeeded but daemon profile is missing \u2014 cannot run."));
|
|
@@ -3102,7 +3088,7 @@ async function obtainPairingToken(opts) {
|
|
|
3102
3088
|
}
|
|
3103
3089
|
|
|
3104
3090
|
// src/index.ts
|
|
3105
|
-
var version = "0.1
|
|
3091
|
+
var version = "0.2.1";
|
|
3106
3092
|
var program = new Command19().name("bot").description("botapp CLI \u2014 operate apps from the command line").version(version).enablePositionalOptions(true).option("--json", "Output as JSON").option("-s, --server <url>", "Server URL override").option("-t, --token <token>", "Auth token override").option("-v, --verbose", "Verbose output");
|
|
3107
3093
|
program.addCommand(launchCommand);
|
|
3108
3094
|
program.addCommand(runCommand);
|