@sanity/runtime-cli 16.0.2 → 16.0.3

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/16.0.2 linux-x64 node-v24.16.0
23
+ @sanity/runtime-cli/16.0.3 linux-x64 node-v24.16.0
24
24
  $ sanity-run --help [COMMAND]
25
25
  USAGE
26
26
  $ sanity-run COMMAND
@@ -103,7 +103,7 @@ EXAMPLES
103
103
  $ sanity-run blueprints add function --name my-function --fn-type document-create --fn-type document-update --lang js
104
104
  ```
105
105
 
106
- _See code: [src/commands/blueprints/add.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.2/src/commands/blueprints/add.ts)_
106
+ _See code: [src/commands/blueprints/add.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.3/src/commands/blueprints/add.ts)_
107
107
 
108
108
  ## `sanity-run blueprints config`
109
109
 
@@ -140,7 +140,7 @@ EXAMPLES
140
140
  $ sanity-run blueprints config --edit --project-id <projectId> --stack <name-or-id>
141
141
  ```
142
142
 
143
- _See code: [src/commands/blueprints/config.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.2/src/commands/blueprints/config.ts)_
143
+ _See code: [src/commands/blueprints/config.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.3/src/commands/blueprints/config.ts)_
144
144
 
145
145
  ## `sanity-run blueprints deploy`
146
146
 
@@ -194,7 +194,7 @@ EXAMPLES
194
194
  $ sanity-run blueprints deploy --new-stack-name <new-name>
195
195
  ```
196
196
 
197
- _See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.2/src/commands/blueprints/deploy.ts)_
197
+ _See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.3/src/commands/blueprints/deploy.ts)_
198
198
 
199
199
  ## `sanity-run blueprints destroy`
200
200
 
@@ -232,7 +232,7 @@ EXAMPLES
232
232
  $ sanity-run blueprints destroy --stack <name-or-id> --project-id <projectId> --force --no-wait
233
233
  ```
234
234
 
235
- _See code: [src/commands/blueprints/destroy.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.2/src/commands/blueprints/destroy.ts)_
235
+ _See code: [src/commands/blueprints/destroy.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.3/src/commands/blueprints/destroy.ts)_
236
236
 
237
237
  ## `sanity-run blueprints doctor`
238
238
 
@@ -263,7 +263,7 @@ EXAMPLES
263
263
  $ sanity-run blueprints doctor --fix
264
264
  ```
265
265
 
266
- _See code: [src/commands/blueprints/doctor.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.2/src/commands/blueprints/doctor.ts)_
266
+ _See code: [src/commands/blueprints/doctor.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.3/src/commands/blueprints/doctor.ts)_
267
267
 
268
268
  ## `sanity-run blueprints info`
269
269
 
@@ -300,7 +300,7 @@ EXAMPLES
300
300
  $ sanity-run blueprints info --organization-id <orgId> --stack <name-or-id>
301
301
  ```
302
302
 
303
- _See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.2/src/commands/blueprints/info.ts)_
303
+ _See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.3/src/commands/blueprints/info.ts)_
304
304
 
305
305
  ## `sanity-run blueprints init [DIR]`
306
306
 
@@ -359,7 +359,7 @@ EXAMPLES
359
359
  $ sanity-run blueprints init old-stack --type <json|js|ts> --project-id <projectId> --stack-id <existingStackId>
360
360
  ```
361
361
 
362
- _See code: [src/commands/blueprints/init.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.2/src/commands/blueprints/init.ts)_
362
+ _See code: [src/commands/blueprints/init.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.3/src/commands/blueprints/init.ts)_
363
363
 
364
364
  ## `sanity-run blueprints logs`
365
365
 
@@ -405,7 +405,7 @@ EXAMPLES
405
405
  $ sanity-run blueprints logs --before 2026-05-01T00:00:00Z
406
406
  ```
407
407
 
408
- _See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.2/src/commands/blueprints/logs.ts)_
408
+ _See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.3/src/commands/blueprints/logs.ts)_
409
409
 
410
410
  ## `sanity-run blueprints mint-deploy-token`
411
411
 
@@ -450,7 +450,7 @@ EXAMPLES
450
450
  $ sanity-run blueprints mint-deploy-token --organization-id <orgId>
451
451
  ```
452
452
 
453
- _See code: [src/commands/blueprints/mint-deploy-token.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.2/src/commands/blueprints/mint-deploy-token.ts)_
453
+ _See code: [src/commands/blueprints/mint-deploy-token.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.3/src/commands/blueprints/mint-deploy-token.ts)_
454
454
 
455
455
  ## `sanity-run blueprints plan`
456
456
 
@@ -483,7 +483,7 @@ EXAMPLES
483
483
  $ sanity-run blueprints plan --organization-id <orgId> --stack <name-or-id>
484
484
  ```
485
485
 
486
- _See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.2/src/commands/blueprints/plan.ts)_
486
+ _See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.3/src/commands/blueprints/plan.ts)_
487
487
 
488
488
  ## `sanity-run blueprints promote`
489
489
 
@@ -519,7 +519,7 @@ EXAMPLES
519
519
  $ sanity-run blueprints promote --new-stack-name <new-name>
520
520
  ```
521
521
 
522
- _See code: [src/commands/blueprints/promote.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.2/src/commands/blueprints/promote.ts)_
522
+ _See code: [src/commands/blueprints/promote.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.3/src/commands/blueprints/promote.ts)_
523
523
 
524
524
  ## `sanity-run blueprints stacks`
525
525
 
@@ -555,7 +555,7 @@ EXAMPLES
555
555
  $ sanity-run blueprints stacks --organization-id <organizationId> --include-projects
556
556
  ```
557
557
 
558
- _See code: [src/commands/blueprints/stacks.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.2/src/commands/blueprints/stacks.ts)_
558
+ _See code: [src/commands/blueprints/stacks.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.3/src/commands/blueprints/stacks.ts)_
559
559
 
560
560
  ## `sanity-run functions add`
561
561
 
@@ -607,7 +607,7 @@ EXAMPLES
607
607
  $ sanity-run functions add --name my-function --type document-create --type document-update --lang js
608
608
  ```
609
609
 
610
- _See code: [src/commands/functions/add.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.2/src/commands/functions/add.ts)_
610
+ _See code: [src/commands/functions/add.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.3/src/commands/functions/add.ts)_
611
611
 
612
612
  ## `sanity-run functions dev`
613
613
 
@@ -642,7 +642,7 @@ EXAMPLES
642
642
  $ sanity-run functions dev --timeout 60
643
643
  ```
644
644
 
645
- _See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.2/src/commands/functions/dev.ts)_
645
+ _See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.3/src/commands/functions/dev.ts)_
646
646
 
647
647
  ## `sanity-run functions env add NAME KEY VALUE`
648
648
 
@@ -672,7 +672,7 @@ EXAMPLES
672
672
  $ sanity-run functions env add MyFunction API_URL https://api.example.com/
673
673
  ```
674
674
 
675
- _See code: [src/commands/functions/env/add.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.2/src/commands/functions/env/add.ts)_
675
+ _See code: [src/commands/functions/env/add.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.3/src/commands/functions/env/add.ts)_
676
676
 
677
677
  ## `sanity-run functions env list NAME`
678
678
 
@@ -699,7 +699,7 @@ EXAMPLES
699
699
  $ sanity-run functions env list MyFunction
700
700
  ```
701
701
 
702
- _See code: [src/commands/functions/env/list.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.2/src/commands/functions/env/list.ts)_
702
+ _See code: [src/commands/functions/env/list.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.3/src/commands/functions/env/list.ts)_
703
703
 
704
704
  ## `sanity-run functions env remove NAME KEY`
705
705
 
@@ -728,7 +728,7 @@ EXAMPLES
728
728
  $ sanity-run functions env remove MyFunction API_URL
729
729
  ```
730
730
 
731
- _See code: [src/commands/functions/env/remove.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.2/src/commands/functions/env/remove.ts)_
731
+ _See code: [src/commands/functions/env/remove.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.3/src/commands/functions/env/remove.ts)_
732
732
 
733
733
  ## `sanity-run functions logs [NAME]`
734
734
 
@@ -768,7 +768,7 @@ EXAMPLES
768
768
  $ sanity-run functions logs <name> --delete
769
769
  ```
770
770
 
771
- _See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.2/src/commands/functions/logs.ts)_
771
+ _See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.3/src/commands/functions/logs.ts)_
772
772
 
773
773
  ## `sanity-run functions test [NAME]`
774
774
 
@@ -825,7 +825,7 @@ EXAMPLES
825
825
  $ sanity-run functions test <name> --event update --data-before '{ "title": "before" }' --data-after '{ "title": "after" }'
826
826
  ```
827
827
 
828
- _See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.2/src/commands/functions/test.ts)_
828
+ _See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/v16.0.3/src/commands/functions/test.ts)_
829
829
 
830
830
  ## `sanity-run help [COMMAND]`
831
831
 
@@ -241,8 +241,10 @@ const app = (host, port, validateResources, executionOptions) => {
241
241
  const fileInfo = findBlueprintFile();
242
242
  if (!fileInfo)
243
243
  return;
244
- watchFile(fileInfo.blueprintFilePath, { interval: 2007 }, () => {
245
- ws.send('reload-blueprint');
244
+ watchFile(fileInfo.blueprintFilePath, { interval: 2007 }, (curr, prev) => {
245
+ // watchFile can also fire on access-time (atime); gate on modified-time (mtime)
246
+ if (curr.mtimeMs !== prev.mtimeMs)
247
+ ws.send('reload-blueprint');
246
248
  });
247
249
  });
248
250
  };
@@ -2996,5 +2996,5 @@
2996
2996
  ]
2997
2997
  }
2998
2998
  },
2999
- "version": "16.0.2"
2999
+ "version": "16.0.3"
3000
3000
  }
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": "16.0.2",
4
+ "version": "16.0.3",
5
5
  "author": "Sanity Runtime Team",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -50,6 +50,7 @@
50
50
  "test:depmgmt": "vitest run --config ./test-depmgmt/vitest.config.ts",
51
51
  "test:coverage": "vitest run --coverage --coverage.include \"runtime-cli/src/**/*\"",
52
52
  "test:scenarios": "vitest run test/scenarios",
53
+ "test:playwright": "playwright install chromium && playwright install-deps chromium && playwright test",
53
54
  "test:bp-version-smoke": "node ./test/blueprints-version-smoke.js",
54
55
  "test:unit": "vitest run --exclude \"test/scenarios/**/*\"",
55
56
  "test:vitest": "vitest run",