@delta-infra/cli 1.0.79 → 1.0.81

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 (61) hide show
  1. package/README.md +427 -437
  2. package/checksums.txt +5 -5
  3. package/package.json +2 -13
  4. package/scripts/install-wizard.js +625 -616
  5. package/scripts/install.js +417 -417
  6. package/scripts/run.js +65 -65
  7. package/skills/delta-sandbox/SKILL.md +356 -356
  8. package/skills/delta-sandbox/agents/openai.yaml +4 -4
  9. package/skills/delta-sandbox/references/commands.md +56 -56
  10. package/skills/delta-sandbox/references/lifecycle.md +92 -92
  11. package/skills/delta-sandbox/references/recipes.md +133 -133
  12. package/skills/delta-science/SKILL.md +149 -170
  13. package/skills/delta-science/agents/openai.yaml +4 -4
  14. package/skills/delta-science/references/antbo.md +100 -0
  15. package/skills/delta-science/references/cli-contract.md +74 -75
  16. package/skills/delta-science/references/delta-bo.md +90 -0
  17. package/skills/{gsasii/references/endpoints.md → delta-science/references/gsasii.md} +116 -130
  18. package/skills/{lammps/references/endpoints.md → delta-science/references/lammps.md} +66 -61
  19. package/skills/{ldm-bo/references/endpoints.md → delta-science/references/ldm-bo.md} +127 -124
  20. package/skills/delta-science/references/ldm.md +72 -0
  21. package/skills/{pubchem/references/endpoints.md → delta-science/references/pubchem.md} +127 -122
  22. package/skills/{pymatgen/references/endpoints.md → delta-science/references/pymatgen.md} +68 -68
  23. package/skills/{rdkit/references/endpoints.md → delta-science/references/rdkit.md} +139 -133
  24. package/skills/delta-science/references/routing-index.md +36 -0
  25. package/skills/delta-science/references/strbo.md +87 -0
  26. package/skills/{synbo-service/references/endpoints.md → delta-science/references/synbo.md} +197 -157
  27. package/skills/delta-science/references/workflows.md +58 -41
  28. package/skills/delta-science/scripts/catalog.py +92 -0
  29. package/skills/delta-science/scripts/invoke.py +310 -227
  30. package/skills/delta-shared/SKILL.md +95 -95
  31. package/skills/delta-shared/agents/openai.yaml +4 -4
  32. package/skills/manifest.json +3 -1
  33. package/skills/antbo-ldm-guard/SKILL.md +0 -58
  34. package/skills/antbo-ldm-guard/agents/openai.yaml +0 -4
  35. package/skills/antbo-service/SKILL.md +0 -79
  36. package/skills/antbo-service/agents/openai.yaml +0 -4
  37. package/skills/antbo-service/references/operations.md +0 -45
  38. package/skills/delta-bo/SKILL.md +0 -36
  39. package/skills/delta-bo/agents/openai.yaml +0 -4
  40. package/skills/delta-bo/references/endpoints.md +0 -263
  41. package/skills/delta-science/references/generated-catalog.md +0 -48
  42. package/skills/delta-science/references/operation-contracts.md +0 -137
  43. package/skills/delta-science/references/services.md +0 -112
  44. package/skills/delta-science/scripts/generated_catalog.py +0 -69
  45. package/skills/gsasii/SKILL.md +0 -42
  46. package/skills/gsasii/agents/openai.yaml +0 -4
  47. package/skills/lammps/SKILL.md +0 -39
  48. package/skills/lammps/agents/openai.yaml +0 -4
  49. package/skills/ldm-bo/SKILL.md +0 -35
  50. package/skills/ldm-bo/agents/openai.yaml +0 -4
  51. package/skills/pubchem/SKILL.md +0 -93
  52. package/skills/pubchem/agents/openai.yaml +0 -4
  53. package/skills/pubchem/references/operations.md +0 -41
  54. package/skills/pymatgen/SKILL.md +0 -54
  55. package/skills/pymatgen/agents/openai.yaml +0 -4
  56. package/skills/rdkit/SKILL.md +0 -112
  57. package/skills/rdkit/agents/openai.yaml +0 -4
  58. package/skills/rdkit/references/operations.md +0 -64
  59. package/skills/science-tools.json +0 -127
  60. package/skills/synbo-service/SKILL.md +0 -36
  61. package/skills/synbo-service/agents/openai.yaml +0 -4
package/scripts/run.js CHANGED
@@ -1,65 +1,65 @@
1
- #!/usr/bin/env node
2
- // Copyright (c) 2026 Delta Infra Authors
3
- // SPDX-License-Identifier: MIT
4
-
5
- const { execFileSync } = require("child_process");
6
- const fs = require("fs");
7
- const path = require("path");
8
-
9
- const ext = process.platform === "win32" ? ".exe" : "";
10
- const bin = path.join(__dirname, "..", "bin", "delta-cli" + ext);
11
-
12
- // On Windows, a crashed self-update may have left the binary renamed to .old.
13
- const oldBin = bin + ".old";
14
- function restoreOldBinary() {
15
- try {
16
- if (fs.existsSync(bin)) {
17
- fs.rmSync(bin, { force: true });
18
- }
19
- fs.renameSync(oldBin, bin);
20
- return true;
21
- } catch { return false; }
22
- }
23
-
24
- if (process.platform === "win32" && fs.existsSync(oldBin)) {
25
- if (!fs.existsSync(bin)) {
26
- restoreOldBinary();
27
- } else {
28
- try {
29
- execFileSync(bin, ["--version"], { stdio: "ignore", timeout: 10000 });
30
- try { fs.rmSync(oldBin, { force: true }); } catch {}
31
- } catch {
32
- restoreOldBinary();
33
- }
34
- }
35
- }
36
-
37
- const args = process.argv.slice(2);
38
-
39
- // Intercept install/uninstall — run wizard, bypass native binary
40
- if (args[0] === "install" || args[0] === "uninstall") {
41
- require("./install-wizard.js");
42
- } else {
43
- // Auto-download binary if missing (e.g. npx skipped postinstall)
44
- if (!fs.existsSync(bin)) {
45
- try {
46
- execFileSync(process.execPath, [path.join(__dirname, "install.js")], {
47
- stdio: "inherit",
48
- env: { ...process.env, DELTA_CLI_RUN: "true", DELTA_CLI_VERSION: process.env.DELTA_CLI_VERSION || "" },
49
- });
50
- } catch {
51
- console.error(
52
- `\nFailed to auto-install delta-cli binary.\n` +
53
- `To fix, run the install script manually:\n` +
54
- ` node "${path.join(__dirname, "install.js")}"\n`
55
- );
56
- process.exit(1);
57
- }
58
- }
59
-
60
- try {
61
- execFileSync(bin, args, { stdio: "inherit" });
62
- } catch (e) {
63
- process.exit(e.status || 1);
64
- }
65
- }
1
+ #!/usr/bin/env node
2
+ // Copyright (c) 2026 Delta Infra Authors
3
+ // SPDX-License-Identifier: MIT
4
+
5
+ const { execFileSync } = require("child_process");
6
+ const fs = require("fs");
7
+ const path = require("path");
8
+
9
+ const ext = process.platform === "win32" ? ".exe" : "";
10
+ const bin = path.join(__dirname, "..", "bin", "delta-cli" + ext);
11
+
12
+ // On Windows, a crashed self-update may have left the binary renamed to .old.
13
+ const oldBin = bin + ".old";
14
+ function restoreOldBinary() {
15
+ try {
16
+ if (fs.existsSync(bin)) {
17
+ fs.rmSync(bin, { force: true });
18
+ }
19
+ fs.renameSync(oldBin, bin);
20
+ return true;
21
+ } catch { return false; }
22
+ }
23
+
24
+ if (process.platform === "win32" && fs.existsSync(oldBin)) {
25
+ if (!fs.existsSync(bin)) {
26
+ restoreOldBinary();
27
+ } else {
28
+ try {
29
+ execFileSync(bin, ["--version"], { stdio: "ignore", timeout: 10000 });
30
+ try { fs.rmSync(oldBin, { force: true }); } catch {}
31
+ } catch {
32
+ restoreOldBinary();
33
+ }
34
+ }
35
+ }
36
+
37
+ const args = process.argv.slice(2);
38
+
39
+ // Intercept install/uninstall — run wizard, bypass native binary
40
+ if (args[0] === "install" || args[0] === "uninstall") {
41
+ require("./install-wizard.js");
42
+ } else {
43
+ // Auto-download binary if missing (e.g. npx skipped postinstall)
44
+ if (!fs.existsSync(bin)) {
45
+ try {
46
+ execFileSync(process.execPath, [path.join(__dirname, "install.js")], {
47
+ stdio: "inherit",
48
+ env: { ...process.env, DELTA_CLI_RUN: "true", DELTA_CLI_VERSION: process.env.DELTA_CLI_VERSION || "" },
49
+ });
50
+ } catch {
51
+ console.error(
52
+ `\nFailed to auto-install delta-cli binary.\n` +
53
+ `To fix, run the install script manually:\n` +
54
+ ` node "${path.join(__dirname, "install.js")}"\n`
55
+ );
56
+ process.exit(1);
57
+ }
58
+ }
59
+
60
+ try {
61
+ execFileSync(bin, args, { stdio: "inherit" });
62
+ } catch (e) {
63
+ process.exit(e.status || 1);
64
+ }
65
+ }