@pikku/cli 0.11.0 → 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 +9 -9
- 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 +92 -0
- package/.pikku/cli/pikku-cli-client.gen.ts +54 -0
- 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 -34
- package/.pikku/cli/pikku-cli-wirings.gen.ts +2 -1
- package/.pikku/cli/pikku-cli.gen.ts +41 -0
- 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 +9 -9
- 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 +6 -8
- 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 +9 -9
- 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 +9 -9
- package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +41 -40
- 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 +27 -27
- package/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
- package/.pikku/schemas/schemas/PikkuChannelsOutput.schema.json +1 -1
- package/.pikku/schemas/schemas/PikkuSchemasOutput.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 +9 -9
- 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 +27 -1
- 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 +91 -0
- package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +10 -0
- package/dist/.pikku/cli/pikku-cli-client.gen.js +44 -0
- 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 -34
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.json +146 -0
- package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +2 -1
- package/dist/.pikku/cli/pikku-cli-wirings.gen.js +2 -1
- package/dist/.pikku/cli/pikku-cli.gen.d.ts +10 -0
- package/dist/.pikku/cli/pikku-cli.gen.js +38 -0
- 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 +5 -8
- package/dist/.pikku/pikku-services.gen.js +3 -6
- 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 +17 -17
- package/dist/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuChannelsOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuSchemasOutput.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 -28
- package/dist/src/cli.wiring.js +108 -106
- 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.d.ts +3 -0
- package/dist/src/services/cli-logger-forwarder.service.js +9 -2
- 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 +110 -105
- 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 +11 -2
- 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.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
- /package/dist/.pikku/{function/pikku-functions.gen.d.ts → cli/pikku-cli-channel.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.2
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Queue-specific type definitions for tree-shaking optimization
|
|
@@ -14,7 +14,7 @@ import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.j
|
|
|
14
14
|
* @template In - Input type for the queue job
|
|
15
15
|
* @template Out - Output type for the queue job
|
|
16
16
|
*/
|
|
17
|
-
type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out>>
|
|
17
|
+
type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out, 'session' | 'rpc'>>
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Registers a queue worker with the Pikku framework.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.2
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* This provides the structure needed for typescript to be aware of Queue workers and their input/output types
|
|
@@ -9,20 +9,20 @@
|
|
|
9
9
|
|
|
10
10
|
// Custom types are those that are defined directly within generics
|
|
11
11
|
// or are broken into simpler types
|
|
12
|
-
export type PikkuChannelsOutput = false | true
|
|
13
|
-
export type PikkuCLIOutput = false | true
|
|
14
|
-
export type PikkuFunctionsOutput = false | true
|
|
15
12
|
export type PikkuSchemasOutput = false | true
|
|
16
|
-
export type
|
|
17
|
-
export type PikkuMCPOutput = false | true
|
|
13
|
+
export type PikkuFunctionsOutput = false | true
|
|
18
14
|
export type PikkuMiddlewareOutput = false | true
|
|
19
15
|
export type PikkuPermissionsOutput = false | true
|
|
20
|
-
export type PikkuQueueOutput = false | true
|
|
21
|
-
export type PikkuPublicRPCOutput = false | true
|
|
22
|
-
export type PikkuRemoteRPCOutput = false | true
|
|
23
16
|
export type PikkuRPCOutput = false | true
|
|
17
|
+
export type PikkuPublicRPCOutput = false | true
|
|
18
|
+
export type PikkuHTTPOutput = false | true
|
|
24
19
|
export type PikkuSchedulerOutput = false | true
|
|
25
20
|
export type PikkuWorkflowOutput = false | true
|
|
21
|
+
export type PikkuRemoteRPCOutput = false | true
|
|
22
|
+
export type PikkuQueueOutput = false | true
|
|
23
|
+
export type PikkuChannelsOutput = false | true
|
|
24
|
+
export type PikkuMCPOutput = false | true
|
|
25
|
+
export type PikkuCLIOutput = false | true
|
|
26
26
|
|
|
27
27
|
import type { QueueJob } from '@pikku/core/queue'
|
|
28
28
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.2
|
|
3
3
|
*/
|
|
4
4
|
import { pikkuState } from '@pikku/core'
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
})
|
|
5
|
+
import { QueueWorkersMeta } from '@pikku/core/queue'
|
|
6
|
+
import metaData from './pikku-queue-workers-wirings-meta.gen.json' with { type: 'json' }
|
|
7
|
+
|
|
8
|
+
pikkuState('queue', 'meta', metaData as QueueWorkersMeta)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.2
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Auto-generated remote internal RPC queue worker and HTTP endpoint
|
|
@@ -15,7 +15,7 @@ export const pikkuRemoteInternalRPC = pikkuSessionlessFunc<
|
|
|
15
15
|
{ rpcName: string, data?: any },
|
|
16
16
|
any
|
|
17
17
|
>({
|
|
18
|
-
func: async (
|
|
18
|
+
func: async (_services, { rpcName, data }, { rpc }) => {
|
|
19
19
|
return await (rpc.invoke as any)(rpcName, data)
|
|
20
20
|
},
|
|
21
21
|
internal: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.2
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* This provides the structure needed for typescript to be aware of RPCs and their return types
|
|
@@ -9,20 +9,20 @@
|
|
|
9
9
|
|
|
10
10
|
// Custom types are those that are defined directly within generics
|
|
11
11
|
// or are broken into simpler types
|
|
12
|
-
export type PikkuChannelsOutput = false | true
|
|
13
|
-
export type PikkuCLIOutput = false | true
|
|
14
|
-
export type PikkuFunctionsOutput = false | true
|
|
15
12
|
export type PikkuSchemasOutput = false | true
|
|
16
|
-
export type
|
|
17
|
-
export type PikkuMCPOutput = false | true
|
|
13
|
+
export type PikkuFunctionsOutput = false | true
|
|
18
14
|
export type PikkuMiddlewareOutput = false | true
|
|
19
15
|
export type PikkuPermissionsOutput = false | true
|
|
20
|
-
export type PikkuQueueOutput = false | true
|
|
21
|
-
export type PikkuPublicRPCOutput = false | true
|
|
22
|
-
export type PikkuRemoteRPCOutput = false | true
|
|
23
16
|
export type PikkuRPCOutput = false | true
|
|
17
|
+
export type PikkuPublicRPCOutput = false | true
|
|
18
|
+
export type PikkuHTTPOutput = false | true
|
|
24
19
|
export type PikkuSchedulerOutput = false | true
|
|
25
20
|
export type PikkuWorkflowOutput = false | true
|
|
21
|
+
export type PikkuRemoteRPCOutput = false | true
|
|
22
|
+
export type PikkuQueueOutput = false | true
|
|
23
|
+
export type PikkuChannelsOutput = false | true
|
|
24
|
+
export type PikkuMCPOutput = false | true
|
|
25
|
+
export type PikkuCLIOutput = false | true
|
|
26
26
|
|
|
27
27
|
interface RPCHandler<I, O> {
|
|
28
28
|
input: I;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.2
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* This provides the structure needed for typescript to be aware of RPCs and their return types
|
|
@@ -9,20 +9,20 @@
|
|
|
9
9
|
|
|
10
10
|
// Custom types are those that are defined directly within generics
|
|
11
11
|
// or are broken into simpler types
|
|
12
|
-
export type PikkuChannelsOutput = false | true
|
|
13
|
-
export type PikkuCLIOutput = false | true
|
|
14
|
-
export type PikkuFunctionsOutput = false | true
|
|
15
12
|
export type PikkuSchemasOutput = false | true
|
|
16
|
-
export type
|
|
17
|
-
export type PikkuMCPOutput = false | true
|
|
13
|
+
export type PikkuFunctionsOutput = false | true
|
|
18
14
|
export type PikkuMiddlewareOutput = false | true
|
|
19
15
|
export type PikkuPermissionsOutput = false | true
|
|
20
|
-
export type PikkuQueueOutput = false | true
|
|
21
|
-
export type PikkuPublicRPCOutput = false | true
|
|
22
|
-
export type PikkuRemoteRPCOutput = false | true
|
|
23
16
|
export type PikkuRPCOutput = false | true
|
|
17
|
+
export type PikkuPublicRPCOutput = false | true
|
|
18
|
+
export type PikkuHTTPOutput = false | true
|
|
24
19
|
export type PikkuSchedulerOutput = false | true
|
|
25
20
|
export type PikkuWorkflowOutput = false | true
|
|
21
|
+
export type PikkuRemoteRPCOutput = false | true
|
|
22
|
+
export type PikkuQueueOutput = false | true
|
|
23
|
+
export type PikkuChannelsOutput = false | true
|
|
24
|
+
export type PikkuMCPOutput = false | true
|
|
25
|
+
export type PikkuCLIOutput = false | true
|
|
26
26
|
|
|
27
27
|
interface RPCHandler<I, O> {
|
|
28
28
|
input: I;
|
|
@@ -30,47 +30,48 @@ interface RPCHandler<I, O> {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
export type RPCMap = {
|
|
33
|
-
readonly '
|
|
34
|
-
readonly 'bootstrap': RPCHandler<null, null>,
|
|
35
|
-
readonly 'watch': RPCHandler<null, null>,
|
|
36
|
-
readonly 'pikkuNext': RPCHandler<null, null>,
|
|
37
|
-
readonly 'pikkuChannels': RPCHandler<null, PikkuChannelsOutput>,
|
|
38
|
-
readonly 'pikkuChannelTypes': RPCHandler<null, null>,
|
|
39
|
-
readonly 'pikkuChannelsMap': RPCHandler<null, null>,
|
|
40
|
-
readonly 'pikkuWebSocketTyped': RPCHandler<null, null>,
|
|
41
|
-
readonly 'pikkuCLIEntry': RPCHandler<null, null>,
|
|
42
|
-
readonly 'pikkuCLITypes': RPCHandler<null, null>,
|
|
43
|
-
readonly 'pikkuCLI': RPCHandler<null, PikkuCLIOutput>,
|
|
33
|
+
readonly 'pikkuSchemas': RPCHandler<null, PikkuSchemasOutput>,
|
|
44
34
|
readonly 'pikkuFetch': RPCHandler<null, null>,
|
|
45
|
-
readonly '
|
|
35
|
+
readonly 'pikkuWebSocketTyped': RPCHandler<null, null>,
|
|
36
|
+
readonly 'pikkuRPCClient': RPCHandler<null, null>,
|
|
37
|
+
readonly 'pikkuQueueService': RPCHandler<null, null>,
|
|
38
|
+
readonly 'pikkuOpenAPI': RPCHandler<null, null>,
|
|
39
|
+
readonly 'pikkuNext': RPCHandler<null, null>,
|
|
46
40
|
readonly 'pikkuFunctionTypes': RPCHandler<null, null>,
|
|
47
|
-
readonly '
|
|
48
|
-
readonly 'pikkuServices': RPCHandler<null, null>,
|
|
49
|
-
readonly 'pikkuSchemas': RPCHandler<null, PikkuSchemasOutput>,
|
|
50
|
-
readonly 'pikkuHTTPMap': RPCHandler<null, null>,
|
|
51
|
-
readonly 'pikkuHTTP': RPCHandler<null, PikkuHTTPOutput>,
|
|
41
|
+
readonly 'pikkuFunctionTypesSplit': RPCHandler<null, null>,
|
|
52
42
|
readonly 'pikkuHTTPTypes': RPCHandler<null, null>,
|
|
53
|
-
readonly '
|
|
54
|
-
readonly '
|
|
43
|
+
readonly 'pikkuChannelTypes': RPCHandler<null, null>,
|
|
44
|
+
readonly 'pikkuSchedulerTypes': RPCHandler<null, null>,
|
|
45
|
+
readonly 'pikkuQueueTypes': RPCHandler<null, null>,
|
|
46
|
+
readonly 'pikkuWorkflowTypes': RPCHandler<null, null>,
|
|
55
47
|
readonly 'pikkuMCPTypes': RPCHandler<null, null>,
|
|
56
|
-
readonly '
|
|
48
|
+
readonly 'pikkuCLITypes': RPCHandler<null, null>,
|
|
49
|
+
readonly 'pikkuFunctions': RPCHandler<null, PikkuFunctionsOutput>,
|
|
57
50
|
readonly 'pikkuMiddleware': RPCHandler<null, PikkuMiddlewareOutput>,
|
|
58
51
|
readonly 'pikkuPermissions': RPCHandler<null, PikkuPermissionsOutput>,
|
|
59
|
-
readonly '
|
|
60
|
-
readonly '
|
|
61
|
-
readonly '
|
|
62
|
-
readonly 'pikkuQueue': RPCHandler<null, PikkuQueueOutput>,
|
|
63
|
-
readonly 'pikkuPublicRPC': RPCHandler<null, PikkuPublicRPCOutput>,
|
|
64
|
-
readonly 'pikkuRemoteRPC': RPCHandler<null, PikkuRemoteRPCOutput>,
|
|
65
|
-
readonly 'pikkuRPCClient': RPCHandler<null, null>,
|
|
52
|
+
readonly 'pikkuServices': RPCHandler<null, null>,
|
|
53
|
+
readonly 'pikkuServiceMetadata': RPCHandler<null, null>,
|
|
54
|
+
readonly 'pikkuRPC': RPCHandler<null, PikkuRPCOutput>,
|
|
66
55
|
readonly 'pikkuRPCInternalMap': RPCHandler<null, null>,
|
|
67
56
|
readonly 'pikkuRPCExposedMap': RPCHandler<null, null>,
|
|
68
|
-
readonly '
|
|
69
|
-
readonly '
|
|
57
|
+
readonly 'pikkuPublicRPC': RPCHandler<null, PikkuPublicRPCOutput>,
|
|
58
|
+
readonly 'pikkuHTTP': RPCHandler<null, PikkuHTTPOutput>,
|
|
59
|
+
readonly 'pikkuHTTPMap': RPCHandler<null, null>,
|
|
70
60
|
readonly 'pikkuScheduler': RPCHandler<null, PikkuSchedulerOutput>,
|
|
71
|
-
readonly 'pikkuWorkflowMap': RPCHandler<null, null>,
|
|
72
|
-
readonly 'pikkuWorkflowTypes': RPCHandler<null, null>,
|
|
73
61
|
readonly 'pikkuWorkflow': RPCHandler<null, PikkuWorkflowOutput>,
|
|
62
|
+
readonly 'pikkuRemoteRPC': RPCHandler<null, PikkuRemoteRPCOutput>,
|
|
63
|
+
readonly 'pikkuWorkflowMap': RPCHandler<null, null>,
|
|
64
|
+
readonly 'pikkuQueue': RPCHandler<null, PikkuQueueOutput>,
|
|
65
|
+
readonly 'pikkuQueueMap': RPCHandler<null, null>,
|
|
66
|
+
readonly 'pikkuChannels': RPCHandler<null, null>,
|
|
67
|
+
readonly 'pikkuChannelsMap': RPCHandler<null, null>,
|
|
68
|
+
readonly 'pikkuMCP': RPCHandler<null, PikkuMCPOutput>,
|
|
69
|
+
readonly 'pikkuMCPJSON': RPCHandler<null, null>,
|
|
70
|
+
readonly 'pikkuCLI': RPCHandler<null, PikkuCLIOutput>,
|
|
71
|
+
readonly 'pikkuCLIEntry': RPCHandler<null, null>,
|
|
72
|
+
readonly 'all': RPCHandler<null, null>,
|
|
73
|
+
readonly 'bootstrap': RPCHandler<null, null>,
|
|
74
|
+
readonly 'watch': RPCHandler<null, null>,
|
|
74
75
|
};
|
|
75
76
|
|
|
76
77
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.2
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Scheduler-specific type definitions for tree-shaking optimization
|
|
@@ -12,7 +12,7 @@ import type { PikkuFunctionConfig, PikkuMiddleware } from '../function/pikku-fun
|
|
|
12
12
|
* Type definition for scheduled tasks that run at specified intervals.
|
|
13
13
|
* These are sessionless functions that execute based on cron expressions.
|
|
14
14
|
*/
|
|
15
|
-
type SchedulerWiring = CoreScheduledTask<PikkuFunctionConfig<void, void>, PikkuMiddleware>
|
|
15
|
+
type SchedulerWiring = CoreScheduledTask<PikkuFunctionConfig<void, void, 'session' | 'rpc'>, PikkuMiddleware>
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Registers a scheduled task with the Pikku framework.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.2
|
|
3
3
|
*/
|
|
4
4
|
import { pikkuState } from '@pikku/core'
|
|
5
|
-
|
|
5
|
+
import { ScheduledTasksMeta } from '@pikku/core/scheduler'
|
|
6
|
+
import metaData from './pikku-schedulers-wirings-meta.gen.json' with { type: 'json' }
|
|
7
|
+
|
|
8
|
+
pikkuState('scheduler', 'meta', metaData as ScheduledTasksMeta)
|
|
@@ -1,30 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.11.
|
|
2
|
+
* This file was generated by @pikku/cli@0.11.2
|
|
3
3
|
*/
|
|
4
4
|
import { addSchema } from '@pikku/core/schema'
|
|
5
5
|
|
|
6
|
-
import * as PikkuChannelsOutput from './schemas/PikkuChannelsOutput.schema.json' with { type: 'json' }
|
|
7
|
-
addSchema('PikkuChannelsOutput', PikkuChannelsOutput)
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import * as PikkuCLIOutput from './schemas/PikkuCLIOutput.schema.json' with { type: 'json' }
|
|
11
|
-
addSchema('PikkuCLIOutput', PikkuCLIOutput)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import * as PikkuFunctionsOutput from './schemas/PikkuFunctionsOutput.schema.json' with { type: 'json' }
|
|
15
|
-
addSchema('PikkuFunctionsOutput', PikkuFunctionsOutput)
|
|
16
|
-
|
|
17
|
-
|
|
18
6
|
import * as PikkuSchemasOutput from './schemas/PikkuSchemasOutput.schema.json' with { type: 'json' }
|
|
19
7
|
addSchema('PikkuSchemasOutput', PikkuSchemasOutput)
|
|
20
8
|
|
|
21
9
|
|
|
22
|
-
import * as
|
|
23
|
-
addSchema('
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
import * as PikkuMCPOutput from './schemas/PikkuMCPOutput.schema.json' with { type: 'json' }
|
|
27
|
-
addSchema('PikkuMCPOutput', PikkuMCPOutput)
|
|
10
|
+
import * as PikkuFunctionsOutput from './schemas/PikkuFunctionsOutput.schema.json' with { type: 'json' }
|
|
11
|
+
addSchema('PikkuFunctionsOutput', PikkuFunctionsOutput)
|
|
28
12
|
|
|
29
13
|
|
|
30
14
|
import * as PikkuMiddlewareOutput from './schemas/PikkuMiddlewareOutput.schema.json' with { type: 'json' }
|
|
@@ -35,20 +19,16 @@ import * as PikkuPermissionsOutput from './schemas/PikkuPermissionsOutput.schema
|
|
|
35
19
|
addSchema('PikkuPermissionsOutput', PikkuPermissionsOutput)
|
|
36
20
|
|
|
37
21
|
|
|
38
|
-
import * as
|
|
39
|
-
addSchema('
|
|
22
|
+
import * as PikkuRPCOutput from './schemas/PikkuRPCOutput.schema.json' with { type: 'json' }
|
|
23
|
+
addSchema('PikkuRPCOutput', PikkuRPCOutput)
|
|
40
24
|
|
|
41
25
|
|
|
42
26
|
import * as PikkuPublicRPCOutput from './schemas/PikkuPublicRPCOutput.schema.json' with { type: 'json' }
|
|
43
27
|
addSchema('PikkuPublicRPCOutput', PikkuPublicRPCOutput)
|
|
44
28
|
|
|
45
29
|
|
|
46
|
-
import * as
|
|
47
|
-
addSchema('
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
import * as PikkuRPCOutput from './schemas/PikkuRPCOutput.schema.json' with { type: 'json' }
|
|
51
|
-
addSchema('PikkuRPCOutput', PikkuRPCOutput)
|
|
30
|
+
import * as PikkuHTTPOutput from './schemas/PikkuHTTPOutput.schema.json' with { type: 'json' }
|
|
31
|
+
addSchema('PikkuHTTPOutput', PikkuHTTPOutput)
|
|
52
32
|
|
|
53
33
|
|
|
54
34
|
import * as PikkuSchedulerOutput from './schemas/PikkuSchedulerOutput.schema.json' with { type: 'json' }
|
|
@@ -59,5 +39,25 @@ import * as PikkuWorkflowOutput from './schemas/PikkuWorkflowOutput.schema.json'
|
|
|
59
39
|
addSchema('PikkuWorkflowOutput', PikkuWorkflowOutput)
|
|
60
40
|
|
|
61
41
|
|
|
42
|
+
import * as PikkuRemoteRPCOutput from './schemas/PikkuRemoteRPCOutput.schema.json' with { type: 'json' }
|
|
43
|
+
addSchema('PikkuRemoteRPCOutput', PikkuRemoteRPCOutput)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
import * as PikkuQueueOutput from './schemas/PikkuQueueOutput.schema.json' with { type: 'json' }
|
|
47
|
+
addSchema('PikkuQueueOutput', PikkuQueueOutput)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
import * as PikkuMCPOutput from './schemas/PikkuMCPOutput.schema.json' with { type: 'json' }
|
|
51
|
+
addSchema('PikkuMCPOutput', PikkuMCPOutput)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
import * as PikkuCLIOutput from './schemas/PikkuCLIOutput.schema.json' with { type: 'json' }
|
|
55
|
+
addSchema('PikkuCLIOutput', PikkuCLIOutput)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
import * as PikkuChannelsOutput from './schemas/PikkuChannelsOutput.schema.json' with { type: 'json' }
|
|
59
|
+
addSchema('PikkuChannelsOutput', PikkuChannelsOutput)
|
|
60
|
+
|
|
61
|
+
|
|
62
62
|
import * as PikkuCLIConfig from './schemas/PikkuCLIConfig.schema.json' with { type: 'json' }
|
|
63
63
|
addSchema('PikkuCLIConfig', PikkuCLIConfig)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"outDir":{"type":"string"},"schemaDirectory":{"type":"string"},"typesDeclarationFile":{"type":"string"},"functionsFile":{"type":"string"},"functionsMetaFile":{"type":"string"},"functionsMetaMinFile":{"type":"string"},"functionTypesFile":{"type":"string"},"httpWiringsFile":{"type":"string"},"httpWiringMetaFile":{"type":"string"},"httpMapDeclarationFile":{"type":"string"},"httpTypesFile":{"type":"string"},"channelsWiringFile":{"type":"string"},"channelsWiringMetaFile":{"type":"string"},"channelsMapDeclarationFile":{"type":"string"},"channelsTypesFile":{"type":"string"},"rpcInternalWiringMetaFile":{"type":"string"},"rpcInternalMapDeclarationFile":{"type":"string"},"rpcMapDeclarationFile":{"type":"string"},"schedulersWiringFile":{"type":"string"},"schedulersWiringMetaFile":{"type":"string"},"schedulersTypesFile":{"type":"string"},"queueWorkersWiringFile":{"type":"string"},"queueWorkersWiringMetaFile":{"type":"string"},"queueMapDeclarationFile":{"type":"string"},"queueTypesFile":{"type":"string"},"workflowsWiringFile":{"type":"string"},"workflowsWiringMetaFile":{"type":"string"},"workflowsWorkersFile":{"type":"string"},"workflowMapDeclarationFile":{"type":"string"},"workflowTypesFile":{"type":"string"},"mcpWiringsFile":{"type":"string"},"mcpWiringsMetaFile":{"type":"string"},"mcpTypesFile":{"type":"string"},"cliWiringsFile":{"type":"string"},"cliWiringMetaFile":{"type":"string"},"cliBootstrapFile":{"type":"string"},"cliTypesFile":{"type":"string"},"servicesFile":{"type":"string"},"middlewareFile":{"type":"string"},"middlewareGroupsMetaFile":{"type":"string"},"permissionsFile":{"type":"string"},"bootstrapFile":{"type":"string"},"$schema":{"type":"string"},"extends":{"type":"string"},"rootDir":{"type":"string"},"srcDirectories":{"type":"array","items":{"type":"string"}},"ignoreFiles":{"type":"array","items":{"type":"string"}},"packageMappings":{"type":"object","additionalProperties":{"type":"string"}},"configFile":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"types":{"type":"array","items":{"type":"string"}},"userSessionType":{"type":"string"},"singletonServicesFactoryType":{"type":"string"},"
|
|
1
|
+
{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"outDir":{"type":"string"},"schemaDirectory":{"type":"string"},"typesDeclarationFile":{"type":"string"},"functionsFile":{"type":"string"},"functionsMetaFile":{"type":"string"},"functionsMetaJsonFile":{"type":"string"},"functionsMetaMinFile":{"type":"string"},"functionsMetaMinJsonFile":{"type":"string"},"functionTypesFile":{"type":"string"},"httpWiringsFile":{"type":"string"},"httpWiringMetaFile":{"type":"string"},"httpWiringMetaJsonFile":{"type":"string"},"httpMapDeclarationFile":{"type":"string"},"httpTypesFile":{"type":"string"},"channelsWiringFile":{"type":"string"},"channelsWiringMetaFile":{"type":"string"},"channelsWiringMetaJsonFile":{"type":"string"},"channelsMapDeclarationFile":{"type":"string"},"channelsTypesFile":{"type":"string"},"rpcInternalWiringMetaFile":{"type":"string"},"rpcInternalWiringMetaJsonFile":{"type":"string"},"rpcInternalMapDeclarationFile":{"type":"string"},"rpcMapDeclarationFile":{"type":"string"},"schedulersWiringFile":{"type":"string"},"schedulersWiringMetaFile":{"type":"string"},"schedulersWiringMetaJsonFile":{"type":"string"},"schedulersTypesFile":{"type":"string"},"queueWorkersWiringFile":{"type":"string"},"queueWorkersWiringMetaFile":{"type":"string"},"queueWorkersWiringMetaJsonFile":{"type":"string"},"queueMapDeclarationFile":{"type":"string"},"queueTypesFile":{"type":"string"},"workflowsWiringFile":{"type":"string"},"workflowsWiringMetaFile":{"type":"string"},"workflowsWiringMetaJsonFile":{"type":"string"},"workflowsWorkersFile":{"type":"string"},"workflowMapDeclarationFile":{"type":"string"},"workflowTypesFile":{"type":"string"},"mcpWiringsFile":{"type":"string"},"mcpWiringsMetaFile":{"type":"string"},"mcpWiringsMetaJsonFile":{"type":"string"},"mcpTypesFile":{"type":"string"},"cliWiringsFile":{"type":"string"},"cliWiringMetaFile":{"type":"string"},"cliWiringMetaJsonFile":{"type":"string"},"cliBootstrapFile":{"type":"string"},"cliTypesFile":{"type":"string"},"servicesFile":{"type":"string"},"middlewareFile":{"type":"string"},"middlewareGroupsMetaFile":{"type":"string"},"middlewareGroupsMetaJsonFile":{"type":"string"},"permissionsFile":{"type":"string"},"bootstrapFile":{"type":"string"},"$schema":{"type":"string"},"extends":{"type":"string"},"rootDir":{"type":"string"},"srcDirectories":{"type":"array","items":{"type":"string"}},"ignoreFiles":{"type":"array","items":{"type":"string"}},"packageMappings":{"type":"object","additionalProperties":{"type":"string"}},"configFile":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"types":{"type":"array","items":{"type":"string"}},"userSessionType":{"type":"string"},"singletonServicesFactoryType":{"type":"string"},"wireServicesFactoryType":{"type":"string"},"configDir":{"type":"string"},"tsconfig":{"type":"string"},"nextBackendFile":{"type":"string"},"nextHTTPFile":{"type":"string"},"fetchFile":{"type":"string"},"websocketFile":{"type":"string"},"rpcWiringsFile":{"type":"string"},"queueWiringsFile":{"type":"string"},"mcpJsonFile":{"type":"string"},"openAPI":{"type":"object","properties":{"outputFile":{"type":"string"},"additionalInfo":{"$ref":"#/definitions/OpenAPISpecInfo"}},"required":["outputFile","additionalInfo"],"additionalProperties":false},"schema":{"type":"object","properties":{"additionalProperties":{"type":"boolean"},"supportsImportAttributes":{"type":"boolean"}},"additionalProperties":false},"cli":{"type":"object","properties":{"entrypoints":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"type":{"type":"string","const":"local"},"path":{"type":"string"}},"required":["type","path"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"channel"},"name":{"type":"string"},"route":{"type":"string"},"wirePath":{"type":"string"},"path":{"type":"string"}},"required":["type","wirePath"],"additionalProperties":false},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"object","properties":{"type":{"type":"string","const":"local"},"path":{"type":"string"}},"required":["type","path"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"channel"},"name":{"type":"string"},"route":{"type":"string"},"wirePath":{"type":"string"},"path":{"type":"string"}},"required":["type","wirePath"],"additionalProperties":false}]}}]}}},"additionalProperties":false},"workflows":{"anyOf":[{"type":"object","properties":{"singleQueue":{"type":"boolean","const":true},"path":{"type":"string"},"orchestratorQueue":{"type":"string"},"workerQueue":{"type":"string"}},"required":["singleQueue","path"],"additionalProperties":false},{"type":"object","properties":{"singleQueue":{"type":"boolean","const":false},"dir":{"type":"string"},"orchestratorQueuePrefix":{"type":"string"},"workerQueuePrefix":{"type":"string"}},"required":["singleQueue","dir"],"additionalProperties":false}]},"rpc":{"type":"object","properties":{"remoteRpcWorkersPath":{"type":"string"},"publicRpcPath":{"type":"string"}},"additionalProperties":false},"forceRequiredServices":{"type":"array","items":{"type":"string"}},"schemasFromTypes":{"type":"array","items":{"type":"string"}},"stateOutput":{"type":"string"},"stateInput":{"type":"string"},"filters":{"$ref":"#/definitions/InspectorFilters"}},"required":["bootstrapFile","channelsMapDeclarationFile","channelsTypesFile","channelsWiringFile","channelsWiringMetaFile","channelsWiringMetaJsonFile","cliBootstrapFile","cliTypesFile","cliWiringMetaFile","cliWiringMetaJsonFile","cliWiringsFile","configDir","filters","functionTypesFile","functionsFile","functionsMetaFile","functionsMetaJsonFile","functionsMetaMinFile","functionsMetaMinJsonFile","httpMapDeclarationFile","httpTypesFile","httpWiringMetaFile","httpWiringMetaJsonFile","httpWiringsFile","mcpTypesFile","mcpWiringsFile","mcpWiringsMetaFile","mcpWiringsMetaJsonFile","middlewareFile","middlewareGroupsMetaFile","middlewareGroupsMetaJsonFile","outDir","packageMappings","permissionsFile","queueMapDeclarationFile","queueTypesFile","queueWorkersWiringFile","queueWorkersWiringMetaFile","queueWorkersWiringMetaJsonFile","rootDir","rpcInternalMapDeclarationFile","rpcInternalWiringMetaFile","rpcInternalWiringMetaJsonFile","rpcMapDeclarationFile","schedulersTypesFile","schedulersWiringFile","schedulersWiringMetaFile","schedulersWiringMetaJsonFile","schemaDirectory","servicesFile","srcDirectories","tsconfig","typesDeclarationFile","workflowMapDeclarationFile","workflowTypesFile","workflowsWiringFile","workflowsWiringMetaFile","workflowsWiringMetaJsonFile","workflowsWorkersFile"],"definitions":{"OpenAPISpecInfo":{"type":"object","properties":{"info":{"type":"object","properties":{"title":{"type":"string"},"version":{"type":"string"},"description":{"type":"string"},"termsOfService":{"type":"string"},"contact":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"email":{"type":"string"}},"additionalProperties":false},"license":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"}},"required":["name"],"additionalProperties":false}},"required":["title","version","description"],"additionalProperties":false},"servers":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"description":{"type":"string"}},"required":["url"],"additionalProperties":false}},"tags":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}},"required":["name"],"additionalProperties":false}},"externalDocs":{"type":"object","properties":{"description":{"type":"string"},"url":{"type":"string"}},"required":["url"],"additionalProperties":false},"securitySchemes":{"type":"object"},"security":{"type":"array","items":{"type":"object","additionalProperties":{"type":"array","items":{}}}}},"required":["info","servers"],"additionalProperties":false},"InspectorFilters":{"type":"object","properties":{"names":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}},"types":{"type":"array","items":{"type":"string"}},"directories":{"type":"array","items":{"type":"string"}},"httpRoutes":{"type":"array","items":{"type":"string"}},"httpMethods":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"http://json-schema.org/draft-07/schema#","type":"boolean","enum":[false,true],"
|
|
1
|
+
{"$schema":"http://json-schema.org/draft-07/schema#","type":"boolean","enum":[false,true],"definitions":{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"http://json-schema.org/draft-07/schema#","type":"boolean","enum":[false,true],"definitions":{}}
|
|
1
|
+
{"$schema":"http://json-schema.org/draft-07/schema#","type":"boolean","enum":[false,true],"description":"This provides the structure needed for typescript to be aware of RPCs and their return types","definitions":{}}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "config",
|
|
3
|
+
"summary": "",
|
|
4
|
+
"description": "",
|
|
5
|
+
"package": "@pikku/core",
|
|
6
|
+
"path": "home/runner/work/pikku/pikku/packages/core/dist/types/core.types.d.ts",
|
|
7
|
+
"version": "0.11.1",
|
|
8
|
+
"interface": "export interface Config extends CoreConfig<PikkuCLIConfig> {\n // Preloaded inspector state from stateInput file (if provided)\n preloadedInspectorState?: Omit<InspectorState, 'typesLookup'>\n}",
|
|
9
|
+
"expandedProperties": {
|
|
10
|
+
"preloadedInspectorState": "Omit<InspectorState, \"typesLookup\"> | undefined",
|
|
11
|
+
"logLevel": "LogLevel | undefined",
|
|
12
|
+
"secrets": "{} | undefined",
|
|
13
|
+
"workflow": "WorkflowServiceConfig | undefined",
|
|
14
|
+
"$schema": "string | undefined",
|
|
15
|
+
"extends": "string | undefined",
|
|
16
|
+
"rootDir": "string",
|
|
17
|
+
"srcDirectories": "string[]",
|
|
18
|
+
"ignoreFiles": "string[] | undefined",
|
|
19
|
+
"packageMappings": "Record<string, string>",
|
|
20
|
+
"configFile": "string | undefined",
|
|
21
|
+
"tags": "string[] | undefined",
|
|
22
|
+
"types": "string[] | undefined",
|
|
23
|
+
"userSessionType": "string | undefined",
|
|
24
|
+
"singletonServicesFactoryType": "string | undefined",
|
|
25
|
+
"wireServicesFactoryType": "string | undefined",
|
|
26
|
+
"configDir": "string",
|
|
27
|
+
"tsconfig": "string",
|
|
28
|
+
"nextBackendFile": "string | undefined",
|
|
29
|
+
"nextHTTPFile": "string | undefined",
|
|
30
|
+
"fetchFile": "string | undefined",
|
|
31
|
+
"websocketFile": "string | undefined",
|
|
32
|
+
"rpcWiringsFile": "string | undefined",
|
|
33
|
+
"queueWiringsFile": "string | undefined",
|
|
34
|
+
"mcpJsonFile": "string | undefined",
|
|
35
|
+
"openAPI": "{ outputFile: string; additionalInfo: OpenAPISpecInfo; } | undefined",
|
|
36
|
+
"schema": "{ additionalProperties?: boolean; supportsImportAttributes?: boolean; } | undefined",
|
|
37
|
+
"cli": "{ entrypoints?: Record<string, string | { type: \"local\"; path: string; } | { type: \"channel\"; name?: string; route?: string; wirePath: string; path?: string; } | Array<string | { type: \"local\"; path: string; } | { type: \"channel\"; name?: string; route?: string; wirePath: string; path?: string; }>>; } | undefined",
|
|
38
|
+
"workflows": "{ singleQueue: true; path: string; orchestratorQueue?: string; workerQueue?: string; } | { singleQueue: false; dir: string; orchestratorQueuePrefix?: string; workerQueuePrefix?: string; } | undefined",
|
|
39
|
+
"rpc": "{ remoteRpcWorkersPath?: string; publicRpcPath?: string; } | undefined",
|
|
40
|
+
"forceRequiredServices": "string[] | undefined",
|
|
41
|
+
"schemasFromTypes": "string[] | undefined",
|
|
42
|
+
"stateOutput": "string | undefined",
|
|
43
|
+
"stateInput": "string | undefined",
|
|
44
|
+
"filters": "InspectorFilters",
|
|
45
|
+
"outDir": "string",
|
|
46
|
+
"schemaDirectory": "string",
|
|
47
|
+
"typesDeclarationFile": "string",
|
|
48
|
+
"functionsFile": "string",
|
|
49
|
+
"functionsMetaFile": "string",
|
|
50
|
+
"functionsMetaJsonFile": "string",
|
|
51
|
+
"functionsMetaMinFile": "string",
|
|
52
|
+
"functionsMetaMinJsonFile": "string",
|
|
53
|
+
"functionTypesFile": "string",
|
|
54
|
+
"httpWiringsFile": "string",
|
|
55
|
+
"httpWiringMetaFile": "string",
|
|
56
|
+
"httpWiringMetaJsonFile": "string",
|
|
57
|
+
"httpMapDeclarationFile": "string",
|
|
58
|
+
"httpTypesFile": "string",
|
|
59
|
+
"channelsWiringFile": "string",
|
|
60
|
+
"channelsWiringMetaFile": "string",
|
|
61
|
+
"channelsWiringMetaJsonFile": "string",
|
|
62
|
+
"channelsMapDeclarationFile": "string",
|
|
63
|
+
"channelsTypesFile": "string",
|
|
64
|
+
"rpcInternalWiringMetaFile": "string",
|
|
65
|
+
"rpcInternalWiringMetaJsonFile": "string",
|
|
66
|
+
"rpcInternalMapDeclarationFile": "string",
|
|
67
|
+
"rpcMapDeclarationFile": "string",
|
|
68
|
+
"schedulersWiringFile": "string",
|
|
69
|
+
"schedulersWiringMetaFile": "string",
|
|
70
|
+
"schedulersWiringMetaJsonFile": "string",
|
|
71
|
+
"schedulersTypesFile": "string",
|
|
72
|
+
"queueWorkersWiringFile": "string",
|
|
73
|
+
"queueWorkersWiringMetaFile": "string",
|
|
74
|
+
"queueWorkersWiringMetaJsonFile": "string",
|
|
75
|
+
"queueMapDeclarationFile": "string",
|
|
76
|
+
"queueTypesFile": "string",
|
|
77
|
+
"workflowsWiringFile": "string",
|
|
78
|
+
"workflowsWiringMetaFile": "string",
|
|
79
|
+
"workflowsWiringMetaJsonFile": "string",
|
|
80
|
+
"workflowsWorkersFile": "string",
|
|
81
|
+
"workflowMapDeclarationFile": "string",
|
|
82
|
+
"workflowTypesFile": "string",
|
|
83
|
+
"mcpWiringsFile": "string",
|
|
84
|
+
"mcpWiringsMetaFile": "string",
|
|
85
|
+
"mcpWiringsMetaJsonFile": "string",
|
|
86
|
+
"mcpTypesFile": "string",
|
|
87
|
+
"cliWiringsFile": "string",
|
|
88
|
+
"cliWiringMetaFile": "string",
|
|
89
|
+
"cliWiringMetaJsonFile": "string",
|
|
90
|
+
"cliBootstrapFile": "string",
|
|
91
|
+
"cliTypesFile": "string",
|
|
92
|
+
"servicesFile": "string",
|
|
93
|
+
"middlewareFile": "string",
|
|
94
|
+
"middlewareGroupsMetaFile": "string",
|
|
95
|
+
"middlewareGroupsMetaJsonFile": "string",
|
|
96
|
+
"permissionsFile": "string",
|
|
97
|
+
"bootstrapFile": "string"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "getInspectorState",
|
|
3
|
+
"summary": "",
|
|
4
|
+
"description": "",
|
|
5
|
+
"package": "@pikku/cli",
|
|
6
|
+
"path": "home/runner/work/pikku/pikku/packages/cli/types/application-types.d.ts",
|
|
7
|
+
"version": "0.11.2",
|
|
8
|
+
"interface": "(refresh?: boolean, setupOnly?: boolean, bootstrapMode?: boolean) => Promise<InspectorState>",
|
|
9
|
+
"expandedProperties": {}
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jwt",
|
|
3
|
+
"summary": "Interface for handling JSON Web Tokens (JWT).",
|
|
4
|
+
"description": "",
|
|
5
|
+
"package": "@pikku/core",
|
|
6
|
+
"path": "home/runner/work/pikku/pikku/packages/core/dist/types/core.types.d.ts",
|
|
7
|
+
"version": "0.11.1",
|
|
8
|
+
"interface": "export interface JWTService {\n /**\n * Encodes a payload into a JWT.\n * @param expiresIn - The expiration time of the token.\n * @param payload - The payload to encode.\n * @returns A promise that resolves to the encoded JWT.\n */\n encode: <T extends any>(expiresIn: RelativeTimeInput, payload: T) => Promise<string>;\n /**\n * Decodes a JWT into its payload.\n * @param hash - The JWT to decode.\n * @param invalidHashError - An optional error to throw if the hash is invalid.\n * @param debug - An optional flag for debugging.\n * @returns A promise that resolves to the decoded payload.\n */\n decode: <T>(hash: string, invalidHashError?: Error, debug?: boolean) => Promise<T>;\n}",
|
|
9
|
+
"expandedProperties": {
|
|
10
|
+
"encode": "<T extends unknown>(expiresIn: RelativeTimeInput, payload: T) => Promise<string>",
|
|
11
|
+
"decode": "<T>(hash: string, invalidHashError?: Error, debug?: boolean) => Promise<T>"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "logger",
|
|
3
|
+
"summary": "",
|
|
4
|
+
"description": "",
|
|
5
|
+
"package": "@pikku/cli",
|
|
6
|
+
"path": "home/runner/work/pikku/pikku/packages/cli/types/application-types.d.ts",
|
|
7
|
+
"version": "0.11.2",
|
|
8
|
+
"interface": "class CLILogger {\n constructor({\n logLogo,\n silent = false,\n }: {\n logLogo: boolean\n silent?: boolean\n });\n setLevel(level: LogLevel): void;\n setSilent(silent: boolean): void;\n isSilent(): boolean;\n info(message: string | { message: string; type?: string }): void;\n error(message: string): void;\n warn(message: string): void;\n debug(message: string | { message: string; type?: string }): void;\n critical(code: ErrorCode, message: string): void;\n hasCriticalErrors(): boolean;\n logLogo(): void;\n}",
|
|
9
|
+
"expandedProperties": {
|
|
10
|
+
"silent": "boolean",
|
|
11
|
+
"level": "LogLevel",
|
|
12
|
+
"criticalErrors": "string[]",
|
|
13
|
+
"setLevel": "(level: LogLevel) => void",
|
|
14
|
+
"setSilent": "(silent: boolean) => void",
|
|
15
|
+
"isSilent": "() => boolean",
|
|
16
|
+
"info": "(message: string | { message: string; type?: string; }) => void",
|
|
17
|
+
"error": "(message: string) => void",
|
|
18
|
+
"warn": "(message: string) => void",
|
|
19
|
+
"debug": "(message: string | { message: string; type?: string; }) => void",
|
|
20
|
+
"critical": "(code: ErrorCode, message: string) => void",
|
|
21
|
+
"hasCriticalErrors": "() => boolean",
|
|
22
|
+
"logLogo": "() => void",
|
|
23
|
+
"primary": "(message: string) => void"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "queueService",
|
|
3
|
+
"summary": "Queue provider interface for job publishing operations",
|
|
4
|
+
"description": "",
|
|
5
|
+
"package": "@pikku/core",
|
|
6
|
+
"path": "home/runner/work/pikku/pikku/packages/core/dist/types/core.types.d.ts",
|
|
7
|
+
"version": "0.11.1",
|
|
8
|
+
"interface": "export interface QueueService {\n /** Whether this queue provider supports job results */\n readonly supportsResults: boolean;\n /** Add a job to the queue with type safety */\n add<T>(queueName: string, data: T, options?: JobOptions): Promise<string>;\n /** Get job status and result */\n getJob<T, R>(queueName: string, jobId: string): Promise<QueueJob<T, R> | null>;\n}",
|
|
9
|
+
"expandedProperties": {
|
|
10
|
+
"supportsResults": "boolean",
|
|
11
|
+
"add": "<T>(queueName: string, data: T, options?: JobOptions) => Promise<string>",
|
|
12
|
+
"getJob": "<T, R>(queueName: string, jobId: string) => Promise<QueueJob<T, R> | null>"
|
|
13
|
+
}
|
|
14
|
+
}
|