@kevisual/cnb 0.0.19 → 0.0.20
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/opencode.js +6 -2
- package/dist/routes.d.ts +7 -0
- package/dist/routes.js +6 -2
- package/package.json +7 -6
- package/src/repo/index.ts +11 -1
package/dist/opencode.js
CHANGED
|
@@ -21444,7 +21444,7 @@ class InitEnv {
|
|
|
21444
21444
|
}
|
|
21445
21445
|
InitEnv.init();
|
|
21446
21446
|
|
|
21447
|
-
// node_modules/.pnpm/@kevisual+use-config@1.0.30_dotenv@17.2.
|
|
21447
|
+
// node_modules/.pnpm/@kevisual+use-config@1.0.30_dotenv@17.2.4/node_modules/@kevisual/use-config/dist/app.js
|
|
21448
21448
|
import { createRequire as createRequire2 } from "node:module";
|
|
21449
21449
|
import fs from "node:fs";
|
|
21450
21450
|
import path from "node:path";
|
|
@@ -22797,6 +22797,10 @@ class Repo extends CNBCore {
|
|
|
22797
22797
|
}
|
|
22798
22798
|
return this.get({ url: url2, params: _params });
|
|
22799
22799
|
}
|
|
22800
|
+
updateRepoInfo(repo, params) {
|
|
22801
|
+
const url2 = `/${repo}`;
|
|
22802
|
+
return this.patch({ url: url2, data: params });
|
|
22803
|
+
}
|
|
22800
22804
|
}
|
|
22801
22805
|
|
|
22802
22806
|
// src/user/index.ts
|
|
@@ -36591,7 +36595,7 @@ config3(en_default());
|
|
|
36591
36595
|
// node_modules/.pnpm/zod@4.3.6/node_modules/zod/index.js
|
|
36592
36596
|
var zod_default = exports_external;
|
|
36593
36597
|
|
|
36594
|
-
// node_modules/.pnpm/@opencode-ai+plugin@1.1.
|
|
36598
|
+
// node_modules/.pnpm/@opencode-ai+plugin@1.1.53/node_modules/@opencode-ai/plugin/dist/tool.js
|
|
36595
36599
|
function tool2(input) {
|
|
36596
36600
|
return input;
|
|
36597
36601
|
}
|
package/dist/routes.d.ts
CHANGED
|
@@ -297,7 +297,14 @@ declare class Repo extends CNBCore {
|
|
|
297
297
|
search?: string;
|
|
298
298
|
status?: 'active' | 'archived';
|
|
299
299
|
}): Promise<Result<RepoItem[]>>;
|
|
300
|
+
updateRepoInfo(repo: string, params: UpdateRepoInfo): Promise<any>;
|
|
300
301
|
}
|
|
302
|
+
type UpdateRepoInfo = {
|
|
303
|
+
description?: string;
|
|
304
|
+
license?: 'MIT' | 'Apache-2.0' | 'GPL-3.0' | 'Unlicense';
|
|
305
|
+
site?: string;
|
|
306
|
+
topics?: string[];
|
|
307
|
+
};
|
|
301
308
|
type CreateRepoData = {
|
|
302
309
|
description: string;
|
|
303
310
|
license?: 'MIT' | 'Apache-2.0' | 'GPL-3.0' | 'Unlicense';
|
package/dist/routes.js
CHANGED
|
@@ -21444,7 +21444,7 @@ class InitEnv {
|
|
|
21444
21444
|
}
|
|
21445
21445
|
InitEnv.init();
|
|
21446
21446
|
|
|
21447
|
-
// node_modules/.pnpm/@kevisual+use-config@1.0.30_dotenv@17.2.
|
|
21447
|
+
// node_modules/.pnpm/@kevisual+use-config@1.0.30_dotenv@17.2.4/node_modules/@kevisual/use-config/dist/app.js
|
|
21448
21448
|
import { createRequire as createRequire2 } from "node:module";
|
|
21449
21449
|
import fs from "node:fs";
|
|
21450
21450
|
import path from "node:path";
|
|
@@ -22797,6 +22797,10 @@ class Repo extends CNBCore {
|
|
|
22797
22797
|
}
|
|
22798
22798
|
return this.get({ url: url2, params: _params });
|
|
22799
22799
|
}
|
|
22800
|
+
updateRepoInfo(repo, params) {
|
|
22801
|
+
const url2 = `/${repo}`;
|
|
22802
|
+
return this.patch({ url: url2, data: params });
|
|
22803
|
+
}
|
|
22800
22804
|
}
|
|
22801
22805
|
|
|
22802
22806
|
// src/user/index.ts
|
|
@@ -36591,7 +36595,7 @@ config3(en_default());
|
|
|
36591
36595
|
// node_modules/.pnpm/zod@4.3.6/node_modules/zod/index.js
|
|
36592
36596
|
var zod_default = exports_external;
|
|
36593
36597
|
|
|
36594
|
-
// node_modules/.pnpm/@opencode-ai+plugin@1.1.
|
|
36598
|
+
// node_modules/.pnpm/@opencode-ai+plugin@1.1.53/node_modules/@opencode-ai/plugin/dist/tool.js
|
|
36595
36599
|
function tool2(input) {
|
|
36596
36600
|
return input;
|
|
36597
36601
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kevisual/cnb",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -16,19 +16,20 @@
|
|
|
16
16
|
],
|
|
17
17
|
"author": "abearxiong <xiongxiao@xiongxiao.me> (https://www.xiongxiao.me)",
|
|
18
18
|
"license": "MIT",
|
|
19
|
-
"packageManager": "pnpm@10.
|
|
19
|
+
"packageManager": "pnpm@10.29.1",
|
|
20
20
|
"type": "module",
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@kevisual/ai": "^0.0.24",
|
|
23
23
|
"@kevisual/code-builder": "^0.0.6",
|
|
24
|
+
"@kevisual/dts": "^0.0.3",
|
|
24
25
|
"@kevisual/context": "^0.0.4",
|
|
25
26
|
"@kevisual/types": "^0.0.12",
|
|
26
|
-
"@opencode-ai/plugin": "^1.1.
|
|
27
|
+
"@opencode-ai/plugin": "^1.1.53",
|
|
27
28
|
"@types/bun": "^1.3.8",
|
|
28
|
-
"@types/node": "^25.2.
|
|
29
|
+
"@types/node": "^25.2.2",
|
|
29
30
|
"@types/ws": "^8.18.1",
|
|
30
31
|
"dayjs": "^1.11.19",
|
|
31
|
-
"dotenv": "^17.2.
|
|
32
|
+
"dotenv": "^17.2.4"
|
|
32
33
|
},
|
|
33
34
|
"publishConfig": {
|
|
34
35
|
"access": "public"
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
"zod": "^4.3.6"
|
|
38
39
|
},
|
|
39
40
|
"dependencies": {
|
|
40
|
-
"@kevisual/query": "^0.0.
|
|
41
|
+
"@kevisual/query": "^0.0.40",
|
|
41
42
|
"@kevisual/router": "^0.0.70",
|
|
42
43
|
"@kevisual/use-config": "^1.0.30",
|
|
43
44
|
"es-toolkit": "^1.44.0",
|
package/src/repo/index.ts
CHANGED
|
@@ -95,11 +95,21 @@ export class Repo extends CNBCore {
|
|
|
95
95
|
page: params.page || 1,
|
|
96
96
|
page_size: params.page_size || 999,
|
|
97
97
|
}
|
|
98
|
-
if(!_params.search) {
|
|
98
|
+
if (!_params.search) {
|
|
99
99
|
delete _params.search;
|
|
100
100
|
}
|
|
101
101
|
return this.get({ url, params: _params });
|
|
102
102
|
}
|
|
103
|
+
updateRepoInfo(repo: string, params: UpdateRepoInfo): Promise<any> {
|
|
104
|
+
const url = `/${repo}`;
|
|
105
|
+
return this.patch({ url, data: params });
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
type UpdateRepoInfo = {
|
|
109
|
+
description?: string;
|
|
110
|
+
license?: 'MIT' | 'Apache-2.0' | 'GPL-3.0' | 'Unlicense';
|
|
111
|
+
site?: string;
|
|
112
|
+
topics?: string[];
|
|
103
113
|
}
|
|
104
114
|
|
|
105
115
|
type CreateRepoData = {
|