@pikku/addon-ollama 0.1.3 → 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.
Files changed (197) hide show
  1. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +2 -2
  2. package/dist/.pikku/addon/pikku-addon-types.gen.js +2 -2
  3. package/dist/.pikku/addon/pikku-addon-types.gen.ts +2 -2
  4. package/dist/.pikku/addon/pikku-package.gen.js +3 -2
  5. package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
  6. package/dist/.pikku/addon/pikku-package.gen.ts +4 -2
  7. package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +1 -1
  8. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +6 -2
  9. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -1
  10. package/dist/.pikku/agent/pikku-agent-types.gen.js +3 -0
  11. package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -1
  12. package/dist/.pikku/agent/pikku-agent-types.gen.ts +15 -2
  13. package/dist/.pikku/agent/pikku-model-aliases.gen.d.ts +2 -0
  14. package/dist/.pikku/agent/pikku-model-aliases.gen.d.ts.map +1 -0
  15. package/dist/.pikku/agent/pikku-model-aliases.gen.js +6 -0
  16. package/dist/.pikku/agent/pikku-model-aliases.gen.js.map +1 -0
  17. package/dist/.pikku/agent/pikku-model-aliases.gen.ts +6 -0
  18. package/dist/.pikku/agent/pikku-scorer-names.gen.d.ts +8 -0
  19. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
  20. package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
  21. package/dist/.pikku/channel/pikku-channel-types.gen.ts +1 -1
  22. package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
  23. package/dist/.pikku/console/pikku-node-types.gen.ts +1 -1
  24. package/dist/.pikku/function/pikku-function-types.gen.d.ts +20 -24
  25. package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
  26. package/dist/.pikku/function/pikku-function-types.gen.js +2 -2
  27. package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
  28. package/dist/.pikku/function/pikku-function-types.gen.ts +32 -27
  29. package/dist/.pikku/function/pikku-functions-meta.gen.js +2 -2
  30. package/dist/.pikku/function/pikku-functions-meta.gen.js.map +1 -1
  31. package/dist/.pikku/function/pikku-functions-meta.gen.ts +2 -2
  32. package/dist/.pikku/function/pikku-functions.gen.js +1 -1
  33. package/dist/.pikku/function/pikku-functions.gen.ts +1 -1
  34. package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
  35. package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
  36. package/dist/.pikku/http/pikku-http-types.gen.ts +1 -1
  37. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
  38. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
  39. package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +1 -1
  40. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +1 -1
  41. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +1 -1
  42. package/dist/.pikku/pikku-bootstrap-scenarios.gen.ts +1 -1
  43. package/dist/.pikku/pikku-bootstrap.gen.d.ts +2 -1
  44. package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -1
  45. package/dist/.pikku/pikku-bootstrap.gen.js +2 -1
  46. package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -1
  47. package/dist/.pikku/pikku-bootstrap.gen.ts +2 -1
  48. package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
  49. package/dist/.pikku/pikku-meta-service.gen.js +1 -1
  50. package/dist/.pikku/pikku-meta-service.gen.ts +1 -1
  51. package/dist/.pikku/pikku-services.gen.d.ts +2 -1
  52. package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
  53. package/dist/.pikku/pikku-services.gen.js +1 -0
  54. package/dist/.pikku/pikku-services.gen.js.map +1 -1
  55. package/dist/.pikku/pikku-services.gen.ts +2 -1
  56. package/dist/.pikku/pikku-types.gen.d.ts +1 -1
  57. package/dist/.pikku/pikku-types.gen.js +1 -1
  58. package/dist/.pikku/pikku-types.gen.ts +1 -1
  59. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
  60. package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
  61. package/dist/.pikku/queue/pikku-queue-types.gen.ts +1 -1
  62. package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +2 -7
  63. package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +2 -7
  64. package/dist/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +2 -7
  65. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +2 -2
  66. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -1
  67. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +2 -2
  68. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +2 -2
  69. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js.map +1 -1
  70. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.ts +2 -2
  71. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
  72. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.ts +1 -1
  73. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +2 -2
  74. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js.map +1 -1
  75. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts +2 -2
  76. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
  77. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.ts +1 -1
  78. package/dist/.pikku/scenarios/schemas/register.gen.d.ts +1 -1
  79. package/dist/.pikku/scenarios/schemas/register.gen.js +1 -1
  80. package/dist/.pikku/scenarios/schemas/register.gen.ts +1 -1
  81. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
  82. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
  83. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +1 -1
  84. package/dist/.pikku/schemas/register.gen.js +1 -1
  85. package/dist/.pikku/schemas/register.gen.ts +1 -1
  86. package/dist/.pikku/scopes/pikku-personas.gen.js +1 -1
  87. package/dist/.pikku/scopes/pikku-personas.gen.ts +1 -1
  88. package/dist/.pikku/scopes/pikku-roles.gen.d.ts +1 -1
  89. package/dist/.pikku/scopes/pikku-roles.gen.ts +1 -1
  90. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +1 -1
  91. package/dist/.pikku/scopes/pikku-scope-types.gen.js +1 -1
  92. package/dist/.pikku/scopes/pikku-scope-types.gen.ts +1 -1
  93. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +1 -1
  94. package/dist/.pikku/scopes/pikku-scopes.gen.ts +1 -1
  95. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
  96. package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
  97. package/dist/.pikku/secrets/pikku-secret-types.gen.ts +1 -1
  98. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
  99. package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
  100. package/dist/.pikku/secrets/pikku-secrets.gen.ts +1 -1
  101. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  102. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  103. package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +1 -1
  104. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
  105. package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
  106. package/dist/.pikku/variables/pikku-variable-types.gen.ts +1 -1
  107. package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
  108. package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
  109. package/dist/.pikku/variables/pikku-variables.gen.ts +1 -1
  110. package/dist/.pikku/workflow/pikku-personas.gen.d.ts +2 -1
  111. package/dist/.pikku/workflow/pikku-personas.gen.d.ts.map +1 -1
  112. package/dist/.pikku/workflow/pikku-personas.gen.js +1 -1
  113. package/dist/.pikku/workflow/pikku-personas.gen.js.map +1 -1
  114. package/dist/.pikku/workflow/pikku-personas.gen.ts +3 -6
  115. package/dist/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +2 -2
  116. package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +1 -1
  117. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +25 -16
  118. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
  119. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -1
  120. package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
  121. package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +33 -27
  122. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +2 -2
  123. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -1
  124. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +2 -2
  125. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  126. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  127. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
  128. package/dist/src/functions/embeddings/embed-many.function.d.ts +1 -1
  129. package/dist/src/functions/embeddings/embed.function.d.ts +1 -1
  130. package/dist/src/functions/text/generate-object.function.d.ts +1 -1
  131. package/dist/src/functions/text/generate.function.d.ts +1 -1
  132. package/dist/types/application-types.d.ts +17 -0
  133. package/package.json +6 -7
  134. package/.pikku/addon/pikku-addon-types.gen.ts +0 -105
  135. package/.pikku/addon/pikku-package.gen.ts +0 -11
  136. package/.pikku/agent/pikku-agent-map.gen.d.ts +0 -4
  137. package/.pikku/agent/pikku-agent-types.gen.ts +0 -84
  138. package/.pikku/channel/pikku-channel-types.gen.ts +0 -177
  139. package/.pikku/console/pikku-addon-meta.gen.json +0 -61
  140. package/.pikku/console/pikku-node-types.gen.ts +0 -8
  141. package/.pikku/function/pikku-function-types.gen.ts +0 -797
  142. package/.pikku/function/pikku-functions-meta-verbose.gen.json +0 -126
  143. package/.pikku/function/pikku-functions-meta.gen.json +0 -102
  144. package/.pikku/function/pikku-functions-meta.gen.ts +0 -7
  145. package/.pikku/function/pikku-functions.gen.ts +0 -14
  146. package/.pikku/http/pikku-http-types.gen.ts +0 -119
  147. package/.pikku/mcp/pikku-mcp-types.gen.ts +0 -183
  148. package/.pikku/pikku-bootstrap-scenarios.gen.ts +0 -9
  149. package/.pikku/pikku-bootstrap.gen.ts +0 -8
  150. package/.pikku/pikku-meta-service.gen.ts +0 -10
  151. package/.pikku/pikku-services.gen.ts +0 -50
  152. package/.pikku/pikku-types.gen.ts +0 -24
  153. package/.pikku/queue/pikku-queue-types.gen.ts +0 -27
  154. package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +0 -207
  155. package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +0 -211
  156. package/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +0 -207
  157. package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +0 -6
  158. package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +0 -6
  159. package/.pikku/scenarios/features.gen.json +0 -1
  160. package/.pikku/scenarios/pikku-scenario-functions-meta.gen.json +0 -1
  161. package/.pikku/scenarios/pikku-scenario-functions-meta.gen.ts +0 -12
  162. package/.pikku/scenarios/pikku-scenario-functions.gen.ts +0 -4
  163. package/.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts +0 -15
  164. package/.pikku/scenarios/pikku-scenario-wirings.gen.ts +0 -4
  165. package/.pikku/scenarios/schemas/register.gen.ts +0 -4
  166. package/.pikku/scheduler/pikku-scheduler-types.gen.ts +0 -25
  167. package/.pikku/schemas/register.gen.ts +0 -39
  168. package/.pikku/schemas/schemas/OllamaEmbedInput.schema.json +0 -1
  169. package/.pikku/schemas/schemas/OllamaEmbedManyInput.schema.json +0 -1
  170. package/.pikku/schemas/schemas/OllamaEmbedManyOutput.schema.json +0 -1
  171. package/.pikku/schemas/schemas/OllamaEmbedOutput.schema.json +0 -1
  172. package/.pikku/schemas/schemas/OllamaGenerateObjectInput.schema.json +0 -1
  173. package/.pikku/schemas/schemas/OllamaGenerateObjectOutput.schema.json +0 -1
  174. package/.pikku/schemas/schemas/OllamaGenerateTextInput.schema.json +0 -1
  175. package/.pikku/schemas/schemas/OllamaGenerateTextOutput.schema.json +0 -1
  176. package/.pikku/schemas/schemas/VariableSchema_ollama_base_url.schema.json +0 -1
  177. package/.pikku/scopes/pikku-personas-meta.gen.json +0 -1
  178. package/.pikku/scopes/pikku-personas.gen.ts +0 -52
  179. package/.pikku/scopes/pikku-roles-meta.gen.json +0 -1
  180. package/.pikku/scopes/pikku-roles.gen.ts +0 -41
  181. package/.pikku/scopes/pikku-scope-types.gen.ts +0 -7
  182. package/.pikku/scopes/pikku-scopes-meta.gen.json +0 -1
  183. package/.pikku/scopes/pikku-scopes.gen.ts +0 -58
  184. package/.pikku/secrets/pikku-secret-types.gen.ts +0 -5
  185. package/.pikku/secrets/pikku-secrets-meta.gen.json +0 -1
  186. package/.pikku/secrets/pikku-secrets.gen.ts +0 -34
  187. package/.pikku/trigger/pikku-trigger-types.gen.ts +0 -160
  188. package/.pikku/variables/pikku-variable-types.gen.ts +0 -5
  189. package/.pikku/variables/pikku-variables-meta.gen.json +0 -10
  190. package/.pikku/variables/pikku-variables.gen.ts +0 -36
  191. package/.pikku/workflow/personas.gen.json +0 -1
  192. package/.pikku/workflow/pikku-personas.gen.ts +0 -38
  193. package/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +0 -18
  194. package/.pikku/workflow/pikku-workflow-map.gen.d.ts +0 -38
  195. package/.pikku/workflow/pikku-workflow-types.gen.ts +0 -591
  196. package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +0 -9
  197. package/.pikku/workflow/pikku-workflow-wirings.gen.ts +0 -3
@@ -1,15 +0,0 @@
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
- })
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.96
3
- */
4
- export {}
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.96
3
- */
4
- export const empty = null;
@@ -1,25 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.96
3
- */
4
- /**
5
- * Scheduler-specific type definitions for tree-shaking optimization
6
- */
7
-
8
- import { CoreScheduledTask, wireScheduler as wireSchedulerCore } from '@pikku/core/scheduler'
9
- import type { PikkuFunctionConfig, PikkuMiddleware } from '../function/pikku-function-types.gen.js'
10
-
11
- /**
12
- * Type definition for scheduled tasks that run at specified intervals.
13
- * These are sessionless functions that execute based on cron expressions.
14
- */
15
- type SchedulerWiring = CoreScheduledTask<PikkuFunctionConfig<void, void, 'session' | 'rpc'>, PikkuMiddleware>
16
-
17
- /**
18
- * Registers a scheduled task with the Pikku framework.
19
- * Tasks run based on cron expressions and are sessionless.
20
- *
21
- * @param task - Scheduled task definition with cron expression and handler
22
- */
23
- export const wireScheduler = (task: SchedulerWiring) => {
24
- wireSchedulerCore(task as any)
25
- }
@@ -1,39 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.96
3
- */
4
- import { addSchema } from '@pikku/core/schema'
5
-
6
- import * as OllamaEmbedInput from './schemas/OllamaEmbedInput.schema.json' with { type: 'json' }
7
- addSchema('OllamaEmbedInput', OllamaEmbedInput, '@pikku/addon-ollama')
8
-
9
-
10
- import * as OllamaEmbedManyInput from './schemas/OllamaEmbedManyInput.schema.json' with { type: 'json' }
11
- addSchema('OllamaEmbedManyInput', OllamaEmbedManyInput, '@pikku/addon-ollama')
12
-
13
-
14
- import * as OllamaEmbedManyOutput from './schemas/OllamaEmbedManyOutput.schema.json' with { type: 'json' }
15
- addSchema('OllamaEmbedManyOutput', OllamaEmbedManyOutput, '@pikku/addon-ollama')
16
-
17
-
18
- import * as OllamaEmbedOutput from './schemas/OllamaEmbedOutput.schema.json' with { type: 'json' }
19
- addSchema('OllamaEmbedOutput', OllamaEmbedOutput, '@pikku/addon-ollama')
20
-
21
-
22
- import * as OllamaGenerateObjectInput from './schemas/OllamaGenerateObjectInput.schema.json' with { type: 'json' }
23
- addSchema('OllamaGenerateObjectInput', OllamaGenerateObjectInput, '@pikku/addon-ollama')
24
-
25
-
26
- import * as OllamaGenerateObjectOutput from './schemas/OllamaGenerateObjectOutput.schema.json' with { type: 'json' }
27
- addSchema('OllamaGenerateObjectOutput', OllamaGenerateObjectOutput, '@pikku/addon-ollama')
28
-
29
-
30
- import * as OllamaGenerateTextInput from './schemas/OllamaGenerateTextInput.schema.json' with { type: 'json' }
31
- addSchema('OllamaGenerateTextInput', OllamaGenerateTextInput, '@pikku/addon-ollama')
32
-
33
-
34
- import * as OllamaGenerateTextOutput from './schemas/OllamaGenerateTextOutput.schema.json' with { type: 'json' }
35
- addSchema('OllamaGenerateTextOutput', OllamaGenerateTextOutput, '@pikku/addon-ollama')
36
-
37
-
38
- import * as VariableSchema_ollama_base_url from './schemas/VariableSchema_ollama_base_url.schema.json' with { type: 'json' }
39
- addSchema('VariableSchema_ollama_base_url', VariableSchema_ollama_base_url, '@pikku/addon-ollama')
@@ -1 +0,0 @@
1
- {"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"model":{"type":"string","description":"The Ollama embedding model to use (e.g. \"nomic-embed-text\", \"mxbai-embed-large\")"},"value":{"type":"string","description":"The text to embed"}},"required":["model","value"],"additionalProperties":false}
@@ -1 +0,0 @@
1
- {"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"model":{"type":"string","description":"The Ollama embedding model to use (e.g. \"nomic-embed-text\", \"mxbai-embed-large\")"},"values":{"type":"array","items":{"type":"string"},"description":"The texts to embed"}},"required":["model","values"],"additionalProperties":false}
@@ -1 +0,0 @@
1
- {"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"embeddings":{"type":"array","items":{"type":"array","items":{"type":"number"}},"description":"The embedding vectors"},"usage":{"type":"object","properties":{"tokens":{"type":"number","description":"Number of tokens used"}},"required":["tokens"],"additionalProperties":false,"description":"Token usage statistics"}},"required":["embeddings","usage"],"additionalProperties":false}
@@ -1 +0,0 @@
1
- {"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"embedding":{"type":"array","items":{"type":"number"},"description":"The embedding vector"},"usage":{"type":"object","properties":{"tokens":{"type":"number","description":"Number of tokens used"}},"required":["tokens"],"additionalProperties":false,"description":"Token usage statistics"}},"required":["embedding","usage"],"additionalProperties":false}
@@ -1 +0,0 @@
1
- {"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"model":{"type":"string","description":"The Ollama model to use (e.g. \"llama3.2\", \"phi3:mini\")"},"prompt":{"description":"The prompt to generate a structured object from","type":"string"},"messages":{"description":"A list of messages comprising the conversation so far","type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant"],"description":"The role of the message author"},"content":{"type":"string","description":"The contents of the message"}},"required":["role","content"],"additionalProperties":false}},"system":{"description":"System message to set the behavior of the model","type":"string"},"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"JSON Schema describing the expected output object"},"schemaName":{"description":"Optional name for the schema","type":"string"},"schemaDescription":{"description":"Optional description of what the schema represents","type":"string"},"mode":{"description":"Mode for object generation. Use \"json\" for models that do not support tools.","type":"string","enum":["auto","tool","json"]},"maxTokens":{"description":"Maximum number of tokens to generate","type":"number"},"temperature":{"description":"Sampling temperature between 0 and 2","type":"number","minimum":0,"maximum":2}},"required":["model","schema"],"additionalProperties":false}
@@ -1 +0,0 @@
1
- {"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"description":"The generated structured object"},"finishReason":{"type":"string","description":"The reason the model stopped generating"},"usage":{"type":"object","properties":{"promptTokens":{"type":"number","description":"Number of tokens in the prompt"},"completionTokens":{"type":"number","description":"Number of tokens in the completion"},"totalTokens":{"type":"number","description":"Total number of tokens used"}},"required":["promptTokens","completionTokens","totalTokens"],"additionalProperties":false,"description":"Token usage statistics"}},"required":["object","finishReason","usage"],"additionalProperties":false}
@@ -1 +0,0 @@
1
- {"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"model":{"type":"string","description":"The Ollama model to use (e.g. \"llama3.2\", \"phi3:mini\")"},"prompt":{"description":"The prompt to generate text from","type":"string"},"messages":{"description":"A list of messages comprising the conversation so far","type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant"],"description":"The role of the message author"},"content":{"type":"string","description":"The contents of the message"}},"required":["role","content"],"additionalProperties":false}},"system":{"description":"System message to set the behavior of the model","type":"string"},"maxTokens":{"description":"Maximum number of tokens to generate","type":"number"},"temperature":{"description":"Sampling temperature between 0 and 2","type":"number","minimum":0,"maximum":2},"topP":{"description":"Nucleus sampling parameter","type":"number"},"seed":{"description":"Random seed for reproducible results","type":"number"}},"required":["model"],"additionalProperties":false}
@@ -1 +0,0 @@
1
- {"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"text":{"type":"string","description":"The generated text"},"finishReason":{"type":"string","description":"The reason the model stopped generating"},"usage":{"type":"object","properties":{"promptTokens":{"type":"number","description":"Number of tokens in the prompt"},"completionTokens":{"type":"number","description":"Number of tokens in the completion"},"totalTokens":{"type":"number","description":"Total number of tokens used"}},"required":["promptTokens","completionTokens","totalTokens"],"additionalProperties":false,"description":"Token usage statistics"}},"required":["text","finishReason","usage"],"additionalProperties":false}
@@ -1 +0,0 @@
1
- {"$schema":"https://json-schema.org/draft/2020-12/schema","default":"http://localhost:11434/v1","description":"Base URL for the Ollama API","type":"string"}
@@ -1,52 +0,0 @@
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)
@@ -1 +0,0 @@
1
- {}
@@ -1,41 +0,0 @@
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)
@@ -1,7 +0,0 @@
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'
@@ -1 +0,0 @@
1
- {}
@@ -1,58 +0,0 @@
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 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.96
3
- */
4
- export { defineSecret } from '@pikku/core/secret'
5
- export type { CoreSecret, SecretDefinitionMeta, SecretDefinitionsMeta } from '@pikku/core/secret'
@@ -1,34 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.96
3
- */
4
- import { TypedSecretService as CoreTypedSecretService, type CredentialMeta } from '@pikku/core/services'
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
19
-
20
- export interface CredentialsMap {
21
-
22
- }
23
-
24
- export type SecretId = keyof CredentialsMap
25
-
26
- const CREDENTIALS_META: Record<string, CredentialMeta> = {
27
-
28
- }
29
-
30
- export class TypedSecretService extends CoreTypedSecretService<CredentialsMap> {
31
- constructor(secrets: SecretService) {
32
- super(secrets, CREDENTIALS_META)
33
- }
34
- }
@@ -1,160 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.96
3
- */
4
- /**
5
- * Trigger-specific type definitions for tree-shaking optimization
6
- */
7
-
8
- import { CorePikkuTriggerFunction, CorePikkuTriggerFunctionConfig, CoreTrigger, wireTrigger as wireTriggerCore, wireTriggerSource as wireTriggerSourceCore } from '@pikku/core/trigger'
9
- import type { CoreNodeConfig } from '@pikku/core/node'
10
- import type { SingletonServices } from '../../types/application-types.d.js'
11
- import type { StandardSchemaV1 } from '@standard-schema/spec'
12
-
13
-
14
-
15
- /**
16
- * A trigger function that sets up a subscription and returns a teardown function.
17
- * The trigger is fired via wire.trigger.invoke(data).
18
- *
19
- * @template TInput - Input type (configuration passed when wired)
20
- * @template TOutput - Output type produced when trigger fires
21
- */
22
- export type PikkuTriggerFunction<
23
- TInput = unknown,
24
- TOutput = unknown
25
- > = CorePikkuTriggerFunction<TInput, TOutput, SingletonServices>
26
-
27
- /**
28
- * Configuration object for creating a trigger function with metadata
29
- */
30
- export type PikkuTriggerFunctionConfig<
31
- TInput = unknown,
32
- TOutput = unknown,
33
- InputSchema extends StandardSchemaV1 | undefined = undefined,
34
- OutputSchema extends StandardSchemaV1 | undefined = undefined
35
- > = CorePikkuTriggerFunctionConfig<TInput, TOutput, SingletonServices, InputSchema, OutputSchema>
36
-
37
- /**
38
- * Helper type to infer the output type from a Standard Schema
39
- */
40
- type InferSchemaOutput<T> = T extends StandardSchemaV1<any, infer Output> ? Output : never
41
-
42
- /**
43
- * Configuration object for trigger functions with Zod schema validation.
44
- * Use this when you want to define input/output schemas using Zod.
45
- * Types are automatically inferred from the schemas.
46
- */
47
- export type PikkuTriggerFunctionConfigWithSchema<
48
- InputSchema extends StandardSchemaV1,
49
- OutputSchema extends StandardSchemaV1 | undefined = undefined
50
- > = {
51
- title?: string
52
- description?: string
53
- tags?: string[]
54
- func: PikkuTriggerFunction<
55
- InferSchemaOutput<InputSchema>,
56
- OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown
57
- >
58
- input: InputSchema
59
- output?: OutputSchema
60
- node?: CoreNodeConfig
61
- }
62
-
63
- /**
64
- * Type definition for trigger wirings.
65
- * Declares a trigger name and its target pikku function.
66
- */
67
- export type TriggerWiring = CoreTrigger
68
-
69
- /**
70
- * A trigger source with the subscription function, using project-specific services.
71
- *
72
- * @template TInput - Input type passed to the trigger function
73
- * @template TOutput - Output type produced when trigger fires
74
- */
75
- export type TriggerSource<
76
- TInput = unknown,
77
- TOutput = unknown
78
- > = {
79
- name: string
80
- func: PikkuTriggerFunctionConfig<TInput, TOutput>
81
- } & (unknown extends TInput ? { input?: TInput } : { input: TInput })
82
-
83
- /**
84
- * Creates a trigger function configuration.
85
- * Use this to define trigger functions that set up subscriptions.
86
- *
87
- * @param triggerOrConfig - Function definition or configuration object
88
- * @returns The normalized configuration object
89
- *
90
- * @example
91
- * ```typescript
92
- * export const redisSubscribeTrigger = pikkuTriggerFunc<
93
- * { channel: string },
94
- * { message: string }
95
- * >(async ({ redis }, { channel }, { trigger }) => {
96
- * const subscriber = redis.duplicate()
97
- * await subscriber.subscribe(channel, (msg) => {
98
- * trigger.invoke({ message: msg })
99
- * })
100
- * return () => subscriber.unsubscribe()
101
- * })
102
- *
103
- * export const redisSubscribeTrigger = pikkuTriggerFunc({
104
- * title: 'Redis Subscribe Trigger',
105
- * description: 'Listens to Redis pub/sub channel',
106
- * input: z.object({ channel: z.string() }),
107
- * output: z.object({ message: z.string() }),
108
- * func: async ({ redis }, { channel }, { trigger }) => {
109
- * const subscriber = redis.duplicate()
110
- * await subscriber.subscribe(channel, (msg) => {
111
- * trigger.invoke({ message: msg })
112
- * })
113
- * return () => subscriber.unsubscribe()
114
- * }
115
- * })
116
- * ```
117
- */
118
- export function pikkuTriggerFunc<
119
- InputSchema extends StandardSchemaV1,
120
- OutputSchema extends StandardSchemaV1 | undefined = undefined
121
- >(
122
- config: PikkuTriggerFunctionConfigWithSchema<InputSchema, OutputSchema>
123
- ): PikkuTriggerFunctionConfig<InferSchemaOutput<InputSchema>, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, InputSchema, OutputSchema>
124
- export function pikkuTriggerFunc<TInput, TOutput = unknown>(
125
- triggerOrConfig:
126
- | PikkuTriggerFunction<TInput, TOutput>
127
- | PikkuTriggerFunctionConfig<TInput, TOutput>
128
- ): PikkuTriggerFunctionConfig<TInput, TOutput>
129
- export function pikkuTriggerFunc(triggerOrConfig: any) {
130
- if (typeof triggerOrConfig === 'function') {
131
- return { func: triggerOrConfig }
132
- }
133
- return triggerOrConfig
134
- }
135
-
136
- /**
137
- * Registers a trigger with the Pikku framework.
138
- * Declares a trigger name and its target pikku function.
139
- * Runs everywhere — inspector extracts at build time.
140
- *
141
- * @param trigger - Trigger definition with name and function config
142
- */
143
- export const wireTrigger = (
144
- trigger: TriggerWiring
145
- ) => {
146
- wireTriggerCore(trigger as any)
147
- }
148
-
149
- /**
150
- * Registers a trigger source with the Pikku framework.
151
- * Provides the subscription function and input data.
152
- * Only imported in the trigger worker process.
153
- *
154
- * @param source - Trigger source with name, func, and input
155
- */
156
- export const wireTriggerSource = <TInput = unknown, TOutput = unknown>(
157
- source: TriggerSource<TInput, TOutput>
158
- ) => {
159
- wireTriggerSourceCore(source as any)
160
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.96
3
- */
4
- export { defineVariable } from '@pikku/core/variable'
5
- export type { CoreVariable, VariableDefinitionMeta, VariableDefinitionsMeta } from '@pikku/core/variable'
@@ -1,10 +0,0 @@
1
- {
2
- "ollama_base_url": {
3
- "name": "ollama_base_url",
4
- "displayName": "Ollama Base URL",
5
- "description": "Base URL for the Ollama API",
6
- "variableId": "OLLAMA_BASE_URL",
7
- "schema": "VariableSchema_ollama_base_url",
8
- "sourceFile": "/home/runner/work/addons/addons/packages/ai/ollama/src/ollama.variable.ts"
9
- }
10
- }
@@ -1,36 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.96
3
- */
4
- import { TypedVariablesService as CoreTypedVariablesService, type VariableMeta } from '@pikku/core/services'
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' }
8
- import type { z } from 'zod'
9
- import { ollamaBaseUrlSchema } from '../../src/ollama.variable.js'
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
-
22
- export interface VariablesMap {
23
- 'OLLAMA_BASE_URL': z.infer<typeof ollamaBaseUrlSchema>
24
- }
25
-
26
- export type VariableId = keyof VariablesMap
27
-
28
- const TYPED_VARIABLES_META: Record<string, VariableMeta> = {
29
- 'OLLAMA_BASE_URL': { name: 'ollama_base_url', displayName: "Ollama Base URL" }
30
- }
31
-
32
- export class TypedVariablesService extends CoreTypedVariablesService<VariablesMap> {
33
- constructor(variables: VariablesService) {
34
- super(variables, TYPED_VARIABLES_META)
35
- }
36
- }
@@ -1 +0,0 @@
1
- {}
@@ -1,38 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.96
3
- */
4
- /** Personas declared with definePersonas() */
5
- import { createHttpPersonas } from '@pikku/core/persona'
6
- import type {
7
- HttpPersonasConfig,
8
- ScenarioPersona,
9
- ResolvedPersona,
10
- } from '@pikku/core/services'
11
- import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
12
- import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.gen.d.js'
13
-
14
- export const personaConfigs = {} as const satisfies Record<string, ResolvedPersona>
15
-
16
- export type PersonaName = keyof typeof personaConfigs
17
-
18
- /**
19
- * The same personas as a list, widened to `ResolvedPersona`. Iterating
20
- * `personaConfigs` directly yields the literal type of each entry, on which an
21
- * optional field a persona did not declare does not exist — so a seed reading
22
- * `roles` off every persona needs this instead.
23
- */
24
- export const personaList: ResolvedPersona[] = Object.values(personaConfigs)
25
-
26
- export type AgentName = keyof AgentMap & string
27
- export type TypedPersonas = Record<
28
- PersonaName,
29
- ScenarioPersona<AgentName, FlattenedRPCMap>
30
- >
31
-
32
- export const createPersonas = (
33
- options: Omit<HttpPersonasConfig, 'personas'>
34
- ): TypedPersonas =>
35
- createHttpPersonas({
36
- ...options,
37
- personas: personaConfigs,
38
- }) as TypedPersonas
@@ -1,18 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.96
3
- */
4
- /**
5
- * Scenario step map: the names `scenario.step/given/when/then` accepts, with
6
- * the input and output types of each step.
7
- */
8
-
9
-
10
-
11
-
12
- interface ScenarioStepHandler<I, O> {
13
- input: I;
14
- output: O;
15
- }
16
-
17
- export type FlattenedScenarioStepMap = {
18
- };