@sanity/runtime-cli 14.13.4 → 15.0.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.
- package/README.md +215 -118
- package/dist/actions/blueprints/logs.d.ts +2 -1
- package/dist/actions/blueprints/logs.js +4 -5
- package/dist/actions/blueprints/resources.js +1 -0
- package/dist/actions/blueprints/stacks.d.ts +3 -1
- package/dist/actions/blueprints/stacks.js +11 -2
- package/dist/actions/functions/test.js +1 -1
- package/dist/actions/sanity/access.d.ts +38 -0
- package/dist/actions/sanity/access.js +23 -0
- package/dist/actions/sanity/projects.d.ts +1 -1
- package/dist/baseCommands.d.ts +2 -0
- package/dist/baseCommands.js +3 -0
- package/dist/commands/blueprints/add.js +1 -1
- package/dist/commands/blueprints/deploy.d.ts +2 -0
- package/dist/commands/blueprints/deploy.js +6 -2
- package/dist/commands/blueprints/destroy.js +0 -2
- package/dist/commands/blueprints/info.d.ts +1 -0
- package/dist/commands/blueprints/info.js +3 -1
- package/dist/commands/blueprints/init.js +2 -0
- package/dist/commands/blueprints/logs.d.ts +5 -0
- package/dist/commands/blueprints/logs.js +26 -3
- package/dist/commands/blueprints/mint-deploy-token.d.ts +14 -0
- package/dist/commands/blueprints/mint-deploy-token.js +47 -0
- package/dist/commands/blueprints/plan.d.ts +2 -0
- package/dist/commands/blueprints/plan.js +8 -2
- package/dist/commands/blueprints/promote.d.ts +2 -1
- package/dist/commands/blueprints/promote.js +7 -2
- package/dist/commands/blueprints/stacks.js +1 -1
- package/dist/commands/functions/add.js +1 -1
- package/dist/cores/blueprints/config.js +23 -29
- package/dist/cores/blueprints/init.js +99 -76
- package/dist/cores/blueprints/logs.d.ts +3 -0
- package/dist/cores/blueprints/logs.js +15 -9
- package/dist/cores/blueprints/mint-deploy-token.d.ts +15 -0
- package/dist/cores/blueprints/mint-deploy-token.js +111 -0
- package/dist/cores/blueprints/promote.d.ts +1 -0
- package/dist/cores/blueprints/promote.js +22 -1
- package/dist/cores/functions/add.js +4 -5
- package/dist/cores/index.d.ts +1 -2
- package/dist/cores/index.js +0 -2
- package/dist/index.d.ts +0 -18
- package/dist/index.js +0 -20
- package/dist/utils/clipboard.d.ts +14 -0
- package/dist/utils/clipboard.js +73 -0
- package/dist/utils/display/errors.d.ts +5 -1
- package/dist/utils/display/prompt.d.ts +55 -15
- package/dist/utils/display/prompt.js +271 -45
- package/oclif.manifest.json +320 -18
- package/package.json +21 -67
- package/dist/actions/blueprints/index.d.ts +0 -16
- package/dist/actions/blueprints/index.js +0 -10
- package/dist/actions/functions/index.d.ts +0 -4
- package/dist/actions/functions/index.js +0 -4
- package/dist/actions/sanity/index.d.ts +0 -1
- package/dist/actions/sanity/index.js +0 -1
- package/dist/cores/blueprints/index.d.ts +0 -20
- package/dist/cores/blueprints/index.js +0 -10
- package/dist/cores/functions/index.d.ts +0 -16
- package/dist/cores/functions/index.js +0 -8
- package/dist/utils/display/index.d.ts +0 -5
- package/dist/utils/display/index.js +0 -5
- package/dist/utils/index.d.ts +0 -8
- package/dist/utils/index.js +0 -8
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": "
|
|
4
|
+
"version": "15.0.0",
|
|
5
5
|
"author": "Sanity Runtime Team",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
@@ -18,51 +18,6 @@
|
|
|
18
18
|
"types": "./dist/index.d.ts",
|
|
19
19
|
"import": "./dist/index.js",
|
|
20
20
|
"require": "./dist/index.js"
|
|
21
|
-
},
|
|
22
|
-
"./actions/blueprints": {
|
|
23
|
-
"types": "./dist/actions/blueprints/index.d.ts",
|
|
24
|
-
"import": "./dist/actions/blueprints/index.js",
|
|
25
|
-
"require": "./dist/actions/blueprints/index.js"
|
|
26
|
-
},
|
|
27
|
-
"./actions/functions": {
|
|
28
|
-
"types": "./dist/actions/functions/index.d.ts",
|
|
29
|
-
"import": "./dist/actions/functions/index.js",
|
|
30
|
-
"require": "./dist/actions/functions/index.js"
|
|
31
|
-
},
|
|
32
|
-
"./actions/sanity": {
|
|
33
|
-
"types": "./dist/actions/sanity/index.d.ts",
|
|
34
|
-
"import": "./dist/actions/sanity/index.js",
|
|
35
|
-
"require": "./dist/actions/sanity/index.js"
|
|
36
|
-
},
|
|
37
|
-
"./commands/blueprints/*": {
|
|
38
|
-
"types": "./dist/commands/blueprints/*.d.ts",
|
|
39
|
-
"import": "./dist/commands/blueprints/*.js",
|
|
40
|
-
"require": "./dist/commands/blueprints/*.js"
|
|
41
|
-
},
|
|
42
|
-
"./commands/functions/*": {
|
|
43
|
-
"types": "./dist/commands/functions/*.d.ts",
|
|
44
|
-
"import": "./dist/commands/functions/*.js",
|
|
45
|
-
"require": "./dist/commands/functions/*.js"
|
|
46
|
-
},
|
|
47
|
-
"./cores": {
|
|
48
|
-
"types": "./dist/cores/index.d.ts",
|
|
49
|
-
"import": "./dist/cores/index.js",
|
|
50
|
-
"require": "./dist/cores/index.js"
|
|
51
|
-
},
|
|
52
|
-
"./cores/blueprints": {
|
|
53
|
-
"types": "./dist/cores/blueprints/index.d.ts",
|
|
54
|
-
"import": "./dist/cores/blueprints/index.js",
|
|
55
|
-
"require": "./dist/cores/blueprints/index.js"
|
|
56
|
-
},
|
|
57
|
-
"./cores/functions": {
|
|
58
|
-
"types": "./dist/cores/functions/index.d.ts",
|
|
59
|
-
"import": "./dist/cores/functions/index.js",
|
|
60
|
-
"require": "./dist/cores/functions/index.js"
|
|
61
|
-
},
|
|
62
|
-
"./utils": {
|
|
63
|
-
"types": "./dist/utils/index.d.ts",
|
|
64
|
-
"import": "./dist/utils/index.js",
|
|
65
|
-
"require": "./dist/utils/index.js"
|
|
66
21
|
}
|
|
67
22
|
},
|
|
68
23
|
"engines": {
|
|
@@ -91,7 +46,6 @@
|
|
|
91
46
|
"prepare": "npm run build",
|
|
92
47
|
"postpack": "shx rm -f oclif.manifest.json",
|
|
93
48
|
"test": "npm run test:vitest && npm run lint",
|
|
94
|
-
"test:api": "cd test/api-types && npm it",
|
|
95
49
|
"test:depmgmt": "vitest run --config ./test-depmgmt/vitest.config.ts",
|
|
96
50
|
"test:vitest": "vitest run",
|
|
97
51
|
"test:coverage": "npm run test:vitest -- --coverage --coverage.include \"runtime-cli/src/**/*\"",
|
|
@@ -101,54 +55,54 @@
|
|
|
101
55
|
"dependencies": {
|
|
102
56
|
"@architect/hydrate": "^5.0.2",
|
|
103
57
|
"@architect/inventory": "^5.0.0",
|
|
104
|
-
"@inquirer/prompts": "^8.
|
|
105
|
-
"@oclif/core": "^4.
|
|
106
|
-
"@oclif/plugin-help": "^6.2.
|
|
107
|
-
"@sanity/blueprints": "^0.
|
|
58
|
+
"@inquirer/prompts": "^8.4.2",
|
|
59
|
+
"@oclif/core": "^4.11.0",
|
|
60
|
+
"@oclif/plugin-help": "^6.2.45",
|
|
61
|
+
"@sanity/blueprints": "^0.17.1",
|
|
108
62
|
"@sanity/blueprints-parser": "^0.4.0",
|
|
109
|
-
"@sanity/client": "^7.
|
|
110
|
-
"adm-zip": "^0.5.
|
|
63
|
+
"@sanity/client": "^7.22.0",
|
|
64
|
+
"adm-zip": "^0.5.17",
|
|
111
65
|
"array-treeify": "^0.1.5",
|
|
112
66
|
"cardinal": "^2.1.1",
|
|
113
67
|
"empathic": "^2.0.0",
|
|
114
68
|
"eventsource": "^4.1.0",
|
|
115
|
-
"groq-js": "^1.
|
|
69
|
+
"groq-js": "^1.30.1",
|
|
116
70
|
"jiti": "^2.6.1",
|
|
117
71
|
"mime-types": "^3.0.2",
|
|
118
|
-
"ora": "^9.
|
|
119
|
-
"tar-stream": "^3.
|
|
120
|
-
"vite": "^
|
|
72
|
+
"ora": "^9.4.0",
|
|
73
|
+
"tar-stream": "^3.2.0",
|
|
74
|
+
"vite": "^8.0.10",
|
|
121
75
|
"vite-tsconfig-paths": "^6.1.1",
|
|
122
|
-
"ws": "^8.
|
|
76
|
+
"ws": "^8.20.0",
|
|
123
77
|
"xdg-basedir": "^5.1.0"
|
|
124
78
|
},
|
|
125
79
|
"devDependencies": {
|
|
126
|
-
"@biomejs/biome": "2.4.
|
|
80
|
+
"@biomejs/biome": "2.4.14",
|
|
127
81
|
"@codemirror/lang-json": "^6.0.2",
|
|
128
82
|
"@codemirror/state": "^6.6.0",
|
|
129
83
|
"@enhance/store": "^1.0.2",
|
|
130
84
|
"@lezer/highlight": "^1.2.3",
|
|
131
|
-
"@oclif/test": "^4.1.
|
|
132
|
-
"@playwright/test": "^1.
|
|
85
|
+
"@oclif/test": "^4.1.18",
|
|
86
|
+
"@playwright/test": "^1.59.1",
|
|
133
87
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
134
|
-
"@sanity/functions": "^1.3.
|
|
88
|
+
"@sanity/functions": "^1.3.1",
|
|
135
89
|
"@types/adm-zip": "^0.5.8",
|
|
136
90
|
"@types/cardinal": "^2.1.1",
|
|
137
91
|
"@types/mime-types": "^3.0.1",
|
|
138
92
|
"@types/node": "20",
|
|
139
93
|
"@types/tar-stream": "^3.1.4",
|
|
140
94
|
"@types/ws": "^8.18.1",
|
|
141
|
-
"@vitest/coverage-v8": "^4.1.
|
|
95
|
+
"@vitest/coverage-v8": "^4.1.5",
|
|
142
96
|
"codemirror": "^6.0.2",
|
|
143
97
|
"mentoss": "^0.13.0",
|
|
144
|
-
"oclif": "^4.
|
|
98
|
+
"oclif": "^4.23.0",
|
|
145
99
|
"pretty-bytes": "^7.1.0",
|
|
146
100
|
"pretty-ms": "^9.3.0",
|
|
147
|
-
"rollup": "^4.
|
|
101
|
+
"rollup": "^4.60.2",
|
|
148
102
|
"shx": "^0.4.0",
|
|
149
103
|
"ts-node": "^10.9.2",
|
|
150
|
-
"typescript": "^6.0.
|
|
151
|
-
"vitest": "4.1.
|
|
104
|
+
"typescript": "^6.0.3",
|
|
105
|
+
"vitest": "4.1.5"
|
|
152
106
|
},
|
|
153
107
|
"oclif": {
|
|
154
108
|
"bin": "sanity-run",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated Use actions/sanity/projects.js instead
|
|
3
|
-
*/
|
|
4
|
-
export * as projects from '../sanity/projects.js';
|
|
5
|
-
export * as assets from './assets.js';
|
|
6
|
-
export * as blueprint from './blueprint.js';
|
|
7
|
-
export * as config from './config.js';
|
|
8
|
-
export * as logs from './logs.js';
|
|
9
|
-
export * as resources from './resources.js';
|
|
10
|
-
export * as stacks from './stacks.js';
|
|
11
|
-
import type { BlueprintParserError } from '../../utils/types.js';
|
|
12
|
-
export type BlueprintIssue = {
|
|
13
|
-
code: 'NO_STACK_ID' | 'NO_SCOPE_TYPE' | 'NO_SCOPE_ID' | 'NO_STACK' | 'PARSE_ERROR';
|
|
14
|
-
message: string;
|
|
15
|
-
errors?: BlueprintParserError[];
|
|
16
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated Use actions/sanity/projects.js instead
|
|
3
|
-
*/
|
|
4
|
-
export * as projects from '../sanity/projects.js';
|
|
5
|
-
export * as assets from './assets.js';
|
|
6
|
-
export * as blueprint from './blueprint.js';
|
|
7
|
-
export * as config from './config.js';
|
|
8
|
-
export * as logs from './logs.js';
|
|
9
|
-
export * as resources from './resources.js';
|
|
10
|
-
export * as stacks from './stacks.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as projects from './projects.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as projects from './projects.js';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export type { BlueprintConfigOptions } from './config.js';
|
|
2
|
-
export { blueprintConfigCore } from './config.js';
|
|
3
|
-
export type { BlueprintDeployOptions } from './deploy.js';
|
|
4
|
-
export { blueprintDeployCore } from './deploy.js';
|
|
5
|
-
export type { BlueprintDestroyOptions } from './destroy.js';
|
|
6
|
-
export { blueprintDestroyCore } from './destroy.js';
|
|
7
|
-
export type { BlueprintDoctorOptions } from './doctor.js';
|
|
8
|
-
export { blueprintDoctorCore } from './doctor.js';
|
|
9
|
-
export type { BlueprintInfoOptions } from './info.js';
|
|
10
|
-
export { blueprintInfoCore } from './info.js';
|
|
11
|
-
export type { BlueprintInitOptions } from './init.js';
|
|
12
|
-
export { blueprintInitCore } from './init.js';
|
|
13
|
-
export type { BlueprintLogsOptions } from './logs.js';
|
|
14
|
-
export { blueprintLogsCore } from './logs.js';
|
|
15
|
-
export type { BlueprintPlanOptions } from './plan.js';
|
|
16
|
-
export { blueprintPlanCore } from './plan.js';
|
|
17
|
-
export type { BlueprintPromoteOptions } from './promote.js';
|
|
18
|
-
export { blueprintPromoteCore } from './promote.js';
|
|
19
|
-
export type { BlueprintStacksOptions } from './stacks.js';
|
|
20
|
-
export { blueprintStacksCore } from './stacks.js';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { blueprintConfigCore } from './config.js';
|
|
2
|
-
export { blueprintDeployCore } from './deploy.js';
|
|
3
|
-
export { blueprintDestroyCore } from './destroy.js';
|
|
4
|
-
export { blueprintDoctorCore } from './doctor.js';
|
|
5
|
-
export { blueprintInfoCore } from './info.js';
|
|
6
|
-
export { blueprintInitCore } from './init.js';
|
|
7
|
-
export { blueprintLogsCore } from './logs.js';
|
|
8
|
-
export { blueprintPlanCore } from './plan.js';
|
|
9
|
-
export { blueprintPromoteCore } from './promote.js';
|
|
10
|
-
export { blueprintStacksCore } from './stacks.js';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type { FunctionAddOptions } from './add.js';
|
|
2
|
-
export { functionAddCore } from './add.js';
|
|
3
|
-
export type { FunctionBuildOptions } from './build.js';
|
|
4
|
-
export { functionBuildCore } from './build.js';
|
|
5
|
-
export type { FunctionDevOptions } from './dev.js';
|
|
6
|
-
export { functionDevCore } from './dev.js';
|
|
7
|
-
export type { FunctionEnvAddOptions } from './env/add.js';
|
|
8
|
-
export { functionEnvAddCore } from './env/add.js';
|
|
9
|
-
export type { FunctionEnvListOptions } from './env/list.js';
|
|
10
|
-
export { functionEnvListCore } from './env/list.js';
|
|
11
|
-
export type { FunctionEnvRemoveOptions } from './env/remove.js';
|
|
12
|
-
export { functionEnvRemoveCore } from './env/remove.js';
|
|
13
|
-
export type { FunctionLogsOptions } from './logs.js';
|
|
14
|
-
export { functionLogsCore } from './logs.js';
|
|
15
|
-
export type { FunctionTestOptions } from './test.js';
|
|
16
|
-
export { functionTestCore } from './test.js';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { functionAddCore } from './add.js';
|
|
2
|
-
export { functionBuildCore } from './build.js';
|
|
3
|
-
export { functionDevCore } from './dev.js';
|
|
4
|
-
export { functionEnvAddCore } from './env/add.js';
|
|
5
|
-
export { functionEnvListCore } from './env/list.js';
|
|
6
|
-
export { functionEnvRemoveCore } from './env/remove.js';
|
|
7
|
-
export { functionLogsCore } from './logs.js';
|
|
8
|
-
export { functionTestCore } from './test.js';
|
package/dist/utils/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * as display from './display/index.js';
|
|
2
|
-
export * as findFunction from './find-function.js';
|
|
3
|
-
export * as invokeLocal from './invoke-local.js';
|
|
4
|
-
export * as logger from './logger.js';
|
|
5
|
-
export * as tracedFetch from './traced-fetch.js';
|
|
6
|
-
export * as types from './types.js';
|
|
7
|
-
export * as validate from './validate/index.js';
|
|
8
|
-
export * as validatedToken from './validated-token.js';
|
package/dist/utils/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * as display from './display/index.js';
|
|
2
|
-
export * as findFunction from './find-function.js';
|
|
3
|
-
export * as invokeLocal from './invoke-local.js';
|
|
4
|
-
export * as logger from './logger.js';
|
|
5
|
-
export * as tracedFetch from './traced-fetch.js';
|
|
6
|
-
export * as types from './types.js';
|
|
7
|
-
export * as validate from './validate/index.js';
|
|
8
|
-
export * as validatedToken from './validated-token.js';
|