@kenhkl/agent-moss 0.12.4 → 0.12.6
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/cli.js +2 -2
- package/dist/cli.js.map +1 -1
- package/dist/engine/coordinator.d.ts +3 -3
- package/dist/engine/coordinator.js +2 -2
- package/dist/engine/coordinator.js.map +1 -1
- package/dist/rules/l1_rules.json +6 -0
- package/dist/server.js +2 -2
- package/dist/server.js.map +1 -1
- package/dist/skills/brain_script_execution_php_r_system.md +17 -0
- package/dist/skills/brain_script_execution_python_c_import.md +17 -0
- package/dist/static/index.html +158 -7
- package/package.json +1 -1
|
@@ -17,15 +17,15 @@ interface AnalysisInput {
|
|
|
17
17
|
actionType: string;
|
|
18
18
|
actionDetail: string;
|
|
19
19
|
}[];
|
|
20
|
-
/** 完整的交错历史 prompt(可选),每轮 {text, actions}
|
|
20
|
+
/** 完整的交错历史 prompt(可选),每轮 {text, actions} 或纯文本 string(AgentGate v3 旧格式),按时间序。
|
|
21
21
|
* 供 L2 意图一致性与 L3 语义分析使用;空则回退单条 promptSession。 */
|
|
22
|
-
promptHistory?: {
|
|
22
|
+
promptHistory?: ({
|
|
23
23
|
text: string;
|
|
24
24
|
actions: {
|
|
25
25
|
actionType: string;
|
|
26
26
|
actionDetail: string;
|
|
27
27
|
}[];
|
|
28
|
-
}[];
|
|
28
|
+
} | string)[];
|
|
29
29
|
aNext: {
|
|
30
30
|
actionType: string;
|
|
31
31
|
actionDetail: string;
|
|
@@ -3806,10 +3806,10 @@ function formatPromptHistory(promptHistory, maxTextChars = 500) {
|
|
|
3806
3806
|
const lines = [];
|
|
3807
3807
|
for (let i = 0; i < promptHistory.length; i++) {
|
|
3808
3808
|
const turn = promptHistory[i];
|
|
3809
|
-
const text = (turn?.text || "").trim();
|
|
3809
|
+
const text = (typeof turn === "string" ? turn : turn?.text || "").trim();
|
|
3810
3810
|
if (!text) continue;
|
|
3811
3811
|
let line = ` \u7B2C${i + 1}\u8F6E\u7528\u6237\u610F\u56FE: ${text.slice(0, maxTextChars)}`;
|
|
3812
|
-
const actions = turn?.actions;
|
|
3812
|
+
const actions = typeof turn === "string" ? void 0 : turn?.actions;
|
|
3813
3813
|
if (actions && actions.length > 0) {
|
|
3814
3814
|
const types = actions.map((a) => a?.actionType).filter((t) => typeof t === "string" && t.length > 0);
|
|
3815
3815
|
if (types.length > 0) {
|