@xutest1/sdk 0.3.2 → 0.3.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/client.d.ts +8 -0
- package/gen/client/client.gen.d.ts +2 -0
- package/gen/client/client.gen.js +165 -0
- package/gen/client/index.d.ts +7 -0
- package/gen/client/index.js +5 -0
- package/gen/client/types.gen.d.ts +127 -0
- package/gen/client/types.gen.js +2 -0
- package/gen/client/utils.gen.d.ts +38 -0
- package/gen/client/utils.gen.js +226 -0
- package/gen/client.gen.d.ts +12 -0
- package/gen/client.gen.js +5 -0
- package/gen/core/auth.gen.d.ts +18 -0
- package/gen/core/auth.gen.js +14 -0
- package/gen/core/bodySerializer.gen.d.ts +17 -0
- package/gen/core/bodySerializer.gen.js +57 -0
- package/gen/core/params.gen.d.ts +33 -0
- package/gen/core/params.gen.js +89 -0
- package/gen/core/pathSerializer.gen.d.ts +33 -0
- package/gen/core/pathSerializer.gen.js +106 -0
- package/gen/core/serverSentEvents.gen.d.ts +59 -0
- package/gen/core/serverSentEvents.gen.js +117 -0
- package/gen/core/types.gen.d.ts +78 -0
- package/gen/core/types.gen.js +2 -0
- package/gen/core/utils.gen.d.ts +14 -0
- package/gen/core/utils.gen.js +69 -0
- package/gen/sdk.gen.d.ts +267 -0
- package/gen/sdk.gen.js +574 -0
- package/gen/types.gen.d.ts +2336 -0
- package/gen/types.gen.js +2 -0
- package/index.d.ts +15 -0
- package/package.json +9 -7
- package/server.d.ts +23 -0
package/gen/types.gen.js
ADDED
package/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from "./client.js";
|
|
2
|
+
export * from "./server.js";
|
|
3
|
+
import { createOpencodeClient } from "./client.js";
|
|
4
|
+
import { createOpencodeServer } from "./server.js";
|
|
5
|
+
import type { ServerOptions } from "./server.js";
|
|
6
|
+
export declare function createA3code(options?: ServerOptions): Promise<{
|
|
7
|
+
client: import("./client.js").OpencodeClient;
|
|
8
|
+
server: {
|
|
9
|
+
url: string;
|
|
10
|
+
close(): void;
|
|
11
|
+
};
|
|
12
|
+
}>;
|
|
13
|
+
export declare const createOpencode: typeof createA3code;
|
|
14
|
+
export { createOpencodeClient as createA3codeClient };
|
|
15
|
+
export { createOpencodeServer as createA3codeServer };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xutest1/sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "A3CODE SDK - AI coding assistant SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"./server": "./server.js"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
|
-
"*.js"
|
|
13
|
+
"*.js",
|
|
14
|
+
"*.d.ts",
|
|
15
|
+
"gen/**"
|
|
14
16
|
],
|
|
15
17
|
"keywords": [
|
|
16
18
|
"a3code",
|
|
@@ -22,10 +24,10 @@
|
|
|
22
24
|
"author": "A3CODE",
|
|
23
25
|
"license": "MIT",
|
|
24
26
|
"optionalDependencies": {
|
|
25
|
-
"@xutest1/darwin-arm64": "0.3.
|
|
26
|
-
"@xutest1/darwin-x64": "0.3.
|
|
27
|
-
"@xutest1/linux-arm64": "0.3.
|
|
28
|
-
"@xutest1/linux-x64": "0.3.
|
|
29
|
-
"@xutest1/windows-x64": "0.3.
|
|
27
|
+
"@xutest1/darwin-arm64": "0.3.4",
|
|
28
|
+
"@xutest1/darwin-x64": "0.3.4",
|
|
29
|
+
"@xutest1/linux-arm64": "0.3.4",
|
|
30
|
+
"@xutest1/linux-x64": "0.3.4",
|
|
31
|
+
"@xutest1/windows-x64": "0.3.4"
|
|
30
32
|
}
|
|
31
33
|
}
|
package/server.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type Config } from "./gen/types.gen.js";
|
|
2
|
+
export type ServerOptions = {
|
|
3
|
+
hostname?: string;
|
|
4
|
+
port?: number;
|
|
5
|
+
signal?: AbortSignal;
|
|
6
|
+
timeout?: number;
|
|
7
|
+
config?: Config;
|
|
8
|
+
};
|
|
9
|
+
export type TuiOptions = {
|
|
10
|
+
project?: string;
|
|
11
|
+
model?: string;
|
|
12
|
+
session?: string;
|
|
13
|
+
agent?: string;
|
|
14
|
+
signal?: AbortSignal;
|
|
15
|
+
config?: Config;
|
|
16
|
+
};
|
|
17
|
+
export declare function createOpencodeServer(options?: ServerOptions): Promise<{
|
|
18
|
+
url: string;
|
|
19
|
+
close(): void;
|
|
20
|
+
}>;
|
|
21
|
+
export declare function createOpencodeTui(options?: TuiOptions): {
|
|
22
|
+
close(): void;
|
|
23
|
+
};
|