@xutest1/sdk 0.0.3 → 0.0.4

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/server.d.ts CHANGED
@@ -5,6 +5,7 @@ export type ServerOptions = {
5
5
  signal?: AbortSignal;
6
6
  timeout?: number;
7
7
  config?: Config;
8
+ cwd?: string;
8
9
  };
9
10
  export type TuiOptions = {
10
11
  project?: string;
package/dist/server.js CHANGED
@@ -45,8 +45,10 @@ export async function createOpencodeServer(options) {
45
45
  timeout: 5000,
46
46
  }, options ?? {});
47
47
  const binaryPath = findBinary();
48
+ const cwd = options.cwd || process.cwd();
48
49
  const proc = spawn(binaryPath, [`serve`, `--hostname=${options.hostname}`, `--port=${options.port}`], {
49
50
  signal: options.signal,
51
+ cwd,
50
52
  env: {
51
53
  ...process.env,
52
54
  AE3CODE_CONFIG_CONTENT: JSON.stringify(options.config ?? {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xutest1/sdk",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "A3Code SDK - Build AI agents with agentic coding capabilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",