@sanity/runtime-cli 15.1.3 → 15.1.5
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 +26 -20
- package/dist/actions/blueprints/blueprint.js +1 -1
- package/dist/actions/blueprints/operations.d.ts +30 -0
- package/dist/actions/blueprints/operations.js +50 -0
- package/dist/actions/blueprints/stacks.d.ts +2 -2
- package/dist/actions/blueprints/wait-for-operation.d.ts +30 -0
- package/dist/actions/blueprints/wait-for-operation.js +88 -0
- package/dist/actions/functions/test.js +1 -1
- package/dist/actions/node.js +1 -1
- package/dist/actions/sanity/examples.js +1 -1
- package/dist/baseCommands.js +1 -0
- package/dist/commands/blueprints/deploy.js +3 -1
- package/dist/commands/blueprints/destroy.js +3 -1
- package/dist/cores/blueprints/deploy.js +43 -78
- package/dist/cores/blueprints/destroy.js +41 -57
- package/dist/cores/functions/add.js +1 -1
- package/dist/cores/functions/build.js +1 -1
- package/dist/cores/functions/env/add.js +2 -2
- package/dist/cores/functions/env/list.js +2 -2
- package/dist/cores/functions/env/remove.js +2 -2
- package/dist/cores/functions/logs.js +2 -2
- package/dist/cores/functions/test.js +13 -3
- package/dist/cores/index.d.ts +2 -0
- package/dist/server/handlers/invoke.js +17 -5
- package/dist/utils/blueprints/group-resources.d.ts +8 -0
- package/dist/utils/blueprints/group-resources.js +29 -0
- package/dist/utils/blueprints/resolve-deployed-resources.d.ts +17 -0
- package/dist/utils/blueprints/resolve-deployed-resources.js +29 -0
- package/dist/utils/{validate/index.d.ts → blueprints/validate-resources.d.ts} +0 -1
- package/dist/utils/{validate/index.js → blueprints/validate-resources.js} +0 -1
- package/dist/utils/exit-codes.d.ts +15 -0
- package/dist/utils/exit-codes.js +15 -0
- package/dist/utils/{build-payload.d.ts → functions/build-payload.d.ts} +1 -1
- package/dist/utils/{build-payload.js → functions/build-payload.js} +1 -1
- package/dist/utils/{child-process-wrapper.js → functions/child-process-wrapper.js} +63 -0
- package/dist/utils/{find-function.d.ts → functions/find.d.ts} +1 -1
- package/dist/utils/{find-function.js → functions/find.js} +2 -2
- package/dist/utils/{invoke-local.d.ts → functions/invoke-local.d.ts} +1 -1
- package/dist/utils/{invoke-local.js → functions/invoke-local.js} +10 -8
- package/dist/utils/functions/prepare-asset.js +2 -2
- package/dist/utils/{transpile/transpile-function.d.ts → functions/transpile/function.d.ts} +1 -1
- package/dist/utils/{transpile/transpile-function.js → functions/transpile/function.js} +3 -3
- package/dist/utils/types.d.ts +4 -0
- package/oclif.manifest.json +3 -3
- package/package.json +2 -2
- /package/dist/utils/{other → external}/github.d.ts +0 -0
- /package/dist/utils/{other → external}/github.js +0 -0
- /package/dist/utils/{other → external}/npmjs.d.ts +0 -0
- /package/dist/utils/{other → external}/npmjs.js +0 -0
- /package/dist/utils/functions/{getFolderSize.d.ts → get-folder-size.d.ts} +0 -0
- /package/dist/utils/functions/{getFolderSize.js → get-folder-size.js} +0 -0
- /package/dist/utils/functions/{packageJsonUtils.d.ts → package-json.d.ts} +0 -0
- /package/dist/utils/functions/{packageJsonUtils.js → package-json.js} +0 -0
- /package/dist/utils/functions/{resolve-function-auth.d.ts → resolve-auth.d.ts} +0 -0
- /package/dist/utils/functions/{resolve-function-auth.js → resolve-auth.js} +0 -0
- /package/dist/utils/{transpile → functions/transpile}/cleanup-source-maps.d.ts +0 -0
- /package/dist/utils/{transpile → functions/transpile}/cleanup-source-maps.js +0 -0
- /package/dist/utils/{transpile → functions/transpile}/find-up.d.ts +0 -0
- /package/dist/utils/{transpile → functions/transpile}/find-up.js +0 -0
- /package/dist/utils/{pnpm.d.ts → functions/transpile/pnpm.d.ts} +0 -0
- /package/dist/utils/{pnpm.js → functions/transpile/pnpm.js} +0 -0
- /package/dist/utils/{transpile → functions/transpile}/verify-handler.d.ts +0 -0
- /package/dist/utils/{transpile → functions/transpile}/verify-handler.js +0 -0
- /package/dist/utils/{validate/resource.d.ts → functions/validate-name.d.ts} +0 -0
- /package/dist/utils/{validate/resource.js → functions/validate-name.js} +0 -0
package/oclif.manifest.json
CHANGED
|
@@ -373,7 +373,7 @@
|
|
|
373
373
|
"blueprints:deploy": {
|
|
374
374
|
"aliases": [],
|
|
375
375
|
"args": {},
|
|
376
|
-
"description": "Applies your local Blueprint to the remote Stack, creating, updating, or removing resources as needed. This is the primary command for applying infrastructure changes.\n\nBefore deploying, run 'blueprints plan' to preview changes. After deployment, use 'blueprints info' to verify Stack status or 'blueprints logs' to monitor activity.\n\nUse --no-wait to queue the deployment and return immediately without waiting for completion.\n\nUse --fn-installer to force which package manager to use when deploying functions.\n\nSet SANITY_ASSET_TIMEOUT (seconds) to override the 60-second timeout for processing resource assets.",
|
|
376
|
+
"description": "Applies your local Blueprint to the remote Stack, creating, updating, or removing resources as needed. This is the primary command for applying infrastructure changes.\n\nBefore deploying, run 'blueprints plan' to preview changes. After deployment, use 'blueprints info' to verify Stack status or 'blueprints logs' to monitor activity.\n\nUse --no-wait to queue the deployment and return immediately without waiting for completion.\n\nUse --fn-installer to force which package manager to use when deploying functions.\n\nSet SANITY_ASSET_TIMEOUT (seconds) to override the 60-second timeout for processing resource assets.\n\nExit codes: 0 deployed, 2 deployment failed, 75 deployment accepted but completion could not be confirmed (rerun 'blueprints info' to check).",
|
|
377
377
|
"examples": [
|
|
378
378
|
"<%= config.bin %> <%= command.id %>",
|
|
379
379
|
"<%= config.bin %> <%= command.id %> --message \"Enable staging dataset\"",
|
|
@@ -523,7 +523,7 @@
|
|
|
523
523
|
"blueprints:destroy": {
|
|
524
524
|
"aliases": [],
|
|
525
525
|
"args": {},
|
|
526
|
-
"description": "Permanently removes the remote Stack and all its provisioned resources. Your Blueprint manifest and resource files remain intact; \"stackId\" is unset in your local config.\n\nThis is a destructive operation. You will be prompted to confirm unless --force is specified.\n\nUse this to clean up test environments or decommission a Stack you no longer need.",
|
|
526
|
+
"description": "Permanently removes the remote Stack and all its provisioned resources. Your Blueprint manifest and resource files remain intact; \"stackId\" is unset in your local config.\n\nThis is a destructive operation. You will be prompted to confirm unless --force is specified.\n\nUse this to clean up test environments or decommission a Stack you no longer need.\n\nExit codes: 0 destroyed, 2 destruction failed, 75 destruction accepted but completion could not be confirmed (rerun 'blueprints info' to check).",
|
|
527
527
|
"examples": [
|
|
528
528
|
"<%= config.bin %> <%= command.id %>",
|
|
529
529
|
"<%= config.bin %> <%= command.id %> --stack <name-or-id> --project-id <projectId> --force --no-wait"
|
|
@@ -2998,5 +2998,5 @@
|
|
|
2998
2998
|
]
|
|
2999
2999
|
}
|
|
3000
3000
|
},
|
|
3001
|
-
"version": "15.1.
|
|
3001
|
+
"version": "15.1.5"
|
|
3002
3002
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/runtime-cli",
|
|
3
3
|
"description": "Sanity's Runtime CLI for Blueprints and Functions",
|
|
4
|
-
"version": "15.1.
|
|
4
|
+
"version": "15.1.5",
|
|
5
5
|
"author": "Sanity Runtime Team",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"clean": "shx rm -rf dist oclif.manifest.json",
|
|
41
41
|
"copy:design-tokens": "shx rm -rf ./src/server/static/vendor/design-tokens && shx cp -r ./node_modules/@sanity-labs/design-tokens/dist/css ./src/server/static/vendor/design-tokens",
|
|
42
42
|
"copy:server": "shx cp -r ./src/server/static ./dist/server",
|
|
43
|
-
"copy:wrapper": "shx cp ./src/utils/child-process-wrapper.js ./dist/utils/child-process-wrapper.js",
|
|
43
|
+
"copy:wrapper": "shx cp ./src/utils/functions/child-process-wrapper.js ./dist/utils/functions/child-process-wrapper.js",
|
|
44
44
|
"lint": "biome ci",
|
|
45
45
|
"lint:write": "biome check --write",
|
|
46
46
|
"lint:fix": "npm run lint:write",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|