@cabane/companion 0.6.3 → 0.6.4
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 +3 -3
- package/dist/pairing-config.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cli.js
CHANGED
|
@@ -900,7 +900,7 @@ async function postJson(baseUrl, path3, body) {
|
|
|
900
900
|
if (res.status >= 400) {
|
|
901
901
|
if (res.status === 404 && path3.endsWith("/code")) {
|
|
902
902
|
throw new CompanionError(
|
|
903
|
-
`
|
|
903
|
+
`no device-flow pairing endpoint at ${baseUrl}. Either that server predates \`cabane-companion pair\`, or it isn't a Cabane API origin \u2014 the hosted app is https://app.cabane.ai (pass \`--server <url>\` for your own instance).`
|
|
904
904
|
);
|
|
905
905
|
}
|
|
906
906
|
const msg = parsed && typeof parsed === "object" && "error" in parsed ? String(parsed.error) : `${res.status}`;
|
|
@@ -959,7 +959,7 @@ async function runDeviceFlow(baseUrl, print, opts = {}) {
|
|
|
959
959
|
}
|
|
960
960
|
|
|
961
961
|
// src/pairing-config.ts
|
|
962
|
-
var DEFAULT_BASE_URL = "https://cabane.ai";
|
|
962
|
+
var DEFAULT_BASE_URL = "https://app.cabane.ai";
|
|
963
963
|
function resolvePairBaseUrl(server) {
|
|
964
964
|
const raw = (server ?? process.env.CABANE_BASE_URL ?? DEFAULT_BASE_URL).trim();
|
|
965
965
|
if (!isAllowedBaseUrl(raw)) {
|
|
@@ -9815,7 +9815,7 @@ program.name("cabane-companion").description(
|
|
|
9815
9815
|
).version(COMPANION_VERSION);
|
|
9816
9816
|
program.command("pair").description(
|
|
9817
9817
|
"pair this device with cabane \u2014 shows a short code you confirm in Settings \u2192 Devices."
|
|
9818
|
-
).allowExcessArguments(false).option("--server <url>", "the cabane instance to pair with (default https://cabane.ai)").action(async (opts) => {
|
|
9818
|
+
).allowExcessArguments(false).option("--server <url>", "the cabane instance to pair with (default https://app.cabane.ai)").action(async (opts) => {
|
|
9819
9819
|
await pair({
|
|
9820
9820
|
...opts.server !== void 0 ? { server: opts.server } : {}
|
|
9821
9821
|
});
|
package/dist/pairing-config.js
CHANGED
|
@@ -292,7 +292,7 @@ async function postJson(baseUrl, path, body) {
|
|
|
292
292
|
if (res.status >= 400) {
|
|
293
293
|
if (res.status === 404 && path.endsWith("/code")) {
|
|
294
294
|
throw new CompanionError(
|
|
295
|
-
`
|
|
295
|
+
`no device-flow pairing endpoint at ${baseUrl}. Either that server predates \`cabane-companion pair\`, or it isn't a Cabane API origin \u2014 the hosted app is https://app.cabane.ai (pass \`--server <url>\` for your own instance).`
|
|
296
296
|
);
|
|
297
297
|
}
|
|
298
298
|
const msg = parsed && typeof parsed === "object" && "error" in parsed ? String(parsed.error) : `${res.status}`;
|
|
@@ -351,7 +351,7 @@ async function runDeviceFlow(baseUrl, print, opts = {}) {
|
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
// src/pairing-config.ts
|
|
354
|
-
var DEFAULT_BASE_URL = "https://cabane.ai";
|
|
354
|
+
var DEFAULT_BASE_URL = "https://app.cabane.ai";
|
|
355
355
|
function resolvePairBaseUrl(server) {
|
|
356
356
|
const raw = (server ?? process.env.CABANE_BASE_URL ?? DEFAULT_BASE_URL).trim();
|
|
357
357
|
if (!isAllowedBaseUrl(raw)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cabane/companion",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The Cabane Companion (headless): connect a coding 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",
|