@orbit-build/cli 0.8.2 → 0.8.5
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 +4 -1
- package/dist/index.js +1407 -582
- package/package.json +1 -1
- package/skills/cumcm-draft/SKILL.md +92 -48
- package/skills/cumcm-draft/agents/openai.yaml +1 -1
- package/skills/cumcm-draft/assets/project-template/{code → .cumcm}/finalize.py +33 -4
- package/skills/cumcm-draft/assets/project-template/{paper/contest-profile.json → .cumcm/profile.json} +9 -6
- package/skills/cumcm-draft/assets/project-template/code/requirements.txt +1 -11
- package/skills/cumcm-draft/assets/project-template/paper/AI/345/267/245/345/205/267/344/275/277/347/224/250/350/257/246/346/203/205.tex +1 -11
- package/skills/cumcm-draft/assets/project-template/paper/main.tex +70 -11
- package/skills/cumcm-draft/references/code-and-output-style.md +9 -14
- package/skills/cumcm-draft/references/cumcm-compliance.md +28 -25
- package/skills/cumcm-draft/references/latex-figures-tables.md +1 -1
- package/skills/cumcm-draft/references/modeling-quality.md +1 -1
- package/skills/cumcm-draft/references/paper-architecture.md +3 -3
- package/skills/cumcm-draft/references/project-architecture.md +70 -89
- package/skills/cumcm-draft/scripts/audit_paper.py +37 -9
- package/skills/cumcm-draft/scripts/bootstrap_project.py +182 -56
- package/skills/cumcm-draft/scripts/build_paper.py +38 -23
- package/skills/cumcm-draft/scripts/capture_environment.py +3 -1
- package/skills/cumcm-draft/scripts/clean_project.py +7 -2
- package/skills/cumcm-draft/scripts/evidence_freeze.py +8 -4
- package/skills/cumcm-draft/scripts/finalize_project.py +4 -0
- package/skills/cumcm-draft/scripts/inspect_inputs.py +6 -4
- package/skills/cumcm-draft/scripts/package_support.py +41 -15
- package/skills/cumcm-draft/scripts/project_utils.py +40 -8
- package/skills/cumcm-draft/scripts/validate_project.py +374 -57
- package/skills/cumcm-draft/assets/project-template/code/always/__init__.py +0 -1
- package/skills/cumcm-draft/assets/project-template/code/always/config.py +0 -18
- package/skills/cumcm-draft/assets/project-template/code/always/data.py +0 -24
- package/skills/cumcm-draft/assets/project-template/code/always/plotting.py +0 -25
- package/skills/cumcm-draft/assets/project-template/code/always/validation.py +0 -21
- package/skills/cumcm-draft/assets/project-template/paper/sections/abstract.tex +0 -6
- package/skills/cumcm-draft/assets/project-template/paper/sections/ai-disclosure.tex +0 -3
- package/skills/cumcm-draft/assets/project-template/paper/sections/appendix.tex +0 -3
- package/skills/cumcm-draft/assets/project-template/paper/sections/assumptions.tex +0 -5
- package/skills/cumcm-draft/assets/project-template/paper/sections/data.tex +0 -19
- package/skills/cumcm-draft/assets/project-template/paper/sections/evaluation.tex +0 -9
- package/skills/cumcm-draft/assets/project-template/paper/sections/problem-analysis.tex +0 -3
- package/skills/cumcm-draft/assets/project-template/paper/sections/problem-restatement.tex +0 -3
- package/skills/cumcm-draft/assets/project-template/paper/sections/references.tex +0 -12
- package/skills/cumcm-draft/assets/project-template/paper/sections/source-code.tex +0 -1
- package/skills/cumcm-draft/assets/project-template/paper/sections/support-files.tex +0 -3
- /package/skills/cumcm-draft/assets/project-template/{paper → .cumcm}/ai-use-log.md +0 -0
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from pathlib import Path
|
|
4
|
-
|
|
5
|
-
import matplotlib.pyplot as plt
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def setup_plotting() -> None:
|
|
9
|
-
# 字体按可用顺序回退,保证中文图在不同机器上仍可复现。
|
|
10
|
-
plt.rcParams["font.sans-serif"] = [
|
|
11
|
-
"Microsoft YaHei",
|
|
12
|
-
"SimHei",
|
|
13
|
-
"Noto Sans CJK SC",
|
|
14
|
-
"Arial Unicode MS",
|
|
15
|
-
]
|
|
16
|
-
plt.rcParams["axes.unicode_minus"] = False
|
|
17
|
-
plt.rcParams["figure.dpi"] = 140
|
|
18
|
-
plt.rcParams["savefig.dpi"] = 300
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
def save_figure(path: Path) -> None:
|
|
22
|
-
path.parent.mkdir(parents=True, exist_ok=True)
|
|
23
|
-
plt.tight_layout()
|
|
24
|
-
plt.savefig(path, bbox_inches="tight")
|
|
25
|
-
plt.close()
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
import json
|
|
4
|
-
from pathlib import Path
|
|
5
|
-
from typing import Any
|
|
6
|
-
|
|
7
|
-
import numpy as np
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
def require_finite(values: np.ndarray, label: str) -> None:
|
|
11
|
-
# 在结果落盘前阻断 NaN 和无穷值,避免论文引用无效数值。
|
|
12
|
-
if not np.isfinite(values).all():
|
|
13
|
-
raise ValueError(f"{label} contains non-finite values.")
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
def write_summary(path: Path, payload: dict[str, Any]) -> None:
|
|
17
|
-
path.parent.mkdir(parents=True, exist_ok=True)
|
|
18
|
-
path.write_text(
|
|
19
|
-
json.dumps(payload, ensure_ascii=False, indent=2) + "\n",
|
|
20
|
-
encoding="utf-8",
|
|
21
|
-
)
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
\section{符号说明与数据预处理}
|
|
2
|
-
|
|
3
|
-
\subsection{主要符号}
|
|
4
|
-
|
|
5
|
-
\begin{table}[H]
|
|
6
|
-
\centering
|
|
7
|
-
\caption{主要符号及含义}
|
|
8
|
-
\begin{tabular}{cll}
|
|
9
|
-
\toprule
|
|
10
|
-
符号 & 含义 & 单位 \\
|
|
11
|
-
\midrule
|
|
12
|
-
\TODO{符号} & \TODO{含义} & \TODO{单位} \\
|
|
13
|
-
\bottomrule
|
|
14
|
-
\end{tabular}
|
|
15
|
-
\end{table}
|
|
16
|
-
|
|
17
|
-
\subsection{数据审计与预处理}
|
|
18
|
-
|
|
19
|
-
\TODO{报告数据规模、缺失/异常/重复情况、单位转换和预处理原则。保留关键诊断证据。}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
\TODO{运行构建脚本后自动生成代码附录}
|
|
File without changes
|