@pikku/addon-graph 0.0.2 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.pikku/addon/pikku-addon-types.gen.ts +30 -3
- package/.pikku/addon/pikku-package.gen.ts +3 -1
- package/.pikku/agent/pikku-agent-map.gen.d.ts +2 -14
- package/.pikku/agent/pikku-agent-types.gen.ts +13 -7
- package/.pikku/channel/pikku-channel-types.gen.ts +177 -0
- package/.pikku/cli/pikku-cli-types.gen.ts +105 -0
- package/.pikku/console/pikku-addon-meta.gen.json +281 -0
- package/.pikku/console/pikku-node-types.gen.ts +2 -2
- package/.pikku/function/pikku-function-types.gen.ts +70 -34
- package/.pikku/function/pikku-functions-meta-verbose.gen.json +274 -196
- package/.pikku/function/pikku-functions-meta.gen.json +160 -144
- package/.pikku/function/pikku-functions-meta.gen.ts +1 -1
- package/.pikku/function/pikku-functions.gen.ts +4 -2
- package/.pikku/http/pikku-http-types.gen.ts +147 -0
- package/.pikku/mcp/pikku-mcp-types.gen.ts +183 -0
- package/.pikku/pikku-bootstrap.gen.ts +2 -9
- package/.pikku/pikku-meta-service.gen.ts +10 -0
- package/.pikku/pikku-services.gen.ts +10 -3
- package/.pikku/pikku-types.gen.ts +1 -1
- package/.pikku/queue/pikku-queue-types.gen.ts +27 -0
- package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +212 -194
- package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +221 -202
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +27 -0
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +6 -0
- package/.pikku/scheduler/pikku-scheduler-types.gen.ts +25 -0
- package/.pikku/schemas/register.gen.ts +69 -65
- package/.pikku/schemas/schemas/SleepInput.schema.json +1 -0
- package/.pikku/secrets/pikku-secret-types.gen.ts +1 -1
- package/.pikku/secrets/pikku-secrets.gen.ts +1 -1
- package/.pikku/trigger/pikku-trigger-types.gen.ts +1 -1
- package/.pikku/variables/pikku-variable-types.gen.ts +1 -1
- package/.pikku/variables/pikku-variables.gen.ts +1 -1
- package/.pikku/workflow/pikku-workflow-map.gen.d.ts +9 -5
- package/.pikku/workflow/pikku-workflow-types.gen.ts +66 -57
- package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +1 -1
- package/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +18 -2
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.js +25 -2
- package/dist/.pikku/addon/pikku-addon-types.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.ts +30 -3
- package/dist/.pikku/addon/pikku-package.gen.js +2 -1
- package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-package.gen.ts +3 -1
- package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +2 -14
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +6 -6
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.ts +13 -7
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +112 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +1 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.js +60 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.js.map +1 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.ts +177 -0
- package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +78 -0
- package/dist/.pikku/cli/pikku-cli-types.gen.d.ts.map +1 -0
- package/dist/.pikku/cli/pikku-cli-types.gen.js +61 -0
- package/dist/.pikku/cli/pikku-cli-types.gen.js.map +1 -0
- package/dist/.pikku/cli/pikku-cli-types.gen.ts +105 -0
- package/dist/.pikku/console/pikku-addon-meta.gen.json +281 -0
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +2 -2
- package/dist/.pikku/console/pikku-node-types.gen.d.ts.map +1 -1
- package/dist/.pikku/console/pikku-node-types.gen.ts +2 -2
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +56 -30
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +31 -19
- package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.ts +70 -34
- package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +274 -196
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +160 -144
- package/dist/.pikku/function/pikku-functions-meta.gen.ts +1 -1
- package/dist/.pikku/function/pikku-functions.gen.js +4 -2
- package/dist/.pikku/function/pikku-functions.gen.js.map +1 -1
- package/dist/.pikku/function/pikku-functions.gen.ts +4 -2
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +120 -0
- package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -0
- package/dist/.pikku/http/pikku-http-types.gen.js +72 -0
- package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -0
- package/dist/.pikku/http/pikku-http-types.gen.ts +147 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +131 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +38 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +1 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +183 -0
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +4 -2
- package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +2 -10
- package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.ts +2 -9
- package/dist/.pikku/pikku-meta-service.gen.d.ts +8 -0
- package/dist/.pikku/pikku-meta-service.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-meta-service.gen.js +10 -0
- package/dist/.pikku/pikku-meta-service.gen.js.map +1 -0
- package/dist/.pikku/pikku-meta-service.gen.ts +10 -0
- package/dist/.pikku/pikku-services.gen.d.ts +8 -3
- package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-services.gen.js +7 -1
- package/dist/.pikku/pikku-services.gen.js.map +1 -1
- package/dist/.pikku/pikku-services.gen.ts +10 -3
- package/dist/.pikku/pikku-types.gen.d.ts +1 -1
- package/dist/.pikku/pikku-types.gen.js +1 -1
- package/dist/.pikku/pikku-types.gen.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +24 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +1 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.js +17 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.js.map +1 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.ts +27 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +212 -194
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +221 -202
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +2 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +7 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +27 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +6 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +22 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +1 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +17 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +1 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +25 -0
- package/dist/.pikku/schemas/register.gen.js +35 -33
- package/dist/.pikku/schemas/register.gen.js.map +1 -1
- package/dist/.pikku/schemas/register.gen.ts +69 -65
- package/dist/.pikku/schemas/schemas/SleepInput.schema.json +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.ts +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.ts +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.ts +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +9 -5
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +36 -27
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +5 -18
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +66 -57
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
- package/dist/src/functions/data/jwt.function.d.ts.map +1 -1
- package/dist/src/functions/data/jwt.function.js +3 -2
- package/dist/src/functions/data/jwt.function.js.map +1 -1
- package/dist/src/functions/data/sleep.function.d.ts +16 -0
- package/dist/src/functions/data/sleep.function.d.ts.map +1 -0
- package/dist/src/functions/data/sleep.function.js +18 -0
- package/dist/src/functions/data/sleep.function.js.map +1 -0
- package/package.json +3 -2
- package/.pikku/agent/pikku-agent-wirings-meta.gen.json +0 -3
- package/.pikku/agent/pikku-agent-wirings-meta.gen.ts +0 -7
- package/.pikku/agent/pikku-agent-wirings.gen.ts +0 -3
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts +0 -2
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js +0 -7
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js.map +0 -1
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.json +0 -3
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.ts +0 -7
- package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts +0 -5
- package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts.map +0 -1
- package/dist/.pikku/agent/pikku-agent-wirings.gen.js +0 -5
- package/dist/.pikku/agent/pikku-agent-wirings.gen.js.map +0 -1
- package/dist/.pikku/agent/pikku-agent-wirings.gen.ts +0 -3
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.19
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
|
|
6
|
+
* CLI-specific type definitions for tree-shaking optimization
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { CoreCLI, wireCLI as wireCLICore, CorePikkuCLIRender, CoreCLICommandConfig, defineCLICommands as defineCLICommandsCore } from '@pikku/core/cli'
|
|
10
|
+
import type { PikkuFunctionConfig, PikkuMiddleware } from '../function/pikku-function-types.gen.js'
|
|
11
|
+
import type { UserSession } from '../../types/application-types.d.js'
|
|
12
|
+
import type { SingletonServices } from '../../types/application-types.d.js'
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
type Session = UserSession
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Type-safe CLI renderer definition that can access your application's services.
|
|
19
|
+
* Use this to define custom renderers for CLI command output.
|
|
20
|
+
*
|
|
21
|
+
* @template Data - The output data type from the CLI command
|
|
22
|
+
* @template RequiredServices - The services required for this renderer
|
|
23
|
+
*/
|
|
24
|
+
type PikkuCLIRender<Data, RequiredServices extends SingletonServices = SingletonServices> = CorePikkuCLIRender<Data, RequiredServices, Session>
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Creates a type-safe CLI renderer with access to your application's singleton services.
|
|
28
|
+
* The renderer receives the full singleton services and output data to format and display results.
|
|
29
|
+
*
|
|
30
|
+
* @template Data - The output data type from the CLI command
|
|
31
|
+
* @template RequiredServices - The minimum services required for type checking (defaults to SingletonServices)
|
|
32
|
+
* @param render - Function that receives singleton services and data to render output
|
|
33
|
+
* @returns A CLI renderer configuration
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```typescript
|
|
37
|
+
* const myRenderer = pikkuCLIRender<MyData>(({ logger }, data) => {
|
|
38
|
+
* logger.info(data.message)
|
|
39
|
+
* })
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export const pikkuCLIRender = <Data, RequiredServices extends SingletonServices = SingletonServices>(
|
|
43
|
+
render: (services: SingletonServices, data: Data) => void | Promise<void>
|
|
44
|
+
): PikkuCLIRender<Data, RequiredServices> => {
|
|
45
|
+
return render as any
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* CLI command configuration with project-specific types.
|
|
50
|
+
* Uses CoreCLICommandConfig from @pikku/core with local middleware and render types.
|
|
51
|
+
*/
|
|
52
|
+
type CLICommandConfig<Func extends PikkuFunctionConfig<In, Out, 'cli' | 'rpc' | 'session'>, In = any, Out = any, Params extends string = string> = CoreCLICommandConfig<Func, PikkuMiddleware, PikkuCLIRender<any>, Params>
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Type definition for CLI applications with commands and global options.
|
|
56
|
+
*
|
|
57
|
+
* @template Commands - Type describing the command structure
|
|
58
|
+
* @template GlobalOptions - Type for global CLI options
|
|
59
|
+
*/
|
|
60
|
+
type CLIWiring<Commands extends Record<string, CoreCLICommandConfig<any, PikkuMiddleware, PikkuCLIRender<any>, any>>, GlobalOptions> = CoreCLI<Commands, GlobalOptions, PikkuMiddleware, PikkuCLIRender<any>>
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Registers a CLI application with the Pikku framework.
|
|
64
|
+
* Creates command-line interfaces with type-safe commands and options.
|
|
65
|
+
*
|
|
66
|
+
* @template Commands - Type describing the command structure
|
|
67
|
+
* @template GlobalOptions - Type for global CLI options
|
|
68
|
+
* @param cli - CLI definition with program name, commands, and global options
|
|
69
|
+
*/
|
|
70
|
+
export const wireCLI = <Commands extends Record<string, CoreCLICommandConfig<any, PikkuMiddleware, PikkuCLIRender<any>, any>>, GlobalOptions>(
|
|
71
|
+
cli: CLIWiring<Commands, GlobalOptions>
|
|
72
|
+
) => {
|
|
73
|
+
wireCLICore(cli as any)
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Creates a CLI command definition with automatic option inference from the function's input type.
|
|
78
|
+
* This allows TypeScript to automatically derive CLI options from the function signature.
|
|
79
|
+
*
|
|
80
|
+
* @template FuncConfig - The Pikku function config type
|
|
81
|
+
* @template Params - The parameters string literal type
|
|
82
|
+
* @param config - CLI command configuration
|
|
83
|
+
* @returns CLI command configuration with inferred types
|
|
84
|
+
*/
|
|
85
|
+
export const pikkuCLICommand = <
|
|
86
|
+
FuncConfig extends PikkuFunctionConfig<any, any, 'cli' | 'rpc' | 'session'>,
|
|
87
|
+
Params extends string
|
|
88
|
+
>(
|
|
89
|
+
config: CLICommandConfig<FuncConfig, any, any, Params>
|
|
90
|
+
): CoreCLICommandConfig<FuncConfig, PikkuMiddleware, PikkuCLIRender<any>, string> => {
|
|
91
|
+
return config as any
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Type-safe helper for defining CLI commands that can be composed and spread into wireCLI.
|
|
96
|
+
*
|
|
97
|
+
* @template T - Record of CLI command configurations
|
|
98
|
+
* @param commands - The CLI commands record
|
|
99
|
+
* @returns The same commands record (identity function for type safety)
|
|
100
|
+
*/
|
|
101
|
+
export const defineCLICommands = <T extends Record<string, CoreCLICommandConfig<any, PikkuMiddleware, PikkuCLIRender<any>, any>>>(
|
|
102
|
+
commands: T
|
|
103
|
+
): T => {
|
|
104
|
+
return defineCLICommandsCore(commands as any) as T
|
|
105
|
+
}
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
{
|
|
2
|
+
"nodes": {
|
|
3
|
+
"aggregate": {
|
|
4
|
+
"name": "aggregate",
|
|
5
|
+
"displayName": "Aggregate",
|
|
6
|
+
"category": "Array",
|
|
7
|
+
"type": "action",
|
|
8
|
+
"rpc": "aggregate",
|
|
9
|
+
"description": "Combine a field from many items into a list in a single item",
|
|
10
|
+
"errorOutput": false,
|
|
11
|
+
"inputSchemaName": "AggregateInput",
|
|
12
|
+
"outputSchemaName": "AggregateOutput"
|
|
13
|
+
},
|
|
14
|
+
"chunk": {
|
|
15
|
+
"name": "chunk",
|
|
16
|
+
"displayName": "Chunk",
|
|
17
|
+
"category": "Array",
|
|
18
|
+
"type": "action",
|
|
19
|
+
"rpc": "chunk",
|
|
20
|
+
"description": "Split array into chunks of specified size",
|
|
21
|
+
"errorOutput": false,
|
|
22
|
+
"inputSchemaName": "ChunkInput",
|
|
23
|
+
"outputSchemaName": "ChunkOutput"
|
|
24
|
+
},
|
|
25
|
+
"find": {
|
|
26
|
+
"name": "find",
|
|
27
|
+
"displayName": "Find",
|
|
28
|
+
"category": "Array",
|
|
29
|
+
"type": "action",
|
|
30
|
+
"rpc": "find",
|
|
31
|
+
"description": "Find the first item matching a field value",
|
|
32
|
+
"errorOutput": false,
|
|
33
|
+
"inputSchemaName": "FindInput",
|
|
34
|
+
"outputSchemaName": "FindOutput"
|
|
35
|
+
},
|
|
36
|
+
"groupBy": {
|
|
37
|
+
"name": "groupBy",
|
|
38
|
+
"displayName": "Group By",
|
|
39
|
+
"category": "Array",
|
|
40
|
+
"type": "action",
|
|
41
|
+
"rpc": "groupBy",
|
|
42
|
+
"description": "Group items by a field value",
|
|
43
|
+
"errorOutput": false,
|
|
44
|
+
"inputSchemaName": "GroupByInput",
|
|
45
|
+
"outputSchemaName": "GroupByOutput"
|
|
46
|
+
},
|
|
47
|
+
"limit": {
|
|
48
|
+
"name": "limit",
|
|
49
|
+
"displayName": "Limit",
|
|
50
|
+
"category": "Array",
|
|
51
|
+
"type": "action",
|
|
52
|
+
"rpc": "limit",
|
|
53
|
+
"description": "Restrict the number of items",
|
|
54
|
+
"errorOutput": false,
|
|
55
|
+
"inputSchemaName": "LimitInput",
|
|
56
|
+
"outputSchemaName": "LimitOutput"
|
|
57
|
+
},
|
|
58
|
+
"removeDuplicates": {
|
|
59
|
+
"name": "removeDuplicates",
|
|
60
|
+
"displayName": "Remove Duplicates",
|
|
61
|
+
"category": "Array",
|
|
62
|
+
"type": "action",
|
|
63
|
+
"rpc": "removeDuplicates",
|
|
64
|
+
"description": "Delete items with matching field values",
|
|
65
|
+
"errorOutput": false,
|
|
66
|
+
"inputSchemaName": "RemoveDuplicatesInput",
|
|
67
|
+
"outputSchemaName": "RemoveDuplicatesOutput"
|
|
68
|
+
},
|
|
69
|
+
"reverse": {
|
|
70
|
+
"name": "reverse",
|
|
71
|
+
"displayName": "Reverse",
|
|
72
|
+
"category": "Array",
|
|
73
|
+
"type": "action",
|
|
74
|
+
"rpc": "reverse",
|
|
75
|
+
"description": "Reverse the order of items in an array",
|
|
76
|
+
"errorOutput": false,
|
|
77
|
+
"inputSchemaName": "ReverseInput",
|
|
78
|
+
"outputSchemaName": "ReverseOutput"
|
|
79
|
+
},
|
|
80
|
+
"sort": {
|
|
81
|
+
"name": "sort",
|
|
82
|
+
"displayName": "Sort",
|
|
83
|
+
"category": "Array",
|
|
84
|
+
"type": "action",
|
|
85
|
+
"rpc": "sort",
|
|
86
|
+
"description": "Change items order",
|
|
87
|
+
"errorOutput": false,
|
|
88
|
+
"inputSchemaName": "SortInput",
|
|
89
|
+
"outputSchemaName": "SortOutput"
|
|
90
|
+
},
|
|
91
|
+
"splitOut": {
|
|
92
|
+
"name": "splitOut",
|
|
93
|
+
"displayName": "Split Out",
|
|
94
|
+
"category": "Array",
|
|
95
|
+
"type": "action",
|
|
96
|
+
"rpc": "splitOut",
|
|
97
|
+
"description": "Turn a list inside item(s) into separate items",
|
|
98
|
+
"errorOutput": false,
|
|
99
|
+
"inputSchemaName": "SplitOutInput",
|
|
100
|
+
"outputSchemaName": "SplitOutOutput"
|
|
101
|
+
},
|
|
102
|
+
"summarize": {
|
|
103
|
+
"name": "summarize",
|
|
104
|
+
"displayName": "Summarize",
|
|
105
|
+
"category": "Array",
|
|
106
|
+
"type": "action",
|
|
107
|
+
"rpc": "summarize",
|
|
108
|
+
"description": "Sum, count, max, etc. across items",
|
|
109
|
+
"errorOutput": false,
|
|
110
|
+
"inputSchemaName": "SummarizeInput",
|
|
111
|
+
"outputSchemaName": "SummarizeOutput"
|
|
112
|
+
},
|
|
113
|
+
"unique": {
|
|
114
|
+
"name": "unique",
|
|
115
|
+
"displayName": "Unique",
|
|
116
|
+
"category": "Array",
|
|
117
|
+
"type": "action",
|
|
118
|
+
"rpc": "unique",
|
|
119
|
+
"description": "Get unique values from an array",
|
|
120
|
+
"errorOutput": false,
|
|
121
|
+
"inputSchemaName": "UniqueInput",
|
|
122
|
+
"outputSchemaName": "UniqueOutput"
|
|
123
|
+
},
|
|
124
|
+
"coalesce": {
|
|
125
|
+
"name": "coalesce",
|
|
126
|
+
"displayName": "Coalesce",
|
|
127
|
+
"category": "Data",
|
|
128
|
+
"type": "action",
|
|
129
|
+
"rpc": "coalesce",
|
|
130
|
+
"description": "Return the first non-null value",
|
|
131
|
+
"errorOutput": false,
|
|
132
|
+
"inputSchemaName": "CoalesceInput",
|
|
133
|
+
"outputSchemaName": "CoalesceOutput"
|
|
134
|
+
},
|
|
135
|
+
"crypto": {
|
|
136
|
+
"name": "crypto",
|
|
137
|
+
"displayName": "Crypto",
|
|
138
|
+
"category": "Data",
|
|
139
|
+
"type": "action",
|
|
140
|
+
"rpc": "crypto",
|
|
141
|
+
"description": "Provide cryptographic utilities",
|
|
142
|
+
"errorOutput": false,
|
|
143
|
+
"inputSchemaName": "CryptoInput",
|
|
144
|
+
"outputSchemaName": "CryptoOutput"
|
|
145
|
+
},
|
|
146
|
+
"dateTime": {
|
|
147
|
+
"name": "dateTime",
|
|
148
|
+
"displayName": "Date & Time",
|
|
149
|
+
"category": "Data",
|
|
150
|
+
"type": "action",
|
|
151
|
+
"rpc": "dateTime",
|
|
152
|
+
"description": "Manipulate date and time values",
|
|
153
|
+
"errorOutput": false,
|
|
154
|
+
"inputSchemaName": "DateTimeInput",
|
|
155
|
+
"outputSchemaName": "DateTimeOutput"
|
|
156
|
+
},
|
|
157
|
+
"jwtSign": {
|
|
158
|
+
"name": "jwtSign",
|
|
159
|
+
"displayName": "JWT Sign",
|
|
160
|
+
"category": "Data",
|
|
161
|
+
"type": "action",
|
|
162
|
+
"rpc": "jwtSign",
|
|
163
|
+
"description": "Sign a payload into a JWT token",
|
|
164
|
+
"errorOutput": false,
|
|
165
|
+
"inputSchemaName": "JwtSignInput",
|
|
166
|
+
"outputSchemaName": "JwtSignOutput"
|
|
167
|
+
},
|
|
168
|
+
"jwtDecode": {
|
|
169
|
+
"name": "jwtDecode",
|
|
170
|
+
"displayName": "JWT Decode",
|
|
171
|
+
"category": "Data",
|
|
172
|
+
"type": "action",
|
|
173
|
+
"rpc": "jwtDecode",
|
|
174
|
+
"description": "Decode a JWT token into its payload",
|
|
175
|
+
"errorOutput": false,
|
|
176
|
+
"inputSchemaName": "JwtDecodeInput",
|
|
177
|
+
"outputSchemaName": "JwtDecodeOutput"
|
|
178
|
+
},
|
|
179
|
+
"math": {
|
|
180
|
+
"name": "math",
|
|
181
|
+
"displayName": "Math",
|
|
182
|
+
"category": "Data",
|
|
183
|
+
"type": "action",
|
|
184
|
+
"rpc": "math",
|
|
185
|
+
"description": "Perform math operations",
|
|
186
|
+
"errorOutput": false,
|
|
187
|
+
"inputSchemaName": "MathInput",
|
|
188
|
+
"outputSchemaName": "MathOutput"
|
|
189
|
+
},
|
|
190
|
+
"sleep": {
|
|
191
|
+
"name": "sleep",
|
|
192
|
+
"displayName": "Sleep",
|
|
193
|
+
"category": "Data",
|
|
194
|
+
"type": "action",
|
|
195
|
+
"rpc": "sleep",
|
|
196
|
+
"description": "Sleep for a specified duration before continuing",
|
|
197
|
+
"errorOutput": false,
|
|
198
|
+
"inputSchemaName": "SleepInput",
|
|
199
|
+
"outputSchemaName": null
|
|
200
|
+
},
|
|
201
|
+
"stringTransform": {
|
|
202
|
+
"name": "stringTransform",
|
|
203
|
+
"displayName": "String Transform",
|
|
204
|
+
"category": "Data",
|
|
205
|
+
"type": "action",
|
|
206
|
+
"rpc": "stringTransform",
|
|
207
|
+
"description": "Transform strings (case, trim, split, replace, etc.)",
|
|
208
|
+
"errorOutput": false,
|
|
209
|
+
"inputSchemaName": "StringTransformInput",
|
|
210
|
+
"outputSchemaName": "StringTransformOutput"
|
|
211
|
+
},
|
|
212
|
+
"typeConvert": {
|
|
213
|
+
"name": "typeConvert",
|
|
214
|
+
"displayName": "Type Convert",
|
|
215
|
+
"category": "Data",
|
|
216
|
+
"type": "action",
|
|
217
|
+
"rpc": "typeConvert",
|
|
218
|
+
"description": "Convert between types (string, number, boolean, json, array)",
|
|
219
|
+
"errorOutput": false,
|
|
220
|
+
"inputSchemaName": "TypeConvertInput",
|
|
221
|
+
"outputSchemaName": "TypeConvertOutput"
|
|
222
|
+
},
|
|
223
|
+
"editFields": {
|
|
224
|
+
"name": "editFields",
|
|
225
|
+
"displayName": "Edit Fields",
|
|
226
|
+
"category": "Transform",
|
|
227
|
+
"type": "action",
|
|
228
|
+
"rpc": "editFields",
|
|
229
|
+
"description": "Modify, add, or remove item fields",
|
|
230
|
+
"errorOutput": false,
|
|
231
|
+
"inputSchemaName": "EditFieldsInput",
|
|
232
|
+
"outputSchemaName": "EditFieldsOutput"
|
|
233
|
+
},
|
|
234
|
+
"merge": {
|
|
235
|
+
"name": "merge",
|
|
236
|
+
"displayName": "Merge",
|
|
237
|
+
"category": "Transform",
|
|
238
|
+
"type": "action",
|
|
239
|
+
"rpc": "merge",
|
|
240
|
+
"description": "Merge multiple objects into one",
|
|
241
|
+
"errorOutput": false,
|
|
242
|
+
"inputSchemaName": "MergeInput",
|
|
243
|
+
"outputSchemaName": "MergeOutput"
|
|
244
|
+
},
|
|
245
|
+
"omit": {
|
|
246
|
+
"name": "omit",
|
|
247
|
+
"displayName": "Omit",
|
|
248
|
+
"category": "Transform",
|
|
249
|
+
"type": "action",
|
|
250
|
+
"rpc": "omit",
|
|
251
|
+
"description": "Remove specified fields from an object",
|
|
252
|
+
"errorOutput": false,
|
|
253
|
+
"inputSchemaName": "OmitInput",
|
|
254
|
+
"outputSchemaName": "OmitOutput"
|
|
255
|
+
},
|
|
256
|
+
"pick": {
|
|
257
|
+
"name": "pick",
|
|
258
|
+
"displayName": "Pick",
|
|
259
|
+
"category": "Transform",
|
|
260
|
+
"type": "action",
|
|
261
|
+
"rpc": "pick",
|
|
262
|
+
"description": "Keep only specified fields from an object",
|
|
263
|
+
"errorOutput": false,
|
|
264
|
+
"inputSchemaName": "PickInput",
|
|
265
|
+
"outputSchemaName": "PickOutput"
|
|
266
|
+
},
|
|
267
|
+
"renameKeys": {
|
|
268
|
+
"name": "renameKeys",
|
|
269
|
+
"displayName": "Rename Keys",
|
|
270
|
+
"category": "Transform",
|
|
271
|
+
"type": "action",
|
|
272
|
+
"rpc": "renameKeys",
|
|
273
|
+
"description": "Update item field names",
|
|
274
|
+
"errorOutput": false,
|
|
275
|
+
"inputSchemaName": "RenameKeysInput",
|
|
276
|
+
"outputSchemaName": "RenameKeysOutput"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"secrets": {},
|
|
280
|
+
"package": {}
|
|
281
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.19
|
|
3
3
|
*/
|
|
4
4
|
import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.js';
|
|
5
|
-
export type NodeCategory =
|
|
5
|
+
export type NodeCategory = never;
|
|
6
6
|
export type NodeRPCName = keyof FlattenedRPCMap;
|
|
7
7
|
//# sourceMappingURL=pikku-node-types.gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-node-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/console/pikku-node-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAA;AAEnF,MAAM,MAAM,YAAY,GAAG,
|
|
1
|
+
{"version":3,"file":"pikku-node-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/console/pikku-node-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAA;AAEnF,MAAM,MAAM,YAAY,GAAG,KAAK,CAAA;AAEhC,MAAM,MAAM,WAAW,GAAG,MAAM,eAAe,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.19
|
|
3
3
|
*/
|
|
4
4
|
import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.js'
|
|
5
5
|
|
|
6
|
-
export type NodeCategory =
|
|
6
|
+
export type NodeCategory = never
|
|
7
7
|
|
|
8
8
|
export type NodeRPCName = keyof FlattenedRPCMap
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.19
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Core function, middleware, and permission types for all wirings
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import type { CorePikkuMiddleware, CorePermissionGroup, PikkuWire, PickRequired } from '@pikku/core';
|
|
8
|
+
import type { CorePikkuFunctionConfig, CorePikkuAuth, CorePikkuAuthConfig, CorePikkuPermission } from '@pikku/core/function';
|
|
8
9
|
import { CreateWireServices } from '@pikku/core/internal';
|
|
10
|
+
import { PikkuError } from '@pikku/core/errors';
|
|
9
11
|
import type { NodeType } from '@pikku/core/node';
|
|
10
12
|
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
11
13
|
import { CorePikkuFunction, CorePikkuFunctionSessionless } from '@pikku/core/function';
|
|
@@ -24,7 +26,7 @@ export type Session = UserSession;
|
|
|
24
26
|
*/
|
|
25
27
|
export type NodeConfig = {
|
|
26
28
|
displayName: string;
|
|
27
|
-
category:
|
|
29
|
+
category: string;
|
|
28
30
|
type: NodeType;
|
|
29
31
|
errorOutput?: boolean;
|
|
30
32
|
};
|
|
@@ -184,6 +186,28 @@ export declare const pikkuMiddlewareFactory: <In = any>(factory: (input: In) =>
|
|
|
184
186
|
* ```
|
|
185
187
|
*/
|
|
186
188
|
export declare const pikkuPermissionFactory: <In = any>(factory: (input: In) => PikkuPermission<any>) => ((input: In) => PikkuPermission<any>);
|
|
189
|
+
/**
|
|
190
|
+
* A function that generates a human-readable description of a pending approval action.
|
|
191
|
+
* Used by AI agents to show meaningful approval prompts instead of raw tool arguments.
|
|
192
|
+
*
|
|
193
|
+
* @template In - The input type (same as the function it describes)
|
|
194
|
+
* @template RequiredServices - The services required for this description function
|
|
195
|
+
*/
|
|
196
|
+
export type PikkuApprovalDescription<In = unknown, RequiredServices extends Services = Services> = (services: RequiredServices, data: In) => Promise<string>;
|
|
197
|
+
/**
|
|
198
|
+
* Factory function for creating approval description functions with tree-shaking support.
|
|
199
|
+
*
|
|
200
|
+
* @example
|
|
201
|
+
* ```typescript
|
|
202
|
+
* export const deleteTodoApproval = pikkuApprovalDescription(
|
|
203
|
+
* async ({ todoStore }, { id }) => {
|
|
204
|
+
* const todo = await todoStore.get(id)
|
|
205
|
+
* return \`Delete todo: "${todo.title}"\`
|
|
206
|
+
* }
|
|
207
|
+
* )
|
|
208
|
+
* ```
|
|
209
|
+
*/
|
|
210
|
+
export declare const pikkuApprovalDescription: <In = unknown, RequiredServices extends Services = Services>(fn: PikkuApprovalDescription<In, RequiredServices>) => PikkuApprovalDescription<In, RequiredServices>;
|
|
187
211
|
/**
|
|
188
212
|
* A sessionless API function that doesn't require user authentication.
|
|
189
213
|
* Use this for public endpoints, health checks, or operations that don't need user context.
|
|
@@ -220,19 +244,22 @@ export type PikkuFunctionConfig<In = unknown, Out = unknown, RequiredWires exten
|
|
|
220
244
|
* Use this when you want to define input/output schemas using Zod.
|
|
221
245
|
* Types are automatically inferred from the schemas.
|
|
222
246
|
*/
|
|
223
|
-
export type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never> = {
|
|
247
|
+
export type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never> = {
|
|
224
248
|
name?: string;
|
|
225
249
|
tags?: string[];
|
|
226
250
|
expose?: boolean;
|
|
227
251
|
mcp?: boolean;
|
|
228
252
|
internal?: boolean;
|
|
229
|
-
|
|
253
|
+
approvalRequired?: boolean;
|
|
254
|
+
approvalDescription?: InputSchema extends StandardSchemaV1 ? PikkuApprovalDescription<InferSchemaOutput<InputSchema>> : never;
|
|
255
|
+
func: PikkuFunction<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, RequiredWires> | PikkuFunctionSessionless<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, RequiredWires>;
|
|
230
256
|
auth?: boolean;
|
|
231
|
-
permissions?: CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema
|
|
257
|
+
permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined;
|
|
232
258
|
middleware?: PikkuMiddleware[];
|
|
233
|
-
input
|
|
259
|
+
input?: InputSchema;
|
|
234
260
|
output?: OutputSchema;
|
|
235
261
|
node?: NodeConfig;
|
|
262
|
+
errors?: Array<typeof PikkuError>;
|
|
236
263
|
};
|
|
237
264
|
/**
|
|
238
265
|
* Creates a Pikku function that can be either session-aware or sessionless.
|
|
@@ -272,12 +299,12 @@ export type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1,
|
|
|
272
299
|
* })
|
|
273
300
|
* ```
|
|
274
301
|
*/
|
|
275
|
-
export declare function pikkuFunc<InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuFunctionConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc'>): PikkuFunctionConfig<InferSchemaOutput<InputSchema
|
|
302
|
+
export declare function pikkuFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuFunctionConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc'>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>;
|
|
276
303
|
export declare function pikkuFunc<In, Out = unknown>(func: PikkuFunction<In, Out, 'session' | 'rpc'> | PikkuFunctionConfig<In, Out, 'session' | 'rpc'>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
|
|
277
304
|
/**
|
|
278
305
|
* Configuration object for sessionless Pikku functions with Zod schema validation.
|
|
279
306
|
*/
|
|
280
|
-
export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never> = {
|
|
307
|
+
export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never> = {
|
|
281
308
|
name?: string;
|
|
282
309
|
description?: string;
|
|
283
310
|
tags?: string[];
|
|
@@ -285,13 +312,16 @@ export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends Standar
|
|
|
285
312
|
mcp?: boolean;
|
|
286
313
|
internal?: boolean;
|
|
287
314
|
remote?: boolean;
|
|
288
|
-
|
|
315
|
+
approvalRequired?: boolean;
|
|
316
|
+
approvalDescription?: InputSchema extends StandardSchemaV1 ? PikkuApprovalDescription<InferSchemaOutput<InputSchema>> : never;
|
|
317
|
+
func: PikkuFunctionSessionless<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, RequiredWires>;
|
|
289
318
|
auth?: boolean;
|
|
290
|
-
permissions?: CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema
|
|
319
|
+
permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined;
|
|
291
320
|
middleware?: PikkuMiddleware[];
|
|
292
|
-
input
|
|
321
|
+
input?: InputSchema;
|
|
293
322
|
output?: OutputSchema;
|
|
294
323
|
node?: NodeConfig;
|
|
324
|
+
errors?: Array<typeof PikkuError>;
|
|
295
325
|
};
|
|
296
326
|
/**
|
|
297
327
|
* Creates a sessionless Pikku function that doesn't require user authentication.
|
|
@@ -328,7 +358,7 @@ export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends Standar
|
|
|
328
358
|
* })
|
|
329
359
|
* ```
|
|
330
360
|
*/
|
|
331
|
-
export declare function pikkuSessionlessFunc<InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuFunctionSessionlessConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc'>): PikkuFunctionConfig<InferSchemaOutput<InputSchema
|
|
361
|
+
export declare function pikkuSessionlessFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuFunctionSessionlessConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc'>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>;
|
|
332
362
|
export declare function pikkuSessionlessFunc<In, Out = unknown>(func: PikkuFunctionSessionless<In, Out, 'session' | 'rpc'> | PikkuFunctionConfig<In, Out, 'session' | 'rpc'>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
|
|
333
363
|
/**
|
|
334
364
|
* Creates a function that takes no input and returns no output.
|
|
@@ -348,27 +378,23 @@ export declare function pikkuSessionlessFunc<In, Out = unknown>(func: PikkuFunct
|
|
|
348
378
|
*/
|
|
349
379
|
export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void, "session" | "rpc"> | PikkuFunctionConfig<void, void, "session" | "rpc">) => PikkuFunctionConfig<void, void, "rpc" | "session", PikkuFunctionSessionless<void, void, "rpc" | "session", Services> | PikkuFunction<void, void, "rpc" | "session", Services>, undefined, undefined>;
|
|
350
380
|
/**
|
|
351
|
-
*
|
|
352
|
-
*
|
|
353
|
-
* without type compatibility issues.
|
|
381
|
+
* References a registered function by name for use in any wiring.
|
|
382
|
+
* Works for both local and addon functions — resolves via RPC at runtime.
|
|
354
383
|
*
|
|
355
|
-
* @template Name - The
|
|
356
|
-
* @param rpcName - The name of the
|
|
357
|
-
* @returns A Pikku function that proxies calls
|
|
384
|
+
* @template Name - The function name (must be a key in FlattenedRPCMap)
|
|
385
|
+
* @param rpcName - The name of the function to reference
|
|
386
|
+
* @returns A Pikku function config that proxies calls via RPC
|
|
358
387
|
*
|
|
359
388
|
* @example
|
|
360
389
|
* ```typescript
|
|
361
|
-
* //
|
|
362
|
-
*
|
|
363
|
-
*
|
|
364
|
-
*
|
|
365
|
-
*
|
|
366
|
-
* func: addon('ext:hello'),
|
|
367
|
-
* tags: ['addon'],
|
|
368
|
-
* })
|
|
390
|
+
* // Use in agent tools
|
|
391
|
+
* tools: [ref('todos:listTodos'), ref('myLocalFunc')]
|
|
392
|
+
*
|
|
393
|
+
* // Use in HTTP wiring
|
|
394
|
+
* wireHTTP({ route: '/greet', method: 'post', func: ref('greet') })
|
|
369
395
|
* ```
|
|
370
396
|
*/
|
|
371
|
-
export declare const
|
|
397
|
+
export declare const ref: <Name extends keyof FlattenedRPCMap>(rpcName: Name) => PikkuFunctionConfig<FlattenedRPCMap[Name]["input"], FlattenedRPCMap[Name]["output"], "session" | "rpc">;
|
|
372
398
|
/**
|
|
373
399
|
* Creates a Pikku config factory.
|
|
374
400
|
* Use this to define your application's configuration factory.
|
|
@@ -472,6 +498,6 @@ export declare const addMiddleware: (tag: string, middleware: PikkuMiddleware[])
|
|
|
472
498
|
* ```
|
|
473
499
|
*/
|
|
474
500
|
export declare const addPermission: <In = unknown>(tag: string, permissions: CorePermissionGroup<PikkuPermission<In>> | PikkuPermission<In>[]) => void;
|
|
475
|
-
export { wireAddon } from '@pikku/core';
|
|
476
|
-
export type { WireAddonConfig } from '@pikku/core';
|
|
501
|
+
export { wireAddon } from '@pikku/core/rpc';
|
|
502
|
+
export type { WireAddonConfig } from '@pikku/core/rpc';
|
|
477
503
|
//# sourceMappingURL=pikku-function-types.gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-function-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/function/pikku-function-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"pikku-function-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/function/pikku-function-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AACpG,OAAO,KAAK,EAAE,uBAAuB,EAAE,aAAa,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAG5H,OAAO,EAA8B,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAE,iBAAiB,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAA;AAEtF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAA;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,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