@pikku/addon-console 0.12.5 → 0.12.7
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/dist/.pikku/addon/pikku-addon-types.gen.d.ts +3 -3
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.js +6 -2
- package/dist/.pikku/addon/pikku-addon-types.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-package.gen.js +2 -1
- package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
- package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +4 -0
- 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/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/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/console/pikku-node-types.gen.d.ts +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +28 -31
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +15 -19
- package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +522 -184
- package/dist/.pikku/function/pikku-functions.gen.js +38 -2
- package/dist/.pikku/function/pikku-functions.gen.js.map +1 -1
- 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/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/pikku-bootstrap.gen.d.ts +3 -2
- package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +1 -10
- package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -1
- 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-services.gen.d.ts +12 -10
- package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-services.gen.js +11 -8
- package/dist/.pikku/pikku-services.gen.js.map +1 -1
- package/dist/.pikku/pikku-types.gen.d.ts +1 -1
- package/dist/.pikku/pikku-types.gen.js +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/rpc/pikku-rpc-wirings-map.gen.d.ts +218 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +219 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +32 -14
- 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/schemas/register.gen.js +111 -43
- package/dist/.pikku/schemas/register.gen.js.map +1 -1
- package/dist/.pikku/schemas/schemas/AddonPackageInfo.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/AgentCredentialCheckInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AgentCredentialCheckOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AllMeta.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/CredentialDeleteInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialDeleteOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialGetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialListUsersOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialSetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialSetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialStatusInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialStatusOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialUsersInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialUsersOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/GetAddonMetaOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/GetFunctionsMetaOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/GetOpenapiDetailInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/GetOpenapiDetailOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/GetOpenapisInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/GetOpenapisOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/GetWorkflowMetaByIdOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/InstallAddonInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/InstallAddonOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/InstallOpenapiAddonInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/InstallOpenapiAddonOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/OauthConnectInput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PingOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ReadAgentSourceInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ReadAgentSourceOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ReadFunctionBodyInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ReadFunctionBodyOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ReadFunctionSourceInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ReadFunctionSourceOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UpdateAgentConfigInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UpdateAgentConfigOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UpdateFunctionBodyInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UpdateFunctionBodyOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UpdateFunctionConfigInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/UpdateFunctionConfigOutput.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-secrets.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +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/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-variables.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +38 -0
- 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-wirings-meta.gen.js +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/src/functions/agent-credential-check.function.d.ts +26 -0
- package/dist/src/functions/agent-credential-check.function.d.ts.map +1 -0
- package/dist/src/functions/agent-credential-check.function.js +48 -0
- package/dist/src/functions/agent-credential-check.function.js.map +1 -0
- package/dist/src/functions/credential-delete.function.d.ts +17 -0
- package/dist/src/functions/credential-delete.function.d.ts.map +1 -0
- package/dist/src/functions/credential-delete.function.js +15 -0
- package/dist/src/functions/credential-delete.function.js.map +1 -0
- package/dist/src/functions/credential-get.function.d.ts +17 -0
- package/dist/src/functions/credential-get.function.d.ts.map +1 -0
- package/dist/src/functions/credential-get.function.js +15 -0
- package/dist/src/functions/credential-get.function.js.map +1 -0
- package/dist/src/functions/credential-list-users.function.d.ts +12 -0
- package/dist/src/functions/credential-list-users.function.d.ts.map +1 -0
- package/dist/src/functions/credential-list-users.function.js +25 -0
- package/dist/src/functions/credential-list-users.function.js.map +1 -0
- package/dist/src/functions/credential-set.function.d.ts +20 -0
- package/dist/src/functions/credential-set.function.d.ts.map +1 -0
- package/dist/src/functions/credential-set.function.js +15 -0
- package/dist/src/functions/credential-set.function.js.map +1 -0
- package/dist/src/functions/credential-status.function.d.ts +17 -0
- package/dist/src/functions/credential-status.function.d.ts.map +1 -0
- package/dist/src/functions/credential-status.function.js +18 -0
- package/dist/src/functions/credential-status.function.js.map +1 -0
- package/dist/src/functions/credential-users.function.d.ts +14 -0
- package/dist/src/functions/credential-users.function.d.ts.map +1 -0
- package/dist/src/functions/credential-users.function.js +15 -0
- package/dist/src/functions/credential-users.function.js.map +1 -0
- package/dist/src/functions/delete-agent-thread.function.d.ts.map +1 -1
- package/dist/src/functions/delete-agent-thread.function.js +2 -1
- package/dist/src/functions/delete-agent-thread.function.js.map +1 -1
- package/dist/src/functions/delete-workflow-run.function.d.ts.map +1 -1
- package/dist/src/functions/delete-workflow-run.function.js +2 -1
- package/dist/src/functions/delete-workflow-run.function.js.map +1 -1
- package/dist/src/functions/get-agent-thread-messages.function.d.ts.map +1 -1
- package/dist/src/functions/get-agent-thread-messages.function.js +2 -1
- package/dist/src/functions/get-agent-thread-messages.function.js.map +1 -1
- package/dist/src/functions/get-agent-thread-runs.function.d.ts.map +1 -1
- package/dist/src/functions/get-agent-thread-runs.function.js +2 -1
- package/dist/src/functions/get-agent-thread-runs.function.js.map +1 -1
- package/dist/src/functions/get-agent-threads.function.d.ts.map +1 -1
- package/dist/src/functions/get-agent-threads.function.js +2 -1
- package/dist/src/functions/get-agent-threads.function.js.map +1 -1
- package/dist/src/functions/get-ai-workflows.function.d.ts.map +1 -1
- package/dist/src/functions/get-ai-workflows.function.js +5 -4
- package/dist/src/functions/get-ai-workflows.function.js.map +1 -1
- package/dist/src/functions/get-channel-snippets.function.d.ts.map +1 -1
- package/dist/src/functions/get-channel-snippets.function.js +3 -3
- package/dist/src/functions/get-channel-snippets.function.js.map +1 -1
- package/dist/src/functions/get-functions-meta.function.js +3 -3
- package/dist/src/functions/get-functions-meta.function.js.map +1 -1
- package/dist/src/functions/get-installed-addons.function.d.ts.map +1 -1
- package/dist/src/functions/get-installed-addons.function.js +9 -9
- package/dist/src/functions/get-installed-addons.function.js.map +1 -1
- package/dist/src/functions/get-installed-package.function.d.ts.map +1 -1
- package/dist/src/functions/get-installed-package.function.js +39 -51
- package/dist/src/functions/get-installed-package.function.js.map +1 -1
- package/dist/src/functions/get-openapi-detail.function.d.ts +53 -0
- package/dist/src/functions/get-openapi-detail.function.d.ts.map +1 -0
- package/dist/src/functions/get-openapi-detail.function.js +17 -0
- package/dist/src/functions/get-openapi-detail.function.js.map +1 -0
- package/dist/src/functions/get-openapis.function.d.ts +56 -0
- package/dist/src/functions/get-openapis.function.d.ts.map +1 -0
- package/dist/src/functions/get-openapis.function.js +20 -0
- package/dist/src/functions/get-openapis.function.js.map +1 -0
- package/dist/src/functions/get-schema.function.js +3 -3
- package/dist/src/functions/get-schema.function.js.map +1 -1
- package/dist/src/functions/get-workflow-meta-by-id.function.d.ts +6 -0
- package/dist/src/functions/get-workflow-meta-by-id.function.d.ts.map +1 -1
- package/dist/src/functions/get-workflow-meta-by-id.function.js +4 -4
- package/dist/src/functions/get-workflow-meta-by-id.function.js.map +1 -1
- package/dist/src/functions/get-workflow-run-history.function.d.ts.map +1 -1
- package/dist/src/functions/get-workflow-run-history.function.js +2 -1
- package/dist/src/functions/get-workflow-run-history.function.js.map +1 -1
- package/dist/src/functions/get-workflow-run-names.function.d.ts.map +1 -1
- package/dist/src/functions/get-workflow-run-names.function.js +2 -1
- package/dist/src/functions/get-workflow-run-names.function.js.map +1 -1
- package/dist/src/functions/get-workflow-run-steps.function.d.ts.map +1 -1
- package/dist/src/functions/get-workflow-run-steps.function.js +2 -1
- package/dist/src/functions/get-workflow-run-steps.function.js.map +1 -1
- package/dist/src/functions/get-workflow-run.function.d.ts.map +1 -1
- package/dist/src/functions/get-workflow-run.function.js +2 -1
- package/dist/src/functions/get-workflow-run.function.js.map +1 -1
- package/dist/src/functions/get-workflow-runs.function.d.ts.map +1 -1
- package/dist/src/functions/get-workflow-runs.function.js +2 -1
- package/dist/src/functions/get-workflow-runs.function.js.map +1 -1
- package/dist/src/functions/get-workflow-version.function.d.ts.map +1 -1
- package/dist/src/functions/get-workflow-version.function.js +2 -1
- package/dist/src/functions/get-workflow-version.function.js.map +1 -1
- package/dist/src/functions/install-addon.function.d.ts +23 -0
- package/dist/src/functions/install-addon.function.d.ts.map +1 -0
- package/dist/src/functions/install-addon.function.js +78 -0
- package/dist/src/functions/install-addon.function.js.map +1 -0
- package/dist/src/functions/install-openapi-addon.function.d.ts +23 -0
- package/dist/src/functions/install-openapi-addon.function.d.ts.map +1 -0
- package/dist/src/functions/install-openapi-addon.function.js +112 -0
- package/dist/src/functions/install-openapi-addon.function.js.map +1 -0
- package/dist/src/functions/oauth-connect.function.d.ts +3 -0
- package/dist/src/functions/oauth-connect.function.d.ts.map +1 -1
- package/dist/src/functions/oauth-connect.function.js +16 -6
- package/dist/src/functions/oauth-connect.function.js.map +1 -1
- package/dist/src/functions/oauth-disconnect.function.d.ts.map +1 -1
- package/dist/src/functions/oauth-disconnect.function.js +11 -5
- package/dist/src/functions/oauth-disconnect.function.js.map +1 -1
- package/dist/src/functions/oauth-exchange-tokens.function.d.ts.map +1 -1
- package/dist/src/functions/oauth-exchange-tokens.function.js +9 -4
- package/dist/src/functions/oauth-exchange-tokens.function.js.map +1 -1
- package/dist/src/functions/oauth-refresh-token.function.d.ts.map +1 -1
- package/dist/src/functions/oauth-refresh-token.function.js +4 -3
- package/dist/src/functions/oauth-refresh-token.function.js.map +1 -1
- package/dist/src/functions/oauth-status.function.d.ts.map +1 -1
- package/dist/src/functions/oauth-status.function.js +16 -6
- package/dist/src/functions/oauth-status.function.js.map +1 -1
- package/dist/src/functions/oauth-test-token.function.d.ts.map +1 -1
- package/dist/src/functions/oauth-test-token.function.js +4 -3
- package/dist/src/functions/oauth-test-token.function.js.map +1 -1
- package/dist/src/functions/ping.function.d.ts +8 -0
- package/dist/src/functions/ping.function.d.ts.map +1 -0
- package/dist/src/functions/ping.function.js +11 -0
- package/dist/src/functions/ping.function.js.map +1 -0
- package/dist/src/functions/read-agent-source.function.d.ts +17 -0
- package/dist/src/functions/read-agent-source.function.d.ts.map +1 -0
- package/dist/src/functions/read-agent-source.function.js +15 -0
- package/dist/src/functions/read-agent-source.function.js.map +1 -0
- package/dist/src/functions/read-function-body.function.d.ts +17 -0
- package/dist/src/functions/read-function-body.function.d.ts.map +1 -0
- package/dist/src/functions/read-function-body.function.js +16 -0
- package/dist/src/functions/read-function-body.function.js.map +1 -0
- package/dist/src/functions/read-function-source.function.d.ts +23 -0
- package/dist/src/functions/read-function-source.function.d.ts.map +1 -0
- package/dist/src/functions/read-function-source.function.js +15 -0
- package/dist/src/functions/read-function-source.function.js.map +1 -0
- package/dist/src/functions/stream-workflow-run.function.d.ts.map +1 -1
- package/dist/src/functions/stream-workflow-run.function.js +2 -1
- package/dist/src/functions/stream-workflow-run.function.js.map +1 -1
- package/dist/src/functions/update-agent-config.function.d.ts +21 -0
- package/dist/src/functions/update-agent-config.function.d.ts.map +1 -0
- package/dist/src/functions/update-agent-config.function.js +16 -0
- package/dist/src/functions/update-agent-config.function.js.map +1 -0
- package/dist/src/functions/update-function-body.function.d.ts +20 -0
- package/dist/src/functions/update-function-body.function.d.ts.map +1 -0
- package/dist/src/functions/update-function-body.function.js +16 -0
- package/dist/src/functions/update-function-body.function.js.map +1 -0
- package/dist/src/functions/update-function-config.function.d.ts +21 -0
- package/dist/src/functions/update-function-config.function.d.ts.map +1 -0
- package/dist/src/functions/update-function-config.function.js +16 -0
- package/dist/src/functions/update-function-config.function.js.map +1 -0
- package/dist/src/services/code-edit.service.d.ts +51 -0
- package/dist/src/services/code-edit.service.d.ts.map +1 -0
- package/dist/src/services/code-edit.service.js +299 -0
- package/dist/src/services/code-edit.service.js.map +1 -0
- package/dist/src/services/code-edit.service.test.d.ts +2 -0
- package/dist/src/services/code-edit.service.test.d.ts.map +1 -0
- package/dist/src/services/code-edit.service.test.js +375 -0
- package/dist/src/services/code-edit.service.test.js.map +1 -0
- package/dist/src/services/oauth.service.d.ts +1 -0
- package/dist/src/services/oauth.service.d.ts.map +1 -1
- package/dist/src/services/oauth.service.js.map +1 -1
- package/dist/src/services/wiring.service.d.ts +12 -222
- package/dist/src/services/wiring.service.d.ts.map +1 -1
- package/dist/src/services/wiring.service.js +30 -334
- package/dist/src/services/wiring.service.js.map +1 -1
- package/dist/src/services.d.ts.map +1 -1
- package/dist/src/services.js +16 -11
- package/dist/src/services.js.map +1 -1
- package/package.json +8 -10
- 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.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/src/index.d.ts +0 -16
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -15
- package/dist/src/index.js.map +0 -1
- package/dist/src/services/file-watcher.service.d.ts +0 -13
- package/dist/src/services/file-watcher.service.d.ts.map +0 -1
- package/dist/src/services/file-watcher.service.js +0 -31
- package/dist/src/services/file-watcher.service.js.map +0 -1
- package/dist/src/services/schema.service.d.ts +0 -10
- package/dist/src/services/schema.service.d.ts.map +0 -1
- package/dist/src/services/schema.service.js +0 -35
- package/dist/src/services/schema.service.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.16
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Addon package types for pikkuAddonConfig and pikkuAddonServices
|
|
6
6
|
*/
|
|
7
|
-
import type { CreateConfig } from '@pikku/core';
|
|
7
|
+
import type { CreateConfig, PikkuWire } from '@pikku/core';
|
|
8
8
|
import type { SingletonServices } from '../../types/application-types.d.js';
|
|
9
9
|
import type { Config } from '../../types/application-types.d.js';
|
|
10
10
|
import type { RequiredSingletonServices } from '../pikku-services.gen.js';
|
|
@@ -61,5 +61,5 @@ export declare const pikkuAddonServices: <T extends Record<string, any>, Existin
|
|
|
61
61
|
* })
|
|
62
62
|
* ```
|
|
63
63
|
*/
|
|
64
|
-
export declare const pikkuAddonWireServices: (func: (services:
|
|
64
|
+
export declare const pikkuAddonWireServices: <ExistingServices extends Omit<Partial<SingletonServices>, "variables" | "secrets"> & AddonBaseServices>(func: (services: ExistingServices, wire: PikkuWire) => Promise<Record<string, any>>) => any;
|
|
65
65
|
//# sourceMappingURL=pikku-addon-types.gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-addon-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/addon/pikku-addon-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"pikku-addon-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/addon/pikku-addon-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAA;AAC3E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAA;AAChE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAA;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,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
|
2
|
+
* This file was generated by @pikku/cli@0.12.16
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Addon package types for pikkuAddonConfig and pikkuAddonServices
|
|
@@ -69,6 +69,10 @@ export const pikkuAddonServices = (func) => {
|
|
|
69
69
|
* ```
|
|
70
70
|
*/
|
|
71
71
|
export const pikkuAddonWireServices = (func) => {
|
|
72
|
-
return
|
|
72
|
+
return ((services, wire) => {
|
|
73
|
+
const typedVariables = new TypedVariablesService(services.variables);
|
|
74
|
+
const typedSecrets = new TypedSecretService(services.secrets);
|
|
75
|
+
return func({ ...services, variables: typedVariables, secrets: typedSecrets }, wire);
|
|
76
|
+
});
|
|
73
77
|
};
|
|
74
78
|
//# sourceMappingURL=pikku-addon-types.gen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-addon-types.gen.js","sourceRoot":"","sources":["../../../.pikku/addon/pikku-addon-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAMH,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;
|
|
1
|
+
{"version":3,"file":"pikku-addon-types.gen.js","sourceRoot":"","sources":["../../../.pikku/addon/pikku-addon-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAMH,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAgB3E;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,IAAqD,EAC/B,EAAE;IACxB,OAAO,CAAC,KAAK,EAAE,UAAe,EAAE,gBAA6C,EAAmB,EAAE;QAChG,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,CAAC,gBAAgB,IAAI,EAAE,CAAiC,CAAA;QAChG,OAAO,IA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,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,EAAE,YAAY,EAAsB,EAAE,IAAI,CAAC,CAAA;IAC1G,CAAC,CAAQ,CAAA;AACX,CAAC,CAAA"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.16
|
|
3
3
|
*/
|
|
4
4
|
import { pikkuState } from '@pikku/core/internal';
|
|
5
5
|
import { createSingletonServices as createSingletonServices } from '../../src/services.js';
|
|
6
6
|
pikkuState('@pikku/addon-console', 'package', 'factories', {
|
|
7
7
|
createSingletonServices,
|
|
8
8
|
});
|
|
9
|
+
pikkuState('@pikku/addon-console', 'package', 'requiredParentServices', ["variables", "metaService", "aiAgentRunner", "schedulerService", "agentRunService", "workflowService", "workflowRunService", "aiStorage", "aiRunState", "deploymentService", "credentialService"]);
|
|
9
10
|
//# sourceMappingURL=pikku-package.gen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-package.gen.js","sourceRoot":"","sources":["../../../.pikku/addon/pikku-package.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,uBAAuB,IAAI,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAE1F,UAAU,CAAC,sBAAsB,EAAE,SAAS,EAAE,WAAW,EAAE;IACzD,uBAAuB;CACxB,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"pikku-package.gen.js","sourceRoot":"","sources":["../../../.pikku/addon/pikku-package.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,uBAAuB,IAAI,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAE1F,UAAU,CAAC,sBAAsB,EAAE,SAAS,EAAE,WAAW,EAAE;IACzD,uBAAuB;CACxB,CAAC,CAAA;AAEF,UAAU,CAAC,sBAAsB,EAAE,SAAS,EAAE,wBAAwB,EAAE,CAAC,WAAW,EAAC,aAAa,EAAC,eAAe,EAAC,kBAAkB,EAAC,iBAAiB,EAAC,iBAAiB,EAAC,oBAAoB,EAAC,WAAW,EAAC,YAAY,EAAC,mBAAmB,EAAC,mBAAmB,CAAC,CAAC,CAAA"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.16
|
|
3
3
|
*/
|
|
4
4
|
import { CoreAIAgent, PikkuAIMiddlewareHooks } from '@pikku/core/ai-agent';
|
|
5
5
|
import type { PikkuPermission, PikkuMiddleware, Services, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
|
|
6
6
|
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
7
7
|
import type { AIAgentMemoryConfig, AIAgentInput } from '@pikku/core/ai-agent';
|
|
8
8
|
import type { AgentMap } from './pikku-agent-map.gen.d.js';
|
|
9
|
-
type AIAgentConfig = Omit<CoreAIAgent<PikkuPermission, PikkuMiddleware>, 'tools' | 'agents' | 'memory'> & {
|
|
10
|
-
input?:
|
|
11
|
-
output?:
|
|
9
|
+
type AIAgentConfig<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = Omit<CoreAIAgent<PikkuPermission, PikkuMiddleware>, 'tools' | 'agents' | 'memory' | 'input' | 'output'> & {
|
|
10
|
+
input?: InputSchema;
|
|
11
|
+
output?: OutputSchema;
|
|
12
12
|
memory?: Omit<AIAgentMemoryConfig, 'workingMemory'> & {
|
|
13
13
|
workingMemory?: StandardSchemaV1;
|
|
14
14
|
};
|
|
15
15
|
tools?: object[];
|
|
16
|
-
agents?: AIAgentConfig[];
|
|
16
|
+
agents?: AIAgentConfig<StandardSchemaV1 | undefined, StandardSchemaV1 | undefined>[];
|
|
17
17
|
};
|
|
18
|
-
export declare const pikkuAIAgent: (agent: AIAgentConfig) => AIAgentConfig
|
|
18
|
+
export declare const pikkuAIAgent: <InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(agent: AIAgentConfig<InputSchema, OutputSchema>) => AIAgentConfig<InputSchema, OutputSchema>;
|
|
19
19
|
export declare const pikkuAIMiddleware: <State extends Record<string, unknown> = Record<string, unknown>, RequiredServices extends Services = Services>(hooks: PikkuAIMiddlewareHooks<State, RequiredServices>) => PikkuAIMiddlewareHooks<State, RequiredServices>;
|
|
20
20
|
export declare const agent: <Name extends keyof AgentMap>(agentName: Name) => PikkuFunctionConfig<AIAgentInput, {
|
|
21
21
|
runId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-agent-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/agent/pikku-agent-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,WAAW,EACX,sBAAsB,EACvB,MAAM,sBAAsB,CAAA;AAO7B,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAC9H,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAC7E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAE1D,KAAK,aAAa,GAAG,IAAI,CAAC,WAAW,CAAC,eAAe,EAAE,eAAe,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC,GAAG;
|
|
1
|
+
{"version":3,"file":"pikku-agent-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/agent/pikku-agent-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,WAAW,EACX,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CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-agent-types.gen.js","sourceRoot":"","sources":["../../../.pikku/agent/pikku-agent-types.gen.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,IAAI,SAAS,EAClB,WAAW,IAAI,eAAe,EAC9B,WAAW,IAAI,eAAe,EAC9B,YAAY,IAAI,gBAAgB,GACjC,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"pikku-agent-types.gen.js","sourceRoot":"","sources":["../../../.pikku/agent/pikku-agent-types.gen.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,IAAI,SAAS,EAClB,WAAW,IAAI,eAAe,EAC9B,WAAW,IAAI,eAAe,EAC9B,YAAY,IAAI,gBAAgB,GACjC,MAAM,sBAAsB,CAAA;AAiB7B,MAAM,CAAC,MAAM,YAAY,GAAG,CAI1B,KAA+C,EAC/C,EAAE;IACF,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAI/B,KAAsD,EACL,EAAE,CAAC,KAAK,CAAA;AAE3D,MAAM,CAAC,MAAM,KAAK,GAAG,CACnB,SAAe,EACf,EAAE;IACF,OAAO,SAAS,CAAW,SAAoC,CAI9D,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,SAAgB,EAChB,EAAE;IACF,OAAO,eAAe,CAAW,SAAoC,CAIpE,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC9B,OAAO,eAAe,EAIrB,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,SAAe,EACf,EAAE;IACF,OAAO,gBAAgB,CAAW,SAAoC,CAIrE,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.16
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Channel-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { CoreChannel, CorePikkuChannelMiddleware, CorePikkuChannelMiddlewareFactory } from '@pikku/core/channel';
|
|
8
|
+
import { AssertHTTPWiringParams } from '@pikku/core/http';
|
|
9
|
+
import type { PikkuFunctionConfig, PikkuFunctionSessionless, PikkuPermission, PikkuMiddleware, Services } from '../function/pikku-function-types.gen.js';
|
|
10
|
+
import type { CorePermissionGroup } from '@pikku/core';
|
|
11
|
+
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
12
|
+
/**
|
|
13
|
+
* Helper type to infer the output type from a Standard Schema
|
|
14
|
+
*/
|
|
15
|
+
type InferSchemaOutput<T> = T extends StandardSchemaV1<any, infer Output> ? Output : never;
|
|
16
|
+
/**
|
|
17
|
+
* Type definition for WebSocket channels with typed data exchange.
|
|
18
|
+
* Supports connection, disconnection, and message handling.
|
|
19
|
+
* Accepts both session-based (PikkuFunction) and sessionless (PikkuFunctionSessionless) functions.
|
|
20
|
+
*
|
|
21
|
+
* @template ChannelData - Type of data exchanged through the channel
|
|
22
|
+
* @template Channel - String literal type for the channel name
|
|
23
|
+
*/
|
|
24
|
+
type ChannelWiring<ChannelData, Channel extends string> = CoreChannel<ChannelData, Channel, PikkuFunctionConfig<void, any, 'channel' | 'session' | 'rpc'>, PikkuFunctionConfig<void, void, 'channel' | 'session' | 'rpc'>, PikkuFunctionConfig<any, any, 'channel' | 'session' | 'rpc'>, PikkuPermission, PikkuMiddleware>;
|
|
25
|
+
/**
|
|
26
|
+
* Creates a function that handles WebSocket channel connections.
|
|
27
|
+
* Called when a client connects to a channel.
|
|
28
|
+
*
|
|
29
|
+
* @template Out - Output type for connection response
|
|
30
|
+
* @param func - Function definition, either direct function or configuration object
|
|
31
|
+
* @returns The normalized configuration object
|
|
32
|
+
*/
|
|
33
|
+
export declare const pikkuChannelConnectionFunc: <Out = unknown>(func: PikkuFunctionSessionless<void, Out, "channel" | "session" | "rpc"> | PikkuFunctionConfig<void, Out, "channel" | "session" | "rpc">) => PikkuFunctionConfig<void, Out, "channel" | "rpc" | "session">;
|
|
34
|
+
/**
|
|
35
|
+
* Creates a function that handles WebSocket channel disconnections.
|
|
36
|
+
* Called when a client disconnects from a channel.
|
|
37
|
+
*
|
|
38
|
+
* @param func - Function definition, either direct function or configuration object
|
|
39
|
+
* @returns The normalized configuration object
|
|
40
|
+
*/
|
|
41
|
+
export declare const pikkuChannelDisconnectionFunc: (func: PikkuFunctionSessionless<void, void, "channel"> | PikkuFunctionConfig<void, void, "channel" | "session" | "rpc">) => PikkuFunctionConfig<void, void, "channel" | "rpc" | "session">;
|
|
42
|
+
/**
|
|
43
|
+
* Configuration object for channel functions with Zod schema validation.
|
|
44
|
+
*/
|
|
45
|
+
type PikkuChannelFuncConfigWithSchema<InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1 | undefined = undefined> = {
|
|
46
|
+
name?: string;
|
|
47
|
+
tags?: string[];
|
|
48
|
+
expose?: boolean;
|
|
49
|
+
remote?: boolean;
|
|
50
|
+
func: PikkuFunctionSessionless<InferSchemaOutput<InputSchema>, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'channel' | 'session' | 'rpc'>;
|
|
51
|
+
auth?: boolean;
|
|
52
|
+
permissions?: CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>>;
|
|
53
|
+
middleware?: PikkuMiddleware[];
|
|
54
|
+
input: InputSchema;
|
|
55
|
+
output?: OutputSchema;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Creates a function that handles WebSocket channel messages.
|
|
59
|
+
* Called when a message is received on a channel.
|
|
60
|
+
*
|
|
61
|
+
* Supports two patterns:
|
|
62
|
+
* 1. Generic types: `pikkuChannelFunc<Input, Output>({ func: ... })`
|
|
63
|
+
* 2. Zod schemas: `pikkuChannelFunc({ input: z.object(...), func: ... })`
|
|
64
|
+
*
|
|
65
|
+
* @template In - Input type for channel messages (inferred from schema if provided)
|
|
66
|
+
* @template Out - Output type for channel responses (inferred from schema if provided)
|
|
67
|
+
* @param func - Function definition, either direct function or configuration object
|
|
68
|
+
* @returns The normalized configuration object
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```typescript
|
|
72
|
+
* // Pattern 1: Using generic types
|
|
73
|
+
* const handleMessage = pikkuChannelFunc<{text: string}, {received: boolean}>({
|
|
74
|
+
* func: async (_services, { text }) => ({ received: true })
|
|
75
|
+
* })
|
|
76
|
+
*
|
|
77
|
+
* // Pattern 2: Using Zod schemas
|
|
78
|
+
* const messageInput = z.object({ text: z.string() })
|
|
79
|
+
* const messageOutput = z.object({ received: z.boolean() })
|
|
80
|
+
*
|
|
81
|
+
* const handleMessage = pikkuChannelFunc({
|
|
82
|
+
* input: messageInput,
|
|
83
|
+
* output: messageOutput,
|
|
84
|
+
* func: async (_services, { text }) => ({ received: true })
|
|
85
|
+
* })
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
export declare function pikkuChannelFunc<InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuChannelFuncConfigWithSchema<InputSchema, OutputSchema>): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'channel' | 'session' | 'rpc'>;
|
|
89
|
+
export declare function pikkuChannelFunc<In, Out = unknown>(func: PikkuFunctionSessionless<In, Out, 'channel' | 'session' | 'rpc'> | PikkuFunctionConfig<In, Out, 'channel' | 'session' | 'rpc'>): PikkuFunctionConfig<In, Out, 'channel' | 'session' | 'rpc'>;
|
|
90
|
+
/**
|
|
91
|
+
* Registers a WebSocket channel with the Pikku framework.
|
|
92
|
+
*
|
|
93
|
+
* @template ChannelData - Type of data associated with the channel
|
|
94
|
+
* @template Channel - String literal type for the channel name
|
|
95
|
+
* @param channel - Channel definition with connection, disconnection, and message handlers
|
|
96
|
+
*/
|
|
97
|
+
export declare const wireChannel: <ChannelData, Channel extends string>(channel: ChannelWiring<ChannelData, Channel> & AssertHTTPWiringParams<ChannelData, Channel>) => void;
|
|
98
|
+
/**
|
|
99
|
+
* Type-safe helper for defining channel message routes that can be composed.
|
|
100
|
+
* Returns the routes record as-is for use with wireChannel's onMessageWiring.
|
|
101
|
+
*
|
|
102
|
+
* @template T - Record of channel route handlers
|
|
103
|
+
* @param routes - The channel routes record
|
|
104
|
+
* @returns The same routes record (identity function for type safety)
|
|
105
|
+
*/
|
|
106
|
+
export declare function defineChannelRoutes<T extends Record<string, any>>(routes: T): T;
|
|
107
|
+
export type PikkuChannelMiddleware<RequiredServices extends Services = Services, Event = unknown> = CorePikkuChannelMiddleware<RequiredServices, Event>;
|
|
108
|
+
export declare const pikkuChannelMiddleware: <RequiredServices extends Services = Services, Event = unknown>(middleware: PikkuChannelMiddleware<RequiredServices, Event>) => PikkuChannelMiddleware<RequiredServices, Event>;
|
|
109
|
+
export declare const pikkuChannelMiddlewareFactory: <In = any>(factory: CorePikkuChannelMiddlewareFactory<In>) => CorePikkuChannelMiddlewareFactory<In>;
|
|
110
|
+
export declare const addChannelMiddleware: (tag: string, middleware: PikkuChannelMiddleware[]) => CorePikkuChannelMiddleware[];
|
|
111
|
+
export {};
|
|
112
|
+
//# sourceMappingURL=pikku-channel-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-channel-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/channel/pikku-channel-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,0BAA0B,EAAE,iCAAiC,EAAoI,MAAM,qBAAqB,CAAA;AAClP,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,eAAe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E,EAAE,GAAG,EAAE,SAAS,GAAG,SAAS,GAAG,KAAK,CAAC,CAAA;AAK9D;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,GAAI,WAAW,EAAE,OAAO,SAAS,MAAM,EAC7D,SAAS,aAAa,CAAC,WAAW,EAAE,OAAO,CAAC,GAAG,sBAAsB,CAAC,WAAW,EAAE,OAAO,CAAC,SAG5F,CAAA;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAE/E;AAED,MAAM,MAAM,sBAAsB,CAAC,gBAAgB,SAAS,QAAQ,GAAG,QAAQ,EAAE,KAAK,GAAG,OAAO,IAAI,0BAA0B,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAA;AAEvJ,eAAO,MAAM,sBAAsB,GAAI,gBAAgB,SAAS,QAAQ,GAAG,QAAQ,EAAE,KAAK,GAAG,OAAO,EAClG,YAAY,sBAAsB,CAAC,gBAAgB,EAAE,KAAK,CAAC,KAC1D,sBAAsB,CAAC,gBAAgB,EAAE,KAAK,CAEhD,CAAA;AAED,eAAO,MAAM,6BAA6B,GAAI,EAAE,GAAG,GAAG,EACpD,SAAS,iCAAiC,CAAC,EAAE,CAAC,KAC7C,iCAAiC,CAAC,EAAE,CAEtC,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAI,KAAK,MAAM,EAAE,YAAY,sBAAsB,EAAE,iCACnB,CAAA"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.16
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Channel-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { wireChannel as wireChannelCore, defineChannelRoutes as defineChannelRoutesCore, addChannelMiddleware as addChannelMiddlewareCore } from '@pikku/core/channel';
|
|
8
|
+
/**
|
|
9
|
+
* Creates a function that handles WebSocket channel connections.
|
|
10
|
+
* Called when a client connects to a channel.
|
|
11
|
+
*
|
|
12
|
+
* @template Out - Output type for connection response
|
|
13
|
+
* @param func - Function definition, either direct function or configuration object
|
|
14
|
+
* @returns The normalized configuration object
|
|
15
|
+
*/
|
|
16
|
+
export const pikkuChannelConnectionFunc = (func) => {
|
|
17
|
+
return typeof func === 'function' ? { func } : func;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Creates a function that handles WebSocket channel disconnections.
|
|
21
|
+
* Called when a client disconnects from a channel.
|
|
22
|
+
*
|
|
23
|
+
* @param func - Function definition, either direct function or configuration object
|
|
24
|
+
* @returns The normalized configuration object
|
|
25
|
+
*/
|
|
26
|
+
export const pikkuChannelDisconnectionFunc = (func) => {
|
|
27
|
+
return typeof func === 'function' ? { func } : func;
|
|
28
|
+
};
|
|
29
|
+
export function pikkuChannelFunc(func) {
|
|
30
|
+
return typeof func === 'function' ? { func } : func;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Registers a WebSocket channel with the Pikku framework.
|
|
34
|
+
*
|
|
35
|
+
* @template ChannelData - Type of data associated with the channel
|
|
36
|
+
* @template Channel - String literal type for the channel name
|
|
37
|
+
* @param channel - Channel definition with connection, disconnection, and message handlers
|
|
38
|
+
*/
|
|
39
|
+
export const wireChannel = (channel) => {
|
|
40
|
+
wireChannelCore(channel);
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Type-safe helper for defining channel message routes that can be composed.
|
|
44
|
+
* Returns the routes record as-is for use with wireChannel's onMessageWiring.
|
|
45
|
+
*
|
|
46
|
+
* @template T - Record of channel route handlers
|
|
47
|
+
* @param routes - The channel routes record
|
|
48
|
+
* @returns The same routes record (identity function for type safety)
|
|
49
|
+
*/
|
|
50
|
+
export function defineChannelRoutes(routes) {
|
|
51
|
+
return defineChannelRoutesCore(routes);
|
|
52
|
+
}
|
|
53
|
+
export const pikkuChannelMiddleware = (middleware) => {
|
|
54
|
+
return middleware;
|
|
55
|
+
};
|
|
56
|
+
export const pikkuChannelMiddlewareFactory = (factory) => {
|
|
57
|
+
return factory;
|
|
58
|
+
};
|
|
59
|
+
export const addChannelMiddleware = (tag, middleware) => addChannelMiddlewareCore(tag, middleware, '@pikku/addon-console');
|
|
60
|
+
//# sourceMappingURL=pikku-channel-types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-channel-types.gen.js","sourceRoot":"","sources":["../../../.pikku/channel/pikku-channel-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAA8E,WAAW,IAAI,eAAe,EAAE,mBAAmB,IAAI,uBAAuB,EAAE,oBAAoB,IAAI,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AA6BlP;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,IAEiE,EACjE,EAAE;IACF,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC,CAAA;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAC3C,IAEkE,EAClE,EAAE;IACF,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC,CAAA;AAmED,MAAM,UAAU,gBAAgB,CAAC,IAAS;IACxC,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,OAA2F,EAC3F,EAAE;IACF,eAAe,CAAC,OAAc,CAAC,CAAA;AACjC,CAAC,CAAA;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,mBAAmB,CAAgC,MAAS;IAC1E,OAAO,uBAAuB,CAAC,MAAM,CAAC,CAAA;AACxC,CAAC;AAID,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,UAA2D,EACV,EAAE;IACnD,OAAO,UAAU,CAAA;AACnB,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAC3C,OAA8C,EACP,EAAE;IACzC,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,GAAW,EAAE,UAAoC,EAAE,EAAE,CACxF,wBAAwB,CAAC,GAAG,EAAE,UAAU,EAAE,sBAAsB,CAAC,CAAA"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.16
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
|
|
6
|
+
* CLI-specific type definitions for tree-shaking optimization
|
|
7
|
+
*/
|
|
8
|
+
import { CoreCLI, CorePikkuCLIRender, CoreCLICommandConfig } from '@pikku/core/cli';
|
|
9
|
+
import type { PikkuFunctionConfig, PikkuMiddleware } from '../function/pikku-function-types.gen.js';
|
|
10
|
+
import type { UserSession } from '../../types/application-types.d.js';
|
|
11
|
+
import type { SingletonServices } from '../../types/application-types.d.js';
|
|
12
|
+
type Session = UserSession;
|
|
13
|
+
/**
|
|
14
|
+
* Type-safe CLI renderer definition that can access your application's services.
|
|
15
|
+
* Use this to define custom renderers for CLI command output.
|
|
16
|
+
*
|
|
17
|
+
* @template Data - The output data type from the CLI command
|
|
18
|
+
* @template RequiredServices - The services required for this renderer
|
|
19
|
+
*/
|
|
20
|
+
type PikkuCLIRender<Data, RequiredServices extends SingletonServices = SingletonServices> = CorePikkuCLIRender<Data, RequiredServices, Session>;
|
|
21
|
+
/**
|
|
22
|
+
* Creates a type-safe CLI renderer with access to your application's singleton services.
|
|
23
|
+
* The renderer receives the full singleton services and output data to format and display results.
|
|
24
|
+
*
|
|
25
|
+
* @template Data - The output data type from the CLI command
|
|
26
|
+
* @template RequiredServices - The minimum services required for type checking (defaults to SingletonServices)
|
|
27
|
+
* @param render - Function that receives singleton services and data to render output
|
|
28
|
+
* @returns A CLI renderer configuration
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```typescript
|
|
32
|
+
* const myRenderer = pikkuCLIRender<MyData>(({ logger }, data) => {
|
|
33
|
+
* logger.info(data.message)
|
|
34
|
+
* })
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare const pikkuCLIRender: <Data, RequiredServices extends SingletonServices = SingletonServices>(render: (services: SingletonServices, data: Data) => void | Promise<void>) => PikkuCLIRender<Data, RequiredServices>;
|
|
38
|
+
/**
|
|
39
|
+
* CLI command configuration with project-specific types.
|
|
40
|
+
* Uses CoreCLICommandConfig from @pikku/core with local middleware and render types.
|
|
41
|
+
*/
|
|
42
|
+
type CLICommandConfig<Func extends PikkuFunctionConfig<In, Out, 'cli' | 'rpc' | 'session'>, In = any, Out = any, Params extends string = string> = CoreCLICommandConfig<Func, PikkuMiddleware, PikkuCLIRender<any>, Params>;
|
|
43
|
+
/**
|
|
44
|
+
* Type definition for CLI applications with commands and global options.
|
|
45
|
+
*
|
|
46
|
+
* @template Commands - Type describing the command structure
|
|
47
|
+
* @template GlobalOptions - Type for global CLI options
|
|
48
|
+
*/
|
|
49
|
+
type CLIWiring<Commands extends Record<string, CoreCLICommandConfig<any, PikkuMiddleware, PikkuCLIRender<any>, any>>, GlobalOptions> = CoreCLI<Commands, GlobalOptions, PikkuMiddleware, PikkuCLIRender<any>>;
|
|
50
|
+
/**
|
|
51
|
+
* Registers a CLI application with the Pikku framework.
|
|
52
|
+
* Creates command-line interfaces with type-safe commands and options.
|
|
53
|
+
*
|
|
54
|
+
* @template Commands - Type describing the command structure
|
|
55
|
+
* @template GlobalOptions - Type for global CLI options
|
|
56
|
+
* @param cli - CLI definition with program name, commands, and global options
|
|
57
|
+
*/
|
|
58
|
+
export declare const wireCLI: <Commands extends Record<string, CoreCLICommandConfig<any, PikkuMiddleware, PikkuCLIRender<any>, any>>, GlobalOptions>(cli: CLIWiring<Commands, GlobalOptions>) => void;
|
|
59
|
+
/**
|
|
60
|
+
* Creates a CLI command definition with automatic option inference from the function's input type.
|
|
61
|
+
* This allows TypeScript to automatically derive CLI options from the function signature.
|
|
62
|
+
*
|
|
63
|
+
* @template FuncConfig - The Pikku function config type
|
|
64
|
+
* @template Params - The parameters string literal type
|
|
65
|
+
* @param config - CLI command configuration
|
|
66
|
+
* @returns CLI command configuration with inferred types
|
|
67
|
+
*/
|
|
68
|
+
export declare const pikkuCLICommand: <FuncConfig extends PikkuFunctionConfig<any, any, "cli" | "rpc" | "session">, Params extends string>(config: CLICommandConfig<FuncConfig, any, any, Params>) => CoreCLICommandConfig<FuncConfig, PikkuMiddleware, PikkuCLIRender<any>, string>;
|
|
69
|
+
/**
|
|
70
|
+
* Type-safe helper for defining CLI commands that can be composed and spread into wireCLI.
|
|
71
|
+
*
|
|
72
|
+
* @template T - Record of CLI command configurations
|
|
73
|
+
* @param commands - The CLI commands record
|
|
74
|
+
* @returns The same commands record (identity function for type safety)
|
|
75
|
+
*/
|
|
76
|
+
export declare const defineCLICommands: <T extends Record<string, CoreCLICommandConfig<any, PikkuMiddleware, PikkuCLIRender<any>, any>>>(commands: T) => T;
|
|
77
|
+
export {};
|
|
78
|
+
//# sourceMappingURL=pikku-cli-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-cli-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/cli/pikku-cli-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAA0B,kBAAkB,EAAE,oBAAoB,EAA8C,MAAM,iBAAiB,CAAA;AACvJ,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AACnG,OAAO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AAC,GAAG,EAAE,eAAe,EAAE,cAAc,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,aAAa,EAC1I,KAAK,SAAS,CAAC,QAAQ,EAAE,aAAa,CAAC,SAGxC,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,GAC1B,UAAU,SAAS,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,GAAG,KAAK,GAAG,SAAS,CAAC,EAC3E,MAAM,SAAS,MAAM,EAErB,QAAQ,gBAAgB,CAAC,UAAU,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,KACrD,oBAAoB,CAAC,UAAU,EAAE,eAAe,EAAE,cAAc,CAAC,GAAG,CAAC,EAAE,MAAM,CAE/E,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,GAAG,EAAE,eAAe,EAAE,cAAc,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,EAC9H,UAAU,CAAC,KACV,CAEF,CAAA"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.16
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
|
|
6
|
+
* CLI-specific type definitions for tree-shaking optimization
|
|
7
|
+
*/
|
|
8
|
+
import { wireCLI as wireCLICore, defineCLICommands as defineCLICommandsCore } from '@pikku/core/cli';
|
|
9
|
+
/**
|
|
10
|
+
* Creates a type-safe CLI renderer with access to your application's singleton services.
|
|
11
|
+
* The renderer receives the full singleton services and output data to format and display results.
|
|
12
|
+
*
|
|
13
|
+
* @template Data - The output data type from the CLI command
|
|
14
|
+
* @template RequiredServices - The minimum services required for type checking (defaults to SingletonServices)
|
|
15
|
+
* @param render - Function that receives singleton services and data to render output
|
|
16
|
+
* @returns A CLI renderer configuration
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* const myRenderer = pikkuCLIRender<MyData>(({ logger }, data) => {
|
|
21
|
+
* logger.info(data.message)
|
|
22
|
+
* })
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export const pikkuCLIRender = (render) => {
|
|
26
|
+
return render;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Registers a CLI application with the Pikku framework.
|
|
30
|
+
* Creates command-line interfaces with type-safe commands and options.
|
|
31
|
+
*
|
|
32
|
+
* @template Commands - Type describing the command structure
|
|
33
|
+
* @template GlobalOptions - Type for global CLI options
|
|
34
|
+
* @param cli - CLI definition with program name, commands, and global options
|
|
35
|
+
*/
|
|
36
|
+
export const wireCLI = (cli) => {
|
|
37
|
+
wireCLICore(cli);
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Creates a CLI command definition with automatic option inference from the function's input type.
|
|
41
|
+
* This allows TypeScript to automatically derive CLI options from the function signature.
|
|
42
|
+
*
|
|
43
|
+
* @template FuncConfig - The Pikku function config type
|
|
44
|
+
* @template Params - The parameters string literal type
|
|
45
|
+
* @param config - CLI command configuration
|
|
46
|
+
* @returns CLI command configuration with inferred types
|
|
47
|
+
*/
|
|
48
|
+
export const pikkuCLICommand = (config) => {
|
|
49
|
+
return config;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Type-safe helper for defining CLI commands that can be composed and spread into wireCLI.
|
|
53
|
+
*
|
|
54
|
+
* @template T - Record of CLI command configurations
|
|
55
|
+
* @param commands - The CLI commands record
|
|
56
|
+
* @returns The same commands record (identity function for type safety)
|
|
57
|
+
*/
|
|
58
|
+
export const defineCLICommands = (commands) => {
|
|
59
|
+
return defineCLICommandsCore(commands);
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=pikku-cli-types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-cli-types.gen.js","sourceRoot":"","sources":["../../../.pikku/cli/pikku-cli-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;GAGG;AAEH,OAAO,EAAW,OAAO,IAAI,WAAW,EAA4C,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAiBvJ;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,MAAyE,EACjC,EAAE;IAC1C,OAAO,MAAa,CAAA;AACtB,CAAC,CAAA;AAgBD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CACrB,GAAuC,EACvC,EAAE;IACF,WAAW,CAAC,GAAU,CAAC,CAAA;AACzB,CAAC,CAAA;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAI7B,MAAsD,EAC0B,EAAE;IAClF,OAAO,MAAa,CAAA;AACtB,CAAC,CAAA;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,QAAW,EACR,EAAE;IACL,OAAO,qBAAqB,CAAC,QAAe,CAAM,CAAA;AACpD,CAAC,CAAA"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.16
|
|
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';
|
|
9
10
|
import { PikkuError } from '@pikku/core/errors';
|
|
10
11
|
import type { NodeType } from '@pikku/core/node';
|
|
@@ -243,19 +244,19 @@ export type PikkuFunctionConfig<In = unknown, Out = unknown, RequiredWires exten
|
|
|
243
244
|
* Use this when you want to define input/output schemas using Zod.
|
|
244
245
|
* Types are automatically inferred from the schemas.
|
|
245
246
|
*/
|
|
246
|
-
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> = {
|
|
247
248
|
name?: string;
|
|
248
249
|
tags?: string[];
|
|
249
250
|
expose?: boolean;
|
|
250
251
|
mcp?: boolean;
|
|
251
252
|
internal?: boolean;
|
|
252
253
|
approvalRequired?: boolean;
|
|
253
|
-
approvalDescription?: PikkuApprovalDescription<InferSchemaOutput<InputSchema
|
|
254
|
-
func: PikkuFunction<InferSchemaOutput<InputSchema
|
|
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>;
|
|
255
256
|
auth?: boolean;
|
|
256
|
-
permissions?: CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema
|
|
257
|
+
permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined;
|
|
257
258
|
middleware?: PikkuMiddleware[];
|
|
258
|
-
input
|
|
259
|
+
input?: InputSchema;
|
|
259
260
|
output?: OutputSchema;
|
|
260
261
|
node?: NodeConfig;
|
|
261
262
|
errors?: Array<typeof PikkuError>;
|
|
@@ -298,12 +299,12 @@ export type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1,
|
|
|
298
299
|
* })
|
|
299
300
|
* ```
|
|
300
301
|
*/
|
|
301
|
-
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'>;
|
|
302
303
|
export declare function pikkuFunc<In, Out = unknown>(func: PikkuFunction<In, Out, 'session' | 'rpc'> | PikkuFunctionConfig<In, Out, 'session' | 'rpc'>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
|
|
303
304
|
/**
|
|
304
305
|
* Configuration object for sessionless Pikku functions with Zod schema validation.
|
|
305
306
|
*/
|
|
306
|
-
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> = {
|
|
307
308
|
name?: string;
|
|
308
309
|
description?: string;
|
|
309
310
|
tags?: string[];
|
|
@@ -312,12 +313,12 @@ export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends Standar
|
|
|
312
313
|
internal?: boolean;
|
|
313
314
|
remote?: boolean;
|
|
314
315
|
approvalRequired?: boolean;
|
|
315
|
-
approvalDescription?: PikkuApprovalDescription<InferSchemaOutput<InputSchema
|
|
316
|
-
func: PikkuFunctionSessionless<InferSchemaOutput<InputSchema
|
|
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>;
|
|
317
318
|
auth?: boolean;
|
|
318
|
-
permissions?: CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema
|
|
319
|
+
permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined;
|
|
319
320
|
middleware?: PikkuMiddleware[];
|
|
320
|
-
input
|
|
321
|
+
input?: InputSchema;
|
|
321
322
|
output?: OutputSchema;
|
|
322
323
|
node?: NodeConfig;
|
|
323
324
|
errors?: Array<typeof PikkuError>;
|
|
@@ -357,7 +358,7 @@ export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends Standar
|
|
|
357
358
|
* })
|
|
358
359
|
* ```
|
|
359
360
|
*/
|
|
360
|
-
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'>;
|
|
361
362
|
export declare function pikkuSessionlessFunc<In, Out = unknown>(func: PikkuFunctionSessionless<In, Out, 'session' | 'rpc'> | PikkuFunctionConfig<In, Out, 'session' | 'rpc'>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
|
|
362
363
|
/**
|
|
363
364
|
* Creates a function that takes no input and returns no output.
|
|
@@ -377,27 +378,23 @@ export declare function pikkuSessionlessFunc<In, Out = unknown>(func: PikkuFunct
|
|
|
377
378
|
*/
|
|
378
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>;
|
|
379
380
|
/**
|
|
380
|
-
*
|
|
381
|
-
*
|
|
382
|
-
* 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.
|
|
383
383
|
*
|
|
384
|
-
* @template Name - The
|
|
385
|
-
* @param rpcName - The name of the
|
|
386
|
-
* @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
|
|
387
387
|
*
|
|
388
388
|
* @example
|
|
389
389
|
* ```typescript
|
|
390
|
-
* //
|
|
391
|
-
*
|
|
392
|
-
*
|
|
393
|
-
*
|
|
394
|
-
*
|
|
395
|
-
* func: addon('ext:hello'),
|
|
396
|
-
* tags: ['addon'],
|
|
397
|
-
* })
|
|
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') })
|
|
398
395
|
* ```
|
|
399
396
|
*/
|
|
400
|
-
export declare const
|
|
397
|
+
export declare const ref: <Name extends keyof FlattenedRPCMap>(rpcName: Name) => PikkuFunctionConfig<FlattenedRPCMap[Name]["input"], FlattenedRPCMap[Name]["output"], "session" | "rpc">;
|
|
401
398
|
/**
|
|
402
399
|
* Creates a Pikku config factory.
|
|
403
400
|
* Use this to define your application's configuration factory.
|
|
@@ -501,6 +498,6 @@ export declare const addMiddleware: (tag: string, middleware: PikkuMiddleware[])
|
|
|
501
498
|
* ```
|
|
502
499
|
*/
|
|
503
500
|
export declare const addPermission: <In = unknown>(tag: string, permissions: CorePermissionGroup<PikkuPermission<In>> | PikkuPermission<In>[]) => void;
|
|
504
|
-
export { wireAddon } from '@pikku/core';
|
|
505
|
-
export type { WireAddonConfig } from '@pikku/core';
|
|
501
|
+
export { wireAddon } from '@pikku/core/rpc';
|
|
502
|
+
export type { WireAddonConfig } from '@pikku/core/rpc';
|
|
506
503
|
//# sourceMappingURL=pikku-function-types.gen.d.ts.map
|