@sanity/cli 6.0.0-alpha.18 → 6.0.0-alpha.19
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/dist/actions/build/getViteConfig.js +47 -4
- package/dist/actions/build/getViteConfig.js.map +1 -1
- package/dist/actions/build/renderDocumentWorker/components/GlobalErrorHandler.js +1 -0
- package/dist/actions/build/renderDocumentWorker/components/GlobalErrorHandler.js.map +1 -1
- package/dist/actions/build/writeSanityRuntime.js +4 -3
- package/dist/actions/build/writeSanityRuntime.js.map +1 -1
- package/dist/actions/dev/getDashboardAppUrl.js +48 -0
- package/dist/actions/dev/getDashboardAppUrl.js.map +1 -0
- package/dist/actions/dev/getDevServerConfig.js +2 -1
- package/dist/actions/dev/getDevServerConfig.js.map +1 -1
- package/dist/actions/dev/startAppDevServer.js +3 -3
- package/dist/actions/dev/startAppDevServer.js.map +1 -1
- package/dist/actions/dev/startStudioDevServer.js +5 -10
- package/dist/actions/dev/startStudioDevServer.js.map +1 -1
- package/dist/actions/schema/extractSchemaWatcher.js +8 -6
- package/dist/actions/schema/extractSchemaWatcher.js.map +1 -1
- package/dist/actions/schema/matchSchemaPattern.js +22 -0
- package/dist/actions/schema/matchSchemaPattern.js.map +1 -0
- package/dist/actions/schema/runSchemaExtraction.js.map +1 -1
- package/dist/commands/backup/disable.js +0 -6
- package/dist/commands/backup/disable.js.map +1 -1
- package/dist/commands/backup/download.js +0 -6
- package/dist/commands/backup/download.js.map +1 -1
- package/dist/commands/backup/enable.js +0 -6
- package/dist/commands/backup/enable.js.map +1 -1
- package/dist/commands/backup/list.js +0 -6
- package/dist/commands/backup/list.js.map +1 -1
- package/dist/commands/cors/add.js +0 -6
- package/dist/commands/cors/add.js.map +1 -1
- package/dist/commands/cors/delete.js +0 -6
- package/dist/commands/cors/delete.js.map +1 -1
- package/dist/commands/cors/list.js +0 -6
- package/dist/commands/cors/list.js.map +1 -1
- package/dist/commands/dataset/alias/create.js +23 -7
- package/dist/commands/dataset/alias/create.js.map +1 -1
- package/dist/commands/dataset/alias/delete.js +17 -7
- package/dist/commands/dataset/alias/delete.js.map +1 -1
- package/dist/commands/dataset/alias/link.js +17 -7
- package/dist/commands/dataset/alias/link.js.map +1 -1
- package/dist/commands/dataset/alias/unlink.js +17 -7
- package/dist/commands/dataset/alias/unlink.js.map +1 -1
- package/dist/commands/dataset/copy.js +39 -29
- package/dist/commands/dataset/copy.js.map +1 -1
- package/dist/commands/dataset/create.js +17 -7
- package/dist/commands/dataset/create.js.map +1 -1
- package/dist/commands/dataset/delete.js +13 -7
- package/dist/commands/dataset/delete.js.map +1 -1
- package/dist/commands/dataset/embeddings/disable.js +19 -7
- package/dist/commands/dataset/embeddings/disable.js.map +1 -1
- package/dist/commands/dataset/embeddings/enable.js +17 -7
- package/dist/commands/dataset/embeddings/enable.js.map +1 -1
- package/dist/commands/dataset/embeddings/status.js +15 -7
- package/dist/commands/dataset/embeddings/status.js.map +1 -1
- package/dist/commands/dataset/export.js +30 -18
- package/dist/commands/dataset/export.js.map +1 -1
- package/dist/commands/dataset/list.js +19 -7
- package/dist/commands/dataset/list.js.map +1 -1
- package/dist/commands/dataset/visibility/get.js +15 -7
- package/dist/commands/dataset/visibility/get.js.map +1 -1
- package/dist/commands/dataset/visibility/set.js +19 -7
- package/dist/commands/dataset/visibility/set.js.map +1 -1
- package/dist/commands/documents/create.js +0 -6
- package/dist/commands/documents/create.js.map +1 -1
- package/dist/commands/documents/delete.js +0 -6
- package/dist/commands/documents/delete.js.map +1 -1
- package/dist/commands/documents/get.js +0 -6
- package/dist/commands/documents/get.js.map +1 -1
- package/dist/commands/documents/query.js +0 -6
- package/dist/commands/documents/query.js.map +1 -1
- package/dist/commands/graphql/list.js +0 -6
- package/dist/commands/graphql/list.js.map +1 -1
- package/dist/commands/graphql/undeploy.js +0 -6
- package/dist/commands/graphql/undeploy.js.map +1 -1
- package/dist/commands/hook/attempt.js +0 -6
- package/dist/commands/hook/attempt.js.map +1 -1
- package/dist/commands/hook/create.js +0 -6
- package/dist/commands/hook/create.js.map +1 -1
- package/dist/commands/hook/delete.js +0 -6
- package/dist/commands/hook/delete.js.map +1 -1
- package/dist/commands/hook/list.js +0 -6
- package/dist/commands/hook/list.js.map +1 -1
- package/dist/commands/hook/logs.js +0 -6
- package/dist/commands/hook/logs.js.map +1 -1
- package/dist/commands/media/delete-aspect.js +0 -6
- package/dist/commands/media/delete-aspect.js.map +1 -1
- package/dist/commands/media/deploy-aspect.js +1 -6
- package/dist/commands/media/deploy-aspect.js.map +1 -1
- package/dist/commands/media/export.js +0 -6
- package/dist/commands/media/export.js.map +1 -1
- package/dist/commands/media/import.js +0 -6
- package/dist/commands/media/import.js.map +1 -1
- package/dist/commands/schema/delete.js +0 -6
- package/dist/commands/schema/delete.js.map +1 -1
- package/dist/commands/tokens/add.js +0 -6
- package/dist/commands/tokens/add.js.map +1 -1
- package/dist/commands/tokens/delete.js +0 -6
- package/dist/commands/tokens/delete.js.map +1 -1
- package/dist/commands/tokens/list.js +0 -6
- package/dist/commands/tokens/list.js.map +1 -1
- package/dist/commands/users/invite.js +0 -6
- package/dist/commands/users/invite.js.map +1 -1
- package/dist/commands/users/list.js +0 -6
- package/dist/commands/users/list.js.map +1 -1
- package/dist/prompts/promptForProject.js +64 -0
- package/dist/prompts/promptForProject.js.map +1 -0
- package/dist/server/devServer.js +4 -2
- package/dist/server/devServer.js.map +1 -1
- package/dist/server/vite/plugin-schema-extraction.js +201 -0
- package/dist/server/vite/plugin-schema-extraction.js.map +1 -0
- package/dist/server/vite/plugin-typegen.js +217 -0
- package/dist/server/vite/plugin-typegen.js.map +1 -0
- package/dist/services/grants.js +13 -0
- package/dist/services/grants.js.map +1 -0
- package/dist/types/grants.js +3 -0
- package/dist/types/grants.js.map +1 -0
- package/dist/util/checkProjectPermissions.js +21 -0
- package/dist/util/checkProjectPermissions.js.map +1 -0
- package/dist/util/getSharedServerConfig.js +1 -0
- package/dist/util/getSharedServerConfig.js.map +1 -1
- package/dist/util/sharedFlags.js +19 -0
- package/dist/util/sharedFlags.js.map +1 -0
- package/dist/util/toForwardSlashes.js +8 -0
- package/dist/util/toForwardSlashes.js.map +1 -0
- package/oclif.manifest.json +412 -286
- package/package.json +18 -16
- package/dist/actions/dev/getCoreAppUrl.js +0 -10
- package/dist/actions/dev/getCoreAppUrl.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/cli",
|
|
3
|
-
"version": "6.0.0-alpha.
|
|
3
|
+
"version": "6.0.0-alpha.19",
|
|
4
4
|
"description": "Sanity CLI tool for managing Sanity projects and organizations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity",
|
|
@@ -49,24 +49,24 @@
|
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@babel/traverse": "^7.29.0",
|
|
52
|
-
"@oclif/core": "^4.8.
|
|
52
|
+
"@oclif/core": "^4.8.2",
|
|
53
53
|
"@oclif/plugin-help": "^6.2.37",
|
|
54
54
|
"@oclif/plugin-not-found": "^3.2.74",
|
|
55
55
|
"@rexxars/gitconfiglocal": "^3.0.1",
|
|
56
56
|
"@sanity/client": "^7.16.0",
|
|
57
57
|
"@sanity/codegen": "^5.10.1",
|
|
58
58
|
"@sanity/descriptors": "^1.3.0",
|
|
59
|
-
"@sanity/export": "^6.0
|
|
59
|
+
"@sanity/export": "^6.1.0",
|
|
60
60
|
"@sanity/generate-help-url": "^4.0.0",
|
|
61
61
|
"@sanity/id-utils": "^1.0.0",
|
|
62
|
-
"@sanity/import": "^4.1.
|
|
62
|
+
"@sanity/import": "^4.1.3",
|
|
63
63
|
"@sanity/migrate": "^5.2.5",
|
|
64
|
-
"@sanity/runtime-cli": "^14.
|
|
65
|
-
"@sanity/schema": "^5.
|
|
64
|
+
"@sanity/runtime-cli": "^14.2.0",
|
|
65
|
+
"@sanity/schema": "^5.13.0",
|
|
66
66
|
"@sanity/telemetry": "^0.8.1",
|
|
67
67
|
"@sanity/template-validator": "^3.0.0",
|
|
68
|
-
"@sanity/types": "^5.
|
|
69
|
-
"@sanity/ui": "^3.1.
|
|
68
|
+
"@sanity/types": "^5.13.0",
|
|
69
|
+
"@sanity/ui": "^3.1.13",
|
|
70
70
|
"@sanity/worker-channels": "^2.0.0",
|
|
71
71
|
"@vercel/frameworks": "3.8.4",
|
|
72
72
|
"@vercel/fs-detectors": "5.5.2",
|
|
@@ -93,10 +93,11 @@
|
|
|
93
93
|
"nanoid": "^5.1.5",
|
|
94
94
|
"node-html-parser": "^7.0.1",
|
|
95
95
|
"oneline": "^2.0.0",
|
|
96
|
-
"open": "^
|
|
96
|
+
"open": "^11.0.0",
|
|
97
97
|
"p-map": "^7.0.3",
|
|
98
98
|
"package-directory": "^8.1.0",
|
|
99
99
|
"peek-stream": "^1.1.3",
|
|
100
|
+
"picomatch": "^4.0.3",
|
|
100
101
|
"pluralize-esm": "^9.0.5",
|
|
101
102
|
"preferred-pm": "^4.1.1",
|
|
102
103
|
"pretty-ms": "^9.3.0",
|
|
@@ -117,15 +118,15 @@
|
|
|
117
118
|
"tinyglobby": "^0.2.15",
|
|
118
119
|
"tsx": "^4.21.0",
|
|
119
120
|
"vite": "^7.3.1",
|
|
120
|
-
"which": "^
|
|
121
|
+
"which": "^6.0.1",
|
|
121
122
|
"zod": "^4.3.6",
|
|
122
|
-
"@sanity/cli-core": "0.1.0-alpha.
|
|
123
|
+
"@sanity/cli-core": "0.1.0-alpha.18"
|
|
123
124
|
},
|
|
124
125
|
"devDependencies": {
|
|
125
126
|
"@eslint/compat": "^2.0.2",
|
|
126
|
-
"@sanity/pkg-utils": "^10.4.
|
|
127
|
+
"@sanity/pkg-utils": "^10.4.6",
|
|
127
128
|
"@swc/cli": "^0.8.0",
|
|
128
|
-
"@swc/core": "^1.15.
|
|
129
|
+
"@swc/core": "^1.15.17",
|
|
129
130
|
"@types/babel__traverse": "^7.28.0",
|
|
130
131
|
"@types/debug": "^4.1.12",
|
|
131
132
|
"@types/gunzip-maybe": "^1.4.3",
|
|
@@ -133,6 +134,7 @@
|
|
|
133
134
|
"@types/minimist": "^1.2.5",
|
|
134
135
|
"@types/node": "^20.19.35",
|
|
135
136
|
"@types/react": "^19.2.14",
|
|
137
|
+
"@types/picomatch": "^4.0.2",
|
|
136
138
|
"@types/react-dom": "^19.2.3",
|
|
137
139
|
"@types/react-is": "^19.2.0",
|
|
138
140
|
"@types/semver": "^7.7.1",
|
|
@@ -148,14 +150,14 @@
|
|
|
148
150
|
"prettier": "^3.8.1",
|
|
149
151
|
"publint": "^0.3.17",
|
|
150
152
|
"rimraf": "^6.0.1",
|
|
151
|
-
"sanity": "^5.
|
|
153
|
+
"sanity": "^5.13.0",
|
|
152
154
|
"typescript": "^5.9.3",
|
|
153
155
|
"vite-tsconfig-paths": "^6.1.1",
|
|
154
156
|
"vitest": "^4.0.18",
|
|
155
157
|
"@repo/package.config": "0.0.1",
|
|
156
158
|
"@repo/tsconfig": "3.70.0",
|
|
157
|
-
"@sanity/cli-test": "0.0
|
|
158
|
-
"@sanity/eslint-config-cli": "0.0.0-alpha.
|
|
159
|
+
"@sanity/cli-test": "0.1.0-alpha.16",
|
|
160
|
+
"@sanity/eslint-config-cli": "0.0.0-alpha.4"
|
|
159
161
|
},
|
|
160
162
|
"engines": {
|
|
161
163
|
"node": ">=20.19.1 <22 || >=22.12"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { getSanityUrl } from '@sanity/cli-core';
|
|
2
|
-
export function getCoreAppURL({ httpHost = 'localhost', httpPort = 3333, organizationId }) {
|
|
3
|
-
const url = `http://${httpHost}:${httpPort}`;
|
|
4
|
-
const params = new URLSearchParams({
|
|
5
|
-
dev: url
|
|
6
|
-
});
|
|
7
|
-
return `${getSanityUrl()}/@${organizationId}?${params.toString()}`;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
//# sourceMappingURL=getCoreAppUrl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/actions/dev/getCoreAppUrl.ts"],"sourcesContent":["import {getSanityUrl} from '@sanity/cli-core'\n\nexport function getCoreAppURL({\n httpHost = 'localhost',\n httpPort = 3333,\n organizationId,\n}: {\n httpHost?: string\n httpPort?: number\n organizationId: string\n}): string {\n const url = `http://${httpHost}:${httpPort}`\n const params = new URLSearchParams({dev: url})\n\n return `${getSanityUrl()}/@${organizationId}?${params.toString()}`\n}\n"],"names":["getSanityUrl","getCoreAppURL","httpHost","httpPort","organizationId","url","params","URLSearchParams","dev","toString"],"mappings":"AAAA,SAAQA,YAAY,QAAO,mBAAkB;AAE7C,OAAO,SAASC,cAAc,EAC5BC,WAAW,WAAW,EACtBC,WAAW,IAAI,EACfC,cAAc,EAKf;IACC,MAAMC,MAAM,CAAC,OAAO,EAAEH,SAAS,CAAC,EAAEC,UAAU;IAC5C,MAAMG,SAAS,IAAIC,gBAAgB;QAACC,KAAKH;IAAG;IAE5C,OAAO,GAAGL,eAAe,EAAE,EAAEI,eAAe,CAAC,EAAEE,OAAOG,QAAQ,IAAI;AACpE"}
|