@pikku/addon-ollama 0.1.4 → 0.1.6
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/agent/index.d.ts +8 -0
- package/dist/.pikku/addon/agent/index.d.ts.map +1 -0
- package/dist/.pikku/addon/agent/index.js +8 -0
- package/dist/.pikku/addon/agent/index.js.map +1 -0
- package/dist/.pikku/addon/agent/index.ts +8 -0
- package/dist/.pikku/addon/agent/pikku-agent-map.gen.d.ts +4 -0
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts +54 -0
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts.map +1 -0
- package/dist/.pikku/{agent → addon/agent}/pikku-agent-types.gen.js +5 -6
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.js.map +1 -0
- package/dist/.pikku/{agent → addon/agent}/pikku-agent-types.gen.ts +24 -30
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +6 -0
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js.map +1 -0
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.ts +6 -0
- package/dist/.pikku/{agent → addon/agent}/pikku-scorer-names.gen.d.ts +1 -1
- package/dist/.pikku/addon/auth/index.d.ts +8 -0
- package/dist/.pikku/addon/auth/index.d.ts.map +1 -0
- package/dist/.pikku/addon/auth/index.js +8 -0
- package/dist/.pikku/addon/auth/index.js.map +1 -0
- package/dist/.pikku/addon/auth/index.ts +8 -0
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts +126 -0
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.js +93 -0
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.js.map +1 -0
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.ts +163 -0
- package/dist/.pikku/addon/channel/index.d.ts +8 -0
- package/dist/.pikku/addon/channel/index.d.ts.map +1 -0
- package/dist/.pikku/addon/channel/index.js +8 -0
- package/dist/.pikku/addon/channel/index.js.map +1 -0
- package/dist/.pikku/addon/channel/index.ts +8 -0
- package/dist/.pikku/{channel → addon/channel}/pikku-channel-types.gen.d.ts +5 -26
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts.map +1 -0
- package/dist/.pikku/{channel → addon/channel}/pikku-channel-types.gen.js +2 -19
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.js.map +1 -0
- package/dist/.pikku/{channel → addon/channel}/pikku-channel-types.gen.ts +7 -49
- package/dist/.pikku/addon/error/index.d.ts +8 -0
- package/dist/.pikku/addon/error/index.d.ts.map +1 -0
- package/dist/.pikku/addon/error/index.js +8 -0
- package/dist/.pikku/addon/error/index.js.map +1 -0
- package/dist/.pikku/addon/error/index.ts +8 -0
- package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts +8 -0
- package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/error/pikku-error-types.gen.js +8 -0
- package/dist/.pikku/addon/error/pikku-error-types.gen.js.map +1 -0
- package/dist/.pikku/addon/error/pikku-error-types.gen.ts +8 -0
- package/dist/.pikku/addon/function/index.d.ts +8 -0
- package/dist/.pikku/addon/function/index.d.ts.map +1 -0
- package/dist/.pikku/addon/function/index.js +8 -0
- package/dist/.pikku/addon/function/index.js.map +1 -0
- package/dist/.pikku/addon/function/index.ts +8 -0
- package/dist/.pikku/{function → addon/function}/pikku-function-types.gen.d.ts +40 -262
- package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/function/pikku-function-types.gen.js +117 -0
- package/dist/.pikku/addon/function/pikku-function-types.gen.js.map +1 -0
- package/dist/.pikku/{function → addon/function}/pikku-function-types.gen.ts +51 -362
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +7 -0
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.js.map +1 -0
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.ts +7 -0
- package/dist/.pikku/addon/function/pikku-functions.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/function/pikku-functions.gen.js +14 -0
- package/dist/.pikku/addon/function/pikku-functions.gen.js.map +1 -0
- package/dist/.pikku/addon/function/pikku-functions.gen.ts +14 -0
- package/dist/.pikku/addon/http/index.d.ts +8 -0
- package/dist/.pikku/addon/http/index.d.ts.map +1 -0
- package/dist/.pikku/addon/http/index.js +8 -0
- package/dist/.pikku/addon/http/index.js.map +1 -0
- package/dist/.pikku/addon/http/index.ts +8 -0
- package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts +50 -0
- package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/http/pikku-http-types.gen.js +11 -0
- package/dist/.pikku/addon/http/pikku-http-types.gen.js.map +1 -0
- package/dist/.pikku/addon/http/pikku-http-types.gen.ts +62 -0
- package/dist/.pikku/addon/mcp/index.d.ts +8 -0
- package/dist/.pikku/addon/mcp/index.d.ts.map +1 -0
- package/dist/.pikku/addon/mcp/index.js +8 -0
- package/dist/.pikku/addon/mcp/index.js.map +1 -0
- package/dist/.pikku/addon/mcp/index.ts +8 -0
- package/dist/.pikku/{mcp → addon/mcp}/pikku-mcp-types.gen.d.ts +7 -36
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js +16 -0
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js.map +1 -0
- package/dist/.pikku/{mcp → addon/mcp}/pikku-mcp-types.gen.ts +6 -50
- package/dist/.pikku/addon/middleware/index.d.ts +8 -0
- package/dist/.pikku/addon/middleware/index.d.ts.map +1 -0
- package/dist/.pikku/addon/middleware/index.js +8 -0
- package/dist/.pikku/addon/middleware/index.js.map +1 -0
- package/dist/.pikku/addon/middleware/index.ts +8 -0
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts +125 -0
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js +109 -0
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js.map +1 -0
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.ts +175 -0
- package/dist/.pikku/{pikku-bootstrap-scenarios.gen.d.ts → addon/pikku-bootstrap-scenarios.gen.d.ts} +1 -1
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts.map +1 -0
- package/dist/.pikku/{pikku-bootstrap-scenarios.gen.js → addon/pikku-bootstrap-scenarios.gen.js} +1 -1
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js.map +1 -0
- package/dist/.pikku/{pikku-bootstrap-scenarios.gen.ts → addon/pikku-bootstrap-scenarios.gen.ts} +1 -1
- package/dist/.pikku/{pikku-bootstrap.gen.d.ts → addon/pikku-bootstrap.gen.d.ts} +2 -2
- package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts.map +1 -0
- package/dist/.pikku/{pikku-bootstrap.gen.js → addon/pikku-bootstrap.gen.js} +2 -2
- package/dist/.pikku/addon/pikku-bootstrap.gen.js.map +1 -0
- package/dist/.pikku/{pikku-bootstrap.gen.ts → addon/pikku-bootstrap.gen.ts} +2 -2
- package/dist/.pikku/addon/pikku-package.gen.js +2 -2
- package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-package.gen.ts +2 -2
- package/dist/.pikku/{pikku-services.gen.d.ts → addon/pikku-services.gen.d.ts} +8 -8
- package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -0
- package/dist/.pikku/{pikku-services.gen.js → addon/pikku-services.gen.js} +4 -4
- package/dist/.pikku/addon/pikku-services.gen.js.map +1 -0
- package/dist/.pikku/{pikku-services.gen.ts → addon/pikku-services.gen.ts} +8 -8
- package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-map.gen.d.ts +6 -6
- package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-map.internal.gen.d.ts +6 -6
- package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-map.remote.gen.d.ts +6 -6
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js +7 -0
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -0
- package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-meta.internal.gen.ts +2 -2
- package/dist/.pikku/addon/scenarios/index.d.ts +8 -0
- package/dist/.pikku/addon/scenarios/index.d.ts.map +1 -0
- package/dist/.pikku/addon/scenarios/index.js +8 -0
- package/dist/.pikku/addon/scenarios/index.js.map +1 -0
- package/dist/.pikku/addon/scenarios/index.ts +8 -0
- package/dist/.pikku/{workflow → addon/scenarios}/pikku-personas.gen.d.ts +2 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts.map +1 -0
- package/dist/.pikku/{workflow → addon/scenarios}/pikku-personas.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.js.map +1 -0
- package/dist/.pikku/{workflow → addon/scenarios}/pikku-personas.gen.ts +3 -2
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-functions-meta.gen.js +2 -2
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js.map +1 -0
- package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-functions-meta.gen.ts +3 -3
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +5 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.js.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.ts +4 -0
- package/dist/.pikku/{workflow/pikku-workflow-types.gen.d.ts → addon/scenarios/pikku-scenario-types.gen.d.ts} +57 -94
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts.map +1 -0
- package/dist/.pikku/{workflow/pikku-workflow-types.gen.js → addon/scenarios/pikku-scenario-types.gen.js} +9 -16
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js.map +1 -0
- package/dist/.pikku/{workflow/pikku-workflow-types.gen.ts → addon/scenarios/pikku-scenario-types.gen.ts} +90 -187
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-wirings-meta.gen.js +2 -2
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js.map +1 -0
- package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-wirings-meta.gen.ts +3 -3
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +5 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.js.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.ts +4 -0
- package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts +5 -0
- package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scenarios/schemas/register.gen.js +5 -0
- package/dist/.pikku/addon/scenarios/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/addon/scenarios/schemas/register.gen.ts +4 -0
- package/dist/.pikku/addon/schemas/register.gen.d.ts.map +1 -0
- package/dist/.pikku/{schemas → addon/schemas}/register.gen.js +1 -1
- package/dist/.pikku/addon/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/{schemas → addon/schemas}/register.gen.ts +1 -1
- package/dist/.pikku/addon/scopes/index.d.ts +8 -0
- package/dist/.pikku/addon/scopes/index.d.ts.map +1 -0
- package/dist/.pikku/addon/scopes/index.js +8 -0
- package/dist/.pikku/addon/scopes/index.js.map +1 -0
- package/dist/.pikku/addon/scopes/index.ts +8 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-personas.gen.d.ts +5 -13
- package/dist/.pikku/addon/scopes/pikku-personas.gen.d.ts.map +1 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-personas.gen.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-personas.gen.js.map +1 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-personas.gen.ts +5 -16
- package/dist/.pikku/{scopes → addon/scopes}/pikku-roles.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-roles.gen.js.map +1 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-roles.gen.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +6 -0
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts.map +1 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-scope-types.gen.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.ts +5 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-scopes.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.js.map +1 -0
- package/dist/.pikku/{scopes → addon/scopes}/pikku-scopes.gen.ts +1 -1
- package/dist/.pikku/addon/secrets/index.d.ts +9 -0
- package/dist/.pikku/addon/secrets/index.d.ts.map +1 -0
- package/dist/.pikku/addon/secrets/index.js +9 -0
- package/dist/.pikku/addon/secrets/index.js.map +1 -0
- package/dist/.pikku/addon/secrets/index.ts +9 -0
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts +5 -0
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js +5 -0
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js.map +1 -0
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.ts +4 -0
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts +18 -0
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +19 -0
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.js.map +1 -0
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.ts +28 -0
- package/dist/.pikku/{pikku-meta-service.gen.d.ts → addon/services/pikku-meta-service.gen.d.ts} +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts.map +1 -0
- package/dist/.pikku/{pikku-meta-service.gen.js → addon/services/pikku-meta-service.gen.js} +2 -2
- package/dist/.pikku/addon/services/pikku-meta-service.gen.js.map +1 -0
- package/dist/.pikku/{pikku-meta-service.gen.ts → addon/services/pikku-meta-service.gen.ts} +2 -2
- package/dist/.pikku/addon/setup/index.d.ts +9 -0
- package/dist/.pikku/addon/setup/index.d.ts.map +1 -0
- package/dist/.pikku/addon/setup/index.js +9 -0
- package/dist/.pikku/addon/setup/index.js.map +1 -0
- package/dist/.pikku/addon/setup/index.ts +9 -0
- package/dist/.pikku/addon/{pikku-addon-types.gen.d.ts → setup/pikku-addon-setup-types.gen.d.ts} +6 -5
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/{pikku-addon-types.gen.js → setup/pikku-addon-setup-types.gen.js} +2 -2
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js.map +1 -0
- package/dist/.pikku/addon/{pikku-addon-types.gen.ts → setup/pikku-addon-setup-types.gen.ts} +5 -4
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +67 -0
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.js +88 -0
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.js.map +1 -0
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.ts +105 -0
- package/dist/.pikku/addon/surface-usage.gen.json +1695 -0
- package/dist/.pikku/addon/trigger/index.d.ts +8 -0
- package/dist/.pikku/addon/trigger/index.d.ts.map +1 -0
- package/dist/.pikku/addon/trigger/index.js +8 -0
- package/dist/.pikku/addon/trigger/index.js.map +1 -0
- package/dist/.pikku/addon/trigger/index.ts +8 -0
- package/dist/.pikku/{trigger → addon/trigger}/pikku-trigger-types.gen.d.ts +6 -37
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +13 -0
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js.map +1 -0
- package/dist/.pikku/{trigger → addon/trigger}/pikku-trigger-types.gen.ts +9 -45
- package/dist/.pikku/addon/variables/index.d.ts +9 -0
- package/dist/.pikku/addon/variables/index.d.ts.map +1 -0
- package/dist/.pikku/addon/variables/index.js +9 -0
- package/dist/.pikku/addon/variables/index.js.map +1 -0
- package/dist/.pikku/addon/variables/index.ts +9 -0
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts +5 -0
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.js +5 -0
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.js.map +1 -0
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.ts +4 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts +22 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.js +21 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.js.map +1 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.ts +32 -0
- package/dist/.pikku/addon/workflow/index.d.ts +8 -0
- package/dist/.pikku/addon/workflow/index.d.ts.map +1 -0
- package/dist/.pikku/addon/workflow/index.js +8 -0
- package/dist/.pikku/addon/workflow/index.js.map +1 -0
- package/dist/.pikku/addon/workflow/index.ts +8 -0
- package/dist/.pikku/{workflow → addon/workflow}/pikku-scenario-step-map.gen.d.ts +1 -1
- package/dist/.pikku/{workflow → addon/workflow}/pikku-workflow-map.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts +106 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js +16 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js.map +1 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.ts +200 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +7 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.ts +9 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts +5 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js +5 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js.map +1 -0
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.ts +3 -0
- package/dist/src/functions/embeddings/embed-many.function.d.ts +4 -4
- package/dist/src/functions/embeddings/embed-many.function.d.ts.map +1 -1
- package/dist/src/functions/embeddings/embed-many.function.js +1 -1
- package/dist/src/functions/embeddings/embed-many.function.js.map +1 -1
- package/dist/src/functions/embeddings/embed.function.d.ts +4 -4
- package/dist/src/functions/embeddings/embed.function.d.ts.map +1 -1
- package/dist/src/functions/embeddings/embed.function.js +1 -1
- package/dist/src/functions/embeddings/embed.function.js.map +1 -1
- package/dist/src/functions/text/generate-object.function.d.ts +4 -4
- package/dist/src/functions/text/generate-object.function.d.ts.map +1 -1
- package/dist/src/functions/text/generate-object.function.js +1 -1
- package/dist/src/functions/text/generate-object.function.js.map +1 -1
- package/dist/src/functions/text/generate.function.d.ts +4 -4
- package/dist/src/functions/text/generate.function.d.ts.map +1 -1
- package/dist/src/functions/text/generate.function.js +1 -1
- package/dist/src/functions/text/generate.function.js.map +1 -1
- package/dist/src/services.d.ts +1 -1
- package/dist/src/services.d.ts.map +1 -1
- package/dist/src/services.js +1 -1
- package/dist/src/services.js.map +1 -1
- package/dist/types/application-types.d.ts +1 -6
- package/package.json +12 -8
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +0 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.js.map +0 -1
- package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +0 -4
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +0 -53
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +0 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +0 -1
- package/dist/.pikku/agent/pikku-model-aliases.gen.d.ts.map +0 -1
- package/dist/.pikku/agent/pikku-model-aliases.gen.js +0 -6
- package/dist/.pikku/agent/pikku-model-aliases.gen.js.map +0 -1
- package/dist/.pikku/agent/pikku-model-aliases.gen.ts +0 -6
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +0 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.js.map +0 -1
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +0 -7
- package/dist/.pikku/console/pikku-node-types.gen.d.ts.map +0 -1
- package/dist/.pikku/console/pikku-node-types.gen.js +0 -2
- package/dist/.pikku/console/pikku-node-types.gen.js.map +0 -1
- package/dist/.pikku/console/pikku-node-types.gen.ts +0 -8
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +0 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +0 -351
- package/dist/.pikku/function/pikku-function-types.gen.js.map +0 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.js +0 -7
- package/dist/.pikku/function/pikku-functions-meta.gen.js.map +0 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.ts +0 -7
- package/dist/.pikku/function/pikku-functions.gen.d.ts.map +0 -1
- package/dist/.pikku/function/pikku-functions.gen.js +0 -14
- package/dist/.pikku/function/pikku-functions.gen.js.map +0 -1
- package/dist/.pikku/function/pikku-functions.gen.ts +0 -14
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +0 -98
- package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +0 -1
- package/dist/.pikku/http/pikku-http-types.gen.js +0 -50
- package/dist/.pikku/http/pikku-http-types.gen.js.map +0 -1
- package/dist/.pikku/http/pikku-http-types.gen.ts +0 -119
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +0 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +0 -38
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +0 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.js.map +0 -1
- package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-bootstrap.gen.js.map +0 -1
- package/dist/.pikku/pikku-meta-service.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-meta-service.gen.js.map +0 -1
- package/dist/.pikku/pikku-services.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-services.gen.js.map +0 -1
- package/dist/.pikku/pikku-types.gen.d.ts +0 -13
- package/dist/.pikku/pikku-types.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-types.gen.js +0 -19
- package/dist/.pikku/pikku-types.gen.js.map +0 -1
- package/dist/.pikku/pikku-types.gen.ts +0 -24
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +0 -24
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +0 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.js +0 -17
- package/dist/.pikku/queue/pikku-queue-types.gen.js.map +0 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.ts +0 -27
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +0 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +0 -7
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +0 -5
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.ts +0 -4
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +0 -5
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.ts +0 -4
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts +0 -5
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/schemas/register.gen.js +0 -5
- package/dist/.pikku/scenarios/schemas/register.gen.js.map +0 -1
- package/dist/.pikku/scenarios/schemas/register.gen.ts +0 -4
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +0 -22
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +0 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +0 -17
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +0 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +0 -25
- package/dist/.pikku/schemas/register.gen.d.ts.map +0 -1
- package/dist/.pikku/schemas/register.gen.js.map +0 -1
- package/dist/.pikku/scopes/pikku-personas.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-personas.gen.js.map +0 -1
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-roles.gen.js.map +0 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +0 -8
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.js.map +0 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.ts +0 -7
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-scopes.gen.js.map +0 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +0 -6
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +0 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +0 -5
- package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +0 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.ts +0 -5
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +0 -22
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +0 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +0 -21
- package/dist/.pikku/secrets/pikku-secrets.gen.js.map +0 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.ts +0 -34
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts.map +0 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +0 -34
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js.map +0 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +0 -6
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +0 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.js +0 -5
- package/dist/.pikku/variables/pikku-variable-types.gen.js.map +0 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.ts +0 -5
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +0 -25
- package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +0 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +0 -23
- package/dist/.pikku/variables/pikku-variables.gen.js.map +0 -1
- package/dist/.pikku/variables/pikku-variables.gen.ts +0 -36
- package/dist/.pikku/workflow/pikku-personas.gen.d.ts.map +0 -1
- package/dist/.pikku/workflow/pikku-personas.gen.js.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +0 -7
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +0 -9
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +0 -5
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +0 -5
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +0 -3
- /package/dist/.pikku/{agent → addon/agent}/pikku-model-aliases.gen.d.ts +0 -0
- /package/dist/.pikku/{console → addon/console}/pikku-addon-meta.gen.json +0 -0
- /package/dist/.pikku/{function → addon/function}/pikku-functions-meta-verbose.gen.json +0 -0
- /package/dist/.pikku/{function → addon/function}/pikku-functions-meta.gen.d.ts +0 -0
- /package/dist/.pikku/{function → addon/function}/pikku-functions-meta.gen.json +0 -0
- /package/dist/.pikku/{function → addon/function}/pikku-functions.gen.d.ts +0 -0
- /package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-meta.internal.gen.d.ts +0 -0
- /package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-meta.internal.gen.json +0 -0
- /package/dist/.pikku/{scenarios → addon/scenarios}/features.gen.json +0 -0
- /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-functions-meta.gen.d.ts +0 -0
- /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-functions-meta.gen.json +0 -0
- /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-functions.gen.js +0 -0
- /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-wirings-meta.gen.d.ts +0 -0
- /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-wirings.gen.js +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/register.gen.d.ts +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/OllamaEmbedInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/OllamaEmbedManyInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/OllamaEmbedManyOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/OllamaEmbedOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/OllamaGenerateObjectInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/OllamaGenerateObjectOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/OllamaGenerateTextInput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/OllamaGenerateTextOutput.schema.json +0 -0
- /package/dist/.pikku/{schemas → addon/schemas}/schemas/VariableSchema_ollama_base_url.schema.json +0 -0
- /package/dist/.pikku/{scopes → addon/scopes}/pikku-personas-meta.gen.json +0 -0
- /package/dist/.pikku/{scopes → addon/scopes}/pikku-roles-meta.gen.json +0 -0
- /package/dist/.pikku/{scopes → addon/scopes}/pikku-roles.gen.js +0 -0
- /package/dist/.pikku/{scopes → addon/scopes}/pikku-scopes-meta.gen.json +0 -0
- /package/dist/.pikku/{scopes → addon/scopes}/pikku-scopes.gen.js +0 -0
- /package/dist/.pikku/{secrets → addon/secrets}/pikku-secrets-meta.gen.json +0 -0
- /package/dist/.pikku/{variables → addon/variables}/pikku-variables-meta.gen.json +0 -0
- /package/dist/.pikku/{workflow → addon/workflow}/personas.gen.json +0 -0
- /package/dist/.pikku/{workflow → addon/workflow}/pikku-workflow-wirings-meta.gen.d.ts +0 -0
|
@@ -1,37 +1,42 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.111
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
* Core function
|
|
5
|
+
* Core function types for all wirings
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
import type { PickRequired } from '@pikku/core/utils'
|
|
9
|
+
import type { ListInput, ListOutput } from '@pikku/core/function'
|
|
10
|
+
import type { CorePermissionGroup } from '@pikku/core/function'
|
|
11
|
+
import type { PikkuWire, SecretlessServices } from '@pikku/core/types'
|
|
12
|
+
import type {
|
|
13
|
+
CorePikkuFunctionConfig,
|
|
14
|
+
CorePikkuSessionlessFunctionConfig,
|
|
15
|
+
CorePikkuPermission,
|
|
16
|
+
} from '@pikku/core/function'
|
|
17
17
|
import type { NodeType } from '@pikku/core/node'
|
|
18
|
+
import type { PikkuMiddleware } from '../middleware/pikku-middleware-types.gen.js'
|
|
19
|
+
import type { PikkuPermission } from '../auth/pikku-auth-types.gen.js'
|
|
18
20
|
import type { ScopeId } from '../scopes/pikku-scopes.gen.js'
|
|
21
|
+
type CredentialsMap = Record<string, unknown>
|
|
19
22
|
import type { StandardSchemaV1 } from '@standard-schema/spec'
|
|
20
|
-
import {
|
|
23
|
+
import {
|
|
24
|
+
CorePikkuFunction,
|
|
25
|
+
CorePikkuFunctionSessionless,
|
|
26
|
+
} from '@pikku/core/function'
|
|
21
27
|
|
|
22
|
-
import type { UserSession } from '
|
|
23
|
-
import type { SingletonServices } from '
|
|
24
|
-
import type { Services } from '
|
|
25
|
-
import type { Config } from '../../types/application-types.d.js'
|
|
28
|
+
import type { UserSession } from '../../../types/application-types.d.js'
|
|
29
|
+
import type { SingletonServices } from '../../../types/application-types.d.js'
|
|
30
|
+
import type { Services } from '../../../types/application-types.d.js'
|
|
26
31
|
import type { TypedPikkuRPC, FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.d.js'
|
|
27
|
-
import type { RequiredSingletonServices
|
|
28
|
-
import type { TypedWorkflow
|
|
32
|
+
import type { RequiredSingletonServices } from '../pikku-services.gen.js'
|
|
33
|
+
import type { TypedWorkflow } from '../workflow/pikku-workflow-types.gen.js'
|
|
34
|
+
import type { TypedScenario, TypedPersonas } from '../scenarios/pikku-scenario-types.gen.js'
|
|
29
35
|
|
|
30
36
|
export type { SingletonServices as SingletonServices }
|
|
31
37
|
export type { Services as Services }
|
|
32
38
|
export type Session = UserSession
|
|
33
39
|
|
|
34
|
-
|
|
35
40
|
/**
|
|
36
41
|
* The services a wired function actually receives. The inspector records which
|
|
37
42
|
* services each wired `func`, `permissions` and `middleware` destructures and
|
|
@@ -39,13 +44,20 @@ export type Session = UserSession
|
|
|
39
44
|
* services **non-optional** at every call site. A service is optional only when
|
|
40
45
|
* nothing destructures it — in which case it is never created either. This is
|
|
41
46
|
* why an `if (!service)` guard inside a function body is always dead code.
|
|
47
|
+
*
|
|
48
|
+
* Only the wire-services half lives here. The singleton half is declared by the
|
|
49
|
+
* auth and middleware leaves that use it, because whether a name earns its
|
|
50
|
+
* export is measured rather than chosen: emit declarations for a project and
|
|
51
|
+
* `WiredServices` is named by 147 of its `.d.ts` files, while the singleton
|
|
52
|
+
* intersection is named by none outside the leaves that declare it. Export the
|
|
53
|
+
* latter and it is a compatibility promise nothing asked for; unexport
|
|
54
|
+
* `WiredServices` and every wired module inlines the intersection instead,
|
|
55
|
+
* which asks it to name each member service through a specifier it does not
|
|
56
|
+
* have — 3308 TS2883s. `--noEmit` cannot surface any of that, so re-check with
|
|
57
|
+
* `tsc --declaration --emitDeclarationOnly` before moving either one.
|
|
42
58
|
*/
|
|
43
|
-
export type WiredSingletonServices = RequiredSingletonServices & SingletonServices
|
|
44
59
|
export type WiredServices = SecretlessServices<RequiredSingletonServices & Services>
|
|
45
60
|
|
|
46
|
-
/** `WiredSingletonServices` without `secrets`, for auth gates. */
|
|
47
|
-
export type WiredAuthServices = SecretlessServices<WiredSingletonServices>
|
|
48
|
-
|
|
49
61
|
/**
|
|
50
62
|
* Inline node configuration for function definitions.
|
|
51
63
|
*/
|
|
@@ -56,193 +68,6 @@ export type NodeConfig = {
|
|
|
56
68
|
errorOutput?: boolean
|
|
57
69
|
}
|
|
58
70
|
|
|
59
|
-
/**
|
|
60
|
-
* Type-safe API permission definition that integrates with your application's session type.
|
|
61
|
-
* Use this to define authorization logic for your API endpoints.
|
|
62
|
-
*
|
|
63
|
-
* @template In - The input type that the permission check will receive
|
|
64
|
-
* @template RequiredServices - The services required for this permission check
|
|
65
|
-
*/
|
|
66
|
-
export type PikkuPermission<In = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices> = CorePikkuPermission<In, RequiredServices, PikkuWire<In, never, false, Session>>
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Type-safe middleware definition that can access your application's services and session.
|
|
70
|
-
* Use this to define reusable middleware that can be applied to multiple wirings.
|
|
71
|
-
*
|
|
72
|
-
* @template RequiredServices - The services required for this middleware
|
|
73
|
-
*/
|
|
74
|
-
export type PikkuMiddleware<RequiredServices extends SingletonServices = WiredSingletonServices> = CorePikkuMiddleware<RequiredServices>
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Configuration object for creating a permission with metadata
|
|
78
|
-
*/
|
|
79
|
-
export type PikkuPermissionConfig<In = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices> = {
|
|
80
|
-
/** The permission function */
|
|
81
|
-
func: PikkuPermission<In, RequiredServices>
|
|
82
|
-
/** Optional human-readable name for the permission */
|
|
83
|
-
name?: string
|
|
84
|
-
/** Optional description of what the permission checks */
|
|
85
|
-
description?: string
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Factory function for creating permissions with tree-shaking support.
|
|
90
|
-
* Supports both direct function and configuration object syntax.
|
|
91
|
-
*
|
|
92
|
-
* @example
|
|
93
|
-
* ```typescript
|
|
94
|
-
* // Direct function syntax
|
|
95
|
-
* const permission = pikkuPermission(async ({ logger }, data, { session }) => {
|
|
96
|
-
* const session = await session?.get()
|
|
97
|
-
* return session?.role === 'admin'
|
|
98
|
-
* })
|
|
99
|
-
*
|
|
100
|
-
* // Configuration object syntax with metadata
|
|
101
|
-
* const adminPermission = pikkuPermission({
|
|
102
|
-
* name: 'Admin Permission',
|
|
103
|
-
* description: 'Checks if user has admin role',
|
|
104
|
-
* func: async ({ logger }, data, { session }) => {
|
|
105
|
-
* const session = await session?.get()
|
|
106
|
-
* return session?.role === 'admin'
|
|
107
|
-
* }
|
|
108
|
-
* })
|
|
109
|
-
* ```
|
|
110
|
-
*/
|
|
111
|
-
export const pikkuPermission = <In>(
|
|
112
|
-
permission: PikkuPermission<In> | PikkuPermissionConfig<In>
|
|
113
|
-
): PikkuPermission<In> => {
|
|
114
|
-
return typeof permission === 'function' ? permission : permission.func
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Type-safe auth-only permission that only needs services and session.
|
|
119
|
-
* Use this for upfront authorization gates (MCP tools, AI agents, workflows)
|
|
120
|
-
* where request data isn't available yet.
|
|
121
|
-
*
|
|
122
|
-
* @template RequiredServices - The services required for this auth check
|
|
123
|
-
*/
|
|
124
|
-
export type PikkuAuth<RequiredServices extends SecretlessServices<SingletonServices> = WiredAuthServices> = CorePikkuAuth<RequiredServices, Session>
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Configuration object for creating an auth permission with metadata
|
|
128
|
-
*/
|
|
129
|
-
export type PikkuAuthConfig<RequiredServices extends SecretlessServices<SingletonServices> = WiredAuthServices> = CorePikkuAuthConfig<RequiredServices, Session>
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Factory function for creating auth-only permissions with tree-shaking support.
|
|
133
|
-
* Auth permissions only receive services and session (no request data),
|
|
134
|
-
* making them evaluable before request data is available.
|
|
135
|
-
*
|
|
136
|
-
* @example
|
|
137
|
-
* \`\`\`typescript
|
|
138
|
-
* const isAuthenticated = pikkuAuth(async ({ logger }, session) => {
|
|
139
|
-
* return !!session
|
|
140
|
-
* })
|
|
141
|
-
*
|
|
142
|
-
* const isAdmin = pikkuAuth({
|
|
143
|
-
* name: 'Admin Auth',
|
|
144
|
-
* description: 'Checks if user is an admin',
|
|
145
|
-
* func: async ({ logger }, session) => {
|
|
146
|
-
* return session?.role === 'admin'
|
|
147
|
-
* }
|
|
148
|
-
* })
|
|
149
|
-
* \`\`\`
|
|
150
|
-
*/
|
|
151
|
-
export const pikkuAuth = <RequiredServices extends SecretlessServices<SingletonServices> = WiredAuthServices>(
|
|
152
|
-
auth: PikkuAuth<RequiredServices> | PikkuAuthConfig<RequiredServices>
|
|
153
|
-
): PikkuPermission<any, any> => {
|
|
154
|
-
return pikkuAuthCore(auth as any) as any
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Configuration object for creating middleware with metadata
|
|
159
|
-
*/
|
|
160
|
-
export type PikkuMiddlewareConfig<RequiredServices extends SingletonServices = WiredSingletonServices> = {
|
|
161
|
-
/** The middleware function */
|
|
162
|
-
func: PikkuMiddleware<RequiredServices>
|
|
163
|
-
/** Optional human-readable name for the middleware */
|
|
164
|
-
name?: string
|
|
165
|
-
/** Optional description of what the middleware does */
|
|
166
|
-
description?: string
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Factory function for creating middleware with tree-shaking support.
|
|
171
|
-
* Supports both direct function and configuration object syntax.
|
|
172
|
-
*
|
|
173
|
-
* @example
|
|
174
|
-
* ```typescript
|
|
175
|
-
* // Direct function syntax
|
|
176
|
-
* const middleware = pikkuMiddleware(({ logger }, wires, next) => {
|
|
177
|
-
* logger.info('Middleware executed')
|
|
178
|
-
* await next()
|
|
179
|
-
* })
|
|
180
|
-
*
|
|
181
|
-
* // Configuration object syntax with metadata
|
|
182
|
-
* const logMiddleware = pikkuMiddleware({
|
|
183
|
-
* name: 'Request Logger',
|
|
184
|
-
* description: 'Logs all incoming requests',
|
|
185
|
-
* func: async ({ logger }, wires, next) => {
|
|
186
|
-
* logger.info('Request started')
|
|
187
|
-
* await next()
|
|
188
|
-
* }
|
|
189
|
-
* })
|
|
190
|
-
* ```
|
|
191
|
-
*/
|
|
192
|
-
export const pikkuMiddleware = <RequiredServices extends SingletonServices = WiredSingletonServices>(
|
|
193
|
-
middleware: PikkuMiddleware<RequiredServices> | PikkuMiddlewareConfig<RequiredServices>
|
|
194
|
-
): PikkuMiddleware<RequiredServices> => {
|
|
195
|
-
return typeof middleware === 'function' ? middleware : middleware.func
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Factory function for creating middleware factories
|
|
200
|
-
* Use this when your middleware needs configuration/input parameters
|
|
201
|
-
*
|
|
202
|
-
* @example
|
|
203
|
-
* ```typescript
|
|
204
|
-
* export const logMiddleware = pikkuMiddlewareFactory<LogOptions>(({
|
|
205
|
-
* message,
|
|
206
|
-
* level = 'info'
|
|
207
|
-
* }) => {
|
|
208
|
-
* return pikkuMiddleware(async ({ logger }, next) => {
|
|
209
|
-
* logger[level](message)
|
|
210
|
-
* await next()
|
|
211
|
-
* })
|
|
212
|
-
* })
|
|
213
|
-
* ```
|
|
214
|
-
*/
|
|
215
|
-
export const pikkuMiddlewareFactory = <In = any>(
|
|
216
|
-
factory: (input: In) => PikkuMiddleware
|
|
217
|
-
): ((input: In) => PikkuMiddleware) => {
|
|
218
|
-
return factory
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* Factory function for creating permission factories
|
|
223
|
-
* Use this when your permission needs configuration/input parameters
|
|
224
|
-
*
|
|
225
|
-
* @example
|
|
226
|
-
* ```typescript
|
|
227
|
-
* export const requireRole = pikkuPermissionFactory<{ role: string }>(({
|
|
228
|
-
* role
|
|
229
|
-
* }) => {
|
|
230
|
-
* return pikkuPermission(async ({ logger }, data, { session }) => {
|
|
231
|
-
* if (!session || session.role !== role) {
|
|
232
|
-
* logger.warn(`Permission denied: required role '${role}'`)
|
|
233
|
-
* return false
|
|
234
|
-
* }
|
|
235
|
-
* return true
|
|
236
|
-
* })
|
|
237
|
-
* })
|
|
238
|
-
* ```
|
|
239
|
-
*/
|
|
240
|
-
export const pikkuPermissionFactory = <In = any>(
|
|
241
|
-
factory: (input: In) => PikkuPermission<any>
|
|
242
|
-
): ((input: In) => PikkuPermission<any>) => {
|
|
243
|
-
return factory
|
|
244
|
-
}
|
|
245
|
-
|
|
246
71
|
/**
|
|
247
72
|
* A function that generates a human-readable description of a pending approval action.
|
|
248
73
|
* Used by AI agents to show meaningful approval prompts instead of raw tool arguments.
|
|
@@ -297,7 +122,7 @@ export type PikkuFunctionSessionless<
|
|
|
297
122
|
Out,
|
|
298
123
|
RequiredServices,
|
|
299
124
|
Session,
|
|
300
|
-
PickRequired<PikkuWire<In, Out, false, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario<ScenarioOut>, TypedPersonas>, RequiredWires>
|
|
125
|
+
PickRequired<PikkuWire<In, Out, false, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario<ScenarioOut>, TypedPersonas, CredentialsMap>, RequiredWires>
|
|
301
126
|
>
|
|
302
127
|
|
|
303
128
|
/**
|
|
@@ -318,7 +143,7 @@ export type PikkuFunction<
|
|
|
318
143
|
Out,
|
|
319
144
|
RequiredServices,
|
|
320
145
|
Session,
|
|
321
|
-
PickRequired<PikkuWire<In, Out, true, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario, TypedPersonas>, RequiredWires>
|
|
146
|
+
PickRequired<PikkuWire<In, Out, true, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario, TypedPersonas, CredentialsMap>, RequiredWires>
|
|
322
147
|
>
|
|
323
148
|
|
|
324
149
|
/**
|
|
@@ -343,20 +168,24 @@ export type PikkuFunctionConfig<
|
|
|
343
168
|
PikkuFunc extends PikkuFunction<In, Out, RequiredWires, any> | PikkuFunctionSessionless<In, Out, RequiredWires, any, any> = PikkuFunction<In, Out, RequiredWires> | PikkuFunctionSessionless<In, Out, RequiredWires>,
|
|
344
169
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
345
170
|
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
346
|
-
> = CorePikkuFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema, ScopeId>
|
|
171
|
+
> = Omit<CorePikkuFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema, ScopeId>, 'node'> & {
|
|
172
|
+
node?: NodeConfig
|
|
173
|
+
}
|
|
347
174
|
|
|
348
175
|
/**
|
|
349
176
|
* {@link PikkuFunctionConfig} for a function that runs without a session.
|
|
350
177
|
* Has no `scopes`: an anonymous caller holds none, so none can ever be met.
|
|
351
178
|
*/
|
|
352
|
-
|
|
179
|
+
type PikkuFunctionSessionlessConfig<
|
|
353
180
|
In = unknown,
|
|
354
181
|
Out = unknown,
|
|
355
182
|
RequiredWires extends keyof PikkuWire = never,
|
|
356
183
|
PikkuFunc extends PikkuFunctionSessionless<In, Out, RequiredWires, any> = PikkuFunctionSessionless<In, Out, RequiredWires>,
|
|
357
184
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
358
185
|
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
359
|
-
> = CorePikkuSessionlessFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema>
|
|
186
|
+
> = Omit<CorePikkuSessionlessFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema>, 'node'> & {
|
|
187
|
+
node?: NodeConfig
|
|
188
|
+
}
|
|
360
189
|
|
|
361
190
|
/**
|
|
362
191
|
* Configuration object for Pikku functions with Zod schema validation.
|
|
@@ -371,7 +200,7 @@ type SchemaInferred<S, Fallback = unknown> = S extends StandardSchemaV1
|
|
|
371
200
|
* Schema-overload variant for pikkuFunc. Derived from CorePikkuFunctionConfig
|
|
372
201
|
* so adding a field on the core type automatically propagates here.
|
|
373
202
|
*/
|
|
374
|
-
|
|
203
|
+
type PikkuFunctionConfigWithSchema<
|
|
375
204
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
376
205
|
OutputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
377
206
|
RequiredWires extends keyof PikkuWire = never,
|
|
@@ -386,13 +215,14 @@ export type PikkuFunctionConfigWithSchema<
|
|
|
386
215
|
undefined,
|
|
387
216
|
ScopeId
|
|
388
217
|
>,
|
|
389
|
-
'func' | 'input' | 'output' | 'permissions' | 'approvalDescription'
|
|
218
|
+
'func' | 'input' | 'output' | 'permissions' | 'approvalDescription' | 'node'
|
|
390
219
|
> & {
|
|
391
220
|
func:
|
|
392
221
|
| PikkuFunction<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>
|
|
393
222
|
| PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>
|
|
394
223
|
input?: InputSchema
|
|
395
224
|
output?: OutputSchema
|
|
225
|
+
node?: NodeConfig
|
|
396
226
|
permissions?: InputSchema extends StandardSchemaV1
|
|
397
227
|
? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>>
|
|
398
228
|
: undefined
|
|
@@ -442,18 +272,6 @@ export function pikkuFunc(func: any) {
|
|
|
442
272
|
return typeof func === 'function' ? { func } : func
|
|
443
273
|
}
|
|
444
274
|
|
|
445
|
-
export type PikkuListFunction<
|
|
446
|
-
F extends Record<string, unknown> = {},
|
|
447
|
-
Row = unknown,
|
|
448
|
-
S extends string = never
|
|
449
|
-
> =
|
|
450
|
-
| PikkuFunction<ListInput<F, S>, ListOutput<Row>, 'session' | 'rpc'>
|
|
451
|
-
| PikkuFunctionSessionless<
|
|
452
|
-
ListInput<F, S>,
|
|
453
|
-
ListOutput<Row>,
|
|
454
|
-
'session' | 'rpc'
|
|
455
|
-
>
|
|
456
|
-
|
|
457
275
|
export const pikkuListFunc = <
|
|
458
276
|
F extends Record<string, unknown> = {},
|
|
459
277
|
Row = unknown,
|
|
@@ -476,7 +294,7 @@ export const pikkuListFunc = <
|
|
|
476
294
|
* CorePikkuSessionlessFunctionConfig to stay in sync with the generic-typed
|
|
477
295
|
* config — so it has no `scopes` either.
|
|
478
296
|
*/
|
|
479
|
-
|
|
297
|
+
type PikkuFunctionSessionlessConfigWithSchema<
|
|
480
298
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
481
299
|
OutputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
482
300
|
RequiredWires extends keyof PikkuWire = never,
|
|
@@ -485,7 +303,7 @@ export type PikkuFunctionSessionlessConfigWithSchema<
|
|
|
485
303
|
CorePikkuSessionlessFunctionConfig<
|
|
486
304
|
PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>
|
|
487
305
|
>,
|
|
488
|
-
'func' | 'input' | 'output' | 'permissions' | 'approvalDescription'
|
|
306
|
+
'func' | 'input' | 'output' | 'permissions' | 'approvalDescription' | 'node'
|
|
489
307
|
> & {
|
|
490
308
|
func: PikkuFunctionSessionless<
|
|
491
309
|
SchemaInferred<InputSchema>,
|
|
@@ -495,6 +313,7 @@ export type PikkuFunctionSessionlessConfigWithSchema<
|
|
|
495
313
|
>
|
|
496
314
|
input?: InputSchema
|
|
497
315
|
output?: OutputSchema
|
|
316
|
+
node?: NodeConfig
|
|
498
317
|
permissions?: InputSchema extends StandardSchemaV1
|
|
499
318
|
? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>>
|
|
500
319
|
: undefined
|
|
@@ -563,7 +382,7 @@ export const pikkuVoidFunc = (
|
|
|
563
382
|
func:
|
|
564
383
|
| PikkuFunctionSessionless<void, void, 'session' | 'rpc'>
|
|
565
384
|
| PikkuFunctionSessionlessConfig<void, void, 'session' | 'rpc'>
|
|
566
|
-
) => {
|
|
385
|
+
): PikkuFunctionConfig<void, void, 'session' | 'rpc'> => {
|
|
567
386
|
return typeof func === 'function' ? { func } : func
|
|
568
387
|
}
|
|
569
388
|
|
|
@@ -639,137 +458,7 @@ export function pikkuRemoteChannelFunc<
|
|
|
639
458
|
} as any
|
|
640
459
|
}
|
|
641
460
|
|
|
642
|
-
/**
|
|
643
|
-
* Creates a Pikku config factory.
|
|
644
|
-
* Use this to define your application's configuration factory.
|
|
645
|
-
*
|
|
646
|
-
* @param func - Config factory function that returns your application's config
|
|
647
|
-
* @returns The config factory function
|
|
648
|
-
*
|
|
649
|
-
* @example
|
|
650
|
-
* ```typescript
|
|
651
|
-
* export const createConfig = pikkuConfig(async () => {
|
|
652
|
-
* return {
|
|
653
|
-
* apiUrl: process.env.API_URL || 'http://localhost:3000',
|
|
654
|
-
* dbUrl: process.env.DATABASE_URL
|
|
655
|
-
* }
|
|
656
|
-
* })
|
|
657
|
-
* ```
|
|
658
|
-
*/
|
|
659
|
-
export const pikkuConfig = (
|
|
660
|
-
func: (variables?: any, ...args: any[]) => Promise<Config>
|
|
661
|
-
) => func
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
/**
|
|
665
|
-
* Creates a Pikku singleton services factory.
|
|
666
|
-
* Use this to define services that are created once and shared across all requests.
|
|
667
|
-
*
|
|
668
|
-
* @param func - Singleton services factory function
|
|
669
|
-
* @returns The singleton services factory function
|
|
670
|
-
*
|
|
671
|
-
* @example
|
|
672
|
-
* ```typescript
|
|
673
|
-
* export const createSingletonServices = pikkuServices(async (config, existingServices) => {
|
|
674
|
-
* return {
|
|
675
|
-
* config,
|
|
676
|
-
* logger: new CustomLogger(),
|
|
677
|
-
* db: await createDatabaseConnection(config.dbUrl)
|
|
678
|
-
* }
|
|
679
|
-
* })
|
|
680
|
-
* ```
|
|
681
|
-
*/
|
|
682
|
-
export const pikkuServices = (
|
|
683
|
-
func: (config: Config, existingServices: Partial<SingletonServices>) => Promise<Partial<Omit<RequiredSingletonServices, 'auth'>>>
|
|
684
|
-
) => {
|
|
685
|
-
return async (config: Config, existingServices: Partial<SingletonServices> = {}) => {
|
|
686
|
-
const createdServices = await func(config, existingServices)
|
|
687
|
-
const services = { ...existingServices, ...createdServices }
|
|
688
|
-
const authFactory = __pikkuState(null, 'package', 'authFactory')
|
|
689
|
-
if (authFactory) {
|
|
690
|
-
let authInstance: Promise<unknown> | undefined
|
|
691
|
-
;(services as any).auth = () => {
|
|
692
|
-
authInstance ??= Promise.resolve()
|
|
693
|
-
.then(() => authFactory(services as any))
|
|
694
|
-
.catch((error) => {
|
|
695
|
-
authInstance = undefined
|
|
696
|
-
throw error
|
|
697
|
-
})
|
|
698
|
-
return authInstance
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
const resolved = services as RequiredSingletonServices
|
|
702
|
-
__pikkuState(null, 'package', 'singletonServices', resolved as any)
|
|
703
|
-
return resolved
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
/**
|
|
708
|
-
* Creates a Pikku wire services factory.
|
|
709
|
-
* Use this to define services that are created per-request/session.
|
|
710
|
-
*
|
|
711
|
-
* @param func - Wire services factory function
|
|
712
|
-
* @returns The wire services factory function
|
|
713
|
-
*
|
|
714
|
-
* @example
|
|
715
|
-
* ```typescript
|
|
716
|
-
* export const createWireServices = pikkuWireServices(async (services, wire) => {
|
|
717
|
-
* const session = await wire.session?.get()
|
|
718
|
-
* return {
|
|
719
|
-
* userCache: new UserCache(session?.userId)
|
|
720
|
-
* }
|
|
721
|
-
* })
|
|
722
|
-
* ```
|
|
723
|
-
*/
|
|
724
|
-
export const pikkuWireServices = (
|
|
725
|
-
func: (
|
|
726
|
-
services: SingletonServices,
|
|
727
|
-
wire: any
|
|
728
|
-
) => Promise<RequiredWireServices>
|
|
729
|
-
): CreateWireServices => {
|
|
730
|
-
const factories = __pikkuState(null, 'package', 'factories')
|
|
731
|
-
__pikkuState(null, 'package', 'factories', { ...factories, createWireServices: func as any })
|
|
732
|
-
return func as unknown as CreateWireServices
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
/**
|
|
736
|
-
* Tag-scoped middleware. Applies to any wiring that carries the matching tag.
|
|
737
|
-
*
|
|
738
|
-
* @example
|
|
739
|
-
* addTagMiddleware('admin', [adminMiddleware])
|
|
740
|
-
*/
|
|
741
|
-
export const addTagMiddleware = (tag: string, middleware: PikkuMiddleware[]) => {
|
|
742
|
-
addTagMiddlewareCore(tag, middleware as any, '@pikku/addon-ollama')
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
/**
|
|
746
|
-
* Wire-agnostic global middleware. Runs at the top of every wiring's
|
|
747
|
-
* middleware chain — before wire-, tag-, and function-level entries.
|
|
748
|
-
*
|
|
749
|
-
* Resolution order: global -> wire -> tag -> function.
|
|
750
|
-
*
|
|
751
|
-
* @example
|
|
752
|
-
* addGlobalMiddleware([telemetryMiddleware])
|
|
753
|
-
*/
|
|
754
|
-
export const addGlobalMiddleware = (middleware: PikkuMiddleware[]) => {
|
|
755
|
-
addGlobalMiddlewareCore(middleware as any, '@pikku/addon-ollama')
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
/**
|
|
759
|
-
* Wire-agnostic global permissions. Runs at the top of every wiring's
|
|
760
|
-
* permission resolution — before wire-, tag-, and function-level entries.
|
|
761
|
-
*
|
|
762
|
-
* Resolution order: global -> wire -> tag -> function.
|
|
763
|
-
*
|
|
764
|
-
* @example
|
|
765
|
-
* addGlobalPermission([signedInUser])
|
|
766
|
-
*/
|
|
767
|
-
export const addGlobalPermission = <In = unknown>(permissions: CorePermissionGroup<PikkuPermission<In>> | PikkuPermission<In>[]) => {
|
|
768
|
-
addGlobalPermissionCore(permissions as any, '@pikku/addon-ollama')
|
|
769
|
-
}
|
|
770
461
|
|
|
771
|
-
export { wireAddon, wireRemoteAddon } from '@pikku/core/rpc'
|
|
772
|
-
export type { WireAddonConfig, WireRemoteAddonConfig, RemoteAddonAuth } from '@pikku/core/rpc'
|
|
773
462
|
|
|
774
463
|
|
|
775
464
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-functions-meta.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/function/pikku-functions-meta.gen.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.111
|
|
3
|
+
*/
|
|
4
|
+
import { pikkuState } from '@pikku/core/state';
|
|
5
|
+
import metaData from './pikku-functions-meta.gen.json' with { type: 'json' };
|
|
6
|
+
pikkuState('@pikku/addon-ollama', 'function', 'meta', metaData);
|
|
7
|
+
//# sourceMappingURL=pikku-functions-meta.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-functions-meta.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/function/pikku-functions-meta.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE9C,OAAO,QAAQ,MAAM,iCAAiC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAC5E,UAAU,CAAC,qBAAqB,EAAE,UAAU,EAAE,MAAM,EAAE,QAAyB,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.111
|
|
3
|
+
*/
|
|
4
|
+
import { pikkuState } from '@pikku/core/state'
|
|
5
|
+
import type { FunctionsMeta } from '@pikku/core/services'
|
|
6
|
+
import metaData from './pikku-functions-meta.gen.json' with { type: 'json' }
|
|
7
|
+
pikkuState('@pikku/addon-ollama', 'function', 'meta', metaData as FunctionsMeta)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-functions.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/function/pikku-functions.gen.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.111
|
|
3
|
+
*/
|
|
4
|
+
/* Import and register functions used by RPCs */
|
|
5
|
+
import { addFunction } from '@pikku/core/function';
|
|
6
|
+
import { ollamaEmbed } from '../../../src/functions/embeddings/embed.function.js';
|
|
7
|
+
import { ollamaEmbedMany } from '../../../src/functions/embeddings/embed-many.function.js';
|
|
8
|
+
import { ollamaGenerateObject } from '../../../src/functions/text/generate-object.function.js';
|
|
9
|
+
import { ollamaGenerateText } from '../../../src/functions/text/generate.function.js';
|
|
10
|
+
addFunction('ollamaEmbed', ollamaEmbed, '@pikku/addon-ollama');
|
|
11
|
+
addFunction('ollamaEmbedMany', ollamaEmbedMany, '@pikku/addon-ollama');
|
|
12
|
+
addFunction('ollamaGenerateObject', ollamaGenerateObject, '@pikku/addon-ollama');
|
|
13
|
+
addFunction('ollamaGenerateText', ollamaGenerateText, '@pikku/addon-ollama');
|
|
14
|
+
//# sourceMappingURL=pikku-functions.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-functions.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/function/pikku-functions.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,gDAAgD;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAA;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,0DAA0D,CAAA;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,yDAAyD,CAAA;AAC9F,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAA;AAErF,WAAW,CAAC,aAAa,EAAE,WAAW,EAAE,qBAAqB,CAAC,CAAA;AAC9D,WAAW,CAAC,iBAAiB,EAAE,eAAe,EAAE,qBAAqB,CAAC,CAAA;AACtE,WAAW,CAAC,sBAAsB,EAAE,oBAAoB,EAAE,qBAAqB,CAAC,CAAA;AAChF,WAAW,CAAC,oBAAoB,EAAE,kBAAkB,EAAE,qBAAqB,CAAC,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.111
|
|
3
|
+
*/
|
|
4
|
+
/* Import and register functions used by RPCs */
|
|
5
|
+
import { addFunction } from '@pikku/core/function'
|
|
6
|
+
import { ollamaEmbed } from '../../../src/functions/embeddings/embed.function.js'
|
|
7
|
+
import { ollamaEmbedMany } from '../../../src/functions/embeddings/embed-many.function.js'
|
|
8
|
+
import { ollamaGenerateObject } from '../../../src/functions/text/generate-object.function.js'
|
|
9
|
+
import { ollamaGenerateText } from '../../../src/functions/text/generate.function.js'
|
|
10
|
+
|
|
11
|
+
addFunction('ollamaEmbed', ollamaEmbed, '@pikku/addon-ollama')
|
|
12
|
+
addFunction('ollamaEmbedMany', ollamaEmbedMany, '@pikku/addon-ollama')
|
|
13
|
+
addFunction('ollamaGenerateObject', ollamaGenerateObject, '@pikku/addon-ollama')
|
|
14
|
+
addFunction('ollamaGenerateText', ollamaGenerateText, '@pikku/addon-ollama')
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/http/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,2BAA2B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../.pikku/addon/http/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,2BAA2B,CAAA"}
|