dsh-git-worktree 0.7.2 → 0.7.3
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 +22 -0
- package/NOTICE +1 -1
- package/README.en.md +45 -41
- package/README.md +45 -41
- package/lib/client/console-remote/index.d.ts +2 -2
- package/lib/client/workspace-sidebar/index.js.map +1 -1
- package/lib/client.js +413 -140
- package/package.json +32 -28
- package/scripts/check-publish.mjs +4 -7
- package/scripts/workspace-sidebar-upstream.mjs +13 -11
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,27 @@
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.7.3] - 2026-09-03
|
|
8
|
+
|
|
9
|
+
`0.7.3` 将插件完整适配到 DeepSeek Harness `0.1.2-rc.1` 的 Host、Client、Remote Gateway 与 Workspace 模块边界,并重写中英文项目首页,让安装要求、Worktree 工作方式与安全限制更容易理解。
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- 用面向普通用户的语言重写中英文 README,保留 Git Worktree 隔离、多任务并行、人工验收与恢复能力说明,并明确该工作方式与 Domi/Pi Agent Runtime 开源实现的来源关系。
|
|
14
|
+
|
|
15
|
+
### Compatibility
|
|
16
|
+
|
|
17
|
+
- 将 DeepSeek Harness Host singleton、Client 模块与完整锁图统一升级到 `0.1.2-rc.1`,同时对齐 Cordis `4.0.2` 和 Schemastery `3.18.2`,避免 rc.2/rc.1 混合运行时。
|
|
18
|
+
- 适配 rc.1 的 Client 拆分:移除已停止发布的 `dsh-client-runtime`,改用 Session/Workspace API Controller、`dsh-client-store` 与 Cordis Context 的公开类型和模块边界。
|
|
19
|
+
- 重新固定官方 Workspace Client `0.1.2-rc.1` 的 bundle SHA-256,并更新 Managed owner Browser 派生 seam;官方 Picker、locale、store、目录选择授权和 Slot declaration tree 保持不变。
|
|
20
|
+
- 适配统一 Remote Gateway:Client Remote 现在包含 generation stream 与 Host facts,测试载体实现新的 Connection lifecycle,卸载后错误码按官方命名空间收敛为 `gateway/internal`。
|
|
21
|
+
- 已复核 Session 按需事件 API(`seq`、`eventAt()`、`snapshotEvents()`)和 `SessionSeq` / `SessionLogOffset` 强类型;插件不直接读取已移除的 `Session.events`,现有 Session Target、fork/resume、Recovery 与 Local fail-closed seam 保持不变。
|
|
22
|
+
- 补充 rc.1 Host 升级说明:Code Mode 更名为 PTC mode 且旧会话仍可读取;可选 SQLite Session 后端已移除,存量数据需使用旧版 Harness 导出;应用与插件安装统一通过 `dsh` Profile。
|
|
23
|
+
|
|
24
|
+
### Security
|
|
25
|
+
|
|
26
|
+
- 双语 README 跟随上游安全声明,明确 Harness 与本插件均未经独立安全审计,Worktree、审批和权限检查不构成绝对沙箱保证。
|
|
27
|
+
|
|
7
28
|
## [0.7.2] - 2026-08-30
|
|
8
29
|
|
|
9
30
|
`0.7.2` 修复 Review 历史提交信息的持久化上限、DSH Host singleton 包的依赖边界,以及非 Git Workspace 的 Worktree 入口显示,避免 registry 写入失败、重复 Host 实例和无效创建入口。
|
|
@@ -244,6 +265,7 @@
|
|
|
244
265
|
|
|
245
266
|
- 发布初版生产级 Worktree 管理、基础 apply/finish/discard 生命周期和安全清理。
|
|
246
267
|
|
|
268
|
+
[0.7.3]: https://github.com/wloops/dsh-git-worktree/compare/v0.7.2...v0.7.3
|
|
247
269
|
[0.7.2]: https://github.com/wloops/dsh-git-worktree/compare/v0.7.1...v0.7.2
|
|
248
270
|
[0.7.1]: https://github.com/wloops/dsh-git-worktree/compare/v0.7.0...v0.7.1
|
|
249
271
|
[0.7.0]: https://github.com/wloops/dsh-git-worktree/compare/v0.6.1...v0.7.0
|
package/NOTICE
CHANGED
|
@@ -2,7 +2,7 @@ dsh-git-worktree
|
|
|
2
2
|
|
|
3
3
|
The generated browser bundle includes software derived at build time from:
|
|
4
4
|
|
|
5
|
-
@deepseek-ai/dsh-client-ui-workspace 0.1.
|
|
5
|
+
@deepseek-ai/dsh-client-ui-workspace 0.1.2-rc.1
|
|
6
6
|
Copyright (c) 2026 DeepSeek
|
|
7
7
|
Licensed under the MIT License
|
|
8
8
|
https://www.npmjs.com/package/@deepseek-ai/dsh-client-ui-workspace
|
package/README.en.md
CHANGED
|
@@ -5,62 +5,62 @@
|
|
|
5
5
|
[](https://github.com/wloops/dsh-git-worktree/actions/workflows/ci.yml)
|
|
6
6
|
[](LICENSE)
|
|
7
7
|
|
|
8
|
-
**Let agents
|
|
8
|
+
**Let agents complete tasks in independent Git Worktrees, then review the changes before deciding whether to save them.**
|
|
9
9
|
|
|
10
|
-
`dsh-git-worktree` is
|
|
10
|
+
`dsh-git-worktree` is a Git Worktree plugin for [DeepSeek Harness](https://github.com/deepseek-ai/DeepSeek-Harness). It creates a separate Worktree (working directory) for every coding task, so the agent does not directly edit the project you are using. When the task is complete, you can preview the result and then save it, send it back for changes, or discard it.
|
|
11
11
|
|
|
12
|
-
This
|
|
12
|
+
This Git Worktree workflow originated in [Domi](https://github.com/restflux/domi), an open-source desktop coding workbench powered by the Pi Agent Runtime. This plugin is independently adapted for DeepSeek Harness and can be installed and used on its own.
|
|
13
13
|
|
|
14
14
|
[中文](README.md) · [Full usage guide](docs/USAGE.en.md) · [Architecture](docs/WORKTREE-CONSOLE-ARCHITECTURE.md)
|
|
15
15
|
|
|
16
16
|
## Why use it?
|
|
17
17
|
|
|
18
|
-
When an agent edits
|
|
18
|
+
When an agent edits the current project directly, its changes can mix with your unfinished work. Running multiple tasks at once can also make them interfere with one another. With this plugin:
|
|
19
19
|
|
|
20
|
-
-
|
|
21
|
-
- the
|
|
22
|
-
- the
|
|
23
|
-
-
|
|
20
|
+
- every task is edited and tested in its own Git Worktree (an independent working directory);
|
|
21
|
+
- multiple tasks can run at the same time without sharing one working directory;
|
|
22
|
+
- when the agent finishes, you can temporarily show the changes in the current project and inspect them;
|
|
23
|
+
- changes are saved only after confirmation, and conflicts never overwrite your work automatically.
|
|
24
24
|
|
|
25
25
|
## Highlights
|
|
26
26
|
|
|
27
|
-
- **
|
|
28
|
-
- **
|
|
29
|
-
- **
|
|
30
|
-
- **
|
|
31
|
-
- **
|
|
32
|
-
- **
|
|
33
|
-
- **
|
|
34
|
-
- **
|
|
35
|
-
- **
|
|
27
|
+
- **Git Worktree isolation**: every task gets its own working directory and its own agent conversation.
|
|
28
|
+
- **Run multiple Worktrees**: develop several tasks in parallel; to avoid mixing changes, review one task at a time per project.
|
|
29
|
+
- **Preview before committing**: inspect the real result in the current project without immediately creating a Git commit.
|
|
30
|
+
- **Send it back safely**: undo the current preview and ask the agent for more changes without disturbing unrelated local work.
|
|
31
|
+
- **Save only this task**: confirmation commits only the current task instead of pulling unrelated changes into it.
|
|
32
|
+
- **Preserve progress on long tasks**: save the current stage and keep developing; the stages still become one final delivery.
|
|
33
|
+
- **Protect the working state**: branch changes, conflicts, and interrupted operations stop safely and leave the state available for recovery.
|
|
34
|
+
- **See related tasks together**: tasks from the same project are grouped in the sidebar for status checks and navigation.
|
|
35
|
+
- **Continue in the same conversation**: after delivery, begin another task without opening a new conversation.
|
|
36
36
|
|
|
37
|
-
> The
|
|
37
|
+
> The current version manages Git Worktrees within one project. It does not yet provide a global cross-project manager.
|
|
38
38
|
|
|
39
39
|
## Workflow
|
|
40
40
|
|
|
41
41
|
```mermaid
|
|
42
42
|
flowchart LR
|
|
43
|
-
A[
|
|
44
|
-
B --> C[Agent edits and
|
|
45
|
-
C --> D[
|
|
46
|
-
D -->|Preview changes| E[
|
|
47
|
-
E -->|Confirm and save| F[
|
|
48
|
-
F
|
|
49
|
-
|
|
50
|
-
D -.->|Save
|
|
51
|
-
E -.->|Undo this preview| I[Return
|
|
52
|
-
D -.->|Skip preview
|
|
43
|
+
A[Current project] -->|Create isolated task| B[Independent Git Worktree]
|
|
44
|
+
B --> C[Agent edits and tests]
|
|
45
|
+
C --> D[Review the result]
|
|
46
|
+
D -->|Preview changes| E[Inspect them in the current project]
|
|
47
|
+
E -->|Confirm and save| F[Create the task commit]
|
|
48
|
+
F --> G[Continue in the same conversation]
|
|
49
|
+
|
|
50
|
+
D -.->|Save current progress| H[Keep developing]
|
|
51
|
+
E -.->|Undo this preview| I[Return for changes]
|
|
52
|
+
D -.->|Skip preview| F
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
### Which action should I choose?
|
|
56
56
|
|
|
57
57
|
| Goal | Action |
|
|
58
58
|
| --- | --- |
|
|
59
|
-
| Inspect the result in
|
|
60
|
-
| The
|
|
59
|
+
| Inspect the result in the current project | **Preview changes** |
|
|
60
|
+
| The preview looks correct | **Confirm and save** |
|
|
61
61
|
| Preserve progress during a long task | **Save checkpoint and continue** |
|
|
62
62
|
| Ask the agent for more edits | **Continue editing** or **Undo this preview** |
|
|
63
|
-
|
|
|
63
|
+
| Save without inspecting it first | **Skip preview and save** |
|
|
64
64
|
|
|
65
65
|
See the [full usage guide](docs/USAGE.en.md) for detailed actions, recovery scenarios, and commands.
|
|
66
66
|
|
|
@@ -69,10 +69,12 @@ See the [full usage guide](docs/USAGE.en.md) for detailed actions, recovery scen
|
|
|
69
69
|
### Requirements
|
|
70
70
|
|
|
71
71
|
- Node.js `^22.19.0 || >=24.0.0`
|
|
72
|
-
- DeepSeek Harness `0.1.
|
|
72
|
+
- DeepSeek Harness `0.1.2-rc.1` package line
|
|
73
73
|
- Harness Web Client
|
|
74
74
|
- A Git Workspace
|
|
75
75
|
|
|
76
|
+
Before upgrading an existing Harness installation, handle Host data migration: `0.1.2-rc.1` removes the optional SQLite Session backend, so use an older Harness version to export that data first. Code Mode is now named PTC mode, while existing conversation records remain readable. Launch applications and install this plugin through a `dsh` Profile.
|
|
77
|
+
|
|
76
78
|
### Install
|
|
77
79
|
|
|
78
80
|
```bash
|
|
@@ -82,7 +84,7 @@ dsh plugin --profile web add dsh-git-worktree
|
|
|
82
84
|
Or install a specific version:
|
|
83
85
|
|
|
84
86
|
```bash
|
|
85
|
-
dsh plugin --profile web add github:wloops/dsh-git-worktree#v0.7.
|
|
87
|
+
dsh plugin --profile web add github:wloops/dsh-git-worktree#v0.7.3
|
|
86
88
|
```
|
|
87
89
|
|
|
88
90
|
Open a Git Workspace and enable **Worktree** when creating a Session. An existing Local Session can also let the model call `worktree_create`.
|
|
@@ -105,20 +107,22 @@ See the [full usage guide](docs/USAGE.en.md#complete-delivery-example) for the c
|
|
|
105
107
|
|
|
106
108
|
## Safety boundary
|
|
107
109
|
|
|
108
|
-
|
|
110
|
+
Before writing task changes back to the current project, the plugin checks again that the task version, project location, and file state still match the review. If you switched branches, changes conflict, or a previous operation was interrupted, it stops and preserves the working state instead of guessing and overwriting files.
|
|
111
|
+
|
|
112
|
+
Worktree separation is designed to prevent tasks from accidentally changing one another's files. It is not a system sandbox for running untrusted code.
|
|
109
113
|
|
|
110
|
-
For the
|
|
114
|
+
For the detailed state checks and recovery rules, see:
|
|
111
115
|
|
|
112
116
|
- [Worktree Console architecture](docs/WORKTREE-CONSOLE-ARCHITECTURE.md)
|
|
113
117
|
- [Session Target porting notes](docs/PORTING.md)
|
|
114
118
|
|
|
115
|
-
## Current
|
|
119
|
+
## Current limitations
|
|
116
120
|
|
|
117
|
-
- A
|
|
118
|
-
-
|
|
119
|
-
- Child agents
|
|
120
|
-
-
|
|
121
|
-
-
|
|
121
|
+
- A task is grouped under its original project only when that relationship is clear. Uncertain tasks remain in their original location so they are never hidden.
|
|
122
|
+
- Isolated tasks can be renamed and archived, but a new task cannot yet be forked directly from the task conversation.
|
|
123
|
+
- Child agents share the parent task's working directory; a separate Worktree is not created for every child agent.
|
|
124
|
+
- Saved stage records cannot yet be edited, deleted, reordered, or rolled back to an arbitrary stage.
|
|
125
|
+
- The broader cross-project management, direct repair of the current project, dependency reuse, and collaboration handoff features in [Domi](https://github.com/restflux/domi) are outside this plugin's current scope.
|
|
122
126
|
|
|
123
127
|
## Local development
|
|
124
128
|
|
package/README.md
CHANGED
|
@@ -5,62 +5,62 @@
|
|
|
5
5
|
[](https://github.com/wloops/dsh-git-worktree/actions/workflows/ci.yml)
|
|
6
6
|
[](LICENSE)
|
|
7
7
|
|
|
8
|
-
**让 Agent
|
|
8
|
+
**让 Agent 在独立 Git Worktree 中完成任务,你看过修改后再决定是否保存。**
|
|
9
9
|
|
|
10
|
-
`dsh-git-worktree` 是 [DeepSeek Harness](https://github.com/deepseek-ai/DeepSeek-Harness)
|
|
10
|
+
`dsh-git-worktree` 是 [DeepSeek Harness](https://github.com/deepseek-ai/DeepSeek-Harness) 的 Git Worktree 插件。它会为每个编码任务创建独立的 Worktree(工作目录),Agent 不会直接改动你正在使用的项目。任务完成后,你可以先预览结果,再选择保存、退回修改或放弃。
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
这套 Git Worktree 工作方式最初来自基于 Pi Agent Runtime 的开源桌面 coding 工作台 [Domi](https://github.com/restflux/domi),本插件是针对 DeepSeek Harness 独立适配的版本,可以单独安装和使用。
|
|
13
13
|
|
|
14
14
|
[English](README.en.md) · [完整使用指南](docs/USAGE.md) · [架构说明](docs/WORKTREE-CONSOLE-ARCHITECTURE.md)
|
|
15
15
|
|
|
16
16
|
## 为什么使用它?
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
让 Agent 直接修改当前项目时,它的改动可能与你尚未提交的内容混在一起;同时运行多个任务时,也更容易互相影响。使用本插件后:
|
|
19
19
|
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
20
|
+
- 每个任务都在自己的 Git Worktree(独立工作目录)中修改和测试;
|
|
21
|
+
- 多个任务可以同时进行,不会共用同一个工作目录;
|
|
22
|
+
- Agent 完成后,你可以先把修改临时显示在当前项目中查看;
|
|
23
|
+
- 只有确认后才会保存本轮修改,遇到冲突时不会自动覆盖你的内容。
|
|
24
24
|
|
|
25
25
|
## 核心能力
|
|
26
26
|
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
27
|
+
- **Git Worktree 隔离**:每个任务都有独立的工作目录和 Agent 对话。
|
|
28
|
+
- **多个 Worktree 并行**:可以同时开发多个任务;为了避免混入修改,同一项目每次只验收一个任务。
|
|
29
|
+
- **提交前预览**:先在当前项目中查看真实效果,不会立即创建 Git 提交。
|
|
30
|
+
- **不满意可以退回**:撤回本次预览,继续让 Agent 修改,不影响其他本地改动。
|
|
31
|
+
- **只保存本轮任务**:确认后只提交这个任务的修改,不把无关内容一起带入。
|
|
32
|
+
- **长任务可分阶段**:先保存当前阶段的进度,再继续开发;最终仍合并为一次交付。
|
|
33
|
+
- **出错时保护现场**:检测到分支变化、内容冲突或中断时停止操作,保留现场供你处理。
|
|
34
|
+
- **集中查看任务**:同一项目的任务会聚合显示在侧边栏中,便于查看状态和切换。
|
|
35
|
+
- **原对话继续下一轮**:任务交付后,无需新开对话即可继续下一项修改。
|
|
36
36
|
|
|
37
|
-
>
|
|
37
|
+
> 当前版本管理单个项目中的 Git Worktree,暂不提供跨项目的全局管理界面。
|
|
38
38
|
|
|
39
39
|
## 工作流
|
|
40
40
|
|
|
41
41
|
```mermaid
|
|
42
42
|
flowchart LR
|
|
43
|
-
A[
|
|
44
|
-
B --> C[Agent
|
|
45
|
-
C --> D[
|
|
46
|
-
D -->|预览修改| E[
|
|
47
|
-
E -->|确认并保存| F[
|
|
48
|
-
F
|
|
49
|
-
|
|
50
|
-
D
|
|
43
|
+
A[当前项目] -->|创建隔离任务| B[独立 Git Worktree]
|
|
44
|
+
B --> C[Agent 修改并测试]
|
|
45
|
+
C --> D[查看验收结果]
|
|
46
|
+
D -->|预览修改| E[在当前项目中查看效果]
|
|
47
|
+
E -->|确认并保存| F[创建本轮提交]
|
|
48
|
+
F --> G[在原对话继续下一轮]
|
|
49
|
+
|
|
50
|
+
D -.->|保存阶段进度| H[继续开发]
|
|
51
51
|
E -.->|撤回本次预览| I[返回修改]
|
|
52
|
-
D
|
|
52
|
+
D -.->|跳过预览| F
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
### 怎么选?
|
|
56
56
|
|
|
57
57
|
| 目标 | 操作 |
|
|
58
58
|
| --- | --- |
|
|
59
|
-
|
|
|
60
|
-
|
|
|
61
|
-
|
|
|
59
|
+
| 先在当前项目中查看效果 | **预览修改** |
|
|
60
|
+
| 预览结果没有问题 | **确认并保存** |
|
|
61
|
+
| 任务很长,先固定当前进度 | **保存阶段并继续** |
|
|
62
62
|
| 还要让 Agent 改代码 | **继续修改**或**撤回本次预览** |
|
|
63
|
-
|
|
|
63
|
+
| 不需要先查看效果 | **跳过预览并保存** |
|
|
64
64
|
|
|
65
65
|
详细的操作、恢复场景和命令见[完整使用指南](docs/USAGE.md)。
|
|
66
66
|
|
|
@@ -69,10 +69,12 @@ flowchart LR
|
|
|
69
69
|
### 环境要求
|
|
70
70
|
|
|
71
71
|
- Node.js `^22.19.0 || >=24.0.0`
|
|
72
|
-
- DeepSeek Harness `0.1.
|
|
72
|
+
- DeepSeek Harness `0.1.2-rc.1` 包线
|
|
73
73
|
- Harness Web Client
|
|
74
74
|
- Git Workspace
|
|
75
75
|
|
|
76
|
+
从旧 Harness 升级时请先处理 Host 数据迁移:`0.1.2-rc.1` 已移除可选 SQLite Session 后端,旧数据需使用旧版 Harness 导出;Code Mode 已更名为 PTC mode,但现有会话记录仍可读取。应用和本插件统一通过 `dsh` Profile 启动与安装。
|
|
77
|
+
|
|
76
78
|
### 安装
|
|
77
79
|
|
|
78
80
|
```bash
|
|
@@ -82,7 +84,7 @@ dsh plugin --profile web add dsh-git-worktree
|
|
|
82
84
|
也可以安装指定版本:
|
|
83
85
|
|
|
84
86
|
```bash
|
|
85
|
-
dsh plugin --profile web add github:wloops/dsh-git-worktree#v0.7.
|
|
87
|
+
dsh plugin --profile web add github:wloops/dsh-git-worktree#v0.7.3
|
|
86
88
|
```
|
|
87
89
|
|
|
88
90
|
安装后打开 Git Workspace,在新建 Session 时启用 **Worktree**;已有 Local Session 也可以让模型调用 `worktree_create` 创建隔离 Session。
|
|
@@ -105,20 +107,22 @@ dsh plugin --profile web add github:wloops/dsh-git-worktree#v0.7.2
|
|
|
105
107
|
|
|
106
108
|
## 安全边界
|
|
107
109
|
|
|
108
|
-
|
|
110
|
+
每次把任务修改写回当前项目之前,插件都会重新确认任务版本、项目位置和文件状态仍与验收时一致。如果你切换了分支、修改发生冲突,或上一次操作意外中断,插件会停止写入并保留现场,而不是猜测后继续覆盖。
|
|
111
|
+
|
|
112
|
+
Worktree 隔离主要用于避免任务之间误改文件,不是用来运行不受信任代码的系统沙箱。
|
|
109
113
|
|
|
110
|
-
|
|
114
|
+
更详细的状态检查与恢复规则见:
|
|
111
115
|
|
|
112
116
|
- [Worktree Console 架构](docs/WORKTREE-CONSOLE-ARCHITECTURE.md)
|
|
113
117
|
- [Session Target 迁移说明](docs/PORTING.md)
|
|
114
118
|
|
|
115
|
-
##
|
|
119
|
+
## 当前限制
|
|
116
120
|
|
|
117
|
-
-
|
|
118
|
-
-
|
|
119
|
-
- 子 Agent
|
|
120
|
-
-
|
|
121
|
-
- Domi
|
|
121
|
+
- 只有归属关系明确的任务才会聚合到原项目;无法确认时仍保留原位置,避免任务被隐藏。
|
|
122
|
+
- 隔离任务可以重命名和归档,暂不支持从任务对话直接复制出新任务(Fork)。
|
|
123
|
+
- 子 Agent 与父任务使用同一个工作目录,不会再为每个子 Agent 创建新的 Worktree。
|
|
124
|
+
- 已保存的阶段记录暂不支持编辑、删除、调整顺序或回退到任意阶段。
|
|
125
|
+
- [Domi](https://github.com/restflux/domi) 中更完整的跨项目管理、直接修复当前项目、依赖复用和协作交接能力不在本插件当前范围内。
|
|
122
126
|
|
|
123
127
|
## 本地开发
|
|
124
128
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Context } from '@deepseek-ai/cordis';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ClientRemote } from '@deepseek-ai/dsh-api-gateway/client';
|
|
3
3
|
import type { WorktreeConsoleAdapter } from '../../console-contract.js';
|
|
4
4
|
import { type GitWorktreeRemote } from '../../console-remote/remote.js';
|
|
5
5
|
export { createWorktreeConsoleRemoteAdapter } from './adapter.js';
|
|
6
6
|
export declare const inject: string[];
|
|
7
7
|
interface ConsoleClientContext extends Context {
|
|
8
|
-
remote:
|
|
8
|
+
remote: ClientRemote & {
|
|
9
9
|
gitWorktree: GitWorktreeRemote;
|
|
10
10
|
};
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/client/workspace-sidebar/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAsB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/client/workspace-sidebar/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAsB,MAAM,OAAO,CAAA;AAKxE,OAAO,EAAE,KAAK,IAAI,sBAAsB,EAAE,MAAM,uCAAuC,CAAA;AAGvF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAA;AAClF,OAAO,EAAE,8BAA8B,EAAE,MAAM,YAAY,CAAA;AAE3D,MAAM,cAAc,GAAoC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAA;AAexE;;;GAGG;AACH,MAAM,UAAU,+BAA+B,CAAC,EAC9C,OAAO,EACP,eAAe,EACf,GAAG,aAAa,EACc;IAC9B,MAAM,KAAK,GAAG,aAAiD,CAAA;IAC/D,MAAM,cAAc,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,KAAyB,EAAE,EAAE,CAAC,KAAK,CAAuB,CAAA;IACtG,MAAM,YAAY,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,KAAuB,EAAE,EAAE,CAAC,KAAK,CAAqB,CAAA;IAC9F,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,C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