@pikku/cli 0.12.68 → 0.12.70

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 (106) hide show
  1. package/cli.schema.json +1 -1
  2. package/console-app/assets/{index-CttM2Aiz.js → index-BY60UXB6.js} +132 -132
  3. package/console-app/index.html +2 -2
  4. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
  5. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
  6. package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
  7. package/dist/.pikku/cli/pikku-cli-channel.js +7 -12
  8. package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +1 -1
  9. package/dist/.pikku/cli/pikku-cli-client.gen.js +1 -1
  10. package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.d.ts +1 -1
  11. package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.js +1 -1
  12. package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +1 -1
  13. package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
  14. package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +1 -1
  15. package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.json +23 -30
  16. package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +1 -1
  17. package/dist/.pikku/cli/pikku-cli-wirings.gen.js +1 -1
  18. package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
  19. package/dist/.pikku/cli/pikku-cli.gen.js +1 -1
  20. package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
  21. package/dist/.pikku/function/pikku-function-types.gen.d.ts +1 -1
  22. package/dist/.pikku/function/pikku-function-types.gen.js +1 -1
  23. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  24. package/dist/.pikku/function/pikku-functions-meta.gen.json +39 -54
  25. package/dist/.pikku/function/pikku-functions.gen.js +1 -3
  26. package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
  27. package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
  28. package/dist/.pikku/http/pikku-http-wirings-meta.gen.js +1 -1
  29. package/dist/.pikku/http/pikku-http-wirings.gen.d.ts +1 -1
  30. package/dist/.pikku/http/pikku-http-wirings.gen.js +1 -1
  31. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
  32. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
  33. package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
  34. package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
  35. package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
  36. package/dist/.pikku/pikku-meta-service.gen.js +1 -1
  37. package/dist/.pikku/pikku-services.gen.d.ts +4 -2
  38. package/dist/.pikku/pikku-services.gen.js +2 -0
  39. package/dist/.pikku/pikku-types.gen.d.ts +1 -1
  40. package/dist/.pikku/pikku-types.gen.js +1 -1
  41. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
  42. package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
  43. package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +1 -1
  44. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
  45. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
  46. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  47. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +2 -3
  48. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
  49. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
  50. package/dist/.pikku/schemas/register.gen.js +5 -7
  51. package/dist/.pikku/schemas/schemas/DevInput.schema.json +1 -1
  52. package/dist/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
  53. package/dist/.pikku/schemas/schemas/ScenarioRunInput.schema.json +1 -0
  54. package/dist/.pikku/schemas/schemas/ServeInput.schema.json +1 -1
  55. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
  56. package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
  57. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
  58. package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
  59. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  60. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  61. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
  62. package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
  63. package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
  64. package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
  65. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +4 -4
  66. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +2 -2
  67. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  68. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  69. package/dist/bin/pikku-bin.mjs +2 -2
  70. package/dist/bin/pikku.js +1 -1
  71. package/dist/src/cli.wiring.js +23 -30
  72. package/dist/src/functions/commands/all.js +14 -1
  73. package/dist/src/functions/commands/bun-coverage-loader.d.ts +11 -0
  74. package/dist/src/functions/commands/bun-coverage-loader.js +42 -0
  75. package/dist/src/functions/commands/dev.d.ts +6 -3
  76. package/dist/src/functions/commands/dev.js +26 -9
  77. package/dist/src/functions/commands/{user-flow.d.ts → scenario.d.ts} +5 -2
  78. package/dist/src/functions/commands/{user-flow.js → scenario.js} +73 -32
  79. package/dist/src/functions/commands/serve-console.d.ts +2 -3
  80. package/dist/src/functions/commands/serve-console.js +5 -51
  81. package/dist/src/functions/commands/serve.d.ts +3 -3
  82. package/dist/src/functions/commands/serve.js +15 -7
  83. package/dist/src/functions/commands/start-coverage.d.ts +13 -0
  84. package/dist/src/functions/commands/start-coverage.js +26 -0
  85. package/dist/src/functions/commands/watch.js +2 -1
  86. package/dist/src/functions/wirings/workflow/pikku-command-workflow.js +6 -5
  87. package/dist/src/functions/wirings/workflow/serialize-scenario-actors.d.ts +2 -0
  88. package/dist/src/functions/wirings/workflow/serialize-scenario-actors.js +29 -0
  89. package/dist/src/functions/wirings/workflow/serialize-workflow-types.js +4 -4
  90. package/dist/src/services.js +14 -1
  91. package/dist/src/utils/file-writer.d.ts +1 -0
  92. package/dist/src/utils/file-writer.js +9 -0
  93. package/dist/src/utils/meta-diff.d.ts +32 -0
  94. package/dist/src/utils/meta-diff.js +144 -0
  95. package/dist/src/utils/pikku-cli-config.js +2 -2
  96. package/dist/src/utils/serialize-schemas.js +1 -1
  97. package/dist/src/utils/strip-verbose-meta.js +3 -0
  98. package/dist/tsconfig.tsbuildinfo +1 -1
  99. package/package.json +8 -6
  100. package/dist/.pikku/schemas/schemas/ConsoleCommandInput.schema.json +0 -1
  101. package/dist/.pikku/schemas/schemas/UserFlowRunInput.schema.json +0 -1
  102. package/dist/src/functions/commands/console.d.ts +0 -13
  103. package/dist/src/functions/commands/console.js +0 -122
  104. package/dist/src/functions/wirings/workflow/serialize-user-flow-actors.d.ts +0 -8
  105. package/dist/src/functions/wirings/workflow/serialize-user-flow-actors.js +0 -36
  106. /package/dist/.pikku/schemas/schemas/{UserFlowListInput.schema.json → ScenarioListInput.schema.json} +0 -0
@@ -1,8 +0,0 @@
1
- import type { PikkuCLIConfig } from '../../../../types/config.js';
2
- /**
3
- * Generate the typed user-flow actor registry from pikku.config.json's
4
- * `userFlows.actors`. Apps wire the result as the `actors` singleton service:
5
- *
6
- * actors: createUserFlowActors({ apiUrl, secret })
7
- */
8
- export declare const serializeUserFlowActors: (actors: NonNullable<NonNullable<PikkuCLIConfig["userFlows"]>["actors"]>) => string;
@@ -1,36 +0,0 @@
1
- /**
2
- * Generate the typed user-flow actor registry from pikku.config.json's
3
- * `userFlows.actors`. Apps wire the result as the `actors` singleton service:
4
- *
5
- * actors: createUserFlowActors({ apiUrl, secret })
6
- */
7
- export const serializeUserFlowActors = (actors) => {
8
- return `/**
9
- * User-flow actors declared in pikku.config.json (\`userFlows.actors\`).
10
- * Any user flow can impersonate any actor.
11
- */
12
- import {
13
- createHttpUserFlowActors,
14
- type HttpUserFlowActorsConfig,
15
- type UserFlowActor,
16
- type UserFlowActorConfig,
17
- } from '@pikku/core/services'
18
-
19
- export const userFlowActorConfigs = ${JSON.stringify(actors, null, 2)} as const satisfies Record<string, UserFlowActorConfig>
20
-
21
- export type UserFlowActorName = keyof typeof userFlowActorConfigs
22
- export type TypedUserFlowActors = Record<UserFlowActorName, UserFlowActor>
23
-
24
- /**
25
- * Build the injected \`actors\` service: one lazy HTTP actor per registry
26
- * entry, signing in via the Better Auth actor plugin on first invoke.
27
- */
28
- export const createUserFlowActors = (
29
- options: Omit<HttpUserFlowActorsConfig, 'actors'>
30
- ): TypedUserFlowActors =>
31
- createHttpUserFlowActors({
32
- ...options,
33
- actors: userFlowActorConfigs,
34
- }) as TypedUserFlowActors
35
- `;
36
- };