@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
@@ -0,0 +1,58 @@
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, ScopeDefinitionsMeta } from '@pikku/core/scope'
8
+ import { flattenScopeDefinitions } from '@pikku/core/scope'
9
+ import definitions from './pikku-scopes-meta.gen.json' with { type: 'json' }
10
+
11
+ /**
12
+ * Every scope a function can require.
13
+ *
14
+ * A `:*` entry requires the scope and all of its descendants. Held grants are
15
+ * matched against this by `verifyScopes` — `admin:*` on a session satisfies
16
+ * any `admin:...` requirement.
17
+ */
18
+ export type ScopeId = never
19
+
20
+ export interface ScopeMeta {
21
+ id: ScopeId
22
+ displayName?: string
23
+ description?: string
24
+ }
25
+
26
+ /**
27
+ * The declared scope set, for a ScopeService to sync into its store.
28
+ *
29
+ * Derived from the metadata sidecar rather than inlined, so that the import
30
+ * above forces tsc to emit the .json alongside this file. An addon publishes
31
+ * only its compiled output, and a host reads that .json to merge the addon's
32
+ * scopes into its own `ScopeId` union and declared set — an uncopied sidecar
33
+ * would leave the addon's scopes ungrantable.
34
+ *
35
+ * Additive: removing a declaration leaves an inert row rather than revoking a
36
+ * grant mid-deploy. Use `pikku scopes prune` to remove them deliberately.
37
+ */
38
+ export const SCOPES: FlatScope[] = flattenScopeDefinitions(
39
+ Object.values(definitions as ScopeDefinitionsMeta)
40
+ )
41
+
42
+ const DISPLAY_NAMES: Record<string, string> = {
43
+
44
+ }
45
+
46
+ /** Declared scopes, keyed by id. Rendered by the console when granting. */
47
+ export const SCOPES_META: Record<string, ScopeMeta> = Object.fromEntries(
48
+ SCOPES.map((scope) => [
49
+ scope.id,
50
+ {
51
+ id: scope.id as ScopeId,
52
+ ...(DISPLAY_NAMES[scope.id]
53
+ ? { displayName: DISPLAY_NAMES[scope.id] }
54
+ : {}),
55
+ ...(scope.description ? { description: scope.description } : {}),
56
+ },
57
+ ])
58
+ )
@@ -1,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
- export { wireSecret } from '@pikku/core/secret';
4
+ export { defineSecret } from '@pikku/core/secret';
5
5
  export type { CoreSecret, SecretDefinitionMeta, SecretDefinitionsMeta } from '@pikku/core/secret';
6
6
  //# sourceMappingURL=pikku-secret-types.gen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-secret-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secret-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,YAAY,EAAE,UAAU,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA"}
1
+ {"version":3,"file":"pikku-secret-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secret-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,YAAY,EAAE,UAAU,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,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.103
3
3
  */
4
- export { wireSecret } from '@pikku/core/secret';
4
+ export { defineSecret } from '@pikku/core/secret';
5
5
  //# sourceMappingURL=pikku-secret-types.gen.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-secret-types.gen.js","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secret-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA"}
1
+ {"version":3,"file":"pikku-secret-types.gen.js","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secret-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,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.103
3
3
  */
4
- export { wireSecret } from '@pikku/core/secret'
4
+ export { defineSecret } from '@pikku/core/secret'
5
5
  export type { CoreSecret, SecretDefinitionMeta, SecretDefinitionsMeta } from '@pikku/core/secret'
@@ -1,8 +1,18 @@
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 { TypedSecretService as CoreTypedSecretService } from '@pikku/core/services';
5
5
  import type { SecretService } from '@pikku/core/services';
6
+ import type { SecretDefinitionsMeta } from '@pikku/core/secret';
7
+ /**
8
+ * Every secret declared in this package.
9
+ *
10
+ * Read from the metadata sidecar rather than inlined, so that the import above
11
+ * forces tsc to emit the .json alongside this file. An addon publishes only its
12
+ * compiled output, and a host reads that .json to discover the addon's declared
13
+ * secrets — an uncopied sidecar leaves them invisible to the host.
14
+ */
15
+ export declare const SECRETS_META: SecretDefinitionsMeta;
6
16
  export interface CredentialsMap {
7
17
  }
8
18
  export type SecretId = keyof CredentialsMap;
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-secrets.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secrets.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,IAAI,sBAAsB,EAAuB,MAAM,sBAAsB,CAAA;AACxG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,MAAM,WAAW,cAAc;CAE9B;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,cAAc,CAAA;AAM3C,qBAAa,kBAAmB,SAAQ,sBAAsB,CAAC,cAAc,CAAC;gBAChE,OAAO,EAAE,aAAa;CAGnC"}
1
+ {"version":3,"file":"pikku-secrets.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secrets.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,IAAI,sBAAsB,EAAuB,MAAM,sBAAsB,CAAA;AACxG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAG/D;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,EAAE,qBACW,CAAA;AAEtC,MAAM,WAAW,cAAc;CAE9B;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,cAAc,CAAA;AAM3C,qBAAa,kBAAmB,SAAQ,sBAAsB,CAAC,cAAc,CAAC;gBAChE,OAAO,EAAE,aAAa;CAGnC"}
@@ -1,7 +1,17 @@
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 { TypedSecretService as CoreTypedSecretService } from '@pikku/core/services';
5
+ import secretsMeta from './pikku-secrets-meta.gen.json' with { type: 'json' };
6
+ /**
7
+ * Every secret declared in this package.
8
+ *
9
+ * Read from the metadata sidecar rather than inlined, so that the import above
10
+ * forces tsc to emit the .json alongside this file. An addon publishes only its
11
+ * compiled output, and a host reads that .json to discover the addon's declared
12
+ * secrets — an uncopied sidecar leaves them invisible to the host.
13
+ */
14
+ export const SECRETS_META = secretsMeta;
5
15
  const CREDENTIALS_META = {};
6
16
  export class TypedSecretService extends CoreTypedSecretService {
7
17
  constructor(secrets) {
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-secrets.gen.js","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secrets.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,IAAI,sBAAsB,EAAuB,MAAM,sBAAsB,CAAA;AASxG,MAAM,gBAAgB,GAAmC,EAExD,CAAA;AAED,MAAM,OAAO,kBAAmB,SAAQ,sBAAsC;IAC5E,YAAY,OAAsB;QAChC,KAAK,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAA;IAClC,CAAC;CACF"}
1
+ {"version":3,"file":"pikku-secrets.gen.js","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secrets.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,IAAI,sBAAsB,EAAuB,MAAM,sBAAsB,CAAA;AAGxG,OAAO,WAAW,MAAM,+BAA+B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAE7E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,YAAY,GACvB,WAAoC,CAAA;AAQtC,MAAM,gBAAgB,GAAmC,EAExD,CAAA;AAED,MAAM,OAAO,kBAAmB,SAAQ,sBAAsC;IAC5E,YAAY,OAAsB;QAChC,KAAK,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAA;IAClC,CAAC;CACF"}
@@ -1,8 +1,21 @@
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 { TypedSecretService as CoreTypedSecretService, type CredentialMeta } from '@pikku/core/services'
5
5
  import type { SecretService } from '@pikku/core/services'
6
+ import type { SecretDefinitionsMeta } from '@pikku/core/secret'
7
+ import secretsMeta from './pikku-secrets-meta.gen.json' with { type: 'json' }
8
+
9
+ /**
10
+ * Every secret declared in this package.
11
+ *
12
+ * Read from the metadata sidecar rather than inlined, so that the import above
13
+ * forces tsc to emit the .json alongside this file. An addon publishes only its
14
+ * compiled output, and a host reads that .json to discover the addon's declared
15
+ * secrets — an uncopied sidecar leaves them invisible to the host.
16
+ */
17
+ export const SECRETS_META: SecretDefinitionsMeta =
18
+ secretsMeta as SecretDefinitionsMeta
6
19
 
7
20
  export interface CredentialsMap {
8
21
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.55
2
+ * This file was generated by @pikku/cli@0.12.103
3
3
  */
4
4
  /**
5
5
  * Trigger-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
  * Trigger-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
  * Trigger-specific type definitions for tree-shaking optimization
@@ -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
- export { wireVariable } from '@pikku/core/variable';
4
+ export { defineVariable } from '@pikku/core/variable';
5
5
  export type { CoreVariable, VariableDefinitionMeta, VariableDefinitionsMeta } from '@pikku/core/variable';
6
6
  //# sourceMappingURL=pikku-variable-types.gen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-variable-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/variables/pikku-variable-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,YAAY,EAAE,YAAY,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA"}
1
+ {"version":3,"file":"pikku-variable-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/variables/pikku-variable-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,YAAY,EAAE,YAAY,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,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.103
3
3
  */
4
- export { wireVariable } from '@pikku/core/variable';
4
+ export { defineVariable } from '@pikku/core/variable';
5
5
  //# sourceMappingURL=pikku-variable-types.gen.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-variable-types.gen.js","sourceRoot":"","sources":["../../../.pikku/variables/pikku-variable-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA"}
1
+ {"version":3,"file":"pikku-variable-types.gen.js","sourceRoot":"","sources":["../../../.pikku/variables/pikku-variable-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,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.103
3
3
  */
4
- export { wireVariable } from '@pikku/core/variable'
4
+ export { defineVariable } from '@pikku/core/variable'
5
5
  export type { CoreVariable, VariableDefinitionMeta, VariableDefinitionsMeta } from '@pikku/core/variable'
@@ -1,10 +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.103
3
3
  */
4
4
  import { TypedVariablesService as CoreTypedVariablesService } from '@pikku/core/services';
5
5
  import type { VariablesService } from '@pikku/core/services';
6
+ import type { VariableDefinitionsMeta } from '@pikku/core/variable';
6
7
  import type { z } from 'zod';
7
8
  import { ollamaBaseUrlSchema } from '../../src/ollama.variable.js';
9
+ /**
10
+ * Every variable declared in this package.
11
+ *
12
+ * Read from the metadata sidecar rather than inlined, so that the import above
13
+ * forces tsc to emit the .json alongside this file. An addon publishes only its
14
+ * compiled output, and a host reads that .json to discover the addon's declared
15
+ * variables — an uncopied sidecar leaves them invisible to the host.
16
+ */
17
+ export declare const VARIABLES_META: VariableDefinitionsMeta;
8
18
  export interface VariablesMap {
9
19
  'OLLAMA_BASE_URL': z.infer<typeof ollamaBaseUrlSchema>;
10
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-variables.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/variables/pikku-variables.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,qBAAqB,IAAI,yBAAyB,EAAqB,MAAM,sBAAsB,CAAA;AAC5G,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAC5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AAElE,MAAM,WAAW,YAAY;IAC3B,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;CACvD;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,YAAY,CAAA;AAM3C,qBAAa,qBAAsB,SAAQ,yBAAyB,CAAC,YAAY,CAAC;gBACpE,SAAS,EAAE,gBAAgB;CAGxC"}
1
+ {"version":3,"file":"pikku-variables.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/variables/pikku-variables.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,qBAAqB,IAAI,yBAAyB,EAAqB,MAAM,sBAAsB,CAAA;AAC5G,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAEnE,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAC5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AAElE;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,EAAE,uBACa,CAAA;AAE1C,MAAM,WAAW,YAAY;IAC3B,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;CACvD;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,YAAY,CAAA;AAM3C,qBAAa,qBAAsB,SAAQ,yBAAyB,CAAC,YAAY,CAAC;gBACpE,SAAS,EAAE,gBAAgB;CAGxC"}
@@ -1,13 +1,23 @@
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 { TypedVariablesService as CoreTypedVariablesService } from '@pikku/core/services';
5
- const VARIABLES_META = {
6
- 'OLLAMA_BASE_URL': { name: 'ollama_base_url', displayName: 'Ollama Base URL' }
5
+ import variablesMeta from './pikku-variables-meta.gen.json' with { type: 'json' };
6
+ /**
7
+ * Every variable declared in this package.
8
+ *
9
+ * Read from the metadata sidecar rather than inlined, so that the import above
10
+ * forces tsc to emit the .json alongside this file. An addon publishes only its
11
+ * compiled output, and a host reads that .json to discover the addon's declared
12
+ * variables — an uncopied sidecar leaves them invisible to the host.
13
+ */
14
+ export const VARIABLES_META = variablesMeta;
15
+ const TYPED_VARIABLES_META = {
16
+ 'OLLAMA_BASE_URL': { name: 'ollama_base_url', displayName: "Ollama Base URL" }
7
17
  };
8
18
  export class TypedVariablesService extends CoreTypedVariablesService {
9
19
  constructor(variables) {
10
- super(variables, VARIABLES_META);
20
+ super(variables, TYPED_VARIABLES_META);
11
21
  }
12
22
  }
13
23
  //# sourceMappingURL=pikku-variables.gen.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-variables.gen.js","sourceRoot":"","sources":["../../../.pikku/variables/pikku-variables.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,qBAAqB,IAAI,yBAAyB,EAAqB,MAAM,sBAAsB,CAAA;AAW5G,MAAM,cAAc,GAAiC;IACnD,iBAAiB,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,WAAW,EAAE,iBAAiB,EAAE;CAC/E,CAAA;AAED,MAAM,OAAO,qBAAsB,SAAQ,yBAAuC;IAChF,YAAY,SAA2B;QACrC,KAAK,CAAC,SAAS,EAAE,cAAc,CAAC,CAAA;IAClC,CAAC;CACF"}
1
+ {"version":3,"file":"pikku-variables.gen.js","sourceRoot":"","sources":["../../../.pikku/variables/pikku-variables.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,qBAAqB,IAAI,yBAAyB,EAAqB,MAAM,sBAAsB,CAAA;AAG5G,OAAO,aAAa,MAAM,iCAAiC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAIjF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,cAAc,GACzB,aAAwC,CAAA;AAQ1C,MAAM,oBAAoB,GAAiC;IACzD,iBAAiB,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,WAAW,EAAE,iBAAiB,EAAE;CAC/E,CAAA;AAED,MAAM,OAAO,qBAAsB,SAAQ,yBAAuC;IAChF,YAAY,SAA2B;QACrC,KAAK,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAA;IACxC,CAAC;CACF"}
@@ -1,23 +1,36 @@
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 { TypedVariablesService as CoreTypedVariablesService, type VariableMeta } from '@pikku/core/services'
5
5
  import type { VariablesService } from '@pikku/core/services'
6
+ import type { VariableDefinitionsMeta } from '@pikku/core/variable'
7
+ import variablesMeta from './pikku-variables-meta.gen.json' with { type: 'json' }
6
8
  import type { z } from 'zod'
7
9
  import { ollamaBaseUrlSchema } from '../../src/ollama.variable.js'
8
10
 
11
+ /**
12
+ * Every variable declared in this package.
13
+ *
14
+ * Read from the metadata sidecar rather than inlined, so that the import above
15
+ * forces tsc to emit the .json alongside this file. An addon publishes only its
16
+ * compiled output, and a host reads that .json to discover the addon's declared
17
+ * variables — an uncopied sidecar leaves them invisible to the host.
18
+ */
19
+ export const VARIABLES_META: VariableDefinitionsMeta =
20
+ variablesMeta as VariableDefinitionsMeta
21
+
9
22
  export interface VariablesMap {
10
23
  'OLLAMA_BASE_URL': z.infer<typeof ollamaBaseUrlSchema>
11
24
  }
12
25
 
13
26
  export type VariableId = keyof VariablesMap
14
27
 
15
- const VARIABLES_META: Record<string, VariableMeta> = {
16
- 'OLLAMA_BASE_URL': { name: 'ollama_base_url', displayName: 'Ollama Base URL' }
28
+ const TYPED_VARIABLES_META: Record<string, VariableMeta> = {
29
+ 'OLLAMA_BASE_URL': { name: 'ollama_base_url', displayName: "Ollama Base URL" }
17
30
  }
18
31
 
19
32
  export class TypedVariablesService extends CoreTypedVariablesService<VariablesMap> {
20
33
  constructor(variables: VariablesService) {
21
- super(variables, VARIABLES_META)
34
+ super(variables, TYPED_VARIABLES_META)
22
35
  }
23
36
  }
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1,17 @@
1
+ import type { HttpPersonasConfig } from '@pikku/core/persona';
2
+ import type { ScenarioPersona, ResolvedPersona } from '@pikku/core/services';
3
+ import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js';
4
+ import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.gen.d.js';
5
+ export declare const personaConfigs: {};
6
+ export type PersonaName = keyof typeof personaConfigs;
7
+ /**
8
+ * The same personas as a list, widened to `ResolvedPersona`. Iterating
9
+ * `personaConfigs` directly yields the literal type of each entry, on which an
10
+ * optional field a persona did not declare does not exist — so a seed reading
11
+ * `roles` off every persona needs this instead.
12
+ */
13
+ export declare const personaList: ResolvedPersona[];
14
+ export type AgentName = keyof AgentMap & string;
15
+ export type TypedPersonas = Record<PersonaName, ScenarioPersona<AgentName, FlattenedRPCMap>>;
16
+ export declare const createPersonas: (options: Omit<HttpPersonasConfig, "personas">) => TypedPersonas;
17
+ //# sourceMappingURL=pikku-personas.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-personas.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/workflow/pikku-personas.gen.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAA;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AAE5E,eAAO,MAAM,cAAc,IAAwD,CAAA;AAEnF,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,cAAc,CAAA;AAErD;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,eAAe,EAAkC,CAAA;AAE3E,MAAM,MAAM,SAAS,GAAG,MAAM,QAAQ,GAAG,MAAM,CAAA;AAC/C,MAAM,MAAM,aAAa,GAAG,MAAM,CAChC,WAAW,EACX,eAAe,CAAC,SAAS,EAAE,eAAe,CAAC,CAC5C,CAAA;AAED,eAAO,MAAM,cAAc,GACzB,SAAS,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,KAC5C,aAIkB,CAAA"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ /** Personas declared with definePersonas() */
5
+ import { createHttpPersonas } from '@pikku/core/persona';
6
+ export const personaConfigs = {};
7
+ /**
8
+ * The same personas as a list, widened to `ResolvedPersona`. Iterating
9
+ * `personaConfigs` directly yields the literal type of each entry, on which an
10
+ * optional field a persona did not declare does not exist — so a seed reading
11
+ * `roles` off every persona needs this instead.
12
+ */
13
+ export const personaList = Object.values(personaConfigs);
14
+ export const createPersonas = (options) => createHttpPersonas({
15
+ ...options,
16
+ personas: personaConfigs,
17
+ });
18
+ //# sourceMappingURL=pikku-personas.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-personas.gen.js","sourceRoot":"","sources":["../../../.pikku/workflow/pikku-personas.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,8CAA8C;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAMxD,MAAM,CAAC,MAAM,cAAc,GAAG,EAAqD,CAAA;AAInF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAsB,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAA;AAQ3E,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,OAA6C,EAC9B,EAAE,CACjB,kBAAkB,CAAC;IACjB,GAAG,OAAO;IACV,QAAQ,EAAE,cAAc;CACzB,CAAkB,CAAA"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ /** Personas declared with definePersonas() */
5
+ import { createHttpPersonas } from '@pikku/core/persona'
6
+ import type { HttpPersonasConfig } from '@pikku/core/persona'
7
+ import type { ScenarioPersona, ResolvedPersona } from '@pikku/core/services'
8
+ import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
9
+ import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.gen.d.js'
10
+
11
+ export const personaConfigs = {} as const satisfies Record<string, ResolvedPersona>
12
+
13
+ export type PersonaName = keyof typeof personaConfigs
14
+
15
+ /**
16
+ * The same personas as a list, widened to `ResolvedPersona`. Iterating
17
+ * `personaConfigs` directly yields the literal type of each entry, on which an
18
+ * optional field a persona did not declare does not exist — so a seed reading
19
+ * `roles` off every persona needs this instead.
20
+ */
21
+ export const personaList: ResolvedPersona[] = Object.values(personaConfigs)
22
+
23
+ export type AgentName = keyof AgentMap & string
24
+ export type TypedPersonas = Record<
25
+ PersonaName,
26
+ ScenarioPersona<AgentName, FlattenedRPCMap>
27
+ >
28
+
29
+ export const createPersonas = (
30
+ options: Omit<HttpPersonasConfig, 'personas'>
31
+ ): TypedPersonas =>
32
+ createHttpPersonas({
33
+ ...options,
34
+ personas: personaConfigs,
35
+ }) as TypedPersonas
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.103
3
+ */
4
+ /**
5
+ * Scenario step map: the names `scenario.given/when/then` accepts, with
6
+ * the input and output types of each step.
7
+ */
8
+
9
+
10
+
11
+
12
+ interface ScenarioStepHandler<I, O> {
13
+ input: I;
14
+ output: O;
15
+ }
16
+
17
+ export type FlattenedScenarioStepMap = {
18
+ };
@@ -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
  * Workflow type map with input/output types for each workflow