@pikku/addon-ollama 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.pikku/addon/agent/index.d.ts +1 -1
- package/dist/.pikku/addon/agent/index.js +1 -1
- package/dist/.pikku/addon/agent/index.ts +1 -1
- package/dist/.pikku/addon/agent/pikku-agent-map.gen.d.ts +1 -1
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts +47 -6
- 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-agent-types.gen.ts +42 -1
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +1 -1
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.ts +1 -1
- package/dist/.pikku/addon/agent/pikku-scorer-names.gen.d.ts +1 -1
- package/dist/.pikku/addon/analytics/index.d.ts +8 -0
- package/dist/.pikku/addon/analytics/index.d.ts.map +1 -0
- package/dist/.pikku/addon/analytics/index.js +8 -0
- package/dist/.pikku/addon/analytics/index.js.map +1 -0
- package/dist/.pikku/addon/analytics/index.ts +8 -0
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.d.ts +6 -0
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.js +5 -0
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.js.map +1 -0
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.ts +25 -0
- package/dist/.pikku/addon/auth/index.d.ts +1 -1
- package/dist/.pikku/addon/auth/index.js +1 -1
- package/dist/.pikku/addon/auth/index.ts +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/auth/pikku-auth-types.gen.ts +10 -20
- package/dist/.pikku/addon/channel/index.d.ts +1 -1
- package/dist/.pikku/addon/channel/index.js +1 -1
- package/dist/.pikku/addon/channel/index.ts +1 -1
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts +10 -20
- 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/channel/pikku-channel-types.gen.ts +8 -18
- package/dist/.pikku/addon/cli/index.d.ts +8 -0
- package/dist/.pikku/addon/cli/index.d.ts.map +1 -0
- package/dist/.pikku/addon/cli/index.js +8 -0
- package/dist/.pikku/addon/cli/index.js.map +1 -0
- package/dist/.pikku/addon/cli/index.ts +8 -0
- package/dist/.pikku/addon/cli/pikku-cli-types.gen.d.ts +62 -0
- package/dist/.pikku/addon/cli/pikku-cli-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/cli/pikku-cli-types.gen.js +49 -0
- package/dist/.pikku/addon/cli/pikku-cli-types.gen.js.map +1 -0
- package/dist/.pikku/addon/cli/pikku-cli-types.gen.ts +88 -0
- package/dist/.pikku/addon/db/pikku-db-meta.gen.json +1 -0
- package/dist/.pikku/addon/error/index.d.ts +1 -1
- package/dist/.pikku/addon/error/index.js +1 -1
- package/dist/.pikku/addon/error/index.ts +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/error/pikku-error-types.gen.ts +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/index.ts +1 -1
- package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts +57 -47
- 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-function-types.gen.ts +56 -44
- package/dist/.pikku/addon/function/pikku-functions-meta-verbose.gen.json +8 -4
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.json +4 -0
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.ts +1 -1
- package/dist/.pikku/addon/function/pikku-functions.gen.js +1 -1
- package/dist/.pikku/addon/function/pikku-functions.gen.ts +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/index.ts +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/http/pikku-http-types.gen.ts +3 -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/index.ts +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/mcp/pikku-mcp-types.gen.ts +7 -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/index.ts +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/middleware/pikku-middleware-types.gen.ts +43 -26
- 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-scenarios.gen.ts +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-bootstrap.gen.ts +1 -1
- package/dist/.pikku/addon/pikku-local-services.gen.d.ts +29 -0
- package/dist/.pikku/addon/pikku-local-services.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/pikku-local-services.gen.js +42 -0
- package/dist/.pikku/addon/pikku-local-services.gen.js.map +1 -0
- package/dist/.pikku/addon/pikku-local-services.gen.ts +85 -0
- package/dist/.pikku/addon/pikku-package.gen.js +1 -1
- package/dist/.pikku/addon/pikku-package.gen.ts +1 -1
- package/dist/.pikku/addon/pikku-services.gen.d.ts +9 -1
- package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/pikku-services.gen.js +8 -0
- package/dist/.pikku/addon/pikku-services.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-services.gen.ts +9 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.gen.d.ts +2 -2
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +2 -2
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +2 -2
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.ts +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/index.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts +53 -35
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js +7 -3
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js.map +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.ts +57 -40
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.d.ts +33 -0
- package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.js +29 -0
- package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.js.map +1 -0
- package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.ts +52 -0
- 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/scenarios/schemas/register.gen.ts +1 -1
- package/dist/.pikku/addon/schemas/register.gen.js +1 -1
- package/dist/.pikku/addon/schemas/register.gen.ts +1 -1
- package/dist/.pikku/addon/scopes/index.d.ts +2 -1
- package/dist/.pikku/addon/scopes/index.d.ts.map +1 -1
- package/dist/.pikku/addon/scopes/index.js +2 -1
- package/dist/.pikku/addon/scopes/index.js.map +1 -1
- package/dist/.pikku/addon/scopes/index.ts +2 -1
- package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.d.ts +41 -0
- package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.js +35 -0
- package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.js.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.ts +52 -0
- package/dist/.pikku/addon/scopes/pikku-flags.gen.d.ts +9 -0
- package/dist/.pikku/addon/scopes/pikku-flags.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-flags.gen.js +2 -0
- package/dist/.pikku/addon/scopes/pikku-flags.gen.js.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-flags.gen.ts +8 -0
- package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/scopes/pikku-roles.gen.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +2 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js +2 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js.map +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.ts +2 -1
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-virtual-users-meta.gen.json +1 -0
- package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.d.ts +27 -0
- package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.js +16 -0
- package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.js.map +1 -0
- package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.ts +39 -0
- package/dist/.pikku/addon/secrets/index.d.ts +1 -1
- package/dist/.pikku/addon/secrets/index.js +1 -1
- package/dist/.pikku/addon/secrets/index.ts +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-secret-types.gen.ts +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/secrets/pikku-secrets.gen.ts +9 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.js +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.ts +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/index.ts +1 -1
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts +4 -4
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js +1 -1
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.ts +1 -1
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +8 -20
- 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/setup/pikku-setup-types.gen.ts +19 -19
- package/dist/.pikku/addon/surface-usage.gen.json +326 -26
- package/dist/.pikku/addon/trigger/index.d.ts +1 -1
- package/dist/.pikku/addon/trigger/index.js +1 -1
- package/dist/.pikku/addon/trigger/index.ts +1 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts +64 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +17 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js.map +1 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.ts +58 -1
- package/dist/.pikku/addon/utils/index.d.ts +8 -0
- package/dist/.pikku/addon/utils/index.d.ts.map +1 -0
- package/dist/.pikku/addon/utils/index.js +8 -0
- package/dist/.pikku/addon/utils/index.js.map +1 -0
- package/dist/.pikku/addon/utils/index.ts +8 -0
- package/dist/.pikku/addon/utils/pikku-utils-types.gen.d.ts +5 -0
- package/dist/.pikku/addon/utils/pikku-utils-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/utils/pikku-utils-types.gen.js +5 -0
- package/dist/.pikku/addon/utils/pikku-utils-types.gen.js.map +1 -0
- package/dist/.pikku/addon/utils/pikku-utils-types.gen.ts +4 -0
- package/dist/.pikku/addon/variables/index.d.ts +1 -1
- package/dist/.pikku/addon/variables/index.js +1 -1
- package/dist/.pikku/addon/variables/index.ts +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-variable-types.gen.ts +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 +7 -2
- package/dist/.pikku/addon/variables/pikku-variables.gen.js.map +1 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.ts +10 -2
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks-meta.gen.json +1 -0
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.d.ts +12 -0
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.js +3 -0
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.js.map +1 -0
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.ts +15 -0
- package/dist/.pikku/addon/workflow/index.d.ts +1 -1
- package/dist/.pikku/addon/workflow/index.js +1 -1
- package/dist/.pikku/addon/workflow/index.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-scenario-step-map.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-map.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts +30 -6
- 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-types.gen.ts +33 -2
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.ts +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/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.ts +1 -1
- package/dist/.pikku/addon/workflow/virtual-users.gen.json +1 -0
- package/dist/.pikku/runs/mvcet6cm.all.jsonl +3 -0
- package/dist/src/functions/embeddings/embed-many.function.d.ts +3 -3
- package/dist/src/functions/embeddings/embed-many.function.d.ts.map +1 -1
- package/dist/src/functions/embeddings/embed.function.d.ts +3 -3
- package/dist/src/functions/embeddings/embed.function.d.ts.map +1 -1
- package/dist/src/functions/text/generate-object.function.d.ts +15 -15
- package/dist/src/functions/text/generate-object.function.d.ts.map +1 -1
- package/dist/src/functions/text/generate.function.d.ts +8 -8
- package/dist/src/functions/text/generate.function.d.ts.map +1 -1
- package/package.json +14 -11
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts +0 -18
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts.map +0 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.js +0 -18
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.js.map +0 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.ts +0 -36
- package/dist/.pikku/addon/scopes/pikku-personas.gen.d.ts +0 -29
- package/dist/.pikku/addon/scopes/pikku-personas.gen.d.ts.map +0 -1
- package/dist/.pikku/addon/scopes/pikku-personas.gen.js +0 -18
- package/dist/.pikku/addon/scopes/pikku-personas.gen.js.map +0 -1
- package/dist/.pikku/addon/scopes/pikku-personas.gen.ts +0 -41
- /package/dist/.pikku/addon/{scopes/pikku-personas-meta.gen.json → analytics/pikku-analytics-meta.gen.json} +0 -0
- /package/dist/.pikku/addon/{workflow/personas.gen.json → scopes/pikku-flags-meta.gen.json} +0 -0
|
@@ -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.190
|
|
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,34 +21,75 @@ 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
|
-
result: AgentMap[Name][
|
|
53
|
+
result: AgentMap[Name]['output'];
|
|
30
54
|
usage: {
|
|
31
55
|
inputTokens: number;
|
|
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
|
-
}, void,
|
|
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
|
-
}, void,
|
|
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: {
|
|
49
90
|
toolCallId: string;
|
|
50
91
|
approved: boolean;
|
|
51
92
|
}[];
|
|
52
|
-
}, unknown,
|
|
93
|
+
}, unknown, 'session' | 'rpc'>;
|
|
53
94
|
export {};
|
|
54
95
|
//# sourceMappingURL=pikku-agent-types.gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":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QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,EACzG,SAAS,GAAG,KAAK,CAEpB,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,IAAI,SAAS,MAAM,QAAQ,mCAGqB,mBAAmB,CAC3F;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,EAC7E,IAAI,EACJ,SAAS,GAAG,KAAK,CAEpB,CAAA;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,aAC3C,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","source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This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.190
|
|
3
3
|
*/
|
|
4
4
|
import { CoreAgent } from '@pikku/core/agent'
|
|
5
5
|
import {
|
|
@@ -33,6 +33,12 @@ type AgentConfig<
|
|
|
33
33
|
workflows?: object[]
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
/**
|
|
37
|
+
* Declares an agent: the model, the prompt, the tools it may call and the shape
|
|
38
|
+
* of what it returns. Wire it like any other function.
|
|
39
|
+
*
|
|
40
|
+
* @example snippet: aiAgent
|
|
41
|
+
*/
|
|
36
42
|
export const pikkuAgent = <
|
|
37
43
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
38
44
|
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
@@ -42,16 +48,34 @@ export const pikkuAgent = <
|
|
|
42
48
|
return agent
|
|
43
49
|
}
|
|
44
50
|
|
|
51
|
+
/**
|
|
52
|
+
* Declares a scorer that grades an agent run programmatically — a function over
|
|
53
|
+
* the run's input and output returning a score.
|
|
54
|
+
*
|
|
55
|
+
* @example snippet: agentScorer
|
|
56
|
+
*/
|
|
45
57
|
export const pikkuAgentScorer = (
|
|
46
58
|
config: Parameters<typeof corePikkuAgentScorer<Services>>[0]
|
|
47
59
|
) => corePikkuAgentScorer<Services>(config)
|
|
48
60
|
|
|
61
|
+
/**
|
|
62
|
+
* Declares a scorer that grades an agent run with another model, for the
|
|
63
|
+
* qualities a programmatic check cannot express.
|
|
64
|
+
*
|
|
65
|
+
* @example snippet: agentJudge
|
|
66
|
+
*/
|
|
49
67
|
export const pikkuAgentJudge = (
|
|
50
68
|
config: Parameters<typeof corePikkuAgentJudge<Services>>[0]
|
|
51
69
|
) => corePikkuAgentJudge<Services>(config)
|
|
52
70
|
|
|
53
71
|
|
|
54
72
|
|
|
73
|
+
/**
|
|
74
|
+
* A ready-made function that runs the named agent once and returns its result —
|
|
75
|
+
* wire it straight to a route when you need no logic around the run.
|
|
76
|
+
*
|
|
77
|
+
* @example snippet: aiAgentInvoke
|
|
78
|
+
*/
|
|
55
79
|
export const agent = <Name extends keyof AgentMap>(
|
|
56
80
|
agentName: Name
|
|
57
81
|
) => {
|
|
@@ -62,6 +86,12 @@ export const agent = <Name extends keyof AgentMap>(
|
|
|
62
86
|
>
|
|
63
87
|
}
|
|
64
88
|
|
|
89
|
+
/**
|
|
90
|
+
* The streaming counterpart of `agent`: wire it to a channel to send tokens and
|
|
91
|
+
* tool calls as they happen instead of waiting for the run to finish.
|
|
92
|
+
*
|
|
93
|
+
* @example snippet: aiAgentStream
|
|
94
|
+
*/
|
|
65
95
|
export const agentStream = <Name extends keyof AgentMap>(
|
|
66
96
|
agentName?: Name
|
|
67
97
|
) => {
|
|
@@ -72,6 +102,12 @@ export const agentStream = <Name extends keyof AgentMap>(
|
|
|
72
102
|
>
|
|
73
103
|
}
|
|
74
104
|
|
|
105
|
+
/**
|
|
106
|
+
* A ready-made function that answers one pending tool approval, letting a run
|
|
107
|
+
* that paused for a human carry on.
|
|
108
|
+
*
|
|
109
|
+
* @example snippet: agentApproval
|
|
110
|
+
*/
|
|
75
111
|
export const agentResume = () => {
|
|
76
112
|
return coreAgentResume() as PikkuFunctionConfig<
|
|
77
113
|
{ runId: string; toolCallId: string; approved: boolean },
|
|
@@ -80,6 +116,11 @@ export const agentResume = () => {
|
|
|
80
116
|
>
|
|
81
117
|
}
|
|
82
118
|
|
|
119
|
+
/**
|
|
120
|
+
* A ready-made function that answers every pending approval for a run at once.
|
|
121
|
+
*
|
|
122
|
+
* @example snippet: agentApproval
|
|
123
|
+
*/
|
|
83
124
|
export const agentApprove = <Name extends keyof AgentMap>(
|
|
84
125
|
agentName: Name
|
|
85
126
|
) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/analytics/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,gCAAgC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../.pikku/addon/analytics/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,gCAAgC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.190
|
|
3
|
+
*/
|
|
4
|
+
export { defineAnalyticsEvents, fanOutAnalytics, cookieAnalyticsIdentity, composeAnalyticsIdentity, anonymousAnalyticsIdentity, mintCookie, randomDigits, LoggerAnalyticsService, } from '@pikku/core/analytics';
|
|
5
|
+
export type { AnalyticsClientContext, AnalyticsEventBase, AnalyticsEventDefinitions, AnalyticsEventPropsSchema, AnalyticsIdentity, AnalyticsIdentityResolver, AnalyticsLog, AnalyticsRecord, AnalyticsService, AnalyticsSink, } from '@pikku/core/analytics';
|
|
6
|
+
//# sourceMappingURL=pikku-analytics-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-analytics-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/analytics/pikku-analytics-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACxB,0BAA0B,EAC1B,UAAU,EACV,YAAY,EACZ,sBAAsB,GACvB,MAAM,uBAAuB,CAAA;AAC9B,YAAY,EACV,sBAAsB,EACtB,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,iBAAiB,EACjB,yBAAyB,EACzB,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,aAAa,GACd,MAAM,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.190
|
|
3
|
+
*/
|
|
4
|
+
export { defineAnalyticsEvents, fanOutAnalytics, cookieAnalyticsIdentity, composeAnalyticsIdentity, anonymousAnalyticsIdentity, mintCookie, randomDigits, LoggerAnalyticsService, } from '@pikku/core/analytics';
|
|
5
|
+
//# sourceMappingURL=pikku-analytics-types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-analytics-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/analytics/pikku-analytics-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACxB,0BAA0B,EAC1B,UAAU,EACV,YAAY,EACZ,sBAAsB,GACvB,MAAM,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.190
|
|
3
|
+
*/
|
|
4
|
+
export {
|
|
5
|
+
defineAnalyticsEvents,
|
|
6
|
+
fanOutAnalytics,
|
|
7
|
+
cookieAnalyticsIdentity,
|
|
8
|
+
composeAnalyticsIdentity,
|
|
9
|
+
anonymousAnalyticsIdentity,
|
|
10
|
+
mintCookie,
|
|
11
|
+
randomDigits,
|
|
12
|
+
LoggerAnalyticsService,
|
|
13
|
+
} from '@pikku/core/analytics'
|
|
14
|
+
export type {
|
|
15
|
+
AnalyticsClientContext,
|
|
16
|
+
AnalyticsEventBase,
|
|
17
|
+
AnalyticsEventDefinitions,
|
|
18
|
+
AnalyticsEventPropsSchema,
|
|
19
|
+
AnalyticsIdentity,
|
|
20
|
+
AnalyticsIdentityResolver,
|
|
21
|
+
AnalyticsLog,
|
|
22
|
+
AnalyticsRecord,
|
|
23
|
+
AnalyticsService,
|
|
24
|
+
AnalyticsSink,
|
|
25
|
+
} from '@pikku/core/analytics'
|
|
@@ -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.190
|
|
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,C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AAG,CAE1B,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,sBAAsB,GAAI,EAAE,GAAG,GAAG,WACpC,CAAC,KAAK,EAAE,EAAE,KAAK,eAAe,CAAC,GAAG,CAAC,KAC3C,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,eAAe,CAAC,GAAG,CAAC,CAEtC,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,GAAI,EAAE,GAAG,OAAO,eAAe,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.190
|
|
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,qBAAqB,CAAC,CAAA;AACpE,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.190
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Permission, auth gate and credential definitions
|
|
@@ -19,11 +19,18 @@ import type {
|
|
|
19
19
|
Session,
|
|
20
20
|
SingletonServices,
|
|
21
21
|
WiredServices,
|
|
22
|
-
WiredSingletonServices,
|
|
23
22
|
} from '../function/pikku-function-types.gen.js'
|
|
23
|
+
import type { RequiredSingletonServices } from '../pikku-services.gen.js'
|
|
24
24
|
|
|
25
25
|
export { defineCredential } from '@pikku/core/credential'
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* Derived here rather than imported: nothing outside a generated leaf ever
|
|
29
|
+
* names this intersection, so the function leaf keeps it to itself and the
|
|
30
|
+
* leaves that want it spell it out.
|
|
31
|
+
*/
|
|
32
|
+
type WiredSingletonServices = RequiredSingletonServices & SingletonServices
|
|
33
|
+
|
|
27
34
|
/** `WiredSingletonServices` without `secrets`, for auth gates. */
|
|
28
35
|
type WiredAuthServices = SecretlessServices<WiredSingletonServices>
|
|
29
36
|
|
|
@@ -52,24 +59,7 @@ type PikkuPermissionConfig<In = unknown, RequiredServices extends SecretlessServ
|
|
|
52
59
|
* Factory function for creating permissions with tree-shaking support.
|
|
53
60
|
* Supports both direct function and configuration object syntax.
|
|
54
61
|
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```typescript
|
|
57
|
-
* // Direct function syntax
|
|
58
|
-
* const permission = pikkuPermission(async ({ logger }, data, { session }) => {
|
|
59
|
-
* const session = await session?.get()
|
|
60
|
-
* return session?.role === 'admin'
|
|
61
|
-
* })
|
|
62
|
-
*
|
|
63
|
-
* // Configuration object syntax with metadata
|
|
64
|
-
* const adminPermission = pikkuPermission({
|
|
65
|
-
* name: 'Admin Permission',
|
|
66
|
-
* description: 'Checks if user has admin role',
|
|
67
|
-
* func: async ({ logger }, data, { session }) => {
|
|
68
|
-
* const session = await session?.get()
|
|
69
|
-
* return session?.role === 'admin'
|
|
70
|
-
* }
|
|
71
|
-
* })
|
|
72
|
-
* ```
|
|
62
|
+
* @example snippet: permissionFunction
|
|
73
63
|
*/
|
|
74
64
|
export const pikkuPermission = <In>(
|
|
75
65
|
permission: PikkuPermission<In> | PikkuPermissionConfig<In>
|