@pikku/addon-ollama 0.1.2 → 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 (228) 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 +8 -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 +17 -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-addon-meta.gen.json +4 -1
  23. package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
  24. package/dist/.pikku/console/pikku-node-types.gen.ts +1 -1
  25. package/dist/.pikku/function/pikku-function-types.gen.d.ts +76 -64
  26. package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
  27. package/dist/.pikku/function/pikku-function-types.gen.js +30 -13
  28. package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
  29. package/dist/.pikku/function/pikku-function-types.gen.ts +127 -79
  30. package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +8 -0
  31. package/dist/.pikku/function/pikku-functions-meta.gen.js +2 -2
  32. package/dist/.pikku/function/pikku-functions-meta.gen.js.map +1 -1
  33. package/dist/.pikku/function/pikku-functions-meta.gen.json +28 -4
  34. package/dist/.pikku/function/pikku-functions-meta.gen.ts +2 -2
  35. package/dist/.pikku/function/pikku-functions.gen.js +1 -1
  36. package/dist/.pikku/function/pikku-functions.gen.ts +1 -1
  37. package/dist/.pikku/http/pikku-http-types.gen.d.ts +2 -24
  38. package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -1
  39. package/dist/.pikku/http/pikku-http-types.gen.js +2 -24
  40. package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -1
  41. package/dist/.pikku/http/pikku-http-types.gen.ts +3 -31
  42. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
  43. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
  44. package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +1 -1
  45. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +10 -0
  46. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts.map +1 -0
  47. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +10 -0
  48. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js.map +1 -0
  49. package/dist/.pikku/pikku-bootstrap-scenarios.gen.ts +9 -0
  50. package/dist/.pikku/pikku-bootstrap.gen.d.ts +2 -1
  51. package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -1
  52. package/dist/.pikku/pikku-bootstrap.gen.js +2 -1
  53. package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -1
  54. package/dist/.pikku/pikku-bootstrap.gen.ts +2 -1
  55. package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
  56. package/dist/.pikku/pikku-meta-service.gen.js +1 -1
  57. package/dist/.pikku/pikku-meta-service.gen.ts +1 -1
  58. package/dist/.pikku/pikku-services.gen.d.ts +7 -1
  59. package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
  60. package/dist/.pikku/pikku-services.gen.js +6 -0
  61. package/dist/.pikku/pikku-services.gen.js.map +1 -1
  62. package/dist/.pikku/pikku-services.gen.ts +7 -1
  63. package/dist/.pikku/pikku-types.gen.d.ts +2 -1
  64. package/dist/.pikku/pikku-types.gen.d.ts.map +1 -1
  65. package/dist/.pikku/pikku-types.gen.js +3 -1
  66. package/dist/.pikku/pikku-types.gen.js.map +1 -1
  67. package/dist/.pikku/pikku-types.gen.ts +4 -1
  68. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
  69. package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
  70. package/dist/.pikku/queue/pikku-queue-types.gen.ts +1 -1
  71. package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +2 -7
  72. package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +2 -7
  73. package/{.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts → dist/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts} +2 -7
  74. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +2 -2
  75. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -1
  76. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +2 -2
  77. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts +2 -0
  78. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +1 -0
  79. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +11 -0
  80. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js.map +1 -0
  81. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.json +1 -0
  82. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.ts +12 -0
  83. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +5 -0
  84. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts.map +1 -0
  85. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js +2 -0
  86. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js.map +1 -0
  87. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.ts +4 -0
  88. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts +2 -0
  89. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +1 -0
  90. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +11 -0
  91. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js.map +1 -0
  92. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts +15 -0
  93. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +5 -0
  94. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts.map +1 -0
  95. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js +2 -0
  96. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js.map +1 -0
  97. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.ts +4 -0
  98. package/dist/.pikku/scenarios/schemas/register.gen.d.ts +5 -0
  99. package/dist/.pikku/scenarios/schemas/register.gen.d.ts.map +1 -0
  100. package/dist/.pikku/scenarios/schemas/register.gen.js +5 -0
  101. package/dist/.pikku/scenarios/schemas/register.gen.js.map +1 -0
  102. package/dist/.pikku/scenarios/schemas/register.gen.ts +4 -0
  103. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
  104. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
  105. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +1 -1
  106. package/dist/.pikku/schemas/register.gen.js +1 -1
  107. package/dist/.pikku/schemas/register.gen.ts +1 -1
  108. package/dist/.pikku/scopes/pikku-personas-meta.gen.json +1 -0
  109. package/dist/.pikku/scopes/pikku-personas.gen.d.ts +37 -0
  110. package/dist/.pikku/scopes/pikku-personas.gen.d.ts.map +1 -0
  111. package/dist/.pikku/scopes/pikku-personas.gen.js +18 -0
  112. package/dist/.pikku/scopes/pikku-personas.gen.js.map +1 -0
  113. package/dist/.pikku/scopes/pikku-personas.gen.ts +52 -0
  114. package/dist/.pikku/scopes/pikku-roles-meta.gen.json +1 -0
  115. package/dist/.pikku/scopes/pikku-roles.gen.d.ts +31 -0
  116. package/dist/.pikku/scopes/pikku-roles.gen.d.ts.map +1 -0
  117. package/dist/.pikku/scopes/pikku-roles.gen.js +19 -0
  118. package/dist/.pikku/scopes/pikku-roles.gen.js.map +1 -0
  119. package/dist/.pikku/scopes/pikku-roles.gen.ts +41 -0
  120. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +8 -0
  121. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts.map +1 -0
  122. package/dist/.pikku/scopes/pikku-scope-types.gen.js +6 -0
  123. package/dist/.pikku/scopes/pikku-scope-types.gen.js.map +1 -0
  124. package/dist/.pikku/scopes/pikku-scope-types.gen.ts +7 -0
  125. package/dist/.pikku/scopes/pikku-scopes-meta.gen.json +1 -0
  126. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +36 -0
  127. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +1 -0
  128. package/dist/.pikku/scopes/pikku-scopes.gen.js +28 -0
  129. package/dist/.pikku/scopes/pikku-scopes.gen.js.map +1 -0
  130. package/dist/.pikku/scopes/pikku-scopes.gen.ts +58 -0
  131. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +2 -2
  132. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +1 -1
  133. package/dist/.pikku/secrets/pikku-secret-types.gen.js +2 -2
  134. package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +1 -1
  135. package/dist/.pikku/secrets/pikku-secret-types.gen.ts +2 -2
  136. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +11 -1
  137. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -1
  138. package/dist/.pikku/secrets/pikku-secrets.gen.js +11 -1
  139. package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -1
  140. package/dist/.pikku/secrets/pikku-secrets.gen.ts +14 -1
  141. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  142. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  143. package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +1 -1
  144. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +2 -2
  145. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +1 -1
  146. package/dist/.pikku/variables/pikku-variable-types.gen.js +2 -2
  147. package/dist/.pikku/variables/pikku-variable-types.gen.js.map +1 -1
  148. package/dist/.pikku/variables/pikku-variable-types.gen.ts +2 -2
  149. package/dist/.pikku/variables/pikku-variables.gen.d.ts +11 -1
  150. package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -1
  151. package/dist/.pikku/variables/pikku-variables.gen.js +14 -4
  152. package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -1
  153. package/dist/.pikku/variables/pikku-variables.gen.ts +17 -4
  154. package/dist/.pikku/workflow/personas.gen.json +1 -0
  155. package/dist/.pikku/workflow/pikku-personas.gen.d.ts +17 -0
  156. package/dist/.pikku/workflow/pikku-personas.gen.d.ts.map +1 -0
  157. package/dist/.pikku/workflow/pikku-personas.gen.js +18 -0
  158. package/dist/.pikku/workflow/pikku-personas.gen.js.map +1 -0
  159. package/dist/.pikku/workflow/pikku-personas.gen.ts +35 -0
  160. package/dist/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +18 -0
  161. package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +1 -1
  162. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +263 -5
  163. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
  164. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +62 -1
  165. package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
  166. package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +435 -5
  167. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +2 -2
  168. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -1
  169. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +4 -4
  170. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  171. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  172. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
  173. package/dist/src/functions/embeddings/embed-many.function.d.ts +2 -2
  174. package/dist/src/functions/embeddings/embed-many.function.d.ts.map +1 -1
  175. package/dist/src/functions/embeddings/embed.function.d.ts +2 -2
  176. package/dist/src/functions/embeddings/embed.function.d.ts.map +1 -1
  177. package/dist/src/functions/text/generate-object.function.d.ts +6 -6
  178. package/dist/src/functions/text/generate-object.function.d.ts.map +1 -1
  179. package/dist/src/functions/text/generate.function.d.ts +2 -2
  180. package/dist/src/functions/text/generate.function.d.ts.map +1 -1
  181. package/dist/src/ollama.variable.js +2 -2
  182. package/dist/src/ollama.variable.js.map +1 -1
  183. package/dist/types/application-types.d.ts +17 -0
  184. package/package.json +6 -7
  185. package/.pikku/addon/pikku-addon-types.gen.ts +0 -105
  186. package/.pikku/addon/pikku-package.gen.ts +0 -11
  187. package/.pikku/agent/pikku-agent-map.gen.d.ts +0 -4
  188. package/.pikku/agent/pikku-agent-types.gen.ts +0 -82
  189. package/.pikku/channel/pikku-channel-types.gen.ts +0 -177
  190. package/.pikku/console/pikku-addon-meta.gen.json +0 -58
  191. package/.pikku/console/pikku-node-types.gen.ts +0 -8
  192. package/.pikku/function/pikku-function-types.gen.ts +0 -754
  193. package/.pikku/function/pikku-functions-meta-verbose.gen.json +0 -118
  194. package/.pikku/function/pikku-functions-meta.gen.json +0 -78
  195. package/.pikku/function/pikku-functions-meta.gen.ts +0 -7
  196. package/.pikku/function/pikku-functions.gen.ts +0 -14
  197. package/.pikku/http/pikku-http-types.gen.ts +0 -147
  198. package/.pikku/mcp/pikku-mcp-types.gen.ts +0 -183
  199. package/.pikku/pikku-bootstrap.gen.ts +0 -8
  200. package/.pikku/pikku-meta-service.gen.ts +0 -10
  201. package/.pikku/pikku-services.gen.ts +0 -45
  202. package/.pikku/pikku-types.gen.ts +0 -21
  203. package/.pikku/queue/pikku-queue-types.gen.ts +0 -27
  204. package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +0 -211
  205. package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +0 -6
  206. package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +0 -6
  207. package/.pikku/scheduler/pikku-scheduler-types.gen.ts +0 -25
  208. package/.pikku/schemas/register.gen.ts +0 -39
  209. package/.pikku/schemas/schemas/OllamaEmbedInput.schema.json +0 -1
  210. package/.pikku/schemas/schemas/OllamaEmbedManyInput.schema.json +0 -1
  211. package/.pikku/schemas/schemas/OllamaEmbedManyOutput.schema.json +0 -1
  212. package/.pikku/schemas/schemas/OllamaEmbedOutput.schema.json +0 -1
  213. package/.pikku/schemas/schemas/OllamaGenerateObjectInput.schema.json +0 -1
  214. package/.pikku/schemas/schemas/OllamaGenerateObjectOutput.schema.json +0 -1
  215. package/.pikku/schemas/schemas/OllamaGenerateTextInput.schema.json +0 -1
  216. package/.pikku/schemas/schemas/OllamaGenerateTextOutput.schema.json +0 -1
  217. package/.pikku/schemas/schemas/VariableSchema_ollama_base_url.schema.json +0 -1
  218. package/.pikku/secrets/pikku-secret-types.gen.ts +0 -5
  219. package/.pikku/secrets/pikku-secrets.gen.ts +0 -21
  220. package/.pikku/trigger/pikku-trigger-types.gen.ts +0 -160
  221. package/.pikku/variables/pikku-variable-types.gen.ts +0 -5
  222. package/.pikku/variables/pikku-variables-meta.gen.json +0 -10
  223. package/.pikku/variables/pikku-variables.gen.ts +0 -23
  224. package/.pikku/workflow/pikku-workflow-map.gen.d.ts +0 -38
  225. package/.pikku/workflow/pikku-workflow-types.gen.ts +0 -167
  226. package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +0 -9
  227. package/.pikku/workflow/pikku-workflow-wirings.gen.ts +0 -3
  228. /package/{.pikku/secrets/pikku-secrets-meta.gen.json → dist/.pikku/scenarios/features.gen.json} +0 -0
@@ -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.103
3
3
  */
4
4
  /**
5
5
  * This provides the structure needed for typescript to be aware of RPCs and their return types
@@ -169,12 +169,7 @@ type FlattenedAgentMap = AgentMap
169
169
 
170
170
 
171
171
  import type { PikkuRPC } from '@pikku/core/rpc'
172
-
173
- interface AIAgentInput {
174
- message: string
175
- threadId: string
176
- resourceId: string
177
- }
172
+ import type { AIAgentInput } from '@pikku/core/ai-agent'
178
173
 
179
174
  export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
180
175
  name: Name,
@@ -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.103
3
3
  */
4
4
  /**
5
5
  * This provides the structure needed for typescript to be aware of RPCs and their return types
@@ -165,12 +165,7 @@ type FlattenedAgentMap = AgentMap
165
165
 
166
166
 
167
167
  import type { PikkuRPC } from '@pikku/core/rpc'
168
-
169
- interface AIAgentInput {
170
- message: string
171
- threadId: string
172
- resourceId: string
173
- }
168
+ import type { AIAgentInput } from '@pikku/core/ai-agent'
174
169
 
175
170
  export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
176
171
  name: Name,
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.103
3
3
  */
4
- import { pikkuState } from '@pikku/core/internal';
4
+ import { pikkuState } from '@pikku/core/ecosystem';
5
5
  import metaData from './pikku-rpc-wirings-meta.internal.gen.json' with { type: 'json' };
6
6
  pikkuState('@pikku/addon-ollama', 'rpc', 'meta', metaData);
7
7
  //# sourceMappingURL=pikku-rpc-wirings-meta.internal.gen.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-rpc-wirings-meta.internal.gen.js","sourceRoot":"","sources":["../../../.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,QAAQ,MAAM,4CAA4C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACvF,UAAU,CAAC,qBAAqB,EAAE,KAAK,EAAE,MAAM,EAAE,QAAkC,CAAC,CAAA"}
1
+ {"version":3,"file":"pikku-rpc-wirings-meta.internal.gen.js","sourceRoot":"","sources":["../../../.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,QAAQ,MAAM,4CAA4C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACvF,UAAU,CAAC,qBAAqB,EAAE,KAAK,EAAE,MAAM,EAAE,QAAkC,CAAC,CAAA"}
@@ -1,6 +1,6 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.103
3
3
  */
4
- import { pikkuState } from '@pikku/core/internal'
4
+ import { pikkuState } from '@pikku/core/ecosystem'
5
5
  import metaData from './pikku-rpc-wirings-meta.internal.gen.json' with { type: 'json' }
6
6
  pikkuState('@pikku/addon-ollama', 'rpc', 'meta', metaData as Record<string, string>)
@@ -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.103
3
+ */
4
+ import { pikkuState } from '@pikku/core/ecosystem';
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,uBAAuB,CAAA;AAElD,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"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ import { pikkuState } from '@pikku/core/ecosystem'
5
+ import type { FunctionsMeta } from '@pikku/core'
6
+ import '../function/pikku-functions-meta.gen.js'
7
+ import metaData from './pikku-scenario-functions-meta.gen.json' with { type: 'json' }
8
+
9
+ pikkuState('@pikku/addon-ollama', 'function', 'meta', {
10
+ ...pikkuState('@pikku/addon-ollama', 'function', 'meta'),
11
+ ...(metaData as FunctionsMeta),
12
+ })
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=pikku-scenario-functions.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-scenario-functions.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scenarios/pikku-scenario-functions.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=pikku-scenario-functions.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-scenario-functions.gen.js","sourceRoot":"","sources":["../../../.pikku/scenarios/pikku-scenario-functions.gen.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ export {}
@@ -0,0 +1,2 @@
1
+ import '../workflow/pikku-workflow-wirings-meta.gen.js';
2
+ //# sourceMappingURL=pikku-scenario-wirings-meta.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-scenario-wirings-meta.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts"],"names":[],"mappings":"AAKA,OAAO,gDAAgD,CAAA"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ import { pikkuState } from '@pikku/core/ecosystem';
5
+ import '../workflow/pikku-workflow-wirings-meta.gen.js';
6
+ const scenariosMeta = {};
7
+ pikkuState('@pikku/addon-ollama', 'workflows', 'meta', {
8
+ ...pikkuState('@pikku/addon-ollama', 'workflows', 'meta'),
9
+ ...scenariosMeta,
10
+ });
11
+ //# sourceMappingURL=pikku-scenario-wirings-meta.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-scenario-wirings-meta.gen.js","sourceRoot":"","sources":["../../../.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAElD,OAAO,gDAAgD,CAAA;AAEvD,MAAM,aAAa,GAAG,EAEG,CAAA;AAEzB,UAAU,CAAC,qBAAqB,EAAE,WAAW,EAAE,MAAM,EAAE;IACrD,GAAG,UAAU,CAAC,qBAAqB,EAAE,WAAW,EAAE,MAAM,CAAC;IACzD,GAAG,aAAa;CACjB,CAAC,CAAA"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ import { pikkuState } from '@pikku/core/ecosystem'
5
+ import type { WorkflowsRuntimeMeta } from '@pikku/core/workflow/types'
6
+ import '../workflow/pikku-workflow-wirings-meta.gen.js'
7
+
8
+ const scenariosMeta = {
9
+
10
+ } as WorkflowsRuntimeMeta
11
+
12
+ pikkuState('@pikku/addon-ollama', 'workflows', 'meta', {
13
+ ...pikkuState('@pikku/addon-ollama', 'workflows', 'meta'),
14
+ ...scenariosMeta,
15
+ })
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=pikku-scenario-wirings.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-scenario-wirings.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scenarios/pikku-scenario-wirings.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=pikku-scenario-wirings.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-scenario-wirings.gen.js","sourceRoot":"","sources":["../../../.pikku/scenarios/pikku-scenario-wirings.gen.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ export {}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ export declare const empty: null;
5
+ //# sourceMappingURL=register.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/scenarios/schemas/register.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,KAAK,MAAO,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ export const empty = null;
5
+ //# sourceMappingURL=register.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register.gen.js","sourceRoot":"","sources":["../../../../.pikku/scenarios/schemas/register.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,IAAI,CAAC"}
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ export const empty = null;
@@ -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.103
3
3
  */
4
4
  /**
5
5
  * Scheduler-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.103
3
3
  */
4
4
  /**
5
5
  * Scheduler-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.103
3
3
  */
4
4
  /**
5
5
  * Scheduler-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.103
3
3
  */
4
4
  import { addSchema } from '@pikku/core/schema';
5
5
  import * as OllamaEmbedInput from './schemas/OllamaEmbedInput.schema.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.103
3
3
  */
4
4
  import { addSchema } from '@pikku/core/schema'
5
5
 
@@ -0,0 +1,37 @@
1
+ import type { CorePersona, PersonaMeta, PersonasMeta } from '@pikku/core/persona';
2
+ import type { SystemRoleName } from './pikku-roles.gen.js';
3
+ /** Every declared persona. */
4
+ export type PersonaId = never;
5
+ /**
6
+ * The personas a virtual user can actually be.
7
+ *
8
+ * Excludes anyone whose only login is a provider account — driving a consent
9
+ * screen needs a human — and anyone declared `runnable: false`, who exists to
10
+ * be acted upon rather than to act.
11
+ */
12
+ export type RunnablePersonaId = never;
13
+ /** Every environment configured in pikku.config.json. */
14
+ export type EnvironmentName = never;
15
+ /**
16
+ * A persona whose roles are checked against `defineSystemRole` and whose
17
+ * environments are checked against the config.
18
+ *
19
+ * Omitting `environments` means every environment except the ones flagged
20
+ * `production: true`. Naming a production one additionally requires
21
+ * `disposition: 'accountable'`, which the type cannot express and `pikku`
22
+ * refuses at build time.
23
+ */
24
+ export type TypedPersona = Omit<CorePersona, 'roles' | 'environments'> & {
25
+ roles?: SystemRoleName[];
26
+ environments?: EnvironmentName[];
27
+ };
28
+ /**
29
+ * Declare the people who use this application.
30
+ *
31
+ * A persona while running is a virtual user; there is no second declaration.
32
+ */
33
+ export declare const definePersonas: (personas: Record<string, TypedPersona>) => void;
34
+ /** Declared personas, keyed by id. Read by the console and `pikku persona`. */
35
+ export declare const PERSONAS: PersonasMeta;
36
+ export declare const PERSONA_LIST: PersonaMeta[];
37
+ //# sourceMappingURL=pikku-personas.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-personas.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-personas.gen.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AACjF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAG1D,8BAA8B;AAC9B,MAAM,MAAM,SAAS,GAAG,KAAK,CAAA;AAE7B;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAA;AAErC,yDAAyD;AACzD,MAAM,MAAM,eAAe,GAAG,KAAK,CAAA;AAEnC;;;;;;;;GAQG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,cAAc,CAAC,GAAG;IACvE,KAAK,CAAC,EAAE,cAAc,EAAE,CAAA;IACxB,YAAY,CAAC,EAAE,eAAe,EAAE,CAAA;CACjC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,UAAU,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,KAAG,IAC1C,CAAA;AAE9B,+EAA+E;AAC/E,eAAO,MAAM,QAAQ,EAAE,YAAqD,CAAA;AAE5E,eAAO,MAAM,YAAY,EAAE,WAAW,EAA4B,CAAA"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ /**
5
+ * This file was generated by the @pikku/cli
6
+ */
7
+ import { definePersonas as definePersonasCore } from '@pikku/core/persona';
8
+ import definitions from './pikku-personas-meta.gen.json' with { type: 'json' };
9
+ /**
10
+ * Declare the people who use this application.
11
+ *
12
+ * A persona while running is a virtual user; there is no second declaration.
13
+ */
14
+ export const definePersonas = (personas) => definePersonasCore(personas);
15
+ /** Declared personas, keyed by id. Read by the console and `pikku persona`. */
16
+ export const PERSONAS = definitions;
17
+ export const PERSONA_LIST = Object.values(PERSONAS);
18
+ //# sourceMappingURL=pikku-personas.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-personas.gen.js","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-personas.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,OAAO,EAAE,cAAc,IAAI,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAG1E,OAAO,WAAW,MAAM,gCAAgC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AA+B9E;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,QAAsC,EAAQ,EAAE,CAC7E,kBAAkB,CAAC,QAAQ,CAAC,CAAA;AAE9B,+EAA+E;AAC/E,MAAM,CAAC,MAAM,QAAQ,GAAiB,WAAsC,CAAA;AAE5E,MAAM,CAAC,MAAM,YAAY,GAAkB,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ /**
5
+ * This file was generated by the @pikku/cli
6
+ */
7
+ import { definePersonas as definePersonasCore } from '@pikku/core/persona'
8
+ import type { CorePersona, PersonaMeta, PersonasMeta } from '@pikku/core/persona'
9
+ import type { SystemRoleName } from './pikku-roles.gen.js'
10
+ import definitions from './pikku-personas-meta.gen.json' with { type: 'json' }
11
+
12
+ /** Every declared persona. */
13
+ export type PersonaId = never
14
+
15
+ /**
16
+ * The personas a virtual user can actually be.
17
+ *
18
+ * Excludes anyone whose only login is a provider account — driving a consent
19
+ * screen needs a human — and anyone declared `runnable: false`, who exists to
20
+ * be acted upon rather than to act.
21
+ */
22
+ export type RunnablePersonaId = never
23
+
24
+ /** Every environment configured in pikku.config.json. */
25
+ export type EnvironmentName = never
26
+
27
+ /**
28
+ * A persona whose roles are checked against `defineSystemRole` and whose
29
+ * environments are checked against the config.
30
+ *
31
+ * Omitting `environments` means every environment except the ones flagged
32
+ * `production: true`. Naming a production one additionally requires
33
+ * `disposition: 'accountable'`, which the type cannot express and `pikku`
34
+ * refuses at build time.
35
+ */
36
+ export type TypedPersona = Omit<CorePersona, 'roles' | 'environments'> & {
37
+ roles?: SystemRoleName[]
38
+ environments?: EnvironmentName[]
39
+ }
40
+
41
+ /**
42
+ * Declare the people who use this application.
43
+ *
44
+ * A persona while running is a virtual user; there is no second declaration.
45
+ */
46
+ export const definePersonas = (personas: Record<string, TypedPersona>): void =>
47
+ definePersonasCore(personas)
48
+
49
+ /** Declared personas, keyed by id. Read by the console and `pikku persona`. */
50
+ export const PERSONAS: PersonasMeta = definitions as unknown as PersonasMeta
51
+
52
+ export const PERSONA_LIST: PersonaMeta[] = Object.values(PERSONAS)
@@ -0,0 +1,31 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ /**
5
+ * This file was generated by the @pikku/cli
6
+ */
7
+ import type { SystemRole } from '@pikku/core/role';
8
+ /**
9
+ * Every role that ships with this application.
10
+ *
11
+ * Roles an admin composes in the console are not here and cannot be: they do
12
+ * not exist at build time, and can be deleted after it.
13
+ */
14
+ export type SystemRoleName = never;
15
+ /**
16
+ * The declared role set, for a ScopeService to sync into its store.
17
+ *
18
+ * Derived from the metadata sidecar rather than inlined, so the import above
19
+ * forces tsc to emit the .json alongside this file — an addon publishes only
20
+ * its compiled output, and a host reads that .json to merge the addon's roles
21
+ * into its own union.
22
+ *
23
+ * Additive on removal: a deleted declaration leaves an inert row rather than
24
+ * revoking everyone's grant on deploy. Use `pikku roles prune` to remove them.
25
+ */
26
+ export declare const SYSTEM_ROLES: SystemRole[];
27
+ /** Declared roles, keyed by name. Rendered by the console when granting. */
28
+ export declare const SYSTEM_ROLES_META: Record<string, SystemRole>;
29
+ /** Whether a role name is declared in code, and therefore not editable. */
30
+ export declare const isSystemRole: (name: string) => boolean;
31
+ //# sourceMappingURL=pikku-roles.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-roles.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-roles.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,OAAO,KAAK,EAAE,UAAU,EAA6B,MAAM,kBAAkB,CAAA;AAI7E;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,CAAA;AAElC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,EAAE,UAAU,EAEpC,CAAA;AAED,4EAA4E;AAC5E,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAExD,CAAA;AAED,2EAA2E;AAC3E,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,KAAG,OACmB,CAAA"}
@@ -0,0 +1,19 @@
1
+ import { flattenSystemRoleDefinitions } from '@pikku/core/role';
2
+ import definitions from './pikku-roles-meta.gen.json' with { type: 'json' };
3
+ /**
4
+ * The declared role set, for a ScopeService to sync into its store.
5
+ *
6
+ * Derived from the metadata sidecar rather than inlined, so the import above
7
+ * forces tsc to emit the .json alongside this file — an addon publishes only
8
+ * its compiled output, and a host reads that .json to merge the addon's roles
9
+ * into its own union.
10
+ *
11
+ * Additive on removal: a deleted declaration leaves an inert row rather than
12
+ * revoking everyone's grant on deploy. Use `pikku roles prune` to remove them.
13
+ */
14
+ export const SYSTEM_ROLES = flattenSystemRoleDefinitions(Object.values(definitions));
15
+ /** Declared roles, keyed by name. Rendered by the console when granting. */
16
+ export const SYSTEM_ROLES_META = Object.fromEntries(SYSTEM_ROLES.map((role) => [role.name, role]));
17
+ /** Whether a role name is declared in code, and therefore not editable. */
18
+ export const isSystemRole = (name) => Object.prototype.hasOwnProperty.call(SYSTEM_ROLES_META, name);
19
+ //# sourceMappingURL=pikku-roles.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-roles.gen.js","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-roles.gen.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAA;AAC/D,OAAO,WAAW,MAAM,6BAA6B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAU3E;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,YAAY,GAAiB,4BAA4B,CACpE,MAAM,CAAC,MAAM,CAAC,WAAwC,CAAC,CACxD,CAAA;AAED,4EAA4E;AAC5E,MAAM,CAAC,MAAM,iBAAiB,GAA+B,MAAM,CAAC,WAAW,CAC7E,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAC9C,CAAA;AAED,2EAA2E;AAC3E,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAY,EAAW,EAAE,CACpD,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAA"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ /**
5
+ * This file was generated by the @pikku/cli
6
+ */
7
+ import type { SystemRole, SystemRoleDefinitionsMeta } from '@pikku/core/role'
8
+ import { flattenSystemRoleDefinitions } from '@pikku/core/role'
9
+ import definitions from './pikku-roles-meta.gen.json' with { type: 'json' }
10
+
11
+ /**
12
+ * Every role that ships with this application.
13
+ *
14
+ * Roles an admin composes in the console are not here and cannot be: they do
15
+ * not exist at build time, and can be deleted after it.
16
+ */
17
+ export type SystemRoleName = never
18
+
19
+ /**
20
+ * The declared role set, for a ScopeService to sync into its store.
21
+ *
22
+ * Derived from the metadata sidecar rather than inlined, so the import above
23
+ * forces tsc to emit the .json alongside this file — an addon publishes only
24
+ * its compiled output, and a host reads that .json to merge the addon's roles
25
+ * into its own union.
26
+ *
27
+ * Additive on removal: a deleted declaration leaves an inert row rather than
28
+ * revoking everyone's grant on deploy. Use `pikku roles prune` to remove them.
29
+ */
30
+ export const SYSTEM_ROLES: SystemRole[] = flattenSystemRoleDefinitions(
31
+ Object.values(definitions as SystemRoleDefinitionsMeta)
32
+ )
33
+
34
+ /** Declared roles, keyed by name. Rendered by the console when granting. */
35
+ export const SYSTEM_ROLES_META: Record<string, SystemRole> = Object.fromEntries(
36
+ SYSTEM_ROLES.map((role) => [role.name, role])
37
+ )
38
+
39
+ /** Whether a role name is declared in code, and therefore not editable. */
40
+ export const isSystemRole = (name: string): boolean =>
41
+ Object.prototype.hasOwnProperty.call(SYSTEM_ROLES_META, name)
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
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';
8
+ //# sourceMappingURL=pikku-scope-types.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-scope-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-scope-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AACxH,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACnD,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAA"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ export { defineScope } from '@pikku/core/scope';
5
+ export { defineSystemRole } from '@pikku/core/role';
6
+ //# sourceMappingURL=pikku-scope-types.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-scope-types.gen.js","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-scope-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ export { defineScope } from '@pikku/core/scope'
5
+ export type { CoreScopes, CoreScopeNode, FlatScope, ScopeDefinitionMeta, ScopeDefinitionsMeta } from '@pikku/core/scope'
6
+ export { defineSystemRole } from '@pikku/core/role'
7
+ export type { CoreSystemRole, CoreSystemRoles, SystemRole, SystemRoleDefinitionMeta, SystemRoleDefinitionsMeta } from '@pikku/core/role'
@@ -0,0 +1,36 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ /**
5
+ * This file was generated by the @pikku/cli
6
+ */
7
+ import type { FlatScope } from '@pikku/core/scope';
8
+ /**
9
+ * Every scope a function can require.
10
+ *
11
+ * A `:*` entry requires the scope and all of its descendants. Held grants are
12
+ * matched against this by `verifyScopes` — `admin:*` on a session satisfies
13
+ * any `admin:...` requirement.
14
+ */
15
+ export type ScopeId = never;
16
+ export interface ScopeMeta {
17
+ id: ScopeId;
18
+ displayName?: string;
19
+ description?: string;
20
+ }
21
+ /**
22
+ * The declared scope set, for a ScopeService to sync into its store.
23
+ *
24
+ * Derived from the metadata sidecar rather than inlined, so that the import
25
+ * above forces tsc to emit the .json alongside this file. An addon publishes
26
+ * only its compiled output, and a host reads that .json to merge the addon's
27
+ * scopes into its own `ScopeId` union and declared set — an uncopied sidecar
28
+ * would leave the addon's scopes ungrantable.
29
+ *
30
+ * Additive: removing a declaration leaves an inert row rather than revoking a
31
+ * grant mid-deploy. Use `pikku scopes prune` to remove them deliberately.
32
+ */
33
+ export declare const SCOPES: FlatScope[];
34
+ /** Declared scopes, keyed by id. Rendered by the console when granting. */
35
+ export declare const SCOPES_META: Record<string, ScopeMeta>;
36
+ //# sourceMappingURL=pikku-scopes.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-scopes.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-scopes.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAwB,MAAM,mBAAmB,CAAA;AAIxE;;;;;;GAMG;AACH,MAAM,MAAM,OAAO,GAAG,KAAK,CAAA;AAE3B,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,OAAO,CAAA;IACX,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,MAAM,EAAE,SAAS,EAE7B,CAAA;AAMD,2EAA2E;AAC3E,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAWjD,CAAA"}
@@ -0,0 +1,28 @@
1
+ import { flattenScopeDefinitions } from '@pikku/core/scope';
2
+ import definitions from './pikku-scopes-meta.gen.json' with { type: 'json' };
3
+ /**
4
+ * The declared scope set, for a ScopeService to sync into its store.
5
+ *
6
+ * Derived from the metadata sidecar rather than inlined, so that the import
7
+ * above forces tsc to emit the .json alongside this file. An addon publishes
8
+ * only its compiled output, and a host reads that .json to merge the addon's
9
+ * scopes into its own `ScopeId` union and declared set — an uncopied sidecar
10
+ * would leave the addon's scopes ungrantable.
11
+ *
12
+ * Additive: removing a declaration leaves an inert row rather than revoking a
13
+ * grant mid-deploy. Use `pikku scopes prune` to remove them deliberately.
14
+ */
15
+ export const SCOPES = flattenScopeDefinitions(Object.values(definitions));
16
+ const DISPLAY_NAMES = {};
17
+ /** Declared scopes, keyed by id. Rendered by the console when granting. */
18
+ export const SCOPES_META = Object.fromEntries(SCOPES.map((scope) => [
19
+ scope.id,
20
+ {
21
+ id: scope.id,
22
+ ...(DISPLAY_NAMES[scope.id]
23
+ ? { displayName: DISPLAY_NAMES[scope.id] }
24
+ : {}),
25
+ ...(scope.description ? { description: scope.description } : {}),
26
+ },
27
+ ]));
28
+ //# sourceMappingURL=pikku-scopes.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-scopes.gen.js","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-scopes.gen.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,WAAW,MAAM,8BAA8B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAiB5E;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,MAAM,GAAgB,uBAAuB,CACxD,MAAM,CAAC,MAAM,CAAC,WAAmC,CAAC,CACnD,CAAA;AAED,MAAM,aAAa,GAA2B,EAE7C,CAAA;AAED,2EAA2E;AAC3E,MAAM,CAAC,MAAM,WAAW,GAA8B,MAAM,CAAC,WAAW,CACtE,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE;IACR;QACE,EAAE,EAAE,KAAK,CAAC,EAAa;QACvB,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,CAAC,CAAC,EAAE,WAAW,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE;YAC1C,CAAC,CAAC,EAAE,CAAC;QACP,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACjE;CACF,CAAC,CACH,CAAA"}