@pikku/addon-ollama 0.1.1 → 0.1.3
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/.pikku/addon/pikku-addon-types.gen.ts +105 -0
- package/.pikku/addon/pikku-package.gen.ts +11 -0
- package/.pikku/agent/pikku-agent-map.gen.d.ts +4 -0
- package/.pikku/agent/pikku-agent-types.gen.ts +84 -0
- package/.pikku/channel/pikku-channel-types.gen.ts +177 -0
- package/.pikku/console/pikku-addon-meta.gen.json +61 -0
- package/.pikku/console/pikku-node-types.gen.ts +8 -0
- package/.pikku/function/pikku-function-types.gen.ts +797 -0
- package/.pikku/function/pikku-functions-meta-verbose.gen.json +126 -0
- package/.pikku/function/pikku-functions-meta.gen.json +102 -0
- package/.pikku/function/pikku-functions-meta.gen.ts +7 -0
- package/.pikku/function/pikku-functions.gen.ts +14 -0
- package/.pikku/http/pikku-http-types.gen.ts +119 -0
- package/.pikku/mcp/pikku-mcp-types.gen.ts +183 -0
- package/.pikku/pikku-bootstrap-scenarios.gen.ts +9 -0
- package/.pikku/pikku-bootstrap.gen.ts +8 -0
- package/.pikku/pikku-meta-service.gen.ts +10 -0
- package/.pikku/pikku-services.gen.ts +50 -0
- package/.pikku/pikku-types.gen.ts +24 -0
- package/.pikku/queue/pikku-queue-types.gen.ts +27 -0
- package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +207 -0
- package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +211 -0
- package/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +207 -0
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +6 -0
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +6 -0
- package/.pikku/scenarios/features.gen.json +1 -0
- package/.pikku/scenarios/pikku-scenario-functions-meta.gen.json +1 -0
- package/.pikku/scenarios/pikku-scenario-functions-meta.gen.ts +12 -0
- package/.pikku/scenarios/pikku-scenario-functions.gen.ts +4 -0
- package/.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts +15 -0
- package/.pikku/scenarios/pikku-scenario-wirings.gen.ts +4 -0
- package/.pikku/scenarios/schemas/register.gen.ts +4 -0
- package/.pikku/scheduler/pikku-scheduler-types.gen.ts +25 -0
- package/.pikku/schemas/register.gen.ts +39 -0
- package/.pikku/schemas/schemas/OllamaEmbedInput.schema.json +1 -0
- package/.pikku/schemas/schemas/OllamaEmbedManyInput.schema.json +1 -0
- package/.pikku/schemas/schemas/OllamaEmbedManyOutput.schema.json +1 -0
- package/.pikku/schemas/schemas/OllamaEmbedOutput.schema.json +1 -0
- package/.pikku/schemas/schemas/OllamaGenerateObjectInput.schema.json +1 -0
- package/.pikku/schemas/schemas/OllamaGenerateObjectOutput.schema.json +1 -0
- package/.pikku/schemas/schemas/OllamaGenerateTextInput.schema.json +1 -0
- package/.pikku/schemas/schemas/OllamaGenerateTextOutput.schema.json +1 -0
- package/.pikku/schemas/schemas/VariableSchema_ollama_base_url.schema.json +1 -0
- package/.pikku/scopes/pikku-personas-meta.gen.json +1 -0
- package/.pikku/scopes/pikku-personas.gen.ts +52 -0
- package/.pikku/scopes/pikku-roles-meta.gen.json +1 -0
- package/.pikku/scopes/pikku-roles.gen.ts +41 -0
- package/.pikku/scopes/pikku-scope-types.gen.ts +7 -0
- package/.pikku/scopes/pikku-scopes-meta.gen.json +1 -0
- package/.pikku/scopes/pikku-scopes.gen.ts +58 -0
- package/.pikku/secrets/pikku-secret-types.gen.ts +5 -0
- package/.pikku/secrets/pikku-secrets-meta.gen.json +1 -0
- package/.pikku/secrets/pikku-secrets.gen.ts +34 -0
- package/.pikku/trigger/pikku-trigger-types.gen.ts +160 -0
- package/.pikku/variables/pikku-variable-types.gen.ts +5 -0
- package/.pikku/variables/pikku-variables-meta.gen.json +10 -0
- package/.pikku/variables/pikku-variables.gen.ts +36 -0
- package/.pikku/workflow/personas.gen.json +1 -0
- package/.pikku/workflow/pikku-personas.gen.ts +38 -0
- package/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +18 -0
- package/.pikku/workflow/pikku-workflow-map.gen.d.ts +38 -0
- package/.pikku/workflow/pikku-workflow-types.gen.ts +591 -0
- package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +9 -0
- package/.pikku/workflow/pikku-workflow-wirings.gen.ts +3 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +4 -4
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.js +7 -3
- package/dist/.pikku/addon/pikku-addon-types.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.ts +11 -6
- package/dist/.pikku/addon/pikku-package.gen.js +2 -1
- package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-package.gen.ts +3 -1
- package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +2 -14
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +8 -6
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.ts +15 -7
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +112 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +1 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.js +60 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.js.map +1 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.ts +177 -0
- package/dist/.pikku/console/pikku-addon-meta.gen.json +31 -28
- 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 +133 -133
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +98 -61
- package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.ts +268 -157
- package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +64 -44
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +67 -39
- package/dist/.pikku/function/pikku-functions-meta.gen.ts +1 -1
- package/dist/.pikku/function/pikku-functions.gen.js +2 -2
- package/dist/.pikku/function/pikku-functions.gen.js.map +1 -1
- package/dist/.pikku/function/pikku-functions.gen.ts +2 -2
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +98 -0
- package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -0
- package/dist/.pikku/http/pikku-http-types.gen.js +50 -0
- package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -0
- package/dist/.pikku/http/pikku-http-types.gen.ts +119 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +131 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +38 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +1 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +183 -0
- 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 +4 -2
- package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +2 -10
- package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.ts +2 -9
- package/dist/.pikku/pikku-meta-service.gen.d.ts +8 -0
- package/dist/.pikku/pikku-meta-service.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-meta-service.gen.js +10 -0
- package/dist/.pikku/pikku-meta-service.gen.js.map +1 -0
- package/dist/.pikku/pikku-meta-service.gen.ts +10 -0
- package/dist/.pikku/pikku-services.gen.d.ts +15 -2
- package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-services.gen.js +14 -0
- package/dist/.pikku/pikku-services.gen.js.map +1 -1
- package/dist/.pikku/pikku-services.gen.ts +17 -2
- 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 +24 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +1 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.js +17 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.js.map +1 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.ts +27 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +81 -62
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +84 -65
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +207 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +2 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +7 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +6 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +6 -0
- package/dist/.pikku/scenarios/features.gen.json +1 -0
- 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 +22 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +1 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +17 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +1 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +25 -0
- package/dist/.pikku/schemas/register.gen.js +11 -11
- package/dist/.pikku/schemas/register.gen.js.map +1 -1
- package/dist/.pikku/schemas/register.gen.ts +17 -17
- 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 +16 -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 +38 -0
- package/dist/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +18 -0
- package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +9 -5
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +289 -31
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +66 -18
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +494 -61
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +3 -3
- 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 +7 -7
- 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/package.json +7 -6
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts +0 -2
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts.map +0 -1
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js +0 -7
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js.map +0 -1
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.json +0 -3
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.ts +0 -7
- package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts +0 -5
- package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts.map +0 -1
- package/dist/.pikku/agent/pikku-agent-wirings.gen.js +0 -5
- package/dist/.pikku/agent/pikku-agent-wirings.gen.js.map +0 -1
- package/dist/.pikku/agent/pikku-agent-wirings.gen.ts +0 -3
|
@@ -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.96
|
|
3
3
|
*/
|
|
4
4
|
import type { SingletonServices } from '../types/application-types.d.js'
|
|
5
5
|
import type { Services } from '../types/application-types.d.js'
|
|
@@ -8,19 +8,31 @@ import type { Services } from '../types/application-types.d.js'
|
|
|
8
8
|
export const requiredSingletonServices = {
|
|
9
9
|
'agentRunService': false,
|
|
10
10
|
'aiAgentRunner': false,
|
|
11
|
+
'aiEmbedding': false,
|
|
11
12
|
'aiRunState': false,
|
|
12
13
|
'aiStorage': false,
|
|
14
|
+
'audit': false,
|
|
15
|
+
'auditLog': false,
|
|
16
|
+
'auth': false,
|
|
13
17
|
'config': true,
|
|
14
18
|
'content': false,
|
|
19
|
+
'coverageService': false,
|
|
20
|
+
'credentialService': false,
|
|
15
21
|
'deploymentService': false,
|
|
22
|
+
'emailService': false,
|
|
23
|
+
'eventHub': false,
|
|
16
24
|
'jwt': false,
|
|
17
25
|
'logger': true,
|
|
26
|
+
'metaService': false,
|
|
18
27
|
'ollama': false,
|
|
19
28
|
'queueService': false,
|
|
20
29
|
'schedulerService': false,
|
|
21
30
|
'schema': true,
|
|
31
|
+
'scopeService': false,
|
|
22
32
|
'secrets': true,
|
|
33
|
+
'sessionStore': false,
|
|
23
34
|
'variables': true,
|
|
35
|
+
'webhookService': false,
|
|
24
36
|
'workflowRunService': false,
|
|
25
37
|
'workflowService': false,
|
|
26
38
|
} as const
|
|
@@ -30,6 +42,9 @@ export const requiredWireServices = {
|
|
|
30
42
|
} as const
|
|
31
43
|
|
|
32
44
|
// Type exports
|
|
33
|
-
export type RequiredSingletonServices = Pick<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'
|
|
45
|
+
export type RequiredSingletonServices = Required<Pick<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'>> & Partial<Omit<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'>>
|
|
34
46
|
|
|
35
47
|
export type RequiredWireServices = Partial<Services>
|
|
48
|
+
|
|
49
|
+
// Services this addon needs from the parent project
|
|
50
|
+
export const requiredParentServices = ["variables"] as const
|
|
@@ -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.96
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Main type export hub - re-exports all wiring-specific types
|
|
@@ -8,5 +8,6 @@ export * from './function/pikku-function-types.gen.js';
|
|
|
8
8
|
export * from './trigger/pikku-trigger-types.gen.js';
|
|
9
9
|
export * from './console/pikku-node-types.gen.js';
|
|
10
10
|
export * from './secrets/pikku-secret-types.gen.js';
|
|
11
|
+
export * from './scopes/pikku-scope-types.gen.js';
|
|
11
12
|
export * from './addon/pikku-addon-types.gen.js';
|
|
12
13
|
//# sourceMappingURL=pikku-types.gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-types.gen.d.ts","sourceRoot":"","sources":["../../.pikku/pikku-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAGH,cAAc,wCAAwC,CAAA;AAGtD,cAAc,sCAAsC,CAAA;AAGpD,cAAc,mCAAmC,CAAA;AAGjD,cAAc,qCAAqC,CAAA;AAGnD,cAAc,kCAAkC,CAAA"}
|
|
1
|
+
{"version":3,"file":"pikku-types.gen.d.ts","sourceRoot":"","sources":["../../.pikku/pikku-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAGH,cAAc,wCAAwC,CAAA;AAGtD,cAAc,sCAAsC,CAAA;AAGpD,cAAc,mCAAmC,CAAA;AAGjD,cAAc,qCAAqC,CAAA;AAGnD,cAAc,mCAAmC,CAAA;AAGjD,cAAc,kCAAkC,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.96
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Main type export hub - re-exports all wiring-specific types
|
|
@@ -12,6 +12,8 @@ export * from './trigger/pikku-trigger-types.gen.js';
|
|
|
12
12
|
export * from './console/pikku-node-types.gen.js';
|
|
13
13
|
// Secret definition types
|
|
14
14
|
export * from './secrets/pikku-secret-types.gen.js';
|
|
15
|
+
// Scope definition types
|
|
16
|
+
export * from './scopes/pikku-scope-types.gen.js';
|
|
15
17
|
// Addon types
|
|
16
18
|
export * from './addon/pikku-addon-types.gen.js';
|
|
17
19
|
//# sourceMappingURL=pikku-types.gen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-types.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,kDAAkD;AAClD,cAAc,wCAAwC,CAAA;AAEtD,uBAAuB;AACvB,cAAc,sCAAsC,CAAA;AAEpD,oBAAoB;AACpB,cAAc,mCAAmC,CAAA;AAEjD,0BAA0B;AAC1B,cAAc,qCAAqC,CAAA;AAEnD,cAAc;AACd,cAAc,kCAAkC,CAAA"}
|
|
1
|
+
{"version":3,"file":"pikku-types.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,kDAAkD;AAClD,cAAc,wCAAwC,CAAA;AAEtD,uBAAuB;AACvB,cAAc,sCAAsC,CAAA;AAEpD,oBAAoB;AACpB,cAAc,mCAAmC,CAAA;AAEjD,0BAA0B;AAC1B,cAAc,qCAAqC,CAAA;AAEnD,yBAAyB;AACzB,cAAc,mCAAmC,CAAA;AAEjD,cAAc;AACd,cAAc,kCAAkC,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.96
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Main type export hub - re-exports all wiring-specific types
|
|
@@ -17,5 +17,8 @@ export * from './console/pikku-node-types.gen.js'
|
|
|
17
17
|
// Secret definition types
|
|
18
18
|
export * from './secrets/pikku-secret-types.gen.js'
|
|
19
19
|
|
|
20
|
+
// Scope definition types
|
|
21
|
+
export * from './scopes/pikku-scope-types.gen.js'
|
|
22
|
+
|
|
20
23
|
// Addon types
|
|
21
24
|
export * from './addon/pikku-addon-types.gen.js'
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Queue-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { CoreQueueWorker } from '@pikku/core/queue';
|
|
8
|
+
import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
|
|
9
|
+
/**
|
|
10
|
+
* Type definition for queue workers that process background jobs.
|
|
11
|
+
*
|
|
12
|
+
* @template In - Input type for the queue job
|
|
13
|
+
* @template Out - Output type for the queue job
|
|
14
|
+
*/
|
|
15
|
+
type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out, 'session' | 'rpc'>>;
|
|
16
|
+
/**
|
|
17
|
+
* Registers a queue worker with the Pikku framework.
|
|
18
|
+
* Workers process background jobs from queues.
|
|
19
|
+
*
|
|
20
|
+
* @param queueWorker - Queue worker definition with job handler
|
|
21
|
+
*/
|
|
22
|
+
export declare const wireQueueWorker: (queueWorker: QueueWiring<any, any>) => void;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=pikku-queue-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-queue-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/queue/pikku-queue-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAE,eAAe,EAA0C,MAAM,mBAAmB,CAAA;AAC3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAElF;;;;;GAKG;AACH,KAAK,WAAW,CAAC,EAAE,EAAE,GAAG,IAAI,eAAe,CAAC,mBAAmB,CAAC,EAAE,EAAE,GAAG,EAAE,SAAS,GAAG,KAAK,CAAC,CAAC,CAAA;AAE5F;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,aAAa,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,SAEjE,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Queue-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { wireQueueWorker as wireQueueWorkerCore } from '@pikku/core/queue';
|
|
8
|
+
/**
|
|
9
|
+
* Registers a queue worker with the Pikku framework.
|
|
10
|
+
* Workers process background jobs from queues.
|
|
11
|
+
*
|
|
12
|
+
* @param queueWorker - Queue worker definition with job handler
|
|
13
|
+
*/
|
|
14
|
+
export const wireQueueWorker = (queueWorker) => {
|
|
15
|
+
wireQueueWorkerCore(queueWorker);
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=pikku-queue-types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-queue-types.gen.js","sourceRoot":"","sources":["../../../.pikku/queue/pikku-queue-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAmB,eAAe,IAAI,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAW3F;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,WAAkC,EAAE,EAAE;IACpE,mBAAmB,CAAC,WAAkB,CAAC,CAAA;AACzC,CAAC,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Queue-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { CoreQueueWorker, wireQueueWorker as wireQueueWorkerCore } from '@pikku/core/queue'
|
|
9
|
+
import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.js'
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Type definition for queue workers that process background jobs.
|
|
13
|
+
*
|
|
14
|
+
* @template In - Input type for the queue job
|
|
15
|
+
* @template Out - Output type for the queue job
|
|
16
|
+
*/
|
|
17
|
+
type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out, 'session' | 'rpc'>>
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Registers a queue worker with the Pikku framework.
|
|
21
|
+
* Workers process background jobs from queues.
|
|
22
|
+
*
|
|
23
|
+
* @param queueWorker - Queue worker definition with job handler
|
|
24
|
+
*/
|
|
25
|
+
export const wireQueueWorker = (queueWorker: QueueWiring<any, any>) => {
|
|
26
|
+
wireQueueWorkerCore(queueWorker as any)
|
|
27
|
+
}
|
|
@@ -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.96
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* This provides the structure needed for typescript to be aware of RPCs and their return types
|
|
@@ -9,10 +9,40 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
export type
|
|
12
|
+
export type OllamaEmbedInput = {
|
|
13
|
+
/** The Ollama embedding model to use (e.g. "nomic-embed-text", "mxbai-embed-large") */
|
|
14
|
+
model: string;
|
|
15
|
+
/** The text to embed */
|
|
16
|
+
value: string;
|
|
17
|
+
}
|
|
18
|
+
export type OllamaEmbedManyInput = {
|
|
19
|
+
/** The Ollama embedding model to use (e.g. "nomic-embed-text", "mxbai-embed-large") */
|
|
20
|
+
model: string;
|
|
21
|
+
/** The texts to embed */
|
|
22
|
+
values: string[];
|
|
23
|
+
}
|
|
24
|
+
export type OllamaEmbedManyOutput = {
|
|
25
|
+
/** The embedding vectors */
|
|
26
|
+
embeddings: number[][];
|
|
27
|
+
/** Token usage statistics */
|
|
28
|
+
usage: {
|
|
29
|
+
/** Number of tokens used */
|
|
30
|
+
tokens: number;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export type OllamaEmbedOutput = {
|
|
34
|
+
/** The embedding vector */
|
|
35
|
+
embedding: number[];
|
|
36
|
+
/** Token usage statistics */
|
|
37
|
+
usage: {
|
|
38
|
+
/** Number of tokens used */
|
|
39
|
+
tokens: number;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export type OllamaGenerateObjectInput = {
|
|
13
43
|
/** The Ollama model to use (e.g. "llama3.2", "phi3:mini") */
|
|
14
44
|
model: string;
|
|
15
|
-
/** The prompt to generate
|
|
45
|
+
/** The prompt to generate a structured object from */
|
|
16
46
|
prompt?: string | undefined;
|
|
17
47
|
/** A list of messages comprising the conversation so far */
|
|
18
48
|
messages?: {
|
|
@@ -23,18 +53,24 @@ export type OllamaGenerateTextInput = {
|
|
|
23
53
|
}[] | undefined;
|
|
24
54
|
/** System message to set the behavior of the model */
|
|
25
55
|
system?: string | undefined;
|
|
56
|
+
/** JSON Schema describing the expected output object */
|
|
57
|
+
schema: {
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
};
|
|
60
|
+
/** Optional name for the schema */
|
|
61
|
+
schemaName?: string | undefined;
|
|
62
|
+
/** Optional description of what the schema represents */
|
|
63
|
+
schemaDescription?: string | undefined;
|
|
64
|
+
/** Mode for object generation. Use "json" for models that do not support tools. */
|
|
65
|
+
mode?: ("auto" | "tool" | "json") | undefined;
|
|
26
66
|
/** Maximum number of tokens to generate */
|
|
27
67
|
maxTokens?: number | undefined;
|
|
28
68
|
/** Sampling temperature between 0 and 2 */
|
|
29
69
|
temperature?: number | undefined;
|
|
30
|
-
/** Nucleus sampling parameter */
|
|
31
|
-
topP?: number | undefined;
|
|
32
|
-
/** Random seed for reproducible results */
|
|
33
|
-
seed?: number | undefined;
|
|
34
70
|
}
|
|
35
|
-
export type
|
|
36
|
-
/** The generated
|
|
37
|
-
|
|
71
|
+
export type OllamaGenerateObjectOutput = {
|
|
72
|
+
/** The generated structured object */
|
|
73
|
+
object: any;
|
|
38
74
|
/** The reason the model stopped generating */
|
|
39
75
|
finishReason: string;
|
|
40
76
|
/** Token usage statistics */
|
|
@@ -47,10 +83,10 @@ export type OllamaGenerateTextOutput = {
|
|
|
47
83
|
totalTokens: number;
|
|
48
84
|
};
|
|
49
85
|
}
|
|
50
|
-
export type
|
|
86
|
+
export type OllamaGenerateTextInput = {
|
|
51
87
|
/** The Ollama model to use (e.g. "llama3.2", "phi3:mini") */
|
|
52
88
|
model: string;
|
|
53
|
-
/** The prompt to generate
|
|
89
|
+
/** The prompt to generate text from */
|
|
54
90
|
prompt?: string | undefined;
|
|
55
91
|
/** A list of messages comprising the conversation so far */
|
|
56
92
|
messages?: {
|
|
@@ -61,24 +97,18 @@ export type OllamaGenerateObjectInput = {
|
|
|
61
97
|
}[] | undefined;
|
|
62
98
|
/** System message to set the behavior of the model */
|
|
63
99
|
system?: string | undefined;
|
|
64
|
-
/** JSON Schema describing the expected output object */
|
|
65
|
-
schema: {
|
|
66
|
-
[key: string]: any;
|
|
67
|
-
};
|
|
68
|
-
/** Optional name for the schema */
|
|
69
|
-
schemaName?: string | undefined;
|
|
70
|
-
/** Optional description of what the schema represents */
|
|
71
|
-
schemaDescription?: string | undefined;
|
|
72
|
-
/** Mode for object generation. Use "json" for models that do not support tools. */
|
|
73
|
-
mode?: ("auto" | "tool" | "json") | undefined;
|
|
74
100
|
/** Maximum number of tokens to generate */
|
|
75
101
|
maxTokens?: number | undefined;
|
|
76
102
|
/** Sampling temperature between 0 and 2 */
|
|
77
103
|
temperature?: number | undefined;
|
|
104
|
+
/** Nucleus sampling parameter */
|
|
105
|
+
topP?: number | undefined;
|
|
106
|
+
/** Random seed for reproducible results */
|
|
107
|
+
seed?: number | undefined;
|
|
78
108
|
}
|
|
79
|
-
export type
|
|
80
|
-
/** The generated
|
|
81
|
-
|
|
109
|
+
export type OllamaGenerateTextOutput = {
|
|
110
|
+
/** The generated text */
|
|
111
|
+
text: string;
|
|
82
112
|
/** The reason the model stopped generating */
|
|
83
113
|
finishReason: string;
|
|
84
114
|
/** Token usage statistics */
|
|
@@ -91,36 +121,6 @@ export type OllamaGenerateObjectOutput = {
|
|
|
91
121
|
totalTokens: number;
|
|
92
122
|
};
|
|
93
123
|
}
|
|
94
|
-
export type OllamaEmbedInput = {
|
|
95
|
-
/** The Ollama embedding model to use (e.g. "nomic-embed-text", "mxbai-embed-large") */
|
|
96
|
-
model: string;
|
|
97
|
-
/** The text to embed */
|
|
98
|
-
value: string;
|
|
99
|
-
}
|
|
100
|
-
export type OllamaEmbedOutput = {
|
|
101
|
-
/** The embedding vector */
|
|
102
|
-
embedding: number[];
|
|
103
|
-
/** Token usage statistics */
|
|
104
|
-
usage: {
|
|
105
|
-
/** Number of tokens used */
|
|
106
|
-
tokens: number;
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
export type OllamaEmbedManyInput = {
|
|
110
|
-
/** The Ollama embedding model to use (e.g. "nomic-embed-text", "mxbai-embed-large") */
|
|
111
|
-
model: string;
|
|
112
|
-
/** The texts to embed */
|
|
113
|
-
values: string[];
|
|
114
|
-
}
|
|
115
|
-
export type OllamaEmbedManyOutput = {
|
|
116
|
-
/** The embedding vectors */
|
|
117
|
-
embeddings: number[][];
|
|
118
|
-
/** Token usage statistics */
|
|
119
|
-
usage: {
|
|
120
|
-
/** Number of tokens used */
|
|
121
|
-
tokens: number;
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
124
|
export type VariableSchema_ollama_base_url = string
|
|
125
125
|
|
|
126
126
|
interface RPCHandler<I, O> {
|
|
@@ -136,18 +136,27 @@ export type RPCMap = {
|
|
|
136
136
|
// No addon packages, use RPCMap directly
|
|
137
137
|
export type FlattenedRPCMap = RPCMap
|
|
138
138
|
|
|
139
|
+
type IsAny<T> = 0 extends (1 & T) ? true : false
|
|
140
|
+
type IsVoidishInput<T> = IsAny<T> extends true
|
|
141
|
+
? false
|
|
142
|
+
: [T] extends [void | null | undefined]
|
|
143
|
+
? true
|
|
144
|
+
: false
|
|
145
|
+
|
|
139
146
|
|
|
140
147
|
export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
|
|
141
|
-
|
|
142
|
-
|
|
148
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
149
|
+
? [name: Name]
|
|
150
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
143
151
|
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
144
152
|
|
|
145
153
|
export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
|
|
146
|
-
|
|
147
|
-
|
|
154
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
155
|
+
? [name: Name]
|
|
156
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
148
157
|
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
149
158
|
|
|
150
|
-
import type {
|
|
159
|
+
import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
|
|
151
160
|
|
|
152
161
|
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
|
|
153
162
|
|
|
@@ -163,12 +172,22 @@ interface AIAgentInput {
|
|
|
163
172
|
resourceId: string
|
|
164
173
|
}
|
|
165
174
|
|
|
166
|
-
export type TypedStartWorkflow = <Name extends keyof
|
|
175
|
+
export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
167
176
|
name: Name,
|
|
168
|
-
input:
|
|
177
|
+
input: FlattenedWorkflowMap[Name]['input'],
|
|
169
178
|
options?: { startNode?: string }
|
|
170
179
|
) => Promise<{ runId: string }>
|
|
171
180
|
|
|
181
|
+
export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
182
|
+
name: Name,
|
|
183
|
+
input: FlattenedWorkflowMap[Name]['input']
|
|
184
|
+
) => Promise<FlattenedWorkflowMap[Name]['output']>
|
|
185
|
+
|
|
186
|
+
export type TypedWorkflowStatus = (
|
|
187
|
+
workflowName: string,
|
|
188
|
+
runId: string
|
|
189
|
+
) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
|
|
190
|
+
|
|
172
191
|
type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
|
|
173
192
|
? (name: string, input: AIAgentInput) => Promise<any>
|
|
174
193
|
: <Name extends keyof FlattenedAgentMap>(
|
|
@@ -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.96
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* This provides the structure needed for typescript to be aware of RPCs and their return types
|
|
@@ -9,10 +9,40 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
export type
|
|
12
|
+
export type OllamaEmbedInput = {
|
|
13
|
+
/** The Ollama embedding model to use (e.g. "nomic-embed-text", "mxbai-embed-large") */
|
|
14
|
+
model: string;
|
|
15
|
+
/** The text to embed */
|
|
16
|
+
value: string;
|
|
17
|
+
}
|
|
18
|
+
export type OllamaEmbedManyInput = {
|
|
19
|
+
/** The Ollama embedding model to use (e.g. "nomic-embed-text", "mxbai-embed-large") */
|
|
20
|
+
model: string;
|
|
21
|
+
/** The texts to embed */
|
|
22
|
+
values: string[];
|
|
23
|
+
}
|
|
24
|
+
export type OllamaEmbedManyOutput = {
|
|
25
|
+
/** The embedding vectors */
|
|
26
|
+
embeddings: number[][];
|
|
27
|
+
/** Token usage statistics */
|
|
28
|
+
usage: {
|
|
29
|
+
/** Number of tokens used */
|
|
30
|
+
tokens: number;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export type OllamaEmbedOutput = {
|
|
34
|
+
/** The embedding vector */
|
|
35
|
+
embedding: number[];
|
|
36
|
+
/** Token usage statistics */
|
|
37
|
+
usage: {
|
|
38
|
+
/** Number of tokens used */
|
|
39
|
+
tokens: number;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export type OllamaGenerateObjectInput = {
|
|
13
43
|
/** The Ollama model to use (e.g. "llama3.2", "phi3:mini") */
|
|
14
44
|
model: string;
|
|
15
|
-
/** The prompt to generate
|
|
45
|
+
/** The prompt to generate a structured object from */
|
|
16
46
|
prompt?: string | undefined;
|
|
17
47
|
/** A list of messages comprising the conversation so far */
|
|
18
48
|
messages?: {
|
|
@@ -23,18 +53,24 @@ export type OllamaGenerateTextInput = {
|
|
|
23
53
|
}[] | undefined;
|
|
24
54
|
/** System message to set the behavior of the model */
|
|
25
55
|
system?: string | undefined;
|
|
56
|
+
/** JSON Schema describing the expected output object */
|
|
57
|
+
schema: {
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
};
|
|
60
|
+
/** Optional name for the schema */
|
|
61
|
+
schemaName?: string | undefined;
|
|
62
|
+
/** Optional description of what the schema represents */
|
|
63
|
+
schemaDescription?: string | undefined;
|
|
64
|
+
/** Mode for object generation. Use "json" for models that do not support tools. */
|
|
65
|
+
mode?: ("auto" | "tool" | "json") | undefined;
|
|
26
66
|
/** Maximum number of tokens to generate */
|
|
27
67
|
maxTokens?: number | undefined;
|
|
28
68
|
/** Sampling temperature between 0 and 2 */
|
|
29
69
|
temperature?: number | undefined;
|
|
30
|
-
/** Nucleus sampling parameter */
|
|
31
|
-
topP?: number | undefined;
|
|
32
|
-
/** Random seed for reproducible results */
|
|
33
|
-
seed?: number | undefined;
|
|
34
70
|
}
|
|
35
|
-
export type
|
|
36
|
-
/** The generated
|
|
37
|
-
|
|
71
|
+
export type OllamaGenerateObjectOutput = {
|
|
72
|
+
/** The generated structured object */
|
|
73
|
+
object: any;
|
|
38
74
|
/** The reason the model stopped generating */
|
|
39
75
|
finishReason: string;
|
|
40
76
|
/** Token usage statistics */
|
|
@@ -47,10 +83,10 @@ export type OllamaGenerateTextOutput = {
|
|
|
47
83
|
totalTokens: number;
|
|
48
84
|
};
|
|
49
85
|
}
|
|
50
|
-
export type
|
|
86
|
+
export type OllamaGenerateTextInput = {
|
|
51
87
|
/** The Ollama model to use (e.g. "llama3.2", "phi3:mini") */
|
|
52
88
|
model: string;
|
|
53
|
-
/** The prompt to generate
|
|
89
|
+
/** The prompt to generate text from */
|
|
54
90
|
prompt?: string | undefined;
|
|
55
91
|
/** A list of messages comprising the conversation so far */
|
|
56
92
|
messages?: {
|
|
@@ -61,24 +97,18 @@ export type OllamaGenerateObjectInput = {
|
|
|
61
97
|
}[] | undefined;
|
|
62
98
|
/** System message to set the behavior of the model */
|
|
63
99
|
system?: string | undefined;
|
|
64
|
-
/** JSON Schema describing the expected output object */
|
|
65
|
-
schema: {
|
|
66
|
-
[key: string]: any;
|
|
67
|
-
};
|
|
68
|
-
/** Optional name for the schema */
|
|
69
|
-
schemaName?: string | undefined;
|
|
70
|
-
/** Optional description of what the schema represents */
|
|
71
|
-
schemaDescription?: string | undefined;
|
|
72
|
-
/** Mode for object generation. Use "json" for models that do not support tools. */
|
|
73
|
-
mode?: ("auto" | "tool" | "json") | undefined;
|
|
74
100
|
/** Maximum number of tokens to generate */
|
|
75
101
|
maxTokens?: number | undefined;
|
|
76
102
|
/** Sampling temperature between 0 and 2 */
|
|
77
103
|
temperature?: number | undefined;
|
|
104
|
+
/** Nucleus sampling parameter */
|
|
105
|
+
topP?: number | undefined;
|
|
106
|
+
/** Random seed for reproducible results */
|
|
107
|
+
seed?: number | undefined;
|
|
78
108
|
}
|
|
79
|
-
export type
|
|
80
|
-
/** The generated
|
|
81
|
-
|
|
109
|
+
export type OllamaGenerateTextOutput = {
|
|
110
|
+
/** The generated text */
|
|
111
|
+
text: string;
|
|
82
112
|
/** The reason the model stopped generating */
|
|
83
113
|
finishReason: string;
|
|
84
114
|
/** Token usage statistics */
|
|
@@ -91,36 +121,6 @@ export type OllamaGenerateObjectOutput = {
|
|
|
91
121
|
totalTokens: number;
|
|
92
122
|
};
|
|
93
123
|
}
|
|
94
|
-
export type OllamaEmbedInput = {
|
|
95
|
-
/** The Ollama embedding model to use (e.g. "nomic-embed-text", "mxbai-embed-large") */
|
|
96
|
-
model: string;
|
|
97
|
-
/** The text to embed */
|
|
98
|
-
value: string;
|
|
99
|
-
}
|
|
100
|
-
export type OllamaEmbedOutput = {
|
|
101
|
-
/** The embedding vector */
|
|
102
|
-
embedding: number[];
|
|
103
|
-
/** Token usage statistics */
|
|
104
|
-
usage: {
|
|
105
|
-
/** Number of tokens used */
|
|
106
|
-
tokens: number;
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
export type OllamaEmbedManyInput = {
|
|
110
|
-
/** The Ollama embedding model to use (e.g. "nomic-embed-text", "mxbai-embed-large") */
|
|
111
|
-
model: string;
|
|
112
|
-
/** The texts to embed */
|
|
113
|
-
values: string[];
|
|
114
|
-
}
|
|
115
|
-
export type OllamaEmbedManyOutput = {
|
|
116
|
-
/** The embedding vectors */
|
|
117
|
-
embeddings: number[][];
|
|
118
|
-
/** Token usage statistics */
|
|
119
|
-
usage: {
|
|
120
|
-
/** Number of tokens used */
|
|
121
|
-
tokens: number;
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
124
|
export type VariableSchema_ollama_base_url = string
|
|
125
125
|
|
|
126
126
|
interface RPCHandler<I, O> {
|
|
@@ -129,10 +129,10 @@ interface RPCHandler<I, O> {
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
export type RPCMap = {
|
|
132
|
-
readonly 'ollamaGenerateText': RPCHandler<OllamaGenerateTextInput, OllamaGenerateTextOutput>,
|
|
133
|
-
readonly 'ollamaGenerateObject': RPCHandler<OllamaGenerateObjectInput, OllamaGenerateObjectOutput>,
|
|
134
|
-
readonly 'ollamaEmbed': RPCHandler<OllamaEmbedInput, OllamaEmbedOutput>,
|
|
135
132
|
readonly 'ollamaEmbedMany': RPCHandler<OllamaEmbedManyInput, OllamaEmbedManyOutput>,
|
|
133
|
+
readonly 'ollamaEmbed': RPCHandler<OllamaEmbedInput, OllamaEmbedOutput>,
|
|
134
|
+
readonly 'ollamaGenerateObject': RPCHandler<OllamaGenerateObjectInput, OllamaGenerateObjectOutput>,
|
|
135
|
+
readonly 'ollamaGenerateText': RPCHandler<OllamaGenerateTextInput, OllamaGenerateTextOutput>,
|
|
136
136
|
};
|
|
137
137
|
|
|
138
138
|
|
|
@@ -140,18 +140,27 @@ export type RPCMap = {
|
|
|
140
140
|
// No addon packages, use RPCMap directly
|
|
141
141
|
export type FlattenedRPCMap = RPCMap
|
|
142
142
|
|
|
143
|
+
type IsAny<T> = 0 extends (1 & T) ? true : false
|
|
144
|
+
type IsVoidishInput<T> = IsAny<T> extends true
|
|
145
|
+
? false
|
|
146
|
+
: [T] extends [void | null | undefined]
|
|
147
|
+
? true
|
|
148
|
+
: false
|
|
149
|
+
|
|
143
150
|
|
|
144
151
|
export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
|
|
145
|
-
|
|
146
|
-
|
|
152
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
153
|
+
? [name: Name]
|
|
154
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
147
155
|
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
148
156
|
|
|
149
157
|
export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
|
|
150
|
-
|
|
151
|
-
|
|
158
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
159
|
+
? [name: Name]
|
|
160
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
152
161
|
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
153
162
|
|
|
154
|
-
import type {
|
|
163
|
+
import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
|
|
155
164
|
|
|
156
165
|
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
|
|
157
166
|
|
|
@@ -167,12 +176,22 @@ interface AIAgentInput {
|
|
|
167
176
|
resourceId: string
|
|
168
177
|
}
|
|
169
178
|
|
|
170
|
-
export type TypedStartWorkflow = <Name extends keyof
|
|
179
|
+
export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
171
180
|
name: Name,
|
|
172
|
-
input:
|
|
181
|
+
input: FlattenedWorkflowMap[Name]['input'],
|
|
173
182
|
options?: { startNode?: string }
|
|
174
183
|
) => Promise<{ runId: string }>
|
|
175
184
|
|
|
185
|
+
export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
186
|
+
name: Name,
|
|
187
|
+
input: FlattenedWorkflowMap[Name]['input']
|
|
188
|
+
) => Promise<FlattenedWorkflowMap[Name]['output']>
|
|
189
|
+
|
|
190
|
+
export type TypedWorkflowStatus = (
|
|
191
|
+
workflowName: string,
|
|
192
|
+
runId: string
|
|
193
|
+
) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
|
|
194
|
+
|
|
176
195
|
type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
|
|
177
196
|
? (name: string, input: AIAgentInput) => Promise<any>
|
|
178
197
|
: <Name extends keyof FlattenedAgentMap>(
|