@sanity/runtime-cli 17.3.0-blueprinit.gaf4f184 → 17.3.0-blueprinit.gb1c5e1e
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 +21 -21
- package/dist/baseCommands.d.ts +0 -7
- package/dist/baseCommands.js +0 -21
- package/dist/commands/blueprinit.js +3 -2
- package/dist/server/static/vendor/vendor.bundle.js +10 -14
- package/oclif.manifest.json +974 -1174
- package/package.json +15 -13
- package/dist/utils/command-skills.d.ts +0 -2
- package/dist/utils/command-skills.js +0 -17
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.3.0-blueprinit.
|
|
4
|
+
"version": "17.3.0-blueprinit.gb1c5e1e",
|
|
5
5
|
"author": "Sanity Runtime Team",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
@@ -65,14 +65,15 @@
|
|
|
65
65
|
"@architect/hydrate": "~6.0.2",
|
|
66
66
|
"@architect/inventory": "~6.1.0",
|
|
67
67
|
"@inquirer/prompts": "^8.5.2",
|
|
68
|
-
"@oclif/core": "^4.
|
|
69
|
-
"@oclif/plugin-help": "^6.2.
|
|
68
|
+
"@oclif/core": "^4.13.2",
|
|
69
|
+
"@oclif/plugin-help": "^6.2.55",
|
|
70
70
|
"@sanity-labs/design-tokens": "^0.0.2-alpha.2",
|
|
71
|
-
"@sanity/
|
|
71
|
+
"@sanity-labs/oclif-plugin-skills-flag": "^0.1.3",
|
|
72
|
+
"@sanity/blueprints": "^0.23.1",
|
|
72
73
|
"@sanity/blueprints-parser": "^0.4.0",
|
|
73
74
|
"@sanity/cli-build": "^5.0.0",
|
|
74
75
|
"@sanity/cli-core": "^2.5.1",
|
|
75
|
-
"@sanity/client": "^7.
|
|
76
|
+
"@sanity/client": "^7.25.0",
|
|
76
77
|
"adm-zip": "^0.6.0",
|
|
77
78
|
"array-treeify": "^0.1.5",
|
|
78
79
|
"cardinal": "^2.1.1",
|
|
@@ -86,18 +87,18 @@
|
|
|
86
87
|
"strip-ansi": "^7.2.0",
|
|
87
88
|
"tar-fs": "^3.1.3",
|
|
88
89
|
"tar-stream": "^3.2.0",
|
|
89
|
-
"vite": "^8.1.
|
|
90
|
+
"vite": "^8.1.5",
|
|
90
91
|
"ws": "^8.21.1",
|
|
91
92
|
"xdg-basedir": "^5.1.0"
|
|
92
93
|
},
|
|
93
94
|
"devDependencies": {
|
|
94
|
-
"@biomejs/biome": "2.5.
|
|
95
|
+
"@biomejs/biome": "2.5.5",
|
|
95
96
|
"@codemirror/lang-json": "^6.0.2",
|
|
96
97
|
"@codemirror/state": "^6.7.1",
|
|
97
98
|
"@enhance/store": "^1.0.2",
|
|
98
99
|
"@lezer/highlight": "^1.2.3",
|
|
99
|
-
"@oclif/test": "^4.1.
|
|
100
|
-
"@playwright/test": "^1.
|
|
100
|
+
"@oclif/test": "^4.1.21",
|
|
101
|
+
"@playwright/test": "^1.62.0",
|
|
101
102
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
102
103
|
"@sanity/functions": "^1.4.0",
|
|
103
104
|
"@types/adm-zip": "^0.5.8",
|
|
@@ -110,10 +111,10 @@
|
|
|
110
111
|
"@vitest/coverage-v8": "4.1.10",
|
|
111
112
|
"codemirror": "^6.0.2",
|
|
112
113
|
"mentoss": "^0.13.0",
|
|
113
|
-
"oclif": "^4.23.
|
|
114
|
-
"pretty-bytes": "^7.1.
|
|
114
|
+
"oclif": "^4.23.29",
|
|
115
|
+
"pretty-bytes": "^7.1.1",
|
|
115
116
|
"pretty-ms": "^9.3.0",
|
|
116
|
-
"rollup": "^4.62.
|
|
117
|
+
"rollup": "^4.62.3",
|
|
117
118
|
"shx": "^0.4.0",
|
|
118
119
|
"typescript": "^7.0.2",
|
|
119
120
|
"vitest": "4.1.10"
|
|
@@ -123,7 +124,8 @@
|
|
|
123
124
|
"dirname": "sanity-run",
|
|
124
125
|
"commands": "./dist/commands",
|
|
125
126
|
"plugins": [
|
|
126
|
-
"@oclif/plugin-help"
|
|
127
|
+
"@oclif/plugin-help",
|
|
128
|
+
"@sanity-labs/oclif-plugin-skills-flag"
|
|
127
129
|
],
|
|
128
130
|
"topicSeparator": " ",
|
|
129
131
|
"topics": {
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { readFile } from 'node:fs/promises';
|
|
2
|
-
import { join } from 'node:path';
|
|
3
|
-
import { fileURLToPath } from 'node:url';
|
|
4
|
-
const SKILLS_DIRECTORY = fileURLToPath(new URL('../../skills/', import.meta.url));
|
|
5
|
-
export function commandSkillFilename(commandId) {
|
|
6
|
-
return `${commandId.replaceAll(':', '-')}.md`;
|
|
7
|
-
}
|
|
8
|
-
export async function readCommandSkill(commandId, skillsDirectory = SKILLS_DIRECTORY) {
|
|
9
|
-
try {
|
|
10
|
-
return await readFile(join(skillsDirectory, commandSkillFilename(commandId)), 'utf8');
|
|
11
|
-
}
|
|
12
|
-
catch (error) {
|
|
13
|
-
if (error.code === 'ENOENT')
|
|
14
|
-
return;
|
|
15
|
-
throw error;
|
|
16
|
-
}
|
|
17
|
-
}
|