@sanity/cli 8.38.2 → 8.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/deploy/deployApp.js +12 -1
- package/dist/actions/deploy/deployApp.js.map +1 -1
- package/dist/actions/deploy/deployRunner.js +9 -1
- package/dist/actions/deploy/deployRunner.js.map +1 -1
- package/dist/actions/deploy/deployStudio.js +12 -1
- package/dist/actions/deploy/deployStudio.js.map +1 -1
- package/dist/actions/graphql/getSourceDeprecationWarning.js +20 -0
- package/dist/actions/graphql/getSourceDeprecationWarning.js.map +1 -0
- package/dist/actions/graphql/resolveGraphQLApisFromWorkspaces.js +12 -6
- package/dist/actions/graphql/resolveGraphQLApisFromWorkspaces.js.map +1 -1
- package/dist/actions/graphql/types.js.map +1 -1
- package/dist/commands/graphql/deploy.js +5 -0
- package/dist/commands/graphql/deploy.js.map +1 -1
- package/dist/commands/graphql/undeploy.js +5 -0
- package/dist/commands/graphql/undeploy.js.map +1 -1
- package/dist/commands/new.js +28 -29
- package/dist/commands/new.js.map +1 -1
- package/dist/commands/projects/unclaimed.js +6 -5
- package/dist/commands/projects/unclaimed.js.map +1 -1
- package/dist/exports/index.d.ts +3 -0
- package/dist/generated/apiRoutes.js +2 -0
- package/dist/generated/apiRoutes.js.map +1 -1
- package/dist/services/mintProject.js +4 -0
- package/dist/services/mintProject.js.map +1 -1
- package/oclif.manifest.json +1109 -1109
- package/package.json +4 -4
- package/templates/shared/AGENTS.md +8 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/cli",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.39.0",
|
|
4
4
|
"description": "Sanity CLI tool for managing Sanity projects and organizations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@oclif/plugin-not-found": "^3.3.0",
|
|
65
65
|
"@sanity/blueprints": "^0.35.0",
|
|
66
66
|
"@sanity/cli-build": "^7.7.1",
|
|
67
|
-
"@sanity/cli-core": "^3.
|
|
67
|
+
"@sanity/cli-core": "^3.19.0",
|
|
68
68
|
"@sanity/cli-setup": "^0.1.2",
|
|
69
69
|
"@sanity/client": "^8.17.0",
|
|
70
70
|
"@sanity/codegen": "^8.3.4",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@sanity/types": "^6.26.0",
|
|
83
83
|
"@sanity/util": "^6.26.0",
|
|
84
84
|
"@sanity/validation": "^6.26.0",
|
|
85
|
-
"@sanity/workbench-cli": "^2.
|
|
85
|
+
"@sanity/workbench-cli": "^2.23.0",
|
|
86
86
|
"@sanity/worker-channels": "^2.0.0",
|
|
87
87
|
"@sanity/workflows": ">=0.39.0 <1.0.0",
|
|
88
88
|
"@sanity/workflows-cli": ">=0.39.0 <1.0.0",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"@repo/oxc-config": "0.0.0",
|
|
131
131
|
"@repo/package.config": "0.0.1",
|
|
132
132
|
"@repo/tsconfig": "3.70.0",
|
|
133
|
-
"@sanity/cli-test": "
|
|
133
|
+
"@sanity/cli-test": "29.0.0",
|
|
134
134
|
"@sanity/pkg-utils": "^12.3.4",
|
|
135
135
|
"@swc/cli": "^0.8.2",
|
|
136
136
|
"@swc/core": "^1.16.22",
|
|
@@ -2,9 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Guidance for AI coding agents working in this repository.
|
|
4
4
|
|
|
5
|
+
## Unclaimed projects (created with `sanity new`)
|
|
6
|
+
|
|
7
|
+
If `.env.local` contains `SANITY_AUTH_TOKEN` for an unclaimed project, the project has no owner account yet and expires 72 hours after creation:
|
|
8
|
+
|
|
9
|
+
- Do not offer `npx sanity@latest mcp configure` or `npx sanity deploy` yet — both require claiming first. Ask the user to open the claim link (recover it with `npx sanity@latest projects unclaimed --project <projectId>` if needed).
|
|
10
|
+
- Run CLI commands from this Studio folder (for example `npx sanity@latest documents create seed.json`, `npx sanity@latest documents query`, and `npx sanity@latest schemas deploy`). Keep `SANITY_AUTH_TOKEN` out of git and frontend env files.
|
|
11
|
+
|
|
5
12
|
## Sanity: connect MCP, then what to build next
|
|
6
13
|
|
|
7
|
-
|
|
14
|
+
Once the project is claimed (or for account-owned projects), check whether Sanity MCP tools are available before Sanity work. If they aren't, offer the user `npx sanity@latest mcp configure`. It detects their editor and adds the Sanity MCP server; they sign in from the editor the first time it connects. Ask before running it.
|
|
8
15
|
|
|
9
16
|
Once the project is set up, show the user this map and offer the next step:
|
|
10
17
|
|