@sanity/runtime-cli 14.6.0 → 14.6.1

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 CHANGED
@@ -20,7 +20,7 @@ $ npm install -g @sanity/runtime-cli
20
20
  $ sanity-run COMMAND
21
21
  running command...
22
22
  $ sanity-run (--version)
23
- @sanity/runtime-cli/14.6.0 linux-x64 node-v24.14.0
23
+ @sanity/runtime-cli/14.6.1 linux-x64 node-v24.14.0
24
24
  $ sanity-run --help [COMMAND]
25
25
  USAGE
26
26
  $ sanity-run COMMAND
@@ -98,7 +98,7 @@ EXAMPLES
98
98
  $ sanity-run blueprints add function --name my-function --fn-type document-create --fn-type document-update --lang js
99
99
  ```
100
100
 
101
- _See code: [src/commands/blueprints/add.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.0/src/commands/blueprints/add.ts)_
101
+ _See code: [src/commands/blueprints/add.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/blueprints/add.ts)_
102
102
 
103
103
  ## `sanity-run blueprints config`
104
104
 
@@ -133,7 +133,7 @@ EXAMPLES
133
133
  $ sanity-run blueprints config --edit --project-id <projectId> --stack <name-or-id>
134
134
  ```
135
135
 
136
- _See code: [src/commands/blueprints/config.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.0/src/commands/blueprints/config.ts)_
136
+ _See code: [src/commands/blueprints/config.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/blueprints/config.ts)_
137
137
 
138
138
  ## `sanity-run blueprints deploy`
139
139
 
@@ -170,7 +170,7 @@ EXAMPLES
170
170
  $ sanity-run blueprints deploy --fn-installer npm
171
171
  ```
172
172
 
173
- _See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.0/src/commands/blueprints/deploy.ts)_
173
+ _See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/blueprints/deploy.ts)_
174
174
 
175
175
  ## `sanity-run blueprints destroy`
176
176
 
@@ -202,7 +202,7 @@ EXAMPLES
202
202
  $ sanity-run blueprints destroy --stack <name-or-id> --project-id <projectId> --force --no-wait
203
203
  ```
204
204
 
205
- _See code: [src/commands/blueprints/destroy.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.0/src/commands/blueprints/destroy.ts)_
205
+ _See code: [src/commands/blueprints/destroy.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/blueprints/destroy.ts)_
206
206
 
207
207
  ## `sanity-run blueprints doctor`
208
208
 
@@ -228,7 +228,7 @@ DESCRIPTION
228
228
  issues.
229
229
  ```
230
230
 
231
- _See code: [src/commands/blueprints/doctor.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.0/src/commands/blueprints/doctor.ts)_
231
+ _See code: [src/commands/blueprints/doctor.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/blueprints/doctor.ts)_
232
232
 
233
233
  ## `sanity-run blueprints info`
234
234
 
@@ -258,7 +258,7 @@ EXAMPLES
258
258
  $ sanity-run blueprints info --stack <name-or-id>
259
259
  ```
260
260
 
261
- _See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.0/src/commands/blueprints/info.ts)_
261
+ _See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/blueprints/info.ts)_
262
262
 
263
263
  ## `sanity-run blueprints init [DIR]`
264
264
 
@@ -308,7 +308,7 @@ EXAMPLES
308
308
  $ sanity-run blueprints init --blueprint-type <json|js|ts> --stack-name <stackName>
309
309
  ```
310
310
 
311
- _See code: [src/commands/blueprints/init.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.0/src/commands/blueprints/init.ts)_
311
+ _See code: [src/commands/blueprints/init.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/blueprints/init.ts)_
312
312
 
313
313
  ## `sanity-run blueprints logs`
314
314
 
@@ -337,7 +337,7 @@ EXAMPLES
337
337
  $ sanity-run blueprints logs --watch
338
338
  ```
339
339
 
340
- _See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.0/src/commands/blueprints/logs.ts)_
340
+ _See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/blueprints/logs.ts)_
341
341
 
342
342
  ## `sanity-run blueprints plan`
343
343
 
@@ -363,7 +363,7 @@ EXAMPLES
363
363
  $ sanity-run blueprints plan
364
364
  ```
365
365
 
366
- _See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.0/src/commands/blueprints/plan.ts)_
366
+ _See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/blueprints/plan.ts)_
367
367
 
368
368
  ## `sanity-run blueprints stacks`
369
369
 
@@ -392,7 +392,7 @@ EXAMPLES
392
392
  $ sanity-run blueprints stacks --organization-id <organizationId>
393
393
  ```
394
394
 
395
- _See code: [src/commands/blueprints/stacks.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.0/src/commands/blueprints/stacks.ts)_
395
+ _See code: [src/commands/blueprints/stacks.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/blueprints/stacks.ts)_
396
396
 
397
397
  ## `sanity-run functions add`
398
398
 
@@ -441,7 +441,7 @@ EXAMPLES
441
441
  $ sanity-run functions add --name my-function --type document-create --type document-update --lang js
442
442
  ```
443
443
 
444
- _See code: [src/commands/functions/add.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.0/src/commands/functions/add.ts)_
444
+ _See code: [src/commands/functions/add.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/functions/add.ts)_
445
445
 
446
446
  ## `sanity-run functions dev`
447
447
 
@@ -475,7 +475,7 @@ EXAMPLES
475
475
  $ sanity-run functions dev --timeout 60
476
476
  ```
477
477
 
478
- _See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.0/src/commands/functions/dev.ts)_
478
+ _See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/functions/dev.ts)_
479
479
 
480
480
  ## `sanity-run functions env add NAME KEY VALUE`
481
481
 
@@ -502,7 +502,7 @@ EXAMPLES
502
502
  $ sanity-run functions env add MyFunction API_URL https://api.example.com/
503
503
  ```
504
504
 
505
- _See code: [src/commands/functions/env/add.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.0/src/commands/functions/env/add.ts)_
505
+ _See code: [src/commands/functions/env/add.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/functions/env/add.ts)_
506
506
 
507
507
  ## `sanity-run functions env list NAME`
508
508
 
@@ -526,7 +526,7 @@ EXAMPLES
526
526
  $ sanity-run functions env list MyFunction
527
527
  ```
528
528
 
529
- _See code: [src/commands/functions/env/list.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.0/src/commands/functions/env/list.ts)_
529
+ _See code: [src/commands/functions/env/list.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/functions/env/list.ts)_
530
530
 
531
531
  ## `sanity-run functions env remove NAME KEY`
532
532
 
@@ -552,7 +552,7 @@ EXAMPLES
552
552
  $ sanity-run functions env remove MyFunction API_URL
553
553
  ```
554
554
 
555
- _See code: [src/commands/functions/env/remove.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.0/src/commands/functions/env/remove.ts)_
555
+ _See code: [src/commands/functions/env/remove.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/functions/env/remove.ts)_
556
556
 
557
557
  ## `sanity-run functions logs [NAME]`
558
558
 
@@ -592,7 +592,7 @@ EXAMPLES
592
592
  $ sanity-run functions logs <name> --delete
593
593
  ```
594
594
 
595
- _See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.0/src/commands/functions/logs.ts)_
595
+ _See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/functions/logs.ts)_
596
596
 
597
597
  ## `sanity-run functions test [NAME]`
598
598
 
@@ -646,7 +646,7 @@ EXAMPLES
646
646
  $ sanity-run functions test <name> --event update --data-before '{ "title": "before" }' --data-after '{ "title": "after" }'
647
647
  ```
648
648
 
649
- _See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.0/src/commands/functions/test.ts)_
649
+ _See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/functions/test.ts)_
650
650
 
651
651
  ## `sanity-run help [COMMAND]`
652
652
 
@@ -5,7 +5,9 @@ import { checkbox, confirm, input, select } from '@inquirer/prompts';
5
5
  import { highlight } from 'cardinal';
6
6
  import { createFunctionResource } from '../../actions/blueprints/resources.js';
7
7
  import { verifyExampleExists, writeExample } from '../../actions/sanity/examples.js';
8
- import { EVENT_DOCUMENT_CREATE, EVENT_DOCUMENT_DELETE, EVENT_DOCUMENT_UPDATE, EVENT_MEDIA_LIBRARY_ASSET_CREATE, EVENT_MEDIA_LIBRARY_ASSET_DELETE, EVENT_MEDIA_LIBRARY_ASSET_UPDATE, EVENT_SCHEDULED, FUNCTION_TYPES, LABEL_DOCUMENT_CREATE, LABEL_DOCUMENT_DELETE, LABEL_DOCUMENT_UPDATE, LABEL_MEDIA_LIBRARY_ASSET_CREATE, LABEL_MEDIA_LIBRARY_ASSET_DELETE, LABEL_MEDIA_LIBRARY_ASSET_UPDATE, LABEL_SCHEDULED, SANITY_FUNCTION_MEDIA_LIBRARY_ASSET, SANITY_FUNCTION_SCHEDULED, } from '../../constants.js';
8
+ import { EVENT_DOCUMENT_CREATE, EVENT_DOCUMENT_DELETE, EVENT_DOCUMENT_UPDATE, EVENT_MEDIA_LIBRARY_ASSET_CREATE, EVENT_MEDIA_LIBRARY_ASSET_DELETE, EVENT_MEDIA_LIBRARY_ASSET_UPDATE,
9
+ // EVENT_SCHEDULED,
10
+ FUNCTION_TYPES, LABEL_DOCUMENT_CREATE, LABEL_DOCUMENT_DELETE, LABEL_DOCUMENT_UPDATE, LABEL_MEDIA_LIBRARY_ASSET_CREATE, LABEL_MEDIA_LIBRARY_ASSET_DELETE, LABEL_MEDIA_LIBRARY_ASSET_UPDATE, LABEL_SCHEDULED, SANITY_FUNCTION_MEDIA_LIBRARY_ASSET, SANITY_FUNCTION_SCHEDULED, } from '../../constants.js';
9
11
  import { check, indent, warn } from '../../utils/display/presenters.js';
10
12
  import { styleText } from '../../utils/style-text.js';
11
13
  import { validateFunctionName } from '../../utils/validate/resource.js';
@@ -236,7 +238,7 @@ async function promptForFunctionType() {
236
238
  { name: LABEL_MEDIA_LIBRARY_ASSET_CREATE, value: EVENT_MEDIA_LIBRARY_ASSET_CREATE },
237
239
  { name: LABEL_MEDIA_LIBRARY_ASSET_UPDATE, value: EVENT_MEDIA_LIBRARY_ASSET_UPDATE },
238
240
  { name: LABEL_MEDIA_LIBRARY_ASSET_DELETE, value: EVENT_MEDIA_LIBRARY_ASSET_DELETE },
239
- { name: LABEL_SCHEDULED, value: EVENT_SCHEDULED },
241
+ // {name: LABEL_SCHEDULED, value: EVENT_SCHEDULED},
240
242
  ],
241
243
  validate(choices) {
242
244
  if (choices.length === 0) {
@@ -2289,5 +2289,5 @@
2289
2289
  ]
2290
2290
  }
2291
2291
  },
2292
- "version": "14.6.0"
2292
+ "version": "14.6.1"
2293
2293
  }
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": "14.6.0",
4
+ "version": "14.6.1",
5
5
  "author": "Sanity Runtime Team",
6
6
  "type": "module",
7
7
  "license": "MIT",