@sanity/cli 6.5.3 → 6.7.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.
Files changed (188) hide show
  1. package/README.md +18 -5
  2. package/bin/run.js +3 -1
  3. package/dist/actions/auth/login/login.js +39 -13
  4. package/dist/actions/auth/login/login.js.map +1 -1
  5. package/dist/actions/auth/login/validateToken.js +39 -0
  6. package/dist/actions/auth/login/validateToken.js.map +1 -0
  7. package/dist/actions/build/buildApp.js +4 -5
  8. package/dist/actions/build/buildApp.js.map +1 -1
  9. package/dist/actions/build/buildStaticFiles.js +12 -4
  10. package/dist/actions/build/buildStaticFiles.js.map +1 -1
  11. package/dist/actions/build/buildStudio.js +6 -14
  12. package/dist/actions/build/buildStudio.js.map +1 -1
  13. package/dist/actions/build/{getStudioEnvironmentVariables.js → getEnvironmentVariables.js} +15 -19
  14. package/dist/actions/build/getEnvironmentVariables.js.map +1 -0
  15. package/dist/actions/deploy/deployStudio.js +1 -2
  16. package/dist/actions/deploy/deployStudio.js.map +1 -1
  17. package/dist/actions/deploy/deployStudioSchemasAndManifests.js +1 -2
  18. package/dist/actions/deploy/deployStudioSchemasAndManifests.js.map +1 -1
  19. package/dist/actions/deploy/deployStudioSchemasAndManifests.worker.js +1 -1
  20. package/dist/actions/deploy/deployStudioSchemasAndManifests.worker.js.map +1 -1
  21. package/dist/actions/dev/startStudioDevServer.js +1 -1
  22. package/dist/actions/dev/startStudioDevServer.js.map +1 -1
  23. package/dist/actions/documents/validateDocuments.worker.js +1 -2
  24. package/dist/actions/documents/validateDocuments.worker.js.map +1 -1
  25. package/dist/actions/graphql/SchemaError.js +1 -1
  26. package/dist/actions/graphql/SchemaError.js.map +1 -1
  27. package/dist/actions/init/initAction.js +32 -1
  28. package/dist/actions/init/initAction.js.map +1 -1
  29. package/dist/actions/init/scaffoldTemplate.js +32 -18
  30. package/dist/actions/init/scaffoldTemplate.js.map +1 -1
  31. package/dist/actions/init/templates/index.js +2 -0
  32. package/dist/actions/init/templates/index.js.map +1 -1
  33. package/dist/actions/init/templates/pageBuilder.js +32 -0
  34. package/dist/actions/init/templates/pageBuilder.js.map +1 -0
  35. package/dist/actions/init/types.js +2 -1
  36. package/dist/actions/init/types.js.map +1 -1
  37. package/dist/actions/manifest/extractManifest.js +1 -1
  38. package/dist/actions/manifest/extractManifest.js.map +1 -1
  39. package/dist/actions/manifest/extractManifest.worker.js +1 -1
  40. package/dist/actions/manifest/extractManifest.worker.js.map +1 -1
  41. package/dist/actions/mcp/editorConfigs.js +51 -11
  42. package/dist/actions/mcp/editorConfigs.js.map +1 -1
  43. package/dist/actions/mcp/promptForMCPSetup.js +16 -11
  44. package/dist/actions/mcp/promptForMCPSetup.js.map +1 -1
  45. package/dist/actions/mcp/setupMCP.js +180 -61
  46. package/dist/actions/mcp/setupMCP.js.map +1 -1
  47. package/dist/actions/mcp/types.js.map +1 -1
  48. package/dist/actions/schema/deploySchemas.js +1 -1
  49. package/dist/actions/schema/deploySchemas.js.map +1 -1
  50. package/dist/actions/schema/extractSanityWorkspace.worker.js +1 -1
  51. package/dist/actions/schema/extractSanityWorkspace.worker.js.map +1 -1
  52. package/dist/actions/schema/extractSchema.js +1 -4
  53. package/dist/actions/schema/extractSchema.js.map +1 -1
  54. package/dist/actions/schema/extractSchemaWatcher.js +1 -4
  55. package/dist/actions/schema/extractSchemaWatcher.js.map +1 -1
  56. package/dist/actions/schema/getExtractOptions.js +8 -18
  57. package/dist/actions/schema/getExtractOptions.js.map +1 -1
  58. package/dist/actions/schema/types.js +0 -6
  59. package/dist/actions/schema/types.js.map +1 -1
  60. package/dist/actions/schema/validateAction.js +1 -1
  61. package/dist/actions/schema/validateAction.js.map +1 -1
  62. package/dist/actions/schema/validateSchema.worker.js +1 -2
  63. package/dist/actions/schema/validateSchema.worker.js.map +1 -1
  64. package/dist/actions/schema/watchExtractSchema.js +1 -1
  65. package/dist/actions/schema/watchExtractSchema.js.map +1 -1
  66. package/dist/actions/skills/readSkillState.js +54 -0
  67. package/dist/actions/skills/readSkillState.js.map +1 -0
  68. package/dist/actions/skills/setupSkills.js +73 -0
  69. package/dist/actions/skills/setupSkills.js.map +1 -0
  70. package/dist/commands/build.js +9 -22
  71. package/dist/commands/build.js.map +1 -1
  72. package/dist/commands/cors/add.js +5 -5
  73. package/dist/commands/cors/add.js.map +1 -1
  74. package/dist/commands/datasets/export.js +9 -0
  75. package/dist/commands/datasets/export.js.map +1 -1
  76. package/dist/commands/docs/read.js +33 -12
  77. package/dist/commands/docs/read.js.map +1 -1
  78. package/dist/commands/init.js +12 -1
  79. package/dist/commands/init.js.map +1 -1
  80. package/dist/commands/login.js +28 -5
  81. package/dist/commands/login.js.map +1 -1
  82. package/dist/commands/manifest/extract.js +1 -2
  83. package/dist/commands/manifest/extract.js.map +1 -1
  84. package/dist/commands/mcp/configure.js +2 -1
  85. package/dist/commands/mcp/configure.js.map +1 -1
  86. package/dist/commands/schemas/deploy.js +1 -2
  87. package/dist/commands/schemas/deploy.js.map +1 -1
  88. package/dist/exports/_internal.d.ts +2 -1
  89. package/dist/exports/_internal.js +1 -1
  90. package/dist/exports/_internal.js.map +1 -1
  91. package/dist/server/devServer.js +25 -4
  92. package/dist/server/devServer.js.map +1 -1
  93. package/dist/server/previewServer.js +1 -1
  94. package/dist/server/previewServer.js.map +1 -1
  95. package/dist/services/mcp.js +1 -1
  96. package/dist/services/mcp.js.map +1 -1
  97. package/dist/telemetry/init.telemetry.js.map +1 -1
  98. package/oclif.manifest.json +237 -205
  99. package/package.json +15 -16
  100. package/templates/page-builder/README.md +9 -0
  101. package/templates/page-builder/schemaTypes/hero.js +31 -0
  102. package/templates/page-builder/schemaTypes/index.js +19 -0
  103. package/templates/page-builder/static/.gitkeep +0 -0
  104. package/dist/actions/build/buildDebug.js +0 -4
  105. package/dist/actions/build/buildDebug.js.map +0 -1
  106. package/dist/actions/build/buildVendorDependencies.js +0 -149
  107. package/dist/actions/build/buildVendorDependencies.js.map +0 -1
  108. package/dist/actions/build/checkStudioDependencyVersions.js +0 -155
  109. package/dist/actions/build/checkStudioDependencyVersions.js.map +0 -1
  110. package/dist/actions/build/createExternalFromImportMap.js +0 -11
  111. package/dist/actions/build/createExternalFromImportMap.js.map +0 -1
  112. package/dist/actions/build/decorateIndexWithAutoGeneratedWarning.js +0 -13
  113. package/dist/actions/build/decorateIndexWithAutoGeneratedWarning.js.map +0 -1
  114. package/dist/actions/build/decorateIndexWithBridgeScript.js +0 -17
  115. package/dist/actions/build/decorateIndexWithBridgeScript.js.map +0 -1
  116. package/dist/actions/build/decorateIndexWithStagingScript.js +0 -16
  117. package/dist/actions/build/decorateIndexWithStagingScript.js.map +0 -1
  118. package/dist/actions/build/getAppEnvVars.js +0 -9
  119. package/dist/actions/build/getAppEnvVars.js.map +0 -1
  120. package/dist/actions/build/getEntryModule.js +0 -46
  121. package/dist/actions/build/getEntryModule.js.map +0 -1
  122. package/dist/actions/build/getPossibleDocumentComponentLocations.js +0 -11
  123. package/dist/actions/build/getPossibleDocumentComponentLocations.js.map +0 -1
  124. package/dist/actions/build/getStudioEnvVars.js +0 -9
  125. package/dist/actions/build/getStudioEnvVars.js.map +0 -1
  126. package/dist/actions/build/getStudioEnvironmentVariables.js.map +0 -1
  127. package/dist/actions/build/getViteConfig.js +0 -219
  128. package/dist/actions/build/getViteConfig.js.map +0 -1
  129. package/dist/actions/build/normalizeBasePath.js +0 -9
  130. package/dist/actions/build/normalizeBasePath.js.map +0 -1
  131. package/dist/actions/build/renderDocument.js +0 -50
  132. package/dist/actions/build/renderDocument.js.map +0 -1
  133. package/dist/actions/build/renderDocument.worker.js +0 -9
  134. package/dist/actions/build/renderDocument.worker.js.map +0 -1
  135. package/dist/actions/build/renderDocumentWorker/addTimestampImportMapScriptToHtml.js +0 -79
  136. package/dist/actions/build/renderDocumentWorker/addTimestampImportMapScriptToHtml.js.map +0 -1
  137. package/dist/actions/build/renderDocumentWorker/components/BasicDocument.js +0 -61
  138. package/dist/actions/build/renderDocumentWorker/components/BasicDocument.js.map +0 -1
  139. package/dist/actions/build/renderDocumentWorker/components/DefaultDocument.js +0 -165
  140. package/dist/actions/build/renderDocumentWorker/components/DefaultDocument.js.map +0 -1
  141. package/dist/actions/build/renderDocumentWorker/components/Favicons.js +0 -28
  142. package/dist/actions/build/renderDocumentWorker/components/Favicons.js.map +0 -1
  143. package/dist/actions/build/renderDocumentWorker/components/GlobalErrorHandler.js +0 -178
  144. package/dist/actions/build/renderDocumentWorker/components/GlobalErrorHandler.js.map +0 -1
  145. package/dist/actions/build/renderDocumentWorker/components/NoJavascript.js +0 -51
  146. package/dist/actions/build/renderDocumentWorker/components/NoJavascript.js.map +0 -1
  147. package/dist/actions/build/renderDocumentWorker/getDocumentComponent.js +0 -41
  148. package/dist/actions/build/renderDocumentWorker/getDocumentComponent.js.map +0 -1
  149. package/dist/actions/build/renderDocumentWorker/getDocumentHtml.js +0 -55
  150. package/dist/actions/build/renderDocumentWorker/getDocumentHtml.js.map +0 -1
  151. package/dist/actions/build/renderDocumentWorker/renderDocumentWorker.js +0 -31
  152. package/dist/actions/build/renderDocumentWorker/renderDocumentWorker.js.map +0 -1
  153. package/dist/actions/build/renderDocumentWorker/tryLoadDocumentComponent.js +0 -30
  154. package/dist/actions/build/renderDocumentWorker/tryLoadDocumentComponent.js.map +0 -1
  155. package/dist/actions/build/renderDocumentWorker/types.js +0 -5
  156. package/dist/actions/build/renderDocumentWorker/types.js.map +0 -1
  157. package/dist/actions/build/writeSanityRuntime.js +0 -64
  158. package/dist/actions/build/writeSanityRuntime.js.map +0 -1
  159. package/dist/actions/docs/normalizeDocsPath.js +0 -15
  160. package/dist/actions/docs/normalizeDocsPath.js.map +0 -1
  161. package/dist/actions/schema/extractSanitySchema.worker.js +0 -33
  162. package/dist/actions/schema/extractSanitySchema.worker.js.map +0 -1
  163. package/dist/actions/schema/formatSchemaValidation.js +0 -78
  164. package/dist/actions/schema/formatSchemaValidation.js.map +0 -1
  165. package/dist/actions/schema/matchSchemaPattern.js +0 -22
  166. package/dist/actions/schema/matchSchemaPattern.js.map +0 -1
  167. package/dist/actions/schema/runSchemaExtraction.js +0 -39
  168. package/dist/actions/schema/runSchemaExtraction.js.map +0 -1
  169. package/dist/actions/schema/utils/SchemaExtractionError.js +0 -10
  170. package/dist/actions/schema/utils/SchemaExtractionError.js.map +0 -1
  171. package/dist/actions/schema/utils/extractValidationFromSchemaError.js +0 -12
  172. package/dist/actions/schema/utils/extractValidationFromSchemaError.js.map +0 -1
  173. package/dist/constants.js +0 -8
  174. package/dist/constants.js.map +0 -1
  175. package/dist/server/vite/plugin-sanity-build-entries.js +0 -67
  176. package/dist/server/vite/plugin-sanity-build-entries.js.map +0 -1
  177. package/dist/server/vite/plugin-sanity-favicons.js +0 -72
  178. package/dist/server/vite/plugin-sanity-favicons.js.map +0 -1
  179. package/dist/server/vite/plugin-sanity-runtime-rewrite.js +0 -18
  180. package/dist/server/vite/plugin-sanity-runtime-rewrite.js.map +0 -1
  181. package/dist/server/vite/plugin-schema-extraction.js +0 -201
  182. package/dist/server/vite/plugin-schema-extraction.js.map +0 -1
  183. package/dist/telemetry/build.telemetry.js +0 -13
  184. package/dist/telemetry/build.telemetry.js.map +0 -1
  185. package/dist/telemetry/extractSchema.telemetry.js +0 -18
  186. package/dist/telemetry/extractSchema.telemetry.js.map +0 -1
  187. package/dist/util/getWorkspace.js +0 -18
  188. package/dist/util/getWorkspace.js.map +0 -1
@@ -675,6 +675,12 @@
675
675
  "allowNo": false,
676
676
  "type": "boolean"
677
677
  },
678
+ "skills": {
679
+ "description": "Install Sanity agent skills globally for detected AI editors",
680
+ "name": "skills",
681
+ "allowNo": true,
682
+ "type": "boolean"
683
+ },
678
684
  "template": {
679
685
  "description": "Project template to use [default: \"clean\"]",
680
686
  "exclusive": [
@@ -808,6 +814,10 @@
808
814
  {
809
815
  "command": "<%= config.bin %> <%= command.id %> --sso my-organization --sso-provider \"Okta SSO\"",
810
816
  "description": "Log in using a specific SSO provider within an organization"
817
+ },
818
+ {
819
+ "command": "<%= config.bin %> <%= command.id %> --with-token < token.txt",
820
+ "description": "Log in using a token from standard input"
811
821
  }
812
822
  ],
813
823
  "flags": {
@@ -826,7 +836,8 @@
826
836
  "provider": {
827
837
  "description": "Log in using the given provider",
828
838
  "exclusive": [
829
- "sso"
839
+ "sso",
840
+ "with-token"
830
841
  ],
831
842
  "name": "provider",
832
843
  "hasDynamicHelp": false,
@@ -837,7 +848,8 @@
837
848
  "sso": {
838
849
  "description": "Log in using Single Sign-On, using the given organization slug",
839
850
  "exclusive": [
840
- "provider"
851
+ "provider",
852
+ "with-token"
841
853
  ],
842
854
  "name": "sso",
843
855
  "hasDynamicHelp": false,
@@ -855,6 +867,16 @@
855
867
  "helpValue": "<name>",
856
868
  "multiple": false,
857
869
  "type": "option"
870
+ },
871
+ "with-token": {
872
+ "description": "Read token from standard input",
873
+ "exclusive": [
874
+ "provider",
875
+ "sso"
876
+ ],
877
+ "name": "with-token",
878
+ "allowNo": false,
879
+ "type": "boolean"
858
880
  }
859
881
  },
860
882
  "hasDynamicHelp": false,
@@ -1751,6 +1773,10 @@
1751
1773
  {
1752
1774
  "command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --types products,shops",
1753
1775
  "description": "Export specific document types"
1776
+ },
1777
+ {
1778
+ "command": "<%= config.bin %> <%= command.id %> moviedb moviedb.tar.gz --no-strict-asset-verification",
1779
+ "description": "Export dataset without aborting on asset verification failures"
1754
1780
  }
1755
1781
  ],
1756
1782
  "flags": {
@@ -1802,6 +1828,12 @@
1802
1828
  "allowNo": false,
1803
1829
  "type": "boolean"
1804
1830
  },
1831
+ "no-strict-asset-verification": {
1832
+ "description": "Do not abort the export when an asset fails hash or content-length verification",
1833
+ "name": "no-strict-asset-verification",
1834
+ "allowNo": false,
1835
+ "type": "boolean"
1836
+ },
1805
1837
  "overwrite": {
1806
1838
  "description": "Overwrite any file with the same name",
1807
1839
  "name": "overwrite",
@@ -2880,6 +2912,45 @@
2880
2912
  "undeploy.js"
2881
2913
  ]
2882
2914
  },
2915
+ "manifest:extract": {
2916
+ "aliases": [],
2917
+ "args": {},
2918
+ "description": "Extract studio configuration as JSON manifest files.\n\nNote: This command is experimental and subject to change. It is currently intended for use with Create only.",
2919
+ "examples": [
2920
+ {
2921
+ "command": "<%= config.bin %> <%= command.id %>",
2922
+ "description": "Extracts manifests"
2923
+ },
2924
+ {
2925
+ "command": "<%= config.bin %> <%= command.id %> --path /public/static",
2926
+ "description": "Extracts manifests into /public/static"
2927
+ }
2928
+ ],
2929
+ "flags": {
2930
+ "path": {
2931
+ "description": "Optional path to specify destination directory of the manifest files",
2932
+ "name": "path",
2933
+ "default": "dist/static",
2934
+ "hasDynamicHelp": false,
2935
+ "multiple": false,
2936
+ "type": "option"
2937
+ }
2938
+ },
2939
+ "hasDynamicHelp": false,
2940
+ "hiddenAliases": [],
2941
+ "id": "manifest:extract",
2942
+ "pluginAlias": "@sanity/cli",
2943
+ "pluginName": "@sanity/cli",
2944
+ "pluginType": "core",
2945
+ "strict": true,
2946
+ "isESM": true,
2947
+ "relativePath": [
2948
+ "dist",
2949
+ "commands",
2950
+ "manifest",
2951
+ "extract.js"
2952
+ ]
2953
+ },
2883
2954
  "hooks:attempt": {
2884
2955
  "aliases": [],
2885
2956
  "args": {
@@ -3128,45 +3199,6 @@
3128
3199
  "logs.js"
3129
3200
  ]
3130
3201
  },
3131
- "manifest:extract": {
3132
- "aliases": [],
3133
- "args": {},
3134
- "description": "Extract studio configuration as JSON manifest files.\n\nNote: This command is experimental and subject to change. It is currently intended for use with Create only.",
3135
- "examples": [
3136
- {
3137
- "command": "<%= config.bin %> <%= command.id %>",
3138
- "description": "Extracts manifests"
3139
- },
3140
- {
3141
- "command": "<%= config.bin %> <%= command.id %> --path /public/static",
3142
- "description": "Extracts manifests into /public/static"
3143
- }
3144
- ],
3145
- "flags": {
3146
- "path": {
3147
- "description": "Optional path to specify destination directory of the manifest files",
3148
- "name": "path",
3149
- "default": "dist/static",
3150
- "hasDynamicHelp": false,
3151
- "multiple": false,
3152
- "type": "option"
3153
- }
3154
- },
3155
- "hasDynamicHelp": false,
3156
- "hiddenAliases": [],
3157
- "id": "manifest:extract",
3158
- "pluginAlias": "@sanity/cli",
3159
- "pluginName": "@sanity/cli",
3160
- "pluginType": "core",
3161
- "strict": true,
3162
- "isESM": true,
3163
- "relativePath": [
3164
- "dist",
3165
- "commands",
3166
- "manifest",
3167
- "extract.js"
3168
- ]
3169
- },
3170
3202
  "mcp:configure": {
3171
3203
  "aliases": [],
3172
3204
  "args": {},
@@ -4131,84 +4163,6 @@
4131
4163
  "validate.js"
4132
4164
  ]
4133
4165
  },
4134
- "telemetry:disable": {
4135
- "aliases": [],
4136
- "args": {},
4137
- "description": "Disable telemetry for your account",
4138
- "examples": [
4139
- {
4140
- "command": "<%= config.bin %> telemetry <%= command.id %>",
4141
- "description": "Disable telemetry for your account"
4142
- }
4143
- ],
4144
- "flags": {},
4145
- "hasDynamicHelp": false,
4146
- "hiddenAliases": [],
4147
- "id": "telemetry:disable",
4148
- "pluginAlias": "@sanity/cli",
4149
- "pluginName": "@sanity/cli",
4150
- "pluginType": "core",
4151
- "strict": true,
4152
- "isESM": true,
4153
- "relativePath": [
4154
- "dist",
4155
- "commands",
4156
- "telemetry",
4157
- "disable.js"
4158
- ]
4159
- },
4160
- "telemetry:enable": {
4161
- "aliases": [],
4162
- "args": {},
4163
- "description": "Enable telemetry for your account",
4164
- "examples": [
4165
- {
4166
- "command": "<%= config.bin %> telemetry <%= command.id %>",
4167
- "description": "Enable telemetry for your account"
4168
- }
4169
- ],
4170
- "flags": {},
4171
- "hasDynamicHelp": false,
4172
- "hiddenAliases": [],
4173
- "id": "telemetry:enable",
4174
- "pluginAlias": "@sanity/cli",
4175
- "pluginName": "@sanity/cli",
4176
- "pluginType": "core",
4177
- "strict": true,
4178
- "isESM": true,
4179
- "relativePath": [
4180
- "dist",
4181
- "commands",
4182
- "telemetry",
4183
- "enable.js"
4184
- ]
4185
- },
4186
- "telemetry:status": {
4187
- "aliases": [],
4188
- "args": {},
4189
- "description": "Check telemetry status for your account",
4190
- "examples": [
4191
- {
4192
- "command": "<%= config.bin %> telemetry <%= command.id %>",
4193
- "description": "Check telemetry status for your account"
4194
- }
4195
- ],
4196
- "flags": {},
4197
- "hasDynamicHelp": false,
4198
- "hiddenAliases": [],
4199
- "id": "telemetry:status",
4200
- "pluginAlias": "@sanity/cli",
4201
- "pluginName": "@sanity/cli",
4202
- "pluginType": "core",
4203
- "strict": true,
4204
- "isESM": true,
4205
- "relativePath": [
4206
- "dist",
4207
- "commands",
4208
- "telemetry",
4209
- "status.js"
4210
- ]
4211
- },
4212
4166
  "tokens:add": {
4213
4167
  "aliases": [],
4214
4168
  "args": {
@@ -4411,6 +4365,84 @@
4411
4365
  "list.js"
4412
4366
  ]
4413
4367
  },
4368
+ "telemetry:disable": {
4369
+ "aliases": [],
4370
+ "args": {},
4371
+ "description": "Disable telemetry for your account",
4372
+ "examples": [
4373
+ {
4374
+ "command": "<%= config.bin %> telemetry <%= command.id %>",
4375
+ "description": "Disable telemetry for your account"
4376
+ }
4377
+ ],
4378
+ "flags": {},
4379
+ "hasDynamicHelp": false,
4380
+ "hiddenAliases": [],
4381
+ "id": "telemetry:disable",
4382
+ "pluginAlias": "@sanity/cli",
4383
+ "pluginName": "@sanity/cli",
4384
+ "pluginType": "core",
4385
+ "strict": true,
4386
+ "isESM": true,
4387
+ "relativePath": [
4388
+ "dist",
4389
+ "commands",
4390
+ "telemetry",
4391
+ "disable.js"
4392
+ ]
4393
+ },
4394
+ "telemetry:enable": {
4395
+ "aliases": [],
4396
+ "args": {},
4397
+ "description": "Enable telemetry for your account",
4398
+ "examples": [
4399
+ {
4400
+ "command": "<%= config.bin %> telemetry <%= command.id %>",
4401
+ "description": "Enable telemetry for your account"
4402
+ }
4403
+ ],
4404
+ "flags": {},
4405
+ "hasDynamicHelp": false,
4406
+ "hiddenAliases": [],
4407
+ "id": "telemetry:enable",
4408
+ "pluginAlias": "@sanity/cli",
4409
+ "pluginName": "@sanity/cli",
4410
+ "pluginType": "core",
4411
+ "strict": true,
4412
+ "isESM": true,
4413
+ "relativePath": [
4414
+ "dist",
4415
+ "commands",
4416
+ "telemetry",
4417
+ "enable.js"
4418
+ ]
4419
+ },
4420
+ "telemetry:status": {
4421
+ "aliases": [],
4422
+ "args": {},
4423
+ "description": "Check telemetry status for your account",
4424
+ "examples": [
4425
+ {
4426
+ "command": "<%= config.bin %> telemetry <%= command.id %>",
4427
+ "description": "Check telemetry status for your account"
4428
+ }
4429
+ ],
4430
+ "flags": {},
4431
+ "hasDynamicHelp": false,
4432
+ "hiddenAliases": [],
4433
+ "id": "telemetry:status",
4434
+ "pluginAlias": "@sanity/cli",
4435
+ "pluginName": "@sanity/cli",
4436
+ "pluginType": "core",
4437
+ "strict": true,
4438
+ "isESM": true,
4439
+ "relativePath": [
4440
+ "dist",
4441
+ "commands",
4442
+ "telemetry",
4443
+ "status.js"
4444
+ ]
4445
+ },
4414
4446
  "users:invite": {
4415
4447
  "aliases": [],
4416
4448
  "args": {
@@ -4816,26 +4848,26 @@
4816
4848
  "unlink.js"
4817
4849
  ]
4818
4850
  },
4819
- "datasets:visibility:get": {
4851
+ "datasets:embeddings:disable": {
4820
4852
  "aliases": [],
4821
4853
  "args": {
4822
4854
  "dataset": {
4823
- "description": "The name of the dataset to get visibility for",
4855
+ "description": "Dataset name to disable embeddings for",
4824
4856
  "name": "dataset",
4825
- "required": true
4857
+ "required": false
4826
4858
  }
4827
4859
  },
4828
- "description": "Get the visibility of a dataset",
4860
+ "description": "Disable embeddings for a dataset",
4829
4861
  "examples": [
4830
4862
  {
4831
- "command": "<%= config.bin %> <%= command.id %> my-dataset",
4832
- "description": "Check the visibility of a dataset"
4863
+ "command": "<%= config.bin %> <%= command.id %> production",
4864
+ "description": "Disable embeddings for the production dataset"
4833
4865
  }
4834
4866
  ],
4835
4867
  "flags": {
4836
4868
  "project-id": {
4837
4869
  "char": "p",
4838
- "description": "Project ID to get dataset visibility for (overrides CLI configuration)",
4870
+ "description": "Project ID to disable embeddings for (overrides CLI configuration)",
4839
4871
  "helpGroup": "OVERRIDE",
4840
4872
  "name": "project-id",
4841
4873
  "hasDynamicHelp": false,
@@ -4846,9 +4878,9 @@
4846
4878
  },
4847
4879
  "hasDynamicHelp": false,
4848
4880
  "hiddenAliases": [
4849
- "dataset:visibility:get"
4881
+ "dataset:embeddings:disable"
4850
4882
  ],
4851
- "id": "datasets:visibility:get",
4883
+ "id": "datasets:embeddings:disable",
4852
4884
  "pluginAlias": "@sanity/cli",
4853
4885
  "pluginName": "@sanity/cli",
4854
4886
  "pluginType": "core",
@@ -4858,56 +4890,65 @@
4858
4890
  "dist",
4859
4891
  "commands",
4860
4892
  "datasets",
4861
- "visibility",
4862
- "get.js"
4893
+ "embeddings",
4894
+ "disable.js"
4863
4895
  ]
4864
4896
  },
4865
- "datasets:visibility:set": {
4897
+ "datasets:embeddings:enable": {
4866
4898
  "aliases": [],
4867
4899
  "args": {
4868
4900
  "dataset": {
4869
- "description": "The name of the dataset to set visibility for",
4901
+ "description": "Dataset name to enable embeddings for",
4870
4902
  "name": "dataset",
4871
- "required": true
4872
- },
4873
- "mode": {
4874
- "description": "The visibility mode to set",
4875
- "name": "mode",
4876
- "options": [
4877
- "public",
4878
- "private"
4879
- ],
4880
- "required": true
4903
+ "required": false
4881
4904
  }
4882
4905
  },
4883
- "description": "Set the visibility of a dataset",
4906
+ "description": "Enable embeddings for a dataset",
4884
4907
  "examples": [
4885
4908
  {
4886
- "command": "<%= config.bin %> <%= command.id %> my-dataset private",
4887
- "description": "Make a dataset private"
4909
+ "command": "<%= config.bin %> <%= command.id %> production",
4910
+ "description": "Enable embeddings for the production dataset"
4888
4911
  },
4889
4912
  {
4890
- "command": "<%= config.bin %> <%= command.id %> my-dataset public",
4891
- "description": "Make a dataset public"
4913
+ "command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
4914
+ "description": "Enable embeddings with a specific projection"
4915
+ },
4916
+ {
4917
+ "command": "<%= config.bin %> <%= command.id %> production --wait",
4918
+ "description": "Enable embeddings and wait for processing to complete"
4892
4919
  }
4893
4920
  ],
4894
4921
  "flags": {
4895
4922
  "project-id": {
4896
4923
  "char": "p",
4897
- "description": "Project ID to set dataset visibility for (overrides CLI configuration)",
4924
+ "description": "Project ID to enable embeddings for (overrides CLI configuration)",
4898
4925
  "helpGroup": "OVERRIDE",
4899
4926
  "name": "project-id",
4900
4927
  "hasDynamicHelp": false,
4901
4928
  "helpValue": "<id>",
4902
4929
  "multiple": false,
4903
4930
  "type": "option"
4931
+ },
4932
+ "projection": {
4933
+ "description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
4934
+ "name": "projection",
4935
+ "required": false,
4936
+ "hasDynamicHelp": false,
4937
+ "multiple": false,
4938
+ "type": "option"
4939
+ },
4940
+ "wait": {
4941
+ "description": "Wait for embeddings processing to complete before returning",
4942
+ "name": "wait",
4943
+ "allowNo": false,
4944
+ "type": "boolean"
4904
4945
  }
4905
4946
  },
4906
4947
  "hasDynamicHelp": false,
4907
4948
  "hiddenAliases": [
4908
- "dataset:visibility:set"
4949
+ "dataset:embeddings:enable"
4909
4950
  ],
4910
- "id": "datasets:visibility:set",
4951
+ "id": "datasets:embeddings:enable",
4911
4952
  "pluginAlias": "@sanity/cli",
4912
4953
  "pluginName": "@sanity/cli",
4913
4954
  "pluginType": "core",
@@ -4917,30 +4958,30 @@
4917
4958
  "dist",
4918
4959
  "commands",
4919
4960
  "datasets",
4920
- "visibility",
4921
- "set.js"
4961
+ "embeddings",
4962
+ "enable.js"
4922
4963
  ]
4923
4964
  },
4924
- "datasets:embeddings:disable": {
4965
+ "datasets:embeddings:status": {
4925
4966
  "aliases": [],
4926
4967
  "args": {
4927
4968
  "dataset": {
4928
- "description": "Dataset name to disable embeddings for",
4969
+ "description": "The name of the dataset to check embeddings status for",
4929
4970
  "name": "dataset",
4930
4971
  "required": false
4931
4972
  }
4932
4973
  },
4933
- "description": "Disable embeddings for a dataset",
4974
+ "description": "Show embeddings settings and status for a dataset",
4934
4975
  "examples": [
4935
4976
  {
4936
4977
  "command": "<%= config.bin %> <%= command.id %> production",
4937
- "description": "Disable embeddings for the production dataset"
4978
+ "description": "Show embeddings status for the production dataset"
4938
4979
  }
4939
4980
  ],
4940
4981
  "flags": {
4941
4982
  "project-id": {
4942
4983
  "char": "p",
4943
- "description": "Project ID to disable embeddings for (overrides CLI configuration)",
4984
+ "description": "Project ID to check embeddings status for (overrides CLI configuration)",
4944
4985
  "helpGroup": "OVERRIDE",
4945
4986
  "name": "project-id",
4946
4987
  "hasDynamicHelp": false,
@@ -4951,9 +4992,9 @@
4951
4992
  },
4952
4993
  "hasDynamicHelp": false,
4953
4994
  "hiddenAliases": [
4954
- "dataset:embeddings:disable"
4995
+ "dataset:embeddings:status"
4955
4996
  ],
4956
- "id": "datasets:embeddings:disable",
4997
+ "id": "datasets:embeddings:status",
4957
4998
  "pluginAlias": "@sanity/cli",
4958
4999
  "pluginName": "@sanity/cli",
4959
5000
  "pluginType": "core",
@@ -4964,64 +5005,42 @@
4964
5005
  "commands",
4965
5006
  "datasets",
4966
5007
  "embeddings",
4967
- "disable.js"
5008
+ "status.js"
4968
5009
  ]
4969
5010
  },
4970
- "datasets:embeddings:enable": {
5011
+ "datasets:visibility:get": {
4971
5012
  "aliases": [],
4972
5013
  "args": {
4973
5014
  "dataset": {
4974
- "description": "Dataset name to enable embeddings for",
5015
+ "description": "The name of the dataset to get visibility for",
4975
5016
  "name": "dataset",
4976
- "required": false
5017
+ "required": true
4977
5018
  }
4978
5019
  },
4979
- "description": "Enable embeddings for a dataset",
5020
+ "description": "Get the visibility of a dataset",
4980
5021
  "examples": [
4981
5022
  {
4982
- "command": "<%= config.bin %> <%= command.id %> production",
4983
- "description": "Enable embeddings for the production dataset"
4984
- },
4985
- {
4986
- "command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
4987
- "description": "Enable embeddings with a specific projection"
4988
- },
4989
- {
4990
- "command": "<%= config.bin %> <%= command.id %> production --wait",
4991
- "description": "Enable embeddings and wait for processing to complete"
5023
+ "command": "<%= config.bin %> <%= command.id %> my-dataset",
5024
+ "description": "Check the visibility of a dataset"
4992
5025
  }
4993
5026
  ],
4994
5027
  "flags": {
4995
5028
  "project-id": {
4996
5029
  "char": "p",
4997
- "description": "Project ID to enable embeddings for (overrides CLI configuration)",
5030
+ "description": "Project ID to get dataset visibility for (overrides CLI configuration)",
4998
5031
  "helpGroup": "OVERRIDE",
4999
5032
  "name": "project-id",
5000
5033
  "hasDynamicHelp": false,
5001
5034
  "helpValue": "<id>",
5002
5035
  "multiple": false,
5003
5036
  "type": "option"
5004
- },
5005
- "projection": {
5006
- "description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
5007
- "name": "projection",
5008
- "required": false,
5009
- "hasDynamicHelp": false,
5010
- "multiple": false,
5011
- "type": "option"
5012
- },
5013
- "wait": {
5014
- "description": "Wait for embeddings processing to complete before returning",
5015
- "name": "wait",
5016
- "allowNo": false,
5017
- "type": "boolean"
5018
5037
  }
5019
5038
  },
5020
5039
  "hasDynamicHelp": false,
5021
5040
  "hiddenAliases": [
5022
- "dataset:embeddings:enable"
5041
+ "dataset:visibility:get"
5023
5042
  ],
5024
- "id": "datasets:embeddings:enable",
5043
+ "id": "datasets:visibility:get",
5025
5044
  "pluginAlias": "@sanity/cli",
5026
5045
  "pluginName": "@sanity/cli",
5027
5046
  "pluginType": "core",
@@ -5031,30 +5050,43 @@
5031
5050
  "dist",
5032
5051
  "commands",
5033
5052
  "datasets",
5034
- "embeddings",
5035
- "enable.js"
5053
+ "visibility",
5054
+ "get.js"
5036
5055
  ]
5037
5056
  },
5038
- "datasets:embeddings:status": {
5057
+ "datasets:visibility:set": {
5039
5058
  "aliases": [],
5040
5059
  "args": {
5041
5060
  "dataset": {
5042
- "description": "The name of the dataset to check embeddings status for",
5061
+ "description": "The name of the dataset to set visibility for",
5043
5062
  "name": "dataset",
5044
- "required": false
5063
+ "required": true
5064
+ },
5065
+ "mode": {
5066
+ "description": "The visibility mode to set",
5067
+ "name": "mode",
5068
+ "options": [
5069
+ "public",
5070
+ "private"
5071
+ ],
5072
+ "required": true
5045
5073
  }
5046
5074
  },
5047
- "description": "Show embeddings settings and status for a dataset",
5075
+ "description": "Set the visibility of a dataset",
5048
5076
  "examples": [
5049
5077
  {
5050
- "command": "<%= config.bin %> <%= command.id %> production",
5051
- "description": "Show embeddings status for the production dataset"
5078
+ "command": "<%= config.bin %> <%= command.id %> my-dataset private",
5079
+ "description": "Make a dataset private"
5080
+ },
5081
+ {
5082
+ "command": "<%= config.bin %> <%= command.id %> my-dataset public",
5083
+ "description": "Make a dataset public"
5052
5084
  }
5053
5085
  ],
5054
5086
  "flags": {
5055
5087
  "project-id": {
5056
5088
  "char": "p",
5057
- "description": "Project ID to check embeddings status for (overrides CLI configuration)",
5089
+ "description": "Project ID to set dataset visibility for (overrides CLI configuration)",
5058
5090
  "helpGroup": "OVERRIDE",
5059
5091
  "name": "project-id",
5060
5092
  "hasDynamicHelp": false,
@@ -5065,9 +5097,9 @@
5065
5097
  },
5066
5098
  "hasDynamicHelp": false,
5067
5099
  "hiddenAliases": [
5068
- "dataset:embeddings:status"
5100
+ "dataset:visibility:set"
5069
5101
  ],
5070
- "id": "datasets:embeddings:status",
5102
+ "id": "datasets:visibility:set",
5071
5103
  "pluginAlias": "@sanity/cli",
5072
5104
  "pluginName": "@sanity/cli",
5073
5105
  "pluginType": "core",
@@ -5077,10 +5109,10 @@
5077
5109
  "dist",
5078
5110
  "commands",
5079
5111
  "datasets",
5080
- "embeddings",
5081
- "status.js"
5112
+ "visibility",
5113
+ "set.js"
5082
5114
  ]
5083
5115
  }
5084
5116
  },
5085
- "version": "6.5.3"
5117
+ "version": "6.7.0"
5086
5118
  }