@pikku/addon-ollama 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +2 -2
- package/dist/.pikku/addon/pikku-addon-types.gen.js +2 -2
- package/dist/.pikku/addon/pikku-addon-types.gen.ts +2 -2
- 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/agent/pikku-agent-map.gen.d.ts +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +8 -2
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.js +3 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.ts +17 -2
- package/dist/.pikku/agent/pikku-model-aliases.gen.d.ts +2 -0
- package/dist/.pikku/agent/pikku-model-aliases.gen.d.ts.map +1 -0
- package/dist/.pikku/agent/pikku-model-aliases.gen.js +6 -0
- package/dist/.pikku/agent/pikku-model-aliases.gen.js.map +1 -0
- package/dist/.pikku/agent/pikku-model-aliases.gen.ts +6 -0
- package/dist/.pikku/agent/pikku-scorer-names.gen.d.ts +8 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.ts +1 -1
- package/dist/.pikku/console/pikku-addon-meta.gen.json +4 -1
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
- package/dist/.pikku/console/pikku-node-types.gen.ts +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +76 -64
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +30 -13
- package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.ts +127 -79
- package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +8 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.js +2 -2
- package/dist/.pikku/function/pikku-functions-meta.gen.js.map +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +28 -4
- package/dist/.pikku/function/pikku-functions-meta.gen.ts +2 -2
- package/dist/.pikku/function/pikku-functions.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions.gen.ts +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +2 -24
- package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.js +2 -24
- package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.ts +3 -31
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +1 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +10 -0
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +10 -0
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.js.map +1 -0
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.ts +9 -0
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +2 -1
- package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +2 -1
- package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.ts +2 -1
- package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
- package/dist/.pikku/pikku-meta-service.gen.js +1 -1
- package/dist/.pikku/pikku-meta-service.gen.ts +1 -1
- package/dist/.pikku/pikku-services.gen.d.ts +7 -1
- package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-services.gen.js +6 -0
- package/dist/.pikku/pikku-services.gen.js.map +1 -1
- package/dist/.pikku/pikku-services.gen.ts +7 -1
- package/dist/.pikku/pikku-types.gen.d.ts +2 -1
- package/dist/.pikku/pikku-types.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-types.gen.js +3 -1
- package/dist/.pikku/pikku-types.gen.js.map +1 -1
- package/dist/.pikku/pikku-types.gen.ts +4 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.ts +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +2 -7
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +2 -7
- package/{.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts → dist/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts} +2 -7
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +2 -2
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +2 -2
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts +2 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +11 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.json +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.ts +12 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +5 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js +2 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.ts +4 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts +2 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +11 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts +15 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +5 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js +2 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js.map +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.ts +4 -0
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts +5 -0
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts.map +1 -0
- package/dist/.pikku/scenarios/schemas/register.gen.js +5 -0
- package/dist/.pikku/scenarios/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/scenarios/schemas/register.gen.ts +4 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +1 -1
- package/dist/.pikku/schemas/register.gen.js +1 -1
- package/dist/.pikku/schemas/register.gen.ts +1 -1
- package/dist/.pikku/scopes/pikku-personas-meta.gen.json +1 -0
- package/dist/.pikku/scopes/pikku-personas.gen.d.ts +37 -0
- package/dist/.pikku/scopes/pikku-personas.gen.d.ts.map +1 -0
- package/dist/.pikku/scopes/pikku-personas.gen.js +18 -0
- package/dist/.pikku/scopes/pikku-personas.gen.js.map +1 -0
- package/dist/.pikku/scopes/pikku-personas.gen.ts +52 -0
- package/dist/.pikku/scopes/pikku-roles-meta.gen.json +1 -0
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts +31 -0
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts.map +1 -0
- package/dist/.pikku/scopes/pikku-roles.gen.js +19 -0
- package/dist/.pikku/scopes/pikku-roles.gen.js.map +1 -0
- package/dist/.pikku/scopes/pikku-roles.gen.ts +41 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +8 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts.map +1 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.js +6 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.js.map +1 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.ts +7 -0
- package/dist/.pikku/scopes/pikku-scopes-meta.gen.json +1 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +36 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +1 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.js +28 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.js.map +1 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.ts +58 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +2 -2
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +2 -2
- package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.ts +2 -2
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +11 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +11 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.ts +14 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +2 -2
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.js +2 -2
- package/dist/.pikku/variables/pikku-variable-types.gen.js.map +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.ts +2 -2
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +11 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +14 -4
- package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.ts +17 -4
- package/dist/.pikku/workflow/personas.gen.json +1 -0
- package/dist/.pikku/workflow/pikku-personas.gen.d.ts +17 -0
- package/dist/.pikku/workflow/pikku-personas.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-personas.gen.js +18 -0
- package/dist/.pikku/workflow/pikku-personas.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-personas.gen.ts +35 -0
- package/dist/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +18 -0
- package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +263 -5
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +62 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +435 -5
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +2 -2
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +4 -4
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
- package/dist/src/functions/embeddings/embed-many.function.d.ts +2 -2
- package/dist/src/functions/embeddings/embed-many.function.d.ts.map +1 -1
- package/dist/src/functions/embeddings/embed.function.d.ts +2 -2
- package/dist/src/functions/embeddings/embed.function.d.ts.map +1 -1
- package/dist/src/functions/text/generate-object.function.d.ts +6 -6
- package/dist/src/functions/text/generate-object.function.d.ts.map +1 -1
- package/dist/src/functions/text/generate.function.d.ts +2 -2
- package/dist/src/functions/text/generate.function.d.ts.map +1 -1
- package/dist/src/ollama.variable.js +2 -2
- package/dist/src/ollama.variable.js.map +1 -1
- package/dist/types/application-types.d.ts +17 -0
- package/package.json +6 -7
- package/.pikku/addon/pikku-addon-types.gen.ts +0 -105
- 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 -82
- package/.pikku/channel/pikku-channel-types.gen.ts +0 -177
- package/.pikku/console/pikku-addon-meta.gen.json +0 -58
- package/.pikku/console/pikku-node-types.gen.ts +0 -8
- package/.pikku/function/pikku-function-types.gen.ts +0 -754
- package/.pikku/function/pikku-functions-meta-verbose.gen.json +0 -118
- package/.pikku/function/pikku-functions-meta.gen.json +0 -78
- package/.pikku/function/pikku-functions-meta.gen.ts +0 -7
- package/.pikku/function/pikku-functions.gen.ts +0 -14
- package/.pikku/http/pikku-http-types.gen.ts +0 -147
- package/.pikku/mcp/pikku-mcp-types.gen.ts +0 -183
- package/.pikku/pikku-bootstrap.gen.ts +0 -8
- package/.pikku/pikku-meta-service.gen.ts +0 -10
- package/.pikku/pikku-services.gen.ts +0 -45
- package/.pikku/pikku-types.gen.ts +0 -21
- package/.pikku/queue/pikku-queue-types.gen.ts +0 -27
- package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +0 -211
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +0 -6
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +0 -6
- package/.pikku/scheduler/pikku-scheduler-types.gen.ts +0 -25
- package/.pikku/schemas/register.gen.ts +0 -39
- package/.pikku/schemas/schemas/OllamaEmbedInput.schema.json +0 -1
- package/.pikku/schemas/schemas/OllamaEmbedManyInput.schema.json +0 -1
- package/.pikku/schemas/schemas/OllamaEmbedManyOutput.schema.json +0 -1
- package/.pikku/schemas/schemas/OllamaEmbedOutput.schema.json +0 -1
- package/.pikku/schemas/schemas/OllamaGenerateObjectInput.schema.json +0 -1
- package/.pikku/schemas/schemas/OllamaGenerateObjectOutput.schema.json +0 -1
- package/.pikku/schemas/schemas/OllamaGenerateTextInput.schema.json +0 -1
- package/.pikku/schemas/schemas/OllamaGenerateTextOutput.schema.json +0 -1
- package/.pikku/schemas/schemas/VariableSchema_ollama_base_url.schema.json +0 -1
- package/.pikku/secrets/pikku-secret-types.gen.ts +0 -5
- package/.pikku/secrets/pikku-secrets.gen.ts +0 -21
- 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-meta.gen.json +0 -10
- package/.pikku/variables/pikku-variables.gen.ts +0 -23
- package/.pikku/workflow/pikku-workflow-map.gen.d.ts +0 -38
- package/.pikku/workflow/pikku-workflow-types.gen.ts +0 -167
- package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +0 -9
- package/.pikku/workflow/pikku-workflow-wirings.gen.ts +0 -3
- /package/{.pikku/secrets/pikku-secrets-meta.gen.json → dist/.pikku/scenarios/features.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.103
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Addon package types for pikkuAddonConfig and pikkuAddonServices
|
|
@@ -40,7 +40,7 @@ export declare const pikkuAddonConfig: <ExistingServices extends Omit<Partial<Si
|
|
|
40
40
|
* { secrets }
|
|
41
41
|
* ) => {
|
|
42
42
|
* const creds = await secrets.getSecret<GithubCredentials>('GITHUB_CREDENTIALS')
|
|
43
|
-
* const github = new GithubService(creds)
|
|
43
|
+
* const github = new GithubService(creds.reveal())
|
|
44
44
|
* return { github }
|
|
45
45
|
* })
|
|
46
46
|
* ```
|
|
@@ -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.103
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Addon package types for pikkuAddonConfig and pikkuAddonServices
|
|
@@ -32,7 +32,7 @@ export const pikkuAddonConfig = (func) => {
|
|
|
32
32
|
* { secrets }
|
|
33
33
|
* ) => {
|
|
34
34
|
* const creds = await secrets.getSecret<GithubCredentials>('GITHUB_CREDENTIALS')
|
|
35
|
-
* const github = new GithubService(creds)
|
|
35
|
+
* const github = new GithubService(creds.reveal())
|
|
36
36
|
* return { github }
|
|
37
37
|
* })
|
|
38
38
|
* ```
|
|
@@ -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.103
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Addon package types for pikkuAddonConfig and pikkuAddonServices
|
|
@@ -55,7 +55,7 @@ export const pikkuAddonConfig = <ExistingServices extends Omit<Partial<Singleton
|
|
|
55
55
|
* { secrets }
|
|
56
56
|
* ) => {
|
|
57
57
|
* const creds = await secrets.getSecret<GithubCredentials>('GITHUB_CREDENTIALS')
|
|
58
|
-
* const github = new GithubService(creds)
|
|
58
|
+
* const github = new GithubService(creds.reveal())
|
|
59
59
|
* return { github }
|
|
60
60
|
* })
|
|
61
61
|
* ```
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.103
|
|
3
3
|
*/
|
|
4
|
-
import { pikkuState } from '@pikku/core/
|
|
4
|
+
import { pikkuState } from '@pikku/core/ecosystem';
|
|
5
5
|
import { createSingletonServices as createSingletonServices } from '../../src/services.js';
|
|
6
6
|
pikkuState('@pikku/addon-ollama', 'package', 'factories', {
|
|
7
7
|
createSingletonServices,
|
|
8
8
|
});
|
|
9
9
|
pikkuState('@pikku/addon-ollama', 'package', 'requiredParentServices', ["variables"]);
|
|
10
|
+
pikkuState('@pikku/addon-ollama', 'package', 'declaredSecrets', []);
|
|
10
11
|
//# sourceMappingURL=pikku-package.gen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-package.gen.js","sourceRoot":"","sources":["../../../.pikku/addon/pikku-package.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"pikku-package.gen.js","sourceRoot":"","sources":["../../../.pikku/addon/pikku-package.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAE,uBAAuB,IAAI,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAE1F,UAAU,CAAC,qBAAqB,EAAE,SAAS,EAAE,WAAW,EAAE;IACxD,uBAAuB;CACxB,CAAC,CAAA;AAEF,UAAU,CAAC,qBAAqB,EAAE,SAAS,EAAE,wBAAwB,EAAE,CAAC,WAAW,CAAC,CAAC,CAAA;AAErF,UAAU,CAAC,qBAAqB,EAAE,SAAS,EAAE,iBAAiB,EAAE,EAAE,CAAC,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.103
|
|
3
3
|
*/
|
|
4
|
-
import { pikkuState } from '@pikku/core/
|
|
4
|
+
import { pikkuState } from '@pikku/core/ecosystem'
|
|
5
5
|
import { createSingletonServices as createSingletonServices } from '../../src/services.js'
|
|
6
6
|
|
|
7
7
|
pikkuState('@pikku/addon-ollama', 'package', 'factories', {
|
|
@@ -9,3 +9,5 @@ pikkuState('@pikku/addon-ollama', 'package', 'factories', {
|
|
|
9
9
|
})
|
|
10
10
|
|
|
11
11
|
pikkuState('@pikku/addon-ollama', 'package', 'requiredParentServices', ["variables"])
|
|
12
|
+
|
|
13
|
+
pikkuState('@pikku/addon-ollama', 'package', 'declaredSecrets', [])
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.103
|
|
3
3
|
*/
|
|
4
4
|
import { CoreAIAgent, PikkuAIMiddlewareHooks } from '@pikku/core/ai-agent';
|
|
5
|
+
import { pikkuAIScorer as corePikkuAIScorer, pikkuAIJudge as corePikkuAIJudge } from '@pikku/core/ai-scorer';
|
|
5
6
|
import type { PikkuPermission, PikkuMiddleware, Services, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
|
|
6
7
|
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
7
8
|
import type { AIAgentMemoryConfig, AIAgentInput } from '@pikku/core/ai-agent';
|
|
8
9
|
import type { AgentMap } from './pikku-agent-map.gen.d.js';
|
|
9
|
-
type
|
|
10
|
+
import type { ScopeId } from '../scopes/pikku-scopes.gen.js';
|
|
11
|
+
import type { ScorerName } from './pikku-scorer-names.gen.d.js';
|
|
12
|
+
type AIAgentConfig<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = Omit<CoreAIAgent<PikkuPermission, PikkuMiddleware, ScopeId, ScorerName>, 'tools' | 'agents' | 'workflows' | 'memory' | 'input' | 'output'> & {
|
|
10
13
|
input?: InputSchema;
|
|
11
14
|
output?: OutputSchema;
|
|
12
15
|
memory?: Omit<AIAgentMemoryConfig, 'workingMemory'> & {
|
|
@@ -14,8 +17,11 @@ type AIAgentConfig<InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
|
14
17
|
};
|
|
15
18
|
tools?: object[];
|
|
16
19
|
agents?: AIAgentConfig<StandardSchemaV1 | undefined, StandardSchemaV1 | undefined>[];
|
|
20
|
+
workflows?: object[];
|
|
17
21
|
};
|
|
18
22
|
export declare const pikkuAIAgent: <InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(agent: AIAgentConfig<InputSchema, OutputSchema>) => AIAgentConfig<InputSchema, OutputSchema>;
|
|
23
|
+
export declare const pikkuAIScorer: (config: Parameters<typeof corePikkuAIScorer<Services>>[0]) => import("@pikku/core/ai-scorer").PikkuAIScorer<Services>;
|
|
24
|
+
export declare const pikkuAIJudge: (config: Parameters<typeof corePikkuAIJudge<Services>>[0]) => import("@pikku/core/ai-scorer").PikkuAIScorer<Services>;
|
|
19
25
|
export declare const pikkuAIMiddleware: <State extends Record<string, unknown> = Record<string, unknown>, RequiredServices extends Services = Services>(hooks: PikkuAIMiddlewareHooks<State, RequiredServices>) => PikkuAIMiddlewareHooks<State, RequiredServices>;
|
|
20
26
|
export declare const agent: <Name extends keyof AgentMap>(agentName: Name) => PikkuFunctionConfig<AIAgentInput, {
|
|
21
27
|
runId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-agent-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/agent/pikku-agent-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,WAAW,EACX,sBAAsB,EACvB,MAAM,sBAAsB,CAAA;AAO7B,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAC9H,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAC7E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"pikku-agent-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/agent/pikku-agent-types.gen.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { agent as coreAgent, agentStream as coreAgentStream, agentResume as coreAgentResume, agentApprove as coreAgentApprove, } from '@pikku/core/ai-agent';
|
|
2
|
+
import { pikkuAIScorer as corePikkuAIScorer, pikkuAIJudge as corePikkuAIJudge, } from '@pikku/core/ai-scorer';
|
|
2
3
|
export const pikkuAIAgent = (agent) => {
|
|
3
4
|
return agent;
|
|
4
5
|
};
|
|
6
|
+
export const pikkuAIScorer = (config) => corePikkuAIScorer(config);
|
|
7
|
+
export const pikkuAIJudge = (config) => corePikkuAIJudge(config);
|
|
5
8
|
export const pikkuAIMiddleware = (hooks) => hooks;
|
|
6
9
|
export const agent = (agentName) => {
|
|
7
10
|
return coreAgent(agentName);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-agent-types.gen.js","sourceRoot":"","sources":["../../../.pikku/agent/pikku-agent-types.gen.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,IAAI,SAAS,EAClB,WAAW,IAAI,eAAe,EAC9B,WAAW,IAAI,eAAe,EAC9B,YAAY,IAAI,gBAAgB,GACjC,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"pikku-agent-types.gen.js","sourceRoot":"","sources":["../../../.pikku/agent/pikku-agent-types.gen.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,IAAI,SAAS,EAClB,WAAW,IAAI,eAAe,EAC9B,WAAW,IAAI,eAAe,EAC9B,YAAY,IAAI,gBAAgB,GACjC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,aAAa,IAAI,iBAAiB,EAClC,YAAY,IAAI,gBAAgB,GACjC,MAAM,uBAAuB,CAAA;AAoB9B,MAAM,CAAC,MAAM,YAAY,GAAG,CAI1B,KAA+C,EAC/C,EAAE;IACF,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,MAAyD,EACzD,EAAE,CAAC,iBAAiB,CAAW,MAAM,CAAC,CAAA;AAExC,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,MAAwD,EACxD,EAAE,CAAC,gBAAgB,CAAW,MAAM,CAAC,CAAA;AAEvC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAI/B,KAAsD,EACL,EAAE,CAAC,KAAK,CAAA;AAE3D,MAAM,CAAC,MAAM,KAAK,GAAG,CACnB,SAAe,EACf,EAAE;IACF,OAAO,SAAS,CAAW,SAAoC,CAI9D,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,SAAgB,EAChB,EAAE;IACF,OAAO,eAAe,CAAW,SAAoC,CAIpE,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC9B,OAAO,eAAe,EAIrB,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,SAAe,EACf,EAAE;IACF,OAAO,gBAAgB,CAAW,SAAoC,CAIrE,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -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.103
|
|
3
3
|
*/
|
|
4
4
|
import {
|
|
5
5
|
CoreAIAgent,
|
|
@@ -11,20 +11,27 @@ import {
|
|
|
11
11
|
agentResume as coreAgentResume,
|
|
12
12
|
agentApprove as coreAgentApprove,
|
|
13
13
|
} from '@pikku/core/ai-agent'
|
|
14
|
+
import {
|
|
15
|
+
pikkuAIScorer as corePikkuAIScorer,
|
|
16
|
+
pikkuAIJudge as corePikkuAIJudge,
|
|
17
|
+
} from '@pikku/core/ai-scorer'
|
|
14
18
|
import type { PikkuPermission, PikkuMiddleware, Services, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js'
|
|
15
19
|
import type { StandardSchemaV1 } from '@standard-schema/spec'
|
|
16
20
|
import type { AIAgentMemoryConfig, AIAgentInput } from '@pikku/core/ai-agent'
|
|
17
21
|
import type { AgentMap } from './pikku-agent-map.gen.d.js'
|
|
22
|
+
import type { ScopeId } from '../scopes/pikku-scopes.gen.js'
|
|
23
|
+
import type { ScorerName } from './pikku-scorer-names.gen.d.js'
|
|
18
24
|
|
|
19
25
|
type AIAgentConfig<
|
|
20
26
|
InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
21
27
|
OutputSchema extends StandardSchemaV1 | undefined = undefined
|
|
22
|
-
> = Omit<CoreAIAgent<PikkuPermission, PikkuMiddleware>, 'tools' | 'agents' | 'memory' | 'input' | 'output'> & {
|
|
28
|
+
> = Omit<CoreAIAgent<PikkuPermission, PikkuMiddleware, ScopeId, ScorerName>, 'tools' | 'agents' | 'workflows' | 'memory' | 'input' | 'output'> & {
|
|
23
29
|
input?: InputSchema
|
|
24
30
|
output?: OutputSchema
|
|
25
31
|
memory?: Omit<AIAgentMemoryConfig, 'workingMemory'> & { workingMemory?: StandardSchemaV1 }
|
|
26
32
|
tools?: object[]
|
|
27
33
|
agents?: AIAgentConfig<StandardSchemaV1 | undefined, StandardSchemaV1 | undefined>[]
|
|
34
|
+
workflows?: object[]
|
|
28
35
|
}
|
|
29
36
|
|
|
30
37
|
export const pikkuAIAgent = <
|
|
@@ -36,6 +43,14 @@ export const pikkuAIAgent = <
|
|
|
36
43
|
return agent
|
|
37
44
|
}
|
|
38
45
|
|
|
46
|
+
export const pikkuAIScorer = (
|
|
47
|
+
config: Parameters<typeof corePikkuAIScorer<Services>>[0]
|
|
48
|
+
) => corePikkuAIScorer<Services>(config)
|
|
49
|
+
|
|
50
|
+
export const pikkuAIJudge = (
|
|
51
|
+
config: Parameters<typeof corePikkuAIJudge<Services>>[0]
|
|
52
|
+
) => corePikkuAIJudge<Services>(config)
|
|
53
|
+
|
|
39
54
|
export const pikkuAIMiddleware = <
|
|
40
55
|
State extends Record<string, unknown> = Record<string, unknown>,
|
|
41
56
|
RequiredServices extends Services = Services,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-model-aliases.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/agent/pikku-model-aliases.gen.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-model-aliases.gen.js","sourceRoot":"","sources":["../../../.pikku/agent/pikku-model-aliases.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAElD,UAAU,CAAC,qBAAqB,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,CAAC,CAAA"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.103
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Core function, middleware, and permission types for all wirings
|
|
6
6
|
*/
|
|
7
|
-
import type { CorePikkuMiddleware, CorePermissionGroup, ListInput, ListOutput, PikkuWire, PickRequired } from '@pikku/core';
|
|
8
|
-
import type { CorePikkuFunctionConfig, CorePikkuAuth, CorePikkuAuthConfig, CorePikkuPermission } from '@pikku/core/function';
|
|
9
|
-
import { CreateWireServices } from '@pikku/core/
|
|
7
|
+
import type { CorePikkuMiddleware, CorePermissionGroup, ListInput, ListOutput, PikkuWire, PickRequired, SecretlessServices } from '@pikku/core';
|
|
8
|
+
import type { CorePikkuFunctionConfig, CorePikkuSessionlessFunctionConfig, CorePikkuAuth, CorePikkuAuthConfig, CorePikkuPermission } from '@pikku/core/function';
|
|
9
|
+
import { CreateWireServices } from '@pikku/core/ecosystem';
|
|
10
10
|
import type { NodeType } from '@pikku/core/node';
|
|
11
|
+
import type { ScopeId } from '../scopes/pikku-scopes.gen.js';
|
|
11
12
|
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
12
13
|
import { CorePikkuFunction, CorePikkuFunctionSessionless } from '@pikku/core/function';
|
|
13
14
|
import type { UserSession } from '../../types/application-types.d.js';
|
|
@@ -16,10 +17,22 @@ import type { Services } from '../../types/application-types.d.js';
|
|
|
16
17
|
import type { Config } from '../../types/application-types.d.js';
|
|
17
18
|
import type { TypedPikkuRPC, FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.d.js';
|
|
18
19
|
import type { RequiredSingletonServices, RequiredWireServices } from '../pikku-services.gen.js';
|
|
19
|
-
import type { TypedWorkflow } from '../workflow/pikku-workflow-types.gen.js';
|
|
20
|
+
import type { TypedWorkflow, TypedScenario, TypedPersonas } from '../workflow/pikku-workflow-types.gen.js';
|
|
20
21
|
export type { SingletonServices as SingletonServices };
|
|
21
22
|
export type { Services as Services };
|
|
22
23
|
export type Session = UserSession;
|
|
24
|
+
/**
|
|
25
|
+
* The services a wired function actually receives. The inspector records which
|
|
26
|
+
* services each wired `func`, `permissions` and `middleware` destructures and
|
|
27
|
+
* emits them as `RequiredSingletonServices`; intersecting that here makes those
|
|
28
|
+
* services **non-optional** at every call site. A service is optional only when
|
|
29
|
+
* nothing destructures it — in which case it is never created either. This is
|
|
30
|
+
* why an `if (!service)` guard inside a function body is always dead code.
|
|
31
|
+
*/
|
|
32
|
+
export type WiredSingletonServices = RequiredSingletonServices & SingletonServices;
|
|
33
|
+
export type WiredServices = SecretlessServices<RequiredSingletonServices & Services>;
|
|
34
|
+
/** `WiredSingletonServices` without `secrets`, for auth gates. */
|
|
35
|
+
export type WiredAuthServices = SecretlessServices<WiredSingletonServices>;
|
|
23
36
|
/**
|
|
24
37
|
* Inline node configuration for function definitions.
|
|
25
38
|
*/
|
|
@@ -36,18 +49,18 @@ export type NodeConfig = {
|
|
|
36
49
|
* @template In - The input type that the permission check will receive
|
|
37
50
|
* @template RequiredServices - The services required for this permission check
|
|
38
51
|
*/
|
|
39
|
-
export type PikkuPermission<In = unknown, RequiredServices extends Services =
|
|
52
|
+
export type PikkuPermission<In = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices> = CorePikkuPermission<In, RequiredServices, PikkuWire<In, never, false, Session>>;
|
|
40
53
|
/**
|
|
41
54
|
* Type-safe middleware definition that can access your application's services and session.
|
|
42
55
|
* Use this to define reusable middleware that can be applied to multiple wirings.
|
|
43
56
|
*
|
|
44
57
|
* @template RequiredServices - The services required for this middleware
|
|
45
58
|
*/
|
|
46
|
-
export type PikkuMiddleware<RequiredServices extends SingletonServices =
|
|
59
|
+
export type PikkuMiddleware<RequiredServices extends SingletonServices = WiredSingletonServices> = CorePikkuMiddleware<RequiredServices>;
|
|
47
60
|
/**
|
|
48
61
|
* Configuration object for creating a permission with metadata
|
|
49
62
|
*/
|
|
50
|
-
export type PikkuPermissionConfig<In = unknown, RequiredServices extends Services =
|
|
63
|
+
export type PikkuPermissionConfig<In = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices> = {
|
|
51
64
|
/** The permission function */
|
|
52
65
|
func: PikkuPermission<In, RequiredServices>;
|
|
53
66
|
/** Optional human-readable name for the permission */
|
|
@@ -86,11 +99,11 @@ export declare const pikkuPermission: <In>(permission: PikkuPermission<In> | Pik
|
|
|
86
99
|
*
|
|
87
100
|
* @template RequiredServices - The services required for this auth check
|
|
88
101
|
*/
|
|
89
|
-
export type PikkuAuth<RequiredServices extends SingletonServices =
|
|
102
|
+
export type PikkuAuth<RequiredServices extends SecretlessServices<SingletonServices> = WiredAuthServices> = CorePikkuAuth<RequiredServices, Session>;
|
|
90
103
|
/**
|
|
91
104
|
* Configuration object for creating an auth permission with metadata
|
|
92
105
|
*/
|
|
93
|
-
export type PikkuAuthConfig<RequiredServices extends SingletonServices =
|
|
106
|
+
export type PikkuAuthConfig<RequiredServices extends SecretlessServices<SingletonServices> = WiredAuthServices> = CorePikkuAuthConfig<RequiredServices, Session>;
|
|
94
107
|
/**
|
|
95
108
|
* Factory function for creating auth-only permissions with tree-shaking support.
|
|
96
109
|
* Auth permissions only receive services and session (no request data),
|
|
@@ -111,11 +124,11 @@ export type PikkuAuthConfig<RequiredServices extends SingletonServices = Singlet
|
|
|
111
124
|
* })
|
|
112
125
|
* \`\`\`
|
|
113
126
|
*/
|
|
114
|
-
export declare const pikkuAuth: <RequiredServices extends SingletonServices =
|
|
127
|
+
export declare const pikkuAuth: <RequiredServices extends SecretlessServices<SingletonServices> = WiredAuthServices>(auth: PikkuAuth<RequiredServices> | PikkuAuthConfig<RequiredServices>) => PikkuPermission<any, any>;
|
|
115
128
|
/**
|
|
116
129
|
* Configuration object for creating middleware with metadata
|
|
117
130
|
*/
|
|
118
|
-
export type PikkuMiddlewareConfig<RequiredServices extends SingletonServices =
|
|
131
|
+
export type PikkuMiddlewareConfig<RequiredServices extends SingletonServices = WiredSingletonServices> = {
|
|
119
132
|
/** The middleware function */
|
|
120
133
|
func: PikkuMiddleware<RequiredServices>;
|
|
121
134
|
/** Optional human-readable name for the middleware */
|
|
@@ -146,7 +159,7 @@ export type PikkuMiddlewareConfig<RequiredServices extends SingletonServices = S
|
|
|
146
159
|
* })
|
|
147
160
|
* ```
|
|
148
161
|
*/
|
|
149
|
-
export declare const pikkuMiddleware: <RequiredServices extends SingletonServices =
|
|
162
|
+
export declare const pikkuMiddleware: <RequiredServices extends SingletonServices = WiredSingletonServices>(middleware: PikkuMiddleware<RequiredServices> | PikkuMiddlewareConfig<RequiredServices>) => PikkuMiddleware<RequiredServices>;
|
|
150
163
|
/**
|
|
151
164
|
* Factory function for creating middleware factories
|
|
152
165
|
* Use this when your middleware needs configuration/input parameters
|
|
@@ -192,7 +205,7 @@ export declare const pikkuPermissionFactory: <In = any>(factory: (input: In) =>
|
|
|
192
205
|
* @template In - The input type (same as the function it describes)
|
|
193
206
|
* @template RequiredServices - The services required for this description function
|
|
194
207
|
*/
|
|
195
|
-
export type PikkuApprovalDescription<In = unknown, RequiredServices extends Services =
|
|
208
|
+
export type PikkuApprovalDescription<In = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices> = (services: RequiredServices, data: In) => Promise<string>;
|
|
196
209
|
/**
|
|
197
210
|
* Factory function for creating approval description functions with tree-shaking support.
|
|
198
211
|
*
|
|
@@ -206,7 +219,7 @@ export type PikkuApprovalDescription<In = unknown, RequiredServices extends Serv
|
|
|
206
219
|
* )
|
|
207
220
|
* ```
|
|
208
221
|
*/
|
|
209
|
-
export declare const pikkuApprovalDescription: <In = unknown, RequiredServices extends Services =
|
|
222
|
+
export declare const pikkuApprovalDescription: <In = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices>(fn: PikkuApprovalDescription<In, RequiredServices>) => PikkuApprovalDescription<In, RequiredServices>;
|
|
210
223
|
/**
|
|
211
224
|
* A sessionless API function that doesn't require user authentication.
|
|
212
225
|
* Use this for public endpoints, health checks, or operations that don't need user context.
|
|
@@ -214,8 +227,12 @@ export declare const pikkuApprovalDescription: <In = unknown, RequiredServices e
|
|
|
214
227
|
* @template In - The input type
|
|
215
228
|
* @template Out - The output type that the function returns
|
|
216
229
|
* @template RequiredServices - Services required by this function
|
|
230
|
+
* @template ScenarioOut - Types `scenario.context`; only scenarios set it.
|
|
231
|
+
* Not defaulted to `Out`, which would make every ordinary function's wire
|
|
232
|
+
* type vary with its return type and cost a `func` written against the
|
|
233
|
+
* `PikkuFunction | PikkuFunctionSessionless` union its contextual typing.
|
|
217
234
|
*/
|
|
218
|
-
export type PikkuFunctionSessionless<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = never, RequiredServices extends Services =
|
|
235
|
+
export type PikkuFunctionSessionless<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = never, RequiredServices extends SecretlessServices<Services> = WiredServices, ScenarioOut = unknown> = CorePikkuFunctionSessionless<In, Out, RequiredServices, Session, PickRequired<PikkuWire<In, Out, false, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario<ScenarioOut>, TypedPersonas>, RequiredWires>>;
|
|
219
236
|
/**
|
|
220
237
|
* A session-aware API function that requires user authentication.
|
|
221
238
|
* Use this for protected endpoints that need access to user session data.
|
|
@@ -224,7 +241,7 @@ export type PikkuFunctionSessionless<In = unknown, Out = never, RequiredWires ex
|
|
|
224
241
|
* @template Out - The output type that the function returns
|
|
225
242
|
* @template RequiredServices - Services required by this function
|
|
226
243
|
*/
|
|
227
|
-
export type PikkuFunction<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = 'session', RequiredServices extends Services =
|
|
244
|
+
export type PikkuFunction<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = 'session', RequiredServices extends SecretlessServices<Services> = WiredServices> = CorePikkuFunction<In, Out, RequiredServices, Session, PickRequired<PikkuWire<In, Out, true, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario, TypedPersonas>, RequiredWires>>;
|
|
228
245
|
/**
|
|
229
246
|
* Helper type to infer the output type from a Standard Schema
|
|
230
247
|
*/
|
|
@@ -237,7 +254,12 @@ export type InferSchemaOutput<T> = T extends StandardSchemaV1<any, infer Output>
|
|
|
237
254
|
* @template Out - The output type
|
|
238
255
|
* @template PikkuFunc - The function type (can be narrowed to PikkuFunction or PikkuFunctionSessionless)
|
|
239
256
|
*/
|
|
240
|
-
export type PikkuFunctionConfig<In = unknown, Out = unknown, RequiredWires extends keyof PikkuWire = never, PikkuFunc extends PikkuFunction<In, Out, RequiredWires> | PikkuFunctionSessionless<In, Out, RequiredWires> = PikkuFunction<In, Out, RequiredWires> | PikkuFunctionSessionless<In, Out, RequiredWires>, InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = CorePikkuFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema>;
|
|
257
|
+
export type PikkuFunctionConfig<In = unknown, Out = unknown, RequiredWires extends keyof PikkuWire = never, PikkuFunc extends PikkuFunction<In, Out, RequiredWires, any> | PikkuFunctionSessionless<In, Out, RequiredWires, any, any> = PikkuFunction<In, Out, RequiredWires> | PikkuFunctionSessionless<In, Out, RequiredWires>, InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = CorePikkuFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema, ScopeId>;
|
|
258
|
+
/**
|
|
259
|
+
* {@link PikkuFunctionConfig} for a function that runs without a session.
|
|
260
|
+
* Has no `scopes`: an anonymous caller holds none, so none can ever be met.
|
|
261
|
+
*/
|
|
262
|
+
export type PikkuFunctionSessionlessConfig<In = unknown, Out = unknown, RequiredWires extends keyof PikkuWire = never, PikkuFunc extends PikkuFunctionSessionless<In, Out, RequiredWires, any> = PikkuFunctionSessionless<In, Out, RequiredWires>, InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = CorePikkuSessionlessFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema>;
|
|
241
263
|
/**
|
|
242
264
|
* Configuration object for Pikku functions with Zod schema validation.
|
|
243
265
|
* Use this when you want to define input/output schemas using Zod.
|
|
@@ -248,8 +270,8 @@ type SchemaInferred<S, Fallback = unknown> = S extends StandardSchemaV1 ? InferS
|
|
|
248
270
|
* Schema-overload variant for pikkuFunc. Derived from CorePikkuFunctionConfig
|
|
249
271
|
* so adding a field on the core type automatically propagates here.
|
|
250
272
|
*/
|
|
251
|
-
export type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never> = Omit<CorePikkuFunctionConfig<PikkuFunction<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires> | PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires
|
|
252
|
-
func: PikkuFunction<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires> | PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires>;
|
|
273
|
+
export type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never, RequiredServices extends SecretlessServices<Services> = WiredServices> = Omit<CorePikkuFunctionConfig<PikkuFunction<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices> | PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>, CorePikkuPermission<any>, PikkuMiddleware, undefined, undefined, ScopeId>, 'func' | 'input' | 'output' | 'permissions' | 'approvalDescription'> & {
|
|
274
|
+
func: PikkuFunction<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices> | PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>;
|
|
253
275
|
input?: InputSchema;
|
|
254
276
|
output?: OutputSchema;
|
|
255
277
|
permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined;
|
|
@@ -259,26 +281,14 @@ export type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 |
|
|
|
259
281
|
* Creates a Pikku function that can be either session-aware or sessionless.
|
|
260
282
|
* This is the main function wrapper for creating API endpoints.
|
|
261
283
|
*
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
* 2. Zod schemas: `pikkuFunc({ input: z.object(...), output: z.object(...), func: ... })`
|
|
284
|
+
* Define the input and output with Zod schemas — the function's types are
|
|
285
|
+
* inferred from them, and the schemas double as runtime validation.
|
|
265
286
|
*
|
|
266
|
-
* @
|
|
267
|
-
* @template Out - Output type for the function (inferred from schema if provided)
|
|
268
|
-
* @param func - Function definition, either direct function or configuration object
|
|
287
|
+
* @param config - Function definition with `input`/`output` Zod schemas and `func`.
|
|
269
288
|
* @returns The normalized configuration object
|
|
270
289
|
*
|
|
271
290
|
* @example
|
|
272
291
|
* ```typescript
|
|
273
|
-
* // Pattern 1: Using generic types
|
|
274
|
-
* const createUser = pikkuFunc<{name: string, email: string}, {id: number}>({
|
|
275
|
-
* func: async ({db}, input) => {
|
|
276
|
-
* const user = await db.users.create(input)
|
|
277
|
-
* return { id: user.id }
|
|
278
|
-
* }
|
|
279
|
-
* })
|
|
280
|
-
*
|
|
281
|
-
* // Pattern 2: Using Zod schemas (types inferred automatically)
|
|
282
292
|
* const createUserInput = z.object({ name: z.string(), email: z.string() })
|
|
283
293
|
* const createUserOutput = z.object({ id: z.number() })
|
|
284
294
|
*
|
|
@@ -302,10 +312,11 @@ export declare const pikkuListFunc: <F extends Record<string, unknown> = {}, Row
|
|
|
302
312
|
*/
|
|
303
313
|
/**
|
|
304
314
|
* Schema-overload variant for pikkuSessionlessFunc. Derived from
|
|
305
|
-
*
|
|
315
|
+
* CorePikkuSessionlessFunctionConfig to stay in sync with the generic-typed
|
|
316
|
+
* config — so it has no `scopes` either.
|
|
306
317
|
*/
|
|
307
|
-
export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never> = Omit<
|
|
308
|
-
func: PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires>;
|
|
318
|
+
export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never, RequiredServices extends SecretlessServices<Services> = WiredServices> = Omit<CorePikkuSessionlessFunctionConfig<PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>>, 'func' | 'input' | 'output' | 'permissions' | 'approvalDescription'> & {
|
|
319
|
+
func: PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>;
|
|
309
320
|
input?: InputSchema;
|
|
310
321
|
output?: OutputSchema;
|
|
311
322
|
permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined;
|
|
@@ -315,25 +326,14 @@ export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends Standar
|
|
|
315
326
|
* Creates a sessionless Pikku function that doesn't require user authentication.
|
|
316
327
|
* Use this for public endpoints, webhooks, or background tasks.
|
|
317
328
|
*
|
|
318
|
-
*
|
|
319
|
-
*
|
|
320
|
-
* 2. Zod schemas: `pikkuSessionlessFunc({ input: z.object(...), func: ... })`
|
|
329
|
+
* Define the input and output with Zod schemas — the function's types are
|
|
330
|
+
* inferred from them, and the schemas double as runtime validation.
|
|
321
331
|
*
|
|
322
|
-
* @
|
|
323
|
-
* @template Out - Output type for the function (inferred from schema if provided)
|
|
324
|
-
* @param func - Function definition, either direct function or configuration object
|
|
332
|
+
* @param config - Function definition with `input`/`output` Zod schemas and `func`.
|
|
325
333
|
* @returns The normalized configuration object
|
|
326
334
|
*
|
|
327
335
|
* @example
|
|
328
336
|
* ```typescript
|
|
329
|
-
* // Pattern 1: Using generic types
|
|
330
|
-
* const healthCheck = pikkuSessionlessFunc<void, {status: string}>({
|
|
331
|
-
* func: async ({logger}) => {
|
|
332
|
-
* return { status: 'healthy' }
|
|
333
|
-
* }
|
|
334
|
-
* })
|
|
335
|
-
*
|
|
336
|
-
* // Pattern 2: Using Zod schemas
|
|
337
337
|
* const greetInput = z.object({ name: z.string() })
|
|
338
338
|
* const greetOutput = z.object({ message: z.string() })
|
|
339
339
|
*
|
|
@@ -346,8 +346,8 @@ export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends Standar
|
|
|
346
346
|
* })
|
|
347
347
|
* ```
|
|
348
348
|
*/
|
|
349
|
-
export declare function pikkuSessionlessFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuFunctionSessionlessConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc'>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>;
|
|
350
|
-
export declare function pikkuSessionlessFunc<In, Out = unknown>(func: PikkuFunctionSessionless<In, Out, 'session' | 'rpc'> |
|
|
349
|
+
export declare function pikkuSessionlessFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredServices extends SecretlessServices<Services> = WiredServices>(config: PikkuFunctionSessionlessConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc', RequiredServices>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>;
|
|
350
|
+
export declare function pikkuSessionlessFunc<In, Out = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices>(func: PikkuFunctionSessionless<In, Out, 'session' | 'rpc', RequiredServices> | PikkuFunctionSessionlessConfig<In, Out, 'session' | 'rpc', PikkuFunctionSessionless<In, Out, 'session' | 'rpc', RequiredServices>>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
|
|
351
351
|
/**
|
|
352
352
|
* Creates a function that takes no input and returns no output.
|
|
353
353
|
* Useful for health checks, triggers, or cleanup operations.
|
|
@@ -364,7 +364,7 @@ export declare function pikkuSessionlessFunc<In, Out = unknown>(func: PikkuFunct
|
|
|
364
364
|
* })
|
|
365
365
|
* ```
|
|
366
366
|
*/
|
|
367
|
-
export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void, "session" | "rpc"> |
|
|
367
|
+
export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void, "session" | "rpc"> | PikkuFunctionSessionlessConfig<void, void, "session" | "rpc">) => PikkuFunctionSessionlessConfig<void, void, "rpc" | "session", PikkuFunctionSessionless<void, void, "rpc" | "session", WiredServices, unknown>, undefined, undefined>;
|
|
368
368
|
/**
|
|
369
369
|
* References a registered function by name for use in any wiring.
|
|
370
370
|
* Works for both local and addon functions — resolves via RPC at runtime.
|
|
@@ -383,6 +383,25 @@ export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void,
|
|
|
383
383
|
* ```
|
|
384
384
|
*/
|
|
385
385
|
export declare const ref: <Name extends keyof FlattenedRPCMap>(rpcName: Name) => PikkuFunctionConfig<FlattenedRPCMap[Name]["input"], FlattenedRPCMap[Name]["output"], "session" | "rpc">;
|
|
386
|
+
/**
|
|
387
|
+
* Declares a capability the connected client answers, reachable from any
|
|
388
|
+
* `wireChannel` function as `channel.remote(name, input)`.
|
|
389
|
+
*
|
|
390
|
+
* There is no `func`: this side owns the contract, the client owns the body.
|
|
391
|
+
* The `description` is what a person is shown when asked to approve the call,
|
|
392
|
+
* so write it for them rather than for the caller.
|
|
393
|
+
*
|
|
394
|
+
* @example
|
|
395
|
+
* ```typescript
|
|
396
|
+
* export const localCheckoutOutput = z.object({ sha: z.string(), branch: z.string() })
|
|
397
|
+
*
|
|
398
|
+
* export const localCheckout = pikkuRemoteChannelFunc({
|
|
399
|
+
* description: 'Read the current commit and branch of your working tree',
|
|
400
|
+
* output: localCheckoutOutput,
|
|
401
|
+
* })
|
|
402
|
+
* ```
|
|
403
|
+
*/
|
|
404
|
+
export declare function pikkuRemoteChannelFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: Omit<PikkuFunctionSessionlessConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc'>, 'func'>): PikkuFunctionConfig<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, 'session' | 'rpc'>;
|
|
386
405
|
/**
|
|
387
406
|
* Creates a Pikku config factory.
|
|
388
407
|
* Use this to define your application's configuration factory.
|
|
@@ -455,13 +474,6 @@ export declare const addTagMiddleware: (tag: string, middleware: PikkuMiddleware
|
|
|
455
474
|
* addGlobalMiddleware([telemetryMiddleware])
|
|
456
475
|
*/
|
|
457
476
|
export declare const addGlobalMiddleware: (middleware: PikkuMiddleware[]) => void;
|
|
458
|
-
/**
|
|
459
|
-
* Tag-scoped permissions. Applies to any wiring that carries the matching tag.
|
|
460
|
-
*
|
|
461
|
-
* @example
|
|
462
|
-
* addTagPermission('admin', [adminPermission])
|
|
463
|
-
*/
|
|
464
|
-
export declare const addTagPermission: <In = unknown>(tag: string, permissions: CorePermissionGroup<PikkuPermission<In>> | PikkuPermission<In>[]) => void;
|
|
465
477
|
/**
|
|
466
478
|
* Wire-agnostic global permissions. Runs at the top of every wiring's
|
|
467
479
|
* permission resolution — before wire-, tag-, and function-level entries.
|
|
@@ -472,8 +484,8 @@ export declare const addTagPermission: <In = unknown>(tag: string, permissions:
|
|
|
472
484
|
* addGlobalPermission([signedInUser])
|
|
473
485
|
*/
|
|
474
486
|
export declare const addGlobalPermission: <In = unknown>(permissions: CorePermissionGroup<PikkuPermission<In>> | PikkuPermission<In>[]) => void;
|
|
475
|
-
export { wireAddon } from '@pikku/core/rpc';
|
|
476
|
-
export type { WireAddonConfig } from '@pikku/core/rpc';
|
|
487
|
+
export { wireAddon, wireRemoteAddon } from '@pikku/core/rpc';
|
|
488
|
+
export type { WireAddonConfig, WireRemoteAddonConfig, RemoteAddonAuth } from '@pikku/core/rpc';
|
|
477
489
|
/**
|
|
478
490
|
* Addon contract references. Generated from each wired addon's published
|
|
479
491
|
* contract metadata — no addon source is imported. Functions are proxied via
|