@kenhkl/agent-moss 0.12.4 → 0.12.5
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/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -3822,10 +3822,10 @@ function formatPromptHistory(promptHistory, maxTextChars = 500) {
|
|
|
3822
3822
|
const lines = [];
|
|
3823
3823
|
for (let i = 0; i < promptHistory.length; i++) {
|
|
3824
3824
|
const turn = promptHistory[i];
|
|
3825
|
-
const text = (turn?.text || "").trim();
|
|
3825
|
+
const text = (typeof turn === "string" ? turn : turn?.text || "").trim();
|
|
3826
3826
|
if (!text) continue;
|
|
3827
3827
|
let line = ` \u7B2C${i + 1}\u8F6E\u7528\u6237\u610F\u56FE: ${text.slice(0, maxTextChars)}`;
|
|
3828
|
-
const actions = turn?.actions;
|
|
3828
|
+
const actions = typeof turn === "string" ? void 0 : turn?.actions;
|
|
3829
3829
|
if (actions && actions.length > 0) {
|
|
3830
3830
|
const types = actions.map((a) => a?.actionType).filter((t) => typeof t === "string" && t.length > 0);
|
|
3831
3831
|
if (types.length > 0) {
|