@pikku/addon-meta-conversions 0.1.6 → 0.1.7

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 (269) hide show
  1. package/dist/.pikku/addon/agent/index.d.ts +1 -1
  2. package/dist/.pikku/addon/agent/index.js +1 -1
  3. package/dist/.pikku/addon/agent/index.ts +1 -1
  4. package/dist/.pikku/addon/agent/pikku-agent-map.gen.d.ts +1 -1
  5. package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts +47 -6
  6. package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts.map +1 -1
  7. package/dist/.pikku/addon/agent/pikku-agent-types.gen.js +41 -0
  8. package/dist/.pikku/addon/agent/pikku-agent-types.gen.js.map +1 -1
  9. package/dist/.pikku/addon/agent/pikku-agent-types.gen.ts +42 -1
  10. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +1 -1
  11. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.ts +1 -1
  12. package/dist/.pikku/addon/agent/pikku-scorer-names.gen.d.ts +1 -1
  13. package/dist/.pikku/addon/analytics/index.d.ts +8 -0
  14. package/dist/.pikku/addon/analytics/index.d.ts.map +1 -0
  15. package/dist/.pikku/addon/analytics/index.js +8 -0
  16. package/dist/.pikku/addon/analytics/index.js.map +1 -0
  17. package/dist/.pikku/addon/analytics/index.ts +8 -0
  18. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.d.ts +6 -0
  19. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.d.ts.map +1 -0
  20. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.js +5 -0
  21. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.js.map +1 -0
  22. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.ts +25 -0
  23. package/dist/.pikku/addon/auth/index.d.ts +1 -1
  24. package/dist/.pikku/addon/auth/index.js +1 -1
  25. package/dist/.pikku/addon/auth/index.ts +1 -1
  26. package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts +2 -19
  27. package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts.map +1 -1
  28. package/dist/.pikku/addon/auth/pikku-auth-types.gen.js +2 -19
  29. package/dist/.pikku/addon/auth/pikku-auth-types.gen.js.map +1 -1
  30. package/dist/.pikku/addon/auth/pikku-auth-types.gen.ts +2 -19
  31. package/dist/.pikku/addon/channel/index.d.ts +1 -1
  32. package/dist/.pikku/addon/channel/index.js +1 -1
  33. package/dist/.pikku/addon/channel/index.ts +1 -1
  34. package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts +10 -20
  35. package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts.map +1 -1
  36. package/dist/.pikku/addon/channel/pikku-channel-types.gen.js +7 -1
  37. package/dist/.pikku/addon/channel/pikku-channel-types.gen.js.map +1 -1
  38. package/dist/.pikku/addon/channel/pikku-channel-types.gen.ts +8 -18
  39. package/dist/.pikku/addon/cli/index.d.ts +8 -0
  40. package/dist/.pikku/addon/cli/index.d.ts.map +1 -0
  41. package/dist/.pikku/addon/cli/index.js +8 -0
  42. package/dist/.pikku/addon/cli/index.js.map +1 -0
  43. package/dist/.pikku/addon/cli/index.ts +8 -0
  44. package/dist/.pikku/addon/cli/pikku-cli-types.gen.d.ts +62 -0
  45. package/dist/.pikku/addon/cli/pikku-cli-types.gen.d.ts.map +1 -0
  46. package/dist/.pikku/addon/cli/pikku-cli-types.gen.js +49 -0
  47. package/dist/.pikku/addon/cli/pikku-cli-types.gen.js.map +1 -0
  48. package/dist/.pikku/addon/cli/pikku-cli-types.gen.ts +88 -0
  49. package/dist/.pikku/addon/db/pikku-db-meta.gen.json +1 -0
  50. package/dist/.pikku/addon/error/index.d.ts +1 -1
  51. package/dist/.pikku/addon/error/index.js +1 -1
  52. package/dist/.pikku/addon/error/index.ts +1 -1
  53. package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts +1 -1
  54. package/dist/.pikku/addon/error/pikku-error-types.gen.js +1 -1
  55. package/dist/.pikku/addon/error/pikku-error-types.gen.ts +1 -1
  56. package/dist/.pikku/addon/function/index.d.ts +1 -1
  57. package/dist/.pikku/addon/function/index.js +1 -1
  58. package/dist/.pikku/addon/function/index.ts +1 -1
  59. package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts +46 -46
  60. package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts.map +1 -1
  61. package/dist/.pikku/addon/function/pikku-function-types.gen.js +21 -9
  62. package/dist/.pikku/addon/function/pikku-function-types.gen.js.map +1 -1
  63. package/dist/.pikku/addon/function/pikku-function-types.gen.ts +45 -43
  64. package/dist/.pikku/addon/function/pikku-functions-meta-verbose.gen.json +2 -1
  65. package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +1 -1
  66. package/dist/.pikku/addon/function/pikku-functions-meta.gen.json +1 -0
  67. package/dist/.pikku/addon/function/pikku-functions-meta.gen.ts +1 -1
  68. package/dist/.pikku/addon/function/pikku-functions.gen.js +1 -1
  69. package/dist/.pikku/addon/function/pikku-functions.gen.ts +1 -1
  70. package/dist/.pikku/addon/http/index.d.ts +1 -1
  71. package/dist/.pikku/addon/http/index.js +1 -1
  72. package/dist/.pikku/addon/http/index.ts +1 -1
  73. package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts +3 -1
  74. package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts.map +1 -1
  75. package/dist/.pikku/addon/http/pikku-http-types.gen.js +1 -1
  76. package/dist/.pikku/addon/http/pikku-http-types.gen.js.map +1 -1
  77. package/dist/.pikku/addon/http/pikku-http-types.gen.ts +3 -1
  78. package/dist/.pikku/addon/mcp/index.d.ts +1 -1
  79. package/dist/.pikku/addon/mcp/index.js +1 -1
  80. package/dist/.pikku/addon/mcp/index.ts +1 -1
  81. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts +7 -1
  82. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts.map +1 -1
  83. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js +1 -1
  84. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js.map +1 -1
  85. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.ts +7 -1
  86. package/dist/.pikku/addon/middleware/index.d.ts +1 -1
  87. package/dist/.pikku/addon/middleware/index.js +1 -1
  88. package/dist/.pikku/addon/middleware/index.ts +1 -1
  89. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts +33 -24
  90. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts.map +1 -1
  91. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js +29 -24
  92. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js.map +1 -1
  93. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.ts +33 -24
  94. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts +1 -1
  95. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js +1 -1
  96. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.ts +1 -1
  97. package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts +1 -1
  98. package/dist/.pikku/addon/pikku-bootstrap.gen.js +1 -1
  99. package/dist/.pikku/addon/pikku-bootstrap.gen.ts +1 -1
  100. package/dist/.pikku/addon/pikku-local-services.gen.d.ts +29 -0
  101. package/dist/.pikku/addon/pikku-local-services.gen.d.ts.map +1 -0
  102. package/dist/.pikku/addon/pikku-local-services.gen.js +42 -0
  103. package/dist/.pikku/addon/pikku-local-services.gen.js.map +1 -0
  104. package/dist/.pikku/addon/pikku-local-services.gen.ts +85 -0
  105. package/dist/.pikku/addon/pikku-package.gen.js +1 -1
  106. package/dist/.pikku/addon/pikku-package.gen.ts +1 -1
  107. package/dist/.pikku/addon/pikku-services.gen.d.ts +9 -1
  108. package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -1
  109. package/dist/.pikku/addon/pikku-services.gen.js +8 -0
  110. package/dist/.pikku/addon/pikku-services.gen.js.map +1 -1
  111. package/dist/.pikku/addon/pikku-services.gen.ts +9 -1
  112. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.gen.d.ts +2 -3
  113. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +2 -3
  114. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +2 -3
  115. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  116. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.ts +1 -1
  117. package/dist/.pikku/addon/scenarios/index.d.ts +1 -1
  118. package/dist/.pikku/addon/scenarios/index.js +1 -1
  119. package/dist/.pikku/addon/scenarios/index.ts +1 -1
  120. package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
  121. package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.ts +1 -1
  122. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
  123. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.ts +1 -1
  124. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts +53 -35
  125. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts.map +1 -1
  126. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js +7 -3
  127. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js.map +1 -1
  128. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.ts +57 -40
  129. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
  130. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.ts +1 -1
  131. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
  132. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.ts +1 -1
  133. package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.d.ts +33 -0
  134. package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.d.ts.map +1 -0
  135. package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.js +29 -0
  136. package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.js.map +1 -0
  137. package/dist/.pikku/addon/scenarios/pikku-virtual-users.gen.ts +52 -0
  138. package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts +1 -1
  139. package/dist/.pikku/addon/scenarios/schemas/register.gen.js +1 -1
  140. package/dist/.pikku/addon/scenarios/schemas/register.gen.ts +1 -1
  141. package/dist/.pikku/addon/schemas/register.gen.js +1 -1
  142. package/dist/.pikku/addon/schemas/register.gen.ts +1 -1
  143. package/dist/.pikku/addon/scopes/index.d.ts +2 -1
  144. package/dist/.pikku/addon/scopes/index.d.ts.map +1 -1
  145. package/dist/.pikku/addon/scopes/index.js +2 -1
  146. package/dist/.pikku/addon/scopes/index.js.map +1 -1
  147. package/dist/.pikku/addon/scopes/index.ts +2 -1
  148. package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.d.ts +41 -0
  149. package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.d.ts.map +1 -0
  150. package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.js +35 -0
  151. package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.js.map +1 -0
  152. package/dist/.pikku/addon/scopes/pikku-flags-manifest.gen.ts +52 -0
  153. package/dist/.pikku/addon/scopes/pikku-flags.gen.d.ts +9 -0
  154. package/dist/.pikku/addon/scopes/pikku-flags.gen.d.ts.map +1 -0
  155. package/dist/.pikku/addon/scopes/pikku-flags.gen.js +2 -0
  156. package/dist/.pikku/addon/scopes/pikku-flags.gen.js.map +1 -0
  157. package/dist/.pikku/addon/scopes/pikku-flags.gen.ts +8 -0
  158. package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts +1 -1
  159. package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts.map +1 -1
  160. package/dist/.pikku/addon/scopes/pikku-roles.gen.ts +1 -1
  161. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +2 -1
  162. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts.map +1 -1
  163. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js +2 -1
  164. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js.map +1 -1
  165. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.ts +2 -1
  166. package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts +1 -1
  167. package/dist/.pikku/addon/scopes/pikku-scopes.gen.ts +1 -1
  168. package/dist/.pikku/addon/scopes/pikku-virtual-users-meta.gen.json +1 -0
  169. package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.d.ts +27 -0
  170. package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.d.ts.map +1 -0
  171. package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.js +16 -0
  172. package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.js.map +1 -0
  173. package/dist/.pikku/addon/scopes/pikku-virtual-users.gen.ts +39 -0
  174. package/dist/.pikku/addon/secrets/index.d.ts +1 -1
  175. package/dist/.pikku/addon/secrets/index.js +1 -1
  176. package/dist/.pikku/addon/secrets/index.ts +1 -1
  177. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts +1 -1
  178. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js +1 -1
  179. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.ts +1 -1
  180. package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts +9 -1
  181. package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts.map +1 -1
  182. package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +5 -1
  183. package/dist/.pikku/addon/secrets/pikku-secrets.gen.js.map +1 -1
  184. package/dist/.pikku/addon/secrets/pikku-secrets.gen.ts +9 -1
  185. package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts +1 -1
  186. package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts.map +1 -1
  187. package/dist/.pikku/addon/services/pikku-meta-service.gen.js +1 -1
  188. package/dist/.pikku/addon/services/pikku-meta-service.gen.ts +1 -1
  189. package/dist/.pikku/addon/setup/index.d.ts +1 -1
  190. package/dist/.pikku/addon/setup/index.js +1 -1
  191. package/dist/.pikku/addon/setup/index.ts +1 -1
  192. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts +4 -4
  193. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts.map +1 -1
  194. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js +1 -1
  195. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.ts +1 -1
  196. package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +8 -20
  197. package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts.map +1 -1
  198. package/dist/.pikku/addon/setup/pikku-setup-types.gen.js +11 -19
  199. package/dist/.pikku/addon/setup/pikku-setup-types.gen.js.map +1 -1
  200. package/dist/.pikku/addon/setup/pikku-setup-types.gen.ts +19 -19
  201. package/dist/.pikku/addon/surface-usage.gen.json +326 -16
  202. package/dist/.pikku/addon/trigger/index.d.ts +1 -1
  203. package/dist/.pikku/addon/trigger/index.js +1 -1
  204. package/dist/.pikku/addon/trigger/index.ts +1 -1
  205. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts +64 -1
  206. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts.map +1 -1
  207. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +17 -1
  208. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js.map +1 -1
  209. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.ts +58 -1
  210. package/dist/.pikku/addon/utils/index.d.ts +8 -0
  211. package/dist/.pikku/addon/utils/index.d.ts.map +1 -0
  212. package/dist/.pikku/addon/utils/index.js +8 -0
  213. package/dist/.pikku/addon/utils/index.js.map +1 -0
  214. package/dist/.pikku/addon/utils/index.ts +8 -0
  215. package/dist/.pikku/addon/utils/pikku-utils-types.gen.d.ts +5 -0
  216. package/dist/.pikku/addon/utils/pikku-utils-types.gen.d.ts.map +1 -0
  217. package/dist/.pikku/addon/utils/pikku-utils-types.gen.js +5 -0
  218. package/dist/.pikku/addon/utils/pikku-utils-types.gen.js.map +1 -0
  219. package/dist/.pikku/addon/utils/pikku-utils-types.gen.ts +4 -0
  220. package/dist/.pikku/addon/variables/index.d.ts +1 -1
  221. package/dist/.pikku/addon/variables/index.js +1 -1
  222. package/dist/.pikku/addon/variables/index.ts +1 -1
  223. package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts +1 -1
  224. package/dist/.pikku/addon/variables/pikku-variable-types.gen.js +1 -1
  225. package/dist/.pikku/addon/variables/pikku-variable-types.gen.ts +1 -1
  226. package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts +9 -1
  227. package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts.map +1 -1
  228. package/dist/.pikku/addon/variables/pikku-variables.gen.js +5 -1
  229. package/dist/.pikku/addon/variables/pikku-variables.gen.js.map +1 -1
  230. package/dist/.pikku/addon/variables/pikku-variables.gen.ts +9 -1
  231. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks-meta.gen.json +1 -0
  232. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.d.ts +12 -0
  233. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.d.ts.map +1 -0
  234. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.js +3 -0
  235. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.js.map +1 -0
  236. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.ts +15 -0
  237. package/dist/.pikku/addon/workflow/index.d.ts +1 -1
  238. package/dist/.pikku/addon/workflow/index.js +1 -1
  239. package/dist/.pikku/addon/workflow/index.ts +1 -1
  240. package/dist/.pikku/addon/workflow/pikku-scenario-step-map.gen.d.ts +1 -1
  241. package/dist/.pikku/addon/workflow/pikku-workflow-map.gen.d.ts +1 -1
  242. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts +30 -6
  243. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
  244. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js +8 -1
  245. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js.map +1 -1
  246. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.ts +33 -2
  247. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  248. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.ts +1 -1
  249. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  250. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js +1 -1
  251. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.ts +1 -1
  252. package/dist/.pikku/addon/workflow/virtual-users.gen.json +1 -0
  253. package/dist/.pikku/runs/mvcetam5.all.jsonl +3 -0
  254. package/dist/src/functions/events/send.function.d.ts +21 -21
  255. package/dist/src/functions/events/send.function.d.ts.map +1 -1
  256. package/dist/src/meta-conversions-api.service.d.ts.map +1 -1
  257. package/package.json +5 -5
  258. package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts +0 -18
  259. package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts.map +0 -1
  260. package/dist/.pikku/addon/scenarios/pikku-personas.gen.js +0 -18
  261. package/dist/.pikku/addon/scenarios/pikku-personas.gen.js.map +0 -1
  262. package/dist/.pikku/addon/scenarios/pikku-personas.gen.ts +0 -36
  263. package/dist/.pikku/addon/scopes/pikku-personas.gen.d.ts +0 -29
  264. package/dist/.pikku/addon/scopes/pikku-personas.gen.d.ts.map +0 -1
  265. package/dist/.pikku/addon/scopes/pikku-personas.gen.js +0 -18
  266. package/dist/.pikku/addon/scopes/pikku-personas.gen.js.map +0 -1
  267. package/dist/.pikku/addon/scopes/pikku-personas.gen.ts +0 -41
  268. /package/dist/.pikku/addon/{scopes/pikku-personas-meta.gen.json → analytics/pikku-analytics-meta.gen.json} +0 -0
  269. /package/dist/.pikku/addon/{workflow/personas.gen.json → scopes/pikku-flags-meta.gen.json} +0 -0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  import type {
5
5
  PikkuScenarioWire,
@@ -12,9 +12,9 @@ import type { PikkuFunctionSessionless, PikkuFunctionConfig, WiredServices, Infe
12
12
  import type { PikkuMiddleware } from '../middleware/pikku-middleware-types.gen.js'
13
13
  import type { TypedWorkflow } from '../workflow/pikku-workflow-types.gen.js'
14
14
  import type { FlattenedScenarioStepMap } from '../workflow/pikku-scenario-step-map.gen.d.js'
15
- import type { TypedPersonas } from './pikku-personas.gen.js'
15
+ import type { TypedVirtualUsers } from './pikku-virtual-users.gen.js'
16
16
 
17
- export type { TypedPersonas }
17
+ export type { TypedVirtualUsers }
18
18
 
19
19
  /**
20
20
  * The scenario test surface, re-exported so a step file has one specifier to
@@ -25,7 +25,6 @@ export type { TypedPersonas }
25
25
  */
26
26
  export {
27
27
  createCookieJar,
28
- createScenarioRunner,
29
28
  pollUntil,
30
29
  requireScenarioEnv,
31
30
  } from '@pikku/core/scenario'
@@ -34,7 +33,7 @@ export type {
34
33
  ScenarioSurface,
35
34
  TestIdSelector,
36
35
  } from '@pikku/core/scenario'
37
- export { postScenarioJson, readScenarioHttpResponse } from '@pikku/core/persona'
36
+ export { postScenarioJson, readScenarioHttpResponse } from '@pikku/core/virtual-user'
38
37
  export type { ScenarioHttpResponse } from '@pikku/core/scenario'
39
38
 
40
39
  /**
@@ -80,7 +79,7 @@ export type PikkuFunctionScenario<
80
79
  In = unknown,
81
80
  Out = never,
82
81
  Ctx = Out
83
- > = PikkuFunctionSessionless<In, Out, 'scenario' | 'actors', WiredServices, Ctx>
82
+ > = PikkuFunctionSessionless<In, Out, 'scenario' | 'virtualUsers', WiredServices, Ctx>
84
83
 
85
84
  type PikkuScenarioConfigWithSchema<
86
85
  InputSchema extends StandardSchemaV1 | undefined = undefined,
@@ -150,6 +149,8 @@ export type PikkuScenarioHook<
150
149
  * Declares a scenario hook. Returns the function verbatim — a hook is never
151
150
  * registered, so this exists purely to give an inline hook a call site to be
152
151
  * contextually typed from, the way every other pikku primitive is.
152
+ *
153
+ * @example snippet: scenarioHook
153
154
  */
154
155
  export function pikkuScenarioHook<In = unknown, Ctx = unknown>(
155
156
  hook: PikkuFunctionScenario<In, void, Ctx>
@@ -159,21 +160,23 @@ export function pikkuScenarioHook<In = unknown, Ctx = unknown>(
159
160
 
160
161
  /**
161
162
  * A scenario: a complex workflow that drives the app the way users do.
162
- * Steps run as actors over the REAL transport — `scenario.do(step, rpc,
163
- * data, { actor: actors.yasser })` — so flows double as e2e tests and
163
+ * Steps run as virtual users over the REAL transport — `scenario.do(step, rpc,
164
+ * data, { virtualUser: virtualUsers.yasser })` — so flows double as e2e tests and
164
165
  * staged/production health checks (no state reset; scope what you create).
166
+ *
167
+ * @example snippet: scenarioBasics
165
168
  */
166
169
  export function pikkuScenario<
167
170
  InputSchema extends StandardSchemaV1 | undefined = undefined,
168
171
  OutputSchema extends StandardSchemaV1 | undefined = undefined
169
172
  >(
170
173
  config: PikkuScenarioConfigWithSchema<InputSchema, OutputSchema>
171
- ): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'scenario' | 'actors', PikkuFunctionScenario<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown>, InputSchema, OutputSchema>
174
+ ): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'scenario' | 'virtualUsers', PikkuFunctionScenario<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown>, InputSchema, OutputSchema>
172
175
  export function pikkuScenario<In, Out = unknown>(
173
176
  func:
174
177
  | PikkuFunctionScenario<In, Out>
175
- | PikkuFunctionConfig<In, Out, 'scenario' | 'actors', PikkuFunctionScenario<In, Out>>
176
- ): PikkuFunctionConfig<In, Out, 'scenario' | 'actors'>
178
+ | PikkuFunctionConfig<In, Out, 'scenario' | 'virtualUsers', PikkuFunctionScenario<In, Out>>
179
+ ): PikkuFunctionConfig<In, Out, 'scenario' | 'virtualUsers'>
177
180
  export function pikkuScenario(func: any) {
178
181
  return typeof func === 'function' ? { func } : func
179
182
  }
@@ -186,7 +189,7 @@ export function pikkuScenario(func: any) {
186
189
  export type PikkuScenarioRef<In = any, Out = any> = PikkuFunctionConfig<
187
190
  In,
188
191
  Out,
189
- 'scenario' | 'actors',
192
+ 'scenario' | 'virtualUsers',
190
193
  PikkuFunctionScenario<In, Out>,
191
194
  any,
192
195
  any
@@ -210,6 +213,12 @@ type PikkuFeatureConfig<Scenarios extends readonly unknown[]> = {
210
213
  name: string
211
214
  description?: string
212
215
  tags?: string[]
216
+ /**
217
+ * Whether this feature is guide material, defaulting to true. `pikku scenario
218
+ * guide` requires every documented feature to be cited by a page; a feature
219
+ * that is pure plumbing sets this false rather than being written about.
220
+ */
221
+ document?: boolean
213
222
  scenarios: { [K in keyof Scenarios]: PikkuFeatureEntry<Scenarios[K]> }
214
223
  /**
215
224
  * Runs ONCE before the whole group — not before each scenario. Per-scenario
@@ -243,6 +252,8 @@ type PikkuFeatureConfig<Scenarios extends readonly unknown[]> = {
243
252
  * ],
244
253
  * })
245
254
  * ```
255
+ *
256
+ * @example snippet: scenarioFeature
246
257
  */
247
258
  export function pikkuFeature<const Scenarios extends readonly unknown[]>(
248
259
  config: PikkuFeatureConfig<Scenarios>
@@ -261,45 +272,45 @@ export type PikkuFunctionScenarioStep<
261
272
  In = unknown,
262
273
  Out = never,
263
274
  Surface extends 'browser' | 'cli' | 'default' = 'default',
264
- HasActor extends boolean = false
275
+ HasVirtualUser extends boolean = false
265
276
  > = PikkuFunctionSessionless<
266
277
  In,
267
278
  Out,
268
279
  | 'scenarioStep'
269
280
  | (Surface extends 'default' ? never : Surface)
270
- | (HasActor extends true ? 'actor' : never)
281
+ | (HasVirtualUser extends true ? 'virtualUser' : never)
271
282
  >
272
283
 
273
284
  type PikkuScenarioStepConfigWithSchema<
274
285
  InputSchema extends StandardSchemaV1 | undefined = undefined,
275
286
  OutputSchema extends StandardSchemaV1 | undefined = undefined,
276
- HasActor extends boolean = false
287
+ HasVirtualUser extends boolean = false
277
288
  > = {
278
289
  /** Registered name — this is the string `scenario.given()` references. */
279
290
  name: string
280
291
  /**
281
- * This step is driven by a persona, so `wire.actor` is injected and
292
+ * This step is driven by a virtual user, so `wire.virtualUser` is injected and
282
293
  * non-optional inside every binding, and the runner refuses to dispatch it
283
294
  * without one.
284
295
  *
285
296
  * A `browser` binding implies it — a window is opened as somebody. Declare it
286
- * for a server-side step that calls RPCs as its actor. Leave it off for a step
287
- * that has no persona to be: an assertion over a value an earlier step
297
+ * for a server-side step that calls RPCs as its virtual user. Leave it off for a step
298
+ * that has no virtual user to be: an assertion over a value an earlier step
288
299
  * returned, or one that posts credentials precisely because it must not reuse
289
- * an actor's session.
300
+ * a virtual user's session.
290
301
  */
291
- actor?: HasActor
302
+ virtualUser?: HasVirtualUser
292
303
  /**
293
304
  * What this step does, for the console and for whoever reads the source. It
294
305
  * is also the fallback prose when no `template` is declared, in which case a
295
- * reporter renders "Given the shopper buys an apple". Defaults to the call
306
+ * reporter renders "Given shopper buys an apple". Defaults to the call
296
307
  * site's step name.
297
308
  */
298
309
  description?: string
299
310
  /**
300
311
  * The prose a reporter renders for this step, with `{placeholders}` filled
301
312
  * from the input the step was called with — `'sees {packageName}'` reports as
302
- * "Then the admin sees @pikku/addon-todos". Every input field should appear,
313
+ * "Then admin sees @pikku/addon-todos". Every input field should appear,
303
314
  * so the report names the values under test rather than repeating one
304
315
  * sentence per call site.
305
316
  */
@@ -311,17 +322,17 @@ type PikkuScenarioStepConfigWithSchema<
311
322
  errors?: Array<typeof PikkuError>
312
323
  /**
313
324
  * Drive this step through a real browser, as a human would. The runner
314
- * provisions a window for the step's actor first — which makes an actor
325
+ * provisions a window for the step's virtual user first — which makes a virtual user
315
326
  * mandatory — and `wire.browser` is non-optional inside it.
316
327
  *
317
328
  * Compose shared utilities here rather than writing raw clicks: the step says
318
- * what the actor is doing, the utilities say how.
329
+ * what the virtual user is doing, the utilities say how.
319
330
  */
320
331
  browser?: PikkuFunctionScenarioStep<
321
332
  InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown,
322
333
  OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown,
323
334
  'browser',
324
- // A window is opened as somebody, so a browser binding has an actor whether
335
+ // A window is opened as somebody, so a browser binding has a virtual user whether
325
336
  // or not the step declared one.
326
337
  true
327
338
  >
@@ -330,7 +341,7 @@ type PikkuScenarioStepConfigWithSchema<
330
341
  InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown,
331
342
  OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown,
332
343
  'cli',
333
- HasActor
344
+ HasVirtualUser
334
345
  >
335
346
  /**
336
347
  * The server-side path — the fast suite, and the floor every other surface
@@ -345,37 +356,39 @@ type PikkuScenarioStepConfigWithSchema<
345
356
  InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown,
346
357
  OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown,
347
358
  'default',
348
- HasActor
359
+ HasVirtualUser
349
360
  >
350
361
  }
351
362
 
352
- type PikkuScenarioStepConfig<In, Out, HasActor extends boolean = false> =
353
- Omit<PikkuScenarioStepConfigWithSchema<undefined, undefined, HasActor>, 'browser' | 'cli' | 'default' | 'input' | 'output'> & {
363
+ type PikkuScenarioStepConfig<In, Out, HasVirtualUser extends boolean = false> =
364
+ Omit<PikkuScenarioStepConfigWithSchema<undefined, undefined, HasVirtualUser>, 'browser' | 'cli' | 'default' | 'input' | 'output'> & {
354
365
  browser?: PikkuFunctionScenarioStep<In, Out, 'browser', true>
355
- cli?: PikkuFunctionScenarioStep<In, Out, 'cli', HasActor>
356
- default?: PikkuFunctionScenarioStep<In, Out, 'default', HasActor>
366
+ cli?: PikkuFunctionScenarioStep<In, Out, 'cli', HasVirtualUser>
367
+ default?: PikkuFunctionScenarioStep<In, Out, 'default', HasVirtualUser>
357
368
  }
358
369
 
359
370
  /**
360
371
  * A named, reusable scenario step, declaring one implementation per surface an
361
- * actor can drive it through.
372
+ * virtual user can drive it through.
362
373
  *
363
- * The step's identity is what the actor is trying to do; which surface carries
374
+ * The step's identity is what the virtual user is trying to do; which surface carries
364
375
  * it out is a binding. That is what lets one ladder run through a real browser,
365
376
  * over the websocket, or entirely server-side — and what makes "how much of this
366
377
  * flow can a human actually reach" a number rather than a guess.
367
378
  *
368
379
  * Steps are deliberately NOT registered as RPCs: a browser-driving step must
369
380
  * never be network-callable.
381
+ *
382
+ * @example snippet: scenarioStepDefinition
370
383
  */
371
384
  export function pikkuScenarioStep<
372
385
  InputSchema extends StandardSchemaV1 | undefined = undefined,
373
386
  OutputSchema extends StandardSchemaV1 | undefined = undefined
374
387
  >(
375
- config: PikkuScenarioStepConfigWithSchema<InputSchema, OutputSchema, true> & { actor: true }
388
+ config: PikkuScenarioStepConfigWithSchema<InputSchema, OutputSchema, true> & { virtualUser: true }
376
389
  ): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'scenarioStep' | 'browser' | 'cli', PikkuFunctionScenarioStep<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'browser' | 'cli' | 'default'>, InputSchema, OutputSchema>
377
390
  export function pikkuScenarioStep<In, Out = unknown>(
378
- config: PikkuScenarioStepConfig<In, Out, true> & { actor: true }
391
+ config: PikkuScenarioStepConfig<In, Out, true> & { virtualUser: true }
379
392
  ): PikkuFunctionConfig<In, Out, 'scenarioStep' | 'browser' | 'cli'>
380
393
  export function pikkuScenarioStep<
381
394
  InputSchema extends StandardSchemaV1 | undefined = undefined,
@@ -407,7 +420,7 @@ export function pikkuScenarioStep(config: any) {
407
420
  return {
408
421
  ...config,
409
422
  surfaces,
410
- requiresActor: config.actor === true || surfaces.includes('browser'),
423
+ requiresVirtualUser: config.virtualUser === true || surfaces.includes('browser'),
411
424
  // The runner sets the surface on the wire and calls this once per binding it
412
425
  // resolved — every witness of a `then`, exactly one for an action step.
413
426
  func: (services: any, data: any, wire: any) => {
@@ -433,7 +446,7 @@ type PikkuSubjectScenarioStepConfigWithSchema<
433
446
  OutputSchema extends StandardSchemaV1 | undefined = undefined
434
447
  > = Omit<
435
448
  PikkuScenarioStepConfigWithSchema<InputSchema, OutputSchema>,
436
- 'browser' | 'cli' | 'default' | 'actor'
449
+ 'browser' | 'cli' | 'default' | 'virtualUser'
437
450
  > & {
438
451
  func: PikkuFunctionScenarioStep<
439
452
  InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown,
@@ -443,7 +456,7 @@ type PikkuSubjectScenarioStepConfigWithSchema<
443
456
  }
444
457
 
445
458
  type PikkuSubjectScenarioStepConfig<In, Out> =
446
- Omit<PikkuScenarioStepConfig<In, Out>, 'browser' | 'cli' | 'default' | 'actor'> & {
459
+ Omit<PikkuScenarioStepConfig<In, Out>, 'browser' | 'cli' | 'default' | 'virtualUser'> & {
447
460
  func: PikkuFunctionScenarioStep<In, Out, 'default'>
448
461
  }
449
462
 
@@ -452,11 +465,13 @@ type PikkuSubjectScenarioStepConfig<In, Out> =
452
465
  * trial".
453
466
  *
454
467
  * The grammatical subject of that sentence is not a user of your app; it **is**
455
- * your app, which is why it is its own declaration rather than a persona with an
456
- * asterisk. A persona is a person.
468
+ * your app, which is why it is its own declaration rather than a virtual user with an
469
+ * asterisk. A virtual user is a person.
457
470
  *
458
471
  * Local-test-only, and never in a virtual user's catalogue: a virtual user that
459
472
  * could expire its own trial is manufacturing the outcome it exists to discover.
473
+ *
474
+ * @example snippet: platformStep
460
475
  */
461
476
  export function pikkuPlatformScenarioStep<
462
477
  InputSchema extends StandardSchemaV1 | undefined = undefined,
@@ -485,6 +500,8 @@ export function pikkuPlatformScenarioStep(config: any) {
485
500
  *
486
501
  * Local-test-only, and never in a virtual user's catalogue: one that could
487
502
  * invoke this would forge its own payment success.
503
+ *
504
+ * @example snippet: addonStep
488
505
  */
489
506
  export function pikkuAddonScenarioStep<
490
507
  InputSchema extends StandardSchemaV1 | undefined = undefined,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/state';
5
5
  import '../workflow/pikku-workflow-wirings-meta.gen.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/state'
5
5
  import type { WorkflowsRuntimeMeta } from '@pikku/core/workflow'
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  export {};
5
5
  //# sourceMappingURL=pikku-scenario-wirings.gen.d.ts.map
@@ -1,4 +1,4 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  export {}
@@ -0,0 +1,33 @@
1
+ import type { HttpVirtualUsersConfig } from '@pikku/core/virtual-user';
2
+ import type { ScenarioVirtualUser } from '@pikku/core/services';
3
+ import type { ResolvedVirtualUser } from '@pikku/core/services';
4
+ import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js';
5
+ import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.gen.d.js';
6
+ export declare const virtualUserConfigs: {};
7
+ export type VirtualUserName = keyof typeof virtualUserConfigs;
8
+ /**
9
+ * The same virtual users as a list, widened to `ResolvedVirtualUser`. Iterating
10
+ * `virtualUserConfigs` directly yields the literal type of each entry, on which an
11
+ * optional field a virtual user did not declare does not exist — so a seed reading
12
+ * `roles` off every virtual user needs this instead.
13
+ */
14
+ export declare const virtualUserList: ResolvedVirtualUser[];
15
+ /**
16
+ * The `environments` block of pikku.config.json, carried into the runtime.
17
+ *
18
+ * A virtual user's environments are checked twice: at build time against the config,
19
+ * and again wherever a virtual user is signed in or provisioned, against the
20
+ * environment the running process says it is (`PIKKU_ENV`). The second check
21
+ * is not the first one repeated — the build check trusts the file, and the run
22
+ * check does not trust which artifact got deployed — so the rule needs the
23
+ * config on both sides of the build.
24
+ */
25
+ export declare const virtualUserEnvironments: {};
26
+ export type AgentName = keyof AgentMap & string;
27
+ /**
28
+ * The virtual users this project declares, keyed by name — the `virtual users` a scenario
29
+ * step runs as.
30
+ */
31
+ export type TypedVirtualUsers = Record<VirtualUserName, ScenarioVirtualUser<AgentName, FlattenedRPCMap>>;
32
+ export declare const createVirtualUsers: (options: Omit<HttpVirtualUsersConfig, 'virtualUsers'>) => TypedVirtualUsers;
33
+ //# sourceMappingURL=pikku-virtual-users.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-virtual-users.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/scenarios/pikku-virtual-users.gen.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAA;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AAE5E,eAAO,MAAM,kBAAkB,IAA4D,CAAA;AAE3F,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,kBAAkB,CAAA;AAE7D;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,mBAAmB,EAAsC,CAAA;AAEvF;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,IAAiE,CAAA;AAErG,MAAM,MAAM,SAAS,GAAG,MAAM,QAAQ,GAAG,MAAM,CAAA;AAC/C;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CACpC,eAAe,EACf,mBAAmB,CAAC,SAAS,EAAE,eAAe,CAAC,CAChD,CAAA;AAED,eAAO,MAAM,kBAAkB,YACpB,IAAI,CAAC,sBAAsB,EAAE,cAAc,CAAC,KACpD,iBAIsB,CAAA"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.190
3
+ */
4
+ /** Virtual users declared with defineVirtualUsers() */
5
+ import { createHttpVirtualUsers } from '@pikku/core/virtual-user';
6
+ export const virtualUserConfigs = {};
7
+ /**
8
+ * The same virtual users as a list, widened to `ResolvedVirtualUser`. Iterating
9
+ * `virtualUserConfigs` directly yields the literal type of each entry, on which an
10
+ * optional field a virtual user did not declare does not exist — so a seed reading
11
+ * `roles` off every virtual user needs this instead.
12
+ */
13
+ export const virtualUserList = Object.values(virtualUserConfigs);
14
+ /**
15
+ * The `environments` block of pikku.config.json, carried into the runtime.
16
+ *
17
+ * A virtual user's environments are checked twice: at build time against the config,
18
+ * and again wherever a virtual user is signed in or provisioned, against the
19
+ * environment the running process says it is (`PIKKU_ENV`). The second check
20
+ * is not the first one repeated — the build check trusts the file, and the run
21
+ * check does not trust which artifact got deployed — so the rule needs the
22
+ * config on both sides of the build.
23
+ */
24
+ export const virtualUserEnvironments = {};
25
+ export const createVirtualUsers = (options) => createHttpVirtualUsers({
26
+ ...options,
27
+ virtualUsers: virtualUserConfigs,
28
+ });
29
+ //# sourceMappingURL=pikku-virtual-users.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-virtual-users.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/scenarios/pikku-virtual-users.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,uDAAuD;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAOjE,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAyD,CAAA;AAI3F;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAA0B,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAA;AAEvF;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAA8D,CAAA;AAYrG,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,OAAqD,EAClC,EAAE,CACrB,sBAAsB,CAAC;IACrB,GAAG,OAAO;IACV,YAAY,EAAE,kBAAkB;CACjC,CAAsB,CAAA"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.190
3
+ */
4
+ /** Virtual users declared with defineVirtualUsers() */
5
+ import { createHttpVirtualUsers } from '@pikku/core/virtual-user'
6
+ import type { HttpVirtualUsersConfig } from '@pikku/core/virtual-user'
7
+ import type { ScenarioVirtualUser } from '@pikku/core/services'
8
+ import type { ResolvedVirtualUser } from '@pikku/core/services'
9
+ import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
10
+ import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.gen.d.js'
11
+
12
+ export const virtualUserConfigs = {} as const satisfies Record<string, ResolvedVirtualUser>
13
+
14
+ export type VirtualUserName = keyof typeof virtualUserConfigs
15
+
16
+ /**
17
+ * The same virtual users as a list, widened to `ResolvedVirtualUser`. Iterating
18
+ * `virtualUserConfigs` directly yields the literal type of each entry, on which an
19
+ * optional field a virtual user did not declare does not exist — so a seed reading
20
+ * `roles` off every virtual user needs this instead.
21
+ */
22
+ export const virtualUserList: ResolvedVirtualUser[] = Object.values(virtualUserConfigs)
23
+
24
+ /**
25
+ * The `environments` block of pikku.config.json, carried into the runtime.
26
+ *
27
+ * A virtual user's environments are checked twice: at build time against the config,
28
+ * and again wherever a virtual user is signed in or provisioned, against the
29
+ * environment the running process says it is (`PIKKU_ENV`). The second check
30
+ * is not the first one repeated — the build check trusts the file, and the run
31
+ * check does not trust which artifact got deployed — so the rule needs the
32
+ * config on both sides of the build.
33
+ */
34
+ export const virtualUserEnvironments = {} as const satisfies Record<string, { production?: boolean }>
35
+
36
+ export type AgentName = keyof AgentMap & string
37
+ /**
38
+ * The virtual users this project declares, keyed by name — the `virtual users` a scenario
39
+ * step runs as.
40
+ */
41
+ export type TypedVirtualUsers = Record<
42
+ VirtualUserName,
43
+ ScenarioVirtualUser<AgentName, FlattenedRPCMap>
44
+ >
45
+
46
+ export const createVirtualUsers = (
47
+ options: Omit<HttpVirtualUsersConfig, 'virtualUsers'>
48
+ ): TypedVirtualUsers =>
49
+ createHttpVirtualUsers({
50
+ ...options,
51
+ virtualUsers: virtualUserConfigs,
52
+ }) as TypedVirtualUsers
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  export declare const empty: null;
5
5
  //# sourceMappingURL=register.gen.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  export const empty = null;
5
5
  //# sourceMappingURL=register.gen.js.map
@@ -1,4 +1,4 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  export const empty = null;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  import { addSchema } from '@pikku/core/schema';
5
5
  import * as EventSendInput from './schemas/EventSendInput.schema.json' with { type: 'json' };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  import { addSchema } from '@pikku/core/schema'
5
5
 
@@ -1,8 +1,9 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/scopes` resolves here.
6
6
  */
7
7
  export * from './pikku-scope-types.gen.js';
8
+ export * from './pikku-flags.gen.js';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,4BAA4B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,4BAA4B,CAAA;AAC1C,cAAc,sBAAsB,CAAA"}
@@ -1,8 +1,9 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/scopes` resolves here.
6
6
  */
7
7
  export * from './pikku-scope-types.gen.js';
8
+ export * from './pikku-flags.gen.js';
8
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,4BAA4B,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,4BAA4B,CAAA;AAC1C,cAAc,sBAAsB,CAAA"}
@@ -1,8 +1,9 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.111
2
+ * This file was generated by @pikku/cli@0.12.190
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/scopes` resolves here.
6
6
  */
7
7
 
8
8
  export * from './pikku-scope-types.gen.js'
9
+ export * from './pikku-flags.gen.js'
@@ -0,0 +1,41 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.190
3
+ */
4
+ /**
5
+ * This file was generated by the @pikku/cli
6
+ */
7
+ import type { DeclaredFlag } from '@pikku/core/flag';
8
+ import type { FeatureFlagName } from './pikku-flags.gen.js';
9
+ /**
10
+ * The declared flag set, for a FeatureFlagStore to sync into its store.
11
+ *
12
+ * Derived from the metadata sidecar rather than inlined, so the import above
13
+ * forces tsc to emit the .json alongside this file — an addon publishes only
14
+ * its compiled output, and a host reads that .json to merge the addon's flags
15
+ * into its own union.
16
+ *
17
+ * Additive on removal: a deleted declaration leaves the row marked
18
+ * `declared: false` rather than switching a feature off on deploy. Use
19
+ * `pikku flags prune` to remove them.
20
+ */
21
+ export declare const declaredFeatureFlags: DeclaredFlag[];
22
+ /**
23
+ * Declared flags, keyed by name. Rendered by the console beside each switch.
24
+ *
25
+ * Keyed by `FeatureFlagName` so a misspelled lookup is a type error, which is
26
+ * the whole point of generating the union. The assertion is what
27
+ * `Object.fromEntries` costs — it returns an index signature — and it is
28
+ * sound here because both this object and the union are built from
29
+ * `declaredFeatureFlags`, so every key of the union is present.
30
+ */
31
+ export declare const featureFlagsMeta: Record<FeatureFlagName, DeclaredFlag>;
32
+ /**
33
+ * What a flag source falls back to when its backing store cannot be read: every
34
+ * declared flag on, no rollout, no overrides.
35
+ *
36
+ * Failing open is deliberate. A flag store is not an authorization boundary —
37
+ * `scopes:` is — so an unreadable config must not take the product down with
38
+ * it.
39
+ */
40
+ export declare const featureFlagsFallback: import("@pikku/core/flag").FlagConfigSnapshot;
41
+ //# sourceMappingURL=pikku-flags-manifest.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-flags-manifest.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/pikku-flags-manifest.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAA8B,MAAM,kBAAkB,CAAA;AAKhF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAG3D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,oBAAoB,EAAE,YAAY,EAE9C,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,EAExB,MAAM,CAAC,eAAe,EAAE,YAAY,CAAC,CAAA;AAE1C;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,+CAAiD,CAAA"}
@@ -0,0 +1,35 @@
1
+ import { compiledFallbackSnapshot, flattenFeatureFlagDefinitions, } from '@pikku/core/flag';
2
+ import definitions from './pikku-flags-meta.gen.json' with { type: 'json' };
3
+ /**
4
+ * The declared flag set, for a FeatureFlagStore 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 flags
9
+ * into its own union.
10
+ *
11
+ * Additive on removal: a deleted declaration leaves the row marked
12
+ * `declared: false` rather than switching a feature off on deploy. Use
13
+ * `pikku flags prune` to remove them.
14
+ */
15
+ export const declaredFeatureFlags = flattenFeatureFlagDefinitions(Object.values(definitions));
16
+ /**
17
+ * Declared flags, keyed by name. Rendered by the console beside each switch.
18
+ *
19
+ * Keyed by `FeatureFlagName` so a misspelled lookup is a type error, which is
20
+ * the whole point of generating the union. The assertion is what
21
+ * `Object.fromEntries` costs — it returns an index signature — and it is
22
+ * sound here because both this object and the union are built from
23
+ * `declaredFeatureFlags`, so every key of the union is present.
24
+ */
25
+ export const featureFlagsMeta = Object.fromEntries(declaredFeatureFlags.map((flag) => [flag.name, flag]));
26
+ /**
27
+ * What a flag source falls back to when its backing store cannot be read: every
28
+ * declared flag on, no rollout, no overrides.
29
+ *
30
+ * Failing open is deliberate. A flag store is not an authorization boundary —
31
+ * `scopes:` is — so an unreadable config must not take the product down with
32
+ * it.
33
+ */
34
+ export const featureFlagsFallback = compiledFallbackSnapshot(declaredFeatureFlags);
35
+ //# sourceMappingURL=pikku-flags-manifest.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-flags-manifest.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/scopes/pikku-flags-manifest.gen.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,wBAAwB,EACxB,6BAA6B,GAC9B,MAAM,kBAAkB,CAAA;AAEzB,OAAO,WAAW,MAAM,6BAA6B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAE3E;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAmB,6BAA6B,CAC/E,MAAM,CAAC,MAAM,CAAC,WAAyC,CAAC,CACzD,CAAA;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,WAAW,CAChD,oBAAoB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CACb,CAAA;AAE1C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,wBAAwB,CAAC,oBAAoB,CAAC,CAAA"}