@snowyroad/braid 0.74.0 → 0.75.0

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.
@@ -372,7 +372,7 @@ var InviteExpiredError = class extends Error {
372
372
  }
373
373
  };
374
374
  async function redeemInvite(relayHttpUrl, code) {
375
- const { boundedJsonFetch: boundedJsonFetch2 } = await import("./http-EP5W2BCL.js");
375
+ const { boundedJsonFetch: boundedJsonFetch2 } = await import("./http-SP27G4XU.js");
376
376
  const r = await boundedJsonFetch2(`${relayHttpUrl.replace(/\/$/, "")}/invites/redeem`, {
377
377
  method: "POST",
378
378
  headers: { "content-type": "application/json" },
@@ -461,7 +461,7 @@ function validateReplacementToken(newToken, currentToken, nowMs = Date.now()) {
461
461
  return { ok: true };
462
462
  }
463
463
  async function mintAccessToken(relayHttpUrl, agentKey, fetchFn = fetch, dpopProof) {
464
- const { boundedJsonFetch: boundedJsonFetch2 } = await import("./http-EP5W2BCL.js");
464
+ const { boundedJsonFetch: boundedJsonFetch2 } = await import("./http-SP27G4XU.js");
465
465
  const r = await boundedJsonFetch2(`${relayHttpUrl.replace(/\/$/, "")}/agents/token`, {
466
466
  method: "POST",
467
467
  headers: {
@@ -1919,6 +1919,19 @@ function redactConfig(cfg) {
1919
1919
  }
1920
1920
  return { ...cfg, token: "<redacted>", model };
1921
1921
  }
1922
+ function startingLines(cfg) {
1923
+ const model = redactConfig(cfg).model;
1924
+ return [
1925
+ `agent : ${sanitizeForTty(cfg.agentName)}`,
1926
+ `relay : ${sanitizeForTty(cfg.relayWsUrl)}`,
1927
+ `provider : ${cfg.agentMode === "acp" ? cfg.agent : "bundled SDK (generic mode)"}`,
1928
+ `model : ${sanitizeForTty(model)}`,
1929
+ `tools : ${cfg.toolMode}`,
1930
+ ...cfg.authMode ? [`auth : ${cfg.authMode}`] : [],
1931
+ ...cfg.fallbackModel ? [`fallback : ${sanitizeForTty(cfg.fallbackModel)}`] : [],
1932
+ `sandbox : ${cfg.scope?.disabled ? "OFF (unconfined)" : "on"}`
1933
+ ];
1934
+ }
1922
1935
 
1923
1936
  // src/http.ts
1924
1937
  var DEFAULT_TIMEOUT_MS = 15e3;
@@ -2155,5 +2168,5 @@ export {
2155
2168
  validateRelayWsUrl,
2156
2169
  wsToHttp,
2157
2170
  resolveConfig,
2158
- redactConfig
2171
+ startingLines
2159
2172
  };
package/dist/cli.js CHANGED
@@ -46,7 +46,6 @@ import {
46
46
  pickRejectOptionId,
47
47
  pinEndpoint,
48
48
  readPathWithFallback,
49
- redactConfig,
50
49
  redeemInvite,
51
50
  relayHostSegment,
52
51
  resolveAgentSelection,
@@ -56,6 +55,7 @@ import {
56
55
  sanitizeForTty,
57
56
  saveAgent,
58
57
  snapshotHttpMetrics,
58
+ startingLines,
59
59
  takeDenialHint,
60
60
  toolModeLabel,
61
61
  toolStatusLine,
@@ -63,7 +63,7 @@ import {
63
63
  validateReplacementToken,
64
64
  verifyCardSignature,
65
65
  wsToHttp
66
- } from "./chunk-IARPNMQJ.js";
66
+ } from "./chunk-YKSY2S6J.js";
67
67
 
68
68
  // src/health.ts
69
69
  var CEILING_STRIKES_TO_DEAD = 3;
@@ -9026,7 +9026,7 @@ async function main() {
9026
9026
  }
9027
9027
  assertKeystorePerms(dir, file);
9028
9028
  }
9029
- console.log("[braid] starting", redactConfig(cfg));
9029
+ console.log(banner("braid", "STARTING", startingLines(cfg)));
9030
9030
  if (cfg.toolMode === "full") {
9031
9031
  console.error(
9032
9032
  "[braid] WARNING full tool access: remote channel content can drive local tool use on this machine"
@@ -4,7 +4,7 @@ import {
4
4
  boundedJsonFetch,
5
5
  resetHttpMetricsForTest,
6
6
  snapshotHttpMetrics
7
- } from "./chunk-IARPNMQJ.js";
7
+ } from "./chunk-YKSY2S6J.js";
8
8
  export {
9
9
  assertHttpEndpoint,
10
10
  boundedJsonFetch,
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@snowyroad/braid",
3
- "version": "0.74.0",
3
+ "version": "0.75.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@snowyroad/braid",
9
- "version": "0.74.0",
9
+ "version": "0.75.0",
10
10
  "license": "SEE LICENSE IN LICENSE.md",
11
11
  "dependencies": {
12
12
  "@agentclientprotocol/sdk": "0.25.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snowyroad/braid",
3
- "version": "0.74.0",
3
+ "version": "0.75.0",
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",