@snowyroad/braid 0.96.0 → 0.96.2

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.
@@ -400,7 +400,7 @@ var InviteExpiredError = class extends Error {
400
400
  }
401
401
  };
402
402
  async function redeemInvite(relayHttpUrl, code) {
403
- const { boundedJsonFetch: boundedJsonFetch2 } = await import("./http-5RVYBQJV.js");
403
+ const { boundedJsonFetch: boundedJsonFetch2 } = await import("./http-MMZM3WE3.js");
404
404
  const r = await boundedJsonFetch2(`${relayHttpUrl.replace(/\/$/, "")}/invites/redeem`, {
405
405
  method: "POST",
406
406
  headers: { "content-type": "application/json" },
@@ -492,7 +492,7 @@ function validateReplacementToken(newToken, currentToken, nowMs = Date.now()) {
492
492
  return { ok: true };
493
493
  }
494
494
  async function mintAccessToken(relayHttpUrl, agentKey, fetchFn = fetch, dpopProof) {
495
- const { boundedJsonFetch: boundedJsonFetch2 } = await import("./http-5RVYBQJV.js");
495
+ const { boundedJsonFetch: boundedJsonFetch2 } = await import("./http-MMZM3WE3.js");
496
496
  const r = await boundedJsonFetch2(`${relayHttpUrl.replace(/\/$/, "")}/agents/token`, {
497
497
  method: "POST",
498
498
  headers: {
@@ -4473,12 +4473,9 @@ var RelayClient = class {
4473
4473
  break;
4474
4474
  }
4475
4475
  case "reaction_notification": {
4476
- console.info("[braid] reaction_notification", JSON.stringify({
4477
- channelId: String(msg.channelId ?? ""),
4478
- messageId: String(msg.messageId ?? ""),
4479
- emoji: String(msg.emoji ?? "").slice(0, 16),
4480
- reactorType: String(msg.reactorType ?? "").slice(0, 16)
4481
- }));
4476
+ const emoji = sanitizeForTty(String(msg.emoji ?? "").slice(0, 16));
4477
+ const reactor = sanitizeForTty(String(msg.reactorType ?? "").slice(0, 16));
4478
+ if (emoji) console.info(`[braid] reaction ${emoji}${reactor ? ` from ${reactor}` : ""}`);
4482
4479
  break;
4483
4480
  }
4484
4481
  case "task_available":
package/dist/cli.js CHANGED
@@ -76,7 +76,7 @@ import {
76
76
  updateAgentWorkspace,
77
77
  validateRelayWsUrl,
78
78
  wsToHttp
79
- } from "./chunk-2TZT7YDG.js";
79
+ } from "./chunk-JXTULCXB.js";
80
80
  import {
81
81
  clampUntrusted,
82
82
  externalSourceLabel,
@@ -4,7 +4,7 @@ import {
4
4
  boundedJsonFetch,
5
5
  resetHttpMetricsForTest,
6
6
  snapshotHttpMetrics
7
- } from "./chunk-2TZT7YDG.js";
7
+ } from "./chunk-JXTULCXB.js";
8
8
  import "./chunk-HQNAAXUM.js";
9
9
  export {
10
10
  assertHttpEndpoint,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snowyroad/braid",
3
- "version": "0.96.0",
3
+ "version": "0.96.2",
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",
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@agentclientprotocol/sdk": "0.25.1",
51
- "@anthropic-ai/claude-agent-sdk": "0.3.177",
51
+ "@anthropic-ai/claude-agent-sdk": "0.3.278",
52
52
  "@anthropic-ai/sandbox-runtime": "0.0.63",
53
53
  "@anthropic-ai/sdk": "0.104.1",
54
54
  "@modelcontextprotocol/sdk": "1.29.0",
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@snowyroad/braid",
3
- "version": "0.96.0",
3
+ "version": "0.96.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@snowyroad/braid",
9
- "version": "0.96.0",
9
+ "version": "0.96.2",
10
10
  "license": "SEE LICENSE IN LICENSE.md",
11
11
  "dependencies": {
12
12
  "@agentclientprotocol/sdk": "0.25.1",
13
- "@anthropic-ai/claude-agent-sdk": "0.3.177",
13
+ "@anthropic-ai/claude-agent-sdk": "0.3.278",
14
14
  "@anthropic-ai/sandbox-runtime": "0.0.63",
15
15
  "@anthropic-ai/sdk": "0.104.1",
16
16
  "@modelcontextprotocol/sdk": "1.29.0",
@@ -59,22 +59,22 @@
59
59
  }
60
60
  },
61
61
  "node_modules/@anthropic-ai/claude-agent-sdk": {
62
- "version": "0.3.177",
63
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-0.3.177.tgz",
64
- "integrity": "sha512-CBzXnzR661q3AlfZzBjmIFQx0cxr36iJV3PExTYmPyGQX32qxtiFQgnxTcF8wB4hcSVf2hnoy/gprVJdkNx7cw==",
62
+ "version": "0.3.278",
63
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-0.3.278.tgz",
64
+ "integrity": "sha512-hXfjyiGraqYul6gq7R7+WmktxJfy9S29Yrx1WK6jQpsYcipf1CYIoYSh22SpGOR3FGiEmeuzXg5U9ncOk19Fww==",
65
65
  "license": "SEE LICENSE IN README.md",
66
66
  "engines": {
67
67
  "node": ">=18.0.0"
68
68
  },
69
69
  "optionalDependencies": {
70
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.177",
71
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.177",
72
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.177",
73
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.177",
74
- "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.177",
75
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.177",
76
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.177",
77
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.177"
70
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.278",
71
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.278",
72
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.278",
73
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.278",
74
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.278",
75
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.278",
76
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.278",
77
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.278"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "@anthropic-ai/sdk": ">=0.93.0",
@@ -83,9 +83,9 @@
83
83
  }
84
84
  },
85
85
  "node_modules/@anthropic-ai/claude-agent-sdk-darwin-arm64": {
86
- "version": "0.3.177",
87
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-arm64/-/claude-agent-sdk-darwin-arm64-0.3.177.tgz",
88
- "integrity": "sha512-u9Ty+KPllm2nw0RatdPF0zcPRquNZjVptmyLG0DqduGbgZDLQpfPFMF5hffFIRnVaXhx7+jkUmEdw0jrda0UcA==",
86
+ "version": "0.3.278",
87
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-arm64/-/claude-agent-sdk-darwin-arm64-0.3.278.tgz",
88
+ "integrity": "sha512-lwkbWfYucsgiFo6mWF3Dw7ImohlWXEkkh+4e93EpeVPCxwN4IJuLztFkl28qEwY17sZ9SYQw1mRksKauqKccqg==",
89
89
  "cpu": [
90
90
  "arm64"
91
91
  ],
@@ -96,9 +96,9 @@
96
96
  ]
97
97
  },
98
98
  "node_modules/@anthropic-ai/claude-agent-sdk-darwin-x64": {
99
- "version": "0.3.177",
100
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-x64/-/claude-agent-sdk-darwin-x64-0.3.177.tgz",
101
- "integrity": "sha512-ona6Jv54XFwBTqOj3MzLWfKtc2m7Rdh58wOAX9Hnue/6FcWfyeuz/UDcidVTXQ7Xytz//Tb0JJgFtiQjO7FbIA==",
99
+ "version": "0.3.278",
100
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-x64/-/claude-agent-sdk-darwin-x64-0.3.278.tgz",
101
+ "integrity": "sha512-IYTWl9mVeXe1GnHPkpw04p+fZ23zgTBuxNXv06h7xgjSZ7zhudL05d6NpkY5T13m/zL5b+fyYkXxGciTXVhiUg==",
102
102
  "cpu": [
103
103
  "x64"
104
104
  ],
@@ -109,9 +109,9 @@
109
109
  ]
110
110
  },
111
111
  "node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64": {
112
- "version": "0.3.177",
113
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64/-/claude-agent-sdk-linux-arm64-0.3.177.tgz",
114
- "integrity": "sha512-wBCbklkaDb483Ab4DUFfmJjZJKXz58YXPv+CiGsyjq1St19mbKEma5KKz3Ya9mlV8aLyh4zmLK2mEHPnF//Ipg==",
112
+ "version": "0.3.278",
113
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64/-/claude-agent-sdk-linux-arm64-0.3.278.tgz",
114
+ "integrity": "sha512-gt03vjRLsfnT3NyOaCVZFdM6V6p0NNGxhUr6e0Yfd9a28LlIeUtNB/kMtFJDibDtsjVi4Mp+Wj9R7dsXPLOFfw==",
115
115
  "cpu": [
116
116
  "arm64"
117
117
  ],
@@ -125,9 +125,9 @@
125
125
  ]
126
126
  },
127
127
  "node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64-musl": {
128
- "version": "0.3.177",
129
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64-musl/-/claude-agent-sdk-linux-arm64-musl-0.3.177.tgz",
130
- "integrity": "sha512-v6PMDD3h2erLuTK5S2ZvExqdL3v44OyC70XpKhyqIUnyPaGR9YAMjh//EKdWC+mNvt6mIbRZpaDcHtbASVW8Rw==",
128
+ "version": "0.3.278",
129
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64-musl/-/claude-agent-sdk-linux-arm64-musl-0.3.278.tgz",
130
+ "integrity": "sha512-xbNx5TXiAr9REDh7znPnkvR8GoBe8A653hYXaVq+fNNLjXidOIvOhICMyUUrBC+wgZV1FenC46oSPIMH4n+EOQ==",
131
131
  "cpu": [
132
132
  "arm64"
133
133
  ],
@@ -141,9 +141,9 @@
141
141
  ]
142
142
  },
143
143
  "node_modules/@anthropic-ai/claude-agent-sdk-linux-x64": {
144
- "version": "0.3.177",
145
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64/-/claude-agent-sdk-linux-x64-0.3.177.tgz",
146
- "integrity": "sha512-WDP6puwPHscggNAfvIxyUSHSAjfUEkGRfnMXEPBHOqO+qjX2KGxeE13/ih3EVioeBVOUIqPui6VB05vXLa6T9Q==",
144
+ "version": "0.3.278",
145
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64/-/claude-agent-sdk-linux-x64-0.3.278.tgz",
146
+ "integrity": "sha512-xbW4MkKyPMKdWzdA499WnAP9H7p8YlMsQCVEVyz6CemePZPSLwBP9GBeUTnSS57+MievEqj8knckJPVv5I3+yw==",
147
147
  "cpu": [
148
148
  "x64"
149
149
  ],
@@ -157,9 +157,9 @@
157
157
  ]
158
158
  },
159
159
  "node_modules/@anthropic-ai/claude-agent-sdk-linux-x64-musl": {
160
- "version": "0.3.177",
161
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64-musl/-/claude-agent-sdk-linux-x64-musl-0.3.177.tgz",
162
- "integrity": "sha512-1cdEO06WoEsl1JnnLCPIlg/8x37GtBsTuj65gIpSjdrImNBjgIuMWVyceP4qaXhFjtQgYK1nx3TpaxEFVDOrDg==",
160
+ "version": "0.3.278",
161
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64-musl/-/claude-agent-sdk-linux-x64-musl-0.3.278.tgz",
162
+ "integrity": "sha512-OJ103bvIglKrp7LLS3Bpiy9ISnFIvUikcg5kJVqovA+uU/ElP96v3kCUli7nUL75TnguSL0PwdAb/rYujycLqQ==",
163
163
  "cpu": [
164
164
  "x64"
165
165
  ],
@@ -173,9 +173,9 @@
173
173
  ]
174
174
  },
175
175
  "node_modules/@anthropic-ai/claude-agent-sdk-win32-arm64": {
176
- "version": "0.3.177",
177
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-arm64/-/claude-agent-sdk-win32-arm64-0.3.177.tgz",
178
- "integrity": "sha512-xLgDWnZaYohtFrkgEIkGZdP+rp4sXxAMbbpEvEp0LK1vAYmJam/ztT2yoK6gfI58IbToJq1WGUEX2HVnE65yOg==",
176
+ "version": "0.3.278",
177
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-arm64/-/claude-agent-sdk-win32-arm64-0.3.278.tgz",
178
+ "integrity": "sha512-r75c3+Ymw4bn+If8LCoYLaYu5xXH8tWtP1xsd6KNtwda0KjFJA6/wmgicwCi3W+Vcdw6AfoFtYCQ0Sl1YwePwg==",
179
179
  "cpu": [
180
180
  "arm64"
181
181
  ],
@@ -186,9 +186,9 @@
186
186
  ]
187
187
  },
188
188
  "node_modules/@anthropic-ai/claude-agent-sdk-win32-x64": {
189
- "version": "0.3.177",
190
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-x64/-/claude-agent-sdk-win32-x64-0.3.177.tgz",
191
- "integrity": "sha512-SIdQLbtF//rYK4KDBNpUPyjyui7NwCFPZ2/3vyW3TR8R8xynkNq3cLis90FnPSgxaSshi38vkJYWh+9kGDB7zg==",
189
+ "version": "0.3.278",
190
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-x64/-/claude-agent-sdk-win32-x64-0.3.278.tgz",
191
+ "integrity": "sha512-+7nMK4AYzeNFdqxYP80v2ialF6t29Z46rXeV6NF77xXc1+kqCm6hwOMFXhJkP8EEEclFatyjdU/Dij5vM5YSNA==",
192
192
  "cpu": [
193
193
  "x64"
194
194
  ],
@@ -3738,9 +3738,9 @@
3738
3738
  }
3739
3739
  },
3740
3740
  "node_modules/tsx": {
3741
- "version": "4.23.13",
3742
- "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.23.13.tgz",
3743
- "integrity": "sha512-BL5MGkRln6aDYhb0xbQlEAGw743BaZYWdbWtdJOBriYJboKgUUYCadFp2/FpBBZquBC/ezNBn7wMMPx7FDZUDw==",
3741
+ "version": "4.23.15",
3742
+ "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.23.15.tgz",
3743
+ "integrity": "sha512-Yiex1Ovn8z2xPpOWckIiysV1SSyRMY9BkLF++q0yKiDxCqRhosKfMg3janKkiLBwZ5c/YryloKwGZcrEmtwxKw==",
3744
3744
  "dev": true,
3745
3745
  "license": "MIT",
3746
3746
  "dependencies": {