@kevisual/cnb 0.0.69 → 0.0.71
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/agent/app.ts +3 -1
- package/agent/modules/cnb-manager.ts +8 -5
- package/dist/cli-live.js +24 -42
- package/dist/cli.js +435 -584
- package/dist/keep.js +16 -34
- package/dist/npc.js +429 -577
- package/dist/opencode.js +430 -579
- package/dist/routes.d.ts +3 -2
- package/dist/routes.js +417 -566
- package/package.json +9 -8
- package/src/cnb-git.ts +1 -0
- package/src/repo/download.ts +46 -0
- package/src/repo/index.ts +3 -3
- package/dist/a/a.txt +0 -1
package/dist/routes.d.ts
CHANGED
|
@@ -369,7 +369,7 @@ declare class Repo extends CNBCore {
|
|
|
369
369
|
path?: string;
|
|
370
370
|
size?: number;
|
|
371
371
|
}): Promise<any>;
|
|
372
|
-
getLastCommit(repo: string, opts?: RequestOptions): Promise<Result<CommitInfo>>;
|
|
372
|
+
getLastCommit(repo: string, opts?: RequestOptions): Promise<Result<CommitInfo | null>>;
|
|
373
373
|
getCommitList(repo: string, params?: {
|
|
374
374
|
author?: string;
|
|
375
375
|
commiter?: string;
|
|
@@ -2026,6 +2026,7 @@ type CNBItem = {
|
|
|
2026
2026
|
owner?: boolean;
|
|
2027
2027
|
cnb: CNB;
|
|
2028
2028
|
cnbAi: ReturnType<typeof createOpenAICompatible>;
|
|
2029
|
+
aiRepo?: string;
|
|
2029
2030
|
};
|
|
2030
2031
|
declare class CNBManager {
|
|
2031
2032
|
cnbMap: Map<string, CNBItem>;
|
|
@@ -2041,7 +2042,7 @@ declare class CNBManager {
|
|
|
2041
2042
|
* @returns CNB 实例
|
|
2042
2043
|
*/
|
|
2043
2044
|
getContext(ctx: any): Promise<CNB>;
|
|
2044
|
-
getCNBItem(ctx: any): Promise<CNBItem
|
|
2045
|
+
getCNBItem(ctx: any): Promise<CNBItem>;
|
|
2045
2046
|
addCNB(opts: Partial<CNBItem>): CNBItem;
|
|
2046
2047
|
clearExpiredCNB(expireTime?: number): void;
|
|
2047
2048
|
clearUsername(username: string): void;
|