@furongjun1999/dsh-memory 0.4.4 → 0.4.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/README.md +200 -453
- package/cordis.yml.example +78 -9
- package/docs/AGI/344/270/203/347/273/264/350/257/204/345/210/206/346/212/245/345/221/212_md_cg_v1.0.md +170 -0
- package/docs/AGI/344/270/203/347/273/264/350/257/204/345/210/206/346/212/245/345/221/212_md_cg_v2.0.md +239 -0
- package/docs/README/350/257/246/347/273/206/347/211/210_v0.4.5.md +625 -0
- package/docs/cordis-patch-profile-web.example.yml +49 -5
- package/docs/release_v0.3.0.md +36 -0
- package/docs/release_v0.4.5.md +55 -0
- package/docs/tool_table_v0.3.0.md +117 -0
- package/docs//344/273/244/347/211/214/344/270/216/350/247/222/350/211/262/346/235/203/350/201/214/345/210/206/347/246/273_v0.1.md +160 -0
- package/docs//345/212/237/350/203/275/350/260/203/347/224/250/346/230/240/345/260/204/350/241/250_v0.1.md +221 -0
- package/docs//345/267/245/344/275/234/347/272/252/345/276/213_/350/256/244/347/237/245/345/233/276/346/235/241/347/233/256_v1.1.json +51 -2
- package/docs//347/201/265/346/236/24282/345/267/245/345/205/267_/345/212/237/350/203/275/346/225/264/347/220/206/344/270/216/350/277/201/347/247/273/346/230/240/345/260/204_v0.1.md +278 -0
- package/docs//347/201/265/346/236/242/344/270/211/345/261/202/346/213/206/345/210/206/350/247/204/345/210/222_v0.1.md +181 -0
- package/docs//347/220/206/350/256/272/344/273/223/346/213/206/345/210/206/344/270/216/347/231/275/347/256/261/347/237/245/350/257/206/345/272/223/345/206/205/350/277/201_v0.1.md +198 -0
- package/docs//347/231/275/347/256/261/346/231/272/350/203/275/347/263/273/345/210/227/302/267/347/254/254/344/272/224/347/257/207/357/274/232/350/256/251AI/347/234/237/346/255/243/350/243/205/344/270/212/350/256/260/345/277/206.md +49 -1
- package/docs//347/274/272/345/217/243/345/215/225_P0/346/224/266/345/217/243_v0.1.md +270 -0
- package/docs//350/234/202/347/276/244/344/272/222/350/201/224_v0.1.md +704 -0
- package/docs//350/256/244/347/237/245/345/233/276_G4-G8/347/274/272/345/217/243/350/243/201/345/256/232/345/215/225_v0.1.md +491 -0
- package/docs//350/256/244/347/237/245/345/233/276_MD/347/233/256/345/275/225/346/226/271/346/241/210_v0.1.md +60 -38
- package/docs//350/256/244/347/237/245/345/233/276_/346/235/241/344/273/266/347/251/272/351/227/264/345/220/210/346/210/220/344/270/216/347/224/237/346/225/210/346/235/241/344/273/266/345/217/243/345/276/204_v0.1.md +340 -0
- package/docs//350/256/244/347/237/245/345/233/276_/347/264/242/345/274/225/344/270/216/345/267/245/347/250/213/350/247/204/350/214/203/345/214/226_/350/256/241/345/210/222_v0.1.md +496 -0
- package/docs//350/256/244/347/237/245/345/233/276/344/275/234/344/270/272/350/256/260/345/277/206/346/223/215/344/275/234/347/263/273/347/273/237_/350/257/204/344/274/260/344/270/216/350/267/257/347/272/277_v0.1.md +2 -2
- package/docs//350/256/260/345/277/206/346/223/215/344/275/234/347/263/273/347/273/237_MdCGOS/344/270/216MCP/346/216/245/345/205/245_v0.1.md +129 -26
- package/lib/bridge.d.ts +4 -4
- package/lib/bridge.js +4 -4
- package/lib/hooks.d.ts +23 -8
- package/lib/hooks.js +75 -26
- package/lib/index.d.ts +53 -8
- package/lib/index.js +249 -65
- package/lib/lib/datapath.d.ts +16 -0
- package/lib/lib/datapath.js +114 -0
- package/lib/lib/mdcg_client.d.ts +172 -0
- package/lib/lib/mdcg_client.js +277 -0
- package/lib/lib/mutual.d.ts +121 -0
- package/lib/lib/mutual.js +348 -0
- package/lib/lib/roleplay_web.d.ts +6 -0
- package/{src/roleplay_web.ts → lib/lib/roleplay_web.js} +503 -450
- package/lib/lib/token_store.d.ts +36 -0
- package/lib/lib/token_store.js +135 -0
- package/lib/lib/whitebox_llm.d.ts +129 -0
- package/lib/lib/whitebox_llm.js +249 -0
- package/lib/tools.d.ts +13 -6
- package/lib/tools.js +41 -55
- package/md_cg/__init__.py +7 -0
- package/md_cg/audit.py +280 -0
- package/md_cg/backfill.py +1272 -0
- package/md_cg/bench_axis_domain.py +250 -0
- package/md_cg/bench_lme_zh.py +396 -0
- package/md_cg/bench_locomo.py +121 -0
- package/md_cg/bench_locomo_zh.py +436 -0
- package/md_cg/bench_locomo_zh_public.py +145 -0
- package/md_cg/bench_longmem.py +112 -0
- package/md_cg/bench_membench.py +602 -0
- package/md_cg/bench_p0.py +147 -0
- package/md_cg/bench_task_ab.py +237 -0
- package/md_cg/bench_task_ab_llm.py +397 -0
- package/md_cg/bench_zh_mad.py +583 -0
- package/md_cg/census.py +117 -0
- package/md_cg/chain.py +280 -0
- package/md_cg/codeindex.py +359 -0
- package/md_cg/consistency.py +593 -0
- package/md_cg/consolidate.py +1389 -0
- package/md_cg/corpus.py +106 -0
- package/md_cg/crosscheck.py +1058 -0
- package/md_cg/crypto.py +404 -0
- package/md_cg/datapath.py +160 -0
- package/md_cg/docindex.py +333 -0
- package/md_cg/eval_common.py +547 -0
- package/md_cg/evidence.py +555 -0
- package/md_cg/evolution.py +458 -0
- package/md_cg/export.py +210 -0
- package/md_cg/forgetting.py +552 -0
- package/md_cg/fsutil.py +251 -0
- package/md_cg/identity.py +374 -0
- package/md_cg/insight.py +485 -0
- package/md_cg/links.py +595 -0
- package/md_cg/mcp_server.py +2586 -0
- package/md_cg/md_whitebox.py +271 -0
- package/md_cg/mdcg.py +1244 -0
- package/md_cg/mdcos.py +2542 -0
- package/md_cg/metacognition.py +557 -0
- package/md_cg/migrate.py +115 -0
- package/md_cg/migrate_aeis.py +213 -0
- package/md_cg/migrate_roleplay.py +285 -0
- package/md_cg/migrate_wisdom_graph.py +348 -0
- package/md_cg/nodefile.py +308 -0
- package/md_cg/pooling.py +451 -0
- package/md_cg/predict.py +918 -0
- package/md_cg/protect.py +260 -0
- package/md_cg/protocol/md_cg_gate.proto +33 -0
- package/md_cg/provenance.py +321 -0
- package/md_cg/refindex.py +585 -0
- package/md_cg/refine.py +586 -0
- package/md_cg/routing.py +290 -0
- package/md_cg/scrub.py +788 -0
- package/md_cg/security.py +250 -0
- package/md_cg/self_state.py +880 -0
- package/md_cg/signer.py +523 -0
- package/md_cg/sources.py +547 -0
- package/md_cg/stg.py +250 -0
- package/md_cg/subgraph.py +706 -0
- package/md_cg/sustain.py +874 -0
- package/md_cg/test_lock.py +43 -0
- package/md_cg/test_p0.py +250 -0
- package/md_cg/test_p1.py +317 -0
- package/md_cg/test_p10_identity.py +173 -0
- package/md_cg/test_p11_consistency.py +233 -0
- package/md_cg/test_p12_metacognition.py +212 -0
- package/md_cg/test_p13_encryption.py +241 -0
- package/md_cg/test_p14_sustain.py +249 -0
- package/md_cg/test_p15_scrub.py +280 -0
- package/md_cg/test_p16_self_state.py +275 -0
- package/md_cg/test_p17_predict.py +341 -0
- package/md_cg/test_p18_whitebox.py +171 -0
- package/md_cg/test_p19_migrate_roleplay.py +149 -0
- package/md_cg/test_p2.py +205 -0
- package/md_cg/test_p20_evolution.py +315 -0
- package/md_cg/test_p21_tokens.py +270 -0
- package/md_cg/test_p22_theory.py +175 -0
- package/md_cg/test_p23_links.py +311 -0
- package/md_cg/test_p24_evidence.py +227 -0
- package/md_cg/test_p25_weights.py +156 -0
- package/md_cg/test_p26_refindex.py +387 -0
- package/md_cg/test_p27_docindex.py +377 -0
- package/md_cg/test_p28_refcheck.py +305 -0
- package/md_cg/test_p29_session_ingest_export.py +333 -0
- package/md_cg/test_p2_mcp.py +425 -0
- package/md_cg/test_p3.py +252 -0
- package/md_cg/test_p30_maintain.py +330 -0
- package/md_cg/test_p31_insight.py +510 -0
- package/md_cg/test_p32_backfill.py +298 -0
- package/md_cg/test_p33_ccg_wiring.py +293 -0
- package/md_cg/test_p34_crosscheck.py +331 -0
- package/md_cg/test_p35_conditioned_claim.py +252 -0
- package/md_cg/test_p36_kp_align.py +225 -0
- package/md_cg/test_p37_condition_space.py +248 -0
- package/md_cg/test_p38_contextualize.py +273 -0
- package/md_cg/test_p39_vision_evidence.py +369 -0
- package/md_cg/test_p40_refine_worklist.py +241 -0
- package/md_cg/test_p41_evolve_patrol.py +224 -0
- package/md_cg/test_p42_provenance.py +269 -0
- package/md_cg/test_p43_pooling.py +370 -0
- package/md_cg/test_p44_md_whitebox.py +218 -0
- package/md_cg/test_p45_session_identity.py +220 -0
- package/md_cg/test_p46_unit_scope.py +272 -0
- package/md_cg/test_p4_fuzzy.py +223 -0
- package/md_cg/test_p5_semantic.py +226 -0
- package/md_cg/test_p6_consolidate.py +387 -0
- package/md_cg/test_p7_goals_recent.py +202 -0
- package/md_cg/test_p8_subgraph_chain.py +200 -0
- package/md_cg/test_p9_forget_protect.py +231 -0
- package/md_cg/theory.py +259 -0
- package/md_cg/tokens.py +542 -0
- package/md_cg/vision_evidence.py +644 -0
- package/md_cg/weights.py +602 -0
- package/md_cg/whitebox.py +497 -0
- package/md_cg/whitebox_kb/__init__.py +37 -0
- package/md_cg/whitebox_kb/aeis_core/__init__.py +42 -0
- package/md_cg/whitebox_kb/aeis_core/api.py +1042 -0
- package/md_cg/whitebox_kb/aeis_core/core.py +5022 -0
- package/md_cg/whitebox_kb/aeis_core/semantic.py +280 -0
- package/md_cg/whitebox_kb/aeis_core/textutil.py +13 -0
- package/md_cg/whitebox_kb/aeis_core/time_core.py +43 -0
- package/md_cg/whitebox_kb/data/verify_cache.json +1873 -0
- package/md_cg/whitebox_kb/data/verify_savings.jsonl +8050 -0
- package/md_cg/whitebox_kb/engine.py +310 -0
- package/md_cg/whitebox_kb/knowledge/_ccg_dump.json +1 -0
- package/md_cg/whitebox_kb/knowledge/_index.json +15300 -0
- package/md_cg/whitebox_kb/knowledge//344/270/226/347/225/214/345/234/260/346/240/207.md +22 -0
- package/md_cg/whitebox_kb/knowledge//344/270/226/347/225/214/346/226/207/345/214/226.md +15 -0
- package/md_cg/whitebox_kb/knowledge//344/270/226/347/225/214/350/207/252/347/204/266/345/245/207/350/247/202.md +29 -0
- package/md_cg/whitebox_kb/knowledge//344/270/226/347/225/214/351/201/227/344/272/247.md +15 -0
- package/md_cg/whitebox_kb/knowledge//344/270/255/345/233/275/345/217/244/344/273/243/346/226/207/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +167 -0
- package/md_cg/whitebox_kb/knowledge//344/270/255/345/233/275/345/220/215/350/203/234.md +15 -0
- package/md_cg/whitebox_kb/knowledge//344/270/255/345/233/275/345/257/223/350/250/200.md +15 -0
- package/md_cg/whitebox_kb/knowledge//344/270/255/345/233/275/347/216/260/344/273/243/346/226/207/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +153 -0
- package/md_cg/whitebox_kb/knowledge//344/270/255/345/233/275/347/245/236/350/257/235.md +22 -0
- package/md_cg/whitebox_kb/knowledge//344/271/246/346/263/225/346/226/207/345/214/226.md +22 -0
- package/md_cg/whitebox_kb/knowledge//344/272/244/351/200/232/345/256/211/345/205/250.md +15 -0
- package/md_cg/whitebox_kb/knowledge//344/272/244/351/200/232/351/200/232/350/257/206.md +15 -0
- package/md_cg/whitebox_kb/knowledge//344/272/272/344/275/223/347/224/237/347/220/206.md +22 -0
- package/md_cg/whitebox_kb/knowledge//344/272/272/345/267/245/346/231/272/350/203/275/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +307 -0
- package/md_cg/whitebox_kb/knowledge//344/272/272/346/226/207/351/200/232/350/257/206.md +1296 -0
- package/md_cg/whitebox_kb/knowledge//344/272/272/347/211/251/345/216/206/345/217/262.md +15 -0
- package/md_cg/whitebox_kb/knowledge//344/272/272/347/261/273/350/247/202/345/257/237/350/200/205/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +265 -0
- package/md_cg/whitebox_kb/knowledge//344/272/272/351/231/205/346/262/237/351/200/232.md +22 -0
- package/md_cg/whitebox_kb/knowledge//344/274/232/350/256/241/345/255/246/345/216/237/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +131 -0
- package/md_cg/whitebox_kb/knowledge//344/274/240/347/273/237/344/271/220/345/231/250.md +15 -0
- package/md_cg/whitebox_kb/knowledge//344/274/240/347/273/237/345/205/273/347/224/237.md +15 -0
- package/md_cg/whitebox_kb/knowledge//344/274/240/347/273/237/345/216/206/346/263/225.md +15 -0
- package/md_cg/whitebox_kb/knowledge//344/274/240/347/273/237/345/267/245/350/211/272.md +148 -0
- package/md_cg/whitebox_kb/knowledge//344/274/240/347/273/237/345/273/272/347/255/221.md +29 -0
- package/md_cg/whitebox_kb/knowledge//344/274/240/347/273/237/346/226/207/345/214/226.md +92 -0
- package/md_cg/whitebox_kb/knowledge//344/274/240/347/273/237/346/243/213/347/261/273.md +15 -0
- package/md_cg/whitebox_kb/knowledge//344/274/240/347/273/237/346/255/246/346/234/257.md +15 -0
- package/md_cg/whitebox_kb/knowledge//344/274/240/347/273/237/347/276/216/345/276/267.md +29 -0
- package/md_cg/whitebox_kb/knowledge//344/274/240/347/273/237/347/276/216/351/243/237.md +36 -0
- package/md_cg/whitebox_kb/knowledge//344/274/240/347/273/237/350/211/272/346/234/257.md +71 -0
- package/md_cg/whitebox_kb/knowledge//344/274/240/347/273/237/350/212/202/346/227/245.md +22 -0
- package/md_cg/whitebox_kb/knowledge//344/275/223/350/202/262.md +15 -0
- package/md_cg/whitebox_kb/knowledge//344/275/223/350/202/262/350/277/220/345/212/250.md +15 -0
- package/md_cg/whitebox_kb/knowledge//344/277/241/346/201/257/345/256/211/345/205/250.md +15 -0
- package/md_cg/whitebox_kb/knowledge//344/277/241/346/201/257/346/212/200/346/234/257.md +22 -0
- package/md_cg/whitebox_kb/knowledge//344/277/241/346/201/257/350/256/272/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +90 -0
- package/md_cg/whitebox_kb/knowledge//345/201/245/345/272/267/344/271/240/346/203/257.md +15 -0
- package/md_cg/whitebox_kb/knowledge//345/201/245/345/272/267/345/270/270/350/257/206.md +50 -0
- package/md_cg/whitebox_kb/knowledge//345/205/211/345/255/246/351/200/232/350/257/206.md +15 -0
- package/md_cg/whitebox_kb/knowledge//345/205/273/347/224/237/346/226/271/346/263/225.md +15 -0
- package/md_cg/whitebox_kb/knowledge//345/206/233/344/272/213/345/217/262.md +15 -0
- package/md_cg/whitebox_kb/knowledge//345/206/234/344/270/232/345/270/270/350/257/206.md +15 -0
- package/md_cg/whitebox_kb/knowledge//345/210/206/345/255/220/347/224/237/347/211/251/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +167 -0
- package/md_cg/whitebox_kb/knowledge//345/210/206/346/236/220/345/214/226/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +167 -0
- package/md_cg/whitebox_kb/knowledge//345/210/235/344/270/255/345/214/226/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +391 -0
- package/md_cg/whitebox_kb/knowledge//345/210/235/344/270/255/345/216/206/345/217/262/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +279 -0
- package/md_cg/whitebox_kb/knowledge//345/210/235/344/270/255/345/234/260/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +160 -0
- package/md_cg/whitebox_kb/knowledge//345/210/235/344/270/255/346/225/260/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +391 -0
- package/md_cg/whitebox_kb/knowledge//345/210/235/344/270/255/347/211/251/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +545 -0
- package/md_cg/whitebox_kb/knowledge//345/210/235/344/270/255/347/224/237/347/211/251/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +426 -0
- package/md_cg/whitebox_kb/knowledge//345/210/235/344/270/255/350/213/261/350/257/255/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +167 -0
- package/md_cg/whitebox_kb/knowledge//345/210/235/344/270/255/350/257/255/346/226/207/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +167 -0
- package/md_cg/whitebox_kb/knowledge//345/210/235/344/270/255/351/201/223/345/276/267/344/270/216/346/263/225/346/262/273/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +153 -0
- package/md_cg/whitebox_kb/knowledge//345/210/266/345/272/246/345/217/262.md +64 -0
- package/md_cg/whitebox_kb/knowledge//345/211/215/346/262/277/347/247/221/346/212/200.md +36 -0
- package/md_cg/whitebox_kb/knowledge//345/212/250/347/211/251/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +160 -0
- package/md_cg/whitebox_kb/knowledge//345/214/226/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +2081 -0
- package/md_cg/whitebox_kb/knowledge//345/214/226/345/267/245/345/216/237/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +167 -0
- package/md_cg/whitebox_kb/knowledge//345/214/273/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +139 -0
- package/md_cg/whitebox_kb/knowledge//345/216/206/345/217/262/345/234/260/347/220/206.md +29 -0
- package/md_cg/whitebox_kb/knowledge//345/216/206/345/217/262/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +464 -0
- package/md_cg/whitebox_kb/knowledge//345/216/237/345/255/220/347/211/251/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +139 -0
- package/md_cg/whitebox_kb/knowledge//345/217/244/344/273/243/346/261/211/350/257/255/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +139 -0
- package/md_cg/whitebox_kb/knowledge//345/217/244/347/224/237/347/211/251.md +22 -0
- package/md_cg/whitebox_kb/knowledge//345/223/262/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +118 -0
- package/md_cg/whitebox_kb/knowledge//345/225/206/344/270/232/345/217/262.md +15 -0
- package/md_cg/whitebox_kb/knowledge//345/231/250/347/211/251/345/267/245/350/211/272.md +15 -0
- package/md_cg/whitebox_kb/knowledge//345/233/255/346/236/227/345/273/272/347/255/221.md +15 -0
- package/md_cg/whitebox_kb/knowledge//345/233/272/344/275/223/347/211/251/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +202 -0
- package/md_cg/whitebox_kb/knowledge//345/233/276/345/203/217/347/224/237/346/210/220.md +99 -0
- package/md_cg/whitebox_kb/knowledge//345/234/237/346/234/250/345/267/245/347/250/213/345/237/272/347/241/200/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +125 -0
- package/md_cg/whitebox_kb/knowledge//345/234/260/347/220/206/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +303 -0
- package/md_cg/whitebox_kb/knowledge//345/244/215/345/217/230/345/207/275/346/225/260/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +195 -0
- package/md_cg/whitebox_kb/knowledge//345/244/226/345/233/275/346/226/207/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +118 -0
- package/md_cg/whitebox_kb/knowledge//345/244/247/345/255/246/345/214/226/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +265 -0
- package/md_cg/whitebox_kb/knowledge//345/244/247/345/255/246/346/200/235/346/224/277/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +174 -0
- package/md_cg/whitebox_kb/knowledge//345/244/247/345/255/246/347/211/251/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +321 -0
- package/md_cg/whitebox_kb/knowledge//345/244/247/345/255/246/350/213/261/350/257/255/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +132 -0
- package/md_cg/whitebox_kb/knowledge//345/244/251/344/275/223/347/211/251/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +125 -0
- package/md_cg/whitebox_kb/knowledge//345/244/251/346/226/207/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +173 -0
- package/md_cg/whitebox_kb/knowledge//345/255/230/345/234/250/350/256/272.md +43 -0
- package/md_cg/whitebox_kb/knowledge//345/255/246/344/271/240/346/226/271/346/263/225.md +57 -0
- package/md_cg/whitebox_kb/knowledge//345/256/211/345/205/250/345/270/270/350/257/206.md +22 -0
- package/md_cg/whitebox_kb/knowledge//345/256/217/350/247/202/347/273/217/346/265/216/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +153 -0
- package/md_cg/whitebox_kb/knowledge//345/256/236/345/217/230/345/207/275/346/225/260/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +195 -0
- package/md_cg/whitebox_kb/knowledge//345/256/240/347/211/251.md +29 -0
- package/md_cg/whitebox_kb/knowledge//345/256/266/345/272/255/345/205/263/347/263/273.md +29 -0
- package/md_cg/whitebox_kb/knowledge//345/260/217/345/255/246/346/225/260/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +566 -0
- package/md_cg/whitebox_kb/knowledge//345/260/217/345/255/246/347/247/221/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +1274 -0
- package/md_cg/whitebox_kb/knowledge//345/260/217/345/255/246/350/213/261/350/257/255/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +153 -0
- package/md_cg/whitebox_kb/knowledge//345/260/217/345/255/246/350/257/255/346/226/207/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +174 -0
- package/md_cg/whitebox_kb/knowledge//345/260/217/345/255/246/351/201/223/345/276/267/344/270/216/346/263/225/346/262/273/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +153 -0
- package/md_cg/whitebox_kb/knowledge//345/267/245/347/250/213/345/210/266/345/233/276/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +118 -0
- package/md_cg/whitebox_kb/knowledge//345/267/245/347/250/213/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +611 -0
- package/md_cg/whitebox_kb/knowledge//345/267/245/347/250/213/347/247/221/345/255/246.md +22 -0
- package/md_cg/whitebox_kb/knowledge//345/267/245/350/211/272/351/200/232/350/257/206.md +15 -0
- package/md_cg/whitebox_kb/knowledge//345/270/202/345/234/272/350/220/245/351/224/200/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +111 -0
- package/md_cg/whitebox_kb/knowledge//345/270/270/345/276/256/345/210/206/346/226/271/347/250/213/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +237 -0
- package/md_cg/whitebox_kb/knowledge//345/273/272/347/255/221/344/272/272/346/226/207.md +15 -0
- package/md_cg/whitebox_kb/knowledge//345/273/272/347/255/221/345/216/206/345/217/262.md +43 -0
- package/md_cg/whitebox_kb/knowledge//345/273/272/347/255/221/350/211/272/346/234/257.md +15 -0
- package/md_cg/whitebox_kb/knowledge//345/273/272/347/255/221/351/200/232/350/257/206.md +15 -0
- package/md_cg/whitebox_kb/knowledge//345/275/261/350/247/206/345/270/270/350/257/206.md +29 -0
- package/md_cg/whitebox_kb/knowledge//345/276/256/345/210/206/345/207/240/344/275/225/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +146 -0
- package/md_cg/whitebox_kb/knowledge//345/276/256/347/224/237/347/211/251/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +174 -0
- package/md_cg/whitebox_kb/knowledge//345/276/256/350/247/202/347/273/217/346/265/216/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +146 -0
- package/md_cg/whitebox_kb/knowledge//345/277/203/347/220/206/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +133 -0
- package/md_cg/whitebox_kb/knowledge//346/200/235/347/273/264/345/256/232/345/276/213.md +29 -0
- package/md_cg/whitebox_kb/knowledge//346/203/205/346/204/237/346/203/205/347/273/252/344/273/277/347/234/237/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +186 -0
- package/md_cg/whitebox_kb/knowledge//346/210/217/346/233/262/350/211/272/346/234/257.md +22 -0
- package/md_cg/whitebox_kb/knowledge//346/210/220/350/257/255/345/205/270/346/225/205.md +15 -0
- package/md_cg/whitebox_kb/knowledge//346/211/213/345/267/245/345/270/270/350/257/206.md +15 -0
- package/md_cg/whitebox_kb/knowledge//346/212/275/350/261/241/344/273/243/346/225/260/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +160 -0
- package/md_cg/whitebox_kb/knowledge//346/213/223/346/211/221/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +139 -0
- package/md_cg/whitebox_kb/knowledge//346/223/215/344/275/234/347/263/273/347/273/237/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +160 -0
- package/md_cg/whitebox_kb/knowledge//346/224/266/350/227/217/351/233/206/350/227/217.md +92 -0
- package/md_cg/whitebox_kb/knowledge//346/224/277/346/262/273/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +387 -0
- package/md_cg/whitebox_kb/knowledge//346/225/210/347/216/207/346/226/271/346/263/225.md +15 -0
- package/md_cg/whitebox_kb/knowledge//346/225/260/345/200/274/345/210/206/346/236/220/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +202 -0
- package/md_cg/whitebox_kb/knowledge//346/225/260/345/255/227/347/224/265/350/267/257/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +146 -0
- package/md_cg/whitebox_kb/knowledge//346/225/260/345/255/227/347/264/240/345/205/273.md +22 -0
- package/md_cg/whitebox_kb/knowledge//346/225/260/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +2074 -0
- package/md_cg/whitebox_kb/knowledge//346/225/260/345/255/246/345/210/206/346/236/220/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +349 -0
- package/md_cg/whitebox_kb/knowledge//346/225/260/345/255/246/347/211/251/347/220/206/346/226/271/346/263/225/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +153 -0
- package/md_cg/whitebox_kb/knowledge//346/225/260/346/215/256/345/272/223/347/263/273/347/273/237/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +146 -0
- package/md_cg/whitebox_kb/knowledge//346/225/260/346/215/256/347/273/223/346/236/204/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +174 -0
- package/md_cg/whitebox_kb/knowledge//346/226/207/345/205/267/345/270/270/350/257/206.md +15 -0
- package/md_cg/whitebox_kb/knowledge//346/226/207/345/214/226.md +36 -0
- package/md_cg/whitebox_kb/knowledge//346/226/207/345/214/226/351/200/232/350/257/206.md +15 -0
- package/md_cg/whitebox_kb/knowledge//346/226/207/345/255/227/345/255/246.md +15 -0
- package/md_cg/whitebox_kb/knowledge//346/226/207/345/255/227/350/265/267/346/272/220.md +15 -0
- package/md_cg/whitebox_kb/knowledge//346/226/207/345/255/246/347/220/206/350/256/272/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +328 -0
- package/md_cg/whitebox_kb/knowledge//346/226/207/346/225/231/345/216/206/345/217/262.md +15 -0
- package/md_cg/whitebox_kb/knowledge//346/226/207/347/211/251/351/200/232/350/257/206.md +22 -0
- package/md_cg/whitebox_kb/knowledge//346/226/207/347/214/256/345/255/246.md +22 -0
- package/md_cg/whitebox_kb/knowledge//346/227/240/346/234/272/345/214/226/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +216 -0
- package/md_cg/whitebox_kb/knowledge//346/227/266/347/251/272/350/256/260/345/277/206/345/233/276/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +214 -0
- package/md_cg/whitebox_kb/knowledge//346/230/206/350/231/253/345/270/270/350/257/206.md +29 -0
- package/md_cg/whitebox_kb/knowledge//346/231/272/350/203/275/350/256/272/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +441 -0
- package/md_cg/whitebox_kb/knowledge//346/233/262/350/211/272/345/270/270/350/257/206.md +15 -0
- package/md_cg/whitebox_kb/knowledge//346/234/211/346/234/272/345/214/226/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +195 -0
- package/md_cg/whitebox_kb/knowledge//346/234/215/351/245/260/346/226/207/345/214/226.md +22 -0
- package/md_cg/whitebox_kb/knowledge//346/234/252/345/210/206/347/261/273.md +52 -0
- package/md_cg/whitebox_kb/knowledge//346/234/272/346/242/260/351/200/232/350/257/206.md +15 -0
- package/md_cg/whitebox_kb/knowledge//346/235/220/346/226/231/345/212/233/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +146 -0
- package/md_cg/whitebox_kb/knowledge//346/235/241/344/273/266/350/256/272/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +350 -0
- package/md_cg/whitebox_kb/knowledge//346/243/213/347/211/214/350/247/204/345/210/231.md +15 -0
- package/md_cg/whitebox_kb/knowledge//346/243/213/347/261/273/350/247/204/345/210/231.md +36 -0
- package/md_cg/whitebox_kb/knowledge//346/244/215/347/211/251/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +132 -0
- package/md_cg/whitebox_kb/knowledge//346/246/202/347/216/207/350/256/272/344/270/216/346/225/260/347/220/206/347/273/237/350/256/241/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +230 -0
- package/md_cg/whitebox_kb/knowledge//346/250/241/346/213/237/347/224/265/345/255/220/346/212/200/346/234/257/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +146 -0
- package/md_cg/whitebox_kb/knowledge//346/260/221/344/277/227.md +64 -0
- package/md_cg/whitebox_kb/knowledge//346/260/221/344/277/227/344/277/241/344/273/260.md +36 -0
- package/md_cg/whitebox_kb/knowledge//346/260/221/344/277/227/345/205/273/347/224/237.md +15 -0
- package/md_cg/whitebox_kb/knowledge//346/260/221/344/277/227/345/216/206/346/263/225.md +15 -0
- package/md_cg/whitebox_kb/knowledge//346/260/221/344/277/227/345/231/250/347/211/251.md +15 -0
- package/md_cg/whitebox_kb/knowledge//346/260/221/344/277/227/346/226/207/345/214/226.md +22 -0
- package/md_cg/whitebox_kb/knowledge//346/260/221/344/277/227/350/257/255/350/250/200.md +15 -0
- package/md_cg/whitebox_kb/knowledge//346/260/221/344/277/227/351/233/205/347/216/251.md +50 -0
- package/md_cg/whitebox_kb/knowledge//346/260/224/350/261/241/345/270/270/350/257/206.md +15 -0
- package/md_cg/whitebox_kb/knowledge//346/260/224/350/261/241/351/200/232/350/257/206.md +15 -0
- package/md_cg/whitebox_kb/knowledge//346/261/202/350/201/214/346/212/200/350/203/275.md +29 -0
- package/md_cg/whitebox_kb/knowledge//346/262/237/351/200/232.md +29 -0
- package/md_cg/whitebox_kb/knowledge//346/263/225/345/276/213/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +14 -0
- package/md_cg/whitebox_kb/knowledge//346/263/233/345/207/275/345/210/206/346/236/220/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +188 -0
- package/md_cg/whitebox_kb/knowledge//346/265/267/346/264/213/347/224/237/347/211/251.md +15 -0
- package/md_cg/whitebox_kb/knowledge//347/203/255/345/212/233/345/255/246/344/270/216/347/273/237/350/256/241/347/211/251/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +188 -0
- package/md_cg/whitebox_kb/knowledge//347/203/271/351/245/252/346/212/200/346/263/225.md +15 -0
- package/md_cg/whitebox_kb/knowledge//347/211/251/347/220/206/345/214/226/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +195 -0
- package/md_cg/whitebox_kb/knowledge//347/211/251/347/220/206/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +2256 -0
- package/md_cg/whitebox_kb/knowledge//347/216/260/344/273/243/346/261/211/350/257/255/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +125 -0
- package/md_cg/whitebox_kb/knowledge//347/220/206/350/256/272/345/212/233/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +209 -0
- package/md_cg/whitebox_kb/knowledge//347/224/237/346/200/201/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +132 -0
- package/md_cg/whitebox_kb/knowledge//347/224/237/346/264/273/345/215/253/347/224/237.md +15 -0
- package/md_cg/whitebox_kb/knowledge//347/224/237/346/264/273/345/270/270/350/257/206.md +1296 -0
- package/md_cg/whitebox_kb/knowledge//347/224/237/346/264/273/346/212/200/350/203/275.md +43 -0
- package/md_cg/whitebox_kb/knowledge//347/224/237/346/264/273/347/247/221/346/212/200.md +22 -0
- package/md_cg/whitebox_kb/knowledge//347/224/237/346/264/273/351/200/232/350/257/206.md +15 -0
- package/md_cg/whitebox_kb/knowledge//347/224/237/347/211/251/344/277/235/346/212/244.md +36 -0
- package/md_cg/whitebox_kb/knowledge//347/224/237/347/211/251/345/214/226/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +209 -0
- package/md_cg/whitebox_kb/knowledge//347/224/237/347/211/251/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +1759 -0
- package/md_cg/whitebox_kb/knowledge//347/224/237/347/220/206/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +132 -0
- package/md_cg/whitebox_kb/knowledge//347/224/265/345/212/250/345/212/233/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +188 -0
- package/md_cg/whitebox_kb/knowledge//347/224/265/350/267/257/345/216/237/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +146 -0
- package/md_cg/whitebox_kb/knowledge//347/231/275/347/256/261/345/215/217/350/256/256.md +22 -0
- package/md_cg/whitebox_kb/knowledge//347/233/212/346/231/272/346/270/270/346/210/217.md +15 -0
- package/md_cg/whitebox_kb/knowledge//347/233/212/346/231/272/351/200/232/350/257/206.md +15 -0
- package/md_cg/whitebox_kb/knowledge//347/244/276/344/272/244/346/212/200/345/267/247.md +15 -0
- package/md_cg/whitebox_kb/knowledge//347/244/276/344/274/232/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +117 -0
- package/md_cg/whitebox_kb/knowledge//347/244/276/344/274/232/347/247/221/345/255/246.md +43 -0
- package/md_cg/whitebox_kb/knowledge//347/245/236/350/257/235/344/274/240/350/257/264.md +15 -0
- package/md_cg/whitebox_kb/knowledge//347/247/221/345/255/246/345/217/262.md +22 -0
- package/md_cg/whitebox_kb/knowledge//347/247/221/346/212/200/351/200/232/350/257/206.md +78 -0
- package/md_cg/whitebox_kb/knowledge//347/250/213/345/272/217/350/256/276/350/256/241/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +146 -0
- package/md_cg/whitebox_kb/knowledge//347/256/227/346/263/225/350/256/276/350/256/241/344/270/216/345/210/206/346/236/220/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +153 -0
- package/md_cg/whitebox_kb/knowledge//347/256/241/347/220/206/345/255/246/345/216/237/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +167 -0
- package/md_cg/whitebox_kb/knowledge//347/272/277/346/200/247/344/273/243/346/225/260/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +202 -0
- package/md_cg/whitebox_kb/knowledge//347/273/206/350/203/236/347/224/237/347/211/251/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +181 -0
- package/md_cg/whitebox_kb/knowledge//347/273/217/346/265/216/345/217/262.md +43 -0
- package/md_cg/whitebox_kb/knowledge//347/273/217/346/265/216/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +204 -0
- package/md_cg/whitebox_kb/knowledge//347/273/223/346/236/204/345/214/226/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +153 -0
- package/md_cg/whitebox_kb/knowledge//347/273/274/345/220/210/302/267/347/273/264/345/237/272/347/273/274/350/277/260.md +184 -0
- package/md_cg/whitebox_kb/knowledge//347/274/226/347/250/213-Git.md +15 -0
- package/md_cg/whitebox_kb/knowledge//347/274/226/347/250/213-JS.md +15 -0
- package/md_cg/whitebox_kb/knowledge//347/274/226/347/250/213/346/246/202/345/277/265.md +15 -0
- package/md_cg/whitebox_kb/knowledge//347/274/226/347/250/213/350/257/255/350/250/200.md +120 -0
- package/md_cg/whitebox_kb/knowledge//347/274/226/350/257/221/345/216/237/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +146 -0
- package/md_cg/whitebox_kb/knowledge//347/275/221/347/273/234/345/256/211/345/205/250.md +34 -0
- package/md_cg/whitebox_kb/knowledge//350/200/203/345/217/244/345/270/270/350/257/206.md +64 -0
- package/md_cg/whitebox_kb/knowledge//350/207/252/346/210/221/346/204/217/350/257/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +270 -0
- package/md_cg/whitebox_kb/knowledge//350/211/272/346/234/257/345/220/215/345/256/266.md +15 -0
- package/md_cg/whitebox_kb/knowledge//350/211/272/346/234/257/346/265/201/346/264/276.md +15 -0
- package/md_cg/whitebox_kb/knowledge//350/214/266/346/226/207/345/214/226.md +15 -0
- package/md_cg/whitebox_kb/knowledge//350/256/241/347/256/227/346/234/272/347/247/221/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +4265 -0
- package/md_cg/whitebox_kb/knowledge//350/256/241/347/256/227/346/234/272/347/273/204/346/210/220/345/216/237/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +160 -0
- package/md_cg/whitebox_kb/knowledge//350/256/241/347/256/227/346/234/272/347/275/221/347/273/234/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +160 -0
- package/md_cg/whitebox_kb/knowledge//350/257/255/350/250/200/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +373 -0
- package/md_cg/whitebox_kb/knowledge//350/264/247/345/270/201/345/217/262.md +15 -0
- package/md_cg/whitebox_kb/knowledge//350/264/247/345/270/201/345/270/270/350/257/206.md +15 -0
- package/md_cg/whitebox_kb/knowledge//350/275/257/344/273/266/345/267/245/347/250/213/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +160 -0
- package/md_cg/whitebox_kb/knowledge//350/277/220/345/212/250/345/201/245/345/272/267.md +15 -0
- package/md_cg/whitebox_kb/knowledge//350/277/220/345/212/250/345/270/270/350/257/206.md +15 -0
- package/md_cg/whitebox_kb/knowledge//350/277/220/345/212/250/347/247/221/345/255/246.md +22 -0
- package/md_cg/whitebox_kb/knowledge//350/277/221/344/270/226/346/234/215/351/245/260.md +15 -0
- package/md_cg/whitebox_kb/knowledge//351/200/273/350/276/221/345/255/246.md +14 -0
- package/md_cg/whitebox_kb/knowledge//351/201/227/344/274/240/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +167 -0
- package/md_cg/whitebox_kb/knowledge//351/207/217/345/255/220/345/212/233/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +209 -0
- package/md_cg/whitebox_kb/knowledge//351/207/221/350/236/215/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +125 -0
- package/md_cg/whitebox_kb/knowledge//351/235/236/351/201/227/350/211/272/346/234/257.md +43 -0
- package/md_cg/whitebox_kb/knowledge//351/237/263/344/271/220.md +15 -0
- package/md_cg/whitebox_kb/knowledge//351/237/263/344/271/220/345/220/215/345/256/266.md +22 -0
- package/md_cg/whitebox_kb/knowledge//351/237/263/344/271/220/345/270/270/350/257/206.md +29 -0
- package/md_cg/whitebox_kb/knowledge//351/243/237/345/223/201/347/247/221/345/255/246.md +57 -0
- package/md_cg/whitebox_kb/knowledge//351/245/256/351/243/237/345/270/270/350/257/206.md +29 -0
- package/md_cg/whitebox_kb/knowledge//351/245/256/351/243/237/346/226/207/345/214/226.md +29 -0
- package/md_cg/whitebox_kb/knowledge//351/253/230/344/270/255/345/214/226/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +566 -0
- package/md_cg/whitebox_kb/knowledge//351/253/230/344/270/255/345/216/206/345/217/262/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +146 -0
- package/md_cg/whitebox_kb/knowledge//351/253/230/344/270/255/345/234/260/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +139 -0
- package/md_cg/whitebox_kb/knowledge//351/253/230/344/270/255/346/200/235/346/203/263/346/224/277/346/262/273/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +174 -0
- package/md_cg/whitebox_kb/knowledge//351/253/230/344/270/255/346/225/260/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +566 -0
- package/md_cg/whitebox_kb/knowledge//351/253/230/344/270/255/347/211/251/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +692 -0
- package/md_cg/whitebox_kb/knowledge//351/253/230/344/270/255/347/224/237/347/211/251/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +440 -0
- package/md_cg/whitebox_kb/knowledge//351/253/230/344/270/255/350/213/261/350/257/255/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +167 -0
- package/md_cg/whitebox_kb/knowledge//351/253/230/344/270/255/350/257/255/346/226/207/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +153 -0
- package/md_cg/whitebox_kb/knowledge//351/253/230/345/210/206/345/255/220/345/214/226/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +146 -0
- package/md_cg/whitebox_kb/knowledge//351/253/230/347/255/211/344/273/243/346/225/260/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +244 -0
- package/md_cg/whitebox_kb/knowledge//351/253/230/347/255/211/346/225/260/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +384 -0
- package/md_cg/whitebox_kb/seed_knowledge/__init__.py +2 -0
- package/md_cg/whitebox_kb/seed_knowledge/guardrail-charter.md +164 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//344/270/255/345/233/275/345/217/244/344/273/243/346/226/207/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +113 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//344/270/255/345/233/275/347/216/260/344/273/243/346/226/207/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +89 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//344/272/272/345/267/245/346/231/272/350/203/275/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +121 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//344/272/272/347/261/273/350/247/202/345/257/237/350/200/205/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +161 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//344/274/232/350/256/241/345/255/246/345/216/237/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +89 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//344/277/241/346/201/257/350/256/272/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +90 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/210/206/345/255/220/347/224/237/347/211/251/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +113 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/210/206/346/236/220/345/214/226/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +113 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/210/235/344/270/255/345/214/226/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +241 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/210/235/344/270/255/345/216/206/345/217/262/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +117 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/210/235/344/270/255/345/234/260/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +109 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/210/235/344/270/255/346/225/260/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +241 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/210/235/344/270/255/347/211/251/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +317 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/210/235/344/270/255/347/224/237/347/211/251/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +261 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/210/235/344/270/255/350/213/261/350/257/255/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +113 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/210/235/344/270/255/350/257/255/346/226/207/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +113 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/210/235/344/270/255/351/201/223/345/276/267/344/270/216/346/263/225/346/262/273/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +105 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/212/250/347/211/251/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +101 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/214/226/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +1194 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/214/226/345/267/245/345/216/237/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +113 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/214/273/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +111 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/216/206/345/217/262/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +278 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/216/237/345/255/220/347/211/251/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +97 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/217/244/344/273/243/346/261/211/350/257/255/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +97 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/223/262/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +111 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/233/272/344/275/223/347/211/251/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +133 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/234/237/346/234/250/345/267/245/347/250/213/345/237/272/347/241/200/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +89 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/234/260/347/220/206/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +154 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/244/215/345/217/230/345/207/275/346/225/260/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +129 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/244/226/345/233/275/346/226/207/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +85 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/244/247/345/255/246/345/214/226/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +169 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/244/247/345/255/246/346/200/235/346/224/277/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +117 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/244/247/345/255/246/347/211/251/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +201 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/244/247/345/255/246/350/213/261/350/257/255/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +93 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/244/251/344/275/223/347/211/251/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +89 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/244/251/346/226/207/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +131 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/256/217/350/247/202/347/273/217/346/265/216/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +105 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/256/236/345/217/230/345/207/275/346/225/260/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +129 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/260/217/345/255/246/346/225/260/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +333 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/260/217/345/255/246/347/247/221/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +1124 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/260/217/345/255/246/350/213/261/350/257/255/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +105 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/260/217/345/255/246/350/257/255/346/226/207/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +117 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/260/217/345/255/246/351/201/223/345/276/267/344/270/216/346/263/225/346/262/273/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +105 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/267/245/347/250/213/345/210/266/345/233/276/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +85 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/267/245/347/250/213/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +362 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/270/202/345/234/272/350/220/245/351/224/200/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +81 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/270/270/345/276/256/345/210/206/346/226/271/347/250/213/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +153 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/276/256/345/210/206/345/207/240/344/275/225/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +101 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/276/256/347/224/237/347/211/251/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +97 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/276/256/350/247/202/347/273/217/346/265/216/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +101 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//345/277/203/347/220/206/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +119 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/203/205/346/204/237/346/203/205/347/273/252/344/273/277/347/234/237/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +186 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/212/275/350/261/241/344/273/243/346/225/260/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +109 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/213/223/346/211/221/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +97 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/223/215/344/275/234/347/263/273/347/273/237/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +109 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/224/277/346/262/273/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +234 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/225/260/345/200/274/345/210/206/346/236/220/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +133 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/225/260/345/255/227/347/224/265/350/267/257/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +101 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/225/260/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +1166 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/225/260/345/255/246/345/210/206/346/236/220/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +217 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/225/260/345/255/246/347/211/251/347/220/206/346/226/271/346/263/225/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +105 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/225/260/346/215/256/345/272/223/347/263/273/347/273/237/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +101 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/225/260/346/215/256/347/273/223/346/236/204/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +117 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/226/207/345/255/246/347/220/206/350/256/272/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +89 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/227/240/346/234/272/345/214/226/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +141 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/227/266/347/251/272/350/256/260/345/277/206/345/233/276/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +214 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/231/272/350/203/275/350/256/272/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +350 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/234/211/346/234/272/345/214/226/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +129 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/235/220/346/226/231/345/212/233/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +101 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/235/241/344/273/266/350/256/272/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +350 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/244/215/347/211/251/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +89 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/246/202/347/216/207/350/256/272/344/270/216/346/225/260/347/220/206/347/273/237/350/256/241/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +149 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/250/241/346/213/237/347/224/265/345/255/220/346/212/200/346/234/257/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +101 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//346/263/233/345/207/275/345/210/206/346/236/220/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +125 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//347/203/255/345/212/233/345/255/246/344/270/216/347/273/237/350/256/241/347/211/251/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +125 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//347/211/251/347/220/206/345/214/226/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +129 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//347/211/251/347/220/206/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +1302 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//347/216/260/344/273/243/346/261/211/350/257/255/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +89 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//347/220/206/350/256/272/345/212/233/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +137 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//347/224/237/346/200/201/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +93 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//347/224/237/347/211/251/345/214/226/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +137 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//347/224/237/347/211/251/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +1018 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//347/224/237/347/220/206/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +93 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//347/224/265/345/212/250/345/212/233/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +125 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//347/224/265/350/267/257/345/216/237/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +101 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//347/244/276/344/274/232/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +111 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//347/250/213/345/272/217/350/256/276/350/256/241/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +101 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//347/256/227/346/263/225/350/256/276/350/256/241/344/270/216/345/210/206/346/236/220/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +105 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//347/256/241/347/220/206/345/255/246/345/216/237/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +89 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//347/272/277/346/200/247/344/273/243/346/225/260/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +133 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//347/273/206/350/203/236/347/224/237/347/211/251/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +121 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//347/273/217/346/265/216/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +169 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//347/273/223/346/236/204/345/214/226/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +105 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//347/273/274/345/220/210/302/267/347/273/264/345/237/272/347/273/274/350/277/260.md +184 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//347/274/226/350/257/221/345/216/237/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +101 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//350/207/252/346/210/221/346/204/217/350/257/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +270 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//350/256/241/347/256/227/346/234/272/347/247/221/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +698 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//350/256/241/347/256/227/346/234/272/347/273/204/346/210/220/345/216/237/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +109 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//350/256/241/347/256/227/346/234/272/347/275/221/347/273/234/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +109 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//350/257/255/350/250/200/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +226 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//350/275/257/344/273/266/345/267/245/347/250/213/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +97 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//351/201/227/344/274/240/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +113 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//351/207/217/345/255/220/345/212/233/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +137 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//351/207/221/350/236/215/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +89 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//351/253/230/344/270/255/345/214/226/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +341 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//351/253/230/344/270/255/345/216/206/345/217/262/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +101 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//351/253/230/344/270/255/345/234/260/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +97 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//351/253/230/344/270/255/346/200/235/346/203/263/346/224/277/346/262/273/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +117 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//351/253/230/344/270/255/346/225/260/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +341 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//351/253/230/344/270/255/347/211/251/347/220/206/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +365 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//351/253/230/344/270/255/347/224/237/347/211/251/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +269 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//351/253/230/344/270/255/350/213/261/350/257/255/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +113 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//351/253/230/344/270/255/350/257/255/346/226/207/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +105 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//351/253/230/345/210/206/345/255/220/345/214/226/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +101 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//351/253/230/347/255/211/344/273/243/346/225/260/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +157 -0
- package/md_cg/whitebox_kb/seed_knowledge/wisdom_cards//351/253/230/347/255/211/346/225/260/345/255/246/302/267/347/237/245/350/257/206/347/273/274/350/277/260.md +237 -0
- package/md_cg/whitebox_kb/seed_knowledge//346/231/272/350/203/275/350/256/2723.3.md +4620 -0
- package/md_cg/whitebox_kb/wisdom/__init__.py +6 -0
- package/md_cg/whitebox_kb/wisdom/answer_spec_anchor.py +87 -0
- package/md_cg/whitebox_kb/wisdom/audit_log/chain_heat.json +35 -0
- package/md_cg/whitebox_kb/wisdom/browser_units.py +2631 -0
- package/md_cg/whitebox_kb/wisdom/card_validator.py +223 -0
- package/md_cg/whitebox_kb/wisdom/causal_discover.py +315 -0
- package/md_cg/whitebox_kb/wisdom/chat.html +185 -0
- package/md_cg/whitebox_kb/wisdom/chat_engine.py +1506 -0
- package/md_cg/whitebox_kb/wisdom/code_compose.py +730 -0
- package/md_cg/whitebox_kb/wisdom/code_qa.py +119 -0
- package/md_cg/whitebox_kb/wisdom/code_route_bridge.py +90 -0
- package/md_cg/whitebox_kb/wisdom/code_solidified.json +6196 -0
- package/md_cg/whitebox_kb/wisdom/code_test_runner.py +217 -0
- package/md_cg/whitebox_kb/wisdom/codegraph_white.py +312 -0
- package/md_cg/whitebox_kb/wisdom/compiler_code_units.py +3033 -0
- package/md_cg/whitebox_kb/wisdom/compiler_compose.py +160 -0
- package/md_cg/whitebox_kb/wisdom/compose_engine.py +1633 -0
- package/md_cg/whitebox_kb/wisdom/condition_algebra.py +112 -0
- package/md_cg/whitebox_kb/wisdom/condition_frame.py +315 -0
- package/md_cg/whitebox_kb/wisdom/condition_kb.py +108 -0
- package/md_cg/whitebox_kb/wisdom/condition_vm.py +264 -0
- package/md_cg/whitebox_kb/wisdom/conflict_map.json +4446 -0
- package/md_cg/whitebox_kb/wisdom/core/compiler.py +301 -0
- package/md_cg/whitebox_kb/wisdom/core/condition_vm.py +298 -0
- package/md_cg/whitebox_kb/wisdom/core/lexer.py +512 -0
- package/md_cg/whitebox_kb/wisdom/core/name_checker.py +1023 -0
- package/md_cg/whitebox_kb/wisdom/core/parser.py +1065 -0
- package/md_cg/whitebox_kb/wisdom/cspmn.py +258 -0
- package/md_cg/whitebox_kb/wisdom/csre.py +256 -0
- package/md_cg/whitebox_kb/wisdom/csre_lexicon_index.npz +0 -0
- package/md_cg/whitebox_kb/wisdom/danmaku_audit.py +252 -0
- package/md_cg/whitebox_kb/wisdom/danmaku_bridge.py +141 -0
- package/md_cg/whitebox_kb/wisdom/distilled_condition_units.json +6418 -0
- package/md_cg/whitebox_kb/wisdom/docs/WB-EVAL-20260902b.json +1951 -0
- package/md_cg/whitebox_kb/wisdom/docs/WB-EVAL-20260902c.json +1297 -0
- package/md_cg/whitebox_kb/wisdom/docs/codegraph_ref_rating.md +52 -0
- package/md_cg/whitebox_kb/wisdom/docs/daoti_absorb_analysis.md +54 -0
- package/md_cg/whitebox_kb/wisdom/docs/dsh_memory_v030_stable.md +34 -0
- package/md_cg/whitebox_kb/wisdom/docs/github_absorb_analysis.md +71 -0
- package/md_cg/whitebox_kb/wisdom/docs/gliding_horse_absorb_analysis.md +47 -0
- package/md_cg/whitebox_kb/wisdom/docs/whitebox_capability_graph.md +61 -0
- package/md_cg/whitebox_kb/wisdom/docs/whitebox_capability_graph_demo.json +60 -0
- package/md_cg/whitebox_kb/wisdom/docs/whitebox_code_rating_202609.md +43 -0
- package/md_cg/whitebox_kb/wisdom/docs//344/273/243/347/240/201/346/235/241/344/273/266/350/267/257/347/224/261/345/233/276_CCG/350/256/276/350/256/241.md +150 -0
- package/md_cg/whitebox_kb/wisdom/docs//344/273/243/347/240/201/350/257/255/344/271/211/346/235/241/344/273/266/345/215/217/350/256/256.md +650 -0
- package/md_cg/whitebox_kb/wisdom/docs//345/261/200/351/203/250/346/234/200/344/274/230/344/270/216/346/203/205/347/273/252/345/201/217/345/245/275_/347/220/206/350/256/272/345/267/245/347/250/213.md +97 -0
- package/md_cg/whitebox_kb/wisdom/docs//346/226/271/345/220/221/346/200/247/346/212/211/346/213/251_/350/207/252/344/270/276vs/350/207/252/350/277/255/344/273/243.md +81 -0
- package/md_cg/whitebox_kb/wisdom/docs//347/201/265/346/236/242AGI/346/236/266/346/236/204/346/216/242/347/264/242_/346/226/207/346/241/243/350/247/204/345/210/222.md +51 -0
- package/md_cg/whitebox_kb/wisdom/docs//347/201/265/346/236/242/346/217/222/344/273/266/345/210/206/347/261/273/345/210/206/346/236/220.md +67 -0
- package/md_cg/whitebox_kb/wisdom/docs//347/231/275/347/256/261/346/234/254/345/234/260/346/240/241/351/252/214/345/231/250_ZeroLLM_Verifier.md +276 -0
- package/md_cg/whitebox_kb/wisdom/docs//347/231/275/347/256/261/350/207/252/344/270/276/347/254/254/345/205/255/351/230/266/346/256/265_/346/224/266/345/256/230/346/200/273/347/273/223.md +1207 -0
- package/md_cg/whitebox_kb/wisdom/ds_compose.py +177 -0
- package/md_cg/whitebox_kb/wisdom/graph_db_units.py +3089 -0
- package/md_cg/whitebox_kb/wisdom/graph_qa.py +123 -0
- package/md_cg/whitebox_kb/wisdom/human_observer_knowledge.json +43 -0
- package/md_cg/whitebox_kb/wisdom/knowledge_points.py +237 -0
- package/md_cg/whitebox_kb/wisdom/merge_subgraph.py +178 -0
- package/md_cg/whitebox_kb/wisdom/migrate_wisdom.py +476 -0
- package/md_cg/whitebox_kb/wisdom/mini_python.py +958 -0
- package/md_cg/whitebox_kb/wisdom/multilang_ir.py +124 -0
- package/md_cg/whitebox_kb/wisdom/navigate.py +248 -0
- package/md_cg/whitebox_kb/wisdom/net_units.py +2895 -0
- package/md_cg/whitebox_kb/wisdom/neural_index.json +3032 -0
- package/md_cg/whitebox_kb/wisdom/neural_index.npz +0 -0
- package/md_cg/whitebox_kb/wisdom/neural_retrieve.py +224 -0
- package/md_cg/whitebox_kb/wisdom/os_units.py +2735 -0
- package/md_cg/whitebox_kb/wisdom/pattern_separation.py +223 -0
- package/md_cg/whitebox_kb/wisdom/prereq_map.json +365 -0
- package/md_cg/whitebox_kb/wisdom/python_code_units.py +2766 -0
- package/md_cg/whitebox_kb/wisdom/role_compose.py +268 -0
- package/md_cg/whitebox_kb/wisdom/role_solidified.json +8 -0
- package/md_cg/whitebox_kb/wisdom/route_memory.py +244 -0
- package/md_cg/whitebox_kb/wisdom/scene_reconstruction.py +148 -0
- package/md_cg/whitebox_kb/wisdom/se_compose.py +137 -0
- package/md_cg/whitebox_kb/wisdom/semantic_translate.py +4050 -0
- package/md_cg/whitebox_kb/wisdom/snr_dashboard.py +219 -0
- package/md_cg/whitebox_kb/wisdom/snr_report.json +41 -0
- package/md_cg/whitebox_kb/wisdom/spatial_closure.py +96 -0
- package/md_cg/whitebox_kb/wisdom/spatial_qa.py +182 -0
- package/md_cg/whitebox_kb/wisdom/status_terms.json +21 -0
- package/md_cg/whitebox_kb/wisdom/task_discipline.json +43 -0
- package/md_cg/whitebox_kb/wisdom/test_code_compose_domains.py +7541 -0
- package/md_cg/whitebox_kb/wisdom/test_compiler_self_bootstrap.py +354 -0
- package/md_cg/whitebox_kb/wisdom/test_ecosystem_assembly.py +158 -0
- package/md_cg/whitebox_kb/wisdom/test_ecosystem_demos.py +193 -0
- package/md_cg/whitebox_kb/wisdom/test_graph_db.py +292 -0
- package/md_cg/whitebox_kb/wisdom/test_navigate_self_bootstrap.py +69 -0
- package/md_cg/whitebox_kb/wisdom/test_python_self_bootstrap.py +160 -0
- package/md_cg/whitebox_kb/wisdom/trigger_words_index.json +4367 -0
- package/md_cg/whitebox_kb/wisdom/verifier.py +1012 -0
- package/md_cg/whitebox_kb/wisdom/verify_answer.py +116 -0
- package/md_cg/whitebox_kb/wisdom/wisdom-book-cloud.db +0 -0
- package/md_cg/whitebox_kb/wisdom/wisdom-book-cloud.db-shm +0 -0
- package/md_cg/whitebox_kb/wisdom/wisdom-book-cloud.db-wal +0 -0
- package/md_cg/whitebox_kb/wisdom/wisdom_book.py +2582 -0
- package/md_cg/whitebox_kb/wisdom/wisdom_cloud.py +479 -0
- package/md_cg/whitebox_kb/wisdom/wisdom_ui.html +863 -0
- package/package.json +5 -3
- package/skills/README.md +121 -0
- package/skills/plugin.json +55 -0
- package/skills/skills/designer-perspective/SKILL.md +158 -0
- package/skills/skills/designer-perspective/references/01-observation-position.md +66 -0
- package/skills/skills/designer-perspective/references/02-structure-recognition.md +62 -0
- package/skills/skills/designer-perspective/references/03-direction-judgment.md +55 -0
- package/skills/skills/designer-perspective/references/04-qualification-verdict.md +72 -0
- package/skills/skills/designer-perspective/references/05-condition-attribution.md +74 -0
- package/skills/skills/designer-perspective/scripts/designer.py +530 -0
- package/skills/skills/designer-perspective/tests/cases.jsonl +17 -0
- package/skills/skills/designer-perspective/tests/selftest.py +60 -0
- package/skills/skills/lingshu-browser/SKILL.md +60 -0
- package/skills/skills/lingshu-browser/units/browser-02898b15/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-03b04f98/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-0754386d/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-093c03ab/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-09e60b35/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-0ab4f2db/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-0c7f88d6/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-0f598430/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-0fd64fa5/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-17906c62/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-18f823e2/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-1bafe81c/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-1f9ab1f0/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-1fdb5852/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-21b0359c/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-22e8de36/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-24163519/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-2471a991/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-25afee4d/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-283a91bd/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-2895ff52/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-2cc1da58/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-3189fe6f/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-31f2b08f/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-37b8339e/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-396ec3a6/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-3df2f904/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-43154cec/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-434b74b8/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-440d4398/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-44d7f183/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-4d6c0788/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-50fecd89/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-555c0626/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-57312d24/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-59a0ada4/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-5a455aeb/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-5ae7623a/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-5dac60b6/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-5e5f1396/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-5ebb01dd/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-5f5453f9/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-5f90f58c/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-609362ee/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-60aefeeb/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-6636d49c/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-6cfcb6db/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-6e1c1158/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-7008e942/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-716cd26c/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-720ce1a1/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-77a97b43/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-7bb4871d/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-7be57bbe/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-7da433f3/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-7e96fe1d/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-7f9cefec/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-80224e71/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-81345ecd/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-822cfa44/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-853690c0/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-85553126/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-87b0ce80/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-900c4484/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-910405c4/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-95fd3c86/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-97a14ca3/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-9de10895/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-9e4914a7/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-a280ec64/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-a2d9b0b0/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-a372edeb/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-a4c793a4/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-a681d0c2/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-a7a2b0c1/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-a990e68e/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-aaac4eec/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-ae6586bb/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-afa4091f/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-b4c8cf65/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-b501767c/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-bcd4288d/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-bfad66a5/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-c45cbfe9/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-c4dd6078/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-c879eb0b/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-c92ac01b/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-cb179242/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-cc7d3d6d/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-cf3c47f0/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-cf9f812e/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-d462581c/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-d5fa0b7f/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-d72e225b/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-df1a919e/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-e84565c1/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-e947a564/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-ea9b2b8e/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-f5ffc6d9/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-f75a4418/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-f8f2966e/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-fa65fa2d/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-faac8812/SKILL.md +45 -0
- package/skills/skills/lingshu-browser/units/browser-ff94a671/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/SKILL.md +56 -0
- package/skills/skills/lingshu-compiler/units/analyze-type-infer/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/check-name-real/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compile-assign/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compile-expr-tree/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compile-full-pipeline/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compile-func-def/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compile-if-then/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compile-logic-expr/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compile-recursive/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compile-scope/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compile-type-check/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compile-while/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-0010c4bf/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-0355bffb/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-0361708a/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-054a0414/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-05a1691a/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-05eeed1e/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-0622a1f6/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-08b54217/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-0a62b70c/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-0ab24d00/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-0e093688/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-0e82b966/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-0ee9b9b9/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-0f3787e6/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-1028685f/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-11897630/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-16661b9b/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-1f722303/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-25be1262/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-2a76ba07/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-2dbea54a/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-2df52f16/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-2ec2c9d2/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-2f8c8f39/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-38378ac7/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-39457d2e/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-39fb5926/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-47f4fbfa/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-4a8cd1f1/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-4b230b6b/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-4cbbda95/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-4d5a68ff/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-56dc9bdd/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-57e76ebe/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-61ff016b/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-63eae588/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-64c4224b/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-66377955/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-674ab4f6/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-6af76fd6/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-6d979db2/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-6de326c0/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-6f1c0eea/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-724d6c9b/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-7690177f/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-7b229a7d/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-7f471b3a/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-815cad08/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-83c61634/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-8c798c81/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-8dd747ac/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-90324d0a/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-94b8d72d/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-94f12231/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-95937c16/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-98a5625b/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-98b4c42f/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-98e3894a/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-9bdfe4b8/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-9d9b4e83/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-9f7be5ad/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-a6daf076/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-a7995a0c/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-a8399248/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-aabbd099/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-afe169d8/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-b0678bda/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-b09bd196/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-b1396e23/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-b9b31ce0/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-c10264a7/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-cb1e8e4b/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-ccafd438/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-cda9c262/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-ce648068/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-cf5776a4/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-d974e5d3/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-e3979fd3/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-eb1cf2b5/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-ecb30d5b/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-f8c8b24b/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-f99fedbe/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-fa8ff5f7/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/compiler-fe1b058d/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/lex-chinese-program/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/lex-dao-de-jing/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/lex-nine-chapters/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/vm-arithmetic/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/vm-array-ops/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/vm-closure-call/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/vm-closure-create/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/vm-compare/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/vm-cond-jump/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/vm-cond-space/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/vm-exception/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/vm-func-call/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/vm-loop-run/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/vm-profiling/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/vm-refcount/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/vm-run-loop/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/vm-short-circuit/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/vm-stack-guard/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/vm-stack-ops/SKILL.md +45 -0
- package/skills/skills/lingshu-compiler/units/vm-trust-accum/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/SKILL.md +63 -0
- package/skills/skills/lingshu-graph/units/graph-04cd431b/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-06e2b1f2/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-0de12477/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-0e564e68/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-10d58a7b/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-12cd830a/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-185f2cd2/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-19a6a301/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-1b266557/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-1b707621/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-1d73b597/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-2041fa98/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-2461bc41/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-2465dff8/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-2508389f/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-276d554d/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-299f4a32/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-2d455cd8/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-2fddf701/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-33385442/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-34a1dba7/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-3721be1c/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-3755dbc9/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-37a45d4b/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-3a4a984c/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-3aa4c941/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-3b69a528/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-3bc2eb69/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-3d255ed4/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-3d34961d/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-3e18a380/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-3f920bf3/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-40b7bf61/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-42187d5d/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-4361c60e/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-44e56113/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-4b363727/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-52e6e216/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-53fbfef5/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-54ac2988/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-580dadcd/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-5ca34baa/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-5cb7fbdf/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-5f894c05/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-656e7bd4/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-6dc48231/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-7186924a/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-72ce5342/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-7376a24e/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-7412a7cb/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-7becedf0/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-7c38fbf3/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-7dc36de7/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-7fe49de7/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-80d82194/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-85bf101e/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-8650548b/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-86583b09/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-8727827c/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-873fb505/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-89b11de0/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-8d7b569b/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-8e920d5d/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-8eb38e3d/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-94582f69/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-947355f7/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-9507aff7/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-95b86a8b/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-96b85e1f/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-97b22f09/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-9833cfda/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-9aa8a3f4/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-9f6665c0/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-a125d282/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-a49ef4f0/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-a5cd04ae/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-add9a63b/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-b00e3dc7/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-b33a7662/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-b76d15ee/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-b77fa05a/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-b912fc3b/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-baf61b7c/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-c1d5687b/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-c407bbed/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-c4676460/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-c4a59d80/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-c5815621/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-ccad55f1/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-d0677ce1/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-d1289b39/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-d15f39b1/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-d40691ca/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-d43b387a/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-d4dd02f4/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-d724ea18/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-d74d36fd/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-d9d3934c/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-ddf563ff/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-de00894f/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-df1ebb63/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-e2905c20/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-e4f8cefd/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-ea3150e7/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-eb4ac7dd/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-ee9f6dfa/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-f055b2ea/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-f1891287/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-f1bb5aa1/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-f56fa220/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-f729034f/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-f748a63f/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-f8c4a59e/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-fca3d129/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-fd02d934/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-fd51ece9/SKILL.md +45 -0
- package/skills/skills/lingshu-graph/units/graph-fd6a81ab/SKILL.md +45 -0
- package/skills/skills/lingshu-net/SKILL.md +48 -0
- package/skills/skills/lingshu-net/units/net-02090d29/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-05937712/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-059d072f/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-080f6012/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-08a2fc88/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-0935edf1/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-0e7f91e4/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-0f2850e0/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-107ab486/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-111e79b0/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-126876c1/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-13eeb575/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-14102d54/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-14e9ad0d/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-184175d3/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-1da1c695/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-240a14ec/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-2784f98b/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-292ef917/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-3434e92f/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-35019e6b/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-3bbc6afb/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-3bdf9d9d/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-3dcb84d3/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-431cccf9/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-435a9f7f/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-4508101f/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-4585c9e7/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-479612a0/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-47a19838/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-4e36e1e3/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-509b8001/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-51930c5e/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-56dbd63f/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-57387462/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-5c115606/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-5d27f392/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-5f69c938/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-5fa6c13b/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-61580202/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-61926703/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-61f64fbc/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-6200f3b2/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-63c3eda3/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-66e6119b/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-68643014/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-686632aa/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-6967ff14/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-6996f499/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-6c3b02c2/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-6eb37f63/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-6f96c190/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-6fb27488/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-703559d0/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-706d2692/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-70a20e04/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-7376158c/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-74d647cb/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-74e8a576/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-7801c2c0/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-78cae54d/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-78ec0324/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-7998097c/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-7d81ae06/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-7eabbbc8/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-7ed4f2c5/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-80b56cd6/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-83447546/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-8361fe5b/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-85e3996c/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-8897d5cc/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-88ad93a6/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-8e6f359e/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-8edc4cdb/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-8f6169e9/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-91e00638/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-96c61a3c/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-99076a29/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-998f3641/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-a1d7228a/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-a74da501/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-ac57deb7/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-b22d2f2b/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-b2b29d8d/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-b2ddce5d/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-b4151e9a/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-b873d6f7/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-bd3d2d55/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-c2a3f019/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-c685b788/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-c6c1fd79/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-c74a1b5d/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-cdac702d/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-d12dff5c/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-d3747882/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-d5fefa59/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-d67ec725/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-d80c1c4c/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-d9cb43b0/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-da559517/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-db4f414e/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-dc09d67c/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-e2d185de/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-e2fc73f8/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-e33ef0c2/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-e346863c/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-e6b3389a/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-e9758fc0/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-e9a9747a/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-ea14aab8/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-eba92ac1/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-f29d91d2/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-f314dd0d/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-f332b629/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-f7df127c/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-fb9d8f5d/SKILL.md +45 -0
- package/skills/skills/lingshu-net/units/net-fdec2c86/SKILL.md +45 -0
- package/skills/skills/lingshu-os/SKILL.md +64 -0
- package/skills/skills/lingshu-os/units/os-0205cf9b/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-027dc9be/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-03c0d7d6/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-040b5505/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-06fa98ed/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-0854291c/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-0c7f14cb/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-0d855af2/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-0e87e997/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-0f8ed882/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-111ce1de/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-1234eb00/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-128f3820/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-15796db5/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-1898928a/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-192b8ca9/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-1d3bcf28/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-1f224514/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-26a4f86a/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-29c96147/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-2ea9a5ff/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-300ef22c/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-310dda5b/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-313ef4ed/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-329a2147/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-34ad4b62/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-350bc623/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-35ee1a30/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-3cd28220/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-3d84e0c9/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-3db42aac/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-3e0aff42/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-3e9405d2/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-41d14544/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-462f3ed4/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-485833fa/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-4a1cf781/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-4bf77933/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-4c14cec2/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-4f05d577/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-4f50ad0b/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-509a4596/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-512b1b6c/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-5192621b/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-55672763/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-5582bce6/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-5a096a1f/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-5ca15108/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-601663e1/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-607f1963/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-6158581b/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-62f9278b/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-63797b86/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-6a1fe224/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-6b0a68bf/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-6e5cee67/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-6fb1ff58/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-71389592/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-72e879a3/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-7598748a/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-80cc3283/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-819f3093/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-83670c2b/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-878c18b3/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-89ed7af1/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-8cb7279d/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-92276145/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-955c4d66/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-97aacf40/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-9b6ed02c/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-9c86a7a2/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-a13ce4aa/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-a568affe/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-abd48f17/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-b0416edc/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-b6509cac/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-b718657b/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-b776ade1/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-ba24fa08/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-bd1fc177/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-bda92711/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-c0fa71bd/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-c3d5cd44/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-c6b6a763/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-c7661eb1/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-c76b5a43/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-c7d35a30/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-c980a25d/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-c9f8df6e/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-cc49ef2f/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-cd9e686a/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-cfa66a1b/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-d237e500/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-d39ef086/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-d4f9e813/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-d97915c0/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-da0aadde/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-da482caf/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-dd4ff45e/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-de0556c5/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-e0ad3364/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-e7612c68/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-ea444e45/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-ea6e7e0b/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-ebc34d83/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-ecbebbe3/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-ecfceae7/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-ed8de3a3/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-f69c0b08/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-f6ae6205/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-f9bf8dd4/SKILL.md +45 -0
- package/skills/skills/lingshu-os/units/os-fcdd828d/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/SKILL.md +71 -0
- package/skills/skills/lingshu-pylang/units/pylang-01b23f80/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-074fd698/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-0b490bb2/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-0ca7f08b/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-10ce3e91/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-15f76c64/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-1703046f/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-1aa3e939/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-1bed54cf/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-1dd35612/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-24273d7b/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-2853f59f/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-2a6bc16e/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-2ae78997/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-2bc88f4c/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-31f5b8db/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-36d178bc/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-38600583/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-38e8f9ff/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-395085ca/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-399b317e/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-39c72c78/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-3a659480/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-482be62b/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-486a1e94/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-49026041/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-4963b28a/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-4af9140e/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-4ca283f2/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-4ddf31f3/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-50614726/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-5102c069/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-521b1bf8/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-5880b7a1/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-61a9102d/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-621123dd/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-642cd625/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-65ca79b7/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-672df225/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-67d3368e/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-6be54340/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-70b2006f/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-70b215f1/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-730c3fe4/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-733c1286/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-79845f4d/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-7c4cc6f8/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-7c7193ad/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-7d86ab5d/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-7df8ca78/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-8182681d/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-81ad40ee/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-8283d7c0/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-82b73f3d/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-8404bbde/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-8584040d/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-85d8617b/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-886935a3/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-88ab2f96/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-8b6f071e/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-8d6ec58a/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-8fe98252/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-9018c39a/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-91277748/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-943b9dcb/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-961e9e43/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-962954d9/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-9dbd8e2b/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-a02eac31/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-a4d3d7b1/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-a7c3d0e2/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-a88db70d/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-ab7dddc2/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-ac2a4b38/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-afaf67c0/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-b00660e6/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-b4d7616d/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-b67b1878/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-b8040e1c/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-b880c6c6/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-b8d45f76/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-ba956e52/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-bb18b1f9/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-bb46f3f2/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-be55a094/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-beb47b63/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-c017681a/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-c1317cd9/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-c36fabf7/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-c42465ec/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-c5c76a12/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-c910ad31/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-ca9332cf/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-cce90fa0/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-cd4234a5/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-cf0fca1c/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-d2001e1f/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-d616eb28/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-d8962e66/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-db6214cd/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-dcde3040/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-dfad3dba/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-dfd5aac2/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-e1aa3818/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-e476915b/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-e88e31fd/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-ecd569d2/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-ecf27e0c/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-f124f0e6/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-f127a8d1/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-f2d6ec27/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-f2f40090/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-f4aa9e65/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-f4f820d4/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-f5b34833/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-f6ebb66e/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-f78bdcd7/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-f92bc49b/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-fd7595f0/SKILL.md +45 -0
- package/skills/skills/lingshu-pylang/units/pylang-fda87aa1/SKILL.md +45 -0
- package/src/bridge.ts +7 -7
- package/src/hooks.ts +78 -27
- package/src/index.ts +277 -68
- package/src/lib/datapath.ts +112 -0
- package/src/lib/mdcg_client.ts +362 -0
- package/src/lib/roleplay_web.ts +932 -0
- package/src/lib/token_store.ts +183 -0
- package/src/{llm_adapter.ts → lib/whitebox_llm.ts} +13 -7
- package/src/tools.ts +41 -55
- /package/src/{mutual.ts → lib/mutual.ts} +0 -0
|
@@ -0,0 +1,932 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
/**
|
|
5
|
+
* dsh-memory 扩展:角色扮演网页(同源挂载到 webServer /roleplay 前缀)。
|
|
6
|
+
*
|
|
7
|
+
* 职责边界(三层拆分后):
|
|
8
|
+
* · 大脑(mdcg):角色定义 / 对话转录显式落认知图(md_cg = 唯一真源)——
|
|
9
|
+
* 转录、历史、翻译、落图全部不依赖「身体」,始终可用。
|
|
10
|
+
* · 身体(可选 capability 后端):生成能力 roleplay_chat / role_create /
|
|
11
|
+
* role_import 属「身」,主仓默认不挂载;未挂载时这些接口 **fail-closed**
|
|
12
|
+
* 返回明确原因(不编造回复)。启用见 config.capability(cordis.yml.example)。
|
|
13
|
+
*/
|
|
14
|
+
import { join, dirname } from 'node:path';
|
|
15
|
+
import { readFileSync, mkdirSync, appendFileSync, existsSync, writeFileSync, renameSync } from 'node:fs';
|
|
16
|
+
const HTML = `<!doctype html>
|
|
17
|
+
<html lang="zh-CN">
|
|
18
|
+
<head>
|
|
19
|
+
<meta charset="utf-8">
|
|
20
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|
21
|
+
<title>灵枢 · 角色扮演</title>
|
|
22
|
+
<style>
|
|
23
|
+
:root { --bg:#12141a; --card:#1c2029; --line:#2a3040; --txt:#e8eaf0; --sub:#9aa3b5; --accent:#7c8cff; --accent2:#5ad1a8; }
|
|
24
|
+
* { box-sizing:border-box; margin:0; padding:0; }
|
|
25
|
+
body { background:var(--bg); color:var(--txt); font-family:"PingFang SC","Noto Sans SC",system-ui,sans-serif; height:100vh; height:100dvh; display:flex; flex-direction:column; overflow:hidden; }
|
|
26
|
+
header { flex:none; padding:14px 18px; border-bottom:1px solid var(--line); display:flex; align-items:center; gap:12px; }
|
|
27
|
+
header h1 { font-size:17px; font-weight:600; }
|
|
28
|
+
header .badge { font-size:11px; color:var(--accent2); border:1px solid var(--accent2); padding:2px 8px; border-radius:999px; }
|
|
29
|
+
#roles { margin-left:auto; display:flex; gap:8px; align-items:center; }
|
|
30
|
+
#roles select { background:var(--card); color:var(--txt); border:1px solid var(--line); border-radius:8px; padding:6px 10px; font-size:13px; }
|
|
31
|
+
#roles button { background:var(--card); color:var(--accent); border:1px solid var(--line); border-radius:8px; padding:6px 10px; font-size:13px; cursor:pointer; }
|
|
32
|
+
#roles button:hover { border-color:var(--accent); }
|
|
33
|
+
main { flex:1; min-height:0; overflow-y:auto; padding:16px 18px; display:flex; flex-direction:column; gap:12px; }
|
|
34
|
+
.msg { max-width:78%; padding:10px 14px; border-radius:14px; line-height:1.65; font-size:14px; white-space:pre-wrap; word-break:break-word; }
|
|
35
|
+
.user { align-self:flex-end; background:var(--accent); color:#0b0d14; border-bottom-right-radius:4px; }
|
|
36
|
+
.bot { align-self:flex-start; background:var(--card); border:1px solid var(--line); border-bottom-left-radius:4px; }
|
|
37
|
+
.bot .route { display:block; font-size:10px; color:var(--sub); margin-top:6px; }
|
|
38
|
+
.typing { color:var(--sub); font-size:13px; padding:6px 14px 4px; display:none; flex:none; }
|
|
39
|
+
footer { flex:none; margin:4px 12px calc(env(safe-area-inset-bottom, 0px) + 24px); background:var(--card); border:1px solid var(--line); border-radius:16px; padding:10px; display:flex; gap:8px; align-items:flex-end; box-shadow:0 8px 28px rgba(0,0,0,.4); }
|
|
40
|
+
footer.typing-center { position:fixed; top:45%; left:12px; right:12px; transform:translateY(-50%); z-index:100; margin:0; }
|
|
41
|
+
footer textarea { flex:1; background:var(--bg); border:1px solid var(--line); color:var(--txt); border-radius:12px; padding:12px 14px; font-size:15px; line-height:1.55; outline:none; resize:none; min-height:46px; max-height:140px; font-family:inherit; }
|
|
42
|
+
footer textarea:focus { border-color:var(--accent); }
|
|
43
|
+
footer button { background:var(--accent); border:none; color:#0b0d14; border-radius:12px; padding:13px 20px; font-size:15px; font-weight:600; cursor:pointer; flex:none; }
|
|
44
|
+
footer button:disabled { opacity:.5; cursor:wait; }
|
|
45
|
+
#newrole { position:fixed; inset:0; background:rgba(0,0,0,.6); display:none; align-items:center; justify-content:center; z-index:10; }
|
|
46
|
+
#newrole .box { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:20px; width:min(420px,90vw); display:flex; flex-direction:column; gap:10px; }
|
|
47
|
+
#newrole h3 { font-size:15px; }
|
|
48
|
+
#newrole input, #newrole textarea { background:var(--bg); border:1px solid var(--line); color:var(--txt); border-radius:8px; padding:8px 10px; font-size:13px; font-family:inherit; }
|
|
49
|
+
#newrole textarea { height:80px; resize:vertical; }
|
|
50
|
+
#newrole .row { display:flex; gap:8px; justify-content:flex-end; }
|
|
51
|
+
#newrole .row button { padding:6px 14px; border-radius:8px; font-size:13px; cursor:pointer; border:1px solid var(--line); background:var(--card); color:var(--txt); }
|
|
52
|
+
#newrole .row .ok { background:var(--accent); color:#0b0d14; border-color:var(--accent); font-weight:600; }
|
|
53
|
+
#transpanel { position:fixed; inset:0; background:rgba(0,0,0,.6); display:none; align-items:center; justify-content:center; z-index:20; }
|
|
54
|
+
#transpanel .box { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:20px; width:min(480px,92vw); max-height:80vh; overflow-y:auto; display:flex; flex-direction:column; gap:10px; }
|
|
55
|
+
#transpanel h3 { font-size:15px; }
|
|
56
|
+
#transpanel .mode-row { display:flex; flex-direction:column; gap:6px; font-size:13px; color:var(--txt); }
|
|
57
|
+
#transpanel .mode-row label { display:flex; gap:6px; align-items:flex-start; line-height:1.5; }
|
|
58
|
+
#transpanel .tp-row { display:flex; gap:6px; align-items:center; }
|
|
59
|
+
#transpanel .tp-row input { flex:1; background:var(--bg); border:1px solid var(--line); color:var(--txt); border-radius:8px; padding:7px 9px; font-size:13px; font-family:inherit; min-width:0; }
|
|
60
|
+
#transpanel .tp-row .tp-note { flex:1.2; }
|
|
61
|
+
#transpanel .tp-row .tp-del { flex:none; background:none; border:none; color:var(--sub); font-size:16px; cursor:pointer; padding:4px 6px; }
|
|
62
|
+
#transpanel .row button { padding:7px 14px; border-radius:8px; font-size:13px; cursor:pointer; border:1px solid var(--line); background:var(--card); color:var(--txt); }
|
|
63
|
+
#transpanel .row .ok { background:var(--accent); color:#0b0d14; border-color:var(--accent); font-weight:600; }
|
|
64
|
+
/* —— 年龄确认(NSFW 门控)—— */
|
|
65
|
+
#agegate { position:fixed; inset:0; background:rgba(0,0,0,.72); display:none; align-items:center; justify-content:center; z-index:100; }
|
|
66
|
+
#agegate .box { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:22px; width:min(460px,90vw); display:flex; flex-direction:column; gap:12px; }
|
|
67
|
+
#agegate h3 { font-size:15px; color:var(--accent2); }
|
|
68
|
+
#agegate .warn { font-size:13px; line-height:1.7; color:var(--txt); }
|
|
69
|
+
#agegate .warn b { color:#ff9a9a; }
|
|
70
|
+
#agegate .row { display:flex; gap:8px; justify-content:flex-end; }
|
|
71
|
+
#agegate .row button { padding:8px 16px; border-radius:8px; font-size:13px; cursor:pointer; border:1px solid var(--line); background:var(--card); color:var(--txt); }
|
|
72
|
+
#agegate .row .ok { background:var(--accent); color:#0b0d14; border-color:var(--accent); font-weight:600; }
|
|
73
|
+
/* —— 角色详情 / 三导入 —— */
|
|
74
|
+
#roledetail { position:fixed; inset:0; background:rgba(0,0,0,.6); display:none; align-items:center; justify-content:center; z-index:30; }
|
|
75
|
+
#roledetail .box { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:20px; width:min(520px,94vw); max-height:82vh; overflow-y:auto; display:flex; flex-direction:column; gap:10px; }
|
|
76
|
+
#roledetail h3 { font-size:15px; }
|
|
77
|
+
#roledetail .meta input, #roledetail .meta textarea { width:100%; background:var(--bg); border:1px solid var(--line); color:var(--txt); border-radius:8px; padding:8px 10px; font-size:13px; font-family:inherit; }
|
|
78
|
+
#roledetail .meta textarea { height:56px; resize:vertical; }
|
|
79
|
+
#roledetail .tabs { display:flex; gap:6px; }
|
|
80
|
+
#roledetail .tabs button { flex:1; padding:7px 0; border-radius:8px; font-size:13px; cursor:pointer; border:1px solid var(--line); background:var(--card); color:var(--sub); }
|
|
81
|
+
#roledetail .tabs button.on { background:var(--accent); color:#0b0d14; border-color:var(--accent); font-weight:600; }
|
|
82
|
+
#rd_items { display:flex; flex-direction:column; gap:8px; max-height:36vh; overflow-y:auto; }
|
|
83
|
+
#rd_items .rd-row { display:flex; flex-direction:column; gap:4px; background:var(--bg); border:1px solid var(--line); border-radius:8px; padding:8px 10px; }
|
|
84
|
+
#rd_items .rd-row textarea { background:transparent; border:none; color:var(--txt); font-size:13px; font-family:inherit; resize:vertical; min-height:40px; outline:none; }
|
|
85
|
+
#rd_items .rd-row .rd-sub { display:flex; gap:6px; }
|
|
86
|
+
#rd_items .rd-row .rd-sub input { flex:1; background:var(--bg); border:1px solid var(--line); color:var(--txt); border-radius:6px; padding:4px 8px; font-size:12px; font-family:inherit; }
|
|
87
|
+
#rd_items .rd-row .rd-sub .rd-del { flex:none; background:none; border:none; color:var(--sub); font-size:14px; cursor:pointer; }
|
|
88
|
+
#roledetail .row { display:flex; gap:8px; justify-content:flex-end; margin-top:6px; }
|
|
89
|
+
#roledetail .row button { padding:7px 14px; border-radius:8px; font-size:13px; cursor:pointer; border:1px solid var(--line); background:var(--card); color:var(--txt); }
|
|
90
|
+
#roledetail .row .ok { background:var(--accent); color:#0b0d14; border-color:var(--accent); font-weight:600; }
|
|
91
|
+
#rd_nsfw { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--sub); }
|
|
92
|
+
#rd_nsfw input { accent-color:var(--accent); }
|
|
93
|
+
.hint { color:var(--sub); font-size:12px; text-align:center; padding:6px; }
|
|
94
|
+
</style>
|
|
95
|
+
</head>
|
|
96
|
+
<body>
|
|
97
|
+
<header>
|
|
98
|
+
<h1>灵枢 · 角色扮演</h1><span class="badge">白箱 · 扮演论 v3.3</span>
|
|
99
|
+
<div id="roles">
|
|
100
|
+
<select id="roleSel"></select>
|
|
101
|
+
<button onclick="showNewRole()">+ 新角色</button>
|
|
102
|
+
<button onclick="openRoleDetail()">⚙ 详情</button>
|
|
103
|
+
<button onclick="openTrans()">🌐 翻译</button>
|
|
104
|
+
</div>
|
|
105
|
+
</header>
|
|
106
|
+
<main id="chat"><div class="hint">选择角色,开始对话。角色回应由灵枢角色扮演引擎生成(白箱优先,LLM 续答)。</div></main>
|
|
107
|
+
<div class="typing" id="typing">正在思考…</div>
|
|
108
|
+
<footer>
|
|
109
|
+
<textarea id="input" rows="1" placeholder="说点什么…(Enter 发送,Shift+Enter 换行)"></textarea>
|
|
110
|
+
<button id="send" onclick="send()">发送</button>
|
|
111
|
+
</footer>
|
|
112
|
+
<div id="newrole">
|
|
113
|
+
<div class="box">
|
|
114
|
+
<h3>创建新角色</h3>
|
|
115
|
+
<input id="nr_id" placeholder="角色 ID(英文/拼音,如 naxiaoda)">
|
|
116
|
+
<input id="nr_name" placeholder="角色名(如 纳西妲)">
|
|
117
|
+
<input id="nr_scenario" placeholder="人设场景(一句话描述性格与背景)">
|
|
118
|
+
<input id="nr_first" placeholder="开场白(可选)">
|
|
119
|
+
<div class="row"><button onclick="closeNewRole()">取消</button><button class="ok" onclick="createRole()">创建</button></div>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
<div id="transpanel">
|
|
123
|
+
<div class="box">
|
|
124
|
+
<h3>🌐 自定义翻译(<span id="tp_role">-</span>)</h3>
|
|
125
|
+
<div class="mode-row">
|
|
126
|
+
<label><input type="radio" name="tpmode" value="input_only"> 仅输入翻译(现实词 → 扮演词给角色)</label>
|
|
127
|
+
<label><input type="radio" name="tpmode" value="bidirectional"> 双向翻译(输入现实→扮演;角色回复扮演→现实)</label>
|
|
128
|
+
</div>
|
|
129
|
+
<div id="tp_rows"></div>
|
|
130
|
+
<div class="row" style="margin-top:8px">
|
|
131
|
+
<button onclick="addTransRow()">+ 添加词对</button>
|
|
132
|
+
<button class="ok" onclick="saveTrans()">保存</button>
|
|
133
|
+
<button onclick="closeTrans()">关闭</button>
|
|
134
|
+
</div>
|
|
135
|
+
<div class="hint">现实词会按表替换成扮演词交给角色(引擎自动);双向模式再把角色回复中的扮演词翻译回现实词。长词优先匹配。</div>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
<div id="agegate">
|
|
139
|
+
<div class="box">
|
|
140
|
+
<h3>⛔ 成人内容确认</h3>
|
|
141
|
+
<div class="warn">本页面提供角色扮演内容,部分角色/对话可能包含<b>成人向(NSFW)</b>内容。<br><br>
|
|
142
|
+
依据国家法律法规与灵枢协议(对人类的保护):<br>
|
|
143
|
+
① 仅限<b>已满 18 周岁</b>的用户使用成人向内容;<br>
|
|
144
|
+
② 仅限<b>个人对话场景</b>(本页面为本地一对一,不公开);<br>
|
|
145
|
+
③ 灵枢<b>拒绝一切涉及未成年人的性内容</b>——此类请求会被直接拒绝并记录。<br><br>
|
|
146
|
+
点击「我已满 18 周岁」表示你确认符合上述条件。</div>
|
|
147
|
+
<div class="row"><button onclick="closeAgeGate()">退出</button><button class="ok" onclick="confirmAge()">我已满 18 周岁</button></div>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
<div id="roledetail">
|
|
151
|
+
<div class="box">
|
|
152
|
+
<h3>角色详情 · <span id="rd_role">-</span></h3>
|
|
153
|
+
<div class="meta">
|
|
154
|
+
<input id="rd_name" placeholder="角色名">
|
|
155
|
+
<textarea id="rd_scenario" placeholder="人设场景(一句话描述性格与背景)"></textarea>
|
|
156
|
+
<textarea id="rd_first" placeholder="开场白(可选)"></textarea>
|
|
157
|
+
</div>
|
|
158
|
+
<div class="tabs">
|
|
159
|
+
<button id="tab-memory" class="on" onclick="rdTab('memory')">记忆</button>
|
|
160
|
+
<button id="tab-anchor" onclick="rdTab('anchor')">锚点</button>
|
|
161
|
+
<button id="tab-values" onclick="rdTab('values')">价值观</button>
|
|
162
|
+
</div>
|
|
163
|
+
<div id="rd_items"></div>
|
|
164
|
+
<div class="row" style="margin-top:4px">
|
|
165
|
+
<button onclick="rdAddItem()">+ 添加条目</button>
|
|
166
|
+
<label id="rd_nsfw"><input type="checkbox" id="rd_nsfw_chk"> 成人向(NSFW)角色</label>
|
|
167
|
+
</div>
|
|
168
|
+
<div class="row">
|
|
169
|
+
<button onclick="closeRoleDetail()">关闭</button>
|
|
170
|
+
<button class="ok" onclick="saveRoleDetail()">保存</button>
|
|
171
|
+
</div>
|
|
172
|
+
<div class="hint">记忆=背景设定;锚点=不可遗忘的自我核心;价值观=扮演的立场准则(带条件)。保存后立即生效(引擎每次重读角色 meta)。</div>
|
|
173
|
+
</div>
|
|
174
|
+
</div>
|
|
175
|
+
<script>
|
|
176
|
+
const $ = (id) => document.getElementById(id);
|
|
177
|
+
// P1 修复(GPT 审查·XSS):innerHTML 拼接角色/翻译内容必须转义——
|
|
178
|
+
// 否则保存 </textarea><script>… 之类内容会在角色详情页执行脚本
|
|
179
|
+
function esc(s) {
|
|
180
|
+
return String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({
|
|
181
|
+
'&': '&', '<': '<', '>': '>', '"': '"', "'": ''',
|
|
182
|
+
})[c]);
|
|
183
|
+
}
|
|
184
|
+
// P1 完善(会话隔离):浏览器客户端实例 ID(localStorage 持久化)——
|
|
185
|
+
// 服务端按 x-client-id 隔离 session 与转录;多浏览器/多设备互不串线
|
|
186
|
+
let CLIENT_ID = '';
|
|
187
|
+
try {
|
|
188
|
+
CLIENT_ID = localStorage.getItem('lingshu_client_id');
|
|
189
|
+
if (!CLIENT_ID) {
|
|
190
|
+
CLIENT_ID = 'c' + Math.random().toString(36).slice(2) + Date.now().toString(36);
|
|
191
|
+
localStorage.setItem('lingshu_client_id', CLIENT_ID);
|
|
192
|
+
}
|
|
193
|
+
} catch (e) { /* localStorage 不可用(隐私模式)→ 空,服务端落 shared */ }
|
|
194
|
+
function apiHeaders(extra) {
|
|
195
|
+
const h = { 'Content-Type': 'application/json' };
|
|
196
|
+
if (CLIENT_ID) h['x-client-id'] = CLIENT_ID;
|
|
197
|
+
return Object.assign(h, extra || {});
|
|
198
|
+
}
|
|
199
|
+
// —— 内容分级:年龄门控 + NSFW 检测(法律与协议保护)——
|
|
200
|
+
// 国家法律:涉未成年人性内容一律拒绝;成人内容仅限满 18 岁 + 个人对话场景。
|
|
201
|
+
const AGE_KEY = 'lingshu_roleplay_age_confirmed';
|
|
202
|
+
const NSFW_WORDS = ['做爱','性交','性行为','口交','肛交','高潮','自慰','射精','色情','裸体','脱光','爱抚','挑逗','性器官','插入','内射','强暴'];
|
|
203
|
+
const MINOR_WORDS = ['未成年','儿童','小孩','小女孩','小男孩','幼女','萝莉','幼童','初中生','小学生','14岁','13岁','12岁','学生妹','女童','男童'];
|
|
204
|
+
function hasAgeConfirm() { try { return localStorage.getItem(AGE_KEY) === '1'; } catch (e) { return false; } }
|
|
205
|
+
function showAgeGate() { $('agegate').style.display = 'flex'; }
|
|
206
|
+
function closeAgeGate() { $('agegate').style.display = 'none'; }
|
|
207
|
+
function confirmAge() {
|
|
208
|
+
try { localStorage.setItem(AGE_KEY, '1'); } catch (e) { /* 忽略 */ }
|
|
209
|
+
closeAgeGate();
|
|
210
|
+
}
|
|
211
|
+
// 首次进入:要求年龄确认(NSFW 门控前置)
|
|
212
|
+
if (!hasAgeConfirm()) showAgeGate();
|
|
213
|
+
// 服务端也会硬拦截;前端先做温和提示(未成年+性 = 直接拒绝)
|
|
214
|
+
function nsfwCheck(text) {
|
|
215
|
+
const nsfw = NSFW_WORDS.some(w => text.includes(w));
|
|
216
|
+
const minor = MINOR_WORDS.some(w => text.includes(w));
|
|
217
|
+
if (minor && nsfw) {
|
|
218
|
+
return { refuse: true, msg: '⛔ 已拒绝:涉及未成年人的性内容违反国家法律与灵枢协议(未成年人保护)。灵枢不提供任何涉及未成年人的性扮演内容。' };
|
|
219
|
+
}
|
|
220
|
+
if (nsfw && !hasAgeConfirm()) {
|
|
221
|
+
showAgeGate();
|
|
222
|
+
return { refuse: true, msg: '⛔ 成人向内容需确认年龄:请点击「我已满 18 周岁」后再继续(个人对话场景)。' };
|
|
223
|
+
}
|
|
224
|
+
return { refuse: false };
|
|
225
|
+
}
|
|
226
|
+
let roles = [];
|
|
227
|
+
async function refreshRoles() {
|
|
228
|
+
const r = await fetch('/roleplay/api/roles').then(x => x.json());
|
|
229
|
+
roles = r.roles || [];
|
|
230
|
+
const sel = $('roleSel');
|
|
231
|
+
sel.innerHTML = '';
|
|
232
|
+
roles.forEach(x => { const o = document.createElement('option'); o.value = x.id; o.textContent = x.name || x.id; sel.appendChild(o); });
|
|
233
|
+
if (roles.length && !sel.value) sel.value = roles[0].id;
|
|
234
|
+
if (roles.length) await loadHistory(sel.value);
|
|
235
|
+
}
|
|
236
|
+
function addMsg(text, who, route, memories) {
|
|
237
|
+
const d = document.createElement('div');
|
|
238
|
+
d.className = 'msg ' + who;
|
|
239
|
+
d.textContent = text;
|
|
240
|
+
const meta = [];
|
|
241
|
+
if (route) meta.push('route: ' + route);
|
|
242
|
+
if (typeof memories === 'number') meta.push('记忆召回: ' + memories);
|
|
243
|
+
if (meta.length) { const r = document.createElement('span'); r.className = 'route'; r.textContent = meta.join(' · '); d.appendChild(r); }
|
|
244
|
+
$('chat').appendChild(d);
|
|
245
|
+
$('chat').scrollTop = $('chat').scrollHeight;
|
|
246
|
+
}
|
|
247
|
+
// 加载角色历史对话(无限上下文:本地完整转录 JSONL,按客户端实例隔离)
|
|
248
|
+
async function loadHistory(roleId) {
|
|
249
|
+
const chatEl = $('chat');
|
|
250
|
+
chatEl.innerHTML = '';
|
|
251
|
+
try {
|
|
252
|
+
const r = await fetch('/roleplay/api/history?role_id=' + encodeURIComponent(roleId), { headers: apiHeaders() }).then(x => x.json());
|
|
253
|
+
const h = r.history || [];
|
|
254
|
+
if (!h.length) {
|
|
255
|
+
const hint = document.createElement('div');
|
|
256
|
+
hint.className = 'hint';
|
|
257
|
+
hint.textContent = '与「' + ($('roleSel').selectedOptions[0] ? $('roleSel').selectedOptions[0].textContent : roleId) + '」的新对话从这里开始。';
|
|
258
|
+
chatEl.appendChild(hint);
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
h.forEach(e => addMsg(e.text, e.role === 'user' ? 'user' : 'bot', e.route, e.memories));
|
|
262
|
+
} catch (e) {
|
|
263
|
+
const hint = document.createElement('div');
|
|
264
|
+
hint.className = 'hint';
|
|
265
|
+
hint.textContent = '历史加载失败:' + e;
|
|
266
|
+
chatEl.appendChild(hint);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
async function send() {
|
|
270
|
+
const input = $('input'); const text = input.value.trim();
|
|
271
|
+
if (!text) return;
|
|
272
|
+
// 内容分级检查(前端提示;服务端有硬拦截)
|
|
273
|
+
const gate = nsfwCheck(text);
|
|
274
|
+
if (gate.refuse) { addMsg(gate.msg, 'bot'); return; }
|
|
275
|
+
input.value = ''; addMsg(text, 'user');
|
|
276
|
+
const role = $('roleSel').value;
|
|
277
|
+
const btn = $('send'); btn.disabled = true; $('typing').style.display = 'block';
|
|
278
|
+
try {
|
|
279
|
+
const r = await fetch('/roleplay/api/chat', { method:'POST', headers: apiHeaders(), body: JSON.stringify({ role_id: role, message: text }) }).then(x => x.json());
|
|
280
|
+
addMsg(r.reply || '(无回应:' + (r.error || '未知错误') + ')', 'bot', r.route, r.memories);
|
|
281
|
+
} catch (e) { addMsg('网络错误:' + e, 'bot'); }
|
|
282
|
+
btn.disabled = false; $('typing').style.display = 'none';
|
|
283
|
+
// 保持输入状态:重新聚焦并居中,键盘不收起(连续对话)
|
|
284
|
+
try { input.focus(); } catch (e) { /* 忽略 */ }
|
|
285
|
+
}
|
|
286
|
+
function showNewRole() { $('newrole').style.display = 'flex'; }
|
|
287
|
+
function closeNewRole() { $('newrole').style.display = 'none'; }
|
|
288
|
+
// —— 角色详情 / 三导入(记忆·锚点·价值观)——
|
|
289
|
+
let rdKind = 'memory';
|
|
290
|
+
let rdItems = [];
|
|
291
|
+
function openRoleDetail() {
|
|
292
|
+
const role = $('roleSel').value;
|
|
293
|
+
if (!role) { alert('请先选择角色'); return; }
|
|
294
|
+
$('rd_role').textContent = role;
|
|
295
|
+
const meta = (roles.find(x => x.id === role)) || {};
|
|
296
|
+
$('rd_name').value = meta.name || '';
|
|
297
|
+
$('rd_scenario').value = meta.scenario || '';
|
|
298
|
+
$('rd_first').value = meta.first_mes || '';
|
|
299
|
+
rdTab('memory');
|
|
300
|
+
$('roledetail').style.display = 'flex';
|
|
301
|
+
}
|
|
302
|
+
function closeRoleDetail() { $('roledetail').style.display = 'none'; }
|
|
303
|
+
function rdTab(kind) {
|
|
304
|
+
rdKind = kind;
|
|
305
|
+
['memory','anchor','values'].forEach(k => $('tab-' + k).classList.toggle('on', k === kind));
|
|
306
|
+
loadRoleDetailItems();
|
|
307
|
+
}
|
|
308
|
+
async function loadRoleDetailItems() {
|
|
309
|
+
const role = $('rd_role').textContent;
|
|
310
|
+
const r = await fetch('/roleplay/api/roles/' + encodeURIComponent(role) + '/items?kind=' + rdKind).then(x => x.json());
|
|
311
|
+
rdItems = r.items || [];
|
|
312
|
+
const box = $('rd_items');
|
|
313
|
+
box.innerHTML = '';
|
|
314
|
+
rdItems.forEach((it, i) => rdRenderRow(box, it, i));
|
|
315
|
+
if (!rdItems.length) rdAddItem();
|
|
316
|
+
}
|
|
317
|
+
function rdRenderRow(box, it, i) {
|
|
318
|
+
const row = document.createElement('div');
|
|
319
|
+
row.className = 'rd-row';
|
|
320
|
+
// P1 修复(GPT 审查·XSS):it.content/it.importance/it.tags 来自用户/文件,须转义
|
|
321
|
+
row.innerHTML =
|
|
322
|
+
'<textarea placeholder="内容(该' + (rdKind === 'memory' ? '记忆' : rdKind === 'anchor' ? '锚点' : '价值观') + '的文本)">' + esc(it.content || '') + '</textarea>' +
|
|
323
|
+
'<div class="rd-sub">' +
|
|
324
|
+
'<input class="rd-imp" type="number" step="0.1" min="0" max="1" placeholder="重要性" value="' + esc(it.importance != null ? it.importance : '0.6') + '">' +
|
|
325
|
+
'<input class="rd-tags" placeholder="标签(逗号分隔)" value="' + esc((it.tags || []).join(',')) + '">' +
|
|
326
|
+
'<button class="rd-del" onclick="this.parentNode.parentNode.remove()">✕</button>' +
|
|
327
|
+
'</div>';
|
|
328
|
+
box.appendChild(row);
|
|
329
|
+
}
|
|
330
|
+
function rdAddItem() { rdRenderRow($('rd_items'), {}, rdItems.length); }
|
|
331
|
+
async function saveRoleDetail() {
|
|
332
|
+
const role = $('rd_role').textContent;
|
|
333
|
+
const name = $('rd_name').value.trim();
|
|
334
|
+
const scenario = $('rd_scenario').value.trim();
|
|
335
|
+
const first_mes = $('rd_first').value.trim();
|
|
336
|
+
const nsfw = $('rd_nsfw_chk').checked;
|
|
337
|
+
// 基础 meta(name/scenario/first_mes + nsfw 标记)
|
|
338
|
+
await fetch('/roleplay/api/roles/' + encodeURIComponent(role) + '/meta', {
|
|
339
|
+
method: 'POST', headers: { 'Content-Type': 'application/json' },
|
|
340
|
+
body: JSON.stringify({ name, scenario, first_mes, nsfw }),
|
|
341
|
+
});
|
|
342
|
+
// 当前页签的条目
|
|
343
|
+
const items = [];
|
|
344
|
+
document.querySelectorAll('#rd_items .rd-row').forEach(row => {
|
|
345
|
+
const content = row.querySelector('textarea').value.trim();
|
|
346
|
+
const imp = parseFloat(row.querySelector('.rd-imp').value) || 0.6;
|
|
347
|
+
const tags = row.querySelector('.rd-tags').value.split(/[,,]/).map(s => s.trim()).filter(Boolean);
|
|
348
|
+
if (content) items.push({ content, importance: imp, tags });
|
|
349
|
+
});
|
|
350
|
+
const r = await fetch('/roleplay/api/roles/' + encodeURIComponent(role) + '/import', {
|
|
351
|
+
method: 'POST', headers: { 'Content-Type': 'application/json' },
|
|
352
|
+
body: JSON.stringify({ kind: rdKind, items }),
|
|
353
|
+
}).then(x => x.json());
|
|
354
|
+
addMsg('角色「' + role + '」已保存:' + name + ' · ' + rdKind + ' ' + items.length + ' 条' + (nsfw ? ' · NSFW' : ''), 'bot');
|
|
355
|
+
closeRoleDetail();
|
|
356
|
+
await refreshRoles();
|
|
357
|
+
}
|
|
358
|
+
// —— 自定义翻译面板 ——
|
|
359
|
+
let transMode = 'input_only';
|
|
360
|
+
async function openTrans() {
|
|
361
|
+
const role = $('roleSel').value || 'protocol-guide';
|
|
362
|
+
$('tp_role').textContent = role;
|
|
363
|
+
try {
|
|
364
|
+
const r = await fetch('/roleplay/api/translate?role_id=' + encodeURIComponent(role)).then(x => x.json());
|
|
365
|
+
transMode = r.mode || 'input_only';
|
|
366
|
+
$('tp_rows').innerHTML = '';
|
|
367
|
+
(r.pairs || []).forEach(p => addTransRow(p.real, p.virtual, p.note));
|
|
368
|
+
if (!(r.pairs || []).length) addTransRow();
|
|
369
|
+
} catch (e) { alert('翻译配置加载失败:' + e); return; }
|
|
370
|
+
const radios = document.querySelectorAll('input[name="tpmode"]');
|
|
371
|
+
radios.forEach(x => { x.checked = (x.value === transMode); });
|
|
372
|
+
$('transpanel').style.display = 'flex';
|
|
373
|
+
}
|
|
374
|
+
function closeTrans() { $('transpanel').style.display = 'none'; }
|
|
375
|
+
function addTransRow(real, virtual, note) {
|
|
376
|
+
const row = document.createElement('div');
|
|
377
|
+
row.className = 'tp-row';
|
|
378
|
+
// P1 修复(GPT 审查·XSS):real/virtual/note 来自文件/导入,须转义
|
|
379
|
+
row.innerHTML =
|
|
380
|
+
'<input class="tp-real" placeholder="现实词(如:手机)" value="' + esc(real || '') + '">' +
|
|
381
|
+
'<span>→</span>' +
|
|
382
|
+
'<input class="tp-virtual" placeholder="扮演词(如:神之眼终端)" value="' + esc(virtual || '') + '">' +
|
|
383
|
+
'<input class="tp-note" placeholder="备注(可选)" value="' + esc(note || '') + '">' +
|
|
384
|
+
'<button class="tp-del" onclick="this.parentNode.remove()">✕</button>';
|
|
385
|
+
$('tp_rows').appendChild(row);
|
|
386
|
+
}
|
|
387
|
+
async function saveTrans() {
|
|
388
|
+
const role = $('roleSel').value || 'protocol-guide';
|
|
389
|
+
const pairs = [];
|
|
390
|
+
document.querySelectorAll('#tp_rows .tp-row').forEach(row => {
|
|
391
|
+
const real = row.querySelector('.tp-real').value.trim();
|
|
392
|
+
const virtual = row.querySelector('.tp-virtual').value.trim();
|
|
393
|
+
const note = row.querySelector('.tp-note').value.trim();
|
|
394
|
+
if (real && virtual) pairs.push({ real, virtual, note });
|
|
395
|
+
});
|
|
396
|
+
const mode = (document.querySelector('input[name="tpmode"]:checked') || {}).value || 'input_only';
|
|
397
|
+
const r = await fetch('/roleplay/api/translate', {
|
|
398
|
+
method: 'POST', headers: { 'Content-Type': 'application/json' },
|
|
399
|
+
body: JSON.stringify({ role_id: role, pairs, mode }),
|
|
400
|
+
}).then(x => x.json());
|
|
401
|
+
if (r.ok) {
|
|
402
|
+
transMode = r.mode;
|
|
403
|
+
closeTrans();
|
|
404
|
+
addMsg('翻译配置已保存:' + r.pairs.length + ' 组词对 · ' + (r.mode === 'bidirectional' ? '双向翻译' : '仅输入翻译'), 'bot');
|
|
405
|
+
} else alert(r.error || '保存失败');
|
|
406
|
+
}
|
|
407
|
+
async function createRole() {
|
|
408
|
+
const body = { role_id: $('nr_id').value.trim(), name: $('nr_name').value.trim(), scenario: $('nr_scenario').value.trim(), first_mes: $('nr_first').value.trim() };
|
|
409
|
+
if (!body.role_id) { alert('需要角色 ID'); return; }
|
|
410
|
+
const r = await fetch('/roleplay/api/roles', { method:'POST', headers:{'Content-Type':'application/json'}, body: JSON.stringify(body) }).then(x => x.json());
|
|
411
|
+
if (r.ok) { closeNewRole(); await refreshRoles(); addMsg('角色「' + (body.name || body.role_id) + '」已创建,可以开始对话了', 'bot'); }
|
|
412
|
+
else alert(r.error || '创建失败');
|
|
413
|
+
}
|
|
414
|
+
var input = document.getElementById('input');
|
|
415
|
+
var chat = document.getElementById('chat');
|
|
416
|
+
var footer = document.querySelector('footer');
|
|
417
|
+
input.addEventListener('keydown', function (e) {
|
|
418
|
+
if (e.key === 'Enter' && !e.shiftKey) { e.preventDefault(); send(); }
|
|
419
|
+
});
|
|
420
|
+
refreshRoles();
|
|
421
|
+
// 切换角色 → 加载该角色的历史对话
|
|
422
|
+
$('roleSel').addEventListener('change', function () { loadHistory(this.value); });
|
|
423
|
+
|
|
424
|
+
// —— 输入框随内容自动增高(上限 140px)——
|
|
425
|
+
input.addEventListener('input', function () {
|
|
426
|
+
input.style.height = 'auto';
|
|
427
|
+
input.style.height = Math.min(input.scrollHeight, 140) + 'px';
|
|
428
|
+
});
|
|
429
|
+
// —— 聚焦时输入框自动居中(不依赖 WebView 键盘行为):悬浮到屏幕 45% 高度,
|
|
430
|
+
// 键盘在上抬多少都不会遮住;失焦/发送后恢复原位 ——
|
|
431
|
+
function setTypingCenter(on) {
|
|
432
|
+
if (!footer) return;
|
|
433
|
+
footer.classList.toggle('typing-center', on);
|
|
434
|
+
setTimeout(function () {
|
|
435
|
+
if (chat) chat.scrollTop = chat.scrollHeight;
|
|
436
|
+
}, 60);
|
|
437
|
+
}
|
|
438
|
+
input.addEventListener('focus', function () { setTypingCenter(true); });
|
|
439
|
+
input.addEventListener('blur', function () { setTypingCenter(false); });
|
|
440
|
+
window.addEventListener('resize', function () { if (chat) chat.scrollTop = chat.scrollHeight; });
|
|
441
|
+
</script>
|
|
442
|
+
</body>
|
|
443
|
+
</html>`;
|
|
444
|
+
/** 在 webServer 上挂载 /roleplay 前缀路由(页面 + API)。失败不影响插件主体。
|
|
445
|
+
*
|
|
446
|
+
* @param capability 「身体」能力后端桥(可选);为 null 时生成接口 fail-closed。
|
|
447
|
+
* @param mdcg 大脑客户端(认知图,唯一真源);为 null 时落图静默跳过。
|
|
448
|
+
*/
|
|
449
|
+
export async function installRoleplayWeb(ctx, capability, config, disposers, mdcg: any = null) {
|
|
450
|
+
// 身体能力后端未接入时的统一提示(fail-closed:不编造回复)。
|
|
451
|
+
const CAP_ABSENT_MSG = '角色生成能力未接入:该能力属「身体」(AEIS 能力库),'
|
|
452
|
+
+ '主仓已剥离,仅保留转录/历史/翻译/落图。'
|
|
453
|
+
+ '如需启用,在配置中打开 capability.enabled 并给出 capability.args。';
|
|
454
|
+
const capReady = () => !!(capability && typeof capability.isReady === 'function' && capability.isReady());
|
|
455
|
+
try {
|
|
456
|
+
// 注意:不能直接读 ctx.webServer——Cordis 未声明 inject 的属性访问会抛
|
|
457
|
+
// "cannot get property without inject";ctx.get() 安全返回 undefined。
|
|
458
|
+
const webServer = ctx.get('webServer');
|
|
459
|
+
if (!webServer) {
|
|
460
|
+
ctx.logger.warn('dsh-memory: webServer 服务不可用,跳过角色扮演网页挂载');
|
|
461
|
+
return;
|
|
462
|
+
}
|
|
463
|
+
// 认知图落图(显式调用 md_cg;md_cg = 唯一真源,AEIS 仅负责生成)。
|
|
464
|
+
// 显式映射:MdcgClient.writeTranscript / writeRole → MCP mdcg_remember
|
|
465
|
+
// 见 docs/功能调用映射表_v0.1.md。落图失败不影响对话主流程。
|
|
466
|
+
const toGraph = async (label, fn) => {
|
|
467
|
+
if (!mdcg || !mdcg.isReady())
|
|
468
|
+
return;
|
|
469
|
+
try {
|
|
470
|
+
await fn(mdcg);
|
|
471
|
+
}
|
|
472
|
+
catch (err) {
|
|
473
|
+
ctx.logger.warn(`dsh-memory: 角色扮演落图失败(${label}):${String(err)}`);
|
|
474
|
+
}
|
|
475
|
+
};
|
|
476
|
+
// P1 修复(GPT 审查):
|
|
477
|
+
// ① 请求体大小限制(此前 for-await 无限累加,恶意请求可制造内存压力)
|
|
478
|
+
const readBody = async (req, maxBytes = 1_000_000) => {
|
|
479
|
+
let body = '';
|
|
480
|
+
let size = 0;
|
|
481
|
+
for await (const chunk of req) {
|
|
482
|
+
size += chunk.length;
|
|
483
|
+
if (size > maxBytes) {
|
|
484
|
+
const err = new Error('请求体过大(>1MB)');
|
|
485
|
+
err.status = 413;
|
|
486
|
+
throw err;
|
|
487
|
+
}
|
|
488
|
+
body += chunk;
|
|
489
|
+
}
|
|
490
|
+
return body;
|
|
491
|
+
};
|
|
492
|
+
// ② 编辑鉴权:README 声称「编辑需 ROLEPLAY_EDIT_KEY」——此前代码未实现。
|
|
493
|
+
// 配置了 ROLEPLAY_EDIT_KEY 环境变量则写操作(meta/import/translate/创建角色)
|
|
494
|
+
// 必须带 x-edit-key 头;未配置时保持本地开发默认开放(README 已如实说明)。
|
|
495
|
+
const EDIT_KEY = process.env.ROLEPLAY_EDIT_KEY || '';
|
|
496
|
+
const requireEditKey = (req) => {
|
|
497
|
+
if (!EDIT_KEY)
|
|
498
|
+
return true;
|
|
499
|
+
const h = (req.headers && req.headers['x-edit-key']) || '';
|
|
500
|
+
return h === EDIT_KEY;
|
|
501
|
+
};
|
|
502
|
+
const roleDataDir = join(dirname(config.dbPath), 'roleplay_data');
|
|
503
|
+
try {
|
|
504
|
+
mkdirSync(join(roleDataDir, 'roleplay'), { recursive: true });
|
|
505
|
+
}
|
|
506
|
+
catch { /* 忽略 */ }
|
|
507
|
+
// 完整对话转录(JSONL,按角色 + 客户端实例持久化;认知图只落图摘要节点,
|
|
508
|
+
// 完整原文在此。注意 history 接口只读这里,不读认知图)
|
|
509
|
+
const transcriptsDir = join(roleDataDir, 'transcripts');
|
|
510
|
+
try {
|
|
511
|
+
mkdirSync(transcriptsDir, { recursive: true });
|
|
512
|
+
}
|
|
513
|
+
catch { /* 忽略 */ }
|
|
514
|
+
const transcriptFile = (roleId, clientId) => join(transcriptsDir, `${roleId.replace(/[^\w.-]/g, '_')}__${clientId}.jsonl`);
|
|
515
|
+
const readTranscript = (roleId, clientId = 'shared') => {
|
|
516
|
+
const f = transcriptFile(roleId, clientId);
|
|
517
|
+
if (!existsSync(f))
|
|
518
|
+
return [];
|
|
519
|
+
const out = [];
|
|
520
|
+
for (const line of readFileSync(f, 'utf8').split('\n')) {
|
|
521
|
+
if (!line.trim())
|
|
522
|
+
continue;
|
|
523
|
+
try {
|
|
524
|
+
out.push(JSON.parse(line));
|
|
525
|
+
}
|
|
526
|
+
catch { /* 跳过坏行 */ }
|
|
527
|
+
}
|
|
528
|
+
return out;
|
|
529
|
+
};
|
|
530
|
+
const appendTranscript = (roleId, entry, clientId = 'shared') => {
|
|
531
|
+
try {
|
|
532
|
+
appendFileSync(transcriptFile(roleId, clientId), JSON.stringify(entry) + '\n');
|
|
533
|
+
}
|
|
534
|
+
catch { /* 忽略 */ }
|
|
535
|
+
};
|
|
536
|
+
// 稳定会话:角色+固定会话 id,让引擎的会话上下文与记忆标签跨轮连续(无限上下文)
|
|
537
|
+
// P1 完善(GPT 审查·会话隔离):开源无身份认证,但必须做客户端实例隔离——
|
|
538
|
+
// 此前所有用户共用 session `web-main:<role>` + 同一转录文件,多浏览器/多设备
|
|
539
|
+
// 对话互相串线、看到彼此历史。现在按浏览器客户端生成的 client_id(x-client-id
|
|
540
|
+
// 头,localStorage 持久化)隔离 session 与转录文件;无 header 的旧客户端落 shared。
|
|
541
|
+
const clientIdOf = (req) => {
|
|
542
|
+
const h = (req.headers && req.headers['x-client-id']) || '';
|
|
543
|
+
return /^[A-Za-z0-9_-]{1,64}$/.test(h) ? h : 'shared';
|
|
544
|
+
};
|
|
545
|
+
const sessionFor = (roleId, clientId) => `web-${clientId}:${roleId}`;
|
|
546
|
+
// —— 自定义翻译(现实词 ↔ 扮演词)——
|
|
547
|
+
// 翻译表写入角色 meta(_roles.json):引擎每次 roleplay_chat 都新建引擎并重读
|
|
548
|
+
// meta,因此写入立即生效(输入翻译 real→virtual + LLM 沉浸注入块都会应用)。
|
|
549
|
+
// P1 完善(GPT 审查·meta 嵌套格式):读取归一化——文件可能是根格式
|
|
550
|
+
// {r:{...}} 或嵌套格式 {meta:{r:{...}}}(外部 AEIS 可能用嵌套),统一返回
|
|
551
|
+
// 「角色字典」视角;写入保持原顶层结构(嵌套则写回 meta 内),读写一致——
|
|
552
|
+
// 此前读兼容嵌套但写永远写根,保存成功但列表读旧值。
|
|
553
|
+
const roleMetaFile = join(roleDataDir, 'roleplay', '_roles.json');
|
|
554
|
+
const readRoleMeta = () => {
|
|
555
|
+
try {
|
|
556
|
+
const raw = JSON.parse(readFileSync(roleMetaFile, 'utf8'));
|
|
557
|
+
if (raw && typeof raw === 'object'
|
|
558
|
+
&& raw.meta && typeof raw.meta === 'object')
|
|
559
|
+
return raw.meta; // 嵌套格式 → meta 内角色字典
|
|
560
|
+
return raw;
|
|
561
|
+
}
|
|
562
|
+
catch {
|
|
563
|
+
return {};
|
|
564
|
+
}
|
|
565
|
+
};
|
|
566
|
+
const writeRoleMeta = (flat) => {
|
|
567
|
+
try {
|
|
568
|
+
let raw;
|
|
569
|
+
try {
|
|
570
|
+
raw = JSON.parse(readFileSync(roleMetaFile, 'utf8'));
|
|
571
|
+
}
|
|
572
|
+
catch {
|
|
573
|
+
raw = {};
|
|
574
|
+
}
|
|
575
|
+
// 保持原顶层结构:原文件嵌套 {meta:{...}} → 写回 meta 内;根格式 → 写根
|
|
576
|
+
const out = (raw && typeof raw === 'object'
|
|
577
|
+
&& raw.meta && typeof raw.meta === 'object')
|
|
578
|
+
? { ...raw, meta: flat } : flat;
|
|
579
|
+
const tmp = roleMetaFile + '.tmp';
|
|
580
|
+
writeFileSync(tmp, JSON.stringify(out, null, 2), 'utf8');
|
|
581
|
+
renameSync(tmp, roleMetaFile);
|
|
582
|
+
}
|
|
583
|
+
catch (e) {
|
|
584
|
+
ctx.logger.warn(`dsh-memory: 角色 meta 写入失败: ${String((e && e.message) || e)}`);
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
// 翻译模式(双向/仅输入)由网页层持久化
|
|
588
|
+
const transSettingsFile = join(transcriptsDir, 'translate_settings.json');
|
|
589
|
+
const readTransSettings = () => {
|
|
590
|
+
try {
|
|
591
|
+
return JSON.parse(readFileSync(transSettingsFile, 'utf8'));
|
|
592
|
+
}
|
|
593
|
+
catch {
|
|
594
|
+
return {};
|
|
595
|
+
}
|
|
596
|
+
};
|
|
597
|
+
const writeTransSettings = (s) => {
|
|
598
|
+
try {
|
|
599
|
+
writeFileSync(transSettingsFile, JSON.stringify(s, null, 2), 'utf8');
|
|
600
|
+
}
|
|
601
|
+
catch { /* 忽略 */ }
|
|
602
|
+
};
|
|
603
|
+
const getTranslations = (roleId) => {
|
|
604
|
+
const meta = readRoleMeta();
|
|
605
|
+
const t = (meta[roleId] && meta[roleId].translations) || [];
|
|
606
|
+
return Array.isArray(t) ? t : [];
|
|
607
|
+
};
|
|
608
|
+
const setTranslations = (roleId, pairs) => {
|
|
609
|
+
const meta = readRoleMeta();
|
|
610
|
+
if (!meta[roleId])
|
|
611
|
+
meta[roleId] = { created_at: Date.now() / 1000, name: roleId };
|
|
612
|
+
meta[roleId].translations = pairs;
|
|
613
|
+
writeRoleMeta(meta);
|
|
614
|
+
};
|
|
615
|
+
// 可逆替换(长词优先,与灵枢 translate_input/translate_output 同逻辑)
|
|
616
|
+
const applyTranslate = (text, pairs, dir) => {
|
|
617
|
+
if (!text || !pairs.length)
|
|
618
|
+
return text;
|
|
619
|
+
const key = dir === 'out' ? 'virtual' : 'real';
|
|
620
|
+
const rep = dir === 'out' ? 'real' : 'virtual';
|
|
621
|
+
const sorted = pairs
|
|
622
|
+
.filter((p) => p[key] && p[rep])
|
|
623
|
+
.sort((a, b) => (b[key] || '').length - (a[key] || '').length);
|
|
624
|
+
let out = text;
|
|
625
|
+
for (const p of sorted)
|
|
626
|
+
out = out.split(p[key]).join(p[rep]);
|
|
627
|
+
return out;
|
|
628
|
+
};
|
|
629
|
+
const handler = async (req, res) => {
|
|
630
|
+
const url = new URL(req.url ?? '/', 'http://x');
|
|
631
|
+
try {
|
|
632
|
+
const isPage = url.pathname === '/roleplay' || url.pathname === '/roleplay/';
|
|
633
|
+
if (req.method === 'GET' && isPage) {
|
|
634
|
+
res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' });
|
|
635
|
+
res.end(HTML);
|
|
636
|
+
return;
|
|
637
|
+
}
|
|
638
|
+
if (req.method === 'GET' && url.pathname === '/roleplay/api/roles') {
|
|
639
|
+
const rolesFile = join(roleDataDir, 'roleplay', '_roles.json');
|
|
640
|
+
let roles = [];
|
|
641
|
+
try {
|
|
642
|
+
const raw = JSON.parse(readFileSync(rolesFile, 'utf8'));
|
|
643
|
+
const meta = raw.meta && typeof raw.meta === 'object' ? raw.meta : raw;
|
|
644
|
+
roles = Object.entries(meta)
|
|
645
|
+
.filter(([k]) => k !== 'created_at' && k !== 'updated_at')
|
|
646
|
+
.map(([id, m]) => ({ id, name: (m && m.name) || id, scenario: (m && m.scenario) || '', first_mes: (m && m.first_mes) || '' }));
|
|
647
|
+
}
|
|
648
|
+
catch { /* 文件尚不存在 */ }
|
|
649
|
+
res.writeHead(200, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
650
|
+
res.end(JSON.stringify({ roles }));
|
|
651
|
+
return;
|
|
652
|
+
}
|
|
653
|
+
// —— 三导入(记忆/锚点/价值观):items 副本存 _roles.json + role_import 真导入引擎 ——
|
|
654
|
+
const rdItemsFile = (roleId, kind) => `${kind}_items`;
|
|
655
|
+
const getRoleItems = (roleId, kind) => {
|
|
656
|
+
const meta = readRoleMeta();
|
|
657
|
+
const arr = (meta[roleId] && meta[roleId][rdItemsFile(roleId, kind)]) || [];
|
|
658
|
+
return Array.isArray(arr) ? arr : [];
|
|
659
|
+
};
|
|
660
|
+
if (req.method === 'GET' && url.pathname.startsWith('/roleplay/api/roles/') && url.pathname.endsWith('/items')) {
|
|
661
|
+
const role = decodeURIComponent(url.pathname.split('/')[4]);
|
|
662
|
+
const kind = url.searchParams.get('kind') || 'memory';
|
|
663
|
+
res.writeHead(200, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
664
|
+
res.end(JSON.stringify({ items: getRoleItems(role, kind) }));
|
|
665
|
+
return;
|
|
666
|
+
}
|
|
667
|
+
if (req.method === 'POST' && url.pathname.startsWith('/roleplay/api/roles/') && url.pathname.endsWith('/import')) {
|
|
668
|
+
// P1 修复(GPT 审查):写操作鉴权(ROLEPLAY_EDIT_KEY)+ 请求体大小限制
|
|
669
|
+
if (!requireEditKey(req)) {
|
|
670
|
+
res.writeHead(403, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
671
|
+
res.end(JSON.stringify({ ok: false, error: '缺少编辑密钥(x-edit-key 头)' }));
|
|
672
|
+
return;
|
|
673
|
+
}
|
|
674
|
+
let body;
|
|
675
|
+
try {
|
|
676
|
+
body = await readBody(req);
|
|
677
|
+
}
|
|
678
|
+
catch (e) {
|
|
679
|
+
res.writeHead(e.status || 400, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
680
|
+
res.end(JSON.stringify({ ok: false, error: String((e && e.message) || e) }));
|
|
681
|
+
return;
|
|
682
|
+
}
|
|
683
|
+
const p = JSON.parse(body);
|
|
684
|
+
const role = decodeURIComponent(url.pathname.split('/')[4]);
|
|
685
|
+
const kind = p.kind || 'memory';
|
|
686
|
+
const items = (Array.isArray(p.items) ? p.items : []).filter((x) => x && x.content);
|
|
687
|
+
// 副本(网页层读取用)
|
|
688
|
+
const meta = readRoleMeta();
|
|
689
|
+
if (!meta[role])
|
|
690
|
+
meta[role] = { created_at: Date.now() / 1000, name: role };
|
|
691
|
+
meta[role][rdItemsFile(role, kind)] = items;
|
|
692
|
+
writeRoleMeta(meta);
|
|
693
|
+
// 真导入引擎(记忆→知识层/锚点→SELF no_forget/价值观→STRUCTURE 带条件)
|
|
694
|
+
let impResult = null;
|
|
695
|
+
if (items.length) {
|
|
696
|
+
if (!capReady()) {
|
|
697
|
+
impResult = { error: CAP_ABSENT_MSG };
|
|
698
|
+
}
|
|
699
|
+
else {
|
|
700
|
+
try {
|
|
701
|
+
impResult = await capability.callTool('role_import', {
|
|
702
|
+
role_id: role, kind, items, data_dir: roleDataDir,
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
catch (e) {
|
|
706
|
+
impResult = { error: String((e && e.message) || e) };
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
// 导入项显式落认知图:memory→knowledge / anchors→self / values→structural。
|
|
711
|
+
// 显式映射:MdcgClient.write → MCP mdcg_remember(gated=false 直写)。
|
|
712
|
+
// ⚠️ anchors→self 层需 designer 权限(recorder 的 layers_allow 不含 self)。
|
|
713
|
+
const layerForKind = { memory: 'knowledge', anchors: 'self', values: 'structural' }[kind] || 'knowledge';
|
|
714
|
+
void toGraph(`import-${kind}`, (g) => Promise.all(items.map((it, i) => g.write(
|
|
715
|
+
typeof it === 'string' ? it : (it.text || it.content || JSON.stringify(it)),
|
|
716
|
+
{ node_id: `roleplay_${role}_${kind}_${i}`, layer: layerForKind,
|
|
717
|
+
tags: ['roleplay', `role:${role}`, `roleplay:${kind}`], importance: 0.6 },
|
|
718
|
+
))));
|
|
719
|
+
res.writeHead(200, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
720
|
+
// P1 修复(GPT 审查):引擎导入失败不得返回 ok:true(前端会显示「已保存」)
|
|
721
|
+
const importOk = !(impResult && (impResult.error || impResult.isError));
|
|
722
|
+
res.end(JSON.stringify({ ok: importOk, kind, items, import: impResult }));
|
|
723
|
+
return;
|
|
724
|
+
}
|
|
725
|
+
if (req.method === 'POST' && url.pathname.startsWith('/roleplay/api/roles/') && url.pathname.endsWith('/meta')) {
|
|
726
|
+
// P1 修复(GPT 审查):写操作鉴权(ROLEPLAY_EDIT_KEY)+ 请求体大小限制
|
|
727
|
+
if (!requireEditKey(req)) {
|
|
728
|
+
res.writeHead(403, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
729
|
+
res.end(JSON.stringify({ ok: false, error: '缺少编辑密钥(x-edit-key 头)' }));
|
|
730
|
+
return;
|
|
731
|
+
}
|
|
732
|
+
let body;
|
|
733
|
+
try {
|
|
734
|
+
body = await readBody(req);
|
|
735
|
+
}
|
|
736
|
+
catch (e) {
|
|
737
|
+
res.writeHead(e.status || 400, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
738
|
+
res.end(JSON.stringify({ ok: false, error: String((e && e.message) || e) }));
|
|
739
|
+
return;
|
|
740
|
+
}
|
|
741
|
+
const p = JSON.parse(body);
|
|
742
|
+
const role = decodeURIComponent(url.pathname.split('/')[4]);
|
|
743
|
+
const meta = readRoleMeta();
|
|
744
|
+
if (!meta[role])
|
|
745
|
+
meta[role] = { created_at: Date.now() / 1000 };
|
|
746
|
+
if (typeof p.name === 'string')
|
|
747
|
+
meta[role].name = p.name;
|
|
748
|
+
if (typeof p.scenario === 'string')
|
|
749
|
+
meta[role].scenario = p.scenario;
|
|
750
|
+
if (typeof p.first_mes === 'string')
|
|
751
|
+
meta[role].first_mes = p.first_mes;
|
|
752
|
+
if (typeof p.nsfw === 'boolean')
|
|
753
|
+
meta[role].nsfw = p.nsfw;
|
|
754
|
+
writeRoleMeta(meta);
|
|
755
|
+
res.writeHead(200, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
756
|
+
res.end(JSON.stringify({ ok: true }));
|
|
757
|
+
return;
|
|
758
|
+
}
|
|
759
|
+
if (req.method === 'POST' && url.pathname === '/roleplay/api/chat') {
|
|
760
|
+
// P1 修复(GPT 审查):对话接口加请求体大小限制(用户聊天不需编辑密钥)
|
|
761
|
+
let body;
|
|
762
|
+
try {
|
|
763
|
+
body = await readBody(req);
|
|
764
|
+
}
|
|
765
|
+
catch (e) {
|
|
766
|
+
res.writeHead(e.status || 400, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
767
|
+
res.end(JSON.stringify({ ok: false, error: String((e && e.message) || e) }));
|
|
768
|
+
return;
|
|
769
|
+
}
|
|
770
|
+
const p = JSON.parse(body);
|
|
771
|
+
const role = p.role_id || 'protocol-guide';
|
|
772
|
+
// P1 完善(会话隔离):按客户端实例隔离 session 与转录
|
|
773
|
+
const cid = clientIdOf(req);
|
|
774
|
+
// —— 服务端内容分级硬拦截(不依赖前端,法律与协议保护)——
|
|
775
|
+
// 未成年 + 性 = 一律拒绝(国家法律 + 未成年人保护);NSFW 词提示年龄确认
|
|
776
|
+
const NSFW_WORDS = ['做爱', '性交', '性行为', '口交', '肛交', '高潮', '自慰', '射精', '色情', '裸体', '脱光', '爱抚', '挑逗', '性器官', '插入', '内射', '强暴'];
|
|
777
|
+
const MINOR_WORDS = ['未成年', '儿童', '小孩', '小女孩', '小男孩', '幼女', '萝莉', '幼童', '初中生', '小学生', '14岁', '13岁', '12岁', '学生妹', '女童', '男童'];
|
|
778
|
+
const hasNsfw = NSFW_WORDS.some(w => p.message.includes(w));
|
|
779
|
+
const hasMinor = MINOR_WORDS.some(w => p.message.includes(w));
|
|
780
|
+
if (hasMinor && hasNsfw) {
|
|
781
|
+
res.writeHead(200, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
782
|
+
res.end(JSON.stringify({ reply: '⛔ 已拒绝:涉及未成年人的性内容违反国家法律与灵枢协议(未成年人保护)。灵枢不提供任何涉及未成年人的性扮演内容。', route: 'refused', refused: 'minor_nsfw' }));
|
|
783
|
+
return;
|
|
784
|
+
}
|
|
785
|
+
appendTranscript(role, { time: Date.now(), role: 'user', text: p.message }, cid);
|
|
786
|
+
void toGraph('user-turn', (g) => g.writeTranscript(role, cid, 'user', p.message));
|
|
787
|
+
if (!capReady()) {
|
|
788
|
+
res.writeHead(503, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
789
|
+
res.end(JSON.stringify({ reply: '', route: 'unavailable', error: CAP_ABSENT_MSG }));
|
|
790
|
+
return;
|
|
791
|
+
}
|
|
792
|
+
const r = await capability.callTool('roleplay_chat', {
|
|
793
|
+
message: p.message, role_id: role, session_id: sessionFor(role, cid), data_dir: roleDataDir,
|
|
794
|
+
});
|
|
795
|
+
const text = typeof r === 'string' ? r : (r?.content?.[0]?.text ?? JSON.stringify(r));
|
|
796
|
+
let parsed;
|
|
797
|
+
try {
|
|
798
|
+
parsed = JSON.parse(text);
|
|
799
|
+
}
|
|
800
|
+
catch {
|
|
801
|
+
parsed = { reply: text, route: 'raw' };
|
|
802
|
+
}
|
|
803
|
+
let replyText = parsed.reply ?? '';
|
|
804
|
+
// 双向翻译模式:把角色的扮演词翻译回现实词(输入翻译由引擎自动执行 real→virtual)
|
|
805
|
+
const settings = readTransSettings();
|
|
806
|
+
if ((settings[role] && settings[role].mode) === 'bidirectional') {
|
|
807
|
+
replyText = applyTranslate(replyText, getTranslations(role), 'out');
|
|
808
|
+
}
|
|
809
|
+
appendTranscript(role, { time: Date.now(), role: 'bot', text: replyText, route: parsed.route ?? '', memories: parsed.memories ?? undefined }, cid);
|
|
810
|
+
void toGraph('assistant-turn', (g) => g.writeTranscript(role, cid, 'assistant', replyText, { route: parsed.route ?? '' }));
|
|
811
|
+
res.writeHead(200, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
812
|
+
res.end(JSON.stringify({ reply: replyText, route: parsed.route ?? '', memories: parsed.memories ?? undefined, error: parsed.error ?? undefined }));
|
|
813
|
+
return;
|
|
814
|
+
}
|
|
815
|
+
if (req.method === 'GET' && url.pathname === '/roleplay/api/translate') {
|
|
816
|
+
const role = url.searchParams.get('role_id') || 'protocol-guide';
|
|
817
|
+
const settings = readTransSettings();
|
|
818
|
+
res.writeHead(200, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
819
|
+
res.end(JSON.stringify({ pairs: getTranslations(role), mode: (settings[role] && settings[role].mode) || 'input_only' }));
|
|
820
|
+
return;
|
|
821
|
+
}
|
|
822
|
+
if (req.method === 'POST' && url.pathname === '/roleplay/api/translate') {
|
|
823
|
+
// P1 修复(GPT 审查):写操作鉴权(ROLEPLAY_EDIT_KEY)+ 请求体大小限制
|
|
824
|
+
if (!requireEditKey(req)) {
|
|
825
|
+
res.writeHead(403, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
826
|
+
res.end(JSON.stringify({ ok: false, error: '缺少编辑密钥(x-edit-key 头)' }));
|
|
827
|
+
return;
|
|
828
|
+
}
|
|
829
|
+
let body;
|
|
830
|
+
try {
|
|
831
|
+
body = await readBody(req);
|
|
832
|
+
}
|
|
833
|
+
catch (e) {
|
|
834
|
+
res.writeHead(e.status || 400, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
835
|
+
res.end(JSON.stringify({ ok: false, error: String((e && e.message) || e) }));
|
|
836
|
+
return;
|
|
837
|
+
}
|
|
838
|
+
const p = JSON.parse(body);
|
|
839
|
+
const role = p.role_id || 'protocol-guide';
|
|
840
|
+
const pairs = (Array.isArray(p.pairs) ? p.pairs : [])
|
|
841
|
+
.map((x) => ({ real: String(x.real || '').trim(), virtual: String(x.virtual || '').trim(), note: String(x.note || '').trim() }))
|
|
842
|
+
.filter((x) => x.real && x.virtual);
|
|
843
|
+
setTranslations(role, pairs);
|
|
844
|
+
const settings = readTransSettings();
|
|
845
|
+
settings[role] = { mode: p.mode === 'bidirectional' ? 'bidirectional' : 'input_only' };
|
|
846
|
+
writeTransSettings(settings);
|
|
847
|
+
res.writeHead(200, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
848
|
+
res.end(JSON.stringify({ ok: true, pairs, mode: settings[role].mode }));
|
|
849
|
+
return;
|
|
850
|
+
}
|
|
851
|
+
if (req.method === 'GET' && url.pathname === '/roleplay/api/history') {
|
|
852
|
+
const role = url.searchParams.get('role_id') || 'protocol-guide';
|
|
853
|
+
// P1 完善(会话隔离):按客户端实例读各自转录
|
|
854
|
+
res.writeHead(200, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
855
|
+
res.end(JSON.stringify({ history: readTranscript(role, clientIdOf(req)) }));
|
|
856
|
+
return;
|
|
857
|
+
}
|
|
858
|
+
if (req.method === 'POST' && url.pathname === '/roleplay/api/roles') {
|
|
859
|
+
// P1 修复(GPT 审查):写操作鉴权(ROLEPLAY_EDIT_KEY)+ 请求体大小限制
|
|
860
|
+
if (!requireEditKey(req)) {
|
|
861
|
+
res.writeHead(403, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
862
|
+
res.end(JSON.stringify({ ok: false, error: '缺少编辑密钥(x-edit-key 头)' }));
|
|
863
|
+
return;
|
|
864
|
+
}
|
|
865
|
+
let body;
|
|
866
|
+
try {
|
|
867
|
+
body = await readBody(req);
|
|
868
|
+
}
|
|
869
|
+
catch (e) {
|
|
870
|
+
res.writeHead(e.status || 400, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
871
|
+
res.end(JSON.stringify({ ok: false, error: String((e && e.message) || e) }));
|
|
872
|
+
return;
|
|
873
|
+
}
|
|
874
|
+
const p = JSON.parse(body);
|
|
875
|
+
if (!capReady()) {
|
|
876
|
+
res.writeHead(503, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
877
|
+
res.end(JSON.stringify({ ok: false, error: CAP_ABSENT_MSG }));
|
|
878
|
+
return;
|
|
879
|
+
}
|
|
880
|
+
const r = await capability.callTool('role_create', {
|
|
881
|
+
role_id: p.role_id, name: p.name || '', scenario: p.scenario || '', first_mes: p.first_mes || '', data_dir: roleDataDir,
|
|
882
|
+
});
|
|
883
|
+
void toGraph('role-create', (g) => g.writeRole(p.role_id, JSON.stringify({ name: p.name || '', scenario: p.scenario || '', first_mes: p.first_mes || '' })));
|
|
884
|
+
res.writeHead(200, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
885
|
+
res.end(JSON.stringify({ ok: true, result: r }));
|
|
886
|
+
return;
|
|
887
|
+
}
|
|
888
|
+
res.writeHead(404, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
889
|
+
res.end(JSON.stringify({ error: 'not found' }));
|
|
890
|
+
}
|
|
891
|
+
catch (e) {
|
|
892
|
+
res.writeHead(500, { 'Content-Type': 'application/json; charset=utf-8' });
|
|
893
|
+
res.end(JSON.stringify({ error: String((e && e.message) || e) }));
|
|
894
|
+
}
|
|
895
|
+
};
|
|
896
|
+
disposers.push(webServer.register({ kind: 'prefix', path: '/roleplay', handler }));
|
|
897
|
+
// 在 GUI 首页注入浮动入口按钮(APP 内置页面内一键进入角色扮演,右上角)
|
|
898
|
+
// issue #8:按钮可隐藏(roleplayEntryButton=false 不注入)+ 可拖动
|
|
899
|
+
// (pointer 拖拽,位置记忆在 localStorage;移动 >6px 视为拖动,否则放行点击跳转)
|
|
900
|
+
if (config.roleplayEntryButton) {
|
|
901
|
+
disposers.push(webServer.tapIndex((html) => {
|
|
902
|
+
if (html.includes('href="/roleplay"'))
|
|
903
|
+
return html;
|
|
904
|
+
const btn = '<a id="dshm-rp" href="/roleplay" style="position:fixed;top:12px;right:14px;z-index:999999;background:#7c8cff;color:#0b0d14;border-radius:999px;padding:9px 15px;font:600 13px/1 system-ui,sans-serif;text-decoration:none;box-shadow:0 4px 14px rgba(0,0,0,.45);touch-action:none;user-select:none;cursor:grab">🎭 角色扮演</a>' +
|
|
905
|
+
'<script>(function(){var b=document.getElementById("dshm-rp");if(!b)return;' +
|
|
906
|
+
'try{var p=JSON.parse(localStorage.getItem("dshm_rlp")||"null");' +
|
|
907
|
+
'if(p&&p.l!=null){b.style.right="auto";b.style.left=p.l+"px";b.style.top=p.t+"px";}}catch(e){}' +
|
|
908
|
+
'var sx=0,sy=0,sl=0,st=0,drag=false;' +
|
|
909
|
+
'b.addEventListener("pointerdown",function(e){sx=e.clientX;sy=e.clientY;' +
|
|
910
|
+
'var r=b.getBoundingClientRect();sl=r.left;st=r.top;drag=false;' +
|
|
911
|
+
'try{b.setPointerCapture(e.pointerId);}catch(err){}});' +
|
|
912
|
+
'b.addEventListener("pointermove",function(e){' +
|
|
913
|
+
'if(e.buttons===0||!drag&&!sx&&!sy)return;' +
|
|
914
|
+
'var dx=e.clientX-sx,dy=e.clientY-sy;' +
|
|
915
|
+
'if(!drag&&Math.sqrt(dx*dx+dy*dy)>6){drag=true;b.style.right="auto";b.style.cursor="grabbing";}' +
|
|
916
|
+
'if(drag){var L=Math.max(4,Math.min(window.innerWidth-b.offsetWidth-4,sl+dx)),' +
|
|
917
|
+
'T=Math.max(4,Math.min(window.innerHeight-b.offsetHeight-4,st+dy));' +
|
|
918
|
+
'b.style.left=L+"px";b.style.top=T+"px";e.preventDefault();}});' +
|
|
919
|
+
'b.addEventListener("pointerup",function(e){' +
|
|
920
|
+
'if(drag){e.preventDefault();' +
|
|
921
|
+
'try{var r=b.getBoundingClientRect();' +
|
|
922
|
+
'localStorage.setItem("dshm_rlp",JSON.stringify({l:r.left,t:r.top}));}catch(err){}}' +
|
|
923
|
+
'drag=false;sx=0;sy=0;});})();</script>';
|
|
924
|
+
return html.replace('</body>', `${btn}\n</body>`);
|
|
925
|
+
}));
|
|
926
|
+
}
|
|
927
|
+
ctx.logger.info(`dsh-memory: 角色扮演网页已挂载 /roleplay(data_dir=${roleDataDir},入口按钮=${config.roleplayEntryButton ? '显示(可拖动)' : '隐藏'})`);
|
|
928
|
+
}
|
|
929
|
+
catch (err) {
|
|
930
|
+
ctx.logger.warn(`dsh-memory: 角色扮演网页挂载失败(不影响其他功能): ${String(err && err.message || err)}`);
|
|
931
|
+
}
|
|
932
|
+
}
|