@1yefuwang1/dsh-worktrees 0.0.0-stage → 0.2.14
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 +229 -0
- package/LICENSE +21 -0
- package/README.md +474 -2
- package/client.js +1425 -0
- package/cordis.patch.yml +6 -0
- package/dist/context.d.ts +20 -0
- package/dist/context.js +70 -0
- package/dist/errors.d.ts +12 -0
- package/dist/errors.js +30 -0
- package/dist/first-message.d.ts +19 -0
- package/dist/first-message.js +121 -0
- package/dist/git.d.ts +45 -0
- package/dist/git.js +806 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +183 -0
- package/dist/naming.d.ts +25 -0
- package/dist/naming.js +151 -0
- package/dist/project-context.d.ts +20 -0
- package/dist/project-context.js +82 -0
- package/dist/project-rpc.d.ts +10 -0
- package/dist/project-rpc.js +103 -0
- package/dist/project-store.d.ts +121 -0
- package/dist/project-store.js +32 -0
- package/dist/projects.d.ts +149 -0
- package/dist/projects.js +603 -0
- package/dist/quiet-rpc.d.ts +7 -0
- package/dist/quiet-rpc.js +125 -0
- package/dist/rpc.d.ts +10 -0
- package/dist/rpc.js +418 -0
- package/dist/runtime.d.ts +22 -0
- package/dist/runtime.js +123 -0
- package/dist/schema.d.ts +50 -0
- package/dist/schema.js +86 -0
- package/dist/service.d.ts +98 -0
- package/dist/service.js +943 -0
- package/dist/sessions.d.ts +31 -0
- package/dist/sessions.js +130 -0
- package/dist/store.d.ts +114 -0
- package/dist/store.js +44 -0
- package/dist/types.d.ts +262 -0
- package/dist/types.js +1 -0
- package/icon.svg +1 -0
- package/locale/en.json +6 -0
- package/package.json +106 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
# @1yefuwang1/dsh-worktrees changelog
|
|
2
|
+
|
|
3
|
+
## 0.2.14 — Native sidebar view switch
|
|
4
|
+
|
|
5
|
+
- Move the view switch from the footer into native sidebar navigation, between
|
|
6
|
+
Automation tasks and Worktrees, using the native row styling and icon sizing.
|
|
7
|
+
- Label the action by its destination: **Switch to Projects View** or
|
|
8
|
+
**Switch to Workspace View**, with matching Chinese translations.
|
|
9
|
+
- Preserve native sidebar declarations and extensions through owned slot aliases;
|
|
10
|
+
switching views leaves the current conversation and other panel actions intact.
|
|
11
|
+
- Add regression coverage for navigation order, labels, callback routing and
|
|
12
|
+
native sidebar restoration on plugin unload.
|
|
13
|
+
|
|
14
|
+
## 0.2.13 — First scoped release preparation
|
|
15
|
+
|
|
16
|
+
- Package as `@1yefuwang1/dsh-worktrees` to avoid an unrelated unscoped npm name;
|
|
17
|
+
publish only this leaf through the staged trusted-publishing workflow. Preserve
|
|
18
|
+
stable tool/command, UI, RPC and storage identifiers across the identity change.
|
|
19
|
+
|
|
20
|
+
- Match Projects working-session markers to native Folder view: a neutral 14px
|
|
21
|
+
SVG ring with synchronized 1.5s rotation/breathing and reduced-motion support.
|
|
22
|
+
- Use native-sized solid pending/completion dots and preserve pending/activity/
|
|
23
|
+
completion priority, blank/archive suppression and idle extension decorations.
|
|
24
|
+
- Keep activity state distinct from permanent worktree backing. No core changes.
|
|
25
|
+
|
|
26
|
+
## 0.2.12 — Compact sidebar toolbar
|
|
27
|
+
|
|
28
|
+
- Replace the always-visible search field and archive dropdown with a compact
|
|
29
|
+
Projects toolbar: Search, View options and Add project icons match Folder view.
|
|
30
|
+
- Reveal and focus inline search on request; Escape/Close clears the filter and
|
|
31
|
+
restores trigger focus. Keep archive choices in an owned keyboard-accessible
|
|
32
|
+
popover, without changing project management, sessions or native editor state.
|
|
33
|
+
|
|
34
|
+
## 0.2.11 — Native sidebar alignment
|
|
35
|
+
|
|
36
|
+
- Match Projects sidebar typography and row spacing to the native Folder view,
|
|
37
|
+
with the same open/closed workspace-folder artwork instead of text glyphs.
|
|
38
|
+
- Show localized session last-active times and an absolute-date tooltip using
|
|
39
|
+
the native relative-time buckets, with hover/focus actions replacing the time.
|
|
40
|
+
- Use counted Show X more sessions labels and the native 12px overflow style;
|
|
41
|
+
count only actually hidden rows while preserving running/current sessions.
|
|
42
|
+
- Retain permanent worktree indicators, native row extensions and metadata-only
|
|
43
|
+
project management. No core changes or background date/Git polling.
|
|
44
|
+
|
|
45
|
+
## 0.2.10 — Metadata-only project removal
|
|
46
|
+
|
|
47
|
+
- Add Remove project to Manage project, with a metadata-only confirmation that
|
|
48
|
+
keeps source folders, files, conversations and managed worktrees intact.
|
|
49
|
+
- Persist removal receipts before cleanup; prevent folder auto-import from
|
|
50
|
+
recreating removed projects on refresh, restart or ordinary worktree use.
|
|
51
|
+
Explicit re-add uses a fresh project UUID and retains native folder identities.
|
|
52
|
+
- Keep removed projects' conversations accessible under Other threads and Folder
|
|
53
|
+
view, with truthful managed-worktree icons, branches and execution paths.
|
|
54
|
+
- Share Save/Remove single-flight admission, preserve refused editor drafts, and
|
|
55
|
+
fence stale reads and ownership-sensitive New intents without Local fallback.
|
|
56
|
+
- Retain native workspaces, sessions, start receipts and Git data. No core changes.
|
|
57
|
+
|
|
58
|
+
## 0.2.9 — Git-aware conversation options
|
|
59
|
+
|
|
60
|
+
- Offer New worktree/remote-branch controls only after the actual blank target
|
|
61
|
+
passes a read-only local Git status check and has a configured remote. Plain
|
|
62
|
+
folders, unsupported/unverified sources and failed checks retain Local chats.
|
|
63
|
+
- Coalesce/cache exact binding/folder/connection observations; abort stale checks
|
|
64
|
+
on target changes, panel/unmount, reconnect or disposal without polling rows.
|
|
65
|
+
- Gate New selection, native intent capture and setup checks; revoke stale branch
|
|
66
|
+
queries and captured New attempts without silently changing them to Local.
|
|
67
|
+
Unavailable New intent requires explicit Local selection, including worktree-
|
|
68
|
+
backed sources. Fresh configure/Send status failures revoke older positives.
|
|
69
|
+
- Preserve read-only caller authorization, fresh Send-time validation, native draft
|
|
70
|
+
restoration and accepted destination navigation. No core or Host API changes.
|
|
71
|
+
|
|
72
|
+
## 0.2.8 — Main-folder defaults and reminders
|
|
73
|
+
|
|
74
|
+
- Persist a main folder per project; require an explicit choice for new multi-
|
|
75
|
+
folder GUI drafts and migrate legacy metadata to its first folder. Main-only
|
|
76
|
+
edits and folder reorders never change existing conversation cwd or bindings.
|
|
77
|
+
- Default the project's New Thread action to main, with alternate-folder actions
|
|
78
|
+
and a guarded empty-composer folder selector using the native session flow.
|
|
79
|
+
- Expose canonical `mainFolder` create/update paths and optional start `folderId`;
|
|
80
|
+
default-start replay retains its original folder/session and caller safeguards.
|
|
81
|
+
- Add main/default, actual selection, execution directory and bounded folder IDs
|
|
82
|
+
to the native agent system reminder; always include main/selected folders, with
|
|
83
|
+
full-metadata discovery and explicit permissions/worktree boundaries.
|
|
84
|
+
- Reject invalid defaults and unsafe main removal; retain managed-ancestry folder
|
|
85
|
+
protection. Keep DSH core, native editor, log/cwd and permissions unchanged.
|
|
86
|
+
|
|
87
|
+
## 0.2.7 — Multi-folder project dialog
|
|
88
|
+
|
|
89
|
+
- Redesign Create/Manage project as a compact name field, Source folders card,
|
|
90
|
+
removable folder rows, Add control and Cancel/Create project footer.
|
|
91
|
+
- Support checkbox-based batch folder selection retained across Host directory
|
|
92
|
+
navigation, repeated Add, deduplication and an atomic 32-folder limit. Keep
|
|
93
|
+
manual absolute paths and the optional single-folder native chooser.
|
|
94
|
+
- Guard pending saves/pickers synchronously, keep one create UUID per dialog,
|
|
95
|
+
freeze full folder replacements, retain refused drafts and block dismissal
|
|
96
|
+
while non-cancellable operations are pending. Abort superseded browser scans.
|
|
97
|
+
- Preserve shared project tools/RPC, Host ownership/removal/path checks, existing
|
|
98
|
+
execution directories and permissions. No core or shell changes.
|
|
99
|
+
|
|
100
|
+
## 0.2.6 — Worktree root settings
|
|
101
|
+
|
|
102
|
+
- Expose Worktree root folder on the plugin row's native configuration page, with
|
|
103
|
+
persisted Save and field-only reset, validation and revision-conflict handling.
|
|
104
|
+
- Make the root a native volatile setting and snapshot it once at new-create
|
|
105
|
+
admission. Live edits affect future creates, never existing/in-flight paths or
|
|
106
|
+
ready-operation replays; snapshots/handoff retain their load-time storage root.
|
|
107
|
+
- Keep plain constructor/apply compatibility and existing caller/plan/root safety
|
|
108
|
+
checks. No core changes, custom settings transport, folder migration or grant.
|
|
109
|
+
|
|
110
|
+
## 0.2.5 — Chat header cleanup
|
|
111
|
+
|
|
112
|
+
- Remove the Worktrees button beside the project name in the chat header. Keep
|
|
113
|
+
project/backing metadata passive and retain the manager's sidebar entry.
|
|
114
|
+
- Leave compact sidebar worktree indicators and lazy first-Send setup unchanged.
|
|
115
|
+
|
|
116
|
+
## 0.2.4 — Compact sidebar update
|
|
117
|
+
|
|
118
|
+
- Keep Projects sidebar worktree rows compact: show a permanent worktree icon,
|
|
119
|
+
not inline worktree/branch-name text. Hovering the title or icon reveals the
|
|
120
|
+
branch and execution path; thread details retain both and accessible naming.
|
|
121
|
+
- Leave lazy setup, conversation headers, manager and native row actions unchanged.
|
|
122
|
+
|
|
123
|
+
## 0.2.3 — Lazy native setup update
|
|
124
|
+
|
|
125
|
+
- Make New worktree selection side-effect-free. First native ordinary Send lazily
|
|
126
|
+
fetches the selected latest remote base, creates a random checkout/branch,
|
|
127
|
+
generates/applies a branch name, and only then admits the normal prompt.
|
|
128
|
+
- Add visible Fetching/Creating/Naming progress and cancellation through bounded
|
|
129
|
+
event-driven authenticated wait RPC; no periodic polling or early main LLM call.
|
|
130
|
+
- Use the explicitly approved exact-version native submission-sink adapter, not a
|
|
131
|
+
replacement message editor or core modification. Preserve native commands,
|
|
132
|
+
reference codecs, submission gestures and draft/chip/undo rollback.
|
|
133
|
+
- Capture intent before async native serialization/adjudication; Local changes,
|
|
134
|
+
unload and navigation cannot accidentally fall through to a Local prompt.
|
|
135
|
+
- Re-stage/await exact-session file receipts, retain source through native
|
|
136
|
+
settlement, and guard ambiguous admission against duplicate work/prompts.
|
|
137
|
+
- Persist foreground naming intent/result after checkout, retain the random cwd,
|
|
138
|
+
and cap foreground auxiliary naming at 15 seconds with deterministic fallback.
|
|
139
|
+
|
|
140
|
+
## 0.2.2 — Native eager creation update
|
|
141
|
+
|
|
142
|
+
- Remove the custom first-message composer and New Thread dialog. Restore the
|
|
143
|
+
native workspace picker, rich editor, attachments and Send behavior; add only
|
|
144
|
+
a Local/New worktree choice to the blank-conversation toolbar. Project New
|
|
145
|
+
Thread uses the native session flow instead of a separate dialog.
|
|
146
|
+
- Create a random directory and local branch immediately when New worktree is
|
|
147
|
+
chosen, from a freshly fetched selectable remote base. No prompt, draft/file
|
|
148
|
+
transfer, naming inference or composer replacement occurs during creation.
|
|
149
|
+
- Rename only the initial branch from the first committed user message at a safe
|
|
150
|
+
idle maintenance window. Keep cwd, checkout path and session identity stable;
|
|
151
|
+
never overwrite a collision or a manually changed/protected/archived branch.
|
|
152
|
+
- Persist exact-message naming receipts/results, honor caller permissions and
|
|
153
|
+
disposal, and reuse results or deterministic fallback after interruption without
|
|
154
|
+
repeating uncertain inference. Leave session titles with the native feature.
|
|
155
|
+
- Refresh cached branch records through native Workspace structural updates,
|
|
156
|
+
retaining quiet authenticated RPC, project grouping and non-destructive recovery.
|
|
157
|
+
|
|
158
|
+
## 0.2.1 — UI transport fix
|
|
159
|
+
|
|
160
|
+
- Fix sidebar HTTP 404 by owning exact authenticated POST Fetch routes instead
|
|
161
|
+
of attempting to claim the API gateway's exclusive shared `/api` interceptor.
|
|
162
|
+
Project and worktree endpoints coexist with native APIs, without core changes.
|
|
163
|
+
- Preserve the public Connection request/response envelope and rpcId correlation,
|
|
164
|
+
existing operator admission, caller authorization, bounded bodies and orderly
|
|
165
|
+
cancellation/disposal. UI traffic remains quiet; no command fallback is used.
|
|
166
|
+
- Exercise the real HostConnectionService Fetch router with the native gateway
|
|
167
|
+
installed first, rather than a fake multi-interceptor registry.
|
|
168
|
+
|
|
169
|
+
## 0.2.0 — Project/thread model update
|
|
170
|
+
|
|
171
|
+
- Add durable multi-folder projects independent of native Workspace paths. Import
|
|
172
|
+
existing Local workspaces, group their Local and managed-worktree threads, and
|
|
173
|
+
retain membership when imported folders are combined into explicit projects.
|
|
174
|
+
- Add a project-grouped sidebar with permanent accessible worktree indicators,
|
|
175
|
+
project/folder-aware New Thread, create/edit dialogs, search, pinned/archived
|
|
176
|
+
access, and an explicit fallback to the original native folder browser.
|
|
177
|
+
- Preserve native row extensions through lifecycle-owned, namespaced public slot
|
|
178
|
+
aliases; do not replace the app shell, mutate core, or change existing cwd/logs.
|
|
179
|
+
- Bind new worktree threads and Local handoff continuations to their actual
|
|
180
|
+
project folder. Preserve subdirectories, support legacy nested ownership, and
|
|
181
|
+
keep source worktree indicators off Local handoff threads.
|
|
182
|
+
- Add quiet project RPC, shared `workspace_project` tool and `/project` command,
|
|
183
|
+
strict numeric DTO validation, cancellation/idempotent blank-thread creation,
|
|
184
|
+
and bounded project runtime context. No permission grant or automatic prompt.
|
|
185
|
+
|
|
186
|
+
## 0.1.2 — Quiet UI transport update
|
|
187
|
+
|
|
188
|
+
- Move every generated UI request to authenticated Connection RPC. List/status,
|
|
189
|
+
branch selection, remounts, cancellations and user actions no longer append
|
|
190
|
+
visible slash-command lifecycle rows. Explicit commands and agent tools remain
|
|
191
|
+
available with unchanged caller-bound authorization and operation semantics.
|
|
192
|
+
- Preserve existing chat history; no transcript/card hiding or core changes.
|
|
193
|
+
|
|
194
|
+
## 0.1.1 — Local UI/naming update
|
|
195
|
+
|
|
196
|
+
- Simplify New Chat to compact Local/New worktree and remote-base-branch choices.
|
|
197
|
+
Worktree creation and automatic directory/display/branch naming occur on its
|
|
198
|
+
first Send, using a plugin-owned first-prompt composer without core changes.
|
|
199
|
+
- Add configurable auxiliary naming, defaulting to github-copilot/gpt-6-luna,
|
|
200
|
+
bounded and validated with deterministic fallback and no other-model retry.
|
|
201
|
+
- Declare the remote.commands Client namespace and stop passive header/Local
|
|
202
|
+
background commands from producing repeated conversation rows.
|
|
203
|
+
|
|
204
|
+
## 0.1.0 — Initial local release
|
|
205
|
+
|
|
206
|
+
- Add a separately installable Host/Web Client bundle for isolated linked Git
|
|
207
|
+
worktree conversations, without replacing an LLM adapter or web-search provider.
|
|
208
|
+
- Add blank-conversation Local/New worktree setup, selectable remote and searchable
|
|
209
|
+
advertised branches, a fresh selected-branch fetch and a pinned detached base.
|
|
210
|
+
- Guard exact-session draft/file transfer with composer-block ownership, source
|
|
211
|
+
generation/currentness, draft and settings checks, cancellation and navigation
|
|
212
|
+
supersession. Prepare never sends a prompt; rich references flatten to clipboard
|
|
213
|
+
text and runtime-only files must be reviewed/restaged before Send.
|
|
214
|
+
- Add manager/header reminders, status, exact conversation opening, branch creation,
|
|
215
|
+
protection and archive/restore of records; archiving never deletes files or logs.
|
|
216
|
+
- Add retained preview/export and explicitly acknowledged optimistic Local handoff.
|
|
217
|
+
Full access, idle known sessions, clean target at the saved base and stopped
|
|
218
|
+
external writers are required; no automatic pull/reset/branch switch or claim of
|
|
219
|
+
global atomicity. A running source cannot self-handoff from its own agent tool.
|
|
220
|
+
- Journal operation identities and partial outcomes for non-destructive recovery;
|
|
221
|
+
committed same-request replay returns the original session/base. Preserve normal
|
|
222
|
+
original-history, fork and Goal semantics.
|
|
223
|
+
- Add bounded managed Git execution, supported-repository checks, public declaration
|
|
224
|
+
consumers, static/pure Client protocols and local-Git fixture tests.
|
|
225
|
+
- Add an explicit publication allowlist and package-specific release tag. This
|
|
226
|
+
version has not been published; live installed-GUI verification remains required.
|
|
227
|
+
|
|
228
|
+
Independent history from the catalog and search packages. Licensed under
|
|
229
|
+
[MIT](<LICENSE>).
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 dsh-copilot-catalog contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|