@pikku/addon-admin 0.12.7 → 0.12.9
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.
- package/dist/.pikku/addon/agent/index.d.ts +1 -1
- package/dist/.pikku/addon/agent/index.js +1 -1
- package/dist/.pikku/addon/agent/pikku-agent-map.gen.d.ts +1 -1
- package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +1 -1
- package/dist/.pikku/addon/agent/pikku-scorer-names.gen.d.ts +1 -1
- package/dist/.pikku/addon/analytics/index.d.ts +1 -1
- package/dist/.pikku/addon/analytics/index.js +1 -1
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/analytics/pikku-analytics-types.gen.js +1 -1
- package/dist/.pikku/addon/auth/index.d.ts +1 -1
- package/dist/.pikku/addon/auth/index.js +1 -1
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/auth/pikku-auth-types.gen.js +1 -1
- package/dist/.pikku/addon/channel/index.d.ts +1 -1
- package/dist/.pikku/addon/channel/index.js +1 -1
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/channel/pikku-channel-types.gen.js +1 -1
- package/dist/.pikku/addon/cli/index.d.ts +8 -0
- package/dist/.pikku/addon/cli/index.d.ts.map +1 -0
- package/dist/.pikku/addon/cli/index.js +8 -0
- package/dist/.pikku/addon/cli/index.js.map +1 -0
- package/dist/.pikku/addon/cli/pikku-cli-types.gen.d.ts +62 -0
- package/dist/.pikku/addon/cli/pikku-cli-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/cli/pikku-cli-types.gen.js +49 -0
- package/dist/.pikku/addon/cli/pikku-cli-types.gen.js.map +1 -0
- package/dist/.pikku/addon/error/index.d.ts +1 -1
- package/dist/.pikku/addon/error/index.js +1 -1
- package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/error/pikku-error-types.gen.js +1 -1
- package/dist/.pikku/addon/function/index.d.ts +1 -1
- package/dist/.pikku/addon/function/index.js +1 -1
- package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/function/pikku-function-types.gen.js +1 -1
- package/dist/.pikku/addon/function/pikku-functions-meta-verbose.gen.json +212 -36
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/addon/function/pikku-functions-meta.gen.json +149 -1
- package/dist/.pikku/addon/function/pikku-functions.gen.js +9 -1
- package/dist/.pikku/addon/function/pikku-functions.gen.js.map +1 -1
- package/dist/.pikku/addon/http/index.d.ts +1 -1
- package/dist/.pikku/addon/http/index.js +1 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/http/pikku-http-types.gen.js +1 -1
- package/dist/.pikku/addon/mcp/index.d.ts +1 -1
- package/dist/.pikku/addon/mcp/index.js +1 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js +1 -1
- package/dist/.pikku/addon/middleware/index.d.ts +1 -1
- package/dist/.pikku/addon/middleware/index.js +1 -1
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js +1 -1
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts +1 -1
- package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js +1 -1
- package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts +1 -1
- package/dist/.pikku/addon/pikku-bootstrap.gen.js +1 -1
- package/dist/.pikku/addon/pikku-package.gen.js +2 -2
- package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
- package/dist/.pikku/addon/pikku-services.gen.d.ts +5 -3
- package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/pikku-services.gen.js +3 -1
- package/dist/.pikku/addon/pikku-services.gen.js.map +1 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.gen.d.ts +15 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +15 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +11 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.json +5 -1
- package/dist/.pikku/addon/scenarios/index.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/index.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-personas.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
- package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts +1 -1
- package/dist/.pikku/addon/scenarios/schemas/register.gen.js +1 -1
- package/dist/.pikku/addon/schemas/register.gen.js +15 -1
- package/dist/.pikku/addon/schemas/register.gen.js.map +1 -1
- package/dist/.pikku/addon/schemas/schemas/TriggerSourceForgetInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/TriggerSourceForgetOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/TriggerSourceListOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/TriggerSourceReconcileInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/TriggerSourceReconcileOutput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/TriggerSourceTeardownInput.schema.json +1 -0
- package/dist/.pikku/addon/schemas/schemas/TriggerSourceTeardownOutput.schema.json +1 -0
- package/dist/.pikku/addon/scopes/index.d.ts +1 -1
- package/dist/.pikku/addon/scopes/index.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-flags.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-personas.gen.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js +1 -1
- package/dist/.pikku/addon/scopes/pikku-scopes-meta.gen.json +11 -0
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts +2 -2
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts.map +1 -1
- package/dist/.pikku/addon/scopes/pikku-scopes.gen.js.map +1 -1
- package/dist/.pikku/addon/secrets/index.d.ts +1 -1
- package/dist/.pikku/addon/secrets/index.js +1 -1
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js +1 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts +1 -1
- package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts +1 -1
- package/dist/.pikku/addon/services/pikku-meta-service.gen.js +1 -1
- package/dist/.pikku/addon/setup/index.d.ts +1 -1
- package/dist/.pikku/addon/setup/index.js +1 -1
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js +1 -1
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/setup/pikku-setup-types.gen.js +1 -1
- package/dist/.pikku/addon/trigger/index.d.ts +1 -1
- package/dist/.pikku/addon/trigger/index.js +1 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/addon/variables/index.d.ts +1 -1
- package/dist/.pikku/addon/variables/index.js +1 -1
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/variables/pikku-variable-types.gen.js +1 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts +1 -1
- package/dist/.pikku/addon/variables/pikku-variables.gen.js +1 -1
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks-meta.gen.json +1 -0
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.d.ts +12 -0
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.js +3 -0
- package/dist/.pikku/addon/webhooks/pikku-outgoing-webhooks.gen.js.map +1 -0
- package/dist/.pikku/addon/workflow/index.d.ts +1 -1
- package/dist/.pikku/addon/workflow/index.js +1 -1
- package/dist/.pikku/addon/workflow/pikku-scenario-step-map.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-map.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
- package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/src/functions/flag-list.function.d.ts.map +1 -1
- package/dist/src/functions/flag-list.function.js +2 -3
- package/dist/src/functions/flag-list.function.js.map +1 -1
- package/dist/src/functions/trigger-source-forget.function.d.ts +14 -0
- package/dist/src/functions/trigger-source-forget.function.d.ts.map +1 -0
- package/dist/src/functions/trigger-source-forget.function.js +13 -0
- package/dist/src/functions/trigger-source-forget.function.js.map +1 -0
- package/dist/src/functions/trigger-source-list.function.d.ts +9 -0
- package/dist/src/functions/trigger-source-list.function.d.ts.map +1 -0
- package/dist/src/functions/trigger-source-list.function.js +12 -0
- package/dist/src/functions/trigger-source-list.function.js.map +1 -0
- package/dist/src/functions/trigger-source-reconcile.function.d.ts +18 -0
- package/dist/src/functions/trigger-source-reconcile.function.d.ts.map +1 -0
- package/dist/src/functions/trigger-source-reconcile.function.js +12 -0
- package/dist/src/functions/trigger-source-reconcile.function.js.map +1 -0
- package/dist/src/functions/trigger-source-teardown.function.d.ts +21 -0
- package/dist/src/functions/trigger-source-teardown.function.d.ts.map +1 -0
- package/dist/src/functions/trigger-source-teardown.function.js +12 -0
- package/dist/src/functions/trigger-source-teardown.function.js.map +1 -0
- package/dist/src/lib/flag-rows.d.ts +9 -0
- package/dist/src/lib/flag-rows.d.ts.map +1 -1
- package/dist/src/lib/flag-rows.js +23 -0
- package/dist/src/lib/flag-rows.js.map +1 -1
- package/dist/src/lib/flag-rows.test.js +38 -1
- package/dist/src/lib/flag-rows.test.js.map +1 -1
- package/dist/src/lib/require-trigger-source-store.d.ts +3 -0
- package/dist/src/lib/require-trigger-source-store.d.ts.map +1 -0
- package/dist/src/lib/require-trigger-source-store.js +7 -0
- package/dist/src/lib/require-trigger-source-store.js.map +1 -0
- package/dist/src/scopes.js +11 -0
- package/dist/src/scopes.js.map +1 -1
- package/dist/src/services.d.ts.map +1 -1
- package/dist/src/services.js +2 -1
- package/dist/src/services.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.172
|
|
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.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.172
|
|
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.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.172
|
|
3
3
|
*/
|
|
4
4
|
export { defineAnalyticsEvents, LoggerAnalyticsService, flattenAnalyticsEvent } from '@pikku/core/analytics';
|
|
5
5
|
//# sourceMappingURL=pikku-analytics-types.gen.js.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 @@
|
|
|
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.172
|
|
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.172
|
|
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"}
|