@pikku/addon-console 0.12.8 → 0.12.10
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/pikku-addon-types.gen.d.ts +2 -2
- package/dist/.pikku/addon/pikku-addon-types.gen.js +2 -2
- package/dist/.pikku/addon/pikku-package.gen.js +1 -1
- package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +43 -69
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.js +33 -40
- package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +171 -12
- package/dist/.pikku/function/pikku-functions.gen.js +13 -1
- package/dist/.pikku/function/pikku-functions.gen.js.map +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
- package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
- package/dist/.pikku/pikku-meta-service.gen.js +1 -1
- package/dist/.pikku/pikku-services.gen.d.ts +8 -2
- package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
- package/dist/.pikku/pikku-services.gen.js +6 -0
- package/dist/.pikku/pikku-services.gen.js.map +1 -1
- package/dist/.pikku/pikku-types.gen.d.ts +1 -1
- package/dist/.pikku/pikku-types.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +26 -6
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +26 -6
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +6 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
- package/dist/.pikku/schemas/register.gen.js +15 -1
- package/dist/.pikku/schemas/register.gen.js.map +1 -1
- package/dist/.pikku/schemas/schemas/AddonPackageInfo.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/AllMeta.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/AuthProvidersMeta.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/DbSchema.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FunctionCoverageReport.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/GetAddonMetaOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/GetAgentThreadsInput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/GetFunctionsMetaOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/GetStateDiffInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RenderEmailPreviewInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RenderEmailPreviewOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/StateDiff.schema.json +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/src/functions/delete-agent-thread.function.d.ts.map +1 -1
- package/dist/src/functions/delete-agent-thread.function.js.map +1 -1
- package/dist/src/functions/delete-workflow-run.function.d.ts.map +1 -1
- package/dist/src/functions/delete-workflow-run.function.js.map +1 -1
- package/dist/src/functions/get-agent-thread-messages.function.d.ts.map +1 -1
- package/dist/src/functions/get-agent-thread-messages.function.js.map +1 -1
- package/dist/src/functions/get-agent-thread-runs.function.d.ts.map +1 -1
- package/dist/src/functions/get-agent-thread-runs.function.js.map +1 -1
- package/dist/src/functions/get-agent-threads.function.d.ts +3 -0
- package/dist/src/functions/get-agent-threads.function.d.ts.map +1 -1
- package/dist/src/functions/get-agent-threads.function.js +2 -1
- package/dist/src/functions/get-agent-threads.function.js.map +1 -1
- package/dist/src/functions/get-ai-workflows.function.d.ts.map +1 -1
- package/dist/src/functions/get-ai-workflows.function.js.map +1 -1
- package/dist/src/functions/get-auth-providers.function.d.ts +11 -0
- package/dist/src/functions/get-auth-providers.function.d.ts.map +1 -0
- package/dist/src/functions/get-auth-providers.function.js +28 -0
- package/dist/src/functions/get-auth-providers.function.js.map +1 -0
- package/dist/src/functions/get-db-schema.function.d.ts +3 -0
- package/dist/src/functions/get-db-schema.function.d.ts.map +1 -0
- package/dist/src/functions/get-db-schema.function.js +15 -0
- package/dist/src/functions/get-db-schema.function.js.map +1 -0
- package/dist/src/functions/get-function-coverage.function.d.ts +26 -0
- package/dist/src/functions/get-function-coverage.function.d.ts.map +1 -0
- package/dist/src/functions/get-function-coverage.function.js +22 -0
- package/dist/src/functions/get-function-coverage.function.js.map +1 -0
- package/dist/src/functions/get-functions-meta.function.d.ts +10 -1
- package/dist/src/functions/get-functions-meta.function.d.ts.map +1 -1
- package/dist/src/functions/get-functions-meta.function.js +14 -8
- package/dist/src/functions/get-functions-meta.function.js.map +1 -1
- package/dist/src/functions/get-state-diff.function.d.ts +12 -0
- package/dist/src/functions/get-state-diff.function.d.ts.map +1 -0
- package/dist/src/functions/get-state-diff.function.js +13 -0
- package/dist/src/functions/get-state-diff.function.js.map +1 -0
- package/dist/src/functions/get-workflow-run-history.function.d.ts.map +1 -1
- package/dist/src/functions/get-workflow-run-history.function.js.map +1 -1
- package/dist/src/functions/get-workflow-run-names.function.d.ts.map +1 -1
- package/dist/src/functions/get-workflow-run-names.function.js.map +1 -1
- package/dist/src/functions/get-workflow-run-steps.function.d.ts.map +1 -1
- package/dist/src/functions/get-workflow-run-steps.function.js.map +1 -1
- package/dist/src/functions/get-workflow-run.function.d.ts.map +1 -1
- package/dist/src/functions/get-workflow-run.function.js.map +1 -1
- package/dist/src/functions/get-workflow-runs.function.d.ts.map +1 -1
- package/dist/src/functions/get-workflow-runs.function.js.map +1 -1
- package/dist/src/functions/get-workflow-version.function.d.ts.map +1 -1
- package/dist/src/functions/get-workflow-version.function.js.map +1 -1
- package/dist/src/functions/oauth-exchange-tokens.function.js +1 -1
- package/dist/src/functions/oauth-exchange-tokens.function.js.map +1 -1
- package/dist/src/functions/oauth-status.function.js +1 -1
- package/dist/src/functions/oauth-status.function.js.map +1 -1
- package/dist/src/functions/read-agent-source.function.d.ts.map +1 -1
- package/dist/src/functions/read-agent-source.function.js.map +1 -1
- package/dist/src/functions/read-function-body.function.d.ts.map +1 -1
- package/dist/src/functions/read-function-body.function.js.map +1 -1
- package/dist/src/functions/read-function-source.function.d.ts.map +1 -1
- package/dist/src/functions/read-function-source.function.js.map +1 -1
- package/dist/src/functions/render-email-preview.function.d.ts +20 -0
- package/dist/src/functions/render-email-preview.function.d.ts.map +1 -0
- package/dist/src/functions/render-email-preview.function.js +68 -0
- package/dist/src/functions/render-email-preview.function.js.map +1 -0
- package/dist/src/functions/render-email-preview.function.test.d.ts +2 -0
- package/dist/src/functions/render-email-preview.function.test.d.ts.map +1 -0
- package/dist/src/functions/render-email-preview.function.test.js +125 -0
- package/dist/src/functions/render-email-preview.function.test.js.map +1 -0
- package/dist/src/functions/render-email-template.utils.d.ts +5 -0
- package/dist/src/functions/render-email-template.utils.d.ts.map +1 -0
- package/dist/src/functions/render-email-template.utils.js +40 -0
- package/dist/src/functions/render-email-template.utils.js.map +1 -0
- package/dist/src/functions/render-email-template.utils.test.d.ts +2 -0
- package/dist/src/functions/render-email-template.utils.test.d.ts.map +1 -0
- package/dist/src/functions/render-email-template.utils.test.js +65 -0
- package/dist/src/functions/render-email-template.utils.test.js.map +1 -0
- package/dist/src/functions/run-function-tests.function.d.ts +3 -0
- package/dist/src/functions/run-function-tests.function.d.ts.map +1 -0
- package/dist/src/functions/run-function-tests.function.js +64 -0
- package/dist/src/functions/run-function-tests.function.js.map +1 -0
- package/dist/src/functions/update-agent-config.function.d.ts.map +1 -1
- package/dist/src/functions/update-agent-config.function.js.map +1 -1
- package/dist/src/functions/update-function-body.function.d.ts.map +1 -1
- package/dist/src/functions/update-function-body.function.js.map +1 -1
- package/dist/src/functions/update-function-config.function.d.ts.map +1 -1
- package/dist/src/functions/update-function-config.function.js.map +1 -1
- package/dist/src/services/db-schema.service.d.ts +59 -0
- package/dist/src/services/db-schema.service.d.ts.map +1 -0
- package/dist/src/services/db-schema.service.js +265 -0
- package/dist/src/services/db-schema.service.js.map +1 -0
- package/dist/src/services/state-diff.service.d.ts +76 -0
- package/dist/src/services/state-diff.service.d.ts.map +1 -0
- package/dist/src/services/state-diff.service.js +148 -0
- package/dist/src/services/state-diff.service.js.map +1 -0
- package/dist/src/services/wiring.service.d.ts +22 -3
- package/dist/src/services/wiring.service.d.ts.map +1 -1
- package/dist/src/services/wiring.service.js +276 -11
- package/dist/src/services/wiring.service.js.map +1 -1
- package/dist/src/services/wiring.service.test.d.ts +2 -0
- package/dist/src/services/wiring.service.test.d.ts.map +1 -0
- package/dist/src/services/wiring.service.test.js +70 -0
- package/dist/src/services/wiring.service.test.js.map +1 -0
- package/dist/src/services.d.ts.map +1 -1
- package/dist/src/services.js +29 -1
- package/dist/src/services.js.map +1 -1
- package/dist/src/tests/test-oauth2-client.js +11 -12
- package/dist/src/tests/test-oauth2-client.js.map +1 -1
- package/package.json +15 -5
- package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +0 -78
- package/dist/.pikku/cli/pikku-cli-types.gen.d.ts.map +0 -1
- package/dist/.pikku/cli/pikku-cli-types.gen.js +0 -61
- package/dist/.pikku/cli/pikku-cli-types.gen.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pikku/addon-console",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#pikku": {
|
|
7
7
|
"types": "./.pikku/pikku-types.gen.ts",
|
|
8
|
-
"import": "./dist/.pikku/pikku-types.gen.js"
|
|
8
|
+
"import": "./dist/.pikku/pikku-types.gen.js",
|
|
9
|
+
"default": "./dist/.pikku/pikku-types.gen.js"
|
|
9
10
|
}
|
|
10
11
|
},
|
|
11
12
|
"exports": {
|
|
@@ -14,6 +15,14 @@
|
|
|
14
15
|
"./.pikku/pikku-metadata.gen.json": "./dist/.pikku/pikku-metadata.gen.json",
|
|
15
16
|
"./.pikku/rpc/pikku-rpc-wirings-map.internal.gen.js": {
|
|
16
17
|
"types": "./dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./services": {
|
|
20
|
+
"types": "./dist/src/services/wiring.service.d.ts",
|
|
21
|
+
"import": "./dist/src/services/wiring.service.js"
|
|
22
|
+
},
|
|
23
|
+
"./channels": {
|
|
24
|
+
"types": "./dist/src/channels.d.ts",
|
|
25
|
+
"import": "./dist/src/channels.js"
|
|
17
26
|
}
|
|
18
27
|
},
|
|
19
28
|
"files": [
|
|
@@ -24,14 +33,15 @@
|
|
|
24
33
|
"pikku": "pikku all",
|
|
25
34
|
"pretest": "pikku all",
|
|
26
35
|
"test": "tsc --noEmit",
|
|
36
|
+
"test:coverage": "bash run-tests.sh --coverage",
|
|
27
37
|
"prepublishOnly": "yarn build"
|
|
28
38
|
},
|
|
29
39
|
"peerDependencies": {
|
|
30
|
-
"@pikku/core": "^0.12.
|
|
40
|
+
"@pikku/core": "^0.12.27"
|
|
31
41
|
},
|
|
32
42
|
"devDependencies": {
|
|
33
|
-
"@pikku/cli": "^0.12.
|
|
34
|
-
"@pikku/core": "^0.12.
|
|
43
|
+
"@pikku/cli": "^0.12.28",
|
|
44
|
+
"@pikku/core": "^0.12.27",
|
|
35
45
|
"oauth2-mock-server": "^7.1.1",
|
|
36
46
|
"typescript": "^5.9"
|
|
37
47
|
},
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.19
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
-
* CLI-specific type definitions for tree-shaking optimization
|
|
7
|
-
*/
|
|
8
|
-
import { CoreCLI, CorePikkuCLIRender, CoreCLICommandConfig } from '@pikku/core/cli';
|
|
9
|
-
import type { PikkuFunctionConfig, PikkuMiddleware } from '../function/pikku-function-types.gen.js';
|
|
10
|
-
import type { UserSession } from '../../types/application-types.d.js';
|
|
11
|
-
import type { SingletonServices } from '../../types/application-types.d.js';
|
|
12
|
-
type Session = UserSession;
|
|
13
|
-
/**
|
|
14
|
-
* Type-safe CLI renderer definition that can access your application's services.
|
|
15
|
-
* Use this to define custom renderers for CLI command output.
|
|
16
|
-
*
|
|
17
|
-
* @template Data - The output data type from the CLI command
|
|
18
|
-
* @template RequiredServices - The services required for this renderer
|
|
19
|
-
*/
|
|
20
|
-
type PikkuCLIRender<Data, RequiredServices extends SingletonServices = SingletonServices> = CorePikkuCLIRender<Data, RequiredServices, Session>;
|
|
21
|
-
/**
|
|
22
|
-
* Creates a type-safe CLI renderer with access to your application's singleton services.
|
|
23
|
-
* The renderer receives the full singleton services and output data to format and display results.
|
|
24
|
-
*
|
|
25
|
-
* @template Data - The output data type from the CLI command
|
|
26
|
-
* @template RequiredServices - The minimum services required for type checking (defaults to SingletonServices)
|
|
27
|
-
* @param render - Function that receives singleton services and data to render output
|
|
28
|
-
* @returns A CLI renderer configuration
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```typescript
|
|
32
|
-
* const myRenderer = pikkuCLIRender<MyData>(({ logger }, data) => {
|
|
33
|
-
* logger.info(data.message)
|
|
34
|
-
* })
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
export declare const pikkuCLIRender: <Data, RequiredServices extends SingletonServices = SingletonServices>(render: (services: SingletonServices, data: Data) => void | Promise<void>) => PikkuCLIRender<Data, RequiredServices>;
|
|
38
|
-
/**
|
|
39
|
-
* CLI command configuration with project-specific types.
|
|
40
|
-
* Uses CoreCLICommandConfig from @pikku/core with local middleware and render types.
|
|
41
|
-
*/
|
|
42
|
-
type CLICommandConfig<Func extends PikkuFunctionConfig<In, Out, 'cli' | 'rpc' | 'session'>, In = any, Out = any, Params extends string = string> = CoreCLICommandConfig<Func, PikkuMiddleware, PikkuCLIRender<any>, Params>;
|
|
43
|
-
/**
|
|
44
|
-
* Type definition for CLI applications with commands and global options.
|
|
45
|
-
*
|
|
46
|
-
* @template Commands - Type describing the command structure
|
|
47
|
-
* @template GlobalOptions - Type for global CLI options
|
|
48
|
-
*/
|
|
49
|
-
type CLIWiring<Commands extends Record<string, CoreCLICommandConfig<any, PikkuMiddleware, PikkuCLIRender<any>, any>>, GlobalOptions> = CoreCLI<Commands, GlobalOptions, PikkuMiddleware, PikkuCLIRender<any>>;
|
|
50
|
-
/**
|
|
51
|
-
* Registers a CLI application with the Pikku framework.
|
|
52
|
-
* Creates command-line interfaces with type-safe commands and options.
|
|
53
|
-
*
|
|
54
|
-
* @template Commands - Type describing the command structure
|
|
55
|
-
* @template GlobalOptions - Type for global CLI options
|
|
56
|
-
* @param cli - CLI definition with program name, commands, and global options
|
|
57
|
-
*/
|
|
58
|
-
export declare const wireCLI: <Commands extends Record<string, CoreCLICommandConfig<any, PikkuMiddleware, PikkuCLIRender<any>, any>>, GlobalOptions>(cli: CLIWiring<Commands, GlobalOptions>) => void;
|
|
59
|
-
/**
|
|
60
|
-
* Creates a CLI command definition with automatic option inference from the function's input type.
|
|
61
|
-
* This allows TypeScript to automatically derive CLI options from the function signature.
|
|
62
|
-
*
|
|
63
|
-
* @template FuncConfig - The Pikku function config type
|
|
64
|
-
* @template Params - The parameters string literal type
|
|
65
|
-
* @param config - CLI command configuration
|
|
66
|
-
* @returns CLI command configuration with inferred types
|
|
67
|
-
*/
|
|
68
|
-
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>;
|
|
69
|
-
/**
|
|
70
|
-
* Type-safe helper for defining CLI commands that can be composed and spread into wireCLI.
|
|
71
|
-
*
|
|
72
|
-
* @template T - Record of CLI command configurations
|
|
73
|
-
* @param commands - The CLI commands record
|
|
74
|
-
* @returns The same commands record (identity function for type safety)
|
|
75
|
-
*/
|
|
76
|
-
export declare const defineCLICommands: <T extends Record<string, CoreCLICommandConfig<any, PikkuMiddleware, PikkuCLIRender<any>, any>>>(commands: T) => T;
|
|
77
|
-
export {};
|
|
78
|
-
//# sourceMappingURL=pikku-cli-types.gen.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-cli-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/cli/pikku-cli-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAA0B,kBAAkB,EAAE,oBAAoB,EAA8C,MAAM,iBAAiB,CAAA;AACvJ,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AACnG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAA;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAA;AAG3E,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;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,cAAc,GAAI,IAAI,EAAE,gBAAgB,SAAS,iBAAiB,GAAG,iBAAiB,EACjG,QAAQ,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;AAE3N;;;;;GAKG;AACH,KAAK,SAAS,CAAC,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,GAAG,EAAE,eAAe,EAAE,cAAc,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,aAAa,IAAI,OAAO,CAAC,QAAQ,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC,CAAA;AAE7M;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO,GAAI,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,GAAG,EAAE,eAAe,EAAE,cAAc,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,aAAa,EAC1I,KAAK,SAAS,CAAC,QAAQ,EAAE,aAAa,CAAC,SAGxC,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,GAC1B,UAAU,SAAS,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,GAAG,KAAK,GAAG,SAAS,CAAC,EAC3E,MAAM,SAAS,MAAM,EAErB,QAAQ,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;;;;;;GAMG;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,EAC9H,UAAU,CAAC,KACV,CAEF,CAAA"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.19
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
-
* CLI-specific type definitions for tree-shaking optimization
|
|
7
|
-
*/
|
|
8
|
-
import { wireCLI as wireCLICore, 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
|
|
19
|
-
* ```typescript
|
|
20
|
-
* const myRenderer = pikkuCLIRender<MyData>(({ logger }, data) => {
|
|
21
|
-
* logger.info(data.message)
|
|
22
|
-
* })
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export const pikkuCLIRender = (render) => {
|
|
26
|
-
return render;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Registers a CLI application with the Pikku framework.
|
|
30
|
-
* Creates command-line interfaces with type-safe commands and options.
|
|
31
|
-
*
|
|
32
|
-
* @template Commands - Type describing the command structure
|
|
33
|
-
* @template GlobalOptions - Type for global CLI options
|
|
34
|
-
* @param cli - CLI definition with program name, commands, and global options
|
|
35
|
-
*/
|
|
36
|
-
export const wireCLI = (cli) => {
|
|
37
|
-
wireCLICore(cli);
|
|
38
|
-
};
|
|
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
|
-
export const pikkuCLICommand = (config) => {
|
|
49
|
-
return config;
|
|
50
|
-
};
|
|
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
|
-
export const defineCLICommands = (commands) => {
|
|
59
|
-
return defineCLICommandsCore(commands);
|
|
60
|
-
};
|
|
61
|
-
//# sourceMappingURL=pikku-cli-types.gen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pikku-cli-types.gen.js","sourceRoot":"","sources":["../../../.pikku/cli/pikku-cli-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;GAGG;AAEH,OAAO,EAAW,OAAO,IAAI,WAAW,EAA4C,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAiBvJ;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,MAAyE,EACjC,EAAE;IAC1C,OAAO,MAAa,CAAA;AACtB,CAAC,CAAA;AAgBD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CACrB,GAAuC,EACvC,EAAE;IACF,WAAW,CAAC,GAAU,CAAC,CAAA;AACzB,CAAC,CAAA;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAI7B,MAAsD,EAC0B,EAAE;IAClF,OAAO,MAAa,CAAA;AACtB,CAAC,CAAA;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,QAAW,EACR,EAAE;IACL,OAAO,qBAAqB,CAAC,QAAe,CAAM,CAAA;AACpD,CAAC,CAAA"}
|