mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 16:30:47 +08:00
重构主控编排与运行时预热链路,统一工作区提示词/专家调度协议并补齐 wiki 记忆注入与写回闭环。
同时收敛启动与运维脚本默认行为(含 wiki worker)、更新 Admin 可观测性与相关测试,降低首轮时延并提高运行稳定性。 Made-with: Cursor
This commit is contained in:
parent
4a23b715a2
commit
dbbe3add6a
14438 changed files with 2693620 additions and 2546 deletions
24
openclaw/scripts/docs-i18n/testdata/behavior/fenced-singleton-retry/case.json
vendored
Normal file
24
openclaw/scripts/docs-i18n/testdata/behavior/fenced-singleton-retry/case.json
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"name": "fenced singleton retries after malformed raw output",
|
||||
"mode": "doc_body_chunked",
|
||||
"rel_path": "gateway/configuration-reference.md",
|
||||
"source_file": "source.txt",
|
||||
"expected_output_contains": [
|
||||
"Translated line 01",
|
||||
"Translated line 02",
|
||||
"Translated line 03",
|
||||
"Translated line 04"
|
||||
],
|
||||
"expected_output_not_contains": ["Line 01", "Line 02", "Line 03", "Line 04"],
|
||||
"rules": [
|
||||
{
|
||||
"method": "raw",
|
||||
"match_all": ["Line 01", "Line 04"],
|
||||
"response_file": "raw-malformed.txt"
|
||||
},
|
||||
{
|
||||
"method": "raw",
|
||||
"replace_pairs": [{ "from": "Line ", "to": "Translated line " }]
|
||||
}
|
||||
]
|
||||
}
|
||||
6
openclaw/scripts/docs-i18n/testdata/behavior/fenced-singleton-retry/raw-malformed.txt
vendored
Normal file
6
openclaw/scripts/docs-i18n/testdata/behavior/fenced-singleton-retry/raw-malformed.txt
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
```md
|
||||
Line 01
|
||||
Line 02
|
||||
Line 03
|
||||
Line 04
|
||||
|
||||
7
openclaw/scripts/docs-i18n/testdata/behavior/fenced-singleton-retry/source.txt
vendored
Normal file
7
openclaw/scripts/docs-i18n/testdata/behavior/fenced-singleton-retry/source.txt
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
```md
|
||||
Line 01
|
||||
Line 02
|
||||
Line 03
|
||||
Line 04
|
||||
```
|
||||
|
||||
14
openclaw/scripts/docs-i18n/testdata/behavior/frontmatter-fallback/case.json
vendored
Normal file
14
openclaw/scripts/docs-i18n/testdata/behavior/frontmatter-fallback/case.json
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"name": "frontmatter scalar falls back instead of keeping tagged wrapper",
|
||||
"mode": "frontmatter_scalar",
|
||||
"rel_path": "install/fly.md",
|
||||
"source_file": "source.txt",
|
||||
"expected_file": "expected.txt",
|
||||
"rules": [
|
||||
{
|
||||
"method": "masked",
|
||||
"match_all": ["Deploying OpenClaw on Fly.io"],
|
||||
"response_file": "masked-tagged-wrapper.txt"
|
||||
}
|
||||
]
|
||||
}
|
||||
1
openclaw/scripts/docs-i18n/testdata/behavior/frontmatter-fallback/expected.txt
vendored
Normal file
1
openclaw/scripts/docs-i18n/testdata/behavior/frontmatter-fallback/expected.txt
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
Deploying OpenClaw on Fly.io
|
||||
7
openclaw/scripts/docs-i18n/testdata/behavior/frontmatter-fallback/masked-tagged-wrapper.txt
vendored
Normal file
7
openclaw/scripts/docs-i18n/testdata/behavior/frontmatter-fallback/masked-tagged-wrapper.txt
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<frontmatter>
|
||||
title: Fly.io
|
||||
</frontmatter>
|
||||
|
||||
<body>
|
||||
# Fly.io 部署
|
||||
</body>
|
||||
1
openclaw/scripts/docs-i18n/testdata/behavior/frontmatter-fallback/source.txt
vendored
Normal file
1
openclaw/scripts/docs-i18n/testdata/behavior/frontmatter-fallback/source.txt
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
Deploying OpenClaw on Fly.io
|
||||
25
openclaw/scripts/docs-i18n/testdata/behavior/protocol-leak-split/case.json
vendored
Normal file
25
openclaw/scripts/docs-i18n/testdata/behavior/protocol-leak-split/case.json
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"name": "protocol leak retries on smaller chunks",
|
||||
"mode": "doc_body_chunked",
|
||||
"rel_path": "gateway/configuration-reference.md",
|
||||
"source_file": "source.txt",
|
||||
"expected_file": "expected.txt",
|
||||
"expected_output_not_contains": ["<frontmatter>", "<body>", "[[[FM_"],
|
||||
"rules": [
|
||||
{
|
||||
"method": "raw",
|
||||
"match_all": ["First chunk", "Second chunk"],
|
||||
"response_file": "raw-leaked.txt"
|
||||
},
|
||||
{
|
||||
"method": "raw",
|
||||
"match_all": ["First chunk"],
|
||||
"response_file": "raw-first.txt"
|
||||
},
|
||||
{
|
||||
"method": "raw",
|
||||
"match_all": ["Second chunk"],
|
||||
"response_file": "raw-second.txt"
|
||||
}
|
||||
]
|
||||
}
|
||||
4
openclaw/scripts/docs-i18n/testdata/behavior/protocol-leak-split/expected.txt
vendored
Normal file
4
openclaw/scripts/docs-i18n/testdata/behavior/protocol-leak-split/expected.txt
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
First translated
|
||||
|
||||
Second translated
|
||||
|
||||
2
openclaw/scripts/docs-i18n/testdata/behavior/protocol-leak-split/raw-first.txt
vendored
Normal file
2
openclaw/scripts/docs-i18n/testdata/behavior/protocol-leak-split/raw-first.txt
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
First translated
|
||||
|
||||
9
openclaw/scripts/docs-i18n/testdata/behavior/protocol-leak-split/raw-leaked.txt
vendored
Normal file
9
openclaw/scripts/docs-i18n/testdata/behavior/protocol-leak-split/raw-leaked.txt
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<frontmatter>
|
||||
title: leaked
|
||||
</frontmatter>
|
||||
|
||||
<body>
|
||||
First translated
|
||||
|
||||
Second translated
|
||||
</body>
|
||||
2
openclaw/scripts/docs-i18n/testdata/behavior/protocol-leak-split/raw-second.txt
vendored
Normal file
2
openclaw/scripts/docs-i18n/testdata/behavior/protocol-leak-split/raw-second.txt
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
Second translated
|
||||
|
||||
4
openclaw/scripts/docs-i18n/testdata/behavior/protocol-leak-split/source.txt
vendored
Normal file
4
openclaw/scripts/docs-i18n/testdata/behavior/protocol-leak-split/source.txt
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
First chunk
|
||||
|
||||
Second chunk
|
||||
|
||||
14
openclaw/scripts/docs-i18n/testdata/behavior/uppercase-wrapper-strip/case.json
vendored
Normal file
14
openclaw/scripts/docs-i18n/testdata/behavior/uppercase-wrapper-strip/case.json
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"name": "uppercase body wrapper is stripped",
|
||||
"mode": "doc_body_chunked",
|
||||
"rel_path": "help/testing.md",
|
||||
"source_file": "source.txt",
|
||||
"expected_file": "expected.txt",
|
||||
"rules": [
|
||||
{
|
||||
"method": "raw",
|
||||
"match_all": ["Regular paragraph."],
|
||||
"response_file": "raw-uppercase-wrapper.txt"
|
||||
}
|
||||
]
|
||||
}
|
||||
1
openclaw/scripts/docs-i18n/testdata/behavior/uppercase-wrapper-strip/expected.txt
vendored
Normal file
1
openclaw/scripts/docs-i18n/testdata/behavior/uppercase-wrapper-strip/expected.txt
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
Translated paragraph.
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
<BODY>
|
||||
Translated paragraph.
|
||||
</BODY>
|
||||
1
openclaw/scripts/docs-i18n/testdata/behavior/uppercase-wrapper-strip/source.txt
vendored
Normal file
1
openclaw/scripts/docs-i18n/testdata/behavior/uppercase-wrapper-strip/source.txt
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
Regular paragraph.
|
||||
Loading…
Add table
Add a link
Reference in a new issue