@pikku/cli 0.12.3 → 0.12.6
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/console-app/assets/{index-Ci24-VT-.js → index-AX4YS8AA.js} +166 -166
- package/console-app/index.html +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
- package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js +1 -1
- package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts +1 -1
- package/dist/.pikku/agent/pikku-agent-wirings.gen.js +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/channel/pikku-channels-meta.gen.js +1 -1
- package/dist/.pikku/channel/pikku-channels.gen.d.ts +1 -1
- package/dist/.pikku/channel/pikku-channels.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-channel.js +1 -1
- package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-client.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.json +10 -1
- package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli.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 +13 -13
- package/dist/.pikku/function/pikku-function-types.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +185 -183
- package/dist/.pikku/function/pikku-functions.gen.js +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/http/pikku-http-wirings-meta.gen.js +1 -1
- package/dist/.pikku/http/pikku-http-wirings.gen.d.ts +1 -1
- package/dist/.pikku/http/pikku-http-wirings.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/mcp/pikku-mcp-wirings-meta.gen.js +1 -1
- package/dist/.pikku/mcp/pikku-mcp-wirings.gen.d.ts +1 -1
- package/dist/.pikku/mcp/pikku-mcp-wirings.gen.js +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
- package/dist/.pikku/pikku-services.gen.d.ts +1 -1
- package/dist/.pikku/pikku-types.gen.d.ts +1 -1
- package/dist/.pikku/pikku-types.gen.js +1 -1
- package/dist/.pikku/pikku-websocket.gen.d.ts +1 -1
- package/dist/.pikku/pikku-websocket.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/queue/pikku-queue-workers-wirings-meta.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-remote-rpc-workers.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +2 -2
- 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/scheduler/pikku-schedulers-wirings-meta.gen.js +1 -1
- package/dist/.pikku/scheduler/pikku-schedulers-wirings.gen.d.ts +1 -1
- package/dist/.pikku/scheduler/pikku-schedulers-wirings.gen.js +1 -1
- package/dist/.pikku/schemas/register.gen.js +13 -11
- package/dist/.pikku/schemas/schemas/ConsoleCommandInput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/WatchInput.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-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/cli.wiring.js +10 -0
- package/dist/src/functions/commands/console.d.ts +3 -0
- package/dist/src/functions/commands/console.js +12 -1
- package/dist/src/functions/commands/new-addon.js +4 -12
- package/dist/src/functions/commands/watch.d.ts +7 -1
- package/dist/src/functions/commands/watch.js +10 -3
- package/dist/src/functions/wirings/console/serialize-console-functions.js +13 -0
- package/dist/src/functions/wirings/functions/serialize-function-types.js +15 -15
- package/dist/src/utils/openapi/codegen.js +13 -27
- package/dist/src/utils/openapi/zod-codegen.d.ts +1 -1
- package/dist/src/utils/openapi/zod-codegen.js +1 -1
- package/package.json +3 -3
package/console-app/index.html
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
} catch (e) {}
|
|
27
27
|
</script>
|
|
28
|
-
<script type="module" crossorigin src="/assets/index-
|
|
28
|
+
<script type="module" crossorigin src="/assets/index-AX4YS8AA.js"></script>
|
|
29
29
|
<link rel="stylesheet" crossorigin href="/assets/index-DvrDbftC.css">
|
|
30
30
|
</head>
|
|
31
31
|
<body>
|
|
@@ -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.6
|
|
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';
|
|
@@ -41,7 +41,12 @@
|
|
|
41
41
|
"watch": {
|
|
42
42
|
"pikkuFuncId": "watch",
|
|
43
43
|
"positionals": [],
|
|
44
|
-
"options": {
|
|
44
|
+
"options": {
|
|
45
|
+
"hmr": {
|
|
46
|
+
"description": "Enable hot module reload for registered functions",
|
|
47
|
+
"default": false
|
|
48
|
+
}
|
|
49
|
+
},
|
|
45
50
|
"description": "Watch for file changes and regenerate automatically"
|
|
46
51
|
},
|
|
47
52
|
"console": {
|
|
@@ -57,6 +62,10 @@
|
|
|
57
62
|
"description": "Open the console in the browser",
|
|
58
63
|
"default": "false",
|
|
59
64
|
"short": "o"
|
|
65
|
+
},
|
|
66
|
+
"hmr": {
|
|
67
|
+
"description": "Enable hot module reload for registered functions",
|
|
68
|
+
"default": false
|
|
60
69
|
}
|
|
61
70
|
},
|
|
62
71
|
"description": "Start the Pikku Console UI with live file watching"
|
|
@@ -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.6
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Core function, middleware, and permission types for all wirings
|
|
@@ -243,19 +243,19 @@ export type PikkuFunctionConfig<In = unknown, Out = unknown, RequiredWires exten
|
|
|
243
243
|
* Use this when you want to define input/output schemas using Zod.
|
|
244
244
|
* Types are automatically inferred from the schemas.
|
|
245
245
|
*/
|
|
246
|
-
export type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never> = {
|
|
246
|
+
export type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never> = {
|
|
247
247
|
name?: string;
|
|
248
248
|
tags?: string[];
|
|
249
249
|
expose?: boolean;
|
|
250
250
|
mcp?: boolean;
|
|
251
251
|
internal?: boolean;
|
|
252
252
|
approvalRequired?: boolean;
|
|
253
|
-
approvalDescription?: PikkuApprovalDescription<InferSchemaOutput<InputSchema
|
|
254
|
-
func: PikkuFunction<InferSchemaOutput<InputSchema
|
|
253
|
+
approvalDescription?: InputSchema extends StandardSchemaV1 ? PikkuApprovalDescription<InferSchemaOutput<InputSchema>> : never;
|
|
254
|
+
func: PikkuFunction<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, RequiredWires> | PikkuFunctionSessionless<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, RequiredWires>;
|
|
255
255
|
auth?: boolean;
|
|
256
|
-
permissions?: CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema
|
|
256
|
+
permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined;
|
|
257
257
|
middleware?: PikkuMiddleware[];
|
|
258
|
-
input
|
|
258
|
+
input?: InputSchema;
|
|
259
259
|
output?: OutputSchema;
|
|
260
260
|
node?: NodeConfig;
|
|
261
261
|
errors?: Array<typeof PikkuError>;
|
|
@@ -298,12 +298,12 @@ export type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1,
|
|
|
298
298
|
* })
|
|
299
299
|
* ```
|
|
300
300
|
*/
|
|
301
|
-
export declare function pikkuFunc<InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuFunctionConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc'>): PikkuFunctionConfig<InferSchemaOutput<InputSchema
|
|
301
|
+
export declare function pikkuFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuFunctionConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc'>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>;
|
|
302
302
|
export declare function pikkuFunc<In, Out = unknown>(func: PikkuFunction<In, Out, 'session' | 'rpc'> | PikkuFunctionConfig<In, Out, 'session' | 'rpc'>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
|
|
303
303
|
/**
|
|
304
304
|
* Configuration object for sessionless Pikku functions with Zod schema validation.
|
|
305
305
|
*/
|
|
306
|
-
export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never> = {
|
|
306
|
+
export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never> = {
|
|
307
307
|
name?: string;
|
|
308
308
|
description?: string;
|
|
309
309
|
tags?: string[];
|
|
@@ -312,12 +312,12 @@ export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends Standar
|
|
|
312
312
|
internal?: boolean;
|
|
313
313
|
remote?: boolean;
|
|
314
314
|
approvalRequired?: boolean;
|
|
315
|
-
approvalDescription?: PikkuApprovalDescription<InferSchemaOutput<InputSchema
|
|
316
|
-
func: PikkuFunctionSessionless<InferSchemaOutput<InputSchema
|
|
315
|
+
approvalDescription?: InputSchema extends StandardSchemaV1 ? PikkuApprovalDescription<InferSchemaOutput<InputSchema>> : never;
|
|
316
|
+
func: PikkuFunctionSessionless<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, RequiredWires>;
|
|
317
317
|
auth?: boolean;
|
|
318
|
-
permissions?: CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema
|
|
318
|
+
permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined;
|
|
319
319
|
middleware?: PikkuMiddleware[];
|
|
320
|
-
input
|
|
320
|
+
input?: InputSchema;
|
|
321
321
|
output?: OutputSchema;
|
|
322
322
|
node?: NodeConfig;
|
|
323
323
|
errors?: Array<typeof PikkuError>;
|
|
@@ -357,7 +357,7 @@ export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends Standar
|
|
|
357
357
|
* })
|
|
358
358
|
* ```
|
|
359
359
|
*/
|
|
360
|
-
export declare function pikkuSessionlessFunc<InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuFunctionSessionlessConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc'>): PikkuFunctionConfig<InferSchemaOutput<InputSchema
|
|
360
|
+
export declare function pikkuSessionlessFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuFunctionSessionlessConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc'>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>;
|
|
361
361
|
export declare function pikkuSessionlessFunc<In, Out = unknown>(func: PikkuFunctionSessionless<In, Out, 'session' | 'rpc'> | PikkuFunctionConfig<In, Out, 'session' | 'rpc'>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
|
|
362
362
|
/**
|
|
363
363
|
* Creates a function that takes no input and returns no output.
|