@pikku/addon-console 0.12.48 → 0.12.50

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 (630) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/dist/.pikku/addon/agent/index.d.ts +1 -1
  3. package/dist/.pikku/addon/agent/index.js +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 +1 -1
  6. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +1 -1
  7. package/dist/.pikku/addon/agent/pikku-scorer-names.gen.d.ts +1 -1
  8. package/dist/.pikku/addon/auth/auth.types.d.ts +1 -1
  9. package/dist/.pikku/addon/auth/auth.types.js +1 -1
  10. package/dist/.pikku/addon/auth/index.d.ts +1 -1
  11. package/dist/.pikku/addon/auth/index.js +1 -1
  12. package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts +1 -1
  13. package/dist/.pikku/addon/auth/pikku-auth-types.gen.js +1 -1
  14. package/dist/.pikku/addon/channel/index.d.ts +1 -1
  15. package/dist/.pikku/addon/channel/index.js +1 -1
  16. package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts +1 -1
  17. package/dist/.pikku/addon/channel/pikku-channel-types.gen.js +1 -1
  18. package/dist/.pikku/addon/error/index.d.ts +1 -1
  19. package/dist/.pikku/addon/error/index.js +1 -1
  20. package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts +1 -1
  21. package/dist/.pikku/addon/error/pikku-error-types.gen.js +1 -1
  22. package/dist/.pikku/addon/function/index.d.ts +1 -1
  23. package/dist/.pikku/addon/function/index.js +1 -1
  24. package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts +1 -1
  25. package/dist/.pikku/addon/function/pikku-function-types.gen.js +1 -1
  26. package/dist/.pikku/addon/function/pikku-functions-meta-verbose.gen.json +20 -11
  27. package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +1 -1
  28. package/dist/.pikku/addon/function/pikku-functions-meta.gen.json +14 -5
  29. package/dist/.pikku/addon/function/pikku-functions.gen.js +1 -1
  30. package/dist/.pikku/addon/http/index.d.ts +1 -1
  31. package/dist/.pikku/addon/http/index.js +1 -1
  32. package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts +1 -1
  33. package/dist/.pikku/addon/http/pikku-http-types.gen.js +1 -1
  34. package/dist/.pikku/addon/mcp/index.d.ts +1 -1
  35. package/dist/.pikku/addon/mcp/index.js +1 -1
  36. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts +1 -1
  37. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js +1 -1
  38. package/dist/.pikku/addon/middleware/index.d.ts +1 -1
  39. package/dist/.pikku/addon/middleware/index.js +1 -1
  40. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts +1 -1
  41. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js +1 -1
  42. package/dist/.pikku/addon/permissions/pikku-permissions.gen.d.ts +1 -1
  43. package/dist/.pikku/addon/permissions/pikku-permissions.gen.js +1 -1
  44. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts +1 -1
  45. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js +1 -1
  46. package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts +1 -1
  47. package/dist/.pikku/addon/pikku-bootstrap.gen.js +1 -1
  48. package/dist/.pikku/addon/pikku-package.gen.js +2 -2
  49. package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
  50. package/dist/.pikku/addon/pikku-services.gen.d.ts +2 -2
  51. package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -1
  52. package/dist/.pikku/addon/pikku-services.gen.js +1 -1
  53. package/dist/.pikku/addon/pikku-services.gen.js.map +1 -1
  54. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.gen.d.ts +1 -1
  55. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +1 -1
  56. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +1 -1
  57. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  58. package/dist/.pikku/addon/scenarios/index.d.ts +1 -1
  59. package/dist/.pikku/addon/scenarios/index.js +1 -1
  60. package/dist/.pikku/addon/scenarios/pikku-personas.gen.js +1 -1
  61. package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
  62. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
  63. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts +1 -1
  64. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
  65. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
  66. package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts +1 -1
  67. package/dist/.pikku/addon/scenarios/schemas/register.gen.js +1 -1
  68. package/dist/.pikku/addon/schemas/register.gen.js +1 -1
  69. package/dist/.pikku/addon/schemas/schemas/KnowledgeBundle.schema.json +1 -1
  70. package/dist/.pikku/addon/scopes/index.d.ts +1 -1
  71. package/dist/.pikku/addon/scopes/index.js +1 -1
  72. package/dist/.pikku/addon/scopes/pikku-personas.gen.js +1 -1
  73. package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts +1 -1
  74. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +1 -1
  75. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js +1 -1
  76. package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts +1 -1
  77. package/dist/.pikku/addon/secrets/index.d.ts +1 -1
  78. package/dist/.pikku/addon/secrets/index.js +1 -1
  79. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts +1 -1
  80. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js +1 -1
  81. package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts +1 -1
  82. package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +1 -1
  83. package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts +1 -1
  84. package/dist/.pikku/addon/services/pikku-meta-service.gen.js +1 -1
  85. package/dist/.pikku/addon/setup/index.d.ts +1 -1
  86. package/dist/.pikku/addon/setup/index.js +1 -1
  87. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts +1 -1
  88. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js +1 -1
  89. package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +1 -1
  90. package/dist/.pikku/addon/setup/pikku-setup-types.gen.js +1 -1
  91. package/dist/.pikku/addon/trigger/index.d.ts +1 -1
  92. package/dist/.pikku/addon/trigger/index.js +1 -1
  93. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts +1 -1
  94. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +1 -1
  95. package/dist/.pikku/addon/variables/index.d.ts +1 -1
  96. package/dist/.pikku/addon/variables/index.js +1 -1
  97. package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts +1 -1
  98. package/dist/.pikku/addon/variables/pikku-variable-types.gen.js +1 -1
  99. package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts +1 -1
  100. package/dist/.pikku/addon/variables/pikku-variables.gen.js +1 -1
  101. package/dist/.pikku/addon/workflow/index.d.ts +1 -1
  102. package/dist/.pikku/addon/workflow/index.js +1 -1
  103. package/dist/.pikku/addon/workflow/pikku-scenario-step-map.gen.d.ts +1 -1
  104. package/dist/.pikku/addon/workflow/pikku-workflow-map.gen.d.ts +1 -1
  105. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts +1 -1
  106. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js +1 -1
  107. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  108. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  109. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js +1 -1
  110. package/dist/src/functions/get-knowledge.function.test.js +1 -0
  111. package/dist/src/functions/get-knowledge.function.test.js.map +1 -1
  112. package/dist/src/functions/secret-get.function.d.ts.map +1 -1
  113. package/dist/src/functions/secret-get.function.js +1 -0
  114. package/dist/src/functions/secret-get.function.js.map +1 -1
  115. package/dist/src/functions/secret-has.function.d.ts.map +1 -1
  116. package/dist/src/functions/secret-has.function.js +1 -0
  117. package/dist/src/functions/secret-has.function.js.map +1 -1
  118. package/dist/src/functions/secret-scopes.function.test.d.ts +2 -0
  119. package/dist/src/functions/secret-scopes.function.test.d.ts.map +1 -0
  120. package/dist/src/functions/secret-scopes.function.test.js +60 -0
  121. package/dist/src/functions/secret-scopes.function.test.js.map +1 -0
  122. package/dist/src/functions/secret-set.function.d.ts.map +1 -1
  123. package/dist/src/functions/secret-set.function.js +1 -0
  124. package/dist/src/functions/secret-set.function.js.map +1 -1
  125. package/dist/src/services/knowledge.service.d.ts +113 -1
  126. package/dist/src/services/knowledge.service.d.ts.map +1 -1
  127. package/dist/src/services/knowledge.service.js +32 -2
  128. package/dist/src/services/knowledge.service.js.map +1 -1
  129. package/dist/src/services/knowledge.service.test.js +96 -0
  130. package/dist/src/services/knowledge.service.test.js.map +1 -1
  131. package/package.json +6 -6
  132. package/dist/.pikku/addon/index.d.ts +0 -8
  133. package/dist/.pikku/addon/index.d.ts.map +0 -1
  134. package/dist/.pikku/addon/index.js +0 -8
  135. package/dist/.pikku/addon/index.js.map +0 -1
  136. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +0 -66
  137. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +0 -1
  138. package/dist/.pikku/addon/pikku-addon-types.gen.js +0 -78
  139. package/dist/.pikku/addon/pikku-addon-types.gen.js.map +0 -1
  140. package/dist/.pikku/agent/index.d.ts +0 -8
  141. package/dist/.pikku/agent/index.d.ts.map +0 -1
  142. package/dist/.pikku/agent/index.js +0 -8
  143. package/dist/.pikku/agent/index.js.map +0 -1
  144. package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +0 -4
  145. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +0 -54
  146. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +0 -1
  147. package/dist/.pikku/agent/pikku-agent-types.gen.js +0 -20
  148. package/dist/.pikku/agent/pikku-agent-types.gen.js.map +0 -1
  149. package/dist/.pikku/agent/pikku-model-aliases.gen.d.ts +0 -2
  150. package/dist/.pikku/agent/pikku-model-aliases.gen.d.ts.map +0 -1
  151. package/dist/.pikku/agent/pikku-model-aliases.gen.js +0 -6
  152. package/dist/.pikku/agent/pikku-model-aliases.gen.js.map +0 -1
  153. package/dist/.pikku/agent/pikku-scorer-names.gen.d.ts +0 -8
  154. package/dist/.pikku/auth/auth.types.d.ts +0 -5
  155. package/dist/.pikku/auth/auth.types.d.ts.map +0 -1
  156. package/dist/.pikku/auth/auth.types.js +0 -6
  157. package/dist/.pikku/auth/auth.types.js.map +0 -1
  158. package/dist/.pikku/auth/index.d.ts +0 -9
  159. package/dist/.pikku/auth/index.d.ts.map +0 -1
  160. package/dist/.pikku/auth/index.js +0 -9
  161. package/dist/.pikku/auth/index.js.map +0 -1
  162. package/dist/.pikku/auth/pikku-auth-types.gen.d.ts +0 -119
  163. package/dist/.pikku/auth/pikku-auth-types.gen.d.ts.map +0 -1
  164. package/dist/.pikku/auth/pikku-auth-types.gen.js +0 -93
  165. package/dist/.pikku/auth/pikku-auth-types.gen.js.map +0 -1
  166. package/dist/.pikku/channel/index.d.ts +0 -8
  167. package/dist/.pikku/channel/index.d.ts.map +0 -1
  168. package/dist/.pikku/channel/index.js +0 -8
  169. package/dist/.pikku/channel/index.js.map +0 -1
  170. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +0 -91
  171. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +0 -1
  172. package/dist/.pikku/channel/pikku-channel-types.gen.js +0 -43
  173. package/dist/.pikku/channel/pikku-channel-types.gen.js.map +0 -1
  174. package/dist/.pikku/console/pikku-node-types.gen.d.ts +0 -7
  175. package/dist/.pikku/console/pikku-node-types.gen.d.ts.map +0 -1
  176. package/dist/.pikku/console/pikku-node-types.gen.js +0 -2
  177. package/dist/.pikku/console/pikku-node-types.gen.js.map +0 -1
  178. package/dist/.pikku/credentials/index.d.ts +0 -8
  179. package/dist/.pikku/credentials/index.d.ts.map +0 -1
  180. package/dist/.pikku/credentials/index.js +0 -8
  181. package/dist/.pikku/credentials/index.js.map +0 -1
  182. package/dist/.pikku/credentials/pikku-credential-types.gen.d.ts +0 -5
  183. package/dist/.pikku/credentials/pikku-credential-types.gen.d.ts.map +0 -1
  184. package/dist/.pikku/credentials/pikku-credential-types.gen.js +0 -5
  185. package/dist/.pikku/credentials/pikku-credential-types.gen.js.map +0 -1
  186. package/dist/.pikku/error/index.d.ts +0 -8
  187. package/dist/.pikku/error/index.d.ts.map +0 -1
  188. package/dist/.pikku/error/index.js +0 -8
  189. package/dist/.pikku/error/index.js.map +0 -1
  190. package/dist/.pikku/error/pikku-error-types.gen.d.ts +0 -8
  191. package/dist/.pikku/error/pikku-error-types.gen.d.ts.map +0 -1
  192. package/dist/.pikku/error/pikku-error-types.gen.js +0 -8
  193. package/dist/.pikku/error/pikku-error-types.gen.js.map +0 -1
  194. package/dist/.pikku/function/index.d.ts +0 -8
  195. package/dist/.pikku/function/index.d.ts.map +0 -1
  196. package/dist/.pikku/function/index.js +0 -8
  197. package/dist/.pikku/function/index.js.map +0 -1
  198. package/dist/.pikku/function/pikku-function-types.gen.d.ts +0 -270
  199. package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +0 -1
  200. package/dist/.pikku/function/pikku-function-types.gen.js +0 -117
  201. package/dist/.pikku/function/pikku-function-types.gen.js.map +0 -1
  202. package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +0 -2146
  203. package/dist/.pikku/function/pikku-functions-meta.gen.d.ts +0 -2
  204. package/dist/.pikku/function/pikku-functions-meta.gen.d.ts.map +0 -1
  205. package/dist/.pikku/function/pikku-functions-meta.gen.js +0 -7
  206. package/dist/.pikku/function/pikku-functions-meta.gen.js.map +0 -1
  207. package/dist/.pikku/function/pikku-functions-meta.gen.json +0 -1690
  208. package/dist/.pikku/function/pikku-functions.gen.d.ts +0 -2
  209. package/dist/.pikku/function/pikku-functions.gen.d.ts.map +0 -1
  210. package/dist/.pikku/function/pikku-functions.gen.js +0 -126
  211. package/dist/.pikku/function/pikku-functions.gen.js.map +0 -1
  212. package/dist/.pikku/gateway/index.d.ts +0 -8
  213. package/dist/.pikku/gateway/index.d.ts.map +0 -1
  214. package/dist/.pikku/gateway/index.js +0 -8
  215. package/dist/.pikku/gateway/index.js.map +0 -1
  216. package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts +0 -38
  217. package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts.map +0 -1
  218. package/dist/.pikku/gateway/pikku-gateway-types.gen.js +0 -26
  219. package/dist/.pikku/gateway/pikku-gateway-types.gen.js.map +0 -1
  220. package/dist/.pikku/http/index.d.ts +0 -8
  221. package/dist/.pikku/http/index.d.ts.map +0 -1
  222. package/dist/.pikku/http/index.js +0 -8
  223. package/dist/.pikku/http/index.js.map +0 -1
  224. package/dist/.pikku/http/pikku-http-types.gen.d.ts +0 -50
  225. package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +0 -1
  226. package/dist/.pikku/http/pikku-http-types.gen.js +0 -11
  227. package/dist/.pikku/http/pikku-http-types.gen.js.map +0 -1
  228. package/dist/.pikku/mcp/index.d.ts +0 -8
  229. package/dist/.pikku/mcp/index.d.ts.map +0 -1
  230. package/dist/.pikku/mcp/index.js +0 -8
  231. package/dist/.pikku/mcp/index.js.map +0 -1
  232. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +0 -102
  233. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +0 -1
  234. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +0 -16
  235. package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +0 -1
  236. package/dist/.pikku/middleware/index.d.ts +0 -8
  237. package/dist/.pikku/middleware/index.d.ts.map +0 -1
  238. package/dist/.pikku/middleware/index.js +0 -8
  239. package/dist/.pikku/middleware/index.js.map +0 -1
  240. package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts +0 -118
  241. package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts.map +0 -1
  242. package/dist/.pikku/middleware/pikku-middleware-types.gen.js +0 -109
  243. package/dist/.pikku/middleware/pikku-middleware-types.gen.js.map +0 -1
  244. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +0 -10
  245. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts.map +0 -1
  246. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +0 -10
  247. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js.map +0 -1
  248. package/dist/.pikku/pikku-bootstrap.gen.d.ts +0 -10
  249. package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +0 -1
  250. package/dist/.pikku/pikku-bootstrap.gen.js +0 -10
  251. package/dist/.pikku/pikku-bootstrap.gen.js.map +0 -1
  252. package/dist/.pikku/pikku-meta-service.gen.d.ts +0 -8
  253. package/dist/.pikku/pikku-meta-service.gen.d.ts.map +0 -1
  254. package/dist/.pikku/pikku-meta-service.gen.js +0 -10
  255. package/dist/.pikku/pikku-meta-service.gen.js.map +0 -1
  256. package/dist/.pikku/pikku-services.gen.d.ts +0 -50
  257. package/dist/.pikku/pikku-services.gen.d.ts.map +0 -1
  258. package/dist/.pikku/pikku-services.gen.js +0 -46
  259. package/dist/.pikku/pikku-services.gen.js.map +0 -1
  260. package/dist/.pikku/pikku-types.gen.d.ts +0 -12
  261. package/dist/.pikku/pikku-types.gen.d.ts.map +0 -1
  262. package/dist/.pikku/pikku-types.gen.js +0 -17
  263. package/dist/.pikku/pikku-types.gen.js.map +0 -1
  264. package/dist/.pikku/queue/index.d.ts +0 -8
  265. package/dist/.pikku/queue/index.d.ts.map +0 -1
  266. package/dist/.pikku/queue/index.js +0 -8
  267. package/dist/.pikku/queue/index.js.map +0 -1
  268. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +0 -24
  269. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +0 -1
  270. package/dist/.pikku/queue/pikku-queue-types.gen.js +0 -17
  271. package/dist/.pikku/queue/pikku-queue-types.gen.js.map +0 -1
  272. package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +0 -251
  273. package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +0 -253
  274. package/dist/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +0 -184
  275. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +0 -2
  276. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +0 -1
  277. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +0 -7
  278. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +0 -1
  279. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +0 -62
  280. package/dist/.pikku/scenarios/index.d.ts +0 -8
  281. package/dist/.pikku/scenarios/index.d.ts.map +0 -1
  282. package/dist/.pikku/scenarios/index.js +0 -8
  283. package/dist/.pikku/scenarios/index.js.map +0 -1
  284. package/dist/.pikku/scenarios/pikku-personas.gen.d.ts +0 -18
  285. package/dist/.pikku/scenarios/pikku-personas.gen.d.ts.map +0 -1
  286. package/dist/.pikku/scenarios/pikku-personas.gen.js +0 -18
  287. package/dist/.pikku/scenarios/pikku-personas.gen.js.map +0 -1
  288. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts +0 -2
  289. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +0 -1
  290. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +0 -11
  291. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js.map +0 -1
  292. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.json +0 -1
  293. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +0 -5
  294. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts.map +0 -1
  295. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js +0 -2
  296. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js.map +0 -1
  297. package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts +0 -311
  298. package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts.map +0 -1
  299. package/dist/.pikku/scenarios/pikku-scenario-types.gen.js +0 -72
  300. package/dist/.pikku/scenarios/pikku-scenario-types.gen.js.map +0 -1
  301. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts +0 -2
  302. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +0 -1
  303. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +0 -11
  304. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js.map +0 -1
  305. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +0 -5
  306. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts.map +0 -1
  307. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js +0 -2
  308. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js.map +0 -1
  309. package/dist/.pikku/scenarios/schemas/register.gen.d.ts +0 -5
  310. package/dist/.pikku/scenarios/schemas/register.gen.d.ts.map +0 -1
  311. package/dist/.pikku/scenarios/schemas/register.gen.js +0 -5
  312. package/dist/.pikku/scenarios/schemas/register.gen.js.map +0 -1
  313. package/dist/.pikku/scheduler/index.d.ts +0 -8
  314. package/dist/.pikku/scheduler/index.d.ts.map +0 -1
  315. package/dist/.pikku/scheduler/index.js +0 -8
  316. package/dist/.pikku/scheduler/index.js.map +0 -1
  317. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +0 -22
  318. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +0 -1
  319. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +0 -17
  320. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +0 -1
  321. package/dist/.pikku/schemas/register.gen.d.ts +0 -2
  322. package/dist/.pikku/schemas/register.gen.d.ts.map +0 -1
  323. package/dist/.pikku/schemas/register.gen.js +0 -201
  324. package/dist/.pikku/schemas/register.gen.js.map +0 -1
  325. package/dist/.pikku/schemas/schemas/AddonMetaPage.schema.json +0 -1
  326. package/dist/.pikku/schemas/schemas/AddonMetaQuery.schema.json +0 -1
  327. package/dist/.pikku/schemas/schemas/AddonPackageInfo.schema.json +0 -1
  328. package/dist/.pikku/schemas/schemas/AddonReadinessInput.schema.json +0 -1
  329. package/dist/.pikku/schemas/schemas/AddonReadinessOutput.schema.json +0 -1
  330. package/dist/.pikku/schemas/schemas/AgentCredentialCheckInput.schema.json +0 -1
  331. package/dist/.pikku/schemas/schemas/AgentCredentialCheckOutput.schema.json +0 -1
  332. package/dist/.pikku/schemas/schemas/AllMeta.schema.json +0 -1
  333. package/dist/.pikku/schemas/schemas/AuthProvidersMeta.schema.json +0 -1
  334. package/dist/.pikku/schemas/schemas/ChannelSnippets.schema.json +0 -1
  335. package/dist/.pikku/schemas/schemas/CredentialDeleteInput.schema.json +0 -1
  336. package/dist/.pikku/schemas/schemas/CredentialDeleteOutput.schema.json +0 -1
  337. package/dist/.pikku/schemas/schemas/CredentialGetInput.schema.json +0 -1
  338. package/dist/.pikku/schemas/schemas/CredentialGetOutput.schema.json +0 -1
  339. package/dist/.pikku/schemas/schemas/CredentialListUsersOutput.schema.json +0 -1
  340. package/dist/.pikku/schemas/schemas/CredentialSetInput.schema.json +0 -1
  341. package/dist/.pikku/schemas/schemas/CredentialSetOutput.schema.json +0 -1
  342. package/dist/.pikku/schemas/schemas/CredentialStatusInput.schema.json +0 -1
  343. package/dist/.pikku/schemas/schemas/CredentialStatusOutput.schema.json +0 -1
  344. package/dist/.pikku/schemas/schemas/CredentialUsersInput.schema.json +0 -1
  345. package/dist/.pikku/schemas/schemas/CredentialUsersOutput.schema.json +0 -1
  346. package/dist/.pikku/schemas/schemas/DbSchema.schema.json +0 -1
  347. package/dist/.pikku/schemas/schemas/DeleteAgentThreadInput.schema.json +0 -1
  348. package/dist/.pikku/schemas/schemas/DeleteAgentThreadOutput.schema.json +0 -1
  349. package/dist/.pikku/schemas/schemas/DeleteScenarioRunInput.schema.json +0 -1
  350. package/dist/.pikku/schemas/schemas/DeleteWorkflowRunInput.schema.json +0 -1
  351. package/dist/.pikku/schemas/schemas/DeleteWorkflowRunOutput.schema.json +0 -1
  352. package/dist/.pikku/schemas/schemas/GetAddonCategoriesOutput.schema.json +0 -1
  353. package/dist/.pikku/schemas/schemas/GetAddonCommunityPackageInput.schema.json +0 -1
  354. package/dist/.pikku/schemas/schemas/GetAddonIconInput.schema.json +0 -1
  355. package/dist/.pikku/schemas/schemas/GetAddonInstalledPackageInput.schema.json +0 -1
  356. package/dist/.pikku/schemas/schemas/GetAddonInstancesInput.schema.json +0 -1
  357. package/dist/.pikku/schemas/schemas/GetAddonInstancesOutput.schema.json +0 -1
  358. package/dist/.pikku/schemas/schemas/GetAgentRunScoresInput.schema.json +0 -1
  359. package/dist/.pikku/schemas/schemas/GetAgentRunScoresOutput.schema.json +0 -1
  360. package/dist/.pikku/schemas/schemas/GetAgentThreadMessagesInput.schema.json +0 -1
  361. package/dist/.pikku/schemas/schemas/GetAgentThreadMessagesOutput.schema.json +0 -1
  362. package/dist/.pikku/schemas/schemas/GetAgentThreadRunsInput.schema.json +0 -1
  363. package/dist/.pikku/schemas/schemas/GetAgentThreadRunsOutput.schema.json +0 -1
  364. package/dist/.pikku/schemas/schemas/GetAgentThreadsInput.schema.json +0 -1
  365. package/dist/.pikku/schemas/schemas/GetAgentThreadsOutput.schema.json +0 -1
  366. package/dist/.pikku/schemas/schemas/GetChannelSnippetsInput.schema.json +0 -1
  367. package/dist/.pikku/schemas/schemas/GetFunctionsMetaOutput.schema.json +0 -1
  368. package/dist/.pikku/schemas/schemas/GetInstalledAddonsOutput.schema.json +0 -1
  369. package/dist/.pikku/schemas/schemas/GetMyAccessOutput.schema.json +0 -1
  370. package/dist/.pikku/schemas/schemas/GetOpenapiCategoriesOutput.schema.json +0 -1
  371. package/dist/.pikku/schemas/schemas/GetOpenapiDetailInput.schema.json +0 -1
  372. package/dist/.pikku/schemas/schemas/GetOpenapiDetailOutput.schema.json +0 -1
  373. package/dist/.pikku/schemas/schemas/GetOpenapisInput.schema.json +0 -1
  374. package/dist/.pikku/schemas/schemas/GetOpenapisOutput.schema.json +0 -1
  375. package/dist/.pikku/schemas/schemas/GetScenarioArtifactInput.schema.json +0 -1
  376. package/dist/.pikku/schemas/schemas/GetScenarioRunInput.schema.json +0 -1
  377. package/dist/.pikku/schemas/schemas/GetSchemaInput.schema.json +0 -1
  378. package/dist/.pikku/schemas/schemas/GetScorersOutput.schema.json +0 -1
  379. package/dist/.pikku/schemas/schemas/GetStateDiffInput.schema.json +0 -1
  380. package/dist/.pikku/schemas/schemas/GetWebhookDeliveryInput.schema.json +0 -1
  381. package/dist/.pikku/schemas/schemas/GetWorkflowMetaByIdInput.schema.json +0 -1
  382. package/dist/.pikku/schemas/schemas/GetWorkflowMetaByIdOutput.schema.json +0 -1
  383. package/dist/.pikku/schemas/schemas/GetWorkflowRunHistoryInput.schema.json +0 -1
  384. package/dist/.pikku/schemas/schemas/GetWorkflowRunHistoryOutput.schema.json +0 -1
  385. package/dist/.pikku/schemas/schemas/GetWorkflowRunInput.schema.json +0 -1
  386. package/dist/.pikku/schemas/schemas/GetWorkflowRunNamesOutput.schema.json +0 -1
  387. package/dist/.pikku/schemas/schemas/GetWorkflowRunOutput.schema.json +0 -1
  388. package/dist/.pikku/schemas/schemas/GetWorkflowRunStepsInput.schema.json +0 -1
  389. package/dist/.pikku/schemas/schemas/GetWorkflowRunStepsOutput.schema.json +0 -1
  390. package/dist/.pikku/schemas/schemas/GetWorkflowRunsInput.schema.json +0 -1
  391. package/dist/.pikku/schemas/schemas/GetWorkflowRunsOutput.schema.json +0 -1
  392. package/dist/.pikku/schemas/schemas/GetWorkflowVersionInput.schema.json +0 -1
  393. package/dist/.pikku/schemas/schemas/GetWorkflowVersionOutput.schema.json +0 -1
  394. package/dist/.pikku/schemas/schemas/InstallAddonInput.schema.json +0 -1
  395. package/dist/.pikku/schemas/schemas/InstallAddonOutput.schema.json +0 -1
  396. package/dist/.pikku/schemas/schemas/InstallOpenapiAddonInput.schema.json +0 -1
  397. package/dist/.pikku/schemas/schemas/InstallOpenapiAddonOutput.schema.json +0 -1
  398. package/dist/.pikku/schemas/schemas/JSONSchema7.schema.json +0 -1
  399. package/dist/.pikku/schemas/schemas/KnowledgeBundle.schema.json +0 -1
  400. package/dist/.pikku/schemas/schemas/ListScenarioRunsInput.schema.json +0 -1
  401. package/dist/.pikku/schemas/schemas/ListScenarioRunsOutput.schema.json +0 -1
  402. package/dist/.pikku/schemas/schemas/ListWebhookDeliveriesInput.schema.json +0 -1
  403. package/dist/.pikku/schemas/schemas/ListWebhookDeliveriesOutput.schema.json +0 -1
  404. package/dist/.pikku/schemas/schemas/PingOutput.schema.json +0 -1
  405. package/dist/.pikku/schemas/schemas/ReadAgentSourceInput.schema.json +0 -1
  406. package/dist/.pikku/schemas/schemas/ReadAgentSourceOutput.schema.json +0 -1
  407. package/dist/.pikku/schemas/schemas/ReadFunctionBodyInput.schema.json +0 -1
  408. package/dist/.pikku/schemas/schemas/ReadFunctionBodyOutput.schema.json +0 -1
  409. package/dist/.pikku/schemas/schemas/ReadFunctionSourceInput.schema.json +0 -1
  410. package/dist/.pikku/schemas/schemas/ReadFunctionSourceOutput.schema.json +0 -1
  411. package/dist/.pikku/schemas/schemas/RenderEmailPreviewInput.schema.json +0 -1
  412. package/dist/.pikku/schemas/schemas/RenderEmailPreviewOutput.schema.json +0 -1
  413. package/dist/.pikku/schemas/schemas/ScenarioRunRecord.schema.json +0 -1
  414. package/dist/.pikku/schemas/schemas/ScopeAddScopeToUserInput.schema.json +0 -1
  415. package/dist/.pikku/schemas/schemas/ScopeAddScopeToUserOutput.schema.json +0 -1
  416. package/dist/.pikku/schemas/schemas/ScopeAddUserToRoleInput.schema.json +0 -1
  417. package/dist/.pikku/schemas/schemas/ScopeAddUserToRoleOutput.schema.json +0 -1
  418. package/dist/.pikku/schemas/schemas/ScopeCreateRoleInput.schema.json +0 -1
  419. package/dist/.pikku/schemas/schemas/ScopeCreateRoleOutput.schema.json +0 -1
  420. package/dist/.pikku/schemas/schemas/ScopeDeleteRoleInput.schema.json +0 -1
  421. package/dist/.pikku/schemas/schemas/ScopeDeleteRoleOutput.schema.json +0 -1
  422. package/dist/.pikku/schemas/schemas/ScopeListDeclaredOutput.schema.json +0 -1
  423. package/dist/.pikku/schemas/schemas/ScopeListRolesOutput.schema.json +0 -1
  424. package/dist/.pikku/schemas/schemas/ScopeListUserRolesInput.schema.json +0 -1
  425. package/dist/.pikku/schemas/schemas/ScopeListUserRolesOutput.schema.json +0 -1
  426. package/dist/.pikku/schemas/schemas/ScopeRemoveScopeFromUserInput.schema.json +0 -1
  427. package/dist/.pikku/schemas/schemas/ScopeRemoveScopeFromUserOutput.schema.json +0 -1
  428. package/dist/.pikku/schemas/schemas/ScopeRemoveUserFromRoleInput.schema.json +0 -1
  429. package/dist/.pikku/schemas/schemas/ScopeRemoveUserFromRoleOutput.schema.json +0 -1
  430. package/dist/.pikku/schemas/schemas/ScopeSetRoleScopesInput.schema.json +0 -1
  431. package/dist/.pikku/schemas/schemas/ScopeSetRoleScopesOutput.schema.json +0 -1
  432. package/dist/.pikku/schemas/schemas/SecretGetInput.schema.json +0 -1
  433. package/dist/.pikku/schemas/schemas/SecretGetOutput.schema.json +0 -1
  434. package/dist/.pikku/schemas/schemas/SecretHasInput.schema.json +0 -1
  435. package/dist/.pikku/schemas/schemas/SecretHasOutput.schema.json +0 -1
  436. package/dist/.pikku/schemas/schemas/SecretSetInput.schema.json +0 -1
  437. package/dist/.pikku/schemas/schemas/SecretSetOutput.schema.json +0 -1
  438. package/dist/.pikku/schemas/schemas/SecurityAuditReport.schema.json +0 -1
  439. package/dist/.pikku/schemas/schemas/StateDiff.schema.json +0 -1
  440. package/dist/.pikku/schemas/schemas/StreamWorkflowRunInput.schema.json +0 -1
  441. package/dist/.pikku/schemas/schemas/SurfaceResult.schema.json +0 -1
  442. package/dist/.pikku/schemas/schemas/UpdateAgentConfigInput.schema.json +0 -1
  443. package/dist/.pikku/schemas/schemas/UpdateAgentConfigOutput.schema.json +0 -1
  444. package/dist/.pikku/schemas/schemas/UpdateDependencyInput.schema.json +0 -1
  445. package/dist/.pikku/schemas/schemas/UpdateEmailTemplateInput.schema.json +0 -1
  446. package/dist/.pikku/schemas/schemas/UpdateEmailTemplateOutput.schema.json +0 -1
  447. package/dist/.pikku/schemas/schemas/UpdateFunctionBodyInput.schema.json +0 -1
  448. package/dist/.pikku/schemas/schemas/UpdateFunctionBodyOutput.schema.json +0 -1
  449. package/dist/.pikku/schemas/schemas/UpdateFunctionConfigInput.schema.json +0 -1
  450. package/dist/.pikku/schemas/schemas/UpdateFunctionConfigOutput.schema.json +0 -1
  451. package/dist/.pikku/schemas/schemas/WebhookDeliveryWithAttempts.schema.json +0 -1
  452. package/dist/.pikku/scopes/index.d.ts +0 -8
  453. package/dist/.pikku/scopes/index.d.ts.map +0 -1
  454. package/dist/.pikku/scopes/index.js +0 -8
  455. package/dist/.pikku/scopes/index.js.map +0 -1
  456. package/dist/.pikku/scopes/pikku-personas-meta.gen.json +0 -1
  457. package/dist/.pikku/scopes/pikku-personas.gen.d.ts +0 -29
  458. package/dist/.pikku/scopes/pikku-personas.gen.d.ts.map +0 -1
  459. package/dist/.pikku/scopes/pikku-personas.gen.js +0 -18
  460. package/dist/.pikku/scopes/pikku-personas.gen.js.map +0 -1
  461. package/dist/.pikku/scopes/pikku-roles-meta.gen.json +0 -1
  462. package/dist/.pikku/scopes/pikku-roles.gen.d.ts +0 -31
  463. package/dist/.pikku/scopes/pikku-roles.gen.d.ts.map +0 -1
  464. package/dist/.pikku/scopes/pikku-roles.gen.js +0 -19
  465. package/dist/.pikku/scopes/pikku-roles.gen.js.map +0 -1
  466. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +0 -6
  467. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts.map +0 -1
  468. package/dist/.pikku/scopes/pikku-scope-types.gen.js +0 -6
  469. package/dist/.pikku/scopes/pikku-scope-types.gen.js.map +0 -1
  470. package/dist/.pikku/scopes/pikku-scopes-meta.gen.json +0 -144
  471. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +0 -36
  472. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +0 -1
  473. package/dist/.pikku/scopes/pikku-scopes.gen.js +0 -30
  474. package/dist/.pikku/scopes/pikku-scopes.gen.js.map +0 -1
  475. package/dist/.pikku/secrets/index.d.ts +0 -9
  476. package/dist/.pikku/secrets/index.d.ts.map +0 -1
  477. package/dist/.pikku/secrets/index.js +0 -9
  478. package/dist/.pikku/secrets/index.js.map +0 -1
  479. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +0 -5
  480. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +0 -1
  481. package/dist/.pikku/secrets/pikku-secret-types.gen.js +0 -5
  482. package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +0 -1
  483. package/dist/.pikku/secrets/pikku-secrets-meta.gen.json +0 -1
  484. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +0 -18
  485. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +0 -1
  486. package/dist/.pikku/secrets/pikku-secrets.gen.js +0 -19
  487. package/dist/.pikku/secrets/pikku-secrets.gen.js.map +0 -1
  488. package/dist/.pikku/services/pikku-meta-service.gen.d.ts +0 -8
  489. package/dist/.pikku/services/pikku-meta-service.gen.d.ts.map +0 -1
  490. package/dist/.pikku/services/pikku-meta-service.gen.js +0 -10
  491. package/dist/.pikku/services/pikku-meta-service.gen.js.map +0 -1
  492. package/dist/.pikku/setup/index.d.ts +0 -8
  493. package/dist/.pikku/setup/index.d.ts.map +0 -1
  494. package/dist/.pikku/setup/index.js +0 -8
  495. package/dist/.pikku/setup/index.js.map +0 -1
  496. package/dist/.pikku/setup/pikku-setup-types.gen.d.ts +0 -67
  497. package/dist/.pikku/setup/pikku-setup-types.gen.d.ts.map +0 -1
  498. package/dist/.pikku/setup/pikku-setup-types.gen.js +0 -88
  499. package/dist/.pikku/setup/pikku-setup-types.gen.js.map +0 -1
  500. package/dist/.pikku/trigger/index.d.ts +0 -8
  501. package/dist/.pikku/trigger/index.d.ts.map +0 -1
  502. package/dist/.pikku/trigger/index.js +0 -8
  503. package/dist/.pikku/trigger/index.js.map +0 -1
  504. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +0 -83
  505. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts.map +0 -1
  506. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +0 -13
  507. package/dist/.pikku/trigger/pikku-trigger-types.gen.js.map +0 -1
  508. package/dist/.pikku/variables/index.d.ts +0 -9
  509. package/dist/.pikku/variables/index.d.ts.map +0 -1
  510. package/dist/.pikku/variables/index.js +0 -9
  511. package/dist/.pikku/variables/index.js.map +0 -1
  512. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +0 -5
  513. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +0 -1
  514. package/dist/.pikku/variables/pikku-variable-types.gen.js +0 -5
  515. package/dist/.pikku/variables/pikku-variable-types.gen.js.map +0 -1
  516. package/dist/.pikku/variables/pikku-variables-meta.gen.json +0 -1
  517. package/dist/.pikku/variables/pikku-variables.gen.d.ts +0 -19
  518. package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +0 -1
  519. package/dist/.pikku/variables/pikku-variables.gen.js +0 -19
  520. package/dist/.pikku/variables/pikku-variables.gen.js.map +0 -1
  521. package/dist/.pikku/workflow/index.d.ts +0 -8
  522. package/dist/.pikku/workflow/index.d.ts.map +0 -1
  523. package/dist/.pikku/workflow/index.js +0 -8
  524. package/dist/.pikku/workflow/index.js.map +0 -1
  525. package/dist/.pikku/workflow/pikku-personas.gen.d.ts +0 -18
  526. package/dist/.pikku/workflow/pikku-personas.gen.d.ts.map +0 -1
  527. package/dist/.pikku/workflow/pikku-personas.gen.js +0 -18
  528. package/dist/.pikku/workflow/pikku-personas.gen.js.map +0 -1
  529. package/dist/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +0 -18
  530. package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +0 -38
  531. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +0 -100
  532. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +0 -1
  533. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +0 -16
  534. package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +0 -1
  535. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts +0 -2
  536. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +0 -1
  537. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +0 -7
  538. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +0 -1
  539. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +0 -5
  540. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts.map +0 -1
  541. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +0 -5
  542. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js.map +0 -1
  543. package/dist/src/functions/credential-delete.function.d.ts +0 -17
  544. package/dist/src/functions/credential-delete.function.d.ts.map +0 -1
  545. package/dist/src/functions/credential-delete.function.js +0 -12
  546. package/dist/src/functions/credential-delete.function.js.map +0 -1
  547. package/dist/src/functions/credential-get.function.d.ts +0 -17
  548. package/dist/src/functions/credential-get.function.d.ts.map +0 -1
  549. package/dist/src/functions/credential-get.function.js +0 -12
  550. package/dist/src/functions/credential-get.function.js.map +0 -1
  551. package/dist/src/functions/credential-list-users.function.d.ts +0 -12
  552. package/dist/src/functions/credential-list-users.function.d.ts.map +0 -1
  553. package/dist/src/functions/credential-list-users.function.js +0 -26
  554. package/dist/src/functions/credential-list-users.function.js.map +0 -1
  555. package/dist/src/functions/credential-set.function.d.ts +0 -20
  556. package/dist/src/functions/credential-set.function.d.ts.map +0 -1
  557. package/dist/src/functions/credential-set.function.js +0 -12
  558. package/dist/src/functions/credential-set.function.js.map +0 -1
  559. package/dist/src/functions/credential-status.function.d.ts +0 -17
  560. package/dist/src/functions/credential-status.function.d.ts.map +0 -1
  561. package/dist/src/functions/credential-status.function.js +0 -15
  562. package/dist/src/functions/credential-status.function.js.map +0 -1
  563. package/dist/src/functions/credential-users.function.d.ts +0 -14
  564. package/dist/src/functions/credential-users.function.d.ts.map +0 -1
  565. package/dist/src/functions/credential-users.function.js +0 -12
  566. package/dist/src/functions/credential-users.function.js.map +0 -1
  567. package/dist/src/functions/get-audit-filters.function.d.ts +0 -23
  568. package/dist/src/functions/get-audit-filters.function.d.ts.map +0 -1
  569. package/dist/src/functions/get-audit-filters.function.js +0 -31
  570. package/dist/src/functions/get-audit-filters.function.js.map +0 -1
  571. package/dist/src/functions/get-audits.function.d.ts +0 -34
  572. package/dist/src/functions/get-audits.function.d.ts.map +0 -1
  573. package/dist/src/functions/get-audits.function.js +0 -24
  574. package/dist/src/functions/get-audits.function.js.map +0 -1
  575. package/dist/src/functions/scope-add-scope-to-user.function.d.ts +0 -17
  576. package/dist/src/functions/scope-add-scope-to-user.function.d.ts.map +0 -1
  577. package/dist/src/functions/scope-add-scope-to-user.function.js +0 -12
  578. package/dist/src/functions/scope-add-scope-to-user.function.js.map +0 -1
  579. package/dist/src/functions/scope-add-user-to-role.function.d.ts +0 -17
  580. package/dist/src/functions/scope-add-user-to-role.function.d.ts.map +0 -1
  581. package/dist/src/functions/scope-add-user-to-role.function.js +0 -12
  582. package/dist/src/functions/scope-add-user-to-role.function.js.map +0 -1
  583. package/dist/src/functions/scope-create-role.function.d.ts +0 -20
  584. package/dist/src/functions/scope-create-role.function.d.ts.map +0 -1
  585. package/dist/src/functions/scope-create-role.function.js +0 -14
  586. package/dist/src/functions/scope-create-role.function.js.map +0 -1
  587. package/dist/src/functions/scope-delete-role.function.d.ts +0 -14
  588. package/dist/src/functions/scope-delete-role.function.d.ts.map +0 -1
  589. package/dist/src/functions/scope-delete-role.function.js +0 -12
  590. package/dist/src/functions/scope-delete-role.function.js.map +0 -1
  591. package/dist/src/functions/scope-list-declared.function.d.ts +0 -18
  592. package/dist/src/functions/scope-list-declared.function.d.ts.map +0 -1
  593. package/dist/src/functions/scope-list-declared.function.js +0 -15
  594. package/dist/src/functions/scope-list-declared.function.js.map +0 -1
  595. package/dist/src/functions/scope-list-roles.function.d.ts +0 -9
  596. package/dist/src/functions/scope-list-roles.function.d.ts.map +0 -1
  597. package/dist/src/functions/scope-list-roles.function.js +0 -14
  598. package/dist/src/functions/scope-list-roles.function.js.map +0 -1
  599. package/dist/src/functions/scope-list-user-roles.function.d.ts +0 -20
  600. package/dist/src/functions/scope-list-user-roles.function.d.ts.map +0 -1
  601. package/dist/src/functions/scope-list-user-roles.function.js +0 -23
  602. package/dist/src/functions/scope-list-user-roles.function.js.map +0 -1
  603. package/dist/src/functions/scope-remove-scope-from-user.function.d.ts +0 -17
  604. package/dist/src/functions/scope-remove-scope-from-user.function.d.ts.map +0 -1
  605. package/dist/src/functions/scope-remove-scope-from-user.function.js +0 -12
  606. package/dist/src/functions/scope-remove-scope-from-user.function.js.map +0 -1
  607. package/dist/src/functions/scope-remove-user-from-role.function.d.ts +0 -17
  608. package/dist/src/functions/scope-remove-user-from-role.function.d.ts.map +0 -1
  609. package/dist/src/functions/scope-remove-user-from-role.function.js +0 -12
  610. package/dist/src/functions/scope-remove-user-from-role.function.js.map +0 -1
  611. package/dist/src/functions/scope-set-role-scopes.function.d.ts +0 -17
  612. package/dist/src/functions/scope-set-role-scopes.function.d.ts.map +0 -1
  613. package/dist/src/functions/scope-set-role-scopes.function.js +0 -12
  614. package/dist/src/functions/scope-set-role-scopes.function.js.map +0 -1
  615. package/dist/src/lib/resolve-audit-users.d.ts +0 -37
  616. package/dist/src/lib/resolve-audit-users.d.ts.map +0 -1
  617. package/dist/src/lib/resolve-audit-users.js +0 -56
  618. package/dist/src/lib/resolve-audit-users.js.map +0 -1
  619. package/dist/src/lib/resolve-audit-users.test.d.ts +0 -2
  620. package/dist/src/lib/resolve-audit-users.test.d.ts.map +0 -1
  621. package/dist/src/lib/resolve-audit-users.test.js +0 -91
  622. package/dist/src/lib/resolve-audit-users.test.js.map +0 -1
  623. package/dist/src/services/code-edit.service.d.ts +0 -57
  624. package/dist/src/services/code-edit.service.d.ts.map +0 -1
  625. package/dist/src/services/code-edit.service.js +0 -312
  626. package/dist/src/services/code-edit.service.js.map +0 -1
  627. package/dist/src/services/code-edit.service.test.d.ts +0 -2
  628. package/dist/src/services/code-edit.service.test.d.ts.map +0 -1
  629. package/dist/src/services/code-edit.service.test.js +0 -375
  630. package/dist/src/services/code-edit.service.test.js.map +0 -1
@@ -0,0 +1,60 @@
1
+ import assert from 'node:assert/strict';
2
+ import { test } from 'node:test';
3
+ import { MissingScopeError } from '#pikku/addon/error';
4
+ import { verifyScopes } from '@pikku/core/scope';
5
+ import { secretGet } from './secret-get.function.js';
6
+ import { secretHas } from './secret-has.function.js';
7
+ import { secretSet } from './secret-set.function.js';
8
+ const readers = [
9
+ ['secretGet', secretGet],
10
+ ['secretHas', secretHas],
11
+ ];
12
+ for (const [name, reader] of readers) {
13
+ test(`${name} refuses a caller with no session`, () => {
14
+ assert.throws(() => verifyScopes(reader.scopes, undefined), MissingScopeError);
15
+ });
16
+ test(`${name} refuses a console user without the secrets scope`, () => {
17
+ assert.throws(() => verifyScopes(reader.scopes, {
18
+ userId: 'alice',
19
+ scopes: ['pikku:console:wirings:read'],
20
+ }), MissingScopeError);
21
+ });
22
+ test(`${name} admits a holder of the secrets read scope`, () => {
23
+ assert.doesNotThrow(() => verifyScopes(reader.scopes, {
24
+ userId: 'root',
25
+ scopes: ['pikku:console:secrets:read'],
26
+ }));
27
+ });
28
+ test(`${name} admits a holder of the console root`, () => {
29
+ assert.doesNotThrow(() => verifyScopes(reader.scopes, { userId: 'root', scopes: ['pikku:console'] }));
30
+ });
31
+ }
32
+ test('secretSet refuses a caller with no session', () => {
33
+ assert.throws(() => verifyScopes(secretSet.scopes, undefined), MissingScopeError);
34
+ });
35
+ test('secretSet refuses a console user without the secrets scope', () => {
36
+ assert.throws(() => verifyScopes(secretSet.scopes, {
37
+ userId: 'alice',
38
+ scopes: ['pikku:console:wirings:read'],
39
+ }), MissingScopeError);
40
+ });
41
+ // Reading a secret and overwriting one are separate grants.
42
+ test('secretSet refuses a holder of only the secrets read scope', () => {
43
+ assert.throws(() => verifyScopes(secretSet.scopes, {
44
+ userId: 'alice',
45
+ scopes: ['pikku:console:secrets:read'],
46
+ }), MissingScopeError);
47
+ });
48
+ test('secretSet admits a holder of the secrets write scope', () => {
49
+ assert.doesNotThrow(() => verifyScopes(secretSet.scopes, {
50
+ userId: 'root',
51
+ scopes: ['pikku:console:secrets:write'],
52
+ }));
53
+ });
54
+ test('secretSet admits a holder of the console root', () => {
55
+ assert.doesNotThrow(() => verifyScopes(secretSet.scopes, {
56
+ userId: 'root',
57
+ scopes: ['pikku:console'],
58
+ }));
59
+ });
60
+ //# sourceMappingURL=secret-scopes.function.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secret-scopes.function.test.js","sourceRoot":"","sources":["../../../src/functions/secret-scopes.function.test.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC,OAAO,EAAE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E;QAC7B,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,CAAC,eAAe,CAAC;KAC1B,CAAC,CACH,CAAA;AACH,CAAC,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"secret-set.function.d.ts","sourceRoot":"","sources":["../../../src/functions/secret-set.function.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;cACR,MAAM;WAAS,OAAO;;aACvB,OAAO;;cADN,MAAM;WAAS,OAAO;;aACvB,OAAO;;cADN,MAAM;WAAS,OAAO;;aACvB,OAAO;oGASlB,CAAA"}
1
+ {"version":3,"file":"secret-set.function.d.ts","sourceRoot":"","sources":["../../../src/functions/secret-set.function.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;cACR,MAAM;WAAS,OAAO;;aACvB,OAAO;;cADN,MAAM;WAAS,OAAO;;aACvB,OAAO;;cADN,MAAM;WAAS,OAAO;;aACvB,OAAO;oGAUlB,CAAA"}
@@ -3,6 +3,7 @@ export const secretSet = pikkuFunc({
3
3
  title: 'Set Secret',
4
4
  description: 'Sets the value of a secret.',
5
5
  expose: true,
6
+ scopes: ['pikku:console:secrets:write'],
6
7
  func: async ({ secretAdminService }, { secretId, value }) => {
7
8
  await secretAdminService.write(secretId, value);
8
9
  return { success: true };
@@ -1 +1 @@
1
- {"version":3,"file":"secret-set.function.js","sourceRoot":"","sources":["../../../src/functions/secret-set.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,MAAM,CAAC,MAAM,SAAS,GAAG,SAAS,CAGhC;IACA,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,6BAA6B;IAC1C,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,KAAK,EAAE,EAAE,kBAAkB,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE;QAC1D,MAAM,kBAAkB,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;QAC/C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;IAC1B,CAAC;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"secret-set.function.js","sourceRoot":"","sources":["../../../src/functions/secret-set.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,MAAM,CAAC,MAAM,SAAS,GAAG,SAAS,CAGhC;IACA,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,6BAA6B;IAC1C,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,CAAC,6BAA6B,CAAC;IACvC,IAAI,EAAE,KAAK,EAAE,EAAE,kBAAkB,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE;QAC1D,MAAM,kBAAkB,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;QAC/C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;IAC1B,CAAC;CACF,CAAC,CAAA"}
@@ -1,8 +1,119 @@
1
- import { type KnowledgeFinding, type KnowledgeGraph } from '@pikku/knowledge';
1
+ import { type KnowledgeFinding, type KnowledgeGraph, type PlanChecklistItem } from '@pikku/knowledge';
2
+ /**
3
+ * The plan as it goes over the wire.
4
+ *
5
+ * Structurally the same as `Plan` in @pikku/knowledge, restated as plain interfaces
6
+ * because that one is inferred from a zod schema, and schema generation cannot walk
7
+ * an inferred type that deep — the whole bundle then names a schema nobody
8
+ * generated, and `getKnowledge` fails at runtime with `MissingSchemaError`.
9
+ *
10
+ * Nothing here is free to drift: `readPlan` hands back the zod type and it is
11
+ * assigned straight into this field, so a plan schema that grows a case these
12
+ * interfaces do not have stops compiling.
13
+ */
14
+ export type PlanSlot<T> = {
15
+ kind: 'built';
16
+ description: string;
17
+ items: T[];
18
+ } | {
19
+ kind: 'n/a';
20
+ description: string;
21
+ };
22
+ export interface PlanModelField {
23
+ name: string;
24
+ type: string;
25
+ classification: 'public' | 'internal' | 'personal' | 'sensitive';
26
+ }
27
+ export interface PlanModelRelationship {
28
+ column: string;
29
+ references: string;
30
+ onDelete: 'cascade' | 'restrict' | 'orphan';
31
+ provedBy?: string;
32
+ }
33
+ export interface PlanModelItem {
34
+ table: string;
35
+ description: string;
36
+ fields: PlanModelField[];
37
+ relationships: PlanModelRelationship[];
38
+ }
39
+ export interface PlanFunctionItem {
40
+ name: string;
41
+ description: string;
42
+ pass: number;
43
+ wire?: {
44
+ transport: string;
45
+ route?: string;
46
+ } | null;
47
+ scopes: string[];
48
+ permission: string | null;
49
+ }
50
+ export interface PlanUiItem {
51
+ route: string;
52
+ description: string;
53
+ pass: number;
54
+ app?: string;
55
+ scenarios: string[];
56
+ }
57
+ export interface PlanNamedItem {
58
+ name: string;
59
+ description: string;
60
+ }
61
+ export interface PlanRoleItem extends PlanNamedItem {
62
+ app?: string;
63
+ }
64
+ export interface PlanScenarioItem {
65
+ feature: string;
66
+ scenario: string;
67
+ fn?: string;
68
+ name?: string;
69
+ }
70
+ export interface PlanCovers {
71
+ note: string;
72
+ hash: string;
73
+ complete: boolean;
74
+ }
75
+ export interface WirePlan {
76
+ version: number;
77
+ milestone: string;
78
+ description: string;
79
+ covers: PlanCovers[];
80
+ model: PlanSlot<PlanModelItem>;
81
+ functions: PlanSlot<PlanFunctionItem>;
82
+ roles: PlanSlot<PlanRoleItem>;
83
+ scopes: PlanSlot<PlanNamedItem>;
84
+ ui: PlanSlot<PlanUiItem>;
85
+ scenarios: {
86
+ backend: PlanSlot<PlanScenarioItem>;
87
+ browser: PlanSlot<PlanScenarioItem>;
88
+ permission: PlanSlot<PlanScenarioItem>;
89
+ };
90
+ }
91
+ /**
92
+ * One milestone's technical plan, reconciled against the generated meta.
93
+ *
94
+ * The milestone note is the ask — a title and a Gherkin block. The plan beside it is
95
+ * the answer: the tables, functions, roles, screens and scenarios that were promised.
96
+ * The checklist rides along rather than being a second call, because every row is a
97
+ * set-membership test against the same meta read, and a checklist fetched separately
98
+ * could disagree with the plan it is drawn beside.
99
+ */
100
+ export interface KnowledgeMilestonePlan {
101
+ plan: WirePlan | null;
102
+ /**
103
+ * Why there is no plan, for the reader to be told instead of being shown an empty
104
+ * one. `readPlan` already separates "nobody wrote one" from "one is there and will
105
+ * not parse", and those want different words in front of a person.
106
+ */
107
+ unavailable: string | null;
108
+ checklist: PlanChecklistItem[];
109
+ complete: boolean;
110
+ }
2
111
  export interface KnowledgeBundle extends KnowledgeGraph {
3
112
  /** What `pikku knowledge validate` would report, so the console shows the same verdict. */
4
113
  findings: KnowledgeFinding[];
5
114
  ok: boolean;
115
+ /** Keyed by the milestone note's path, so a note document can find its own plan. */
116
+ plans: Record<string, KnowledgeMilestonePlan>;
6
117
  }
7
118
  /**
8
119
  * Reads the project's `knowledge/` notes off disk on every call.
@@ -17,5 +128,6 @@ export declare class KnowledgeService {
17
128
  private readonly outDir;
18
129
  constructor(projectRoot: string, outDir: string);
19
130
  getBundle(): Promise<KnowledgeBundle>;
131
+ private getPlans;
20
132
  }
21
133
  //# sourceMappingURL=knowledge.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"knowledge.service.d.ts","sourceRoot":"","sources":["../../../src/services/knowledge.service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EAIpB,MAAM,kBAAkB,CAAA;AAEzB,MAAM,WAAW,eAAgB,SAAQ,cAAc;IACrD,2FAA2F;IAC3F,QAAQ,EAAE,gBAAgB,EAAE,CAAA;IAC5B,EAAE,EAAE,OAAO,CAAA;CACZ;AAED;;;;;;;GAOG;AACH,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADN,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM;IAG3B,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;CAc5C"}
1
+ {"version":3,"file":"knowledge.service.d.ts","sourceRoot":"","sources":["../../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AW,sBAAsB;IACrC,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAA;IACrB;;;;OAIG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,SAAS,EAAE,iBAAiB,EAAE,CAAA;IAC9B,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,eAAgB,SAAQ,cAAc;IACrD,2FAA2F;IAC3F,QAAQ,EAAE,gBAAgB,EAAE,CAAA;IAC5B,EAAE,EAAE,OAAO,CAAA;IACX,oFAAoF;IACpF,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAA;CAC9C;AAED;;;;;;;GAOG;AACH,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADN,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM;IAG3B,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;YAe7B,QAAQ;CA6BvB"}
@@ -1,4 +1,4 @@
1
- import { buildKnowledgeGraph, readKnowledgeNotes, runKnowledgeValidate, } from '@pikku/knowledge';
1
+ import { buildKnowledgeGraph, functionsDirFor, planShortfall, readKnowledgeNotes, readMilestones, readPikkuMeta, readPlan, runKnowledgeValidate, } from '@pikku/knowledge';
2
2
  /**
3
3
  * Reads the project's `knowledge/` notes off disk on every call.
4
4
  *
@@ -20,7 +20,37 @@ export class KnowledgeService {
20
20
  const notes = await readKnowledgeNotes(this.projectRoot);
21
21
  const graph = buildKnowledgeGraph(notes);
22
22
  const { ok, findings } = await runKnowledgeValidate(this.projectRoot, this.outDir, notes);
23
- return { ...graph, ok, findings };
23
+ return { ...graph, ok, findings, plans: await this.getPlans() };
24
+ }
25
+ async getPlans() {
26
+ const milestones = await readMilestones(this.projectRoot);
27
+ if (milestones.length === 0)
28
+ return {};
29
+ // Read once for every milestone rather than per note: the meta is the whole
30
+ // project's, so re-reading it per plan would say the same thing several times
31
+ // over and let two milestones on one page disagree about what exists.
32
+ const meta = readPikkuMeta(functionsDirFor(this.projectRoot));
33
+ const plans = {};
34
+ for (const note of milestones) {
35
+ const read = readPlan(this.projectRoot, note.path);
36
+ if (!read.ok) {
37
+ plans[note.path] = {
38
+ plan: null,
39
+ unavailable: read.reason,
40
+ checklist: [],
41
+ complete: false,
42
+ };
43
+ continue;
44
+ }
45
+ const { items, missing } = planShortfall(read.plan, meta);
46
+ plans[note.path] = {
47
+ plan: read.plan,
48
+ unavailable: null,
49
+ checklist: items,
50
+ complete: missing.length === 0,
51
+ };
52
+ }
53
+ return plans;
24
54
  }
25
55
  }
26
56
  //# sourceMappingURL=knowledge.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"knowledge.service.js","sourceRoot":"","sources":["../../../src/services/knowledge.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,kBAAkB,CAAA;AAQzB;;;;;;;GAOG;AACH,MAAM,OAAO,gBAAgB;IAC3B,YACmB,WAAmB,EACnB,MAAc;QADd,gBAAW,GAAX,WAAW,CAAQ;QACnB,WAAM,GAAN,MAAM,CAAQ;IAC9B,CAAC;IAEJ,KAAK,CAAC,SAAS;QACb,6EAA6E;QAC7E,4EAA4E;QAC5E,0EAA0E;QAC1E,4BAA4B;QAC5B,MAAM,KAAK,GAAG,MAAM,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;QACxD,MAAM,KAAK,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAA;QACxC,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,MAAM,oBAAoB,CACjD,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,MAAM,EACX,KAAK,CACN,CAAA;QACD,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAA;IACnC,CAAC;CACF"}
1
+ {"version":3,"file":"knowledge.service.js","sourceRoot":"","sources":["../../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C,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;YAClD,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;gBACb,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG;oBACjB,IAAI,EAAE,IAAI;oBACV,WAAW,EAAE,IAAI,CAAC,MAAM;oBACxB,SAAS,EAAE,EAAE;oBACb,QAAQ,EAAE,KAAK;iBAChB,CAAA;gBACD,SAAQ;YACV,CAAC;YACD,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;YACzD,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG;gBACjB,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,WAAW,EAAE,IAAI;gBACjB,SAAS,EAAE,KAAK;gBAChB,QAAQ,EAAE,OAAO,CAAC,MAAM,KAAK,CAAC;aAC/B,CAAA;QACH,CAAC;QACD,OAAO,KAAK,CAAA;IACd,CAAC;CACF"}
@@ -56,4 +56,100 @@ describe('KnowledgeService', () => {
56
56
  assert.equal((await instance.getBundle()).stats.notes, 2);
57
57
  });
58
58
  });
59
+ describe('KnowledgeService milestone plans', () => {
60
+ const MILESTONE = 'knowledge/milestones/01-the-daily-entry.md';
61
+ const NOTE = `---
62
+ type: milestone
63
+ entities: entry
64
+ ---
65
+ The daily entry.
66
+
67
+ \`\`\`gherkin
68
+ Given 'owner' has today free
69
+ When 'owner' writes an entry
70
+ Then 'owner' reads it back
71
+ \`\`\`
72
+ `;
73
+ const plan = {
74
+ version: 1,
75
+ deferrals: [],
76
+ milestone: MILESTONE,
77
+ description: 'One person writes one entry a day.',
78
+ covers: [
79
+ { note: 'entities/entry.md', hash: 'a1b2c3d4e5f6', complete: true },
80
+ ],
81
+ model: { kind: 'n/a', description: 'No tables yet.' },
82
+ functions: {
83
+ kind: 'built',
84
+ description: 'Write.',
85
+ items: [
86
+ {
87
+ name: 'createEntry',
88
+ description: "Creates today's entry.",
89
+ pass: 1,
90
+ wire: { transport: 'http', route: 'POST /entry' },
91
+ scopes: [],
92
+ permission: 'Only the signed-in person writes their own entry',
93
+ },
94
+ ],
95
+ },
96
+ roles: { kind: 'n/a', description: 'One person.' },
97
+ scopes: { kind: 'n/a', description: 'No third-party access yet.' },
98
+ ui: { kind: 'n/a', description: 'No screen yet.' },
99
+ scenarios: {
100
+ backend: { kind: 'n/a', description: 'None yet.' },
101
+ browser: { kind: 'n/a', description: 'None yet.' },
102
+ permission: { kind: 'n/a', description: 'None yet.' },
103
+ },
104
+ };
105
+ test('a milestone with a plan carries it, reconciled against the meta', async () => {
106
+ const root = await project({
107
+ [MILESTONE]: NOTE,
108
+ 'knowledge/milestones/01-the-daily-entry.plan.json': JSON.stringify(plan),
109
+ '.pikku/function/pikku-functions-meta.gen.json': JSON.stringify({
110
+ createEntry: { auth: true },
111
+ }),
112
+ '.pikku/http/pikku-http-wirings-meta.gen.json': JSON.stringify({
113
+ POST: { '/entry': {} },
114
+ }),
115
+ });
116
+ const bundle = await service(root).getBundle();
117
+ const milestone = bundle.plans[MILESTONE];
118
+ assert.ok(milestone);
119
+ assert.equal(milestone.unavailable, null);
120
+ assert.equal(milestone.plan?.description, 'One person writes one entry a day.');
121
+ assert.equal(milestone.complete, true);
122
+ assert.deepEqual(milestone.checklist.map((item) => [item.id, item.done]), [
123
+ ['function:createEntry', true],
124
+ ['wire:POST /entry', true],
125
+ ]);
126
+ });
127
+ test('a plan the meta cannot account for reads as incomplete rather than as absent', async () => {
128
+ const root = await project({
129
+ [MILESTONE]: NOTE,
130
+ 'knowledge/milestones/01-the-daily-entry.plan.json': JSON.stringify(plan),
131
+ });
132
+ const bundle = await service(root).getBundle();
133
+ const milestone = bundle.plans[MILESTONE];
134
+ assert.equal(milestone?.complete, false);
135
+ assert.deepEqual(milestone?.checklist.map((item) => item.done), [false, false]);
136
+ });
137
+ test('a milestone nobody planned says so, rather than going missing from the bundle', async () => {
138
+ // A note with no plan beside it is the state the console most needs to show —
139
+ // dropping the key would render exactly like a milestone that was never written.
140
+ const root = await project({ [MILESTONE]: NOTE });
141
+ const bundle = await service(root).getBundle();
142
+ const milestone = bundle.plans[MILESTONE];
143
+ assert.ok(milestone);
144
+ assert.equal(milestone.plan, null);
145
+ assert.match(milestone.unavailable ?? '', /No plan at/);
146
+ assert.deepEqual(milestone.checklist, []);
147
+ });
148
+ test('a base with no milestones carries no plans', async () => {
149
+ const root = await project({
150
+ 'knowledge/decisions/why.md': '---\ntype: decision\n---\nBecause.',
151
+ });
152
+ assert.deepEqual((await service(root).getBundle()).plans, {});
153
+ });
154
+ });
59
155
  //# sourceMappingURL=knowledge.service.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"knowledge.service.test.js","sourceRoot":"","sources":["../../../src/services/knowledge.service.test.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAEzD,MAAM,OAAO,GAAG,KAAK,EAAE,KAA6B,EAAmB,EAAE;IACvE,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,0BAA0B,CAAC,CAAC,CAAA;IACtE,KAAK,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACpD,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;QAC5B,MAAM,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,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EAAE,EAAE,CAAC,CAAA;IAC3C,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,4CAA4C,EAAE,KAAK,IAAI,EAAE;QAC5D,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC;YACzB,4BAA4B,EAAE,oCAAoC;SACnE,CAAC,CAAA;QACF,MAAM,CAAC,SAAS,CAAC,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;IAC/D,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pikku/addon-console",
3
- "version": "0.12.48",
3
+ "version": "0.12.50",
4
4
  "description": "Console addon for Pikku — functions powering the Pikku Console UI",
5
5
  "type": "module",
6
6
  "imports": {
@@ -29,14 +29,14 @@
29
29
  "dist"
30
30
  ],
31
31
  "scripts": {
32
- "build": "pikku all && tsc && (cp .pikku/addon/rpc/*.d.ts dist/.pikku/addon/rpc/ 2>/dev/null || true) && (cp .pikku/addon/agent/*.d.ts dist/.pikku/addon/agent/ 2>/dev/null || true) && (cp .pikku/addon/workflow/*.d.ts dist/.pikku/addon/workflow/ 2>/dev/null || true) && (mkdir -p dist/.pikku/addon/function && cp .pikku/addon/function/*-verbose.gen.json dist/.pikku/addon/function/ 2>/dev/null || true) && (mkdir -p dist/types && cp types/*.d.ts dist/types/)",
32
+ "build": "rm -rf dist && pikku all && tsc && (cp .pikku/addon/rpc/*.d.ts dist/.pikku/addon/rpc/ 2>/dev/null || true) && (cp .pikku/addon/agent/*.d.ts dist/.pikku/addon/agent/ 2>/dev/null || true) && (cp .pikku/addon/workflow/*.d.ts dist/.pikku/addon/workflow/ 2>/dev/null || true) && (mkdir -p dist/.pikku/addon/function && cp .pikku/addon/function/*-verbose.gen.json dist/.pikku/addon/function/ 2>/dev/null || true) && (mkdir -p dist/types && cp types/*.d.ts dist/types/)",
33
33
  "pikku": "pikku all",
34
34
  "pretest": "pikku all",
35
35
  "test": "tsc --noEmit",
36
36
  "test:coverage": "bash run-tests.sh --coverage"
37
37
  },
38
38
  "peerDependencies": {
39
- "@pikku/better-auth": "^0.12.26",
39
+ "@pikku/better-auth": "^0.12.37",
40
40
  "@pikku/core": "^0.12.90"
41
41
  },
42
42
  "peerDependenciesMeta": {
@@ -45,15 +45,15 @@
45
45
  }
46
46
  },
47
47
  "devDependencies": {
48
- "@pikku/better-auth": "^0.12.26",
49
- "@pikku/cli": "^0.12.120",
48
+ "@pikku/better-auth": "^0.12.37",
49
+ "@pikku/cli": "^0.12.135",
50
50
  "@pikku/core": "^0.12.90",
51
51
  "oauth2-mock-server": "^9.1.0",
52
52
  "typescript": "^6.0.3"
53
53
  },
54
54
  "dependencies": {
55
55
  "@pikku/code-edit": "^0.12.1",
56
- "@pikku/knowledge": "^0.12.7",
56
+ "@pikku/knowledge": "^0.12.9",
57
57
  "json-schema": "^0.4.0",
58
58
  "open": "^11.0.1"
59
59
  },
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.105
3
- */
4
- /**
5
- * Subpath entry — `#pikku/addon` resolves here.
6
- */
7
- export * from './pikku-addon-types.gen.js';
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../.pikku/addon/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,4BAA4B,CAAA"}
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.105
3
- */
4
- /**
5
- * Subpath entry — `#pikku/addon` resolves here.
6
- */
7
- export * from './pikku-addon-types.gen.js';
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../.pikku/addon/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,4BAA4B,CAAA"}
@@ -1,66 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.105
3
- */
4
- /**
5
- * Addon package types for pikkuAddonConfig and pikkuAddonServices
6
- */
7
- import type { CreateConfig } from '@pikku/core/types';
8
- import type { PikkuWire } from '@pikku/core/types';
9
- import type { SingletonServices } from '../../types/application-types.d.js';
10
- import type { Config } from '../../types/application-types.d.js';
11
- import type { RequiredSingletonServices } from '../pikku-services.gen.js';
12
- import { TypedSecretService } from '../secrets/pikku-secrets.gen.js';
13
- import { TypedVariablesService } from '../variables/pikku-variables.gen.js';
14
- /**
15
- * Base services provided to addon package service factories.
16
- * These are always available from the parent application.
17
- */
18
- export type AddonBaseServices = {
19
- logger: SingletonServices['logger'];
20
- variables: TypedVariablesService;
21
- secrets: TypedSecretService;
22
- };
23
- /**
24
- * Creates a Pikku config factory for addon packages.
25
- * Unlike pikkuConfig, this receives AddonBaseServices (logger, variables, secrets)
26
- * from the parent application, so addon packages can read variables/secrets during config creation.
27
- */
28
- export declare const pikkuAddonConfig: <ExistingServices extends Omit<Partial<SingletonServices>, "variables" | "secrets"> & AddonBaseServices>(func: (services: ExistingServices) => Promise<Config>) => CreateConfig<Config>;
29
- /**
30
- * Creates a Pikku singleton services factory for addon packages.
31
- * Unlike pikkuServices, this expects the parent application to provide
32
- * logger, variables, and secrets - no fallbacks needed.
33
- *
34
- * @param func - Addon services factory function that receives config and base services
35
- * @returns The singleton services factory function
36
- *
37
- * @example
38
- * ```typescript
39
- * export const createSingletonServices = pikkuAddonServices(async (
40
- * config,
41
- * { secrets }
42
- * ) => {
43
- * const creds = await secrets.getSecret<GithubCredentials>('GITHUB_CREDENTIALS')
44
- * const github = new GithubService(creds.reveal())
45
- * return { github }
46
- * })
47
- * ```
48
- */
49
- export declare const pikkuAddonServices: <T extends Record<string, any>, ExistingServices extends Omit<Partial<SingletonServices>, "variables" | "secrets"> & AddonBaseServices>(func: (config: Config, services: ExistingServices) => Promise<T>) => (config: Config, existingServices?: Partial<SingletonServices>) => Promise<RequiredSingletonServices>;
50
- /**
51
- * Creates a Pikku wire services factory for addon packages.
52
- * Wire services are created per-request and have access to the HTTP request context.
53
- *
54
- * @param func - Wire services factory function that receives singleton services and the wire context
55
- * @returns The wire services factory function
56
- *
57
- * @example
58
- * ```typescript
59
- * export const createWireServices = pikkuAddonWireServices(async (services, wire) => {
60
- * const authHeader = wire.http?.request?.header('authorization')
61
- * return { myService: new MyService(authHeader) }
62
- * })
63
- * ```
64
- */
65
- export declare const pikkuAddonWireServices: <ExistingServices extends Omit<Partial<SingletonServices>, "variables" | "secrets"> & AddonBaseServices>(func: (services: ExistingServices, wire: PikkuWire) => Promise<Record<string, any>>) => any;
66
- //# sourceMappingURL=pikku-addon-types.gen.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pikku-addon-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/addon/pikku-addon-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAA;AAC3E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAA;AAChE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAA;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAM3E;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAA;IACnC,SAAS,EAAE,qBAAqB,CAAA;IAChC,OAAO,EAAE,kBAAkB,CAAA;CAC5B,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,gBAAgB,SAAS,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC,GAAG,iBAAiB,EACrI,MAAM,CAAC,QAAQ,EAAE,gBAAgB,KAAK,OAAO,CAAC,MAAM,CAAC,KACpD,YAAY,CAAC,MAAM,CAKrB,CAAA;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,gBAAgB,SAAS,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC,GAAG,iBAAiB,EACtK,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,gBAAgB,KAAK,OAAO,CAAC,CAAC,CAAC,MAElD,QAAQ,MAAM,EAAE,mBAAmB,OAAO,CAAC,iBAAiB,CAAC,KAAG,OAAO,CAAC,yBAAyB,CAchH,CAAA;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,GAAI,gBAAgB,SAAS,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC,GAAG,iBAAiB,EAC3I,MAAM,CAAC,QAAQ,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,KAAK,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,KAM7E,GACP,CAAA"}
@@ -1,78 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.105
3
- */
4
- /**
5
- * Addon package types for pikkuAddonConfig and pikkuAddonServices
6
- */
7
- import { TypedSecretService } from '../secrets/pikku-secrets.gen.js';
8
- import { TypedVariablesService } from '../variables/pikku-variables.gen.js';
9
- /**
10
- * Creates a Pikku config factory for addon packages.
11
- * Unlike pikkuConfig, this receives AddonBaseServices (logger, variables, secrets)
12
- * from the parent application, so addon packages can read variables/secrets during config creation.
13
- */
14
- export const pikkuAddonConfig = (func) => {
15
- return (async (_variables, existingServices) => {
16
- const { secrets, variables, ...rest } = (existingServices ?? {});
17
- return func({ ...rest, secrets: new TypedSecretService(secrets), variables: new TypedVariablesService(variables) });
18
- });
19
- };
20
- /**
21
- * Creates a Pikku singleton services factory for addon packages.
22
- * Unlike pikkuServices, this expects the parent application to provide
23
- * logger, variables, and secrets - no fallbacks needed.
24
- *
25
- * @param func - Addon services factory function that receives config and base services
26
- * @returns The singleton services factory function
27
- *
28
- * @example
29
- * ```typescript
30
- * export const createSingletonServices = pikkuAddonServices(async (
31
- * config,
32
- * { secrets }
33
- * ) => {
34
- * const creds = await secrets.getSecret<GithubCredentials>('GITHUB_CREDENTIALS')
35
- * const github = new GithubService(creds.reveal())
36
- * return { github }
37
- * })
38
- * ```
39
- */
40
- export const pikkuAddonServices = (func) => {
41
- return async (config, existingServices) => {
42
- const { logger, variables, secrets, schema } = (existingServices ?? {});
43
- const typedVariables = new TypedVariablesService(variables);
44
- const typedSecrets = new TypedSecretService(secrets);
45
- const result = await func(config, { ...existingServices, logger, variables: typedVariables, secrets: typedSecrets });
46
- return {
47
- config,
48
- logger,
49
- schema,
50
- variables: typedVariables,
51
- secrets: typedSecrets,
52
- ...result,
53
- };
54
- };
55
- };
56
- /**
57
- * Creates a Pikku wire services factory for addon packages.
58
- * Wire services are created per-request and have access to the HTTP request context.
59
- *
60
- * @param func - Wire services factory function that receives singleton services and the wire context
61
- * @returns The wire services factory function
62
- *
63
- * @example
64
- * ```typescript
65
- * export const createWireServices = pikkuAddonWireServices(async (services, wire) => {
66
- * const authHeader = wire.http?.request?.header('authorization')
67
- * return { myService: new MyService(authHeader) }
68
- * })
69
- * ```
70
- */
71
- export const pikkuAddonWireServices = (func) => {
72
- return ((services, wire) => {
73
- const typedVariables = new TypedVariablesService(services.variables);
74
- const typedSecrets = new TypedSecretService(services.secrets);
75
- return func({ ...services, variables: typedVariables, secrets: typedSecrets }, wire);
76
- });
77
- };
78
- //# sourceMappingURL=pikku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AE,YAAY,EAAsB,CAAC,CAAA;QACxI,OAAO;YACL,MAAM;YACN,MAAM;YACN,MAAM;YACN,SAAS,EAAE,cAAc;YACzB,OAAO,EAAE,YAAY;YACrB,GAAG,MAAM;SAC8B,CAAA;IAC3C,CAAC,CAAA;AACH,CAAC,CAAA;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,IAAmF,EACnF,EAAE;IACF,OAAO,CAAC,CAAC,QAAa,EAAE,IAAe,EAAE,EAAE;QACzC,MAAM,cAAc,GAAG,IAAI,qBAAqB,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAA;QACpE,MAAM,YAAY,GAAG,IAAI,kBAAkB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;QAC7D,OAAO,IAAI,CAAC,EAAE,GAAG,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,EAAE,YAAY,EAAsB,EAAE,IAAI,CAAC,CAAA;IAC1G,CAAC,CAAQ,CAAA;AACX,CAAC,CAAA"}
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.105
3
- */
4
- /**
5
- * Subpath entry — `#pikku/agent` resolves here.
6
- */
7
- export * from './pikku-agent-types.gen.js';
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../.pikku/agent/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,4BAA4B,CAAA"}