@morlay/dsh-session-mode 0.0.10 → 0.0.12
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/dist/client.cjs +75 -75
- package/dist/rows.cjs +1 -1
- package/dist/rows.mjs +1 -1
- package/package.json +58 -55
- package/src/mode-sources.ts +5 -3
package/dist/client.cjs
CHANGED
|
@@ -1502,25 +1502,25 @@ window.__ModuleLoader__.load({
|
|
|
1502
1502
|
document.head.appendChild(tag);
|
|
1503
1503
|
}
|
|
1504
1504
|
var schema_form_module_css_default = {
|
|
1505
|
-
"
|
|
1506
|
-
"
|
|
1507
|
-
"
|
|
1508
|
-
"valueTrigger": "N3kx7G_valueTrigger",
|
|
1505
|
+
"lineToken": "N3kx7G_lineToken",
|
|
1506
|
+
"lineFold": "N3kx7G_lineFold",
|
|
1507
|
+
"compactInput": "N3kx7G_compactInput",
|
|
1509
1508
|
"addWrap": "N3kx7G_addWrap",
|
|
1509
|
+
"compactTextField": "N3kx7G_compactTextField",
|
|
1510
|
+
"editorRoot": "N3kx7G_editorRoot",
|
|
1510
1511
|
"lineNumber": "N3kx7G_lineNumber",
|
|
1511
|
-
"
|
|
1512
|
-
"lineInvalid": "N3kx7G_lineInvalid",
|
|
1513
|
-
"lineValue": "N3kx7G_lineValue",
|
|
1512
|
+
"lineFoldSpacer": "N3kx7G_lineFoldSpacer",
|
|
1514
1513
|
"lineActions": "N3kx7G_lineActions",
|
|
1515
|
-
"compactInput": "N3kx7G_compactInput",
|
|
1516
|
-
"hoverActions": "N3kx7G_hoverActions",
|
|
1517
1514
|
"lineComment": "N3kx7G_lineComment",
|
|
1518
|
-
"
|
|
1519
|
-
"
|
|
1520
|
-
"
|
|
1521
|
-
"lineRow": "N3kx7G_lineRow",
|
|
1515
|
+
"lineKey": "N3kx7G_lineKey",
|
|
1516
|
+
"hint": "N3kx7G_hint",
|
|
1517
|
+
"lineValue": "N3kx7G_lineValue",
|
|
1522
1518
|
"valueSlot": "N3kx7G_valueSlot",
|
|
1523
|
-
"
|
|
1519
|
+
"lineInvalid": "N3kx7G_lineInvalid",
|
|
1520
|
+
"valueTrigger": "N3kx7G_valueTrigger",
|
|
1521
|
+
"lineBody": "N3kx7G_lineBody",
|
|
1522
|
+
"lineRow": "N3kx7G_lineRow",
|
|
1523
|
+
"hoverActions": "N3kx7G_hoverActions"
|
|
1524
1524
|
};
|
|
1525
1525
|
//#endregion
|
|
1526
1526
|
//#region ../../client/dsh-client-ui-primitives/src/client/schema-form/TruncatedTooltip.tsx
|
|
@@ -2513,55 +2513,55 @@ window.__ModuleLoader__.load({
|
|
|
2513
2513
|
document.head.appendChild(tag);
|
|
2514
2514
|
}
|
|
2515
2515
|
var layout_module_css_default = {
|
|
2516
|
-
"
|
|
2516
|
+
"fill": "_7Ar2dq_fill",
|
|
2517
|
+
"scroll": "_7Ar2dq_scroll",
|
|
2518
|
+
"wSearch": "_7Ar2dq_wSearch",
|
|
2517
2519
|
"padBlocking": "_7Ar2dq_padBlocking",
|
|
2518
|
-
"
|
|
2520
|
+
"justifyBetween": "_7Ar2dq_justifyBetween",
|
|
2521
|
+
"alignStart": "_7Ar2dq_alignStart",
|
|
2522
|
+
"row": "_7Ar2dq_row",
|
|
2523
|
+
"sizeXs": "_7Ar2dq_sizeXs",
|
|
2519
2524
|
"sizeBase": "_7Ar2dq_sizeBase",
|
|
2520
|
-
"toneSecondary": "_7Ar2dq_toneSecondary",
|
|
2521
|
-
"toneTertiary": "_7Ar2dq_toneTertiary",
|
|
2522
|
-
"grow": "_7Ar2dq_grow",
|
|
2523
|
-
"weightMedium": "_7Ar2dq_weightMedium",
|
|
2524
|
-
"truncate": "_7Ar2dq_truncate",
|
|
2525
|
-
"push": "_7Ar2dq_push",
|
|
2526
2525
|
"tabular": "_7Ar2dq_tabular",
|
|
2527
|
-
"
|
|
2528
|
-
"
|
|
2529
|
-
"
|
|
2530
|
-
"wSearch": "_7Ar2dq_wSearch",
|
|
2531
|
-
"sizeSm": "_7Ar2dq_sizeSm",
|
|
2532
|
-
"alignStart": "_7Ar2dq_alignStart",
|
|
2533
|
-
"gap10": "_7Ar2dq_gap10",
|
|
2526
|
+
"toneSecondary": "_7Ar2dq_toneSecondary",
|
|
2527
|
+
"padCard": "_7Ar2dq_padCard",
|
|
2528
|
+
"gap14": "_7Ar2dq_gap14",
|
|
2534
2529
|
"gap16": "_7Ar2dq_gap16",
|
|
2535
|
-
"justifyEnd": "_7Ar2dq_justifyEnd",
|
|
2536
|
-
"scroll": "_7Ar2dq_scroll",
|
|
2537
2530
|
"gap4": "_7Ar2dq_gap4",
|
|
2538
|
-
"
|
|
2531
|
+
"gap2": "_7Ar2dq_gap2",
|
|
2532
|
+
"stack": "_7Ar2dq_stack",
|
|
2533
|
+
"push": "_7Ar2dq_push",
|
|
2539
2534
|
"gap12": "_7Ar2dq_gap12",
|
|
2535
|
+
"sizeSm": "_7Ar2dq_sizeSm",
|
|
2540
2536
|
"sizeMd": "_7Ar2dq_sizeMd",
|
|
2541
|
-
"
|
|
2542
|
-
"
|
|
2543
|
-
"padCard": "_7Ar2dq_padCard",
|
|
2544
|
-
"mono": "_7Ar2dq_mono",
|
|
2545
|
-
"justifyBetween": "_7Ar2dq_justifyBetween",
|
|
2546
|
-
"gap2": "_7Ar2dq_gap2",
|
|
2547
|
-
"boxed": "_7Ar2dq_boxed",
|
|
2537
|
+
"padBody": "_7Ar2dq_padBody",
|
|
2538
|
+
"strong": "_7Ar2dq_strong",
|
|
2548
2539
|
"fixed": "_7Ar2dq_fixed",
|
|
2549
|
-
"
|
|
2550
|
-
"
|
|
2540
|
+
"narrow": "_7Ar2dq_narrow",
|
|
2541
|
+
"gap6": "_7Ar2dq_gap6",
|
|
2542
|
+
"weightMedium": "_7Ar2dq_weightMedium",
|
|
2543
|
+
"truncate": "_7Ar2dq_truncate",
|
|
2544
|
+
"boxed": "_7Ar2dq_boxed",
|
|
2545
|
+
"toneDanger": "_7Ar2dq_toneDanger",
|
|
2546
|
+
"padNone": "_7Ar2dq_padNone",
|
|
2547
|
+
"justifyCenter": "_7Ar2dq_justifyCenter",
|
|
2548
|
+
"gapWide": "_7Ar2dq_gapWide",
|
|
2549
|
+
"toneTertiary": "_7Ar2dq_toneTertiary",
|
|
2550
|
+
"mono": "_7Ar2dq_mono",
|
|
2551
|
+
"padPage": "_7Ar2dq_padPage",
|
|
2551
2552
|
"alignCenter": "_7Ar2dq_alignCenter",
|
|
2553
|
+
"justifyEnd": "_7Ar2dq_justifyEnd",
|
|
2552
2554
|
"sizeLg": "_7Ar2dq_sizeLg",
|
|
2553
|
-
"
|
|
2554
|
-
"
|
|
2555
|
-
"
|
|
2555
|
+
"gap10": "_7Ar2dq_gap10",
|
|
2556
|
+
"grow": "_7Ar2dq_grow",
|
|
2557
|
+
"plain": "_7Ar2dq_plain",
|
|
2556
2558
|
"gap0": "_7Ar2dq_gap0",
|
|
2559
|
+
"alignEnd": "_7Ar2dq_alignEnd",
|
|
2560
|
+
"wrap": "_7Ar2dq_wrap",
|
|
2561
|
+
"text": "_7Ar2dq_text",
|
|
2562
|
+
"gap8": "_7Ar2dq_gap8",
|
|
2557
2563
|
"padRow": "_7Ar2dq_padRow",
|
|
2558
|
-
"
|
|
2559
|
-
"fill": "_7Ar2dq_fill",
|
|
2560
|
-
"tonePrimary": "_7Ar2dq_tonePrimary",
|
|
2561
|
-
"strong": "_7Ar2dq_strong",
|
|
2562
|
-
"padNone": "_7Ar2dq_padNone",
|
|
2563
|
-
"narrow": "_7Ar2dq_narrow",
|
|
2564
|
-
"wrap": "_7Ar2dq_wrap"
|
|
2564
|
+
"tonePrimary": "_7Ar2dq_tonePrimary"
|
|
2565
2565
|
};
|
|
2566
2566
|
//#endregion
|
|
2567
2567
|
//#region ../../client/dsh-client-ui-primitives/src/client/layout/scales.ts
|
|
@@ -2644,15 +2644,15 @@ window.__ModuleLoader__.load({
|
|
|
2644
2644
|
document.head.appendChild(tag);
|
|
2645
2645
|
}
|
|
2646
2646
|
var SettingsFieldRow_module_css_default = {
|
|
2647
|
-
"
|
|
2647
|
+
"hint": "Il1Dtq_hint",
|
|
2648
|
+
"reset": "Il1Dtq_reset",
|
|
2648
2649
|
"body": "Il1Dtq_body",
|
|
2650
|
+
"row": "Il1Dtq_row",
|
|
2649
2651
|
"badge": "Il1Dtq_badge",
|
|
2650
|
-
"text": "Il1Dtq_text",
|
|
2651
|
-
"hint": "Il1Dtq_hint",
|
|
2652
2652
|
"invalid": "Il1Dtq_invalid",
|
|
2653
|
-
"
|
|
2654
|
-
"
|
|
2655
|
-
"
|
|
2653
|
+
"text": "Il1Dtq_text",
|
|
2654
|
+
"inline": "Il1Dtq_inline",
|
|
2655
|
+
"label": "Il1Dtq_label"
|
|
2656
2656
|
};
|
|
2657
2657
|
//#endregion
|
|
2658
2658
|
//#region ../../client/dsh-client-ui-primitives/src/client/settings-form/SettingsFieldRow.tsx
|
|
@@ -2768,8 +2768,8 @@ window.__ModuleLoader__.load({
|
|
|
2768
2768
|
document.head.appendChild(tag);
|
|
2769
2769
|
}
|
|
2770
2770
|
var DisclosureRow_module_css_default = {
|
|
2771
|
-
"
|
|
2772
|
-
"
|
|
2771
|
+
"contentLayout": "_2HN-kW_contentLayout",
|
|
2772
|
+
"content": "_2HN-kW_content"
|
|
2773
2773
|
};
|
|
2774
2774
|
//#endregion
|
|
2775
2775
|
//#region ../../client/dsh-client-ui-primitives/src/client/controls/DisclosureRow.tsx
|
|
@@ -2792,11 +2792,11 @@ window.__ModuleLoader__.load({
|
|
|
2792
2792
|
document.head.appendChild(tag);
|
|
2793
2793
|
}
|
|
2794
2794
|
var SeatButton_module_css_default = {
|
|
2795
|
-
"seat": "JqQ4qG_seat",
|
|
2796
2795
|
"chevron": "JqQ4qG_chevron",
|
|
2797
2796
|
"expanded": "JqQ4qG_expanded",
|
|
2798
|
-
"
|
|
2799
|
-
"icon": "JqQ4qG_icon"
|
|
2797
|
+
"seat": "JqQ4qG_seat",
|
|
2798
|
+
"icon": "JqQ4qG_icon",
|
|
2799
|
+
"label": "JqQ4qG_label"
|
|
2800
2800
|
};
|
|
2801
2801
|
//#endregion
|
|
2802
2802
|
//#region ../../client/dsh-client-ui-primitives/src/client/controls/SeatButton.tsx
|
|
@@ -2899,8 +2899,8 @@ window.__ModuleLoader__.load({
|
|
|
2899
2899
|
document.head.appendChild(tag);
|
|
2900
2900
|
}
|
|
2901
2901
|
var IconButton_module_css_default = {
|
|
2902
|
-
"sm": "AibFna_sm",
|
|
2903
2902
|
"iconButton": "AibFna_iconButton",
|
|
2903
|
+
"sm": "AibFna_sm",
|
|
2904
2904
|
"circle": "AibFna_circle"
|
|
2905
2905
|
};
|
|
2906
2906
|
//#endregion
|
|
@@ -2927,16 +2927,16 @@ window.__ModuleLoader__.load({
|
|
|
2927
2927
|
document.head.appendChild(tag);
|
|
2928
2928
|
}
|
|
2929
2929
|
var ModelRouteList_module_css_default = {
|
|
2930
|
-
"
|
|
2931
|
-
"group": "_1vK46q_group",
|
|
2932
|
-
"provider": "_1vK46q_provider",
|
|
2930
|
+
"id": "_1vK46q_id",
|
|
2933
2931
|
"notice": "_1vK46q_notice",
|
|
2932
|
+
"provider": "_1vK46q_provider",
|
|
2934
2933
|
"picked": "_1vK46q_picked",
|
|
2935
|
-
"
|
|
2934
|
+
"error": "_1vK46q_error",
|
|
2936
2935
|
"list": "_1vK46q_list",
|
|
2937
2936
|
"item": "_1vK46q_item",
|
|
2938
2937
|
"name": "_1vK46q_name",
|
|
2939
|
-
"
|
|
2938
|
+
"group": "_1vK46q_group",
|
|
2939
|
+
"text": "_1vK46q_text"
|
|
2940
2940
|
};
|
|
2941
2941
|
//#endregion
|
|
2942
2942
|
//#region ../../client/dsh-client-ui-primitives/src/client/controls/ModelRouteList.tsx
|
|
@@ -3043,10 +3043,10 @@ window.__ModuleLoader__.load({
|
|
|
3043
3043
|
document.head.appendChild(tag);
|
|
3044
3044
|
}
|
|
3045
3045
|
var SearchSelect_module_css_default = {
|
|
3046
|
-
"
|
|
3046
|
+
"searchRow": "kEYv4q_searchRow",
|
|
3047
3047
|
"searchInput": "kEYv4q_searchInput",
|
|
3048
|
-
"
|
|
3049
|
-
"
|
|
3048
|
+
"trigger": "kEYv4q_trigger",
|
|
3049
|
+
"empty": "kEYv4q_empty"
|
|
3050
3050
|
};
|
|
3051
3051
|
//#endregion
|
|
3052
3052
|
//#region ../../client/dsh-client-ui-primitives/src/client/controls/SearchSelect.tsx
|
|
@@ -3159,13 +3159,13 @@ window.__ModuleLoader__.load({
|
|
|
3159
3159
|
document.head.appendChild(tag);
|
|
3160
3160
|
}
|
|
3161
3161
|
var TagInput_module_css_default = {
|
|
3162
|
-
"input": "Qg7I9G_input",
|
|
3163
|
-
"anchor": "Qg7I9G_anchor",
|
|
3164
|
-
"chip": "Qg7I9G_chip",
|
|
3165
3162
|
"chipRemove": "Qg7I9G_chipRemove",
|
|
3166
3163
|
"box": "Qg7I9G_box",
|
|
3164
|
+
"input": "Qg7I9G_input",
|
|
3165
|
+
"chip": "Qg7I9G_chip",
|
|
3167
3166
|
"empty": "Qg7I9G_empty",
|
|
3168
|
-
"row": "Qg7I9G_row"
|
|
3167
|
+
"row": "Qg7I9G_row",
|
|
3168
|
+
"anchor": "Qg7I9G_anchor"
|
|
3169
3169
|
};
|
|
3170
3170
|
//#endregion
|
|
3171
3171
|
//#region ../../client/dsh-client-ui-primitives/src/client/controls/TagInput.tsx
|
package/dist/rows.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
//#region src/mode-sources.ts
|
|
3
|
-
const CODING_PERSONA = { prefix: ["你是一个经验丰富的编程专家,YAGNI 是你的编程哲学,PDCA 是你的行为规范。", "
|
|
3
|
+
const CODING_PERSONA = { prefix: ["你是一个经验丰富的编程专家,YAGNI 是你的编程哲学,PDCA 是你的行为规范。", "全程 MUST 用中文(专有名词除外),包括但不限于思考,回答,工具描述,subagent 提示词;思考 NEVER 陷入重复循环,一旦循环立即退出;思考 SHOULD 聚焦需求理解与方案设计,不预演具体代码实现,正确性由验证环节确认。"].join("\n") };
|
|
4
4
|
const CHAT_PERSONA = { prefix: "你是一个助手。全程用中文(专有名词除外),包括但不限于思考,回答,工具描述;思考不要陷入重复循环,一旦循环立即退出。" };
|
|
5
5
|
const NOOP_MODE_ID = "noop";
|
|
6
6
|
const DEFAULT_MODE = "coding";
|
package/dist/rows.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/mode-sources.ts
|
|
2
|
-
const CODING_PERSONA = { prefix: ["你是一个经验丰富的编程专家,YAGNI 是你的编程哲学,PDCA 是你的行为规范。", "
|
|
2
|
+
const CODING_PERSONA = { prefix: ["你是一个经验丰富的编程专家,YAGNI 是你的编程哲学,PDCA 是你的行为规范。", "全程 MUST 用中文(专有名词除外),包括但不限于思考,回答,工具描述,subagent 提示词;思考 NEVER 陷入重复循环,一旦循环立即退出;思考 SHOULD 聚焦需求理解与方案设计,不预演具体代码实现,正确性由验证环节确认。"].join("\n") };
|
|
3
3
|
const CHAT_PERSONA = { prefix: "你是一个助手。全程用中文(专有名词除外),包括但不限于思考,回答,工具描述;思考不要陷入重复循环,一旦循环立即退出。" };
|
|
4
4
|
const NOOP_MODE_ID = "noop";
|
|
5
5
|
const DEFAULT_MODE = "coding";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morlay/dsh-session-mode",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "Session modes for dsh: coding / chat as data — a mode is a persona plus its tool lists, its upstream policy lists, its instruction / skill-catalog / runtime-context switches and an optional default model. The host applies the current mode to each session, and the chip in the composer sits beside the official agent-preset entry, which stays.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dsh",
|
|
@@ -43,39 +43,39 @@
|
|
|
43
43
|
"./locale/*.json": "./locale/*.json"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@morlay/dsh-client-ui-primitives": "0.0.
|
|
46
|
+
"@morlay/dsh-client-ui-primitives": "0.0.12",
|
|
47
47
|
"zod": "4.4.3"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@deepseek-ai/cordis": "4.0.5
|
|
51
|
-
"@deepseek-ai/cordis-plugin-group": "1.0.5
|
|
52
|
-
"@deepseek-ai/cordis-plugin-include": "1.0.10
|
|
53
|
-
"@deepseek-ai/cordis-plugin-loader": "1.0.6
|
|
54
|
-
"@deepseek-ai/cosmokit": "1.8.6
|
|
55
|
-
"@deepseek-ai/dsh-agent": "0.2.1-
|
|
56
|
-
"@deepseek-ai/dsh-agent-loop-testkit": "0.2.1-
|
|
57
|
-
"@deepseek-ai/dsh-agent-preset-registry": "0.2.1-
|
|
58
|
-
"@deepseek-ai/dsh-api-session-controller": "0.2.1-
|
|
59
|
-
"@deepseek-ai/dsh-client-locale": "0.2.1-
|
|
60
|
-
"@deepseek-ai/dsh-client-store": "0.2.1-
|
|
61
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.2.1-
|
|
62
|
-
"@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.1-
|
|
63
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.2.1-
|
|
64
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-
|
|
65
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-
|
|
66
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-
|
|
67
|
-
"@deepseek-ai/dsh-fs": "0.2.1-
|
|
68
|
-
"@deepseek-ai/dsh-fs-local": "0.2.1-
|
|
69
|
-
"@deepseek-ai/dsh-fs-observation-policy": "0.2.1-
|
|
70
|
-
"@deepseek-ai/dsh-llm": "0.2.1-
|
|
71
|
-
"@deepseek-ai/dsh-session": "0.2.1-
|
|
72
|
-
"@deepseek-ai/dsh-session-projection": "0.2.1-
|
|
73
|
-
"@deepseek-ai/dsh-settings": "0.2.1-
|
|
74
|
-
"@deepseek-ai/dsh-skill": "0.2.1-
|
|
75
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.1-
|
|
76
|
-
"@deepseek-ai/dsh-tools": "0.2.1-
|
|
77
|
-
"@deepseek-ai/dsh-typert-protocol": "0.2.1-
|
|
78
|
-
"@deepseek-ai/dsh-working-directory": "0.2.1-
|
|
50
|
+
"@deepseek-ai/cordis": "^4.0.5",
|
|
51
|
+
"@deepseek-ai/cordis-plugin-group": "^1.0.5",
|
|
52
|
+
"@deepseek-ai/cordis-plugin-include": "^1.0.10",
|
|
53
|
+
"@deepseek-ai/cordis-plugin-loader": "^1.0.6",
|
|
54
|
+
"@deepseek-ai/cosmokit": "^1.8.6",
|
|
55
|
+
"@deepseek-ai/dsh-agent": "^0.2.1-rc.1",
|
|
56
|
+
"@deepseek-ai/dsh-agent-loop-testkit": "^0.2.1-rc.1",
|
|
57
|
+
"@deepseek-ai/dsh-agent-preset-registry": "^0.2.1-rc.1",
|
|
58
|
+
"@deepseek-ai/dsh-api-session-controller": "^0.2.1-rc.1",
|
|
59
|
+
"@deepseek-ai/dsh-client-locale": "^0.2.1-rc.1",
|
|
60
|
+
"@deepseek-ai/dsh-client-store": "^0.2.1-rc.1",
|
|
61
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.2.1-rc.1",
|
|
62
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager": "^0.2.1-rc.1",
|
|
63
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.2.1-rc.1",
|
|
64
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.2.1-rc.1",
|
|
65
|
+
"@deepseek-ai/dsh-client-ui-settings": "^0.2.1-rc.1",
|
|
66
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.2.1-rc.1",
|
|
67
|
+
"@deepseek-ai/dsh-fs": "^0.2.1-rc.1",
|
|
68
|
+
"@deepseek-ai/dsh-fs-local": "^0.2.1-rc.1",
|
|
69
|
+
"@deepseek-ai/dsh-fs-observation-policy": "^0.2.1-rc.1",
|
|
70
|
+
"@deepseek-ai/dsh-llm": "^0.2.1-rc.1",
|
|
71
|
+
"@deepseek-ai/dsh-session": "^0.2.1-rc.1",
|
|
72
|
+
"@deepseek-ai/dsh-session-projection": "^0.2.1-rc.1",
|
|
73
|
+
"@deepseek-ai/dsh-settings": "^0.2.1-rc.1",
|
|
74
|
+
"@deepseek-ai/dsh-skill": "^0.2.1-rc.1",
|
|
75
|
+
"@deepseek-ai/dsh-system-prompt": "^0.2.1-rc.1",
|
|
76
|
+
"@deepseek-ai/dsh-tools": "^0.2.1-rc.1",
|
|
77
|
+
"@deepseek-ai/dsh-typert-protocol": "^0.2.1-rc.1",
|
|
78
|
+
"@deepseek-ai/dsh-working-directory": "^0.2.1-rc.1",
|
|
79
79
|
"@testing-library/react": "^16.3.0",
|
|
80
80
|
"@types/js-yaml": "^4.0.9",
|
|
81
81
|
"@types/react": "~18.3.1",
|
|
@@ -83,30 +83,30 @@
|
|
|
83
83
|
"react-dom": "^18.2.0"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
|
-
"@deepseek-ai/cordis": "^4.0.5
|
|
87
|
-
"@deepseek-ai/cosmokit": "^1.8.6
|
|
88
|
-
"@deepseek-ai/dsh-agent": "^0.2.1-
|
|
89
|
-
"@deepseek-ai/dsh-agent-preset-registry": "^0.2.1-
|
|
90
|
-
"@deepseek-ai/dsh-api-remotes": "0.2.1-
|
|
91
|
-
"@deepseek-ai/dsh-api-session-controller": "^0.2.1-
|
|
92
|
-
"@deepseek-ai/dsh-client-locale": "^0.2.1-
|
|
93
|
-
"@deepseek-ai/dsh-client-store": "^0.2.1-
|
|
94
|
-
"@deepseek-ai/dsh-client-ui-conversation": "^0.2.1-
|
|
95
|
-
"@deepseek-ai/dsh-client-ui-plugin-manager": "^0.2.1-
|
|
96
|
-
"@deepseek-ai/dsh-client-ui-primitives": "^0.2.1-
|
|
97
|
-
"@deepseek-ai/dsh-client-ui-settings": "^0.2.1-
|
|
98
|
-
"@deepseek-ai/dsh-client-ui-slots": "^0.2.1-
|
|
99
|
-
"@deepseek-ai/dsh-fs": "^0.2.1-
|
|
100
|
-
"@deepseek-ai/dsh-llm": "^0.2.1-
|
|
101
|
-
"@deepseek-ai/dsh-session": "^0.2.1-
|
|
102
|
-
"@deepseek-ai/dsh-session-projection": "^0.2.1-
|
|
103
|
-
"@deepseek-ai/dsh-skill": "^0.2.1-
|
|
104
|
-
"@deepseek-ai/dsh-system-prompt": "^0.2.1-
|
|
105
|
-
"@deepseek-ai/dsh-tool-skill": "0.2.1-
|
|
106
|
-
"@deepseek-ai/dsh-tools": "^0.2.1-
|
|
107
|
-
"@deepseek-ai/dsh-typert-protocol": "^0.2.1-
|
|
108
|
-
"@deepseek-ai/schemastery": "^3.18.5
|
|
109
|
-
"@morlay/dsh-context-assembler": "0.0.
|
|
86
|
+
"@deepseek-ai/cordis": "^4.0.5",
|
|
87
|
+
"@deepseek-ai/cosmokit": "^1.8.6",
|
|
88
|
+
"@deepseek-ai/dsh-agent": "^0.2.1-rc.1",
|
|
89
|
+
"@deepseek-ai/dsh-agent-preset-registry": "^0.2.1-rc.1",
|
|
90
|
+
"@deepseek-ai/dsh-api-remotes": "^0.2.1-rc.1",
|
|
91
|
+
"@deepseek-ai/dsh-api-session-controller": "^0.2.1-rc.1",
|
|
92
|
+
"@deepseek-ai/dsh-client-locale": "^0.2.1-rc.1",
|
|
93
|
+
"@deepseek-ai/dsh-client-store": "^0.2.1-rc.1",
|
|
94
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.2.1-rc.1",
|
|
95
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager": "^0.2.1-rc.1",
|
|
96
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.2.1-rc.1",
|
|
97
|
+
"@deepseek-ai/dsh-client-ui-settings": "^0.2.1-rc.1",
|
|
98
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.2.1-rc.1",
|
|
99
|
+
"@deepseek-ai/dsh-fs": "^0.2.1-rc.1",
|
|
100
|
+
"@deepseek-ai/dsh-llm": "^0.2.1-rc.1",
|
|
101
|
+
"@deepseek-ai/dsh-session": "^0.2.1-rc.1",
|
|
102
|
+
"@deepseek-ai/dsh-session-projection": "^0.2.1-rc.1",
|
|
103
|
+
"@deepseek-ai/dsh-skill": "^0.2.1-rc.1",
|
|
104
|
+
"@deepseek-ai/dsh-system-prompt": "^0.2.1-rc.1",
|
|
105
|
+
"@deepseek-ai/dsh-tool-skill": "^0.2.1-rc.1",
|
|
106
|
+
"@deepseek-ai/dsh-tools": "^0.2.1-rc.1",
|
|
107
|
+
"@deepseek-ai/dsh-typert-protocol": "^0.2.1-rc.1",
|
|
108
|
+
"@deepseek-ai/schemastery": "^3.18.5",
|
|
109
|
+
"@morlay/dsh-context-assembler": "0.0.9",
|
|
110
110
|
"react": "^18.2.0"
|
|
111
111
|
},
|
|
112
112
|
"dsh": {
|
|
@@ -120,6 +120,9 @@
|
|
|
120
120
|
]
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
|
+
"engines": {
|
|
124
|
+
"dsh": ">= 0.2.1-rc.1 < 0.2.2"
|
|
125
|
+
},
|
|
123
126
|
"scripts": {
|
|
124
127
|
"build": "pnpm exec tsdown"
|
|
125
128
|
}
|
package/src/mode-sources.ts
CHANGED
|
@@ -52,7 +52,7 @@ export interface ModeModelSource {
|
|
|
52
52
|
const CODING_PERSONA = {
|
|
53
53
|
prefix: [
|
|
54
54
|
"你是一个经验丰富的编程专家,YAGNI 是你的编程哲学,PDCA 是你的行为规范。",
|
|
55
|
-
"
|
|
55
|
+
"全程 MUST 用中文(专有名词除外),包括但不限于思考,回答,工具描述,subagent 提示词;思考 NEVER 陷入重复循环,一旦循环立即退出;思考 SHOULD 聚焦需求理解与方案设计,不预演具体代码实现,正确性由验证环节确认。",
|
|
56
56
|
].join("\n"),
|
|
57
57
|
};
|
|
58
58
|
|
|
@@ -76,7 +76,8 @@ export const MODE_SOURCES: readonly ModeSource[] = [
|
|
|
76
76
|
{
|
|
77
77
|
id: "coding",
|
|
78
78
|
name: "编码模式",
|
|
79
|
-
description:
|
|
79
|
+
description:
|
|
80
|
+
"功能完整的编码 Agent:文件、Shell、检索、联网等工具常驻,其余用法说明按需加载。",
|
|
80
81
|
persona: CODING_PERSONA,
|
|
81
82
|
// 用户可选,也允许作为子代理的 mode(子代理默认继承父 mode,不看角色;这里是"可被指定"的候选集)。
|
|
82
83
|
role: ["main", "subagent"],
|
|
@@ -115,7 +116,8 @@ export const MODE_SOURCES: readonly ModeSource[] = [
|
|
|
115
116
|
{
|
|
116
117
|
id: NOOP_MODE_ID,
|
|
117
118
|
name: "原样模式",
|
|
118
|
-
description:
|
|
119
|
+
description:
|
|
120
|
+
"与上游一致:不加人格提示词、不收窄工具与技能、policy 规则全开、官方注入面照旧。",
|
|
119
121
|
// 用户可选,也允许作为子代理的 mode:它不做任何过滤,给子代理当候选同样成立。
|
|
120
122
|
role: ["main", "subagent"],
|
|
121
123
|
// 其余字段一律不写:名单留空 = 不设收窄,`instructions` / `runtimeContext` 走 schema 默认 `true`,
|