feat(release): optimize upload zip to include only report/spec/data files
This commit is contained in:
@@ -15,5 +15,5 @@
|
|||||||
"keep package scripts within release envelope"
|
"keep package scripts within release envelope"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"source_zip_sha256": "74021cf35b92462d7f74f18721ef3c4d84398e034672958855ec2e2211ec4735"
|
"source_zip_sha256": "9e236e9160fc5a55b90e45e7744bc19e3721a1c698bfebacea292b2ce326f3ef"
|
||||||
}
|
}
|
||||||
@@ -88,6 +88,21 @@ TEMP_KEEP_FILES = {
|
|||||||
"single_truth_ledger_v2.json",
|
"single_truth_ledger_v2.json",
|
||||||
"smart_cash_recovery_v7.json",
|
"smart_cash_recovery_v7.json",
|
||||||
"smart_cash_recovery_v9.json",
|
"smart_cash_recovery_v9.json",
|
||||||
|
# Data Analysis & Verification Reports
|
||||||
|
"horizon_rebalance_plan_v1.json",
|
||||||
|
"factor_lifecycle_completeness_v1.json",
|
||||||
|
"factor_shadow_eligibility_v1.json",
|
||||||
|
"algorithm_guidance_proof_v1.json",
|
||||||
|
"strategy_routing_audit_v1.json",
|
||||||
|
}
|
||||||
|
|
||||||
|
UPLOAD_KEEP_DIRS_UPLOAD = {
|
||||||
|
"artifacts",
|
||||||
|
"docs",
|
||||||
|
"governance",
|
||||||
|
"runtime",
|
||||||
|
"spec",
|
||||||
|
"Temp",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -153,15 +168,12 @@ def should_include(path: Path, mode: str, include_xlsx: bool, include_backups: b
|
|||||||
top = parts[0]
|
top = parts[0]
|
||||||
if len(parts) == 1:
|
if len(parts) == 1:
|
||||||
return path.name in UPLOAD_KEEP_FILES
|
return path.name in UPLOAD_KEEP_FILES
|
||||||
if top not in UPLOAD_KEEP_DIRS:
|
|
||||||
|
# Strictly exclude code directories (src, tools, tests, dist) in upload mode to limit LLM context
|
||||||
|
if top not in UPLOAD_KEEP_DIRS_UPLOAD:
|
||||||
return False
|
return False
|
||||||
if top == "tools" and path.name.endswith(".bak"):
|
if top == "tools" and path.name.endswith(".bak"):
|
||||||
return False
|
return False
|
||||||
if top == "dist":
|
|
||||||
return path.name in {
|
|
||||||
"retirement_portfolio_compact.yaml",
|
|
||||||
"retirement_portfolio_ultra_compact.yaml",
|
|
||||||
}
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user