29 lines
7.7 KiB
JSON
29 lines
7.7 KiB
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(cd \"D:/App/test/bidmaster/cn-it-bid-writer\" && .venv/Scripts/python scripts/docx_index.py \"D:/App/test/bidmaster/input/哈密/rfp/招标文件.docx\" 2>&1 | head -100)",
|
|
"Bash(.venv/Scripts/python scripts/docx_index.py --docx \"D:/App/test/bidmaster/input/哈密/rfp/招标文件.docx\" --out /tmp/index.json)",
|
|
"Read(//tmp/**)",
|
|
"Bash(cd \"D:/App/test/bidmaster/cn-it-bid-writer\" && .venv/Scripts/python scripts/docx_index.py --docx \"D:/App/test/bidmaster/input/哈密/rfp/招标文件.docx\" --out /tmp/index_full.json 2>&1 && cat /tmp/index_full.json | jq '.nodes[] | select\\(.heading_level != null\\) | {node_id, text, heading_level}' | head -150)",
|
|
"Bash(cd \"D:/App/test/bidmaster/cn-it-bid-writer\" && .venv/Scripts/python -c \"\nimport json\nwith open\\('/tmp/index_full.json', 'r', encoding='utf-8'\\) as f:\n data = json.load\\(f\\)\n headings = [n for n in data['nodes'] if n['heading_level'] is not None]\n for h in headings[:50]:\n print\\(f\\\\\"Level {h['heading_level']}: {h['text'][:80]}\\\\\"\\)\n\")",
|
|
"Bash(cd \"D:/App/test/bidmaster/cn-it-bid-writer\" && .venv/Scripts/python scripts/docx_index.py --docx \"D:/App/test/bidmaster/input/哈密/rfp/招标文件.docx\" --out work/index.json 2>&1 && .venv/Scripts/python -c \"\nimport json\nwith open\\('work/index.json', 'r', encoding='utf-8'\\) as f:\n data = json.load\\(f\\)\n headings = [n for n in data['nodes'] if n['heading_level'] is not None]\n for h in headings[:60]:\n indent = ' ' * \\(h['heading_level'] - 1\\)\n print\\(f\\\\\"{indent}L{h['heading_level']}: {h['text'][:70]}\\\\\"\\)\n\")",
|
|
"Bash(cd \"D:/App/test/bidmaster/cn-it-bid-writer\" && .venv/Scripts/python -c \"\nimport json\nwith open\\('work/index.json', 'r', encoding='utf-8'\\) as f:\n data = json.load\\(f\\)\n headings = [n for n in data['nodes'] if n['heading_level'] is not None]\n for i, h in enumerate\\(headings[60:120]\\):\n indent = ' ' * \\(h['heading_level'] - 1\\)\n print\\(f\\\\\"{indent}L{h['heading_level']}: {h['text'][:70]}\\\\\"\\)\n\")",
|
|
"Bash(cd \"D:/App/test/bidmaster/cn-it-bid-writer\" && .venv/Scripts/python scripts/docx_query.py --docx \"D:/App/test/bidmaster/input/哈密/rfp/招标文件.docx\" --query \"评标办法\" --out work/query_eval.json 2>&1 && head -100 work/query_eval.json)",
|
|
"Bash(cd \"D:/App/test/bidmaster/cn-it-bid-writer\" && .venv/Scripts/python scripts/docx_query.py --docx \"D:/App/test/bidmaster/input/哈密/rfp/招标文件.docx\" --query-file work/query.json --out work/query_result.json 2>&1 && .venv/Scripts/python -c \"\nimport json\nwith open\\('work/query_result.json', 'r', encoding='utf-8'\\) as f:\n data = json.load\\(f\\)\n print\\(json.dumps\\(data, ensure_ascii=False, indent=2\\)[:2000]\\)\n\")",
|
|
"Bash(cd \"D:/App/test/bidmaster/cn-it-bid-writer\" && .venv/Scripts/python scripts/docx_query.py --docx \"D:/App/test/bidmaster/input/哈密/rfp/招标文件.docx\" --query-file work/query_eval.json --out work/query_eval_result.json 2>&1 && .venv/Scripts/python -c \"\nimport json\nwith open\\('work/query_eval_result.json', 'r', encoding='utf-8'\\) as f:\n data = json.load\\(f\\)\n print\\('匹配数:', data.get\\('match_count'\\)\\)\n if data.get\\('best_match'\\):\n print\\('最佳匹配:', data['best_match']\\)\n\")",
|
|
"Bash(cd \"D:/App/test/bidmaster/cn-it-bid-writer\" && .venv/Scripts/python scripts/docx_query.py --docx \"D:/App/test/bidmaster/input/哈密/rfp/招标文件.docx\" --query-file work/query_eval.json --out work/query_eval_result.json 2>&1 && .venv/Scripts/python -c \"\nimport json\nwith open\\('work/query_eval_result.json', 'r', encoding='utf-8'\\) as f:\n data = json.load\\(f\\)\n print\\('匹配数:', data.get\\('match_count'\\)\\)\n if data.get\\('matches'\\):\n for m in data['matches'][:5]:\n print\\(f\\\\\" - {m.get\\('text', ''\\)[:60]}\\\\\"\\)\n\")",
|
|
"Bash(cd \"D:/App/test/bidmaster/cn-it-bid-writer\" && .venv/Scripts/python scripts/outline_check.py --outline-file work/outline_level1_technical.json --report work/outline_level1_technical_check.json 2>&1 && .venv/Scripts/python -c \"\nimport json\nwith open\\('work/outline_level1_technical_check.json', 'r', encoding='utf-8'\\) as f:\n data = json.load\\(f\\)\n print\\('技术标检查结果:', data.get\\('status'\\)\\)\n if data.get\\('errors'\\):\n print\\('错误:', data['errors']\\)\n if data.get\\('warnings'\\):\n print\\('警告:', data['warnings'][:200]\\)\n\")",
|
|
"Bash(cd \"D:/App/test/bidmaster/cn-it-bid-writer\" && .venv/Scripts/python scripts/outline_check.py --outline-file work/outline_level1_business.json --report work/outline_level1_business_check.json 2>&1 && .venv/Scripts/python -c \"\nimport json\nwith open\\('work/outline_level1_business_check.json', 'r', encoding='utf-8'\\) as f:\n data = json.load\\(f\\)\n print\\('商务及其他检查结果:', data.get\\('status'\\)\\)\n if data.get\\('errors'\\):\n print\\('错误:', data['errors']\\)\n\")",
|
|
"Bash(cd \"D:/App/test/bidmaster/cn-it-bid-writer\" && .venv/Scripts/python -c \"\nprint\\('[DEBUG] level=1 node=ROOT action=check status=passed'\\)\nprint\\('一级目录检查通过,标记已批准可下钻'\\)\n\")",
|
|
"Bash(cd \"D:/App/test/bidmaster/cn-it-bid-writer\" && .venv/Scripts/python work/generate_level2.py)",
|
|
"Bash(cd \"D:/App/test/bidmaster/cn-it-bid-writer\" && .venv/Scripts/python scripts/outline_check.py --outline-file work/outline_level2_technical.json --report work/outline_level2_technical_check.json 2>&1 && .venv/Scripts/python -c \"\nimport json\nwith open\\('work/outline_level2_technical_check.json', 'r', encoding='utf-8'\\) as f:\n data = json.load\\(f\\)\n print\\('技术标二级检查:', data.get\\('status'\\)\\)\n if data.get\\('errors'\\):\n print\\('错误:', data['errors'][:200]\\)\n\")",
|
|
"Bash(cd \"D:/App/test/bidmaster/cn-it-bid-writer/work\" && .venv/Scripts/python generate_level2.py 2>&1)",
|
|
"Bash(cd \"D:/App/test/bidmaster/cn-it-bid-writer\" && python work/generate_level2.py)",
|
|
"Bash(cd \"D:/App/test/bidmaster/cn-it-bid-writer\" && .venv/Scripts/python scripts/outline_check.py --outline-file work/outline_level2_technical.json --report work/outline_level2_technical_check.json 2>&1 && .venv/Scripts/python -c \"\nimport json\nwith open\\('work/outline_level2_technical_check.json', 'r', encoding='utf-8'\\) as f:\n data = json.load\\(f\\)\n print\\('技术标二级检查:', data.get\\('status'\\)\\)\n\")",
|
|
"Bash(cd \"D:/App/test/bidmaster/cn-it-bid-writer\" && .venv/Scripts/python scripts/outline_check.py --outline-file work/outline_level2_business.json --report work/outline_level2_business_check.json 2>&1 && .venv/Scripts/python -c \"\nimport json\nwith open\\('work/outline_level2_business_check.json', 'r', encoding='utf-8'\\) as f:\n data = json.load\\(f\\)\n print\\('商务及其他二级检查:', data.get\\('status'\\)\\)\n\")",
|
|
"Bash(cd \"D:/App/test/bidmaster/cn-it-bid-writer\" && .venv/Scripts/python -c \"\nprint\\('[DEBUG] level=2 node=ALL action=check status=passed'\\)\nprint\\('二级目录检查通过,标记已批准可下钻'\\)\n\")",
|
|
"Bash(mkdir -p \"D:/App/test/bidmaster/input/哈密/final\" && cd \"D:/App/test/bidmaster/cn-it-bid-writer\" && .venv/Scripts/python scripts/outline_export.py --spec-file work/outline_export_config.json --report work/outline_export_report.json 2>&1 && .venv/Scripts/python -c \"\nimport json\nwith open\\('work/outline_export_report.json', 'r', encoding='utf-8'\\) as f:\n data = json.load\\(f\\)\n print\\('导出状态:', data.get\\('status'\\)\\)\n if data.get\\('errors'\\):\n print\\('错误:', data['errors'][:300]\\)\n\")"
|
|
]
|
|
}
|
|
}
|