broods 0.35.0 → 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 +1 -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 +28 -9
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-gg06g89t.js +0 -1
- package/dist/chunk-grj4bad5.js +0 -15
- package/dist/chunk-vf5trjn9.js +0 -1
- package/dist/chunk-wgwmcq6q.js +0 -5
package/dist/account.d.ts
CHANGED
|
@@ -476,7 +476,7 @@ type UpdateCronInput = {
|
|
|
476
476
|
* storage/sandbox-config.ts normalizer so the public /v1/sandboxes contract
|
|
477
477
|
* is unchanged. The public projection lives in ./responses.ts.
|
|
478
478
|
*/
|
|
479
|
-
declare const SANDBOX_PROVIDERS: readonly ["sandbox", "lambda", "e2b", "daytona", "vercel"];
|
|
479
|
+
declare const SANDBOX_PROVIDERS: readonly ["sandbox", "lambda", "e2b", "daytona", "vercel", "machine"];
|
|
480
480
|
declare const SANDBOX_RUNTIMES: readonly ["bash", "python", "node"];
|
|
481
481
|
declare const SANDBOX_PERMISSION_MODES: readonly ["edit", "ask", "bypass"];
|
|
482
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};
|