@cabane/companion 0.6.129 → 0.6.130
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 +5 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -10520,11 +10520,12 @@ function gitCredentialExports(credentials) {
|
|
|
10520
10520
|
const git = credentials.filter((c) => c.gitHost);
|
|
10521
10521
|
if (!git.length) return "";
|
|
10522
10522
|
const lines2 = ["n=${GIT_CONFIG_COUNT:-0}"];
|
|
10523
|
+
const set = (key, value) => lines2.push(`export "GIT_CONFIG_KEY_$n=${key}" "GIT_CONFIG_VALUE_$n=${value}"`, "n=$((n+1))");
|
|
10523
10524
|
for (const c of git) {
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
);
|
|
10525
|
+
const h = c.gitHost;
|
|
10526
|
+
set(`http.https://${h}/.extraHeader`, `Authorization: Basic $${c.name}`);
|
|
10527
|
+
set(`url.https://${h}/.insteadOf`, `git@${h}:`);
|
|
10528
|
+
set(`url.https://${h}/.insteadOf`, `ssh://git@${h}/`);
|
|
10528
10529
|
}
|
|
10529
10530
|
lines2.push("export GIT_CONFIG_COUNT=$n");
|
|
10530
10531
|
return lines2.join("; ") + "; ";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cabane/companion",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.130",
|
|
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",
|