@kevisual/cnb 0.0.69 → 0.0.70

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kevisual/cnb",
3
- "version": "0.0.69",
3
+ "version": "0.0.70",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "basename": "/root/cnb",
@@ -33,7 +33,7 @@
33
33
  "packageManager": "pnpm@10.33.0",
34
34
  "type": "module",
35
35
  "devDependencies": {
36
- "@ai-sdk/openai-compatible": "^2.0.38",
36
+ "@ai-sdk/openai-compatible": "^2.0.41",
37
37
  "@kevisual/ai": "^0.0.30",
38
38
  "@kevisual/api": "^0.0.66",
39
39
  "@kevisual/code-builder": "^0.0.7",
@@ -41,11 +41,11 @@
41
41
  "@kevisual/dts": "^0.0.4",
42
42
  "@kevisual/remote-app": "^0.0.7",
43
43
  "@kevisual/types": "^0.0.12",
44
- "@opencode-ai/plugin": "^1.3.17",
44
+ "@opencode-ai/plugin": "^1.4.0",
45
45
  "@types/bun": "^1.3.11",
46
46
  "@types/node": "^25.5.2",
47
47
  "@types/ws": "^8.18.1",
48
- "ai": "^6.0.146",
48
+ "ai": "^6.0.153",
49
49
  "commander": "^14.0.3",
50
50
  "dayjs": "^1.11.20",
51
51
  "dotenv": "^17.4.1",
@@ -62,7 +62,7 @@
62
62
  "@kevisual/query": "^0.0.55",
63
63
  "@kevisual/router": "^0.2.5",
64
64
  "@kevisual/use-config": "^1.0.30",
65
- "@opencode-ai/sdk": "^1.3.17",
65
+ "@opencode-ai/sdk": "^1.4.0",
66
66
  "es-toolkit": "^1.45.1",
67
67
  "form-data": "^4.0.5",
68
68
  "nanoid": "^5.1.7",
package/src/cnb-git.ts ADDED
@@ -0,0 +1 @@
1
+ // https://rest2git.kevisuasl.cn/
package/src/repo/index.ts CHANGED
@@ -90,16 +90,16 @@ export class Repo extends CNBCore {
90
90
  const url = `/${repo}/-/upload/files`
91
91
  return this.post({ url, data });
92
92
  }
93
- async getLastCommit(repo: string, opts?: RequestOptions): Promise<Result<CommitInfo>> {
93
+ async getLastCommit(repo: string, opts?: RequestOptions): Promise<Result<CommitInfo| null>> {
94
94
  const res = await this.getCommitList(repo, { page: 1, page_size: 1 }, opts);
95
95
  let commitList: CommitInfo[] = [];
96
96
  if (res.code === 200) {
97
- commitList = res.data;
97
+ commitList = res.data!;
98
98
  }
99
99
  return {
100
100
  code: res.code,
101
101
  message: res.message,
102
- data: commitList.length > 0 ? commitList[0] : null,
102
+ data: commitList.length > 0 ? commitList[0]! : null,
103
103
  }
104
104
  }
105
105
  getCommitList(repo: string, params?: { author?: string, commiter?: string, page?: number, page_size?: number, sha?: string, since?: string, until?: string }, opts?: RequestOptions): Promise<Result<CommitInfo[]>> {
package/dist/a/a.txt DELETED
@@ -1 +0,0 @@
1
- abc