@sanity/runtime-cli 10.3.0 → 10.3.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/10.3.0 linux-x64 node-v22.18.0
23
+ @sanity/runtime-cli/10.3.1 linux-x64 node-v22.18.0
24
24
  $ sanity-run --help [COMMAND]
25
25
  USAGE
26
26
  $ sanity-run COMMAND
@@ -87,7 +87,7 @@ EXAMPLES
87
87
  $ sanity-run blueprints add function --name my-function --fn-type document-update --lang js
88
88
  ```
89
89
 
90
- _See code: [src/commands/blueprints/add.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.0/src/commands/blueprints/add.ts)_
90
+ _See code: [src/commands/blueprints/add.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.1/src/commands/blueprints/add.ts)_
91
91
 
92
92
  ## `sanity-run blueprints config`
93
93
 
@@ -118,7 +118,7 @@ EXAMPLES
118
118
  $ sanity-run blueprints config --edit --project-id <projectId> --stack-id <stackId>
119
119
  ```
120
120
 
121
- _See code: [src/commands/blueprints/config.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.0/src/commands/blueprints/config.ts)_
121
+ _See code: [src/commands/blueprints/config.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.1/src/commands/blueprints/config.ts)_
122
122
 
123
123
  ## `sanity-run blueprints deploy`
124
124
 
@@ -140,7 +140,7 @@ EXAMPLES
140
140
  $ sanity-run blueprints deploy --no-wait
141
141
  ```
142
142
 
143
- _See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.0/src/commands/blueprints/deploy.ts)_
143
+ _See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.1/src/commands/blueprints/deploy.ts)_
144
144
 
145
145
  ## `sanity-run blueprints destroy`
146
146
 
@@ -165,7 +165,7 @@ EXAMPLES
165
165
  $ sanity-run blueprints destroy --stack-id <stackId> --project-id <projectId> --force --no-wait
166
166
  ```
167
167
 
168
- _See code: [src/commands/blueprints/destroy.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.0/src/commands/blueprints/destroy.ts)_
168
+ _See code: [src/commands/blueprints/destroy.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.1/src/commands/blueprints/destroy.ts)_
169
169
 
170
170
  ## `sanity-run blueprints info`
171
171
 
@@ -187,7 +187,7 @@ EXAMPLES
187
187
  $ sanity-run blueprints info --stack-id <stackId>
188
188
  ```
189
189
 
190
- _See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.0/src/commands/blueprints/info.ts)_
190
+ _See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.1/src/commands/blueprints/info.ts)_
191
191
 
192
192
  ## `sanity-run blueprints init [DIR]`
193
193
 
@@ -225,7 +225,7 @@ EXAMPLES
225
225
  $ sanity-run blueprints init --blueprint-type <json|js|ts> --stack-name <stackName>
226
226
  ```
227
227
 
228
- _See code: [src/commands/blueprints/init.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.0/src/commands/blueprints/init.ts)_
228
+ _See code: [src/commands/blueprints/init.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.1/src/commands/blueprints/init.ts)_
229
229
 
230
230
  ## `sanity-run blueprints logs`
231
231
 
@@ -247,7 +247,7 @@ EXAMPLES
247
247
  $ sanity-run blueprints logs --watch
248
248
  ```
249
249
 
250
- _See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.0/src/commands/blueprints/logs.ts)_
250
+ _See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.1/src/commands/blueprints/logs.ts)_
251
251
 
252
252
  ## `sanity-run blueprints plan`
253
253
 
@@ -264,7 +264,7 @@ EXAMPLES
264
264
  $ sanity-run blueprints plan
265
265
  ```
266
266
 
267
- _See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.0/src/commands/blueprints/plan.ts)_
267
+ _See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.1/src/commands/blueprints/plan.ts)_
268
268
 
269
269
  ## `sanity-run blueprints stacks`
270
270
 
@@ -286,7 +286,7 @@ EXAMPLES
286
286
  $ sanity-run blueprints stacks --project-id <projectId>
287
287
  ```
288
288
 
289
- _See code: [src/commands/blueprints/stacks.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.0/src/commands/blueprints/stacks.ts)_
289
+ _See code: [src/commands/blueprints/stacks.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.1/src/commands/blueprints/stacks.ts)_
290
290
 
291
291
  ## `sanity-run functions dev`
292
292
 
@@ -306,7 +306,7 @@ EXAMPLES
306
306
  $ sanity-run functions dev --port 8974
307
307
  ```
308
308
 
309
- _See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.0/src/commands/functions/dev.ts)_
309
+ _See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.1/src/commands/functions/dev.ts)_
310
310
 
311
311
  ## `sanity-run functions env add NAME KEY VALUE`
312
312
 
@@ -328,7 +328,7 @@ EXAMPLES
328
328
  $ sanity-run functions env add MyFunction API_URL https://api.example.com/
329
329
  ```
330
330
 
331
- _See code: [src/commands/functions/env/add.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.0/src/commands/functions/env/add.ts)_
331
+ _See code: [src/commands/functions/env/add.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.1/src/commands/functions/env/add.ts)_
332
332
 
333
333
  ## `sanity-run functions env list NAME`
334
334
 
@@ -348,7 +348,7 @@ EXAMPLES
348
348
  $ sanity-run functions env list MyFunction
349
349
  ```
350
350
 
351
- _See code: [src/commands/functions/env/list.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.0/src/commands/functions/env/list.ts)_
351
+ _See code: [src/commands/functions/env/list.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.1/src/commands/functions/env/list.ts)_
352
352
 
353
353
  ## `sanity-run functions env remove NAME KEY`
354
354
 
@@ -369,7 +369,7 @@ EXAMPLES
369
369
  $ sanity-run functions env remove MyFunction API_URL
370
370
  ```
371
371
 
372
- _See code: [src/commands/functions/env/remove.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.0/src/commands/functions/env/remove.ts)_
372
+ _See code: [src/commands/functions/env/remove.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.1/src/commands/functions/env/remove.ts)_
373
373
 
374
374
  ## `sanity-run functions logs NAME`
375
375
 
@@ -403,7 +403,7 @@ EXAMPLES
403
403
  $ sanity-run functions logs <name> --delete
404
404
  ```
405
405
 
406
- _See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.0/src/commands/functions/logs.ts)_
406
+ _See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.1/src/commands/functions/logs.ts)_
407
407
 
408
408
  ## `sanity-run functions test NAME`
409
409
 
@@ -438,7 +438,7 @@ EXAMPLES
438
438
  $ sanity-run functions test <name> --data '{ "id": 1 }' --timeout 60
439
439
  ```
440
440
 
441
- _See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.0/src/commands/functions/test.ts)_
441
+ _See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/v10.3.1/src/commands/functions/test.ts)_
442
442
 
443
443
  ## `sanity-run help [COMMAND]`
444
444
 
@@ -10,6 +10,7 @@ button {
10
10
  margin-left: var(--space-1);
11
11
  display: flex;
12
12
  align-items: center;
13
+ cursor: pointer;
13
14
  }
14
15
  button svg {
15
16
  fill: var(--text-color);
@@ -28,14 +28,30 @@ class FiltersComponent extends HTMLElement {
28
28
  </fieldset>
29
29
 
30
30
  <fieldset class="mar-t-sm" style="display: flex; flex-direction: column; margin-top: 12px !important;">
31
- <span class="slab-text" style="display: block; margin-bottom: var(--space-1);">With Token</span>
31
+ <span class="slab-text" style="display: block; margin-bottom: var(--space-1);">
32
+ <span style="display: flex; align-items: center;">
33
+ With Token
34
+ <help-button>
35
+ <p><strong>With Token</strong> controls whether your function runs with or without authentication.</p>
36
+ <p><strong>Enabled:</strong> Function executes with your API token, providing full, authenticated access to your Sanity project.</p>
37
+ <p><strong>Disabled:</strong> Function executes without authentication, useful for testing public endpoints or functions that don't require user permissions.</p>
38
+ </help-button>
39
+ </span>
40
+ </span>
32
41
  <toggle-switch toggle-key="withToken" style="display: flex; height: 2.5rem;"></toggle-switch>
33
42
  </fieldset>
34
43
 
35
44
  <fieldset class="mar-t-sm" style="margin-top: 12px !important;">
36
45
  <label class="slab-text">
37
46
  <span style="display: block; margin-bottom: var(--space-1);">
38
- <span style="display: flex; align-items: center;">Document ID <help-button></help-button></span>
47
+ <span style="display: flex; align-items: center;">
48
+ Document ID
49
+ <help-button>
50
+ <p>Fill out "Document ID" text field and then click the "Fetch Document" button to pre-populate the Document panel.</p>
51
+ <p>The Document panel is an editable text field so you can edit the fetched document or replace it with any JSON data you want.</p>
52
+ <p>When you click the "Run" button the contents of the Document panel will be evaluated against your filter/projection and sent to your function as the event part of the payload.</p>
53
+ </help-button>
54
+ </span>
39
55
  </span>
40
56
  <div style="display: flex; flex-direction: row; gap: var(--space-2);">
41
57
  <input name="docid" id="docid" style="background: transparent; border-color: light-dark(var(--gray-200), var(--gray-700)); height: 2.5rem; color: light-dark(var(--gray-950), var(--gray-300));">
@@ -42,10 +42,9 @@ div[popover] {
42
42
  </button>
43
43
  <div popover="" id="popover-el">
44
44
  <div style="padding: 0.75rem;">
45
- <p>Fill out "Document ID" text field and then click the "Fetch Document" button to pre-populate the Document panel.</p>
46
- <p>The Document panel is an editable text field so you can edit the fetched document or replace it with any JSON data you want.</p>
47
- <p>When you click the "Run" button the contents of the Document panel will be evaluated against your filter/projection and sent to your function as the event part of the payload.</p>
48
- <div>
45
+ <slot>
46
+ </slot>
47
+ </div>
49
48
  </div>
50
49
  `
51
50
 
@@ -904,5 +904,5 @@
904
904
  ]
905
905
  }
906
906
  },
907
- "version": "10.3.0"
907
+ "version": "10.3.1"
908
908
  }
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": "10.3.0",
4
+ "version": "10.3.1",
5
5
  "author": "Sanity Runtime Team",
6
6
  "type": "module",
7
7
  "license": "MIT",