@pikku/cli 0.12.110 → 0.12.111

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 (158) hide show
  1. package/CHANGELOG.md +120 -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 +9 -2
  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 +1 -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.gen.d.ts +1 -1
  29. package/dist/.pikku/cli/pikku-cli-wirings.gen.js +1 -1
  30. package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
  31. package/dist/.pikku/cli/pikku-cli.gen.js +1 -1
  32. package/dist/.pikku/error/index.d.ts +1 -1
  33. package/dist/.pikku/error/index.js +1 -1
  34. package/dist/.pikku/error/pikku-error-types.gen.d.ts +1 -1
  35. package/dist/.pikku/error/pikku-error-types.gen.js +1 -1
  36. package/dist/.pikku/function/index.d.ts +1 -1
  37. package/dist/.pikku/function/index.js +1 -1
  38. package/dist/.pikku/function/pikku-function-types.gen.d.ts +12 -2
  39. package/dist/.pikku/function/pikku-function-types.gen.js +1 -1
  40. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  41. package/dist/.pikku/function/pikku-functions-meta.gen.json +2 -2
  42. package/dist/.pikku/function/pikku-functions.gen.js +1 -1
  43. package/dist/.pikku/gateway/index.d.ts +1 -1
  44. package/dist/.pikku/gateway/index.js +1 -1
  45. package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts +1 -1
  46. package/dist/.pikku/gateway/pikku-gateway-types.gen.js +1 -1
  47. package/dist/.pikku/http/index.d.ts +1 -1
  48. package/dist/.pikku/http/index.js +1 -1
  49. package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
  50. package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
  51. package/dist/.pikku/mcp/index.d.ts +1 -1
  52. package/dist/.pikku/mcp/index.js +1 -1
  53. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
  54. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
  55. package/dist/.pikku/middleware/index.d.ts +1 -1
  56. package/dist/.pikku/middleware/index.js +1 -1
  57. package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts +9 -2
  58. package/dist/.pikku/middleware/pikku-middleware-types.gen.js +1 -1
  59. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +1 -1
  60. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +1 -1
  61. package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
  62. package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
  63. package/dist/.pikku/pikku-services.gen.d.ts +1 -1
  64. package/dist/.pikku/queue/index.d.ts +1 -1
  65. package/dist/.pikku/queue/index.js +1 -1
  66. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
  67. package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
  68. package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +1 -1
  69. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
  70. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
  71. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  72. package/dist/.pikku/scenarios/index.d.ts +1 -1
  73. package/dist/.pikku/scenarios/index.js +1 -1
  74. package/dist/.pikku/scenarios/pikku-personas.gen.js +1 -1
  75. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
  76. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
  77. package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts +1 -1
  78. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
  79. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
  80. package/dist/.pikku/scenarios/schemas/register.gen.d.ts +1 -1
  81. package/dist/.pikku/scenarios/schemas/register.gen.js +1 -1
  82. package/dist/.pikku/scheduler/index.d.ts +1 -1
  83. package/dist/.pikku/scheduler/index.js +1 -1
  84. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
  85. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
  86. package/dist/.pikku/schemas/register.gen.js +1 -1
  87. package/dist/.pikku/scopes/index.d.ts +1 -1
  88. package/dist/.pikku/scopes/index.js +1 -1
  89. package/dist/.pikku/scopes/pikku-personas.gen.js +1 -1
  90. package/dist/.pikku/scopes/pikku-roles.gen.d.ts +1 -1
  91. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +1 -1
  92. package/dist/.pikku/scopes/pikku-scope-types.gen.js +1 -1
  93. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +1 -1
  94. package/dist/.pikku/secrets/index.d.ts +1 -1
  95. package/dist/.pikku/secrets/index.js +1 -1
  96. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
  97. package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
  98. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
  99. package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
  100. package/dist/.pikku/services/pikku-meta-service.gen.d.ts +1 -1
  101. package/dist/.pikku/services/pikku-meta-service.gen.js +1 -1
  102. package/dist/.pikku/setup/index.d.ts +1 -1
  103. package/dist/.pikku/setup/index.js +1 -1
  104. package/dist/.pikku/setup/pikku-setup-types.gen.d.ts +1 -1
  105. package/dist/.pikku/setup/pikku-setup-types.gen.js +1 -1
  106. package/dist/.pikku/trigger/index.d.ts +1 -1
  107. package/dist/.pikku/trigger/index.js +1 -1
  108. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  109. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  110. package/dist/.pikku/variables/index.d.ts +1 -1
  111. package/dist/.pikku/variables/index.js +1 -1
  112. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
  113. package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
  114. package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
  115. package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
  116. package/dist/.pikku/workflow/index.d.ts +1 -1
  117. package/dist/.pikku/workflow/index.js +1 -1
  118. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +1 -1
  119. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -1
  120. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  121. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  122. package/dist/bin/pikku-bin.mjs +2 -2
  123. package/dist/src/deploy/analyzer/analyzer.d.ts +1 -1
  124. package/dist/src/deploy/analyzer/index.d.ts +0 -1
  125. package/dist/src/deploy/build-pipeline.d.ts +2 -2
  126. package/dist/src/deploy/bundler/types.d.ts +1 -1
  127. package/dist/src/deploy/codegen/per-unit-codegen.d.ts +1 -1
  128. package/dist/src/deploy/plan/executor.d.ts +1 -1
  129. package/dist/src/deploy/plan/planner.d.ts +1 -1
  130. package/dist/src/deploy/plan/provider.d.ts +1 -1
  131. package/dist/src/deploy/server-entry.d.ts +1 -1
  132. package/dist/src/fabric/fabric-commands.d.ts +3 -3
  133. package/dist/src/fabric/functions/llm-key.function.d.ts +4 -4
  134. package/dist/src/functions/commands/db-generate.js +1 -1
  135. package/dist/src/functions/commands/deploy-apply.d.ts +1 -1
  136. package/dist/src/functions/commands/new-addon.js +14 -12
  137. package/dist/src/functions/db/better-auth-schema.js +5 -0
  138. package/dist/src/functions/db/local-db.d.ts +11 -3
  139. package/dist/src/functions/db/local-db.js +17 -8
  140. package/dist/src/functions/wirings/auth/serialize-auth-guards.d.ts +1 -1
  141. package/dist/src/functions/wirings/auth/serialize-auth-guards.js +9 -2
  142. package/dist/src/functions/wirings/functions/pikku-command-function-types-split.js +2 -2
  143. package/dist/src/functions/wirings/functions/serialize-function-types.js +11 -1
  144. package/dist/src/functions/wirings/middleware/serialize-middleware-types.d.ts +1 -1
  145. package/dist/src/functions/wirings/middleware/serialize-middleware-types.js +10 -2
  146. package/dist/src/utils/pikku-cli-config-error.d.ts +9 -0
  147. package/dist/src/utils/pikku-cli-config-error.js +9 -0
  148. package/dist/src/utils/pikku-cli-config.d.ts +2 -3
  149. package/dist/src/utils/pikku-cli-config.js +2 -3
  150. package/dist/src/utils/resolve-scaffold-feature.d.ts +6 -0
  151. package/dist/src/utils/resolve-scaffold-feature.js +22 -2
  152. package/dist/tsconfig.tsbuildinfo +1 -1
  153. package/package.json +8 -7
  154. package/surface.json +4 -26
  155. package/dist/src/deploy/analyzer/manifest.d.ts +0 -170
  156. package/dist/src/deploy/analyzer/manifest.js +0 -8
  157. package/dist/src/deploy/provider-adapter.d.ts +0 -176
  158. package/dist/src/deploy/provider-adapter.js +0 -10
package/CHANGELOG.md CHANGED
@@ -1,3 +1,123 @@
1
+ ## 0.12.111
2
+
3
+ ### Patch Changes
4
+
5
+ - 274cab3: The singleton intersection moves to the leaves that name it, the runtime stops
6
+ creating schema, and `db generate` writes only the runtime tables a project's
7
+ services own
8
+
9
+ `WiredSingletonServices` was exported from the generated function leaf so the
10
+ auth leaf could import it. Nothing outside a generated leaf ever names it —
11
+ emit declarations for a project of any size and it appears in none of them —
12
+ so the auth and middleware leaves derive the intersection themselves and the
13
+ function leaf keeps it private. `WiredServices` stays exported: 147 `.d.ts`
14
+ files name it, and unexporting it asks every wired module to name each member
15
+ service through a specifier it does not have.
16
+
17
+ `ensurePikkuSchema` is gone. `requirePikkuSchema` replaces it: a service calls
18
+ it at boot, it looks, and it issues no DDL at all. `pikku db generate` writes
19
+ the declaration down as a migration and `pikku db migrate` applies it, and
20
+ those two are now the only way pikku's runtime tables come into existence. A
21
+ service that finds them missing says so and stops, naming both commands.
22
+ Half-present is no longer a distinct case — the remedy is the same migration
23
+ either way. `audit` and `virtual-user` join `pikkuSchemas` as a consequence:
24
+ boot was the only thing that had ever created them.
25
+
26
+ `pikku db generate` applied all of `pikkuSchemas`, so a project with no agents,
27
+ no channels and no workflows still had `agent_threads`, `channels` and
28
+ `workflow_runs` written into its migrations, and then carried them forever. A
29
+ schema now names the services that own it, and generation gates on
30
+ `requiredServices` — the set the inspector already builds for service
31
+ tree-shaking. The gate is one-sided: a schema that names no owner is always
32
+ written, because the session and secret stores and the deployment record are
33
+ reached by the runtime itself and nothing in a project's source implies them.
34
+ Declared scopes now imply `scopeService`, which nothing destructures because
35
+ the generated auth layer is what reaches it.
36
+
37
+ Drift keeps asking the unscoped question. A table already in a database has to
38
+ stay recognisable as a runtime table after the service that needed it is
39
+ dropped — scoping it there would report those tables as unexplained.
40
+
41
+ Every project in this repo that had been relying on boot-time creation now says
42
+ where its tables come from. `createConfig` moves into its own `config.ts` in the
43
+ templates — `pikku db` looks for it there — and the three postgres templates plus
44
+ the workflow verifier declare `postgresUrl` and run `pikku db generate && pikku
45
+ db migrate` before the server starts, from the single connection string their
46
+ runtime opens. The e2e harness cannot: its databases are in-memory sqlite built
47
+ inside the services factory, so nothing outside the process can migrate them. It
48
+ applies the schemas it owns with `applyPikkuSchemas` instead — the same DDL, run
49
+ by the one process that has the database.
50
+
51
+ - 58cb0f8: Scaffold an addon whose exports point at the leaf its codegen actually writes
52
+
53
+ `pikku all` roots an addon's generated tree at `.pikku/addon/`, but `pikku new
54
+ addon` still wrote the pre-split targets: `./.pikku/*` resolved to
55
+ `./dist/.pikku/*` and the internal RPC map to `./dist/.pikku/rpc/...`, neither of
56
+ which exists in the published package. The subpaths a consumer writes are
57
+ unchanged — only the targets gain the `addon` segment.
58
+
59
+ The addon manifest reference in the `pikku-addon` skill described the same
60
+ package.json one migration further back, with `imports` and `exports` naming the
61
+ source tree and `files: ["dist", ".pikku"]` shipping `.ts` files Node cannot
62
+ load. It now documents the built layout, and why `imports` and tsconfig `paths`
63
+ deliberately point at different trees.
64
+
65
+ The plain scaffold — no `--secret`, `--oauth` or `--credential` — built its API
66
+ service with `new XService(variables)` against a class declaring no constructor,
67
+ so `pikku new addon <name>` produced a package that did not typecheck until the
68
+ author deleted the argument. Only the authenticating variants take one.
69
+
70
+ - 32616af: Give the deploy pipeline one shared contract instead of a copy per adapter
71
+
72
+ `DeploymentManifest`, `DeploymentUnit`, `EntryGenerationContext` and
73
+ `ProviderAdapter` were hand-copied into eleven source files across the four
74
+ provider adapters and the CLI — three copies inside `@pikku/deploy-cloudflare`
75
+ alone. Nothing compared the copies, so they had already drifted: several typed
76
+ `role` as a bare `string`, and none carried the manifest's addon-scoping fields.
77
+
78
+ They now live in a new zero-dependency `@pikku/deploy` package that every
79
+ adapter and the CLI import, and each adapter declares `implements
80
+ ProviderAdapter` so the compiler checks it against the contract it claims to
81
+ satisfy. That check immediately caught a real disagreement: the deploy result's
82
+ `workersDeployed` and `resourcesCreated` were `string[]` from Cloudflare — the
83
+ shape the result file and the generated SDK types already record — but
84
+ `Array<{ name: string }>` from the standalone adapter. Both are now `string[]`.
85
+
86
+ The Lambda and Azure adapters also derived their esbuild externals from a
87
+ hand-written list of 25 node builtins, so anything outside it (`async_hooks`,
88
+ `perf_hooks`, `timers`, `http2`, …) was bundled instead of resolved from the
89
+ runtime. They now use `nodeBuiltinExternals()`, which reads `builtinModules`
90
+ from the running Node and cannot fall behind it.
91
+
92
+ - c858555: fix(cli): a scaffold feature refuses the removed `auth` key instead of ignoring it
93
+
94
+ `scaffold.<feature>` stopped taking `auth` when a scaffold flag became a
95
+ statement about whether a surface is generated rather than about who may call
96
+ it. The key was removed from the type, but a `pikku.config.json` still carrying
97
+ it loaded clean and was silently dropped — a config that reads as if it closed
98
+ the console to anonymous callers while configuring nothing at all.
99
+
100
+ It is now refused at config load, by name, with the reason and the fix. Any
101
+ other unrecognised key is refused too, so a typo'd `paths` fails at load rather
102
+ than generating a file at the default location. `null` and arrays are refused
103
+ with the same message a bare string already got, rather than crashing on a
104
+ property read.
105
+
106
+ These arrive as `PikkuCLIConfigError`, so the message reaches the developer
107
+ verbatim rather than as "failed to load config file".
108
+
109
+ - Updated dependencies [274cab3]
110
+ - Updated dependencies [58cb0f8]
111
+ - Updated dependencies [32616af]
112
+ - Updated dependencies [32616af]
113
+ - Updated dependencies [6848cd9]
114
+ - @pikku/kysely@0.13.20
115
+ - @pikku/inspector@0.12.63
116
+ - @pikku/skills@0.12.13
117
+ - @pikku/deploy@0.12.1
118
+ - @pikku/deploy-cloudflare@0.12.13
119
+ - @pikku/core@0.12.89
120
+
1
121
  ## 0.12.110
2
122
 
3
123
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/auth` resolves here.
@@ -1,13 +1,20 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  /**
5
5
  * Permission, auth gate and credential definitions
6
6
  */
7
7
  import type { PikkuWire, SecretlessServices } from '@pikku/core/types';
8
8
  import type { CorePermissionGroup, CorePikkuAuth, CorePikkuAuthConfig, CorePikkuPermission } from '@pikku/core/function';
9
- import type { Services, Session, SingletonServices, WiredServices, WiredSingletonServices } from '../function/pikku-function-types.gen.js';
9
+ import type { Services, Session, SingletonServices, WiredServices } from '../function/pikku-function-types.gen.js';
10
+ import type { RequiredSingletonServices } from '../pikku-services.gen.js';
10
11
  export { defineCredential } from '@pikku/core/credential';
12
+ /**
13
+ * Derived here rather than imported: nothing outside a generated leaf ever
14
+ * names this intersection, so the function leaf keeps it to itself and the
15
+ * leaves that want it spell it out.
16
+ */
17
+ type WiredSingletonServices = RequiredSingletonServices & SingletonServices;
11
18
  /** `WiredSingletonServices` without `secrets`, for auth gates. */
12
19
  type WiredAuthServices = SecretlessServices<WiredSingletonServices>;
13
20
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  /**
5
5
  * WebSocket channel backend for 'pikku' CLI commands
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  /**
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  /**
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/state';
5
5
  import metaData from './pikku-cli-wirings-meta.gen.json' with { type: 'json' };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  /**
5
5
  * Core function types for all wirings
@@ -33,8 +33,18 @@ export type Session = UserSession;
33
33
  * services **non-optional** at every call site. A service is optional only when
34
34
  * nothing destructures it — in which case it is never created either. This is
35
35
  * why an `if (!service)` guard inside a function body is always dead code.
36
+ *
37
+ * Only the wire-services half lives here. The singleton half is declared by the
38
+ * auth and middleware leaves that use it, because whether a name earns its
39
+ * export is measured rather than chosen: emit declarations for a project and
40
+ * `WiredServices` is named by 147 of its `.d.ts` files, while the singleton
41
+ * intersection is named by none outside the leaves that declare it. Export the
42
+ * latter and it is a compatibility promise nothing asked for; unexport
43
+ * `WiredServices` and every wired module inlines the intersection instead,
44
+ * which asks it to name each member service through a specifier it does not
45
+ * have — 3308 TS2883s. `--noEmit` cannot surface any of that, so re-check with
46
+ * `tsc --declaration --emitDeclarationOnly` before moving either one.
36
47
  */
37
- export type WiredSingletonServices = RequiredSingletonServices & SingletonServices;
38
48
  export type WiredServices = SecretlessServices<RequiredSingletonServices & Services>;
39
49
  /**
40
50
  * Inline node configuration for function definitions.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
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.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/state';
5
5
  import metaData from './pikku-functions-meta.gen.json' with { type: 'json' };
@@ -641,7 +641,7 @@
641
641
  ],
642
642
  "outputs": [],
643
643
  "remote": true,
644
- "implementationHash": "ac56d1dfc42171f7"
644
+ "implementationHash": "495b5abb87f52787"
645
645
  },
646
646
  "dbMigrate": {
647
647
  "pikkuFuncId": "dbMigrate",
@@ -2322,7 +2322,7 @@
2322
2322
  "PikkuFunctionTypesSplitInput"
2323
2323
  ],
2324
2324
  "outputs": [],
2325
- "implementationHash": "b6f1750c64f8fae3",
2325
+ "implementationHash": "9655e4ec7b5ee088",
2326
2326
  "middleware": [
2327
2327
  {
2328
2328
  "type": "wire",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  /* Import and register functions used by RPCs */
5
5
  import { addFunction } from '@pikku/core/function';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/gateway` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/gateway` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  /**
5
5
  * Gateway-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  /**
5
5
  * Gateway-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/http` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/http` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  /**
5
5
  * HTTP-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  /**
5
5
  * HTTP-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/mcp` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/mcp` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  /**
5
5
  * MCP-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  /**
5
5
  * MCP-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/middleware` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.110
2
+ * This file was generated by @pikku/cli@0.12.111
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/middleware` resolves here.