@pikku/cli 0.12.50 → 0.12.51

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 (66) hide show
  1. package/console-app/assets/{index-DybYeIfd.js → index-92DoVRHq.js} +142 -139
  2. package/console-app/index.html +1 -1
  3. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
  4. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
  5. package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
  6. package/dist/.pikku/cli/pikku-cli-channel.js +1 -1
  7. package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +1 -1
  8. package/dist/.pikku/cli/pikku-cli-client.gen.js +1 -1
  9. package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.d.ts +1 -1
  10. package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.js +1 -1
  11. package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +1 -1
  12. package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
  13. package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +1 -1
  14. package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +1 -1
  15. package/dist/.pikku/cli/pikku-cli-wirings.gen.js +1 -1
  16. package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
  17. package/dist/.pikku/cli/pikku-cli.gen.js +1 -1
  18. package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
  19. package/dist/.pikku/function/pikku-function-types.gen.d.ts +1 -1
  20. package/dist/.pikku/function/pikku-function-types.gen.js +1 -1
  21. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  22. package/dist/.pikku/function/pikku-functions-meta.gen.json +163 -163
  23. package/dist/.pikku/function/pikku-functions.gen.js +1 -1
  24. package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
  25. package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
  26. package/dist/.pikku/http/pikku-http-wirings-meta.gen.js +1 -1
  27. package/dist/.pikku/http/pikku-http-wirings.gen.d.ts +1 -1
  28. package/dist/.pikku/http/pikku-http-wirings.gen.js +1 -1
  29. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
  30. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
  31. package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
  32. package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
  33. package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
  34. package/dist/.pikku/pikku-meta-service.gen.js +1 -1
  35. package/dist/.pikku/pikku-services.gen.d.ts +1 -1
  36. package/dist/.pikku/pikku-types.gen.d.ts +1 -1
  37. package/dist/.pikku/pikku-types.gen.js +1 -1
  38. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
  39. package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
  40. package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +1 -1
  41. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
  42. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
  43. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  44. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +2 -2
  45. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
  46. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
  47. package/dist/.pikku/schemas/register.gen.js +11 -11
  48. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
  49. package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
  50. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
  51. package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
  52. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  53. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  54. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
  55. package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
  56. package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
  57. package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
  58. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +1 -1
  59. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -1
  60. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  61. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  62. package/dist/bin/pikku-bin.mjs +2 -2
  63. package/dist/src/deploy/build-pipeline.js +2 -1
  64. package/dist/src/deploy/provider-adapter.d.ts +13 -0
  65. package/dist/src/scaffold/rpc-remote.gen.js +1 -1
  66. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.50
2
+ * This file was generated by @pikku/cli@0.12.51
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.50
2
+ * This file was generated by @pikku/cli@0.12.51
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.50
2
+ * This file was generated by @pikku/cli@0.12.51
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.50
2
+ * This file was generated by @pikku/cli@0.12.51
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.50
2
+ * This file was generated by @pikku/cli@0.12.51
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.50
2
+ * This file was generated by @pikku/cli@0.12.51
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.50
2
+ * This file was generated by @pikku/cli@0.12.51
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.50
2
+ * This file was generated by @pikku/cli@0.12.51
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.50
2
+ * This file was generated by @pikku/cli@0.12.51
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.50
2
+ * This file was generated by @pikku/cli@0.12.51
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' };
@@ -109,15 +109,15 @@
109
109
  "pikkuCommandChannels": "pikkuCommandChannels",
110
110
  "pikkuCLIEntry": "pikkuCLIEntry",
111
111
  "pikkuCLI": "pikkuCLI",
112
- "pikkuCredentials": "pikkuCredentials",
113
112
  "pikkuConsoleFunctions": "pikkuConsoleFunctions",
114
113
  "pikkuNodeTypes": "pikkuNodeTypes",
115
114
  "pikkuNodesMeta": "pikkuNodesMeta",
116
- "pikkuGateway": "pikkuGateway",
115
+ "pikkuCredentials": "pikkuCredentials",
117
116
  "pikkuFunctionTypesSplit": "pikkuFunctionTypesSplit",
118
117
  "pikkuFunctionTypes": "pikkuFunctionTypes",
119
118
  "pikkuFunctions": "pikkuFunctions",
120
119
  "pikkuServices": "pikkuServices",
120
+ "pikkuGateway": "pikkuGateway",
121
121
  "pikkuHTTPMap": "pikkuHTTPMap",
122
122
  "pikkuCommandHTTP": "pikkuCommandHTTP",
123
123
  "pikkuHTTPTypes": "pikkuHTTPTypes",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.50
2
+ * This file was generated by @pikku/cli@0.12.51
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.50
2
+ * This file was generated by @pikku/cli@0.12.51
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.50
2
+ * This file was generated by @pikku/cli@0.12.51
3
3
  */
4
4
  import { addSchema } from '@pikku/core/schema';
5
5
  import * as PikkuSchemasOutput from './schemas/PikkuSchemasOutput.schema.json' with { type: 'json' };
@@ -202,14 +202,14 @@ import * as PikkuPublicAgentOutput from './schemas/PikkuPublicAgentOutput.schema
202
202
  addSchema('PikkuPublicAgentOutput', PikkuPublicAgentOutput);
203
203
  import * as PikkuCommandChannelsOutput from './schemas/PikkuCommandChannelsOutput.schema.json' with { type: 'json' };
204
204
  addSchema('PikkuCommandChannelsOutput', PikkuCommandChannelsOutput);
205
- import * as PikkuConsoleFunctionsOutput from './schemas/PikkuConsoleFunctionsOutput.schema.json' with { type: 'json' };
206
- addSchema('PikkuConsoleFunctionsOutput', PikkuConsoleFunctionsOutput);
207
- import * as PikkuNodesMetaOutput from './schemas/PikkuNodesMetaOutput.schema.json' with { type: 'json' };
208
- addSchema('PikkuNodesMetaOutput', PikkuNodesMetaOutput);
209
205
  import * as PikkuCLIEntryOutput from './schemas/PikkuCLIEntryOutput.schema.json' with { type: 'json' };
210
206
  addSchema('PikkuCLIEntryOutput', PikkuCLIEntryOutput);
211
207
  import * as PikkuCLIOutput from './schemas/PikkuCLIOutput.schema.json' with { type: 'json' };
212
208
  addSchema('PikkuCLIOutput', PikkuCLIOutput);
209
+ import * as PikkuConsoleFunctionsOutput from './schemas/PikkuConsoleFunctionsOutput.schema.json' with { type: 'json' };
210
+ addSchema('PikkuConsoleFunctionsOutput', PikkuConsoleFunctionsOutput);
211
+ import * as PikkuNodesMetaOutput from './schemas/PikkuNodesMetaOutput.schema.json' with { type: 'json' };
212
+ addSchema('PikkuNodesMetaOutput', PikkuNodesMetaOutput);
213
213
  import * as PikkuFunctionTypesSplitInput from './schemas/PikkuFunctionTypesSplitInput.schema.json' with { type: 'json' };
214
214
  addSchema('PikkuFunctionTypesSplitInput', PikkuFunctionTypesSplitInput);
215
215
  import * as PikkuFunctionTypesInput from './schemas/PikkuFunctionTypesInput.schema.json' with { type: 'json' };
@@ -236,6 +236,12 @@ import * as PikkuQueueOutput from './schemas/PikkuQueueOutput.schema.json' with
236
236
  addSchema('PikkuQueueOutput', PikkuQueueOutput);
237
237
  import * as PikkuEventsScaffoldOutput from './schemas/PikkuEventsScaffoldOutput.schema.json' with { type: 'json' };
238
238
  addSchema('PikkuEventsScaffoldOutput', PikkuEventsScaffoldOutput);
239
+ import * as PikkuPublicRPCOutput from './schemas/PikkuPublicRPCOutput.schema.json' with { type: 'json' };
240
+ addSchema('PikkuPublicRPCOutput', PikkuPublicRPCOutput);
241
+ import * as PikkuRemoteRPCOutput from './schemas/PikkuRemoteRPCOutput.schema.json' with { type: 'json' };
242
+ addSchema('PikkuRemoteRPCOutput', PikkuRemoteRPCOutput);
243
+ import * as PikkuRPCOutput from './schemas/PikkuRPCOutput.schema.json' with { type: 'json' };
244
+ addSchema('PikkuRPCOutput', PikkuRPCOutput);
239
245
  import * as PikkuSchedulerOutput from './schemas/PikkuSchedulerOutput.schema.json' with { type: 'json' };
240
246
  addSchema('PikkuSchedulerOutput', PikkuSchedulerOutput);
241
247
  import * as PikkuTriggerTypesInput from './schemas/PikkuTriggerTypesInput.schema.json' with { type: 'json' };
@@ -244,11 +250,5 @@ import * as PikkuTriggerOutput from './schemas/PikkuTriggerOutput.schema.json' w
244
250
  addSchema('PikkuTriggerOutput', PikkuTriggerOutput);
245
251
  import * as PikkuWorkflowRoutesOutput from './schemas/PikkuWorkflowRoutesOutput.schema.json' with { type: 'json' };
246
252
  addSchema('PikkuWorkflowRoutesOutput', PikkuWorkflowRoutesOutput);
247
- import * as PikkuPublicRPCOutput from './schemas/PikkuPublicRPCOutput.schema.json' with { type: 'json' };
248
- addSchema('PikkuPublicRPCOutput', PikkuPublicRPCOutput);
249
- import * as PikkuRemoteRPCOutput from './schemas/PikkuRemoteRPCOutput.schema.json' with { type: 'json' };
250
- addSchema('PikkuRemoteRPCOutput', PikkuRemoteRPCOutput);
251
- import * as PikkuRPCOutput from './schemas/PikkuRPCOutput.schema.json' with { type: 'json' };
252
- addSchema('PikkuRPCOutput', PikkuRPCOutput);
253
253
  import * as PikkuCLIConfig from './schemas/PikkuCLIConfig.schema.json' with { type: 'json' };
254
254
  addSchema('PikkuCLIConfig', PikkuCLIConfig);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.50
2
+ * This file was generated by @pikku/cli@0.12.51
3
3
  */
4
4
  export { wireSecret } from '@pikku/core/secret';
5
5
  export type { CoreSecret, SecretDefinitionMeta, SecretDefinitionsMeta } from '@pikku/core/secret';
@@ -1,4 +1,4 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.50
2
+ * This file was generated by @pikku/cli@0.12.51
3
3
  */
4
4
  export { wireSecret } from '@pikku/core/secret';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.50
2
+ * This file was generated by @pikku/cli@0.12.51
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.50
2
+ * This file was generated by @pikku/cli@0.12.51
3
3
  */
4
4
  import { TypedSecretService as CoreTypedSecretService } from '@pikku/core/services';
5
5
  const CREDENTIALS_META = {};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.50
2
+ * This file was generated by @pikku/cli@0.12.51
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.50
2
+ * This file was generated by @pikku/cli@0.12.51
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.50
2
+ * This file was generated by @pikku/cli@0.12.51
3
3
  */
4
4
  export { wireVariable } from '@pikku/core/variable';
5
5
  export type { CoreVariable, VariableDefinitionMeta, VariableDefinitionsMeta } from '@pikku/core/variable';
@@ -1,4 +1,4 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.50
2
+ * This file was generated by @pikku/cli@0.12.51
3
3
  */
4
4
  export { wireVariable } from '@pikku/core/variable';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.50
2
+ * This file was generated by @pikku/cli@0.12.51
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.50
2
+ * This file was generated by @pikku/cli@0.12.51
3
3
  */
4
4
  import { TypedVariablesService as CoreTypedVariablesService } from '@pikku/core/services';
5
5
  const VARIABLES_META = {};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.50
2
+ * This file was generated by @pikku/cli@0.12.51
3
3
  */
4
4
  import { WorkflowCancelledException } from '@pikku/core/workflow';
5
5
  import { template } from '@pikku/core/workflow';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.50
2
+ * This file was generated by @pikku/cli@0.12.51
3
3
  */
4
4
  import { WorkflowCancelledException } from '@pikku/core/workflow';
5
5
  import { template } from '@pikku/core/workflow';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.50
2
+ * This file was generated by @pikku/cli@0.12.51
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/internal';
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.50
2
+ * This file was generated by @pikku/cli@0.12.51
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.50') {
15
- process.stderr.write(`\n Update available 0.12.50 → ${latest}\n brew upgrade pikku or npm install -g @pikku/cli\n\n`)
14
+ if (latest !== '0.12.51') {
15
+ process.stderr.write(`\n Update available 0.12.51 → ${latest}\n brew upgrade pikku or npm install -g @pikku/cli\n\n`)
16
16
  }
17
17
  } catch {}
18
18
  }
@@ -188,7 +188,8 @@ export async function runBuildPipeline(options) {
188
188
  await mkdir(unitDir, { recursive: true });
189
189
  const ctx = getEntryContext(unitDir, pikkuDir, unit, inspectorState);
190
190
  const source = unit.target === 'server'
191
- ? generateServerEntrySource(ctx)
191
+ ? (provider.generateServerEntrySource?.(ctx) ??
192
+ generateServerEntrySource(ctx))
192
193
  : provider.generateEntrySource(ctx);
193
194
  await writeFile(entryPath, source, 'utf-8');
194
195
  if (unit.target === 'server') {
@@ -59,6 +59,19 @@ export interface ProviderAdapter {
59
59
  * Called once per unit.
60
60
  */
61
61
  generateEntrySource(ctx: EntryGenerationContext): string;
62
+ /**
63
+ * Generate the entry file source for a `target: 'server'` (container) unit.
64
+ *
65
+ * Optional. When a provider implements it, the deploy pipeline uses it
66
+ * instead of the provider-agnostic `generateServerEntrySource`, so the
67
+ * provider can inject the SAME platform services (kysely, secrets, …) into
68
+ * the container that it injects into its serverless workers — sourcing the
69
+ * bindings from `process.env` instead of a runtime `env` object. When
70
+ * omitted, the pipeline falls back to the generic generator (no platform
71
+ * injection), which is correct for providers whose containers carry no
72
+ * platform services.
73
+ */
74
+ generateServerEntrySource?(ctx: EntryGenerationContext): string;
62
75
  /**
63
76
  * Generate provider-specific config files per unit (e.g. wrangler.toml).
64
77
  * Returns a map of filename → content to write into the unit directory.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.50
2
+ * This file was generated by @pikku/cli@0.12.51
3
3
  */
4
4
  /**
5
5
  * Auto-generated remote internal RPC queue worker and HTTP endpoint
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pikku/cli",
3
- "version": "0.12.50",
3
+ "version": "0.12.51",
4
4
  "author": "yasser.fadl@gmail.com",
5
5
  "license": "BUSL-1.1",
6
6
  "imports": {
@@ -29,8 +29,8 @@
29
29
  "@openapi-contrib/json-schema-to-openapi-schema": "^4.3.1",
30
30
  "@pikku/better-auth": "^0.12.11",
31
31
  "@pikku/core": "^0.12.37",
32
- "@pikku/deploy-cloudflare": "^0.12.4",
33
- "@pikku/fetch": "^0.12.4",
32
+ "@pikku/deploy-cloudflare": "^0.12.5",
33
+ "@pikku/fetch": "^0.12.5",
34
34
  "@pikku/inspector": "^0.12.25",
35
35
  "@pikku/kysely": "^0.12.16",
36
36
  "@pikku/kysely-node-sqlite": "^0.12.2",