@pikku/cli 0.11.1 → 0.11.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/.pikku/channel/pikku-channel-types.gen.ts +11 -12
- package/.pikku/channel/pikku-channels-map.gen.d.ts +8 -8
- package/.pikku/channel/pikku-channels-meta.gen.ts +1 -1
- package/.pikku/channel/pikku-channels.gen.ts +1 -1
- package/.pikku/cli/pikku-cli-channel.ts +2 -2
- package/.pikku/cli/pikku-cli-client.gen.ts +1 -3
- package/.pikku/cli/pikku-cli-types.gen.ts +3 -3
- package/.pikku/cli/pikku-cli-wirings-meta.gen.json +146 -0
- package/.pikku/cli/pikku-cli-wirings-meta.gen.ts +4 -157
- package/.pikku/cli/pikku-cli-wirings.gen.ts +3 -3
- package/.pikku/cli/pikku-cli.gen.ts +3 -3
- package/.pikku/function/pikku-function-types.gen.ts +49 -63
- package/.pikku/function/pikku-functions-meta.gen.json +988 -0
- package/.pikku/function/pikku-functions-meta.gen.ts +4 -970
- package/.pikku/function/pikku-functions-meta.min.gen.json +212 -0
- package/.pikku/function/pikku-functions-meta.min.gen.ts +4 -209
- package/.pikku/http/pikku-http-types.gen.ts +2 -2
- package/.pikku/http/pikku-http-wirings-map.gen.d.ts +8 -8
- package/.pikku/http/pikku-http-wirings-meta.gen.ts +1 -1
- package/.pikku/http/pikku-http-wirings.gen.ts +1 -1
- package/.pikku/mcp/pikku-mcp-types.gen.ts +13 -13
- package/.pikku/mcp/pikku-mcp-wirings-meta.gen.json +5 -0
- package/.pikku/mcp/pikku-mcp-wirings-meta.gen.ts +6 -4
- package/.pikku/mcp/pikku-mcp-wirings.gen.ts +1 -1
- package/.pikku/pikku-bootstrap.gen.ts +1 -4
- package/.pikku/pikku-services.gen.ts +4 -6
- package/.pikku/pikku-types.gen.ts +1 -1
- package/.pikku/pikku-websocket.gen.ts +1 -1
- package/.pikku/queue/pikku-queue-types.gen.ts +2 -2
- package/.pikku/queue/pikku-queue-workers-wirings-map.gen.d.ts +8 -8
- package/.pikku/queue/pikku-queue-workers-wirings-meta.gen.json +1 -0
- package/.pikku/queue/pikku-queue-workers-wirings-meta.gen.ts +5 -7
- package/.pikku/queue/pikku-queue-workers-wirings.gen.ts +1 -1
- package/.pikku/rpc/pikku-remote-rpc-workers.gen.ts +2 -2
- package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +8 -8
- package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +34 -33
- package/.pikku/scheduler/pikku-scheduler-types.gen.ts +2 -2
- package/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.json +1 -0
- package/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.ts +5 -2
- package/.pikku/scheduler/pikku-schedulers-wirings.gen.ts +1 -1
- package/.pikku/schemas/register.gen.ts +25 -25
- package/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
- package/.pikku/services/config.gen.json +99 -0
- package/.pikku/services/getInspectorState.gen.json +10 -0
- package/.pikku/services/jwt.gen.json +13 -0
- package/.pikku/services/logger.gen.json +25 -0
- package/.pikku/services/queueService.gen.json +14 -0
- package/.pikku/services/schedulerService.gen.json +17 -0
- package/.pikku/services/schema.gen.json +14 -0
- package/.pikku/services/variables.gen.json +13 -0
- package/.pikku/services/workflowService.gen.json +31 -0
- package/.pikku/workflow/pikku-workflow-map.gen.d.ts +8 -8
- package/.pikku/workflow/pikku-workflow-types.gen.ts +36 -31
- package/.pikku/workflow/pikku-workflow-wirings-meta.gen.json +1 -0
- package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +5 -2
- package/.pikku/workflow/pikku-workflow-wirings.gen.ts +6 -2
- package/CHANGELOG.md +21 -0
- package/bin/pikku.ts +6 -32
- package/build.sh +53 -31
- package/cli.schema.json +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +6 -7
- package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
- package/dist/.pikku/channel/pikku-channels-meta.gen.js +1 -1
- package/dist/.pikku/channel/pikku-channels.gen.d.ts +1 -1
- package/dist/.pikku/channel/pikku-channels.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-channel.js +2 -2
- package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-client.gen.js +1 -3
- package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +3 -3
- package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +3 -157
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.json +146 -0
- package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +2 -2
- package/dist/.pikku/cli/pikku-cli-wirings.gen.js +2 -2
- package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli.gen.js +3 -3
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +29 -79
- package/dist/.pikku/function/pikku-function-types.gen.js +19 -15
- package/dist/.pikku/function/pikku-functions-meta.gen.js +3 -969
- package/dist/.pikku/function/pikku-functions-meta.gen.json +988 -0
- package/dist/.pikku/function/pikku-functions-meta.min.gen.js +3 -208
- package/dist/.pikku/function/pikku-functions-meta.min.gen.json +212 -0
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +2 -2
- package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
- package/dist/.pikku/http/pikku-http-wirings-meta.gen.js +1 -1
- package/dist/.pikku/http/pikku-http-wirings.gen.d.ts +1 -1
- package/dist/.pikku/http/pikku-http-wirings.gen.js +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +13 -13
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
- package/dist/.pikku/mcp/pikku-mcp-wirings-meta.gen.js +5 -4
- package/dist/.pikku/mcp/pikku-mcp-wirings-meta.gen.json +5 -0
- package/dist/.pikku/mcp/pikku-mcp-wirings.gen.d.ts +1 -1
- package/dist/.pikku/mcp/pikku-mcp-wirings.gen.js +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -4
- package/dist/.pikku/pikku-bootstrap.gen.js +1 -4
- package/dist/.pikku/pikku-services.gen.d.ts +3 -6
- package/dist/.pikku/pikku-services.gen.js +2 -5
- package/dist/.pikku/pikku-types.gen.d.ts +1 -1
- package/dist/.pikku/pikku-types.gen.js +1 -1
- package/dist/.pikku/pikku-websocket.gen.d.ts +1 -1
- package/dist/.pikku/pikku-websocket.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +2 -2
- package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +3 -7
- package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.json +1 -0
- package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-remote-rpc-workers.gen.d.ts +6 -9
- package/dist/.pikku/rpc/pikku-remote-rpc-workers.gen.js +2 -2
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +2 -2
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
- package/dist/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.js +3 -2
- package/dist/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.json +1 -0
- package/dist/.pikku/scheduler/pikku-schedulers-wirings.gen.d.ts +1 -1
- package/dist/.pikku/scheduler/pikku-schedulers-wirings.gen.js +1 -1
- package/dist/.pikku/schemas/register.gen.js +15 -15
- package/dist/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +29 -25
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +22 -8
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +3 -2
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.json +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +6 -2
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +6 -3
- package/dist/bin/pikku.js +5 -26
- package/dist/src/cli.wiring.js +4 -4
- package/dist/src/functions/commands/all.js +82 -42
- package/dist/src/functions/commands/bootstrap.js +22 -10
- package/dist/src/functions/commands/watch.js +6 -3
- package/dist/src/functions/runtimes/nextjs/pikku-command-nextjs.js +12 -7
- package/dist/src/functions/runtimes/nextjs/serialize-nextjs-backend-wrapper.d.ts +1 -1
- package/dist/src/functions/runtimes/nextjs/serialize-nextjs-backend-wrapper.js +42 -4
- package/dist/src/functions/runtimes/nextjs/serialize-nextjs-http-wrapper.d.ts +1 -1
- package/dist/src/functions/runtimes/nextjs/serialize-nextjs-http-wrapper.js +40 -2
- package/dist/src/functions/wirings/channels/pikku-channels.js +9 -2
- package/dist/src/functions/wirings/channels/serialize-channel-types.js +10 -11
- package/dist/src/functions/wirings/cli/pikku-command-cli-entry.js +4 -4
- package/dist/src/functions/wirings/cli/pikku-command-cli-types.js +1 -1
- package/dist/src/functions/wirings/cli/pikku-command-cli.js +9 -3
- package/dist/src/functions/wirings/cli/serialize-channel-cli.js +1 -1
- package/dist/src/functions/wirings/cli/serialize-cli-types.js +2 -2
- package/dist/src/functions/wirings/cli/serialize-local-cli-bootstrap.d.ts +1 -1
- package/dist/src/functions/wirings/cli/serialize-local-cli-bootstrap.js +4 -4
- package/dist/src/functions/wirings/functions/pikku-command-function-types-split.js +4 -4
- package/dist/src/functions/wirings/functions/pikku-command-functions.js +15 -5
- package/dist/src/functions/wirings/functions/pikku-command-services.d.ts +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-services.js +23 -23
- package/dist/src/functions/wirings/functions/schemas.js +1 -1
- package/dist/src/functions/wirings/functions/serialize-function-types.d.ts +1 -1
- package/dist/src/functions/wirings/functions/serialize-function-types.js +50 -64
- package/dist/src/functions/wirings/http/openapi-spec-generator.js +4 -4
- package/dist/src/functions/wirings/http/pikku-http-routes.js +9 -2
- package/dist/src/functions/wirings/http/serialize-http-types.js +1 -1
- package/dist/src/functions/wirings/mcp/pikku-command-mcp.js +18 -4
- package/dist/src/functions/wirings/mcp/serialize-mcp-types.js +12 -12
- package/dist/src/functions/wirings/middleware/pikku-command-middleware.js +26 -2
- package/dist/src/functions/wirings/middleware/serialize-middleware-groups-meta.d.ts +5 -2
- package/dist/src/functions/wirings/middleware/serialize-middleware-groups-meta.js +5 -13
- package/dist/src/functions/wirings/queue/pikku-command-queue.js +9 -3
- package/dist/src/functions/wirings/queue/pikku-queue.js +9 -3
- package/dist/src/functions/wirings/queue/serialize-queue-meta.d.ts +2 -1
- package/dist/src/functions/wirings/queue/serialize-queue-meta.js +10 -1
- package/dist/src/functions/wirings/queue/serialize-queue-types.js +1 -1
- package/dist/src/functions/wirings/rpc/pikku-command-rpc.js +9 -2
- package/dist/src/functions/wirings/rpc/serialize-public-rpc.js +11 -4
- package/dist/src/functions/wirings/rpc/serialize-remote-rpc.js +1 -1
- package/dist/src/functions/wirings/rpc/serialize-rpc-wrapper.js +3 -3
- package/dist/src/functions/wirings/scheduler/pikku-command-scheduler.js +6 -3
- package/dist/src/functions/wirings/scheduler/serialize-scheduler-meta.d.ts +2 -1
- package/dist/src/functions/wirings/scheduler/serialize-scheduler-meta.js +11 -1
- package/dist/src/functions/wirings/scheduler/serialize-scheduler-types.js +1 -1
- package/dist/src/functions/wirings/services/pikku-command-service-metadata.d.ts +1 -0
- package/dist/src/functions/wirings/services/pikku-command-service-metadata.js +22 -0
- package/dist/src/functions/wirings/workflow/pikku-command-workflow-types.js +3 -1
- package/dist/src/functions/wirings/workflow/pikku-command-workflow.js +12 -8
- package/dist/src/functions/wirings/workflow/serialize-workflow-meta.d.ts +2 -1
- package/dist/src/functions/wirings/workflow/serialize-workflow-meta.js +11 -1
- package/dist/src/functions/wirings/workflow/serialize-workflow-types.d.ts +1 -1
- package/dist/src/functions/wirings/workflow/serialize-workflow-types.js +36 -31
- package/dist/src/functions/wirings/workflow/serialize-workflow-wirings.d.ts +8 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-wirings.js +30 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-workers.js +2 -2
- package/dist/src/middleware/log-command-info-and-time.d.ts +2 -2
- package/dist/src/middleware/log-command-info-and-time.js +1 -4
- package/dist/src/services/cli-logger-forwarder.service.js +1 -1
- package/dist/src/services.d.ts +2 -7
- package/dist/src/services.js +14 -12
- package/dist/src/utils/check-required-types.d.ts +2 -2
- package/dist/src/utils/check-required-types.js +2 -3
- package/dist/src/utils/pikku-cli-config.js +35 -2
- package/dist/src/utils/pikku-files-and-methods.d.ts +2 -2
- package/dist/src/utils/pikku-files-and-methods.js +4 -4
- package/dist/src/utils/schema-generator.d.ts +1 -1
- package/dist/src/utils/schema-generator.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -8
- package/src/cli.wiring.ts +4 -4
- package/src/functions/commands/all.ts +94 -45
- package/src/functions/commands/bootstrap.ts +25 -10
- package/src/functions/commands/watch.ts +6 -3
- package/src/functions/runtimes/nextjs/pikku-command-nextjs.ts +26 -5
- package/src/functions/runtimes/nextjs/serialize-nextjs-backend-wrapper.ts +43 -4
- package/src/functions/runtimes/nextjs/serialize-nextjs-http-wrapper.ts +40 -1
- package/src/functions/wirings/channels/pikku-channels.ts +27 -3
- package/src/functions/wirings/channels/serialize-channel-types.ts +10 -11
- package/src/functions/wirings/cli/pikku-command-cli-entry.ts +4 -4
- package/src/functions/wirings/cli/pikku-command-cli-types.ts +1 -1
- package/src/functions/wirings/cli/pikku-command-cli.ts +26 -3
- package/src/functions/wirings/cli/serialize-channel-cli.ts +1 -1
- package/src/functions/wirings/cli/serialize-cli-types.ts +2 -2
- package/src/functions/wirings/cli/serialize-local-cli-bootstrap.ts +5 -5
- package/src/functions/wirings/functions/pikku-command-function-types-split.ts +6 -6
- package/src/functions/wirings/functions/pikku-command-functions.ts +39 -4
- package/src/functions/wirings/functions/pikku-command-services.ts +25 -25
- package/src/functions/wirings/functions/schemas.ts +2 -2
- package/src/functions/wirings/functions/serialize-function-types.ts +51 -65
- package/src/functions/wirings/http/openapi-spec-generator.ts +14 -5
- package/src/functions/wirings/http/pikku-http-routes.ts +28 -2
- package/src/functions/wirings/http/serialize-http-types.ts +1 -1
- package/src/functions/wirings/mcp/pikku-command-mcp.ts +30 -4
- package/src/functions/wirings/mcp/serialize-mcp-types.ts +12 -12
- package/src/functions/wirings/middleware/pikku-command-middleware.ts +35 -2
- package/src/functions/wirings/middleware/serialize-middleware-groups-meta.ts +4 -19
- package/src/functions/wirings/permissions/pikku-command-permissions.ts +2 -2
- package/src/functions/wirings/queue/pikku-command-queue.ts +27 -2
- package/src/functions/wirings/queue/pikku-queue.ts +27 -2
- package/src/functions/wirings/queue/serialize-queue-meta.ts +15 -1
- package/src/functions/wirings/queue/serialize-queue-types.ts +1 -1
- package/src/functions/wirings/rpc/pikku-command-rpc.ts +25 -2
- package/src/functions/wirings/rpc/serialize-public-rpc.ts +11 -4
- package/src/functions/wirings/rpc/serialize-remote-rpc.ts +1 -1
- package/src/functions/wirings/rpc/serialize-rpc-wrapper.ts +3 -3
- package/src/functions/wirings/scheduler/pikku-command-scheduler.ts +30 -4
- package/src/functions/wirings/scheduler/serialize-scheduler-meta.ts +20 -1
- package/src/functions/wirings/scheduler/serialize-scheduler-types.ts +1 -1
- package/src/functions/wirings/services/pikku-command-service-metadata.ts +25 -0
- package/src/functions/wirings/workflow/pikku-command-workflow-types.ts +8 -1
- package/src/functions/wirings/workflow/pikku-command-workflow.ts +36 -8
- package/src/functions/wirings/workflow/serialize-workflow-meta.ts +18 -1
- package/src/functions/wirings/workflow/serialize-workflow-types.ts +39 -31
- package/src/functions/wirings/workflow/serialize-workflow-wirings.ts +47 -0
- package/src/functions/wirings/workflow/serialize-workflow-workers.ts +2 -2
- package/src/middleware/log-command-info-and-time.ts +3 -6
- package/src/services/cli-logger-forwarder.service.ts +1 -1
- package/src/services.ts +15 -15
- package/src/utils/check-required-types.ts +4 -7
- package/src/utils/pikku-cli-config.ts +69 -2
- package/src/utils/pikku-files-and-methods.ts +10 -13
- package/src/utils/schema-generator.ts +2 -2
- package/types/application-types.d.ts +1 -1
- package/types/config.d.ts +12 -1
- package/.pikku/function/pikku-functions.gen.ts +0 -84
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +0 -47
- package/dist/.pikku/function/pikku-functions.gen.d.ts +0 -1
- package/dist/.pikku/function/pikku-functions.gen.js +0 -83
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +0 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +0 -47
- package/dist/.pikku/schemas/schemas/PikkuRemoteInternalRPCInput.schema.json +0 -1
|
@@ -22,7 +22,7 @@ export const pikkuWorkflowWorker = pikkuSessionlessFunc<
|
|
|
22
22
|
WorkflowStepInput,
|
|
23
23
|
void
|
|
24
24
|
>({
|
|
25
|
-
func: async ({ workflowService
|
|
25
|
+
func: async ({ workflowService }, { runId, stepName, rpcName, data }, { rpc }) => {
|
|
26
26
|
await workflowService!.executeWorkflowStep(runId, stepName, rpcName, data, rpc)
|
|
27
27
|
}
|
|
28
28
|
})
|
|
@@ -31,7 +31,7 @@ export const pikkuWorkflowOrchestrator = pikkuSessionlessFunc<
|
|
|
31
31
|
{ runId: string },
|
|
32
32
|
void
|
|
33
33
|
>({
|
|
34
|
-
func: async ({ workflowService,
|
|
34
|
+
func: async ({ workflowService }, { runId }, { rpc }) => {
|
|
35
35
|
await workflowService!.orchestrateWorkflow(runId, rpc)
|
|
36
36
|
}
|
|
37
37
|
})
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Services } from '../../types/application-types.js'
|
|
2
|
-
import type {
|
|
2
|
+
import type { PikkuWire } from '@pikku/core'
|
|
3
3
|
|
|
4
4
|
// Middleware type for CLI
|
|
5
5
|
type PikkuMiddleware = (
|
|
6
6
|
services: Services,
|
|
7
|
-
|
|
7
|
+
wire: PikkuWire,
|
|
8
8
|
next: () => Promise<void>
|
|
9
9
|
) => Promise<void>
|
|
10
10
|
|
|
@@ -21,15 +21,12 @@ export const logCommandInfoAndTime = ({
|
|
|
21
21
|
commandStart,
|
|
22
22
|
commandEnd,
|
|
23
23
|
}: LogCommandInfoOptions): PikkuMiddleware => {
|
|
24
|
-
return async ({ logger },
|
|
25
|
-
// Log start (debug level - only shows with --verbose)
|
|
24
|
+
return async ({ logger }, _wire, next) => {
|
|
26
25
|
const start = Date.now()
|
|
27
26
|
logger.debug(`• ${commandStart}...`)
|
|
28
27
|
|
|
29
|
-
// Execute the function
|
|
30
28
|
await next()
|
|
31
29
|
|
|
32
|
-
// Log completion (debug level - only shows with --verbose)
|
|
33
30
|
logger.debug({
|
|
34
31
|
type: 'success',
|
|
35
32
|
message: `✓ ${commandEnd} in ${Date.now() - start}ms.`,
|
|
@@ -47,7 +47,7 @@ export class CLILoggerForwarder implements Logger {
|
|
|
47
47
|
let message: string
|
|
48
48
|
|
|
49
49
|
if (messageOrObj instanceof Error) {
|
|
50
|
-
this.logger.error(messageOrObj)
|
|
50
|
+
this.logger.error(messageOrObj.toString())
|
|
51
51
|
message = messageOrObj.message
|
|
52
52
|
} else if (typeof messageOrObj === 'object') {
|
|
53
53
|
if (
|
package/src/services.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type {
|
|
|
6
6
|
} from '../types/application-types.js'
|
|
7
7
|
import {
|
|
8
8
|
CreateConfig,
|
|
9
|
-
|
|
9
|
+
CreateWireServices,
|
|
10
10
|
CreateSingletonServices,
|
|
11
11
|
} from '@pikku/core'
|
|
12
12
|
import { pikkuCLIRender } from '@pikku/core/cli'
|
|
@@ -103,17 +103,17 @@ export const defaultCLIRenderer = pikkuCLIRender<
|
|
|
103
103
|
}
|
|
104
104
|
})
|
|
105
105
|
|
|
106
|
-
/**
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
export const clientCLIRenderer = pikkuCLIRender<ForwardedLogMessage>(
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
)
|
|
106
|
+
// /**
|
|
107
|
+
// * Client-safe CLI renderer that outputs to console (no service dependencies)
|
|
108
|
+
// * This renderer can be used in CLI-over-channel clients
|
|
109
|
+
// */
|
|
110
|
+
// export const clientCLIRenderer = pikkuCLIRender<ForwardedLogMessage>(
|
|
111
|
+
// ({ logger }, data) => {
|
|
112
|
+
// if (data) {
|
|
113
|
+
// logger[data.level]?.({ message: data.message, type: data.type } as any)
|
|
114
|
+
// }
|
|
115
|
+
// }
|
|
116
|
+
// )
|
|
117
117
|
|
|
118
118
|
export const createConfig: CreateConfig<Config, [PikkuCLIConfig]> = async (
|
|
119
119
|
_variablesService,
|
|
@@ -221,7 +221,7 @@ export const createSingletonServices: CreateSingletonServices<
|
|
|
221
221
|
type: 'CoreUserSession',
|
|
222
222
|
typePath: corePackagePath,
|
|
223
223
|
},
|
|
224
|
-
|
|
224
|
+
wireServicesType: {
|
|
225
225
|
file: corePackagePath,
|
|
226
226
|
variable: 'CoreServices',
|
|
227
227
|
type: 'CoreServices',
|
|
@@ -262,7 +262,7 @@ export const createSingletonServices: CreateSingletonServices<
|
|
|
262
262
|
configFileType: config.configFile,
|
|
263
263
|
userSessionType: config.userSessionType,
|
|
264
264
|
singletonServicesFactoryType: config.singletonServicesFactoryType,
|
|
265
|
-
|
|
265
|
+
wireServicesFactoryType: config.wireServicesFactoryType,
|
|
266
266
|
},
|
|
267
267
|
})
|
|
268
268
|
|
|
@@ -300,7 +300,7 @@ export const createSingletonServices: CreateSingletonServices<
|
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
export const
|
|
303
|
+
export const createWireServices: CreateWireServices<
|
|
304
304
|
SingletonServices,
|
|
305
305
|
Services,
|
|
306
306
|
UserSession
|
|
@@ -2,11 +2,11 @@ import { FilesAndMethodsErrors } from '@pikku/inspector'
|
|
|
2
2
|
|
|
3
3
|
export type RequiredTypes = Partial<{
|
|
4
4
|
config: boolean
|
|
5
|
-
|
|
5
|
+
wireServiceType: boolean
|
|
6
6
|
singletonServicesType: boolean
|
|
7
7
|
userSessionType: boolean
|
|
8
8
|
singletonServicesFactory: boolean
|
|
9
|
-
|
|
9
|
+
wireServicesFactory: boolean
|
|
10
10
|
}>
|
|
11
11
|
|
|
12
12
|
export const checkRequiredTypes = (
|
|
@@ -31,7 +31,7 @@ export const checkRequiredTypes = (
|
|
|
31
31
|
return false
|
|
32
32
|
}
|
|
33
33
|
if (requires.config && message.includes('CoreConfig')) return true
|
|
34
|
-
if (requires.
|
|
34
|
+
if (requires.wireServiceType && message.includes('CoreServices'))
|
|
35
35
|
return true
|
|
36
36
|
if (
|
|
37
37
|
requires.singletonServicesType &&
|
|
@@ -45,10 +45,7 @@ export const checkRequiredTypes = (
|
|
|
45
45
|
message.includes('CreateSingletonServices')
|
|
46
46
|
)
|
|
47
47
|
return true
|
|
48
|
-
if (
|
|
49
|
-
requires.sessionServicesFactory &&
|
|
50
|
-
message.includes('CreateSessionServices')
|
|
51
|
-
)
|
|
48
|
+
if (requires.wireServicesFactory && message.includes('CreateWireServices'))
|
|
52
49
|
return true
|
|
53
50
|
return false
|
|
54
51
|
})
|
|
@@ -73,7 +73,7 @@ const _getPikkuCLIConfig = async (
|
|
|
73
73
|
],
|
|
74
74
|
schema: {
|
|
75
75
|
additionalProperties: false,
|
|
76
|
-
supportsImportAttributes:
|
|
76
|
+
supportsImportAttributes: true,
|
|
77
77
|
...extendedConfig.schema,
|
|
78
78
|
...config.schema,
|
|
79
79
|
},
|
|
@@ -94,7 +94,7 @@ const _getPikkuCLIConfig = async (
|
|
|
94
94
|
],
|
|
95
95
|
schema: {
|
|
96
96
|
additionalProperties: false,
|
|
97
|
-
supportsImportAttributes:
|
|
97
|
+
supportsImportAttributes: true,
|
|
98
98
|
...config.schema,
|
|
99
99
|
},
|
|
100
100
|
}
|
|
@@ -128,12 +128,24 @@ const _getPikkuCLIConfig = async (
|
|
|
128
128
|
'pikku-functions-meta.gen.ts'
|
|
129
129
|
)
|
|
130
130
|
}
|
|
131
|
+
if (!result.functionsMetaJsonFile) {
|
|
132
|
+
result.functionsMetaJsonFile = join(
|
|
133
|
+
functionDir,
|
|
134
|
+
'pikku-functions-meta.gen.json'
|
|
135
|
+
)
|
|
136
|
+
}
|
|
131
137
|
if (!result.functionsMetaMinFile) {
|
|
132
138
|
result.functionsMetaMinFile = join(
|
|
133
139
|
functionDir,
|
|
134
140
|
'pikku-functions-meta.min.gen.ts'
|
|
135
141
|
)
|
|
136
142
|
}
|
|
143
|
+
if (!result.functionsMetaMinJsonFile) {
|
|
144
|
+
result.functionsMetaMinJsonFile = join(
|
|
145
|
+
functionDir,
|
|
146
|
+
'pikku-functions-meta.min.gen.json'
|
|
147
|
+
)
|
|
148
|
+
}
|
|
137
149
|
if (!result.functionTypesFile) {
|
|
138
150
|
result.functionTypesFile = join(
|
|
139
151
|
functionDir,
|
|
@@ -154,6 +166,12 @@ const _getPikkuCLIConfig = async (
|
|
|
154
166
|
'pikku-http-wirings-meta.gen.ts'
|
|
155
167
|
)
|
|
156
168
|
}
|
|
169
|
+
if (!result.httpWiringMetaJsonFile) {
|
|
170
|
+
result.httpWiringMetaJsonFile = join(
|
|
171
|
+
httpDir,
|
|
172
|
+
'pikku-http-wirings-meta.gen.json'
|
|
173
|
+
)
|
|
174
|
+
}
|
|
157
175
|
if (!result.httpMapDeclarationFile) {
|
|
158
176
|
result.httpMapDeclarationFile = join(
|
|
159
177
|
httpDir,
|
|
@@ -174,6 +192,12 @@ const _getPikkuCLIConfig = async (
|
|
|
174
192
|
'pikku-channels-meta.gen.ts'
|
|
175
193
|
)
|
|
176
194
|
}
|
|
195
|
+
if (!result.channelsWiringMetaJsonFile) {
|
|
196
|
+
result.channelsWiringMetaJsonFile = join(
|
|
197
|
+
channelDir,
|
|
198
|
+
'pikku-channels-meta.gen.json'
|
|
199
|
+
)
|
|
200
|
+
}
|
|
177
201
|
if (!result.channelsMapDeclarationFile) {
|
|
178
202
|
result.channelsMapDeclarationFile = join(
|
|
179
203
|
channelDir,
|
|
@@ -192,6 +216,13 @@ const _getPikkuCLIConfig = async (
|
|
|
192
216
|
)
|
|
193
217
|
}
|
|
194
218
|
|
|
219
|
+
if (!result.rpcInternalWiringMetaJsonFile) {
|
|
220
|
+
result.rpcInternalWiringMetaJsonFile = join(
|
|
221
|
+
rpcDir,
|
|
222
|
+
'pikku-rpc-wirings-meta.internal.gen.json'
|
|
223
|
+
)
|
|
224
|
+
}
|
|
225
|
+
|
|
195
226
|
if (!result.rpcInternalMapDeclarationFile) {
|
|
196
227
|
result.rpcInternalMapDeclarationFile = join(
|
|
197
228
|
rpcDir,
|
|
@@ -230,6 +261,12 @@ const _getPikkuCLIConfig = async (
|
|
|
230
261
|
'pikku-schedulers-wirings-meta.gen.ts'
|
|
231
262
|
)
|
|
232
263
|
}
|
|
264
|
+
if (!result.schedulersWiringMetaJsonFile) {
|
|
265
|
+
result.schedulersWiringMetaJsonFile = join(
|
|
266
|
+
schedulerDir,
|
|
267
|
+
'pikku-schedulers-wirings-meta.gen.json'
|
|
268
|
+
)
|
|
269
|
+
}
|
|
233
270
|
if (!result.schedulersTypesFile) {
|
|
234
271
|
result.schedulersTypesFile = join(
|
|
235
272
|
schedulerDir,
|
|
@@ -250,6 +287,12 @@ const _getPikkuCLIConfig = async (
|
|
|
250
287
|
'pikku-queue-workers-wirings-meta.gen.ts'
|
|
251
288
|
)
|
|
252
289
|
}
|
|
290
|
+
if (!result.queueWorkersWiringMetaJsonFile) {
|
|
291
|
+
result.queueWorkersWiringMetaJsonFile = join(
|
|
292
|
+
queueDir,
|
|
293
|
+
'pikku-queue-workers-wirings-meta.gen.json'
|
|
294
|
+
)
|
|
295
|
+
}
|
|
253
296
|
if (!result.queueMapDeclarationFile) {
|
|
254
297
|
result.queueMapDeclarationFile = join(
|
|
255
298
|
queueDir,
|
|
@@ -273,6 +316,12 @@ const _getPikkuCLIConfig = async (
|
|
|
273
316
|
'pikku-workflow-wirings-meta.gen.ts'
|
|
274
317
|
)
|
|
275
318
|
}
|
|
319
|
+
if (!result.workflowsWiringMetaJsonFile) {
|
|
320
|
+
result.workflowsWiringMetaJsonFile = join(
|
|
321
|
+
workflowDir,
|
|
322
|
+
'pikku-workflow-wirings-meta.gen.json'
|
|
323
|
+
)
|
|
324
|
+
}
|
|
276
325
|
if (!result.workflowsWorkersFile) {
|
|
277
326
|
result.workflowsWorkersFile = join(
|
|
278
327
|
workflowDir,
|
|
@@ -307,6 +356,12 @@ const _getPikkuCLIConfig = async (
|
|
|
307
356
|
'pikku-middleware-groups-meta.gen.ts'
|
|
308
357
|
)
|
|
309
358
|
}
|
|
359
|
+
if (!result.middlewareGroupsMetaJsonFile) {
|
|
360
|
+
result.middlewareGroupsMetaJsonFile = join(
|
|
361
|
+
middlewareDir,
|
|
362
|
+
'pikku-middleware-groups-meta.gen.json'
|
|
363
|
+
)
|
|
364
|
+
}
|
|
310
365
|
|
|
311
366
|
// Permissions
|
|
312
367
|
const permissionsDir = join(result.outDir, 'permissions')
|
|
@@ -323,6 +378,12 @@ const _getPikkuCLIConfig = async (
|
|
|
323
378
|
if (!result.mcpWiringsMetaFile) {
|
|
324
379
|
result.mcpWiringsMetaFile = join(mcpDir, 'pikku-mcp-wirings-meta.gen.ts')
|
|
325
380
|
}
|
|
381
|
+
if (!result.mcpWiringsMetaJsonFile) {
|
|
382
|
+
result.mcpWiringsMetaJsonFile = join(
|
|
383
|
+
mcpDir,
|
|
384
|
+
'pikku-mcp-wirings-meta.gen.json'
|
|
385
|
+
)
|
|
386
|
+
}
|
|
326
387
|
if (!result.mcpWiringsFile) {
|
|
327
388
|
result.mcpWiringsFile = join(mcpDir, 'pikku-mcp-wirings.gen.ts')
|
|
328
389
|
}
|
|
@@ -340,6 +401,12 @@ const _getPikkuCLIConfig = async (
|
|
|
340
401
|
if (!result.cliWiringMetaFile) {
|
|
341
402
|
result.cliWiringMetaFile = join(cliDir, 'pikku-cli-wirings-meta.gen.ts')
|
|
342
403
|
}
|
|
404
|
+
if (!result.cliWiringMetaJsonFile) {
|
|
405
|
+
result.cliWiringMetaJsonFile = join(
|
|
406
|
+
cliDir,
|
|
407
|
+
'pikku-cli-wirings-meta.gen.json'
|
|
408
|
+
)
|
|
409
|
+
}
|
|
343
410
|
if (!result.cliBootstrapFile) {
|
|
344
411
|
result.cliBootstrapFile = join(cliDir, 'pikku-cli-bootstrap.gen.ts')
|
|
345
412
|
}
|
|
@@ -14,11 +14,11 @@ interface Meta {
|
|
|
14
14
|
|
|
15
15
|
export type FilesAndMethods = {
|
|
16
16
|
userSessionType: Meta
|
|
17
|
-
|
|
17
|
+
wireServicesType: Meta
|
|
18
18
|
singletonServicesType: Meta
|
|
19
19
|
pikkuConfigFactory: Meta
|
|
20
20
|
singletonServicesFactory: Meta
|
|
21
|
-
|
|
21
|
+
wireServicesFactory: Meta
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
const getMetaTypes = (
|
|
@@ -85,9 +85,9 @@ export const getPikkuFilesAndMethods = async (
|
|
|
85
85
|
): Promise<FilesAndMethods> => {
|
|
86
86
|
const {
|
|
87
87
|
singletonServicesTypeImportMap,
|
|
88
|
-
|
|
88
|
+
wireServicesTypeImportMap,
|
|
89
89
|
userSessionTypeImportMap,
|
|
90
|
-
|
|
90
|
+
wireServicesFactories,
|
|
91
91
|
singletonServicesFactories,
|
|
92
92
|
configFactories,
|
|
93
93
|
} = state
|
|
@@ -96,7 +96,7 @@ export const getPikkuFilesAndMethods = async (
|
|
|
96
96
|
configFileType,
|
|
97
97
|
userSessionType,
|
|
98
98
|
singletonServicesFactoryType,
|
|
99
|
-
|
|
99
|
+
wireServicesFactoryType,
|
|
100
100
|
} = options
|
|
101
101
|
let errors = new Map<string, PathToNameAndType>()
|
|
102
102
|
|
|
@@ -110,10 +110,7 @@ export const getPikkuFilesAndMethods = async (
|
|
|
110
110
|
'CoreSingletonServices',
|
|
111
111
|
singletonServicesTypeImportMap
|
|
112
112
|
),
|
|
113
|
-
|
|
114
|
-
'CoreServices',
|
|
115
|
-
sessionServicesTypeImportMap
|
|
116
|
-
),
|
|
113
|
+
wireServicesType: getMetaTypes('CoreServices', wireServicesTypeImportMap),
|
|
117
114
|
pikkuConfigFactory: getMetaTypes(
|
|
118
115
|
'CoreConfig',
|
|
119
116
|
configFactories,
|
|
@@ -124,10 +121,10 @@ export const getPikkuFilesAndMethods = async (
|
|
|
124
121
|
singletonServicesFactories,
|
|
125
122
|
singletonServicesFactoryType
|
|
126
123
|
),
|
|
127
|
-
|
|
128
|
-
'
|
|
129
|
-
|
|
130
|
-
|
|
124
|
+
wireServicesFactory: getMetaTypes(
|
|
125
|
+
'CreateWireServices',
|
|
126
|
+
wireServicesFactories,
|
|
127
|
+
wireServicesFactoryType
|
|
131
128
|
),
|
|
132
129
|
}
|
|
133
130
|
|
|
@@ -91,8 +91,8 @@ export async function saveSchemas(
|
|
|
91
91
|
schemas: Record<string, JSONValue>,
|
|
92
92
|
typesMap: TypesMap,
|
|
93
93
|
functionsMeta: FunctionsMeta,
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
supportsImportAttributes: boolean,
|
|
95
|
+
additionalTypes?: string[]
|
|
96
96
|
) {
|
|
97
97
|
await writeFileInDir(
|
|
98
98
|
logger,
|
|
@@ -22,6 +22,6 @@ export interface SingletonServices extends CoreSingletonServices<Config> {
|
|
|
22
22
|
) => Promise<InspectorState>
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
export interface Services extends CoreServices<SingletonServices
|
|
25
|
+
export interface Services extends CoreServices<SingletonServices> {}
|
|
26
26
|
|
|
27
27
|
export interface UserSession extends CoreUserSession {}
|
package/types/config.d.ts
CHANGED
|
@@ -13,23 +13,28 @@ export interface PikkuCLICoreOutputFiles {
|
|
|
13
13
|
// Function definitions
|
|
14
14
|
functionsFile: string
|
|
15
15
|
functionsMetaFile: string
|
|
16
|
+
functionsMetaJsonFile: string
|
|
16
17
|
functionsMetaMinFile: string
|
|
18
|
+
functionsMetaMinJsonFile: string
|
|
17
19
|
functionTypesFile: string
|
|
18
20
|
|
|
19
21
|
// HTTP
|
|
20
22
|
httpWiringsFile: string
|
|
21
23
|
httpWiringMetaFile: string
|
|
24
|
+
httpWiringMetaJsonFile: string
|
|
22
25
|
httpMapDeclarationFile: string
|
|
23
26
|
httpTypesFile: string
|
|
24
27
|
|
|
25
28
|
// Channels
|
|
26
29
|
channelsWiringFile: string
|
|
27
30
|
channelsWiringMetaFile: string
|
|
31
|
+
channelsWiringMetaJsonFile: string
|
|
28
32
|
channelsMapDeclarationFile: string
|
|
29
33
|
channelsTypesFile: string
|
|
30
34
|
|
|
31
35
|
// RPC Internal
|
|
32
36
|
rpcInternalWiringMetaFile: string
|
|
37
|
+
rpcInternalWiringMetaJsonFile: string
|
|
33
38
|
rpcInternalMapDeclarationFile: string
|
|
34
39
|
|
|
35
40
|
// RPC Exposed
|
|
@@ -38,17 +43,20 @@ export interface PikkuCLICoreOutputFiles {
|
|
|
38
43
|
// Schedulers
|
|
39
44
|
schedulersWiringFile: string
|
|
40
45
|
schedulersWiringMetaFile: string
|
|
46
|
+
schedulersWiringMetaJsonFile: string
|
|
41
47
|
schedulersTypesFile: string
|
|
42
48
|
|
|
43
49
|
// Queue processors
|
|
44
50
|
queueWorkersWiringFile: string
|
|
45
51
|
queueWorkersWiringMetaFile: string
|
|
52
|
+
queueWorkersWiringMetaJsonFile: string
|
|
46
53
|
queueMapDeclarationFile: string
|
|
47
54
|
queueTypesFile: string
|
|
48
55
|
|
|
49
56
|
// Workflows
|
|
50
57
|
workflowsWiringFile: string
|
|
51
58
|
workflowsWiringMetaFile: string
|
|
59
|
+
workflowsWiringMetaJsonFile: string
|
|
52
60
|
workflowsWorkersFile: string
|
|
53
61
|
workflowMapDeclarationFile: string
|
|
54
62
|
workflowTypesFile: string
|
|
@@ -56,11 +64,13 @@ export interface PikkuCLICoreOutputFiles {
|
|
|
56
64
|
// MCP
|
|
57
65
|
mcpWiringsFile: string
|
|
58
66
|
mcpWiringsMetaFile: string
|
|
67
|
+
mcpWiringsMetaJsonFile: string
|
|
59
68
|
mcpTypesFile: string
|
|
60
69
|
|
|
61
70
|
// CLI
|
|
62
71
|
cliWiringsFile: string
|
|
63
72
|
cliWiringMetaFile: string
|
|
73
|
+
cliWiringMetaJsonFile: string
|
|
64
74
|
cliBootstrapFile: string
|
|
65
75
|
cliTypesFile: string
|
|
66
76
|
|
|
@@ -70,6 +80,7 @@ export interface PikkuCLICoreOutputFiles {
|
|
|
70
80
|
// Middleware
|
|
71
81
|
middlewareFile: string
|
|
72
82
|
middlewareGroupsMetaFile: string
|
|
83
|
+
middlewareGroupsMetaJsonFile: string
|
|
73
84
|
|
|
74
85
|
// Permissions
|
|
75
86
|
permissionsFile: string
|
|
@@ -180,7 +191,7 @@ export type PikkuCLIConfig = {
|
|
|
180
191
|
|
|
181
192
|
userSessionType?: string
|
|
182
193
|
singletonServicesFactoryType?: string
|
|
183
|
-
|
|
194
|
+
wireServicesFactoryType?: string
|
|
184
195
|
|
|
185
196
|
configDir: string
|
|
186
197
|
tsconfig: string
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.1
|
|
3
|
-
*/
|
|
4
|
-
/* Import and register functions used by RPCs */
|
|
5
|
-
import { addFunction } from '@pikku/core'
|
|
6
|
-
import { all } from '../../src/functions/commands/all.js'
|
|
7
|
-
import { pikkuChannels } from '../../src/functions/wirings/channels/pikku-command-channels.js'
|
|
8
|
-
import { pikkuChannelsMap } from '../../src/functions/wirings/channels/pikku-command-channels-map.js'
|
|
9
|
-
import { pikkuChannelTypes } from '../../src/functions/wirings/channels/pikku-command-channel-types.js'
|
|
10
|
-
import { pikkuCLI } from '../../src/functions/wirings/cli/pikku-command-cli.js'
|
|
11
|
-
import { pikkuCLIEntry } from '../../src/functions/wirings/cli/pikku-command-cli-entry.js'
|
|
12
|
-
import { pikkuCLITypes } from '../../src/functions/wirings/cli/pikku-command-cli-types.js'
|
|
13
|
-
import { pikkuFetch } from '../../src/functions/wirings/fetch/index.js'
|
|
14
|
-
import { pikkuFunctions } from '../../src/functions/wirings/functions/pikku-command-functions.js'
|
|
15
|
-
import { pikkuFunctionTypes } from '../../src/functions/wirings/functions/pikku-function-types.js'
|
|
16
|
-
import { pikkuFunctionTypesSplit } from '../../src/functions/wirings/functions/pikku-command-function-types-split.js'
|
|
17
|
-
import { pikkuHTTP } from '../../src/functions/wirings/http/pikku-http-routes.js'
|
|
18
|
-
import { pikkuHTTPMap } from '../../src/functions/wirings/http/pikku-command-http-map.js'
|
|
19
|
-
import { pikkuHTTPTypes } from '../../src/functions/wirings/http/pikku-command-http-types.js'
|
|
20
|
-
import { pikkuMCP } from '../../src/functions/wirings/mcp/pikku-command-mcp.js'
|
|
21
|
-
import { pikkuMCPJSON } from '../../src/functions/wirings/mcp/pikku-command-mcp-json.js'
|
|
22
|
-
import { pikkuMCPTypes } from '../../src/functions/wirings/mcp/pikku-command-mcp-types.js'
|
|
23
|
-
import { pikkuMiddleware } from '../../src/functions/wirings/middleware/pikku-command-middleware.js'
|
|
24
|
-
import { pikkuNext } from '../../src/functions/runtimes/nextjs/pikku-command-nextjs.js'
|
|
25
|
-
import { pikkuOpenAPI } from '../../src/functions/wirings/http/pikku-command-openapi.js'
|
|
26
|
-
import { pikkuPermissions } from '../../src/functions/wirings/permissions/pikku-command-permissions.js'
|
|
27
|
-
import { pikkuQueue } from '../../src/functions/wirings/queue/pikku-queue.js'
|
|
28
|
-
import { pikkuQueueMap } from '../../src/functions/wirings/queue/pikku-queue-map.js'
|
|
29
|
-
import { pikkuQueueService } from '../../src/functions/wirings/queue/pikku-command-queue-service.js'
|
|
30
|
-
import { pikkuQueueTypes } from '../../src/functions/wirings/queue/pikku-command-queue-types.js'
|
|
31
|
-
import { pikkuRemoteRPC } from '../../src/functions/wirings/rpc/pikku-command-remote-rpc.js'
|
|
32
|
-
import { pikkuRPC } from '../../src/functions/wirings/rpc/pikku-command-rpc.js'
|
|
33
|
-
import { pikkuRPCClient } from '../../src/functions/wirings/rpc/pikku-command-rpc-client.js'
|
|
34
|
-
import { pikkuRPCExposedMap } from '../../src/functions/wirings/rpc/pikku-command-rpc-map.js'
|
|
35
|
-
import { pikkuRPCInternalMap } from '../../src/functions/wirings/rpc/pikku-command-rpc-map.js'
|
|
36
|
-
import { pikkuScheduler } from '../../src/functions/wirings/scheduler/pikku-command-scheduler.js'
|
|
37
|
-
import { pikkuSchedulerTypes } from '../../src/functions/wirings/scheduler/pikku-command-scheduler-types.js'
|
|
38
|
-
import { pikkuSchemas } from '../../src/functions/wirings/functions/schemas.js'
|
|
39
|
-
import { pikkuServices } from '../../src/functions/wirings/functions/pikku-command-services.js'
|
|
40
|
-
import { pikkuWebSocketTyped } from '../../src/functions/wirings/channels/pikku-command-websocket-typed.js'
|
|
41
|
-
import { pikkuWorkflow } from '../../src/functions/wirings/workflow/pikku-command-workflow.js'
|
|
42
|
-
import { pikkuWorkflowMap } from '../../src/functions/wirings/workflow/pikku-command-workflow-map.js'
|
|
43
|
-
import { pikkuWorkflowTypes } from '../../src/functions/wirings/workflow/pikku-command-workflow-types.js'
|
|
44
|
-
import { watch } from '../../src/functions/commands/watch.js'
|
|
45
|
-
|
|
46
|
-
addFunction('all', all)
|
|
47
|
-
addFunction('pikkuChannels', pikkuChannels)
|
|
48
|
-
addFunction('pikkuChannelsMap', pikkuChannelsMap)
|
|
49
|
-
addFunction('pikkuChannelTypes', pikkuChannelTypes)
|
|
50
|
-
addFunction('pikkuCLI', pikkuCLI)
|
|
51
|
-
addFunction('pikkuCLIEntry', pikkuCLIEntry)
|
|
52
|
-
addFunction('pikkuCLITypes', pikkuCLITypes)
|
|
53
|
-
addFunction('pikkuFetch', pikkuFetch)
|
|
54
|
-
addFunction('pikkuFunctions', pikkuFunctions)
|
|
55
|
-
addFunction('pikkuFunctionTypes', pikkuFunctionTypes)
|
|
56
|
-
addFunction('pikkuFunctionTypesSplit', pikkuFunctionTypesSplit)
|
|
57
|
-
addFunction('pikkuHTTP', pikkuHTTP)
|
|
58
|
-
addFunction('pikkuHTTPMap', pikkuHTTPMap)
|
|
59
|
-
addFunction('pikkuHTTPTypes', pikkuHTTPTypes)
|
|
60
|
-
addFunction('pikkuMCP', pikkuMCP)
|
|
61
|
-
addFunction('pikkuMCPJSON', pikkuMCPJSON)
|
|
62
|
-
addFunction('pikkuMCPTypes', pikkuMCPTypes)
|
|
63
|
-
addFunction('pikkuMiddleware', pikkuMiddleware)
|
|
64
|
-
addFunction('pikkuNext', pikkuNext)
|
|
65
|
-
addFunction('pikkuOpenAPI', pikkuOpenAPI)
|
|
66
|
-
addFunction('pikkuPermissions', pikkuPermissions)
|
|
67
|
-
addFunction('pikkuQueue', pikkuQueue)
|
|
68
|
-
addFunction('pikkuQueueMap', pikkuQueueMap)
|
|
69
|
-
addFunction('pikkuQueueService', pikkuQueueService)
|
|
70
|
-
addFunction('pikkuQueueTypes', pikkuQueueTypes)
|
|
71
|
-
addFunction('pikkuRemoteRPC', pikkuRemoteRPC)
|
|
72
|
-
addFunction('pikkuRPC', pikkuRPC)
|
|
73
|
-
addFunction('pikkuRPCClient', pikkuRPCClient)
|
|
74
|
-
addFunction('pikkuRPCExposedMap', pikkuRPCExposedMap)
|
|
75
|
-
addFunction('pikkuRPCInternalMap', pikkuRPCInternalMap)
|
|
76
|
-
addFunction('pikkuScheduler', pikkuScheduler)
|
|
77
|
-
addFunction('pikkuSchedulerTypes', pikkuSchedulerTypes)
|
|
78
|
-
addFunction('pikkuSchemas', pikkuSchemas)
|
|
79
|
-
addFunction('pikkuServices', pikkuServices)
|
|
80
|
-
addFunction('pikkuWebSocketTyped', pikkuWebSocketTyped)
|
|
81
|
-
addFunction('pikkuWorkflow', pikkuWorkflow)
|
|
82
|
-
addFunction('pikkuWorkflowMap', pikkuWorkflowMap)
|
|
83
|
-
addFunction('pikkuWorkflowTypes', pikkuWorkflowTypes)
|
|
84
|
-
addFunction('watch', watch)
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.1
|
|
3
|
-
*/
|
|
4
|
-
import { pikkuState } from '@pikku/core'
|
|
5
|
-
pikkuState('rpc', 'meta', {
|
|
6
|
-
"pikkuSchemas": "pikkuSchemas",
|
|
7
|
-
"pikkuFetch": "pikkuFetch",
|
|
8
|
-
"pikkuWebSocketTyped": "pikkuWebSocketTyped",
|
|
9
|
-
"pikkuRPCClient": "pikkuRPCClient",
|
|
10
|
-
"pikkuQueueService": "pikkuQueueService",
|
|
11
|
-
"pikkuOpenAPI": "pikkuOpenAPI",
|
|
12
|
-
"pikkuNext": "pikkuNext",
|
|
13
|
-
"all": "all",
|
|
14
|
-
"bootstrap": "bootstrap",
|
|
15
|
-
"watch": "watch",
|
|
16
|
-
"pikkuChannels": "pikkuChannels",
|
|
17
|
-
"pikkuChannelTypes": "pikkuChannelTypes",
|
|
18
|
-
"pikkuChannelsMap": "pikkuChannelsMap",
|
|
19
|
-
"pikkuCLIEntry": "pikkuCLIEntry",
|
|
20
|
-
"pikkuCLITypes": "pikkuCLITypes",
|
|
21
|
-
"pikkuCLI": "pikkuCLI",
|
|
22
|
-
"pikkuFunctionTypesSplit": "pikkuFunctionTypesSplit",
|
|
23
|
-
"pikkuFunctionTypes": "pikkuFunctionTypes",
|
|
24
|
-
"pikkuFunctions": "pikkuFunctions",
|
|
25
|
-
"pikkuServices": "pikkuServices",
|
|
26
|
-
"pikkuHTTPMap": "pikkuHTTPMap",
|
|
27
|
-
"pikkuHTTP": "pikkuHTTP",
|
|
28
|
-
"pikkuHTTPTypes": "pikkuHTTPTypes",
|
|
29
|
-
"pikkuMCPJSON": "pikkuMCPJSON",
|
|
30
|
-
"pikkuMCPTypes": "pikkuMCPTypes",
|
|
31
|
-
"pikkuMCP": "pikkuMCP",
|
|
32
|
-
"pikkuMiddleware": "pikkuMiddleware",
|
|
33
|
-
"pikkuPermissions": "pikkuPermissions",
|
|
34
|
-
"pikkuQueueMap": "pikkuQueueMap",
|
|
35
|
-
"pikkuQueueTypes": "pikkuQueueTypes",
|
|
36
|
-
"pikkuQueue": "pikkuQueue",
|
|
37
|
-
"pikkuPublicRPC": "pikkuPublicRPC",
|
|
38
|
-
"pikkuRemoteRPC": "pikkuRemoteRPC",
|
|
39
|
-
"pikkuRPCInternalMap": "pikkuRPCInternalMap",
|
|
40
|
-
"pikkuRPCExposedMap": "pikkuRPCExposedMap",
|
|
41
|
-
"pikkuRPC": "pikkuRPC",
|
|
42
|
-
"pikkuSchedulerTypes": "pikkuSchedulerTypes",
|
|
43
|
-
"pikkuScheduler": "pikkuScheduler",
|
|
44
|
-
"pikkuWorkflowMap": "pikkuWorkflowMap",
|
|
45
|
-
"pikkuWorkflowTypes": "pikkuWorkflowTypes",
|
|
46
|
-
"pikkuWorkflow": "pikkuWorkflow"
|
|
47
|
-
})
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|