@cabane/companion 0.6.224 → 0.6.226
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/README.md +1 -1
- package/dist/cli.js +4 -3
- package/dist/runtime.js +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -81,7 +81,7 @@ Anything else about a device is done in Cabane, on the device's page.
|
|
|
81
81
|
|
|
82
82
|
## Keeping it running
|
|
83
83
|
|
|
84
|
-
For a direct installation, a reboot or a crash leaves the Companion stopped until the next `cabane start` unless you have installed its service. Under the service it restarts if it stops and starts with its user session (at login on macOS; enable linger on Linux for operation after logout), and follows the version Cabane names: it installs the new version under `~/.cabane/versions`, checks it starts, and swaps
|
|
84
|
+
For a direct installation, a reboot or a crash leaves the Companion stopped until the next `cabane start` unless you have installed its service. Under the service it restarts if it stops and starts with its user session (at login on macOS; enable linger on Linux for operation after logout), and follows the version Cabane names: it installs the new version under `~/.cabane/versions`, checks it starts, and swaps to it, which can restart the Companion during a turn. A version that can't start is rolled back by the boot guard. `cabane update --auto off` stops updates; without the service, `cabane update` installs and the next `cabane start` runs it.
|
|
85
85
|
|
|
86
86
|
On native Windows, check the background process with `cabane status` and run `cabane start` after a Windows restart. If you installed OpenCode outside Docker, keep its server running separately; the Companion's service does not supervise it.
|
|
87
87
|
|
package/dist/cli.js
CHANGED
|
@@ -10566,14 +10566,15 @@ import { hostname as hostname2 } from "os";
|
|
|
10566
10566
|
// src/log-copy.ts
|
|
10567
10567
|
init_failure();
|
|
10568
10568
|
init_bundled_binaries();
|
|
10569
|
+
var RESTART = "then `cabane stop` and `cabane start` to restart the companion";
|
|
10569
10570
|
function turnFailureCopy(reason, runtime) {
|
|
10570
10571
|
const failure = decodeFailureReason(reason);
|
|
10571
10572
|
if (failure?.kind === "auth_expired") {
|
|
10572
10573
|
if (runtime === "claude-code")
|
|
10573
|
-
return
|
|
10574
|
+
return `Claude Code is signed out on this device. To sign back in, run \`claude auth login\`, ${RESTART}. Then reply in Cabane to try again.`;
|
|
10574
10575
|
if (runtime === "codex")
|
|
10575
|
-
return
|
|
10576
|
-
return
|
|
10576
|
+
return `Codex is signed out on this device. To sign back in, run \`codex login\`, ${RESTART}. Then reply in Cabane to try again.`;
|
|
10577
|
+
return `The agent is signed out on this device. Sign in to their harness, ${RESTART}. Then reply in Cabane to try again.`;
|
|
10577
10578
|
}
|
|
10578
10579
|
if (failure?.kind === "usage_capped")
|
|
10579
10580
|
return failure.resetsAt ? `The usage limit is reached; it resets around ${new Date(failure.resetsAt).toLocaleTimeString()}. Reply in Cabane after it resets.` : "The usage limit is reached. Try again later in Cabane.";
|
package/dist/runtime.js
CHANGED
|
@@ -1501,14 +1501,15 @@ var RATE_PATTERNS = [/rate[_ ]?limit/, /\b429\b/, /too many requests/];
|
|
|
1501
1501
|
var BARE_LIMIT = /\blimit (reached|exceeded)\b/;
|
|
1502
1502
|
|
|
1503
1503
|
// src/log-copy.ts
|
|
1504
|
+
var RESTART = "then `cabane stop` and `cabane start` to restart the companion";
|
|
1504
1505
|
function turnFailureCopy(reason, runtime) {
|
|
1505
1506
|
const failure = decodeFailureReason(reason);
|
|
1506
1507
|
if (failure?.kind === "auth_expired") {
|
|
1507
1508
|
if (runtime === "claude-code")
|
|
1508
|
-
return
|
|
1509
|
+
return `Claude Code is signed out on this device. To sign back in, run \`claude auth login\`, ${RESTART}. Then reply in Cabane to try again.`;
|
|
1509
1510
|
if (runtime === "codex")
|
|
1510
|
-
return
|
|
1511
|
-
return
|
|
1511
|
+
return `Codex is signed out on this device. To sign back in, run \`codex login\`, ${RESTART}. Then reply in Cabane to try again.`;
|
|
1512
|
+
return `The agent is signed out on this device. Sign in to their harness, ${RESTART}. Then reply in Cabane to try again.`;
|
|
1512
1513
|
}
|
|
1513
1514
|
if (failure?.kind === "usage_capped")
|
|
1514
1515
|
return failure.resetsAt ? `The usage limit is reached; it resets around ${new Date(failure.resetsAt).toLocaleTimeString()}. Reply in Cabane after it resets.` : "The usage limit is reached. Try again later in Cabane.";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cabane/companion",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.226",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The Cabane Companion (headless): connect an agent on your machine to your Cabane workspace as a responder — drive work against your own codebase, files, and MCP servers without putting any of it in Cabane.",
|
|
6
6
|
"license": "UNLICENSED",
|