@cabane/companion 0.6.225 → 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/dist/cli.js +4 -3
- package/dist/runtime.js +4 -3
- package/package.json +1 -1
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",
|