@sanity/cli 6.1.4 → 6.1.6
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 +78 -78
- package/dist/actions/debug/gatherDebugInfo.js +10 -12
- package/dist/actions/debug/gatherDebugInfo.js.map +1 -1
- package/dist/actions/debug/types.js.map +1 -1
- package/dist/actions/deploy/deployStudioSchemasAndManifests.worker.js +19 -15
- package/dist/actions/deploy/deployStudioSchemasAndManifests.worker.js.map +1 -1
- package/dist/actions/exec/execScript.js +19 -7
- package/dist/actions/exec/execScript.js.map +1 -1
- package/dist/actions/manifest/types.js.map +1 -1
- package/dist/actions/schema/deploySchemas.js +7 -1
- package/dist/actions/schema/deploySchemas.js.map +1 -1
- package/dist/actions/schema/extractSanityWorkspace.worker.js +9 -1
- package/dist/actions/schema/extractSanityWorkspace.worker.js.map +1 -1
- package/dist/actions/schema/getExtractOptions.js +14 -3
- package/dist/actions/schema/getExtractOptions.js.map +1 -1
- package/dist/actions/schema/updateWorkspaceSchema.js +2 -2
- package/dist/actions/schema/updateWorkspaceSchema.js.map +1 -1
- package/dist/commands/debug.js +17 -6
- package/dist/commands/debug.js.map +1 -1
- package/dist/util/cliClient.js +1 -1
- package/dist/util/cliClient.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +12 -12
- package/dist/actions/exec/configClient.worker.js +0 -9
- package/dist/actions/exec/configClient.worker.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/commands/debug.ts"],"sourcesContent":["import path from 'node:path'\nimport {styleText} from 'node:util'\n\nimport {Flags} from '@oclif/core'\nimport {SanityCommand} from '@sanity/cli-core'\nimport omit from 'lodash-es/omit.js'\nimport padStart from 'lodash-es/padStart.js'\n\nimport {formatObject, printKeyValue} from '../actions/debug/formatters.js'\nimport {gatherDebugInfo} from '../actions/debug/gatherDebugInfo.js'\nimport {getGlobalConfigLocation} from '../actions/debug/getGlobalConfigLocation.js'\nimport {getDisplayName, getFormatters} from '../actions/versions/getFormatters.js'\n\nexport class Debug extends SanityCommand<typeof Debug> {\n static override description = 'Provides diagnostic info for Sanity Studio troubleshooting'\n\n static override examples = [\n '<%= config.bin %> <%= command.id %>',\n '<%= config.bin %> <%= command.id %> --secrets',\n ]\n\n static override flags = {\n secrets: Flags.boolean({\n default: false,\n description: 'Include API keys in output',\n }),\n }\n\n public async run(): Promise<void> {\n const {flags} = this\n\n try {\n
|
|
1
|
+
{"version":3,"sources":["../../src/commands/debug.ts"],"sourcesContent":["import path from 'node:path'\nimport {styleText} from 'node:util'\n\nimport {Flags} from '@oclif/core'\nimport {ProjectRootNotFoundError, SanityCommand} from '@sanity/cli-core'\nimport omit from 'lodash-es/omit.js'\nimport padStart from 'lodash-es/padStart.js'\n\nimport {formatObject, printKeyValue} from '../actions/debug/formatters.js'\nimport {gatherDebugInfo} from '../actions/debug/gatherDebugInfo.js'\nimport {getGlobalConfigLocation} from '../actions/debug/getGlobalConfigLocation.js'\nimport {getDisplayName, getFormatters} from '../actions/versions/getFormatters.js'\n\nexport class Debug extends SanityCommand<typeof Debug> {\n static override description = 'Provides diagnostic info for Sanity Studio troubleshooting'\n\n static override examples = [\n '<%= config.bin %> <%= command.id %>',\n '<%= config.bin %> <%= command.id %> --secrets',\n ]\n\n static override flags = {\n secrets: Flags.boolean({\n default: false,\n description: 'Include API keys in output',\n }),\n }\n\n public async run(): Promise<void> {\n const {flags} = this\n\n try {\n let projectRoot\n try {\n projectRoot = await this.getProjectRoot()\n } catch (err) {\n if (!(err instanceof ProjectRootNotFoundError)) throw err\n }\n\n const cliConfig = projectRoot ? await this.getCliConfig() : undefined\n\n const {auth, globalConfig, project, projectConfig, user, versions} = await gatherDebugInfo({\n cliConfig,\n includeSecrets: flags.secrets,\n projectRoot,\n })\n\n this.output.log('\\nUser:')\n if (user instanceof Error) {\n this.log(` ${styleText('red', user.message)}\\n`)\n } else if (user) {\n printKeyValue({\n ID: user.id,\n Name: user.name,\n // eslint-disable-next-line perfectionist/sort-objects\n Email: user.email,\n Roles: project && 'userRoles' in project ? project.userRoles : undefined,\n })\n }\n\n // Project info (API-based)\n if (project && 'id' in project) {\n this.log('Project:')\n printKeyValue({\n ID: project.id,\n // eslint-disable-next-line perfectionist/sort-objects\n 'Display name': project.displayName,\n })\n }\n\n // Auth info\n if (auth.hasToken) {\n this.log('Authentication:')\n printKeyValue({\n 'Auth token': flags.secrets ? auth.authToken : `<redacted>`,\n 'User type': globalConfig.authType || 'normal',\n })\n\n if (!flags.secrets) {\n this.log(' (run with --secrets to reveal token)\\n')\n }\n }\n\n // Global configuration (user home dir config file)\n this.log(`Global config (${styleText('yellow', getGlobalConfigLocation())}):`)\n const globalCfg = omit(globalConfig, ['authType', 'authToken'])\n this.log(` ${formatObject(globalCfg).replaceAll('\\n', '\\n ')}\\n`)\n\n // Project configuration (projectDir/sanity.cli.ts)\n if (!projectRoot) {\n this.log('No project found\\n')\n } else if (projectConfig instanceof Error) {\n this.log(`CLI configuration error: ${styleText('red', projectConfig.message)}\\n`)\n } else if (projectConfig) {\n const configLocation = ` (${styleText('yellow', path.relative(process.cwd(), projectRoot.path))})`\n\n this.log(`Project config${configLocation}:`)\n this.log(` ${formatObject(projectConfig).replaceAll('\\n', '\\n ')}`)\n } else {\n this.log('No CLI configuration file found\\n')\n }\n\n // Print installed package versions\n if (versions) {\n this.log('\\nPackage versions:')\n\n const {formatName, versionLength} = getFormatters(versions)\n for (const mod of versions) {\n const version = padStart(mod.installed || '<missing>', versionLength)\n const latest =\n mod.installed === mod.latest\n ? styleText('green', '(up to date)')\n : `(latest: ${styleText('yellow', mod.latest)})`\n\n this.log(`${formatName(getDisplayName(mod))} ${version} ${latest}`)\n }\n\n this.log('')\n }\n } catch (error) {\n this.error(\n `Failed to gather debug information: ${error instanceof Error ? error.message : 'Unknown error'}`,\n )\n }\n }\n}\n"],"names":["path","styleText","Flags","ProjectRootNotFoundError","SanityCommand","omit","padStart","formatObject","printKeyValue","gatherDebugInfo","getGlobalConfigLocation","getDisplayName","getFormatters","Debug","description","examples","flags","secrets","boolean","default","run","projectRoot","getProjectRoot","err","cliConfig","getCliConfig","undefined","auth","globalConfig","project","projectConfig","user","versions","includeSecrets","output","log","Error","message","ID","id","Name","name","Email","email","Roles","userRoles","displayName","hasToken","authToken","authType","globalCfg","replaceAll","configLocation","relative","process","cwd","formatName","versionLength","mod","version","installed","latest","error"],"mappings":"AAAA,OAAOA,UAAU,YAAW;AAC5B,SAAQC,SAAS,QAAO,YAAW;AAEnC,SAAQC,KAAK,QAAO,cAAa;AACjC,SAAQC,wBAAwB,EAAEC,aAAa,QAAO,mBAAkB;AACxE,OAAOC,UAAU,oBAAmB;AACpC,OAAOC,cAAc,wBAAuB;AAE5C,SAAQC,YAAY,EAAEC,aAAa,QAAO,iCAAgC;AAC1E,SAAQC,eAAe,QAAO,sCAAqC;AACnE,SAAQC,uBAAuB,QAAO,8CAA6C;AACnF,SAAQC,cAAc,EAAEC,aAAa,QAAO,uCAAsC;AAElF,OAAO,MAAMC,cAAcT;IACzB,OAAgBU,cAAc,6DAA4D;IAE1F,OAAgBC,WAAW;QACzB;QACA;KACD,CAAA;IAED,OAAgBC,QAAQ;QACtBC,SAASf,MAAMgB,OAAO,CAAC;YACrBC,SAAS;YACTL,aAAa;QACf;IACF,EAAC;IAED,MAAaM,MAAqB;QAChC,MAAM,EAACJ,KAAK,EAAC,GAAG,IAAI;QAEpB,IAAI;YACF,IAAIK;YACJ,IAAI;gBACFA,cAAc,MAAM,IAAI,CAACC,cAAc;YACzC,EAAE,OAAOC,KAAK;gBACZ,IAAI,CAAEA,CAAAA,eAAepB,wBAAuB,GAAI,MAAMoB;YACxD;YAEA,MAAMC,YAAYH,cAAc,MAAM,IAAI,CAACI,YAAY,KAAKC;YAE5D,MAAM,EAACC,IAAI,EAAEC,YAAY,EAAEC,OAAO,EAAEC,aAAa,EAAEC,IAAI,EAAEC,QAAQ,EAAC,GAAG,MAAMvB,gBAAgB;gBACz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} from '@sanity/client';
|
|
|
9
9
|
if (typeof process !== 'object') {
|
|
10
10
|
throw new TypeError('getCliClient() should only be called from node.js scripts');
|
|
11
11
|
}
|
|
12
|
-
const { apiVersion = '2022-06-06', cwd = process.env.SANITY_BASE_PATH || process.cwd(), dataset, projectId, token = getCliClient.__internal__getToken(), useCdn = false, ...restOfOptions } = options;
|
|
12
|
+
const { apiVersion = '2022-06-06', cwd = process.env.SANITY_BASE_PATH || process.cwd(), dataset, projectId, token = getCliClient.__internal__getToken() ?? (process.env.SANITY_AUTH_TOKEN || undefined), useCdn = false, ...restOfOptions } = options;
|
|
13
13
|
if (projectId && dataset) {
|
|
14
14
|
return createClient({
|
|
15
15
|
apiVersion,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/util/cliClient.ts"],"sourcesContent":["import {findProjectRootSync, getCliConfigSync} from '@sanity/cli-core'\nimport {type ClientConfig, createClient, type SanityClient} from '@sanity/client'\n\n/**\n * @public\n */\nexport interface CliClientOptions extends ClientConfig {\n /**\n * If no `projectId` or `dataset` is provided, `getCliClient` will try to\n * resolve these from the `sanity.cli.ts` configuration file. Use this option\n * to specify the directory to look for this file.\n */\n cwd?: string\n}\n\n/**\n * @public\n *\n * @param options - The options to use for the client.\n * @returns A configured Sanity API client.\n */\nexport const getCliClient: CliClientGetter = (options: CliClientOptions = {}): SanityClient => {\n if (typeof process !== 'object') {\n throw new TypeError('getCliClient() should only be called from node.js scripts')\n }\n\n const {\n apiVersion = '2022-06-06',\n cwd = process.env.SANITY_BASE_PATH || process.cwd(),\n dataset,\n projectId,\n token = getCliClient.__internal__getToken(),\n useCdn = false,\n ...restOfOptions\n } = options\n\n if (projectId && dataset) {\n return createClient({apiVersion, dataset, projectId, token, useCdn, ...restOfOptions})\n }\n\n const projectRoot = findProjectRootSync(cwd)\n const cliConfig = getCliConfigSync(projectRoot.directory)\n\n if (!cliConfig) {\n throw new Error('Unable to resolve CLI configuration')\n }\n\n const apiConfig = cliConfig.api || {}\n if (!apiConfig.projectId || !apiConfig.dataset) {\n throw new Error('Unable to resolve project ID/dataset from CLI configuration')\n }\n\n return createClient({\n apiVersion,\n dataset: apiConfig.dataset,\n projectId: apiConfig.projectId,\n token,\n useCdn,\n ...restOfOptions,\n })\n}\n\ntype CliClientGetter = ((options?: CliClientOptions) => SanityClient) & {\n /**\n * @deprecated This is only for INTERNAL use, and should not be relied upon outside of official Sanity modules\n * @returns A token to use when constructing a client without a `token` explicitly defined, or undefined\n * @internal\n */\n __internal__getToken: () => string | undefined\n}\n\ngetCliClient.__internal__getToken = (): string | undefined => undefined\n"],"names":["findProjectRootSync","getCliConfigSync","createClient","getCliClient","options","process","TypeError","apiVersion","cwd","env","SANITY_BASE_PATH","dataset","projectId","token","__internal__getToken","useCdn","restOfOptions","projectRoot","cliConfig","directory","Error","apiConfig","api"
|
|
1
|
+
{"version":3,"sources":["../../src/util/cliClient.ts"],"sourcesContent":["import {findProjectRootSync, getCliConfigSync} from '@sanity/cli-core'\nimport {type ClientConfig, createClient, type SanityClient} from '@sanity/client'\n\n/**\n * @public\n */\nexport interface CliClientOptions extends ClientConfig {\n /**\n * If no `projectId` or `dataset` is provided, `getCliClient` will try to\n * resolve these from the `sanity.cli.ts` configuration file. Use this option\n * to specify the directory to look for this file.\n */\n cwd?: string\n}\n\n/**\n * @public\n *\n * @param options - The options to use for the client.\n * @returns A configured Sanity API client.\n */\nexport const getCliClient: CliClientGetter = (options: CliClientOptions = {}): SanityClient => {\n if (typeof process !== 'object') {\n throw new TypeError('getCliClient() should only be called from node.js scripts')\n }\n\n const {\n apiVersion = '2022-06-06',\n cwd = process.env.SANITY_BASE_PATH || process.cwd(),\n dataset,\n projectId,\n token = getCliClient.__internal__getToken() ?? (process.env.SANITY_AUTH_TOKEN || undefined),\n useCdn = false,\n ...restOfOptions\n } = options\n\n if (projectId && dataset) {\n return createClient({apiVersion, dataset, projectId, token, useCdn, ...restOfOptions})\n }\n\n const projectRoot = findProjectRootSync(cwd)\n const cliConfig = getCliConfigSync(projectRoot.directory)\n\n if (!cliConfig) {\n throw new Error('Unable to resolve CLI configuration')\n }\n\n const apiConfig = cliConfig.api || {}\n if (!apiConfig.projectId || !apiConfig.dataset) {\n throw new Error('Unable to resolve project ID/dataset from CLI configuration')\n }\n\n return createClient({\n apiVersion,\n dataset: apiConfig.dataset,\n projectId: apiConfig.projectId,\n token,\n useCdn,\n ...restOfOptions,\n })\n}\n\ntype CliClientGetter = ((options?: CliClientOptions) => SanityClient) & {\n /**\n * @deprecated This is only for INTERNAL use, and should not be relied upon outside of official Sanity modules\n * @returns A token to use when constructing a client without a `token` explicitly defined, or undefined\n * @internal\n */\n __internal__getToken: () => string | undefined\n}\n\ngetCliClient.__internal__getToken = (): string | undefined => undefined\n"],"names":["findProjectRootSync","getCliConfigSync","createClient","getCliClient","options","process","TypeError","apiVersion","cwd","env","SANITY_BASE_PATH","dataset","projectId","token","__internal__getToken","SANITY_AUTH_TOKEN","undefined","useCdn","restOfOptions","projectRoot","cliConfig","directory","Error","apiConfig","api"],"mappings":"AAAA,SAAQA,mBAAmB,EAAEC,gBAAgB,QAAO,mBAAkB;AACtE,SAA2BC,YAAY,QAA0B,iBAAgB;AAcjF;;;;;CAKC,GACD,OAAO,MAAMC,eAAgC,CAACC,UAA4B,CAAC,CAAC;IAC1E,IAAI,OAAOC,YAAY,UAAU;QAC/B,MAAM,IAAIC,UAAU;IACtB;IAEA,MAAM,EACJC,aAAa,YAAY,EACzBC,MAAMH,QAAQI,GAAG,CAACC,gBAAgB,IAAIL,QAAQG,GAAG,EAAE,EACnDG,OAAO,EACPC,SAAS,EACTC,QAAQV,aAAaW,oBAAoB,MAAOT,CAAAA,QAAQI,GAAG,CAACM,iBAAiB,IAAIC,SAAQ,CAAE,EAC3FC,SAAS,KAAK,EACd,GAAGC,eACJ,GAAGd;IAEJ,IAAIQ,aAAaD,SAAS;QACxB,OAAOT,aAAa;YAACK;YAAYI;YAASC;YAAWC;YAAOI;YAAQ,GAAGC,aAAa;QAAA;IACtF;IAEA,MAAMC,cAAcnB,oBAAoBQ;IACxC,MAAMY,YAAYnB,iBAAiBkB,YAAYE,SAAS;IAExD,IAAI,CAACD,WAAW;QACd,MAAM,IAAIE,MAAM;IAClB;IAEA,MAAMC,YAAYH,UAAUI,GAAG,IAAI,CAAC;IACpC,IAAI,CAACD,UAAUX,SAAS,IAAI,CAACW,UAAUZ,OAAO,EAAE;QAC9C,MAAM,IAAIW,MAAM;IAClB;IAEA,OAAOpB,aAAa;QAClBK;QACAI,SAASY,UAAUZ,OAAO;QAC1BC,WAAWW,UAAUX,SAAS;QAC9BC;QACAI;QACA,GAAGC,aAAa;IAClB;AACF,EAAC;AAWDf,aAAaW,oBAAoB,GAAG,IAA0BE"}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/cli",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.6",
|
|
4
4
|
"description": "Sanity CLI tool for managing Sanity projects and organizations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -63,14 +63,14 @@
|
|
|
63
63
|
"@sanity/import": "^5.0.1",
|
|
64
64
|
"@sanity/migrate": "^6.0.0",
|
|
65
65
|
"@sanity/runtime-cli": "^14.5.0",
|
|
66
|
-
"@sanity/schema": "^5.
|
|
66
|
+
"@sanity/schema": "^5.16.0",
|
|
67
67
|
"@sanity/telemetry": "^0.8.1",
|
|
68
68
|
"@sanity/template-validator": "^3.0.0",
|
|
69
|
-
"@sanity/types": "^5.
|
|
70
|
-
"@sanity/ui": "^3.1.
|
|
69
|
+
"@sanity/types": "^5.16.0",
|
|
70
|
+
"@sanity/ui": "^3.1.14",
|
|
71
71
|
"@sanity/worker-channels": "^2.0.0",
|
|
72
72
|
"@vercel/frameworks": "3.8.4",
|
|
73
|
-
"@vitejs/plugin-react": "^5.
|
|
73
|
+
"@vitejs/plugin-react": "^5.2.0",
|
|
74
74
|
"chokidar": "^5.0.0",
|
|
75
75
|
"console-table-printer": "^2.15.0",
|
|
76
76
|
"date-fns": "^4.1.0",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
},
|
|
123
123
|
"devDependencies": {
|
|
124
124
|
"@eslint/compat": "^2.0.3",
|
|
125
|
-
"@sanity/pkg-utils": "^10.4.
|
|
125
|
+
"@sanity/pkg-utils": "^10.4.10",
|
|
126
126
|
"@swc/cli": "^0.8.0",
|
|
127
127
|
"@swc/core": "^1.15.18",
|
|
128
128
|
"@types/debug": "^4.1.12",
|
|
@@ -138,21 +138,21 @@
|
|
|
138
138
|
"@types/tar-fs": "^2.0.4",
|
|
139
139
|
"@types/tar-stream": "^3.1.4",
|
|
140
140
|
"@types/which": "^3.0.4",
|
|
141
|
-
"@vitest/coverage-istanbul": "^4.0
|
|
141
|
+
"@vitest/coverage-istanbul": "^4.1.0",
|
|
142
142
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
143
143
|
"eslint": "^9.39.4",
|
|
144
144
|
"nock": "^14.0.11",
|
|
145
145
|
"oclif": "^4.22.87",
|
|
146
146
|
"publint": "^0.3.18",
|
|
147
147
|
"rimraf": "^6.0.1",
|
|
148
|
-
"sanity": "^5.
|
|
148
|
+
"sanity": "^5.16.0",
|
|
149
149
|
"typescript": "^5.9.3",
|
|
150
150
|
"vite-tsconfig-paths": "^6.1.1",
|
|
151
|
-
"vitest": "^4.0
|
|
152
|
-
"@repo/package.config": "0.0.1",
|
|
151
|
+
"vitest": "^4.1.0",
|
|
153
152
|
"@repo/tsconfig": "3.70.0",
|
|
154
|
-
"@
|
|
155
|
-
"@sanity/eslint-config-cli": "1.0.0"
|
|
153
|
+
"@repo/package.config": "0.0.1",
|
|
154
|
+
"@sanity/eslint-config-cli": "1.0.0",
|
|
155
|
+
"@sanity/cli-test": "0.2.4"
|
|
156
156
|
},
|
|
157
157
|
"engines": {
|
|
158
158
|
"node": ">=20.19.1 <22 || >=22.12"
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { getCliToken } from '@sanity/cli-core';
|
|
2
|
-
import { getCliClient } from '../../util/cliClient.js';
|
|
3
|
-
const token = await getCliToken();
|
|
4
|
-
if (!token) {
|
|
5
|
-
throw new Error('--with-user-token specified, but no auth token could be found. Run `sanity login`');
|
|
6
|
-
}
|
|
7
|
-
getCliClient.__internal__getToken = ()=>token;
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=configClient.worker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/actions/exec/configClient.worker.ts"],"sourcesContent":["import {getCliToken} from '@sanity/cli-core'\n\nimport {getCliClient} from '../../util/cliClient.js'\n\nconst token = await getCliToken()\nif (!token) {\n throw new Error(\n '--with-user-token specified, but no auth token could be found. Run `sanity login`',\n )\n}\n\ngetCliClient.__internal__getToken = () => token\n"],"names":["getCliToken","getCliClient","token","Error","__internal__getToken"],"mappings":"AAAA,SAAQA,WAAW,QAAO,mBAAkB;AAE5C,SAAQC,YAAY,QAAO,0BAAyB;AAEpD,MAAMC,QAAQ,MAAMF;AACpB,IAAI,CAACE,OAAO;IACV,MAAM,IAAIC,MACR;AAEJ;AAEAF,aAAaG,oBAAoB,GAAG,IAAMF"}
|