@sanity/cli 8.32.1 → 8.33.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 +3 -3
- package/dist/actions/deploy/deployApp.js.map +1 -1
- package/dist/actions/deploy/deployStudio.js +2 -3
- package/dist/actions/deploy/deployStudio.js.map +1 -1
- package/dist/actions/dev/devAction.js +2 -1
- package/dist/actions/dev/devAction.js.map +1 -1
- package/dist/actions/init/bootstrapLocalTemplate.js +18 -0
- package/dist/actions/init/bootstrapLocalTemplate.js.map +1 -1
- package/dist/actions/preview/previewAction.js +2 -1
- package/dist/actions/preview/previewAction.js.map +1 -1
- package/dist/commands/organizations/create.js +2 -2
- package/dist/commands/organizations/create.js.map +1 -1
- package/dist/commands/organizations/update.js +2 -2
- package/dist/commands/organizations/update.js.map +1 -1
- package/dist/generated/apiRoutes.js +2 -0
- package/dist/generated/apiRoutes.js.map +1 -1
- package/dist/services/organizations.js.map +1 -1
- package/oclif.manifest.json +252 -252
- package/package.json +11 -11
- package/templates/app-quickstart/AGENTS.md +11 -0
- package/templates/app-sanity-ui/AGENTS.md +11 -0
- package/templates/shared/AGENTS.md +14 -0
- package/templates/shared/dashboard/app-quickstart/AGENTS.md +11 -0
- package/templates/shared/dashboard/app-sanity-ui/AGENTS.md +11 -0
- package/dist/actions/organizations/readOrganizationLogo.js +0 -49
- package/dist/actions/organizations/readOrganizationLogo.js.map +0 -1
package/oclif.manifest.json
CHANGED
|
@@ -1967,6 +1967,179 @@
|
|
|
1967
1967
|
"list.js"
|
|
1968
1968
|
]
|
|
1969
1969
|
},
|
|
1970
|
+
"cors:add": {
|
|
1971
|
+
"aliases": [],
|
|
1972
|
+
"args": {
|
|
1973
|
+
"origin": {
|
|
1974
|
+
"description": "Origin to allow (e.g., https://example.com)",
|
|
1975
|
+
"name": "origin",
|
|
1976
|
+
"required": true
|
|
1977
|
+
}
|
|
1978
|
+
},
|
|
1979
|
+
"description": "Add a CORS origin to the project",
|
|
1980
|
+
"examples": [
|
|
1981
|
+
{
|
|
1982
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
1983
|
+
"description": "Interactively add a CORS origin"
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
"command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
|
|
1987
|
+
"description": "Add a localhost origin without credentials"
|
|
1988
|
+
},
|
|
1989
|
+
{
|
|
1990
|
+
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
|
|
1991
|
+
"description": "Add a production origin with credentials allowed"
|
|
1992
|
+
},
|
|
1993
|
+
{
|
|
1994
|
+
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --project abc123",
|
|
1995
|
+
"description": "Add a CORS origin for a specific project"
|
|
1996
|
+
}
|
|
1997
|
+
],
|
|
1998
|
+
"flags": {
|
|
1999
|
+
"project": {
|
|
2000
|
+
"aliases": [
|
|
2001
|
+
"project-id"
|
|
2002
|
+
],
|
|
2003
|
+
"char": "p",
|
|
2004
|
+
"deprecateAliases": true,
|
|
2005
|
+
"description": "Project ID to add CORS origin to (overrides CLI configuration)",
|
|
2006
|
+
"helpGroup": "OVERRIDE",
|
|
2007
|
+
"name": "project",
|
|
2008
|
+
"hasDynamicHelp": false,
|
|
2009
|
+
"helpValue": "<id>",
|
|
2010
|
+
"multiple": false,
|
|
2011
|
+
"type": "option"
|
|
2012
|
+
},
|
|
2013
|
+
"credentials": {
|
|
2014
|
+
"description": "Allow credentials (token/cookie) to be sent from this origin",
|
|
2015
|
+
"name": "credentials",
|
|
2016
|
+
"required": false,
|
|
2017
|
+
"allowNo": true,
|
|
2018
|
+
"type": "boolean"
|
|
2019
|
+
},
|
|
2020
|
+
"yes": {
|
|
2021
|
+
"char": "y",
|
|
2022
|
+
"description": "Confirm risky wildcard origins without prompting",
|
|
2023
|
+
"name": "yes",
|
|
2024
|
+
"allowNo": false,
|
|
2025
|
+
"type": "boolean"
|
|
2026
|
+
}
|
|
2027
|
+
},
|
|
2028
|
+
"hasDynamicHelp": false,
|
|
2029
|
+
"hiddenAliases": [],
|
|
2030
|
+
"id": "cors:add",
|
|
2031
|
+
"pluginAlias": "@sanity/cli",
|
|
2032
|
+
"pluginName": "@sanity/cli",
|
|
2033
|
+
"pluginType": "core",
|
|
2034
|
+
"strict": true,
|
|
2035
|
+
"isESM": true,
|
|
2036
|
+
"relativePath": [
|
|
2037
|
+
"dist",
|
|
2038
|
+
"commands",
|
|
2039
|
+
"cors",
|
|
2040
|
+
"add.js"
|
|
2041
|
+
]
|
|
2042
|
+
},
|
|
2043
|
+
"cors:delete": {
|
|
2044
|
+
"aliases": [],
|
|
2045
|
+
"args": {
|
|
2046
|
+
"origin": {
|
|
2047
|
+
"description": "Origin to delete (will prompt if not provided)",
|
|
2048
|
+
"name": "origin",
|
|
2049
|
+
"required": false
|
|
2050
|
+
}
|
|
2051
|
+
},
|
|
2052
|
+
"description": "Delete a CORS origin from the project",
|
|
2053
|
+
"examples": [
|
|
2054
|
+
{
|
|
2055
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2056
|
+
"description": "Interactively select and delete a CORS origin"
|
|
2057
|
+
},
|
|
2058
|
+
{
|
|
2059
|
+
"command": "<%= config.bin %> <%= command.id %> https://example.com",
|
|
2060
|
+
"description": "Delete a specific CORS origin"
|
|
2061
|
+
},
|
|
2062
|
+
{
|
|
2063
|
+
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
2064
|
+
"description": "Delete a CORS origin from a specific project"
|
|
2065
|
+
}
|
|
2066
|
+
],
|
|
2067
|
+
"flags": {
|
|
2068
|
+
"project": {
|
|
2069
|
+
"aliases": [
|
|
2070
|
+
"project-id"
|
|
2071
|
+
],
|
|
2072
|
+
"char": "p",
|
|
2073
|
+
"deprecateAliases": true,
|
|
2074
|
+
"description": "Project ID to delete CORS origin from (overrides CLI configuration)",
|
|
2075
|
+
"helpGroup": "OVERRIDE",
|
|
2076
|
+
"name": "project",
|
|
2077
|
+
"hasDynamicHelp": false,
|
|
2078
|
+
"helpValue": "<id>",
|
|
2079
|
+
"multiple": false,
|
|
2080
|
+
"type": "option"
|
|
2081
|
+
}
|
|
2082
|
+
},
|
|
2083
|
+
"hasDynamicHelp": false,
|
|
2084
|
+
"hiddenAliases": [],
|
|
2085
|
+
"id": "cors:delete",
|
|
2086
|
+
"pluginAlias": "@sanity/cli",
|
|
2087
|
+
"pluginName": "@sanity/cli",
|
|
2088
|
+
"pluginType": "core",
|
|
2089
|
+
"strict": true,
|
|
2090
|
+
"isESM": true,
|
|
2091
|
+
"relativePath": [
|
|
2092
|
+
"dist",
|
|
2093
|
+
"commands",
|
|
2094
|
+
"cors",
|
|
2095
|
+
"delete.js"
|
|
2096
|
+
]
|
|
2097
|
+
},
|
|
2098
|
+
"cors:list": {
|
|
2099
|
+
"aliases": [],
|
|
2100
|
+
"args": {},
|
|
2101
|
+
"description": "List CORS origins for the project",
|
|
2102
|
+
"examples": [
|
|
2103
|
+
{
|
|
2104
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2105
|
+
"description": "List CORS origins for the project"
|
|
2106
|
+
},
|
|
2107
|
+
{
|
|
2108
|
+
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
2109
|
+
"description": "List CORS origins for a specific project"
|
|
2110
|
+
}
|
|
2111
|
+
],
|
|
2112
|
+
"flags": {
|
|
2113
|
+
"project": {
|
|
2114
|
+
"aliases": [
|
|
2115
|
+
"project-id"
|
|
2116
|
+
],
|
|
2117
|
+
"char": "p",
|
|
2118
|
+
"deprecateAliases": true,
|
|
2119
|
+
"description": "Project ID to list CORS origins for (overrides CLI configuration)",
|
|
2120
|
+
"helpGroup": "OVERRIDE",
|
|
2121
|
+
"name": "project",
|
|
2122
|
+
"hasDynamicHelp": false,
|
|
2123
|
+
"helpValue": "<id>",
|
|
2124
|
+
"multiple": false,
|
|
2125
|
+
"type": "option"
|
|
2126
|
+
}
|
|
2127
|
+
},
|
|
2128
|
+
"hasDynamicHelp": false,
|
|
2129
|
+
"hiddenAliases": [],
|
|
2130
|
+
"id": "cors:list",
|
|
2131
|
+
"pluginAlias": "@sanity/cli",
|
|
2132
|
+
"pluginName": "@sanity/cli",
|
|
2133
|
+
"pluginType": "core",
|
|
2134
|
+
"strict": true,
|
|
2135
|
+
"isESM": true,
|
|
2136
|
+
"relativePath": [
|
|
2137
|
+
"dist",
|
|
2138
|
+
"commands",
|
|
2139
|
+
"cors",
|
|
2140
|
+
"list.js"
|
|
2141
|
+
]
|
|
2142
|
+
},
|
|
1970
2143
|
"context:build": {
|
|
1971
2144
|
"aliases": [],
|
|
1972
2145
|
"args": {
|
|
@@ -2492,179 +2665,6 @@
|
|
|
2492
2665
|
"update.js"
|
|
2493
2666
|
]
|
|
2494
2667
|
},
|
|
2495
|
-
"cors:add": {
|
|
2496
|
-
"aliases": [],
|
|
2497
|
-
"args": {
|
|
2498
|
-
"origin": {
|
|
2499
|
-
"description": "Origin to allow (e.g., https://example.com)",
|
|
2500
|
-
"name": "origin",
|
|
2501
|
-
"required": true
|
|
2502
|
-
}
|
|
2503
|
-
},
|
|
2504
|
-
"description": "Add a CORS origin to the project",
|
|
2505
|
-
"examples": [
|
|
2506
|
-
{
|
|
2507
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2508
|
-
"description": "Interactively add a CORS origin"
|
|
2509
|
-
},
|
|
2510
|
-
{
|
|
2511
|
-
"command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
|
|
2512
|
-
"description": "Add a localhost origin without credentials"
|
|
2513
|
-
},
|
|
2514
|
-
{
|
|
2515
|
-
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
|
|
2516
|
-
"description": "Add a production origin with credentials allowed"
|
|
2517
|
-
},
|
|
2518
|
-
{
|
|
2519
|
-
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --project abc123",
|
|
2520
|
-
"description": "Add a CORS origin for a specific project"
|
|
2521
|
-
}
|
|
2522
|
-
],
|
|
2523
|
-
"flags": {
|
|
2524
|
-
"project": {
|
|
2525
|
-
"aliases": [
|
|
2526
|
-
"project-id"
|
|
2527
|
-
],
|
|
2528
|
-
"char": "p",
|
|
2529
|
-
"deprecateAliases": true,
|
|
2530
|
-
"description": "Project ID to add CORS origin to (overrides CLI configuration)",
|
|
2531
|
-
"helpGroup": "OVERRIDE",
|
|
2532
|
-
"name": "project",
|
|
2533
|
-
"hasDynamicHelp": false,
|
|
2534
|
-
"helpValue": "<id>",
|
|
2535
|
-
"multiple": false,
|
|
2536
|
-
"type": "option"
|
|
2537
|
-
},
|
|
2538
|
-
"credentials": {
|
|
2539
|
-
"description": "Allow credentials (token/cookie) to be sent from this origin",
|
|
2540
|
-
"name": "credentials",
|
|
2541
|
-
"required": false,
|
|
2542
|
-
"allowNo": true,
|
|
2543
|
-
"type": "boolean"
|
|
2544
|
-
},
|
|
2545
|
-
"yes": {
|
|
2546
|
-
"char": "y",
|
|
2547
|
-
"description": "Confirm risky wildcard origins without prompting",
|
|
2548
|
-
"name": "yes",
|
|
2549
|
-
"allowNo": false,
|
|
2550
|
-
"type": "boolean"
|
|
2551
|
-
}
|
|
2552
|
-
},
|
|
2553
|
-
"hasDynamicHelp": false,
|
|
2554
|
-
"hiddenAliases": [],
|
|
2555
|
-
"id": "cors:add",
|
|
2556
|
-
"pluginAlias": "@sanity/cli",
|
|
2557
|
-
"pluginName": "@sanity/cli",
|
|
2558
|
-
"pluginType": "core",
|
|
2559
|
-
"strict": true,
|
|
2560
|
-
"isESM": true,
|
|
2561
|
-
"relativePath": [
|
|
2562
|
-
"dist",
|
|
2563
|
-
"commands",
|
|
2564
|
-
"cors",
|
|
2565
|
-
"add.js"
|
|
2566
|
-
]
|
|
2567
|
-
},
|
|
2568
|
-
"cors:delete": {
|
|
2569
|
-
"aliases": [],
|
|
2570
|
-
"args": {
|
|
2571
|
-
"origin": {
|
|
2572
|
-
"description": "Origin to delete (will prompt if not provided)",
|
|
2573
|
-
"name": "origin",
|
|
2574
|
-
"required": false
|
|
2575
|
-
}
|
|
2576
|
-
},
|
|
2577
|
-
"description": "Delete a CORS origin from the project",
|
|
2578
|
-
"examples": [
|
|
2579
|
-
{
|
|
2580
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2581
|
-
"description": "Interactively select and delete a CORS origin"
|
|
2582
|
-
},
|
|
2583
|
-
{
|
|
2584
|
-
"command": "<%= config.bin %> <%= command.id %> https://example.com",
|
|
2585
|
-
"description": "Delete a specific CORS origin"
|
|
2586
|
-
},
|
|
2587
|
-
{
|
|
2588
|
-
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
2589
|
-
"description": "Delete a CORS origin from a specific project"
|
|
2590
|
-
}
|
|
2591
|
-
],
|
|
2592
|
-
"flags": {
|
|
2593
|
-
"project": {
|
|
2594
|
-
"aliases": [
|
|
2595
|
-
"project-id"
|
|
2596
|
-
],
|
|
2597
|
-
"char": "p",
|
|
2598
|
-
"deprecateAliases": true,
|
|
2599
|
-
"description": "Project ID to delete CORS origin from (overrides CLI configuration)",
|
|
2600
|
-
"helpGroup": "OVERRIDE",
|
|
2601
|
-
"name": "project",
|
|
2602
|
-
"hasDynamicHelp": false,
|
|
2603
|
-
"helpValue": "<id>",
|
|
2604
|
-
"multiple": false,
|
|
2605
|
-
"type": "option"
|
|
2606
|
-
}
|
|
2607
|
-
},
|
|
2608
|
-
"hasDynamicHelp": false,
|
|
2609
|
-
"hiddenAliases": [],
|
|
2610
|
-
"id": "cors:delete",
|
|
2611
|
-
"pluginAlias": "@sanity/cli",
|
|
2612
|
-
"pluginName": "@sanity/cli",
|
|
2613
|
-
"pluginType": "core",
|
|
2614
|
-
"strict": true,
|
|
2615
|
-
"isESM": true,
|
|
2616
|
-
"relativePath": [
|
|
2617
|
-
"dist",
|
|
2618
|
-
"commands",
|
|
2619
|
-
"cors",
|
|
2620
|
-
"delete.js"
|
|
2621
|
-
]
|
|
2622
|
-
},
|
|
2623
|
-
"cors:list": {
|
|
2624
|
-
"aliases": [],
|
|
2625
|
-
"args": {},
|
|
2626
|
-
"description": "List CORS origins for the project",
|
|
2627
|
-
"examples": [
|
|
2628
|
-
{
|
|
2629
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2630
|
-
"description": "List CORS origins for the project"
|
|
2631
|
-
},
|
|
2632
|
-
{
|
|
2633
|
-
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
2634
|
-
"description": "List CORS origins for a specific project"
|
|
2635
|
-
}
|
|
2636
|
-
],
|
|
2637
|
-
"flags": {
|
|
2638
|
-
"project": {
|
|
2639
|
-
"aliases": [
|
|
2640
|
-
"project-id"
|
|
2641
|
-
],
|
|
2642
|
-
"char": "p",
|
|
2643
|
-
"deprecateAliases": true,
|
|
2644
|
-
"description": "Project ID to list CORS origins for (overrides CLI configuration)",
|
|
2645
|
-
"helpGroup": "OVERRIDE",
|
|
2646
|
-
"name": "project",
|
|
2647
|
-
"hasDynamicHelp": false,
|
|
2648
|
-
"helpValue": "<id>",
|
|
2649
|
-
"multiple": false,
|
|
2650
|
-
"type": "option"
|
|
2651
|
-
}
|
|
2652
|
-
},
|
|
2653
|
-
"hasDynamicHelp": false,
|
|
2654
|
-
"hiddenAliases": [],
|
|
2655
|
-
"id": "cors:list",
|
|
2656
|
-
"pluginAlias": "@sanity/cli",
|
|
2657
|
-
"pluginName": "@sanity/cli",
|
|
2658
|
-
"pluginType": "core",
|
|
2659
|
-
"strict": true,
|
|
2660
|
-
"isESM": true,
|
|
2661
|
-
"relativePath": [
|
|
2662
|
-
"dist",
|
|
2663
|
-
"commands",
|
|
2664
|
-
"cors",
|
|
2665
|
-
"list.js"
|
|
2666
|
-
]
|
|
2667
|
-
},
|
|
2668
2668
|
"datasets:copy": {
|
|
2669
2669
|
"aliases": [],
|
|
2670
2670
|
"args": {
|
|
@@ -6321,84 +6321,6 @@
|
|
|
6321
6321
|
"install.js"
|
|
6322
6322
|
]
|
|
6323
6323
|
},
|
|
6324
|
-
"telemetry:disable": {
|
|
6325
|
-
"aliases": [],
|
|
6326
|
-
"args": {},
|
|
6327
|
-
"description": "Disable telemetry for your account",
|
|
6328
|
-
"examples": [
|
|
6329
|
-
{
|
|
6330
|
-
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
6331
|
-
"description": "Disable telemetry for your account"
|
|
6332
|
-
}
|
|
6333
|
-
],
|
|
6334
|
-
"flags": {},
|
|
6335
|
-
"hasDynamicHelp": false,
|
|
6336
|
-
"hiddenAliases": [],
|
|
6337
|
-
"id": "telemetry:disable",
|
|
6338
|
-
"pluginAlias": "@sanity/cli",
|
|
6339
|
-
"pluginName": "@sanity/cli",
|
|
6340
|
-
"pluginType": "core",
|
|
6341
|
-
"strict": true,
|
|
6342
|
-
"isESM": true,
|
|
6343
|
-
"relativePath": [
|
|
6344
|
-
"dist",
|
|
6345
|
-
"commands",
|
|
6346
|
-
"telemetry",
|
|
6347
|
-
"disable.js"
|
|
6348
|
-
]
|
|
6349
|
-
},
|
|
6350
|
-
"telemetry:enable": {
|
|
6351
|
-
"aliases": [],
|
|
6352
|
-
"args": {},
|
|
6353
|
-
"description": "Enable telemetry for your account",
|
|
6354
|
-
"examples": [
|
|
6355
|
-
{
|
|
6356
|
-
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
6357
|
-
"description": "Enable telemetry for your account"
|
|
6358
|
-
}
|
|
6359
|
-
],
|
|
6360
|
-
"flags": {},
|
|
6361
|
-
"hasDynamicHelp": false,
|
|
6362
|
-
"hiddenAliases": [],
|
|
6363
|
-
"id": "telemetry:enable",
|
|
6364
|
-
"pluginAlias": "@sanity/cli",
|
|
6365
|
-
"pluginName": "@sanity/cli",
|
|
6366
|
-
"pluginType": "core",
|
|
6367
|
-
"strict": true,
|
|
6368
|
-
"isESM": true,
|
|
6369
|
-
"relativePath": [
|
|
6370
|
-
"dist",
|
|
6371
|
-
"commands",
|
|
6372
|
-
"telemetry",
|
|
6373
|
-
"enable.js"
|
|
6374
|
-
]
|
|
6375
|
-
},
|
|
6376
|
-
"telemetry:status": {
|
|
6377
|
-
"aliases": [],
|
|
6378
|
-
"args": {},
|
|
6379
|
-
"description": "Check telemetry status for your account",
|
|
6380
|
-
"examples": [
|
|
6381
|
-
{
|
|
6382
|
-
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
6383
|
-
"description": "Check telemetry status for your account"
|
|
6384
|
-
}
|
|
6385
|
-
],
|
|
6386
|
-
"flags": {},
|
|
6387
|
-
"hasDynamicHelp": false,
|
|
6388
|
-
"hiddenAliases": [],
|
|
6389
|
-
"id": "telemetry:status",
|
|
6390
|
-
"pluginAlias": "@sanity/cli",
|
|
6391
|
-
"pluginName": "@sanity/cli",
|
|
6392
|
-
"pluginType": "core",
|
|
6393
|
-
"strict": true,
|
|
6394
|
-
"isESM": true,
|
|
6395
|
-
"relativePath": [
|
|
6396
|
-
"dist",
|
|
6397
|
-
"commands",
|
|
6398
|
-
"telemetry",
|
|
6399
|
-
"status.js"
|
|
6400
|
-
]
|
|
6401
|
-
},
|
|
6402
6324
|
"tokens:create": {
|
|
6403
6325
|
"aliases": [],
|
|
6404
6326
|
"args": {
|
|
@@ -6957,6 +6879,84 @@
|
|
|
6957
6879
|
"list.js"
|
|
6958
6880
|
]
|
|
6959
6881
|
},
|
|
6882
|
+
"telemetry:disable": {
|
|
6883
|
+
"aliases": [],
|
|
6884
|
+
"args": {},
|
|
6885
|
+
"description": "Disable telemetry for your account",
|
|
6886
|
+
"examples": [
|
|
6887
|
+
{
|
|
6888
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
6889
|
+
"description": "Disable telemetry for your account"
|
|
6890
|
+
}
|
|
6891
|
+
],
|
|
6892
|
+
"flags": {},
|
|
6893
|
+
"hasDynamicHelp": false,
|
|
6894
|
+
"hiddenAliases": [],
|
|
6895
|
+
"id": "telemetry:disable",
|
|
6896
|
+
"pluginAlias": "@sanity/cli",
|
|
6897
|
+
"pluginName": "@sanity/cli",
|
|
6898
|
+
"pluginType": "core",
|
|
6899
|
+
"strict": true,
|
|
6900
|
+
"isESM": true,
|
|
6901
|
+
"relativePath": [
|
|
6902
|
+
"dist",
|
|
6903
|
+
"commands",
|
|
6904
|
+
"telemetry",
|
|
6905
|
+
"disable.js"
|
|
6906
|
+
]
|
|
6907
|
+
},
|
|
6908
|
+
"telemetry:enable": {
|
|
6909
|
+
"aliases": [],
|
|
6910
|
+
"args": {},
|
|
6911
|
+
"description": "Enable telemetry for your account",
|
|
6912
|
+
"examples": [
|
|
6913
|
+
{
|
|
6914
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
6915
|
+
"description": "Enable telemetry for your account"
|
|
6916
|
+
}
|
|
6917
|
+
],
|
|
6918
|
+
"flags": {},
|
|
6919
|
+
"hasDynamicHelp": false,
|
|
6920
|
+
"hiddenAliases": [],
|
|
6921
|
+
"id": "telemetry:enable",
|
|
6922
|
+
"pluginAlias": "@sanity/cli",
|
|
6923
|
+
"pluginName": "@sanity/cli",
|
|
6924
|
+
"pluginType": "core",
|
|
6925
|
+
"strict": true,
|
|
6926
|
+
"isESM": true,
|
|
6927
|
+
"relativePath": [
|
|
6928
|
+
"dist",
|
|
6929
|
+
"commands",
|
|
6930
|
+
"telemetry",
|
|
6931
|
+
"enable.js"
|
|
6932
|
+
]
|
|
6933
|
+
},
|
|
6934
|
+
"telemetry:status": {
|
|
6935
|
+
"aliases": [],
|
|
6936
|
+
"args": {},
|
|
6937
|
+
"description": "Check telemetry status for your account",
|
|
6938
|
+
"examples": [
|
|
6939
|
+
{
|
|
6940
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
6941
|
+
"description": "Check telemetry status for your account"
|
|
6942
|
+
}
|
|
6943
|
+
],
|
|
6944
|
+
"flags": {},
|
|
6945
|
+
"hasDynamicHelp": false,
|
|
6946
|
+
"hiddenAliases": [],
|
|
6947
|
+
"id": "telemetry:status",
|
|
6948
|
+
"pluginAlias": "@sanity/cli",
|
|
6949
|
+
"pluginName": "@sanity/cli",
|
|
6950
|
+
"pluginType": "core",
|
|
6951
|
+
"strict": true,
|
|
6952
|
+
"isESM": true,
|
|
6953
|
+
"relativePath": [
|
|
6954
|
+
"dist",
|
|
6955
|
+
"commands",
|
|
6956
|
+
"telemetry",
|
|
6957
|
+
"status.js"
|
|
6958
|
+
]
|
|
6959
|
+
},
|
|
6960
6960
|
"context:documents:content": {
|
|
6961
6961
|
"aliases": [],
|
|
6962
6962
|
"args": {
|
|
@@ -10393,5 +10393,5 @@
|
|
|
10393
10393
|
]
|
|
10394
10394
|
}
|
|
10395
10395
|
},
|
|
10396
|
-
"version": "8.
|
|
10396
|
+
"version": "8.33.0"
|
|
10397
10397
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/cli",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.33.0",
|
|
4
4
|
"description": "Sanity CLI tool for managing Sanity projects and organizations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -63,17 +63,17 @@
|
|
|
63
63
|
"@oclif/plugin-help": "^6.3.0",
|
|
64
64
|
"@oclif/plugin-not-found": "^3.3.0",
|
|
65
65
|
"@sanity/blueprints": "^0.34.1",
|
|
66
|
-
"@sanity/cli-build": "^7.
|
|
67
|
-
"@sanity/cli-core": "^3.
|
|
68
|
-
"@sanity/client": "^8.
|
|
69
|
-
"@sanity/codegen": "^8.3.
|
|
66
|
+
"@sanity/cli-build": "^7.5.0",
|
|
67
|
+
"@sanity/cli-core": "^3.16.0",
|
|
68
|
+
"@sanity/client": "^8.17.0",
|
|
69
|
+
"@sanity/codegen": "^8.3.3",
|
|
70
70
|
"@sanity/descriptors": "^1.3.0",
|
|
71
71
|
"@sanity/export": "^7.1.1",
|
|
72
72
|
"@sanity/generate-help-url": "^4.0.0",
|
|
73
73
|
"@sanity/id-utils": "^1.1.0",
|
|
74
74
|
"@sanity/import": "^7.1.1",
|
|
75
75
|
"@sanity/migrate": "^8.0.5",
|
|
76
|
-
"@sanity/runtime-cli": "^17.21.
|
|
76
|
+
"@sanity/runtime-cli": "^17.21.6",
|
|
77
77
|
"@sanity/schema": "^6.24.0",
|
|
78
78
|
"@sanity/schema-descriptor-utils": "^1.4.0",
|
|
79
79
|
"@sanity/telemetry": "^1.1.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@sanity/types": "^6.24.0",
|
|
82
82
|
"@sanity/util": "^6.24.0",
|
|
83
83
|
"@sanity/validation": "^6.24.0",
|
|
84
|
-
"@sanity/workbench-cli": "^2.
|
|
84
|
+
"@sanity/workbench-cli": "^2.19.0",
|
|
85
85
|
"@sanity/worker-channels": "^2.0.0",
|
|
86
86
|
"@sanity/workflows": ">=0.39.0 <1.0.0",
|
|
87
87
|
"@sanity/workflows-cli": ">=0.39.0 <1.0.0",
|
|
@@ -110,14 +110,14 @@
|
|
|
110
110
|
"promise-props-recursive": "^2.0.2",
|
|
111
111
|
"rxjs": "^7.8.2",
|
|
112
112
|
"semver": "^7.8.6",
|
|
113
|
-
"skills": "^1.
|
|
113
|
+
"skills": "^1.9.0",
|
|
114
114
|
"smol-toml": "^1.9.1",
|
|
115
115
|
"string-argv": "^0.3.2",
|
|
116
116
|
"string-width": "^7.2.0",
|
|
117
117
|
"tar": "^7.5.23",
|
|
118
118
|
"tar-stream": "^3.2.2",
|
|
119
119
|
"tinyglobby": "^0.2.17",
|
|
120
|
-
"valibot": "^1.
|
|
120
|
+
"valibot": "^1.5.0",
|
|
121
121
|
"vite": "^8.3.8",
|
|
122
122
|
"which": "^6.0.1",
|
|
123
123
|
"wrap-ansi": "^9.0.2",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"@repo/oxc-config": "0.0.0",
|
|
130
130
|
"@repo/package.config": "0.0.1",
|
|
131
131
|
"@repo/tsconfig": "3.70.0",
|
|
132
|
-
"@sanity/cli-test": "
|
|
132
|
+
"@sanity/cli-test": "26.0.0",
|
|
133
133
|
"@sanity/pkg-utils": "^12.3.4",
|
|
134
134
|
"@swc/cli": "^0.8.2",
|
|
135
135
|
"@swc/core": "^1.16.22",
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"nock": "^14.0.17",
|
|
149
149
|
"oclif": "^4.24.0",
|
|
150
150
|
"oxc-transform-react": "^0.158.0",
|
|
151
|
-
"oxlint": "^1.
|
|
151
|
+
"oxlint": "^1.94.0",
|
|
152
152
|
"publint": "^0.3.25",
|
|
153
153
|
"rimraf": "^6.0.1",
|
|
154
154
|
"sanity": "^6.24.0",
|
|
@@ -105,3 +105,14 @@ Essentials:
|
|
|
105
105
|
- Editing documents: https://www.sanity.io/docs/app-sdk/editing-documents
|
|
106
106
|
- Configuration: https://www.sanity.io/docs/app-sdk/sdk-configuration
|
|
107
107
|
- API reference with current signatures: https://reference.sanity.io/_sanity/sdk-react/
|
|
108
|
+
|
|
109
|
+
## Sanity: connect MCP, then what to build next
|
|
110
|
+
|
|
111
|
+
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.
|
|
112
|
+
|
|
113
|
+
Once the app is running, show the user this map and offer the next step:
|
|
114
|
+
|
|
115
|
+
1. **Schema**: this app has no Studio schema of its own to deploy. Types come from the schema file(s) at the project root, extracted from the Studio that owns the schema — see "Set up TypeGen before writing components" above.
|
|
116
|
+
2. **Queries and types**: write GROQ with `defineQuery` and projections with `defineProjection`, then regenerate types with `npx sanity typegen generate` — again, see "Set up TypeGen before writing components" above.
|
|
117
|
+
3. **Functions**: run code when content changes or on a schedule, for example fill in a slug when a post is published ([Functions guide](https://github.com/sanity-io/agent-toolkit/blob/main/skills/sanity-best-practices/references/functions.md)).
|
|
118
|
+
4. **Deploy**: `npm run deploy` — see "Deploying without prompts" above for flags that work in agent terminals.
|
|
@@ -109,3 +109,14 @@ Essentials:
|
|
|
109
109
|
- Sanity UI with the App SDK: https://www.sanity.io/docs/app-sdk/sanity-ui-sdk
|
|
110
110
|
- Sanity UI docs: https://www.sanity.io/ui
|
|
111
111
|
- API reference with current signatures: https://reference.sanity.io/_sanity/sdk-react/
|
|
112
|
+
|
|
113
|
+
## Sanity: connect MCP, then what to build next
|
|
114
|
+
|
|
115
|
+
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.
|
|
116
|
+
|
|
117
|
+
Once the app is running, show the user this map and offer the next step:
|
|
118
|
+
|
|
119
|
+
1. **Schema**: this app has no Studio schema of its own to deploy. Types come from the schema file(s) at the project root, extracted from the Studio that owns the schema — see "Set up TypeGen before writing components" above.
|
|
120
|
+
2. **Queries and types**: write GROQ with `defineQuery` and projections with `defineProjection`, then regenerate types with `npx sanity typegen generate` — again, see "Set up TypeGen before writing components" above.
|
|
121
|
+
3. **Functions**: run code when content changes or on a schedule, for example fill in a slug when a post is published ([Functions guide](https://github.com/sanity-io/agent-toolkit/blob/main/skills/sanity-best-practices/references/functions.md)).
|
|
122
|
+
4. **Deploy**: `npm run deploy` — see "Deploying without prompts" above for flags that work in agent terminals.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# AGENTS.md
|
|
2
|
+
|
|
3
|
+
Guidance for AI coding agents working in this repository.
|
|
4
|
+
|
|
5
|
+
## Sanity: connect MCP, then what to build next
|
|
6
|
+
|
|
7
|
+
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
|
+
|
|
9
|
+
Once the project is set up, show the user this map and offer the next step:
|
|
10
|
+
|
|
11
|
+
1. **Schema**: model content in `schemaTypes/`, then offer to run `npx sanity schemas deploy` so MCP tools can see it.
|
|
12
|
+
2. **Queries and types**: put queries under `src/` or set `typegen.path` in the CLI config to their location. Add `groq` if importing `defineQuery` from it. From the Studio root, run `npx sanity schema extract && npx sanity typegen generate`.
|
|
13
|
+
3. **Functions**: run code when content changes or on a schedule, for example fill in a slug when a post is published ([Functions guide](https://github.com/sanity-io/agent-toolkit/blob/main/skills/sanity-best-practices/references/functions.md)).
|
|
14
|
+
4. **Deploy**: when the user is ready to publish, offer `npx sanity deploy`.
|
|
@@ -108,3 +108,14 @@ Essentials:
|
|
|
108
108
|
- Editing documents: https://www.sanity.io/docs/app-sdk/editing-documents
|
|
109
109
|
- Configuration: https://www.sanity.io/docs/app-sdk/sdk-configuration
|
|
110
110
|
- API reference with current signatures: https://reference.sanity.io/_sanity/sdk-react/
|
|
111
|
+
|
|
112
|
+
## Sanity: connect MCP, then what to build next
|
|
113
|
+
|
|
114
|
+
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.
|
|
115
|
+
|
|
116
|
+
Once the app is running, show the user this map and offer the next step:
|
|
117
|
+
|
|
118
|
+
1. **Schema**: this app has no Studio schema of its own to deploy. Types come from the schema file(s) at the project root, extracted from the Studio that owns the schema — see "Set up TypeGen before writing components" above.
|
|
119
|
+
2. **Queries and types**: write GROQ with `defineQuery` and projections with `defineProjection`, then regenerate types with `npx sanity typegen generate` — again, see "Set up TypeGen before writing components" above.
|
|
120
|
+
3. **Functions**: run code when content changes or on a schedule, for example fill in a slug when a post is published ([Functions guide](https://github.com/sanity-io/agent-toolkit/blob/main/skills/sanity-best-practices/references/functions.md)).
|
|
121
|
+
4. **Deploy**: `npm run deploy` — see "Deploying without prompts" above for flags that work in agent terminals.
|