@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,126 +0,0 @@
1
- {
2
- "ollamaEmbedMany": {
3
- "pikkuFuncId": "ollamaEmbedMany",
4
- "functionType": "user",
5
- "funcWrapper": "pikkuSessionlessFunc",
6
- "sessionless": true,
7
- "name": "ollamaEmbedMany",
8
- "services": {
9
- "optimized": true,
10
- "services": [
11
- "ollama"
12
- ]
13
- },
14
- "inputSchemaName": "OllamaEmbedManyInput",
15
- "outputSchemaName": "OllamaEmbedManyOutput",
16
- "inputs": [
17
- "OllamaEmbedManyInput"
18
- ],
19
- "outputs": [
20
- "OllamaEmbedManyOutput"
21
- ],
22
- "implementationHash": "2abe1562dff3ca44",
23
- "description": "Create embedding vectors from multiple texts using an Ollama model",
24
- "isDirectFunction": false,
25
- "sourceFile": "/home/runner/work/addons/addons/packages/ai/ollama/src/functions/embeddings/embed-many.function.ts",
26
- "exportedName": "ollamaEmbedMany",
27
- "bodyStart": 27,
28
- "bodyEnd": 34,
29
- "contractHash": "3db02092482ca9c6",
30
- "inputHash": "4f6f4b67",
31
- "outputHash": "54a0cfe3"
32
- },
33
- "ollamaEmbed": {
34
- "pikkuFuncId": "ollamaEmbed",
35
- "functionType": "user",
36
- "funcWrapper": "pikkuSessionlessFunc",
37
- "sessionless": true,
38
- "name": "ollamaEmbed",
39
- "services": {
40
- "optimized": true,
41
- "services": [
42
- "ollama"
43
- ]
44
- },
45
- "inputSchemaName": "OllamaEmbedInput",
46
- "outputSchemaName": "OllamaEmbedOutput",
47
- "inputs": [
48
- "OllamaEmbedInput"
49
- ],
50
- "outputs": [
51
- "OllamaEmbedOutput"
52
- ],
53
- "implementationHash": "ac6fc8ad50940ac6",
54
- "description": "Create an embedding vector from text using an Ollama model",
55
- "isDirectFunction": false,
56
- "sourceFile": "/home/runner/work/addons/addons/packages/ai/ollama/src/functions/embeddings/embed.function.ts",
57
- "exportedName": "ollamaEmbed",
58
- "bodyStart": 27,
59
- "bodyEnd": 34,
60
- "contractHash": "0354ea934b747af7",
61
- "inputHash": "8340c2c0",
62
- "outputHash": "bb88b854"
63
- },
64
- "ollamaGenerateObject": {
65
- "pikkuFuncId": "ollamaGenerateObject",
66
- "functionType": "user",
67
- "funcWrapper": "pikkuSessionlessFunc",
68
- "sessionless": true,
69
- "name": "ollamaGenerateObject",
70
- "services": {
71
- "optimized": true,
72
- "services": [
73
- "ollama"
74
- ]
75
- },
76
- "inputSchemaName": "OllamaGenerateObjectInput",
77
- "outputSchemaName": "OllamaGenerateObjectOutput",
78
- "inputs": [
79
- "OllamaGenerateObjectInput"
80
- ],
81
- "outputs": [
82
- "OllamaGenerateObjectOutput"
83
- ],
84
- "implementationHash": "267ece83350ede19",
85
- "description": "Generate a structured JSON object using an Ollama model",
86
- "isDirectFunction": false,
87
- "sourceFile": "/home/runner/work/addons/addons/packages/ai/ollama/src/functions/text/generate-object.function.ts",
88
- "exportedName": "ollamaGenerateObject",
89
- "bodyStart": 44,
90
- "bodyEnd": 60,
91
- "contractHash": "e7026856e15a96b5",
92
- "inputHash": "4ceb54b7",
93
- "outputHash": "e26f98ba"
94
- },
95
- "ollamaGenerateText": {
96
- "pikkuFuncId": "ollamaGenerateText",
97
- "functionType": "user",
98
- "funcWrapper": "pikkuSessionlessFunc",
99
- "sessionless": true,
100
- "name": "ollamaGenerateText",
101
- "services": {
102
- "optimized": true,
103
- "services": [
104
- "ollama"
105
- ]
106
- },
107
- "inputSchemaName": "OllamaGenerateTextInput",
108
- "outputSchemaName": "OllamaGenerateTextOutput",
109
- "inputs": [
110
- "OllamaGenerateTextInput"
111
- ],
112
- "outputs": [
113
- "OllamaGenerateTextOutput"
114
- ],
115
- "implementationHash": "24061cbafdbafa6a",
116
- "description": "Generate text using an Ollama model",
117
- "isDirectFunction": false,
118
- "sourceFile": "/home/runner/work/addons/addons/packages/ai/ollama/src/functions/text/generate.function.ts",
119
- "exportedName": "ollamaGenerateText",
120
- "bodyStart": 42,
121
- "bodyEnd": 56,
122
- "contractHash": "0d03988593f9adef",
123
- "inputHash": "bdf047a6",
124
- "outputHash": "4e2c22b3"
125
- }
126
- }
@@ -1,102 +0,0 @@
1
- {
2
- "ollamaEmbedMany": {
3
- "pikkuFuncId": "ollamaEmbedMany",
4
- "functionType": "user",
5
- "funcWrapper": "pikkuSessionlessFunc",
6
- "sessionless": true,
7
- "name": "ollamaEmbedMany",
8
- "inputSchemaName": "OllamaEmbedManyInput",
9
- "outputSchemaName": "OllamaEmbedManyOutput",
10
- "inputs": [
11
- "OllamaEmbedManyInput"
12
- ],
13
- "outputs": [
14
- "OllamaEmbedManyOutput"
15
- ],
16
- "implementationHash": "2abe1562dff3ca44",
17
- "contractHash": "3db02092482ca9c6",
18
- "inputHash": "4f6f4b67",
19
- "outputHash": "54a0cfe3",
20
- "services": {
21
- "optimized": true,
22
- "services": [
23
- "ollama"
24
- ]
25
- }
26
- },
27
- "ollamaEmbed": {
28
- "pikkuFuncId": "ollamaEmbed",
29
- "functionType": "user",
30
- "funcWrapper": "pikkuSessionlessFunc",
31
- "sessionless": true,
32
- "name": "ollamaEmbed",
33
- "inputSchemaName": "OllamaEmbedInput",
34
- "outputSchemaName": "OllamaEmbedOutput",
35
- "inputs": [
36
- "OllamaEmbedInput"
37
- ],
38
- "outputs": [
39
- "OllamaEmbedOutput"
40
- ],
41
- "implementationHash": "ac6fc8ad50940ac6",
42
- "contractHash": "0354ea934b747af7",
43
- "inputHash": "8340c2c0",
44
- "outputHash": "bb88b854",
45
- "services": {
46
- "optimized": true,
47
- "services": [
48
- "ollama"
49
- ]
50
- }
51
- },
52
- "ollamaGenerateObject": {
53
- "pikkuFuncId": "ollamaGenerateObject",
54
- "functionType": "user",
55
- "funcWrapper": "pikkuSessionlessFunc",
56
- "sessionless": true,
57
- "name": "ollamaGenerateObject",
58
- "inputSchemaName": "OllamaGenerateObjectInput",
59
- "outputSchemaName": "OllamaGenerateObjectOutput",
60
- "inputs": [
61
- "OllamaGenerateObjectInput"
62
- ],
63
- "outputs": [
64
- "OllamaGenerateObjectOutput"
65
- ],
66
- "implementationHash": "267ece83350ede19",
67
- "contractHash": "e7026856e15a96b5",
68
- "inputHash": "4ceb54b7",
69
- "outputHash": "e26f98ba",
70
- "services": {
71
- "optimized": true,
72
- "services": [
73
- "ollama"
74
- ]
75
- }
76
- },
77
- "ollamaGenerateText": {
78
- "pikkuFuncId": "ollamaGenerateText",
79
- "functionType": "user",
80
- "funcWrapper": "pikkuSessionlessFunc",
81
- "sessionless": true,
82
- "name": "ollamaGenerateText",
83
- "inputSchemaName": "OllamaGenerateTextInput",
84
- "outputSchemaName": "OllamaGenerateTextOutput",
85
- "inputs": [
86
- "OllamaGenerateTextInput"
87
- ],
88
- "outputs": [
89
- "OllamaGenerateTextOutput"
90
- ],
91
- "implementationHash": "24061cbafdbafa6a",
92
- "contractHash": "0d03988593f9adef",
93
- "inputHash": "bdf047a6",
94
- "outputHash": "4e2c22b3",
95
- "services": {
96
- "optimized": true,
97
- "services": [
98
- "ollama"
99
- ]
100
- }
101
- }
102
- }
@@ -1,7 +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 { FunctionsMeta } from '@pikku/core'
6
- import metaData from './pikku-functions-meta.gen.json' with { type: 'json' }
7
- pikkuState('@pikku/addon-ollama', 'function', 'meta', metaData as FunctionsMeta)
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.96
3
- */
4
- /* Import and register functions used by RPCs */
5
- import { addFunction } from '@pikku/core/function'
6
- import { ollamaEmbed } from '../../src/functions/embeddings/embed.function.js'
7
- import { ollamaEmbedMany } from '../../src/functions/embeddings/embed-many.function.js'
8
- import { ollamaGenerateObject } from '../../src/functions/text/generate-object.function.js'
9
- import { ollamaGenerateText } from '../../src/functions/text/generate.function.js'
10
-
11
- addFunction('ollamaEmbed', ollamaEmbed, '@pikku/addon-ollama')
12
- addFunction('ollamaEmbedMany', ollamaEmbedMany, '@pikku/addon-ollama')
13
- addFunction('ollamaGenerateObject', ollamaGenerateObject, '@pikku/addon-ollama')
14
- addFunction('ollamaGenerateText', ollamaGenerateText, '@pikku/addon-ollama')
@@ -1,119 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.96
3
- */
4
- /**
5
- * HTTP-specific type definitions for tree-shaking optimization
6
- */
7
-
8
- import { AssertHTTPWiringParams, wireHTTP as wireHTTPCore, addHTTPMiddleware as addHTTPMiddlewareCore, wireHTTPRoutes as wireHTTPRoutesCore, defineHTTPRoutes as defineHTTPRoutesCore } from '@pikku/core/http'
9
- import type { PikkuFunction, PikkuFunctionSessionless, PikkuPermission, PikkuMiddleware, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js'
10
- import type { CoreHTTPFunctionWiring, HTTPMethod, HTTPRouteBaseConfig } from '@pikku/core/http'
11
-
12
- /**
13
- * Type definition for HTTP API wirings with type-safe path parameters.
14
- * Supports both authenticated and unauthenticated functions.
15
- *
16
- * @template In - Input type for the HTTP wiring
17
- * @template Out - Output type for the HTTP wiring
18
- * @template Route - String literal type for the HTTP path (e.g., "/users/:id")
19
- */
20
- type HTTPWiring<In, Out, Route extends string> = CoreHTTPFunctionWiring<In, Out, Route, PikkuFunction<In, Out, 'rpc' | 'session'>, PikkuFunctionSessionless<In, Out, 'rpc' | 'session'>, PikkuPermission<In>, PikkuMiddleware>
21
-
22
- /**
23
- * Registers an HTTP wiring with the Pikku framework.
24
- *
25
- * @template In - Input type for the HTTP wiring
26
- * @template Out - Output type for the HTTP wiring
27
- * @template Route - String literal type for the HTTP path (e.g., "/users/:id")
28
- * @param httpWiring - HTTP wiring definition with handler, method, and optional middleware
29
- */
30
- export const wireHTTP = <In, Out, Route extends string>(
31
- httpWiring: HTTPWiring<In, Out, Route> & AssertHTTPWiringParams<In, Route>
32
- ) => {
33
- wireHTTPCore(httpWiring as any)
34
- }
35
-
36
- /**
37
- * Registers HTTP middleware either globally or for a specific route pattern.
38
- *
39
- * When a string route pattern is provided along with middleware, the middleware
40
- * is applied only to that route. Otherwise, if an array is provided, it is treated
41
- * as global middleware (applied to all routes).
42
- *
43
- * @param routeOrMiddleware - Either a global middleware array or a route pattern string
44
- * @param middleware - The middleware array to apply when a route pattern is specified
45
- *
46
- * @example
47
- * ```typescript
48
- * // Add global HTTP middleware
49
- * addHTTPMiddleware([authMiddleware, loggingMiddleware])
50
- *
51
- * // Add route-specific middleware
52
- * addHTTPMiddleware('/api/admin/*', [adminAuthMiddleware])
53
- * ```
54
- */
55
- export const addHTTPMiddleware = (
56
- routeOrMiddleware: PikkuMiddleware[] | string,
57
- middleware?: PikkuMiddleware[]
58
- ) => {
59
- addHTTPMiddlewareCore(routeOrMiddleware as any, middleware as any)
60
- }
61
-
62
- /**
63
- * Route configuration for wireHTTPRoutes with proper typing
64
- */
65
- type HTTPRouteConfig = HTTPRouteBaseConfig & {
66
- method: HTTPMethod
67
- route: string
68
- func: PikkuFunctionConfig<any, any, any, any, any, any>
69
- auth?: boolean
70
- middleware?: PikkuMiddleware[]
71
- sse?: boolean
72
- }
73
-
74
- /**
75
- * Typed route map for wireHTTPRoutes
76
- */
77
- type TypedHTTPRouteMap = {
78
- [key: string]: HTTPRouteConfig | TypedHTTPRouteMap | TypedHTTPRouteContract
79
- }
80
-
81
- /**
82
- * Typed route contract for defineHTTPRoutes
83
- */
84
- type TypedHTTPRouteContract<T extends TypedHTTPRouteMap = TypedHTTPRouteMap> = TypedHTTPRoutesGroupConfig & {
85
- routes: T
86
- }
87
-
88
- /**
89
- * Group config with typed middleware
90
- */
91
- type TypedHTTPRoutesGroupConfig = {
92
- basePath?: string
93
- tags?: string[]
94
- auth?: boolean
95
- middleware?: PikkuMiddleware[]
96
- }
97
-
98
- /**
99
- * Full config for wireHTTPRoutes
100
- */
101
- type TypedWireHTTPRoutesConfig = TypedHTTPRoutesGroupConfig & {
102
- routes: TypedHTTPRouteMap | HTTPRouteConfig[]
103
- }
104
-
105
- /**
106
- * Type-safe helper for defining route contracts that can be composed.
107
- */
108
- export function defineHTTPRoutes<T extends TypedHTTPRouteMap>(routes: T): TypedHTTPRouteContract<T>
109
- export function defineHTTPRoutes<T extends TypedHTTPRouteMap>(config: TypedHTTPRoutesGroupConfig & { routes: T }): TypedHTTPRouteContract<T>
110
- export function defineHTTPRoutes<T extends TypedHTTPRouteMap>(configOrRoutes: T | (TypedHTTPRoutesGroupConfig & { routes: T })): TypedHTTPRouteContract<T> {
111
- return defineHTTPRoutesCore(configOrRoutes as any) as unknown as TypedHTTPRouteContract<T>
112
- }
113
-
114
- /**
115
- * Wires multiple HTTP routes from a nested map or array configuration.
116
- */
117
- export const wireHTTPRoutes = (config: TypedWireHTTPRoutesConfig): void => {
118
- wireHTTPRoutesCore(config as any)
119
- }
@@ -1,183 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.96
3
- */
4
- /**
5
- * MCP-specific type definitions for tree-shaking optimization
6
- */
7
-
8
- import {
9
- CoreMCPResource,
10
- CoreMCPPrompt,
11
- wireMCPResource as wireMCPResourceCore,
12
- wireMCPPrompt as wireMCPPromptCore,
13
- MCPResourceResponse,
14
- MCPToolResponse,
15
- MCPPromptResponse,
16
- AssertMCPResourceURIParams
17
- } from '@pikku/core/mcp'
18
-
19
- import type { PikkuFunctionConfig, PikkuFunctionSessionless, PikkuMiddleware, PikkuPermission, InferSchemaOutput } from '../function/pikku-function-types.gen.js'
20
- import type { CorePermissionGroup } from '@pikku/core'
21
- import type { StandardSchemaV1 } from '@standard-schema/spec'
22
-
23
- /**
24
- * Type definition for MCP resources that provide data to AI models.
25
- *
26
- * @template In - Input type for the resource request
27
- * @template URI - URI template string type for compile-time parameter validation
28
- */
29
- type MCPResourceWiring<In, URI extends string> = CoreMCPResource<PikkuFunctionConfig<In, MCPResourceResponse, 'rpc' | 'session' | 'mcp'>> & { uri: URI }
30
-
31
- /**
32
- * Type definition for MCP prompts that provide templates to AI models.
33
- *
34
- * @template In - Input type for the prompt parameters
35
- */
36
- type MCPPromptWiring<In> = CoreMCPPrompt<PikkuFunctionConfig<In, MCPPromptResponse, 'rpc' | 'session' | 'mcp'>>
37
-
38
- /**
39
- * Registers an MCP resource with the Pikku framework.
40
- * Resources provide data that AI models can access.
41
- *
42
- * @template In - Input type for the resource request
43
- * @template URI - URI template string for compile-time parameter validation
44
- * @param mcpResource - MCP resource definition with data provider function
45
- */
46
- export const wireMCPResource = <In, URI extends string>(
47
- mcpResource: MCPResourceWiring<In, URI> & AssertMCPResourceURIParams<In, URI>
48
- ) => {
49
- wireMCPResourceCore(mcpResource as any)
50
- }
51
-
52
- /**
53
- * Registers an MCP prompt with the Pikku framework.
54
- * Prompts provide templates that AI models can use.
55
- *
56
- * @template In - Input type for the prompt parameters
57
- * @param mcpPrompt - MCP prompt definition with template function
58
- */
59
- export const wireMCPPrompt = <In>(
60
- mcpPrompt: MCPPromptWiring<In>
61
- ) => {
62
- wireMCPPromptCore(mcpPrompt as any)
63
- }
64
-
65
- /**
66
- * Configuration for MCP prompt with Zod schema input validation.
67
- */
68
- type MCPPromptFuncConfigWithSchema<InputSchema extends StandardSchemaV1> = {
69
- func: PikkuFunctionSessionless<InferSchemaOutput<InputSchema>, MCPPromptResponse, 'mcp' | 'rpc'>
70
- name?: string
71
- input: InputSchema
72
- }
73
-
74
- /**
75
- * Creates a function for handling MCP prompt requests.
76
- * These functions generate prompt templates for AI models.
77
- *
78
- * Supports two patterns:
79
- * 1. Generic types: `pikkuMCPPromptFunc<Input>({ func: ... })`
80
- * 2. Zod schemas: `pikkuMCPPromptFunc({ input: z.object(...), func: ... })`
81
- *
82
- * @template In - Input type for the prompt parameters (inferred from schema if provided)
83
- * @param func - Function definition, either direct function or configuration object
84
- * @returns The unwrapped function for internal use
85
- */
86
- export function pikkuMCPPromptFunc<InputSchema extends StandardSchemaV1>(
87
- config: MCPPromptFuncConfigWithSchema<InputSchema>
88
- ): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, MCPPromptResponse, 'mcp' | 'rpc'>
89
- export function pikkuMCPPromptFunc<In>(
90
- func:
91
- | PikkuFunctionSessionless<In, MCPPromptResponse, 'mcp' | 'rpc'>
92
- | {
93
- func: PikkuFunctionSessionless<In, MCPPromptResponse, 'mcp' | 'rpc'>
94
- name?: string
95
- }
96
- ): PikkuFunctionConfig<In, MCPPromptResponse, 'mcp' | 'rpc'>
97
- export function pikkuMCPPromptFunc(func: any): any {
98
- return typeof func === 'function' ? { func } : func
99
- }
100
-
101
- /**
102
- * Configuration for MCP tool with Zod schema input validation.
103
- */
104
- type MCPToolFuncConfigWithSchema<InputSchema extends StandardSchemaV1> = {
105
- func: PikkuFunctionSessionless<InferSchemaOutput<InputSchema>, MCPToolResponse, 'mcp' | 'rpc'>
106
- description?: string
107
- tags?: string[]
108
- title?: string
109
- summary?: string
110
- name?: string
111
- middleware?: PikkuMiddleware[]
112
- permissions?: CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>>
113
- input: InputSchema
114
- }
115
-
116
- /**
117
- * Creates a function for handling MCP tool invocations.
118
- * These functions perform actions that AI models can request.
119
- *
120
- * Supports two patterns:
121
- * 1. Generic types: `pikkuMCPToolFunc<Input>({ func: ... })`
122
- * 2. Zod schemas: `pikkuMCPToolFunc({ input: z.object(...), func: ... })`
123
- *
124
- * @template In - Input type for the tool invocation (inferred from schema if provided)
125
- * @param func - Function definition, either direct function or configuration object
126
- * @returns The unwrapped function for internal use
127
- */
128
- export function pikkuMCPToolFunc<InputSchema extends StandardSchemaV1>(
129
- config: MCPToolFuncConfigWithSchema<InputSchema>
130
- ): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, MCPToolResponse, 'mcp' | 'rpc'>
131
- export function pikkuMCPToolFunc<In>(
132
- func:
133
- | PikkuFunctionSessionless<In, MCPToolResponse, 'mcp' | 'rpc'>
134
- | {
135
- func: PikkuFunctionSessionless<In, MCPToolResponse, 'mcp' | 'rpc'>
136
- description?: string
137
- tags?: string[]
138
- title?: string
139
- summary?: string
140
- name?: string
141
- middleware?: PikkuMiddleware[]
142
- permissions?: CorePermissionGroup<PikkuPermission<In>>
143
- }
144
- ): PikkuFunctionConfig<In, MCPToolResponse, 'mcp' | 'rpc'>
145
- export function pikkuMCPToolFunc(func: any): any {
146
- return typeof func === 'function' ? { func } : func
147
- }
148
-
149
- /**
150
- * Configuration for MCP resource with Zod schema input validation.
151
- */
152
- type MCPResourceFuncConfigWithSchema<InputSchema extends StandardSchemaV1> = {
153
- func: PikkuFunctionSessionless<InferSchemaOutput<InputSchema>, MCPResourceResponse, 'mcp' | 'rpc'>
154
- name?: string
155
- input: InputSchema
156
- }
157
-
158
- /**
159
- * Creates a function for handling MCP resource requests.
160
- * These functions provide data that AI models can access.
161
- *
162
- * Supports two patterns:
163
- * 1. Generic types: `pikkuMCPResourceFunc<Input>({ func: ... })`
164
- * 2. Zod schemas: `pikkuMCPResourceFunc({ input: z.object(...), func: ... })`
165
- *
166
- * @template In - Input type for the resource request (inferred from schema if provided)
167
- * @param func - Function definition, either direct function or configuration object
168
- * @returns The unwrapped function for internal use
169
- */
170
- export function pikkuMCPResourceFunc<InputSchema extends StandardSchemaV1>(
171
- config: MCPResourceFuncConfigWithSchema<InputSchema>
172
- ): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, MCPResourceResponse, 'mcp' | 'rpc'>
173
- export function pikkuMCPResourceFunc<In>(
174
- func:
175
- | PikkuFunctionSessionless<In, MCPResourceResponse, 'mcp' | 'rpc'>
176
- | {
177
- func: PikkuFunctionSessionless<In, MCPResourceResponse, 'mcp' | 'rpc'>
178
- name?: string
179
- }
180
- ): PikkuFunctionConfig<In, MCPResourceResponse, 'mcp' | 'rpc'>
181
- export function pikkuMCPResourceFunc(func: any): any {
182
- return typeof func === 'function' ? { func } : func
183
- }
@@ -1,9 +0,0 @@
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,8 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.96
3
- */
4
- import './rpc/pikku-rpc-wirings-meta.internal.gen.js'
5
- import './function/pikku-functions-meta.gen.js'
6
- import './addon/pikku-package.gen.js'
7
- import './schemas/register.gen.js'
8
- import './function/pikku-functions.gen.js'
@@ -1,10 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.96
3
- */
4
- import { LocalMetaService } from '@pikku/core/services/local-meta'
5
-
6
- export class PikkuMetaService extends LocalMetaService {
7
- constructor() {
8
- super('/home/runner/work/addons/addons/packages/ai/ollama/.pikku')
9
- }
10
- }
@@ -1,50 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.96
3
- */
4
- import type { SingletonServices } from '../types/application-types.d.js'
5
- import type { Services } from '../types/application-types.d.js'
6
-
7
- // Singleton services map: true if required, false if available but unused
8
- export const requiredSingletonServices = {
9
- 'agentRunService': false,
10
- 'aiAgentRunner': false,
11
- 'aiEmbedding': false,
12
- 'aiRunState': false,
13
- 'aiStorage': false,
14
- 'audit': false,
15
- 'auditLog': false,
16
- 'auth': false,
17
- 'config': true,
18
- 'content': false,
19
- 'coverageService': false,
20
- 'credentialService': false,
21
- 'deploymentService': false,
22
- 'emailService': false,
23
- 'eventHub': false,
24
- 'jwt': false,
25
- 'logger': true,
26
- 'metaService': false,
27
- 'ollama': false,
28
- 'queueService': false,
29
- 'schedulerService': false,
30
- 'schema': true,
31
- 'scopeService': false,
32
- 'secrets': true,
33
- 'sessionStore': false,
34
- 'variables': true,
35
- 'webhookService': false,
36
- 'workflowRunService': false,
37
- 'workflowService': false,
38
- } as const
39
-
40
- // Wire services map: true if required, false if available but unused
41
- export const requiredWireServices = {
42
- } as const
43
-
44
- // Type exports
45
- export type RequiredSingletonServices = Required<Pick<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'>> & Partial<Omit<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'>>
46
-
47
- export type RequiredWireServices = Partial<Services>
48
-
49
- // Services this addon needs from the parent project
50
- export const requiredParentServices = ["variables"] as const
@@ -1,24 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.96
3
- */
4
- /**
5
- * Main type export hub - re-exports all wiring-specific types
6
- */
7
-
8
- // Core function, middleware, and permission types
9
- export * from './function/pikku-function-types.gen.js'
10
-
11
- // Trigger wiring types
12
- export * from './trigger/pikku-trigger-types.gen.js'
13
-
14
- // Node wiring types
15
- export * from './console/pikku-node-types.gen.js'
16
-
17
- // Secret definition types
18
- export * from './secrets/pikku-secret-types.gen.js'
19
-
20
- // Scope definition types
21
- export * from './scopes/pikku-scope-types.gen.js'
22
-
23
- // Addon types
24
- export * from './addon/pikku-addon-types.gen.js'