@linxin666/dsh-liangshen 0.3.1 → 0.3.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/README.i18n.yaml +2 -2
- package/README.md +2 -2
- package/README.zh.md +1 -1
- package/lib/index.js +2 -2
- package/lib/types/mount-once.d.ts +1 -1
- package/package.json +2 -2
- package/src/mount-once.ts +2 -2
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# node scripts/verify-docs.mjs --write <dir>
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: 3095722df534a0ae74dd6eafca74c4b55ac40b3a
|
|
6
|
+
README.zh.md: 3e7b28a33b4503ada59435598f0f73626354ef3d
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
English | [中文](README.zh.md)
|
|
4
4
|
|
|
5
|
-
Ships the "Anchored Standard" preset as a one-command plugin of the dsh-web
|
|
5
|
+
Ships the "Anchored Standard" preset as a one-command plugin of the dsh-web family: on host startup it syncs the bundled preset into `~/.dsh/.agent-presets`, so new sessions can pick "梁神模式" from the preset picker. The first model request sees only the builtin Minimal preset's exact two tools — persistent `bash` plus `str_replace_editor` — only the one-line persona prompt section, no runtime contexts, and no injected instructions; after the anchor is established the wire switches to PTC Mode and the ordinary injections open. Built entirely on the official NPM SDK — no dsh source changes.
|
|
6
6
|
|
|
7
7
|
## Why
|
|
8
8
|
|
|
@@ -35,7 +35,7 @@ Plan mode is supported: phase 1 filters the assembled prompt sections down to th
|
|
|
35
35
|
|
|
36
36
|
```sh
|
|
37
37
|
# Option 1: family bundle (recommended)
|
|
38
|
-
dsh plugin --profile web add @linxin666/dsh-web-
|
|
38
|
+
dsh plugin --profile web add @linxin666/dsh-web-all@latest
|
|
39
39
|
|
|
40
40
|
# Option 2: standalone
|
|
41
41
|
dsh plugin --profile web add @linxin666/dsh-liangshen@latest
|
package/README.zh.md
CHANGED
|
@@ -35,7 +35,7 @@ preset 在参考机制之上内置了额外保护,全部在 `agent.cordis.yml`
|
|
|
35
35
|
|
|
36
36
|
```sh
|
|
37
37
|
# 方式一:全家桶(推荐)
|
|
38
|
-
dsh plugin --profile web add @linxin666/dsh-web-
|
|
38
|
+
dsh plugin --profile web add @linxin666/dsh-web-all@latest
|
|
39
39
|
|
|
40
40
|
# 方式二:单独安装
|
|
41
41
|
dsh plugin --profile web add @linxin666/dsh-liangshen@latest
|
package/lib/index.js
CHANGED
|
@@ -530,7 +530,7 @@ function syncPresetTrees(sourceRoot, targetRoot, retire = []) {
|
|
|
530
530
|
//#region src/mount-once.ts
|
|
531
531
|
/**
|
|
532
532
|
* Host single-instance guard shared by the plugin family. The family bundle
|
|
533
|
-
* (dsh-web-
|
|
533
|
+
* (dsh-web-all / dsh-skins) namespaces every child row id (web-ui-*), so
|
|
534
534
|
* the loader accepts a standalone install of the same package side by side;
|
|
535
535
|
* without this guard the second instance would still re-register the same
|
|
536
536
|
* webserver routes, tools, settings namespaces, and system-prompt sections
|
|
@@ -543,7 +543,7 @@ function syncPresetTrees(sourceRoot, targetRoot, retire = []) {
|
|
|
543
543
|
* `ctx.effect` runs its callback immediately and treats the callback's
|
|
544
544
|
* return value as the fiber disposer, so the unmarker is returned, not run.
|
|
545
545
|
*/
|
|
546
|
-
const MOUNTED = Symbol.for("dsh-web
|
|
546
|
+
const MOUNTED = Symbol.for("dsh-web.mounted-plugins");
|
|
547
547
|
function mountedSet() {
|
|
548
548
|
const registry = globalThis;
|
|
549
549
|
return registry[MOUNTED] ??= /* @__PURE__ */ new Set();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Host single-instance guard shared by the plugin family. The family bundle
|
|
3
|
-
* (dsh-web-
|
|
3
|
+
* (dsh-web-all / dsh-skins) namespaces every child row id (web-ui-*), so
|
|
4
4
|
* the loader accepts a standalone install of the same package side by side;
|
|
5
5
|
* without this guard the second instance would still re-register the same
|
|
6
6
|
* webserver routes, tools, settings namespaces, and system-prompt sections
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linxin666/dsh-liangshen",
|
|
3
3
|
"description": "LiangShen (梁神) agent preset for the dsh web GUI: a two-phase anchored-standard preset — the first model request exposes only the builtin Minimal exact two-tool surface (persistent bash plus str_replace_editor) with no runtime contexts or injected instructions (Minimal-aligned trajectory anchor), promotion is gated on the first minimal-like reasoning block with a fallback, and the wire then switches to PTC Mode (a single run_code tool over the full registry) with the ordinary injections returning afterwards. The preset files are synced into ~/.dsh/.agent-presets on host startup. Hot-pluggable — mounted via cordis.patch.yml + a profile node_modules symlink, no dsh source changes.",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": "^22.19.0 || >=24.0.0"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"license": "Apache-2.0",
|
|
53
53
|
"repository": {
|
|
54
54
|
"type": "git",
|
|
55
|
-
"url": "https://github.com/zhu1090093659/dsh-web
|
|
55
|
+
"url": "https://github.com/zhu1090093659/dsh-web.git"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "tsc -p tsconfig.build.json && tsdown",
|
package/src/mount-once.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by scripts/sync-shared.mjs from shared/host/mount-once.ts. Do not edit this copy; edit the shared source and run "node scripts/sync-shared.mjs".
|
|
2
2
|
/**
|
|
3
3
|
* Host single-instance guard shared by the plugin family. The family bundle
|
|
4
|
-
* (dsh-web-
|
|
4
|
+
* (dsh-web-all / dsh-skins) namespaces every child row id (web-ui-*), so
|
|
5
5
|
* the loader accepts a standalone install of the same package side by side;
|
|
6
6
|
* without this guard the second instance would still re-register the same
|
|
7
7
|
* webserver routes, tools, settings namespaces, and system-prompt sections
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* return value as the fiber disposer, so the unmarker is returned, not run.
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
const MOUNTED = Symbol.for('dsh-web
|
|
18
|
+
const MOUNTED = Symbol.for('dsh-web.mounted-plugins')
|
|
19
19
|
|
|
20
20
|
interface MountRegistry {
|
|
21
21
|
[MOUNTED]?: Set<string>
|