dsh-deep-ptc-mode 1.7.2 → 1.7.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/CHANGELOG.md +105 -71
- package/README.md +204 -174
- package/README.zh.md +219 -189
- package/TEST_REPORT.md +33 -0
- package/lib/ask-user.mjs +2 -1
- package/lib/client.js +59 -9
- package/lib/creative.mjs +127 -0
- package/lib/environment.mjs +2 -1
- package/lib/executor.mjs +31 -6
- package/lib/guard.mjs +2 -1
- package/lib/host.mjs +25 -17
- package/lib/index.mjs +105 -11
- package/lib/jobs-tool.mjs +2 -1
- package/lib/lab.mjs +13 -0
- package/lib/model.mjs +47 -21
- package/lib/official-names.mjs +115 -0
- package/lib/resident.mjs +27 -0
- package/lib/rules.mjs +5 -5
- package/lib/shells.mjs +114 -0
- package/lib/sleep-lint.mjs +391 -41
- package/lib/tool-catalog.mjs +1 -1
- package/lib/tool-compatibility.mjs +29 -11
- package/lib/tool-policy.mjs +250 -184
- package/lib/upstream.mjs +94 -1
- package/package.json +127 -125
- package/lib/official-tools.mjs +0 -8
package/package.json
CHANGED
|
@@ -1,125 +1,127 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-deep-ptc-mode",
|
|
3
|
-
"version": "1.7.
|
|
4
|
-
"description": "Lightweight Deep PTC:
|
|
5
|
-
"type": "module",
|
|
6
|
-
"keywords": [
|
|
7
|
-
"dsh-plugin",
|
|
8
|
-
"deepseek-harness",
|
|
9
|
-
"agent-preset",
|
|
10
|
-
"ptc",
|
|
11
|
-
"agent-team",
|
|
12
|
-
"subagent",
|
|
13
|
-
"clarification",
|
|
14
|
-
"background-jobs",
|
|
15
|
-
"plugin-compatibility",
|
|
16
|
-
"tool-cooperation",
|
|
17
|
-
"official-ptc-fallback"
|
|
18
|
-
],
|
|
19
|
-
"license": "MIT",
|
|
20
|
-
"author": {
|
|
21
|
-
"name": "lishize20040802-rgb",
|
|
22
|
-
"email": "lishize20040802@gmail.com",
|
|
23
|
-
"url": "https://github.com/lishize20040802-rgb"
|
|
24
|
-
},
|
|
25
|
-
"repository": {
|
|
26
|
-
"type": "git",
|
|
27
|
-
"url": "git+https://github.com/lishize20040802-rgb/dsh-deep-ptc-mode.git"
|
|
28
|
-
},
|
|
29
|
-
"homepage": "https://github.com/lishize20040802-rgb/dsh-deep-ptc-mode#readme",
|
|
30
|
-
"bugs": {
|
|
31
|
-
"url": "https://github.com/lishize20040802-rgb/dsh-deep-ptc-mode/issues"
|
|
32
|
-
},
|
|
33
|
-
"files": [
|
|
34
|
-
"cordis.patch.yml",
|
|
35
|
-
"lib",
|
|
36
|
-
"compatibility.json",
|
|
37
|
-
"README.md",
|
|
38
|
-
"README.zh.md",
|
|
39
|
-
"CHANGELOG.md",
|
|
40
|
-
"assets/icon.png"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
"@deepseek-ai/dsh-client-
|
|
56
|
-
"@deepseek-ai/dsh-client-ui-
|
|
57
|
-
"@deepseek-ai/dsh-client-ui-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
"./
|
|
66
|
-
"./
|
|
67
|
-
"./
|
|
68
|
-
"./
|
|
69
|
-
"./
|
|
70
|
-
"./tool-compatibility": "./lib/tool-compatibility.mjs",
|
|
71
|
-
"./environment": "./lib/environment.mjs",
|
|
72
|
-
"./
|
|
73
|
-
"./
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"
|
|
78
|
-
"check
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
"@deepseek-ai/
|
|
86
|
-
"@deepseek-ai/dsh-client-ui-
|
|
87
|
-
"@deepseek-ai/dsh-client-
|
|
88
|
-
"@deepseek-ai/dsh-
|
|
89
|
-
"@deepseek-ai/dsh-
|
|
90
|
-
"@deepseek-ai/dsh-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-deep-ptc-mode",
|
|
3
|
+
"version": "1.7.4",
|
|
4
|
+
"description": "Lightweight adaptive Deep PTC: live host presets, plugin cooperation and interruptible jobs. / 轻量自适配深度 PTC:动态宿主预设、插件协作与官方兜底、后台可插话。",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"dsh-plugin",
|
|
8
|
+
"deepseek-harness",
|
|
9
|
+
"agent-preset",
|
|
10
|
+
"ptc",
|
|
11
|
+
"agent-team",
|
|
12
|
+
"subagent",
|
|
13
|
+
"clarification",
|
|
14
|
+
"background-jobs",
|
|
15
|
+
"plugin-compatibility",
|
|
16
|
+
"tool-cooperation",
|
|
17
|
+
"official-ptc-fallback"
|
|
18
|
+
],
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"author": {
|
|
21
|
+
"name": "lishize20040802-rgb",
|
|
22
|
+
"email": "lishize20040802@gmail.com",
|
|
23
|
+
"url": "https://github.com/lishize20040802-rgb"
|
|
24
|
+
},
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/lishize20040802-rgb/dsh-deep-ptc-mode.git"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://github.com/lishize20040802-rgb/dsh-deep-ptc-mode#readme",
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/lishize20040802-rgb/dsh-deep-ptc-mode/issues"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"cordis.patch.yml",
|
|
35
|
+
"lib",
|
|
36
|
+
"compatibility.json",
|
|
37
|
+
"README.md",
|
|
38
|
+
"README.zh.md",
|
|
39
|
+
"CHANGELOG.md",
|
|
40
|
+
"assets/icon.png",
|
|
41
|
+
"TEST_REPORT.md"
|
|
42
|
+
],
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=24",
|
|
45
|
+
"dsh": ">=0.2.2-rc.1"
|
|
46
|
+
},
|
|
47
|
+
"dsh": {
|
|
48
|
+
"manifestVersion": 1,
|
|
49
|
+
"bundle": {
|
|
50
|
+
"patch": "./cordis.patch.yml"
|
|
51
|
+
},
|
|
52
|
+
"client": {
|
|
53
|
+
"platform": "web",
|
|
54
|
+
"inject": [
|
|
55
|
+
"@deepseek-ai/dsh-client-locale",
|
|
56
|
+
"@deepseek-ai/dsh-client-ui-settings",
|
|
57
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager",
|
|
58
|
+
"@deepseek-ai/dsh-client-ui-commands"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"main": "lib/index.mjs",
|
|
63
|
+
"exports": {
|
|
64
|
+
".": "./lib/index.mjs",
|
|
65
|
+
"./executor": "./lib/executor.mjs",
|
|
66
|
+
"./terminal": "./lib/terminal.mjs",
|
|
67
|
+
"./jobs-tool": "./lib/jobs-tool.mjs",
|
|
68
|
+
"./ask-user": "./lib/ask-user.mjs",
|
|
69
|
+
"./guard": "./lib/guard.mjs",
|
|
70
|
+
"./tool-compatibility": "./lib/tool-compatibility.mjs",
|
|
71
|
+
"./environment": "./lib/environment.mjs",
|
|
72
|
+
"./lab": "./lib/lab.mjs",
|
|
73
|
+
"./client": "./lib/client.js",
|
|
74
|
+
"./package.json": "./package.json"
|
|
75
|
+
},
|
|
76
|
+
"scripts": {
|
|
77
|
+
"test": "node --test",
|
|
78
|
+
"check": "node scripts/check.mjs",
|
|
79
|
+
"check:upstream": "node scripts/check.mjs --upstream",
|
|
80
|
+
"check:parity": "node scripts/check-parity.mjs",
|
|
81
|
+
"prepack": "npm run check && npm test",
|
|
82
|
+
"sync:snapshot": "node scripts/sync-snapshot.mjs"
|
|
83
|
+
},
|
|
84
|
+
"peerDependencies": {
|
|
85
|
+
"@deepseek-ai/schemastery": "^3.18.4",
|
|
86
|
+
"@deepseek-ai/dsh-client-ui-renderer": ">=0.2.2-rc.1",
|
|
87
|
+
"@deepseek-ai/dsh-client-ui-settings": ">=0.2.2-rc.1",
|
|
88
|
+
"@deepseek-ai/dsh-client-ui-slots": ">=0.2.2-rc.1",
|
|
89
|
+
"@deepseek-ai/dsh-client-locale": ">=0.2.2-rc.1",
|
|
90
|
+
"@deepseek-ai/dsh-web-app": ">=0.2.2-rc.1",
|
|
91
|
+
"@deepseek-ai/dsh-base": ">=0.2.2-rc.1",
|
|
92
|
+
"@deepseek-ai/dsh-client-ui-commands": ">=0.2.2-rc.1"
|
|
93
|
+
},
|
|
94
|
+
"peerDependenciesMeta": {
|
|
95
|
+
"@deepseek-ai/schemastery": {
|
|
96
|
+
"optional": true
|
|
97
|
+
},
|
|
98
|
+
"@deepseek-ai/dsh-client-ui-renderer": {
|
|
99
|
+
"optional": true
|
|
100
|
+
},
|
|
101
|
+
"@deepseek-ai/dsh-client-ui-settings": {
|
|
102
|
+
"optional": true
|
|
103
|
+
},
|
|
104
|
+
"@deepseek-ai/dsh-client-ui-slots": {
|
|
105
|
+
"optional": true
|
|
106
|
+
},
|
|
107
|
+
"@deepseek-ai/dsh-client-locale": {
|
|
108
|
+
"optional": true
|
|
109
|
+
},
|
|
110
|
+
"@deepseek-ai/dsh-web-app": {
|
|
111
|
+
"optional": true
|
|
112
|
+
},
|
|
113
|
+
"@deepseek-ai/dsh-base": {
|
|
114
|
+
"optional": true
|
|
115
|
+
},
|
|
116
|
+
"@deepseek-ai/dsh-client-ui-commands": {
|
|
117
|
+
"optional": true
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"dependencies": {
|
|
121
|
+
"js-yaml": "4.3.2"
|
|
122
|
+
},
|
|
123
|
+
"devDependencies": {
|
|
124
|
+
"react": "18.3.1",
|
|
125
|
+
"react-test-renderer": "18.3.1"
|
|
126
|
+
}
|
|
127
|
+
}
|
package/lib/official-tools.mjs
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import z from '@deepseek-ai/schemastery';
|
|
2
|
-
import { applyOfficial } from './host.mjs';
|
|
3
|
-
|
|
4
|
-
export const name = 'deep-ptc-official-tools';
|
|
5
|
-
export const inject = [];
|
|
6
|
-
export const Config = z.object({ upstream: z.string().required(), options: z.any() });
|
|
7
|
-
// Preserve official schemas, bodies, options and lifecycle; record their provenance for recovery.
|
|
8
|
-
export function apply(ctx, config) { return applyOfficial(ctx, config.upstream, config.options, child => child); }
|