@pikku/addon-execution 0.2.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 +105 -0
- package/.pikku/addon/pikku-package.gen.ts +9 -0
- package/.pikku/agent/pikku-agent-map.gen.d.ts +4 -0
- package/.pikku/agent/pikku-agent-types.gen.ts +82 -0
- package/.pikku/channel/pikku-channel-types.gen.ts +177 -0
- package/.pikku/console/pikku-addon-meta.gen.json +36 -0
- package/.pikku/console/pikku-node-types.gen.ts +8 -0
- package/.pikku/function/pikku-function-types.gen.ts +754 -0
- package/.pikku/function/pikku-functions-meta-verbose.gen.json +56 -0
- package/.pikku/function/pikku-functions-meta.gen.json +40 -0
- package/.pikku/function/pikku-functions-meta.gen.ts +7 -0
- package/.pikku/function/pikku-functions.gen.ts +10 -0
- 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 +8 -0
- package/.pikku/pikku-meta-service.gen.ts +10 -0
- package/.pikku/pikku-services.gen.ts +41 -0
- package/.pikku/pikku-types.gen.ts +21 -0
- package/.pikku/queue/pikku-queue-types.gen.ts +27 -0
- package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +128 -0
- package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +130 -0
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +4 -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 +19 -0
- package/.pikku/schemas/schemas/ExecuteInput.schema.json +1 -0
- package/.pikku/schemas/schemas/ExecuteOutput.schema.json +1 -0
- package/.pikku/schemas/schemas/SpawnCommandInput.schema.json +1 -0
- package/.pikku/schemas/schemas/SpawnCommandOutput.schema.json +1 -0
- package/.pikku/secrets/pikku-secret-types.gen.ts +5 -0
- package/.pikku/secrets/pikku-secrets-meta.gen.json +1 -0
- package/.pikku/secrets/pikku-secrets.gen.ts +21 -0
- package/.pikku/trigger/pikku-trigger-types.gen.ts +160 -0
- package/.pikku/variables/pikku-variable-types.gen.ts +5 -0
- package/.pikku/variables/pikku-variables-meta.gen.json +1 -0
- package/.pikku/variables/pikku-variables.gen.ts +21 -0
- package/.pikku/workflow/pikku-workflow-map.gen.d.ts +38 -0
- package/.pikku/workflow/pikku-workflow-types.gen.ts +167 -0
- package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +9 -0
- package/.pikku/workflow/pikku-workflow-wirings.gen.ts +3 -0
- package/README.md +16 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +65 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.js +78 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.js.map +1 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.ts +105 -0
- package/dist/.pikku/addon/pikku-package.gen.d.ts +2 -0
- package/dist/.pikku/addon/pikku-package.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/pikku-package.gen.js +9 -0
- package/dist/.pikku/addon/pikku-package.gen.js.map +1 -0
- package/dist/.pikku/addon/pikku-package.gen.ts +9 -0
- package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +4 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +47 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.js +18 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.ts +82 -0
- 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/console/pikku-addon-meta.gen.json +36 -0
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +7 -0
- package/dist/.pikku/console/pikku-node-types.gen.d.ts.map +1 -0
- package/dist/.pikku/console/pikku-node-types.gen.js +2 -0
- package/dist/.pikku/console/pikku-node-types.gen.js.map +1 -0
- package/dist/.pikku/console/pikku-node-types.gen.ts +8 -0
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +490 -0
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -0
- package/dist/.pikku/function/pikku-function-types.gen.js +334 -0
- package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-function-types.gen.ts +754 -0
- package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +56 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts +2 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.js +7 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.json +40 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.ts +7 -0
- package/dist/.pikku/function/pikku-functions.gen.d.ts +2 -0
- package/dist/.pikku/function/pikku-functions.gen.d.ts.map +1 -0
- package/dist/.pikku/function/pikku-functions.gen.js +10 -0
- package/dist/.pikku/function/pikku-functions.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-functions.gen.ts +10 -0
- 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 +9 -0
- package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-bootstrap.gen.js +9 -0
- package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -0
- package/dist/.pikku/pikku-bootstrap.gen.ts +8 -0
- 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 +34 -0
- package/dist/.pikku/pikku-services.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-services.gen.js +29 -0
- package/dist/.pikku/pikku-services.gen.js.map +1 -0
- package/dist/.pikku/pikku-services.gen.ts +41 -0
- package/dist/.pikku/pikku-types.gen.d.ts +12 -0
- package/dist/.pikku/pikku-types.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-types.gen.js +17 -0
- package/dist/.pikku/pikku-types.gen.js.map +1 -0
- package/dist/.pikku/pikku-types.gen.ts +21 -0
- 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 +128 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +130 -0
- 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 +4 -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.d.ts +2 -0
- package/dist/.pikku/schemas/register.gen.d.ts.map +1 -0
- package/dist/.pikku/schemas/register.gen.js +13 -0
- package/dist/.pikku/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/schemas/register.gen.ts +19 -0
- package/dist/.pikku/schemas/schemas/ExecuteInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ExecuteOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/SpawnCommandInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/SpawnCommandOutput.schema.json +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +6 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +5 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.ts +5 -0
- package/dist/.pikku/secrets/pikku-secrets-meta.gen.json +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +12 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.js +11 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.ts +21 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +114 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts.map +1 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +34 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js.map +1 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +160 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +6 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +1 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.js +5 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.js.map +1 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.ts +5 -0
- package/dist/.pikku/variables/pikku-variables-meta.gen.json +1 -0
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +12 -0
- package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -0
- package/dist/.pikku/variables/pikku-variables.gen.js +11 -0
- package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -0
- package/dist/.pikku/variables/pikku-variables.gen.ts +21 -0
- package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +38 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +90 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +18 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +167 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts +2 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +7 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +9 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +5 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +5 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +3 -0
- package/dist/src/functions/execute.function.d.ts +37 -0
- package/dist/src/functions/execute.function.d.ts.map +1 -0
- package/dist/src/functions/execute.function.js +31 -0
- package/dist/src/functions/execute.function.js.map +1 -0
- package/dist/src/functions/spawn.function.d.ts +41 -0
- package/dist/src/functions/spawn.function.d.ts.map +1 -0
- package/dist/src/functions/spawn.function.js +38 -0
- package/dist/src/functions/spawn.function.js.map +1 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +3 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/services.d.ts +2 -0
- package/dist/src/services.d.ts.map +1 -0
- package/dist/src/services.js +5 -0
- package/dist/src/services.js.map +1 -0
- package/package.json +39 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.55
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* MCP-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { wireMCPResource as wireMCPResourceCore, wireMCPPrompt as wireMCPPromptCore } from '@pikku/core/mcp';
|
|
8
|
+
/**
|
|
9
|
+
* Registers an MCP resource with the Pikku framework.
|
|
10
|
+
* Resources provide data that AI models can access.
|
|
11
|
+
*
|
|
12
|
+
* @template In - Input type for the resource request
|
|
13
|
+
* @template URI - URI template string for compile-time parameter validation
|
|
14
|
+
* @param mcpResource - MCP resource definition with data provider function
|
|
15
|
+
*/
|
|
16
|
+
export const wireMCPResource = (mcpResource) => {
|
|
17
|
+
wireMCPResourceCore(mcpResource);
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Registers an MCP prompt with the Pikku framework.
|
|
21
|
+
* Prompts provide templates that AI models can use.
|
|
22
|
+
*
|
|
23
|
+
* @template In - Input type for the prompt parameters
|
|
24
|
+
* @param mcpPrompt - MCP prompt definition with template function
|
|
25
|
+
*/
|
|
26
|
+
export const wireMCPPrompt = (mcpPrompt) => {
|
|
27
|
+
wireMCPPromptCore(mcpPrompt);
|
|
28
|
+
};
|
|
29
|
+
export function pikkuMCPPromptFunc(func) {
|
|
30
|
+
return typeof func === 'function' ? { func } : func;
|
|
31
|
+
}
|
|
32
|
+
export function pikkuMCPToolFunc(func) {
|
|
33
|
+
return typeof func === 'function' ? { func } : func;
|
|
34
|
+
}
|
|
35
|
+
export function pikkuMCPResourceFunc(func) {
|
|
36
|
+
return typeof func === 'function' ? { func } : func;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=pikku-mcp-types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-mcp-types.gen.js","sourceRoot":"","sources":["../../../.pikku/mcp/pikku-mcp-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAGL,eAAe,IAAI,mBAAmB,EACtC,aAAa,IAAI,iBAAiB,EAKnC,MAAM,iBAAiB,CAAA;AAqBxB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,WAA6E,EAC7E,EAAE;IACF,mBAAmB,CAAC,WAAkB,CAAC,CAAA;AACzC,CAAC,CAAA;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,SAA8B,EAC9B,EAAE;IACF,iBAAiB,CAAC,SAAgB,CAAC,CAAA;AACrC,CAAC,CAAA;AAkCD,MAAM,UAAU,kBAAkB,CAAC,IAAS;IAC1C,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC;AA8CD,MAAM,UAAU,gBAAgB,CAAC,IAAS;IACxC,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC;AAkCD,MAAM,UAAU,oBAAoB,CAAC,IAAS;IAC5C,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.55
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* MCP-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
CoreMCPResource,
|
|
10
|
+
CoreMCPPrompt,
|
|
11
|
+
wireMCPResource as wireMCPResourceCore,
|
|
12
|
+
wireMCPPrompt as wireMCPPromptCore,
|
|
13
|
+
MCPResourceResponse,
|
|
14
|
+
MCPToolResponse,
|
|
15
|
+
MCPPromptResponse,
|
|
16
|
+
AssertMCPResourceURIParams
|
|
17
|
+
} from '@pikku/core/mcp'
|
|
18
|
+
|
|
19
|
+
import type { PikkuFunctionConfig, PikkuFunctionSessionless, PikkuMiddleware, PikkuPermission, InferSchemaOutput } from '../function/pikku-function-types.gen.js'
|
|
20
|
+
import type { CorePermissionGroup } from '@pikku/core'
|
|
21
|
+
import type { StandardSchemaV1 } from '@standard-schema/spec'
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Type definition for MCP resources that provide data to AI models.
|
|
25
|
+
*
|
|
26
|
+
* @template In - Input type for the resource request
|
|
27
|
+
* @template URI - URI template string type for compile-time parameter validation
|
|
28
|
+
*/
|
|
29
|
+
type MCPResourceWiring<In, URI extends string> = CoreMCPResource<PikkuFunctionConfig<In, MCPResourceResponse, 'rpc' | 'session' | 'mcp'>> & { uri: URI }
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Type definition for MCP prompts that provide templates to AI models.
|
|
33
|
+
*
|
|
34
|
+
* @template In - Input type for the prompt parameters
|
|
35
|
+
*/
|
|
36
|
+
type MCPPromptWiring<In> = CoreMCPPrompt<PikkuFunctionConfig<In, MCPPromptResponse, 'rpc' | 'session' | 'mcp'>>
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Registers an MCP resource with the Pikku framework.
|
|
40
|
+
* Resources provide data that AI models can access.
|
|
41
|
+
*
|
|
42
|
+
* @template In - Input type for the resource request
|
|
43
|
+
* @template URI - URI template string for compile-time parameter validation
|
|
44
|
+
* @param mcpResource - MCP resource definition with data provider function
|
|
45
|
+
*/
|
|
46
|
+
export const wireMCPResource = <In, URI extends string>(
|
|
47
|
+
mcpResource: MCPResourceWiring<In, URI> & AssertMCPResourceURIParams<In, URI>
|
|
48
|
+
) => {
|
|
49
|
+
wireMCPResourceCore(mcpResource as any)
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Registers an MCP prompt with the Pikku framework.
|
|
54
|
+
* Prompts provide templates that AI models can use.
|
|
55
|
+
*
|
|
56
|
+
* @template In - Input type for the prompt parameters
|
|
57
|
+
* @param mcpPrompt - MCP prompt definition with template function
|
|
58
|
+
*/
|
|
59
|
+
export const wireMCPPrompt = <In>(
|
|
60
|
+
mcpPrompt: MCPPromptWiring<In>
|
|
61
|
+
) => {
|
|
62
|
+
wireMCPPromptCore(mcpPrompt as any)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Configuration for MCP prompt with Zod schema input validation.
|
|
67
|
+
*/
|
|
68
|
+
type MCPPromptFuncConfigWithSchema<InputSchema extends StandardSchemaV1> = {
|
|
69
|
+
func: PikkuFunctionSessionless<InferSchemaOutput<InputSchema>, MCPPromptResponse, 'mcp' | 'rpc'>
|
|
70
|
+
name?: string
|
|
71
|
+
input: InputSchema
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Creates a function for handling MCP prompt requests.
|
|
76
|
+
* These functions generate prompt templates for AI models.
|
|
77
|
+
*
|
|
78
|
+
* Supports two patterns:
|
|
79
|
+
* 1. Generic types: `pikkuMCPPromptFunc<Input>({ func: ... })`
|
|
80
|
+
* 2. Zod schemas: `pikkuMCPPromptFunc({ input: z.object(...), func: ... })`
|
|
81
|
+
*
|
|
82
|
+
* @template In - Input type for the prompt parameters (inferred from schema if provided)
|
|
83
|
+
* @param func - Function definition, either direct function or configuration object
|
|
84
|
+
* @returns The unwrapped function for internal use
|
|
85
|
+
*/
|
|
86
|
+
export function pikkuMCPPromptFunc<InputSchema extends StandardSchemaV1>(
|
|
87
|
+
config: MCPPromptFuncConfigWithSchema<InputSchema>
|
|
88
|
+
): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, MCPPromptResponse, 'mcp' | 'rpc'>
|
|
89
|
+
export function pikkuMCPPromptFunc<In>(
|
|
90
|
+
func:
|
|
91
|
+
| PikkuFunctionSessionless<In, MCPPromptResponse, 'mcp' | 'rpc'>
|
|
92
|
+
| {
|
|
93
|
+
func: PikkuFunctionSessionless<In, MCPPromptResponse, 'mcp' | 'rpc'>
|
|
94
|
+
name?: string
|
|
95
|
+
}
|
|
96
|
+
): PikkuFunctionConfig<In, MCPPromptResponse, 'mcp' | 'rpc'>
|
|
97
|
+
export function pikkuMCPPromptFunc(func: any): any {
|
|
98
|
+
return typeof func === 'function' ? { func } : func
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Configuration for MCP tool with Zod schema input validation.
|
|
103
|
+
*/
|
|
104
|
+
type MCPToolFuncConfigWithSchema<InputSchema extends StandardSchemaV1> = {
|
|
105
|
+
func: PikkuFunctionSessionless<InferSchemaOutput<InputSchema>, MCPToolResponse, 'mcp' | 'rpc'>
|
|
106
|
+
description?: string
|
|
107
|
+
tags?: string[]
|
|
108
|
+
title?: string
|
|
109
|
+
summary?: string
|
|
110
|
+
name?: string
|
|
111
|
+
middleware?: PikkuMiddleware[]
|
|
112
|
+
permissions?: CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>>
|
|
113
|
+
input: InputSchema
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Creates a function for handling MCP tool invocations.
|
|
118
|
+
* These functions perform actions that AI models can request.
|
|
119
|
+
*
|
|
120
|
+
* Supports two patterns:
|
|
121
|
+
* 1. Generic types: `pikkuMCPToolFunc<Input>({ func: ... })`
|
|
122
|
+
* 2. Zod schemas: `pikkuMCPToolFunc({ input: z.object(...), func: ... })`
|
|
123
|
+
*
|
|
124
|
+
* @template In - Input type for the tool invocation (inferred from schema if provided)
|
|
125
|
+
* @param func - Function definition, either direct function or configuration object
|
|
126
|
+
* @returns The unwrapped function for internal use
|
|
127
|
+
*/
|
|
128
|
+
export function pikkuMCPToolFunc<InputSchema extends StandardSchemaV1>(
|
|
129
|
+
config: MCPToolFuncConfigWithSchema<InputSchema>
|
|
130
|
+
): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, MCPToolResponse, 'mcp' | 'rpc'>
|
|
131
|
+
export function pikkuMCPToolFunc<In>(
|
|
132
|
+
func:
|
|
133
|
+
| PikkuFunctionSessionless<In, MCPToolResponse, 'mcp' | 'rpc'>
|
|
134
|
+
| {
|
|
135
|
+
func: PikkuFunctionSessionless<In, MCPToolResponse, 'mcp' | 'rpc'>
|
|
136
|
+
description?: string
|
|
137
|
+
tags?: string[]
|
|
138
|
+
title?: string
|
|
139
|
+
summary?: string
|
|
140
|
+
name?: string
|
|
141
|
+
middleware?: PikkuMiddleware[]
|
|
142
|
+
permissions?: CorePermissionGroup<PikkuPermission<In>>
|
|
143
|
+
}
|
|
144
|
+
): PikkuFunctionConfig<In, MCPToolResponse, 'mcp' | 'rpc'>
|
|
145
|
+
export function pikkuMCPToolFunc(func: any): any {
|
|
146
|
+
return typeof func === 'function' ? { func } : func
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Configuration for MCP resource with Zod schema input validation.
|
|
151
|
+
*/
|
|
152
|
+
type MCPResourceFuncConfigWithSchema<InputSchema extends StandardSchemaV1> = {
|
|
153
|
+
func: PikkuFunctionSessionless<InferSchemaOutput<InputSchema>, MCPResourceResponse, 'mcp' | 'rpc'>
|
|
154
|
+
name?: string
|
|
155
|
+
input: InputSchema
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Creates a function for handling MCP resource requests.
|
|
160
|
+
* These functions provide data that AI models can access.
|
|
161
|
+
*
|
|
162
|
+
* Supports two patterns:
|
|
163
|
+
* 1. Generic types: `pikkuMCPResourceFunc<Input>({ func: ... })`
|
|
164
|
+
* 2. Zod schemas: `pikkuMCPResourceFunc({ input: z.object(...), func: ... })`
|
|
165
|
+
*
|
|
166
|
+
* @template In - Input type for the resource request (inferred from schema if provided)
|
|
167
|
+
* @param func - Function definition, either direct function or configuration object
|
|
168
|
+
* @returns The unwrapped function for internal use
|
|
169
|
+
*/
|
|
170
|
+
export function pikkuMCPResourceFunc<InputSchema extends StandardSchemaV1>(
|
|
171
|
+
config: MCPResourceFuncConfigWithSchema<InputSchema>
|
|
172
|
+
): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, MCPResourceResponse, 'mcp' | 'rpc'>
|
|
173
|
+
export function pikkuMCPResourceFunc<In>(
|
|
174
|
+
func:
|
|
175
|
+
| PikkuFunctionSessionless<In, MCPResourceResponse, 'mcp' | 'rpc'>
|
|
176
|
+
| {
|
|
177
|
+
func: PikkuFunctionSessionless<In, MCPResourceResponse, 'mcp' | 'rpc'>
|
|
178
|
+
name?: string
|
|
179
|
+
}
|
|
180
|
+
): PikkuFunctionConfig<In, MCPResourceResponse, 'mcp' | 'rpc'>
|
|
181
|
+
export function pikkuMCPResourceFunc(func: any): any {
|
|
182
|
+
return typeof func === 'function' ? { func } : func
|
|
183
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.55
|
|
3
|
+
*/
|
|
4
|
+
import './rpc/pikku-rpc-wirings-meta.internal.gen.js';
|
|
5
|
+
import './function/pikku-functions-meta.gen.js';
|
|
6
|
+
import './addon/pikku-package.gen.js';
|
|
7
|
+
import './schemas/register.gen.js';
|
|
8
|
+
import './function/pikku-functions.gen.js';
|
|
9
|
+
//# sourceMappingURL=pikku-bootstrap.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-bootstrap.gen.d.ts","sourceRoot":"","sources":["../../.pikku/pikku-bootstrap.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,8CAA8C,CAAA;AACrD,OAAO,wCAAwC,CAAA;AAC/C,OAAO,8BAA8B,CAAA;AACrC,OAAO,2BAA2B,CAAA;AAClC,OAAO,mCAAmC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.55
|
|
3
|
+
*/
|
|
4
|
+
import './rpc/pikku-rpc-wirings-meta.internal.gen.js';
|
|
5
|
+
import './function/pikku-functions-meta.gen.js';
|
|
6
|
+
import './addon/pikku-package.gen.js';
|
|
7
|
+
import './schemas/register.gen.js';
|
|
8
|
+
import './function/pikku-functions.gen.js';
|
|
9
|
+
//# sourceMappingURL=pikku-bootstrap.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-bootstrap.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-bootstrap.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,8CAA8C,CAAA;AACrD,OAAO,wCAAwC,CAAA;AAC/C,OAAO,8BAA8B,CAAA;AACrC,OAAO,2BAA2B,CAAA;AAClC,OAAO,mCAAmC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.55
|
|
3
|
+
*/
|
|
4
|
+
import './rpc/pikku-rpc-wirings-meta.internal.gen.js'
|
|
5
|
+
import './function/pikku-functions-meta.gen.js'
|
|
6
|
+
import './addon/pikku-package.gen.js'
|
|
7
|
+
import './schemas/register.gen.js'
|
|
8
|
+
import './function/pikku-functions.gen.js'
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.55
|
|
3
|
+
*/
|
|
4
|
+
import { LocalMetaService } from '@pikku/core/services/local-meta';
|
|
5
|
+
export declare class PikkuMetaService extends LocalMetaService {
|
|
6
|
+
constructor();
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=pikku-meta-service.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-meta-service.gen.d.ts","sourceRoot":"","sources":["../../.pikku/pikku-meta-service.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAElE,qBAAa,gBAAiB,SAAQ,gBAAgB;;CAIrD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.55
|
|
3
|
+
*/
|
|
4
|
+
import { LocalMetaService } from '@pikku/core/services/local-meta';
|
|
5
|
+
export class PikkuMetaService extends LocalMetaService {
|
|
6
|
+
constructor() {
|
|
7
|
+
super('/home/runner/work/addons/addons/packages/devops/execution/.pikku');
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=pikku-meta-service.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-meta-service.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-meta-service.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAElE,MAAM,OAAO,gBAAiB,SAAQ,gBAAgB;IACpD;QACE,KAAK,CAAC,kEAAkE,CAAC,CAAA;IAC3E,CAAC;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.55
|
|
3
|
+
*/
|
|
4
|
+
import { LocalMetaService } from '@pikku/core/services/local-meta'
|
|
5
|
+
|
|
6
|
+
export class PikkuMetaService extends LocalMetaService {
|
|
7
|
+
constructor() {
|
|
8
|
+
super('/home/runner/work/addons/addons/packages/devops/execution/.pikku')
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.55
|
|
3
|
+
*/
|
|
4
|
+
import type { SingletonServices } from '../types/application-types.d.js';
|
|
5
|
+
import type { Services } from '../types/application-types.d.js';
|
|
6
|
+
export declare const requiredSingletonServices: {
|
|
7
|
+
readonly agentRunService: false;
|
|
8
|
+
readonly aiAgentRunner: false;
|
|
9
|
+
readonly aiRunState: false;
|
|
10
|
+
readonly aiStorage: false;
|
|
11
|
+
readonly audit: false;
|
|
12
|
+
readonly auditLog: false;
|
|
13
|
+
readonly config: true;
|
|
14
|
+
readonly content: false;
|
|
15
|
+
readonly credentialService: false;
|
|
16
|
+
readonly deploymentService: false;
|
|
17
|
+
readonly emailService: false;
|
|
18
|
+
readonly eventHub: false;
|
|
19
|
+
readonly jwt: false;
|
|
20
|
+
readonly logger: true;
|
|
21
|
+
readonly metaService: false;
|
|
22
|
+
readonly queueService: false;
|
|
23
|
+
readonly schedulerService: false;
|
|
24
|
+
readonly schema: true;
|
|
25
|
+
readonly secrets: true;
|
|
26
|
+
readonly sessionStore: false;
|
|
27
|
+
readonly variables: true;
|
|
28
|
+
readonly workflowRunService: false;
|
|
29
|
+
readonly workflowService: false;
|
|
30
|
+
};
|
|
31
|
+
export declare const requiredWireServices: {};
|
|
32
|
+
export type RequiredSingletonServices = Required<Pick<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'>> & Partial<Omit<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'>>;
|
|
33
|
+
export type RequiredWireServices = Partial<Services>;
|
|
34
|
+
//# sourceMappingURL=pikku-services.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-services.gen.d.ts","sourceRoot":"","sources":["../../.pikku/pikku-services.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AAG/D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;CAwB5B,CAAA;AAGV,eAAO,MAAM,oBAAoB,IACvB,CAAA;AAGV,MAAM,MAAM,yBAAyB,GAAG,QAAQ,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAC,CAAC,CAAA;AAEhO,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Singleton services map: true if required, false if available but unused
|
|
2
|
+
export const requiredSingletonServices = {
|
|
3
|
+
'agentRunService': false,
|
|
4
|
+
'aiAgentRunner': false,
|
|
5
|
+
'aiRunState': false,
|
|
6
|
+
'aiStorage': false,
|
|
7
|
+
'audit': false,
|
|
8
|
+
'auditLog': false,
|
|
9
|
+
'config': true,
|
|
10
|
+
'content': false,
|
|
11
|
+
'credentialService': false,
|
|
12
|
+
'deploymentService': false,
|
|
13
|
+
'emailService': false,
|
|
14
|
+
'eventHub': false,
|
|
15
|
+
'jwt': false,
|
|
16
|
+
'logger': true,
|
|
17
|
+
'metaService': false,
|
|
18
|
+
'queueService': false,
|
|
19
|
+
'schedulerService': false,
|
|
20
|
+
'schema': true,
|
|
21
|
+
'secrets': true,
|
|
22
|
+
'sessionStore': false,
|
|
23
|
+
'variables': true,
|
|
24
|
+
'workflowRunService': false,
|
|
25
|
+
'workflowService': false,
|
|
26
|
+
};
|
|
27
|
+
// Wire services map: true if required, false if available but unused
|
|
28
|
+
export const requiredWireServices = {};
|
|
29
|
+
//# sourceMappingURL=pikku-services.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-services.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-services.gen.ts"],"names":[],"mappings":"AAMA,0EAA0E;AAC1E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,iBAAiB,EAAE,KAAK;IACxB,eAAe,EAAE,KAAK;IACtB,YAAY,EAAE,KAAK;IACnB,WAAW,EAAE,KAAK;IAClB,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,KAAK;IAChB,mBAAmB,EAAE,KAAK;IAC1B,mBAAmB,EAAE,KAAK;IAC1B,cAAc,EAAE,KAAK;IACrB,UAAU,EAAE,KAAK;IACjB,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,KAAK;IACpB,cAAc,EAAE,KAAK;IACrB,kBAAkB,EAAE,KAAK;IACzB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,IAAI;IACf,cAAc,EAAE,KAAK;IACrB,WAAW,EAAE,IAAI;IACjB,oBAAoB,EAAE,KAAK;IAC3B,iBAAiB,EAAE,KAAK;CAChB,CAAA;AAEV,qEAAqE;AACrE,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAC1B,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.55
|
|
3
|
+
*/
|
|
4
|
+
import type { SingletonServices } from '../types/application-types.d.js'
|
|
5
|
+
import type { Services } from '../types/application-types.d.js'
|
|
6
|
+
|
|
7
|
+
// Singleton services map: true if required, false if available but unused
|
|
8
|
+
export const requiredSingletonServices = {
|
|
9
|
+
'agentRunService': false,
|
|
10
|
+
'aiAgentRunner': false,
|
|
11
|
+
'aiRunState': false,
|
|
12
|
+
'aiStorage': false,
|
|
13
|
+
'audit': false,
|
|
14
|
+
'auditLog': false,
|
|
15
|
+
'config': true,
|
|
16
|
+
'content': false,
|
|
17
|
+
'credentialService': false,
|
|
18
|
+
'deploymentService': false,
|
|
19
|
+
'emailService': false,
|
|
20
|
+
'eventHub': false,
|
|
21
|
+
'jwt': false,
|
|
22
|
+
'logger': true,
|
|
23
|
+
'metaService': false,
|
|
24
|
+
'queueService': false,
|
|
25
|
+
'schedulerService': false,
|
|
26
|
+
'schema': true,
|
|
27
|
+
'secrets': true,
|
|
28
|
+
'sessionStore': false,
|
|
29
|
+
'variables': true,
|
|
30
|
+
'workflowRunService': false,
|
|
31
|
+
'workflowService': false,
|
|
32
|
+
} as const
|
|
33
|
+
|
|
34
|
+
// Wire services map: true if required, false if available but unused
|
|
35
|
+
export const requiredWireServices = {
|
|
36
|
+
} as const
|
|
37
|
+
|
|
38
|
+
// Type exports
|
|
39
|
+
export type RequiredSingletonServices = Required<Pick<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'>> & Partial<Omit<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'>>
|
|
40
|
+
|
|
41
|
+
export type RequiredWireServices = Partial<Services>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.55
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Main type export hub - re-exports all wiring-specific types
|
|
6
|
+
*/
|
|
7
|
+
export * from './function/pikku-function-types.gen.js';
|
|
8
|
+
export * from './trigger/pikku-trigger-types.gen.js';
|
|
9
|
+
export * from './console/pikku-node-types.gen.js';
|
|
10
|
+
export * from './secrets/pikku-secret-types.gen.js';
|
|
11
|
+
export * from './addon/pikku-addon-types.gen.js';
|
|
12
|
+
//# sourceMappingURL=pikku-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-types.gen.d.ts","sourceRoot":"","sources":["../../.pikku/pikku-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAGH,cAAc,wCAAwC,CAAA;AAGtD,cAAc,sCAAsC,CAAA;AAGpD,cAAc,mCAAmC,CAAA;AAGjD,cAAc,qCAAqC,CAAA;AAGnD,cAAc,kCAAkC,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.55
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Main type export hub - re-exports all wiring-specific types
|
|
6
|
+
*/
|
|
7
|
+
// Core function, middleware, and permission types
|
|
8
|
+
export * from './function/pikku-function-types.gen.js';
|
|
9
|
+
// Trigger wiring types
|
|
10
|
+
export * from './trigger/pikku-trigger-types.gen.js';
|
|
11
|
+
// Node wiring types
|
|
12
|
+
export * from './console/pikku-node-types.gen.js';
|
|
13
|
+
// Secret definition types
|
|
14
|
+
export * from './secrets/pikku-secret-types.gen.js';
|
|
15
|
+
// Addon types
|
|
16
|
+
export * from './addon/pikku-addon-types.gen.js';
|
|
17
|
+
//# sourceMappingURL=pikku-types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-types.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,kDAAkD;AAClD,cAAc,wCAAwC,CAAA;AAEtD,uBAAuB;AACvB,cAAc,sCAAsC,CAAA;AAEpD,oBAAoB;AACpB,cAAc,mCAAmC,CAAA;AAEjD,0BAA0B;AAC1B,cAAc,qCAAqC,CAAA;AAEnD,cAAc;AACd,cAAc,kCAAkC,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.55
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Main type export hub - re-exports all wiring-specific types
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// Core function, middleware, and permission types
|
|
9
|
+
export * from './function/pikku-function-types.gen.js'
|
|
10
|
+
|
|
11
|
+
// Trigger wiring types
|
|
12
|
+
export * from './trigger/pikku-trigger-types.gen.js'
|
|
13
|
+
|
|
14
|
+
// Node wiring types
|
|
15
|
+
export * from './console/pikku-node-types.gen.js'
|
|
16
|
+
|
|
17
|
+
// Secret definition types
|
|
18
|
+
export * from './secrets/pikku-secret-types.gen.js'
|
|
19
|
+
|
|
20
|
+
// Addon types
|
|
21
|
+
export * from './addon/pikku-addon-types.gen.js'
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.55
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Queue-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { CoreQueueWorker } from '@pikku/core/queue';
|
|
8
|
+
import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
|
|
9
|
+
/**
|
|
10
|
+
* Type definition for queue workers that process background jobs.
|
|
11
|
+
*
|
|
12
|
+
* @template In - Input type for the queue job
|
|
13
|
+
* @template Out - Output type for the queue job
|
|
14
|
+
*/
|
|
15
|
+
type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out, 'session' | 'rpc'>>;
|
|
16
|
+
/**
|
|
17
|
+
* Registers a queue worker with the Pikku framework.
|
|
18
|
+
* Workers process background jobs from queues.
|
|
19
|
+
*
|
|
20
|
+
* @param queueWorker - Queue worker definition with job handler
|
|
21
|
+
*/
|
|
22
|
+
export declare const wireQueueWorker: (queueWorker: QueueWiring<any, any>) => void;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=pikku-queue-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-queue-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/queue/pikku-queue-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAE,eAAe,EAA0C,MAAM,mBAAmB,CAAA;AAC3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAElF;;;;;GAKG;AACH,KAAK,WAAW,CAAC,EAAE,EAAE,GAAG,IAAI,eAAe,CAAC,mBAAmB,CAAC,EAAE,EAAE,GAAG,EAAE,SAAS,GAAG,KAAK,CAAC,CAAC,CAAA;AAE5F;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,aAAa,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,SAEjE,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.55
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Queue-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { wireQueueWorker as wireQueueWorkerCore } from '@pikku/core/queue';
|
|
8
|
+
/**
|
|
9
|
+
* Registers a queue worker with the Pikku framework.
|
|
10
|
+
* Workers process background jobs from queues.
|
|
11
|
+
*
|
|
12
|
+
* @param queueWorker - Queue worker definition with job handler
|
|
13
|
+
*/
|
|
14
|
+
export const wireQueueWorker = (queueWorker) => {
|
|
15
|
+
wireQueueWorkerCore(queueWorker);
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=pikku-queue-types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-queue-types.gen.js","sourceRoot":"","sources":["../../../.pikku/queue/pikku-queue-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAmB,eAAe,IAAI,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAW3F;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,WAAkC,EAAE,EAAE;IACpE,mBAAmB,CAAC,WAAkB,CAAC,CAAA;AACzC,CAAC,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.55
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Queue-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { CoreQueueWorker, wireQueueWorker as wireQueueWorkerCore } from '@pikku/core/queue'
|
|
9
|
+
import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.js'
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Type definition for queue workers that process background jobs.
|
|
13
|
+
*
|
|
14
|
+
* @template In - Input type for the queue job
|
|
15
|
+
* @template Out - Output type for the queue job
|
|
16
|
+
*/
|
|
17
|
+
type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out, 'session' | 'rpc'>>
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Registers a queue worker with the Pikku framework.
|
|
21
|
+
* Workers process background jobs from queues.
|
|
22
|
+
*
|
|
23
|
+
* @param queueWorker - Queue worker definition with job handler
|
|
24
|
+
*/
|
|
25
|
+
export const wireQueueWorker = (queueWorker: QueueWiring<any, any>) => {
|
|
26
|
+
wireQueueWorkerCore(queueWorker as any)
|
|
27
|
+
}
|