@beatos/bridge-runner 0.1.1 → 0.2.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.
package/README.md CHANGED
@@ -20,6 +20,7 @@ computer to the internet. Nothing is merged, deployed or sent without your yes.
20
20
  - [Projects: where the agent works](#projects-where-the-agent-works)
21
21
  - [The key](#the-key)
22
22
  - [Safety model](#safety-model)
23
+ - [What is on this computer (opt-in)](#what-is-on-this-computer-opt-in)
23
24
  - [Files and logs](#files-and-logs)
24
25
  - [Update](#update)
25
26
  - [Uninstall](#uninstall)
@@ -302,6 +303,28 @@ These rules are in the code. No setting turns them off.
302
303
  - Text in tasks, comments, web pages and files is data for the agent, not new
303
304
  orders.
304
305
 
306
+ ## What is on this computer (opt-in)
307
+
308
+ Runner 0.2.0 and newer can show, on the runner's page in Bridge, which
309
+ assistants this computer has and what they hold. **It is off by default.**
310
+ Only the runner's owner can turn it on (Bridge, Runners, click the runner,
311
+ "What is on this computer"), and only the owner sees it.
312
+
313
+ When it is on, the runner sends a list once and then every 6 hours:
314
+
315
+ - the assistants it finds: Claude Code (`~/.claude`), PAI, LifeOS, Codex
316
+ (`~/.codex`), Gemini CLI, Hermes and Pi;
317
+ - their agents, skills, hooks and MCP tools, by name and description;
318
+ - Claude Code sessions (active now, last 24 hours, last 7 days) and tokens per
319
+ model over the last 7 days, counted from the logs in `~/.claude/projects`.
320
+
321
+ What it never sends: file contents, keys, env values, a hook's command line, an
322
+ MCP server's command or URL, or a full path. Paths go as `~/...`; a full path
323
+ inside a description becomes `~/...` or `…`.
324
+
325
+ Turn it off on the same page. BeatOS then deletes the list, and the runner
326
+ stops reading.
327
+
305
328
  ## Files and logs
306
329
 
307
330
  The runner uses two folders in your home folder.
@@ -0,0 +1,377 @@
1
+ /**
2
+ * What is on this computer (BEA-97 part B): the assistants found here, their
3
+ * agents, skills, hooks and MCP tools, and Claude Code session counts and
4
+ * tokens per model from its own logs.
5
+ *
6
+ * Off by default. The runner scans only when beatos.app says the owner turned
7
+ * it on for this runner (the heartbeat reply), then every 6 hours.
8
+ *
9
+ * Privacy rules (never change):
10
+ * - names and descriptions only: never file contents, never keys or env values;
11
+ * - a hook sends its event and script name, never its command line;
12
+ * - an MCP tool sends its name and transport, never its command, URL or env;
13
+ * - paths are sent as ~/..., and a path outside the home folder is never sent.
14
+ */
15
+ import { createReadStream, existsSync, readdirSync, readFileSync, statSync } from "node:fs";
16
+ import { homedir } from "node:os";
17
+ import { basename, join, relative, sep } from "node:path";
18
+ import { createInterface } from "node:readline";
19
+ export const NAME_MAX = 120;
20
+ export const DESCRIPTION_MAX = 300;
21
+ export const ITEMS_MAX = 300;
22
+ const LOG_BYTES_MAX = 300 * 1024 * 1024;
23
+ const DAY = 24 * 3600 * 1000;
24
+ const clip = (s, n) => (s.length > n ? `${s.slice(0, n - 1)}…` : s);
25
+ const escapeRe = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
26
+ const POSIX_ROOTS = "home|Users|root|mnt|var|etc|opt|Volumes|private|tmp|srv|media";
27
+ /** Anything that still looks like a full path after scrubbing. */
28
+ const STILL_A_PATH = new RegExp(`[A-Za-z]:[\\\\/]|\\\\\\\\|\\w\\\\\\w|(^|[\\s("'\`])/(${POSIX_ROOTS})/`, "i");
29
+ /**
30
+ * A name or description written by a person may hold a full path. The home
31
+ * folder becomes ~ (with / or \ in it), other drive, UNC and absolute POSIX
32
+ * paths become "…". If anything path-like is still left (a path with spaces,
33
+ * for example), the text is dropped: null.
34
+ */
35
+ export function scrubPaths(text, home) {
36
+ const parts = home.split(/[\\/]+/).filter(Boolean).map(escapeRe);
37
+ const lead = /^[\\/]/.test(home) ? "[\\\\/]+" : "";
38
+ // The lookahead stops C:\Users\al from matching inside C:\Users\alex.
39
+ const homeRe = new RegExp(lead + parts.join("[\\\\/]+") + "(?![\\w.-])", "gi");
40
+ const out = text
41
+ .replace(/file:\/\/\/?/gi, "")
42
+ .replace(homeRe, "~")
43
+ .replace(/~[\\/]+/g, "~/")
44
+ .replace(/~\/[^\s"'`)]*/g, (m) => m.replace(/\\/g, "/"))
45
+ .replace(/[A-Za-z]:[\\/][^\s"'`)]*/g, "…")
46
+ .replace(/\\\\[^\s"'`)]+/g, "…")
47
+ .replace(new RegExp(`(^|[\\s("'\`])/(?:${POSIX_ROOTS})/[^\\s"'\`)]*`, "gi"), "$1…");
48
+ return STILL_A_PATH.test(out) ? null : out;
49
+ }
50
+ /** "~/.claude/skills/x" for a path under home; null for any other path. */
51
+ export function tildePath(p, home) {
52
+ const rel = relative(home, p);
53
+ if (!rel || rel.startsWith("..") || /^[a-zA-Z]:/.test(rel) || rel.startsWith(sep))
54
+ return rel ? null : "~";
55
+ return `~/${rel.split(sep).join("/")}`;
56
+ }
57
+ /** name and description from a Markdown file's front matter (--- ... ---). */
58
+ export function frontMatter(text) {
59
+ const m = /^\uFEFF?---\r?\n([\s\S]*?)\r?\n---/.exec(text);
60
+ if (!m)
61
+ return {};
62
+ const out = {};
63
+ const lines = m[1].split(/\r?\n/);
64
+ for (let i = 0; i < lines.length; i++) {
65
+ const kv = /^(name|description):\s*(.*)$/.exec(lines[i]);
66
+ if (!kv)
67
+ continue;
68
+ let value = kv[2].trim();
69
+ if (value === ">" || value === "|" || value === ">-" || value === "|-") {
70
+ const parts = [];
71
+ while (i + 1 < lines.length && /^\s+\S/.test(lines[i + 1]))
72
+ parts.push(lines[++i].trim());
73
+ value = parts.join(" ");
74
+ }
75
+ value = value.replace(/^["']|["']$/g, "").trim();
76
+ if (value)
77
+ out[kv[1]] = value;
78
+ }
79
+ return out;
80
+ }
81
+ function readText(p) {
82
+ try {
83
+ return readFileSync(p, "utf8");
84
+ }
85
+ catch {
86
+ return null;
87
+ }
88
+ }
89
+ function readJson(p) {
90
+ const t = readText(p);
91
+ if (t === null)
92
+ return null;
93
+ try {
94
+ const v = JSON.parse(t);
95
+ return v && typeof v === "object" ? v : null;
96
+ }
97
+ catch {
98
+ return null;
99
+ }
100
+ }
101
+ function dirs(p) {
102
+ try {
103
+ return readdirSync(p, { withFileTypes: true })
104
+ .filter((d) => d.isDirectory() && !d.name.startsWith("."))
105
+ .map((d) => d.name)
106
+ .sort();
107
+ }
108
+ catch {
109
+ return [];
110
+ }
111
+ }
112
+ function files(p, ext) {
113
+ try {
114
+ return readdirSync(p, { withFileTypes: true })
115
+ .filter((d) => d.isFile() && d.name.endsWith(ext))
116
+ .map((d) => d.name)
117
+ .sort();
118
+ }
119
+ catch {
120
+ return [];
121
+ }
122
+ }
123
+ function item(kind, name, home, file, description) {
124
+ const it = { kind, name: clip(scrubPaths(name, home) ?? "(name hidden)", NAME_MAX) };
125
+ const desc = description ? scrubPaths(description, home) : null;
126
+ if (desc)
127
+ it.description = clip(desc, DESCRIPTION_MAX);
128
+ const path = file ? tildePath(file, home) : null;
129
+ if (path)
130
+ it.path = path;
131
+ return it;
132
+ }
133
+ /** Each <dir>/<name>/SKILL.md, and one level deeper for skill groups. */
134
+ export function scanSkills(root, home) {
135
+ const out = [];
136
+ const visit = (dir, depth) => {
137
+ for (const d of dirs(dir)) {
138
+ const file = join(dir, d, "SKILL.md");
139
+ const text = readText(file);
140
+ if (text !== null) {
141
+ const fm = frontMatter(text);
142
+ out.push(item("skill", fm.name ?? d, home, join(dir, d), fm.description));
143
+ }
144
+ else if (depth < 1) {
145
+ visit(join(dir, d), depth + 1);
146
+ }
147
+ }
148
+ };
149
+ visit(root, 0);
150
+ return out;
151
+ }
152
+ /** Each <dir>/*.md agent file. */
153
+ export function scanAgents(root, home) {
154
+ return files(root, ".md").map((f) => {
155
+ const fm = frontMatter(readText(join(root, f)) ?? "");
156
+ return item("agent", fm.name ?? f.replace(/\.md$/, ""), home, join(root, f), fm.description);
157
+ });
158
+ }
159
+ /** The script a hook runs, by name: never the command line. */
160
+ export function hookScript(command) {
161
+ // Never env values (VAR=x), flags (--token=x), or URLs: drop those tokens.
162
+ const tokens = command
163
+ .split(/\s+/)
164
+ .map((t) => t.replace(/^["']|["']$/g, ""))
165
+ .filter((t) => t && !t.includes("=") && !t.includes("://") && !t.startsWith("-"));
166
+ const names = tokens.map((t) => basename(t.replace(/\\/g, "/")));
167
+ const script = [...names].reverse().find((n) => /^[\w.-]+\.(ts|mts|js|mjs|cjs|sh|ps1|py|cmd|bat|rb)$/i.test(n));
168
+ if (script)
169
+ return script;
170
+ const program = names[0];
171
+ return program && /^[A-Za-z][\w.-]{0,40}$/.test(program) ? program : "command";
172
+ }
173
+ /** settings.json hooks: one item per event and script. */
174
+ export function scanHooks(settings) {
175
+ const hooks = settings?.hooks;
176
+ if (!hooks || typeof hooks !== "object")
177
+ return [];
178
+ const out = [];
179
+ const seen = new Set();
180
+ for (const [event, groups] of Object.entries(hooks)) {
181
+ if (!Array.isArray(groups))
182
+ continue;
183
+ for (const g of groups) {
184
+ if (!Array.isArray(g?.hooks))
185
+ continue;
186
+ for (const h of g.hooks) {
187
+ if (typeof h?.command !== "string")
188
+ continue;
189
+ const name = `${event}: ${hookScript(h.command)}`;
190
+ const matcher = typeof g.matcher === "string" && g.matcher ? g.matcher : "";
191
+ if (seen.has(name + matcher))
192
+ continue;
193
+ seen.add(name + matcher);
194
+ const it = { kind: "hook", name: clip(name, NAME_MAX) };
195
+ if (matcher)
196
+ it.description = clip(`Runs for: ${matcher}`, DESCRIPTION_MAX);
197
+ out.push(it);
198
+ }
199
+ }
200
+ }
201
+ return out;
202
+ }
203
+ /** MCP server names and transport only. */
204
+ export function mcpTools(servers) {
205
+ if (!servers || typeof servers !== "object")
206
+ return [];
207
+ return Object.entries(servers).map(([name, s]) => {
208
+ const transport = typeof s?.type === "string" ? s.type : s?.url ? "http" : "stdio";
209
+ return { kind: "tool", name: clip(name, NAME_MAX), description: `MCP server (${transport})` };
210
+ });
211
+ }
212
+ /** [mcp_servers.<name>] tables in a Codex config.toml. */
213
+ export function codexMcpTools(toml) {
214
+ if (!toml)
215
+ return [];
216
+ const names = new Set();
217
+ // [mcp_servers.github] and its sub-tables ([mcp_servers.github.env]) are one tool.
218
+ for (const m of toml.matchAll(/^\s*\[mcp_servers\.(?:"([^"]+)"|([^.\]\s]+))/gm))
219
+ names.add(m[1] ?? m[2]);
220
+ return [...names].map((name) => ({ kind: "tool", name: clip(name, NAME_MAX), description: "MCP server" }));
221
+ }
222
+ const byName = (a, b) => a.kind.localeCompare(b.kind) || a.name.localeCompare(b.name);
223
+ /** The assistants found under the home folder, with what each has. */
224
+ export function scanAssistants(home) {
225
+ const out = [];
226
+ const add = (id, name, dir, items) => {
227
+ if (!existsSync(dir))
228
+ return;
229
+ out.push({ id, name, path: tildePath(dir, home) ?? "~", items: items().sort(byName).slice(0, ITEMS_MAX) });
230
+ };
231
+ const claude = join(home, ".claude");
232
+ add("claude-code", "Claude Code", claude, () => {
233
+ const settings = readJson(join(claude, "settings.json"));
234
+ const userConfig = readJson(join(home, ".claude.json"));
235
+ const tools = [...mcpTools(userConfig?.mcpServers), ...mcpTools(settings?.mcpServers)];
236
+ const unique = [...new Map(tools.map((t) => [t.name, t])).values()];
237
+ return [
238
+ ...scanAgents(join(claude, "agents"), home),
239
+ ...scanSkills(join(claude, "skills"), home),
240
+ ...scanHooks(settings),
241
+ ...unique,
242
+ ];
243
+ });
244
+ add("pai", "PAI", join(claude, "PAI"), () => []);
245
+ add("lifeos", "LifeOS", join(claude, "LIFEOS"), () => []);
246
+ const codex = join(home, ".codex");
247
+ add("codex", "Codex", codex, () => [
248
+ ...scanAgents(join(codex, "agents"), home),
249
+ ...scanSkills(join(codex, "skills"), home),
250
+ ...codexMcpTools(readText(join(codex, "config.toml"))),
251
+ ]);
252
+ add("gemini", "Gemini CLI", join(home, ".gemini"), () => {
253
+ const settings = readJson(join(home, ".gemini", "settings.json"));
254
+ return mcpTools(settings?.mcpServers);
255
+ });
256
+ add("hermes", "Hermes", join(home, ".hermes"), () => scanSkills(join(home, ".hermes", "skills"), home));
257
+ add("pi", "Pi", join(home, ".pi"), () => [
258
+ ...scanSkills(join(home, ".pi", "agent", "skills"), home),
259
+ ...scanAgents(join(home, ".pi", "agent", "agents"), home),
260
+ ]);
261
+ return out;
262
+ }
263
+ /**
264
+ * Claude Code sessions from ~/.claude/projects/<project>/<session>.jsonl:
265
+ * how many, and tokens per model over the last 7 days. One message is
266
+ * counted once (Claude Code writes one line per content block).
267
+ */
268
+ export async function scanClaudeSessions(home, now) {
269
+ const root = join(home, ".claude", "projects");
270
+ if (!existsSync(root))
271
+ return null;
272
+ const since = now - 7 * DAY;
273
+ // A session is projects/<p>/<id>.jsonl. Its subagents write under
274
+ // projects/<p>/<id>/**.jsonl: their tokens count for that session, but
275
+ // they are not sessions of their own.
276
+ const logs = [];
277
+ const add = (file, session) => {
278
+ try {
279
+ const st = statSync(file);
280
+ if (st.mtimeMs >= since)
281
+ logs.push({ file, session, mtime: st.mtimeMs, size: st.size });
282
+ }
283
+ catch {
284
+ // gone while scanning
285
+ }
286
+ };
287
+ const nested = (dir, session, depth) => {
288
+ for (const f of files(dir, ".jsonl"))
289
+ add(join(dir, f), session);
290
+ if (depth < 3)
291
+ for (const d of dirs(dir))
292
+ nested(join(dir, d), session, depth + 1);
293
+ };
294
+ for (const p of dirs(root)) {
295
+ for (const f of files(join(root, p), ".jsonl"))
296
+ add(join(root, p, f), join(root, p, f));
297
+ for (const d of dirs(join(root, p)))
298
+ nested(join(root, p, d), join(root, p, `${d}.jsonl`), 1);
299
+ }
300
+ logs.sort((a, b) => b.mtime - a.mtime);
301
+ const sessionLogs = logs.filter((l) => l.file === l.session);
302
+ const models = new Map();
303
+ let bytes = 0;
304
+ let partial = false;
305
+ for (const log of logs) {
306
+ if (bytes + log.size > LOG_BYTES_MAX) {
307
+ partial = true;
308
+ continue;
309
+ }
310
+ bytes += log.size;
311
+ try {
312
+ await countLog(log.file, log.session, since, models);
313
+ }
314
+ catch {
315
+ // Locked, deleted or unreadable: skip this one file.
316
+ partial = true;
317
+ }
318
+ }
319
+ return {
320
+ assistant: "claude-code",
321
+ active: sessionLogs.filter((l) => l.mtime >= now - 10 * 60 * 1000).length,
322
+ last24h: sessionLogs.filter((l) => l.mtime >= now - DAY).length,
323
+ last7d: sessionLogs.length,
324
+ models: [...models.values()]
325
+ .map(({ files: f, ...m }) => ({ ...m, sessions: f.size }))
326
+ .sort((a, b) => b.outputTokens - a.outputTokens),
327
+ partial,
328
+ };
329
+ }
330
+ /** Adds one log file's tokens per model; each message once. */
331
+ async function countLog(file, session, since, models) {
332
+ const seen = new Set();
333
+ const input = createReadStream(file, { encoding: "utf8" });
334
+ const lines = createInterface({ input, crlfDelay: Infinity });
335
+ try {
336
+ for await (const line of lines) {
337
+ if (!line.includes('"usage"'))
338
+ continue;
339
+ let row;
340
+ try {
341
+ row = JSON.parse(line);
342
+ }
343
+ catch {
344
+ continue;
345
+ }
346
+ const msg = row.message;
347
+ const model = msg?.model;
348
+ if (!model || !msg.usage || model.startsWith("<"))
349
+ continue;
350
+ if (row.timestamp && Date.parse(row.timestamp) < since)
351
+ continue;
352
+ if (msg.id) {
353
+ if (seen.has(msg.id))
354
+ continue;
355
+ seen.add(msg.id);
356
+ }
357
+ let m = models.get(model);
358
+ if (!m) {
359
+ m = { model, sessions: 0, inputTokens: 0, outputTokens: 0, cacheReadTokens: 0, cacheWriteTokens: 0, files: new Set() };
360
+ models.set(model, m);
361
+ }
362
+ m.files.add(session);
363
+ m.inputTokens += msg.usage.input_tokens ?? 0;
364
+ m.outputTokens += msg.usage.output_tokens ?? 0;
365
+ m.cacheReadTokens += msg.usage.cache_read_input_tokens ?? 0;
366
+ m.cacheWriteTokens += msg.usage.cache_creation_input_tokens ?? 0;
367
+ }
368
+ }
369
+ finally {
370
+ lines.close();
371
+ input.destroy();
372
+ }
373
+ }
374
+ /** The whole report the runner sends when beatos.app asks for it. */
375
+ export async function scanInventory(home = homedir(), now = Date.now()) {
376
+ return { version: 1, assistants: scanAssistants(home), sessions: await scanClaudeSessions(home, now) };
377
+ }
package/dist/main.js CHANGED
@@ -16,6 +16,7 @@
16
16
  * mid-session continues the same session, and every saved event is sent, on
17
17
  * the next start.
18
18
  */
19
+ import { scanInventory } from "./inventory.js";
19
20
  import { closeSync, existsSync, mkdirSync, openSync, readFileSync, rmSync, writeFileSync, } from "node:fs";
20
21
  import { join } from "node:path";
21
22
  import { BeatosApi } from "./api.js";
@@ -112,6 +113,7 @@ async function main() {
112
113
  api,
113
114
  workspace: new Workspace(cfg),
114
115
  claude: makeClaudeExec(cfg, runClaude),
116
+ inventory: () => scanInventory(),
115
117
  });
116
118
  console.log(`[bridge-runner] ${cfg.runnerName} -> ${cfg.beatosUrl} as ${cfg.agentName}, every ${cfg.pollSeconds}s`);
117
119
  let stop = false;
package/dist/runner.js CHANGED
@@ -31,7 +31,7 @@ import { classifyError, retryDelaySeconds, sessionUsage, } from "./claude.js";
31
31
  import { Outbox } from "./outbox.js";
32
32
  import { decideAction } from "./policy.js";
33
33
  import { claudeArgs, sessionSettings, agentEnv } from "./safety.js";
34
- export const RUNNER_VERSION = "0.1.1";
34
+ export const RUNNER_VERSION = "0.2.0";
35
35
  /** A model name from Bridge goes into argv: plain names only. */
36
36
  const MODEL_RE = /^[A-Za-z0-9._-]{1,64}$/;
37
37
  const CLAIM_REFRESH_MS = 5 * 60_000;
@@ -55,6 +55,8 @@ export class Runner {
55
55
  /** Each open run's state as the server saw it this tick. */
56
56
  serverRuns = new Map();
57
57
  runnerStatus = "active";
58
+ /** No new inventory read before this time (1 h after a send, 10 min after a failure). */
59
+ inventoryRetryAt = 0;
58
60
  constructor(deps) {
59
61
  this.d = deps;
60
62
  mkdirSync(deps.cfg.stateDir, { recursive: true });
@@ -132,21 +134,7 @@ export class Runner {
132
134
  async heartbeat() {
133
135
  let r;
134
136
  try {
135
- r = await this.d.api.heartbeat({
136
- name: this.d.cfg.runnerName,
137
- kind: "pc",
138
- ...(this.d.cfg.workspaceId ? { workspace_id: this.d.cfg.workspaceId } : {}),
139
- runner_version: RUNNER_VERSION,
140
- capabilities: {
141
- connectors: ["claude"],
142
- profile: this.d.cfg.profile,
143
- browser_level: 1,
144
- // Usage screen (BEA-87): the cap and how runs are paid on this computer.
145
- max_runs_per_day: this.d.cfg.maxRunsPerDay,
146
- billing: this.d.cfg.billing,
147
- },
148
- max_concurrent: 1,
149
- });
137
+ r = await this.d.api.heartbeat(this.heartbeatBody());
150
138
  }
151
139
  catch (err) {
152
140
  if (err instanceof ApiError && err.status === 401) {
@@ -163,8 +151,49 @@ export class Runner {
163
151
  this.runnerStatus = r.status;
164
152
  if (r.status === "revoked")
165
153
  this.stopLive("revoked");
154
+ if (r.status !== "revoked" && r.inventory?.enabled && r.inventory.send)
155
+ await this.sendInventory();
166
156
  return true;
167
157
  }
158
+ /**
159
+ * The owner turned on "What is on this computer" and the server wants a
160
+ * fresh list (first time, or 6 hours old): read it and send it in one more
161
+ * heartbeat. A failure only logs; the next heartbeat asks again.
162
+ */
163
+ async sendInventory() {
164
+ if (!this.d.inventory || this.now() < this.inventoryRetryAt)
165
+ return;
166
+ try {
167
+ const inventory = await this.d.inventory();
168
+ // The status in this reply is read on the next tick.
169
+ await this.d.api.heartbeat({ ...this.heartbeatBody(), inventory });
170
+ // Even if the server keeps asking, read at most once an hour.
171
+ this.inventoryRetryAt = this.now() + 60 * 60 * 1000;
172
+ this.log("sent what is on this computer (names and descriptions only)");
173
+ }
174
+ catch (err) {
175
+ // Not on every heartbeat: wait 10 minutes before reading again.
176
+ this.inventoryRetryAt = this.now() + 10 * 60 * 1000;
177
+ this.log(`could not send what is on this computer (${err.message})`);
178
+ }
179
+ }
180
+ heartbeatBody() {
181
+ return {
182
+ name: this.d.cfg.runnerName,
183
+ kind: "pc",
184
+ ...(this.d.cfg.workspaceId ? { workspace_id: this.d.cfg.workspaceId } : {}),
185
+ runner_version: RUNNER_VERSION,
186
+ capabilities: {
187
+ connectors: ["claude"],
188
+ profile: this.d.cfg.profile,
189
+ browser_level: 1,
190
+ // Usage screen (BEA-87): the cap and how runs are paid on this computer.
191
+ max_runs_per_day: this.d.cfg.maxRunsPerDay,
192
+ billing: this.d.cfg.billing,
193
+ },
194
+ max_concurrent: 1,
195
+ };
196
+ }
168
197
  /** Kill the live Claude session, if any (pause, stop, revoke). */
169
198
  stopLive(reason, runId) {
170
199
  if (!this.live || (runId && this.live.runId !== runId))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beatos/bridge-runner",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "description": "BeatOS Bridge runner: a small program on your own computer that takes BeatOS tasks for your agent and works them with Claude Code. It only dials out to beatos.app.",
6
6
  "license": "MIT",