@pikku/cli 0.12.125 → 0.12.126

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 (176) hide show
  1. package/CHANGELOG.md +166 -0
  2. package/dist/.pikku/addon/index.d.ts +1 -1
  3. package/dist/.pikku/addon/index.js +1 -1
  4. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +1 -1
  5. package/dist/.pikku/addon/pikku-addon-types.gen.js +1 -1
  6. package/dist/.pikku/agent/index.d.ts +1 -1
  7. package/dist/.pikku/agent/index.js +1 -1
  8. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
  9. package/dist/.pikku/agent/pikku-model-aliases.gen.js +1 -1
  10. package/dist/.pikku/auth/index.d.ts +1 -1
  11. package/dist/.pikku/auth/index.js +1 -1
  12. package/dist/.pikku/auth/pikku-auth-types.gen.d.ts +1 -1
  13. package/dist/.pikku/auth/pikku-auth-types.gen.js +1 -1
  14. package/dist/.pikku/channel/index.d.ts +1 -1
  15. package/dist/.pikku/channel/index.js +1 -1
  16. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
  17. package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
  18. package/dist/.pikku/cli/index.d.ts +1 -1
  19. package/dist/.pikku/cli/index.js +1 -1
  20. package/dist/.pikku/cli/pikku-cli-channel.js +6 -1
  21. package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +1 -1
  22. package/dist/.pikku/cli/pikku-cli-client.gen.js +1 -1
  23. package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.d.ts +1 -1
  24. package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.js +1 -1
  25. package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +1 -1
  26. package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
  27. package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +1 -1
  28. package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.json +13 -0
  29. package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +1 -1
  30. package/dist/.pikku/cli/pikku-cli-wirings.gen.js +1 -1
  31. package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
  32. package/dist/.pikku/cli/pikku-cli.gen.js +1 -1
  33. package/dist/.pikku/error/index.d.ts +1 -1
  34. package/dist/.pikku/error/index.js +1 -1
  35. package/dist/.pikku/error/pikku-error-types.gen.d.ts +1 -1
  36. package/dist/.pikku/error/pikku-error-types.gen.js +1 -1
  37. package/dist/.pikku/function/index.d.ts +1 -1
  38. package/dist/.pikku/function/index.js +1 -1
  39. package/dist/.pikku/function/pikku-function-types.gen.d.ts +1 -1
  40. package/dist/.pikku/function/pikku-function-types.gen.js +1 -1
  41. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  42. package/dist/.pikku/function/pikku-functions-meta.gen.json +35 -18
  43. package/dist/.pikku/function/pikku-functions.gen.js +1 -1
  44. package/dist/.pikku/gateway/index.d.ts +1 -1
  45. package/dist/.pikku/gateway/index.js +1 -1
  46. package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts +1 -1
  47. package/dist/.pikku/gateway/pikku-gateway-types.gen.js +1 -1
  48. package/dist/.pikku/http/index.d.ts +1 -1
  49. package/dist/.pikku/http/index.js +1 -1
  50. package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
  51. package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
  52. package/dist/.pikku/mcp/index.d.ts +1 -1
  53. package/dist/.pikku/mcp/index.js +1 -1
  54. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
  55. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
  56. package/dist/.pikku/middleware/index.d.ts +1 -1
  57. package/dist/.pikku/middleware/index.js +1 -1
  58. package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts +1 -1
  59. package/dist/.pikku/middleware/pikku-middleware-types.gen.js +1 -1
  60. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +1 -1
  61. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +1 -1
  62. package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
  63. package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
  64. package/dist/.pikku/pikku-services.gen.d.ts +1 -1
  65. package/dist/.pikku/queue/index.d.ts +1 -1
  66. package/dist/.pikku/queue/index.js +1 -1
  67. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
  68. package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
  69. package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +1 -1
  70. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
  71. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
  72. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  73. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +1 -0
  74. package/dist/.pikku/scenarios/index.d.ts +1 -1
  75. package/dist/.pikku/scenarios/index.js +1 -1
  76. package/dist/.pikku/scenarios/pikku-personas.gen.js +1 -1
  77. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
  78. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
  79. package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts +1 -1
  80. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
  81. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
  82. package/dist/.pikku/scenarios/schemas/register.gen.d.ts +1 -1
  83. package/dist/.pikku/scenarios/schemas/register.gen.js +1 -1
  84. package/dist/.pikku/scheduler/index.d.ts +1 -1
  85. package/dist/.pikku/scheduler/index.js +1 -1
  86. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
  87. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
  88. package/dist/.pikku/schemas/register.gen.js +3 -1
  89. package/dist/.pikku/schemas/schemas/FabricSecretsListInput.schema.json +1 -1
  90. package/dist/.pikku/schemas/schemas/FabricSecretsRotateInput.schema.json +1 -1
  91. package/dist/.pikku/schemas/schemas/FabricSecretsSetInput.schema.json +1 -1
  92. package/dist/.pikku/schemas/schemas/FabricVariablesGetInput.schema.json +1 -1
  93. package/dist/.pikku/schemas/schemas/FabricVariablesSetInput.schema.json +1 -1
  94. package/dist/.pikku/schemas/schemas/PersonaSecretInput.schema.json +1 -0
  95. package/dist/.pikku/scopes/index.d.ts +1 -1
  96. package/dist/.pikku/scopes/index.js +1 -1
  97. package/dist/.pikku/scopes/pikku-personas.gen.js +1 -1
  98. package/dist/.pikku/scopes/pikku-roles.gen.d.ts +1 -1
  99. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +1 -1
  100. package/dist/.pikku/scopes/pikku-scope-types.gen.js +1 -1
  101. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +1 -1
  102. package/dist/.pikku/secrets/index.d.ts +1 -1
  103. package/dist/.pikku/secrets/index.js +1 -1
  104. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
  105. package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
  106. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
  107. package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
  108. package/dist/.pikku/services/pikku-meta-service.gen.d.ts +1 -1
  109. package/dist/.pikku/services/pikku-meta-service.gen.js +1 -1
  110. package/dist/.pikku/setup/index.d.ts +1 -1
  111. package/dist/.pikku/setup/index.js +1 -1
  112. package/dist/.pikku/setup/pikku-setup-types.gen.d.ts +1 -1
  113. package/dist/.pikku/setup/pikku-setup-types.gen.js +1 -1
  114. package/dist/.pikku/trigger/index.d.ts +1 -1
  115. package/dist/.pikku/trigger/index.js +1 -1
  116. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  117. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  118. package/dist/.pikku/variables/index.d.ts +1 -1
  119. package/dist/.pikku/variables/index.js +1 -1
  120. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
  121. package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
  122. package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
  123. package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
  124. package/dist/.pikku/workflow/index.d.ts +1 -1
  125. package/dist/.pikku/workflow/index.js +1 -1
  126. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +1 -1
  127. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -1
  128. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  129. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  130. package/dist/bin/pikku-bin.mjs +2 -2
  131. package/dist/src/cli.wiring.js +6 -1
  132. package/dist/src/deploy/bundler/bun-bundler.js +12 -5
  133. package/dist/src/fabric/fabric-commands.d.ts +15 -15
  134. package/dist/src/fabric/functions/deploy.function.js +12 -2
  135. package/dist/src/fabric/functions/secrets-list.function.d.ts +4 -4
  136. package/dist/src/fabric/functions/secrets-list.function.js +4 -4
  137. package/dist/src/fabric/functions/secrets-rotate.function.d.ts +4 -4
  138. package/dist/src/fabric/functions/secrets-rotate.function.js +8 -5
  139. package/dist/src/fabric/functions/secrets-set.function.d.ts +4 -4
  140. package/dist/src/fabric/functions/secrets-set.function.js +4 -4
  141. package/dist/src/fabric/functions/validate.function.js +49 -24
  142. package/dist/src/fabric/functions/variables-get.function.d.ts +4 -4
  143. package/dist/src/fabric/functions/variables-get.function.js +4 -4
  144. package/dist/src/fabric/functions/variables-set.function.d.ts +4 -4
  145. package/dist/src/fabric/functions/variables-set.function.js +4 -4
  146. package/dist/src/fabric/lib/blank-comments.d.ts +21 -0
  147. package/dist/src/fabric/lib/blank-comments.js +71 -0
  148. package/dist/src/fabric/lib/blank-scenario-meta.d.ts +1 -0
  149. package/dist/src/fabric/lib/blank-scenario-meta.js +110 -0
  150. package/dist/src/fabric/lib/deployment.d.ts +26 -0
  151. package/dist/src/fabric/lib/deployment.js +35 -0
  152. package/dist/src/fabric/lib/stage.d.ts +19 -3
  153. package/dist/src/fabric/lib/stage.js +29 -6
  154. package/dist/src/functions/commands/db-reset.js +6 -2
  155. package/dist/src/functions/commands/dev.js +5 -1
  156. package/dist/src/functions/commands/persona.d.ts +18 -0
  157. package/dist/src/functions/commands/persona.js +41 -2
  158. package/dist/src/functions/commands/scenario-browser.d.ts +13 -5
  159. package/dist/src/functions/db/check-enums.d.ts +38 -0
  160. package/dist/src/functions/db/check-enums.js +103 -0
  161. package/dist/src/functions/db/db-codegen.js +15 -0
  162. package/dist/src/functions/db/postgres/postgres-introspector.d.ts +14 -0
  163. package/dist/src/functions/db/postgres/postgres-introspector.js +48 -0
  164. package/dist/src/functions/db/sqlite/sqlite-introspector.d.ts +3 -4
  165. package/dist/src/functions/db/sqlite/sqlite-introspector.js +5 -17
  166. package/dist/src/functions/wirings/virtual-user/serialize-virtual-user-functions.d.ts +9 -6
  167. package/dist/src/functions/wirings/virtual-user/serialize-virtual-user-functions.js +51 -27
  168. package/dist/src/server/actor-sign-in.d.ts +24 -1
  169. package/dist/src/server/actor-sign-in.js +45 -2
  170. package/dist/src/utils/persona-credentials.d.ts +23 -2
  171. package/dist/src/utils/persona-credentials.js +55 -2
  172. package/dist/src/utils/pikku-cli-config.d.ts +4 -4
  173. package/dist/src/utils/pikku-cli-config.js +30 -10
  174. package/dist/tsconfig.tsbuildinfo +1 -1
  175. package/package.json +8 -8
  176. package/surface.json +101 -51
package/CHANGELOG.md CHANGED
@@ -1,3 +1,169 @@
1
+ ## 0.12.126
2
+
3
+ ### Patch Changes
4
+
5
+ - ee9da9e: A Postgres `CHECK (col IN (…))` constraint now generates a string-literal union, the way a native enum and the SQLite equivalent already did. SQL comments inside the value list are ignored rather than corrupting the union parsed out of it.
6
+ - 7a15c9c: An actor credential is one persona's, not everyone's
7
+
8
+ `SCENARIO_ACTOR_SECRET` was a skeleton key. Anyone holding it could post any
9
+ `actor: true` address to `/auth/sign-in/actor` and get that persona's session —
10
+ including the `admin` persona, which provisioning grants real admin. The browser
11
+ switcher held it too, baked into the dev bundle as `VITE_SCENARIO_ACTOR_SECRET`,
12
+ so "the reviewer can sign in as each kind of user" and "the reviewer's bundle is
13
+ entitled to every persona" were the same fact.
14
+
15
+ It is now a root that credentials derive from, never one that is presented:
16
+
17
+ ```ts
18
+ deriveActorSecret(root, email) // HKDF-expanded HMAC-SHA256 over the address
19
+ ```
20
+
21
+ The endpoint re-derives the expected value for whichever address is signing in
22
+ and compares, so nothing is stored or looked up, a credential minted for one
23
+ persona is refused for every other, and rotating the root invalidates all of
24
+ them at once. The root itself is no longer a valid credential, and a root under
25
+ 32 characters refuses the endpoint rather than deriving weak credentials from
26
+ it — the server log says why, the client is not told.
27
+
28
+ What that buys, in the places that used to need the whole key:
29
+
30
+ - **`pikku dev`** mints one credential per declared persona into
31
+ `VITE_DEV_ACTOR_SECRETS` and no longer writes `VITE_SCENARIO_ACTOR_SECRET` at
32
+ all. The root stays on the server.
33
+ - **`pikku persona secret <id>`** mints them for anything else, and a run given
34
+ `PIKKU_PERSONA_SECRETS=id=secret,…` can sign in as those personas and no
35
+ others — asking for one outside the list throws naming the persona instead of
36
+ falling back to the root.
37
+
38
+ `useDevActors()` and `<DevActorSwitcher />` take `secrets` (one per address)
39
+ where they took `secret`, and an actor with no credential is no longer offered
40
+ rather than rendering a row that 401s. `HttpPersonasConfig.secret` and the
41
+ Playwright provider's `secret` additionally accept a resolver, which is how a
42
+ partially-credentialled run is expressed.
43
+
44
+ - ee9da9e: `pikku fabric validate` now fails a project whose generated `coercion.gen.ts` declares coercions that no Kysely instance applies, and the generated file itself says what has to consume it. An unwired coercion map cannot fail locally and 500s on the first deployed request.
45
+ - ee9da9e: `pikku db reset` and `fabric validate` stop treating an absent dev seed as an empty database
46
+
47
+ The seed step reported a conclusion about the database rather than about
48
+ itself: with no `db/sqlite-dev-seed.sql`, reset finished with `database is
49
+ empty` even when a migration had just populated it, and `--no-seed` said the
50
+ same. Both lines now name the step — `no dev seed applied (…)` and `--no-seed,
51
+ skipping the dev seed`.
52
+
53
+ `fabric validate` raised `dev-seed-sql-missing` at **error** severity, so a
54
+ project that had correctly moved its rows into a migration — where anything a
55
+ deployed stage needs has to live, since Fabric never replays the dev seed — was
56
+ failed for no longer carrying a file it deliberately does not need. It is now
57
+ `info`, and the hint says what the file is for instead of advising an idempotent
58
+ form the framework tells you not to reach for.
59
+
60
+ - ee9da9e: The Bun deploy bundler now keeps names, matching the esbuild one, so a deployed error answers with its real name instead of the bundler's identifier for it — `PermissionDeniedError`, not `cn`. An error's `name` is its constructor's name, so a bundler you configure yourself has to preserve names too.
61
+ - ee9da9e: `fabric deploy apply` reports the commit the deployment holds, not the one requested
62
+
63
+ With a deployment already parked at `suspended` for the branch,
64
+ `deployByStageKind` attaches to that plan — pinned to whatever commit it was
65
+ cut at — rather than creating a new one. The CLI echoed back the sha it had
66
+ been asked for, so `apply` printed
67
+
68
+ ```
69
+ status: suspended sha: 599439e6
70
+ ```
71
+
72
+ for a deployment `deploy list` showed pinned to `5bfe84c`, five commits above
73
+ it. `--ref` did not help; the argument was echoed too. The only symptom was a
74
+ correct-looking line of output, and the failure mode is a rollback that
75
+ silently does not roll back.
76
+
77
+ The ref is now read back off the deployment, and a disagreement between what
78
+ was asked for and what is held aborts with both shas and the deployment id
79
+ named, rather than continuing under the wrong one.
80
+
81
+ - ee9da9e: The hardcoded-copy check stops flagging a feature's own name
82
+
83
+ Two rules disagreed. `runScenarioFileChecks` requires every `pikkuFeature` to
84
+ live in a `*.scenario.ts`, and moving one there is what put it in front of the
85
+ hardcoded-copy check — which then flagged the feature's own `name` because the
86
+ app catalogue happens to hold the same word:
87
+
88
+ ```
89
+ name: 'Downloads', → ✗ "Downloads" → nav__downloads | downloads__title
90
+ ```
91
+
92
+ Complying with the first rule created violations of the second, and the advice
93
+ — read the string from the app catalogue — would tie the Console's language to
94
+ the product's. `name`, `description` and `template` declared directly on a
95
+ `pikkuFeature`, `pikkuScenario` or `pikkuScenarioStep` are Console meta and are
96
+ now skipped. A `name` nested deeper — `getByRole('button', { name: 'Speichern'
97
+ })` — is a selector built out of UI copy and is still caught.
98
+
99
+ - 967d1de: Rename the `locale` field in `pikku.config.json` to `metaLocale`. It sets the language of the meta the Console renders back to your team, not the language your app speaks to its users — a config that still says `locale` now fails with an error saying where the value moved.
100
+ - ee9da9e: `fabric` stage commands default to the only stage, and say what is missing when they cannot
101
+
102
+ `pikku fabric secrets list` with one stage deployed failed with `No stage for
103
+ branch "undefined". Existing: main` — an error interpolating the missing
104
+ argument's value directly above a line naming the single stage it could have
105
+ used.
106
+
107
+ With exactly one stage there is nothing to disambiguate, so `secrets
108
+ list/set/rotate` and `variables get/set` now use it. With several, the error
109
+ says `--branch is required` and lists them; with none, it says nothing is
110
+ deployed yet. Each command also names the stage it acted on rather than echoing
111
+ the argument, and `secrets rotate` resolves before it refuses, so the one
112
+ message standing between a typo and unreadable secrets names the stage that
113
+ would actually be rotated.
114
+
115
+ - ee9da9e: the surface gate measures the surface it actually ships
116
+
117
+ The doc-quality gate went in with ceilings of 112, 823 and 10 beside a surface
118
+ that measured 160, 1210 and 15, so it never passed on any build. Re-baselined to
119
+ the real measurements, and the key-documentation floor earned its way from 76%
120
+ to 79% by documenting what a caller has to put in `defineSecret`, the gateway
121
+ message shapes, and the scorer and judge configs.
122
+
123
+ - ee9da9e: `fabric validate` no longer reads comment prose as an import
124
+
125
+ The undeclared-dependency check matched `from "…"` in raw file text, so any
126
+ sentence putting a quoted phrase after the word _from_ became a phantom
127
+ dependency — at error severity, against the app, with nothing naming the file
128
+ it came from:
129
+
130
+ ```
131
+ ✗ @project/app imports undeclared package(s): is fine — the deploy bundle cannot resolve them
132
+ ```
133
+
134
+ The source is now scanned with comments blanked (a new `blankComments` keeps
135
+ the text the same length so offsets still line up), and the fix hint names the
136
+ file and line each missing package was first imported at.
137
+
138
+ - 2e7adcd: Give a virtual user run a trigger so it survives a per-function deploy.
139
+
140
+ `scaffold.virtualUser` dispatched `executeVirtualUserRun` with an unawaited
141
+ `rpc.invoke`. That is a real dispatch in one process and nothing at all under a
142
+ deployment that puts each function in its own unit: the run function is
143
+ sessionless, unexposed and wired to nothing, so it is never emitted as a unit,
144
+ the RPC resolves to nothing, and the rejection is swallowed by the `catch` that
145
+ exists to stop an unhandled rejection taking the process down. The run parks at
146
+ `running` with zero steps and no error anywhere.
147
+
148
+ The scaffold now wires it to a `pikku-virtual-user-runs` queue worker, which is
149
+ what puts it in the deploy manifest, and `runVirtualUser` enqueues onto that
150
+ queue at `attempts: 1` — a redelivery would be a second different outing writing
151
+ into a record that already has an outcome. A project with no queue service keeps
152
+ the in-process dispatch, which is correct for the one process it runs in.
153
+
154
+ - Updated dependencies [ee9da9e]
155
+ - Updated dependencies [7a15c9c]
156
+ - Updated dependencies [ee9da9e]
157
+ - Updated dependencies [7d641f3]
158
+ - Updated dependencies [ee9da9e]
159
+ - Updated dependencies [ee9da9e]
160
+ - Updated dependencies [ee9da9e]
161
+ - @pikku/core@0.12.99
162
+ - @pikku/better-auth@0.12.33
163
+ - @pikku/playwright@0.12.80
164
+ - @pikku/skills@0.12.20
165
+ - @pikku/inspector@0.12.68
166
+
1
167
  ## 0.12.125
2
168
 
3
169
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/addon` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/addon` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Installing an addon into this application
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Installing an addon into this application
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/agent` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/agent` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  import { CoreAgent } from '@pikku/core/agent';
5
5
  import { pikkuAgentScorer as corePikkuAgentScorer, pikkuAgentJudge as corePikkuAgentJudge } from '@pikku/core/agent-scorer';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/state';
5
5
  pikkuState(null, 'agent', 'modelAliases', {});
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/auth` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/auth` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Permission, auth gate and credential definitions
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Permission, auth gate and credential definitions
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/channel` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/channel` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Channel-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Channel-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/cli` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/cli` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * WebSocket channel backend for 'pikku' CLI commands
@@ -45,6 +45,7 @@ import { scenarioList } from '../../src/functions/commands/scenario.js';
45
45
  import { personaRun } from '../../src/functions/commands/persona.js';
46
46
  import { personaSync } from '../../src/functions/commands/persona-sync.js';
47
47
  import { personaList } from '../../src/functions/commands/persona.js';
48
+ import { personaSecret } from '../../src/functions/commands/persona.js';
48
49
  import { FabricValidate } from '../../src/fabric/functions/validate.function.js';
49
50
  import { FabricSmoke } from '../../src/fabric/functions/smoke.function.js';
50
51
  import { FabricLogin } from '../../src/fabric/functions/login.function.js';
@@ -384,6 +385,10 @@ wireChannel({
384
385
  func: personaList,
385
386
  middleware: [cliCloseOnComplete],
386
387
  },
388
+ 'persona.secret': {
389
+ func: personaSecret,
390
+ middleware: [cliCloseOnComplete],
391
+ },
387
392
  'fabric.validate': {
388
393
  func: FabricValidate,
389
394
  middleware: [cliCloseOnComplete],
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  import type { Capabilities } from '@pikku/core/channel';
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  import { executeRawCLIViaChannel } from '@pikku/core/cli/channel';
5
5
  import { CorePikkuWebsocket } from '@pikku/websocket';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  import contractsMeta from './pikku-cli-contracts-meta.gen.json';
5
5
  export default contractsMeta;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  import contractsMeta from './pikku-cli-contracts-meta.gen.json' with { type: 'json' };
5
5
  export default contractsMeta;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/state';
5
5
  import metaData from './pikku-cli-wirings-meta.gen.json' with { type: 'json' };
@@ -618,6 +618,19 @@
618
618
  "positionals": [],
619
619
  "options": {},
620
620
  "description": "List the declared personas — who each one is, what they may do, and what they are trying to get done"
621
+ },
622
+ "secret": {
623
+ "pikkuFuncId": "personaSecret",
624
+ "positionals": [
625
+ {
626
+ "name": "personas",
627
+ "required": false,
628
+ "variadic": true
629
+ }
630
+ ],
631
+ "options": {},
632
+ "description": "Mint the actor credential for a persona from SCENARIO_ACTOR_SECRET, bound to their address. Hand these to a run as PIKKU_PERSONA_SECRETS instead of the root, which is entitled to every persona. Names none, mints all.",
633
+ "parameters": "[personas...]"
621
634
  }
622
635
  }
623
636
  },
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  import '../../src/cli.wiring.js';
5
5
  import '../../src/services.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /* The files with an wireCLI function call */
5
5
  import '../../src/cli.wiring.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  import '../pikku-bootstrap.gen.js';
5
5
  export declare function PikkuCLI(args: string[]): Promise<void>;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  import { executeCLI, CLIError } from '@pikku/core/cli';
5
5
  import { createConfig as createConfig } from '../../src/services.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/error` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/error` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Error catalogue — `#pikku/error` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Error catalogue — `#pikku/error` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/function` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/function` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Core function types for all wirings
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  /**
5
5
  * Core function types for all wirings
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.125
2
+ * This file was generated by @pikku/cli@0.12.126
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/state';
5
5
  import metaData from './pikku-functions-meta.gen.json' with { type: 'json' };
@@ -108,7 +108,7 @@
108
108
  "outputs": [
109
109
  "FabricDeployApplyOutput"
110
110
  ],
111
- "implementationHash": "29af90c2e0014ec5",
111
+ "implementationHash": "dd32ba7cab63a70b",
112
112
  "contractHash": "c6880cdb39fc7786",
113
113
  "inputHash": "06fcf5de",
114
114
  "outputHash": "8133c760"
@@ -374,9 +374,9 @@
374
374
  "outputs": [
375
375
  "FabricSecretsListOutput"
376
376
  ],
377
- "implementationHash": "3305eeb42ea9b8a0",
378
- "contractHash": "90239f445922c2c1",
379
- "inputHash": "95d5dad0",
377
+ "implementationHash": "1311d6836fd3db47",
378
+ "contractHash": "205107eccf8b830c",
379
+ "inputHash": "3e41f4a4",
380
380
  "outputHash": "d0b3b79e"
381
381
  },
382
382
  "FabricSecretsRotate": {
@@ -393,9 +393,9 @@
393
393
  "outputs": [
394
394
  "FabricSecretsRotateOutput"
395
395
  ],
396
- "implementationHash": "7276d4bd40963325",
397
- "contractHash": "431c9b05e828f3f5",
398
- "inputHash": "c4a580d9",
396
+ "implementationHash": "5425deaca2ebc84c",
397
+ "contractHash": "01a6f09613e71279",
398
+ "inputHash": "efc373f0",
399
399
  "outputHash": "d1cc036e"
400
400
  },
401
401
  "FabricSecretsSet": {
@@ -412,9 +412,9 @@
412
412
  "outputs": [
413
413
  "FabricSecretsSetOutput"
414
414
  ],
415
- "implementationHash": "740faf2c7b30b467",
416
- "contractHash": "8a35b7051f8ac3f1",
417
- "inputHash": "20e15156",
415
+ "implementationHash": "66beefb118216809",
416
+ "contractHash": "bda92a6e0887eda1",
417
+ "inputHash": "dfc970ad",
418
418
  "outputHash": "7aa60e18"
419
419
  },
420
420
  "FabricSmoke": {
@@ -507,9 +507,9 @@
507
507
  "outputs": [
508
508
  "FabricVariablesGetOutput"
509
509
  ],
510
- "implementationHash": "4b73a62e017c47f7",
511
- "contractHash": "62e887328831e6aa",
512
- "inputHash": "7f4abdd8",
510
+ "implementationHash": "8cc37aff90f23086",
511
+ "contractHash": "ea1957459b7e9bfc",
512
+ "inputHash": "e51e1186",
513
513
  "outputHash": "739df02c"
514
514
  },
515
515
  "FabricVariablesSet": {
@@ -526,9 +526,9 @@
526
526
  "outputs": [
527
527
  "FabricVariablesSetOutput"
528
528
  ],
529
- "implementationHash": "c656dc39497de9da",
530
- "contractHash": "db025cda5818089a",
531
- "inputHash": "f15747cc",
529
+ "implementationHash": "5e65bbd55d0fe6bd",
530
+ "contractHash": "afbde385fbbdc969",
531
+ "inputHash": "b8abf73c",
532
532
  "outputHash": "60e4dfcc"
533
533
  },
534
534
  "all": {
@@ -709,7 +709,7 @@
709
709
  ],
710
710
  "outputs": [],
711
711
  "remote": true,
712
- "implementationHash": "2ce70dcbf9c4d757"
712
+ "implementationHash": "14a0aa3c20bd08fb"
713
713
  },
714
714
  "deployApply": {
715
715
  "pikkuFuncId": "deployApply",
@@ -773,7 +773,7 @@
773
773
  ],
774
774
  "outputs": [],
775
775
  "remote": true,
776
- "implementationHash": "19171f4b5f061dd7"
776
+ "implementationHash": "fc14806df582e8c4"
777
777
  },
778
778
  "doc": {
779
779
  "pikkuFuncId": "doc",
@@ -1564,6 +1564,23 @@
1564
1564
  "inputHash": "79b1ac3d",
1565
1565
  "outputHash": "14154fe3"
1566
1566
  },
1567
+ "personaSecret": {
1568
+ "pikkuFuncId": "personaSecret",
1569
+ "functionType": "user",
1570
+ "funcWrapper": "pikkuSessionlessFunc",
1571
+ "sessionless": true,
1572
+ "name": "personaSecret",
1573
+ "inputSchemaName": "PersonaSecretInput",
1574
+ "outputSchemaName": null,
1575
+ "inputs": [
1576
+ "PersonaSecretInput"
1577
+ ],
1578
+ "outputs": [],
1579
+ "implementationHash": "b8c7f55252d2980d",
1580
+ "contractHash": "de821bec94119379",
1581
+ "inputHash": "8d8a832a",
1582
+ "outputHash": "996a2861"
1583
+ },
1567
1584
  "personaList": {
1568
1585
  "pikkuFuncId": "personaList",
1569
1586
  "functionType": "user",