@sanity/runtime-cli 13.0.0 → 13.0.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/13.0.
|
|
23
|
+
@sanity/runtime-cli/13.0.1 linux-x64 node-v24.12.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/v13.0.
|
|
101
|
+
_See code: [src/commands/blueprints/add.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.1/src/commands/blueprints/add.ts)_
|
|
102
102
|
|
|
103
103
|
## `sanity-run blueprints config`
|
|
104
104
|
|
|
@@ -134,7 +134,7 @@ EXAMPLES
|
|
|
134
134
|
$ sanity-run blueprints config --edit --project-id <projectId> --stack-id <stackId>
|
|
135
135
|
```
|
|
136
136
|
|
|
137
|
-
_See code: [src/commands/blueprints/config.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.
|
|
137
|
+
_See code: [src/commands/blueprints/config.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.1/src/commands/blueprints/config.ts)_
|
|
138
138
|
|
|
139
139
|
## `sanity-run blueprints deploy`
|
|
140
140
|
|
|
@@ -164,7 +164,7 @@ EXAMPLES
|
|
|
164
164
|
$ sanity-run blueprints deploy --no-wait
|
|
165
165
|
```
|
|
166
166
|
|
|
167
|
-
_See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.
|
|
167
|
+
_See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.1/src/commands/blueprints/deploy.ts)_
|
|
168
168
|
|
|
169
169
|
## `sanity-run blueprints destroy`
|
|
170
170
|
|
|
@@ -198,7 +198,7 @@ EXAMPLES
|
|
|
198
198
|
$ sanity-run blueprints destroy --stack-id <stackId> --project-id <projectId> --force --no-wait
|
|
199
199
|
```
|
|
200
200
|
|
|
201
|
-
_See code: [src/commands/blueprints/destroy.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.
|
|
201
|
+
_See code: [src/commands/blueprints/destroy.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.1/src/commands/blueprints/destroy.ts)_
|
|
202
202
|
|
|
203
203
|
## `sanity-run blueprints doctor`
|
|
204
204
|
|
|
@@ -224,7 +224,7 @@ DESCRIPTION
|
|
|
224
224
|
issues.
|
|
225
225
|
```
|
|
226
226
|
|
|
227
|
-
_See code: [src/commands/blueprints/doctor.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.
|
|
227
|
+
_See code: [src/commands/blueprints/doctor.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.1/src/commands/blueprints/doctor.ts)_
|
|
228
228
|
|
|
229
229
|
## `sanity-run blueprints info`
|
|
230
230
|
|
|
@@ -254,7 +254,7 @@ EXAMPLES
|
|
|
254
254
|
$ sanity-run blueprints info --id <stackId>
|
|
255
255
|
```
|
|
256
256
|
|
|
257
|
-
_See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.
|
|
257
|
+
_See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.1/src/commands/blueprints/info.ts)_
|
|
258
258
|
|
|
259
259
|
## `sanity-run blueprints init [DIR]`
|
|
260
260
|
|
|
@@ -305,7 +305,7 @@ EXAMPLES
|
|
|
305
305
|
$ sanity-run blueprints init --blueprint-type <json|js|ts> --stack-name <stackName>
|
|
306
306
|
```
|
|
307
307
|
|
|
308
|
-
_See code: [src/commands/blueprints/init.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.
|
|
308
|
+
_See code: [src/commands/blueprints/init.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.1/src/commands/blueprints/init.ts)_
|
|
309
309
|
|
|
310
310
|
## `sanity-run blueprints logs`
|
|
311
311
|
|
|
@@ -333,7 +333,7 @@ EXAMPLES
|
|
|
333
333
|
$ sanity-run blueprints logs --watch
|
|
334
334
|
```
|
|
335
335
|
|
|
336
|
-
_See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.
|
|
336
|
+
_See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.1/src/commands/blueprints/logs.ts)_
|
|
337
337
|
|
|
338
338
|
## `sanity-run blueprints plan`
|
|
339
339
|
|
|
@@ -356,7 +356,7 @@ EXAMPLES
|
|
|
356
356
|
$ sanity-run blueprints plan
|
|
357
357
|
```
|
|
358
358
|
|
|
359
|
-
_See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.
|
|
359
|
+
_See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.1/src/commands/blueprints/plan.ts)_
|
|
360
360
|
|
|
361
361
|
## `sanity-run blueprints stacks`
|
|
362
362
|
|
|
@@ -386,7 +386,7 @@ EXAMPLES
|
|
|
386
386
|
$ sanity-run blueprints stacks --organization-id <organizationId>
|
|
387
387
|
```
|
|
388
388
|
|
|
389
|
-
_See code: [src/commands/blueprints/stacks.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.
|
|
389
|
+
_See code: [src/commands/blueprints/stacks.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.1/src/commands/blueprints/stacks.ts)_
|
|
390
390
|
|
|
391
391
|
## `sanity-run functions add`
|
|
392
392
|
|
|
@@ -435,7 +435,7 @@ EXAMPLES
|
|
|
435
435
|
$ sanity-run functions add --name my-function --type document-create --type document-update --lang js
|
|
436
436
|
```
|
|
437
437
|
|
|
438
|
-
_See code: [src/commands/functions/add.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.
|
|
438
|
+
_See code: [src/commands/functions/add.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.1/src/commands/functions/add.ts)_
|
|
439
439
|
|
|
440
440
|
## `sanity-run functions dev`
|
|
441
441
|
|
|
@@ -469,7 +469,7 @@ EXAMPLES
|
|
|
469
469
|
$ sanity-run functions dev --timeout 60
|
|
470
470
|
```
|
|
471
471
|
|
|
472
|
-
_See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.
|
|
472
|
+
_See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.1/src/commands/functions/dev.ts)_
|
|
473
473
|
|
|
474
474
|
## `sanity-run functions env add NAME KEY VALUE`
|
|
475
475
|
|
|
@@ -496,7 +496,7 @@ EXAMPLES
|
|
|
496
496
|
$ sanity-run functions env add MyFunction API_URL https://api.example.com/
|
|
497
497
|
```
|
|
498
498
|
|
|
499
|
-
_See code: [src/commands/functions/env/add.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.
|
|
499
|
+
_See code: [src/commands/functions/env/add.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.1/src/commands/functions/env/add.ts)_
|
|
500
500
|
|
|
501
501
|
## `sanity-run functions env list NAME`
|
|
502
502
|
|
|
@@ -520,7 +520,7 @@ EXAMPLES
|
|
|
520
520
|
$ sanity-run functions env list MyFunction
|
|
521
521
|
```
|
|
522
522
|
|
|
523
|
-
_See code: [src/commands/functions/env/list.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.
|
|
523
|
+
_See code: [src/commands/functions/env/list.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.1/src/commands/functions/env/list.ts)_
|
|
524
524
|
|
|
525
525
|
## `sanity-run functions env remove NAME KEY`
|
|
526
526
|
|
|
@@ -546,7 +546,7 @@ EXAMPLES
|
|
|
546
546
|
$ sanity-run functions env remove MyFunction API_URL
|
|
547
547
|
```
|
|
548
548
|
|
|
549
|
-
_See code: [src/commands/functions/env/remove.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.
|
|
549
|
+
_See code: [src/commands/functions/env/remove.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.1/src/commands/functions/env/remove.ts)_
|
|
550
550
|
|
|
551
551
|
## `sanity-run functions logs [NAME]`
|
|
552
552
|
|
|
@@ -585,7 +585,7 @@ EXAMPLES
|
|
|
585
585
|
$ sanity-run functions logs <name> --delete
|
|
586
586
|
```
|
|
587
587
|
|
|
588
|
-
_See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.
|
|
588
|
+
_See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.1/src/commands/functions/logs.ts)_
|
|
589
589
|
|
|
590
590
|
## `sanity-run functions test [NAME]`
|
|
591
591
|
|
|
@@ -640,7 +640,7 @@ EXAMPLES
|
|
|
640
640
|
$ sanity-run functions test <name> --event update --data-before '{ "title": "before" }' --data-after '{ "title": "after" }'
|
|
641
641
|
```
|
|
642
642
|
|
|
643
|
-
_See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.
|
|
643
|
+
_See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.1/src/commands/functions/test.ts)_
|
|
644
644
|
|
|
645
645
|
## `sanity-run help [COMMAND]`
|
|
646
646
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,18 @@
|
|
|
1
1
|
export { run } from '@oclif/core';
|
|
2
|
+
export { default as BlueprintsAddCommand } from './commands/blueprints/add.js';
|
|
3
|
+
export { default as BlueprintsConfigCommand } from './commands/blueprints/config.js';
|
|
4
|
+
export { default as BlueprintsDeployCommand } from './commands/blueprints/deploy.js';
|
|
5
|
+
export { default as BlueprintsDestroyCommand } from './commands/blueprints/destroy.js';
|
|
6
|
+
export { default as BlueprintsDoctorCommand } from './commands/blueprints/doctor.js';
|
|
7
|
+
export { default as BlueprintsInfoCommand } from './commands/blueprints/info.js';
|
|
8
|
+
export { default as BlueprintsInitCommand } from './commands/blueprints/init.js';
|
|
9
|
+
export { default as BlueprintsLogsCommand } from './commands/blueprints/logs.js';
|
|
10
|
+
export { default as BlueprintsPlanCommand } from './commands/blueprints/plan.js';
|
|
11
|
+
export { default as BlueprintsStacksCommand } from './commands/blueprints/stacks.js';
|
|
12
|
+
export { default as FunctionsAddCommand } from './commands/functions/add.js';
|
|
13
|
+
export { default as FunctionsDevCommand } from './commands/functions/dev.js';
|
|
14
|
+
export { default as FunctionsEnvAddCommand } from './commands/functions/env/add.js';
|
|
15
|
+
export { default as FunctionsEnvListCommand } from './commands/functions/env/list.js';
|
|
16
|
+
export { default as FunctionsEnvRemoveCommand } from './commands/functions/env/remove.js';
|
|
17
|
+
export { default as FunctionsLogsCommand } from './commands/functions/logs.js';
|
|
18
|
+
export { default as FunctionsTestCommand } from './commands/functions/test.js';
|
package/dist/index.js
CHANGED
|
@@ -1 +1,20 @@
|
|
|
1
1
|
export { run } from '@oclif/core';
|
|
2
|
+
// Blueprints command classes
|
|
3
|
+
export { default as BlueprintsAddCommand } from './commands/blueprints/add.js';
|
|
4
|
+
export { default as BlueprintsConfigCommand } from './commands/blueprints/config.js';
|
|
5
|
+
export { default as BlueprintsDeployCommand } from './commands/blueprints/deploy.js';
|
|
6
|
+
export { default as BlueprintsDestroyCommand } from './commands/blueprints/destroy.js';
|
|
7
|
+
export { default as BlueprintsDoctorCommand } from './commands/blueprints/doctor.js';
|
|
8
|
+
export { default as BlueprintsInfoCommand } from './commands/blueprints/info.js';
|
|
9
|
+
export { default as BlueprintsInitCommand } from './commands/blueprints/init.js';
|
|
10
|
+
export { default as BlueprintsLogsCommand } from './commands/blueprints/logs.js';
|
|
11
|
+
export { default as BlueprintsPlanCommand } from './commands/blueprints/plan.js';
|
|
12
|
+
export { default as BlueprintsStacksCommand } from './commands/blueprints/stacks.js';
|
|
13
|
+
// Functions command classes
|
|
14
|
+
export { default as FunctionsAddCommand } from './commands/functions/add.js';
|
|
15
|
+
export { default as FunctionsDevCommand } from './commands/functions/dev.js';
|
|
16
|
+
export { default as FunctionsEnvAddCommand } from './commands/functions/env/add.js';
|
|
17
|
+
export { default as FunctionsEnvListCommand } from './commands/functions/env/list.js';
|
|
18
|
+
export { default as FunctionsEnvRemoveCommand } from './commands/functions/env/remove.js';
|
|
19
|
+
export { default as FunctionsLogsCommand } from './commands/functions/logs.js';
|
|
20
|
+
export { default as FunctionsTestCommand } from './commands/functions/test.js';
|
|
@@ -13,6 +13,8 @@ import {ApiBaseElement} from './api-base.js'
|
|
|
13
13
|
import {sanityCodeMirrorTheme} from './codemirror-theme.js'
|
|
14
14
|
import {getSharedStyleSheets} from './shared-styles.js'
|
|
15
15
|
|
|
16
|
+
const {lineWrapping} = EditorView
|
|
17
|
+
|
|
16
18
|
const template = document.createElement('template')
|
|
17
19
|
template.innerHTML = `
|
|
18
20
|
<style>
|
|
@@ -117,6 +119,7 @@ class ResponsePanel extends ApiBaseElement {
|
|
|
117
119
|
doc: '\n\n\n\n',
|
|
118
120
|
extensions: [basicSetup, json(), sanityCodeMirrorTheme, EditorState.readOnly.of(true)],
|
|
119
121
|
parent: this.response,
|
|
122
|
+
lineWrapping,
|
|
120
123
|
})
|
|
121
124
|
}
|
|
122
125
|
|
|
@@ -6,6 +6,8 @@ import {ApiBaseElement} from './api-base.js'
|
|
|
6
6
|
import {sanityCodeMirrorTheme} from './codemirror-theme.js'
|
|
7
7
|
import {getSharedStyleSheets} from './shared-styles.js'
|
|
8
8
|
|
|
9
|
+
const {lineWrapping} = EditorView
|
|
10
|
+
|
|
9
11
|
const template = document.createElement('template')
|
|
10
12
|
template.innerHTML = `<div class="border-left y-scroll min-h-0">
|
|
11
13
|
<div>
|
|
@@ -56,7 +58,13 @@ class RulePanel extends ApiBaseElement {
|
|
|
56
58
|
|
|
57
59
|
this.api.store.rule = new EditorView({
|
|
58
60
|
doc: '\n\n\n\n',
|
|
59
|
-
extensions: [
|
|
61
|
+
extensions: [
|
|
62
|
+
basicSetup,
|
|
63
|
+
json(),
|
|
64
|
+
sanityCodeMirrorTheme,
|
|
65
|
+
EditorState.readOnly.of(true),
|
|
66
|
+
lineWrapping,
|
|
67
|
+
],
|
|
60
68
|
parent: this.rule,
|
|
61
69
|
})
|
|
62
70
|
}
|
package/oclif.manifest.json
CHANGED