@delta-infra/cli 1.1.14 → 1.1.15

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 (32) hide show
  1. package/README.md +493 -493
  2. package/checksums.txt +5 -5
  3. package/package.json +1 -1
  4. package/scripts/install-wizard.js +701 -701
  5. package/scripts/install.js +442 -442
  6. package/scripts/run.js +65 -65
  7. package/skills/delta-sandbox/SKILL.md +386 -386
  8. package/skills/delta-sandbox/agents/openai.yaml +4 -4
  9. package/skills/delta-sandbox/references/commands.md +58 -58
  10. package/skills/delta-sandbox/references/lifecycle.md +100 -100
  11. package/skills/delta-sandbox/references/recipes.md +138 -138
  12. package/skills/delta-science/AGENTS.md +47 -47
  13. package/skills/delta-science/SKILL.md +182 -174
  14. package/skills/delta-science/agents/openai.yaml +4 -4
  15. package/skills/delta-science/references/antbo.md +100 -100
  16. package/skills/delta-science/references/delta-bo.md +89 -89
  17. package/skills/delta-science/references/gsasii.md +116 -116
  18. package/skills/delta-science/references/lammps.md +66 -66
  19. package/skills/delta-science/references/ldm-bo.md +129 -129
  20. package/skills/delta-science/references/materials-design.md +118 -118
  21. package/skills/delta-science/references/pubchem.md +126 -126
  22. package/skills/delta-science/references/pymatgen.md +68 -68
  23. package/skills/delta-science/references/qe.md +125 -125
  24. package/skills/delta-science/references/rdkit.md +138 -138
  25. package/skills/delta-science/references/strbo.md +87 -87
  26. package/skills/delta-science/references/synbo.md +198 -198
  27. package/skills/delta-science/scripts/catalog.py +92 -92
  28. package/skills/delta-science/scripts/generated_catalog.py +69 -69
  29. package/skills/delta-science/scripts/invoke.py +346 -346
  30. package/skills/delta-shared/SKILL.md +111 -111
  31. package/skills/delta-shared/agents/openai.yaml +4 -4
  32. package/skills/manifest.json +19 -19
package/scripts/run.js CHANGED
@@ -1,65 +1,65 @@
1
- #!/usr/bin/env node
2
- // Copyright (c) 2026 Delta Agent Cloud 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 Agent Cloud 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
+ }