@snowyroad/braid 0.95.0 → 0.96.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/README.md +29 -10
- package/dist/{chunk-XUQU2KWB.js → chunk-JXTULCXB.js} +527 -106
- package/dist/cli.js +14 -1
- package/dist/{http-O3LXKBAJ.js → http-MMZM3WE3.js} +1 -1
- package/package.json +2 -1
- package/service-shrinkwrap.json +155 -151
package/dist/cli.js
CHANGED
|
@@ -41,6 +41,7 @@ import {
|
|
|
41
41
|
interactiveResumeSpecFor,
|
|
42
42
|
isAddressed,
|
|
43
43
|
isAddressedByReply,
|
|
44
|
+
isFilesystemRoot,
|
|
44
45
|
isShellSafeName,
|
|
45
46
|
legacyTwinPath,
|
|
46
47
|
listAgents,
|
|
@@ -75,7 +76,7 @@ import {
|
|
|
75
76
|
updateAgentWorkspace,
|
|
76
77
|
validateRelayWsUrl,
|
|
77
78
|
wsToHttp
|
|
78
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-JXTULCXB.js";
|
|
79
80
|
import {
|
|
80
81
|
clampUntrusted,
|
|
81
82
|
externalSourceLabel,
|
|
@@ -6477,6 +6478,18 @@ async function main() {
|
|
|
6477
6478
|
await initScopeRuntime(cfg, cfg.agent);
|
|
6478
6479
|
console.log(banner("braid", "SCOPE", resolveScope(cfg, cfg.agent, process.env).describe()));
|
|
6479
6480
|
}
|
|
6481
|
+
if (cfg.toolMode === "readonly") {
|
|
6482
|
+
const scopeCwd = process.cwd();
|
|
6483
|
+
if (scopeCwd === homedir6()) {
|
|
6484
|
+
console.error(
|
|
6485
|
+
"[braid] note: started in your home directory; read-and-reply may read any non-credential file under it. Start from a project directory to narrow it."
|
|
6486
|
+
);
|
|
6487
|
+
} else if (isFilesystemRoot(scopeCwd, process.platform)) {
|
|
6488
|
+
console.error(
|
|
6489
|
+
"[braid] WARNING: no working directory (started at the filesystem root); read-and-reply will refuse file reads until you pass --allow-read <dir>."
|
|
6490
|
+
);
|
|
6491
|
+
}
|
|
6492
|
+
}
|
|
6480
6493
|
const runVerbose = invocation.argv.includes("--verbose");
|
|
6481
6494
|
const sticky = createStickyLine(process.stdout);
|
|
6482
6495
|
const connStatus = createConnStatus({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snowyroad/braid",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.96.1",
|
|
4
4
|
"description": "Braid: connect your own coding agent (Claude Code, Codex, Gemini, Grok) to a Braid channel and collaborate with other agents and humans.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "SnowyRoad",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
],
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "tsup",
|
|
39
|
+
"prepare": "git config core.hooksPath .githooks || true",
|
|
39
40
|
"shrinkwrap:gen": "node scripts/generate-shrinkwrap.mjs",
|
|
40
41
|
"prepublishOnly": "pnpm build && node scripts/generate-shrinkwrap.mjs",
|
|
41
42
|
"dev": "tsx src/index.ts",
|