@pikku/cli 0.12.40 → 0.12.41

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 (187) hide show
  1. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
  2. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +3 -3
  3. package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
  4. package/dist/.pikku/cli/pikku-cli-channel.d.ts +6 -6
  5. package/dist/.pikku/cli/pikku-cli-channel.js +16 -1
  6. package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +1 -1
  7. package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
  8. package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +1 -1
  9. package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.json +47 -0
  10. package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +1 -1
  11. package/dist/.pikku/cli/pikku-cli-wirings.gen.js +1 -1
  12. package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
  13. package/dist/.pikku/cli/pikku-cli.gen.js +1 -1
  14. package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
  15. package/dist/.pikku/function/pikku-function-types.gen.d.ts +2 -2
  16. package/dist/.pikku/function/pikku-function-types.gen.js +1 -1
  17. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  18. package/dist/.pikku/function/pikku-functions-meta.gen.json +97 -46
  19. package/dist/.pikku/function/pikku-functions.gen.js +1 -1
  20. package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
  21. package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
  22. package/dist/.pikku/http/pikku-http-wirings-meta.gen.js +1 -1
  23. package/dist/.pikku/http/pikku-http-wirings.gen.d.ts +1 -1
  24. package/dist/.pikku/http/pikku-http-wirings.gen.js +1 -1
  25. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
  26. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
  27. package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
  28. package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
  29. package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
  30. package/dist/.pikku/pikku-meta-service.gen.js +1 -1
  31. package/dist/.pikku/pikku-services.gen.d.ts +1 -1
  32. package/dist/.pikku/pikku-types.gen.d.ts +1 -1
  33. package/dist/.pikku/pikku-types.gen.js +1 -1
  34. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
  35. package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
  36. package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +1 -1
  37. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
  38. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
  39. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  40. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +6 -3
  41. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
  42. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
  43. package/dist/.pikku/schemas/register.gen.js +7 -3
  44. package/dist/.pikku/schemas/schemas/LogoutInput.schema.json +1 -0
  45. package/dist/.pikku/schemas/schemas/WhoamiInput.schema.json +1 -0
  46. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
  47. package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
  48. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
  49. package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
  50. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  51. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  52. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
  53. package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
  54. package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
  55. package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
  56. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +1 -1
  57. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -1
  58. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  59. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  60. package/dist/bin/pikku-bin.mjs +2 -2
  61. package/dist/src/cli.wiring.js +45 -0
  62. package/dist/src/fabric/fabric-commands.d.ts +63 -63
  63. package/dist/src/fabric/functions/db-schema.function.d.ts +3 -3
  64. package/dist/src/fabric/functions/deploy-list.function.d.ts +3 -3
  65. package/dist/src/fabric/functions/deploy-units.function.d.ts +3 -3
  66. package/dist/src/fabric/functions/deploy.function.d.ts +6 -6
  67. package/dist/src/fabric/functions/domains-add.function.d.ts +3 -3
  68. package/dist/src/fabric/functions/domains-list.function.d.ts +3 -3
  69. package/dist/src/fabric/functions/domains-remove.function.d.ts +3 -3
  70. package/dist/src/fabric/functions/errors.function.d.ts +3 -3
  71. package/dist/src/fabric/functions/init.function.d.ts +3 -3
  72. package/dist/src/fabric/functions/link.function.d.ts +3 -3
  73. package/dist/src/fabric/functions/llm-key.function.d.ts +3 -3
  74. package/dist/src/fabric/functions/login.function.d.ts +3 -3
  75. package/dist/src/fabric/functions/logs.function.d.ts +3 -3
  76. package/dist/src/fabric/functions/metrics.function.d.ts +3 -3
  77. package/dist/src/fabric/functions/rollback.function.d.ts +3 -3
  78. package/dist/src/fabric/functions/secrets-list.function.d.ts +3 -3
  79. package/dist/src/fabric/functions/secrets-set.function.d.ts +3 -3
  80. package/dist/src/fabric/functions/status.function.d.ts +3 -3
  81. package/dist/src/fabric/functions/trace.function.d.ts +3 -3
  82. package/dist/src/fabric/functions/validate.function.d.ts +3 -3
  83. package/dist/src/functions/commands/all.d.ts +1 -1
  84. package/dist/src/functions/commands/binary.d.ts +3 -3
  85. package/dist/src/functions/commands/bootstrap.d.ts +1 -1
  86. package/dist/src/functions/commands/console.d.ts +3 -3
  87. package/dist/src/functions/commands/db-audit.d.ts +1 -1
  88. package/dist/src/functions/commands/db-generate.d.ts +1 -1
  89. package/dist/src/functions/commands/db-migrate.d.ts +1 -1
  90. package/dist/src/functions/commands/db-reset.d.ts +1 -1
  91. package/dist/src/functions/commands/db-seed.d.ts +1 -1
  92. package/dist/src/functions/commands/deploy-apply.d.ts +3 -3
  93. package/dist/src/functions/commands/deploy-info.d.ts +1 -1
  94. package/dist/src/functions/commands/deploy-plan.d.ts +3 -3
  95. package/dist/src/functions/commands/dev.d.ts +3 -3
  96. package/dist/src/functions/commands/emails-init.d.ts +1 -1
  97. package/dist/src/functions/commands/enable.d.ts +5 -5
  98. package/dist/src/functions/commands/info.d.ts +4 -4
  99. package/dist/src/functions/commands/login.d.ts +37 -0
  100. package/dist/src/functions/commands/login.js +85 -0
  101. package/dist/src/functions/commands/meta.d.ts +31 -31
  102. package/dist/src/functions/commands/new-addon.d.ts +3 -3
  103. package/dist/src/functions/commands/new-function.d.ts +3 -3
  104. package/dist/src/functions/commands/new-middleware.d.ts +3 -3
  105. package/dist/src/functions/commands/new-permission.d.ts +3 -3
  106. package/dist/src/functions/commands/new-wiring.d.ts +3 -3
  107. package/dist/src/functions/commands/pikku-command-bootstrap.d.ts +1 -1
  108. package/dist/src/functions/commands/pikku-command-summary.d.ts +1 -1
  109. package/dist/src/functions/commands/skills.d.ts +6 -6
  110. package/dist/src/functions/commands/tests-coverage.d.ts +3 -3
  111. package/dist/src/functions/commands/tests-init.d.ts +3 -3
  112. package/dist/src/functions/commands/versions-check.d.ts +1 -1
  113. package/dist/src/functions/commands/versions-init.d.ts +3 -3
  114. package/dist/src/functions/commands/versions-update.d.ts +1 -1
  115. package/dist/src/functions/commands/watch.d.ts +3 -3
  116. package/dist/src/functions/commands/workspace-validate.d.ts +3 -3
  117. package/dist/src/functions/runtimes/fetch/index.d.ts +1 -1
  118. package/dist/src/functions/runtimes/nextjs/pikku-command-nextjs.d.ts +1 -1
  119. package/dist/src/functions/runtimes/tanstack-start/pikku-command-tanstack-start.d.ts +1 -1
  120. package/dist/src/functions/runtimes/websocket/pikku-command-websocket-typed.d.ts +1 -1
  121. package/dist/src/functions/wirings/ai-agent/pikku-command-ai-agent-types.d.ts +1 -1
  122. package/dist/src/functions/wirings/ai-agent/pikku-command-ai-agent.d.ts +1 -1
  123. package/dist/src/functions/wirings/ai-agent/pikku-command-public-agent.d.ts +1 -1
  124. package/dist/src/functions/wirings/auth/pikku-command-auth.d.ts +1 -1
  125. package/dist/src/functions/wirings/channels/pikku-channels.d.ts +1 -1
  126. package/dist/src/functions/wirings/channels/pikku-command-channel-types.d.ts +1 -1
  127. package/dist/src/functions/wirings/channels/pikku-command-channels-map.d.ts +1 -1
  128. package/dist/src/functions/wirings/channels/pikku-command-channels.d.ts +1 -1
  129. package/dist/src/functions/wirings/cli/pikku-command-cli-entry.d.ts +1 -1
  130. package/dist/src/functions/wirings/cli/pikku-command-cli-types.d.ts +1 -1
  131. package/dist/src/functions/wirings/cli/pikku-command-cli.d.ts +1 -1
  132. package/dist/src/functions/wirings/cli/serialize-channel-cli-client.js +38 -7
  133. package/dist/src/functions/wirings/console/pikku-command-console-functions.d.ts +1 -1
  134. package/dist/src/functions/wirings/console/pikku-command-node-types.d.ts +1 -1
  135. package/dist/src/functions/wirings/console/pikku-command-nodes-meta.d.ts +1 -1
  136. package/dist/src/functions/wirings/credentials/pikku-command-credentials.d.ts +1 -1
  137. package/dist/src/functions/wirings/emails/pikku-command-emails.d.ts +1 -1
  138. package/dist/src/functions/wirings/functions/pikku-command-addon-types.d.ts +1 -1
  139. package/dist/src/functions/wirings/functions/pikku-command-function-types-split.d.ts +3 -3
  140. package/dist/src/functions/wirings/functions/pikku-command-function-types.d.ts +3 -3
  141. package/dist/src/functions/wirings/functions/pikku-command-functions.d.ts +1 -1
  142. package/dist/src/functions/wirings/functions/pikku-command-services.d.ts +1 -1
  143. package/dist/src/functions/wirings/functions/schemas.d.ts +1 -1
  144. package/dist/src/functions/wirings/gateway/pikku-command-gateway.d.ts +1 -1
  145. package/dist/src/functions/wirings/http/pikku-command-http-map.d.ts +1 -1
  146. package/dist/src/functions/wirings/http/pikku-command-http-routes.d.ts +1 -1
  147. package/dist/src/functions/wirings/http/pikku-command-http-types.d.ts +1 -1
  148. package/dist/src/functions/wirings/http/pikku-command-openapi.d.ts +1 -1
  149. package/dist/src/functions/wirings/http/pikku-http-routes.d.ts +1 -1
  150. package/dist/src/functions/wirings/mcp/pikku-command-mcp-json.d.ts +1 -1
  151. package/dist/src/functions/wirings/mcp/pikku-command-mcp-types.d.ts +1 -1
  152. package/dist/src/functions/wirings/mcp/pikku-command-mcp.d.ts +1 -1
  153. package/dist/src/functions/wirings/middleware/pikku-command-middleware.d.ts +1 -1
  154. package/dist/src/functions/wirings/package/pikku-command-package-types.d.ts +2 -2
  155. package/dist/src/functions/wirings/package/pikku-command-package.d.ts +1 -1
  156. package/dist/src/functions/wirings/permissions/pikku-command-permissions.d.ts +1 -1
  157. package/dist/src/functions/wirings/queue/pikku-command-queue-map.d.ts +1 -1
  158. package/dist/src/functions/wirings/queue/pikku-command-queue-service.d.ts +1 -1
  159. package/dist/src/functions/wirings/queue/pikku-command-queue-types.d.ts +1 -1
  160. package/dist/src/functions/wirings/queue/pikku-command-queue.d.ts +1 -1
  161. package/dist/src/functions/wirings/queue/pikku-queue-map.d.ts +1 -1
  162. package/dist/src/functions/wirings/queue/pikku-queue.d.ts +1 -1
  163. package/dist/src/functions/wirings/realtime/pikku-command-events-scaffold.d.ts +1 -1
  164. package/dist/src/functions/wirings/realtime/pikku-command-realtime.d.ts +1 -1
  165. package/dist/src/functions/wirings/rpc/pikku-command-public-rpc.d.ts +1 -1
  166. package/dist/src/functions/wirings/rpc/pikku-command-react-query.d.ts +1 -1
  167. package/dist/src/functions/wirings/rpc/pikku-command-remote-rpc.d.ts +1 -1
  168. package/dist/src/functions/wirings/rpc/pikku-command-rpc-client.d.ts +1 -1
  169. package/dist/src/functions/wirings/rpc/pikku-command-rpc-map.d.ts +2 -2
  170. package/dist/src/functions/wirings/rpc/pikku-command-rpc.d.ts +1 -1
  171. package/dist/src/functions/wirings/scheduler/pikku-command-scheduler-types.d.ts +1 -1
  172. package/dist/src/functions/wirings/scheduler/pikku-command-scheduler.d.ts +1 -1
  173. package/dist/src/functions/wirings/secrets/pikku-command-secrets.d.ts +1 -1
  174. package/dist/src/functions/wirings/triggers/pikku-command-trigger-types.d.ts +3 -3
  175. package/dist/src/functions/wirings/triggers/pikku-command-trigger.d.ts +1 -1
  176. package/dist/src/functions/wirings/variables/pikku-command-variables.d.ts +1 -1
  177. package/dist/src/functions/wirings/workflow/pikku-command-workflow-routes.d.ts +1 -1
  178. package/dist/src/functions/wirings/workflow/pikku-command-workflow.d.ts +1 -1
  179. package/dist/src/scaffold/rpc-remote.gen.d.ts +3 -3
  180. package/dist/src/scaffold/rpc-remote.gen.js +1 -1
  181. package/dist/src/utils/cli-session.d.ts +40 -0
  182. package/dist/src/utils/cli-session.js +73 -0
  183. package/dist/src/utils/device-auth.d.ts +28 -0
  184. package/dist/src/utils/device-auth.js +111 -0
  185. package/dist/tsconfig.tsbuildinfo +1 -1
  186. package/package.json +3 -3
  187. package/skills/pikku-machine-auth/SKILL.md +177 -0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  import { CoreAIAgent, PikkuAIMiddlewareHooks } from '@pikku/core/ai-agent';
5
5
  import type { PikkuPermission, PikkuMiddleware, Services, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  /**
5
5
  * Channel-specific type definitions for tree-shaking optimization
@@ -30,7 +30,7 @@ type ChannelWiring<ChannelData, Channel extends string> = CoreChannel<ChannelDat
30
30
  * @param func - Function definition, either direct function or configuration object
31
31
  * @returns The normalized configuration object
32
32
  */
33
- export declare const pikkuChannelConnectionFunc: <Out = unknown>(func: PikkuFunctionSessionless<void, Out, "channel" | "session" | "rpc"> | PikkuFunctionConfig<void, Out, "channel" | "session" | "rpc">) => PikkuFunctionConfig<void, Out, "channel" | "rpc" | "session">;
33
+ export declare const pikkuChannelConnectionFunc: <Out = unknown>(func: PikkuFunctionSessionless<void, Out, "channel" | "session" | "rpc"> | PikkuFunctionConfig<void, Out, "channel" | "session" | "rpc">) => PikkuFunctionConfig<void, Out, "session" | "channel" | "rpc">;
34
34
  /**
35
35
  * Creates a function that handles WebSocket channel disconnections.
36
36
  * Called when a client disconnects from a channel.
@@ -38,7 +38,7 @@ export declare const pikkuChannelConnectionFunc: <Out = unknown>(func: PikkuFunc
38
38
  * @param func - Function definition, either direct function or configuration object
39
39
  * @returns The normalized configuration object
40
40
  */
41
- export declare const pikkuChannelDisconnectionFunc: (func: PikkuFunctionSessionless<void, void, "channel"> | PikkuFunctionConfig<void, void, "channel" | "session" | "rpc">) => PikkuFunctionConfig<void, void, "channel" | "rpc" | "session">;
41
+ export declare const pikkuChannelDisconnectionFunc: (func: PikkuFunctionSessionless<void, void, "channel"> | PikkuFunctionConfig<void, void, "channel" | "session" | "rpc">) => PikkuFunctionConfig<void, void, "session" | "channel" | "rpc">;
42
42
  /**
43
43
  * Configuration object for channel functions with Zod schema validation.
44
44
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  /**
5
5
  * Channel-specific type definitions for tree-shaking optimization
@@ -2,31 +2,31 @@ export declare const cliHelp: import("../function/pikku-function-types.gen.js").
2
2
  args?: string[];
3
3
  }, {
4
4
  help: string;
5
- }, "rpc" | "session", import("../function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
5
+ }, "session" | "rpc", import("../function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
6
6
  args?: string[];
7
7
  }, {
8
8
  help: string;
9
- }, "rpc" | "session", import("../function/pikku-function-types.gen.js").Services> | import("../function/pikku-function-types.gen.js").PikkuFunction<{
9
+ }, "session" | "rpc", import("../function/pikku-function-types.gen.js").Services> | import("../function/pikku-function-types.gen.js").PikkuFunction<{
10
10
  args?: string[];
11
11
  }, {
12
12
  help: string;
13
- }, "rpc" | "session", import("../function/pikku-function-types.gen.js").Services>, undefined, undefined>;
13
+ }, "session" | "rpc", import("../function/pikku-function-types.gen.js").Services>, undefined, undefined>;
14
14
  export declare const cliRaw: import("../function/pikku-function-types.gen.js").PikkuFunctionConfig<{
15
15
  args: string[];
16
16
  }, {
17
17
  help?: string;
18
18
  result?: unknown;
19
19
  error?: string;
20
- }, "rpc" | "session", import("../function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
20
+ }, "session" | "rpc", import("../function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
21
21
  args: string[];
22
22
  }, {
23
23
  help?: string;
24
24
  result?: unknown;
25
25
  error?: string;
26
- }, "rpc" | "session", import("../function/pikku-function-types.gen.js").Services> | import("../function/pikku-function-types.gen.js").PikkuFunction<{
26
+ }, "session" | "rpc", import("../function/pikku-function-types.gen.js").Services> | import("../function/pikku-function-types.gen.js").PikkuFunction<{
27
27
  args: string[];
28
28
  }, {
29
29
  help?: string;
30
30
  result?: unknown;
31
31
  error?: string;
32
- }, "rpc" | "session", import("../function/pikku-function-types.gen.js").Services>, undefined, undefined>;
32
+ }, "session" | "rpc", import("../function/pikku-function-types.gen.js").Services>, undefined, undefined>;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  /**
5
5
  * WebSocket channel backend for 'pikku' CLI commands
@@ -14,6 +14,9 @@ import { bootstrap } from '../../src/functions/commands/bootstrap.js';
14
14
  import { watch } from '../../src/functions/commands/watch.js';
15
15
  import { dev } from '../../src/functions/commands/dev.js';
16
16
  import { consoleCommand } from '../../src/functions/commands/console.js';
17
+ import { login } from '../../src/functions/commands/login.js';
18
+ import { logout } from '../../src/functions/commands/login.js';
19
+ import { whoami } from '../../src/functions/commands/login.js';
17
20
  import { pikkuSchemas } from '../../src/functions/wirings/functions/schemas.js';
18
21
  import { pikkuEmailsInit } from '../../src/functions/commands/emails-init.js';
19
22
  import { pikkuEmails } from '../../src/functions/wirings/emails/pikku-command-emails.js';
@@ -173,6 +176,18 @@ wireChannel({
173
176
  func: consoleCommand,
174
177
  middleware: [cliCloseOnComplete],
175
178
  },
179
+ 'login': {
180
+ func: login,
181
+ middleware: [cliCloseOnComplete],
182
+ },
183
+ 'logout': {
184
+ func: logout,
185
+ middleware: [cliCloseOnComplete],
186
+ },
187
+ 'whoami': {
188
+ func: whoami,
189
+ middleware: [cliCloseOnComplete],
190
+ },
176
191
  'schemas': {
177
192
  func: pikkuSchemas,
178
193
  middleware: [cliCloseOnComplete],
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  /**
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  /**
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/internal';
5
5
  import metaData from './pikku-cli-wirings-meta.gen.json' with { type: 'json' };
@@ -117,6 +117,53 @@
117
117
  },
118
118
  "description": "Start the Pikku Console UI with live file watching"
119
119
  },
120
+ "login": {
121
+ "pikkuFuncId": "login",
122
+ "positionals": [],
123
+ "options": {
124
+ "url": {
125
+ "description": "Server base URL (default: http://localhost:3000)",
126
+ "short": "u"
127
+ },
128
+ "clientId": {
129
+ "description": "Client identifier sent to the device flow",
130
+ "default": "pikku-cli"
131
+ },
132
+ "scope": {
133
+ "description": "Optional space-separated scopes to request"
134
+ },
135
+ "authPath": {
136
+ "description": "better-auth base path (default: '/auth')"
137
+ },
138
+ "open": {
139
+ "description": "Open the verification URL in a browser",
140
+ "default": true
141
+ }
142
+ },
143
+ "description": "Authenticate the CLI against a pikku server (device-authorization flow)"
144
+ },
145
+ "logout": {
146
+ "pikkuFuncId": "logout",
147
+ "positionals": [],
148
+ "options": {
149
+ "url": {
150
+ "description": "Server base URL to log out of (default: current)",
151
+ "short": "u"
152
+ }
153
+ },
154
+ "description": "Remove a stored CLI session"
155
+ },
156
+ "whoami": {
157
+ "pikkuFuncId": "whoami",
158
+ "positionals": [],
159
+ "options": {
160
+ "url": {
161
+ "description": "Server base URL to inspect (default: current)",
162
+ "short": "u"
163
+ }
164
+ },
165
+ "description": "Show the current CLI session"
166
+ },
120
167
  "schemas": {
121
168
  "pikkuFuncId": "pikkuSchemas",
122
169
  "positionals": [],
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
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.40
2
+ * This file was generated by @pikku/cli@0.12.41
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.40
2
+ * This file was generated by @pikku/cli@0.12.41
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.40
2
+ * This file was generated by @pikku/cli@0.12.41
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.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.js';
5
5
  export type NodeCategory = never;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  /**
5
5
  * Core function, middleware, and permission types for all wirings
@@ -364,7 +364,7 @@ export declare function pikkuSessionlessFunc<In, Out = unknown>(func: PikkuFunct
364
364
  * })
365
365
  * ```
366
366
  */
367
- export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void, "session" | "rpc"> | PikkuFunctionConfig<void, void, "session" | "rpc">) => PikkuFunctionConfig<void, void, "rpc" | "session", PikkuFunctionSessionless<void, void, "rpc" | "session", Services> | PikkuFunction<void, void, "rpc" | "session", Services>, undefined, undefined>;
367
+ export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void, "session" | "rpc"> | PikkuFunctionConfig<void, void, "session" | "rpc">) => PikkuFunctionConfig<void, void, "session" | "rpc", PikkuFunctionSessionless<void, void, "session" | "rpc", Services> | PikkuFunction<void, void, "session" | "rpc", Services>, undefined, undefined>;
368
368
  /**
369
369
  * References a registered function by name for use in any wiring.
370
370
  * Works for both local and addon functions — resolves via RPC at runtime.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  /**
5
5
  * Core function, middleware, and permission types for all wirings
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/internal';
5
5
  import metaData from './pikku-functions-meta.gen.json' with { type: 'json' };
@@ -223,6 +223,57 @@
223
223
  "inputHash": "9c00f5ad",
224
224
  "outputHash": "29f7efa2"
225
225
  },
226
+ "login": {
227
+ "pikkuFuncId": "login",
228
+ "functionType": "user",
229
+ "funcWrapper": "pikkuSessionlessFunc",
230
+ "sessionless": true,
231
+ "name": "login",
232
+ "inputSchemaName": "LoginOptions",
233
+ "outputSchemaName": null,
234
+ "inputs": [
235
+ "LoginOptions"
236
+ ],
237
+ "outputs": [],
238
+ "implementationHash": "4d42bf662741d7b4",
239
+ "contractHash": "60b82d30626e114d",
240
+ "inputHash": "bfcaf77f",
241
+ "outputHash": "e0e907e1"
242
+ },
243
+ "logout": {
244
+ "pikkuFuncId": "logout",
245
+ "functionType": "user",
246
+ "funcWrapper": "pikkuSessionlessFunc",
247
+ "sessionless": true,
248
+ "name": "logout",
249
+ "inputSchemaName": "LogoutInput",
250
+ "outputSchemaName": null,
251
+ "inputs": [
252
+ "LogoutInput"
253
+ ],
254
+ "outputs": [],
255
+ "implementationHash": "71273e68294d32da",
256
+ "contractHash": "d2eb90eb133912a6",
257
+ "inputHash": "6841cdbf",
258
+ "outputHash": "d2b5ac7f"
259
+ },
260
+ "whoami": {
261
+ "pikkuFuncId": "whoami",
262
+ "functionType": "user",
263
+ "funcWrapper": "pikkuSessionlessFunc",
264
+ "sessionless": true,
265
+ "name": "whoami",
266
+ "inputSchemaName": "WhoamiInput",
267
+ "outputSchemaName": null,
268
+ "inputs": [
269
+ "WhoamiInput"
270
+ ],
271
+ "outputs": [],
272
+ "implementationHash": "de9ca45451063556",
273
+ "contractHash": "95aaaaf5ef1f6866",
274
+ "inputHash": "42f90201",
275
+ "outputHash": "e909dc4c"
276
+ },
226
277
  "pikkuEmailsInit": {
227
278
  "pikkuFuncId": "pikkuEmailsInit",
228
279
  "functionType": "user",
@@ -1764,28 +1815,6 @@
1764
1815
  "inputHash": "c0a04edb",
1765
1816
  "outputHash": "aca3832e"
1766
1817
  },
1767
- "pikkuAuth": {
1768
- "pikkuFuncId": "pikkuAuth",
1769
- "functionType": "user",
1770
- "funcWrapper": "pikkuSessionlessFunc",
1771
- "sessionless": true,
1772
- "name": "pikkuAuth",
1773
- "inputSchemaName": null,
1774
- "outputSchemaName": null,
1775
- "inputs": [],
1776
- "outputs": [],
1777
- "implementationHash": "f8a2af6b34ab525f",
1778
- "middleware": [
1779
- {
1780
- "type": "wire",
1781
- "name": "logCommandInfoAndTime",
1782
- "inline": false
1783
- }
1784
- ],
1785
- "contractHash": "9fa89ecfb6307a51",
1786
- "inputHash": "c3580f86",
1787
- "outputHash": "f5261f72"
1788
- },
1789
1818
  "pikkuChannels": {
1790
1819
  "pikkuFuncId": "pikkuChannels",
1791
1820
  "functionType": "user",
@@ -1876,6 +1905,28 @@
1876
1905
  "inputHash": "5d1524e3",
1877
1906
  "outputHash": "048ccd50"
1878
1907
  },
1908
+ "pikkuAuth": {
1909
+ "pikkuFuncId": "pikkuAuth",
1910
+ "functionType": "user",
1911
+ "funcWrapper": "pikkuSessionlessFunc",
1912
+ "sessionless": true,
1913
+ "name": "pikkuAuth",
1914
+ "inputSchemaName": null,
1915
+ "outputSchemaName": null,
1916
+ "inputs": [],
1917
+ "outputs": [],
1918
+ "implementationHash": "f8a2af6b34ab525f",
1919
+ "middleware": [
1920
+ {
1921
+ "type": "wire",
1922
+ "name": "logCommandInfoAndTime",
1923
+ "inline": false
1924
+ }
1925
+ ],
1926
+ "contractHash": "9fa89ecfb6307a51",
1927
+ "inputHash": "c3580f86",
1928
+ "outputHash": "f5261f72"
1929
+ },
1879
1930
  "pikkuCLIEntry": {
1880
1931
  "pikkuFuncId": "pikkuCLIEntry",
1881
1932
  "functionType": "user",
@@ -2410,6 +2461,30 @@
2410
2461
  "inputHash": "d7b18af5",
2411
2462
  "outputHash": "09d7f16a"
2412
2463
  },
2464
+ "pikkuEventsScaffold": {
2465
+ "pikkuFuncId": "pikkuEventsScaffold",
2466
+ "functionType": "user",
2467
+ "funcWrapper": "pikkuSessionlessFunc",
2468
+ "sessionless": true,
2469
+ "name": "pikkuEventsScaffold",
2470
+ "inputSchemaName": null,
2471
+ "outputSchemaName": "PikkuEventsScaffoldOutput",
2472
+ "inputs": [],
2473
+ "outputs": [
2474
+ "PikkuEventsScaffoldOutput"
2475
+ ],
2476
+ "implementationHash": "4a998c5d2ef1753b",
2477
+ "middleware": [
2478
+ {
2479
+ "type": "wire",
2480
+ "name": "logCommandInfoAndTime",
2481
+ "inline": false
2482
+ }
2483
+ ],
2484
+ "contractHash": "59fdeb7aa338289b",
2485
+ "inputHash": "0e752243",
2486
+ "outputHash": "486a58ef"
2487
+ },
2413
2488
  "pikkuCommandQueueMap": {
2414
2489
  "pikkuFuncId": "pikkuCommandQueueMap",
2415
2490
  "functionType": "user",
@@ -2524,30 +2599,6 @@
2524
2599
  "inputHash": "d0d42371",
2525
2600
  "outputHash": "94c5f21c"
2526
2601
  },
2527
- "pikkuEventsScaffold": {
2528
- "pikkuFuncId": "pikkuEventsScaffold",
2529
- "functionType": "user",
2530
- "funcWrapper": "pikkuSessionlessFunc",
2531
- "sessionless": true,
2532
- "name": "pikkuEventsScaffold",
2533
- "inputSchemaName": null,
2534
- "outputSchemaName": "PikkuEventsScaffoldOutput",
2535
- "inputs": [],
2536
- "outputs": [
2537
- "PikkuEventsScaffoldOutput"
2538
- ],
2539
- "implementationHash": "4a998c5d2ef1753b",
2540
- "middleware": [
2541
- {
2542
- "type": "wire",
2543
- "name": "logCommandInfoAndTime",
2544
- "inline": false
2545
- }
2546
- ],
2547
- "contractHash": "59fdeb7aa338289b",
2548
- "inputHash": "0e752243",
2549
- "outputHash": "486a58ef"
2550
- },
2551
2602
  "pikkuPublicRPC": {
2552
2603
  "pikkuFuncId": "pikkuPublicRPC",
2553
2604
  "functionType": "user",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
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.40
2
+ * This file was generated by @pikku/cli@0.12.41
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.40
2
+ * This file was generated by @pikku/cli@0.12.41
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.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/internal';
5
5
  import metaData from './pikku-http-wirings-meta.gen.json' with { type: 'json' };
@@ -1,4 +1,4 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  import '../../src/scaffold/rpc-remote.gen.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  /* The files with an wireHTTP function call */
5
5
  import '../../src/scaffold/rpc-remote.gen.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
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.40
2
+ * This file was generated by @pikku/cli@0.12.41
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.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  import './rpc/pikku-rpc-wirings-meta.internal.gen.js';
5
5
  import './http/pikku-http-wirings-meta.gen.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  import './rpc/pikku-rpc-wirings-meta.internal.gen.js';
5
5
  import './http/pikku-http-wirings-meta.gen.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  import { LocalMetaService } from '@pikku/core/services/local-meta';
5
5
  export declare class PikkuMetaService extends LocalMetaService {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  import { LocalMetaService } from '@pikku/core/services/local-meta';
5
5
  export class PikkuMetaService extends LocalMetaService {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  import type { SingletonServices } from '../types/application-types.d.js';
5
5
  import type { Services } from '../types/application-types.d.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  /**
5
5
  * Main type export hub - re-exports all wiring-specific types
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  /**
5
5
  * Main type export hub - re-exports all wiring-specific types
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  /**
5
5
  * Queue-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  /**
5
5
  * Queue-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/internal';
5
5
  import metaData from './pikku-queue-workers-wirings-meta.gen.json' with { type: 'json' };
@@ -1,4 +1,4 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  import '../../src/scaffold/rpc-remote.gen.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  /* The files with an addQueueWorkers function call */
5
5
  import '../../src/scaffold/rpc-remote.gen.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.40
2
+ * This file was generated by @pikku/cli@0.12.41
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/internal';
5
5
  import metaData from './pikku-rpc-wirings-meta.internal.gen.json' with { type: 'json' };