@bryanhu/codexly 0.15.0 → 0.16.0
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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/dist/{chunk-47AJCGF6.js → chunk-HUKDTKO6.js} +21 -20
- package/dist/cli.js +2 -2
- package/dist/server/index.js +1 -1
- package/dist/web/.vite/manifest.json +61 -61
- package/dist/web/.vite/manifest.json.br +0 -0
- package/dist/web/.vite/manifest.json.gz +0 -0
- package/dist/web/assets/{button-group-BXsWRHx1.js → button-group-DxD1cvNd.js} +1 -1
- package/dist/web/assets/button-group-DxD1cvNd.js.br +0 -0
- package/dist/web/assets/button-group-DxD1cvNd.js.gz +0 -0
- package/dist/web/assets/{context-menu-D28EIDXC.js → context-menu-BxBZqph_.js} +1 -1
- package/dist/web/assets/context-menu-BxBZqph_.js.br +0 -0
- package/dist/web/assets/context-menu-BxBZqph_.js.gz +0 -0
- package/dist/web/assets/{file-review-dialog-D5uAITDY.js → file-review-dialog-4yb5qYp1.js} +1 -1
- package/dist/web/assets/file-review-dialog-4yb5qYp1.js.br +0 -0
- package/dist/web/assets/file-review-dialog-4yb5qYp1.js.gz +0 -0
- package/dist/web/assets/{git-history-panel-CJ0YniVw.js → git-history-panel-CLWc1FLl.js} +1 -1
- package/dist/web/assets/git-history-panel-CLWc1FLl.js.br +0 -0
- package/dist/web/assets/git-history-panel-CLWc1FLl.js.gz +0 -0
- package/dist/web/assets/{global-settings-dialog-DxUssxBm.js → global-settings-dialog-CzBgDgzH.js} +1 -1
- package/dist/web/assets/global-settings-dialog-CzBgDgzH.js.br +0 -0
- package/dist/web/assets/global-settings-dialog-CzBgDgzH.js.gz +0 -0
- package/dist/web/assets/index-CROvcy96.css +2 -0
- package/dist/web/assets/index-CROvcy96.css.br +0 -0
- package/dist/web/assets/index-CROvcy96.css.gz +0 -0
- package/dist/web/assets/{index-DU2EMreA.js → index-DuOx_QDa.js} +3 -3
- package/dist/web/assets/index-DuOx_QDa.js.br +0 -0
- package/dist/web/assets/index-DuOx_QDa.js.gz +0 -0
- package/dist/web/assets/{installed-skills-pane-B2bwKvYB.js → installed-skills-pane-yQ22YClZ.js} +1 -1
- package/dist/web/assets/installed-skills-pane-yQ22YClZ.js.br +0 -0
- package/dist/web/assets/installed-skills-pane-yQ22YClZ.js.gz +0 -0
- package/dist/web/assets/{lazy-message-response-CD-7ydp6.js → lazy-message-response-DxkPeKeK.js} +2 -2
- package/dist/web/assets/lazy-message-response-DxkPeKeK.js.br +0 -0
- package/dist/web/assets/lazy-message-response-DxkPeKeK.js.gz +0 -0
- package/dist/web/assets/{mcp-management-pane-Bu90n81z.js → mcp-management-pane-fBs42kaN.js} +1 -1
- package/dist/web/assets/mcp-management-pane-fBs42kaN.js.br +0 -0
- package/dist/web/assets/mcp-management-pane-fBs42kaN.js.gz +0 -0
- package/dist/web/assets/{message-response-4TUNdrGf.js → message-response-BSFnyRiN.js} +1 -1
- package/dist/web/assets/message-response-BSFnyRiN.js.br +0 -0
- package/dist/web/assets/message-response-BSFnyRiN.js.gz +0 -0
- package/dist/web/assets/{official-plugins-pane-BAplGO76.js → official-plugins-pane-DL3I574g.js} +1 -1
- package/dist/web/assets/official-plugins-pane-DL3I574g.js.br +0 -0
- package/dist/web/assets/official-plugins-pane-DL3I574g.js.gz +0 -0
- package/dist/web/assets/{project-file-popup-page-Dad56YW6.js → project-file-popup-page-D7w0o_EU.js} +1 -1
- package/dist/web/assets/project-file-popup-page-D7w0o_EU.js.br +0 -0
- package/dist/web/assets/project-file-popup-page-D7w0o_EU.js.gz +0 -0
- package/dist/web/assets/{project-source-panel-DdnLauha.js → project-source-panel-m_xiBT3O.js} +1 -1
- package/dist/web/assets/project-source-panel-m_xiBT3O.js.br +0 -0
- package/dist/web/assets/project-source-panel-m_xiBT3O.js.gz +0 -0
- package/dist/web/assets/prompt-input-BHBgVKPB.js +1 -0
- package/dist/web/assets/prompt-input-BHBgVKPB.js.br +0 -0
- package/dist/web/assets/prompt-input-BHBgVKPB.js.gz +0 -0
- package/dist/web/assets/{prompt-input-controls-Bu3i8AYj.js → prompt-input-controls-BZ7R1d1q.js} +1 -1
- package/dist/web/assets/prompt-input-controls-BZ7R1d1q.js.br +0 -0
- package/dist/web/assets/prompt-input-controls-BZ7R1d1q.js.gz +0 -0
- package/dist/web/assets/{scheduled-task-date-time-picker-DbSm8_GZ.js → scheduled-task-date-time-picker-CLz7pymx.js} +1 -1
- package/dist/web/assets/scheduled-task-date-time-picker-CLz7pymx.js.br +0 -0
- package/dist/web/assets/scheduled-task-date-time-picker-CLz7pymx.js.gz +0 -0
- package/dist/web/assets/{scheduled-tasks-container-mdJsjyAO.js → scheduled-tasks-container-DGrcqBWt.js} +2 -2
- package/dist/web/assets/scheduled-tasks-container-DGrcqBWt.js.br +0 -0
- package/dist/web/assets/scheduled-tasks-container-DGrcqBWt.js.gz +0 -0
- package/dist/web/assets/{sheet-fQvy64oz.js → sheet-BD5Iohov.js} +1 -1
- package/dist/web/assets/sheet-BD5Iohov.js.br +0 -0
- package/dist/web/assets/sheet-BD5Iohov.js.gz +0 -0
- package/dist/web/assets/{skills-market-container-D6fr7HYq.js → skills-market-container-E47PiSfc.js} +2 -2
- package/dist/web/assets/skills-market-container-E47PiSfc.js.br +0 -0
- package/dist/web/assets/skills-market-container-E47PiSfc.js.gz +0 -0
- package/dist/web/assets/{third-party-marketplace-pane-DH6UbCFu.js → third-party-marketplace-pane-BYKLDRVH.js} +1 -1
- package/dist/web/assets/third-party-marketplace-pane-BYKLDRVH.js.br +0 -0
- package/dist/web/assets/third-party-marketplace-pane-BYKLDRVH.js.gz +0 -0
- package/dist/web/assets/workbench-composer-DWYJJS3y.js +10 -0
- package/dist/web/assets/workbench-composer-DWYJJS3y.js.br +0 -0
- package/dist/web/assets/workbench-composer-DWYJJS3y.js.gz +0 -0
- package/dist/web/assets/{workbench-inspector-changes-DB14OhYw.js → workbench-inspector-changes-DS6N-4Ob.js} +1 -1
- package/dist/web/assets/workbench-inspector-changes-DS6N-4Ob.js.br +0 -0
- package/dist/web/assets/workbench-inspector-changes-DS6N-4Ob.js.gz +0 -0
- package/dist/web/assets/{workbench-pet-canvas-B8-i2EYj.js → workbench-pet-canvas-DdVnx74p.js} +1 -1
- package/dist/web/assets/workbench-pet-canvas-DdVnx74p.js.br +0 -0
- package/dist/web/assets/workbench-pet-canvas-DdVnx74p.js.gz +0 -0
- package/dist/web/assets/{workbench-shell-BqIxxcmn.js → workbench-shell-DXDRW3gW.js} +3 -3
- package/dist/web/assets/workbench-shell-DXDRW3gW.js.br +0 -0
- package/dist/web/assets/workbench-shell-DXDRW3gW.js.gz +0 -0
- package/dist/web/index.html +2 -2
- package/dist/web/index.html.br +0 -0
- package/dist/web/index.html.gz +0 -0
- package/package.json +1 -1
- package/dist/web/assets/button-group-BXsWRHx1.js.br +0 -0
- package/dist/web/assets/button-group-BXsWRHx1.js.gz +0 -0
- package/dist/web/assets/context-menu-D28EIDXC.js.br +0 -0
- package/dist/web/assets/context-menu-D28EIDXC.js.gz +0 -0
- package/dist/web/assets/file-review-dialog-D5uAITDY.js.br +0 -0
- package/dist/web/assets/file-review-dialog-D5uAITDY.js.gz +0 -0
- package/dist/web/assets/git-history-panel-CJ0YniVw.js.br +0 -0
- package/dist/web/assets/git-history-panel-CJ0YniVw.js.gz +0 -0
- package/dist/web/assets/global-settings-dialog-DxUssxBm.js.br +0 -0
- package/dist/web/assets/global-settings-dialog-DxUssxBm.js.gz +0 -0
- package/dist/web/assets/index-BfZBHCrX.css +0 -2
- package/dist/web/assets/index-BfZBHCrX.css.br +0 -0
- package/dist/web/assets/index-BfZBHCrX.css.gz +0 -0
- package/dist/web/assets/index-DU2EMreA.js.br +0 -0
- package/dist/web/assets/index-DU2EMreA.js.gz +0 -0
- package/dist/web/assets/installed-skills-pane-B2bwKvYB.js.br +0 -0
- package/dist/web/assets/installed-skills-pane-B2bwKvYB.js.gz +0 -0
- package/dist/web/assets/lazy-message-response-CD-7ydp6.js.br +0 -0
- package/dist/web/assets/lazy-message-response-CD-7ydp6.js.gz +0 -0
- package/dist/web/assets/mcp-management-pane-Bu90n81z.js.br +0 -0
- package/dist/web/assets/mcp-management-pane-Bu90n81z.js.gz +0 -0
- package/dist/web/assets/message-response-4TUNdrGf.js.br +0 -0
- package/dist/web/assets/message-response-4TUNdrGf.js.gz +0 -0
- package/dist/web/assets/official-plugins-pane-BAplGO76.js.br +0 -0
- package/dist/web/assets/official-plugins-pane-BAplGO76.js.gz +0 -0
- package/dist/web/assets/project-file-popup-page-Dad56YW6.js.br +0 -0
- package/dist/web/assets/project-file-popup-page-Dad56YW6.js.gz +0 -0
- package/dist/web/assets/project-source-panel-DdnLauha.js.br +0 -0
- package/dist/web/assets/project-source-panel-DdnLauha.js.gz +0 -0
- package/dist/web/assets/prompt-input-BLHOBOyz.js +0 -1
- package/dist/web/assets/prompt-input-BLHOBOyz.js.br +0 -0
- package/dist/web/assets/prompt-input-BLHOBOyz.js.gz +0 -0
- package/dist/web/assets/prompt-input-controls-Bu3i8AYj.js.br +0 -0
- package/dist/web/assets/prompt-input-controls-Bu3i8AYj.js.gz +0 -0
- package/dist/web/assets/scheduled-task-date-time-picker-DbSm8_GZ.js.br +0 -0
- package/dist/web/assets/scheduled-task-date-time-picker-DbSm8_GZ.js.gz +0 -0
- package/dist/web/assets/scheduled-tasks-container-mdJsjyAO.js.br +0 -0
- package/dist/web/assets/scheduled-tasks-container-mdJsjyAO.js.gz +0 -0
- package/dist/web/assets/sheet-fQvy64oz.js.br +0 -0
- package/dist/web/assets/sheet-fQvy64oz.js.gz +0 -0
- package/dist/web/assets/skills-market-container-D6fr7HYq.js.br +0 -0
- package/dist/web/assets/skills-market-container-D6fr7HYq.js.gz +0 -0
- package/dist/web/assets/third-party-marketplace-pane-DH6UbCFu.js.br +0 -0
- package/dist/web/assets/third-party-marketplace-pane-DH6UbCFu.js.gz +0 -0
- package/dist/web/assets/workbench-composer-CB04rkAG.js +0 -10
- package/dist/web/assets/workbench-composer-CB04rkAG.js.br +0 -0
- package/dist/web/assets/workbench-composer-CB04rkAG.js.gz +0 -0
- package/dist/web/assets/workbench-inspector-changes-DB14OhYw.js.br +0 -0
- package/dist/web/assets/workbench-inspector-changes-DB14OhYw.js.gz +0 -0
- package/dist/web/assets/workbench-pet-canvas-B8-i2EYj.js.br +0 -0
- package/dist/web/assets/workbench-pet-canvas-B8-i2EYj.js.gz +0 -0
- package/dist/web/assets/workbench-shell-BqIxxcmn.js.br +0 -0
- package/dist/web/assets/workbench-shell-BqIxxcmn.js.gz +0 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
- Run project or temporary Codex tasks and follow responses, commands, and file changes in real time
|
|
40
40
|
- Keep follow-up work in a persistent task queue, and edit queued messages and attachments before they run
|
|
41
41
|
- Track active work on a task board, maintain project to-dos, and schedule persistent one-time or recurring tasks
|
|
42
|
-
- Attach files and images, reference project files with `@`, answer MCP input requests, and ask or dismiss asynchronous questions while a task runs
|
|
42
|
+
- Attach files and images from the current device or deployment host, reference project files with `@`, answer MCP input requests, and ask or dismiss asynchronous questions while a task runs
|
|
43
43
|
- Choose the model, reasoning effort, Fast mode, approval behavior, and file access level for each task
|
|
44
44
|
- Manage installed Skills, official Plugins, MCP servers, and compatible third-party Skills from ClawHub in one extension center
|
|
45
45
|
- Organize ordered multi-root projects, archive project or temporary tasks, and permanently delete tasks when needed
|
package/README.zh-CN.md
CHANGED
|
@@ -9,7 +9,7 @@ Codexly 是一个在浏览器中使用 Codex 的本地 AI 编程工作台。它
|
|
|
9
9
|
- 运行项目任务或临时任务,实时查看回复、命令和文件变更
|
|
10
10
|
- 使用持久化任务队列安排后续工作,并在执行前编辑排队消息和附件
|
|
11
11
|
- 使用任务看板跟踪进行中的工作、维护项目待办,并创建持久化的一次性或周期定时任务
|
|
12
|
-
-
|
|
12
|
+
- 从当前设备或部署主机添加文件与图片、使用 `@` 引用项目文件、回答 MCP 补充输入请求,并在任务执行期间发起或关闭异步问题
|
|
13
13
|
- 为每个任务选择模型、思考量、快速模式、审批方式和文件访问范围
|
|
14
14
|
- 在扩展中心统一管理已安装 Skills、官方 Plugins、MCP Servers,以及来自 ClawHub 的兼容第三方 Skills
|
|
15
15
|
- 组织有序的多根项目、归档项目或临时任务,并按需永久删除任务
|
|
@@ -42262,9 +42262,9 @@ var require_main = __commonJS({
|
|
|
42262
42262
|
}
|
|
42263
42263
|
});
|
|
42264
42264
|
|
|
42265
|
-
// node_modules/.pnpm/@fastify+multipart@10.1.
|
|
42265
|
+
// node_modules/.pnpm/@fastify+multipart@10.1.1/node_modules/@fastify/multipart/lib/generateId.js
|
|
42266
42266
|
var require_generateId = __commonJS({
|
|
42267
|
-
"node_modules/.pnpm/@fastify+multipart@10.1.
|
|
42267
|
+
"node_modules/.pnpm/@fastify+multipart@10.1.1/node_modules/@fastify/multipart/lib/generateId.js"(exports, module) {
|
|
42268
42268
|
var HEX = [
|
|
42269
42269
|
"00",
|
|
42270
42270
|
"01",
|
|
@@ -42537,9 +42537,9 @@ var require_generateId = __commonJS({
|
|
|
42537
42537
|
}
|
|
42538
42538
|
});
|
|
42539
42539
|
|
|
42540
|
-
// node_modules/.pnpm/@fastify+multipart@10.1.
|
|
42540
|
+
// node_modules/.pnpm/@fastify+multipart@10.1.1/node_modules/@fastify/multipart/lib/stream-consumer.js
|
|
42541
42541
|
var require_stream_consumer = __commonJS({
|
|
42542
|
-
"node_modules/.pnpm/@fastify+multipart@10.1.
|
|
42542
|
+
"node_modules/.pnpm/@fastify+multipart@10.1.1/node_modules/@fastify/multipart/lib/stream-consumer.js"(exports, module) {
|
|
42543
42543
|
module.exports = function streamToNull(stream) {
|
|
42544
42544
|
return new Promise((resolve8, reject) => {
|
|
42545
42545
|
stream.on("data", () => {
|
|
@@ -42698,9 +42698,9 @@ var require_deepmerge = __commonJS({
|
|
|
42698
42698
|
}
|
|
42699
42699
|
});
|
|
42700
42700
|
|
|
42701
|
-
// node_modules/.pnpm/@fastify+multipart@10.1.
|
|
42701
|
+
// node_modules/.pnpm/@fastify+multipart@10.1.1/node_modules/@fastify/multipart/index.js
|
|
42702
42702
|
var require_multipart2 = __commonJS({
|
|
42703
|
-
"node_modules/.pnpm/@fastify+multipart@10.1.
|
|
42703
|
+
"node_modules/.pnpm/@fastify+multipart@10.1.1/node_modules/@fastify/multipart/index.js"(exports, module) {
|
|
42704
42704
|
var Busboy = require_main();
|
|
42705
42705
|
var os = __require("os");
|
|
42706
42706
|
var fp = require_fastify_plugin();
|
|
@@ -43045,7 +43045,6 @@ var require_multipart2 = __commonJS({
|
|
|
43045
43045
|
}
|
|
43046
43046
|
function onError2(err2) {
|
|
43047
43047
|
lastError = err2;
|
|
43048
|
-
currentFile = null;
|
|
43049
43048
|
}
|
|
43050
43049
|
function onRequestClose() {
|
|
43051
43050
|
if (!request2.readableEnded) {
|
|
@@ -43078,23 +43077,25 @@ var require_multipart2 = __commonJS({
|
|
|
43078
43077
|
const tmpdir3 = options2?.tmpdir || os.tmpdir();
|
|
43079
43078
|
this.tmpUploads = [];
|
|
43080
43079
|
let i2 = 0;
|
|
43081
|
-
|
|
43082
|
-
|
|
43083
|
-
|
|
43084
|
-
|
|
43085
|
-
|
|
43086
|
-
|
|
43087
|
-
|
|
43088
|
-
|
|
43080
|
+
let target;
|
|
43081
|
+
try {
|
|
43082
|
+
for await (const part of parts) {
|
|
43083
|
+
values = part.fields;
|
|
43084
|
+
if (!part.file) {
|
|
43085
|
+
continue;
|
|
43086
|
+
}
|
|
43087
|
+
const filepath = path.join(tmpdir3, generateId() + path.extname(part.filename || "file" + i2++));
|
|
43088
|
+
target = createWriteStream2(filepath);
|
|
43089
43089
|
this.tmpUploads.push(filepath);
|
|
43090
43090
|
await pump(part.file, target);
|
|
43091
|
+
target = null;
|
|
43091
43092
|
this.savedRequestFiles.push({ ...part, filepath });
|
|
43092
|
-
} catch (err2) {
|
|
43093
|
-
target.destroy();
|
|
43094
|
-
await this.cleanRequestFiles();
|
|
43095
|
-
this.log.error({ err: err2 }, "save request file");
|
|
43096
|
-
throw err2;
|
|
43097
43093
|
}
|
|
43094
|
+
} catch (err2) {
|
|
43095
|
+
target?.destroy();
|
|
43096
|
+
await this.cleanRequestFiles();
|
|
43097
|
+
this.log.error({ err: err2 }, "save request file");
|
|
43098
|
+
throw err2;
|
|
43098
43099
|
}
|
|
43099
43100
|
this[kSavedRequestFilesResult] = {
|
|
43100
43101
|
files: this.savedRequestFiles,
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { createCodexlyServer, SqliteStateRepository, normalizeAllowedHost } from './chunk-
|
|
3
|
+
import { createCodexlyServer, SqliteStateRepository, normalizeAllowedHost } from './chunk-HUKDTKO6.js';
|
|
4
4
|
import './chunk-I74DBIGI.js';
|
|
5
5
|
import { startCodexAppServer, locateCodexBinary, createCodexRuntimeProvider, createCodexWorkbenchPetProvider, CodexProjectRepository, checkCodexVersion } from './chunk-PJNYCTFC.js';
|
|
6
6
|
import './chunk-RNTA4MFS.js';
|
|
@@ -19,7 +19,7 @@ createRequire(import.meta.url);
|
|
|
19
19
|
|
|
20
20
|
// package.json
|
|
21
21
|
var package_default = {
|
|
22
|
-
version: "0.
|
|
22
|
+
version: "0.16.0"};
|
|
23
23
|
|
|
24
24
|
// src/npm-registry.ts
|
|
25
25
|
var MIRROR_REGISTRY = "https://registry.npmmirror.com";
|
package/dist/server/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';
|
|
2
|
-
export { AccessSessionService, AgentEventStream, GitCommitError, GitCommitReviewError, SqliteStateRepository, commitSelectedProjectChanges, createCodexlyServer, normalizeAllowedHost, readProjectGitCommitFileDiff, readProjectGitCommitFiles } from '../chunk-
|
|
2
|
+
export { AccessSessionService, AgentEventStream, GitCommitError, GitCommitReviewError, SqliteStateRepository, commitSelectedProjectChanges, createCodexlyServer, normalizeAllowedHost, readProjectGitCommitFileDiff, readProjectGitCommitFiles } from '../chunk-HUKDTKO6.js';
|
|
3
3
|
import '../chunk-I74DBIGI.js';
|
|
4
4
|
import '../chunk-PJNYCTFC.js';
|
|
5
5
|
import '../chunk-RNTA4MFS.js';
|
|
@@ -359,8 +359,8 @@
|
|
|
359
359
|
"_chunk-BO2N2NFS-CiutqNGv.js"
|
|
360
360
|
]
|
|
361
361
|
},
|
|
362
|
-
"_button-group-
|
|
363
|
-
"file": "assets/button-group-
|
|
362
|
+
"_button-group-DxD1cvNd.js": {
|
|
363
|
+
"file": "assets/button-group-DxD1cvNd.js",
|
|
364
364
|
"name": "button-group",
|
|
365
365
|
"imports": [
|
|
366
366
|
"_react-runtime-DaCTDC27.js",
|
|
@@ -434,8 +434,8 @@
|
|
|
434
434
|
"../../node_modules/.pnpm/shiki@4.4.3/node_modules/shiki/dist/langs/yaml.mjs"
|
|
435
435
|
]
|
|
436
436
|
},
|
|
437
|
-
"_context-menu-
|
|
438
|
-
"file": "assets/context-menu-
|
|
437
|
+
"_context-menu-BxBZqph_.js": {
|
|
438
|
+
"file": "assets/context-menu-BxBZqph_.js",
|
|
439
439
|
"name": "context-menu",
|
|
440
440
|
"imports": [
|
|
441
441
|
"_rolldown-runtime-CNC7AqOf.js",
|
|
@@ -513,8 +513,8 @@
|
|
|
513
513
|
"_initial-deps-DqJTHr9A.js"
|
|
514
514
|
]
|
|
515
515
|
},
|
|
516
|
-
"_file-review-dialog-
|
|
517
|
-
"file": "assets/file-review-dialog-
|
|
516
|
+
"_file-review-dialog-4yb5qYp1.js": {
|
|
517
|
+
"file": "assets/file-review-dialog-4yb5qYp1.js",
|
|
518
518
|
"name": "file-review-dialog",
|
|
519
519
|
"imports": [
|
|
520
520
|
"_rolldown-runtime-CNC7AqOf.js",
|
|
@@ -646,8 +646,8 @@
|
|
|
646
646
|
"file": "assets/jsx-D3KKoC5L.js",
|
|
647
647
|
"name": "jsx"
|
|
648
648
|
},
|
|
649
|
-
"_lazy-message-response-
|
|
650
|
-
"file": "assets/lazy-message-response-
|
|
649
|
+
"_lazy-message-response-DxkPeKeK.js": {
|
|
650
|
+
"file": "assets/lazy-message-response-DxkPeKeK.js",
|
|
651
651
|
"name": "lazy-message-response",
|
|
652
652
|
"imports": [
|
|
653
653
|
"_rolldown-runtime-CNC7AqOf.js",
|
|
@@ -673,8 +673,8 @@
|
|
|
673
673
|
"_c-SSSlmE39.js"
|
|
674
674
|
]
|
|
675
675
|
},
|
|
676
|
-
"_project-source-panel-
|
|
677
|
-
"file": "assets/project-source-panel-
|
|
676
|
+
"_project-source-panel-m_xiBT3O.js": {
|
|
677
|
+
"file": "assets/project-source-panel-m_xiBT3O.js",
|
|
678
678
|
"name": "project-source-panel",
|
|
679
679
|
"imports": [
|
|
680
680
|
"_rolldown-runtime-CNC7AqOf.js",
|
|
@@ -684,7 +684,7 @@
|
|
|
684
684
|
"_initial-deps-Dr1AWuHB.js",
|
|
685
685
|
"_initial-deps-DqJTHr9A.js",
|
|
686
686
|
"_file-code-corner-CYF-BidF.js",
|
|
687
|
-
"_lazy-message-response-
|
|
687
|
+
"_lazy-message-response-DxkPeKeK.js",
|
|
688
688
|
"index.html",
|
|
689
689
|
"_code-languages-DVcuYjhn.js"
|
|
690
690
|
],
|
|
@@ -692,20 +692,20 @@
|
|
|
692
692
|
"src/shared/components/agent/code-highlighter.ts"
|
|
693
693
|
]
|
|
694
694
|
},
|
|
695
|
-
"_prompt-input-
|
|
696
|
-
"file": "assets/prompt-input-
|
|
695
|
+
"_prompt-input-BHBgVKPB.js": {
|
|
696
|
+
"file": "assets/prompt-input-BHBgVKPB.js",
|
|
697
697
|
"name": "prompt-input",
|
|
698
698
|
"imports": [
|
|
699
699
|
"_rolldown-runtime-CNC7AqOf.js",
|
|
700
700
|
"_react-runtime-DaCTDC27.js",
|
|
701
701
|
"_initial-deps-BsEyuMB0.js",
|
|
702
702
|
"_initial-deps-DqJTHr9A.js",
|
|
703
|
-
"_prompt-input-controls-
|
|
703
|
+
"_prompt-input-controls-BZ7R1d1q.js",
|
|
704
704
|
"index.html"
|
|
705
705
|
]
|
|
706
706
|
},
|
|
707
|
-
"_prompt-input-controls-
|
|
708
|
-
"file": "assets/prompt-input-controls-
|
|
707
|
+
"_prompt-input-controls-BZ7R1d1q.js": {
|
|
708
|
+
"file": "assets/prompt-input-controls-BZ7R1d1q.js",
|
|
709
709
|
"name": "prompt-input-controls",
|
|
710
710
|
"imports": [
|
|
711
711
|
"_rolldown-runtime-CNC7AqOf.js",
|
|
@@ -750,8 +750,8 @@
|
|
|
750
750
|
"file": "assets/scheduled-task-schedule-Cfuv_Kyf.js",
|
|
751
751
|
"name": "scheduled-task-schedule"
|
|
752
752
|
},
|
|
753
|
-
"_sheet-
|
|
754
|
-
"file": "assets/sheet-
|
|
753
|
+
"_sheet-BD5Iohov.js": {
|
|
754
|
+
"file": "assets/sheet-BD5Iohov.js",
|
|
755
755
|
"name": "sheet",
|
|
756
756
|
"imports": [
|
|
757
757
|
"_react-runtime-DaCTDC27.js",
|
|
@@ -799,8 +799,8 @@
|
|
|
799
799
|
"_initial-deps-DqJTHr9A.js"
|
|
800
800
|
]
|
|
801
801
|
},
|
|
802
|
-
"_workbench-composer-
|
|
803
|
-
"file": "assets/workbench-composer-
|
|
802
|
+
"_workbench-composer-DWYJJS3y.js": {
|
|
803
|
+
"file": "assets/workbench-composer-DWYJJS3y.js",
|
|
804
804
|
"name": "workbench-composer",
|
|
805
805
|
"imports": [
|
|
806
806
|
"_rolldown-runtime-CNC7AqOf.js",
|
|
@@ -810,16 +810,16 @@
|
|
|
810
810
|
"_initial-deps-Dr1AWuHB.js",
|
|
811
811
|
"_initial-deps-DqJTHr9A.js",
|
|
812
812
|
"_file-pen-line-B05lVjWh.js",
|
|
813
|
-
"_prompt-input-controls-
|
|
814
|
-
"_prompt-input-
|
|
813
|
+
"_prompt-input-controls-BZ7R1d1q.js",
|
|
814
|
+
"_prompt-input-BHBgVKPB.js",
|
|
815
815
|
"_sparkles-BLY9rqMO.js",
|
|
816
816
|
"_initial-deps-CQxWMuPh.js",
|
|
817
817
|
"index.html",
|
|
818
818
|
"_prompt-reference-token-Cxx6C-IR.js"
|
|
819
819
|
]
|
|
820
820
|
},
|
|
821
|
-
"_workbench-pet-canvas-
|
|
822
|
-
"file": "assets/workbench-pet-canvas-
|
|
821
|
+
"_workbench-pet-canvas-DdVnx74p.js": {
|
|
822
|
+
"file": "assets/workbench-pet-canvas-DdVnx74p.js",
|
|
823
823
|
"name": "workbench-pet-canvas",
|
|
824
824
|
"imports": [
|
|
825
825
|
"_rolldown-runtime-CNC7AqOf.js",
|
|
@@ -842,7 +842,7 @@
|
|
|
842
842
|
"name": "yaml"
|
|
843
843
|
},
|
|
844
844
|
"index.html": {
|
|
845
|
-
"file": "assets/index-
|
|
845
|
+
"file": "assets/index-DuOx_QDa.js",
|
|
846
846
|
"name": "index",
|
|
847
847
|
"src": "index.html",
|
|
848
848
|
"isEntry": true,
|
|
@@ -862,7 +862,7 @@
|
|
|
862
862
|
"src/features/workbench/components/project-file-popup-page.tsx"
|
|
863
863
|
],
|
|
864
864
|
"css": [
|
|
865
|
-
"assets/index-
|
|
865
|
+
"assets/index-CROvcy96.css"
|
|
866
866
|
]
|
|
867
867
|
},
|
|
868
868
|
"src/features/diff/patch-diff-viewer.tsx": {
|
|
@@ -886,7 +886,7 @@
|
|
|
886
886
|
]
|
|
887
887
|
},
|
|
888
888
|
"src/features/scheduled-tasks/components/scheduled-task-date-time-picker.tsx": {
|
|
889
|
-
"file": "assets/scheduled-task-date-time-picker-
|
|
889
|
+
"file": "assets/scheduled-task-date-time-picker-CLz7pymx.js",
|
|
890
890
|
"name": "scheduled-task-date-time-picker",
|
|
891
891
|
"src": "src/features/scheduled-tasks/components/scheduled-task-date-time-picker.tsx",
|
|
892
892
|
"isDynamicEntry": true,
|
|
@@ -904,7 +904,7 @@
|
|
|
904
904
|
]
|
|
905
905
|
},
|
|
906
906
|
"src/features/scheduled-tasks/scheduled-tasks-container.tsx": {
|
|
907
|
-
"file": "assets/scheduled-tasks-container-
|
|
907
|
+
"file": "assets/scheduled-tasks-container-DGrcqBWt.js",
|
|
908
908
|
"name": "scheduled-tasks-container",
|
|
909
909
|
"src": "src/features/scheduled-tasks/scheduled-tasks-container.tsx",
|
|
910
910
|
"isDynamicEntry": true,
|
|
@@ -915,7 +915,7 @@
|
|
|
915
915
|
"_initial-deps-CTprc_pY.js",
|
|
916
916
|
"_initial-deps-Dr1AWuHB.js",
|
|
917
917
|
"_initial-deps-DqJTHr9A.js",
|
|
918
|
-
"_workbench-composer-
|
|
918
|
+
"_workbench-composer-DWYJJS3y.js",
|
|
919
919
|
"_external-link-xbPJFZkP.js",
|
|
920
920
|
"_dist-Czw-hil0.js",
|
|
921
921
|
"index.html",
|
|
@@ -929,7 +929,7 @@
|
|
|
929
929
|
]
|
|
930
930
|
},
|
|
931
931
|
"src/features/settings/components/global-settings-dialog.tsx": {
|
|
932
|
-
"file": "assets/global-settings-dialog-
|
|
932
|
+
"file": "assets/global-settings-dialog-CzBgDgzH.js",
|
|
933
933
|
"name": "global-settings-dialog",
|
|
934
934
|
"src": "src/features/settings/components/global-settings-dialog.tsx",
|
|
935
935
|
"isDynamicEntry": true,
|
|
@@ -939,12 +939,12 @@
|
|
|
939
939
|
"_initial-deps-CTprc_pY.js",
|
|
940
940
|
"_initial-deps-Dr1AWuHB.js",
|
|
941
941
|
"_initial-deps-DqJTHr9A.js",
|
|
942
|
-
"_workbench-pet-canvas-
|
|
942
|
+
"_workbench-pet-canvas-DdVnx74p.js",
|
|
943
943
|
"_download-iHkzQYEd.js",
|
|
944
|
-
"_prompt-input-controls-
|
|
944
|
+
"_prompt-input-controls-BZ7R1d1q.js",
|
|
945
945
|
"_git-commit-horizontal-CV-KjCHw.js",
|
|
946
|
-
"_prompt-input-
|
|
947
|
-
"_lazy-message-response-
|
|
946
|
+
"_prompt-input-BHBgVKPB.js",
|
|
947
|
+
"_lazy-message-response-DxkPeKeK.js",
|
|
948
948
|
"_info-whxTXvIJ.js",
|
|
949
949
|
"_sparkles-BLY9rqMO.js",
|
|
950
950
|
"_upload-D_8Uk8f-.js",
|
|
@@ -952,7 +952,7 @@
|
|
|
952
952
|
]
|
|
953
953
|
},
|
|
954
954
|
"src/features/skills-market/installed-skills-pane.tsx": {
|
|
955
|
-
"file": "assets/installed-skills-pane-
|
|
955
|
+
"file": "assets/installed-skills-pane-yQ22YClZ.js",
|
|
956
956
|
"name": "installed-skills-pane",
|
|
957
957
|
"src": "src/features/skills-market/installed-skills-pane.tsx",
|
|
958
958
|
"isDynamicEntry": true,
|
|
@@ -966,7 +966,7 @@
|
|
|
966
966
|
]
|
|
967
967
|
},
|
|
968
968
|
"src/features/skills-market/mcp-management-pane.tsx": {
|
|
969
|
-
"file": "assets/mcp-management-pane-
|
|
969
|
+
"file": "assets/mcp-management-pane-fBs42kaN.js",
|
|
970
970
|
"name": "mcp-management-pane",
|
|
971
971
|
"src": "src/features/skills-market/mcp-management-pane.tsx",
|
|
972
972
|
"isDynamicEntry": true,
|
|
@@ -979,7 +979,7 @@
|
|
|
979
979
|
]
|
|
980
980
|
},
|
|
981
981
|
"src/features/skills-market/official-plugins-pane.tsx": {
|
|
982
|
-
"file": "assets/official-plugins-pane-
|
|
982
|
+
"file": "assets/official-plugins-pane-DL3I574g.js",
|
|
983
983
|
"name": "official-plugins-pane",
|
|
984
984
|
"src": "src/features/skills-market/official-plugins-pane.tsx",
|
|
985
985
|
"isDynamicEntry": true,
|
|
@@ -991,14 +991,14 @@
|
|
|
991
991
|
"_external-link-xbPJFZkP.js",
|
|
992
992
|
"_info-whxTXvIJ.js",
|
|
993
993
|
"index.html",
|
|
994
|
-
"_sheet-
|
|
994
|
+
"_sheet-BD5Iohov.js"
|
|
995
995
|
],
|
|
996
996
|
"css": [
|
|
997
997
|
"assets/official-plugins-pane-BCxHJLaj.css"
|
|
998
998
|
]
|
|
999
999
|
},
|
|
1000
1000
|
"src/features/skills-market/skills-market-container.tsx": {
|
|
1001
|
-
"file": "assets/skills-market-container-
|
|
1001
|
+
"file": "assets/skills-market-container-E47PiSfc.js",
|
|
1002
1002
|
"name": "skills-market-container",
|
|
1003
1003
|
"src": "src/features/skills-market/skills-market-container.tsx",
|
|
1004
1004
|
"isDynamicEntry": true,
|
|
@@ -1020,7 +1020,7 @@
|
|
|
1020
1020
|
]
|
|
1021
1021
|
},
|
|
1022
1022
|
"src/features/skills-market/third-party-marketplace-pane.tsx": {
|
|
1023
|
-
"file": "assets/third-party-marketplace-pane-
|
|
1023
|
+
"file": "assets/third-party-marketplace-pane-BYKLDRVH.js",
|
|
1024
1024
|
"name": "third-party-marketplace-pane",
|
|
1025
1025
|
"src": "src/features/skills-market/third-party-marketplace-pane.tsx",
|
|
1026
1026
|
"isDynamicEntry": true,
|
|
@@ -1033,11 +1033,11 @@
|
|
|
1033
1033
|
"_external-link-xbPJFZkP.js",
|
|
1034
1034
|
"_sparkles-BLY9rqMO.js",
|
|
1035
1035
|
"index.html",
|
|
1036
|
-
"_sheet-
|
|
1036
|
+
"_sheet-BD5Iohov.js"
|
|
1037
1037
|
]
|
|
1038
1038
|
},
|
|
1039
1039
|
"src/features/workbench/components/git-history-panel.tsx": {
|
|
1040
|
-
"file": "assets/git-history-panel-
|
|
1040
|
+
"file": "assets/git-history-panel-CLWc1FLl.js",
|
|
1041
1041
|
"name": "git-history-panel",
|
|
1042
1042
|
"src": "src/features/workbench/components/git-history-panel.tsx",
|
|
1043
1043
|
"isDynamicEntry": true,
|
|
@@ -1048,9 +1048,9 @@
|
|
|
1048
1048
|
"_initial-deps-CTprc_pY.js",
|
|
1049
1049
|
"_initial-deps-DqJTHr9A.js",
|
|
1050
1050
|
"_file-code-corner-CYF-BidF.js",
|
|
1051
|
-
"_file-review-dialog-
|
|
1051
|
+
"_file-review-dialog-4yb5qYp1.js",
|
|
1052
1052
|
"_git-commit-horizontal-CV-KjCHw.js",
|
|
1053
|
-
"_context-menu-
|
|
1053
|
+
"_context-menu-BxBZqph_.js",
|
|
1054
1054
|
"index.html"
|
|
1055
1055
|
],
|
|
1056
1056
|
"dynamicImports": [
|
|
@@ -1058,19 +1058,19 @@
|
|
|
1058
1058
|
]
|
|
1059
1059
|
},
|
|
1060
1060
|
"src/features/workbench/components/project-file-popup-page.tsx": {
|
|
1061
|
-
"file": "assets/project-file-popup-page-
|
|
1061
|
+
"file": "assets/project-file-popup-page-D7w0o_EU.js",
|
|
1062
1062
|
"name": "project-file-popup-page",
|
|
1063
1063
|
"src": "src/features/workbench/components/project-file-popup-page.tsx",
|
|
1064
1064
|
"isDynamicEntry": true,
|
|
1065
1065
|
"imports": [
|
|
1066
1066
|
"_rolldown-runtime-CNC7AqOf.js",
|
|
1067
1067
|
"_react-runtime-DaCTDC27.js",
|
|
1068
|
-
"_project-source-panel-
|
|
1068
|
+
"_project-source-panel-m_xiBT3O.js",
|
|
1069
1069
|
"index.html"
|
|
1070
1070
|
]
|
|
1071
1071
|
},
|
|
1072
1072
|
"src/features/workbench/components/workbench-inspector-changes.tsx": {
|
|
1073
|
-
"file": "assets/workbench-inspector-changes-
|
|
1073
|
+
"file": "assets/workbench-inspector-changes-DS6N-4Ob.js",
|
|
1074
1074
|
"name": "workbench-inspector-changes",
|
|
1075
1075
|
"src": "src/features/workbench/components/workbench-inspector-changes.tsx",
|
|
1076
1076
|
"isDynamicEntry": true,
|
|
@@ -1080,16 +1080,16 @@
|
|
|
1080
1080
|
"_initial-deps-CTprc_pY.js",
|
|
1081
1081
|
"_initial-deps-DqJTHr9A.js",
|
|
1082
1082
|
"_file-pen-line-B05lVjWh.js",
|
|
1083
|
-
"_prompt-input-controls-
|
|
1083
|
+
"_prompt-input-controls-BZ7R1d1q.js",
|
|
1084
1084
|
"_file-navigation-view-preference-BRWa_l_a.js",
|
|
1085
1085
|
"_sparkles-BLY9rqMO.js",
|
|
1086
1086
|
"_upload-D_8Uk8f-.js",
|
|
1087
1087
|
"index.html",
|
|
1088
|
-
"_button-group-
|
|
1088
|
+
"_button-group-DxD1cvNd.js"
|
|
1089
1089
|
]
|
|
1090
1090
|
},
|
|
1091
1091
|
"src/features/workbench/components/workbench-shell.tsx": {
|
|
1092
|
-
"file": "assets/workbench-shell-
|
|
1092
|
+
"file": "assets/workbench-shell-DXDRW3gW.js",
|
|
1093
1093
|
"name": "workbench-shell",
|
|
1094
1094
|
"src": "src/features/workbench/components/workbench-shell.tsx",
|
|
1095
1095
|
"isDynamicEntry": true,
|
|
@@ -1101,24 +1101,24 @@
|
|
|
1101
1101
|
"_initial-deps-BsEyuMB0.js",
|
|
1102
1102
|
"_initial-deps-Dr1AWuHB.js",
|
|
1103
1103
|
"_initial-deps-DqJTHr9A.js",
|
|
1104
|
-
"_workbench-composer-
|
|
1105
|
-
"_workbench-pet-canvas-
|
|
1106
|
-
"_project-source-panel-
|
|
1104
|
+
"_workbench-composer-DWYJJS3y.js",
|
|
1105
|
+
"_workbench-pet-canvas-DdVnx74p.js",
|
|
1106
|
+
"_project-source-panel-m_xiBT3O.js",
|
|
1107
1107
|
"_file-code-corner-CYF-BidF.js",
|
|
1108
1108
|
"_external-link-xbPJFZkP.js",
|
|
1109
1109
|
"_file-pen-line-B05lVjWh.js",
|
|
1110
|
-
"_prompt-input-controls-
|
|
1111
|
-
"_file-review-dialog-
|
|
1110
|
+
"_prompt-input-controls-BZ7R1d1q.js",
|
|
1111
|
+
"_file-review-dialog-4yb5qYp1.js",
|
|
1112
1112
|
"_git-commit-horizontal-CV-KjCHw.js",
|
|
1113
|
-
"_prompt-input-
|
|
1114
|
-
"_lazy-message-response-
|
|
1113
|
+
"_prompt-input-BHBgVKPB.js",
|
|
1114
|
+
"_lazy-message-response-DxkPeKeK.js",
|
|
1115
1115
|
"_info-whxTXvIJ.js",
|
|
1116
1116
|
"_sparkles-BLY9rqMO.js",
|
|
1117
|
-
"_context-menu-
|
|
1117
|
+
"_context-menu-BxBZqph_.js",
|
|
1118
1118
|
"index.html",
|
|
1119
1119
|
"_code-languages-DVcuYjhn.js",
|
|
1120
1120
|
"_file-change-D7aZLgtG.js",
|
|
1121
|
-
"_button-group-
|
|
1121
|
+
"_button-group-DxD1cvNd.js"
|
|
1122
1122
|
],
|
|
1123
1123
|
"dynamicImports": [
|
|
1124
1124
|
"src/features/diff/patch-diff-viewer.tsx",
|
|
@@ -1141,7 +1141,7 @@
|
|
|
1141
1141
|
]
|
|
1142
1142
|
},
|
|
1143
1143
|
"src/shared/components/agent/message-response.tsx": {
|
|
1144
|
-
"file": "assets/message-response-
|
|
1144
|
+
"file": "assets/message-response-BSFnyRiN.js",
|
|
1145
1145
|
"name": "message-response",
|
|
1146
1146
|
"src": "src/shared/components/agent/message-response.tsx",
|
|
1147
1147
|
"isDynamicEntry": true,
|
|
@@ -1150,7 +1150,7 @@
|
|
|
1150
1150
|
"_react-runtime-DaCTDC27.js",
|
|
1151
1151
|
"_initial-deps-DqJTHr9A.js",
|
|
1152
1152
|
"_external-link-xbPJFZkP.js",
|
|
1153
|
-
"_context-menu-
|
|
1153
|
+
"_context-menu-BxBZqph_.js",
|
|
1154
1154
|
"index.html",
|
|
1155
1155
|
"_chunk-BO2N2NFS-CiutqNGv.js",
|
|
1156
1156
|
"_prompt-reference-token-Cxx6C-IR.js"
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./react-runtime-DaCTDC27.js";import{ht as t}from"./index-
|
|
1
|
+
import{t as e}from"./react-runtime-DaCTDC27.js";import{ht as t}from"./index-DuOx_QDa.js";var n=e();function r({className:e,orientation:r=`horizontal`,role:i=`group`,...a}){return(0,n.jsx)(`div`,{className:t(`flex w-fit items-stretch [&>*]:relative [&>*]:focus-visible:z-10`,r===`vertical`?`flex-col`:`flex-row`,e),"data-orientation":r,"data-slot":`button-group`,role:i,...a})}export{r as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./rolldown-runtime-CNC7AqOf.js";import{i as t,t as n}from"./react-runtime-DaCTDC27.js";import{V as r}from"./initial-deps-DqJTHr9A.js";import{B as i,F as a,H as o,I as s,L as c,N as l,P as u,R as d,V as f,dt as p,ft as m,pt as h,ut as g,z as _}from"./initial-deps-CQxWMuPh.js";import{ht as v}from"./index-
|
|
1
|
+
import{a as e}from"./rolldown-runtime-CNC7AqOf.js";import{i as t,t as n}from"./react-runtime-DaCTDC27.js";import{V as r}from"./initial-deps-DqJTHr9A.js";import{B as i,F as a,H as o,I as s,L as c,N as l,P as u,R as d,V as f,dt as p,ft as m,pt as h,ut as g,z as _}from"./initial-deps-CQxWMuPh.js";import{ht as v}from"./index-DuOx_QDa.js";var y=e(t(),1),b=n(),x=Object.defineProperty,S=(e,t)=>x(e,`name`,{value:t,configurable:!0}),C=`ContextMenu`,[w,ee]=m(C,[o]),T=o(),[E,D]=w(C),O=S(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,dir:a,modal:o=!0}=e,s=y.useRef(!1),[l,u]=g({prop:i,defaultProp:!1,onChange:r,caller:C}),d=T(t);return(0,b.jsx)(E,{scope:t,open:l,onOpenChange:u,modal:o,hasInteractedRef:s,children:(0,b.jsx)(c,{...d,dir:a,open:l,onOpenChange:u,modal:o,children:n})})},`ContextMenu`),k=`ContextMenuTrigger`,A=y.forwardRef(S(function(e,t){let{__scopeContextMenu:n,disabled:r=!1,...i}=e,a=D(k,n),o=T(n),[s,c]=y.useState({x:0,y:0}),u=y.useMemo(()=>({current:{getBoundingClientRect:S(()=>DOMRect.fromRect({width:0,height:0,...s}),`getBoundingClientRect`)}}),[s]),d=y.useRef(0),f=y.useCallback(()=>window.clearTimeout(d.current),[]),m=S(e=>{a.hasInteractedRef.current=!0,c({x:e.clientX,y:e.clientY}),a.onOpenChange(!0)},`handleOpen`);return y.useEffect(()=>f,[f]),y.useEffect(()=>void(r&&f()),[r,f]),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(l,{...o,virtualRef:u}),(0,b.jsx)(h.span,{"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,...i,ref:t,style:{WebkitTouchCallout:`none`,...e.style},onContextMenu:r?e.onContextMenu:p(e.onContextMenu,e=>{f(),m(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:p(e.onPointerDown,B(e=>{f(),a.open&&a.onOpenChange(!1),d.current=window.setTimeout(()=>m(e),700)})),onPointerMove:r?e.onPointerMove:p(e.onPointerMove,B(f)),onPointerCancel:r?e.onPointerCancel:p(e.onPointerCancel,B(f)),onPointerUp:r?e.onPointerUp:p(e.onPointerUp,B(f))})]})},`ContextMenuTrigger`)),j=S(e=>{let{__scopeContextMenu:t,...n}=e,r=T(t);return(0,b.jsx)(s,{...r,...n})},`ContextMenuPortal`),M=`ContextMenuContent`,N=y.forwardRef(S(function(e,t){let{__scopeContextMenu:n,...r}=e,i=D(M,n),a=T(n),o=y.useRef(!1);return(0,b.jsx)(u,{...a,...r,ref:t,side:`right`,sideOffset:2,align:`start`,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&o.current&&t.preventDefault(),o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),!t.defaultPrevented&&!i.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`ContextMenuContent`)),P=y.forwardRef(S(function(e,t){let{__scopeContextMenu:n,...r}=e,i=T(n);return(0,b.jsx)(a,{...i,...r,ref:t})},`ContextMenuItem`)),F=y.forwardRef(S(function(e,t){let{__scopeContextMenu:n,...r}=e,i=T(n);return(0,b.jsx)(d,{...i,...r,ref:t})},`ContextMenuSeparator`)),I=`ContextMenuSub`,L=S(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,defaultOpen:a}=e,o=T(t),[s,c]=g({prop:i,defaultProp:a??!1,onChange:r,caller:I});return(0,b.jsx)(_,{...o,open:s,onOpenChange:c,children:n})},`ContextMenuSub`),R=y.forwardRef(S(function(e,t){let{__scopeContextMenu:n,...r}=e,i=T(n);return(0,b.jsx)(f,{...i,...r,ref:t})},`ContextMenuSubTrigger`)),z=y.forwardRef(S(function(e,t){let{__scopeContextMenu:n,...r}=e,a=T(n);return(0,b.jsx)(i,{...a,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`ContextMenuSubContent`));function B(e){return t=>t.pointerType===`mouse`?void 0:e(t)}S(B,`whenTouchOrPen`);var te=O,V=A,H=j,U=N,W=P,G=F,K=L,q=R,J=z;function Y(e){return(0,b.jsx)(te,{"data-slot":`context-menu`,...e})}function X(e){return(0,b.jsx)(V,{"data-slot":`context-menu-trigger`,...e})}function Z(e){return(0,b.jsx)(K,{"data-slot":`context-menu-sub`,...e})}function Q({children:e,...t}){return typeof document>`u`?(0,b.jsx)(b.Fragment,{children:e}):(0,b.jsx)(H,{"data-slot":`context-menu-portal`,...t,children:e})}function $({children:e,className:t,collisionPadding:n=8,...r}){return(0,b.jsx)(Q,{children:(0,b.jsx)(U,{className:v(`z-50 max-h-[var(--radix-context-menu-content-available-height)] min-w-32 overflow-x-hidden overflow-y-auto rounded-surface border border-separator-strong bg-raised p-1.5 text-foreground shadow-floating outline-none`,t),collisionPadding:n,"data-slot":`context-menu-content`,...r,children:e})})}function ne({className:e,...t}){return(0,b.jsx)(W,{className:v(`flex cursor-default select-none items-center gap-2.5 rounded-control px-2 py-1.5 text-body-small outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-control-hover [&_svg]:pointer-events-none [&_svg]:shrink-0`,e),"data-slot":`context-menu-item`,...t})}function re({children:e,className:t,...n}){return(0,b.jsxs)(q,{className:v(`flex cursor-default select-none items-center gap-2.5 rounded-control px-2 py-1.5 text-body-small outline-none transition-colors data-[state=open]:bg-control-hover data-[highlighted]:bg-control-hover [&_svg]:pointer-events-none [&_svg]:shrink-0`,t),"data-slot":`context-menu-sub-trigger`,...n,children:[e,(0,b.jsx)(r,{"aria-hidden":`true`,className:`ml-auto size-3.5 text-muted-foreground`})]})}function ie({children:e,className:t,collisionPadding:n=8,sideOffset:r=0,...i}){return(0,b.jsx)(Q,{children:(0,b.jsx)(J,{className:v(`z-50 min-w-40 max-h-[calc(100dvh-1rem)] overflow-y-auto rounded-surface border border-separator-strong bg-raised p-1.5 text-foreground shadow-floating outline-none`,t),collisionPadding:n,"data-slot":`context-menu-sub-content`,sideOffset:r,...i,children:e})})}function ae({className:e,...t}){return(0,b.jsx)(G,{className:v(`-mx-1.5 my-1 h-px bg-separator`,e),"data-slot":`context-menu-separator`,...t})}export{Z as a,X as c,ae as i,$ as n,ie as o,ne as r,re as s,Y as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/patch-diff-viewer-CwDRm5oN.js","assets/rolldown-runtime-CNC7AqOf.js","assets/initial-deps-Bx4af_YG.js","assets/react-runtime-DaCTDC27.js","assets/engine-compile-DcaAFSGO.js","assets/lib-DE0ZEvGM.js","assets/code-languages-DVcuYjhn.js","assets/shiki-bundle-DdeD2OLK.js","assets/file-change-D7aZLgtG.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{a as e}from"./rolldown-runtime-CNC7AqOf.js";import{t}from"./initial-deps-Bx4af_YG.js";import{i as n,t as r}from"./react-runtime-DaCTDC27.js";import{B as i,Q as a,U as o,nt as s,s as c}from"./initial-deps-DqJTHr9A.js";import{t as l}from"./file-code-corner-CYF-BidF.js";import{n as u,r as d,t as f}from"./file-navigation-view-preference-BRWa_l_a.js";import{B as p,V as m,X as h,Y as g,at as _,et as v,mt as y,ot as b,rt as x,z as S}from"./index-DU2EMreA.js";import{n as C,t as w}from"./file-change-D7aZLgtG.js";var T=a(`files`,[[`path`,{d:`M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8`,key:`14sh0y`}],[`path`,{d:`M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z`,key:`1970lx`}],[`path`,{d:`M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1`,key:`l4dndm`}]]),E=a(`panel-right-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m8 9 3 3-3 3`,key:`12hl5m`}]]),D=a(`panel-right-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m10 15-3-3 3-3`,key:`1pgupc`}]]),O=e(n(),1),k=r();function A(e,t){return e.name.localeCompare(t.name,`en`)}function j(e){let t=[e.name],n=e;for(;n.files.length===0&&n.directories.size===1;){let e=n.directories.values().next().value;if(e===void 0)break;t.push(e.name),n=e}let r=[...n.directories.values()].sort(A).map(j),i=n.files.toSorted(A);return{children:[...r,...i],name:t.join(`/`),path:n.path,type:`folder`}}function M(e){let t={directories:new Map,files:[],name:``,path:``};return e.forEach((e,n)=>{let r=e.path.split(/[\\/]/),i=r.at(-1)??e.path,a=t,o=``;for(let e of r.slice(0,-1)){o=o.length===0?e:`${o}/${e}`;let t=a.directories.get(e);t===void 0&&(t={directories:new Map,files:[],name:e,path:o},a.directories.set(e,t)),a=t}let{additions:s,removals:c}=w(e);a.files.push({additions:s,changeIndex:n,name:i,path:r.join(`/`),removals:c,type:`file`})}),[...[...t.directories.values()].sort(A).map(j),...t.files.toSorted(A)]}function N(e,t=new Set){for(let n of e)n.type===`folder`&&(t.add(n.path),N(n.children,t));return t}function P(e,t=[]){for(let n of e)n.type===`folder`?P(n.children,t):t.push(n);return t}function F({fileLabel:e,nodes:t,showStats:n}){return t.map(t=>t.type===`folder`?(0,k.jsx)(b,{name:t.name,path:t.path,children:(0,k.jsx)(F,{fileLabel:e,nodes:t.children,showStats:n})},t.path):(0,k.jsx)(_,{"aria-label":e(t),icon:(0,k.jsx)(l,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),name:t.name,path:t.path,trailing:n?(0,k.jsxs)(`span`,{"aria-hidden":`true`,className:`ml-auto flex shrink-0 items-center gap-1 text-meta`,children:[(0,k.jsxs)(`span`,{className:`font-medium text-diff-added`,children:[`+`,t.additions]}),(0,k.jsxs)(`span`,{className:`font-medium text-diff-removed`,children:[`-`,t.removals]})]}):void 0},`${t.path}:${String(t.changeIndex)}`))}function I({nodes:e,onSelect:t,selectedPath:n,showStats:r=!0,viewMode:i=`tree`}){let{t:a}=s(`workbench`),o=(0,O.useMemo)(()=>N(e),[e]),c=(0,O.useMemo)(()=>P(e),[e]),u=e=>r?a(`diff.fileStats`,{additions:e.additions,path:e.path,removals:e.removals}):e.path;return i===`list`?(0,k.jsx)(`div`,{"aria-label":a(`diff.changedFilesNavigation`),className:`font-mono text-label`,"data-slot":`review-file-list`,role:`listbox`,children:c.map(e=>(0,k.jsxs)(`button`,{"aria-label":u(e),"aria-selected":e.path===n,className:`flex min-h-7 w-full min-w-0 items-center gap-1.5 rounded-control px-1.5 text-left outline-none transition-colors hover:bg-control-hover focus-visible:shadow-focus aria-selected:bg-control`,onClick:()=>{t(e.path)},role:`option`,type:`button`,children:[(0,k.jsx)(l,{"aria-hidden":`true`,className:`size-3.5 shrink-0 text-muted-foreground`}),(0,k.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,title:e.path,children:e.path}),r?(0,k.jsxs)(`span`,{"aria-hidden":`true`,className:`flex shrink-0 items-center gap-1 text-meta`,children:[(0,k.jsxs)(`span`,{className:`font-medium text-diff-added`,children:[`+`,e.additions]}),(0,k.jsxs)(`span`,{className:`font-medium text-diff-removed`,children:[`-`,e.removals]})]}):null]},`${e.path}:${String(e.changeIndex)}`))}):(0,k.jsx)(x,{"aria-label":a(`diff.changedFilesNavigation`),defaultExpanded:o,onSelect:t,selectedPath:n,children:(0,k.jsx)(F,{fileLabel:u,nodes:e,showStats:r})})}var L=(0,O.lazy)(()=>t(()=>import(`./patch-diff-viewer-CwDRm5oN.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),R=`(max-width: 760px)`;function z(){return typeof window>`u`||!window.matchMedia(R).matches}function B(e){return e===`ArrowUp`?`previous`:e===`ArrowDown`?`next`:null}function V(e,t,n){return n<=0?0:Math.min(Math.max(e+(t===`next`?1:-1),0),n-1)}function H({changes:e,currentIndex:t,navigationFooter:n,onClose:r,onCurrentIndexChange:a,renderContent:h,showStats:g=!0,titleId:_}){let{t:v}=s(`workbench`),[b,x]=f(`review`),w=(0,O.useRef)(null),[A,j]=(0,O.useState)(z),N=(0,O.useMemo)(()=>M(e),[e]),P=(0,O.useMemo)(()=>new Map(e.map((e,t)=>[e.path.replaceAll(`\\`,`/`),t])),[e]);if((0,O.useEffect)(()=>{j(z())},[e]),(0,O.useEffect)(()=>{let n=n=>{if(n.defaultPrevented)return;let r=B(n.key);r!==null&&(n.preventDefault(),a(V(t,r,e.length)))};return window.addEventListener(`keydown`,n),()=>{window.removeEventListener(`keydown`,n)}},[e.length,t,a]),(0,O.useLayoutEffect)(()=>{w.current!==null&&(w.current.scrollTop=0)},[t]),e.length===0)return null;let F=e[0];if(F===void 0)return null;let R=e[t]??F,H=R.path.replaceAll(`\\`,`/`),U=C(R.path),W=v(A?`diff.collapseChangedFilesNavigation`:`diff.expandChangedFilesNavigation`),G=n=>{a(V(t,n,e.length))};return(0,k.jsxs)(`section`,{className:`grid h-full min-h-0 w-full min-w-0 grid-rows-[auto_minmax(0,1fr)] bg-raised`,children:[(0,k.jsxs)(`header`,{className:`flex min-h-toolbar min-w-0 items-center gap-2 px-3 shadow-toolbar sm:px-4`,children:[(0,k.jsx)(l,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":`true`}),(0,k.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,k.jsx)(`h2`,{className:`truncate text-body-small font-semibold`,id:_,title:R.path,children:U}),(0,k.jsx)(`p`,{className:`truncate text-caption text-muted-foreground`,title:R.path,children:R.path})]}),(0,k.jsxs)(`span`,{className:`shrink-0 text-label text-muted-foreground`,children:[t+1,` / `,e.length]}),(0,k.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[(0,k.jsxs)(S,{children:[(0,k.jsx)(m,{asChild:!0,children:(0,k.jsx)(y,{"aria-label":v(`diff.previousFile`),disabled:t===0,onClick:()=>{G(`previous`)},size:`icon-sm`,type:`button`,variant:`ghost`,children:(0,k.jsx)(i,{className:`size-3.5`,"aria-hidden":`true`})})}),(0,k.jsx)(p,{children:v(`diff.previousFile`)})]}),(0,k.jsxs)(S,{children:[(0,k.jsx)(m,{asChild:!0,children:(0,k.jsx)(y,{"aria-label":v(`diff.nextFile`),disabled:t===e.length-1,onClick:()=>{G(`next`)},size:`icon-sm`,type:`button`,variant:`ghost`,children:(0,k.jsx)(o,{className:`size-3.5`,"aria-hidden":`true`})})}),(0,k.jsx)(p,{children:v(`diff.nextFile`)})]}),(0,k.jsxs)(S,{children:[(0,k.jsx)(m,{asChild:!0,children:(0,k.jsx)(y,{"aria-controls":`file-review-navigation`,"aria-expanded":A,"aria-label":W,onClick:()=>{j(e=>!e)},size:`icon-sm`,type:`button`,variant:`ghost`,children:A?(0,k.jsx)(E,{className:`size-3.5`,"aria-hidden":`true`}):(0,k.jsx)(D,{className:`size-3.5`,"aria-hidden":`true`})})}),(0,k.jsx)(p,{children:W})]}),(0,k.jsxs)(S,{children:[(0,k.jsx)(m,{asChild:!0,children:(0,k.jsx)(y,{"aria-label":v(`diff.closeReview`),onClick:r,size:`icon-sm`,type:`button`,variant:`ghost`,children:(0,k.jsx)(c,{className:`size-3.5`,"aria-hidden":`true`})})}),(0,k.jsx)(p,{children:v(`diff.closeReview`)})]})]})]}),(0,k.jsxs)(`div`,{className:`relative grid min-h-0 min-w-0 grid-cols-[minmax(0,1fr)] bg-content ${A?`workbench:grid-cols-[minmax(0,1fr)_minmax(12rem,26%)]`:``}`,children:[(0,k.jsx)(`section`,{"aria-label":v(`diff.reviewContent`),className:`min-h-0 min-w-0 overflow-auto`,ref:w,children:h===void 0?(0,k.jsx)(O.Suspense,{fallback:(0,k.jsx)(`div`,{className:`grid min-h-48 place-items-center text-body-small text-muted-foreground`,role:`status`,children:v(`diff.loading`)}),children:(0,k.jsx)(L,{change:R})}):h(R)}),(0,k.jsxs)(`aside`,{"aria-label":v(`diff.changedFilesNavigation`),className:`absolute inset-y-0 right-0 z-10 grid min-h-0 w-[min(16rem,82%)] grid-rows-[auto_minmax(0,1fr)] border-l border-separator bg-panel shadow-panel workbench:static workbench:z-auto workbench:w-auto workbench:shadow-none`,hidden:!A,id:`file-review-navigation`,children:[(0,k.jsxs)(`div`,{className:`flex min-h-toolbar items-center gap-2 border-b border-separator px-3`,children:[(0,k.jsx)(T,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,k.jsx)(`h3`,{className:`min-w-0 flex-1 truncate text-label font-semibold`,children:v(`diff.changedFiles`)}),(0,k.jsx)(`span`,{className:`text-meta text-muted-foreground`,children:e.length}),(0,k.jsxs)(S,{children:[(0,k.jsx)(m,{asChild:!0,children:(0,k.jsx)(y,{"aria-label":v(b===`tree`?`diff.showFileList`:`diff.showFileTree`),onClick:()=>{x(b===`tree`?`list`:`tree`)},size:`icon-sm`,type:`button`,variant:`ghost`,children:b===`tree`?(0,k.jsx)(u,{"aria-hidden":`true`,className:`size-3.5`}):(0,k.jsx)(d,{"aria-hidden":`true`,className:`size-3.5`})})}),(0,k.jsx)(p,{children:v(b===`tree`?`diff.showFileList`:`diff.showFileTree`)})]})]}),(0,k.jsxs)(`div`,{className:`min-h-0 overflow-y-auto px-2 py-2`,children:[(0,k.jsx)(I,{nodes:N,onSelect:e=>{let t=P.get(e);t!==void 0&&a(t)},selectedPath:H,showStats:g,viewMode:b}),n]})]})]})]})}function U({changes:e,onClose:t}){let[n,r]=(0,O.useState)(0);if((0,O.useEffect)(()=>{e!==null&&r(0)},[e]),e===null||e.length===0)return null;let i=`file-review-dialog-title`;return(0,k.jsx)(g,{onOpenChange:e=>{e||t()},open:!0,children:(0,k.jsxs)(h,{"aria-labelledby":i,className:`h-[min(86dvh,58rem)] max-w-[78rem] overflow-hidden bg-transparent p-0`,children:[(0,k.jsx)(v,{className:`sr-only`,children:C(e[0]?.path??``)}),(0,k.jsx)(H,{changes:e,currentIndex:n,onClose:t,onCurrentIndexChange:r,titleId:i})]})})}export{T as i,H as n,E as r,U as t};
|
|
2
|
+
import{a as e}from"./rolldown-runtime-CNC7AqOf.js";import{t}from"./initial-deps-Bx4af_YG.js";import{i as n,t as r}from"./react-runtime-DaCTDC27.js";import{B as i,Q as a,U as o,nt as s,s as c}from"./initial-deps-DqJTHr9A.js";import{t as l}from"./file-code-corner-CYF-BidF.js";import{n as u,r as d,t as f}from"./file-navigation-view-preference-BRWa_l_a.js";import{B as p,V as m,X as h,Y as g,at as _,et as v,mt as y,ot as b,rt as x,z as S}from"./index-DuOx_QDa.js";import{n as C,t as w}from"./file-change-D7aZLgtG.js";var T=a(`files`,[[`path`,{d:`M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8`,key:`14sh0y`}],[`path`,{d:`M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z`,key:`1970lx`}],[`path`,{d:`M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1`,key:`l4dndm`}]]),E=a(`panel-right-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m8 9 3 3-3 3`,key:`12hl5m`}]]),D=a(`panel-right-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m10 15-3-3 3-3`,key:`1pgupc`}]]),O=e(n(),1),k=r();function A(e,t){return e.name.localeCompare(t.name,`en`)}function j(e){let t=[e.name],n=e;for(;n.files.length===0&&n.directories.size===1;){let e=n.directories.values().next().value;if(e===void 0)break;t.push(e.name),n=e}let r=[...n.directories.values()].sort(A).map(j),i=n.files.toSorted(A);return{children:[...r,...i],name:t.join(`/`),path:n.path,type:`folder`}}function M(e){let t={directories:new Map,files:[],name:``,path:``};return e.forEach((e,n)=>{let r=e.path.split(/[\\/]/),i=r.at(-1)??e.path,a=t,o=``;for(let e of r.slice(0,-1)){o=o.length===0?e:`${o}/${e}`;let t=a.directories.get(e);t===void 0&&(t={directories:new Map,files:[],name:e,path:o},a.directories.set(e,t)),a=t}let{additions:s,removals:c}=w(e);a.files.push({additions:s,changeIndex:n,name:i,path:r.join(`/`),removals:c,type:`file`})}),[...[...t.directories.values()].sort(A).map(j),...t.files.toSorted(A)]}function N(e,t=new Set){for(let n of e)n.type===`folder`&&(t.add(n.path),N(n.children,t));return t}function P(e,t=[]){for(let n of e)n.type===`folder`?P(n.children,t):t.push(n);return t}function F({fileLabel:e,nodes:t,showStats:n}){return t.map(t=>t.type===`folder`?(0,k.jsx)(b,{name:t.name,path:t.path,children:(0,k.jsx)(F,{fileLabel:e,nodes:t.children,showStats:n})},t.path):(0,k.jsx)(_,{"aria-label":e(t),icon:(0,k.jsx)(l,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),name:t.name,path:t.path,trailing:n?(0,k.jsxs)(`span`,{"aria-hidden":`true`,className:`ml-auto flex shrink-0 items-center gap-1 text-meta`,children:[(0,k.jsxs)(`span`,{className:`font-medium text-diff-added`,children:[`+`,t.additions]}),(0,k.jsxs)(`span`,{className:`font-medium text-diff-removed`,children:[`-`,t.removals]})]}):void 0},`${t.path}:${String(t.changeIndex)}`))}function I({nodes:e,onSelect:t,selectedPath:n,showStats:r=!0,viewMode:i=`tree`}){let{t:a}=s(`workbench`),o=(0,O.useMemo)(()=>N(e),[e]),c=(0,O.useMemo)(()=>P(e),[e]),u=e=>r?a(`diff.fileStats`,{additions:e.additions,path:e.path,removals:e.removals}):e.path;return i===`list`?(0,k.jsx)(`div`,{"aria-label":a(`diff.changedFilesNavigation`),className:`font-mono text-label`,"data-slot":`review-file-list`,role:`listbox`,children:c.map(e=>(0,k.jsxs)(`button`,{"aria-label":u(e),"aria-selected":e.path===n,className:`flex min-h-7 w-full min-w-0 items-center gap-1.5 rounded-control px-1.5 text-left outline-none transition-colors hover:bg-control-hover focus-visible:shadow-focus aria-selected:bg-control`,onClick:()=>{t(e.path)},role:`option`,type:`button`,children:[(0,k.jsx)(l,{"aria-hidden":`true`,className:`size-3.5 shrink-0 text-muted-foreground`}),(0,k.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,title:e.path,children:e.path}),r?(0,k.jsxs)(`span`,{"aria-hidden":`true`,className:`flex shrink-0 items-center gap-1 text-meta`,children:[(0,k.jsxs)(`span`,{className:`font-medium text-diff-added`,children:[`+`,e.additions]}),(0,k.jsxs)(`span`,{className:`font-medium text-diff-removed`,children:[`-`,e.removals]})]}):null]},`${e.path}:${String(e.changeIndex)}`))}):(0,k.jsx)(x,{"aria-label":a(`diff.changedFilesNavigation`),defaultExpanded:o,onSelect:t,selectedPath:n,children:(0,k.jsx)(F,{fileLabel:u,nodes:e,showStats:r})})}var L=(0,O.lazy)(()=>t(()=>import(`./patch-diff-viewer-CwDRm5oN.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),R=`(max-width: 760px)`;function z(){return typeof window>`u`||!window.matchMedia(R).matches}function B(e){return e===`ArrowUp`?`previous`:e===`ArrowDown`?`next`:null}function V(e,t,n){return n<=0?0:Math.min(Math.max(e+(t===`next`?1:-1),0),n-1)}function H({changes:e,currentIndex:t,navigationFooter:n,onClose:r,onCurrentIndexChange:a,renderContent:h,showStats:g=!0,titleId:_}){let{t:v}=s(`workbench`),[b,x]=f(`review`),w=(0,O.useRef)(null),[A,j]=(0,O.useState)(z),N=(0,O.useMemo)(()=>M(e),[e]),P=(0,O.useMemo)(()=>new Map(e.map((e,t)=>[e.path.replaceAll(`\\`,`/`),t])),[e]);if((0,O.useEffect)(()=>{j(z())},[e]),(0,O.useEffect)(()=>{let n=n=>{if(n.defaultPrevented)return;let r=B(n.key);r!==null&&(n.preventDefault(),a(V(t,r,e.length)))};return window.addEventListener(`keydown`,n),()=>{window.removeEventListener(`keydown`,n)}},[e.length,t,a]),(0,O.useLayoutEffect)(()=>{w.current!==null&&(w.current.scrollTop=0)},[t]),e.length===0)return null;let F=e[0];if(F===void 0)return null;let R=e[t]??F,H=R.path.replaceAll(`\\`,`/`),U=C(R.path),W=v(A?`diff.collapseChangedFilesNavigation`:`diff.expandChangedFilesNavigation`),G=n=>{a(V(t,n,e.length))};return(0,k.jsxs)(`section`,{className:`grid h-full min-h-0 w-full min-w-0 grid-rows-[auto_minmax(0,1fr)] bg-raised`,children:[(0,k.jsxs)(`header`,{className:`flex min-h-toolbar min-w-0 items-center gap-2 px-3 shadow-toolbar sm:px-4`,children:[(0,k.jsx)(l,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":`true`}),(0,k.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,k.jsx)(`h2`,{className:`truncate text-body-small font-semibold`,id:_,title:R.path,children:U}),(0,k.jsx)(`p`,{className:`truncate text-caption text-muted-foreground`,title:R.path,children:R.path})]}),(0,k.jsxs)(`span`,{className:`shrink-0 text-label text-muted-foreground`,children:[t+1,` / `,e.length]}),(0,k.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[(0,k.jsxs)(S,{children:[(0,k.jsx)(m,{asChild:!0,children:(0,k.jsx)(y,{"aria-label":v(`diff.previousFile`),disabled:t===0,onClick:()=>{G(`previous`)},size:`icon-sm`,type:`button`,variant:`ghost`,children:(0,k.jsx)(i,{className:`size-3.5`,"aria-hidden":`true`})})}),(0,k.jsx)(p,{children:v(`diff.previousFile`)})]}),(0,k.jsxs)(S,{children:[(0,k.jsx)(m,{asChild:!0,children:(0,k.jsx)(y,{"aria-label":v(`diff.nextFile`),disabled:t===e.length-1,onClick:()=>{G(`next`)},size:`icon-sm`,type:`button`,variant:`ghost`,children:(0,k.jsx)(o,{className:`size-3.5`,"aria-hidden":`true`})})}),(0,k.jsx)(p,{children:v(`diff.nextFile`)})]}),(0,k.jsxs)(S,{children:[(0,k.jsx)(m,{asChild:!0,children:(0,k.jsx)(y,{"aria-controls":`file-review-navigation`,"aria-expanded":A,"aria-label":W,onClick:()=>{j(e=>!e)},size:`icon-sm`,type:`button`,variant:`ghost`,children:A?(0,k.jsx)(E,{className:`size-3.5`,"aria-hidden":`true`}):(0,k.jsx)(D,{className:`size-3.5`,"aria-hidden":`true`})})}),(0,k.jsx)(p,{children:W})]}),(0,k.jsxs)(S,{children:[(0,k.jsx)(m,{asChild:!0,children:(0,k.jsx)(y,{"aria-label":v(`diff.closeReview`),onClick:r,size:`icon-sm`,type:`button`,variant:`ghost`,children:(0,k.jsx)(c,{className:`size-3.5`,"aria-hidden":`true`})})}),(0,k.jsx)(p,{children:v(`diff.closeReview`)})]})]})]}),(0,k.jsxs)(`div`,{className:`relative grid min-h-0 min-w-0 grid-cols-[minmax(0,1fr)] bg-content ${A?`workbench:grid-cols-[minmax(0,1fr)_minmax(12rem,26%)]`:``}`,children:[(0,k.jsx)(`section`,{"aria-label":v(`diff.reviewContent`),className:`min-h-0 min-w-0 overflow-auto`,ref:w,children:h===void 0?(0,k.jsx)(O.Suspense,{fallback:(0,k.jsx)(`div`,{className:`grid min-h-48 place-items-center text-body-small text-muted-foreground`,role:`status`,children:v(`diff.loading`)}),children:(0,k.jsx)(L,{change:R})}):h(R)}),(0,k.jsxs)(`aside`,{"aria-label":v(`diff.changedFilesNavigation`),className:`absolute inset-y-0 right-0 z-10 grid min-h-0 w-[min(16rem,82%)] grid-rows-[auto_minmax(0,1fr)] border-l border-separator bg-panel shadow-panel workbench:static workbench:z-auto workbench:w-auto workbench:shadow-none`,hidden:!A,id:`file-review-navigation`,children:[(0,k.jsxs)(`div`,{className:`flex min-h-toolbar items-center gap-2 border-b border-separator px-3`,children:[(0,k.jsx)(T,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,k.jsx)(`h3`,{className:`min-w-0 flex-1 truncate text-label font-semibold`,children:v(`diff.changedFiles`)}),(0,k.jsx)(`span`,{className:`text-meta text-muted-foreground`,children:e.length}),(0,k.jsxs)(S,{children:[(0,k.jsx)(m,{asChild:!0,children:(0,k.jsx)(y,{"aria-label":v(b===`tree`?`diff.showFileList`:`diff.showFileTree`),onClick:()=>{x(b===`tree`?`list`:`tree`)},size:`icon-sm`,type:`button`,variant:`ghost`,children:b===`tree`?(0,k.jsx)(u,{"aria-hidden":`true`,className:`size-3.5`}):(0,k.jsx)(d,{"aria-hidden":`true`,className:`size-3.5`})})}),(0,k.jsx)(p,{children:v(b===`tree`?`diff.showFileList`:`diff.showFileTree`)})]})]}),(0,k.jsxs)(`div`,{className:`min-h-0 overflow-y-auto px-2 py-2`,children:[(0,k.jsx)(I,{nodes:N,onSelect:e=>{let t=P.get(e);t!==void 0&&a(t)},selectedPath:H,showStats:g,viewMode:b}),n]})]})]})]})}function U({changes:e,onClose:t}){let[n,r]=(0,O.useState)(0);if((0,O.useEffect)(()=>{e!==null&&r(0)},[e]),e===null||e.length===0)return null;let i=`file-review-dialog-title`;return(0,k.jsx)(g,{onOpenChange:e=>{e||t()},open:!0,children:(0,k.jsxs)(h,{"aria-labelledby":i,className:`h-[min(86dvh,58rem)] max-w-[78rem] overflow-hidden bg-transparent p-0`,children:[(0,k.jsx)(v,{className:`sr-only`,children:C(e[0]?.path??``)}),(0,k.jsx)(H,{changes:e,currentIndex:n,onClose:t,onCurrentIndexChange:r,titleId:i})]})})}export{T as i,H as n,E as r,U as t};
|
|
Binary file
|
|
Binary file
|