@cf-vibesdk/sdk 0.0.5 → 0.0.7
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 +4247 -67
- package/dist/index.js +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1046,8 +1046,8 @@ class VibeClient {
|
|
|
1046
1046
|
}
|
|
1047
1047
|
async connect(agentId, options = {}) {
|
|
1048
1048
|
const data = await this.http.fetchJson(`/api/agent/${agentId}/connect`, { method: "GET", headers: await this.http.headers() });
|
|
1049
|
-
if (!data.success) {
|
|
1050
|
-
throw new Error(data.error
|
|
1049
|
+
if (!data.success || !data.data) {
|
|
1050
|
+
throw new Error(data.error?.message ?? "Failed to connect to agent");
|
|
1051
1051
|
}
|
|
1052
1052
|
const start = {
|
|
1053
1053
|
agentId: data.data.agentId,
|
|
@@ -1062,7 +1062,7 @@ class VibeClient {
|
|
|
1062
1062
|
listPublic: async (query = {}) => {
|
|
1063
1063
|
const qs = toQueryString({
|
|
1064
1064
|
limit: query.limit,
|
|
1065
|
-
|
|
1065
|
+
offset: query.offset,
|
|
1066
1066
|
sort: query.sort,
|
|
1067
1067
|
order: query.order,
|
|
1068
1068
|
period: query.period,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cf-vibesdk/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "rm -rf ./dist && bun build ./src/index.ts --outdir ./dist --target browser",
|
|
22
|
-
"bundle-types": "dts-bundle-generator --export-referenced-types false --project ./tsconfig.protocol.json -o ./dist/index.d.ts ./src/index.ts",
|
|
22
|
+
"bundle-types": "dts-bundle-generator --export-referenced-types false --no-check --project ./tsconfig.protocol.json -o ./dist/index.d.ts ./src/index.ts && bun run scripts/expand-drizzle-types.ts",
|
|
23
23
|
"typecheck": "tsc -p ./tsconfig.json --noEmit",
|
|
24
24
|
"test": "bun test test/*.test.ts",
|
|
25
25
|
"test:integration": "bun test --timeout 600000 test/integration/*.test.ts"
|