@orbit-build/cli 0.8.3 → 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.
Files changed (44) hide show
  1. package/README.md +4 -1
  2. package/dist/index.js +558 -151
  3. package/package.json +1 -1
  4. package/skills/cumcm-draft/SKILL.md +92 -48
  5. package/skills/cumcm-draft/agents/openai.yaml +1 -1
  6. package/skills/cumcm-draft/assets/project-template/{code → .cumcm}/finalize.py +33 -4
  7. package/skills/cumcm-draft/assets/project-template/{paper/contest-profile.json → .cumcm/profile.json} +9 -6
  8. package/skills/cumcm-draft/assets/project-template/code/requirements.txt +1 -11
  9. 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
  10. package/skills/cumcm-draft/assets/project-template/paper/main.tex +70 -11
  11. package/skills/cumcm-draft/references/code-and-output-style.md +9 -14
  12. package/skills/cumcm-draft/references/cumcm-compliance.md +28 -25
  13. package/skills/cumcm-draft/references/latex-figures-tables.md +1 -1
  14. package/skills/cumcm-draft/references/modeling-quality.md +1 -1
  15. package/skills/cumcm-draft/references/paper-architecture.md +3 -3
  16. package/skills/cumcm-draft/references/project-architecture.md +70 -89
  17. package/skills/cumcm-draft/scripts/audit_paper.py +37 -9
  18. package/skills/cumcm-draft/scripts/bootstrap_project.py +182 -56
  19. package/skills/cumcm-draft/scripts/build_paper.py +38 -23
  20. package/skills/cumcm-draft/scripts/capture_environment.py +3 -1
  21. package/skills/cumcm-draft/scripts/clean_project.py +7 -2
  22. package/skills/cumcm-draft/scripts/evidence_freeze.py +8 -4
  23. package/skills/cumcm-draft/scripts/finalize_project.py +4 -0
  24. package/skills/cumcm-draft/scripts/inspect_inputs.py +6 -4
  25. package/skills/cumcm-draft/scripts/package_support.py +41 -15
  26. package/skills/cumcm-draft/scripts/project_utils.py +40 -8
  27. package/skills/cumcm-draft/scripts/validate_project.py +374 -57
  28. package/skills/cumcm-draft/assets/project-template/code/always/__init__.py +0 -1
  29. package/skills/cumcm-draft/assets/project-template/code/always/config.py +0 -18
  30. package/skills/cumcm-draft/assets/project-template/code/always/data.py +0 -24
  31. package/skills/cumcm-draft/assets/project-template/code/always/plotting.py +0 -25
  32. package/skills/cumcm-draft/assets/project-template/code/always/validation.py +0 -21
  33. package/skills/cumcm-draft/assets/project-template/paper/sections/abstract.tex +0 -6
  34. package/skills/cumcm-draft/assets/project-template/paper/sections/ai-disclosure.tex +0 -3
  35. package/skills/cumcm-draft/assets/project-template/paper/sections/appendix.tex +0 -3
  36. package/skills/cumcm-draft/assets/project-template/paper/sections/assumptions.tex +0 -5
  37. package/skills/cumcm-draft/assets/project-template/paper/sections/data.tex +0 -19
  38. package/skills/cumcm-draft/assets/project-template/paper/sections/evaluation.tex +0 -9
  39. package/skills/cumcm-draft/assets/project-template/paper/sections/problem-analysis.tex +0 -3
  40. package/skills/cumcm-draft/assets/project-template/paper/sections/problem-restatement.tex +0 -3
  41. package/skills/cumcm-draft/assets/project-template/paper/sections/references.tex +0 -12
  42. package/skills/cumcm-draft/assets/project-template/paper/sections/source-code.tex +0 -1
  43. package/skills/cumcm-draft/assets/project-template/paper/sections/support-files.tex +0 -3
  44. /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,6 +0,0 @@
1
- \noindent\textbf{摘要:}
2
- \TODO{写清研究对象、每问采用的方法、关键数值结果及主要检验;不写背景套话。}
3
-
4
- \vspace{0.8em}
5
- \noindent\textbf{关键词:}
6
- \TODO{填写3--5个能够检索模型与研究对象的关键词}
@@ -1,3 +0,0 @@
1
- \section*{AI工具使用声明}
2
-
3
- 本参赛队在竞赛过程中使用了AI工具,主要用于\TODO{如实简述用途与参与深度}。正文相应位置已标注AI辅助内容,所用工具已列入参考文献,关键交互、采纳与人工修改情况见支撑材料中的《AI工具使用详情》。本段不能替代逐处标注、AI参考文献或详情PDF。
@@ -1,3 +0,0 @@
1
- \IfFileExists{sections/support-files.tex}{\input{sections/support-files}}{}
2
-
3
- \IfFileExists{sections/source-code.tex}{\input{sections/source-code}}{}
@@ -1,5 +0,0 @@
1
- \section{模型假设}
2
-
3
- \begin{enumerate}
4
- \item \TODO{给出必要假设,并说明它会排除什么情形或带来何种偏差。}
5
- \end{enumerate}
@@ -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,9 +0,0 @@
1
- \section{模型评价与推广}
2
-
3
- \subsection{模型优点}
4
-
5
- \TODO{结合本题证据说明可解释性、精度、稳健性或计算效率,避免空泛形容。}
6
-
7
- \subsection{模型局限与改进}
8
-
9
- \TODO{指出假设、数据、算法或外推范围造成的具体限制,并给出可执行改进方向。}
@@ -1,3 +0,0 @@
1
- \section{问题分析}
2
-
3
- \TODO{说明各小题之间的数据流、约束关系与总体求解路线。若依赖关系复杂,插入一张信息密度足够的流程图。}
@@ -1,3 +0,0 @@
1
- \section{问题重述}
2
-
3
- \TODO{用自己的语言凝练任务、对象、输入与交付物,不逐句抄写题面。}
@@ -1,12 +0,0 @@
1
- {\footnotesize
2
- \begin{thebibliography}{99}
3
- \setlength{\itemsep}{0.2em}
4
-
5
- \bibitem{todo-reference}
6
- \TODO{按正文首次引用顺序补充真实、可核验的参考文献。}
7
-
8
- \bibitem{ai-tool}
9
- \TODO{按“工具名称,版本/型号,开发机构/公司,使用日期”如实填写AI工具。}
10
-
11
- \end{thebibliography}
12
- }
@@ -1 +0,0 @@
1
- \TODO{运行构建脚本后自动生成代码附录}
@@ -1,3 +0,0 @@
1
- \begin{itemize}
2
- \item \TODO{运行构建脚本后自动生成支撑材料列表}
3
- \end{itemize}