@sanity/runtime-cli 17.1.0 → 17.2.0-next.ga4b9ae7

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 (75) hide show
  1. package/README.md +23 -22
  2. package/dist/actions/blueprints/assets.d.ts +2 -1
  3. package/dist/actions/blueprints/assets.js +17 -26
  4. package/dist/actions/blueprints/blueprint.d.ts +1 -1
  5. package/dist/actions/blueprints/pre-deploy.d.ts +29 -0
  6. package/dist/actions/blueprints/pre-deploy.js +164 -0
  7. package/dist/actions/blueprints/wait-for-operation.js +4 -0
  8. package/dist/actions/sanity/examples.d.ts +4 -4
  9. package/dist/baseCommands.d.ts +4 -4
  10. package/dist/commands/blueprints/add.d.ts +1 -1
  11. package/dist/commands/blueprints/config.d.ts +1 -1
  12. package/dist/commands/blueprints/deploy.d.ts +1 -1
  13. package/dist/commands/blueprints/destroy.d.ts +1 -1
  14. package/dist/commands/blueprints/doctor.d.ts +0 -1
  15. package/dist/commands/blueprints/doctor.js +3 -7
  16. package/dist/commands/blueprints/info.d.ts +1 -1
  17. package/dist/commands/blueprints/logs.d.ts +1 -1
  18. package/dist/commands/blueprints/mint-deploy-token.d.ts +1 -1
  19. package/dist/commands/blueprints/plan.d.ts +1 -1
  20. package/dist/commands/blueprints/promote.d.ts +1 -1
  21. package/dist/commands/blueprints/stacks.d.ts +1 -1
  22. package/dist/commands/functions/add.d.ts +1 -1
  23. package/dist/commands/functions/build.d.ts +1 -1
  24. package/dist/commands/functions/dev.d.ts +1 -1
  25. package/dist/commands/functions/env/add.d.ts +1 -1
  26. package/dist/commands/functions/env/list.d.ts +1 -1
  27. package/dist/commands/functions/env/remove.d.ts +1 -1
  28. package/dist/commands/functions/logs.d.ts +1 -1
  29. package/dist/commands/functions/test.d.ts +1 -1
  30. package/dist/constants.d.ts +1 -0
  31. package/dist/constants.js +1 -0
  32. package/dist/cores/blueprints/deploy.js +18 -65
  33. package/dist/cores/blueprints/doctor.js +15 -12
  34. package/dist/cores/functions/build.js +3 -2
  35. package/dist/cores/functions/test.js +4 -2
  36. package/dist/server/app.js +8 -2
  37. package/dist/server/static/favicon-dark.svg +1 -0
  38. package/dist/server/static/favicon.svg +1 -0
  39. package/dist/server/static/index.html +1 -1
  40. package/dist/server/static/vendor/vendor.bundle.js +5 -0
  41. package/dist/utils/functions/child-process-wrapper.js +13 -171
  42. package/dist/utils/functions/child-runtime/console.d.ts +1 -0
  43. package/dist/utils/functions/child-runtime/console.js +50 -0
  44. package/dist/utils/functions/child-runtime/invoke.d.ts +4 -0
  45. package/dist/utils/functions/child-runtime/invoke.js +47 -0
  46. package/dist/utils/functions/child-runtime/resources.d.ts +4 -0
  47. package/dist/utils/functions/child-runtime/resources.js +59 -0
  48. package/dist/utils/functions/find-entry-point.d.ts +1 -1
  49. package/dist/utils/functions/find-entry-point.js +10 -12
  50. package/dist/utils/functions/invoke/local.js +1 -1
  51. package/dist/utils/functions/invoke/prepare.d.ts +1 -1
  52. package/dist/utils/functions/invoke/prepare.js +19 -8
  53. package/dist/utils/functions/package-json.d.ts +1 -2
  54. package/dist/utils/functions/package-json.js +4 -6
  55. package/dist/utils/functions/prepare-asset.d.ts +2 -2
  56. package/dist/utils/functions/prepare-asset.js +18 -7
  57. package/dist/utils/functions/resolve-dependencies.d.ts +4 -1
  58. package/dist/utils/functions/resolve-dependencies.js +5 -6
  59. package/dist/utils/functions/resource-to-arc.d.ts +1 -1
  60. package/dist/utils/functions/resource-to-arc.js +4 -5
  61. package/dist/utils/functions/should-transpile.d.ts +7 -1
  62. package/dist/utils/functions/should-transpile.js +10 -10
  63. package/dist/utils/functions/transpile/function.d.ts +4 -1
  64. package/dist/utils/functions/transpile/function.js +9 -14
  65. package/dist/utils/functions/transpile/verify-handler.js +1 -1
  66. package/dist/utils/logger.d.ts +7 -5
  67. package/dist/utils/logger.js +33 -1
  68. package/dist/utils/progress.d.ts +5 -0
  69. package/dist/utils/progress.js +40 -0
  70. package/dist/utils/studios/prepare-asset.d.ts +6 -0
  71. package/dist/utils/studios/prepare-asset.js +139 -0
  72. package/dist/utils/types.d.ts +9 -8
  73. package/dist/utils/types.js +2 -3
  74. package/oclif.manifest.json +896 -895
  75. package/package.json +30 -23
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sanity/runtime-cli",
3
3
  "description": "Sanity's Runtime CLI for Blueprints and Functions",
4
- "version": "17.1.0",
4
+ "version": "17.2.0-next.ga4b9ae7",
5
5
  "author": "Sanity Runtime Team",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -40,7 +40,9 @@
40
40
  "clean": "shx rm -rf dist oclif.manifest.json",
41
41
  "copy:design-tokens": "shx rm -rf ./src/server/static/vendor/design-tokens && shx cp -r ./node_modules/@sanity-labs/design-tokens/dist/css ./src/server/static/vendor/design-tokens",
42
42
  "copy:server": "shx cp -r ./src/server/static ./dist/server",
43
- "copy:wrapper": "shx cp ./src/utils/functions/child-process-wrapper.js ./dist/utils/functions/child-process-wrapper.js",
43
+ "copy:wrapper": "npm run copy:wrapper:entry && npm run copy:wrapper:modules",
44
+ "copy:wrapper:entry": "shx cp ./src/utils/functions/child-process-wrapper.js ./dist/utils/functions/child-process-wrapper.js",
45
+ "copy:wrapper:modules": "shx rm -rf ./dist/utils/functions/child-runtime && shx cp -r ./src/utils/functions/child-runtime ./dist/utils/functions/child-runtime",
44
46
  "lint": "biome ci",
45
47
  "lint:write": "biome check --write",
46
48
  "lint:fix": "npm run lint:write",
@@ -59,55 +61,60 @@
59
61
  },
60
62
  "dependencies": {
61
63
  "@architect/hydrate": "~6.0.2",
62
- "@architect/inventory": "~6.0.0",
64
+ "@architect/inventory": "~6.1.0",
63
65
  "@inquirer/prompts": "^8.5.2",
64
- "@oclif/core": "^4.11.6",
65
- "@oclif/plugin-help": "^6.2.50",
66
+ "@oclif/core": "^4.11.14",
67
+ "@oclif/plugin-help": "^6.2.53",
66
68
  "@sanity-labs/design-tokens": "^0.0.2-alpha.2",
67
- "@sanity/blueprints": "^0.20.1",
69
+ "@sanity/blueprints": "^0.23.0",
68
70
  "@sanity/blueprints-parser": "^0.4.0",
69
- "@sanity/client": "^7.22.1",
70
- "adm-zip": "^0.5.17",
71
+ "@sanity/cli-build": "^5.0.0",
72
+ "@sanity/cli-core": "^2.5.1",
73
+ "@sanity/client": "^7.23.1",
74
+ "adm-zip": "^0.6.0",
71
75
  "array-treeify": "^0.1.5",
72
76
  "cardinal": "^2.1.1",
73
77
  "empathic": "^2.0.1",
74
78
  "eventsource": "^4.1.0",
75
- "groq-js": "^1.30.2",
79
+ "groq-js": "^1.30.3",
76
80
  "jiti": "^2.7.0",
77
81
  "mime-types": "^3.0.2",
78
- "ora": "^9.4.0",
82
+ "ora": "^9.4.1",
83
+ "signal-exit": "^4.1.0",
84
+ "strip-ansi": "^7.2.0",
85
+ "tar-fs": "^3.1.3",
79
86
  "tar-stream": "^3.2.0",
80
- "vite": "^8.0.16",
81
- "ws": "^8.21.0",
87
+ "vite": "^8.1.4",
88
+ "ws": "^8.21.1",
82
89
  "xdg-basedir": "^5.1.0"
83
90
  },
84
91
  "devDependencies": {
85
- "@biomejs/biome": "2.4.14",
92
+ "@biomejs/biome": "2.5.3",
86
93
  "@codemirror/lang-json": "^6.0.2",
87
- "@codemirror/state": "^6.6.0",
94
+ "@codemirror/state": "^6.7.1",
88
95
  "@enhance/store": "^1.0.2",
89
96
  "@lezer/highlight": "^1.2.3",
90
- "@oclif/test": "^4.1.18",
91
- "@playwright/test": "^1.59.1",
97
+ "@oclif/test": "^4.1.20",
98
+ "@playwright/test": "^1.61.1",
92
99
  "@rollup/plugin-node-resolve": "^16.0.3",
93
- "@sanity/functions": "^1.3.1",
100
+ "@sanity/functions": "^1.4.0",
94
101
  "@types/adm-zip": "^0.5.8",
95
102
  "@types/cardinal": "^2.1.1",
96
103
  "@types/mime-types": "^3.0.1",
97
104
  "@types/node": "^22",
105
+ "@types/tar-fs": "^2.0.4",
98
106
  "@types/tar-stream": "^3.1.4",
99
107
  "@types/ws": "^8.18.1",
100
- "@vitest/coverage-v8": "4.1.9",
108
+ "@vitest/coverage-v8": "4.1.10",
101
109
  "codemirror": "^6.0.2",
102
110
  "mentoss": "^0.13.0",
103
- "oclif": "^4.23.0",
111
+ "oclif": "^4.23.27",
104
112
  "pretty-bytes": "^7.1.0",
105
113
  "pretty-ms": "^9.3.0",
106
- "rollup": "^4.60.3",
114
+ "rollup": "^4.62.2",
107
115
  "shx": "^0.4.0",
108
- "ts-node": "^10.9.2",
109
- "typescript": "^6.0.3",
110
- "vitest": "4.1.9"
116
+ "typescript": "^7.0.2",
117
+ "vitest": "4.1.10"
111
118
  },
112
119
  "oclif": {
113
120
  "bin": "sanity-run",