@morlay/session-mode-profile 0.0.7 → 0.0.9
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 +12 -0
- package/cordis.patch.yml +7 -1
- package/package.json +16 -9
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# @morlay/session-mode-profile
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@morlay/session-mode-profile)
|
|
4
|
+
[](https://www.npmjs.com/package/@morlay/session-mode-profile)
|
|
5
|
+
[](https://www.npmjs.com/package/@morlay/session-mode-profile)
|
|
6
|
+
|
|
3
7
|
会话模式与注入面:**一次装齐 host 平面那几行**——会话模式行(各模式的会话级扩展定义,按会话收口也由它内部持有)、
|
|
4
8
|
注入通道、subagent 服务接管行、工具说明(汉化 + 用法分组)。
|
|
5
9
|
|
|
@@ -12,6 +16,14 @@
|
|
|
12
16
|
| 行清单(工具 / 命令 / 压缩 / 计划 / 委派) | **不在本包**:会话挂着的 shipped preset(新会话是官方 web-app 的默认 `standard`) |
|
|
13
17
|
| 官方 roster 保留(`ui-agent-preset`) | 官方管"挂哪套行"的选择面;我们的模式 chip 挂 composer 工具行左侧(`conversation.input.left`,list 槽位),两套并存 |
|
|
14
18
|
|
|
19
|
+
三个模式(`coding` / `chat` / `noop`,真源在 `session-mode` 行的 [`rows` 出口](../../profile/dsh-session-mode/src/rows.ts))
|
|
20
|
+
里,**`noop` 是什么都不加的那一档**:与上游默认一致,想按上游跑或排查扩展干扰时的对照。
|
|
21
|
+
|
|
22
|
+
**本 bundle 详情页上的配置表单**就是这个 bundle 里那几行的配置:由 `session-mode` 行的 client 半注册进
|
|
23
|
+
`plugins.bundle.config`(key = 本 bundle 的包名),形态是"新会话的默认模式 + 每个模式一张可折叠卡片",支持增删模式
|
|
24
|
+
(`noop` 不给删);读写的是 `session-mode` 那一行的配置命名空间。取舍见
|
|
25
|
+
[设计 bundle 配置页](../../profile/dsh-session-mode/.agents/designs/20261002-bundle配置页.md)。
|
|
26
|
+
|
|
15
27
|
**本包不声明自己的 agent preset**(曾经那份 `preset-mode-switch` 与它的行数据已删除):行清单归 shipped preset,
|
|
16
28
|
模式是叠加在它之上的会话级扩展——chip 不覆盖用户在官方 roster 里选的 preset。代价(计划模式规则段是官方那份英文
|
|
17
29
|
契约、`chat` 的两条官方注入面要靠 `agent/pre-step` 上丢、每步仍付一次重算)与判据见
|
package/cordis.patch.yml
CHANGED
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
prefix: |-
|
|
16
16
|
你是一个经验丰富的编程专家,YAGNI 是你的编程哲学,PDCA 是你的行为规范。
|
|
17
17
|
全程用中文(专有名词除外),包括但不限于思考,回答,工具描述,subagent 提示词;思考不要陷入重复循环,一旦循环立即退出;思考聚焦需求理解与方案设计,不预演具体代码实现,正确性由验证环节确认。
|
|
18
|
-
suffix: 你的工作目录在 `{{cwd}}`
|
|
19
18
|
denyTools:
|
|
20
19
|
- load_workspace_dependencies
|
|
21
20
|
denySkills:
|
|
@@ -24,6 +23,7 @@
|
|
|
24
23
|
- office-xlsx
|
|
25
24
|
denyPolicies:
|
|
26
25
|
- fs/edit-intent
|
|
26
|
+
- fs/write-intent
|
|
27
27
|
chat:
|
|
28
28
|
name: 对话模式
|
|
29
29
|
description: 只做对话:提问与联网(搜索、抓取)三件工具,不注入系统提示词、工作区指令与技能目录。
|
|
@@ -37,6 +37,12 @@
|
|
|
37
37
|
- web_fetch
|
|
38
38
|
instructions: false
|
|
39
39
|
runtimeContext: false
|
|
40
|
+
noop:
|
|
41
|
+
name: 原样模式
|
|
42
|
+
description: 与上游一致:不加人格提示词、不收窄工具与技能、policy 规则全开、官方注入面照旧。
|
|
43
|
+
role:
|
|
44
|
+
- main
|
|
45
|
+
- subagent
|
|
40
46
|
- insert:
|
|
41
47
|
- id: subagent
|
|
42
48
|
name: "@morlay/dsh-subagent"
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morlay/session-mode-profile",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "会话模式与注入面:会话模式行(各模式的 persona、工具与 policy 名单、开关;按会话收口也由它内部持有)+ subagent 服务接管行 + 注入通道 + 工具说明(汉化 / 用法分组),一次装齐;行清单归会话挂着的 shipped preset,本包不自建 preset。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bundle-entry",
|
|
7
7
|
"dsh",
|
|
8
|
-
"dsh-bundle"
|
|
8
|
+
"dsh-bundle",
|
|
9
|
+
"dsh-plugin"
|
|
9
10
|
],
|
|
10
11
|
"license": "MIT",
|
|
11
12
|
"repository": {
|
|
@@ -22,27 +23,33 @@
|
|
|
22
23
|
],
|
|
23
24
|
"type": "module",
|
|
24
25
|
"exports": {
|
|
25
|
-
".":
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./dist/index.d.mts",
|
|
28
|
+
"default": "./dist/index.mjs"
|
|
29
|
+
},
|
|
26
30
|
"./package.json": "./package.json",
|
|
27
31
|
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
28
32
|
"./locale/*.json": "./locale/*.json"
|
|
29
33
|
},
|
|
30
34
|
"dependencies": {
|
|
31
|
-
"@morlay/dsh-context-assembler": "0.0.
|
|
32
|
-
"@morlay/dsh-session-mode": "0.0.
|
|
33
|
-
"@morlay/dsh-subagent": "0.0.
|
|
34
|
-
"@morlay/dsh-tool-guidance": "0.0.
|
|
35
|
+
"@morlay/dsh-context-assembler": "0.0.7",
|
|
36
|
+
"@morlay/dsh-session-mode": "0.0.9",
|
|
37
|
+
"@morlay/dsh-subagent": "0.0.7",
|
|
38
|
+
"@morlay/dsh-tool-guidance": "0.0.7"
|
|
35
39
|
},
|
|
36
40
|
"devDependencies": {
|
|
37
|
-
"@deepseek-ai/cordis-plugin-include": "1.0.
|
|
41
|
+
"@deepseek-ai/cordis-plugin-include": "1.0.10-alpha.2",
|
|
38
42
|
"@local/devkit": "0.1.0",
|
|
39
43
|
"@types/js-yaml": "^4.0.9",
|
|
40
44
|
"js-yaml": "^4.1.0"
|
|
41
45
|
},
|
|
42
46
|
"peerDependencies": {
|
|
43
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
47
|
+
"@deepseek-ai/cordis": "^4.0.5-alpha.2"
|
|
44
48
|
},
|
|
45
49
|
"icon": "./icon.svg",
|
|
50
|
+
"engines": {
|
|
51
|
+
"dsh": ">= 0.2.1-alpha.5 < 0.2.2"
|
|
52
|
+
},
|
|
46
53
|
"dsh": {
|
|
47
54
|
"bundle": {
|
|
48
55
|
"patch": "./cordis.patch.yml"
|