@pikku/addon-graph 0.12.13 → 0.12.14
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/CHANGELOG.md +14 -0
- package/dist/.pikku/addon/agent/index.d.ts +1 -1
- package/dist/.pikku/addon/agent/index.js +1 -1
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts +42 -1
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.js +41 -0
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.js.map +1 -1
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +1 -1
- package/dist/.pikku/addon/auth/index.d.ts +1 -1
- package/dist/.pikku/addon/auth/index.js +1 -1
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts +10 -20
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.js +2 -19
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.js.map +1 -1
- package/dist/.pikku/addon/channel/index.d.ts +1 -1
- package/dist/.pikku/addon/channel/index.js +1 -1
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts +8 -18
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.js +7 -1
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.js.map +1 -1
- package/dist/.pikku/addon/error/index.d.ts +1 -1
- package/dist/.pikku/addon/error/index.js +1 -1
- package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/error/pikku-error-types.gen.js +1 -1
- package/dist/.pikku/addon/function/index.d.ts +1 -1
- package/dist/.pikku/addon/function/index.js +1 -1
- package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts +47 -38
- package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/function/pikku-function-types.gen.js +21 -9
- package/dist/.pikku/addon/function/pikku-function-types.gen.js.map +1 -1
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/addon/function/pikku-functions.gen.js +1 -1
- package/dist/.pikku/addon/http/index.d.ts +1 -1
- package/dist/.pikku/addon/http/index.js +1 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts +3 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.js +1 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.js.map +1 -1
- package/dist/.pikku/addon/mcp/index.d.ts +1 -1
- package/dist/.pikku/addon/mcp/index.js +1 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts +7 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js +1 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js.map +1 -1
- package/dist/.pikku/addon/middleware/index.d.ts +1 -1
- package/dist/.pikku/addon/middleware/index.js +1 -1
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts +42 -26
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js +29 -24
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts +1 -1
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js +1 -1
- package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts +1 -1
- package/dist/.pikku/addon/pikku-bootstrap.gen.js +1 -1
- 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-services.gen.d.ts +7 -6
- package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/pikku-services.gen.js +5 -4
- package/dist/.pikku/addon/pikku-services.gen.js.map +1 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/index.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/index.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts +15 -0
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.js +12 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.js.map +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts +15 -3
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js +4 -0
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js.map +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/schemas/register.gen.js +1 -1
- package/dist/.pikku/addon/schemas/register.gen.js +1 -1
- package/dist/.pikku/addon/scopes/index.d.ts +1 -1
- package/dist/.pikku/addon/scopes/index.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-personas.gen.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts +1 -1
- package/dist/.pikku/addon/secrets/index.d.ts +1 -1
- package/dist/.pikku/addon/secrets/index.js +1 -1
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js +1 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts +9 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +5 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.js.map +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.js +1 -1
- package/dist/.pikku/addon/setup/index.d.ts +1 -1
- package/dist/.pikku/addon/setup/index.js +1 -1
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js +1 -1
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +7 -19
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.js +11 -19
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.js.map +1 -1
- package/dist/.pikku/addon/trigger/index.d.ts +1 -1
- package/dist/.pikku/addon/trigger/index.js +1 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/addon/variables/index.d.ts +1 -1
- package/dist/.pikku/addon/variables/index.js +1 -1
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.js +1 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts +9 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.js +5 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.js.map +1 -1
- package/dist/.pikku/addon/workflow/index.d.ts +1 -1
- package/dist/.pikku/addon/workflow/index.js +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts +29 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js +8 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js.map +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/package.json +3 -3
- package/dist/.pikku/addon/index.d.ts +0 -8
- package/dist/.pikku/addon/index.d.ts.map +0 -1
- package/dist/.pikku/addon/index.js +0 -8
- package/dist/.pikku/addon/index.js.map +0 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +0 -66
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +0 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.js +0 -78
- package/dist/.pikku/addon/pikku-addon-types.gen.js.map +0 -1
- package/dist/.pikku/agent/index.d.ts +0 -8
- package/dist/.pikku/agent/index.d.ts.map +0 -1
- package/dist/.pikku/agent/index.js +0 -8
- package/dist/.pikku/agent/index.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 -54
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +0 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.js +0 -20
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +0 -1
- package/dist/.pikku/agent/pikku-model-aliases.gen.d.ts +0 -2
- 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-scorer-names.gen.d.ts +0 -8
- package/dist/.pikku/auth/index.d.ts +0 -8
- package/dist/.pikku/auth/index.d.ts.map +0 -1
- package/dist/.pikku/auth/index.js +0 -8
- package/dist/.pikku/auth/index.js.map +0 -1
- package/dist/.pikku/auth/pikku-auth-types.gen.d.ts +0 -119
- package/dist/.pikku/auth/pikku-auth-types.gen.d.ts.map +0 -1
- package/dist/.pikku/auth/pikku-auth-types.gen.js +0 -93
- package/dist/.pikku/auth/pikku-auth-types.gen.js.map +0 -1
- package/dist/.pikku/channel/index.d.ts +0 -8
- package/dist/.pikku/channel/index.d.ts.map +0 -1
- package/dist/.pikku/channel/index.js +0 -8
- package/dist/.pikku/channel/index.js.map +0 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +0 -91
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +0 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.js +0 -43
- 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/credentials/index.d.ts +0 -8
- package/dist/.pikku/credentials/index.d.ts.map +0 -1
- package/dist/.pikku/credentials/index.js +0 -8
- package/dist/.pikku/credentials/index.js.map +0 -1
- package/dist/.pikku/credentials/pikku-credential-types.gen.d.ts +0 -5
- package/dist/.pikku/credentials/pikku-credential-types.gen.d.ts.map +0 -1
- package/dist/.pikku/credentials/pikku-credential-types.gen.js +0 -5
- package/dist/.pikku/credentials/pikku-credential-types.gen.js.map +0 -1
- package/dist/.pikku/error/index.d.ts +0 -8
- package/dist/.pikku/error/index.d.ts.map +0 -1
- package/dist/.pikku/error/index.js +0 -8
- package/dist/.pikku/error/index.js.map +0 -1
- package/dist/.pikku/error/pikku-error-types.gen.d.ts +0 -8
- package/dist/.pikku/error/pikku-error-types.gen.d.ts.map +0 -1
- package/dist/.pikku/error/pikku-error-types.gen.js +0 -8
- package/dist/.pikku/error/pikku-error-types.gen.js.map +0 -1
- package/dist/.pikku/function/index.d.ts +0 -8
- package/dist/.pikku/function/index.d.ts.map +0 -1
- package/dist/.pikku/function/index.js +0 -8
- package/dist/.pikku/function/index.js.map +0 -1
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +0 -270
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +0 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +0 -117
- package/dist/.pikku/function/pikku-function-types.gen.js.map +0 -1
- package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +0 -1028
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts +0 -2
- 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.json +0 -794
- package/dist/.pikku/function/pikku-functions.gen.d.ts +0 -2
- package/dist/.pikku/function/pikku-functions.gen.d.ts.map +0 -1
- package/dist/.pikku/function/pikku-functions.gen.js +0 -74
- package/dist/.pikku/function/pikku-functions.gen.js.map +0 -1
- package/dist/.pikku/gateway/index.d.ts +0 -8
- package/dist/.pikku/gateway/index.d.ts.map +0 -1
- package/dist/.pikku/gateway/index.js +0 -8
- package/dist/.pikku/gateway/index.js.map +0 -1
- package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts +0 -38
- package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts.map +0 -1
- package/dist/.pikku/gateway/pikku-gateway-types.gen.js +0 -26
- package/dist/.pikku/gateway/pikku-gateway-types.gen.js.map +0 -1
- package/dist/.pikku/http/index.d.ts +0 -8
- package/dist/.pikku/http/index.d.ts.map +0 -1
- package/dist/.pikku/http/index.js +0 -8
- package/dist/.pikku/http/index.js.map +0 -1
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +0 -50
- package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +0 -1
- package/dist/.pikku/http/pikku-http-types.gen.js +0 -11
- package/dist/.pikku/http/pikku-http-types.gen.js.map +0 -1
- package/dist/.pikku/mcp/index.d.ts +0 -8
- package/dist/.pikku/mcp/index.d.ts.map +0 -1
- package/dist/.pikku/mcp/index.js +0 -8
- package/dist/.pikku/mcp/index.js.map +0 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +0 -102
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +0 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +0 -16
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +0 -1
- package/dist/.pikku/middleware/index.d.ts +0 -8
- package/dist/.pikku/middleware/index.d.ts.map +0 -1
- package/dist/.pikku/middleware/index.js +0 -8
- package/dist/.pikku/middleware/index.js.map +0 -1
- package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts +0 -118
- package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts.map +0 -1
- package/dist/.pikku/middleware/pikku-middleware-types.gen.js +0 -109
- package/dist/.pikku/middleware/pikku-middleware-types.gen.js.map +0 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +0 -10
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +0 -10
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.js.map +0 -1
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +0 -10
- package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +0 -10
- package/dist/.pikku/pikku-bootstrap.gen.js.map +0 -1
- package/dist/.pikku/pikku-meta-service.gen.d.ts +0 -8
- package/dist/.pikku/pikku-meta-service.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-meta-service.gen.js +0 -10
- package/dist/.pikku/pikku-meta-service.gen.js.map +0 -1
- package/dist/.pikku/pikku-services.gen.d.ts +0 -42
- package/dist/.pikku/pikku-services.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-services.gen.js +0 -38
- package/dist/.pikku/pikku-services.gen.js.map +0 -1
- package/dist/.pikku/pikku-types.gen.d.ts +0 -12
- package/dist/.pikku/pikku-types.gen.d.ts.map +0 -1
- package/dist/.pikku/pikku-types.gen.js +0 -17
- package/dist/.pikku/pikku-types.gen.js.map +0 -1
- package/dist/.pikku/queue/index.d.ts +0 -8
- package/dist/.pikku/queue/index.d.ts.map +0 -1
- package/dist/.pikku/queue/index.js +0 -8
- package/dist/.pikku/queue/index.js.map +0 -1
- 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/rpc/pikku-rpc-wirings-map.gen.d.ts +0 -647
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +0 -681
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +0 -647
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +0 -2
- 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/rpc/pikku-rpc-wirings-meta.internal.gen.json +0 -36
- package/dist/.pikku/scenarios/index.d.ts +0 -8
- package/dist/.pikku/scenarios/index.d.ts.map +0 -1
- package/dist/.pikku/scenarios/index.js +0 -8
- package/dist/.pikku/scenarios/index.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-personas.gen.d.ts +0 -18
- package/dist/.pikku/scenarios/pikku-personas.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-personas.gen.js +0 -18
- package/dist/.pikku/scenarios/pikku-personas.gen.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts +0 -2
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +0 -11
- 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 +0 -2
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts +0 -311
- package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-types.gen.js +0 -72
- package/dist/.pikku/scenarios/pikku-scenario-types.gen.js.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts +0 -2
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +0 -11
- 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 +0 -2
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js.map +0 -1
- 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/scheduler/index.d.ts +0 -8
- package/dist/.pikku/scheduler/index.d.ts.map +0 -1
- package/dist/.pikku/scheduler/index.js +0 -8
- package/dist/.pikku/scheduler/index.js.map +0 -1
- 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/schemas/register.gen.d.ts +0 -2
- package/dist/.pikku/schemas/register.gen.d.ts.map +0 -1
- package/dist/.pikku/schemas/register.gen.js +0 -141
- package/dist/.pikku/schemas/register.gen.js.map +0 -1
- package/dist/.pikku/schemas/schemas/AggregateInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/AggregateOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/BranchInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/BranchOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ChunkInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ChunkOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/CoalesceInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/CoalesceOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ConcatInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ConcatOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/CryptoInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/CryptoOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/DateTimeInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/DateTimeOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/EditFieldsInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/EditFieldsOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/FanoutInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/FanoutOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/FindInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/FindOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/GroupByInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/GroupByOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/HttpRequestInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/HttpRequestOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/JwtDecodeInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/JwtDecodeOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/JwtSignInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/JwtSignOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/LimitInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/LimitOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/MathInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/MathOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/MergeInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/MergeOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/OmitInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/OmitOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/PickInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/PickOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ReadFileInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ReadFileOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/RemoveDuplicatesInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/RemoveDuplicatesOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/RenameKeysInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/RenameKeysOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ReverseInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ReverseOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SleepInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SleepOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SortInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SortOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SplitOutInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SplitOutOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SplitTextInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SplitTextOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/StopAndErrorInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/StopAndErrorOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/StringTransformInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/StringTransformOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SummarizeInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SummarizeOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/TypeConvertInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/TypeConvertOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/UniqueInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/UniqueOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/WaitInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/WaitOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/WriteFileInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/WriteFileOutput.schema.json +0 -1
- package/dist/.pikku/scopes/index.d.ts +0 -8
- package/dist/.pikku/scopes/index.d.ts.map +0 -1
- package/dist/.pikku/scopes/index.js +0 -8
- package/dist/.pikku/scopes/index.js.map +0 -1
- package/dist/.pikku/scopes/pikku-personas-meta.gen.json +0 -1
- package/dist/.pikku/scopes/pikku-personas.gen.d.ts +0 -29
- package/dist/.pikku/scopes/pikku-personas.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-personas.gen.js +0 -18
- package/dist/.pikku/scopes/pikku-personas.gen.js.map +0 -1
- package/dist/.pikku/scopes/pikku-roles-meta.gen.json +0 -1
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts +0 -31
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-roles.gen.js +0 -19
- package/dist/.pikku/scopes/pikku-roles.gen.js.map +0 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +0 -6
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.js +0 -6
- package/dist/.pikku/scopes/pikku-scope-types.gen.js.map +0 -1
- package/dist/.pikku/scopes/pikku-scopes-meta.gen.json +0 -1
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +0 -36
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +0 -1
- package/dist/.pikku/scopes/pikku-scopes.gen.js +0 -28
- package/dist/.pikku/scopes/pikku-scopes.gen.js.map +0 -1
- package/dist/.pikku/secrets/index.d.ts +0 -9
- package/dist/.pikku/secrets/index.d.ts.map +0 -1
- package/dist/.pikku/secrets/index.js +0 -9
- package/dist/.pikku/secrets/index.js.map +0 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +0 -5
- 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-secrets-meta.gen.json +0 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +0 -18
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +0 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +0 -19
- package/dist/.pikku/secrets/pikku-secrets.gen.js.map +0 -1
- package/dist/.pikku/services/pikku-meta-service.gen.d.ts +0 -8
- package/dist/.pikku/services/pikku-meta-service.gen.d.ts.map +0 -1
- package/dist/.pikku/services/pikku-meta-service.gen.js +0 -10
- package/dist/.pikku/services/pikku-meta-service.gen.js.map +0 -1
- package/dist/.pikku/setup/index.d.ts +0 -8
- package/dist/.pikku/setup/index.d.ts.map +0 -1
- package/dist/.pikku/setup/index.js +0 -8
- package/dist/.pikku/setup/index.js.map +0 -1
- package/dist/.pikku/setup/pikku-setup-types.gen.d.ts +0 -67
- package/dist/.pikku/setup/pikku-setup-types.gen.d.ts.map +0 -1
- package/dist/.pikku/setup/pikku-setup-types.gen.js +0 -88
- package/dist/.pikku/setup/pikku-setup-types.gen.js.map +0 -1
- package/dist/.pikku/trigger/index.d.ts +0 -8
- package/dist/.pikku/trigger/index.d.ts.map +0 -1
- package/dist/.pikku/trigger/index.js +0 -8
- package/dist/.pikku/trigger/index.js.map +0 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +0 -83
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts.map +0 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +0 -13
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js.map +0 -1
- package/dist/.pikku/variables/index.d.ts +0 -9
- package/dist/.pikku/variables/index.d.ts.map +0 -1
- package/dist/.pikku/variables/index.js +0 -9
- package/dist/.pikku/variables/index.js.map +0 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +0 -5
- 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-variables-meta.gen.json +0 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +0 -19
- package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +0 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +0 -19
- package/dist/.pikku/variables/pikku-variables.gen.js.map +0 -1
- package/dist/.pikku/workflow/index.d.ts +0 -8
- package/dist/.pikku/workflow/index.d.ts.map +0 -1
- package/dist/.pikku/workflow/index.js +0 -8
- package/dist/.pikku/workflow/index.js.map +0 -1
- package/dist/.pikku/workflow/pikku-personas.gen.d.ts +0 -18
- package/dist/.pikku/workflow/pikku-personas.gen.d.ts.map +0 -1
- package/dist/.pikku/workflow/pikku-personas.gen.js +0 -18
- package/dist/.pikku/workflow/pikku-personas.gen.js.map +0 -1
- package/dist/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +0 -18
- package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +0 -38
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +0 -100
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +0 -16
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +0 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts +0 -2
- 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.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/{scenarios/pikku-scenario-functions-meta.gen.json → addon/db/pikku-db-meta.gen.json} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @pikku/addon-graph
|
|
2
2
|
|
|
3
|
+
## 0.12.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 712991d: Ship the generated `pikku-db-meta.gen.json` in `dist`. `pikku all` writes it
|
|
8
|
+
under `.pikku/addon/db/`, but `tsc` only emits the JSON it sees imported and
|
|
9
|
+
nothing imports this one, so it never reached the published package. Every
|
|
10
|
+
consumer running `pikku db generate` then failed with "does not publish
|
|
11
|
+
.pikku/db/pikku-db-meta.gen.json" — an addon that cannot say whether it ships
|
|
12
|
+
tables — which took out the `ai-postgres`, `remote-rpc-pg` and
|
|
13
|
+
`workflows-pg-boss` templates.
|
|
14
|
+
- Updated dependencies [bbb9e3b]
|
|
15
|
+
- @pikku/core@0.12.106
|
|
16
|
+
|
|
3
17
|
## 0.12.13
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.141
|
|
3
3
|
*/
|
|
4
4
|
import { CoreAgent } from '@pikku/core/agent';
|
|
5
5
|
import { pikkuAgentScorer as corePikkuAgentScorer, pikkuAgentJudge as corePikkuAgentJudge } from '@pikku/core/agent-scorer';
|
|
@@ -21,9 +21,33 @@ type AgentConfig<InputSchema extends StandardSchemaV1 | undefined = undefined, O
|
|
|
21
21
|
agents?: AgentConfig<StandardSchemaV1 | undefined, StandardSchemaV1 | undefined>[];
|
|
22
22
|
workflows?: object[];
|
|
23
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* Declares an agent: the model, the prompt, the tools it may call and the shape
|
|
26
|
+
* of what it returns. Wire it like any other function.
|
|
27
|
+
*
|
|
28
|
+
* @example snippet: aiAgent
|
|
29
|
+
*/
|
|
24
30
|
export declare const pikkuAgent: <InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(agent: AgentConfig<InputSchema, OutputSchema>) => AgentConfig<InputSchema, OutputSchema>;
|
|
31
|
+
/**
|
|
32
|
+
* Declares a scorer that grades an agent run programmatically — a function over
|
|
33
|
+
* the run's input and output returning a score.
|
|
34
|
+
*
|
|
35
|
+
* @example snippet: agentScorer
|
|
36
|
+
*/
|
|
25
37
|
export declare const pikkuAgentScorer: (config: Parameters<typeof corePikkuAgentScorer<Services>>[0]) => import("@pikku/core/agent-scorer").PikkuAgentScorer<Services>;
|
|
38
|
+
/**
|
|
39
|
+
* Declares a scorer that grades an agent run with another model, for the
|
|
40
|
+
* qualities a programmatic check cannot express.
|
|
41
|
+
*
|
|
42
|
+
* @example snippet: agentJudge
|
|
43
|
+
*/
|
|
26
44
|
export declare const pikkuAgentJudge: (config: Parameters<typeof corePikkuAgentJudge<Services>>[0]) => import("@pikku/core/agent-scorer").PikkuAgentScorer<Services>;
|
|
45
|
+
/**
|
|
46
|
+
* A ready-made function that runs the named agent once and returns its result —
|
|
47
|
+
* wire it straight to a route when you need no logic around the run.
|
|
48
|
+
*
|
|
49
|
+
* @example snippet: aiAgentInvoke
|
|
50
|
+
*/
|
|
27
51
|
export declare const agent: <Name extends keyof AgentMap>(agentName: Name) => PikkuFunctionConfig<AgentInput, {
|
|
28
52
|
runId: string;
|
|
29
53
|
result: AgentMap[Name]["output"];
|
|
@@ -32,17 +56,34 @@ export declare const agent: <Name extends keyof AgentMap>(agentName: Name) => Pi
|
|
|
32
56
|
outputTokens: number;
|
|
33
57
|
};
|
|
34
58
|
}, "session" | "rpc">;
|
|
59
|
+
/**
|
|
60
|
+
* The streaming counterpart of `agent`: wire it to a channel to send tokens and
|
|
61
|
+
* tool calls as they happen instead of waiting for the run to finish.
|
|
62
|
+
*
|
|
63
|
+
* @example snippet: aiAgentStream
|
|
64
|
+
*/
|
|
35
65
|
export declare const agentStream: <Name extends keyof AgentMap>(agentName?: Name | undefined) => PikkuFunctionConfig<{
|
|
36
66
|
agentName?: string;
|
|
37
67
|
message: string;
|
|
38
68
|
threadId: string;
|
|
39
69
|
resourceId: string;
|
|
40
70
|
}, void, "session" | "rpc">;
|
|
71
|
+
/**
|
|
72
|
+
* A ready-made function that answers one pending tool approval, letting a run
|
|
73
|
+
* that paused for a human carry on.
|
|
74
|
+
*
|
|
75
|
+
* @example snippet: agentApproval
|
|
76
|
+
*/
|
|
41
77
|
export declare const agentResume: () => PikkuFunctionConfig<{
|
|
42
78
|
runId: string;
|
|
43
79
|
toolCallId: string;
|
|
44
80
|
approved: boolean;
|
|
45
81
|
}, void, "session" | "rpc">;
|
|
82
|
+
/**
|
|
83
|
+
* A ready-made function that answers every pending approval for a run at once.
|
|
84
|
+
*
|
|
85
|
+
* @example snippet: agentApproval
|
|
86
|
+
*/
|
|
46
87
|
export declare const agentApprove: <Name extends keyof AgentMap>(agentName: Name) => PikkuFunctionConfig<{
|
|
47
88
|
runId: string;
|
|
48
89
|
approvals: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-agent-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/agent/pikku-agent-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAO7C,OAAO,EACL,gBAAgB,IAAI,oBAAoB,EACxC,eAAe,IAAI,mBAAmB,EACvC,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAC5F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAA;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACt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A;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,QACM,mBAAmB,CAC7C;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,EACxD,IAAI,EACJ,SAAS,GAAG,KAAK,CAEpB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,IAAI,SAAS,MAAM,QAAQ,EACtD,WAAW,IAAI,KAE4D,mBAAmB,CAC5F;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;CAAE,EACzE,OAAO,EACP,SAAS,GAAG,KAAK,CAEpB,CAAA"}
|
|
@@ -1,19 +1,60 @@
|
|
|
1
1
|
import { agent as coreAgent, agentStream as coreAgentStream, agentResume as coreAgentResume, agentApprove as coreAgentApprove, } from '@pikku/core/agent';
|
|
2
2
|
import { pikkuAgentScorer as corePikkuAgentScorer, pikkuAgentJudge as corePikkuAgentJudge, } from '@pikku/core/agent-scorer';
|
|
3
|
+
/**
|
|
4
|
+
* Declares an agent: the model, the prompt, the tools it may call and the shape
|
|
5
|
+
* of what it returns. Wire it like any other function.
|
|
6
|
+
*
|
|
7
|
+
* @example snippet: aiAgent
|
|
8
|
+
*/
|
|
3
9
|
export const pikkuAgent = (agent) => {
|
|
4
10
|
return agent;
|
|
5
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* Declares a scorer that grades an agent run programmatically — a function over
|
|
14
|
+
* the run's input and output returning a score.
|
|
15
|
+
*
|
|
16
|
+
* @example snippet: agentScorer
|
|
17
|
+
*/
|
|
6
18
|
export const pikkuAgentScorer = (config) => corePikkuAgentScorer(config);
|
|
19
|
+
/**
|
|
20
|
+
* Declares a scorer that grades an agent run with another model, for the
|
|
21
|
+
* qualities a programmatic check cannot express.
|
|
22
|
+
*
|
|
23
|
+
* @example snippet: agentJudge
|
|
24
|
+
*/
|
|
7
25
|
export const pikkuAgentJudge = (config) => corePikkuAgentJudge(config);
|
|
26
|
+
/**
|
|
27
|
+
* A ready-made function that runs the named agent once and returns its result —
|
|
28
|
+
* wire it straight to a route when you need no logic around the run.
|
|
29
|
+
*
|
|
30
|
+
* @example snippet: aiAgentInvoke
|
|
31
|
+
*/
|
|
8
32
|
export const agent = (agentName) => {
|
|
9
33
|
return coreAgent(agentName);
|
|
10
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* The streaming counterpart of `agent`: wire it to a channel to send tokens and
|
|
37
|
+
* tool calls as they happen instead of waiting for the run to finish.
|
|
38
|
+
*
|
|
39
|
+
* @example snippet: aiAgentStream
|
|
40
|
+
*/
|
|
11
41
|
export const agentStream = (agentName) => {
|
|
12
42
|
return coreAgentStream(agentName);
|
|
13
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* A ready-made function that answers one pending tool approval, letting a run
|
|
46
|
+
* that paused for a human carry on.
|
|
47
|
+
*
|
|
48
|
+
* @example snippet: agentApproval
|
|
49
|
+
*/
|
|
14
50
|
export const agentResume = () => {
|
|
15
51
|
return coreAgentResume();
|
|
16
52
|
};
|
|
53
|
+
/**
|
|
54
|
+
* A ready-made function that answers every pending approval for a run at once.
|
|
55
|
+
*
|
|
56
|
+
* @example snippet: agentApproval
|
|
57
|
+
*/
|
|
17
58
|
export const agentApprove = (agentName) => {
|
|
18
59
|
return coreAgentApprove(agentName);
|
|
19
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-agent-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/agent/pikku-agent-types.gen.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,IAAI,SAAS,EAClB,WAAW,IAAI,eAAe,EAC9B,WAAW,IAAI,eAAe,EAC9B,YAAY,IAAI,gBAAgB,GACjC,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EACL,gBAAgB,IAAI,oBAAoB,EACxC,eAAe,IAAI,mBAAmB,GACvC,MAAM,0BAA0B,CAAA;AAsBjC,MAAM,CAAC,MAAM,UAAU,GAAG,CAIxB,KAA6C,EAC7C,EAAE;IACF,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,MAA4D,EAC5D,EAAE,CAAC,oBAAoB,CAAW,MAAM,CAAC,CAAA;AAE3C,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,MAA2D,EAC3D,EAAE,CAAC,mBAAmB,CAAW,MAAM,CAAC,CAAA;AAI1C,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"}
|
|
1
|
+
{"version":3,"file":"pikku-agent-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/agent/pikku-agent-types.gen.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,IAAI,SAAS,EAClB,WAAW,IAAI,eAAe,EAC9B,WAAW,IAAI,eAAe,EAC9B,YAAY,IAAI,gBAAgB,GACjC,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EACL,gBAAgB,IAAI,oBAAoB,EACxC,eAAe,IAAI,mBAAmB,GACvC,MAAM,0BAA0B,CAAA;AAsBjC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAIxB,KAA6C,EAC7C,EAAE;IACF,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,MAA4D,EAC5D,EAAE,CAAC,oBAAoB,CAAW,MAAM,CAAC,CAAA;AAE3C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,MAA2D,EAC3D,EAAE,CAAC,mBAAmB,CAAW,MAAM,CAAC,CAAA;AAI1C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,CACnB,SAAe,EACf,EAAE;IACF,OAAO,SAAS,CAAW,SAAoC,CAI9D,CAAA;AACH,CAAC,CAAA;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,SAAgB,EAChB,EAAE;IACF,OAAO,eAAe,CAAW,SAAoC,CAIpE,CAAA;AACH,CAAC,CAAA;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC9B,OAAO,eAAe,EAIrB,CAAA;AACH,CAAC,CAAA;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,SAAe,EACf,EAAE;IACF,OAAO,gBAAgB,CAAW,SAAoC,CAIrE,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.141
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Permission, auth gate and credential definitions
|
|
6
6
|
*/
|
|
7
7
|
import type { PikkuWire, SecretlessServices } from '@pikku/core/types';
|
|
8
8
|
import type { CorePermissionGroup, CorePikkuAuth, CorePikkuAuthConfig, CorePikkuPermission } from '@pikku/core/function';
|
|
9
|
-
import type { Services, Session, SingletonServices, WiredServices
|
|
9
|
+
import type { Services, Session, SingletonServices, WiredServices } from '../function/pikku-function-types.gen.js';
|
|
10
|
+
import type { RequiredSingletonServices } from '../pikku-services.gen.js';
|
|
10
11
|
export { defineCredential } from '@pikku/core/credential';
|
|
12
|
+
/**
|
|
13
|
+
* Derived here rather than imported: nothing outside a generated leaf ever
|
|
14
|
+
* names this intersection, so the function leaf keeps it to itself and the
|
|
15
|
+
* leaves that want it spell it out.
|
|
16
|
+
*/
|
|
17
|
+
type WiredSingletonServices = RequiredSingletonServices & SingletonServices;
|
|
11
18
|
/** `WiredSingletonServices` without `secrets`, for auth gates. */
|
|
12
19
|
type WiredAuthServices = SecretlessServices<WiredSingletonServices>;
|
|
13
20
|
/**
|
|
@@ -33,24 +40,7 @@ type PikkuPermissionConfig<In = unknown, RequiredServices extends SecretlessServ
|
|
|
33
40
|
* Factory function for creating permissions with tree-shaking support.
|
|
34
41
|
* Supports both direct function and configuration object syntax.
|
|
35
42
|
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```typescript
|
|
38
|
-
* // Direct function syntax
|
|
39
|
-
* const permission = pikkuPermission(async ({ logger }, data, { session }) => {
|
|
40
|
-
* const session = await session?.get()
|
|
41
|
-
* return session?.role === 'admin'
|
|
42
|
-
* })
|
|
43
|
-
*
|
|
44
|
-
* // Configuration object syntax with metadata
|
|
45
|
-
* const adminPermission = pikkuPermission({
|
|
46
|
-
* name: 'Admin Permission',
|
|
47
|
-
* description: 'Checks if user has admin role',
|
|
48
|
-
* func: async ({ logger }, data, { session }) => {
|
|
49
|
-
* const session = await session?.get()
|
|
50
|
-
* return session?.role === 'admin'
|
|
51
|
-
* }
|
|
52
|
-
* })
|
|
53
|
-
* ```
|
|
43
|
+
* @example snippet: permissionFunction
|
|
54
44
|
*/
|
|
55
45
|
export declare const pikkuPermission: <In>(permission: PikkuPermission<In> | PikkuPermissionConfig<In>) => PikkuPermission<In>;
|
|
56
46
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-auth-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/auth/pikku-auth-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AACtE,OAAO,KAAK,EACV,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,sBAAsB,CAAA;AAG7B,OAAO,KAAK,EACV,QAAQ,EACR,OAAO,EACP,iBAAiB,EACjB,aAAa,
|
|
1
|
+
{"version":3,"file":"pikku-auth-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/auth/pikku-auth-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AACtE,OAAO,KAAK,EACV,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,sBAAsB,CAAA;AAG7B,OAAO,KAAK,EACV,QAAQ,EACR,OAAO,EACP,iBAAiB,EACjB,aAAa,EACd,MAAM,yCAAyC,CAAA;AAChD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAA;AAEzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAEzD;;;;GAIG;AACH,KAAK,sBAAsB,GAAG,yBAAyB,GAAG,iBAAiB,CAAA;AAE3E,kEAAkE;AAClE,KAAK,iBAAiB,GAAG,kBAAkB,CAAC,sBAAsB,CAAC,CAAA;AAEnE;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,CAAC,EAAE,GAAG,OAAO,EAAE,gBAAgB,SAAS,kBAAkB,CAAC,QAAQ,CAAC,GAAG,aAAa,IAAI,mBAAmB,CAAC,EAAE,EAAE,gBAAgB,EAAE,SAAS,CAAC,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAA;AAElM;;GAEG;AACH,KAAK,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GAQG;AACH,eAAO,MAAM,mBAAmB,GAAI,EAAE,GAAG,OAAO,EAAE,aAAa,mBAAmB,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,eAAe,CAAC,EAAE,CAAC,EAAE,SAE9H,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.141
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Permission, auth gate and credential definitions
|
|
@@ -11,24 +11,7 @@ export { defineCredential } from '@pikku/core/credential';
|
|
|
11
11
|
* Factory function for creating permissions with tree-shaking support.
|
|
12
12
|
* Supports both direct function and configuration object syntax.
|
|
13
13
|
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```typescript
|
|
16
|
-
* // Direct function syntax
|
|
17
|
-
* const permission = pikkuPermission(async ({ logger }, data, { session }) => {
|
|
18
|
-
* const session = await session?.get()
|
|
19
|
-
* return session?.role === 'admin'
|
|
20
|
-
* })
|
|
21
|
-
*
|
|
22
|
-
* // Configuration object syntax with metadata
|
|
23
|
-
* const adminPermission = pikkuPermission({
|
|
24
|
-
* name: 'Admin Permission',
|
|
25
|
-
* description: 'Checks if user has admin role',
|
|
26
|
-
* func: async ({ logger }, data, { session }) => {
|
|
27
|
-
* const session = await session?.get()
|
|
28
|
-
* return session?.role === 'admin'
|
|
29
|
-
* }
|
|
30
|
-
* })
|
|
31
|
-
* ```
|
|
14
|
+
* @example snippet: permissionFunction
|
|
32
15
|
*/
|
|
33
16
|
export const pikkuPermission = (permission) => {
|
|
34
17
|
return typeof permission === 'function' ? permission : permission.func;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-auth-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/auth/pikku-auth-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AASH,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,EAAE,mBAAmB,IAAI,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AASvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"pikku-auth-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/auth/pikku-auth-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AASH,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,EAAE,mBAAmB,IAAI,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AASvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAiCzD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,UAA2D,EACtC,EAAE;IACvB,OAAO,OAAO,UAAU,KAAK,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAA;AACxE,CAAC,CAAA;AAgBD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,IAAqE,EAC1C,EAAE;IAC7B,OAAO,aAAa,CAAC,IAAW,CAAQ,CAAA;AAC1C,CAAC,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,OAA4C,EACL,EAAE;IACzC,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAe,WAA6E,EAAE,EAAE;IACjI,uBAAuB,CAAC,WAAkB,EAAE,oBAAoB,CAAC,CAAA;AACnE,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.141
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Channel-specific type definitions for tree-shaking optimization
|
|
@@ -20,6 +20,8 @@ type InferSchemaOutput<T> = T extends StandardSchemaV1<any, infer Output> ? Outp
|
|
|
20
20
|
* @template Out - Output type for connection response
|
|
21
21
|
* @param func - Function definition, either direct function or configuration object
|
|
22
22
|
* @returns The normalized configuration object
|
|
23
|
+
*
|
|
24
|
+
* @example snippet: channelLifecycle
|
|
23
25
|
*/
|
|
24
26
|
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">;
|
|
25
27
|
/**
|
|
@@ -28,6 +30,8 @@ export declare const pikkuChannelConnectionFunc: <Out = unknown>(func: PikkuFunc
|
|
|
28
30
|
*
|
|
29
31
|
* @param func - Function definition, either direct function or configuration object
|
|
30
32
|
* @returns The normalized configuration object
|
|
33
|
+
*
|
|
34
|
+
* @example snippet: channelLifecycle
|
|
31
35
|
*/
|
|
32
36
|
export declare const pikkuChannelDisconnectionFunc: (func: PikkuFunctionSessionless<void, void, "channel"> | PikkuFunctionConfig<void, void, "channel" | "session" | "rpc">) => PikkuFunctionConfig<void, void, "channel" | "rpc" | "session">;
|
|
33
37
|
/**
|
|
@@ -58,23 +62,7 @@ type PikkuChannelFuncConfigWithSchema<InputSchema extends StandardSchemaV1, Outp
|
|
|
58
62
|
* @param func - Function definition, either direct function or configuration object
|
|
59
63
|
* @returns The normalized configuration object
|
|
60
64
|
*
|
|
61
|
-
* @example
|
|
62
|
-
* ```typescript
|
|
63
|
-
* // Pattern 1: Using generic types
|
|
64
|
-
* const handleMessage = pikkuChannelFunc<{text: string}, {received: boolean}>({
|
|
65
|
-
* func: async (_services, { text }) => ({ received: true })
|
|
66
|
-
* })
|
|
67
|
-
*
|
|
68
|
-
* // Pattern 2: Using Zod schemas
|
|
69
|
-
* const messageInput = z.object({ text: z.string() })
|
|
70
|
-
* const messageOutput = z.object({ received: z.boolean() })
|
|
71
|
-
*
|
|
72
|
-
* const handleMessage = pikkuChannelFunc({
|
|
73
|
-
* input: messageInput,
|
|
74
|
-
* output: messageOutput,
|
|
75
|
-
* func: async (_services, { text }) => ({ received: true })
|
|
76
|
-
* })
|
|
77
|
-
* ```
|
|
65
|
+
* @example snippet: orderStatusChannel
|
|
78
66
|
*/
|
|
79
67
|
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'>;
|
|
80
68
|
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'>;
|
|
@@ -85,6 +73,8 @@ export declare function pikkuChannelFunc<In, Out = unknown>(func: PikkuFunctionS
|
|
|
85
73
|
* @template T - Record of channel route handlers
|
|
86
74
|
* @param routes - The channel routes record
|
|
87
75
|
* @returns The same routes record (identity function for type safety)
|
|
76
|
+
*
|
|
77
|
+
* @example snippet: channelRoutes
|
|
88
78
|
*/
|
|
89
79
|
export declare function defineChannelRoutes<T extends Record<string, any>>(routes: T): T;
|
|
90
80
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-channel-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/channel/pikku-channel-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAA;AAC5G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B,gBAAgB,CAAC,EAAE,EAAE,GAAG,GAAG,OAAO,EAChD,IAAI,EACA,wBAAwB,CAAC,EAAE,EAAE,GAAG,EAAE,SAAS,GAAG,SAAS,GAAG,KAAK,CAAC,GAChE,mBAAmB,CAAC,EAAE,EAAE,GAAG,EAAE,SAAS,GAAG,SAAS,GAAG,KAAK,CAAC,GAC9D,mBAAmB,CAAC,EAAE,EAAE,GAAG,EAAE,SAAS,GAAG,SAAS,GAAG,KAAK,CAAC,CAAA;AAM9D;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAE/E"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.141
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Channel-specific type definitions for tree-shaking optimization
|
|
@@ -12,6 +12,8 @@ import { defineChannelRoutes as defineChannelRoutesCore } from '@pikku/core/chan
|
|
|
12
12
|
* @template Out - Output type for connection response
|
|
13
13
|
* @param func - Function definition, either direct function or configuration object
|
|
14
14
|
* @returns The normalized configuration object
|
|
15
|
+
*
|
|
16
|
+
* @example snippet: channelLifecycle
|
|
15
17
|
*/
|
|
16
18
|
export const pikkuChannelConnectionFunc = (func) => {
|
|
17
19
|
return typeof func === 'function' ? { func } : func;
|
|
@@ -22,6 +24,8 @@ export const pikkuChannelConnectionFunc = (func) => {
|
|
|
22
24
|
*
|
|
23
25
|
* @param func - Function definition, either direct function or configuration object
|
|
24
26
|
* @returns The normalized configuration object
|
|
27
|
+
*
|
|
28
|
+
* @example snippet: channelLifecycle
|
|
25
29
|
*/
|
|
26
30
|
export const pikkuChannelDisconnectionFunc = (func) => {
|
|
27
31
|
return typeof func === 'function' ? { func } : func;
|
|
@@ -36,6 +40,8 @@ export function pikkuChannelFunc(func) {
|
|
|
36
40
|
* @template T - Record of channel route handlers
|
|
37
41
|
* @param routes - The channel routes record
|
|
38
42
|
* @returns The same routes record (identity function for type safety)
|
|
43
|
+
*
|
|
44
|
+
* @example snippet: channelRoutes
|
|
39
45
|
*/
|
|
40
46
|
export function defineChannelRoutes(routes) {
|
|
41
47
|
return defineChannelRoutesCore(routes);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-channel-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/channel/pikku-channel-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAE,mBAAmB,IAAI,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAcpF
|
|
1
|
+
{"version":3,"file":"pikku-channel-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/channel/pikku-channel-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAE,mBAAmB,IAAI,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAcpF;;;;;;;;;GASG;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;;;;;;;;GAQG;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;AAmDD,MAAM,UAAU,gBAAgB,CAAC,IAAS;IACxC,OAAO,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACrD,CAAC;AAGD;;;;;;;;;GASG;AACH,MAAM,UAAU,mBAAmB,CAAgC,MAAS;IAC1E,OAAO,uBAAuB,CAAC,MAAM,CAAC,CAAA;AACxC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.141
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Core function types for all wirings
|
|
@@ -23,8 +23,21 @@ import type { TypedPikkuRPC, FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-ma
|
|
|
23
23
|
import type { RequiredSingletonServices } from '../pikku-services.gen.js';
|
|
24
24
|
import type { TypedWorkflow } from '../workflow/pikku-workflow-types.gen.js';
|
|
25
25
|
import type { TypedScenario, TypedPersonas } from '../scenarios/pikku-scenario-types.gen.js';
|
|
26
|
+
/**
|
|
27
|
+
* The services that live for the process — the ones built once in `createConfig`/
|
|
28
|
+
* `createSingletonServices` and shared by every request.
|
|
29
|
+
*/
|
|
26
30
|
export type { SingletonServices as SingletonServices };
|
|
31
|
+
/**
|
|
32
|
+
* Everything a function is handed as its first argument: the singleton services
|
|
33
|
+
* plus whatever is built per request. This is the type to widen when you add a
|
|
34
|
+
* service.
|
|
35
|
+
*/
|
|
27
36
|
export type { Services as Services };
|
|
37
|
+
/**
|
|
38
|
+
* The signed-in user as this project defines it. Reached on the wire as
|
|
39
|
+
* `session`, and replaced with `setSession`.
|
|
40
|
+
*/
|
|
28
41
|
export type Session = UserSession;
|
|
29
42
|
/**
|
|
30
43
|
* The services a wired function actually receives. The inspector records which
|
|
@@ -33,8 +46,18 @@ export type Session = UserSession;
|
|
|
33
46
|
* services **non-optional** at every call site. A service is optional only when
|
|
34
47
|
* nothing destructures it — in which case it is never created either. This is
|
|
35
48
|
* why an `if (!service)` guard inside a function body is always dead code.
|
|
49
|
+
*
|
|
50
|
+
* Only the wire-services half lives here. The singleton half is declared by the
|
|
51
|
+
* auth and middleware leaves that use it, because whether a name earns its
|
|
52
|
+
* export is measured rather than chosen: emit declarations for a project and
|
|
53
|
+
* `WiredServices` is named by 147 of its `.d.ts` files, while the singleton
|
|
54
|
+
* intersection is named by none outside the leaves that declare it. Export the
|
|
55
|
+
* latter and it is a compatibility promise nothing asked for; unexport
|
|
56
|
+
* `WiredServices` and every wired module inlines the intersection instead,
|
|
57
|
+
* which asks it to name each member service through a specifier it does not
|
|
58
|
+
* have — 3308 TS2883s. `--noEmit` cannot surface any of that, so re-check with
|
|
59
|
+
* `tsc --declaration --emitDeclarationOnly` before moving either one.
|
|
36
60
|
*/
|
|
37
|
-
export type WiredSingletonServices = RequiredSingletonServices & SingletonServices;
|
|
38
61
|
export type WiredServices = SecretlessServices<RequiredSingletonServices & Services>;
|
|
39
62
|
/**
|
|
40
63
|
* Inline node configuration for function definitions.
|
|
@@ -139,24 +162,17 @@ type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 | undefi
|
|
|
139
162
|
* @param config - Function definition with `input`/`output` Zod schemas and `func`.
|
|
140
163
|
* @returns The normalized configuration object
|
|
141
164
|
*
|
|
142
|
-
* @example
|
|
143
|
-
* ```typescript
|
|
144
|
-
* const createUserInput = z.object({ name: z.string(), email: z.string() })
|
|
145
|
-
* const createUserOutput = z.object({ id: z.number() })
|
|
146
|
-
*
|
|
147
|
-
* const createUser = pikkuFunc({
|
|
148
|
-
* input: createUserInput,
|
|
149
|
-
* output: createUserOutput,
|
|
150
|
-
* func: async ({db}, input) => {
|
|
151
|
-
* // input is typed as { name: string, email: string }
|
|
152
|
-
* const user = await db.users.create(input)
|
|
153
|
-
* return { id: user.id } // must match output schema
|
|
154
|
-
* }
|
|
155
|
-
* })
|
|
156
|
-
* ```
|
|
165
|
+
* @example snippet: sessionFunction
|
|
157
166
|
*/
|
|
158
167
|
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'>;
|
|
159
168
|
export declare function pikkuFunc<In, Out = unknown>(func: PikkuFunction<In, Out, 'session' | 'rpc'> | PikkuFunctionConfig<In, Out, 'session' | 'rpc'>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
|
|
169
|
+
/**
|
|
170
|
+
* A `pikkuFunc` whose input and output are already the shared list shape —
|
|
171
|
+
* filters, sort, paging in; rows and a total out — so a listing endpoint pages
|
|
172
|
+
* the same way everywhere.
|
|
173
|
+
*
|
|
174
|
+
* @example snippet: listFunction
|
|
175
|
+
*/
|
|
160
176
|
export declare const pikkuListFunc: <F extends Record<string, unknown> = {}, Row = unknown, S extends string = never>(config: PikkuFunctionConfig<ListInput<F, S>, ListOutput<Row>, "session" | "rpc">) => PikkuFunctionConfig<ListInput<F, S>, ListOutput<Row>, "session" | "rpc">;
|
|
161
177
|
/**
|
|
162
178
|
* Configuration object for sessionless Pikku functions with Zod schema validation.
|
|
@@ -184,19 +200,7 @@ type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends StandardSchema
|
|
|
184
200
|
* @param config - Function definition with `input`/`output` Zod schemas and `func`.
|
|
185
201
|
* @returns The normalized configuration object
|
|
186
202
|
*
|
|
187
|
-
* @example
|
|
188
|
-
* ```typescript
|
|
189
|
-
* const greetInput = z.object({ name: z.string() })
|
|
190
|
-
* const greetOutput = z.object({ message: z.string() })
|
|
191
|
-
*
|
|
192
|
-
* const greet = pikkuSessionlessFunc({
|
|
193
|
-
* input: greetInput,
|
|
194
|
-
* output: greetOutput,
|
|
195
|
-
* func: async (_services, { name }) => {
|
|
196
|
-
* return { message: `Hello, ${name}!` }
|
|
197
|
-
* }
|
|
198
|
-
* })
|
|
199
|
-
* ```
|
|
203
|
+
* @example snippet: readFunction
|
|
200
204
|
*/
|
|
201
205
|
export declare function pikkuSessionlessFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredServices extends SecretlessServices<Services> = WiredServices>(config: PikkuFunctionSessionlessConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc', RequiredServices>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>;
|
|
202
206
|
export declare function pikkuSessionlessFunc<In, Out = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices>(func: PikkuFunctionSessionless<In, Out, 'session' | 'rpc', RequiredServices> | PikkuFunctionSessionlessConfig<In, Out, 'session' | 'rpc', PikkuFunctionSessionless<In, Out, 'session' | 'rpc', RequiredServices>>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
|
|
@@ -207,14 +211,7 @@ export declare function pikkuSessionlessFunc<In, Out = unknown, RequiredServices
|
|
|
207
211
|
* @param func - Function definition, either direct function or configuration object
|
|
208
212
|
* @returns The normalized configuration object
|
|
209
213
|
*
|
|
210
|
-
* @example
|
|
211
|
-
* ```typescript
|
|
212
|
-
* const cleanupTempFiles = pikkuVoidFunc(async ({fileSystem, logger}) => {
|
|
213
|
-
* logger.info('Starting cleanup of temporary files')
|
|
214
|
-
* await fileSystem.deleteDirectory('/tmp/uploads')
|
|
215
|
-
* logger.info('Cleanup completed')
|
|
216
|
-
* })
|
|
217
|
-
* ```
|
|
214
|
+
* @example snippet: cleanupFunction
|
|
218
215
|
*/
|
|
219
216
|
export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void, "session" | "rpc"> | PikkuFunctionSessionlessConfig<void, void, "session" | "rpc">) => PikkuFunctionConfig<void, void, "session" | "rpc">;
|
|
220
217
|
/**
|
|
@@ -262,9 +259,21 @@ export declare function pikkuRemoteChannelFunc<InputSchema extends StandardSchem
|
|
|
262
259
|
declare const __addonHttp: {};
|
|
263
260
|
declare const __addonChannel: {};
|
|
264
261
|
declare const __addonCli: {};
|
|
262
|
+
/**
|
|
263
|
+
* Names an HTTP route an installed addon wires, so you can link or redirect to
|
|
264
|
+
* it without hardcoding a path the addon may move.
|
|
265
|
+
*/
|
|
265
266
|
export declare const refHTTP: <Name extends keyof typeof __addonHttp>(name: Name, options?: {
|
|
266
267
|
basePath?: string;
|
|
267
268
|
}) => (typeof __addonHttp)[Name];
|
|
269
|
+
/**
|
|
270
|
+
* Names a channel an installed addon wires, for connecting to it without
|
|
271
|
+
* hardcoding its name.
|
|
272
|
+
*/
|
|
268
273
|
export declare const refChannel: <Name extends keyof typeof __addonChannel>(name: Name) => (typeof __addonChannel)[Name];
|
|
274
|
+
/**
|
|
275
|
+
* Names a CLI command an installed addon wires, for invoking it without
|
|
276
|
+
* hardcoding its name.
|
|
277
|
+
*/
|
|
269
278
|
export declare const refCLI: <Name extends keyof typeof __addonCli>(name: Name) => (typeof __addonCli)[Name];
|
|
270
279
|
//# sourceMappingURL=pikku-function-types.gen.d.ts.map
|