@pikku/cli 0.12.141 → 0.12.143

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 (128) hide show
  1. package/CHANGELOG.md +47 -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 +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 +1 -1
  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 +1 -1
  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.js +29 -0
  124. package/dist/src/functions/commands/dev.js +12 -18
  125. package/dist/src/functions/commands/serve.js +12 -18
  126. package/dist/src/functions/db/local-db.js +15 -1
  127. package/package.json +4 -4
  128. package/surface.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/state';
5
5
  import metaData from './pikku-rpc-wirings-meta.internal.gen.json' with { type: 'json' };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/scenarios` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/scenarios` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /** Personas declared with definePersonas() */
5
5
  import { createHttpPersonas } from '@pikku/core/persona';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/state';
5
5
  import '../function/pikku-functions-meta.gen.js';
@@ -1,4 +1,4 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  export {};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  import type { PikkuScenarioWire, ScenarioStepOptions } from '@pikku/core/scenario';
5
5
  import type { PikkuWorkflowWire } from '@pikku/core/workflow';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/state';
5
5
  import '../workflow/pikku-workflow-wirings-meta.gen.js';
@@ -1,4 +1,4 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  export {};
@@ -1,4 +1,4 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  export declare const empty: null;
@@ -1,4 +1,4 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  export const empty = null;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/scheduler` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/scheduler` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * Scheduler-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * Scheduler-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  import { addSchema } from '@pikku/core/schema';
5
5
  import * as BinaryInput from './schemas/BinaryInput.schema.json' with { type: 'json' };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/scopes` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/scopes` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * This file was generated by the @pikku/cli
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * This file was generated by the @pikku/cli
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  export { defineScope } from '@pikku/core/scope';
5
5
  export { defineSystemRole } from '@pikku/core/role';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  export { defineScope } from '@pikku/core/scope';
5
5
  export { defineSystemRole } from '@pikku/core/role';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * This file was generated by the @pikku/cli
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/secrets` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/secrets` resolves here.
@@ -1,4 +1,4 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  export { defineSecret } from '@pikku/core/secret';
@@ -1,4 +1,4 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  export { defineSecret } from '@pikku/core/secret';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  import { TypedSecretService as CoreTypedSecretService } from '@pikku/core/services';
5
5
  import type { SecretService } from '@pikku/core/services';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  import { TypedSecretService as CoreTypedSecretService } from '@pikku/core/services';
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
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.141
2
+ * This file was generated by @pikku/cli@0.12.143
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.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/setup` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/setup` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * Config and service factory definitions, declared once per application
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * Config and service factory definitions, declared once per application
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/trigger` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/trigger` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * Trigger-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * Trigger-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/variables` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/variables` resolves here.
@@ -1,4 +1,4 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  export { defineVariable } from '@pikku/core/variable';
@@ -1,4 +1,4 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  export { defineVariable } from '@pikku/core/variable';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  import { TypedVariablesService as CoreTypedVariablesService } from '@pikku/core/services';
5
5
  import type { VariablesService } from '@pikku/core/services';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  import { TypedVariablesService as CoreTypedVariablesService, } from '@pikku/core/services';
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/workflow` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/workflow` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  import { WorkflowCancelledException } from '@pikku/core/workflow';
5
5
  import type { PikkuWorkflowGraphConfig, PikkuWorkflowGraphResult } from '@pikku/core/workflow';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  import { WorkflowCancelledException } from '@pikku/core/workflow';
5
5
  import { pikkuWorkflowGraph as corePikkuWorkflowGraph } from '@pikku/core/workflow';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/state';
5
5
  import allWorkflowMeta from './meta/allWorkflow.gen.json' with { type: 'json' };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.141
2
+ * This file was generated by @pikku/cli@0.12.143
3
3
  */
4
4
  import { addWorkflow } from '@pikku/core/workflow';
5
5
  import './pikku-workflow-wirings-meta.gen.js';
@@ -11,8 +11,8 @@ async function checkForUpdate() {
11
11
  })
12
12
  if (!res.ok) return
13
13
  const { version: latest } = await res.json()
14
- if (latest !== '0.12.141') {
15
- process.stderr.write(`\n Update available 0.12.141 → ${latest}\n brew upgrade pikku or npm install -g @pikku/cli\n\n`)
14
+ if (latest !== '0.12.143') {
15
+ process.stderr.write(`\n Update available 0.12.143 → ${latest}\n brew upgrade pikku or npm install -g @pikku/cli\n\n`)
16
16
  }
17
17
  } catch {}
18
18
  }
@@ -355,6 +355,35 @@ export function analyzeDeployment(state, options) {
355
355
  });
356
356
  }
357
357
  }
358
+ // ── Step 9: Remote job inbox units bundle the work they dispatch ───
359
+ // The inbox runs a worker in-process, so it needs the worker's code in its
360
+ // own bundle. Any server-target worker pulls the inbox to server, since a
361
+ // server unit can host a serverless-compatible function but not the reverse.
362
+ const REMOTE_JOB_INBOX_SOURCES = {
363
+ runRemoteQueueJob: () => values(state.queueWorkers.meta).map((m) => m.pikkuFuncId),
364
+ runRemoteScheduledJob: () => values(state.scheduledTasks.meta).map((m) => m.pikkuFuncId),
365
+ };
366
+ for (const unit of units) {
367
+ if (unit.role !== 'function')
368
+ continue;
369
+ const source = REMOTE_JOB_INBOX_SOURCES[unit.functionIds[0] ?? ''];
370
+ if (!source || unit.functionIds.length !== 1)
371
+ continue;
372
+ const workerIds = [...new Set(source())].filter((id) => id && functionsMeta[id]);
373
+ if (workerIds.length === 0)
374
+ continue;
375
+ const targets = workerIds.map((id) => resolveDeployTarget(functionsMeta[id], serverlessIncompatible, id, defaultTarget));
376
+ unit.target = targets.includes('server') ? 'server' : 'serverless';
377
+ unit.functionIds = [...unit.functionIds, ...workerIds];
378
+ for (const id of workerIds) {
379
+ for (const service of collectServicesForFunction(functionsMeta[id])) {
380
+ if (!unit.services.some((s) => s.capability === service.capability &&
381
+ s.sourceServiceName === service.sourceServiceName)) {
382
+ unit.services.push(service);
383
+ }
384
+ }
385
+ }
386
+ }
358
387
  // ── Secrets & Variables ────────────────────────────────────────────
359
388
  const readSecretIds = new Set();
360
389
  const unresolvedSecretReads = [];
@@ -159,23 +159,17 @@ export const dev = pikkuSessionlessFunc({
159
159
  ? await createKysely(resolvedLocalDb)
160
160
  : undefined;
161
161
  const resolvedRuntimeDir = config.runtimeDir ?? join(config.rootDir, '.pikku-runtime');
162
- const localContentConfig = userConfig.content
163
- ? {
164
- localFileUploadPath: userConfig.content.contentPath
165
- ? resolve(config.rootDir, userConfig.content.contentPath)
166
- : join(resolvedRuntimeDir, 'content'),
167
- uploadUrlPrefix: userConfig.content.uploadUrlPrefix ?? '/upload',
168
- assetUrlPrefix: userConfig.content.assetUrlPrefix ?? '/assets',
169
- server: `http://${hostname}:${resolvedPort}`,
170
- sizeLimit: userConfig.content.sizeLimit,
171
- }
172
- : undefined;
173
- const contentSigningJWT = localContentConfig
174
- ? createEphemeralContentSigningJWT()
175
- : undefined;
176
- const localContent = localContentConfig && contentSigningJWT
177
- ? new LocalContent(localContentConfig, logger, contentSigningJWT)
178
- : undefined;
162
+ const localContentConfig = {
163
+ localFileUploadPath: userConfig.content?.contentPath
164
+ ? resolve(config.rootDir, userConfig.content.contentPath)
165
+ : join(resolvedRuntimeDir, 'content'),
166
+ uploadUrlPrefix: userConfig.content?.uploadUrlPrefix ?? '/upload',
167
+ assetUrlPrefix: userConfig.content?.assetUrlPrefix ?? '/assets',
168
+ server: `http://${hostname}:${resolvedPort}`,
169
+ sizeLimit: userConfig.content?.sizeLimit,
170
+ };
171
+ const contentSigningJWT = createEphemeralContentSigningJWT();
172
+ const localContent = new LocalContent(localContentConfig, logger, contentSigningJWT);
179
173
  const schedulerService = new InMemorySchedulerService();
180
174
  const agentStorage = kysely
181
175
  ? new KyselyAgentStorageService(kysely)
@@ -236,7 +230,7 @@ export const dev = pikkuSessionlessFunc({
236
230
  agentRunService,
237
231
  eventHub,
238
232
  ...(kysely ? { kysely } : {}),
239
- ...(localContent ? { content: localContent } : {}),
233
+ content: localContent,
240
234
  };
241
235
  const singletonServices = await userCreateSingletonServices(userConfig, {
242
236
  ...inMemoryServices,
@@ -62,23 +62,17 @@ export const serve = pikkuSessionlessFunc({
62
62
  ? await createKysely(resolvedLocalDb)
63
63
  : undefined;
64
64
  const resolvedRuntimeDir = config.runtimeDir ?? join(config.rootDir, '.pikku-runtime');
65
- const localContentConfig = userConfig.content
66
- ? {
67
- localFileUploadPath: userConfig.content.contentPath
68
- ? resolve(config.rootDir, userConfig.content.contentPath)
69
- : join(resolvedRuntimeDir, 'content'),
70
- uploadUrlPrefix: userConfig.content.uploadUrlPrefix ?? '/upload',
71
- assetUrlPrefix: userConfig.content.assetUrlPrefix ?? '/assets',
72
- server: `http://${hostname}:${resolvedPort}`,
73
- sizeLimit: userConfig.content.sizeLimit,
74
- }
75
- : undefined;
76
- const contentSigningJWT = localContentConfig
77
- ? createEphemeralContentSigningJWT()
78
- : undefined;
79
- const localContent = localContentConfig && contentSigningJWT
80
- ? new LocalContent(localContentConfig, logger, contentSigningJWT)
81
- : undefined;
65
+ const localContentConfig = {
66
+ localFileUploadPath: userConfig.content?.contentPath
67
+ ? resolve(config.rootDir, userConfig.content.contentPath)
68
+ : join(resolvedRuntimeDir, 'content'),
69
+ uploadUrlPrefix: userConfig.content?.uploadUrlPrefix ?? '/upload',
70
+ assetUrlPrefix: userConfig.content?.assetUrlPrefix ?? '/assets',
71
+ server: `http://${hostname}:${resolvedPort}`,
72
+ sizeLimit: userConfig.content?.sizeLimit,
73
+ };
74
+ const contentSigningJWT = createEphemeralContentSigningJWT();
75
+ const localContent = new LocalContent(localContentConfig, logger, contentSigningJWT);
82
76
  const schedulerService = new InMemorySchedulerService();
83
77
  const agentStorage = kysely
84
78
  ? new KyselyAgentStorageService(kysely)
@@ -121,7 +115,7 @@ export const serve = pikkuSessionlessFunc({
121
115
  agentRunService,
122
116
  eventHub,
123
117
  ...(kysely ? { kysely } : {}),
124
- ...(localContent ? { content: localContent } : {}),
118
+ content: localContent,
125
119
  };
126
120
  const singletonServices = await userCreateSingletonServices(userConfig, {
127
121
  ...inMemoryServices,
@@ -235,7 +235,14 @@ async function createEmbeddedPostgres(context, dataDir) {
235
235
  embeddedPostgresWasm,
236
236
  loadPGliteExtensions(context.rootDir, context.pgliteExtensions),
237
237
  ]);
238
- return new PGlite({
238
+ // PGlite runs Postgres as an Emscripten module, and Emscripten's exit handler
239
+ // writes the WASM program's status straight to `process.exitCode` — booting a
240
+ // database leaves it at 99 even though nothing failed. The CLI's bin then
241
+ // ends with `process.exit(process.exitCode ?? 0)`, so any command that merely
242
+ // touched the embedded database reported failure after doing all of its work
243
+ // correctly. Restore whatever the process had before the boot.
244
+ const exitCodeBeforeBoot = process.exitCode;
245
+ const db = new PGlite({
239
246
  ...(dataDir ? { dataDir } : {}),
240
247
  ...wasm,
241
248
  extensions: {
@@ -243,6 +250,13 @@ async function createEmbeddedPostgres(context, dataDir) {
243
250
  ...declared,
244
251
  },
245
252
  });
253
+ await db.waitReady;
254
+ if (process.exitCode !== exitCodeBeforeBoot) {
255
+ // `?? 0` because assigning `undefined` does not clear an already-set
256
+ // exitCode under bun, which is the runtime the boot pollutes it on.
257
+ process.exitCode = exitCodeBeforeBoot ?? 0;
258
+ }
259
+ return db;
246
260
  }
247
261
  /**
248
262
  * PGlite reports an extension it was never given as a plain
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pikku/cli",
3
- "version": "0.12.141",
3
+ "version": "0.12.143",
4
4
  "description": "Pikku CLI — code generation, dev server, migrations and deployment",
5
5
  "author": "yasser.fadl@gmail.com",
6
6
  "license": "BUSL-1.1",
@@ -37,15 +37,15 @@
37
37
  "@pikku/deploy": "^0.12.7",
38
38
  "@pikku/deploy-cloudflare": "^0.12.14",
39
39
  "@pikku/fetch": "^0.12.10",
40
- "@pikku/inspector": "^0.12.73",
40
+ "@pikku/inspector": "^0.12.74",
41
41
  "@pikku/knowledge": "^0.12.12",
42
42
  "@pikku/kysely": "^0.13.24",
43
43
  "@pikku/migrator-sql": "^0.12.4",
44
44
  "@pikku/n8n-import": "^0.0.7",
45
- "@pikku/node-http-server": "^0.12.13",
45
+ "@pikku/node-http-server": "^0.12.14",
46
46
  "@pikku/openapi-parser": "^0.12.20",
47
47
  "@pikku/schedule": "^0.12.7",
48
- "@pikku/skills": "^0.12.29",
48
+ "@pikku/skills": "^0.12.30",
49
49
  "@types/cookie": "^1.0.0",
50
50
  "@types/json-schema": "^7.0.15",
51
51
  "ai": "^7.0.66",
package/surface.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.12.141",
2
+ "version": "0.12.143",
3
3
  "entryPoints": [
4
4
  {
5
5
  "id": "app",