@pikku/cli 0.12.75 → 0.12.77

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 (85) hide show
  1. package/console-app/assets/{index-Bn7IPpsQ.js → index-NmNeixvK.js} +140 -140
  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-meta.gen.json +3 -0
  15. package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +1 -1
  16. package/dist/.pikku/cli/pikku-cli-wirings.gen.js +1 -1
  17. package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
  18. package/dist/.pikku/cli/pikku-cli.gen.js +1 -1
  19. package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
  20. package/dist/.pikku/function/pikku-function-types.gen.d.ts +1 -1
  21. package/dist/.pikku/function/pikku-function-types.gen.js +1 -1
  22. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  23. package/dist/.pikku/function/pikku-functions-meta.gen.json +6 -6
  24. package/dist/.pikku/function/pikku-functions.gen.js +1 -1
  25. package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
  26. package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
  27. package/dist/.pikku/http/pikku-http-wirings-meta.gen.js +1 -1
  28. package/dist/.pikku/http/pikku-http-wirings.gen.d.ts +1 -1
  29. package/dist/.pikku/http/pikku-http-wirings.gen.js +1 -1
  30. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
  31. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
  32. package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
  33. package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
  34. package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
  35. package/dist/.pikku/pikku-meta-service.gen.js +1 -1
  36. package/dist/.pikku/pikku-services.gen.d.ts +1 -1
  37. package/dist/.pikku/pikku-types.gen.d.ts +1 -1
  38. package/dist/.pikku/pikku-types.gen.js +1 -1
  39. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
  40. package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
  41. package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +1 -1
  42. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
  43. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
  44. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  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 +1 -1
  48. package/dist/.pikku/schemas/schemas/PikkuNewAddonInput.schema.json +1 -1
  49. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
  50. package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
  51. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
  52. package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
  53. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  54. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  55. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
  56. package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
  57. package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
  58. package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
  59. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +5 -4
  60. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -1
  61. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  62. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  63. package/dist/bin/pikku-bin.mjs +2 -2
  64. package/dist/src/cli.wiring.js +3 -0
  65. package/dist/src/functions/commands/db-migrate.js +3 -0
  66. package/dist/src/functions/commands/db-reset.js +3 -0
  67. package/dist/src/functions/commands/new-addon.d.ts +3 -0
  68. package/dist/src/functions/commands/new-addon.js +53 -4
  69. package/dist/src/functions/db/db-codegen.d.ts +7 -2
  70. package/dist/src/functions/db/db-codegen.js +32 -14
  71. package/dist/src/functions/db/db-introspector.d.ts +13 -0
  72. package/dist/src/functions/db/local-db.js +1 -2
  73. package/dist/src/functions/db/postgres/postgres-introspector.d.ts +3 -2
  74. package/dist/src/functions/db/postgres/postgres-introspector.js +109 -7
  75. package/dist/src/functions/db/sqlite/sqlite-introspector.d.ts +2 -0
  76. package/dist/src/functions/db/sqlite/sqlite-introspector.js +16 -0
  77. package/dist/src/functions/wirings/auth/serialize-auth-gen.js +4 -1
  78. package/dist/src/functions/wirings/console/serialize-console-functions.js +1 -0
  79. package/dist/src/functions/wirings/rpc/serialize-public-rpc.js +1 -0
  80. package/dist/src/functions/wirings/rpc/serialize-remote-rpc.js +2 -0
  81. package/dist/src/functions/wirings/workflow/pikku-command-workflow.js +2 -1
  82. package/dist/src/functions/wirings/workflow/serialize-workflow-routes.js +2 -0
  83. package/dist/src/functions/wirings/workflow/serialize-workflow-types.d.ts +1 -1
  84. package/dist/src/functions/wirings/workflow/serialize-workflow-types.js +16 -4
  85. package/package.json +11 -11
@@ -21,7 +21,7 @@
21
21
  }
22
22
  } catch (e) {}
23
23
  </script>
24
- <script type="module" crossorigin src="/console/assets/index-Bn7IPpsQ.js"></script>
24
+ <script type="module" crossorigin src="/console/assets/index-NmNeixvK.js"></script>
25
25
  <link rel="stylesheet" crossorigin href="/console/assets/index-DwyRdRuZ.css">
26
26
  </head>
27
27
  <body>
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
3
3
  */
4
4
  /**
5
5
  * Channel-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.75
2
+ * This file was generated by @pikku/cli@0.12.77
3
3
  */
4
4
  /**
5
5
  * Channel-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.75
2
+ * This file was generated by @pikku/cli@0.12.77
3
3
  */
4
4
  /**
5
5
  * WebSocket channel backend for 'pikku' CLI commands
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.75
2
+ * This file was generated by @pikku/cli@0.12.77
3
3
  */
4
4
  import '../pikku-bootstrap.gen.js';
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.75
2
+ * This file was generated by @pikku/cli@0.12.77
3
3
  */
4
4
  import { executeCLIViaChannel } from '@pikku/core/cli/channel';
5
5
  import { CorePikkuWebsocket } from '@pikku/websocket';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.75
2
+ * This file was generated by @pikku/cli@0.12.77
3
3
  */
4
4
  import contractsMeta from './pikku-cli-contracts-meta.gen.json';
5
5
  export default contractsMeta;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.75
2
+ * This file was generated by @pikku/cli@0.12.77
3
3
  */
4
4
  import contractsMeta from './pikku-cli-contracts-meta.gen.json' with { type: 'json' };
5
5
  export default contractsMeta;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.75
2
+ * This file was generated by @pikku/cli@0.12.77
3
3
  */
4
4
  /**
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.75
2
+ * This file was generated by @pikku/cli@0.12.77
3
3
  */
4
4
  /**
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.75
2
+ * This file was generated by @pikku/cli@0.12.77
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/internal';
5
5
  import metaData from './pikku-cli-wirings-meta.gen.json' with { type: 'json' };
@@ -1062,6 +1062,9 @@
1062
1062
  "openapi": {
1063
1063
  "description": "Path to OpenAPI YAML/JSON spec to generate functions from"
1064
1064
  },
1065
+ "authConfig": {
1066
+ "description": "Path to an auth-config JSON overriding the spec (custom auth header, delegated login)"
1067
+ },
1065
1068
  "mcp": {
1066
1069
  "description": "Add mcp: true to generated functions (expose as MCP tools)",
1067
1070
  "default": false
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/internal';
5
5
  import metaData from './pikku-functions-meta.gen.json' with { type: 'json' };
@@ -577,7 +577,7 @@
577
577
  ],
578
578
  "outputs": [],
579
579
  "remote": true,
580
- "implementationHash": "245efcc09956bd7b"
580
+ "implementationHash": "e60ea0589df3652b"
581
581
  },
582
582
  "dbReset": {
583
583
  "pikkuFuncId": "dbReset",
@@ -592,7 +592,7 @@
592
592
  ],
593
593
  "outputs": [],
594
594
  "remote": true,
595
- "implementationHash": "46e9b31db2392d43"
595
+ "implementationHash": "1448eada37a65724"
596
596
  },
597
597
  "dbSeed": {
598
598
  "pikkuFuncId": "dbSeed",
@@ -1249,9 +1249,9 @@
1249
1249
  "PikkuNewAddonInput"
1250
1250
  ],
1251
1251
  "outputs": [],
1252
- "implementationHash": "403df3ca29a9a578",
1253
- "contractHash": "c67ed93d4e4fb2d6",
1254
- "inputHash": "d5b99251",
1252
+ "implementationHash": "5431f57ca054a509",
1253
+ "contractHash": "7ad6280aa8f3e18e",
1254
+ "inputHash": "87a4bbd4",
1255
1255
  "outputHash": "77e837d4"
1256
1256
  },
1257
1257
  "pikkuNewFunction": {
@@ -2984,7 +2984,7 @@
2984
2984
  "outputs": [
2985
2985
  "PikkuWorkflowOutput"
2986
2986
  ],
2987
- "implementationHash": "142b6fa25aa3be3b",
2987
+ "implementationHash": "20655832837c2fec",
2988
2988
  "middleware": [
2989
2989
  {
2990
2990
  "type": "wire",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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' };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
3
3
  */
4
4
  import { addSchema } from '@pikku/core/schema';
5
5
  import * as BinaryInput from './schemas/BinaryInput.schema.json' with { type: 'json' };
@@ -1 +1 @@
1
- { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "name": { "type": "string" }, "displayName": { "type": "string" }, "description": { "type": "string" }, "category": { "type": "string" }, "dir": { "type": "string" }, "secret": { "type": "boolean" }, "variable": { "type": "boolean" }, "oauth": { "type": "boolean" }, "credential": { "type": "string" }, "test": { "type": "boolean" }, "openapi": { "type": "string" }, "mcp": { "type": "boolean" }, "camelCase": { "type": "boolean" } }, "required": ["name"], "additionalProperties": false, "definitions": {} }
1
+ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "name": { "type": "string" }, "displayName": { "type": "string" }, "description": { "type": "string" }, "category": { "type": "string" }, "dir": { "type": "string" }, "secret": { "type": "boolean" }, "variable": { "type": "boolean" }, "oauth": { "type": "boolean" }, "credential": { "type": "string" }, "test": { "type": "boolean" }, "openapi": { "type": "string" }, "authConfig": { "type": "string" }, "mcp": { "type": "boolean" }, "camelCase": { "type": "boolean" } }, "required": ["name"], "additionalProperties": false, "definitions": {} }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
3
3
  */
4
4
  import { WorkflowCancelledException } from '@pikku/core/workflow';
5
5
  import { template } from '@pikku/core/workflow';
@@ -9,6 +9,7 @@ export { WorkflowCancelledException };
9
9
  import type { PikkuFunctionSessionless, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
10
10
  import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.d.js';
11
11
  import type { FlattenedWorkflowMap } from './pikku-workflow-map.gen.d.js';
12
+ import type { AgentMap as FlattenedAgentMap } from '../agent/pikku-agent-map.gen.d.js';
12
13
  export { template };
13
14
  export interface TypedWorkflow extends PikkuWorkflowWire {
14
15
  do<K extends keyof FlattenedRPCMap>(stepName: string, rpcName: K, data: FlattenedRPCMap[K]['input'], options?: WorkflowStepOptions): Promise<FlattenedRPCMap[K]['output']>;
@@ -75,8 +76,8 @@ type TemplateString = {
75
76
  type InputWithRefs<T> = {
76
77
  [K in keyof T]?: T[K] | TypedRef<T[K]> | TypedRef<unknown> | TemplateString;
77
78
  };
78
- type NodeInputType<FuncMap extends Record<string, string>, K extends keyof FuncMap> = FuncMap[K] extends keyof FlattenedRPCMap ? InputWithRefs<FlattenedRPCMap[FuncMap[K]]['input']> : Record<string, unknown>;
79
- type NodeOutputKeys<FuncMap extends Record<string, string>, N extends string> = N extends keyof FuncMap ? FuncMap[N] extends keyof FlattenedRPCMap ? keyof FlattenedRPCMap[FuncMap[N]]['output'] & string : string : string;
79
+ type NodeInputType<FuncMap extends Record<string, string>, K extends keyof FuncMap> = FuncMap[K] extends keyof FlattenedRPCMap ? InputWithRefs<FlattenedRPCMap[FuncMap[K]]['input']> : FuncMap[K] extends keyof FlattenedWorkflowMap ? InputWithRefs<FlattenedWorkflowMap[FuncMap[K]]['input']> : Record<string, unknown>;
80
+ type NodeOutputKeys<FuncMap extends Record<string, string>, N extends string> = N extends keyof FuncMap ? FuncMap[N] extends keyof FlattenedRPCMap ? keyof FlattenedRPCMap[FuncMap[N]]['output'] & string : FuncMap[N] extends keyof FlattenedWorkflowMap ? keyof FlattenedWorkflowMap[FuncMap[N]]['output'] & string : FuncMap[N] extends keyof FlattenedAgentMap ? keyof FlattenedAgentMap[FuncMap[N]]['output'] & string : string : string;
80
81
  type RefFunction<FuncMap extends Record<string, string>> = {
81
82
  <N extends Extract<keyof FuncMap, string>>(nodeId: N, path: NodeOutputKeys<FuncMap, N>): TypedRef<unknown>;
82
83
  (nodeId: 'trigger' | '$item', path?: string): TypedRef<unknown>;
@@ -94,4 +95,4 @@ type NextConfig<NodeIds extends string> = NodeIds | NodeIds[] | {
94
95
  then: NodeIds;
95
96
  else?: NodeIds;
96
97
  };
97
- export declare function pikkuWorkflowGraph<const FuncMap extends Record<string, keyof FlattenedRPCMap & string>>(config: PikkuWorkflowGraphConfig<FuncMap, GraphNodeConfigMap<FuncMap>>): PikkuWorkflowGraphResult;
98
+ export declare function pikkuWorkflowGraph<const FuncMap extends Record<string, (keyof FlattenedRPCMap & string) | (keyof FlattenedWorkflowMap & string) | (keyof FlattenedAgentMap & string)>>(config: PikkuWorkflowGraphConfig<FuncMap, GraphNodeConfigMap<FuncMap>>): PikkuWorkflowGraphResult;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75
2
+ * This file was generated by @pikku/cli@0.12.77
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.75') {
15
- process.stderr.write(`\n Update available 0.12.75 → ${latest}\n brew upgrade pikku or npm install -g @pikku/cli\n\n`)
14
+ if (latest !== '0.12.77') {
15
+ process.stderr.write(`\n Update available 0.12.77 → ${latest}\n brew upgrade pikku or npm install -g @pikku/cli\n\n`)
16
16
  }
17
17
  } catch {}
18
18
  }
@@ -577,6 +577,9 @@ wireCLI({
577
577
  openapi: {
578
578
  description: 'Path to OpenAPI YAML/JSON spec to generate functions from',
579
579
  },
580
+ authConfig: {
581
+ description: 'Path to an auth-config JSON overriding the spec (custom auth header, delegated login)',
582
+ },
580
583
  mcp: {
581
584
  description: 'Add mcp: true to generated functions (expose as MCP tools)',
582
585
  default: false,
@@ -13,6 +13,9 @@ export const dbMigrate = pikkuSessionlessFunc({
13
13
  throw new Error('no database configured');
14
14
  }
15
15
  const { migrate, codegen, zod } = await migrateAndCodegen(resolved);
16
+ for (const warning of codegen.warnings) {
17
+ logger.diagnostic(warning);
18
+ }
16
19
  if (migrate.applied.length === 0) {
17
20
  logger.info(`db migrate: no pending migrations (${migrate.skipped.length} already applied)`);
18
21
  }
@@ -23,6 +23,9 @@ export const dbReset = pikkuSessionlessFunc({
23
23
  ? `db reset: removed ${resolved.pgliteDir}`
24
24
  : 'db reset: cleared non-system Postgres schemas');
25
25
  const { migrate, codegen, zod } = await migrateAndCodegen(resolved);
26
+ for (const warning of codegen.warnings) {
27
+ logger.diagnostic(warning);
28
+ }
26
29
  for (const name of migrate.applied) {
27
30
  logger.info(`db reset: applied ${name}`);
28
31
  }