broods 0.34.1 → 0.36.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/dist/account.d.ts +2 -1
- package/dist/account.js +1 -1
- package/dist/chunk-09w5n6hc.js +1 -0
- package/dist/chunk-54pn8m91.js +15 -0
- package/dist/chunk-5tnnqapc.js +468 -0
- package/dist/chunk-6s753azk.js +1 -0
- package/dist/chunk-gvrqg36n.js +1 -0
- package/dist/{chunk-yd3vh7k7.js → chunk-mqsvqhkj.js} +2 -2
- package/dist/chunk-ny9c9z9g.js +0 -0
- package/dist/chunk-q2n2mxeg.js +5 -0
- package/dist/chunk-r4wpy43p.js +4 -0
- package/dist/chunk-s3cv33em.js +1 -0
- package/dist/cli/index.js +124 -100
- package/dist/index.d.ts +34 -9
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-1vs3cf0w.js +0 -1
- package/dist/chunk-aewcp4db.js +0 -1
- package/dist/chunk-wgwmcq6q.js +0 -5
- package/dist/chunk-xg98kc3q.js +0 -15
package/dist/account.d.ts
CHANGED
|
@@ -130,6 +130,7 @@ interface AgentConfig {
|
|
|
130
130
|
model?: AgentModelConfig;
|
|
131
131
|
provider?: AgentProviderConfig;
|
|
132
132
|
sandbox?: string;
|
|
133
|
+
sandboxes?: string[];
|
|
133
134
|
workspaces?: AgentWorkspaceRef[];
|
|
134
135
|
session?: AgentSessionConfig;
|
|
135
136
|
hooks?: AgentHooksConfig;
|
|
@@ -475,7 +476,7 @@ type UpdateCronInput = {
|
|
|
475
476
|
* storage/sandbox-config.ts normalizer so the public /v1/sandboxes contract
|
|
476
477
|
* is unchanged. The public projection lives in ./responses.ts.
|
|
477
478
|
*/
|
|
478
|
-
declare const SANDBOX_PROVIDERS: readonly ["sandbox", "lambda", "e2b", "daytona", "vercel"];
|
|
479
|
+
declare const SANDBOX_PROVIDERS: readonly ["sandbox", "lambda", "e2b", "daytona", "vercel", "machine"];
|
|
479
480
|
declare const SANDBOX_RUNTIMES: readonly ["bash", "python", "node"];
|
|
480
481
|
declare const SANDBOX_PERMISSION_MODES: readonly ["edit", "ask", "bypass"];
|
|
481
482
|
declare const SANDBOX_NETWORK_MODES: readonly ["allow-all", "deny-all", "restricted"];
|
package/dist/account.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m
|
|
1
|
+
import{m,Ce,L,U}from"./chunk-mqsvqhkj.js";export{m as BroodsAccountApiError,U as BroodsAccountClient,Ce as envPlaceholder,L as resolveEnvCredential};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-s3cv33em.js";import{Pe,e,r,t,s}from"./cli/index.js";import{readFileSync as d}from"node:fs";import{dirname as m,resolve as p}from"node:path";import{Client as g}from"@modelcontextprotocol/client";import{StdioClientTransport as h}from"@modelcontextprotocol/client/stdio";var f={name:"broods-machine",version:"1.0.0"},u=t({command:e().min(1),args:r(e()).default([]),env:s(e(),e()).optional(),cwd:e().optional()}),w=t({mcpServers:s(e(),u).refine((n)=>Object.keys(n).length>0,"lists no MCP servers")});class y{#t=new Map;#e;#r;constructor(n,i){this.#r=n,this.#e=i}async callTool(n,i,o){return await(await this.#n(n)).callTool({name:i,arguments:o})}async listTools(n){return(await(await this.#n(n)).listTools()).tools}names(){return[...this.#r.keys()]}async stop(){let n=[...this.#t.values()];this.#t.clear(),await Promise.all(n.map((i)=>i.then((o)=>o.close()).catch(()=>{})))}#n(n){let i=this.#r.get(n);if(!i)return Promise.reject(Error(`no MCP server named "${n}" in the --mcp file`));let o=this.#t.get(n);if(o)return o;let c=(async()=>{this.#e(`mcp ${n}: ${[i.command,...i.args].join(" ")}`);let a=new h({...i,env:{...v(),...i.env},stderr:"inherit"});a.onclose=()=>{if(this.#e(`mcp ${n}: exited`),this.#t.get(n)===c)this.#t.delete(n)};let l=new g(f);return await l.connect(a),l})();return c.catch(()=>{if(this.#t.get(n)===c)this.#t.delete(n)}),this.#t.set(n,c),c}}function E(n){let i=p(n),o=w.safeParse(S(i));if(!o.success)throw Error(`${i}: ${Pe(o.error)}`);return new Map(Object.entries(o.data.mcpServers).map(([c,a])=>[c,a.cwd?{...a,cwd:p(m(i),a.cwd)}:a]))}function v(){let n={};for(let[i,o]of Object.entries(process.env))if(typeof o==="string")n[i]=o;return n}function S(n){try{return JSON.parse(d(n,"utf8"))}catch(i){throw Error(`could not read ${n}: ${i instanceof Error?i.message:String(i)}`)}}export{y as McpHost,E as readMcpServersFile};
|