coding-agents-sdk 0.8.0 → 0.10.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 +10 -6
- package/dist/Agent-BD2xHVi0.mjs +4 -0
- package/dist/{SdkAgent-CxDlEycD.mjs → SdkAgent-DQfLwPwY.mjs} +1 -1
- package/dist/adapters/claude-cli-pty/index.d.mts +3 -0
- package/dist/adapters/claude-cli-pty/index.mjs +7 -0
- package/dist/adapters/claude-code-cli/index.d.mts +1 -1
- package/dist/adapters/claude-code-cli/index.mjs +1 -2
- package/dist/adapters/claude-code-sdk/index.d.mts +1 -1
- package/dist/adapters/claude-code-sdk/index.mjs +3 -3
- package/dist/adapters/codex-cli/index.d.mts +1 -1
- package/dist/adapters/codex-cli/index.mjs +2 -2
- package/dist/adapters/codex-sdk/index.d.mts +1 -1
- package/dist/adapters/codex-sdk/index.mjs +1 -1
- package/dist/adapters/cursor-cli/index.d.mts +2 -0
- package/dist/adapters/cursor-cli/index.mjs +1 -0
- package/dist/adapters/cursor-sdk/index.d.mts +2 -0
- package/dist/adapters/cursor-sdk/index.mjs +1 -0
- package/dist/adapters/gemini-cli/index.d.mts +1 -1
- package/dist/adapters/gemini-cli/index.mjs +1 -1
- package/dist/adapters/opencode-cli/index.d.mts +2 -0
- package/dist/adapters/opencode-cli/index.mjs +1 -0
- package/dist/adapters/pi-cli/index.d.mts +2 -0
- package/dist/adapters/pi-cli/index.mjs +1 -0
- package/dist/{classify-error-DoH0BqEA.mjs → classify-error-BcWmNftw.mjs} +1 -1
- package/dist/container/index.d.mts +2 -2
- package/dist/container/index.mjs +1 -1
- package/dist/container-BhXUiAiK.mjs +1 -0
- package/dist/{container-LBwTeVQB.mjs → container-BurV5WG9.mjs} +1 -1
- package/dist/container-D31bbA4L.mjs +1 -0
- package/dist/{container-CC41a5S0.mjs → container-TizHce_7.mjs} +1 -1
- package/dist/{diff-e89u7roM.mjs → diff-DWM1ciiV.mjs} +1 -1
- package/dist/errors-CeKI_bYK.mjs +1 -0
- package/dist/{events-D86KNGqO.d.mts → events-Dd9r9luo.d.mts} +1 -0
- package/dist/execution-target-CGTSqVEP.mjs +1 -0
- package/dist/{index-v6kfcMNF.d.mts → index-B-rto_J2.d.mts} +1 -1
- package/dist/index-B4RAMnx_.d.mts +46 -0
- package/dist/index-BNeL0BbU.d.mts +127 -0
- package/dist/{index-DLrYZB-u.d.mts → index-BdDz7C4J.d.mts} +3 -3
- package/dist/{index-DxBlMT3n.d.mts → index-BiWkGgnz.d.mts} +2 -2
- package/dist/index-BllemWbi.d.mts +42 -0
- package/dist/index-C7J_hmQs.d.mts +67 -0
- package/dist/index-CaUzD36R.d.mts +42 -0
- package/dist/{index-Chdt3rB6.d.mts → index-D-8EmRnQ.d.mts} +2 -2
- package/dist/{index-ClPF9ivJ.d.mts → index-DZDlHIep.d.mts} +4 -4
- package/dist/{index-BexN1NIq.d.mts → index-J7V9dJTb.d.mts} +4 -4
- package/dist/{index-Bg_PhFYu.d.mts → index-lGZ1lQkG.d.mts} +6 -2
- package/dist/index.d.mts +18 -84
- package/dist/index.mjs +1 -1
- package/dist/oci-tjdSZfTm.mjs +1 -0
- package/dist/parser-BBJPNGZ2.mjs +2 -0
- package/dist/sandbox/index.d.mts +1 -1
- package/dist/schemas/index.d.mts +1 -1
- package/dist/schemas/index.mjs +1 -1
- package/dist/schemas-mNF2Xlg_.mjs +1 -0
- package/dist/{types-BeoSSi-l.d.mts → types-D6kxBNzj.d.mts} +36 -3
- package/package.json +28 -13
- package/dist/adapters/droid-cli/index.d.mts +0 -2
- package/dist/adapters/droid-cli/index.mjs +0 -1
- package/dist/container-DLkTfO-H.mjs +0 -1
- package/dist/container-rp_YHXtW.mjs +0 -1
- package/dist/errors-XV0frS3r.mjs +0 -1
- package/dist/execution-target-DjI5SnsB.mjs +0 -4
- package/dist/index-PVFQgWRb.d.mts +0 -47
- package/dist/oci-WGkk88hR.mjs +0 -1
- package/dist/opencode-cli-kNTuVeZx.mjs +0 -1
- package/dist/pi-cli-J5YpX_ei.mjs +0 -1
- package/dist/schemas-CXVWDOoT.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./util-CGg8cK92.mjs";import{n as t,o as n,r,s as i,t as a}from"./errors-
|
|
1
|
+
import{t as e}from"./util-CGg8cK92.mjs";import{n as t,o as n,r,s as i,t as a}from"./errors-CeKI_bYK.mjs";import{t as o}from"./shell-Dewbmt9R.mjs";import{n as s}from"./diff-DWM1ciiV.mjs";import{basename as c,dirname as l,join as u,posix as d}from"node:path";import{mkdir as f,readFile as p,readdir as m,stat as h,writeFile as g}from"node:fs/promises";import{CommandExitError as _,FileType as v,Sandbox as y}from"e2b";const b=(e,t)=>[e,...t].map(o).join(` `),x=e=>e.user,S=(e,t)=>{let n={...e.env,...t};return Object.keys(n).length>0?n:void 0},C=(e,t)=>t??e.workdir,w=new TextEncoder,T=e=>e instanceof Error?e:Error(String(e)),E=e=>typeof e==`string`?e:`SIGKILL`,D=(e,t)=>{let n=e?.stdio?.[t];return n===`ignore`||n===`inherit`||n===`pipe`?n:n===void 0?`pipe`:`ignore`},O=()=>{let e=[],t=[],n=!1,r,i=()=>{for(;t.length>0&&e.length>0;)t.shift().resolve({done:!1,value:e.shift()});if(r){for(;t.length>0;)t.shift().reject(r);return}if(n)for(;t.length>0;)t.shift().resolve({done:!0,value:void 0})};return{iterable:{async*[Symbol.asyncIterator](){for(;;){if(e.length>0){yield e.shift();continue}if(r)throw T(r);if(n)return;let i=await new Promise((e,n)=>{t.push({resolve:e,reject:n})});if(i.done)return;yield i.value}}},push(t){t.length===0||n||r||(e.push(w.encode(t)),i())},end(){n||r||(n=!0,i())},fail(e){n||r||(r=e,i())}}},k=(e,t)=>({spawn:(n,r,i={})=>{let a=D(i,0),o=D(i,1),s=D(i,2),c=o===`pipe`?O():void 0,l=s===`pipe`?O():void 0,u=null,d={background:!0,stdin:a===`pipe`,cwd:C(t,i.cwd),envs:S(t,i.env),user:x(t),requestTimeoutMs:t.requestTimeoutMs,onStdout:e=>{if(o===`inherit`){process.stdout.write(e);return}c?.push(e)},onStderr:e=>{if(s===`inherit`){process.stderr.write(e);return}l?.push(e)}},f=e.commands.run(b(n,r),d);return f.catch(e=>{c?.fail(e),l?.fail(e)}),{stdout:c?.iterable??null,stderr:l?.iterable??null,stdin:a===`pipe`?{write:n=>{f.then(r=>{e.commands.sendStdin(r.pid,n,{requestTimeoutMs:t.requestTimeoutMs})}).catch(()=>{})},end:()=>{f.then(n=>{e.commands.closeStdin(n.pid,{requestTimeoutMs:t.requestTimeoutMs})}).catch(()=>{})}}:null,kill:e=>{u=E(e),f.then(e=>e.kill()).catch(()=>{})},wait:async()=>{try{let e=await(await f).wait();return c?.end(),l?.end(),u?{exitCode:null,signal:u}:{exitCode:e.exitCode,signal:null}}catch(e){if(c?.end(),l?.end(),e instanceof _)return u?{exitCode:null,signal:u}:{exitCode:e.exitCode,signal:null};throw e}}}}}),A=e=>({apiKey:e.apiKey,accessToken:e.accessToken,domain:e.domain,requestTimeoutMs:e.requestTimeoutMs,headers:e.headers}),j=e=>`sandboxId`in e&&typeof e.sandboxId==`string`,M=e=>{let t=A(e);return j(e)?t:{...t,envs:e.env,timeoutMs:e.timeoutMs,metadata:e.metadata,secure:e.secure,allowInternetAccess:e.allowInternetAccess,network:e.network,lifecycle:e.lifecycle}},N=async(e,t)=>{await e.files.makeDir(t.workdir,{user:x(t)})},P=e=>e instanceof Error&&e.name===`AbortError`,F=e=>Uint8Array.from(e).buffer,I=e=>{let t=e.endsWith(`/`)&&e!==`/`?e.slice(0,-1):e;return d.basename(t)},L=async e=>{try{return await h(e)}catch(e){if(e instanceof Error&&`code`in e&&e.code===`ENOENT`)return;throw e}},R=async(e,t,n)=>{if(await e.files.exists(t,{user:n}))return e.files.getInfo(t,{user:n})},z=async(e,t,n,r)=>(await R(e,n,r))?.type===v.DIR?d.join(n,c(t)):n,B=async(e,t)=>(await L(t))?.isDirectory()?u(t,I(e)):t,V=async(e,t,n,r)=>{let i=await h(t);if(i.isDirectory()){await e.files.makeDir(n,{user:r});let i=await m(t);await Promise.all(i.map(i=>V(e,u(t,i),d.join(n,i),r)));return}if(!i.isFile())throw Error(`Unsupported local filesystem entry at ${t}.`);let a=await p(t);await e.files.write(n,F(a),{user:r})},H=async(e,t,n,r)=>{if((await e.files.getInfo(t,{user:r})).type===v.DIR){await f(n,{recursive:!0});let i=await e.files.list(t,{user:r});await Promise.all(i.map(t=>H(e,t.path,u(n,t.name),r)));return}let i=await e.files.read(t,{format:`bytes`,user:r});await f(l(n),{recursive:!0}),await g(n,i)},U=async e=>{if(j(e))return y.connect(e.sandboxId,A(e));let t=M(e);return e.template?y.create(e.template,t):y.create(t)},W=async(e,t)=>e.connect(A(t)),G=async(e,t)=>{let n=t.signal;if(n?.aborted){let e=n.reason;throw e instanceof Error?e:new DOMException(`The operation was aborted.`,`AbortError`)}let r=!1,i=()=>{r=!0,e.kill()};n?.addEventListener(`abort`,i,{once:!0});try{let t=await e.wait();if(r)throw new DOMException(`The operation was aborted.`,`AbortError`);return{exitCode:t.exitCode,stdout:t.stdout,stderr:t.stderr}}catch(e){if(r||P(e))throw new DOMException(`The operation was aborted.`,`AbortError`);if(e instanceof _)return{exitCode:e.exitCode,stdout:e.stdout,stderr:e.stderr};throw e}finally{n?.removeEventListener(`abort`,i)}},K=async o=>{let c;try{c=await U(o),await N(c,o)}catch(t){throw new a(`E2B create failed: ${e(t)}`)}let l=o.name??c.sandboxId,d=`running`,p=k(c,o),m={},h=()=>{if(d===`disposed`)throw new r},g=()=>{if(h(),d!==`running`)throw new n},_=s({owner:m,workdir:o.workdir,materialize:async(e,n)=>{g();let r=x(o),i=await R(c,e,r);if(!i)throw new t(`Target path does not exist: ${e}`);if(i.type!==v.DIR)throw new t(`Target path is not a directory: ${e}`);await f(n,{recursive:!0});for(let t of await c.files.list(e,{user:r}))await H(c,t.path,u(n,t.name),r)}}),y={get type(){return`e2b`},get id(){return c.sandboxId},get name(){return l},get config(){return o},get status(){return d},get workdir(){return o.workdir},get spawner(){return p},async start(){if(h(),d!==`running`)try{c=await W(c,o),await N(c,o),p=k(c,o),d=`running`}catch(t){throw new i(`E2B start failed: ${e(t)}`)}},async stop(){h(),d===`running`&&(await c.pause({requestTimeoutMs:o.requestTimeoutMs}),d=`stopped`)},async dispose(){if(d!==`disposed`){try{await c.kill({requestTimeoutMs:o.requestTimeoutMs})}catch{}await _.disposeSnapshots().catch(()=>{}),d=`disposed`}},async exec(e,t,n={}){g();let r={background:!0,cwd:C(o,n.cwd),envs:S(o,n.env),user:x(o),timeoutMs:n.timeoutMs,requestTimeoutMs:o.requestTimeoutMs};return G(await c.commands.run(b(e,t),r),n)},async copyTo(e,t){g();let n=await z(c,e,t,x(o));await V(c,e,n,x(o))},async copyFrom(e,t){g();let n=await B(e,t);await H(c,e,n,x(o))},async writeFile(e,t){g(),await c.files.write(e,typeof t==`string`?t:F(t),{user:x(o)})},async readFile(e){return g(),c.files.read(e,{format:`text`,user:x(o)})},async fileExists(e){return g(),c.files.exists(e,{user:x(o)})},async mkdir(e){g(),await c.files.makeDir(e,{user:x(o)})},async execShell(e,t={}){return y.exec(`sh`,[`-c`,e],t)},async logs(){return``},async syncStatus(){return d},async snapshotWorkdir(e={}){return _.snapshotWorkdir(e)},async diffWorkdir(e){return _.diffWorkdir(e)},async releaseWorkdirSnapshot(e){return _.releaseWorkdirSnapshot(e)},getHost(e){return g(),c.getHost(e)},[Symbol.asyncDispose](){return y.dispose()}};return y};export{K as createE2BContainer};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"./oci-tjdSZfTm.mjs";const n=async n=>{let r={binary:n.binary??`docker`},i=await e(r,n);return t(`docker`,{commandContext:r,containerName:n.name,workdir:n.workdir,user:n.user,network:n.network,platform:n.platform,env:n.env,ports:n.ports,mounts:n.mounts,mountCwd:n.mountCwd,extraArgs:n.extraArgs,image:i,builtImage:n.build!==void 0&&!n.build.tag},n)};export{n as createDockerContainer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,t}from"./oci-
|
|
1
|
+
import{n as e,t}from"./oci-tjdSZfTm.mjs";const n=e=>{let t={};return e.address&&(t.CONTAINERD_ADDRESS=e.address),e.namespace&&(t.CONTAINERD_NAMESPACE=e.namespace),e.buildkitHost&&(t.BUILDKIT_HOST=e.buildkitHost),Object.keys(t).length>0?t:void 0},r=e=>{let t=[];return e.namespace&&t.push(`--namespace`,e.namespace),e.address&&t.push(`--address`,e.address),e.snapshotter&&t.push(`--snapshotter`,e.snapshotter),e.args&&t.push(...e.args),t.length>0?t:void 0},i=e=>({binary:e.binary??`nerdctl`,baseArgs:r(e),env:n(e)}),a=async n=>{let r=i(n),a=await e(r,n);return t(`nerdctl`,{commandContext:r,containerName:n.name,workdir:n.workdir,user:n.user,network:n.network,platform:n.platform,env:n.env,ports:n.ports,mounts:n.mounts,mountCwd:n.mountCwd,extraArgs:n.extraArgs,image:a,builtImage:n.build!==void 0&&!n.build.tag},n)};export{a as createNerdctlContainer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./util-CGg8cK92.mjs";import{n as t,o as n,r}from"./errors-
|
|
1
|
+
import{t as e}from"./util-CGg8cK92.mjs";import{n as t,o as n,r}from"./errors-CeKI_bYK.mjs";import{execFile as i}from"node:child_process";import{dirname as a,isAbsolute as o,join as s,posix as c,relative as l,sep as u}from"node:path";import{promisify as d}from"node:util";import{createReadStream as f}from"node:fs";import{tmpdir as p}from"node:os";import{copyFile as m,lstat as h,mkdir as g,mkdtemp as _,readdir as v,readlink as y,rm as b,stat as x,symlink as S}from"node:fs/promises";import{createHash as C}from"node:crypto";import{pipeline as w}from"node:stream/promises";const T=e=>e instanceof Error&&`code`in e&&(`stdout`in e||`stderr`in e),E=d(i),D=e=>e!==`..`&&!e.startsWith(`..${u}`)&&!o(e),O=(e,t)=>{let n=l(e,t);if(D(n))return n.split(u).join(c.sep)},k=(e,n,r)=>{let i=O(n,e);if(i!==void 0)return i;let a=O(r,e);if(a!==void 0)return a;throw new t(`Git diff produced a path outside the materialized trees: ${e}`)},A=e=>e.sort((e,t)=>e.path===t.path?(e.previousPath??``).localeCompare(t.previousPath??``):e.path.localeCompare(t.path)),j=async e=>{let t=await v(e,{withFileTypes:!0});for(let n of t){let t=s(e,n.name);if(n.name===`.git`){await b(t,{recursive:!0,force:!0});continue}n.isDirectory()&&await j(t)}},M=()=>_(s(p(),`cw-workdir-diff-`)),N=async e=>{e&&await b(e,{recursive:!0,force:!0}).catch(()=>{})},P=(e,t)=>{let n={cwd:e.cwd,createdAt:new Date};return t.set(n,e),n},F=(e,n,r)=>{if(typeof n!=`object`||!n)throw new t(`Invalid workdir snapshot.`);let i=r.get(n);if(!i)throw new t(`Invalid workdir snapshot.`);if(i.owner!==e)throw new t(`Workdir snapshot was created by a different container instance.`);return i},I=(e,n)=>{if(!n.has(e))throw new t(`Workdir snapshot has been released.`)},L=e=>C(`sha256`).update(e).digest(`hex`),R=e=>Buffer.isBuffer(e)?e:Buffer.from(e,`utf8`),z=async e=>{let t=C(`sha256`);return await w(f(e),t),t.digest(`hex`)},B=async(e,n,r)=>{let i=`${e}:${n}`;if(r.has(i))return r.get(i);let a=s(e,...n.split(c.sep));try{let e=await h(a),n,o;if(e.isSymbolicLink()){let e=Buffer.from(await y(a));n=L(e),o=e.byteLength}else if(e.isFile())n=await z(a),o=e.size;else throw new t(`Unsupported filesystem entry in diff metadata: ${a}`);let s={hash:n,size:o};return r.set(i,s),s}catch(e){if(e instanceof Error&&`code`in e&&e.code===`ENOENT`){r.set(i,void 0);return}throw e}},V=(e,n,r)=>{if(e.byteLength===0)return[];let i=e.toString(`utf8`).split(`\0`);i[i.length-1]===``&&i.pop();let a=[];for(let e=0;e<i.length;){let o=i[e++];if(!o)continue;if(o.startsWith(`R`)){let o=i[e++],s=i[e++];if(!o||!s)throw new t(`Failed to parse git rename entry.`);a.push({kind:`renamed`,previousPath:k(o,n,r),path:k(s,n,r)});continue}let s=i[e++];if(!s)throw new t(`Failed to parse git diff entry.`);switch(o){case`A`:a.push({kind:`added`,path:k(s,n,r)});break;case`D`:a.push({kind:`deleted`,path:k(s,n,r)});break;case`M`:a.push({kind:`modified`,path:k(s,n,r)});break;case`T`:a.push({kind:`modified`,path:k(s,n,r)});break;default:throw new t(`Unsupported git diff change kind: ${o}`)}}return a},H=async(n,r)=>{try{return V(R((await E(`git`,[`diff`,`--no-index`,`-z`,`--name-status`,`-M`,`--find-renames=100%`,n,r],{cwd:p(),encoding:`buffer`,maxBuffer:50*1024*1024})).stdout),n,r)}catch(i){if(!T(i))throw new t(`Failed to run git diff: ${e(i)}`);let a=i.code??1,o=Buffer.isBuffer(i.stdout)?i.stdout:Buffer.from(String(i.stdout??``),`utf8`),s=Buffer.isBuffer(i.stderr)?i.stderr:Buffer.from(String(i.stderr??``),`utf8`);if(a===0||a===1)return V(o,n,r);throw new t(`Failed to run git diff: ${s.toString(`utf8`).trim()||o.toString(`utf8`).trim()||`exit code ${a}`}`)}},U=async(e,t,n)=>{let r=new Map;return A(await Promise.all(e.map(async e=>{let i;i=e.kind===`added`?void 0:e.kind===`renamed`?e.previousPath:e.path;let a=e.kind===`deleted`?void 0:e.path,[o,s]=await Promise.all([i===void 0?void 0:B(t,i,r),a===void 0?void 0:B(n,a,r)]);return{path:e.path,previousPath:e.previousPath,kind:e.kind,beforeHash:o?.hash,afterHash:s?.hash,beforeSize:o?.size,afterSize:s?.size}})))},W=e=>{let t=new Set;for(let n of e)t.add(n.path),n.kind===`renamed`&&n.previousPath&&t.add(n.previousPath);return[...t].sort((e,t)=>e.localeCompare(t))},G=(i,a)=>{throw a instanceof t||a instanceof r||a instanceof n?a:new t(`${i}: ${e(a)}`)},K=async(e,n)=>{if(!(await x(e)).isDirectory())throw new t(`Target path is not a directory: ${e}`);await g(n,{recursive:!0});let r=await v(e,{withFileTypes:!0});await Promise.all(r.filter(e=>e.name!==`.git`).map(async r=>{let i=s(e,r.name),o=s(n,r.name);if(r.isDirectory()){await K(i,o);return}if(r.isSymbolicLink()){await g(a(o),{recursive:!0}),await S(await y(i),o);return}if(r.isFile()){await g(a(o),{recursive:!0}),await m(i,o);return}throw new t(`Unsupported filesystem entry in workdir diff: ${i}`)}))},q=e=>{let t=new Set,n=new WeakMap,r=async(r={})=>{let i=r.cwd??e.workdir,a;try{a=await M(),await e.materialize(i,a),await j(a);let r={owner:e.owner,tempDir:a,cwd:i,inFlightDiffs:0,released:!1};return t.add(r),a=void 0,P(r,n)}catch(e){return await N(a),G(`Failed to materialize workdir snapshot`,e)}},i=async r=>{let i=Date.now(),a=F(e.owner,r,n);I(a,t),a.inFlightDiffs++;let o;try{o=await M(),await e.materialize(a.cwd,o),await j(o);let t=await U(await H(a.tempDir,o),a.tempDir,o),n=W(t);return{cwd:a.cwd,changedFiles:n,fileChanges:t,stats:{durationMs:Date.now()-i,filesCompared:n.length}}}catch(e){return G(`Failed to diff workdir snapshot`,e)}finally{a.inFlightDiffs--,a.inFlightDiffs===0&&(a.resolveIdle?.(),a.resolveIdle=void 0),await N(o)}},a=e=>{let n=e;return n.releasePromise?n.releasePromise:(n.released=!0,t.delete(n),n.releasePromise=(async()=>{n.inFlightDiffs>0&&await new Promise(e=>{n.resolveIdle=e}),await N(n.tempDir)})(),n.releasePromise)};return{snapshotWorkdir:r,diffWorkdir:i,releaseWorkdirSnapshot:async t=>{await a(F(e.owner,t,n))},disposeSnapshots:async()=>{await Promise.all(Array.from(t).map(a))}}};export{q as n,T as r,K as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=class extends Error{constructor(e){super(e),this.name=`ContainerError`}},t=class extends e{constructor(e){super(e),this.name=`ContainerCreateError`}},n=class extends e{constructor(e){super(e),this.name=`MountValidationError`}},r=class extends e{constructor(e){super(e),this.name=`ContainerStartError`}},i=class extends e{constructor(e){super(e),this.name=`ContainerExecError`}},a=class extends e{constructor(e=`Container is not running.`){super(e),this.name=`ContainerNotRunningError`}},o=class extends e{constructor(e=`Container has been disposed.`){super(e),this.name=`ContainerDisposedError`}},s=class extends e{constructor(e){super(e),this.name=`ContainerDiffError`}};export{i as a,n as c,e as i,s as n,a as o,o as r,r as s,t};
|
|
@@ -28,6 +28,7 @@ declare const agentCapabilitiesSchema: z.ZodObject<{
|
|
|
28
28
|
mcp: z.ZodBoolean;
|
|
29
29
|
eventStreaming: z.ZodBoolean;
|
|
30
30
|
sessionFork: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
permissionRequests: z.ZodOptional<z.ZodBoolean>;
|
|
31
32
|
}, z.core.$strip>;
|
|
32
33
|
type AgentCapabilities = z.infer<typeof agentCapabilitiesSchema>;
|
|
33
34
|
type JsonSchema = Record<string, unknown> | ReturnType<typeof z.toJSONSchema>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./types-CwvWHEpy.mjs";const t=t=>{if(t){if(t.container&&t.sandbox)throw new e(`Pass either "container" or "sandbox", not both.`);return t.container??t.sandbox}},n=e=>{let n=t(e);return!e||!n?{executionTarget:n,options:e}:{executionTarget:n,options:{...e,cwd:e.cwd??n.workdir,propagateEnv:e.container&&e.propagateEnv===void 0?!1:e.propagateEnv,spawner:n.spawner}}};export{n as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as EnsureDisjoint, l as BaseAgent, t as AgentEventHandler } from "./types-
|
|
1
|
+
import { f as EnsureDisjoint, l as BaseAgent, t as AgentEventHandler } from "./types-D6kxBNzj.mjs";
|
|
2
2
|
//#region src/adapters/codex-sdk/types.d.ts
|
|
3
3
|
type CodexSdkSandboxMode = "danger-full-access" | "read-only" | "workspace-write";
|
|
4
4
|
type CodexSdkModelReasoningEffort = "high" | "low" | "medium" | "minimal" | "xhigh";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { A as ProcessSpawner, f as EnsureDisjoint, l as BaseAgent, p as ExclusiveExecutionTargetOptions, t as AgentEventHandler } from "./types-D6kxBNzj.mjs";
|
|
2
|
+
import { t as Container } from "./index-lGZ1lQkG.mjs";
|
|
3
|
+
import { c as Sandbox } from "./index-D-8EmRnQ.mjs";
|
|
4
|
+
import { z } from "zod/v4";
|
|
5
|
+
|
|
6
|
+
//#region src/adapters/pi-cli/events/schemas.d.ts
|
|
7
|
+
declare const piEventSchema: z.ZodObject<{
|
|
8
|
+
type: z.ZodString;
|
|
9
|
+
}, z.core.$loose>;
|
|
10
|
+
type PiEvent = z.infer<typeof piEventSchema>;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/adapters/pi-cli/types.d.ts
|
|
13
|
+
type PiCliThinkingLevel = "high" | "low" | "medium" | "minimal" | "off" | "xhigh";
|
|
14
|
+
interface PiCliRunOptions {
|
|
15
|
+
provider?: string;
|
|
16
|
+
thinking?: PiCliThinkingLevel;
|
|
17
|
+
appendSystemPrompt?: string;
|
|
18
|
+
tools?: string[];
|
|
19
|
+
noTools?: boolean;
|
|
20
|
+
noSession?: boolean;
|
|
21
|
+
sessionDir?: string;
|
|
22
|
+
forkSession?: boolean;
|
|
23
|
+
extraArgs?: string[];
|
|
24
|
+
}
|
|
25
|
+
type PiCliAgentOptions = ExclusiveExecutionTargetOptions<Container, Sandbox> & PiCliRunOptions & {
|
|
26
|
+
command?: string[] | string;
|
|
27
|
+
cwd?: string;
|
|
28
|
+
env?: Record<string, string>;
|
|
29
|
+
propagateEnv?: boolean;
|
|
30
|
+
sessionId?: string;
|
|
31
|
+
model?: string;
|
|
32
|
+
systemPrompt?: string;
|
|
33
|
+
logPath?: string;
|
|
34
|
+
spawner?: ProcessSpawner;
|
|
35
|
+
onEvent?: AgentEventHandler;
|
|
36
|
+
};
|
|
37
|
+
interface PiCliAgent extends BaseAgent<EnsureDisjoint<PiCliRunOptions>> {
|
|
38
|
+
readonly type: "pi-cli";
|
|
39
|
+
fork: () => PiCliAgent;
|
|
40
|
+
dispose: () => Promise<void>;
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/adapters/pi-cli/adapter.d.ts
|
|
44
|
+
declare const createPiCliAgent: (options?: PiCliAgentOptions) => PiCliAgent;
|
|
45
|
+
//#endregion
|
|
46
|
+
export { PiCliThinkingLevel as a, PiCliRunOptions as i, PiCliAgent as n, PiEvent as o, PiCliAgentOptions as r, createPiCliAgent as t };
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { f as EnsureDisjoint, l as BaseAgent, t as AgentEventHandler } from "./types-D6kxBNzj.mjs";
|
|
2
|
+
//#region src/adapters/cursor-sdk/types.d.ts
|
|
3
|
+
interface CursorSdkMcpHttpAuth {
|
|
4
|
+
CLIENT_ID: string;
|
|
5
|
+
CLIENT_SECRET?: string;
|
|
6
|
+
scopes?: string[];
|
|
7
|
+
}
|
|
8
|
+
type CursorSdkMcpServerConfig = {
|
|
9
|
+
type?: "http" | "sse";
|
|
10
|
+
url: string;
|
|
11
|
+
headers?: Record<string, string>;
|
|
12
|
+
auth?: CursorSdkMcpHttpAuth;
|
|
13
|
+
} | {
|
|
14
|
+
type?: "stdio";
|
|
15
|
+
command: string;
|
|
16
|
+
args?: string[];
|
|
17
|
+
env?: Record<string, string>;
|
|
18
|
+
cwd?: string;
|
|
19
|
+
};
|
|
20
|
+
type CursorSdkSettingSource = "all" | "mdm" | "plugins" | "project" | "team" | "user";
|
|
21
|
+
interface CursorSdkModelParameterValue {
|
|
22
|
+
id: string;
|
|
23
|
+
value: string;
|
|
24
|
+
}
|
|
25
|
+
interface CursorSdkModelSelection {
|
|
26
|
+
id: string;
|
|
27
|
+
params?: CursorSdkModelParameterValue[];
|
|
28
|
+
}
|
|
29
|
+
interface CursorSdkTextBlock {
|
|
30
|
+
type: "text";
|
|
31
|
+
text: string;
|
|
32
|
+
}
|
|
33
|
+
interface CursorSdkToolUseBlock {
|
|
34
|
+
type: "tool_use";
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
input: unknown;
|
|
38
|
+
}
|
|
39
|
+
interface CursorSdkSystemEvent {
|
|
40
|
+
type: "system";
|
|
41
|
+
agent_id: string;
|
|
42
|
+
run_id: string;
|
|
43
|
+
subtype?: "init";
|
|
44
|
+
model?: CursorSdkModelSelection;
|
|
45
|
+
tools?: string[];
|
|
46
|
+
}
|
|
47
|
+
interface CursorSdkAssistantEvent {
|
|
48
|
+
type: "assistant";
|
|
49
|
+
agent_id: string;
|
|
50
|
+
run_id: string;
|
|
51
|
+
message: {
|
|
52
|
+
role: "assistant";
|
|
53
|
+
content: (CursorSdkTextBlock | CursorSdkToolUseBlock)[];
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
interface CursorSdkUserEvent {
|
|
57
|
+
type: "user";
|
|
58
|
+
agent_id: string;
|
|
59
|
+
run_id: string;
|
|
60
|
+
message: {
|
|
61
|
+
role: "user";
|
|
62
|
+
content: CursorSdkTextBlock[];
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
interface CursorSdkToolCallEvent {
|
|
66
|
+
type: "tool_call";
|
|
67
|
+
agent_id: string;
|
|
68
|
+
run_id: string;
|
|
69
|
+
call_id: string;
|
|
70
|
+
name: string;
|
|
71
|
+
status: "completed" | "error" | "running";
|
|
72
|
+
args?: unknown;
|
|
73
|
+
result?: unknown;
|
|
74
|
+
truncated?: {
|
|
75
|
+
args?: boolean;
|
|
76
|
+
result?: boolean;
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
interface CursorSdkThinkingEvent {
|
|
80
|
+
type: "thinking";
|
|
81
|
+
agent_id: string;
|
|
82
|
+
run_id: string;
|
|
83
|
+
text: string;
|
|
84
|
+
thinking_duration_ms?: number;
|
|
85
|
+
}
|
|
86
|
+
interface CursorSdkStatusEvent {
|
|
87
|
+
type: "status";
|
|
88
|
+
agent_id: string;
|
|
89
|
+
run_id: string;
|
|
90
|
+
status: "CANCELLED" | "CREATING" | "ERROR" | "EXPIRED" | "FINISHED" | "RUNNING";
|
|
91
|
+
message?: string;
|
|
92
|
+
}
|
|
93
|
+
interface CursorSdkRequestEvent {
|
|
94
|
+
type: "request";
|
|
95
|
+
agent_id: string;
|
|
96
|
+
run_id: string;
|
|
97
|
+
request_id: string;
|
|
98
|
+
}
|
|
99
|
+
interface CursorSdkTaskEvent {
|
|
100
|
+
type: "task";
|
|
101
|
+
agent_id: string;
|
|
102
|
+
run_id: string;
|
|
103
|
+
status?: string;
|
|
104
|
+
text?: string;
|
|
105
|
+
}
|
|
106
|
+
type CursorSdkEvent = CursorSdkAssistantEvent | CursorSdkRequestEvent | CursorSdkStatusEvent | CursorSdkSystemEvent | CursorSdkTaskEvent | CursorSdkThinkingEvent | CursorSdkToolCallEvent | CursorSdkUserEvent;
|
|
107
|
+
interface CursorSdkRunOptions {
|
|
108
|
+
localForce?: boolean;
|
|
109
|
+
mcpServers?: Record<string, CursorSdkMcpServerConfig>;
|
|
110
|
+
systemPrompt?: never;
|
|
111
|
+
}
|
|
112
|
+
interface CursorSdkAgentOptions extends CursorSdkRunOptions {
|
|
113
|
+
apiKey?: string;
|
|
114
|
+
cwd?: string;
|
|
115
|
+
sessionId?: string;
|
|
116
|
+
model?: string;
|
|
117
|
+
settingSources?: CursorSdkSettingSource[];
|
|
118
|
+
onEvent?: AgentEventHandler;
|
|
119
|
+
}
|
|
120
|
+
interface CursorSdkAgent extends BaseAgent<EnsureDisjoint<CursorSdkRunOptions>> {
|
|
121
|
+
readonly type: "cursor-sdk";
|
|
122
|
+
}
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region src/adapters/cursor-sdk/adapter.d.ts
|
|
125
|
+
declare const createCursorSdkAgent: (options?: CursorSdkAgentOptions) => CursorSdkAgent;
|
|
126
|
+
//#endregion
|
|
127
|
+
export { CursorSdkMcpHttpAuth as a, CursorSdkModelSelection as c, CursorSdkEvent as i, CursorSdkRunOptions as l, CursorSdkAgent as n, CursorSdkMcpServerConfig as o, CursorSdkAgentOptions as r, CursorSdkModelParameterValue as s, createCursorSdkAgent as t, CursorSdkSettingSource as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as Container } from "./index-
|
|
3
|
-
import { c as Sandbox } from "./index-
|
|
1
|
+
import { A as ProcessSpawner, f as EnsureDisjoint, l as BaseAgent, p as ExclusiveExecutionTargetOptions, t as AgentEventHandler } from "./types-D6kxBNzj.mjs";
|
|
2
|
+
import { t as Container } from "./index-lGZ1lQkG.mjs";
|
|
3
|
+
import { c as Sandbox } from "./index-D-8EmRnQ.mjs";
|
|
4
4
|
import { z } from "zod/v4";
|
|
5
5
|
|
|
6
6
|
//#region src/adapters/gemini-cli/events/schemas.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as McpServerConfig } from "./events-
|
|
2
|
-
import { f as EnsureDisjoint, l as BaseAgent, t as AgentEventHandler } from "./types-
|
|
1
|
+
import { S as McpServerConfig } from "./events-Dd9r9luo.mjs";
|
|
2
|
+
import { f as EnsureDisjoint, l as BaseAgent, t as AgentEventHandler } from "./types-D6kxBNzj.mjs";
|
|
3
3
|
//#region src/adapters/claude-code-sdk/types.d.ts
|
|
4
4
|
type ClaudeCodeSdkPermissionMode = "acceptEdits" | "auto" | "bypassPermissions" | "default" | "dontAsk" | "plan";
|
|
5
5
|
type ClaudeCodeSdkExecutable = "bun" | "deno" | "node";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { A as ProcessSpawner, f as EnsureDisjoint, l as BaseAgent, p as ExclusiveExecutionTargetOptions, t as AgentEventHandler } from "./types-D6kxBNzj.mjs";
|
|
2
|
+
import { t as Container } from "./index-lGZ1lQkG.mjs";
|
|
3
|
+
import { c as Sandbox } from "./index-D-8EmRnQ.mjs";
|
|
4
|
+
import { z } from "zod/v4";
|
|
5
|
+
|
|
6
|
+
//#region src/adapters/cursor-cli/events/schemas.d.ts
|
|
7
|
+
declare const cursorCliEventSchema: z.ZodObject<{
|
|
8
|
+
type: z.ZodString;
|
|
9
|
+
}, z.core.$loose>;
|
|
10
|
+
type CursorCliEvent = z.infer<typeof cursorCliEventSchema>;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/adapters/cursor-cli/types.d.ts
|
|
13
|
+
type CursorCliMode = "ask" | "plan";
|
|
14
|
+
type CursorCliSandboxMode = "disabled" | "enabled";
|
|
15
|
+
interface CursorCliRunOptions {
|
|
16
|
+
approveMcps?: boolean;
|
|
17
|
+
extraArgs?: string[];
|
|
18
|
+
force?: boolean;
|
|
19
|
+
mode?: CursorCliMode;
|
|
20
|
+
sandboxMode?: CursorCliSandboxMode;
|
|
21
|
+
trust?: boolean;
|
|
22
|
+
systemPrompt?: never;
|
|
23
|
+
}
|
|
24
|
+
type CursorCliAgentOptions = CursorCliRunOptions & ExclusiveExecutionTargetOptions<Container, Sandbox> & {
|
|
25
|
+
command?: string[] | string;
|
|
26
|
+
cwd?: string;
|
|
27
|
+
env?: Record<string, string>;
|
|
28
|
+
propagateEnv?: boolean;
|
|
29
|
+
sessionId?: string;
|
|
30
|
+
model?: string;
|
|
31
|
+
logPath?: string;
|
|
32
|
+
spawner?: ProcessSpawner;
|
|
33
|
+
onEvent?: AgentEventHandler;
|
|
34
|
+
};
|
|
35
|
+
interface CursorCliAgent extends BaseAgent<EnsureDisjoint<CursorCliRunOptions>> {
|
|
36
|
+
readonly type: "cursor-cli";
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/adapters/cursor-cli/adapter.d.ts
|
|
40
|
+
declare const createCursorCliAgent: (options?: CursorCliAgentOptions) => CursorCliAgent;
|
|
41
|
+
//#endregion
|
|
42
|
+
export { CursorCliRunOptions as a, CursorCliMode as i, CursorCliAgent as n, CursorCliSandboxMode as o, CursorCliAgentOptions as r, CursorCliEvent as s, createCursorCliAgent as t };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { S as McpServerConfig } from "./events-Dd9r9luo.mjs";
|
|
2
|
+
import { f as EnsureDisjoint, l as BaseAgent, p as ExclusiveExecutionTargetOptions, t as AgentEventHandler } from "./types-D6kxBNzj.mjs";
|
|
3
|
+
import { t as Container } from "./index-lGZ1lQkG.mjs";
|
|
4
|
+
import { c as Sandbox } from "./index-D-8EmRnQ.mjs";
|
|
5
|
+
import { i as ClaudeCodeCliPermissionMode } from "./index-J7V9dJTb.mjs";
|
|
6
|
+
|
|
7
|
+
//#region src/adapters/claude-cli-pty/types.d.ts
|
|
8
|
+
type ClaudeCliPtyPermissionMode = ClaudeCodeCliPermissionMode;
|
|
9
|
+
interface ClaudeCliPtyExitEvent {
|
|
10
|
+
exitCode: number;
|
|
11
|
+
signal?: number | string;
|
|
12
|
+
}
|
|
13
|
+
interface ClaudeCliPtyProcess {
|
|
14
|
+
write: (data: string) => void;
|
|
15
|
+
kill: (signal?: string) => void;
|
|
16
|
+
onData: (handler: (data: string) => void) => {
|
|
17
|
+
dispose: () => void;
|
|
18
|
+
};
|
|
19
|
+
onExit: (handler: (event: ClaudeCliPtyExitEvent) => void) => {
|
|
20
|
+
dispose: () => void;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
interface ClaudeCliPtyModule {
|
|
24
|
+
spawn: (command: string, args: string[], options: {
|
|
25
|
+
cols?: number;
|
|
26
|
+
rows?: number;
|
|
27
|
+
cwd?: string;
|
|
28
|
+
env?: Record<string, string>;
|
|
29
|
+
initialInputBootstrapPath?: string;
|
|
30
|
+
initialInputPath?: string;
|
|
31
|
+
}) => ClaudeCliPtyProcess;
|
|
32
|
+
}
|
|
33
|
+
interface ClaudeCliPtyRunOptions {
|
|
34
|
+
allowedTools?: string[];
|
|
35
|
+
disallowedTools?: string[];
|
|
36
|
+
appendSystemPrompt?: string;
|
|
37
|
+
permissionMode?: ClaudeCliPtyPermissionMode;
|
|
38
|
+
mcpConfig?: string[] | string;
|
|
39
|
+
mcpServers?: Record<string, McpServerConfig>;
|
|
40
|
+
forkSession?: boolean;
|
|
41
|
+
extraArgs?: string[];
|
|
42
|
+
readinessTimeoutMs?: number;
|
|
43
|
+
stopHookTimeoutMs?: number;
|
|
44
|
+
}
|
|
45
|
+
type ClaudeCliPtyAgentOptions = ClaudeCliPtyRunOptions & ExclusiveExecutionTargetOptions<Container, Sandbox> & {
|
|
46
|
+
command?: string[] | string;
|
|
47
|
+
cwd?: string;
|
|
48
|
+
env?: Record<string, string>;
|
|
49
|
+
propagateEnv?: boolean;
|
|
50
|
+
sessionId?: string;
|
|
51
|
+
model?: string;
|
|
52
|
+
systemPrompt?: string;
|
|
53
|
+
logPath?: string;
|
|
54
|
+
ci?: boolean;
|
|
55
|
+
pty?: ClaudeCliPtyModule;
|
|
56
|
+
onEvent?: AgentEventHandler;
|
|
57
|
+
};
|
|
58
|
+
interface ClaudeCliPtyAgent extends BaseAgent<EnsureDisjoint<ClaudeCliPtyRunOptions>> {
|
|
59
|
+
readonly type: "claude-cli-pty";
|
|
60
|
+
fork: () => ClaudeCliPtyAgent;
|
|
61
|
+
dispose: () => Promise<void>;
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/adapters/claude-cli-pty/adapter.d.ts
|
|
65
|
+
declare const createClaudeCliPtyAgent: (options?: ClaudeCliPtyAgentOptions) => ClaudeCliPtyAgent;
|
|
66
|
+
//#endregion
|
|
67
|
+
export { ClaudeCliPtyPermissionMode as a, ClaudeCliPtyModule as i, ClaudeCliPtyAgent as n, ClaudeCliPtyProcess as o, ClaudeCliPtyAgentOptions as r, ClaudeCliPtyRunOptions as s, createClaudeCliPtyAgent as t };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { A as ProcessSpawner, f as EnsureDisjoint, l as BaseAgent, p as ExclusiveExecutionTargetOptions, t as AgentEventHandler } from "./types-D6kxBNzj.mjs";
|
|
2
|
+
import { t as Container } from "./index-lGZ1lQkG.mjs";
|
|
3
|
+
import { c as Sandbox } from "./index-D-8EmRnQ.mjs";
|
|
4
|
+
import { z } from "zod/v4";
|
|
5
|
+
|
|
6
|
+
//#region src/adapters/opencode-cli/events/schemas.d.ts
|
|
7
|
+
declare const opencodeEventSchema: z.ZodObject<{
|
|
8
|
+
type: z.ZodString;
|
|
9
|
+
}, z.core.$loose>;
|
|
10
|
+
type OpencodeEvent = z.infer<typeof opencodeEventSchema>;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/adapters/opencode-cli/types.d.ts
|
|
13
|
+
interface OpencodeCliRunOptions {
|
|
14
|
+
agent?: string;
|
|
15
|
+
files?: string[];
|
|
16
|
+
forkSession?: boolean;
|
|
17
|
+
share?: boolean;
|
|
18
|
+
thinking?: boolean;
|
|
19
|
+
title?: string;
|
|
20
|
+
variant?: string;
|
|
21
|
+
extraArgs?: string[];
|
|
22
|
+
systemPrompt?: never;
|
|
23
|
+
}
|
|
24
|
+
type OpencodeCliAgentOptions = ExclusiveExecutionTargetOptions<Container, Sandbox> & OpencodeCliRunOptions & {
|
|
25
|
+
command?: string[] | string;
|
|
26
|
+
cwd?: string;
|
|
27
|
+
env?: Record<string, string>;
|
|
28
|
+
propagateEnv?: boolean;
|
|
29
|
+
sessionId?: string;
|
|
30
|
+
model?: string;
|
|
31
|
+
logPath?: string;
|
|
32
|
+
spawner?: ProcessSpawner;
|
|
33
|
+
onEvent?: AgentEventHandler;
|
|
34
|
+
};
|
|
35
|
+
interface OpencodeCliAgent extends BaseAgent<EnsureDisjoint<OpencodeCliRunOptions>> {
|
|
36
|
+
readonly type: "opencode-cli";
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/adapters/opencode-cli/adapter.d.ts
|
|
40
|
+
declare const createOpencodeCliAgent: (options?: OpencodeCliAgentOptions) => OpencodeCliAgent;
|
|
41
|
+
//#endregion
|
|
42
|
+
export { OpencodeEvent as a, OpencodeCliRunOptions as i, OpencodeCliAgent as n, OpencodeCliAgentOptions as r, createOpencodeCliAgent as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { A as ProcessSpawner } from "./types-D6kxBNzj.mjs";
|
|
2
|
+
import { X as VolumeMount } from "./index-lGZ1lQkG.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/sandbox/types.d.ts
|
|
5
5
|
type SandboxType = "bubblewrap" | "firejail" | "nsjail";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as McpServerConfig } from "./events-
|
|
2
|
-
import {
|
|
3
|
-
import { t as Container } from "./index-
|
|
4
|
-
import { c as Sandbox } from "./index-
|
|
1
|
+
import { S as McpServerConfig } from "./events-Dd9r9luo.mjs";
|
|
2
|
+
import { A as ProcessSpawner, f as EnsureDisjoint, l as BaseAgent, p as ExclusiveExecutionTargetOptions, t as AgentEventHandler } from "./types-D6kxBNzj.mjs";
|
|
3
|
+
import { t as Container } from "./index-lGZ1lQkG.mjs";
|
|
4
|
+
import { c as Sandbox } from "./index-D-8EmRnQ.mjs";
|
|
5
5
|
import { z } from "zod/v4";
|
|
6
6
|
|
|
7
7
|
//#region src/adapters/codex-cli/events/schemas.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as McpServerConfig } from "./events-
|
|
2
|
-
import {
|
|
3
|
-
import { t as Container } from "./index-
|
|
4
|
-
import { c as Sandbox } from "./index-
|
|
1
|
+
import { S as McpServerConfig } from "./events-Dd9r9luo.mjs";
|
|
2
|
+
import { A as ProcessSpawner, f as EnsureDisjoint, l as BaseAgent, p as ExclusiveExecutionTargetOptions, t as AgentEventHandler } from "./types-D6kxBNzj.mjs";
|
|
3
|
+
import { t as Container } from "./index-lGZ1lQkG.mjs";
|
|
4
|
+
import { c as Sandbox } from "./index-D-8EmRnQ.mjs";
|
|
5
5
|
import { z } from "zod/v4";
|
|
6
6
|
|
|
7
7
|
//#region src/adapters/claude-code-cli/events/schemas.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as ProcessSpawner } from "./types-D6kxBNzj.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/container/types.d.ts
|
|
4
4
|
type ContainerType = "docker" | "e2b" | "nerdctl" | "podman";
|
|
@@ -111,6 +111,7 @@ type OciBuildConfig = OciBuildBase & ({
|
|
|
111
111
|
interface OciProviderBase {
|
|
112
112
|
ports?: PortMapping[];
|
|
113
113
|
mounts?: VolumeMount[];
|
|
114
|
+
mountCwd?: string;
|
|
114
115
|
user?: string;
|
|
115
116
|
binary?: string;
|
|
116
117
|
extraArgs?: string[];
|
|
@@ -215,6 +216,9 @@ declare class ContainerError extends Error {
|
|
|
215
216
|
declare class ContainerCreateError extends ContainerError {
|
|
216
217
|
constructor(message: string);
|
|
217
218
|
}
|
|
219
|
+
declare class MountValidationError extends ContainerError {
|
|
220
|
+
constructor(message: string);
|
|
221
|
+
}
|
|
218
222
|
declare class ContainerStartError extends ContainerError {
|
|
219
223
|
constructor(message: string);
|
|
220
224
|
}
|
|
@@ -239,4 +243,4 @@ declare function createContainer(config: E2BContainerConfig): Promise<E2BContain
|
|
|
239
243
|
declare function createContainer(config: NerdctlContainerConfig): Promise<NerdctlContainer>;
|
|
240
244
|
declare function createContainer(config: PodmanContainerConfig): Promise<PodmanContainer>;
|
|
241
245
|
//#endregion
|
|
242
|
-
export {
|
|
246
|
+
export { WorkdirDiffStats as $, E2BCreateConfig as A, ContainerExecution as B, NerdctlProviderBase as C, E2BContainer as D, E2BConnectionConfig as E, DockerContainerBase as F, ContainerStatus as G, ContainerIdentity as H, DockerContainerConfig as I, ExecResult as J, ContainerType as K, DockerProviderConfig as L, DockerBuildBase as M, DockerBuildConfig as N, E2BContainerBase as O, DockerContainer as P, WorkdirDiff as Q, ContainerBase as R, NerdctlContainerConfig as S, E2BConnectConfig as T, ContainerLifecycle as U, ContainerFileSystem as V, ContainerObservability as W, VolumeMount as X, PortMapping as Y, WorkdirChangeKind as Z, PodmanProviderConfig as _, ContainerDiffError as a, NerdctlContainer as b, ContainerExecError as c, MountValidationError as d, WorkdirFileChange as et, PodmanBuildBase as f, PodmanContainerConfig as g, PodmanContainerBase as h, ContainerCreateError as i, E2BProviderConfig as j, E2BContainerConfig as k, ContainerNotRunningError as l, PodmanContainer as m, ContainerConfig as n, WorkdirSnapshotOptions as nt, ContainerDisposedError as o, PodmanBuildConfig as p, ExecOptions as q, createContainer as r, ContainerError as s, Container as t, WorkdirSnapshot as tt, ContainerStartError as u, NerdctlBuildBase as v, NerdctlProviderConfig as w, NerdctlContainerBase as x, NerdctlBuildConfig as y, ContainerConfigBase as z };
|