@pikku/addon-admin 0.12.7 → 0.12.8

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 (160) hide show
  1. package/dist/.pikku/addon/agent/index.d.ts +1 -1
  2. package/dist/.pikku/addon/agent/index.js +1 -1
  3. package/dist/.pikku/addon/agent/pikku-agent-map.gen.d.ts +1 -1
  4. package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts +1 -1
  5. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +1 -1
  6. package/dist/.pikku/addon/agent/pikku-scorer-names.gen.d.ts +1 -1
  7. package/dist/.pikku/addon/analytics/index.d.ts +1 -1
  8. package/dist/.pikku/addon/analytics/index.js +1 -1
  9. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.d.ts +1 -1
  10. package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.js +1 -1
  11. package/dist/.pikku/addon/auth/index.d.ts +1 -1
  12. package/dist/.pikku/addon/auth/index.js +1 -1
  13. package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts +1 -1
  14. package/dist/.pikku/addon/auth/pikku-auth-types.gen.js +1 -1
  15. package/dist/.pikku/addon/channel/index.d.ts +1 -1
  16. package/dist/.pikku/addon/channel/index.js +1 -1
  17. package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts +1 -1
  18. package/dist/.pikku/addon/channel/pikku-channel-types.gen.js +1 -1
  19. package/dist/.pikku/addon/cli/index.d.ts +8 -0
  20. package/dist/.pikku/addon/cli/index.d.ts.map +1 -0
  21. package/dist/.pikku/addon/cli/index.js +8 -0
  22. package/dist/.pikku/addon/cli/index.js.map +1 -0
  23. package/dist/.pikku/addon/cli/pikku-cli-types.gen.d.ts +62 -0
  24. package/dist/.pikku/addon/cli/pikku-cli-types.gen.d.ts.map +1 -0
  25. package/dist/.pikku/addon/cli/pikku-cli-types.gen.js +49 -0
  26. package/dist/.pikku/addon/cli/pikku-cli-types.gen.js.map +1 -0
  27. package/dist/.pikku/addon/error/index.d.ts +1 -1
  28. package/dist/.pikku/addon/error/index.js +1 -1
  29. package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts +1 -1
  30. package/dist/.pikku/addon/error/pikku-error-types.gen.js +1 -1
  31. package/dist/.pikku/addon/function/index.d.ts +1 -1
  32. package/dist/.pikku/addon/function/index.js +1 -1
  33. package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts +1 -1
  34. package/dist/.pikku/addon/function/pikku-function-types.gen.js +1 -1
  35. package/dist/.pikku/addon/function/pikku-functions-meta-verbose.gen.json +210 -34
  36. package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +1 -1
  37. package/dist/.pikku/addon/function/pikku-functions-meta.gen.json +148 -0
  38. package/dist/.pikku/addon/function/pikku-functions.gen.js +9 -1
  39. package/dist/.pikku/addon/function/pikku-functions.gen.js.map +1 -1
  40. package/dist/.pikku/addon/http/index.d.ts +1 -1
  41. package/dist/.pikku/addon/http/index.js +1 -1
  42. package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts +1 -1
  43. package/dist/.pikku/addon/http/pikku-http-types.gen.js +1 -1
  44. package/dist/.pikku/addon/mcp/index.d.ts +1 -1
  45. package/dist/.pikku/addon/mcp/index.js +1 -1
  46. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts +1 -1
  47. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js +1 -1
  48. package/dist/.pikku/addon/middleware/index.d.ts +1 -1
  49. package/dist/.pikku/addon/middleware/index.js +1 -1
  50. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts +1 -1
  51. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js +1 -1
  52. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts +1 -1
  53. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js +1 -1
  54. package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts +1 -1
  55. package/dist/.pikku/addon/pikku-bootstrap.gen.js +1 -1
  56. package/dist/.pikku/addon/pikku-package.gen.js +2 -2
  57. package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
  58. package/dist/.pikku/addon/pikku-services.gen.d.ts +5 -3
  59. package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -1
  60. package/dist/.pikku/addon/pikku-services.gen.js +3 -1
  61. package/dist/.pikku/addon/pikku-services.gen.js.map +1 -1
  62. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.gen.d.ts +15 -1
  63. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +15 -1
  64. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +11 -1
  65. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  66. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.json +5 -1
  67. package/dist/.pikku/addon/scenarios/index.d.ts +1 -1
  68. package/dist/.pikku/addon/scenarios/index.js +1 -1
  69. package/dist/.pikku/addon/scenarios/pikku-personas.gen.js +1 -1
  70. package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
  71. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
  72. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts +1 -1
  73. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
  74. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
  75. package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts +1 -1
  76. package/dist/.pikku/addon/scenarios/schemas/register.gen.js +1 -1
  77. package/dist/.pikku/addon/schemas/register.gen.js +15 -1
  78. package/dist/.pikku/addon/schemas/register.gen.js.map +1 -1
  79. package/dist/.pikku/addon/schemas/schemas/TriggerSourceForgetInput.schema.json +1 -0
  80. package/dist/.pikku/addon/schemas/schemas/TriggerSourceForgetOutput.schema.json +1 -0
  81. package/dist/.pikku/addon/schemas/schemas/TriggerSourceListOutput.schema.json +1 -0
  82. package/dist/.pikku/addon/schemas/schemas/TriggerSourceReconcileInput.schema.json +1 -0
  83. package/dist/.pikku/addon/schemas/schemas/TriggerSourceReconcileOutput.schema.json +1 -0
  84. package/dist/.pikku/addon/schemas/schemas/TriggerSourceTeardownInput.schema.json +1 -0
  85. package/dist/.pikku/addon/schemas/schemas/TriggerSourceTeardownOutput.schema.json +1 -0
  86. package/dist/.pikku/addon/scopes/index.d.ts +1 -1
  87. package/dist/.pikku/addon/scopes/index.js +1 -1
  88. package/dist/.pikku/addon/scopes/pikku-flags.gen.d.ts +1 -1
  89. package/dist/.pikku/addon/scopes/pikku-personas.gen.js +1 -1
  90. package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts +1 -1
  91. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +1 -1
  92. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js +1 -1
  93. package/dist/.pikku/addon/scopes/pikku-scopes-meta.gen.json +11 -0
  94. package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts +2 -2
  95. package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts.map +1 -1
  96. package/dist/.pikku/addon/scopes/pikku-scopes.gen.js.map +1 -1
  97. package/dist/.pikku/addon/secrets/index.d.ts +1 -1
  98. package/dist/.pikku/addon/secrets/index.js +1 -1
  99. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts +1 -1
  100. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js +1 -1
  101. package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts +1 -1
  102. package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +1 -1
  103. package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts +1 -1
  104. package/dist/.pikku/addon/services/pikku-meta-service.gen.js +1 -1
  105. package/dist/.pikku/addon/setup/index.d.ts +1 -1
  106. package/dist/.pikku/addon/setup/index.js +1 -1
  107. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts +1 -1
  108. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js +1 -1
  109. package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +1 -1
  110. package/dist/.pikku/addon/setup/pikku-setup-types.gen.js +1 -1
  111. package/dist/.pikku/addon/trigger/index.d.ts +1 -1
  112. package/dist/.pikku/addon/trigger/index.js +1 -1
  113. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts +1 -1
  114. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +1 -1
  115. package/dist/.pikku/addon/variables/index.d.ts +1 -1
  116. package/dist/.pikku/addon/variables/index.js +1 -1
  117. package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts +1 -1
  118. package/dist/.pikku/addon/variables/pikku-variable-types.gen.js +1 -1
  119. package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts +1 -1
  120. package/dist/.pikku/addon/variables/pikku-variables.gen.js +1 -1
  121. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks-meta.gen.json +1 -0
  122. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.d.ts +12 -0
  123. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.d.ts.map +1 -0
  124. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.js +3 -0
  125. package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.js.map +1 -0
  126. package/dist/.pikku/addon/workflow/index.d.ts +1 -1
  127. package/dist/.pikku/addon/workflow/index.js +1 -1
  128. package/dist/.pikku/addon/workflow/pikku-scenario-step-map.gen.d.ts +1 -1
  129. package/dist/.pikku/addon/workflow/pikku-workflow-map.gen.d.ts +1 -1
  130. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts +1 -1
  131. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js +1 -1
  132. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  133. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  134. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js +1 -1
  135. package/dist/src/functions/trigger-source-forget.function.d.ts +14 -0
  136. package/dist/src/functions/trigger-source-forget.function.d.ts.map +1 -0
  137. package/dist/src/functions/trigger-source-forget.function.js +13 -0
  138. package/dist/src/functions/trigger-source-forget.function.js.map +1 -0
  139. package/dist/src/functions/trigger-source-list.function.d.ts +9 -0
  140. package/dist/src/functions/trigger-source-list.function.d.ts.map +1 -0
  141. package/dist/src/functions/trigger-source-list.function.js +12 -0
  142. package/dist/src/functions/trigger-source-list.function.js.map +1 -0
  143. package/dist/src/functions/trigger-source-reconcile.function.d.ts +18 -0
  144. package/dist/src/functions/trigger-source-reconcile.function.d.ts.map +1 -0
  145. package/dist/src/functions/trigger-source-reconcile.function.js +12 -0
  146. package/dist/src/functions/trigger-source-reconcile.function.js.map +1 -0
  147. package/dist/src/functions/trigger-source-teardown.function.d.ts +21 -0
  148. package/dist/src/functions/trigger-source-teardown.function.d.ts.map +1 -0
  149. package/dist/src/functions/trigger-source-teardown.function.js +12 -0
  150. package/dist/src/functions/trigger-source-teardown.function.js.map +1 -0
  151. package/dist/src/lib/require-trigger-source-store.d.ts +3 -0
  152. package/dist/src/lib/require-trigger-source-store.d.ts.map +1 -0
  153. package/dist/src/lib/require-trigger-source-store.js +7 -0
  154. package/dist/src/lib/require-trigger-source-store.js.map +1 -0
  155. package/dist/src/scopes.js +11 -0
  156. package/dist/src/scopes.js.map +1 -1
  157. package/dist/src/services.d.ts.map +1 -1
  158. package/dist/src/services.js +2 -1
  159. package/dist/src/services.js.map +1 -1
  160. package/package.json +5 -5
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/agent` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/agent` resolves here.
@@ -1,4 +1,4 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  export type AgentMap = {}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  import { CoreAgent } from '@pikku/core/agent';
5
5
  import { pikkuAgentScorer as corePikkuAgentScorer, pikkuAgentJudge as corePikkuAgentJudge } from '@pikku/core/agent-scorer';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/state';
5
5
  pikkuState('@pikku/addon-admin', 'agent', 'modelAliases', {});
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  /**
5
5
  * The AI scorers declared in this project.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/analytics` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/analytics` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  export { defineAnalyticsEvents, LoggerAnalyticsService, flattenAnalyticsEvent } from '@pikku/core/analytics';
5
5
  export type { AnalyticsClientContext, AnalyticsEventBase, AnalyticsEventDefinitions, AnalyticsEventPropsSchema, AnalyticsIdentity, AnalyticsLog, AnalyticsRecord, AnalyticsService, } from '@pikku/core/analytics';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  export { defineAnalyticsEvents, LoggerAnalyticsService, flattenAnalyticsEvent } from '@pikku/core/analytics';
5
5
  //# sourceMappingURL=pikku-analytics-types.gen.js.map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/auth` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/auth` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  /**
5
5
  * Permission, auth gate and credential definitions
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  /**
5
5
  * Permission, auth gate and credential definitions
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/channel` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/channel` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
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.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  /**
5
5
  * Channel-specific type definitions for tree-shaking optimization
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.171
3
+ */
4
+ /**
5
+ * Subpath entry — `#pikku/cli` resolves here.
6
+ */
7
+ export * from './pikku-cli-types.gen.js';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/cli/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,0BAA0B,CAAA"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.171
3
+ */
4
+ /**
5
+ * Subpath entry — `#pikku/cli` resolves here.
6
+ */
7
+ export * from './pikku-cli-types.gen.js';
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../.pikku/addon/cli/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,cAAc,0BAA0B,CAAA"}
@@ -0,0 +1,62 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.171
3
+ */
4
+ /**
5
+
6
+ * CLI-specific type definitions for tree-shaking optimization
7
+ */
8
+ import { CorePikkuCLIRender, CoreCLICommandConfig } from '@pikku/core/cli';
9
+ import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
10
+ import type { PikkuMiddleware } from '../middleware/pikku-middleware-types.gen.js';
11
+ import type { UserSession } from '../../../types/application-types.d.js';
12
+ import type { SingletonServices } from '../../../types/application-types.d.js';
13
+ type Session = UserSession;
14
+ /**
15
+ * Type-safe CLI renderer definition that can access your application's services.
16
+ * Use this to define custom renderers for CLI command output.
17
+ *
18
+ * @template Data - The output data type from the CLI command
19
+ * @template RequiredServices - The services required for this renderer
20
+ */
21
+ type PikkuCLIRender<Data, RequiredServices extends SingletonServices = SingletonServices> = CorePikkuCLIRender<Data, RequiredServices, Session>;
22
+ /**
23
+ * Creates a type-safe CLI renderer with access to your application's singleton services.
24
+ * The renderer receives the full singleton services and output data to format and display results.
25
+ *
26
+ * @template Data - The output data type from the CLI command
27
+ * @template RequiredServices - The minimum services required for type checking (defaults to SingletonServices)
28
+ * @param render - Function that receives singleton services and data to render output
29
+ * @returns A CLI renderer configuration
30
+ *
31
+ * @example snippet: cliRenderer
32
+ */
33
+ export declare const pikkuCLIRender: <Data, RequiredServices extends SingletonServices = SingletonServices>(render: (services: SingletonServices, data: Data) => void | Promise<void>) => PikkuCLIRender<Data, RequiredServices>;
34
+ /**
35
+ * CLI command configuration with project-specific types.
36
+ * Uses CoreCLICommandConfig from @pikku/core with local middleware and render types.
37
+ */
38
+ type CLICommandConfig<Func extends PikkuFunctionConfig<In, Out, 'cli' | 'rpc' | 'session'>, In = any, Out = any, Params extends string = string> = CoreCLICommandConfig<Func, PikkuMiddleware, PikkuCLIRender<any>, Params>;
39
+ /**
40
+ * Creates a CLI command definition with automatic option inference from the function's input type.
41
+ * This allows TypeScript to automatically derive CLI options from the function signature.
42
+ *
43
+ * @template FuncConfig - The Pikku function config type
44
+ * @template Params - The parameters string literal type
45
+ * @param config - CLI command configuration
46
+ * @returns CLI command configuration with inferred types
47
+ *
48
+ * @example snippet: cliWiring
49
+ */
50
+ export declare const pikkuCLICommand: <FuncConfig extends PikkuFunctionConfig<any, any, 'cli' | 'rpc' | 'session'>, Params extends string>(config: CLICommandConfig<FuncConfig, any, any, Params>) => CoreCLICommandConfig<FuncConfig, PikkuMiddleware, PikkuCLIRender<any>, string>;
51
+ /**
52
+ * Type-safe helper for defining CLI commands that can be composed and spread into wireCLI.
53
+ *
54
+ * @template T - Record of CLI command configurations
55
+ * @param commands - The CLI commands record
56
+ * @returns The same commands record (identity function for type safety)
57
+ *
58
+ * @example snippet: cliCommandContract
59
+ */
60
+ export declare const defineCLICommands: <T extends Record<string, CoreCLICommandConfig<any, PikkuMiddleware, PikkuCLIRender<any>, any>>>(commands: T) => T;
61
+ export {};
62
+ //# sourceMappingURL=pikku-cli-types.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-cli-types.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/cli/pikku-cli-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;GAGG;AAGH,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAA;AAClF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAA;AACxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAA;AAG9E,KAAK,OAAO,GAAG,WAAW,CAAA;AAE1B;;;;;;GAMG;AACH,KAAK,cAAc,CAAC,IAAI,EAAE,gBAAgB,SAAS,iBAAiB,GAAG,iBAAiB,IAAI,kBAAkB,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAA;AAE/I;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,GAAI,IAAI,EAAE,gBAAgB,SAAS,iBAAiB,GAAG,iBAAiB,UACzF,CAAC,QAAQ,EAAE,iBAAiB,EAAE,IAAI,EAAE,IAAI,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KACxE,cAAc,CAAC,IAAI,EAAE,gBAAgB,CAEvC,CAAA;AAED;;;GAGG;AACH,KAAK,gBAAgB,CAAC,IAAI,SAAS,mBAAmB,CAAC,EAAE,EAAE,GAAG,EAAE,KAAK,GAAG,KAAK,GAAG,SAAS,CAAC,EAAE,EAAE,GAAG,GAAG,EAAE,GAAG,GAAG,GAAG,EAAE,MAAM,SAAS,MAAM,GAAG,MAAM,IAAI,oBAAoB,CAAC,IAAI,EAAE,eAAe,EAAE,cAAc,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAAA;AAG3N;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,GAC1B,UAAU,SAAS,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,GAAG,KAAK,GAAG,SAAS,CAAC,EAC3E,MAAM,SAAS,MAAM,UAEb,gBAAgB,CAAC,UAAU,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,KACrD,oBAAoB,CAAC,UAAU,EAAE,eAAe,EAAE,cAAc,CAAC,GAAG,CAAC,EAAE,MAAM,CAE/E,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,GAAG,EAAE,eAAe,EAAE,cAAc,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,YACpH,CAAC,KACV,CAEF,CAAA"}
@@ -0,0 +1,49 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.171
3
+ */
4
+ /**
5
+
6
+ * CLI-specific type definitions for tree-shaking optimization
7
+ */
8
+ import { defineCLICommands as defineCLICommandsCore } from '@pikku/core/cli';
9
+ /**
10
+ * Creates a type-safe CLI renderer with access to your application's singleton services.
11
+ * The renderer receives the full singleton services and output data to format and display results.
12
+ *
13
+ * @template Data - The output data type from the CLI command
14
+ * @template RequiredServices - The minimum services required for type checking (defaults to SingletonServices)
15
+ * @param render - Function that receives singleton services and data to render output
16
+ * @returns A CLI renderer configuration
17
+ *
18
+ * @example snippet: cliRenderer
19
+ */
20
+ export const pikkuCLIRender = (render) => {
21
+ return render;
22
+ };
23
+ /**
24
+ * Creates a CLI command definition with automatic option inference from the function's input type.
25
+ * This allows TypeScript to automatically derive CLI options from the function signature.
26
+ *
27
+ * @template FuncConfig - The Pikku function config type
28
+ * @template Params - The parameters string literal type
29
+ * @param config - CLI command configuration
30
+ * @returns CLI command configuration with inferred types
31
+ *
32
+ * @example snippet: cliWiring
33
+ */
34
+ export const pikkuCLICommand = (config) => {
35
+ return config;
36
+ };
37
+ /**
38
+ * Type-safe helper for defining CLI commands that can be composed and spread into wireCLI.
39
+ *
40
+ * @template T - Record of CLI command configurations
41
+ * @param commands - The CLI commands record
42
+ * @returns The same commands record (identity function for type safety)
43
+ *
44
+ * @example snippet: cliCommandContract
45
+ */
46
+ export const defineCLICommands = (commands) => {
47
+ return defineCLICommandsCore(commands);
48
+ };
49
+ //# sourceMappingURL=pikku-cli-types.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-cli-types.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/cli/pikku-cli-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAsB5E;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,MAAyE,EACjC,EAAE;IAC1C,OAAO,MAAa,CAAA;AACtB,CAAC,CAAA;AASD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAI7B,MAAsD,EAC0B,EAAE;IAClF,OAAO,MAAa,CAAA;AACtB,CAAC,CAAA;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,QAAW,EACR,EAAE;IACL,OAAO,qBAAqB,CAAC,QAAe,CAAM,CAAA;AACpD,CAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/error` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/error` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  /**
5
5
  * Error catalogue — `#pikku/error` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  /**
5
5
  * Error catalogue — `#pikku/error` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/function` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/function` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  /**
5
5
  * Core function types for all wirings
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.162
2
+ * This file was generated by @pikku/cli@0.12.171
3
3
  */
4
4
  /**
5
5
  * Core function types for all wirings