@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/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 | null>;
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;