@pikku/addon-ollama 0.1.2 → 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 +1 -1
- package/.pikku/addon/pikku-package.gen.ts +1 -1
- package/.pikku/agent/pikku-agent-map.gen.d.ts +1 -1
- package/.pikku/agent/pikku-agent-types.gen.ts +4 -2
- package/.pikku/channel/pikku-channel-types.gen.ts +1 -1
- package/.pikku/console/pikku-addon-meta.gen.json +4 -1
- package/.pikku/console/pikku-node-types.gen.ts +1 -1
- package/.pikku/function/pikku-function-types.gen.ts +117 -74
- package/.pikku/function/pikku-functions-meta-verbose.gen.json +8 -0
- package/.pikku/function/pikku-functions-meta.gen.json +28 -4
- package/.pikku/function/pikku-functions-meta.gen.ts +1 -1
- package/.pikku/function/pikku-functions.gen.ts +1 -1
- package/.pikku/http/pikku-http-types.gen.ts +3 -31
- package/.pikku/mcp/pikku-mcp-types.gen.ts +1 -1
- package/.pikku/pikku-bootstrap-scenarios.gen.ts +9 -0
- package/.pikku/pikku-bootstrap.gen.ts +1 -1
- package/.pikku/pikku-meta-service.gen.ts +1 -1
- package/.pikku/pikku-services.gen.ts +6 -1
- package/.pikku/pikku-types.gen.ts +4 -1
- package/.pikku/queue/pikku-queue-types.gen.ts +1 -1
- package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +1 -1
- package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +1 -1
- package/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +207 -0
- package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +1 -1
- 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 +1 -1
- package/.pikku/schemas/register.gen.ts +1 -1
- 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 +2 -2
- package/.pikku/secrets/pikku-secrets.gen.ts +14 -1
- package/.pikku/trigger/pikku-trigger-types.gen.ts +1 -1
- package/.pikku/variables/pikku-variable-types.gen.ts +2 -2
- package/.pikku/variables/pikku-variables.gen.ts +17 -4
- 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 +1 -1
- package/.pikku/workflow/pikku-workflow-types.gen.ts +429 -5
- package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +3 -3
- package/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.js +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.ts +1 -1
- package/dist/.pikku/addon/pikku-package.gen.js +1 -1
- package/dist/.pikku/addon/pikku-package.gen.ts +1 -1
- package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +4 -2
- 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 +4 -2
- 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 +77 -61
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +29 -12
- package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.ts +117 -74
- package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +8 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +28 -4
- package/dist/.pikku/function/pikku-functions-meta.gen.ts +1 -1
- 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 +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.ts +1 -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 +6 -1
- package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-services.gen.js +5 -0
- package/dist/.pikku/pikku-services.gen.js.map +1 -1
- package/dist/.pikku/pikku-services.gen.ts +6 -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 +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +207 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +1 -1
- 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 +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 +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 +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +254 -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 +429 -5
- 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 +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/package.json +4 -4
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
import './pikku-bootstrap.gen.js'
|
|
5
|
+
import './scenarios/schemas/register.gen.js'
|
|
6
|
+
import './scenarios/pikku-scenario-functions-meta.gen.js'
|
|
7
|
+
import './scenarios/pikku-scenario-functions.gen.js'
|
|
8
|
+
import './scenarios/pikku-scenario-wirings-meta.gen.js'
|
|
9
|
+
import './scenarios/pikku-scenario-wirings.gen.js'
|
|
@@ -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,12 +8,15 @@ 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,
|
|
13
14
|
'audit': false,
|
|
14
15
|
'auditLog': false,
|
|
16
|
+
'auth': false,
|
|
15
17
|
'config': true,
|
|
16
18
|
'content': false,
|
|
19
|
+
'coverageService': false,
|
|
17
20
|
'credentialService': false,
|
|
18
21
|
'deploymentService': false,
|
|
19
22
|
'emailService': false,
|
|
@@ -25,9 +28,11 @@ export const requiredSingletonServices = {
|
|
|
25
28
|
'queueService': false,
|
|
26
29
|
'schedulerService': false,
|
|
27
30
|
'schema': true,
|
|
31
|
+
'scopeService': false,
|
|
28
32
|
'secrets': true,
|
|
29
33
|
'sessionStore': false,
|
|
30
34
|
'variables': true,
|
|
35
|
+
'webhookService': false,
|
|
31
36
|
'workflowRunService': false,
|
|
32
37
|
'workflowService': false,
|
|
33
38
|
} 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
|
|
@@ -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,207 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This provides the structure needed for typescript to be aware of RPCs and their return types
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
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 = {
|
|
43
|
+
/** The Ollama model to use (e.g. "llama3.2", "phi3:mini") */
|
|
44
|
+
model: string;
|
|
45
|
+
/** The prompt to generate a structured object from */
|
|
46
|
+
prompt?: string | undefined;
|
|
47
|
+
/** A list of messages comprising the conversation so far */
|
|
48
|
+
messages?: {
|
|
49
|
+
/** The role of the message author */
|
|
50
|
+
role: "system" | "user" | "assistant";
|
|
51
|
+
/** The contents of the message */
|
|
52
|
+
content: string;
|
|
53
|
+
}[] | undefined;
|
|
54
|
+
/** System message to set the behavior of the model */
|
|
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;
|
|
66
|
+
/** Maximum number of tokens to generate */
|
|
67
|
+
maxTokens?: number | undefined;
|
|
68
|
+
/** Sampling temperature between 0 and 2 */
|
|
69
|
+
temperature?: number | undefined;
|
|
70
|
+
}
|
|
71
|
+
export type OllamaGenerateObjectOutput = {
|
|
72
|
+
/** The generated structured object */
|
|
73
|
+
object: any;
|
|
74
|
+
/** The reason the model stopped generating */
|
|
75
|
+
finishReason: string;
|
|
76
|
+
/** Token usage statistics */
|
|
77
|
+
usage: {
|
|
78
|
+
/** Number of tokens in the prompt */
|
|
79
|
+
promptTokens: number;
|
|
80
|
+
/** Number of tokens in the completion */
|
|
81
|
+
completionTokens: number;
|
|
82
|
+
/** Total number of tokens used */
|
|
83
|
+
totalTokens: number;
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
export type OllamaGenerateTextInput = {
|
|
87
|
+
/** The Ollama model to use (e.g. "llama3.2", "phi3:mini") */
|
|
88
|
+
model: string;
|
|
89
|
+
/** The prompt to generate text from */
|
|
90
|
+
prompt?: string | undefined;
|
|
91
|
+
/** A list of messages comprising the conversation so far */
|
|
92
|
+
messages?: {
|
|
93
|
+
/** The role of the message author */
|
|
94
|
+
role: "system" | "user" | "assistant";
|
|
95
|
+
/** The contents of the message */
|
|
96
|
+
content: string;
|
|
97
|
+
}[] | undefined;
|
|
98
|
+
/** System message to set the behavior of the model */
|
|
99
|
+
system?: string | undefined;
|
|
100
|
+
/** Maximum number of tokens to generate */
|
|
101
|
+
maxTokens?: number | undefined;
|
|
102
|
+
/** Sampling temperature between 0 and 2 */
|
|
103
|
+
temperature?: number | undefined;
|
|
104
|
+
/** Nucleus sampling parameter */
|
|
105
|
+
topP?: number | undefined;
|
|
106
|
+
/** Random seed for reproducible results */
|
|
107
|
+
seed?: number | undefined;
|
|
108
|
+
}
|
|
109
|
+
export type OllamaGenerateTextOutput = {
|
|
110
|
+
/** The generated text */
|
|
111
|
+
text: string;
|
|
112
|
+
/** The reason the model stopped generating */
|
|
113
|
+
finishReason: string;
|
|
114
|
+
/** Token usage statistics */
|
|
115
|
+
usage: {
|
|
116
|
+
/** Number of tokens in the prompt */
|
|
117
|
+
promptTokens: number;
|
|
118
|
+
/** Number of tokens in the completion */
|
|
119
|
+
completionTokens: number;
|
|
120
|
+
/** Total number of tokens used */
|
|
121
|
+
totalTokens: number;
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
export type VariableSchema_ollama_base_url = string
|
|
125
|
+
|
|
126
|
+
interface RPCHandler<I, O> {
|
|
127
|
+
input: I;
|
|
128
|
+
output: O;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export type RPCMap = {
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
// No addon packages, use RPCMap directly
|
|
137
|
+
export type FlattenedRPCMap = RPCMap
|
|
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
|
+
|
|
146
|
+
|
|
147
|
+
export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
|
|
148
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
149
|
+
? [name: Name]
|
|
150
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
151
|
+
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
152
|
+
|
|
153
|
+
export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
|
|
154
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
155
|
+
? [name: Name]
|
|
156
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
157
|
+
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
158
|
+
|
|
159
|
+
import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
|
|
160
|
+
|
|
161
|
+
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
type FlattenedAgentMap = AgentMap
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
import type { PikkuRPC } from '@pikku/core/rpc'
|
|
168
|
+
|
|
169
|
+
interface AIAgentInput {
|
|
170
|
+
message: string
|
|
171
|
+
threadId: string
|
|
172
|
+
resourceId: string
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
176
|
+
name: Name,
|
|
177
|
+
input: FlattenedWorkflowMap[Name]['input'],
|
|
178
|
+
options?: { startNode?: string }
|
|
179
|
+
) => Promise<{ runId: string }>
|
|
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
|
+
|
|
191
|
+
type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
|
|
192
|
+
? (name: string, input: AIAgentInput) => Promise<any>
|
|
193
|
+
: <Name extends keyof FlattenedAgentMap>(
|
|
194
|
+
name: Name,
|
|
195
|
+
input: AIAgentInput
|
|
196
|
+
) => Promise<{ runId: string; result: FlattenedAgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } }>
|
|
197
|
+
|
|
198
|
+
type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
|
|
199
|
+
? (name: string, input: AIAgentInput, options?: { requiresToolApproval?: 'all' | 'explicit' | false }) => Promise<void>
|
|
200
|
+
: <Name extends keyof FlattenedAgentMap>(
|
|
201
|
+
name: Name,
|
|
202
|
+
input: AIAgentInput,
|
|
203
|
+
options?: { requiresToolApproval?: 'all' | 'explicit' | false }
|
|
204
|
+
) => Promise<void>
|
|
205
|
+
|
|
206
|
+
export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCRemote, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
|
|
207
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
import { pikkuState } from '@pikku/core/internal'
|
|
5
|
+
import type { FunctionsMeta } from '@pikku/core'
|
|
6
|
+
import '../function/pikku-functions-meta.gen.js'
|
|
7
|
+
import metaData from './pikku-scenario-functions-meta.gen.json' with { type: 'json' }
|
|
8
|
+
|
|
9
|
+
pikkuState('@pikku/addon-ollama', 'function', 'meta', {
|
|
10
|
+
...pikkuState('@pikku/addon-ollama', 'function', 'meta'),
|
|
11
|
+
...(metaData as FunctionsMeta),
|
|
12
|
+
})
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
import { pikkuState } from '@pikku/core/internal'
|
|
5
|
+
import type { WorkflowsRuntimeMeta } from '@pikku/core/workflow/types'
|
|
6
|
+
import '../workflow/pikku-workflow-wirings-meta.gen.js'
|
|
7
|
+
|
|
8
|
+
const scenariosMeta = {
|
|
9
|
+
|
|
10
|
+
} as WorkflowsRuntimeMeta
|
|
11
|
+
|
|
12
|
+
pikkuState('@pikku/addon-ollama', 'workflows', 'meta', {
|
|
13
|
+
...pikkuState('@pikku/addon-ollama', 'workflows', 'meta'),
|
|
14
|
+
...scenariosMeta,
|
|
15
|
+
})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
*/
|
|
7
|
+
import { definePersonas as definePersonasCore } from '@pikku/core/persona'
|
|
8
|
+
import type { CorePersona, PersonaMeta, PersonasMeta } from '@pikku/core/persona'
|
|
9
|
+
import type { SystemRoleName } from './pikku-roles.gen.js'
|
|
10
|
+
import definitions from './pikku-personas-meta.gen.json' with { type: 'json' }
|
|
11
|
+
|
|
12
|
+
/** Every declared persona. */
|
|
13
|
+
export type PersonaId = never
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The personas a virtual user can actually be.
|
|
17
|
+
*
|
|
18
|
+
* Excludes anyone whose only login is a provider account — driving a consent
|
|
19
|
+
* screen needs a human — and anyone declared `runnable: false`, who exists to
|
|
20
|
+
* be acted upon rather than to act.
|
|
21
|
+
*/
|
|
22
|
+
export type RunnablePersonaId = never
|
|
23
|
+
|
|
24
|
+
/** Every environment configured in pikku.config.json. */
|
|
25
|
+
export type EnvironmentName = never
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* A persona whose roles are checked against `defineSystemRole` and whose
|
|
29
|
+
* environments are checked against the config.
|
|
30
|
+
*
|
|
31
|
+
* Omitting `environments` means every environment except the ones flagged
|
|
32
|
+
* `production: true`. Naming a production one additionally requires
|
|
33
|
+
* `disposition: 'accountable'`, which the type cannot express and `pikku`
|
|
34
|
+
* refuses at build time.
|
|
35
|
+
*/
|
|
36
|
+
export type TypedPersona = Omit<CorePersona, 'roles' | 'environments'> & {
|
|
37
|
+
roles?: SystemRoleName[]
|
|
38
|
+
environments?: EnvironmentName[]
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Declare the people who use this application.
|
|
43
|
+
*
|
|
44
|
+
* A persona while running is a virtual user; there is no second declaration.
|
|
45
|
+
*/
|
|
46
|
+
export const definePersonas = (personas: Record<string, TypedPersona>): void =>
|
|
47
|
+
definePersonasCore(personas)
|
|
48
|
+
|
|
49
|
+
/** Declared personas, keyed by id. Read by the console and `pikku persona`. */
|
|
50
|
+
export const PERSONAS: PersonasMeta = definitions as unknown as PersonasMeta
|
|
51
|
+
|
|
52
|
+
export const PERSONA_LIST: PersonaMeta[] = Object.values(PERSONAS)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
*/
|
|
7
|
+
import type { SystemRole, SystemRoleDefinitionsMeta } from '@pikku/core/role'
|
|
8
|
+
import { flattenSystemRoleDefinitions } from '@pikku/core/role'
|
|
9
|
+
import definitions from './pikku-roles-meta.gen.json' with { type: 'json' }
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Every role that ships with this application.
|
|
13
|
+
*
|
|
14
|
+
* Roles an admin composes in the console are not here and cannot be: they do
|
|
15
|
+
* not exist at build time, and can be deleted after it.
|
|
16
|
+
*/
|
|
17
|
+
export type SystemRoleName = never
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The declared role set, for a ScopeService to sync into its store.
|
|
21
|
+
*
|
|
22
|
+
* Derived from the metadata sidecar rather than inlined, so the import above
|
|
23
|
+
* forces tsc to emit the .json alongside this file — an addon publishes only
|
|
24
|
+
* its compiled output, and a host reads that .json to merge the addon's roles
|
|
25
|
+
* into its own union.
|
|
26
|
+
*
|
|
27
|
+
* Additive on removal: a deleted declaration leaves an inert row rather than
|
|
28
|
+
* revoking everyone's grant on deploy. Use `pikku roles prune` to remove them.
|
|
29
|
+
*/
|
|
30
|
+
export const SYSTEM_ROLES: SystemRole[] = flattenSystemRoleDefinitions(
|
|
31
|
+
Object.values(definitions as SystemRoleDefinitionsMeta)
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
/** Declared roles, keyed by name. Rendered by the console when granting. */
|
|
35
|
+
export const SYSTEM_ROLES_META: Record<string, SystemRole> = Object.fromEntries(
|
|
36
|
+
SYSTEM_ROLES.map((role) => [role.name, role])
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
/** Whether a role name is declared in code, and therefore not editable. */
|
|
40
|
+
export const isSystemRole = (name: string): boolean =>
|
|
41
|
+
Object.prototype.hasOwnProperty.call(SYSTEM_ROLES_META, name)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
export { defineScope } from '@pikku/core/scope'
|
|
5
|
+
export type { CoreScopes, CoreScopeNode, FlatScope, ScopeDefinitionMeta, ScopeDefinitionsMeta } from '@pikku/core/scope'
|
|
6
|
+
export { defineSystemRole } from '@pikku/core/role'
|
|
7
|
+
export type { CoreSystemRole, CoreSystemRoles, SystemRole, SystemRoleDefinitionMeta, SystemRoleDefinitionsMeta } from '@pikku/core/role'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
*/
|
|
7
|
+
import type { FlatScope, ScopeDefinitionsMeta } from '@pikku/core/scope'
|
|
8
|
+
import { flattenScopeDefinitions } from '@pikku/core/scope'
|
|
9
|
+
import definitions from './pikku-scopes-meta.gen.json' with { type: 'json' }
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Every scope a function can require.
|
|
13
|
+
*
|
|
14
|
+
* A `:*` entry requires the scope and all of its descendants. Held grants are
|
|
15
|
+
* matched against this by `verifyScopes` — `admin:*` on a session satisfies
|
|
16
|
+
* any `admin:...` requirement.
|
|
17
|
+
*/
|
|
18
|
+
export type ScopeId = never
|
|
19
|
+
|
|
20
|
+
export interface ScopeMeta {
|
|
21
|
+
id: ScopeId
|
|
22
|
+
displayName?: string
|
|
23
|
+
description?: string
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The declared scope set, for a ScopeService to sync into its store.
|
|
28
|
+
*
|
|
29
|
+
* Derived from the metadata sidecar rather than inlined, so that the import
|
|
30
|
+
* above forces tsc to emit the .json alongside this file. An addon publishes
|
|
31
|
+
* only its compiled output, and a host reads that .json to merge the addon's
|
|
32
|
+
* scopes into its own `ScopeId` union and declared set — an uncopied sidecar
|
|
33
|
+
* would leave the addon's scopes ungrantable.
|
|
34
|
+
*
|
|
35
|
+
* Additive: removing a declaration leaves an inert row rather than revoking a
|
|
36
|
+
* grant mid-deploy. Use `pikku scopes prune` to remove them deliberately.
|
|
37
|
+
*/
|
|
38
|
+
export const SCOPES: FlatScope[] = flattenScopeDefinitions(
|
|
39
|
+
Object.values(definitions as ScopeDefinitionsMeta)
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
const DISPLAY_NAMES: Record<string, string> = {
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** Declared scopes, keyed by id. Rendered by the console when granting. */
|
|
47
|
+
export const SCOPES_META: Record<string, ScopeMeta> = Object.fromEntries(
|
|
48
|
+
SCOPES.map((scope) => [
|
|
49
|
+
scope.id,
|
|
50
|
+
{
|
|
51
|
+
id: scope.id as ScopeId,
|
|
52
|
+
...(DISPLAY_NAMES[scope.id]
|
|
53
|
+
? { displayName: DISPLAY_NAMES[scope.id] }
|
|
54
|
+
: {}),
|
|
55
|
+
...(scope.description ? { description: scope.description } : {}),
|
|
56
|
+
},
|
|
57
|
+
])
|
|
58
|
+
)
|
|
@@ -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
|
-
export {
|
|
4
|
+
export { defineSecret } from '@pikku/core/secret'
|
|
5
5
|
export type { CoreSecret, SecretDefinitionMeta, SecretDefinitionsMeta } from '@pikku/core/secret'
|
|
@@ -1,8 +1,21 @@
|
|
|
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 { TypedSecretService as CoreTypedSecretService, type CredentialMeta } from '@pikku/core/services'
|
|
5
5
|
import type { SecretService } from '@pikku/core/services'
|
|
6
|
+
import type { SecretDefinitionsMeta } from '@pikku/core/secret'
|
|
7
|
+
import secretsMeta from './pikku-secrets-meta.gen.json' with { type: 'json' }
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Every secret declared in this package.
|
|
11
|
+
*
|
|
12
|
+
* Read from the metadata sidecar rather than inlined, so that the import above
|
|
13
|
+
* forces tsc to emit the .json alongside this file. An addon publishes only its
|
|
14
|
+
* compiled output, and a host reads that .json to discover the addon's declared
|
|
15
|
+
* secrets — an uncopied sidecar leaves them invisible to the host.
|
|
16
|
+
*/
|
|
17
|
+
export const SECRETS_META: SecretDefinitionsMeta =
|
|
18
|
+
secretsMeta as SecretDefinitionsMeta
|
|
6
19
|
|
|
7
20
|
export interface CredentialsMap {
|
|
8
21
|
|
|
@@ -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
|
-
export {
|
|
4
|
+
export { defineVariable } from '@pikku/core/variable'
|
|
5
5
|
export type { CoreVariable, VariableDefinitionMeta, VariableDefinitionsMeta } from '@pikku/core/variable'
|
|
@@ -1,23 +1,36 @@
|
|
|
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 { TypedVariablesService as CoreTypedVariablesService, type VariableMeta } from '@pikku/core/services'
|
|
5
5
|
import type { VariablesService } from '@pikku/core/services'
|
|
6
|
+
import type { VariableDefinitionsMeta } from '@pikku/core/variable'
|
|
7
|
+
import variablesMeta from './pikku-variables-meta.gen.json' with { type: 'json' }
|
|
6
8
|
import type { z } from 'zod'
|
|
7
9
|
import { ollamaBaseUrlSchema } from '../../src/ollama.variable.js'
|
|
8
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Every variable declared in this package.
|
|
13
|
+
*
|
|
14
|
+
* Read from the metadata sidecar rather than inlined, so that the import above
|
|
15
|
+
* forces tsc to emit the .json alongside this file. An addon publishes only its
|
|
16
|
+
* compiled output, and a host reads that .json to discover the addon's declared
|
|
17
|
+
* variables — an uncopied sidecar leaves them invisible to the host.
|
|
18
|
+
*/
|
|
19
|
+
export const VARIABLES_META: VariableDefinitionsMeta =
|
|
20
|
+
variablesMeta as VariableDefinitionsMeta
|
|
21
|
+
|
|
9
22
|
export interface VariablesMap {
|
|
10
23
|
'OLLAMA_BASE_URL': z.infer<typeof ollamaBaseUrlSchema>
|
|
11
24
|
}
|
|
12
25
|
|
|
13
26
|
export type VariableId = keyof VariablesMap
|
|
14
27
|
|
|
15
|
-
const
|
|
16
|
-
'OLLAMA_BASE_URL': { name: 'ollama_base_url', displayName:
|
|
28
|
+
const TYPED_VARIABLES_META: Record<string, VariableMeta> = {
|
|
29
|
+
'OLLAMA_BASE_URL': { name: 'ollama_base_url', displayName: "Ollama Base URL" }
|
|
17
30
|
}
|
|
18
31
|
|
|
19
32
|
export class TypedVariablesService extends CoreTypedVariablesService<VariablesMap> {
|
|
20
33
|
constructor(variables: VariablesService) {
|
|
21
|
-
super(variables,
|
|
34
|
+
super(variables, TYPED_VARIABLES_META)
|
|
22
35
|
}
|
|
23
36
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|