@tanstack/ai-isolate-daytona 1.1.0 → 1.1.1

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
@@ -33,7 +33,7 @@ pnpm add @tanstack/ai-isolate-daytona @tanstack/ai-code-mode
33
33
  If you use the official Daytona SDK to create sandboxes, install it in your app too:
34
34
 
35
35
  ```bash
36
- pnpm add @daytona/sdk
36
+ pnpm add @daytona/sdk@^0.231.1
37
37
  ```
38
38
 
39
39
  ## Usage
@@ -41,8 +41,11 @@ pnpm add @daytona/sdk
41
41
  ```typescript
42
42
  import { Daytona } from '@daytona/sdk'
43
43
  import { createCodeMode } from '@tanstack/ai-code-mode'
44
+ import type { CodeModeTool } from '@tanstack/ai-code-mode'
44
45
  import { createDaytonaIsolateDriver } from '@tanstack/ai-isolate-daytona'
45
46
 
47
+ declare const myServerTool: CodeModeTool
48
+
46
49
  const daytona = new Daytona()
47
50
  const sandbox = await daytona.create({ language: 'typescript' })
48
51
 
package/dist/esm/index.js CHANGED
@@ -1,2 +1 @@
1
- import { createDaytonaIsolateDriver } from "./isolate-driver.js";
2
- export { createDaytonaIsolateDriver };
1
+ export { createDaytonaIsolateDriver } from "./isolate-driver.js";
@@ -1,6 +1,6 @@
1
1
  import { DAYTONA_RESULT_MARKER, wrapCode } from "./wrap-code.js";
2
2
  import { randomUUID } from "node:crypto";
3
- //#region src/isolate-driver.ts
3
+ // src/isolate-driver.ts
4
4
  var TOOL_CALL_ID = /^tc_(0|[1-9]\d*)$/;
5
5
  function bindingsToSchemas(bindings) {
6
6
  return Object.entries(bindings).map(([name, binding]) => ({
@@ -330,7 +330,6 @@ function createDaytonaIsolateDriver(config) {
330
330
  return Promise.resolve(new DaytonaIsolateContext(sandbox, isolateConfig.bindings, timeoutMs, maxToolRounds));
331
331
  } };
332
332
  }
333
- //#endregion
334
333
  export { createDaytonaIsolateDriver };
335
334
 
336
335
  //# sourceMappingURL=isolate-driver.js.map
@@ -1,4 +1,4 @@
1
- //#region src/wrap-code.ts
1
+ // src/wrap-code.ts
2
2
  var DAYTONA_RESULT_MARKER = "__TANSTACK_AI_CODE_MODE_RESULT__";
3
3
  var VALID_TOOL_NAME = /^[a-zA-Z_$][a-zA-Z0-9_$]*$/;
4
4
  var RESERVED_TOOL_NAMES = /* @__PURE__ */ new Set([
@@ -194,7 +194,6 @@ function wrapCode(code, tools, toolResults, resultMarker = DAYTONA_RESULT_MARKER
194
194
  });
195
195
  `;
196
196
  }
197
- //#endregion
198
197
  export { DAYTONA_RESULT_MARKER, generateToolWrappers, wrapCode };
199
198
 
200
199
  //# sourceMappingURL=wrap-code.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/ai-isolate-daytona",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Daytona sandbox driver for TanStack AI Code Mode TypeScript execution.",
5
5
  "author": "",
6
6
  "license": "MIT",
@@ -38,12 +38,12 @@
38
38
  "code-execution"
39
39
  ],
40
40
  "peerDependencies": {
41
- "@tanstack/ai-code-mode": "^1.1.0"
41
+ "@tanstack/ai-code-mode": "^1.1.1"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@daytona/sdk": "^0.192.0",
45
- "@vitest/coverage-v8": "4.1.10",
46
- "@tanstack/ai-code-mode": "1.1.0"
45
+ "@vitest/coverage-v8": "4.1.12",
46
+ "@tanstack/ai-code-mode": "1.1.1"
47
47
  },
48
48
  "scripts": {
49
49
  "build": "vite build",