@aiti-ai/aiti-git-review 0.2.10 → 0.2.12
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/README.md +2 -3
- package/README.zh-CN.md +2 -3
- package/client/src/entry.tsx +5 -0
- package/client/src/task-picker.tsx +5 -1
- package/dist/aiti-git-review-client.mjs +814 -125
- package/icon.svg +1 -1
- package/index.ts +110 -16
- package/lib/ai-commit.test.mjs +91 -5
- package/lib/ai-commit.ts +175 -20
- package/lib/late-result.test.mjs +71 -0
- package/lib/late-result.ts +105 -0
- package/package.json +12 -3
- package/vite.config.ts +4 -0
package/README.md
CHANGED
|
@@ -6,10 +6,9 @@ English · [简体中文](./README.zh-CN.md)
|
|
|
6
6
|
|
|
7
7
|
## About aiti
|
|
8
8
|
|
|
9
|
-
This package is part of the **aiti** ecosystem — a personal AI development workbench powered by [pi](https://pi.dev): **aiti-agent** (a self-hosted web workbench built on the open-source [pi-web](https://github.com/aiti-ai/
|
|
9
|
+
This package is part of the **aiti** ecosystem — a personal AI development workbench powered by [pi](https://pi.dev): **aiti-agent** (a self-hosted web workbench built on the open-source [pi-web](https://github.com/aiti-ai/aiti-ai)) plus debug injection into mainstream dev tools (aiti-devtools) and a rich extension system.
|
|
10
10
|
|
|
11
|
-
- Workbench
|
|
12
|
-
- Ecosystem monorepo: <https://github.com/aiti-ai/aiti-ai>
|
|
11
|
+
- Workbench & monorepo: <https://github.com/aiti-ai/aiti-ai>
|
|
13
12
|
- Site: <https://aiti.pw>
|
|
14
13
|
|
|
15
14
|
Category: Developer tools · Tags: `git` · `review` · `diff` · `monaco` · `annotation` · `pre-review`
|
package/README.zh-CN.md
CHANGED
|
@@ -6,10 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
## 关于 aiti
|
|
8
8
|
|
|
9
|
-
本包是 **aiti** 生态的组成部分——以 [pi](https://pi.dev) 为引擎的个人 AI 开发工作台与本地调试注入生态:**aiti-agent**(自托管 Web 工作台,基于开源项目 [pi-web](https://github.com/aiti-ai/
|
|
9
|
+
本包是 **aiti** 生态的组成部分——以 [pi](https://pi.dev) 为引擎的个人 AI 开发工作台与本地调试注入生态:**aiti-agent**(自托管 Web 工作台,基于开源项目 [pi-web](https://github.com/aiti-ai/aiti-ai) 构建,浏览器为主操作面)+ 各开发工具内的调试注入(aiti-devtools)+ 丰富的扩展体系。
|
|
10
10
|
|
|
11
|
-
-
|
|
12
|
-
- 生态仓库: <https://github.com/aiti-ai/aiti-ai>
|
|
11
|
+
- 工作台 / 生态仓库(aiti-agent,基于 pi-web): <https://github.com/aiti-ai/aiti-ai>
|
|
13
12
|
- 官网: <https://aiti.pw>
|
|
14
13
|
|
|
15
14
|
分类: 开发工具 · tags: `git` · `review` · `diff` · `monaco` · `annotation` · `pre-review`
|
package/client/src/entry.tsx
CHANGED
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
* 构建:node tools/build-client.mjs (或 npm run build:client)
|
|
10
10
|
*/
|
|
11
11
|
import { __setCtx, apiUrl } from "./host-shim";
|
|
12
|
+
// aiti-folder client components are inlined here (WorkspaceDropdown in the task picker) and
|
|
13
|
+
// carry their own host-shim copy — hand it the same ctx so their apiUrl (basePath) and i18n
|
|
14
|
+
// resolve against this extension's runtime instead of falling back to defaults.
|
|
15
|
+
import { __setCtx as setAitiFolderCtx } from "../../../aiti-folder/client/src/host-shim";
|
|
12
16
|
import { seedDockDefault } from "../../../_shared/ext-float-dock";
|
|
13
17
|
import { api, G, setGRCtx } from "./shared";
|
|
14
18
|
import { openFromToolbar, ReviewWork, DockReviewWork, GrEyeIcon } from "./git-review-app";
|
|
@@ -18,6 +22,7 @@ export default function register(ctx: Record<string, any>) {
|
|
|
18
22
|
seedDockDefault("aiti-git-review:workspace", "right-panel");
|
|
19
23
|
// 重要:必须在任何 JSX 组件渲染前调用(host-shim 模块级持 ctx)
|
|
20
24
|
__setCtx(ctx);
|
|
25
|
+
setAitiFolderCtx(ctx);
|
|
21
26
|
setGRCtx(ctx);
|
|
22
27
|
|
|
23
28
|
// 懒加载 v2 M3批②:声明式条目(无 render)
|
|
@@ -11,6 +11,7 @@ import { dedupeFetch } from "../../../_shared/dedupe-fetch";
|
|
|
11
11
|
import { api, jsonBody, G, lastSeg, statusIcon, statusColor, overlay, pickerCard, segBtn, segOn, btnPrimary } from "./shared";
|
|
12
12
|
// aiti-folder 工作区切换器(与 session-manager 同法:构建期内联复用同一组件)
|
|
13
13
|
import { WorkspaceDropdown } from "../../../aiti-folder/client/src/folder-switcher";
|
|
14
|
+
import { isDirectoryPickerTarget } from "../../../_shared/directory-picker-dom";
|
|
14
15
|
import { displayCwd } from "../../../aiti-folder/client/src/lib";
|
|
15
16
|
|
|
16
17
|
/** 版本选项(分支/tag/远程) */
|
|
@@ -237,7 +238,10 @@ export function TaskPicker({ onClose, onOpenTask, presetRepo, fallbackRepo, onDo
|
|
|
237
238
|
}, []);
|
|
238
239
|
useEffect(() => {
|
|
239
240
|
if (!wsOpen) return;
|
|
240
|
-
const h = (e: MouseEvent) => {
|
|
241
|
+
const h = (e: MouseEvent) => {
|
|
242
|
+
// The picker dialog is portaled to <body>; a press inside it is not "outside" this switcher.
|
|
243
|
+
if (wsBoxRef.current && !wsBoxRef.current.contains(e.target as Node) && !isDirectoryPickerTarget(e.target)) setWsOpen(false);
|
|
244
|
+
};
|
|
241
245
|
document.addEventListener("mousedown", h);
|
|
242
246
|
return () => document.removeEventListener("mousedown", h);
|
|
243
247
|
}, [wsOpen]);
|