refactor(mcp): extract order services into independent project

Remove Kingdee sync, business CLI/MCP tools, and internal order-query routing
now owned by the separate kingdee-orders-mcp project. Keep Wiki retrieval,
file assets and ingest available in code while its deployed service is off.
Retain legacy response fields with business access disabled, and document
migration ownership and rollback without exposing credentials or data.

Validation: 174 Wiki tests pass. Independent order service verified with
36 template parity checks, authenticated HTTP queries, and a real sync.
This commit is contained in:
Codex
2026-10-31 07:41:18 +00:00
parent 6c451c3eb6
commit 2396bd2d3e
25 changed files with 47 additions and 5793 deletions
+6 -27
View File
@@ -1,31 +1,10 @@
import unittest
from pathlib import Path
class WikiSkillInstructionTests(unittest.TestCase):
def test_wiki_query_documents_hybrid_business_and_wiki_route(self):
text = Path(".skills/wiki-query/SKILL.md").read_text(encoding="utf-8")
self.assertIn("Hybrid Business + Wiki Route", text)
self.assertNotIn("spawn two subagents", text)
self.assertIn("two independent tracks", text)
self.assertIn("parallel subagents are optional", text)
self.assertIn("run the same tracks sequentially", text)
self.assertIn("customer/account health", text)
self.assertIn("product/material situation", text)
self.assertIn("salesperson/team activity", text)
self.assertIn("project progress with commercial signal", text)
self.assertIn("delivery risk", text)
self.assertIn("anomaly explanation", text)
self.assertIn("TOP ranking context", text)
self.assertIn("quality or complaint impact", text)
self.assertIn("ordinary wiki-query", text)
self.assertIn("business facts query", text)
self.assertIn("fuse the two results", text)
self.assertIn("customer_summary", text)
self.assertIn("business sql", text)
self.assertIn("Do not use hybrid mode when filtered mode is active", text)
if __name__ == "__main__":
unittest.main()
def test_wiki_query_keeps_order_access_in_separate_project(self):
text = Path(".skills/wiki-query/SKILL.md").read_text()
self.assertIn("independent `kingdee-orders-mcp` project", text)
self.assertIn("must not read legacy order databases", text)
self.assertNotIn("obsidian-wiki business", text)
self.assertNotIn("Hybrid Business + Wiki Route", text)