@sanity/runtime-cli 13.0.0 → 13.0.2

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.0 linux-x64 node-v24.12.0
23
+ @sanity/runtime-cli/13.0.2 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.0/src/commands/blueprints/add.ts)_
101
+ _See code: [src/commands/blueprints/add.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/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.0/src/commands/blueprints/config.ts)_
137
+ _See code: [src/commands/blueprints/config.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/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.0/src/commands/blueprints/deploy.ts)_
167
+ _See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/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.0/src/commands/blueprints/destroy.ts)_
201
+ _See code: [src/commands/blueprints/destroy.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/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.0/src/commands/blueprints/doctor.ts)_
227
+ _See code: [src/commands/blueprints/doctor.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/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.0/src/commands/blueprints/info.ts)_
257
+ _See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/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.0/src/commands/blueprints/init.ts)_
308
+ _See code: [src/commands/blueprints/init.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/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.0/src/commands/blueprints/logs.ts)_
336
+ _See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/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.0/src/commands/blueprints/plan.ts)_
359
+ _See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/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.0/src/commands/blueprints/stacks.ts)_
389
+ _See code: [src/commands/blueprints/stacks.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/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.0/src/commands/functions/add.ts)_
438
+ _See code: [src/commands/functions/add.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/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.0/src/commands/functions/dev.ts)_
472
+ _See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/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.0/src/commands/functions/env/add.ts)_
499
+ _See code: [src/commands/functions/env/add.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/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.0/src/commands/functions/env/list.ts)_
523
+ _See code: [src/commands/functions/env/list.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/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.0/src/commands/functions/env/remove.ts)_
549
+ _See code: [src/commands/functions/env/remove.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/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.0/src/commands/functions/logs.ts)_
588
+ _See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/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.0/src/commands/functions/test.ts)_
643
+ _See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/v13.0.2/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: [basicSetup, json(), sanityCodeMirrorTheme, EditorState.readOnly.of(true)],
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
  }
@@ -1809,5 +1809,5 @@
1809
1809
  ]
1810
1810
  }
1811
1811
  },
1812
- "version": "13.0.0"
1812
+ "version": "13.0.2"
1813
1813
  }
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": "13.0.0",
4
+ "version": "13.0.2",
5
5
  "author": "Sanity Runtime Team",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -16,43 +16,53 @@
16
16
  "exports": {
17
17
  ".": {
18
18
  "types": "./dist/index.d.ts",
19
- "import": "./dist/index.js"
19
+ "import": "./dist/index.js",
20
+ "require": "./dist/index.js"
20
21
  },
21
22
  "./actions/blueprints": {
22
23
  "types": "./dist/actions/blueprints/index.d.ts",
23
- "import": "./dist/actions/blueprints/index.js"
24
+ "import": "./dist/actions/blueprints/index.js",
25
+ "require": "./dist/actions/blueprints/index.js"
24
26
  },
25
27
  "./actions/functions": {
26
28
  "types": "./dist/actions/functions/index.d.ts",
27
- "import": "./dist/actions/functions/index.js"
29
+ "import": "./dist/actions/functions/index.js",
30
+ "require": "./dist/actions/functions/index.js"
28
31
  },
29
32
  "./actions/sanity": {
30
33
  "types": "./dist/actions/sanity/index.d.ts",
31
- "import": "./dist/actions/sanity/index.js"
34
+ "import": "./dist/actions/sanity/index.js",
35
+ "require": "./dist/actions/sanity/index.js"
32
36
  },
33
37
  "./commands/blueprints/*": {
34
38
  "types": "./dist/commands/blueprints/*.d.ts",
35
- "import": "./dist/commands/blueprints/*.js"
39
+ "import": "./dist/commands/blueprints/*.js",
40
+ "require": "./dist/commands/blueprints/*.js"
36
41
  },
37
42
  "./commands/functions/*": {
38
43
  "types": "./dist/commands/functions/*.d.ts",
39
- "import": "./dist/commands/functions/*.js"
44
+ "import": "./dist/commands/functions/*.js",
45
+ "require": "./dist/commands/functions/*.js"
40
46
  },
41
47
  "./cores": {
42
48
  "types": "./dist/cores/index.d.ts",
43
- "import": "./dist/cores/index.js"
49
+ "import": "./dist/cores/index.js",
50
+ "require": "./dist/cores/index.js"
44
51
  },
45
52
  "./cores/blueprints": {
46
53
  "types": "./dist/cores/blueprints/index.d.ts",
47
- "import": "./dist/cores/blueprints/index.js"
54
+ "import": "./dist/cores/blueprints/index.js",
55
+ "require": "./dist/cores/blueprints/index.js"
48
56
  },
49
57
  "./cores/functions": {
50
58
  "types": "./dist/cores/functions/index.d.ts",
51
- "import": "./dist/cores/functions/index.js"
59
+ "import": "./dist/cores/functions/index.js",
60
+ "require": "./dist/cores/functions/index.js"
52
61
  },
53
62
  "./utils": {
54
63
  "types": "./dist/utils/index.d.ts",
55
- "import": "./dist/utils/index.js"
64
+ "import": "./dist/utils/index.js",
65
+ "require": "./dist/utils/index.js"
56
66
  }
57
67
  },
58
68
  "engines": {