@studio-foundation/cli 0.9.0 → 0.11.0

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 (77) hide show
  1. package/bin/studio.mjs +41 -0
  2. package/dist/binary-preflight.d.ts +28 -0
  3. package/dist/binary-preflight.d.ts.map +1 -0
  4. package/dist/binary-preflight.js +0 -0
  5. package/dist/binary-preflight.js.map +1 -0
  6. package/dist/commands/api.d.ts.map +1 -1
  7. package/dist/commands/api.js +14 -0
  8. package/dist/commands/api.js.map +1 -1
  9. package/dist/commands/cache.d.ts +7 -0
  10. package/dist/commands/cache.d.ts.map +1 -0
  11. package/dist/commands/cache.js +56 -0
  12. package/dist/commands/cache.js.map +1 -0
  13. package/dist/commands/doctor.d.ts +2 -0
  14. package/dist/commands/doctor.d.ts.map +1 -0
  15. package/dist/commands/doctor.js +38 -0
  16. package/dist/commands/doctor.js.map +1 -0
  17. package/dist/commands/init.d.ts +9 -1
  18. package/dist/commands/init.d.ts.map +1 -1
  19. package/dist/commands/init.js +41 -15
  20. package/dist/commands/init.js.map +1 -1
  21. package/dist/commands/integrations.js +2 -2
  22. package/dist/commands/integrations.js.map +1 -1
  23. package/dist/commands/project.d.ts.map +1 -1
  24. package/dist/commands/project.js +17 -20
  25. package/dist/commands/project.js.map +1 -1
  26. package/dist/commands/registry/install.d.ts.map +1 -1
  27. package/dist/commands/registry/install.js +11 -7
  28. package/dist/commands/registry/install.js.map +1 -1
  29. package/dist/commands/replay.d.ts.map +1 -1
  30. package/dist/commands/replay.js +4 -0
  31. package/dist/commands/replay.js.map +1 -1
  32. package/dist/commands/run.d.ts.map +1 -1
  33. package/dist/commands/run.js +57 -20
  34. package/dist/commands/run.js.map +1 -1
  35. package/dist/commands/status.d.ts +2 -0
  36. package/dist/commands/status.d.ts.map +1 -1
  37. package/dist/commands/status.js +77 -33
  38. package/dist/commands/status.js.map +1 -1
  39. package/dist/commands/template/index.d.ts.map +1 -1
  40. package/dist/commands/template/index.js +1 -0
  41. package/dist/commands/template/index.js.map +1 -1
  42. package/dist/commands/templates.d.ts.map +1 -1
  43. package/dist/commands/templates.js +9 -21
  44. package/dist/commands/templates.js.map +1 -1
  45. package/dist/commands/tools.js +3 -3
  46. package/dist/commands/tools.js.map +1 -1
  47. package/dist/config-validation.d.ts +26 -0
  48. package/dist/config-validation.d.ts.map +1 -0
  49. package/dist/config-validation.js +82 -0
  50. package/dist/config-validation.js.map +1 -0
  51. package/dist/config.d.ts +6 -1
  52. package/dist/config.d.ts.map +1 -1
  53. package/dist/config.js +3 -7
  54. package/dist/config.js.map +1 -1
  55. package/dist/generated/bundled-assets.d.ts +4 -0
  56. package/dist/generated/bundled-assets.d.ts.map +1 -0
  57. package/dist/generated/bundled-assets.js +11 -0
  58. package/dist/generated/bundled-assets.js.map +1 -0
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +22 -4
  61. package/dist/index.js.map +1 -1
  62. package/dist/output/formatter.d.ts +13 -1
  63. package/dist/output/formatter.d.ts.map +1 -1
  64. package/dist/output/formatter.js +79 -33
  65. package/dist/output/formatter.js.map +1 -1
  66. package/dist/preflight.d.ts +19 -0
  67. package/dist/preflight.d.ts.map +1 -0
  68. package/dist/preflight.js +111 -0
  69. package/dist/preflight.js.map +1 -0
  70. package/dist/version-guard.d.ts +12 -0
  71. package/dist/version-guard.d.ts.map +1 -0
  72. package/dist/version-guard.js +23 -0
  73. package/dist/version-guard.js.map +1 -0
  74. package/package.json +23 -8
  75. package/templates/.studiorc.yaml +0 -16
  76. package/templates/projects/blank/metadata.json +0 -7
  77. package/templates/studio-config.yaml +0 -14
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@studio-foundation/cli",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "description": "CLI for Studio — declarative YAML runtime for AI agents with structured output validation",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "bin": {
9
- "studio": "./dist/index.js"
9
+ "studio": "./bin/studio.mjs"
10
10
  },
11
11
  "files": [
12
- "dist",
13
- "templates"
12
+ "bin",
13
+ "dist"
14
14
  ],
15
15
  "keywords": [
16
16
  "studio",
@@ -18,6 +18,9 @@
18
18
  ],
19
19
  "author": "Ariane Guay",
20
20
  "license": "AGPL-3.0-only",
21
+ "engines": {
22
+ "node": ">=22.13"
23
+ },
21
24
  "dependencies": {
22
25
  "@inquirer/prompts": "^8.2.1",
23
26
  "chalk": "^5.6.2",
@@ -25,18 +28,30 @@
25
28
  "dotenv": "^17.3.1",
26
29
  "js-yaml": "^4.1.1",
27
30
  "ora": "^9.3.0",
28
- "@studio-foundation/api": "0.9.0",
29
- "@studio-foundation/contracts": "0.9.0",
30
- "@studio-foundation/engine": "0.9.0",
31
- "@studio-foundation/runner": "0.9.0"
31
+ "semver": "^7.7.2",
32
+ "@studio-foundation/api": "0.11.0",
33
+ "@studio-foundation/runner": "0.11.0",
34
+ "@studio-foundation/engine": "0.11.0",
35
+ "@studio-foundation/contracts": "0.11.0"
32
36
  },
33
37
  "devDependencies": {
34
38
  "@types/js-yaml": "^4.0.9",
35
39
  "@types/node": "^25.2.3",
40
+ "@types/semver": "^7.7.0",
36
41
  "typescript": "^5.3.0",
37
42
  "vitest": "^4.0.18"
38
43
  },
44
+ "optionalDependencies": {
45
+ "@studio-foundation/cli-darwin-arm64": "0.11.0",
46
+ "@studio-foundation/cli-darwin-x64": "0.11.0",
47
+ "@studio-foundation/cli-linux-arm64": "0.11.0",
48
+ "@studio-foundation/cli-linux-arm64-musl": "0.11.0",
49
+ "@studio-foundation/cli-linux-x64": "0.11.0",
50
+ "@studio-foundation/cli-linux-x64-musl": "0.11.0",
51
+ "@studio-foundation/cli-win-x64": "0.11.0"
52
+ },
39
53
  "scripts": {
54
+ "prebuild": "node ../scripts/gen-bundled-assets.mjs",
40
55
  "build": "tsc",
41
56
  "dev": "tsc --watch",
42
57
  "clean": "rm -rf dist",
@@ -1,16 +0,0 @@
1
- # Studio Configuration
2
-
3
- providers:
4
- anthropic:
5
- apiKey: ${ANTHROPIC_API_KEY}
6
- # openai:
7
- # apiKey: ${OPENAI_API_KEY}
8
-
9
- paths:
10
- pipelines: ./pipelines
11
- contracts: ./configs/contracts
12
- agents: ./configs/agents
13
-
14
- defaults:
15
- provider: anthropic
16
- model: claude-sonnet-4-20250514
@@ -1,7 +0,0 @@
1
- {
2
- "name": "blank",
3
- "version": "1.0.0",
4
- "description": "Empty project structure",
5
- "type": "template",
6
- "studio_version": ">=7.0.0"
7
- }
@@ -1,14 +0,0 @@
1
- # Studio Configuration
2
- # This file is gitignored — it contains secrets.
3
- # See .studio/projects/ for your pipeline configs (those ARE committed).
4
-
5
- providers:
6
- ollama: {}
7
- # anthropic:
8
- # apiKey: ${ANTHROPIC_API_KEY}
9
- # openai:
10
- # apiKey: ${OPENAI_API_KEY}
11
-
12
- defaults:
13
- provider: ollama
14
- model: llama3.3