@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.
Files changed (224) hide show
  1. package/.pikku/addon/pikku-addon-types.gen.ts +1 -1
  2. package/.pikku/addon/pikku-package.gen.ts +1 -1
  3. package/.pikku/agent/pikku-agent-map.gen.d.ts +1 -1
  4. package/.pikku/agent/pikku-agent-types.gen.ts +4 -2
  5. package/.pikku/channel/pikku-channel-types.gen.ts +1 -1
  6. package/.pikku/console/pikku-addon-meta.gen.json +4 -1
  7. package/.pikku/console/pikku-node-types.gen.ts +1 -1
  8. package/.pikku/function/pikku-function-types.gen.ts +117 -74
  9. package/.pikku/function/pikku-functions-meta-verbose.gen.json +8 -0
  10. package/.pikku/function/pikku-functions-meta.gen.json +28 -4
  11. package/.pikku/function/pikku-functions-meta.gen.ts +1 -1
  12. package/.pikku/function/pikku-functions.gen.ts +1 -1
  13. package/.pikku/http/pikku-http-types.gen.ts +3 -31
  14. package/.pikku/mcp/pikku-mcp-types.gen.ts +1 -1
  15. package/.pikku/pikku-bootstrap-scenarios.gen.ts +9 -0
  16. package/.pikku/pikku-bootstrap.gen.ts +1 -1
  17. package/.pikku/pikku-meta-service.gen.ts +1 -1
  18. package/.pikku/pikku-services.gen.ts +6 -1
  19. package/.pikku/pikku-types.gen.ts +4 -1
  20. package/.pikku/queue/pikku-queue-types.gen.ts +1 -1
  21. package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +1 -1
  22. package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +1 -1
  23. package/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +207 -0
  24. package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +1 -1
  25. package/.pikku/scenarios/features.gen.json +1 -0
  26. package/.pikku/scenarios/pikku-scenario-functions-meta.gen.json +1 -0
  27. package/.pikku/scenarios/pikku-scenario-functions-meta.gen.ts +12 -0
  28. package/.pikku/scenarios/pikku-scenario-functions.gen.ts +4 -0
  29. package/.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts +15 -0
  30. package/.pikku/scenarios/pikku-scenario-wirings.gen.ts +4 -0
  31. package/.pikku/scenarios/schemas/register.gen.ts +4 -0
  32. package/.pikku/scheduler/pikku-scheduler-types.gen.ts +1 -1
  33. package/.pikku/schemas/register.gen.ts +1 -1
  34. package/.pikku/scopes/pikku-personas-meta.gen.json +1 -0
  35. package/.pikku/scopes/pikku-personas.gen.ts +52 -0
  36. package/.pikku/scopes/pikku-roles-meta.gen.json +1 -0
  37. package/.pikku/scopes/pikku-roles.gen.ts +41 -0
  38. package/.pikku/scopes/pikku-scope-types.gen.ts +7 -0
  39. package/.pikku/scopes/pikku-scopes-meta.gen.json +1 -0
  40. package/.pikku/scopes/pikku-scopes.gen.ts +58 -0
  41. package/.pikku/secrets/pikku-secret-types.gen.ts +2 -2
  42. package/.pikku/secrets/pikku-secrets.gen.ts +14 -1
  43. package/.pikku/trigger/pikku-trigger-types.gen.ts +1 -1
  44. package/.pikku/variables/pikku-variable-types.gen.ts +2 -2
  45. package/.pikku/variables/pikku-variables.gen.ts +17 -4
  46. package/.pikku/workflow/personas.gen.json +1 -0
  47. package/.pikku/workflow/pikku-personas.gen.ts +38 -0
  48. package/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +18 -0
  49. package/.pikku/workflow/pikku-workflow-map.gen.d.ts +1 -1
  50. package/.pikku/workflow/pikku-workflow-types.gen.ts +429 -5
  51. package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +3 -3
  52. package/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
  53. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +1 -1
  54. package/dist/.pikku/addon/pikku-addon-types.gen.js +1 -1
  55. package/dist/.pikku/addon/pikku-addon-types.gen.ts +1 -1
  56. package/dist/.pikku/addon/pikku-package.gen.js +1 -1
  57. package/dist/.pikku/addon/pikku-package.gen.ts +1 -1
  58. package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +1 -1
  59. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +4 -2
  60. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -1
  61. package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -1
  62. package/dist/.pikku/agent/pikku-agent-types.gen.ts +4 -2
  63. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
  64. package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
  65. package/dist/.pikku/channel/pikku-channel-types.gen.ts +1 -1
  66. package/dist/.pikku/console/pikku-addon-meta.gen.json +4 -1
  67. package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
  68. package/dist/.pikku/console/pikku-node-types.gen.ts +1 -1
  69. package/dist/.pikku/function/pikku-function-types.gen.d.ts +77 -61
  70. package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
  71. package/dist/.pikku/function/pikku-function-types.gen.js +29 -12
  72. package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
  73. package/dist/.pikku/function/pikku-function-types.gen.ts +117 -74
  74. package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +8 -0
  75. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  76. package/dist/.pikku/function/pikku-functions-meta.gen.json +28 -4
  77. package/dist/.pikku/function/pikku-functions-meta.gen.ts +1 -1
  78. package/dist/.pikku/function/pikku-functions.gen.js +1 -1
  79. package/dist/.pikku/function/pikku-functions.gen.ts +1 -1
  80. package/dist/.pikku/http/pikku-http-types.gen.d.ts +2 -24
  81. package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -1
  82. package/dist/.pikku/http/pikku-http-types.gen.js +2 -24
  83. package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -1
  84. package/dist/.pikku/http/pikku-http-types.gen.ts +3 -31
  85. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
  86. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
  87. package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +1 -1
  88. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +10 -0
  89. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts.map +1 -0
  90. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +10 -0
  91. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js.map +1 -0
  92. package/dist/.pikku/pikku-bootstrap-scenarios.gen.ts +9 -0
  93. package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
  94. package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
  95. package/dist/.pikku/pikku-bootstrap.gen.ts +1 -1
  96. package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
  97. package/dist/.pikku/pikku-meta-service.gen.js +1 -1
  98. package/dist/.pikku/pikku-meta-service.gen.ts +1 -1
  99. package/dist/.pikku/pikku-services.gen.d.ts +6 -1
  100. package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
  101. package/dist/.pikku/pikku-services.gen.js +5 -0
  102. package/dist/.pikku/pikku-services.gen.js.map +1 -1
  103. package/dist/.pikku/pikku-services.gen.ts +6 -1
  104. package/dist/.pikku/pikku-types.gen.d.ts +2 -1
  105. package/dist/.pikku/pikku-types.gen.d.ts.map +1 -1
  106. package/dist/.pikku/pikku-types.gen.js +3 -1
  107. package/dist/.pikku/pikku-types.gen.js.map +1 -1
  108. package/dist/.pikku/pikku-types.gen.ts +4 -1
  109. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
  110. package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
  111. package/dist/.pikku/queue/pikku-queue-types.gen.ts +1 -1
  112. package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +1 -1
  113. package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +1 -1
  114. package/dist/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +207 -0
  115. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  116. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +1 -1
  117. package/dist/.pikku/scenarios/features.gen.json +1 -0
  118. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts +2 -0
  119. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +1 -0
  120. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +11 -0
  121. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js.map +1 -0
  122. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.json +1 -0
  123. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.ts +12 -0
  124. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +5 -0
  125. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts.map +1 -0
  126. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js +2 -0
  127. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js.map +1 -0
  128. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.ts +4 -0
  129. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts +2 -0
  130. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +1 -0
  131. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +11 -0
  132. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js.map +1 -0
  133. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts +15 -0
  134. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +5 -0
  135. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts.map +1 -0
  136. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js +2 -0
  137. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js.map +1 -0
  138. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.ts +4 -0
  139. package/dist/.pikku/scenarios/schemas/register.gen.d.ts +5 -0
  140. package/dist/.pikku/scenarios/schemas/register.gen.d.ts.map +1 -0
  141. package/dist/.pikku/scenarios/schemas/register.gen.js +5 -0
  142. package/dist/.pikku/scenarios/schemas/register.gen.js.map +1 -0
  143. package/dist/.pikku/scenarios/schemas/register.gen.ts +4 -0
  144. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
  145. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
  146. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +1 -1
  147. package/dist/.pikku/schemas/register.gen.js +1 -1
  148. package/dist/.pikku/schemas/register.gen.ts +1 -1
  149. package/dist/.pikku/scopes/pikku-personas-meta.gen.json +1 -0
  150. package/dist/.pikku/scopes/pikku-personas.gen.d.ts +37 -0
  151. package/dist/.pikku/scopes/pikku-personas.gen.d.ts.map +1 -0
  152. package/dist/.pikku/scopes/pikku-personas.gen.js +18 -0
  153. package/dist/.pikku/scopes/pikku-personas.gen.js.map +1 -0
  154. package/dist/.pikku/scopes/pikku-personas.gen.ts +52 -0
  155. package/dist/.pikku/scopes/pikku-roles-meta.gen.json +1 -0
  156. package/dist/.pikku/scopes/pikku-roles.gen.d.ts +31 -0
  157. package/dist/.pikku/scopes/pikku-roles.gen.d.ts.map +1 -0
  158. package/dist/.pikku/scopes/pikku-roles.gen.js +19 -0
  159. package/dist/.pikku/scopes/pikku-roles.gen.js.map +1 -0
  160. package/dist/.pikku/scopes/pikku-roles.gen.ts +41 -0
  161. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +8 -0
  162. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts.map +1 -0
  163. package/dist/.pikku/scopes/pikku-scope-types.gen.js +6 -0
  164. package/dist/.pikku/scopes/pikku-scope-types.gen.js.map +1 -0
  165. package/dist/.pikku/scopes/pikku-scope-types.gen.ts +7 -0
  166. package/dist/.pikku/scopes/pikku-scopes-meta.gen.json +1 -0
  167. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +36 -0
  168. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +1 -0
  169. package/dist/.pikku/scopes/pikku-scopes.gen.js +28 -0
  170. package/dist/.pikku/scopes/pikku-scopes.gen.js.map +1 -0
  171. package/dist/.pikku/scopes/pikku-scopes.gen.ts +58 -0
  172. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +2 -2
  173. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +1 -1
  174. package/dist/.pikku/secrets/pikku-secret-types.gen.js +2 -2
  175. package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +1 -1
  176. package/dist/.pikku/secrets/pikku-secret-types.gen.ts +2 -2
  177. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +11 -1
  178. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -1
  179. package/dist/.pikku/secrets/pikku-secrets.gen.js +11 -1
  180. package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -1
  181. package/dist/.pikku/secrets/pikku-secrets.gen.ts +14 -1
  182. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  183. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  184. package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +1 -1
  185. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +2 -2
  186. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +1 -1
  187. package/dist/.pikku/variables/pikku-variable-types.gen.js +2 -2
  188. package/dist/.pikku/variables/pikku-variable-types.gen.js.map +1 -1
  189. package/dist/.pikku/variables/pikku-variable-types.gen.ts +2 -2
  190. package/dist/.pikku/variables/pikku-variables.gen.d.ts +11 -1
  191. package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -1
  192. package/dist/.pikku/variables/pikku-variables.gen.js +14 -4
  193. package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -1
  194. package/dist/.pikku/variables/pikku-variables.gen.ts +17 -4
  195. package/dist/.pikku/workflow/personas.gen.json +1 -0
  196. package/dist/.pikku/workflow/pikku-personas.gen.d.ts +16 -0
  197. package/dist/.pikku/workflow/pikku-personas.gen.d.ts.map +1 -0
  198. package/dist/.pikku/workflow/pikku-personas.gen.js +18 -0
  199. package/dist/.pikku/workflow/pikku-personas.gen.js.map +1 -0
  200. package/dist/.pikku/workflow/pikku-personas.gen.ts +38 -0
  201. package/dist/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +18 -0
  202. package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +1 -1
  203. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +254 -5
  204. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
  205. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +62 -1
  206. package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
  207. package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +429 -5
  208. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  209. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -1
  210. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +3 -3
  211. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  212. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  213. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
  214. package/dist/src/functions/embeddings/embed-many.function.d.ts +2 -2
  215. package/dist/src/functions/embeddings/embed-many.function.d.ts.map +1 -1
  216. package/dist/src/functions/embeddings/embed.function.d.ts +2 -2
  217. package/dist/src/functions/embeddings/embed.function.d.ts.map +1 -1
  218. package/dist/src/functions/text/generate-object.function.d.ts +6 -6
  219. package/dist/src/functions/text/generate-object.function.d.ts.map +1 -1
  220. package/dist/src/functions/text/generate.function.d.ts +2 -2
  221. package/dist/src/functions/text/generate.function.d.ts.map +1 -1
  222. package/dist/src/ollama.variable.js +2 -2
  223. package/dist/src/ollama.variable.js.map +1 -1
  224. package/package.json +4 -4
@@ -1,11 +1,11 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  /**
5
5
  * HTTP-specific type definitions for tree-shaking optimization
6
6
  */
7
7
 
8
- import { AssertHTTPWiringParams, wireHTTP as wireHTTPCore, addHTTPMiddleware as addHTTPMiddlewareCore, addHTTPPermission as addHTTPPermissionCore, wireHTTPRoutes as wireHTTPRoutesCore, defineHTTPRoutes as defineHTTPRoutesCore } from '@pikku/core/http'
8
+ import { AssertHTTPWiringParams, wireHTTP as wireHTTPCore, addHTTPMiddleware as addHTTPMiddlewareCore, wireHTTPRoutes as wireHTTPRoutesCore, defineHTTPRoutes as defineHTTPRoutesCore } from '@pikku/core/http'
9
9
  import type { PikkuFunction, PikkuFunctionSessionless, PikkuPermission, PikkuMiddleware, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js'
10
10
  import type { CoreHTTPFunctionWiring, HTTPMethod, HTTPRouteBaseConfig } from '@pikku/core/http'
11
11
 
@@ -59,32 +59,6 @@ export const addHTTPMiddleware = (
59
59
  addHTTPMiddlewareCore(routeOrMiddleware as any, middleware as any)
60
60
  }
61
61
 
62
- /**
63
- * Registers HTTP permissions either globally or for a specific route pattern.
64
- *
65
- * When a string route pattern is provided along with permissions, the permissions
66
- * are applied only to that route. Permissions can be passed as an array or as a
67
- * permission group object.
68
- *
69
- * @param pattern - Route pattern string (e.g., '*' for all routes, '/api/*' for specific routes)
70
- * @param permissions - The permissions to apply for the specified route pattern
71
- *
72
- * @example
73
- * ```typescript
74
- * // Add global HTTP permissions
75
- * addHTTPPermission('*', { global: globalPermission })
76
- *
77
- * // Add route-specific permissions
78
- * addHTTPPermission('/api/admin/*', { admin: adminPermission })
79
- * ```
80
- */
81
- export const addHTTPPermission = <In = unknown>(
82
- pattern: string,
83
- permissions: Record<string, PikkuPermission<In>> | PikkuPermission<In>[]
84
- ) => {
85
- addHTTPPermissionCore(pattern, permissions as any)
86
- }
87
-
88
62
  /**
89
63
  * Route configuration for wireHTTPRoutes with proper typing
90
64
  */
@@ -93,7 +67,6 @@ type HTTPRouteConfig = HTTPRouteBaseConfig & {
93
67
  route: string
94
68
  func: PikkuFunctionConfig<any, any, any, any, any, any>
95
69
  auth?: boolean
96
- permissions?: Record<string, PikkuPermission | PikkuPermission[]>
97
70
  middleware?: PikkuMiddleware[]
98
71
  sse?: boolean
99
72
  }
@@ -113,14 +86,13 @@ type TypedHTTPRouteContract<T extends TypedHTTPRouteMap = TypedHTTPRouteMap> = T
113
86
  }
114
87
 
115
88
  /**
116
- * Group config with typed middleware/permissions
89
+ * Group config with typed middleware
117
90
  */
118
91
  type TypedHTTPRoutesGroupConfig = {
119
92
  basePath?: string
120
93
  tags?: string[]
121
94
  auth?: boolean
122
95
  middleware?: PikkuMiddleware[]
123
- permissions?: Record<string, PikkuPermission | PikkuPermission[]>
124
96
  }
125
97
 
126
98
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  /**
5
5
  * MCP-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  /**
5
5
  * MCP-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  /**
5
5
  * MCP-specific type definitions for tree-shaking optimization
@@ -0,0 +1,10 @@
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';
10
+ //# sourceMappingURL=pikku-bootstrap-scenarios.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-bootstrap-scenarios.gen.d.ts","sourceRoot":"","sources":["../../.pikku/pikku-bootstrap-scenarios.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,0BAA0B,CAAA;AACjC,OAAO,qCAAqC,CAAA;AAC5C,OAAO,kDAAkD,CAAA;AACzD,OAAO,6CAA6C,CAAA;AACpD,OAAO,gDAAgD,CAAA;AACvD,OAAO,2CAA2C,CAAA"}
@@ -0,0 +1,10 @@
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';
10
+ //# sourceMappingURL=pikku-bootstrap-scenarios.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-bootstrap-scenarios.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-bootstrap-scenarios.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,0BAA0B,CAAA;AACjC,OAAO,qCAAqC,CAAA;AAC5C,OAAO,kDAAkD,CAAA;AACzD,OAAO,6CAA6C,CAAA;AACpD,OAAO,gDAAgD,CAAA;AACvD,OAAO,2CAA2C,CAAA"}
@@ -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.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  import './rpc/pikku-rpc-wirings-meta.internal.gen.js';
5
5
  import './function/pikku-functions-meta.gen.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  import './rpc/pikku-rpc-wirings-meta.internal.gen.js';
5
5
  import './function/pikku-functions-meta.gen.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  import './rpc/pikku-rpc-wirings-meta.internal.gen.js'
5
5
  import './function/pikku-functions-meta.gen.js'
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  import { LocalMetaService } from '@pikku/core/services/local-meta';
5
5
  export declare class PikkuMetaService extends LocalMetaService {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  import { LocalMetaService } from '@pikku/core/services/local-meta';
5
5
  export class PikkuMetaService extends LocalMetaService {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  import { LocalMetaService } from '@pikku/core/services/local-meta'
5
5
 
@@ -1,17 +1,20 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
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';
6
6
  export declare const requiredSingletonServices: {
7
7
  readonly agentRunService: false;
8
8
  readonly aiAgentRunner: false;
9
+ readonly aiEmbedding: false;
9
10
  readonly aiRunState: false;
10
11
  readonly aiStorage: false;
11
12
  readonly audit: false;
12
13
  readonly auditLog: false;
14
+ readonly auth: false;
13
15
  readonly config: true;
14
16
  readonly content: false;
17
+ readonly coverageService: false;
15
18
  readonly credentialService: false;
16
19
  readonly deploymentService: false;
17
20
  readonly emailService: false;
@@ -23,9 +26,11 @@ export declare const requiredSingletonServices: {
23
26
  readonly queueService: false;
24
27
  readonly schedulerService: false;
25
28
  readonly schema: true;
29
+ readonly scopeService: false;
26
30
  readonly secrets: true;
27
31
  readonly sessionStore: false;
28
32
  readonly variables: true;
33
+ readonly webhookService: false;
29
34
  readonly workflowRunService: false;
30
35
  readonly workflowService: false;
31
36
  };
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-services.gen.d.ts","sourceRoot":"","sources":["../../.pikku/pikku-services.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AAG/D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;CAyB5B,CAAA;AAGV,eAAO,MAAM,oBAAoB,IACvB,CAAA;AAGV,MAAM,MAAM,yBAAyB,GAAG,QAAQ,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAC,CAAC,CAAA;AAEhO,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;AAGpD,eAAO,MAAM,sBAAsB,wBAAyB,CAAA"}
1
+ {"version":3,"file":"pikku-services.gen.d.ts","sourceRoot":"","sources":["../../.pikku/pikku-services.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AAG/D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B5B,CAAA;AAGV,eAAO,MAAM,oBAAoB,IACvB,CAAA;AAGV,MAAM,MAAM,yBAAyB,GAAG,QAAQ,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAC,CAAC,CAAA;AAEhO,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;AAGpD,eAAO,MAAM,sBAAsB,wBAAyB,CAAA"}
@@ -2,12 +2,15 @@
2
2
  export const requiredSingletonServices = {
3
3
  'agentRunService': false,
4
4
  'aiAgentRunner': false,
5
+ 'aiEmbedding': false,
5
6
  'aiRunState': false,
6
7
  'aiStorage': false,
7
8
  'audit': false,
8
9
  'auditLog': false,
10
+ 'auth': false,
9
11
  'config': true,
10
12
  'content': false,
13
+ 'coverageService': false,
11
14
  'credentialService': false,
12
15
  'deploymentService': false,
13
16
  'emailService': false,
@@ -19,9 +22,11 @@ export const requiredSingletonServices = {
19
22
  'queueService': false,
20
23
  'schedulerService': false,
21
24
  'schema': true,
25
+ 'scopeService': false,
22
26
  'secrets': true,
23
27
  'sessionStore': false,
24
28
  'variables': true,
29
+ 'webhookService': false,
25
30
  'workflowRunService': false,
26
31
  'workflowService': false,
27
32
  };
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-services.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-services.gen.ts"],"names":[],"mappings":"AAMA,0EAA0E;AAC1E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,iBAAiB,EAAE,KAAK;IACxB,eAAe,EAAE,KAAK;IACtB,YAAY,EAAE,KAAK;IACnB,WAAW,EAAE,KAAK;IAClB,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,KAAK;IAChB,mBAAmB,EAAE,KAAK;IAC1B,mBAAmB,EAAE,KAAK;IAC1B,cAAc,EAAE,KAAK;IACrB,UAAU,EAAE,KAAK;IACjB,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,KAAK;IACpB,QAAQ,EAAE,KAAK;IACf,cAAc,EAAE,KAAK;IACrB,kBAAkB,EAAE,KAAK;IACzB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,IAAI;IACf,cAAc,EAAE,KAAK;IACrB,WAAW,EAAE,IAAI;IACjB,oBAAoB,EAAE,KAAK;IAC3B,iBAAiB,EAAE,KAAK;CAChB,CAAA;AAEV,qEAAqE;AACrE,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAC1B,CAAA;AAOV,oDAAoD;AACpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,WAAW,CAAU,CAAA"}
1
+ {"version":3,"file":"pikku-services.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-services.gen.ts"],"names":[],"mappings":"AAMA,0EAA0E;AAC1E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,iBAAiB,EAAE,KAAK;IACxB,eAAe,EAAE,KAAK;IACtB,aAAa,EAAE,KAAK;IACpB,YAAY,EAAE,KAAK;IACnB,WAAW,EAAE,KAAK;IAClB,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,KAAK;IACjB,MAAM,EAAE,KAAK;IACb,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,KAAK;IAChB,iBAAiB,EAAE,KAAK;IACxB,mBAAmB,EAAE,KAAK;IAC1B,mBAAmB,EAAE,KAAK;IAC1B,cAAc,EAAE,KAAK;IACrB,UAAU,EAAE,KAAK;IACjB,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,KAAK;IACpB,QAAQ,EAAE,KAAK;IACf,cAAc,EAAE,KAAK;IACrB,kBAAkB,EAAE,KAAK;IACzB,QAAQ,EAAE,IAAI;IACd,cAAc,EAAE,KAAK;IACrB,SAAS,EAAE,IAAI;IACf,cAAc,EAAE,KAAK;IACrB,WAAW,EAAE,IAAI;IACjB,gBAAgB,EAAE,KAAK;IACvB,oBAAoB,EAAE,KAAK;IAC3B,iBAAiB,EAAE,KAAK;CAChB,CAAA;AAEV,qEAAqE;AACrE,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAC1B,CAAA;AAOV,oDAAoD;AACpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,WAAW,CAAU,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
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.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  /**
5
5
  * Main type export hub - re-exports all wiring-specific types
@@ -8,5 +8,6 @@ export * from './function/pikku-function-types.gen.js';
8
8
  export * from './trigger/pikku-trigger-types.gen.js';
9
9
  export * from './console/pikku-node-types.gen.js';
10
10
  export * from './secrets/pikku-secret-types.gen.js';
11
+ export * from './scopes/pikku-scope-types.gen.js';
11
12
  export * from './addon/pikku-addon-types.gen.js';
12
13
  //# sourceMappingURL=pikku-types.gen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-types.gen.d.ts","sourceRoot":"","sources":["../../.pikku/pikku-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAGH,cAAc,wCAAwC,CAAA;AAGtD,cAAc,sCAAsC,CAAA;AAGpD,cAAc,mCAAmC,CAAA;AAGjD,cAAc,qCAAqC,CAAA;AAGnD,cAAc,kCAAkC,CAAA"}
1
+ {"version":3,"file":"pikku-types.gen.d.ts","sourceRoot":"","sources":["../../.pikku/pikku-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAGH,cAAc,wCAAwC,CAAA;AAGtD,cAAc,sCAAsC,CAAA;AAGpD,cAAc,mCAAmC,CAAA;AAGjD,cAAc,qCAAqC,CAAA;AAGnD,cAAc,mCAAmC,CAAA;AAGjD,cAAc,kCAAkC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  /**
5
5
  * Main type export hub - re-exports all wiring-specific types
@@ -12,6 +12,8 @@ export * from './trigger/pikku-trigger-types.gen.js';
12
12
  export * from './console/pikku-node-types.gen.js';
13
13
  // Secret definition types
14
14
  export * from './secrets/pikku-secret-types.gen.js';
15
+ // Scope definition types
16
+ export * from './scopes/pikku-scope-types.gen.js';
15
17
  // Addon types
16
18
  export * from './addon/pikku-addon-types.gen.js';
17
19
  //# sourceMappingURL=pikku-types.gen.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-types.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,kDAAkD;AAClD,cAAc,wCAAwC,CAAA;AAEtD,uBAAuB;AACvB,cAAc,sCAAsC,CAAA;AAEpD,oBAAoB;AACpB,cAAc,mCAAmC,CAAA;AAEjD,0BAA0B;AAC1B,cAAc,qCAAqC,CAAA;AAEnD,cAAc;AACd,cAAc,kCAAkC,CAAA"}
1
+ {"version":3,"file":"pikku-types.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,kDAAkD;AAClD,cAAc,wCAAwC,CAAA;AAEtD,uBAAuB;AACvB,cAAc,sCAAsC,CAAA;AAEpD,oBAAoB;AACpB,cAAc,mCAAmC,CAAA;AAEjD,0BAA0B;AAC1B,cAAc,qCAAqC,CAAA;AAEnD,yBAAyB;AACzB,cAAc,mCAAmC,CAAA;AAEjD,cAAc;AACd,cAAc,kCAAkC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
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'
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  /**
5
5
  * Queue-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  /**
5
5
  * Queue-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  /**
5
5
  * Queue-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  /**
5
5
  * This provides the structure needed for typescript to be aware of RPCs and their return types
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  /**
5
5
  * This provides the structure needed for typescript to be aware of RPCs and their return types
@@ -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
+
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/internal';
5
5
  import metaData from './pikku-rpc-wirings-meta.internal.gen.json' with { type: 'json' };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.96
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/internal'
5
5
  import metaData from './pikku-rpc-wirings-meta.internal.gen.json' with { type: 'json' }
@@ -0,0 +1,2 @@
1
+ import '../function/pikku-functions-meta.gen.js';
2
+ //# sourceMappingURL=pikku-scenario-functions-meta.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-scenario-functions-meta.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scenarios/pikku-scenario-functions-meta.gen.ts"],"names":[],"mappings":"AAKA,OAAO,yCAAyC,CAAA"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.96
3
+ */
4
+ import { pikkuState } from '@pikku/core/internal';
5
+ import '../function/pikku-functions-meta.gen.js';
6
+ import metaData from './pikku-scenario-functions-meta.gen.json' with { type: 'json' };
7
+ pikkuState('@pikku/addon-ollama', 'function', 'meta', {
8
+ ...pikkuState('@pikku/addon-ollama', 'function', 'meta'),
9
+ ...metaData,
10
+ });
11
+ //# sourceMappingURL=pikku-scenario-functions-meta.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-scenario-functions-meta.gen.js","sourceRoot":"","sources":["../../../.pikku/scenarios/pikku-scenario-functions-meta.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,yCAAyC,CAAA;AAChD,OAAO,QAAQ,MAAM,0CAA0C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAErF,UAAU,CAAC,qBAAqB,EAAE,UAAU,EAAE,MAAM,EAAE;IACpD,GAAG,UAAU,CAAC,qBAAqB,EAAE,UAAU,EAAE,MAAM,CAAC;IACxD,GAAI,QAA0B;CAC/B,CAAC,CAAA"}