chore: standalone local plugin identity (workspace-groups-local)

This commit is contained in:
qyh15 2026-10-28 16:05:29 +08:00
parent 79b9fcbbc6
commit fe3b9b0503
8 changed files with 13 additions and 22 deletions

View File

@ -1,18 +1,9 @@
# @dsh-xhl/workspace-groups bundle patch
# workspace-groups-local bundle patch
#
# This file is the `dsh.bundle.patch` layer of the package: when the plugin is
# installed through the official CLI —
#
# dsh plugin --profile <name> add @dsh-xhl/workspace-groups
#
# — the command reconciles `dsh.profile.bundles` against installed packages
# and, seeing this declaration, appends `@dsh-xhl/workspace-groups` to the bundle
# stack. The profile boot then merges THIS patch (a single `insert` of the
# plugin row) exactly like a manual cordis.patch.yml mount line.
#
# The row uses a stable `id` (configuration-tree line identity), a `name` the
# host Loader resolves as a package, and a `config` the host half consumes.
# Local-only build: this package is never published, so the row below is the
# ONLY way the plugin reaches the profile tree. The host Loader resolves the
# row name as a package from the profile node_modules.
- insert:
- id: workspace-groups
name: '@dsh-xhl/workspace-groups'
- id: workspace-groups-local
name: 'workspace-groups-local'
config: {}

View File

@ -6114,7 +6114,7 @@ window.__ModuleLoader__.load({
store: createGroupsViewStore(),
inject: browserInjected,
locale: NS,
registrant: "@dsh-xhl/workspace-groups"
registrant: "workspace-groups-local"
}, GroupsBrowser));
}
//#endregion

File diff suppressed because one or more lines are too long

View File

@ -3262,7 +3262,7 @@ async function ensureRemoteMarker(workspacePath, folderPath) {
//#endregion
//#region src/index.ts
/** Plugin identity for cordis.yml rows. */
const name = "@dsh-xhl/workspace-groups";
const name = "workspace-groups-local";
/** Services required before mounting: the webserver route. */
const inject = ["webServer"];
/** Cap on the PUT body: the overlay is tiny; anything bigger is a client bug. */

View File

@ -1,6 +1,6 @@
import type { GroupsContext } from './context-types.ts';
/** Plugin identity for cordis.yml rows. */
export declare const name = "@dsh-xhl/workspace-groups";
export declare const name = "workspace-groups-local";
/** Services required before mounting: the webserver route. */
export declare const inject: string[];
/** Plugin body: mount the config snapshot route and the overlay write route. */

View File

@ -1,5 +1,5 @@
{
"name": "@dsh-xhl/workspace-groups",
"name": "workspace-groups-local",
"version": "0.6.2",
"description": "Complete workspace grouping manager for the DSH web sidebar: category -> project -> session three-level tree with optional per-project folders (multi-root), manual group create/rename/delete, drag-and-drop grouping and ordering with insertion indicator, rule-based auto-classification, tree search, group colour/icon/pin, plus the session tab strip seated in the conversation column head. Sidecar YAML + runtime overlays, zero core-storage intrusion.",
"keywords": [

View File

@ -256,7 +256,7 @@ export function apply(ctx: Context): void {
store: createGroupsViewStore(),
inject: browserInjected,
locale: NS,
registrant: '@dsh-xhl/workspace-groups',
registrant: 'workspace-groups-local',
},
GroupsBrowser,
))

View File

@ -52,7 +52,7 @@ import {
} from './host-folders.ts'
/** Plugin identity for cordis.yml rows. */
export const name = '@dsh-xhl/workspace-groups'
export const name = 'workspace-groups-local'
/** Services required before mounting: the webserver route. */
export const inject = ['webServer']