@pikku/cli 0.8.0 → 0.8.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/CHANGELOG.md +37 -0
- package/bin/pikku-all.ts +122 -64
- package/bin/pikku-fetch.ts +5 -1
- package/bin/pikku-nextjs.ts +6 -2
- package/bin/pikku-openapi.ts +3 -1
- package/bin/pikku-queue-service.ts +5 -1
- package/bin/pikku-websocket.ts +5 -1
- package/cli.schema.json +131 -10
- package/dist/bin/pikku-all.js +51 -50
- package/dist/bin/pikku-fetch.js +5 -1
- package/dist/bin/pikku-nextjs.js +6 -2
- package/dist/bin/pikku-openapi.js +3 -1
- package/dist/bin/pikku-queue-service.js +5 -1
- package/dist/bin/pikku-websocket.js +5 -1
- package/dist/src/events/functions/pikku-command-services.d.ts +3 -0
- package/dist/src/events/functions/pikku-command-services.js +73 -0
- package/dist/src/events/http/serialize-typed-http-map.d.ts +0 -1
- package/dist/src/events/http/serialize-typed-http-map.js +1 -14
- package/dist/src/events/rpc/pikku-command-rpc-client.d.ts +2 -0
- package/dist/src/events/rpc/pikku-command-rpc-client.js +12 -0
- package/dist/src/events/rpc/serialize-rpc-wrapper.d.ts +1 -0
- package/dist/src/events/rpc/serialize-rpc-wrapper.js +29 -0
- package/dist/src/events/rpc/serialize-typed-rpc-map.js +1 -1
- package/dist/src/inspector-glob.js +1 -1
- package/dist/src/pikku-cli-config.d.ts +4 -1
- package/dist/src/pikku-cli-config.js +26 -14
- package/dist/src/schema-generator.js +2 -2
- package/dist/src/utils.d.ts +3 -0
- package/dist/src/utils.js +25 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/events/functions/pikku-command-services.ts +125 -0
- package/src/events/http/serialize-typed-http-map.ts +1 -18
- package/src/events/rpc/pikku-command-rpc-client.ts +33 -0
- package/src/events/rpc/serialize-rpc-wrapper.ts +29 -0
- package/src/events/rpc/serialize-typed-rpc-map.ts +1 -1
- package/src/inspector-glob.ts +1 -1
- package/src/pikku-cli-config.ts +33 -17
- package/src/schema-generator.ts +2 -2
- package/src/utils.test.ts +137 -0
- package/src/utils.ts +31 -6
- package/dist/src/events/http/pikku-command-nextjs.d.ts +0 -2
- package/dist/src/events/http/pikku-command-nextjs.js +0 -36
- package/src/events/http/pikku-command-nextjs.ts +0 -111
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @pikku/cli
|
|
2
2
|
|
|
3
|
+
## 0.8.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a02347b: fix: only insert package mapping if it's not the same package
|
|
8
|
+
- Updated dependencies [0fb4b3d]
|
|
9
|
+
- @pikku/core@0.8.2
|
|
10
|
+
|
|
11
|
+
## 0.8.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 44e3ff4: feat: enhance CLI filtering with type and directory filters
|
|
16
|
+
|
|
17
|
+
- Add --types filter to filter by PikkuEventTypes (http, channel, queue, scheduler, rpc, mcp)
|
|
18
|
+
- Add --directories filter to filter by file paths/directories
|
|
19
|
+
- All filters (tags, types, directories) now work together with AND logic
|
|
20
|
+
- Add comprehensive logging interface to inspector package
|
|
21
|
+
- Add comprehensive test suite for matchesFilters function
|
|
22
|
+
- Support cross-platform path handling
|
|
23
|
+
|
|
24
|
+
- 7c592b8: feat: support for required services and improved service configuration
|
|
25
|
+
|
|
26
|
+
This release includes several enhancements to service management and configuration:
|
|
27
|
+
|
|
28
|
+
- Added support for required services configuration
|
|
29
|
+
- Improved service discovery and registration
|
|
30
|
+
- Added typed RPC clients for service communication
|
|
31
|
+
- Updated middleware to run per function
|
|
32
|
+
|
|
33
|
+
- Updated dependencies [3261090]
|
|
34
|
+
- Updated dependencies [44e3ff4]
|
|
35
|
+
- Updated dependencies [7c592b8]
|
|
36
|
+
- Updated dependencies [30a082f]
|
|
37
|
+
- @pikku/core@0.8.1
|
|
38
|
+
- @pikku/inspector@0.8.1
|
|
39
|
+
|
|
3
40
|
## 0.8.0
|
|
4
41
|
|
|
5
42
|
### Major Features
|
package/bin/pikku-all.ts
CHANGED
|
@@ -15,58 +15,60 @@ import { pikkuChannels } from '../src/events/channels/pikku-command-channels.js'
|
|
|
15
15
|
import { inspectorGlob } from '../src/inspector-glob.js'
|
|
16
16
|
import chokidar from 'chokidar'
|
|
17
17
|
import { pikkuFunctions } from '../src/events/functions/pikku-command-functions.js'
|
|
18
|
+
import { pikkuServices } from '../src/events/functions/pikku-command-services.js'
|
|
18
19
|
import { pikkuRPC } from '../src/events/rpc/pikku-command-rpc.js'
|
|
19
20
|
import { pikkuRPCMap } from '../src/events/rpc/pikku-command-rpc-map.js'
|
|
20
|
-
import { PikkuEventTypes } from '@pikku/core'
|
|
21
21
|
import { pikkuQueue } from '../src/events/queue/pikku-command-queue.js'
|
|
22
22
|
import { pikkuQueueMap } from '../src/events/queue/pikku-command-queue-map.js'
|
|
23
23
|
import { pikkuFetch } from '../src/events/fetch/index.js'
|
|
24
|
+
import { pikkuRPCClient } from '../src/events/rpc/pikku-command-rpc-client.js'
|
|
24
25
|
import { pikkuWebSocketTyped } from '../src/events/channels/pikku-command-websocket-typed.js'
|
|
25
|
-
import { pikkuNext } from '../src/events/http/pikku-command-nextjs.js'
|
|
26
26
|
import { pikkuOpenAPI } from '../src/events/http/pikku-command-openapi.js'
|
|
27
27
|
import { pikkuMCP } from '../src/events/mcp/pikku-command-mcp.js'
|
|
28
28
|
import { pikkuQueueService } from '../src/events/queue/pikku-command-queue-service.js'
|
|
29
29
|
import { pikkuScheduler } from '../src/events/scheduler/pikku-command-scheduler.js'
|
|
30
30
|
import { pikkuSchemas } from '../src/schemas.js'
|
|
31
31
|
import { pikkuMCPJSON } from '../src/events/mcp/pikku-command-mcp-json.js'
|
|
32
|
+
import { pikkuNext } from '../src/runtimes/nextjs/pikku-command-nextjs.js'
|
|
32
33
|
|
|
33
|
-
const
|
|
34
|
+
const generateBootstrapFile = async (
|
|
34
35
|
logger: CLILogger,
|
|
35
36
|
cliConfig: PikkuCLIConfig,
|
|
36
|
-
|
|
37
|
+
bootstrapFile: string,
|
|
38
|
+
specificImports: string[],
|
|
39
|
+
schemas?: boolean
|
|
37
40
|
) => {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
> & { all: { meta: string[]; events: string[] } } = {
|
|
41
|
-
all: { meta: [], events: [] },
|
|
42
|
-
}
|
|
41
|
+
// Common imports that every bootstrap file needs
|
|
42
|
+
const commonImports = [cliConfig.functionsMetaFile, cliConfig.functionsFile]
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
addTo?: PikkuEventTypes[]
|
|
48
|
-
) => {
|
|
49
|
-
if (type === 'meta') {
|
|
50
|
-
boostrapImports.all.meta.push(from)
|
|
51
|
-
} else {
|
|
52
|
-
boostrapImports.all.events.push(from)
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
for (const transport of Object.keys(PikkuEventTypes)) {
|
|
56
|
-
if (!addTo || addTo?.includes(transport as PikkuEventTypes)) {
|
|
57
|
-
boostrapImports[transport] = boostrapImports[transport] || {
|
|
58
|
-
meta: [],
|
|
59
|
-
events: [],
|
|
60
|
-
}
|
|
61
|
-
if (type === 'meta') {
|
|
62
|
-
boostrapImports[transport].meta.push(from)
|
|
63
|
-
} else {
|
|
64
|
-
boostrapImports[transport].events.push(from)
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
44
|
+
// Add schema if it exists
|
|
45
|
+
if (schemas) {
|
|
46
|
+
commonImports.push(`${cliConfig.schemaDirectory}/register.gen.ts`)
|
|
68
47
|
}
|
|
69
48
|
|
|
49
|
+
// Combine common imports with specific imports
|
|
50
|
+
const allImports = [...commonImports, ...specificImports]
|
|
51
|
+
|
|
52
|
+
await writeFileInDir(
|
|
53
|
+
logger,
|
|
54
|
+
bootstrapFile,
|
|
55
|
+
allImports
|
|
56
|
+
.map(
|
|
57
|
+
(to) =>
|
|
58
|
+
`import '${getFileImportRelativePath(bootstrapFile, to, cliConfig.packageMappings)}'`
|
|
59
|
+
)
|
|
60
|
+
.sort((to) => (to.includes('meta') ? -1 : 1)) // Ensure meta files are at the top
|
|
61
|
+
.join('\n')
|
|
62
|
+
)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const runAll = async (
|
|
66
|
+
logger: CLILogger,
|
|
67
|
+
cliConfig: PikkuCLIConfig,
|
|
68
|
+
options: PikkuCLIOptions
|
|
69
|
+
) => {
|
|
70
|
+
const allImports: string[] = []
|
|
71
|
+
|
|
70
72
|
let typesDeclarationFileExists = true
|
|
71
73
|
let visitState = await inspectorGlob(
|
|
72
74
|
logger,
|
|
@@ -96,53 +98,102 @@ const runAll = async (
|
|
|
96
98
|
logger.info(`• No functions found, skipping remaining steps...\x1b[0m`)
|
|
97
99
|
process.exit(1)
|
|
98
100
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
+
|
|
102
|
+
// Base imports for all bootstrap files
|
|
103
|
+
allImports.push(cliConfig.functionsMetaFile, cliConfig.functionsFile)
|
|
104
|
+
|
|
105
|
+
// Generate services map
|
|
106
|
+
await pikkuServices(logger, cliConfig, visitState)
|
|
101
107
|
|
|
102
108
|
await pikkuRPC(logger, cliConfig, visitState)
|
|
103
109
|
await pikkuRPCMap(logger, cliConfig, visitState)
|
|
104
|
-
|
|
110
|
+
await pikkuRPCClient(logger, cliConfig)
|
|
111
|
+
allImports.push(cliConfig.rpcMetaFile)
|
|
105
112
|
|
|
106
113
|
const schemas = await pikkuSchemas(logger, cliConfig, visitState)
|
|
107
114
|
if (schemas) {
|
|
108
|
-
|
|
115
|
+
allImports.push(`${cliConfig.schemaDirectory}/register.gen.ts`)
|
|
109
116
|
}
|
|
110
117
|
|
|
118
|
+
// RPC bootstrap is always generated since RPC is always present
|
|
119
|
+
await generateBootstrapFile(
|
|
120
|
+
logger,
|
|
121
|
+
cliConfig,
|
|
122
|
+
cliConfig.bootstrapFiles.rpc,
|
|
123
|
+
[cliConfig.rpcMetaFile],
|
|
124
|
+
schemas
|
|
125
|
+
)
|
|
126
|
+
|
|
111
127
|
const http = await pikkuHTTP(logger, cliConfig, visitState)
|
|
112
128
|
if (http) {
|
|
113
129
|
await pikkuHTTPMap(logger, cliConfig, visitState)
|
|
114
130
|
await pikkuFetch(logger, cliConfig)
|
|
115
|
-
|
|
116
|
-
|
|
131
|
+
allImports.push(cliConfig.httpRoutesMetaFile, cliConfig.httpRoutesFile)
|
|
132
|
+
|
|
133
|
+
await generateBootstrapFile(
|
|
134
|
+
logger,
|
|
135
|
+
cliConfig,
|
|
136
|
+
cliConfig.bootstrapFiles.http,
|
|
137
|
+
[cliConfig.httpRoutesMetaFile, cliConfig.httpRoutesFile],
|
|
138
|
+
schemas
|
|
139
|
+
)
|
|
117
140
|
}
|
|
118
141
|
|
|
119
|
-
const
|
|
120
|
-
if (
|
|
121
|
-
|
|
122
|
-
|
|
142
|
+
const scheduler = await pikkuScheduler(logger, cliConfig, visitState)
|
|
143
|
+
if (scheduler) {
|
|
144
|
+
allImports.push(cliConfig.schedulersMetaFile, cliConfig.schedulersFile)
|
|
145
|
+
|
|
146
|
+
await generateBootstrapFile(
|
|
147
|
+
logger,
|
|
148
|
+
cliConfig,
|
|
149
|
+
cliConfig.bootstrapFiles.scheduler,
|
|
150
|
+
[cliConfig.schedulersMetaFile, cliConfig.schedulersFile],
|
|
151
|
+
schemas
|
|
152
|
+
)
|
|
123
153
|
}
|
|
124
154
|
|
|
125
155
|
const queues = await pikkuQueue(logger, cliConfig, visitState)
|
|
126
156
|
if (queues) {
|
|
127
157
|
await pikkuQueueMap(logger, cliConfig, visitState)
|
|
128
158
|
await pikkuQueueService(logger, cliConfig)
|
|
129
|
-
|
|
130
|
-
|
|
159
|
+
allImports.push(cliConfig.queueWorkersMetaFile, cliConfig.queueWorkersFile)
|
|
160
|
+
|
|
161
|
+
await generateBootstrapFile(
|
|
162
|
+
logger,
|
|
163
|
+
cliConfig,
|
|
164
|
+
cliConfig.bootstrapFiles.queue,
|
|
165
|
+
[cliConfig.queueWorkersMetaFile, cliConfig.queueWorkersFile],
|
|
166
|
+
schemas
|
|
167
|
+
)
|
|
131
168
|
}
|
|
132
169
|
|
|
133
170
|
const channels = await pikkuChannels(logger, cliConfig, visitState)
|
|
134
171
|
if (channels) {
|
|
135
172
|
await pikkuChannelsMap(logger, cliConfig, visitState)
|
|
136
173
|
await pikkuWebSocketTyped(logger, cliConfig)
|
|
137
|
-
|
|
138
|
-
|
|
174
|
+
allImports.push(cliConfig.channelsMetaFile, cliConfig.channelsFile)
|
|
175
|
+
|
|
176
|
+
await generateBootstrapFile(
|
|
177
|
+
logger,
|
|
178
|
+
cliConfig,
|
|
179
|
+
cliConfig.bootstrapFiles.channel,
|
|
180
|
+
[cliConfig.channelsMetaFile, cliConfig.channelsFile],
|
|
181
|
+
schemas
|
|
182
|
+
)
|
|
139
183
|
}
|
|
140
184
|
|
|
141
185
|
const mcp = await pikkuMCP(logger, cliConfig, visitState)
|
|
142
186
|
if (mcp) {
|
|
143
187
|
await pikkuMCPJSON(logger, cliConfig, visitState)
|
|
144
|
-
|
|
145
|
-
|
|
188
|
+
allImports.push(cliConfig.mcpEndpointsMetaFile, cliConfig.mcpEndpointsFile)
|
|
189
|
+
|
|
190
|
+
await generateBootstrapFile(
|
|
191
|
+
logger,
|
|
192
|
+
cliConfig,
|
|
193
|
+
cliConfig.bootstrapFiles.mcp,
|
|
194
|
+
[cliConfig.mcpEndpointsMetaFile, cliConfig.mcpEndpointsFile],
|
|
195
|
+
schemas
|
|
196
|
+
)
|
|
146
197
|
}
|
|
147
198
|
|
|
148
199
|
if (cliConfig.nextBackendFile || cliConfig.nextHTTPFile) {
|
|
@@ -162,20 +213,18 @@ const runAll = async (
|
|
|
162
213
|
await pikkuOpenAPI(logger, cliConfig, visitState)
|
|
163
214
|
}
|
|
164
215
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
)
|
|
178
|
-
}
|
|
216
|
+
// Generate main bootstrap file (pass all imports directly since this is the main file)
|
|
217
|
+
await writeFileInDir(
|
|
218
|
+
logger,
|
|
219
|
+
cliConfig.bootstrapFile,
|
|
220
|
+
allImports
|
|
221
|
+
.map(
|
|
222
|
+
(to) =>
|
|
223
|
+
`import '${getFileImportRelativePath(cliConfig.bootstrapFile, to, cliConfig.packageMappings)}'`
|
|
224
|
+
)
|
|
225
|
+
.sort((to) => (to.includes('meta') ? -1 : 1)) // Ensure meta files are at the top
|
|
226
|
+
.join('\n')
|
|
227
|
+
)
|
|
179
228
|
}
|
|
180
229
|
|
|
181
230
|
const watch = (
|
|
@@ -238,7 +287,11 @@ export const action = async (options: PikkuCLIOptions): Promise<void> => {
|
|
|
238
287
|
const cliConfig = await getPikkuCLIConfig(
|
|
239
288
|
options.config,
|
|
240
289
|
[],
|
|
241
|
-
|
|
290
|
+
{
|
|
291
|
+
tags: options.tags,
|
|
292
|
+
types: options.types,
|
|
293
|
+
directories: options.directories,
|
|
294
|
+
},
|
|
242
295
|
true
|
|
243
296
|
)
|
|
244
297
|
|
|
@@ -264,6 +317,11 @@ export const all = (program: Command): void => {
|
|
|
264
317
|
)
|
|
265
318
|
.option('-c | --config <string>', 'The path to pikku cli config file')
|
|
266
319
|
.option('-t | --tags <tags...>', 'Which tags to filter by')
|
|
320
|
+
.option(
|
|
321
|
+
'--types <types...>',
|
|
322
|
+
'Which types to filter by (http, channel, queue, scheduler, rpc, mcp)'
|
|
323
|
+
)
|
|
324
|
+
.option('--directories <directories...>', 'Which directories to filter by')
|
|
267
325
|
.option('-w | --watch', 'Whether to watch file changes')
|
|
268
326
|
.action(action)
|
|
269
327
|
}
|
package/bin/pikku-fetch.ts
CHANGED
|
@@ -8,7 +8,11 @@ export const action = async (options: PikkuCLIOptions): Promise<void> => {
|
|
|
8
8
|
const cliConfig = await getPikkuCLIConfig(
|
|
9
9
|
options.config,
|
|
10
10
|
['rootDir', 'schemaDirectory', 'configDir', 'fetchFile'],
|
|
11
|
-
|
|
11
|
+
{
|
|
12
|
+
tags: options.tags,
|
|
13
|
+
types: options.types,
|
|
14
|
+
directories: options.directories,
|
|
15
|
+
},
|
|
12
16
|
true
|
|
13
17
|
)
|
|
14
18
|
await pikkuFetch(logger, cliConfig)
|
package/bin/pikku-nextjs.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Command } from 'commander'
|
|
|
2
2
|
import { CLILogger, PikkuCLIOptions } from '../src/utils.js'
|
|
3
3
|
import { getPikkuCLIConfig } from '../src/pikku-cli-config.js'
|
|
4
4
|
import { inspectorGlob } from '../src/inspector-glob.js'
|
|
5
|
-
import { pikkuNext } from '../src/
|
|
5
|
+
import { pikkuNext } from '../src/runtimes/nextjs/pikku-command-nextjs.js'
|
|
6
6
|
|
|
7
7
|
export const action = async (options: PikkuCLIOptions): Promise<void> => {
|
|
8
8
|
const logger = new CLILogger({ logLogo: true })
|
|
@@ -10,7 +10,11 @@ export const action = async (options: PikkuCLIOptions): Promise<void> => {
|
|
|
10
10
|
const cliConfig = await getPikkuCLIConfig(
|
|
11
11
|
options.config,
|
|
12
12
|
['rootDir', 'schemaDirectory', 'configDir'],
|
|
13
|
-
|
|
13
|
+
{
|
|
14
|
+
tags: options.tags,
|
|
15
|
+
types: options.types,
|
|
16
|
+
directories: options.directories,
|
|
17
|
+
},
|
|
14
18
|
true
|
|
15
19
|
)
|
|
16
20
|
const visitState = await inspectorGlob(
|
package/bin/pikku-openapi.ts
CHANGED
|
@@ -9,7 +9,9 @@ async function action({ config, tags }: PikkuCLIOptions): Promise<void> {
|
|
|
9
9
|
const cliConfig = await getPikkuCLIConfig(
|
|
10
10
|
config,
|
|
11
11
|
['rootDir', 'httpRoutesFile', 'openAPI', 'schemaDirectory', 'tsconfig'],
|
|
12
|
-
|
|
12
|
+
{
|
|
13
|
+
tags: tags || [],
|
|
14
|
+
}
|
|
13
15
|
)
|
|
14
16
|
const visitState = await inspectorGlob(
|
|
15
17
|
logger,
|
|
@@ -9,7 +9,11 @@ export const action = async (options: PikkuCLIOptions): Promise<void> => {
|
|
|
9
9
|
const cliConfig = await getPikkuCLIConfig(
|
|
10
10
|
options.config,
|
|
11
11
|
['rootDir', 'schemaDirectory', 'configDir', 'queueFile'],
|
|
12
|
-
|
|
12
|
+
{
|
|
13
|
+
tags: options.tags,
|
|
14
|
+
types: options.types,
|
|
15
|
+
directories: options.directories,
|
|
16
|
+
},
|
|
13
17
|
true
|
|
14
18
|
)
|
|
15
19
|
await pikkuQueueService(logger, cliConfig)
|
package/bin/pikku-websocket.ts
CHANGED
|
@@ -9,7 +9,11 @@ export const action = async (options: PikkuCLIOptions): Promise<void> => {
|
|
|
9
9
|
const cliConfig = await getPikkuCLIConfig(
|
|
10
10
|
options.config,
|
|
11
11
|
['rootDir', 'schemaDirectory', 'configDir', 'fetchFile'],
|
|
12
|
-
|
|
12
|
+
{
|
|
13
|
+
tags: options.tags,
|
|
14
|
+
types: options.types,
|
|
15
|
+
directories: options.directories,
|
|
16
|
+
},
|
|
13
17
|
true
|
|
14
18
|
)
|
|
15
19
|
await pikkuWebSocketTyped(logger, cliConfig)
|
package/cli.schema.json
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
"$ref": "#/definitions/PikkuCLIConfig",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"definitions": {
|
|
5
|
+
"InspectorFilters": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"directories": {
|
|
9
|
+
"items": {
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
"type": "array"
|
|
13
|
+
},
|
|
14
|
+
"tags": {
|
|
15
|
+
"items": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"type": "array"
|
|
19
|
+
},
|
|
20
|
+
"types": {
|
|
21
|
+
"items": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"type": "array"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"type": "object"
|
|
28
|
+
},
|
|
5
29
|
"OpenAPISpecInfo": {
|
|
6
30
|
"additionalProperties": false,
|
|
7
31
|
"properties": {
|
|
@@ -123,12 +147,40 @@
|
|
|
123
147
|
"bootstrapFile": {
|
|
124
148
|
"type": "string"
|
|
125
149
|
},
|
|
150
|
+
"bootstrapFiles": {
|
|
151
|
+
"additionalProperties": false,
|
|
152
|
+
"properties": {
|
|
153
|
+
"channel": {
|
|
154
|
+
"type": "string"
|
|
155
|
+
},
|
|
156
|
+
"http": {
|
|
157
|
+
"type": "string"
|
|
158
|
+
},
|
|
159
|
+
"mcp": {
|
|
160
|
+
"type": "string"
|
|
161
|
+
},
|
|
162
|
+
"queue": {
|
|
163
|
+
"type": "string"
|
|
164
|
+
},
|
|
165
|
+
"rpc": {
|
|
166
|
+
"type": "string"
|
|
167
|
+
},
|
|
168
|
+
"scheduler": {
|
|
169
|
+
"type": "string"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"required": ["http", "scheduler", "channel", "rpc", "queue", "mcp"],
|
|
173
|
+
"type": "object"
|
|
174
|
+
},
|
|
126
175
|
"channelsFile": {
|
|
127
176
|
"type": "string"
|
|
128
177
|
},
|
|
129
178
|
"channelsMapDeclarationFile": {
|
|
130
179
|
"type": "string"
|
|
131
180
|
},
|
|
181
|
+
"channelsMetaFile": {
|
|
182
|
+
"type": "string"
|
|
183
|
+
},
|
|
132
184
|
"configDir": {
|
|
133
185
|
"type": "string"
|
|
134
186
|
},
|
|
@@ -138,6 +190,39 @@
|
|
|
138
190
|
"fetchFile": {
|
|
139
191
|
"type": "string"
|
|
140
192
|
},
|
|
193
|
+
"filters": {
|
|
194
|
+
"$ref": "#/definitions/InspectorFilters"
|
|
195
|
+
},
|
|
196
|
+
"functionsFile": {
|
|
197
|
+
"type": "string"
|
|
198
|
+
},
|
|
199
|
+
"functionsMetaFile": {
|
|
200
|
+
"type": "string"
|
|
201
|
+
},
|
|
202
|
+
"httpRoutesFile": {
|
|
203
|
+
"type": "string"
|
|
204
|
+
},
|
|
205
|
+
"httpRoutesMapDeclarationFile": {
|
|
206
|
+
"type": "string"
|
|
207
|
+
},
|
|
208
|
+
"httpRoutesMetaFile": {
|
|
209
|
+
"type": "string"
|
|
210
|
+
},
|
|
211
|
+
"mcpEndpointsFile": {
|
|
212
|
+
"type": "string"
|
|
213
|
+
},
|
|
214
|
+
"mcpEndpointsMetaFile": {
|
|
215
|
+
"type": "string"
|
|
216
|
+
},
|
|
217
|
+
"mcpJsonFile": {
|
|
218
|
+
"type": "string"
|
|
219
|
+
},
|
|
220
|
+
"middlewareServices": {
|
|
221
|
+
"items": {
|
|
222
|
+
"type": "string"
|
|
223
|
+
},
|
|
224
|
+
"type": "array"
|
|
225
|
+
},
|
|
141
226
|
"nextBackendFile": {
|
|
142
227
|
"type": "string"
|
|
143
228
|
},
|
|
@@ -166,27 +251,48 @@
|
|
|
166
251
|
},
|
|
167
252
|
"type": "object"
|
|
168
253
|
},
|
|
254
|
+
"queueFile": {
|
|
255
|
+
"type": "string"
|
|
256
|
+
},
|
|
257
|
+
"queueMapDeclarationFile": {
|
|
258
|
+
"type": "string"
|
|
259
|
+
},
|
|
260
|
+
"queueWorkersFile": {
|
|
261
|
+
"type": "string"
|
|
262
|
+
},
|
|
263
|
+
"queueWorkersMetaFile": {
|
|
264
|
+
"type": "string"
|
|
265
|
+
},
|
|
169
266
|
"rootDir": {
|
|
170
267
|
"type": "string"
|
|
171
268
|
},
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
"type": "string"
|
|
175
|
-
},
|
|
176
|
-
"type": "array"
|
|
269
|
+
"rpcFile": {
|
|
270
|
+
"type": "string"
|
|
177
271
|
},
|
|
178
|
-
"
|
|
272
|
+
"rpcMapDeclarationFile": {
|
|
179
273
|
"type": "string"
|
|
180
274
|
},
|
|
181
|
-
"
|
|
275
|
+
"rpcMetaFile": {
|
|
182
276
|
"type": "string"
|
|
183
277
|
},
|
|
184
278
|
"schedulersFile": {
|
|
185
279
|
"type": "string"
|
|
186
280
|
},
|
|
281
|
+
"schedulersMetaFile": {
|
|
282
|
+
"type": "string"
|
|
283
|
+
},
|
|
187
284
|
"schemaDirectory": {
|
|
188
285
|
"type": "string"
|
|
189
286
|
},
|
|
287
|
+
"servicesFile": {
|
|
288
|
+
"type": "string"
|
|
289
|
+
},
|
|
290
|
+
"srcDirectories": {
|
|
291
|
+
"items": {
|
|
292
|
+
"type": "string"
|
|
293
|
+
},
|
|
294
|
+
"type": "array"
|
|
295
|
+
},
|
|
190
296
|
"supportsImportAttributes": {
|
|
191
297
|
"type": "boolean"
|
|
192
298
|
},
|
|
@@ -202,16 +308,31 @@
|
|
|
202
308
|
},
|
|
203
309
|
"required": [
|
|
204
310
|
"bootstrapFile",
|
|
311
|
+
"bootstrapFiles",
|
|
205
312
|
"channelsFile",
|
|
206
313
|
"channelsMapDeclarationFile",
|
|
314
|
+
"channelsMetaFile",
|
|
207
315
|
"configDir",
|
|
316
|
+
"filters",
|
|
317
|
+
"functionsFile",
|
|
318
|
+
"functionsMetaFile",
|
|
319
|
+
"httpRoutesFile",
|
|
320
|
+
"httpRoutesMapDeclarationFile",
|
|
321
|
+
"httpRoutesMetaFile",
|
|
322
|
+
"mcpEndpointsFile",
|
|
323
|
+
"mcpEndpointsMetaFile",
|
|
208
324
|
"packageMappings",
|
|
325
|
+
"queueMapDeclarationFile",
|
|
326
|
+
"queueWorkersFile",
|
|
327
|
+
"queueWorkersMetaFile",
|
|
209
328
|
"rootDir",
|
|
210
|
-
"
|
|
211
|
-
"
|
|
212
|
-
"routesMapDeclarationFile",
|
|
329
|
+
"rpcMapDeclarationFile",
|
|
330
|
+
"rpcMetaFile",
|
|
213
331
|
"schedulersFile",
|
|
332
|
+
"schedulersMetaFile",
|
|
214
333
|
"schemaDirectory",
|
|
334
|
+
"servicesFile",
|
|
335
|
+
"srcDirectories",
|
|
215
336
|
"supportsImportAttributes",
|
|
216
337
|
"tsconfig",
|
|
217
338
|
"typesDeclarationFile"
|