@freestyle-sh/with-opencode 0.0.2 → 0.0.3

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/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as freestyle_sandboxes from 'freestyle-sandboxes';
2
2
  import { VmWith, VmWithInstance, VmSpec } from 'freestyle-sandboxes';
3
- import * as _opencode_ai_sdk from '@opencode-ai/sdk';
3
+ import * as _opencode_ai_sdk_v2 from '@opencode-ai/sdk/v2';
4
4
 
5
5
  type OpenCodeAuthOptions = {
6
6
  password?: string;
@@ -44,7 +44,7 @@ declare class VmOpenCodeInstance extends VmWithInstance {
44
44
  client({ domain }?: {
45
45
  domain?: string;
46
46
  }): Promise<{
47
- client: _opencode_ai_sdk.OpencodeClient;
47
+ client: _opencode_ai_sdk_v2.OpencodeClient;
48
48
  }>;
49
49
  routeWeb({ domain }?: {
50
50
  domain?: string;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VmWith, VmSpec, VmWithInstance } from 'freestyle-sandboxes';
2
- import { createOpencodeClient } from '@opencode-ai/sdk';
2
+ import { createOpencodeClient } from '@opencode-ai/sdk/v2';
3
3
 
4
4
  function resolveAuth(opts) {
5
5
  return opts?.password ? { password: opts.password, username: opts.username ?? "opencode" } : {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freestyle-sh/with-opencode",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "packageManager": "pnpm@10.11.0",
5
5
  "private": false,
6
6
  "dependencies": {