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/bin/bot.js
CHANGED
|
@@ -2883,7 +2883,7 @@ Invalid ACP stdout: ${line}`;
|
|
|
2883
2883
|
clientInfo: {
|
|
2884
2884
|
name: "botapp-daemon",
|
|
2885
2885
|
title: "botapp daemon",
|
|
2886
|
-
version: "0.1
|
|
2886
|
+
version: "0.2.1"
|
|
2887
2887
|
}
|
|
2888
2888
|
});
|
|
2889
2889
|
const session = await request2("session/new", {
|
|
@@ -3057,20 +3057,6 @@ var pairingCommand = new Command18("pairing").alias("pair").description("Pair th
|
|
|
3057
3057
|
console.log(` ID: ${data.daemon.id}`);
|
|
3058
3058
|
console.log(` Server: ${serverUrl}`);
|
|
3059
3059
|
if (opts.run) {
|
|
3060
|
-
try {
|
|
3061
|
-
const summary = await registerAllDetectedAgents({
|
|
3062
|
-
server: serverUrl,
|
|
3063
|
-
token: data.token,
|
|
3064
|
-
cwd: process.cwd()
|
|
3065
|
-
});
|
|
3066
|
-
if (summary.created.length > 0) {
|
|
3067
|
-
console.log(pc19.green(`Registered agents: ${summary.created.join(", ")}`));
|
|
3068
|
-
} else if (summary.detected === 0) {
|
|
3069
|
-
console.log(pc19.dim("No local agent CLIs detected (codex, claude, \u2026) \u2014 chat will be unavailable until one is installed."));
|
|
3070
|
-
}
|
|
3071
|
-
} catch (err) {
|
|
3072
|
-
console.log(pc19.yellow(`Agent auto-registration failed: ${err?.message ?? err}`));
|
|
3073
|
-
}
|
|
3074
3060
|
const profile = loadDaemonProfile();
|
|
3075
3061
|
if (!profile) {
|
|
3076
3062
|
console.error(pc19.red("Pairing succeeded but daemon profile is missing \u2014 cannot run."));
|
|
@@ -3104,7 +3090,7 @@ async function obtainPairingToken(opts) {
|
|
|
3104
3090
|
}
|
|
3105
3091
|
|
|
3106
3092
|
// src/index.ts
|
|
3107
|
-
var version = "0.1
|
|
3093
|
+
var version = "0.2.1";
|
|
3108
3094
|
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");
|
|
3109
3095
|
program.addCommand(launchCommand);
|
|
3110
3096
|
program.addCommand(runCommand);
|