@delta-infra/cli 1.0.78 → 1.0.80
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 +17 -27
- package/checksums.txt +5 -5
- package/package.json +2 -13
- package/scripts/install-wizard.js +14 -5
- package/scripts/install.js +7 -0
- package/skills/delta-science/SKILL.md +128 -149
- package/skills/delta-science/agents/openai.yaml +3 -3
- package/skills/{antbo-service/references/operations.md → delta-science/references/antbo.md} +59 -4
- package/skills/delta-science/references/cli-contract.md +18 -19
- package/skills/delta-science/references/delta-bo.md +90 -0
- package/skills/{gsasii/references/endpoints.md → delta-science/references/gsasii.md} +13 -27
- package/skills/{lammps/references/endpoints.md → delta-science/references/lammps.md} +13 -8
- package/skills/{ldm-bo/references/endpoints.md → delta-science/references/ldm-bo.md} +12 -9
- package/skills/delta-science/references/ldm.md +72 -0
- package/skills/{pubchem/references/endpoints.md → delta-science/references/pubchem.md} +15 -10
- package/skills/{pymatgen/references/endpoints.md → delta-science/references/pymatgen.md} +9 -9
- package/skills/{rdkit/references/endpoints.md → delta-science/references/rdkit.md} +20 -14
- package/skills/delta-science/references/routing-index.md +36 -0
- package/skills/delta-science/references/strbo.md +87 -0
- package/skills/{synbo-service/references/endpoints.md → delta-science/references/synbo.md} +57 -17
- package/skills/delta-science/references/workflows.md +24 -7
- package/skills/delta-science/scripts/catalog.py +92 -0
- package/skills/delta-science/scripts/invoke.py +162 -79
- package/skills/manifest.json +3 -1
- package/skills/antbo-ldm-guard/SKILL.md +0 -58
- package/skills/antbo-ldm-guard/agents/openai.yaml +0 -4
- package/skills/antbo-service/SKILL.md +0 -79
- package/skills/antbo-service/agents/openai.yaml +0 -4
- package/skills/delta-bo/SKILL.md +0 -36
- package/skills/delta-bo/agents/openai.yaml +0 -4
- package/skills/delta-bo/references/endpoints.md +0 -263
- package/skills/delta-science/references/generated-catalog.md +0 -48
- package/skills/delta-science/references/operation-contracts.md +0 -137
- package/skills/delta-science/references/services.md +0 -112
- package/skills/delta-science/scripts/generated_catalog.py +0 -69
- package/skills/gsasii/SKILL.md +0 -42
- package/skills/gsasii/agents/openai.yaml +0 -4
- package/skills/lammps/SKILL.md +0 -39
- package/skills/lammps/agents/openai.yaml +0 -4
- package/skills/ldm-bo/SKILL.md +0 -35
- package/skills/ldm-bo/agents/openai.yaml +0 -4
- package/skills/pubchem/SKILL.md +0 -93
- package/skills/pubchem/agents/openai.yaml +0 -4
- package/skills/pubchem/references/operations.md +0 -41
- package/skills/pymatgen/SKILL.md +0 -54
- package/skills/pymatgen/agents/openai.yaml +0 -4
- package/skills/rdkit/SKILL.md +0 -112
- package/skills/rdkit/agents/openai.yaml +0 -4
- package/skills/rdkit/references/operations.md +0 -64
- package/skills/science-tools.json +0 -127
- package/skills/synbo-service/SKILL.md +0 -36
- package/skills/synbo-service/agents/openai.yaml +0 -4
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
# RDKit operation 契约
|
|
2
|
-
|
|
3
|
-
所有示例都在 `SKILL.md` 的 wrapper 模板中设置 `endpoint` 和 `payload`。业务结果直接
|
|
4
|
-
位于 `r["native"]`。只做用户请求所需的一次调用,成功后调用 `step_finish`。
|
|
5
|
-
|
|
6
|
-
## health
|
|
7
|
-
|
|
8
|
-
- 情景:明确检查 RDKit 服务状态。
|
|
9
|
-
- 代码:`endpoint="health"; payload=None`,调用时省略 `--data-json`。
|
|
10
|
-
- 投影:status、可用性、metadata、limits、warnings 中存在的字段。
|
|
11
|
-
|
|
12
|
-
## parse
|
|
13
|
-
|
|
14
|
-
- 情景:只校验并规范化一个 SMILES/InChI。
|
|
15
|
-
- 代码:`endpoint="parse"; payload={"input":"CCO","format":"smiles"}`
|
|
16
|
-
- 投影:valid、canonical_smiles、formula、inchi_key、warnings/error。
|
|
17
|
-
|
|
18
|
-
## descriptors
|
|
19
|
-
|
|
20
|
-
- 情景:只计算一个已知 SMILES 的描述符。
|
|
21
|
-
- 代码:`endpoint="descriptors"; payload={"smiles":"CCO","descriptor_set":"basic","sanitize":True}`
|
|
22
|
-
- 投影:valid 与 descriptors 中实际返回的键。
|
|
23
|
-
|
|
24
|
-
## batch-descriptors
|
|
25
|
-
|
|
26
|
-
- 情景:对多个已知且无需再次解析的 SMILES 计算同一组描述符。
|
|
27
|
-
- 代码:`endpoint="batch-descriptors"; payload={"smiles":["CCO","c1ccccc1"],"descriptor_set":"basic","sanitize":True}`
|
|
28
|
-
- 投影:results 中每项的输入 SMILES、valid、descriptors、warnings/error。
|
|
29
|
-
|
|
30
|
-
## batch-parse-describe
|
|
31
|
-
|
|
32
|
-
- 情景:同时校验、规范化并计算一个或多个分子的描述符。
|
|
33
|
-
- 代码:`endpoint="batch-parse-describe"; payload={"molecules":[{"id":"aspirin","smiles":"CC(=O)OC1=CC=CC=C1C(=O)O"}],"descriptor_set":"basic","sanitize":True}`
|
|
34
|
-
- 投影:results 中 id、valid、canonical_smiles、descriptors、warnings/error。
|
|
35
|
-
|
|
36
|
-
## render
|
|
37
|
-
|
|
38
|
-
- 情景:用户明确要求分子结构图。
|
|
39
|
-
- 代码:`endpoint="render"; payload={"smiles":"CCO","image_format":"png","width":500,"height":400}`
|
|
40
|
-
- 投影:只解码文档指定的 base64 字段;验证 PNG magic bytes 后再保存。
|
|
41
|
-
|
|
42
|
-
## fingerprint
|
|
43
|
-
|
|
44
|
-
- 情景:明确要求一个分子的 Morgan 指纹。
|
|
45
|
-
- 代码:`endpoint="fingerprint"; payload={"smiles":"CCO","radius":2,"n_bits":2048}`
|
|
46
|
-
- 投影:valid、fingerprint_metadata、on_bits、warnings/error。
|
|
47
|
-
|
|
48
|
-
## similarity
|
|
49
|
-
|
|
50
|
-
- 情景:比较两个已知 SMILES。
|
|
51
|
-
- 代码:`endpoint="similarity"; payload={"query_smiles":"CCO","target_smiles":"CCN","radius":2,"n_bits":2048}`
|
|
52
|
-
- 投影:native 实际返回的 similarity、metric、fingerprint metadata。
|
|
53
|
-
|
|
54
|
-
## similarity-matrix
|
|
55
|
-
|
|
56
|
-
- 情景:比较三个及以上分子的所有两两相似度。
|
|
57
|
-
- 代码:`endpoint="similarity-matrix"; payload={"molecules":[{"id":"a","smiles":"CCO"},{"id":"b","smiles":"CCN"}],"fingerprint":{"type":"morgan","radius":2,"n_bits":2048},"sanitize":True}`
|
|
58
|
-
- 投影:matrix 与 `ranked_pairs[{a,b,similarity}]`;禁止 i/j/score。
|
|
59
|
-
|
|
60
|
-
## substructure
|
|
61
|
-
|
|
62
|
-
- 情景:用 SMARTS 在一个或多个目标 SMILES 中筛选子结构。
|
|
63
|
-
- 代码:`endpoint="substructure"; payload={"query_smarts":"C(=O)O","target_smiles":["CC(=O)O","CCO"],"sanitize":True}`
|
|
64
|
-
- 投影:query、每个目标的 valid/match/matches 与 warnings/error。
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schema_version": 1,
|
|
3
|
-
"base_skills": [
|
|
4
|
-
"delta-sandbox",
|
|
5
|
-
"delta-shared",
|
|
6
|
-
"delta-science"
|
|
7
|
-
],
|
|
8
|
-
"tools": [
|
|
9
|
-
{
|
|
10
|
-
"name": "pubchem",
|
|
11
|
-
"skill": "pubchem",
|
|
12
|
-
"legacy_tool": "pubchem",
|
|
13
|
-
"category": "molecule-information",
|
|
14
|
-
"operations": {
|
|
15
|
-
"health": "chem_pubchem_health",
|
|
16
|
-
"compound-resolve-cids": "chem_pubchem_compound_resolve-cids",
|
|
17
|
-
"compound-properties": "chem_pubchem_compound_properties",
|
|
18
|
-
"compound-synonyms": "chem_pubchem_compound_synonyms",
|
|
19
|
-
"compound-summary": "chem_pubchem_compound_summary",
|
|
20
|
-
"compound-batch-summary": "chem_pubchem_compound_batch-summary"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"name": "rdkit",
|
|
25
|
-
"skill": "rdkit",
|
|
26
|
-
"legacy_tool": "rdkit",
|
|
27
|
-
"category": "cheminformatics",
|
|
28
|
-
"operations": {
|
|
29
|
-
"health": "chem_rdkit_health",
|
|
30
|
-
"parse": "chem_rdkit_parse",
|
|
31
|
-
"descriptors": "chem_rdkit_descriptors",
|
|
32
|
-
"batch-descriptors": "chem_rdkit_batch-descriptors",
|
|
33
|
-
"batch-parse-describe": "chem_rdkit_batch-parse-describe",
|
|
34
|
-
"render": "chem_rdkit_render",
|
|
35
|
-
"fingerprint": "chem_rdkit_fingerprint",
|
|
36
|
-
"similarity": "chem_rdkit_similarity",
|
|
37
|
-
"similarity-matrix": "chem_rdkit_similarity-matrix",
|
|
38
|
-
"substructure": "chem_rdkit_substructure"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"name": "pymatgen",
|
|
43
|
-
"skill": "pymatgen",
|
|
44
|
-
"legacy_tool": "pymatgen",
|
|
45
|
-
"category": "materials-informatics",
|
|
46
|
-
"operations": {
|
|
47
|
-
"health": "chem_pymatgen_health",
|
|
48
|
-
"composition-parse": "chem_pymatgen_composition_parse",
|
|
49
|
-
"structure-parse": "chem_pymatgen_structure_parse",
|
|
50
|
-
"structure-summary": "chem_pymatgen_structure_summary",
|
|
51
|
-
"structure-convert": "chem_pymatgen_structure_convert",
|
|
52
|
-
"structure-symmetry": "chem_pymatgen_structure_symmetry"
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"name": "gsasii",
|
|
57
|
-
"skill": "gsasii",
|
|
58
|
-
"legacy_tool": "gsasii",
|
|
59
|
-
"category": "diffraction",
|
|
60
|
-
"operations": {
|
|
61
|
-
"health": "chem_gsasii_health",
|
|
62
|
-
"powder-simulate": "chem_gsasii_powder_simulate",
|
|
63
|
-
"powder-refine": "chem_gsasii_powder_refine"
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"name": "lammps",
|
|
68
|
-
"skill": "lammps",
|
|
69
|
-
"legacy_tool": "lammps",
|
|
70
|
-
"category": "molecular-dynamics",
|
|
71
|
-
"operations": {
|
|
72
|
-
"health": "chem_lammps_health",
|
|
73
|
-
"lj-melt-example": "chem_lammps_examples_lj-melt",
|
|
74
|
-
"run": "chem_lammps_run"
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"name": "delta-bo",
|
|
79
|
-
"skill": "delta-bo",
|
|
80
|
-
"legacy_tool": "delta-bo",
|
|
81
|
-
"category": "optimization",
|
|
82
|
-
"operations": {
|
|
83
|
-
"commands": "chem_delta-bo_commands",
|
|
84
|
-
"generate": "chem_delta-bo_generate"
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"name": "ldm-bo",
|
|
89
|
-
"skill": "ldm-bo",
|
|
90
|
-
"legacy_tool": "ldm-bo",
|
|
91
|
-
"category": "molecule-optimization",
|
|
92
|
-
"operations": {
|
|
93
|
-
"health": "chem_ldm-bo_health",
|
|
94
|
-
"recommend": "chem_ldm-bo_recommend",
|
|
95
|
-
"trajectory": "chem_ldm-bo_trajectory"
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"name": "synbo",
|
|
100
|
-
"skill": "synbo-service",
|
|
101
|
-
"legacy_tool": "synbo-service",
|
|
102
|
-
"category": "reaction-optimization",
|
|
103
|
-
"operations": {
|
|
104
|
-
"health": "chem_synbo_health",
|
|
105
|
-
"initialize": "chem_synbo_initialize",
|
|
106
|
-
"optimize": "chem_synbo_optimize"
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"name": "antbo",
|
|
111
|
-
"skill": "antbo-service",
|
|
112
|
-
"legacy_tool": "antbo-service",
|
|
113
|
-
"category": "antibody-optimization",
|
|
114
|
-
"operations": {
|
|
115
|
-
"health": "biology_antbo_health",
|
|
116
|
-
"run-default-job": "biology_antbo_run_default_job",
|
|
117
|
-
"run": "biology_antbo_run",
|
|
118
|
-
"log": "biology_antbo_log",
|
|
119
|
-
"jobs": "biology_antbo_jobs",
|
|
120
|
-
"stop": "biology_antbo_stop"
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
],
|
|
124
|
-
"extra_skills": [
|
|
125
|
-
"antbo-ldm-guard"
|
|
126
|
-
]
|
|
127
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: synbo-service
|
|
3
|
-
description: 当用户需要对分类反应条件空间做初始采样,或基于真实历史反应结果使用 SynBO 推荐下一批催化剂、溶剂、碱等条件时使用。支持 health、initialize、optimize;所有调用只走 Delta CLI,重型 optimize 串行执行且超时不自动重试。
|
|
4
|
-
metadata:
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- read_file
|
|
7
|
-
- python_repl
|
|
8
|
-
- step_finish
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
# SynBO 服务
|
|
12
|
-
|
|
13
|
-
## 强制规则
|
|
14
|
-
|
|
15
|
-
- 只用 `python_repl` 执行 `$SKILLS_ROOT/delta-science/scripts/invoke.py`,
|
|
16
|
-
tool=`synbo`;禁止 Bash、路径探测、字面 CLI、直接 HTTP 和本地 SynBO/GP。
|
|
17
|
-
- `python_repl` 工具参数只能包含 `code`,禁止 `deps/dependencies/packages`。
|
|
18
|
-
- 业务结果直接位于 `r["native"]`,禁止 `native.data`。
|
|
19
|
-
- `health` 无 body;`initialize` 和 `optimize` 使用 `--data-json`。
|
|
20
|
-
- 重型调用串行执行;timeout/断连结果未知,不自动重试。
|
|
21
|
-
|
|
22
|
-
## operation 选择
|
|
23
|
-
|
|
24
|
-
- `initialize`:没有 measured previous results 时使用。提供 `condition_dict`、
|
|
25
|
-
`opt_metrics`、方向/range/weight 设置、batch_size、sampling_method 和 seed。
|
|
26
|
-
- `optimize`:只有存在真实历史时使用。每一行必须包含全部 condition 列和全部数值
|
|
27
|
-
metric 列;有界 CPU 测试用 `accuracy:"tiny"`、`device:"cpu"`。
|
|
28
|
-
- descriptors 如提供,键必须与 condition_dict 完全一致,index 列存在且其余为数值。
|
|
29
|
-
|
|
30
|
-
完整成功 payload 见 `references/endpoints.md`。若 optimize 返回数组维度错误、timeout、
|
|
31
|
-
空 recommendations 或后端失败,报告“未产生推荐”,不得用本地 GP、UCB、响应面、
|
|
32
|
-
随机采样或人工排序替代。
|
|
33
|
-
|
|
34
|
-
通过 wrapper 调用一次,显式打印 recommendations/metadata/warnings 或有界错误;成功
|
|
35
|
-
后立即 `step_finish(status="done", summary=<同一 JSON>)`,失败则
|
|
36
|
-
`step_finish(status="failed", summary=<原始错误短摘要>)`。禁止后续工具。
|