@sanity/cli 6.0.0-alpha.17 → 6.0.0-alpha.18
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 +833 -912
- package/dist/SanityHelp.js +74 -21
- package/dist/SanityHelp.js.map +1 -1
- package/dist/actions/build/buildApp.js +42 -15
- package/dist/actions/build/buildApp.js.map +1 -1
- package/dist/actions/build/buildStudio.js +21 -9
- package/dist/actions/build/buildStudio.js.map +1 -1
- package/dist/actions/build/buildVendorDependencies.js +3 -16
- package/dist/actions/build/buildVendorDependencies.js.map +1 -1
- package/dist/actions/build/checkStudioDependencyVersions.js +7 -7
- package/dist/actions/build/checkStudioDependencyVersions.js.map +1 -1
- package/dist/actions/build/createExternalFromImportMap.js +1 -1
- package/dist/actions/build/createExternalFromImportMap.js.map +1 -1
- package/dist/actions/build/determineBasePath.js +5 -2
- package/dist/actions/build/determineBasePath.js.map +1 -1
- package/dist/actions/build/handlePrereleaseVersions.js +44 -0
- package/dist/actions/build/handlePrereleaseVersions.js.map +1 -0
- package/dist/actions/build/types.js.map +1 -1
- package/dist/actions/dataset/create.js +7 -1
- package/dist/actions/dataset/create.js.map +1 -1
- package/dist/actions/dataset/resolveDataset.js +26 -0
- package/dist/actions/dataset/resolveDataset.js.map +1 -0
- package/dist/actions/deploy/deployApp.js +1 -8
- package/dist/actions/deploy/deployApp.js.map +1 -1
- package/dist/actions/deploy/deployStudio.js +1 -0
- package/dist/actions/deploy/deployStudio.js.map +1 -1
- package/dist/actions/dev/getDevServerConfig.js +5 -2
- package/dist/actions/dev/getDevServerConfig.js.map +1 -1
- package/dist/actions/dev/startStudioDevServer.js +8 -3
- package/dist/actions/dev/startStudioDevServer.js.map +1 -1
- package/dist/actions/documents/types.js.map +1 -1
- package/dist/actions/documents/validate.js +11 -2
- package/dist/actions/documents/validate.js.map +1 -1
- package/dist/actions/documents/validateDocuments.worker.js +2 -2
- package/dist/actions/documents/validateDocuments.worker.js.map +1 -1
- package/dist/actions/documents/validation/reporters/jsonReporter.js +1 -1
- package/dist/actions/documents/validation/reporters/jsonReporter.js.map +1 -1
- package/dist/actions/documents/validation/reporters/ndjsonReporter.js +1 -1
- package/dist/actions/documents/validation/reporters/ndjsonReporter.js.map +1 -1
- package/dist/actions/graphql/SchemaError.js +1 -1
- package/dist/actions/graphql/SchemaError.js.map +1 -1
- package/dist/actions/graphql/__tests__/fixtures/many-self-refs.js +540 -0
- package/dist/actions/graphql/__tests__/fixtures/many-self-refs.js.map +1 -0
- package/dist/actions/graphql/__tests__/fixtures/test-studio.js +1143 -0
- package/dist/actions/graphql/__tests__/fixtures/test-studio.js.map +1 -0
- package/dist/actions/graphql/__tests__/fixtures/union-refs.js +591 -0
- package/dist/actions/graphql/__tests__/fixtures/union-refs.js.map +1 -0
- package/dist/actions/graphql/__tests__/helpers.js +23 -0
- package/dist/actions/graphql/__tests__/helpers.js.map +1 -0
- package/dist/actions/graphql/extractFromSanitySchema.js +2 -1
- package/dist/actions/graphql/extractFromSanitySchema.js.map +1 -1
- package/dist/actions/graphql/gen1/generateTypeFilters.js +1 -1
- package/dist/actions/graphql/gen1/generateTypeFilters.js.map +1 -1
- package/dist/actions/graphql/gen1/generateTypeQueries.js +2 -1
- package/dist/actions/graphql/gen1/generateTypeQueries.js.map +1 -1
- package/dist/actions/graphql/gen2/generateTypeQueries.js +1 -1
- package/dist/actions/graphql/gen2/generateTypeQueries.js.map +1 -1
- package/dist/actions/graphql/gen3/generateTypeQueries.js +1 -1
- package/dist/actions/graphql/gen3/generateTypeQueries.js.map +1 -1
- package/dist/actions/graphql/getGraphQLAPIs.js +2 -10
- package/dist/actions/graphql/getGraphQLAPIs.js.map +1 -1
- package/dist/actions/graphql/getGraphQLAPIs.worker.js +1 -1
- package/dist/actions/graphql/getGraphQLAPIs.worker.js.map +1 -1
- package/dist/actions/graphql/types.js.map +1 -1
- package/dist/actions/init/bootstrapLocalTemplate.js +1 -1
- package/dist/actions/init/bootstrapLocalTemplate.js.map +1 -1
- package/dist/actions/manifest/extractAppManifest.js.map +1 -1
- package/dist/actions/manifest/extractManifest.js +1 -22
- package/dist/actions/manifest/extractManifest.js.map +1 -1
- package/dist/actions/manifest/types.js.map +1 -1
- package/dist/actions/schema/deploySchemas.js +57 -80
- package/dist/actions/schema/deploySchemas.js.map +1 -1
- package/dist/actions/schema/extractSanityWorkspace.worker.js +24 -0
- package/dist/actions/schema/extractSanityWorkspace.worker.js.map +1 -0
- package/dist/actions/schema/extractSchemaWatcher.js +1 -1
- package/dist/actions/schema/extractSchemaWatcher.js.map +1 -1
- package/dist/actions/schema/types.js +4 -0
- package/dist/actions/schema/types.js.map +1 -1
- package/dist/actions/schema/utils/schemaStoreValidation.js +1 -7
- package/dist/actions/schema/utils/schemaStoreValidation.js.map +1 -1
- package/dist/actions/schema/utils/uniqByProjectIdDataset.js +1 -1
- package/dist/actions/schema/utils/uniqByProjectIdDataset.js.map +1 -1
- package/dist/actions/schema/watchExtractSchema.js +2 -1
- package/dist/actions/schema/watchExtractSchema.js.map +1 -1
- package/dist/actions/versions/getFormatters.js +1 -1
- package/dist/actions/versions/getFormatters.js.map +1 -1
- package/dist/commands/backup/list.js +4 -1
- package/dist/commands/backup/list.js.map +1 -1
- package/dist/commands/dataset/copy.js +3 -1
- package/dist/commands/dataset/copy.js.map +1 -1
- package/dist/commands/dataset/create.js +12 -0
- package/dist/commands/dataset/create.js.map +1 -1
- package/dist/commands/dataset/embeddings/disable.js +62 -0
- package/dist/commands/dataset/embeddings/disable.js.map +1 -0
- package/dist/commands/dataset/embeddings/enable.js +128 -0
- package/dist/commands/dataset/embeddings/enable.js.map +1 -0
- package/dist/commands/dataset/embeddings/status.js +61 -0
- package/dist/commands/dataset/embeddings/status.js.map +1 -0
- package/dist/commands/debug.js +2 -1
- package/dist/commands/debug.js.map +1 -1
- package/dist/commands/documents/create.js +2 -1
- package/dist/commands/documents/create.js.map +1 -1
- package/dist/commands/graphql/deploy.js +1 -1
- package/dist/commands/graphql/deploy.js.map +1 -1
- package/dist/commands/hook/logs.js +1 -1
- package/dist/commands/hook/logs.js.map +1 -1
- package/dist/commands/init.js +13 -7
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/manage.js +0 -1
- package/dist/commands/manage.js.map +1 -1
- package/dist/commands/media/create-aspect.js +1 -1
- package/dist/commands/media/create-aspect.js.map +1 -1
- package/dist/commands/projects/list.js +2 -1
- package/dist/commands/projects/list.js.map +1 -1
- package/dist/commands/schema/deploy.js +11 -27
- package/dist/commands/schema/deploy.js.map +1 -1
- package/dist/commands/users/list.js +1 -1
- package/dist/commands/users/list.js.map +1 -1
- package/dist/commands/versions.js +1 -1
- package/dist/commands/versions.js.map +1 -1
- package/dist/exports/index.d.ts +62 -2
- package/dist/exports/index.js.map +1 -1
- package/dist/prompts/selectMediaLibrary.js +1 -1
- package/dist/prompts/selectMediaLibrary.js.map +1 -1
- package/dist/services/datasets.js +7 -5
- package/dist/services/datasets.js.map +1 -1
- package/dist/services/embeddings.js +25 -0
- package/dist/services/embeddings.js.map +1 -0
- package/dist/services/graphql.js.map +1 -1
- package/dist/services/schemas.js +1 -1
- package/dist/services/schemas.js.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/util/compareDependencyVersions.js +28 -7
- package/dist/util/compareDependencyVersions.js.map +1 -1
- package/dist/util/errorMessages.js +0 -1
- package/dist/util/errorMessages.js.map +1 -1
- package/dist/util/packageManager/getPeerDependencies.js +44 -0
- package/dist/util/packageManager/getPeerDependencies.js.map +1 -0
- package/oclif.manifest.json +283 -149
- package/package.json +12 -13
- package/dist/actions/schema/schemaStoreTypes.js +0 -19
- package/dist/actions/schema/schemaStoreTypes.js.map +0 -1
- package/dist/actions/schema/utils/manifestExtractor.js +0 -29
- package/dist/actions/schema/utils/manifestExtractor.js.map +0 -1
- package/dist/actions/schema/utils/manifestReader.js +0 -71
- package/dist/actions/schema/utils/manifestReader.js.map +0 -1
- package/dist/util/workerChannels.js +0 -172
- package/dist/util/workerChannels.js.map +0 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { execa } from 'execa';
|
|
2
|
+
import { getPartialEnvWithNpmPath } from './packageManagerChoice.js';
|
|
3
|
+
/**
|
|
4
|
+
* Resolves the peer dependencies of a package by querying the npm registry.
|
|
5
|
+
*
|
|
6
|
+
* @param packageName - Package name with version (e.g. "next-sanity\@11")
|
|
7
|
+
* @param cwd - Working directory (used to resolve local npm paths)
|
|
8
|
+
* @returns Array of peer dependency strings (e.g. ["next\@^15.0.0", "react\@^19.0.0"])
|
|
9
|
+
*/ export async function getPeerDependencies(packageName, cwd) {
|
|
10
|
+
let stdout;
|
|
11
|
+
try {
|
|
12
|
+
const result = await execa('npm', [
|
|
13
|
+
'view',
|
|
14
|
+
packageName,
|
|
15
|
+
'peerDependencies',
|
|
16
|
+
'--json'
|
|
17
|
+
], {
|
|
18
|
+
cwd,
|
|
19
|
+
encoding: 'utf8',
|
|
20
|
+
env: getPartialEnvWithNpmPath(cwd)
|
|
21
|
+
});
|
|
22
|
+
stdout = result.stdout;
|
|
23
|
+
} catch (error) {
|
|
24
|
+
throw new Error(`Failed to resolve peer dependencies for ${packageName}`, {
|
|
25
|
+
cause: error
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
if (!stdout.trim()) {
|
|
29
|
+
return [];
|
|
30
|
+
}
|
|
31
|
+
try {
|
|
32
|
+
const peerDeps = JSON.parse(stdout);
|
|
33
|
+
if (!peerDeps || typeof peerDeps !== 'object') {
|
|
34
|
+
return [];
|
|
35
|
+
}
|
|
36
|
+
return Object.entries(peerDeps).map(([name, range])=>`${name}@${range}`);
|
|
37
|
+
} catch (error) {
|
|
38
|
+
throw new Error(`Failed to resolve peer dependencies for ${packageName}`, {
|
|
39
|
+
cause: error
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=getPeerDependencies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/util/packageManager/getPeerDependencies.ts"],"sourcesContent":["import {execa} from 'execa'\n\nimport {getPartialEnvWithNpmPath} from './packageManagerChoice.js'\n\n/**\n * Resolves the peer dependencies of a package by querying the npm registry.\n *\n * @param packageName - Package name with version (e.g. \"next-sanity\\@11\")\n * @param cwd - Working directory (used to resolve local npm paths)\n * @returns Array of peer dependency strings (e.g. [\"next\\@^15.0.0\", \"react\\@^19.0.0\"])\n */\nexport async function getPeerDependencies(packageName: string, cwd: string): Promise<string[]> {\n let stdout: string\n try {\n const result = await execa('npm', ['view', packageName, 'peerDependencies', '--json'], {\n cwd,\n encoding: 'utf8',\n env: getPartialEnvWithNpmPath(cwd),\n })\n stdout = result.stdout\n } catch (error) {\n throw new Error(`Failed to resolve peer dependencies for ${packageName}`, {cause: error})\n }\n\n if (!stdout.trim()) {\n return []\n }\n\n try {\n const peerDeps: Record<string, string> | null = JSON.parse(stdout)\n if (!peerDeps || typeof peerDeps !== 'object') {\n return []\n }\n return Object.entries(peerDeps).map(([name, range]) => `${name}@${range}`)\n } catch (error) {\n throw new Error(`Failed to resolve peer dependencies for ${packageName}`, {cause: error})\n }\n}\n"],"names":["execa","getPartialEnvWithNpmPath","getPeerDependencies","packageName","cwd","stdout","result","encoding","env","error","Error","cause","trim","peerDeps","JSON","parse","Object","entries","map","name","range"],"mappings":"AAAA,SAAQA,KAAK,QAAO,QAAO;AAE3B,SAAQC,wBAAwB,QAAO,4BAA2B;AAElE;;;;;;CAMC,GACD,OAAO,eAAeC,oBAAoBC,WAAmB,EAAEC,GAAW;IACxE,IAAIC;IACJ,IAAI;QACF,MAAMC,SAAS,MAAMN,MAAM,OAAO;YAAC;YAAQG;YAAa;YAAoB;SAAS,EAAE;YACrFC;YACAG,UAAU;YACVC,KAAKP,yBAAyBG;QAChC;QACAC,SAASC,OAAOD,MAAM;IACxB,EAAE,OAAOI,OAAO;QACd,MAAM,IAAIC,MAAM,CAAC,wCAAwC,EAAEP,aAAa,EAAE;YAACQ,OAAOF;QAAK;IACzF;IAEA,IAAI,CAACJ,OAAOO,IAAI,IAAI;QAClB,OAAO,EAAE;IACX;IAEA,IAAI;QACF,MAAMC,WAA0CC,KAAKC,KAAK,CAACV;QAC3D,IAAI,CAACQ,YAAY,OAAOA,aAAa,UAAU;YAC7C,OAAO,EAAE;QACX;QACA,OAAOG,OAAOC,OAAO,CAACJ,UAAUK,GAAG,CAAC,CAAC,CAACC,MAAMC,MAAM,GAAK,GAAGD,KAAK,CAAC,EAAEC,OAAO;IAC3E,EAAE,OAAOX,OAAO;QACd,MAAM,IAAIC,MAAM,CAAC,wCAAwC,EAAEP,aAAa,EAAE;YAACQ,OAAOF;QAAK;IACzF;AACF"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1375,6 +1375,22 @@
|
|
|
1375
1375
|
}
|
|
1376
1376
|
],
|
|
1377
1377
|
"flags": {
|
|
1378
|
+
"embeddings": {
|
|
1379
|
+
"description": "Enable embeddings for this dataset",
|
|
1380
|
+
"name": "embeddings",
|
|
1381
|
+
"allowNo": false,
|
|
1382
|
+
"type": "boolean"
|
|
1383
|
+
},
|
|
1384
|
+
"embeddings-projection": {
|
|
1385
|
+
"dependsOn": [
|
|
1386
|
+
"embeddings"
|
|
1387
|
+
],
|
|
1388
|
+
"description": "GROQ projection for embeddings indexing (e.g. \"{ title, body }\")",
|
|
1389
|
+
"name": "embeddings-projection",
|
|
1390
|
+
"hasDynamicHelp": false,
|
|
1391
|
+
"multiple": false,
|
|
1392
|
+
"type": "option"
|
|
1393
|
+
},
|
|
1378
1394
|
"visibility": {
|
|
1379
1395
|
"description": "Set visibility for this dataset (custom/private/public)",
|
|
1380
1396
|
"name": "visibility",
|
|
@@ -3008,150 +3024,6 @@
|
|
|
3008
3024
|
"list.js"
|
|
3009
3025
|
]
|
|
3010
3026
|
},
|
|
3011
|
-
"projects:create": {
|
|
3012
|
-
"aliases": [],
|
|
3013
|
-
"args": {
|
|
3014
|
-
"projectName": {
|
|
3015
|
-
"description": "Name of the project to create",
|
|
3016
|
-
"name": "projectName",
|
|
3017
|
-
"required": false
|
|
3018
|
-
}
|
|
3019
|
-
},
|
|
3020
|
-
"description": "Create a new Sanity project",
|
|
3021
|
-
"examples": [
|
|
3022
|
-
{
|
|
3023
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3024
|
-
"description": "Interactively create a project"
|
|
3025
|
-
},
|
|
3026
|
-
{
|
|
3027
|
-
"command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
|
|
3028
|
-
"description": "Create a project named \"My New Project\""
|
|
3029
|
-
},
|
|
3030
|
-
{
|
|
3031
|
-
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --organization=my-org",
|
|
3032
|
-
"description": "Create a project in a specific organization"
|
|
3033
|
-
},
|
|
3034
|
-
{
|
|
3035
|
-
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --dataset=staging --dataset-visibility=private",
|
|
3036
|
-
"description": "Create a project with a private dataset named \"staging\""
|
|
3037
|
-
},
|
|
3038
|
-
{
|
|
3039
|
-
"command": "<%= config.bin %> <%= command.id %> \"CI Project\" --yes --json",
|
|
3040
|
-
"description": "Create a project non-interactively with JSON output"
|
|
3041
|
-
}
|
|
3042
|
-
],
|
|
3043
|
-
"flags": {
|
|
3044
|
-
"dataset": {
|
|
3045
|
-
"description": "Create a dataset. Prompts for visibility unless specified or --yes used",
|
|
3046
|
-
"name": "dataset",
|
|
3047
|
-
"hasDynamicHelp": false,
|
|
3048
|
-
"multiple": false,
|
|
3049
|
-
"type": "option"
|
|
3050
|
-
},
|
|
3051
|
-
"dataset-visibility": {
|
|
3052
|
-
"description": "Dataset visibility: public or private",
|
|
3053
|
-
"name": "dataset-visibility",
|
|
3054
|
-
"hasDynamicHelp": false,
|
|
3055
|
-
"multiple": false,
|
|
3056
|
-
"options": [
|
|
3057
|
-
"private",
|
|
3058
|
-
"public"
|
|
3059
|
-
],
|
|
3060
|
-
"type": "option"
|
|
3061
|
-
},
|
|
3062
|
-
"json": {
|
|
3063
|
-
"description": "Output in JSON format",
|
|
3064
|
-
"name": "json",
|
|
3065
|
-
"allowNo": false,
|
|
3066
|
-
"type": "boolean"
|
|
3067
|
-
},
|
|
3068
|
-
"organization": {
|
|
3069
|
-
"description": "Organization to create the project in",
|
|
3070
|
-
"name": "organization",
|
|
3071
|
-
"hasDynamicHelp": false,
|
|
3072
|
-
"helpValue": "<slug|id>",
|
|
3073
|
-
"multiple": false,
|
|
3074
|
-
"type": "option"
|
|
3075
|
-
},
|
|
3076
|
-
"yes": {
|
|
3077
|
-
"char": "y",
|
|
3078
|
-
"description": "Skip prompts and use defaults (project: \"My Sanity Project\", dataset: production, visibility: public)",
|
|
3079
|
-
"name": "yes",
|
|
3080
|
-
"allowNo": false,
|
|
3081
|
-
"type": "boolean"
|
|
3082
|
-
}
|
|
3083
|
-
},
|
|
3084
|
-
"hasDynamicHelp": false,
|
|
3085
|
-
"hiddenAliases": [],
|
|
3086
|
-
"id": "projects:create",
|
|
3087
|
-
"pluginAlias": "@sanity/cli",
|
|
3088
|
-
"pluginName": "@sanity/cli",
|
|
3089
|
-
"pluginType": "core",
|
|
3090
|
-
"strict": true,
|
|
3091
|
-
"isESM": true,
|
|
3092
|
-
"relativePath": [
|
|
3093
|
-
"dist",
|
|
3094
|
-
"commands",
|
|
3095
|
-
"projects",
|
|
3096
|
-
"create.js"
|
|
3097
|
-
]
|
|
3098
|
-
},
|
|
3099
|
-
"projects:list": {
|
|
3100
|
-
"aliases": [],
|
|
3101
|
-
"args": {},
|
|
3102
|
-
"description": "Lists projects connected to your user",
|
|
3103
|
-
"examples": [
|
|
3104
|
-
{
|
|
3105
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3106
|
-
"description": "List projects"
|
|
3107
|
-
},
|
|
3108
|
-
{
|
|
3109
|
-
"command": "<%= config.bin %> <%= command.id %> --sort=members --order=asc",
|
|
3110
|
-
"description": "List all users of the project, but exclude pending invitations and robots"
|
|
3111
|
-
}
|
|
3112
|
-
],
|
|
3113
|
-
"flags": {
|
|
3114
|
-
"order": {
|
|
3115
|
-
"name": "order",
|
|
3116
|
-
"default": "desc",
|
|
3117
|
-
"hasDynamicHelp": false,
|
|
3118
|
-
"multiple": false,
|
|
3119
|
-
"options": [
|
|
3120
|
-
"asc",
|
|
3121
|
-
"desc"
|
|
3122
|
-
],
|
|
3123
|
-
"type": "option"
|
|
3124
|
-
},
|
|
3125
|
-
"sort": {
|
|
3126
|
-
"name": "sort",
|
|
3127
|
-
"default": "created",
|
|
3128
|
-
"hasDynamicHelp": false,
|
|
3129
|
-
"multiple": false,
|
|
3130
|
-
"options": [
|
|
3131
|
-
"id",
|
|
3132
|
-
"members",
|
|
3133
|
-
"name",
|
|
3134
|
-
"url",
|
|
3135
|
-
"created"
|
|
3136
|
-
],
|
|
3137
|
-
"type": "option"
|
|
3138
|
-
}
|
|
3139
|
-
},
|
|
3140
|
-
"hasDynamicHelp": false,
|
|
3141
|
-
"hiddenAliases": [],
|
|
3142
|
-
"id": "projects:list",
|
|
3143
|
-
"pluginAlias": "@sanity/cli",
|
|
3144
|
-
"pluginName": "@sanity/cli",
|
|
3145
|
-
"pluginType": "core",
|
|
3146
|
-
"strict": true,
|
|
3147
|
-
"isESM": true,
|
|
3148
|
-
"relativePath": [
|
|
3149
|
-
"dist",
|
|
3150
|
-
"commands",
|
|
3151
|
-
"projects",
|
|
3152
|
-
"list.js"
|
|
3153
|
-
]
|
|
3154
|
-
},
|
|
3155
3027
|
"schema:delete": {
|
|
3156
3028
|
"aliases": [],
|
|
3157
3029
|
"args": {},
|
|
@@ -3232,10 +3104,6 @@
|
|
|
3232
3104
|
{
|
|
3233
3105
|
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
3234
3106
|
"description": "Deploy the schema for only the workspace \"default\""
|
|
3235
|
-
},
|
|
3236
|
-
{
|
|
3237
|
-
"command": "<%= config.bin %> <%= command.id %> --no-extract-manifest",
|
|
3238
|
-
"description": "Runs using a pre-existing manifest file. Config changes in sanity.config will not be picked up in this case."
|
|
3239
3107
|
}
|
|
3240
3108
|
],
|
|
3241
3109
|
"flags": {
|
|
@@ -3874,6 +3742,150 @@
|
|
|
3874
3742
|
"list.js"
|
|
3875
3743
|
]
|
|
3876
3744
|
},
|
|
3745
|
+
"projects:create": {
|
|
3746
|
+
"aliases": [],
|
|
3747
|
+
"args": {
|
|
3748
|
+
"projectName": {
|
|
3749
|
+
"description": "Name of the project to create",
|
|
3750
|
+
"name": "projectName",
|
|
3751
|
+
"required": false
|
|
3752
|
+
}
|
|
3753
|
+
},
|
|
3754
|
+
"description": "Create a new Sanity project",
|
|
3755
|
+
"examples": [
|
|
3756
|
+
{
|
|
3757
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3758
|
+
"description": "Interactively create a project"
|
|
3759
|
+
},
|
|
3760
|
+
{
|
|
3761
|
+
"command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
|
|
3762
|
+
"description": "Create a project named \"My New Project\""
|
|
3763
|
+
},
|
|
3764
|
+
{
|
|
3765
|
+
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --organization=my-org",
|
|
3766
|
+
"description": "Create a project in a specific organization"
|
|
3767
|
+
},
|
|
3768
|
+
{
|
|
3769
|
+
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --dataset=staging --dataset-visibility=private",
|
|
3770
|
+
"description": "Create a project with a private dataset named \"staging\""
|
|
3771
|
+
},
|
|
3772
|
+
{
|
|
3773
|
+
"command": "<%= config.bin %> <%= command.id %> \"CI Project\" --yes --json",
|
|
3774
|
+
"description": "Create a project non-interactively with JSON output"
|
|
3775
|
+
}
|
|
3776
|
+
],
|
|
3777
|
+
"flags": {
|
|
3778
|
+
"dataset": {
|
|
3779
|
+
"description": "Create a dataset. Prompts for visibility unless specified or --yes used",
|
|
3780
|
+
"name": "dataset",
|
|
3781
|
+
"hasDynamicHelp": false,
|
|
3782
|
+
"multiple": false,
|
|
3783
|
+
"type": "option"
|
|
3784
|
+
},
|
|
3785
|
+
"dataset-visibility": {
|
|
3786
|
+
"description": "Dataset visibility: public or private",
|
|
3787
|
+
"name": "dataset-visibility",
|
|
3788
|
+
"hasDynamicHelp": false,
|
|
3789
|
+
"multiple": false,
|
|
3790
|
+
"options": [
|
|
3791
|
+
"private",
|
|
3792
|
+
"public"
|
|
3793
|
+
],
|
|
3794
|
+
"type": "option"
|
|
3795
|
+
},
|
|
3796
|
+
"json": {
|
|
3797
|
+
"description": "Output in JSON format",
|
|
3798
|
+
"name": "json",
|
|
3799
|
+
"allowNo": false,
|
|
3800
|
+
"type": "boolean"
|
|
3801
|
+
},
|
|
3802
|
+
"organization": {
|
|
3803
|
+
"description": "Organization to create the project in",
|
|
3804
|
+
"name": "organization",
|
|
3805
|
+
"hasDynamicHelp": false,
|
|
3806
|
+
"helpValue": "<slug|id>",
|
|
3807
|
+
"multiple": false,
|
|
3808
|
+
"type": "option"
|
|
3809
|
+
},
|
|
3810
|
+
"yes": {
|
|
3811
|
+
"char": "y",
|
|
3812
|
+
"description": "Skip prompts and use defaults (project: \"My Sanity Project\", dataset: production, visibility: public)",
|
|
3813
|
+
"name": "yes",
|
|
3814
|
+
"allowNo": false,
|
|
3815
|
+
"type": "boolean"
|
|
3816
|
+
}
|
|
3817
|
+
},
|
|
3818
|
+
"hasDynamicHelp": false,
|
|
3819
|
+
"hiddenAliases": [],
|
|
3820
|
+
"id": "projects:create",
|
|
3821
|
+
"pluginAlias": "@sanity/cli",
|
|
3822
|
+
"pluginName": "@sanity/cli",
|
|
3823
|
+
"pluginType": "core",
|
|
3824
|
+
"strict": true,
|
|
3825
|
+
"isESM": true,
|
|
3826
|
+
"relativePath": [
|
|
3827
|
+
"dist",
|
|
3828
|
+
"commands",
|
|
3829
|
+
"projects",
|
|
3830
|
+
"create.js"
|
|
3831
|
+
]
|
|
3832
|
+
},
|
|
3833
|
+
"projects:list": {
|
|
3834
|
+
"aliases": [],
|
|
3835
|
+
"args": {},
|
|
3836
|
+
"description": "Lists projects connected to your user",
|
|
3837
|
+
"examples": [
|
|
3838
|
+
{
|
|
3839
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3840
|
+
"description": "List projects"
|
|
3841
|
+
},
|
|
3842
|
+
{
|
|
3843
|
+
"command": "<%= config.bin %> <%= command.id %> --sort=members --order=asc",
|
|
3844
|
+
"description": "List all users of the project, but exclude pending invitations and robots"
|
|
3845
|
+
}
|
|
3846
|
+
],
|
|
3847
|
+
"flags": {
|
|
3848
|
+
"order": {
|
|
3849
|
+
"name": "order",
|
|
3850
|
+
"default": "desc",
|
|
3851
|
+
"hasDynamicHelp": false,
|
|
3852
|
+
"multiple": false,
|
|
3853
|
+
"options": [
|
|
3854
|
+
"asc",
|
|
3855
|
+
"desc"
|
|
3856
|
+
],
|
|
3857
|
+
"type": "option"
|
|
3858
|
+
},
|
|
3859
|
+
"sort": {
|
|
3860
|
+
"name": "sort",
|
|
3861
|
+
"default": "created",
|
|
3862
|
+
"hasDynamicHelp": false,
|
|
3863
|
+
"multiple": false,
|
|
3864
|
+
"options": [
|
|
3865
|
+
"id",
|
|
3866
|
+
"members",
|
|
3867
|
+
"name",
|
|
3868
|
+
"url",
|
|
3869
|
+
"created"
|
|
3870
|
+
],
|
|
3871
|
+
"type": "option"
|
|
3872
|
+
}
|
|
3873
|
+
},
|
|
3874
|
+
"hasDynamicHelp": false,
|
|
3875
|
+
"hiddenAliases": [],
|
|
3876
|
+
"id": "projects:list",
|
|
3877
|
+
"pluginAlias": "@sanity/cli",
|
|
3878
|
+
"pluginName": "@sanity/cli",
|
|
3879
|
+
"pluginType": "core",
|
|
3880
|
+
"strict": true,
|
|
3881
|
+
"isESM": true,
|
|
3882
|
+
"relativePath": [
|
|
3883
|
+
"dist",
|
|
3884
|
+
"commands",
|
|
3885
|
+
"projects",
|
|
3886
|
+
"list.js"
|
|
3887
|
+
]
|
|
3888
|
+
},
|
|
3877
3889
|
"dataset:alias:create": {
|
|
3878
3890
|
"aliases": [],
|
|
3879
3891
|
"args": {
|
|
@@ -4166,7 +4178,129 @@
|
|
|
4166
4178
|
"visibility",
|
|
4167
4179
|
"set.js"
|
|
4168
4180
|
]
|
|
4181
|
+
},
|
|
4182
|
+
"dataset:embeddings:disable": {
|
|
4183
|
+
"aliases": [],
|
|
4184
|
+
"args": {
|
|
4185
|
+
"dataset": {
|
|
4186
|
+
"description": "Dataset name to disable embeddings for",
|
|
4187
|
+
"name": "dataset",
|
|
4188
|
+
"required": false
|
|
4189
|
+
}
|
|
4190
|
+
},
|
|
4191
|
+
"description": "Disable embeddings for a dataset",
|
|
4192
|
+
"examples": [
|
|
4193
|
+
{
|
|
4194
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
4195
|
+
"description": "Disable embeddings for the production dataset"
|
|
4196
|
+
}
|
|
4197
|
+
],
|
|
4198
|
+
"flags": {},
|
|
4199
|
+
"hasDynamicHelp": false,
|
|
4200
|
+
"hiddenAliases": [],
|
|
4201
|
+
"id": "dataset:embeddings:disable",
|
|
4202
|
+
"pluginAlias": "@sanity/cli",
|
|
4203
|
+
"pluginName": "@sanity/cli",
|
|
4204
|
+
"pluginType": "core",
|
|
4205
|
+
"strict": true,
|
|
4206
|
+
"isESM": true,
|
|
4207
|
+
"relativePath": [
|
|
4208
|
+
"dist",
|
|
4209
|
+
"commands",
|
|
4210
|
+
"dataset",
|
|
4211
|
+
"embeddings",
|
|
4212
|
+
"disable.js"
|
|
4213
|
+
]
|
|
4214
|
+
},
|
|
4215
|
+
"dataset:embeddings:enable": {
|
|
4216
|
+
"aliases": [],
|
|
4217
|
+
"args": {
|
|
4218
|
+
"dataset": {
|
|
4219
|
+
"description": "Dataset name to enable embeddings for",
|
|
4220
|
+
"name": "dataset",
|
|
4221
|
+
"required": false
|
|
4222
|
+
}
|
|
4223
|
+
},
|
|
4224
|
+
"description": "Enable embeddings for a dataset",
|
|
4225
|
+
"examples": [
|
|
4226
|
+
{
|
|
4227
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
4228
|
+
"description": "Enable embeddings for the production dataset"
|
|
4229
|
+
},
|
|
4230
|
+
{
|
|
4231
|
+
"command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
|
|
4232
|
+
"description": "Enable embeddings with a specific projection"
|
|
4233
|
+
},
|
|
4234
|
+
{
|
|
4235
|
+
"command": "<%= config.bin %> <%= command.id %> production --wait",
|
|
4236
|
+
"description": "Enable embeddings and wait for processing to complete"
|
|
4237
|
+
}
|
|
4238
|
+
],
|
|
4239
|
+
"flags": {
|
|
4240
|
+
"projection": {
|
|
4241
|
+
"description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
|
|
4242
|
+
"name": "projection",
|
|
4243
|
+
"required": false,
|
|
4244
|
+
"hasDynamicHelp": false,
|
|
4245
|
+
"multiple": false,
|
|
4246
|
+
"type": "option"
|
|
4247
|
+
},
|
|
4248
|
+
"wait": {
|
|
4249
|
+
"description": "Wait for embeddings processing to complete before returning",
|
|
4250
|
+
"name": "wait",
|
|
4251
|
+
"allowNo": false,
|
|
4252
|
+
"type": "boolean"
|
|
4253
|
+
}
|
|
4254
|
+
},
|
|
4255
|
+
"hasDynamicHelp": false,
|
|
4256
|
+
"hiddenAliases": [],
|
|
4257
|
+
"id": "dataset:embeddings:enable",
|
|
4258
|
+
"pluginAlias": "@sanity/cli",
|
|
4259
|
+
"pluginName": "@sanity/cli",
|
|
4260
|
+
"pluginType": "core",
|
|
4261
|
+
"strict": true,
|
|
4262
|
+
"isESM": true,
|
|
4263
|
+
"relativePath": [
|
|
4264
|
+
"dist",
|
|
4265
|
+
"commands",
|
|
4266
|
+
"dataset",
|
|
4267
|
+
"embeddings",
|
|
4268
|
+
"enable.js"
|
|
4269
|
+
]
|
|
4270
|
+
},
|
|
4271
|
+
"dataset:embeddings:status": {
|
|
4272
|
+
"aliases": [],
|
|
4273
|
+
"args": {
|
|
4274
|
+
"dataset": {
|
|
4275
|
+
"description": "The name of the dataset to check embeddings status for",
|
|
4276
|
+
"name": "dataset",
|
|
4277
|
+
"required": false
|
|
4278
|
+
}
|
|
4279
|
+
},
|
|
4280
|
+
"description": "Show embeddings settings and status for a dataset",
|
|
4281
|
+
"examples": [
|
|
4282
|
+
{
|
|
4283
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
4284
|
+
"description": "Show embeddings status for the production dataset"
|
|
4285
|
+
}
|
|
4286
|
+
],
|
|
4287
|
+
"flags": {},
|
|
4288
|
+
"hasDynamicHelp": false,
|
|
4289
|
+
"hiddenAliases": [],
|
|
4290
|
+
"id": "dataset:embeddings:status",
|
|
4291
|
+
"pluginAlias": "@sanity/cli",
|
|
4292
|
+
"pluginName": "@sanity/cli",
|
|
4293
|
+
"pluginType": "core",
|
|
4294
|
+
"strict": true,
|
|
4295
|
+
"isESM": true,
|
|
4296
|
+
"relativePath": [
|
|
4297
|
+
"dist",
|
|
4298
|
+
"commands",
|
|
4299
|
+
"dataset",
|
|
4300
|
+
"embeddings",
|
|
4301
|
+
"status.js"
|
|
4302
|
+
]
|
|
4169
4303
|
}
|
|
4170
4304
|
},
|
|
4171
|
-
"version": "6.0.0-alpha.
|
|
4305
|
+
"version": "6.0.0-alpha.18"
|
|
4172
4306
|
}
|
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.18",
|
|
4
4
|
"description": "Sanity CLI tool for managing Sanity projects and organizations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@babel/traverse": "^7.29.0",
|
|
52
|
-
"@oclif/core": "^4.8.
|
|
52
|
+
"@oclif/core": "^4.8.1",
|
|
53
53
|
"@oclif/plugin-help": "^6.2.37",
|
|
54
54
|
"@oclif/plugin-not-found": "^3.2.74",
|
|
55
55
|
"@rexxars/gitconfiglocal": "^3.0.1",
|
|
@@ -61,12 +61,13 @@
|
|
|
61
61
|
"@sanity/id-utils": "^1.0.0",
|
|
62
62
|
"@sanity/import": "^4.1.2",
|
|
63
63
|
"@sanity/migrate": "^5.2.5",
|
|
64
|
-
"@sanity/runtime-cli": "^
|
|
64
|
+
"@sanity/runtime-cli": "^14.1.0",
|
|
65
65
|
"@sanity/schema": "^5.12.0",
|
|
66
66
|
"@sanity/telemetry": "^0.8.1",
|
|
67
67
|
"@sanity/template-validator": "^3.0.0",
|
|
68
68
|
"@sanity/types": "^5.12.0",
|
|
69
69
|
"@sanity/ui": "^3.1.11",
|
|
70
|
+
"@sanity/worker-channels": "^2.0.0",
|
|
70
71
|
"@vercel/frameworks": "3.8.4",
|
|
71
72
|
"@vercel/fs-detectors": "5.5.2",
|
|
72
73
|
"@vitejs/plugin-react": "^5.1.4",
|
|
@@ -82,7 +83,6 @@
|
|
|
82
83
|
"git-user-info": "^2.0.3",
|
|
83
84
|
"gunzip-maybe": "^1.4.2",
|
|
84
85
|
"import-meta-resolve": "^4.2.0",
|
|
85
|
-
"install-peerdeps": "^3.0.7",
|
|
86
86
|
"is-installed-globally": "^1.0.0",
|
|
87
87
|
"is-tar": "^1.0.0",
|
|
88
88
|
"isomorphic-dompurify": "^2.32.0",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"semver": "^7.7.2",
|
|
112
112
|
"semver-compare": "^1.0.0",
|
|
113
113
|
"smol-toml": "^1.6.0",
|
|
114
|
-
"tar": "^7.5.
|
|
114
|
+
"tar": "^7.5.9",
|
|
115
115
|
"tar-fs": "^3.1.0",
|
|
116
116
|
"tar-stream": "^3.1.7",
|
|
117
117
|
"tinyglobby": "^0.2.15",
|
|
@@ -119,19 +119,19 @@
|
|
|
119
119
|
"vite": "^7.3.1",
|
|
120
120
|
"which": "^5.0.0",
|
|
121
121
|
"zod": "^4.3.6",
|
|
122
|
-
"@sanity/cli-core": "0.1.0-alpha.
|
|
122
|
+
"@sanity/cli-core": "0.1.0-alpha.17"
|
|
123
123
|
},
|
|
124
124
|
"devDependencies": {
|
|
125
125
|
"@eslint/compat": "^2.0.2",
|
|
126
126
|
"@sanity/pkg-utils": "^10.4.4",
|
|
127
127
|
"@swc/cli": "^0.8.0",
|
|
128
|
-
"@swc/core": "^1.15.
|
|
128
|
+
"@swc/core": "^1.15.13",
|
|
129
129
|
"@types/babel__traverse": "^7.28.0",
|
|
130
130
|
"@types/debug": "^4.1.12",
|
|
131
131
|
"@types/gunzip-maybe": "^1.4.3",
|
|
132
132
|
"@types/lodash-es": "^4.17.12",
|
|
133
133
|
"@types/minimist": "^1.2.5",
|
|
134
|
-
"@types/node": "^20.19.
|
|
134
|
+
"@types/node": "^20.19.35",
|
|
135
135
|
"@types/react": "^19.2.14",
|
|
136
136
|
"@types/react-dom": "^19.2.3",
|
|
137
137
|
"@types/react-is": "^19.2.0",
|
|
@@ -141,11 +141,10 @@
|
|
|
141
141
|
"@types/tar-stream": "^3.1.4",
|
|
142
142
|
"@types/which": "^3.0.4",
|
|
143
143
|
"@vitest/coverage-istanbul": "^4.0.18",
|
|
144
|
-
"@vitest/utils": "^4.0.18",
|
|
145
144
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
146
|
-
"eslint": "^9.39.
|
|
145
|
+
"eslint": "^9.39.3",
|
|
147
146
|
"nock": "^14.0.11",
|
|
148
|
-
"oclif": "^4.22.
|
|
147
|
+
"oclif": "^4.22.81",
|
|
149
148
|
"prettier": "^3.8.1",
|
|
150
149
|
"publint": "^0.3.17",
|
|
151
150
|
"rimraf": "^6.0.1",
|
|
@@ -155,8 +154,8 @@
|
|
|
155
154
|
"vitest": "^4.0.18",
|
|
156
155
|
"@repo/package.config": "0.0.1",
|
|
157
156
|
"@repo/tsconfig": "3.70.0",
|
|
158
|
-
"@sanity/cli-test": "0.0.2-alpha.
|
|
159
|
-
"@sanity/eslint-config-cli": "0.0.0-alpha.
|
|
157
|
+
"@sanity/cli-test": "0.0.2-alpha.16",
|
|
158
|
+
"@sanity/eslint-config-cli": "0.0.0-alpha.3"
|
|
160
159
|
},
|
|
161
160
|
"engines": {
|
|
162
161
|
"node": ">=20.19.1 <22 || >=22.12"
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* There is more context locally to decide how and when to log, depending on flags;
|
|
3
|
-
* we therefore let actions log as soon as possible, possibly stopping stack unwinding.
|
|
4
|
-
* This gives us more control over the color and detail of the error message, as well as ensuring
|
|
5
|
-
* we dont double-log errors up the chain.
|
|
6
|
-
*
|
|
7
|
-
* Depending on flags, store actions can fail without throwing; to allow control flow to continue,
|
|
8
|
-
* even in the face of failure (--schema-required ture/false for store)
|
|
9
|
-
*
|
|
10
|
-
* It is up to action to make this distinction based on flags.
|
|
11
|
-
*
|
|
12
|
-
* However, we _do_ want to ensure correct exit code on commands (0 vs 1), so
|
|
13
|
-
* CLI command chains are stopped if a store command fails.
|
|
14
|
-
*
|
|
15
|
-
* Invalid flags will always throw.
|
|
16
|
-
*
|
|
17
|
-
*/ export { };
|
|
18
|
-
|
|
19
|
-
//# sourceMappingURL=schemaStoreTypes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/actions/schema/schemaStoreTypes.ts"],"sourcesContent":["/**\n * There is more context locally to decide how and when to log, depending on flags;\n * we therefore let actions log as soon as possible, possibly stopping stack unwinding.\n * This gives us more control over the color and detail of the error message, as well as ensuring\n * we dont double-log errors up the chain.\n *\n * Depending on flags, store actions can fail without throwing; to allow control flow to continue,\n * even in the face of failure (--schema-required ture/false for store)\n *\n * It is up to action to make this distinction based on flags.\n *\n * However, we _do_ want to ensure correct exit code on commands (0 vs 1), so\n * CLI command chains are stopped if a store command fails.\n *\n * Invalid flags will always throw.\n *\n */\nexport type SchemaStoreActionResult = 'failure' | 'success'\n"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;CAgBC,GACD,WAA2D"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { styleText } from 'node:util';
|
|
2
|
-
import { extractManifestSafe } from '../../manifest/extractManifest.js';
|
|
3
|
-
import { FlagValidationError } from './schemaStoreValidation.js';
|
|
4
|
-
export async function ensureManifestExtractSatisfied(args) {
|
|
5
|
-
const { extractManifest, manifestDir, manifestSafe, output, schemaRequired } = args;
|
|
6
|
-
if (!extractManifest) {
|
|
7
|
-
return true;
|
|
8
|
-
}
|
|
9
|
-
try {
|
|
10
|
-
// a successful manifest extract will write a new manifest file, which manifestReader will then read from disk
|
|
11
|
-
const error = await extractManifestSafe({
|
|
12
|
-
outPath: manifestDir,
|
|
13
|
-
output
|
|
14
|
-
});
|
|
15
|
-
if (!manifestSafe && error) {
|
|
16
|
-
throw error;
|
|
17
|
-
}
|
|
18
|
-
return true;
|
|
19
|
-
} catch (err) {
|
|
20
|
-
if (schemaRequired || err instanceof FlagValidationError) {
|
|
21
|
-
throw err;
|
|
22
|
-
} else {
|
|
23
|
-
output.log(styleText('gray', `↳ Failed to extract manifest:\n ${err.message}`));
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
//# sourceMappingURL=manifestExtractor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/actions/schema/utils/manifestExtractor.ts"],"sourcesContent":["import {styleText} from 'node:util'\n\nimport {type Output} from '@sanity/cli-core'\n\nimport {extractManifestSafe} from '../../manifest/extractManifest.js'\nimport {FlagValidationError} from './schemaStoreValidation.js'\n\nexport async function ensureManifestExtractSatisfied(args: {\n extractManifest: boolean\n manifestDir: string\n manifestSafe?: boolean\n output: Output\n schemaRequired?: boolean\n workDir: string\n}) {\n const {extractManifest, manifestDir, manifestSafe, output, schemaRequired} = args\n if (!extractManifest) {\n return true\n }\n try {\n // a successful manifest extract will write a new manifest file, which manifestReader will then read from disk\n const error = await extractManifestSafe({\n outPath: manifestDir,\n output,\n })\n\n if (!manifestSafe && error) {\n throw error\n }\n\n return true\n } catch (err) {\n if (schemaRequired || err instanceof FlagValidationError) {\n throw err\n } else {\n output.log(styleText('gray', `↳ Failed to extract manifest:\\n ${err.message}`))\n return false\n }\n }\n}\n"],"names":["styleText","extractManifestSafe","FlagValidationError","ensureManifestExtractSatisfied","args","extractManifest","manifestDir","manifestSafe","output","schemaRequired","error","outPath","err","log","message"],"mappings":"AAAA,SAAQA,SAAS,QAAO,YAAW;AAInC,SAAQC,mBAAmB,QAAO,oCAAmC;AACrE,SAAQC,mBAAmB,QAAO,6BAA4B;AAE9D,OAAO,eAAeC,+BAA+BC,IAOpD;IACC,MAAM,EAACC,eAAe,EAAEC,WAAW,EAAEC,YAAY,EAAEC,MAAM,EAAEC,cAAc,EAAC,GAAGL;IAC7E,IAAI,CAACC,iBAAiB;QACpB,OAAO;IACT;IACA,IAAI;QACF,8GAA8G;QAC9G,MAAMK,QAAQ,MAAMT,oBAAoB;YACtCU,SAASL;YACTE;QACF;QAEA,IAAI,CAACD,gBAAgBG,OAAO;YAC1B,MAAMA;QACR;QAEA,OAAO;IACT,EAAE,OAAOE,KAAK;QACZ,IAAIH,kBAAkBG,eAAeV,qBAAqB;YACxD,MAAMU;QACR,OAAO;YACLJ,OAAOK,GAAG,CAACb,UAAU,QAAQ,CAAC,iCAAiC,EAAEY,IAAIE,OAAO,EAAE;YAC9E,OAAO;QACT;IACF;AACF"}
|