@laoyuehanni/dsh-git-worktree 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -41
- package/README.zh.md +24 -41
- package/lib/client.js +110 -33
- package/lib/git.d.ts +15 -2
- package/lib/git.js +66 -6
- package/lib/index.d.ts +13 -3
- package/lib/index.js +60 -97
- package/package.json +30 -16
- package/lib/client.js.map +0 -1
package/lib/git.js
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
* argument assembly plus porcelain parsing, no ambient state.
|
|
5
5
|
*/
|
|
6
6
|
import { execFile } from 'node:child_process';
|
|
7
|
-
import { existsSync } from 'node:fs';
|
|
7
|
+
import { existsSync, readdirSync } from 'node:fs';
|
|
8
|
+
import { rm } from 'node:fs/promises';
|
|
8
9
|
import { basename, dirname, isAbsolute, normalize, resolve } from 'node:path';
|
|
9
10
|
import { localBranchName } from './normalize.js';
|
|
10
11
|
/** Failure of one git invocation: non-zero exit with the stderr text. */
|
|
@@ -45,6 +46,33 @@ async function gitMaybe(exec, cwd, args) {
|
|
|
45
46
|
}
|
|
46
47
|
/** Real existence check. */
|
|
47
48
|
export const fsDirExists = path => existsSync(path);
|
|
49
|
+
/** Real leftover sweep: `fs.rm` with Windows EPERM retries, then classify. */
|
|
50
|
+
export async function fsSweepDir(path) {
|
|
51
|
+
if (!existsSync(path))
|
|
52
|
+
return 'gone';
|
|
53
|
+
try {
|
|
54
|
+
await rm(path, { recursive: true, force: true, maxRetries: 8, retryDelay: 100 });
|
|
55
|
+
}
|
|
56
|
+
catch {
|
|
57
|
+
// Retries exhausted; classify whatever is still on disk.
|
|
58
|
+
}
|
|
59
|
+
if (!existsSync(path))
|
|
60
|
+
return 'gone';
|
|
61
|
+
try {
|
|
62
|
+
return readdirSync(path).length === 0 ? 'empty' : 'occupied';
|
|
63
|
+
}
|
|
64
|
+
catch {
|
|
65
|
+
return 'occupied';
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/** stderr of a git rmdir that lost to an OS file lock (not git's dirty check). */
|
|
69
|
+
function isDirBusyGitError(error) {
|
|
70
|
+
const text = error.stderr;
|
|
71
|
+
return /permission denied/i.test(text)
|
|
72
|
+
|| /\bEPERM\b/i.test(text)
|
|
73
|
+
|| /\bEACCES\b/i.test(text)
|
|
74
|
+
|| /\bEBUSY\b/i.test(text);
|
|
75
|
+
}
|
|
48
76
|
/**
|
|
49
77
|
* Resolve a directory to repository facts, or undefined outside any git
|
|
50
78
|
* repository (including the `git` binary missing: ENOENT surfaces as a
|
|
@@ -61,10 +89,16 @@ export async function probeRepo(exec, path, dirExists = fsDirExists) {
|
|
|
61
89
|
// repoName comes from the shared .git location: a linked worktree's own
|
|
62
90
|
// toplevel would name the branch folder, not the repository. Both git
|
|
63
91
|
// outputs carry forward slashes on Windows — normalize every derived path.
|
|
64
|
-
const
|
|
92
|
+
const toplevel = normalize(top.trim());
|
|
65
93
|
const gitDir = commonDir !== undefined && commonDir.trim() !== ''
|
|
66
94
|
? normalize(resolve(path, commonDir.trim()))
|
|
67
|
-
: resolve(
|
|
95
|
+
: resolve(toplevel, '.git');
|
|
96
|
+
// Main worktree, not the queried directory: a linked worktree's
|
|
97
|
+
// `--show-toplevel` is its own folder, which `git worktree remove` then
|
|
98
|
+
// destroys (including `.git`). Later `worktree list` / `worktree prune`
|
|
99
|
+
// must still run in a living git dir — the shared checkout
|
|
100
|
+
// (`dirname(--git-common-dir)`), same grouping key as probeWorkspaceGit.
|
|
101
|
+
const repoRoot = dirname(gitDir);
|
|
68
102
|
return {
|
|
69
103
|
repoRoot,
|
|
70
104
|
repoName: basename(dirname(gitDir)),
|
|
@@ -387,11 +421,13 @@ export async function inspectWorktree(exec, worktreePath) {
|
|
|
387
421
|
* @param worktreePath - the linked worktree directory to delete (absolute).
|
|
388
422
|
* @param force - pass `--force` past uncommitted changes.
|
|
389
423
|
* @param dirExists - existence seam for the stale-registration branch.
|
|
424
|
+
* @param sweepDir - leftover rmdir after git unregisters but the OS holds the
|
|
425
|
+
* folder (Windows Permission denied on the empty directory).
|
|
390
426
|
* @returns the path plus whether only a stale registration was pruned.
|
|
391
427
|
* @throws GitError for the main worktree, an unregistered path, or a refused
|
|
392
428
|
* removal (git's own stderr verbatim).
|
|
393
429
|
*/
|
|
394
|
-
export async function removeWorktree(exec, repoRoot, worktreePath, force, dirExists = fsDirExists) {
|
|
430
|
+
export async function removeWorktree(exec, repoRoot, worktreePath, force, dirExists = fsDirExists, sweepDir = fsSweepDir) {
|
|
395
431
|
const target = normalize(worktreePath);
|
|
396
432
|
const worktrees = await listWorktrees(exec, repoRoot);
|
|
397
433
|
const registered = worktrees.find(w => w.path === target);
|
|
@@ -407,8 +443,32 @@ export async function removeWorktree(exec, repoRoot, worktreePath, force, dirExi
|
|
|
407
443
|
await git(exec, repoRoot, ['worktree', 'prune']);
|
|
408
444
|
return { path: target, pruned: true };
|
|
409
445
|
}
|
|
410
|
-
|
|
411
|
-
|
|
446
|
+
try {
|
|
447
|
+
await git(exec, repoRoot, force ? ['worktree', 'remove', '--force', target] : ['worktree', 'remove', target]);
|
|
448
|
+
return { path: target, pruned: false };
|
|
449
|
+
}
|
|
450
|
+
catch (error) {
|
|
451
|
+
// Windows: git often unregisters the worktree and empties the tree,
|
|
452
|
+
// then fails the last rmdir (`Permission denied`) because some process
|
|
453
|
+
// still has the folder as cwd. `--force` does not help — that flag only
|
|
454
|
+
// bypasses dirty/lock checks, not OS handles. Relist from `repoRoot`
|
|
455
|
+
// (the main checkout, which still has `.git`); listing from the target
|
|
456
|
+
// path would throw "not a git repository" once git has stripped its
|
|
457
|
+
// `.git`. If the registration is already gone, the git side is done;
|
|
458
|
+
// sweep the leftover and succeed so the DSH archive+unregister half
|
|
459
|
+
// can run. A still-occupied leftover (files remain) is a real refusal.
|
|
460
|
+
if (!(error instanceof GitError) || !isDirBusyGitError(error))
|
|
461
|
+
throw error;
|
|
462
|
+
const remaining = (await listWorktrees(exec, repoRoot)).find(w => w.path === target);
|
|
463
|
+
if (remaining !== undefined)
|
|
464
|
+
throw error;
|
|
465
|
+
if (!dirExists(target))
|
|
466
|
+
return { path: target, pruned: false };
|
|
467
|
+
const leftover = await sweepDir(target);
|
|
468
|
+
if (leftover === 'occupied')
|
|
469
|
+
throw error;
|
|
470
|
+
return { path: target, pruned: false };
|
|
471
|
+
}
|
|
412
472
|
}
|
|
413
473
|
/**
|
|
414
474
|
* Lightweight git belonging probe for ONE workspace directory: the three
|
package/lib/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dsh-git-worktree host half. Owns the worktree storage-root settings section
|
|
3
3
|
* (the `git-worktree` namespace in the dsh settings document, registered
|
|
4
|
-
* through
|
|
5
|
-
* layer) and — while a webServer service exists — the HTTP routes the browser
|
|
4
|
+
* through SettingsProvider.installSection with the composition entry as its
|
|
5
|
+
* base layer) and — while a webServer service exists — the HTTP routes the browser
|
|
6
6
|
* half fetches. A stored root edit takes effect live: the routes read the
|
|
7
7
|
* section source per request, so no restart and no route re-registration.
|
|
8
8
|
*
|
|
@@ -22,10 +22,20 @@ export interface Config {
|
|
|
22
22
|
/** Sidebar git grouping on/off; absent = on (the composition-entry layer's default). */
|
|
23
23
|
groupSidebar?: boolean;
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Cordis resolves the composition entry's config through this schema before
|
|
27
|
+
* `apply` runs (official plugin-config convention: export the `Config` type
|
|
28
|
+
* and a same-named Schemastery schema). It fills the `groupSidebar` default;
|
|
29
|
+
* `rootDir` passes through untouched — its absence stays observable so the
|
|
30
|
+
* settings section keeps spelling the resolved default. Constraints the
|
|
31
|
+
* schema cannot express still fail loudly in validateConfig below (absolute
|
|
32
|
+
* path; unknown keys — schemastery keeps extras instead of rejecting them).
|
|
33
|
+
*/
|
|
34
|
+
export declare const Config: z<Config>;
|
|
25
35
|
/** Reject stale or misspelled config keys before defaults can hide them. */
|
|
26
36
|
export declare function validateConfig(config: Config): void;
|
|
27
37
|
/** The settings namespace this plugin serves; its browser card spells the same string. */
|
|
28
|
-
export declare const GIT_WORKTREE_NS
|
|
38
|
+
export declare const GIT_WORKTREE_NS = "git-worktree";
|
|
29
39
|
/** The settings-facing subset of the config: the worktree storage root and the sidebar grouping switch. */
|
|
30
40
|
export interface SectionConfig {
|
|
31
41
|
/** Worktree storage root; absent/blank selects `$DSH_HOME/gitworktree`. */
|
package/lib/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dsh-git-worktree host half. Owns the worktree storage-root settings section
|
|
3
3
|
* (the `git-worktree` namespace in the dsh settings document, registered
|
|
4
|
-
* through
|
|
5
|
-
* layer) and — while a webServer service exists — the HTTP routes the browser
|
|
4
|
+
* through SettingsProvider.installSection with the composition entry as its
|
|
5
|
+
* base layer) and — while a webServer service exists — the HTTP routes the browser
|
|
6
6
|
* half fetches. A stored root edit takes effect live: the routes read the
|
|
7
7
|
* section source per request, so no restart and no route re-registration.
|
|
8
8
|
*
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
*/
|
|
15
15
|
import { homedir } from 'node:os';
|
|
16
16
|
import { rename } from 'node:fs/promises';
|
|
17
|
-
import { installSettingsSection, settingsNamespace } from '@deepseek-ai/dsh-settings';
|
|
18
17
|
import z from '@deepseek-ai/schemastery';
|
|
19
18
|
import { childProcessExec } from './git.js';
|
|
20
19
|
import { handleCreateBranch, handleCreateWorktree, handleEnsureDirectory, handleFetch, handleGroupWorktrees, handleInspectWorktree, handlePathExists, handleRemoveWorktree, handleStatus, handleSwitch, handleUpdate, } from './routes.js';
|
|
@@ -24,6 +23,19 @@ export const name = 'dsh-git-worktree';
|
|
|
24
23
|
export const inject = [];
|
|
25
24
|
/** Largest accepted request body (bytes) — these payloads are a few strings. */
|
|
26
25
|
const BODY_LIMIT = 64 * 1024;
|
|
26
|
+
/**
|
|
27
|
+
* Cordis resolves the composition entry's config through this schema before
|
|
28
|
+
* `apply` runs (official plugin-config convention: export the `Config` type
|
|
29
|
+
* and a same-named Schemastery schema). It fills the `groupSidebar` default;
|
|
30
|
+
* `rootDir` passes through untouched — its absence stays observable so the
|
|
31
|
+
* settings section keeps spelling the resolved default. Constraints the
|
|
32
|
+
* schema cannot express still fail loudly in validateConfig below (absolute
|
|
33
|
+
* path; unknown keys — schemastery keeps extras instead of rejecting them).
|
|
34
|
+
*/
|
|
35
|
+
export const Config = z.object({
|
|
36
|
+
rootDir: z.string(),
|
|
37
|
+
groupSidebar: z.boolean().default(true),
|
|
38
|
+
});
|
|
27
39
|
/** Reject stale or misspelled config keys before defaults can hide them. */
|
|
28
40
|
export function validateConfig(config) {
|
|
29
41
|
const unknown = Object.keys(config).find(key => key !== 'rootDir' && key !== 'groupSidebar');
|
|
@@ -39,7 +51,7 @@ export function validateConfig(config) {
|
|
|
39
51
|
validateRootDir(config.rootDir);
|
|
40
52
|
}
|
|
41
53
|
/** The settings namespace this plugin serves; its browser card spells the same string. */
|
|
42
|
-
export const GIT_WORKTREE_NS =
|
|
54
|
+
export const GIT_WORKTREE_NS = 'git-worktree';
|
|
43
55
|
/** Schema resolving the `git-worktree` settings section. */
|
|
44
56
|
export const sectionSchema = z.object({
|
|
45
57
|
rootDir: z.string(),
|
|
@@ -73,21 +85,28 @@ export function apply(ctx, config = {}) {
|
|
|
73
85
|
home: () => homedir(),
|
|
74
86
|
envHome: () => process.env.DSH_HOME,
|
|
75
87
|
});
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
// Host 0.1.2 hosts section installation on the provider itself: the same
|
|
89
|
+
// composition-entry base, validate, setSource, and onChange hooks ride
|
|
90
|
+
// `SettingsProvider.installSection`, reached through a settings injection.
|
|
91
|
+
// The registration is an effect on this plugin's fiber either way, so a
|
|
92
|
+
// late-attaching settings service is handled by the injection itself.
|
|
93
|
+
ctx.inject(['settings'], (settingsCtx) => {
|
|
94
|
+
settingsCtx.settings.installSection(ctx, GIT_WORKTREE_NS, sectionSchema, sectionOf(config), {
|
|
95
|
+
validate: value => {
|
|
96
|
+
validateRootDir(value.rootDir);
|
|
97
|
+
if (value.groupSidebar !== undefined && typeof value.groupSidebar !== 'boolean') {
|
|
98
|
+
throw new Error('groupSidebar must be a boolean');
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
setSource: (source) => { sectionSource = source; },
|
|
102
|
+
onChange: () => {
|
|
103
|
+
// The storage root takes effect live: the routes read the section
|
|
104
|
+
// source per request, so a committed edit needs no action here.
|
|
105
|
+
},
|
|
106
|
+
});
|
|
88
107
|
});
|
|
89
108
|
// One-shot legacy migration: the pre-0.3 plugin persisted its own
|
|
90
|
-
// ~/.dsh/git-work-tree/settings.json. Registered after
|
|
109
|
+
// ~/.dsh/git-work-tree/settings.json. Registered after installSection
|
|
91
110
|
// so the namespace is on the ledger by the time this fiber runs; a failure
|
|
92
111
|
// (or a user layer that already chose) leaves both documents exactly as
|
|
93
112
|
// they are, and the next startup retries.
|
|
@@ -146,90 +165,34 @@ export function apply(ctx, config = {}) {
|
|
|
146
165
|
});
|
|
147
166
|
req.on('error', rejectPromise);
|
|
148
167
|
});
|
|
168
|
+
/** One exact POST route: bounded JSON body in, one RouteOutcome out. A
|
|
169
|
+
* body-level failure (too large, invalid JSON) answers 400 and leaves
|
|
170
|
+
* the server alive; handler outcomes carry their own status codes. */
|
|
171
|
+
const postRoute = (path, label, handle) => {
|
|
172
|
+
webCtx.effect(() => webCtx.webServer.register({ kind: 'exact', path, handler: async (req, res) => {
|
|
173
|
+
try {
|
|
174
|
+
send(res, await handle(deps(), await readJson(req)));
|
|
175
|
+
}
|
|
176
|
+
catch (error) {
|
|
177
|
+
send(res, { status: 400, body: { error: error instanceof Error ? error.message : String(error) } });
|
|
178
|
+
}
|
|
179
|
+
} }), `git-worktree: ${label} route`);
|
|
180
|
+
};
|
|
181
|
+
// The one query-driven route; every mutation is a POST body.
|
|
149
182
|
webCtx.effect(() => webCtx.webServer.register({ kind: 'exact', path: ROUTE_STATUS, handler: async (req, res) => {
|
|
150
183
|
/* v8 ignore next -- node:http always sets url on server requests. */
|
|
151
184
|
const query = new URL(req.url ?? '/', 'http://x').searchParams;
|
|
152
185
|
send(res, await handleStatus(deps(), query.get('path') ?? undefined));
|
|
153
186
|
} }), 'git-worktree: status route');
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
send(res, await handleSwitch(deps(), await readJson(req)));
|
|
165
|
-
}
|
|
166
|
-
catch (error) {
|
|
167
|
-
send(res, { status: 400, body: { error: error instanceof Error ? error.message : String(error) } });
|
|
168
|
-
}
|
|
169
|
-
} }), 'git-worktree: switch route');
|
|
170
|
-
webCtx.effect(() => webCtx.webServer.register({ kind: 'exact', path: ROUTE_BRANCH, handler: async (req, res) => {
|
|
171
|
-
try {
|
|
172
|
-
send(res, await handleCreateBranch(deps(), await readJson(req)));
|
|
173
|
-
}
|
|
174
|
-
catch (error) {
|
|
175
|
-
send(res, { status: 400, body: { error: error instanceof Error ? error.message : String(error) } });
|
|
176
|
-
}
|
|
177
|
-
} }), 'git-worktree: branch route');
|
|
178
|
-
webCtx.effect(() => webCtx.webServer.register({ kind: 'exact', path: ROUTE_FETCH, handler: async (req, res) => {
|
|
179
|
-
try {
|
|
180
|
-
send(res, await handleFetch(deps(), await readJson(req)));
|
|
181
|
-
}
|
|
182
|
-
catch (error) {
|
|
183
|
-
send(res, { status: 400, body: { error: error instanceof Error ? error.message : String(error) } });
|
|
184
|
-
}
|
|
185
|
-
} }), 'git-worktree: fetch route');
|
|
186
|
-
webCtx.effect(() => webCtx.webServer.register({ kind: 'exact', path: ROUTE_GROUP, handler: async (req, res) => {
|
|
187
|
-
try {
|
|
188
|
-
send(res, await handleGroupWorktrees(deps(), await readJson(req)));
|
|
189
|
-
}
|
|
190
|
-
catch (error) {
|
|
191
|
-
send(res, { status: 400, body: { error: error instanceof Error ? error.message : String(error) } });
|
|
192
|
-
}
|
|
193
|
-
} }), 'git-worktree: group route');
|
|
194
|
-
webCtx.effect(() => webCtx.webServer.register({ kind: 'exact', path: ROUTE_UPDATE, handler: async (req, res) => {
|
|
195
|
-
try {
|
|
196
|
-
send(res, await handleUpdate(deps(), await readJson(req)));
|
|
197
|
-
}
|
|
198
|
-
catch (error) {
|
|
199
|
-
send(res, { status: 400, body: { error: error instanceof Error ? error.message : String(error) } });
|
|
200
|
-
}
|
|
201
|
-
} }), 'git-worktree: update route');
|
|
202
|
-
webCtx.effect(() => webCtx.webServer.register({ kind: 'exact', path: ROUTE_INSPECT, handler: async (req, res) => {
|
|
203
|
-
try {
|
|
204
|
-
send(res, await handleInspectWorktree(deps(), await readJson(req)));
|
|
205
|
-
}
|
|
206
|
-
catch (error) {
|
|
207
|
-
send(res, { status: 400, body: { error: error instanceof Error ? error.message : String(error) } });
|
|
208
|
-
}
|
|
209
|
-
} }), 'git-worktree: inspect route');
|
|
210
|
-
webCtx.effect(() => webCtx.webServer.register({ kind: 'exact', path: ROUTE_REMOVE, handler: async (req, res) => {
|
|
211
|
-
try {
|
|
212
|
-
send(res, await handleRemoveWorktree(deps(), await readJson(req)));
|
|
213
|
-
}
|
|
214
|
-
catch (error) {
|
|
215
|
-
send(res, { status: 400, body: { error: error instanceof Error ? error.message : String(error) } });
|
|
216
|
-
}
|
|
217
|
-
} }), 'git-worktree: remove route');
|
|
218
|
-
webCtx.effect(() => webCtx.webServer.register({ kind: 'exact', path: ROUTE_EXISTS, handler: async (req, res) => {
|
|
219
|
-
try {
|
|
220
|
-
send(res, await handlePathExists(deps(), await readJson(req)));
|
|
221
|
-
}
|
|
222
|
-
catch (error) {
|
|
223
|
-
send(res, { status: 400, body: { error: error instanceof Error ? error.message : String(error) } });
|
|
224
|
-
}
|
|
225
|
-
} }), 'git-worktree: exists route');
|
|
226
|
-
webCtx.effect(() => webCtx.webServer.register({ kind: 'exact', path: ROUTE_ENSURE_DIRECTORY, handler: async (req, res) => {
|
|
227
|
-
try {
|
|
228
|
-
send(res, await handleEnsureDirectory(deps(), await readJson(req)));
|
|
229
|
-
}
|
|
230
|
-
catch (error) {
|
|
231
|
-
send(res, { status: 400, body: { error: error instanceof Error ? error.message : String(error) } });
|
|
232
|
-
}
|
|
233
|
-
} }), 'git-worktree: ensure-directory route');
|
|
187
|
+
postRoute(ROUTE_WORKTREE, 'worktree', handleCreateWorktree);
|
|
188
|
+
postRoute(ROUTE_SWITCH, 'switch', handleSwitch);
|
|
189
|
+
postRoute(ROUTE_BRANCH, 'branch', handleCreateBranch);
|
|
190
|
+
postRoute(ROUTE_FETCH, 'fetch', handleFetch);
|
|
191
|
+
postRoute(ROUTE_GROUP, 'group', handleGroupWorktrees);
|
|
192
|
+
postRoute(ROUTE_UPDATE, 'update', handleUpdate);
|
|
193
|
+
postRoute(ROUTE_INSPECT, 'inspect', handleInspectWorktree);
|
|
194
|
+
postRoute(ROUTE_REMOVE, 'remove', handleRemoveWorktree);
|
|
195
|
+
postRoute(ROUTE_EXISTS, 'exists', handlePathExists);
|
|
196
|
+
postRoute(ROUTE_ENSURE_DIRECTORY, 'ensure-directory', handleEnsureDirectory);
|
|
234
197
|
});
|
|
235
198
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@laoyuehanni/dsh-git-worktree",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "DSH plugin: branch visibility and git worktree isolation for Web UI sessions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dsh",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"files": [
|
|
42
42
|
"lib",
|
|
43
|
+
"!lib/**/*.map",
|
|
43
44
|
"cordis.patch.yml",
|
|
44
45
|
"README.md",
|
|
45
46
|
"README.zh.md"
|
|
@@ -55,11 +56,11 @@
|
|
|
55
56
|
"client": {
|
|
56
57
|
"platform": "web",
|
|
57
58
|
"inject": [
|
|
58
|
-
"@deepseek-ai/dsh-client-runtime",
|
|
59
59
|
"@deepseek-ai/dsh-client-ui-conversation",
|
|
60
60
|
"@deepseek-ai/dsh-client-ui-sidebar",
|
|
61
61
|
"@deepseek-ai/dsh-client-ui-settings",
|
|
62
|
-
"@deepseek-ai/dsh-client-ui-settings-plugins"
|
|
62
|
+
"@deepseek-ai/dsh-client-ui-settings-plugins",
|
|
63
|
+
"@deepseek-ai/dsh-client-ui-workspace"
|
|
63
64
|
]
|
|
64
65
|
}
|
|
65
66
|
},
|
|
@@ -74,27 +75,40 @@
|
|
|
74
75
|
},
|
|
75
76
|
"peerDependencies": {
|
|
76
77
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
77
|
-
"@deepseek-ai/dsh-host-webserver": "^0.1.
|
|
78
|
-
"@deepseek-ai/dsh-settings": "^0.1.
|
|
78
|
+
"@deepseek-ai/dsh-host-webserver": "^0.1.2-rc.1",
|
|
79
|
+
"@deepseek-ai/dsh-settings": "^0.1.2-rc.1",
|
|
79
80
|
"@deepseek-ai/schemastery": "^3.18.1"
|
|
80
81
|
},
|
|
81
82
|
"devDependencies": {
|
|
82
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
83
|
-
"@deepseek-ai/dsh-api-
|
|
84
|
-
"@deepseek-ai/dsh-
|
|
85
|
-
"@deepseek-ai/dsh-
|
|
86
|
-
"@deepseek-ai/dsh-
|
|
87
|
-
"@deepseek-ai/dsh-client-
|
|
88
|
-
"@deepseek-ai/dsh-client-
|
|
89
|
-
"@deepseek-ai/dsh-client-
|
|
90
|
-
"@deepseek-ai/dsh-client-ui-
|
|
91
|
-
"@deepseek-ai/dsh-client-ui-
|
|
92
|
-
"@deepseek-ai/dsh-
|
|
83
|
+
"@deepseek-ai/cordis": "^4.0.2",
|
|
84
|
+
"@deepseek-ai/dsh-api-gateway": "^0.1.2-rc.1",
|
|
85
|
+
"@deepseek-ai/dsh-api-remotes": "^0.1.2-rc.1",
|
|
86
|
+
"@deepseek-ai/dsh-api-session-controller": "^0.1.2-rc.1",
|
|
87
|
+
"@deepseek-ai/dsh-api-workspace-controller": "^0.1.2-rc.1",
|
|
88
|
+
"@deepseek-ai/dsh-client-locale": "^0.1.2-rc.1",
|
|
89
|
+
"@deepseek-ai/dsh-client-connection": "^0.1.2-rc.1",
|
|
90
|
+
"@deepseek-ai/dsh-client-store": "^0.1.2-rc.1",
|
|
91
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.2-rc.1",
|
|
92
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.2-rc.1",
|
|
93
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.2-rc.1",
|
|
94
|
+
"@deepseek-ai/dsh-client-ui-settings": "^0.1.2-rc.1",
|
|
95
|
+
"@deepseek-ai/dsh-client-ui-settings-plugins": "^0.1.2-rc.1",
|
|
96
|
+
"@deepseek-ai/dsh-client-ui-session": "^0.1.2-rc.1",
|
|
97
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "^0.1.2-rc.1",
|
|
98
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.1.2-rc.1",
|
|
99
|
+
"@deepseek-ai/dsh-client-ui-workspace": "^0.1.2-rc.1",
|
|
100
|
+
"@deepseek-ai/dsh-host-webserver": "^0.1.2-rc.1",
|
|
101
|
+
"@deepseek-ai/dsh-session": "^0.1.2-rc.1",
|
|
102
|
+
"@deepseek-ai/dsh-settings": "^0.1.2-rc.1",
|
|
103
|
+
"@deepseek-ai/dsh-util-workspace-path": "^0.1.2-rc.1",
|
|
104
|
+
"@deepseek-ai/dsh-workspace": "^0.1.2-rc.1",
|
|
105
|
+
"@deepseek-ai/schemastery": "^3.18.1",
|
|
93
106
|
"@types/node": "^24.13.3",
|
|
94
107
|
"@types/react": "~18.3.1",
|
|
95
108
|
"@types/react-dom": "~18.3.1",
|
|
96
109
|
"playwright-core": "^1.55.1",
|
|
97
110
|
"react": "^18.2.0",
|
|
111
|
+
"react-dom": "^18.2.0",
|
|
98
112
|
"tsdown": "^0.14.0",
|
|
99
113
|
"typescript": "^5.9.3",
|
|
100
114
|
"vitest": "^3.2.4"
|