@sanity/runtime-cli 1.8.2 → 2.0.0
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 +13 -13
- package/dist/actions/blueprints/blueprint.js +1 -2
- package/dist/actions/blueprints/index.d.ts +16 -0
- package/dist/actions/blueprints/index.js +16 -0
- package/dist/actions/functions/index.d.ts +10 -0
- package/dist/actions/functions/index.js +10 -0
- package/dist/commands/blueprints/deploy.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/server/static/vendor/vendor.bundle.d.ts +3 -3
- package/dist/utils/display/index.d.ts +10 -0
- package/dist/utils/display/index.js +10 -0
- package/dist/utils/index.d.ts +13 -0
- package/dist/utils/index.js +8 -0
- package/dist/utils/vendor/index.d.ts +4 -0
- package/dist/utils/vendor/index.js +4 -0
- package/dist/utils/vendor/parser-validator.d.ts +1 -2
- package/dist/utils/vendor/parser-validator.js +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
- /package/dist/actions/blueprints/{stash-asset.d.ts → assets.d.ts} +0 -0
- /package/dist/actions/blueprints/{stash-asset.js → assets.js} +0 -0
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/
|
|
23
|
+
@sanity/runtime-cli/2.0.0 linux-x64 node-v22.14.0
|
|
24
24
|
$ sanity-run --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ sanity-run COMMAND
|
|
@@ -61,7 +61,7 @@ EXAMPLES
|
|
|
61
61
|
$ sanity-run blueprints add function
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
-
_See code: [src/commands/blueprints/add.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
64
|
+
_See code: [src/commands/blueprints/add.ts](https://github.com/sanity-io/runtime-cli/blob/v2.0.0/src/commands/blueprints/add.ts)_
|
|
65
65
|
|
|
66
66
|
## `sanity-run blueprints config`
|
|
67
67
|
|
|
@@ -83,7 +83,7 @@ EXAMPLES
|
|
|
83
83
|
$ sanity-run blueprints config --edit
|
|
84
84
|
```
|
|
85
85
|
|
|
86
|
-
_See code: [src/commands/blueprints/config.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
86
|
+
_See code: [src/commands/blueprints/config.ts](https://github.com/sanity-io/runtime-cli/blob/v2.0.0/src/commands/blueprints/config.ts)_
|
|
87
87
|
|
|
88
88
|
## `sanity-run blueprints deploy`
|
|
89
89
|
|
|
@@ -100,7 +100,7 @@ EXAMPLES
|
|
|
100
100
|
$ sanity-run blueprints deploy
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
-
_See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
103
|
+
_See code: [src/commands/blueprints/deploy.ts](https://github.com/sanity-io/runtime-cli/blob/v2.0.0/src/commands/blueprints/deploy.ts)_
|
|
104
104
|
|
|
105
105
|
## `sanity-run blueprints info`
|
|
106
106
|
|
|
@@ -122,7 +122,7 @@ EXAMPLES
|
|
|
122
122
|
$ sanity-run blueprints info --id abc123
|
|
123
123
|
```
|
|
124
124
|
|
|
125
|
-
_See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
125
|
+
_See code: [src/commands/blueprints/info.ts](https://github.com/sanity-io/runtime-cli/blob/v2.0.0/src/commands/blueprints/info.ts)_
|
|
126
126
|
|
|
127
127
|
## `sanity-run blueprints init`
|
|
128
128
|
|
|
@@ -139,7 +139,7 @@ EXAMPLES
|
|
|
139
139
|
$ sanity-run blueprints init
|
|
140
140
|
```
|
|
141
141
|
|
|
142
|
-
_See code: [src/commands/blueprints/init.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
142
|
+
_See code: [src/commands/blueprints/init.ts](https://github.com/sanity-io/runtime-cli/blob/v2.0.0/src/commands/blueprints/init.ts)_
|
|
143
143
|
|
|
144
144
|
## `sanity-run blueprints logs`
|
|
145
145
|
|
|
@@ -161,7 +161,7 @@ EXAMPLES
|
|
|
161
161
|
$ sanity-run blueprints logs --watch
|
|
162
162
|
```
|
|
163
163
|
|
|
164
|
-
_See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
164
|
+
_See code: [src/commands/blueprints/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v2.0.0/src/commands/blueprints/logs.ts)_
|
|
165
165
|
|
|
166
166
|
## `sanity-run blueprints plan`
|
|
167
167
|
|
|
@@ -178,7 +178,7 @@ EXAMPLES
|
|
|
178
178
|
$ sanity-run blueprints plan
|
|
179
179
|
```
|
|
180
180
|
|
|
181
|
-
_See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
181
|
+
_See code: [src/commands/blueprints/plan.ts](https://github.com/sanity-io/runtime-cli/blob/v2.0.0/src/commands/blueprints/plan.ts)_
|
|
182
182
|
|
|
183
183
|
## `sanity-run blueprints stacks`
|
|
184
184
|
|
|
@@ -195,7 +195,7 @@ EXAMPLES
|
|
|
195
195
|
$ sanity-run blueprints stacks
|
|
196
196
|
```
|
|
197
197
|
|
|
198
|
-
_See code: [src/commands/blueprints/stacks.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
198
|
+
_See code: [src/commands/blueprints/stacks.ts](https://github.com/sanity-io/runtime-cli/blob/v2.0.0/src/commands/blueprints/stacks.ts)_
|
|
199
199
|
|
|
200
200
|
## `sanity-run functions dev`
|
|
201
201
|
|
|
@@ -215,7 +215,7 @@ EXAMPLES
|
|
|
215
215
|
$ sanity-run functions dev --port 8974
|
|
216
216
|
```
|
|
217
217
|
|
|
218
|
-
_See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
218
|
+
_See code: [src/commands/functions/dev.ts](https://github.com/sanity-io/runtime-cli/blob/v2.0.0/src/commands/functions/dev.ts)_
|
|
219
219
|
|
|
220
220
|
## `sanity-run functions invoke NAME`
|
|
221
221
|
|
|
@@ -241,7 +241,7 @@ EXAMPLES
|
|
|
241
241
|
$ sanity-run functions invoke <ID> --file 'payload.json'
|
|
242
242
|
```
|
|
243
243
|
|
|
244
|
-
_See code: [src/commands/functions/invoke.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
244
|
+
_See code: [src/commands/functions/invoke.ts](https://github.com/sanity-io/runtime-cli/blob/v2.0.0/src/commands/functions/invoke.ts)_
|
|
245
245
|
|
|
246
246
|
## `sanity-run functions logs NAME`
|
|
247
247
|
|
|
@@ -261,7 +261,7 @@ EXAMPLES
|
|
|
261
261
|
$ sanity-run functions logs <ID>
|
|
262
262
|
```
|
|
263
263
|
|
|
264
|
-
_See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
264
|
+
_See code: [src/commands/functions/logs.ts](https://github.com/sanity-io/runtime-cli/blob/v2.0.0/src/commands/functions/logs.ts)_
|
|
265
265
|
|
|
266
266
|
## `sanity-run functions test NAME`
|
|
267
267
|
|
|
@@ -290,7 +290,7 @@ EXAMPLES
|
|
|
290
290
|
$ sanity-run functions test echo-fn --data '{ "id": 1 }' --timeout 60
|
|
291
291
|
```
|
|
292
292
|
|
|
293
|
-
_See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/
|
|
293
|
+
_See code: [src/commands/functions/test.ts](https://github.com/sanity-io/runtime-cli/blob/v2.0.0/src/commands/functions/test.ts)_
|
|
294
294
|
|
|
295
295
|
## `sanity-run help [COMMAND]`
|
|
296
296
|
|
|
@@ -3,8 +3,7 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { dirname, extname, join } from 'node:path';
|
|
4
4
|
import { cwd } from 'node:process';
|
|
5
5
|
import { BlueprintErrorType } from '../../utils/types.js';
|
|
6
|
-
|
|
7
|
-
import blueprintParserValidator from '../../utils/vendor/parser-validator.js';
|
|
6
|
+
import { blueprintParserValidator } from '../../utils/vendor/parser-validator.js';
|
|
8
7
|
import { getStack as getStackById } from './stacks.js';
|
|
9
8
|
const SUPPORTED_FILE_NAMES_IN_PRIORITY_ORDER = [
|
|
10
9
|
'blueprint.json',
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as assets from './assets.js';
|
|
2
|
+
import * as blueprint from './blueprint.js';
|
|
3
|
+
import * as logs from './logs.js';
|
|
4
|
+
import * as operations from './operations.js';
|
|
5
|
+
import * as projects from './projects.js';
|
|
6
|
+
import * as resources from './resources.js';
|
|
7
|
+
import * as stacks from './stacks.js';
|
|
8
|
+
export declare const blueprintsActions: {
|
|
9
|
+
assets: typeof assets;
|
|
10
|
+
blueprint: typeof blueprint;
|
|
11
|
+
logs: typeof logs;
|
|
12
|
+
operations: typeof operations;
|
|
13
|
+
projects: typeof projects;
|
|
14
|
+
resources: typeof resources;
|
|
15
|
+
stacks: typeof stacks;
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as assets from './assets.js';
|
|
2
|
+
import * as blueprint from './blueprint.js';
|
|
3
|
+
import * as logs from './logs.js';
|
|
4
|
+
import * as operations from './operations.js';
|
|
5
|
+
import * as projects from './projects.js';
|
|
6
|
+
import * as resources from './resources.js';
|
|
7
|
+
import * as stacks from './stacks.js';
|
|
8
|
+
export const blueprintsActions = {
|
|
9
|
+
assets,
|
|
10
|
+
blueprint,
|
|
11
|
+
logs,
|
|
12
|
+
operations,
|
|
13
|
+
projects,
|
|
14
|
+
resources,
|
|
15
|
+
stacks,
|
|
16
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as dev from './dev.js';
|
|
2
|
+
import * as invoke from './invoke.js';
|
|
3
|
+
import * as logs from './logs.js';
|
|
4
|
+
import * as test from './test.js';
|
|
5
|
+
export declare const functionsActions: {
|
|
6
|
+
dev: typeof dev;
|
|
7
|
+
invoke: typeof invoke;
|
|
8
|
+
logs: typeof logs;
|
|
9
|
+
test: typeof test;
|
|
10
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Command } from '@oclif/core';
|
|
2
2
|
import inquirer from 'inquirer';
|
|
3
3
|
import Spinner from 'yocto-spinner';
|
|
4
|
+
import { stashAsset } from '../../actions/blueprints/assets.js';
|
|
4
5
|
import { readBlueprintOnDisk, writeConfigFile } from '../../actions/blueprints/blueprint.js';
|
|
5
6
|
import { createStack, updateStack } from '../../actions/blueprints/stacks.js';
|
|
6
|
-
import { stashAsset } from '../../actions/blueprints/stash-asset.js';
|
|
7
7
|
import { bold, green, red, yellow } from '../../utils/display/colors.js';
|
|
8
8
|
export default class Deploy extends Command {
|
|
9
9
|
static description = 'Deploy a Blueprint';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { run } from '@oclif/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
2
|
+
import { blueprintsActions } from './actions/blueprints/index.js';
|
|
3
|
+
import { functionsActions } from './actions/functions/index.js';
|
|
4
|
+
import { utils } from './utils/index.js';
|
|
5
|
+
export { blueprintsActions, functionsActions, utils, run };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { run } from '@oclif/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
2
|
+
import { blueprintsActions } from './actions/blueprints/index.js';
|
|
3
|
+
import { functionsActions } from './actions/functions/index.js';
|
|
4
|
+
import { utils } from './utils/index.js';
|
|
5
|
+
export { blueprintsActions, functionsActions, utils, run };
|
|
@@ -877,7 +877,7 @@ declare class SelectionRange {
|
|
|
877
877
|
the character before its position, 1 the character after, and 0
|
|
878
878
|
means no association.
|
|
879
879
|
*/
|
|
880
|
-
get assoc():
|
|
880
|
+
get assoc(): 0 | 1 | -1;
|
|
881
881
|
/**
|
|
882
882
|
The bidirectional text level associated with this cursor, if
|
|
883
883
|
any.
|
|
@@ -1274,8 +1274,8 @@ declare class FacetProvider {
|
|
|
1274
1274
|
id: number;
|
|
1275
1275
|
dynamicSlot(addresses: any): {
|
|
1276
1276
|
create(state: any): number;
|
|
1277
|
-
update(state: any, tr: any):
|
|
1278
|
-
reconfigure: (state: any, oldState: any) =>
|
|
1277
|
+
update(state: any, tr: any): 0 | 1;
|
|
1278
|
+
reconfigure: (state: any, oldState: any) => 0 | 1;
|
|
1279
1279
|
};
|
|
1280
1280
|
}
|
|
1281
1281
|
declare class PrecExtension {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as blueprintsFormatting from './blueprints-formatting.js';
|
|
2
|
+
import * as colors from './colors.js';
|
|
3
|
+
import * as dates from './dates.js';
|
|
4
|
+
import * as logsFormatting from './logs-formatting.js';
|
|
5
|
+
export declare const display: {
|
|
6
|
+
blueprintsFormatting: typeof blueprintsFormatting;
|
|
7
|
+
logsFormatting: typeof logsFormatting;
|
|
8
|
+
colors: typeof colors;
|
|
9
|
+
dates: typeof dates;
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as blueprintsFormatting from './blueprints-formatting.js';
|
|
2
|
+
import * as colors from './colors.js';
|
|
3
|
+
import * as dates from './dates.js';
|
|
4
|
+
import * as logsFormatting from './logs-formatting.js';
|
|
5
|
+
export const display = {
|
|
6
|
+
blueprintsFormatting,
|
|
7
|
+
logsFormatting,
|
|
8
|
+
colors,
|
|
9
|
+
dates,
|
|
10
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as types from './types.js';
|
|
2
|
+
export declare const utils: {
|
|
3
|
+
display: {
|
|
4
|
+
blueprintsFormatting: typeof import("./display/blueprints-formatting.js");
|
|
5
|
+
logsFormatting: typeof import("./display/logs-formatting.js");
|
|
6
|
+
colors: typeof import("./display/colors.js");
|
|
7
|
+
dates: typeof import("./display/dates.js");
|
|
8
|
+
};
|
|
9
|
+
vendor: {
|
|
10
|
+
blueprintParserValidator: typeof import("./vendor/parser-validator.js").blueprintParserValidator;
|
|
11
|
+
};
|
|
12
|
+
types: typeof types;
|
|
13
|
+
};
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|