@pikku/addon-meta-conversions 0.1.3 → 0.1.5
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 -3
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.js.map +1 -0
- package/dist/.pikku/{agent → addon/agent}/pikku-agent-types.gen.ts +28 -21
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.d.ts +2 -0
- 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/addon/agent/pikku-scorer-names.gen.d.ts +8 -0
- 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 +119 -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 +156 -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/addon/function/pikku-function-types.gen.d.ts +270 -0
- 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/{.pikku → dist/.pikku/addon}/function/pikku-function-types.gen.ts +65 -381
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/{function → addon/function}/pikku-functions-meta.gen.js +2 -2
- 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/{function → addon/function}/pikku-functions.gen.js +2 -2
- package/dist/.pikku/addon/function/pikku-functions.gen.js.map +1 -0
- package/dist/.pikku/{function → addon/function}/pikku-functions.gen.ts +2 -2
- 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/{.pikku → dist/.pikku/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 +118 -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 +167 -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} +3 -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} +3 -2
- package/dist/.pikku/addon/pikku-bootstrap.gen.js.map +1 -0
- package/dist/.pikku/addon/pikku-bootstrap.gen.ts +9 -0
- package/dist/.pikku/addon/pikku-package.gen.js +3 -2
- package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-package.gen.ts +4 -2
- package/dist/.pikku/{pikku-services.gen.d.ts → addon/pikku-services.gen.d.ts} +9 -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} +5 -4
- package/dist/.pikku/addon/pikku-services.gen.js.map +1 -0
- package/{.pikku → dist/.pikku/addon}/pikku-services.gen.ts +9 -8
- package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-map.gen.d.ts +6 -11
- package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-map.internal.gen.d.ts +6 -11
- package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-map.remote.gen.d.ts +6 -11
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -0
- package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-meta.internal.gen.js +2 -2
- 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 +3 -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 +4 -6
- 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/{.pikku → dist/.pikku/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} +79 -107
- 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} +119 -210
- 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/{.pikku → dist/.pikku/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/{.pikku → dist/.pikku/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 +22 -0
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +21 -0
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.js.map +1 -0
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.ts +30 -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} +7 -6
- 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} +3 -3
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js.map +1 -0
- package/{.pikku/addon/pikku-addon-types.gen.ts → dist/.pikku/addon/setup/pikku-addon-setup-types.gen.ts} +6 -5
- 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 +1702 -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 +19 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.js +19 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.js.map +1 -0
- package/dist/.pikku/addon/variables/pikku-variables.gen.ts +30 -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 +2 -2
- 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/events/send.function.d.ts +4 -4
- package/dist/src/functions/events/send.function.d.ts.map +1 -1
- package/dist/src/functions/events/send.function.js +1 -1
- package/dist/src/functions/events/send.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 +2 -2
- package/dist/src/services.js.map +1 -1
- package/dist/types/application-types.d.ts +12 -0
- package/package.json +8 -8
- package/.pikku/addon/pikku-package.gen.ts +0 -11
- package/.pikku/agent/pikku-agent-map.gen.d.ts +0 -4
- package/.pikku/agent/pikku-agent-types.gen.ts +0 -84
- package/.pikku/channel/pikku-channel-types.gen.ts +0 -177
- package/.pikku/console/pikku-node-types.gen.ts +0 -8
- package/.pikku/function/pikku-functions-meta.gen.ts +0 -7
- package/.pikku/function/pikku-functions.gen.ts +0 -8
- package/.pikku/http/pikku-http-types.gen.ts +0 -119
- package/.pikku/pikku-bootstrap-scenarios.gen.ts +0 -9
- package/.pikku/pikku-bootstrap.gen.ts +0 -8
- package/.pikku/pikku-meta-service.gen.ts +0 -10
- package/.pikku/pikku-types.gen.ts +0 -24
- package/.pikku/queue/pikku-queue-types.gen.ts +0 -27
- package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +0 -135
- package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +0 -136
- package/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +0 -135
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +0 -6
- package/.pikku/scenarios/pikku-scenario-functions.gen.ts +0 -4
- package/.pikku/scenarios/pikku-scenario-wirings.gen.ts +0 -4
- package/.pikku/scenarios/schemas/register.gen.ts +0 -4
- package/.pikku/scheduler/pikku-scheduler-types.gen.ts +0 -25
- package/.pikku/schemas/register.gen.ts +0 -15
- package/.pikku/scopes/pikku-personas.gen.ts +0 -52
- package/.pikku/scopes/pikku-scope-types.gen.ts +0 -7
- package/.pikku/scopes/pikku-scopes.gen.ts +0 -58
- package/.pikku/secrets/pikku-secret-types.gen.ts +0 -5
- package/.pikku/secrets/pikku-secrets.gen.ts +0 -36
- package/.pikku/trigger/pikku-trigger-types.gen.ts +0 -160
- package/.pikku/variables/pikku-variable-types.gen.ts +0 -5
- package/.pikku/variables/pikku-variables.gen.ts +0 -34
- package/.pikku/workflow/pikku-personas.gen.ts +0 -38
- package/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +0 -18
- package/.pikku/workflow/pikku-workflow-map.gen.d.ts +0 -38
- package/.pikku/workflow/pikku-workflow-types.gen.ts +0 -591
- package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +0 -9
- package/.pikku/workflow/pikku-workflow-wirings.gen.ts +0 -3
- 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/addon/pikku-addon-types.gen.ts +0 -105
- package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +0 -4
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +0 -49
- 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/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-addon-meta.gen.json +0 -36
- 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 +0 -506
- 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-function-types.gen.ts +0 -797
- package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +0 -33
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.js.map +0 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +0 -27
- 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.map +0 -1
- 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/mcp/pikku-mcp-types.gen.ts +0 -183
- 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-bootstrap.gen.ts +0 -8
- 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-services.gen.ts +0 -50
- 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.map +0 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +0 -3
- package/dist/.pikku/scenarios/features.gen.json +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-meta.gen.json +0 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.ts +0 -12
- 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-meta.gen.ts +0 -15
- 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/schemas/schemas/EventSendInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/EventSendOutput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/SecretSchema_metaConversions.schema.json +0 -1
- package/dist/.pikku/scopes/pikku-personas-meta.gen.json +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-meta.gen.json +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-roles.gen.ts +0 -41
- 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-meta.gen.json +0 -1
- 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-meta.gen.json +0 -10
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +0 -25
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +0 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +0 -23
- package/dist/.pikku/secrets/pikku-secrets.gen.js.map +0 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.ts +0 -36
- 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-meta.gen.json +0 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +0 -22
- package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +0 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +0 -21
- package/dist/.pikku/variables/pikku-variables.gen.js.map +0 -1
- package/dist/.pikku/variables/pikku-variables.gen.ts +0 -34
- package/dist/.pikku/workflow/personas.gen.json +0 -1
- 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/{.pikku → dist/.pikku/addon}/console/pikku-addon-meta.gen.json +0 -0
- /package/{.pikku → dist/.pikku/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/{.pikku → dist/.pikku/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/{.pikku → dist/.pikku/addon}/rpc/pikku-rpc-wirings-meta.internal.gen.json +0 -0
- /package/{.pikku → dist/.pikku/addon}/scenarios/features.gen.json +0 -0
- /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-functions-meta.gen.d.ts +0 -0
- /package/{.pikku → dist/.pikku/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/{.pikku → dist/.pikku/addon}/schemas/schemas/EventSendInput.schema.json +0 -0
- /package/{.pikku → dist/.pikku/addon}/schemas/schemas/EventSendOutput.schema.json +0 -0
- /package/{.pikku → dist/.pikku/addon}/schemas/schemas/SecretSchema_metaConversions.schema.json +0 -0
- /package/{.pikku → dist/.pikku/addon}/scopes/pikku-personas-meta.gen.json +0 -0
- /package/{.pikku → dist/.pikku/addon}/scopes/pikku-roles-meta.gen.json +0 -0
- /package/dist/.pikku/{scopes → addon/scopes}/pikku-roles.gen.js +0 -0
- /package/{.pikku → dist/.pikku/addon}/scopes/pikku-scopes-meta.gen.json +0 -0
- /package/dist/.pikku/{scopes → addon/scopes}/pikku-scopes.gen.js +0 -0
- /package/{.pikku → dist/.pikku/addon}/secrets/pikku-secrets-meta.gen.json +0 -0
- /package/{.pikku → dist/.pikku/addon}/variables/pikku-variables-meta.gen.json +0 -0
- /package/{.pikku → dist/.pikku/addon}/workflow/personas.gen.json +0 -0
- /package/dist/.pikku/{workflow → addon/workflow}/pikku-workflow-wirings-meta.gen.d.ts +0 -0
|
@@ -1,62 +1,49 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.107
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from '@pikku/core/
|
|
11
|
-
import type {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import type {
|
|
15
|
-
import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.d.js'
|
|
16
|
-
import type { FlattenedWorkflowMap } from './pikku-workflow-map.gen.d.js'
|
|
17
|
-
import type { AgentMap as FlattenedAgentMap } from '../agent/pikku-agent-map.gen.d.js'
|
|
18
|
-
import type { FlattenedScenarioStepMap } from './pikku-scenario-step-map.gen.d.js'
|
|
4
|
+
import type {
|
|
5
|
+
PikkuScenarioWire,
|
|
6
|
+
ScenarioStepOptions,
|
|
7
|
+
} from '@pikku/core/scenario'
|
|
8
|
+
import type { PikkuWorkflowWire } from '@pikku/core/workflow'
|
|
9
|
+
import type { StandardSchemaV1 } from '@standard-schema/spec'
|
|
10
|
+
import { PikkuError } from '@pikku/core/errors'
|
|
11
|
+
import type { PikkuFunctionSessionless, PikkuFunctionConfig, WiredServices, InferSchemaOutput, NodeConfig, PikkuApprovalDescription } from '../function/pikku-function-types.gen.js'
|
|
12
|
+
import type { PikkuMiddleware } from '../middleware/pikku-middleware-types.gen.js'
|
|
13
|
+
import type { TypedWorkflow } from '../workflow/pikku-workflow-types.gen.js'
|
|
14
|
+
import type { FlattenedScenarioStepMap } from '../workflow/pikku-scenario-step-map.gen.d.js'
|
|
19
15
|
import type { TypedPersonas } from './pikku-personas.gen.js'
|
|
20
16
|
|
|
21
17
|
export type { TypedPersonas }
|
|
22
18
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
options?: WorkflowStepOptions
|
|
44
|
-
): Promise<T>
|
|
45
|
-
}
|
|
19
|
+
/**
|
|
20
|
+
* The scenario test surface, re-exported so a step file has one specifier to
|
|
21
|
+
* import from. These names are not generated — they come straight from core —
|
|
22
|
+
* but routing them through here means a scenario file never has to know
|
|
23
|
+
* whether the helper it wants is typed against this project or shipped by the
|
|
24
|
+
* framework.
|
|
25
|
+
*/
|
|
26
|
+
export {
|
|
27
|
+
createCookieJar,
|
|
28
|
+
createScenarioRunner,
|
|
29
|
+
pollUntil,
|
|
30
|
+
requireScenarioEnv,
|
|
31
|
+
} from '@pikku/core/scenario'
|
|
32
|
+
export type {
|
|
33
|
+
PikkuBrowserWire,
|
|
34
|
+
ScenarioSurface,
|
|
35
|
+
TestIdSelector,
|
|
36
|
+
} from '@pikku/core/scenario'
|
|
37
|
+
export { postScenarioJson, readScenarioHttpResponse } from '@pikku/core/persona'
|
|
38
|
+
export type { ScenarioHttpResponse } from '@pikku/core/scenario'
|
|
46
39
|
|
|
47
40
|
/**
|
|
48
|
-
* The typed half of a scenario wire: `
|
|
49
|
-
*
|
|
50
|
-
*
|
|
41
|
+
* The typed half of a scenario wire: `given`/`when`/`then`, narrowed to the
|
|
42
|
+
* names declared by `pikkuScenarioStep` in this project. `given` and `when`
|
|
43
|
+
* differ only in the prose the reporter renders; `then` additionally makes the
|
|
44
|
+
* step's bindings witnesses rather than alternatives.
|
|
51
45
|
*/
|
|
52
46
|
export interface TypedScenarioSteps {
|
|
53
|
-
step<K extends keyof FlattenedScenarioStepMap>(
|
|
54
|
-
stepName: string,
|
|
55
|
-
stepFunc: K,
|
|
56
|
-
data?: FlattenedScenarioStepMap[K]['input'],
|
|
57
|
-
options?: ScenarioStepOptions
|
|
58
|
-
): Promise<FlattenedScenarioStepMap[K]['output']>
|
|
59
|
-
|
|
60
47
|
given<K extends keyof FlattenedScenarioStepMap>(
|
|
61
48
|
stepName: string,
|
|
62
49
|
stepFunc: K,
|
|
@@ -79,27 +66,23 @@ export interface TypedScenarioSteps {
|
|
|
79
66
|
): Promise<FlattenedScenarioStepMap[K]['output']>
|
|
80
67
|
}
|
|
81
68
|
|
|
82
|
-
|
|
83
|
-
|
|
69
|
+
/** `Out` types `scenario.context`. */
|
|
70
|
+
export type TypedScenario<Out = unknown> = TypedWorkflow &
|
|
71
|
+
Omit<PikkuScenarioWire<Out>, keyof PikkuWorkflowWire | keyof TypedScenarioSteps> &
|
|
84
72
|
TypedScenarioSteps
|
|
85
73
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
export type PikkuFunctionWorkflow<
|
|
93
|
-
In = unknown,
|
|
94
|
-
Out = never
|
|
95
|
-
> = PikkuFunctionSessionless<In, Out, 'workflow'>
|
|
96
|
-
|
|
74
|
+
/**
|
|
75
|
+
* `Ctx` types `scenario.context`, defaulting to the body's own output. A hook
|
|
76
|
+
* returns void but shares the scenario's context, so it passes that scenario's
|
|
77
|
+
* output here instead.
|
|
78
|
+
*/
|
|
97
79
|
export type PikkuFunctionScenario<
|
|
98
80
|
In = unknown,
|
|
99
|
-
Out = never
|
|
100
|
-
|
|
81
|
+
Out = never,
|
|
82
|
+
Ctx = Out
|
|
83
|
+
> = PikkuFunctionSessionless<In, Out, 'scenario' | 'actors', WiredServices, Ctx>
|
|
101
84
|
|
|
102
|
-
|
|
85
|
+
type PikkuScenarioConfigWithSchema<
|
|
103
86
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
104
87
|
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
105
88
|
> = {
|
|
@@ -115,59 +98,12 @@ export type PikkuWorkflowConfigWithSchema<
|
|
|
115
98
|
readonly?: boolean
|
|
116
99
|
approvalRequired?: boolean
|
|
117
100
|
approvalDescription?: InputSchema extends StandardSchemaV1 ? PikkuApprovalDescription<InferSchemaOutput<InputSchema>> : never
|
|
118
|
-
func: PikkuFunctionWorkflow<
|
|
119
|
-
InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown,
|
|
120
|
-
OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown
|
|
121
|
-
>
|
|
122
|
-
auth?: boolean
|
|
123
|
-
/**
|
|
124
|
-
* Scopes the session must hold to run this workflow. All of them are required
|
|
125
|
-
* (AND), and they are checked before `permissions`.
|
|
126
|
-
*/
|
|
127
|
-
scopes?: ScopeId[]
|
|
128
|
-
permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined
|
|
129
101
|
middleware?: PikkuMiddleware[]
|
|
130
102
|
input?: InputSchema
|
|
131
103
|
output?: OutputSchema
|
|
132
104
|
node?: NodeConfig
|
|
133
105
|
errors?: Array<typeof PikkuError>
|
|
134
106
|
inline?: boolean
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export function pikkuWorkflowFunc<
|
|
138
|
-
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
139
|
-
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
140
|
-
>(
|
|
141
|
-
config: PikkuWorkflowConfigWithSchema<InputSchema, OutputSchema>
|
|
142
|
-
): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'workflow', PikkuFunctionWorkflow<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown>, InputSchema, OutputSchema>
|
|
143
|
-
export function pikkuWorkflowFunc<In, Out = unknown>(
|
|
144
|
-
func:
|
|
145
|
-
| PikkuFunctionWorkflow<In, Out>
|
|
146
|
-
| PikkuFunctionConfig<In, Out, 'workflow', PikkuFunctionWorkflow<In, Out>>
|
|
147
|
-
): PikkuFunctionConfig<In, Out, 'workflow'>
|
|
148
|
-
export function pikkuWorkflowFunc(func: any) {
|
|
149
|
-
return typeof func === 'function' ? { func } : func
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export function pikkuWorkflowComplexFunc<
|
|
153
|
-
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
154
|
-
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
155
|
-
>(
|
|
156
|
-
config: PikkuWorkflowConfigWithSchema<InputSchema, OutputSchema>
|
|
157
|
-
): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'workflow', PikkuFunctionWorkflow<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown>, InputSchema, OutputSchema>
|
|
158
|
-
export function pikkuWorkflowComplexFunc<In, Out = unknown>(
|
|
159
|
-
func:
|
|
160
|
-
| PikkuFunctionWorkflow<In, Out>
|
|
161
|
-
| PikkuFunctionConfig<In, Out, 'workflow', PikkuFunctionWorkflow<In, Out>>
|
|
162
|
-
): PikkuFunctionConfig<In, Out, 'workflow'>
|
|
163
|
-
export function pikkuWorkflowComplexFunc(func: any) {
|
|
164
|
-
return typeof func === 'function' ? { func } : func
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export type PikkuScenarioConfigWithSchema<
|
|
168
|
-
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
169
|
-
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
170
|
-
> = Omit<PikkuWorkflowConfigWithSchema<InputSchema, OutputSchema>, 'func' | 'auth' | 'scopes' | 'permissions'> & {
|
|
171
107
|
func: PikkuFunctionScenario<
|
|
172
108
|
InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown,
|
|
173
109
|
OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown
|
|
@@ -178,14 +114,15 @@ export type PikkuScenarioConfigWithSchema<
|
|
|
178
114
|
* on the ladder. Throwing skips the body and fails the run; `after` still
|
|
179
115
|
* runs.
|
|
180
116
|
*/
|
|
181
|
-
before?: PikkuScenarioHook<InputSchema>
|
|
117
|
+
before?: PikkuScenarioHook<InputSchema, OutputSchema>
|
|
182
118
|
/**
|
|
183
119
|
* Always runs after the scenario body, in a `finally`, whether it passed or
|
|
184
120
|
* failed. Throwing fails a run that would otherwise have passed; on an
|
|
185
121
|
* already-failed run it attaches as the `cause` and never replaces the
|
|
186
|
-
* original error.
|
|
122
|
+
* original error. Reads `scenario.context` for whatever the body managed to
|
|
123
|
+
* record before it stopped.
|
|
187
124
|
*/
|
|
188
|
-
after?: PikkuScenarioHook<InputSchema>
|
|
125
|
+
after?: PikkuScenarioHook<InputSchema, OutputSchema>
|
|
189
126
|
/**
|
|
190
127
|
* Why this scenario is held out of a default run, stated where the scenario
|
|
191
128
|
* is. The scenario still appears in the plan and is reported as skipped
|
|
@@ -197,13 +134,16 @@ export type PikkuScenarioConfigWithSchema<
|
|
|
197
134
|
|
|
198
135
|
/**
|
|
199
136
|
* A scenario lifecycle hook: the scenario's own `(services, data, wire)`
|
|
200
|
-
* signature with its result discarded.
|
|
137
|
+
* signature with its result discarded. `OutputSchema` types
|
|
138
|
+
* `scenario.context` while the return type stays `void`.
|
|
201
139
|
*/
|
|
202
140
|
export type PikkuScenarioHook<
|
|
203
|
-
InputSchema extends StandardSchemaV1 | undefined = undefined
|
|
141
|
+
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
142
|
+
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
204
143
|
> = PikkuFunctionScenario<
|
|
205
144
|
InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown,
|
|
206
|
-
void
|
|
145
|
+
void,
|
|
146
|
+
OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown
|
|
207
147
|
>
|
|
208
148
|
|
|
209
149
|
/**
|
|
@@ -211,9 +151,9 @@ export type PikkuScenarioHook<
|
|
|
211
151
|
* registered, so this exists purely to give an inline hook a call site to be
|
|
212
152
|
* contextually typed from, the way every other pikku primitive is.
|
|
213
153
|
*/
|
|
214
|
-
export function pikkuScenarioHook<In = unknown>(
|
|
215
|
-
hook: PikkuFunctionScenario<In, void>
|
|
216
|
-
): PikkuFunctionScenario<In, void> {
|
|
154
|
+
export function pikkuScenarioHook<In = unknown, Ctx = unknown>(
|
|
155
|
+
hook: PikkuFunctionScenario<In, void, Ctx>
|
|
156
|
+
): PikkuFunctionScenario<In, void, Ctx> {
|
|
217
157
|
return hook
|
|
218
158
|
}
|
|
219
159
|
|
|
@@ -265,7 +205,7 @@ export type PikkuFeatureEntry<Entry> = Entry extends {
|
|
|
265
205
|
? Entry
|
|
266
206
|
: never
|
|
267
207
|
|
|
268
|
-
|
|
208
|
+
type PikkuFeatureConfig<Scenarios extends readonly unknown[]> = {
|
|
269
209
|
/** Human-readable name. The export identifier is the id. */
|
|
270
210
|
name: string
|
|
271
211
|
description?: string
|
|
@@ -320,19 +260,35 @@ export function pikkuFeature<const Scenarios extends readonly unknown[]>(
|
|
|
320
260
|
export type PikkuFunctionScenarioStep<
|
|
321
261
|
In = unknown,
|
|
322
262
|
Out = never,
|
|
323
|
-
Surface extends 'browser' | 'cli' | 'default' = 'default'
|
|
263
|
+
Surface extends 'browser' | 'cli' | 'default' = 'default',
|
|
264
|
+
HasActor extends boolean = false
|
|
324
265
|
> = PikkuFunctionSessionless<
|
|
325
266
|
In,
|
|
326
267
|
Out,
|
|
327
|
-
|
|
268
|
+
| 'scenarioStep'
|
|
269
|
+
| (Surface extends 'default' ? never : Surface)
|
|
270
|
+
| (HasActor extends true ? 'actor' : never)
|
|
328
271
|
>
|
|
329
272
|
|
|
330
|
-
|
|
273
|
+
type PikkuScenarioStepConfigWithSchema<
|
|
331
274
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
332
|
-
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
275
|
+
OutputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
276
|
+
HasActor extends boolean = false
|
|
333
277
|
> = {
|
|
334
|
-
/** Registered name — this is the string `scenario.
|
|
278
|
+
/** Registered name — this is the string `scenario.given()` references. */
|
|
335
279
|
name: string
|
|
280
|
+
/**
|
|
281
|
+
* This step is driven by a persona, so `wire.actor` is injected and
|
|
282
|
+
* non-optional inside every binding, and the runner refuses to dispatch it
|
|
283
|
+
* without one.
|
|
284
|
+
*
|
|
285
|
+
* A `browser` binding implies it — a window is opened as somebody. Declare it
|
|
286
|
+
* for a server-side step that calls RPCs as its actor. Leave it off for a step
|
|
287
|
+
* that has no persona to be: an assertion over a value an earlier step
|
|
288
|
+
* returned, or one that posts credentials precisely because it must not reuse
|
|
289
|
+
* an actor's session.
|
|
290
|
+
*/
|
|
291
|
+
actor?: HasActor
|
|
336
292
|
/**
|
|
337
293
|
* What this step does, for the console and for whoever reads the source. It
|
|
338
294
|
* is also the fallback prose when no `template` is declared, in which case a
|
|
@@ -364,13 +320,17 @@ export type PikkuScenarioStepConfigWithSchema<
|
|
|
364
320
|
browser?: PikkuFunctionScenarioStep<
|
|
365
321
|
InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown,
|
|
366
322
|
OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown,
|
|
367
|
-
'browser'
|
|
323
|
+
'browser',
|
|
324
|
+
// A window is opened as somebody, so a browser binding has an actor whether
|
|
325
|
+
// or not the step declared one.
|
|
326
|
+
true
|
|
368
327
|
>
|
|
369
328
|
/** Drive this step remotely, over the websocket. */
|
|
370
329
|
cli?: PikkuFunctionScenarioStep<
|
|
371
330
|
InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown,
|
|
372
331
|
OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown,
|
|
373
|
-
'cli'
|
|
332
|
+
'cli',
|
|
333
|
+
HasActor
|
|
374
334
|
>
|
|
375
335
|
/**
|
|
376
336
|
* The server-side path — the fast suite, and the floor every other surface
|
|
@@ -384,15 +344,16 @@ export type PikkuScenarioStepConfigWithSchema<
|
|
|
384
344
|
default?: PikkuFunctionScenarioStep<
|
|
385
345
|
InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown,
|
|
386
346
|
OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown,
|
|
387
|
-
'default'
|
|
347
|
+
'default',
|
|
348
|
+
HasActor
|
|
388
349
|
>
|
|
389
350
|
}
|
|
390
351
|
|
|
391
|
-
|
|
392
|
-
Omit<PikkuScenarioStepConfigWithSchema<undefined, undefined>, 'browser' | 'cli' | 'default' | 'input' | 'output'> & {
|
|
393
|
-
browser?: PikkuFunctionScenarioStep<In, Out, 'browser'>
|
|
394
|
-
cli?: PikkuFunctionScenarioStep<In, Out, 'cli'>
|
|
395
|
-
default?: PikkuFunctionScenarioStep<In, Out, 'default'>
|
|
352
|
+
type PikkuScenarioStepConfig<In, Out, HasActor extends boolean = false> =
|
|
353
|
+
Omit<PikkuScenarioStepConfigWithSchema<undefined, undefined, HasActor>, 'browser' | 'cli' | 'default' | 'input' | 'output'> & {
|
|
354
|
+
browser?: PikkuFunctionScenarioStep<In, Out, 'browser', true>
|
|
355
|
+
cli?: PikkuFunctionScenarioStep<In, Out, 'cli', HasActor>
|
|
356
|
+
default?: PikkuFunctionScenarioStep<In, Out, 'default', HasActor>
|
|
396
357
|
}
|
|
397
358
|
|
|
398
359
|
/**
|
|
@@ -407,6 +368,24 @@ export type PikkuScenarioStepConfig<In, Out> =
|
|
|
407
368
|
* Steps are deliberately NOT registered as RPCs: a browser-driving step must
|
|
408
369
|
* never be network-callable.
|
|
409
370
|
*/
|
|
371
|
+
export function pikkuScenarioStep<
|
|
372
|
+
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
373
|
+
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
374
|
+
>(
|
|
375
|
+
config: PikkuScenarioStepConfigWithSchema<InputSchema, OutputSchema, true> & { actor: true }
|
|
376
|
+
): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'scenarioStep' | 'browser' | 'cli', PikkuFunctionScenarioStep<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'browser' | 'cli' | 'default'>, InputSchema, OutputSchema>
|
|
377
|
+
export function pikkuScenarioStep<In, Out = unknown>(
|
|
378
|
+
config: PikkuScenarioStepConfig<In, Out, true> & { actor: true }
|
|
379
|
+
): PikkuFunctionConfig<In, Out, 'scenarioStep' | 'browser' | 'cli'>
|
|
380
|
+
export function pikkuScenarioStep<
|
|
381
|
+
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
382
|
+
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
383
|
+
>(
|
|
384
|
+
config: PikkuScenarioStepConfigWithSchema<InputSchema, OutputSchema, true> & { browser: {} }
|
|
385
|
+
): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'scenarioStep' | 'browser' | 'cli', PikkuFunctionScenarioStep<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'browser' | 'cli' | 'default'>, InputSchema, OutputSchema>
|
|
386
|
+
export function pikkuScenarioStep<In, Out = unknown>(
|
|
387
|
+
config: PikkuScenarioStepConfig<In, Out, true> & { browser: {} }
|
|
388
|
+
): PikkuFunctionConfig<In, Out, 'scenarioStep' | 'browser' | 'cli'>
|
|
410
389
|
export function pikkuScenarioStep<
|
|
411
390
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
412
391
|
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
@@ -428,6 +407,7 @@ export function pikkuScenarioStep(config: any) {
|
|
|
428
407
|
return {
|
|
429
408
|
...config,
|
|
430
409
|
surfaces,
|
|
410
|
+
requiresActor: config.actor === true || surfaces.includes('browser'),
|
|
431
411
|
// The runner sets the surface on the wire and calls this once per binding it
|
|
432
412
|
// resolved — every witness of a `then`, exactly one for an action step.
|
|
433
413
|
func: (services: any, data: any, wire: any) => {
|
|
@@ -448,12 +428,12 @@ export function pikkuScenarioStep(config: any) {
|
|
|
448
428
|
* rule coherent — an assertion runs every witness it has and fails if they
|
|
449
429
|
* disagree, and this has exactly one by construction.
|
|
450
430
|
*/
|
|
451
|
-
|
|
431
|
+
type PikkuSubjectScenarioStepConfigWithSchema<
|
|
452
432
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
453
433
|
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
454
434
|
> = Omit<
|
|
455
435
|
PikkuScenarioStepConfigWithSchema<InputSchema, OutputSchema>,
|
|
456
|
-
'browser' | 'cli' | 'default'
|
|
436
|
+
'browser' | 'cli' | 'default' | 'actor'
|
|
457
437
|
> & {
|
|
458
438
|
func: PikkuFunctionScenarioStep<
|
|
459
439
|
InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown,
|
|
@@ -462,8 +442,8 @@ export type PikkuSubjectScenarioStepConfigWithSchema<
|
|
|
462
442
|
>
|
|
463
443
|
}
|
|
464
444
|
|
|
465
|
-
|
|
466
|
-
Omit<PikkuScenarioStepConfig<In, Out>, 'browser' | 'cli' | 'default'> & {
|
|
445
|
+
type PikkuSubjectScenarioStepConfig<In, Out> =
|
|
446
|
+
Omit<PikkuScenarioStepConfig<In, Out>, 'browser' | 'cli' | 'default' | 'actor'> & {
|
|
467
447
|
func: PikkuFunctionScenarioStep<In, Out, 'default'>
|
|
468
448
|
}
|
|
469
449
|
|
|
@@ -518,74 +498,3 @@ export function pikkuAddonScenarioStep<In, Out = unknown>(
|
|
|
518
498
|
export function pikkuAddonScenarioStep(config: any) {
|
|
519
499
|
return { ...config, surfaces: ['default'] }
|
|
520
500
|
}
|
|
521
|
-
|
|
522
|
-
type TypedRef<T> = { $ref: string; path?: string } & { __phantomType?: T }
|
|
523
|
-
|
|
524
|
-
type TemplateString = {
|
|
525
|
-
$template: {
|
|
526
|
-
parts: string[]
|
|
527
|
-
expressions: Array<{ $ref: string; path?: string }>
|
|
528
|
-
}
|
|
529
|
-
} & { __brand: 'TemplateString' }
|
|
530
|
-
|
|
531
|
-
type InputWithRefs<T> = {
|
|
532
|
-
[K in keyof T]?: T[K] | TypedRef<T[K]> | TypedRef<unknown> | TemplateString
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
type NodeInputType<FuncMap extends Record<string, string>, K extends keyof FuncMap> =
|
|
536
|
-
FuncMap[K] extends keyof FlattenedRPCMap
|
|
537
|
-
? InputWithRefs<FlattenedRPCMap[FuncMap[K]]['input']>
|
|
538
|
-
: FuncMap[K] extends keyof FlattenedWorkflowMap
|
|
539
|
-
? InputWithRefs<FlattenedWorkflowMap[FuncMap[K]]['input']>
|
|
540
|
-
: Record<string, unknown>
|
|
541
|
-
|
|
542
|
-
type NodeOutputKeys<FuncMap extends Record<string, string>, N extends string> =
|
|
543
|
-
N extends keyof FuncMap
|
|
544
|
-
? FuncMap[N] extends keyof FlattenedRPCMap
|
|
545
|
-
? keyof FlattenedRPCMap[FuncMap[N]]['output'] & string
|
|
546
|
-
: FuncMap[N] extends keyof FlattenedWorkflowMap
|
|
547
|
-
? keyof FlattenedWorkflowMap[FuncMap[N]]['output'] & string
|
|
548
|
-
: FuncMap[N] extends keyof FlattenedAgentMap
|
|
549
|
-
? keyof FlattenedAgentMap[FuncMap[N]]['output'] & string
|
|
550
|
-
: string
|
|
551
|
-
: string
|
|
552
|
-
|
|
553
|
-
type RefFunction<FuncMap extends Record<string, string>> = {
|
|
554
|
-
<N extends Extract<keyof FuncMap, string>>(
|
|
555
|
-
nodeId: N,
|
|
556
|
-
path: NodeOutputKeys<FuncMap, N>
|
|
557
|
-
): TypedRef<unknown>
|
|
558
|
-
<N extends Extract<keyof FuncMap, string>>(nodeId: N): TypedRef<unknown>
|
|
559
|
-
(nodeId: 'trigger' | '$item', path?: string): TypedRef<unknown>
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
type TemplateFunction = (templateStr: string, refs: TypedRef<unknown>[]) => TemplateString
|
|
563
|
-
|
|
564
|
-
type GraphNodeConfigMap<FuncMap extends Record<string, string>> = {
|
|
565
|
-
[K in Extract<keyof FuncMap, string>]?: {
|
|
566
|
-
next?: NextConfig<Extract<keyof FuncMap, string>>
|
|
567
|
-
input?:
|
|
568
|
-
| NodeInputType<FuncMap, K>
|
|
569
|
-
| (() => NodeInputType<FuncMap, K>)
|
|
570
|
-
| ((ref: RefFunction<FuncMap>, template: TemplateFunction) => NodeInputType<FuncMap, K>)
|
|
571
|
-
onError?: Extract<keyof FuncMap, string> | Extract<keyof FuncMap, string>[]
|
|
572
|
-
/** Free-text node documentation. Non-semantic — excluded from graphHash. */
|
|
573
|
-
notes?: string
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
type NextConfig<NodeIds extends string> = NodeIds | NodeIds[] | { if: string; then: NodeIds; else?: NodeIds }
|
|
578
|
-
|
|
579
|
-
export function pikkuWorkflowGraph<
|
|
580
|
-
const FuncMap extends Record<
|
|
581
|
-
string,
|
|
582
|
-
| (keyof FlattenedRPCMap & string)
|
|
583
|
-
| (keyof FlattenedWorkflowMap & string)
|
|
584
|
-
| (keyof FlattenedAgentMap & string)
|
|
585
|
-
>
|
|
586
|
-
>(
|
|
587
|
-
config: PikkuWorkflowGraphConfig<FuncMap, GraphNodeConfigMap<FuncMap>>
|
|
588
|
-
): PikkuWorkflowGraphResult {
|
|
589
|
-
return corePikkuWorkflowGraph(config as any)
|
|
590
|
-
}
|
|
591
|
-
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-scenario-wirings-meta.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.ts"],"names":[],"mappings":"AAKA,OAAO,gDAAgD,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.107
|
|
3
3
|
*/
|
|
4
|
-
import { pikkuState } from '@pikku/core/
|
|
4
|
+
import { pikkuState } from '@pikku/core/state';
|
|
5
5
|
import '../workflow/pikku-workflow-wirings-meta.gen.js';
|
|
6
6
|
const scenariosMeta = {};
|
|
7
7
|
pikkuState('@pikku/addon-meta-conversions', 'workflows', 'meta', {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-scenario-wirings-meta.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE9C,OAAO,gDAAgD,CAAA;AAEvD,MAAM,aAAa,GAAG,EAEG,CAAA;AAEzB,UAAU,CAAC,+BAA+B,EAAE,WAAW,EAAE,MAAM,EAAE;IAC/D,GAAG,UAAU,CAAC,+BAA+B,EAAE,WAAW,EAAE,MAAM,CAAC;IACnE,GAAG,aAAa;CACjB,CAAC,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.107
|
|
3
3
|
*/
|
|
4
|
-
import { pikkuState } from '@pikku/core/
|
|
5
|
-
import type { WorkflowsRuntimeMeta } from '@pikku/core/workflow
|
|
4
|
+
import { pikkuState } from '@pikku/core/state'
|
|
5
|
+
import type { WorkflowsRuntimeMeta } from '@pikku/core/workflow'
|
|
6
6
|
import '../workflow/pikku-workflow-wirings-meta.gen.js'
|
|
7
7
|
|
|
8
8
|
const scenariosMeta = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-scenario-wirings.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/scenarios/pikku-scenario-wirings.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-scenario-wirings.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/scenarios/pikku-scenario-wirings.gen.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.gen.d.ts","sourceRoot":"","sources":["../../../../../.pikku/addon/scenarios/schemas/register.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,KAAK,MAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.gen.js","sourceRoot":"","sources":["../../../../../.pikku/addon/scenarios/schemas/register.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/schemas/register.gen.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/schemas/register.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE9C,OAAO,KAAK,cAAc,MAAM,sCAAsC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAC5F,SAAS,CAAC,gBAAgB,EAAE,cAAc,EAAE,+BAA+B,CAAC,CAAA;AAG5E,OAAO,KAAK,eAAe,MAAM,uCAAuC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAC9F,SAAS,CAAC,iBAAiB,EAAE,eAAe,EAAE,+BAA+B,CAAC,CAAA;AAG9E,OAAO,KAAK,4BAA4B,MAAM,oDAAoD,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACxH,SAAS,CAAC,8BAA8B,EAAE,4BAA4B,EAAE,+BAA+B,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,4BAA4B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,4BAA4B,CAAA"}
|