@pikku/cli 0.12.19 → 0.12.21
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-DAQHIRK3.js → index-DXLy-_D4.js} +181 -181
- package/console-app/index.html +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/cli/pikku-cli-channel.js +6 -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 +32 -2
- 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 +8 -2
- package/dist/.pikku/function/pikku-function-types.gen.js +4 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +223 -121
- package/dist/.pikku/function/pikku-functions.gen.js +13 -9
- 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/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 +2 -1
- package/dist/.pikku/pikku-services.gen.js +1 -0
- 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-meta.internal.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +15 -9
- 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 +13 -7
- package/dist/.pikku/schemas/schemas/DevInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuCommandHTTPOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuCommandQueueOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/WorkflowRunStatus.schema.json +1 -1
- 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/meta/allWorkflow.gen.json +623 -154
- 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.js +1 -1
- package/dist/src/cli.wiring.js +32 -2
- package/dist/src/deploy/analyzer/manifest.d.ts +10 -0
- package/dist/src/deploy/build-pipeline.d.ts +2 -0
- package/dist/src/deploy/build-pipeline.js +44 -6
- package/dist/src/deploy/bundler/bundler.d.ts +2 -1
- package/dist/src/deploy/bundler/bundler.js +28 -5
- package/dist/src/deploy/bundler/dep-extractor.d.ts +5 -2
- package/dist/src/deploy/bundler/dep-extractor.js +103 -23
- package/dist/src/deploy/bundler/types.d.ts +5 -1
- package/dist/src/deploy/codegen/per-unit-codegen.d.ts +3 -1
- package/dist/src/deploy/codegen/per-unit-codegen.js +3 -1
- package/dist/src/deploy/plan/planner.js +25 -3
- package/dist/src/deploy/plan/provider.d.ts +2 -0
- package/dist/src/functions/commands/deploy-apply.js +6 -4
- package/dist/src/functions/commands/deploy-plan.js +7 -1
- package/dist/src/functions/commands/dev.d.ts +13 -0
- package/dist/src/functions/commands/dev.js +187 -0
- package/dist/src/functions/commands/pikku-command-summary.js +4 -1
- package/dist/src/functions/commands/versions-update.js +9 -3
- package/dist/src/functions/wirings/channels/pikku-command-channels.d.ts +1 -1
- package/dist/src/functions/wirings/channels/pikku-command-channels.js +1 -1
- package/dist/src/functions/wirings/console/pikku-command-console-functions.js +5 -1
- package/dist/src/functions/wirings/functions/serialize-function-types.js +31 -1
- package/dist/src/functions/wirings/http/pikku-command-http-routes.d.ts +1 -1
- package/dist/src/functions/wirings/http/pikku-command-http-routes.js +1 -1
- package/dist/src/functions/wirings/queue/pikku-command-queue-map.d.ts +1 -1
- package/dist/src/functions/wirings/queue/pikku-command-queue-map.js +1 -1
- package/dist/src/functions/wirings/queue/pikku-command-queue.d.ts +1 -1
- package/dist/src/functions/wirings/queue/pikku-command-queue.js +1 -1
- package/dist/src/functions/wirings/rpc/pikku-command-public-rpc.js +5 -1
- package/dist/src/functions/wirings/rpc/pikku-command-remote-rpc.js +5 -1
- package/dist/src/functions/wirings/rpc/serialize-typed-rpc-map.js +16 -2
- package/dist/src/functions/wirings/workflow/serialize-workflow-routes.js +44 -2
- package/dist/src/functions/workflows/all.workflow.js +5 -10
- package/dist/src/scaffold/rpc-remote.gen.js +1 -1
- package/dist/src/scaffold/workflow-routes.gen.js +36 -4
- package/dist/src/services/cli-logger.service.d.ts +22 -2
- package/dist/src/services/cli-logger.service.js +97 -21
- package/dist/src/services.js +8 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -4
- package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +0 -10
- package/dist/.pikku/cli/pikku-cli-client.gen.js +0 -44
- /package/dist/.pikku/schemas/schemas/{PikkuChannelsOutput.schema.json → PikkuCommandChannelsOutput.schema.json} +0 -0
package/console-app/index.html
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
} catch (e) {}
|
|
26
26
|
</script>
|
|
27
|
-
<script type="module" crossorigin src="/assets/index-
|
|
27
|
+
<script type="module" crossorigin src="/assets/index-DXLy-_D4.js"></script>
|
|
28
28
|
<link rel="stylesheet" crossorigin href="/assets/index-BpY2pSuA.css">
|
|
29
29
|
</head>
|
|
30
30
|
<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.21
|
|
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.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.21
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* WebSocket channel backend for 'pikku' CLI commands
|
|
@@ -12,6 +12,7 @@ import { pikkuState } from '@pikku/core/internal';
|
|
|
12
12
|
import { all } from '../../src/functions/commands/all.js';
|
|
13
13
|
import { bootstrap } from '../../src/functions/commands/bootstrap.js';
|
|
14
14
|
import { watch } from '../../src/functions/commands/watch.js';
|
|
15
|
+
import { dev } from '../../src/functions/commands/dev.js';
|
|
15
16
|
import { consoleCommand } from '../../src/functions/commands/console.js';
|
|
16
17
|
import { pikkuSchemas } from '../../src/functions/wirings/functions/schemas.js';
|
|
17
18
|
import { pikkuFetch } from '../../src/functions/runtimes/fetch/index.js';
|
|
@@ -108,6 +109,10 @@ wireChannel({
|
|
|
108
109
|
func: watch,
|
|
109
110
|
middleware: [cliCloseOnComplete],
|
|
110
111
|
},
|
|
112
|
+
'dev': {
|
|
113
|
+
func: dev,
|
|
114
|
+
middleware: [cliCloseOnComplete],
|
|
115
|
+
},
|
|
111
116
|
'console': {
|
|
112
117
|
func: consoleCommand,
|
|
113
118
|
middleware: [cliCloseOnComplete],
|
|
@@ -49,6 +49,26 @@
|
|
|
49
49
|
},
|
|
50
50
|
"description": "Watch for file changes and regenerate automatically"
|
|
51
51
|
},
|
|
52
|
+
"dev": {
|
|
53
|
+
"pikkuFuncId": "dev",
|
|
54
|
+
"positionals": [],
|
|
55
|
+
"options": {
|
|
56
|
+
"port": {
|
|
57
|
+
"description": "Port for the dev server",
|
|
58
|
+
"default": "3000",
|
|
59
|
+
"short": "p"
|
|
60
|
+
},
|
|
61
|
+
"watch": {
|
|
62
|
+
"description": "Watch for file changes and regenerate",
|
|
63
|
+
"default": true
|
|
64
|
+
},
|
|
65
|
+
"hmr": {
|
|
66
|
+
"description": "Enable hot module reload",
|
|
67
|
+
"default": true
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"description": "Start a local development server with all services wired"
|
|
71
|
+
},
|
|
52
72
|
"console": {
|
|
53
73
|
"pikkuFuncId": "consoleCommand",
|
|
54
74
|
"positionals": [],
|
|
@@ -486,6 +506,14 @@
|
|
|
486
506
|
"critical"
|
|
487
507
|
]
|
|
488
508
|
},
|
|
509
|
+
"output": {
|
|
510
|
+
"description": "Output format (json emits NDJSON)"
|
|
511
|
+
},
|
|
512
|
+
"json": {
|
|
513
|
+
"description": "Alias for --output json",
|
|
514
|
+
"default": false,
|
|
515
|
+
"short": "j"
|
|
516
|
+
},
|
|
489
517
|
"userSessionType": {
|
|
490
518
|
"description": "Specify which UserSession type to use (when multiple exist)"
|
|
491
519
|
},
|
|
@@ -505,7 +533,8 @@
|
|
|
505
533
|
"description": "Override output directory (default: from pikku.config.json)",
|
|
506
534
|
"short": "o"
|
|
507
535
|
}
|
|
508
|
-
}
|
|
536
|
+
},
|
|
537
|
+
"defaultRenderName": "defaultCLIRenderer"
|
|
509
538
|
}
|
|
510
539
|
},
|
|
511
540
|
"renderers": {
|
|
@@ -533,7 +562,8 @@
|
|
|
533
562
|
"agentRunService",
|
|
534
563
|
"workflowRunService",
|
|
535
564
|
"credentialService",
|
|
536
|
-
"metaService"
|
|
565
|
+
"metaService",
|
|
566
|
+
"sessionStore"
|
|
537
567
|
]
|
|
538
568
|
},
|
|
539
569
|
"filePath": "/home/runner/work/pikku/pikku/packages/cli/src/services.ts"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.21
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Core function, middleware, and permission types for all wirings
|
|
6
6
|
*/
|
|
7
|
-
import type { CorePikkuMiddleware, CorePermissionGroup, PikkuWire, PickRequired } from '@pikku/core';
|
|
7
|
+
import type { CorePikkuMiddleware, CorePermissionGroup, ListInput, ListOutput, PikkuWire, PickRequired } from '@pikku/core';
|
|
8
8
|
import type { CorePikkuFunctionConfig, CorePikkuAuth, CorePikkuAuthConfig, CorePikkuPermission } from '@pikku/core/function';
|
|
9
9
|
import { CreateWireServices } from '@pikku/core/internal';
|
|
10
10
|
import { PikkuError } from '@pikku/core/errors';
|
|
@@ -246,10 +246,13 @@ export type PikkuFunctionConfig<In = unknown, Out = unknown, RequiredWires exten
|
|
|
246
246
|
*/
|
|
247
247
|
export type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never> = {
|
|
248
248
|
name?: string;
|
|
249
|
+
description?: string;
|
|
249
250
|
tags?: string[];
|
|
250
251
|
expose?: boolean;
|
|
251
252
|
mcp?: boolean;
|
|
252
253
|
internal?: boolean;
|
|
254
|
+
remote?: boolean;
|
|
255
|
+
deploy?: 'serverless' | 'server' | 'auto';
|
|
253
256
|
approvalRequired?: boolean;
|
|
254
257
|
approvalDescription?: InputSchema extends StandardSchemaV1 ? PikkuApprovalDescription<InferSchemaOutput<InputSchema>> : never;
|
|
255
258
|
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>;
|
|
@@ -301,6 +304,8 @@ export type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 |
|
|
|
301
304
|
*/
|
|
302
305
|
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'>;
|
|
303
306
|
export declare function pikkuFunc<In, Out = unknown>(func: PikkuFunction<In, Out, 'session' | 'rpc'> | PikkuFunctionConfig<In, Out, 'session' | 'rpc'>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
|
|
307
|
+
export type PikkuListFunction<F extends Record<string, unknown> = {}, Row = unknown, S extends string = never> = PikkuFunction<ListInput<F, S>, ListOutput<Row>, 'session' | 'rpc'> | PikkuFunctionSessionless<ListInput<F, S>, ListOutput<Row>, 'session' | 'rpc'>;
|
|
308
|
+
export declare const pikkuListFunc: <F extends Record<string, unknown> = {}, Row = unknown, S extends string = never>(config: PikkuFunctionConfig<ListInput<F, S>, ListOutput<Row>, "session" | "rpc">) => PikkuFunctionConfig<ListInput<F, S>, ListOutput<Row>, "session" | "rpc">;
|
|
304
309
|
/**
|
|
305
310
|
* Configuration object for sessionless Pikku functions with Zod schema validation.
|
|
306
311
|
*/
|
|
@@ -312,6 +317,7 @@ export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends Standar
|
|
|
312
317
|
mcp?: boolean;
|
|
313
318
|
internal?: boolean;
|
|
314
319
|
remote?: boolean;
|
|
320
|
+
deploy?: 'serverless' | 'server' | 'auto';
|
|
315
321
|
approvalRequired?: boolean;
|
|
316
322
|
approvalDescription?: InputSchema extends StandardSchemaV1 ? PikkuApprovalDescription<InferSchemaOutput<InputSchema>> : never;
|
|
317
323
|
func: PikkuFunctionSessionless<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, RequiredWires>;
|
|
@@ -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.21
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Core function, middleware, and permission types for all wirings
|
|
@@ -143,6 +143,9 @@ export const pikkuApprovalDescription = (fn) => {
|
|
|
143
143
|
export function pikkuFunc(func) {
|
|
144
144
|
return typeof func === 'function' ? { func } : func;
|
|
145
145
|
}
|
|
146
|
+
export const pikkuListFunc = (config) => {
|
|
147
|
+
return pikkuFunc(config);
|
|
148
|
+
};
|
|
146
149
|
export function pikkuSessionlessFunc(func) {
|
|
147
150
|
return typeof func === 'function' ? { func } : func;
|
|
148
151
|
}
|