@pikku/cli 0.12.14 → 0.12.16
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/cli.schema.json +1 -1
- package/console-app/android-chrome-192x192.png +0 -0
- package/console-app/android-chrome-512x512.png +0 -0
- package/console-app/apple-touch-icon.png +0 -0
- package/console-app/assets/index-CzMWJFqj.js +700 -0
- package/console-app/assets/index-DvrDbftC.css +1 -0
- package/console-app/favicon-16x16.png +0 -0
- package/console-app/favicon-32x32.png +0 -0
- package/console-app/favicon.ico +0 -0
- package/console-app/index.html +33 -0
- package/console-app/pikku-console-logo.png +0 -0
- package/console-app/site.webmanifest +19 -0
- package/console-app/wiring-icons/cron.svg +6 -0
- package/console-app/wiring-icons/function.png +0 -0
- package/console-app/wiring-icons/http.svg +2 -0
- package/console-app/wiring-icons/mcp.svg +1 -0
- package/console-app/wiring-icons/queue.svg +18 -0
- package/console-app/wiring-icons/sse.svg +5 -0
- package/console-app/wiring-icons/websocket.svg +8 -0
- 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 +16 -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 +69 -6
- 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 +16 -19
- package/dist/.pikku/function/pikku-function-types.gen.js +15 -19
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +277 -194
- package/dist/.pikku/function/pikku-functions.gen.js +6 -2
- 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-meta.gen.json +18 -1
- package/dist/.pikku/http/pikku-http-wirings.gen.d.ts +2 -2
- package/dist/.pikku/http/pikku-http-wirings.gen.js +3 -3
- 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.d.ts +3 -10
- package/dist/.pikku/pikku-bootstrap.gen.js +1 -18
- package/dist/.pikku/pikku-meta-service.gen.d.ts +7 -0
- package/dist/.pikku/pikku-meta-service.gen.js +9 -0
- 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/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 +19 -15
- 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 +15 -7
- package/dist/.pikku/schemas/schemas/DeployApplyInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/DeployPlanInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuNewAddonInput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuWorkflowRoutesOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RemoteRPCHandlerInput.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 +3 -24
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -14
- 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 +63 -4
- package/dist/src/deploy/analyzer/analyzer.d.ts +16 -0
- package/dist/src/deploy/analyzer/analyzer.js +557 -0
- package/dist/src/deploy/analyzer/index.d.ts +3 -0
- package/dist/src/deploy/analyzer/index.js +1 -0
- package/dist/src/deploy/analyzer/manifest.d.ts +112 -0
- package/dist/src/deploy/analyzer/manifest.js +8 -0
- package/dist/src/deploy/build-pipeline.d.ts +39 -0
- package/dist/src/deploy/build-pipeline.js +209 -0
- package/dist/src/deploy/bundler/bundler.d.ts +30 -0
- package/dist/src/deploy/bundler/bundler.js +196 -0
- package/dist/src/deploy/bundler/dep-extractor.d.ts +35 -0
- package/dist/src/deploy/bundler/dep-extractor.js +213 -0
- package/dist/src/deploy/bundler/index.d.ts +3 -0
- package/dist/src/deploy/bundler/index.js +2 -0
- package/dist/src/deploy/bundler/types.d.ts +21 -0
- package/dist/src/deploy/bundler/types.js +5 -0
- package/dist/src/deploy/codegen/index.d.ts +2 -0
- package/dist/src/deploy/codegen/index.js +1 -0
- package/dist/src/deploy/codegen/per-unit-codegen.d.ts +44 -0
- package/dist/src/deploy/codegen/per-unit-codegen.js +216 -0
- package/dist/src/deploy/plan/executor.d.ts +9 -0
- package/dist/src/deploy/plan/executor.js +49 -0
- package/dist/src/deploy/plan/formatter.d.ts +4 -0
- package/dist/src/deploy/plan/formatter.js +114 -0
- package/dist/src/deploy/plan/index.d.ts +5 -0
- package/dist/src/deploy/plan/index.js +3 -0
- package/dist/src/deploy/plan/planner.d.ts +4 -0
- package/dist/src/deploy/plan/planner.js +220 -0
- package/dist/src/deploy/plan/provider.d.ts +30 -0
- package/dist/src/deploy/plan/provider.js +1 -0
- package/dist/src/deploy/plan/types.d.ts +29 -0
- package/dist/src/deploy/plan/types.js +1 -0
- package/dist/src/deploy/provider-adapter.d.ts +111 -0
- package/dist/src/deploy/provider-adapter.js +10 -0
- package/dist/src/functions/commands/all.js +6 -2
- package/dist/src/functions/commands/deploy-apply.d.ts +22 -0
- package/dist/src/functions/commands/deploy-apply.js +206 -0
- package/dist/src/functions/commands/deploy-info.d.ts +1 -0
- package/dist/src/functions/commands/deploy-info.js +122 -0
- package/dist/src/functions/commands/deploy-plan.d.ts +10 -0
- package/dist/src/functions/commands/deploy-plan.js +96 -0
- package/dist/src/functions/commands/enable.js +1 -1
- package/dist/src/functions/commands/new-addon.d.ts +3 -0
- package/dist/src/functions/commands/new-addon.js +70 -5
- package/dist/src/functions/commands/pikku-command-bootstrap.js +30 -20
- package/dist/src/functions/runtimes/nextjs/pikku-command-nextjs.js +7 -3
- package/dist/src/functions/wirings/ai-agent/pikku-command-ai-agent.js +7 -5
- package/dist/src/functions/wirings/channels/pikku-channels.js +3 -0
- package/dist/src/functions/wirings/channels/pikku-command-channels.js +3 -0
- package/dist/src/functions/wirings/cli/pikku-command-cli.js +3 -0
- package/dist/src/functions/wirings/cli/serialize-channel-cli.js +2 -2
- package/dist/src/functions/wirings/console/serialize-console-functions.js +2 -2
- package/dist/src/functions/wirings/functions/pikku-command-services.d.ts +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-services.js +9 -2
- package/dist/src/functions/wirings/functions/serialize-addon-types.js +3 -3
- package/dist/src/functions/wirings/functions/serialize-function-imports.js +5 -3
- package/dist/src/functions/wirings/functions/serialize-function-types.js +17 -19
- package/dist/src/functions/wirings/http/pikku-command-http-routes.js +3 -0
- package/dist/src/functions/wirings/http/pikku-http-routes.js +3 -0
- package/dist/src/functions/wirings/mcp/pikku-command-mcp.js +6 -0
- package/dist/src/functions/wirings/package/pikku-command-package.js +13 -1
- package/dist/src/functions/wirings/package/serialize-package.d.ts +7 -1
- package/dist/src/functions/wirings/package/serialize-package.js +8 -2
- package/dist/src/functions/wirings/queue/pikku-command-queue.js +4 -0
- package/dist/src/functions/wirings/queue/pikku-queue.js +4 -0
- package/dist/src/functions/wirings/queue/serialize-queue-map.js +4 -1
- package/dist/src/functions/wirings/rpc/pikku-command-rpc.js +10 -3
- package/dist/src/functions/wirings/rpc/serialize-public-rpc.js +5 -27
- package/dist/src/functions/wirings/rpc/serialize-remote-rpc.js +11 -14
- package/dist/src/functions/wirings/rpc/serialize-rpc-wrapper.js +28 -3
- package/dist/src/functions/wirings/rpc/serialize-typed-rpc-map.js +15 -5
- package/dist/src/functions/wirings/scheduler/pikku-command-scheduler.js +4 -0
- package/dist/src/functions/wirings/workflow/pikku-command-workflow-routes.d.ts +1 -0
- package/dist/src/functions/wirings/workflow/pikku-command-workflow-routes.js +21 -0
- package/dist/src/functions/wirings/workflow/pikku-command-workflow.js +10 -9
- package/dist/src/functions/wirings/workflow/serialize-workflow-map.d.ts +6 -1
- package/dist/src/functions/wirings/workflow/serialize-workflow-map.js +42 -5
- package/dist/src/functions/wirings/workflow/serialize-workflow-registration.d.ts +1 -1
- package/dist/src/functions/wirings/workflow/serialize-workflow-registration.js +3 -2
- package/dist/src/functions/wirings/workflow/serialize-workflow-routes.d.ts +4 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-routes.js +139 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-types.js +4 -51
- package/dist/src/scaffold/rpc-remote.gen.d.ts +10 -0
- package/dist/src/scaffold/rpc-remote.gen.js +22 -0
- package/dist/src/services.js +12 -7
- package/dist/src/utils/pikku-cli-config.d.ts +1 -1
- package/dist/src/utils/pikku-cli-config.js +30 -28
- package/dist/src/utils/strip-verbose-meta.js +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -4
- package/dist/src/functions/wirings/workflow/serialize-workflow-workers.d.ts +0 -4
- package/dist/src/functions/wirings/workflow/serialize-workflow-workers.js +0 -47
|
@@ -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.16
|
|
3
3
|
*/
|
|
4
4
|
import { WorkflowCancelledException } from '@pikku/core/workflow';
|
|
5
5
|
import { template } from '@pikku/core/workflow';
|
|
@@ -8,11 +8,11 @@ import type { PikkuWorkflowWire, WorkflowStepOptions } from '@pikku/core/workflo
|
|
|
8
8
|
export { WorkflowCancelledException };
|
|
9
9
|
import type { PikkuFunctionSessionless, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
|
|
10
10
|
import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.d.js';
|
|
11
|
-
import type {
|
|
11
|
+
import type { FlattenedWorkflowMap } from './pikku-workflow-map.gen.d.js';
|
|
12
12
|
export { template };
|
|
13
13
|
export interface TypedWorkflow extends PikkuWorkflowWire {
|
|
14
14
|
do<K extends keyof FlattenedRPCMap>(stepName: string, rpcName: K, data: FlattenedRPCMap[K]['input'], options?: WorkflowStepOptions): Promise<FlattenedRPCMap[K]['output']>;
|
|
15
|
-
do<K extends keyof
|
|
15
|
+
do<K extends keyof FlattenedWorkflowMap>(stepName: string, workflowName: K, data: FlattenedWorkflowMap[K]['input'], options?: WorkflowStepOptions): Promise<FlattenedWorkflowMap[K]['output']>;
|
|
16
16
|
do<T>(stepName: string, fn: () => T | Promise<T>, options?: WorkflowStepOptions): Promise<T>;
|
|
17
17
|
}
|
|
18
18
|
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
@@ -87,24 +87,3 @@ type NextConfig<NodeIds extends string> = NodeIds | NodeIds[] | {
|
|
|
87
87
|
else?: NodeIds;
|
|
88
88
|
};
|
|
89
89
|
export declare function pikkuWorkflowGraph<const FuncMap extends Record<string, keyof FlattenedRPCMap & string>>(config: PikkuWorkflowGraphConfig<FuncMap, GraphNodeConfigMap<FuncMap>>): PikkuWorkflowGraphResult;
|
|
90
|
-
export declare const workflow: <Name extends keyof WorkflowMap>(workflowName: Name, options?: {
|
|
91
|
-
pollIntervalMs?: number;
|
|
92
|
-
}) => PikkuFunctionConfig<WorkflowMap[Name]["input"], WorkflowMap[Name]["output"], "session" | "rpc">;
|
|
93
|
-
export declare const workflowStart: <Name extends keyof WorkflowMap>(workflowName: Name) => PikkuFunctionConfig<WorkflowMap[Name]["input"], {
|
|
94
|
-
runId: string;
|
|
95
|
-
}, "session" | "rpc">;
|
|
96
|
-
export declare const workflowStatus: <Name extends keyof WorkflowMap>(_workflowName: Name) => PikkuFunctionConfig<{
|
|
97
|
-
runId: string;
|
|
98
|
-
}, {
|
|
99
|
-
id: string;
|
|
100
|
-
status: "running" | "completed" | "failed" | "cancelled";
|
|
101
|
-
output?: WorkflowMap[Name]["output"];
|
|
102
|
-
error?: {
|
|
103
|
-
message?: string;
|
|
104
|
-
};
|
|
105
|
-
}, "session" | "rpc">;
|
|
106
|
-
export declare const graphStart: <Name extends keyof GraphsMap, Node extends string & keyof GraphsMap[Name]>(graphName: Name, startNode: Node) => PikkuFunctionConfig<GraphsMap[Name][Node] extends {
|
|
107
|
-
input: infer I;
|
|
108
|
-
} ? I : never, {
|
|
109
|
-
runId: string;
|
|
110
|
-
}, "session" | "rpc">;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.16
|
|
3
3
|
*/
|
|
4
4
|
import { WorkflowCancelledException } from '@pikku/core/workflow';
|
|
5
|
-
import { workflow as coreWorkflow, workflowStart as coreWorkflowStart, workflowStatus as coreWorkflowStatus, graphStart as coreGraphStart, } from '@pikku/core/workflow';
|
|
6
5
|
import { template } from '@pikku/core/workflow';
|
|
7
6
|
import { pikkuWorkflowGraph as corePikkuWorkflowGraph, } from '@pikku/core/workflow';
|
|
8
7
|
export { WorkflowCancelledException };
|
|
@@ -16,15 +15,3 @@ export function pikkuWorkflowComplexFunc(func) {
|
|
|
16
15
|
export function pikkuWorkflowGraph(config) {
|
|
17
16
|
return corePikkuWorkflowGraph(config);
|
|
18
17
|
}
|
|
19
|
-
export const workflow = (workflowName, options) => {
|
|
20
|
-
return coreWorkflow(workflowName, options);
|
|
21
|
-
};
|
|
22
|
-
export const workflowStart = (workflowName) => {
|
|
23
|
-
return coreWorkflowStart(workflowName);
|
|
24
|
-
};
|
|
25
|
-
export const workflowStatus = (_workflowName) => {
|
|
26
|
-
return coreWorkflowStatus(_workflowName);
|
|
27
|
-
};
|
|
28
|
-
export const graphStart = (graphName, startNode) => {
|
|
29
|
-
return coreGraphStart(graphName, startNode);
|
|
30
|
-
};
|
package/dist/src/cli.wiring.js
CHANGED
|
@@ -20,6 +20,9 @@ import { pikkuNewPermission } from './functions/commands/new-permission.js';
|
|
|
20
20
|
import { pikkuNewAddon } from './functions/commands/new-addon.js';
|
|
21
21
|
import { pikkuInfoFunctions, pikkuInfoTags, pikkuInfoMiddleware, pikkuInfoPermissions, } from './functions/commands/info.js';
|
|
22
22
|
import { enableRpc, enableConsole, enableAgent, enableWorkflow, } from './functions/commands/enable.js';
|
|
23
|
+
import { deployPlan } from './functions/commands/deploy-plan.js';
|
|
24
|
+
import { deployApply } from './functions/commands/deploy-apply.js';
|
|
25
|
+
import { deployInfo } from './functions/commands/deploy-info.js';
|
|
23
26
|
// import { clientCLIRenderer } from './services.js'
|
|
24
27
|
wireCLI({
|
|
25
28
|
program: 'pikku',
|
|
@@ -50,6 +53,10 @@ wireCLI({
|
|
|
50
53
|
stateInput: {
|
|
51
54
|
description: 'Load inspector state from JSON file (skips inspection)',
|
|
52
55
|
},
|
|
56
|
+
outDir: {
|
|
57
|
+
description: 'Override output directory (default: from pikku.config.json)',
|
|
58
|
+
short: 'o',
|
|
59
|
+
},
|
|
53
60
|
},
|
|
54
61
|
commands: {
|
|
55
62
|
all: pikkuCLICommand({
|
|
@@ -149,7 +156,7 @@ wireCLI({
|
|
|
149
156
|
func: enableRpc,
|
|
150
157
|
description: 'Enable public RPC endpoint',
|
|
151
158
|
options: {
|
|
152
|
-
|
|
159
|
+
noAuth: {
|
|
153
160
|
description: 'Disable auth requirement',
|
|
154
161
|
default: false,
|
|
155
162
|
},
|
|
@@ -159,7 +166,7 @@ wireCLI({
|
|
|
159
166
|
func: enableConsole,
|
|
160
167
|
description: 'Enable console functions',
|
|
161
168
|
options: {
|
|
162
|
-
|
|
169
|
+
noAuth: {
|
|
163
170
|
description: 'Disable auth requirement',
|
|
164
171
|
default: false,
|
|
165
172
|
},
|
|
@@ -169,7 +176,7 @@ wireCLI({
|
|
|
169
176
|
func: enableAgent,
|
|
170
177
|
description: 'Enable public agent endpoints',
|
|
171
178
|
options: {
|
|
172
|
-
|
|
179
|
+
noAuth: {
|
|
173
180
|
description: 'Disable auth requirement',
|
|
174
181
|
default: false,
|
|
175
182
|
},
|
|
@@ -179,7 +186,7 @@ wireCLI({
|
|
|
179
186
|
func: enableWorkflow,
|
|
180
187
|
description: 'Enable workflow workers',
|
|
181
188
|
options: {
|
|
182
|
-
|
|
189
|
+
noAuth: {
|
|
183
190
|
description: 'Disable auth requirement',
|
|
184
191
|
default: false,
|
|
185
192
|
},
|
|
@@ -283,6 +290,10 @@ wireCLI({
|
|
|
283
290
|
description: 'Add mcp: true to generated functions (expose as MCP tools)',
|
|
284
291
|
default: false,
|
|
285
292
|
},
|
|
293
|
+
camelCase: {
|
|
294
|
+
description: 'Convert snake_case property names to camelCase in generated Zod schemas',
|
|
295
|
+
default: false,
|
|
296
|
+
},
|
|
286
297
|
},
|
|
287
298
|
}),
|
|
288
299
|
},
|
|
@@ -309,6 +320,54 @@ wireCLI({
|
|
|
309
320
|
}),
|
|
310
321
|
},
|
|
311
322
|
},
|
|
323
|
+
deploy: {
|
|
324
|
+
description: 'Deploy Pikku project to cloud infrastructure',
|
|
325
|
+
subcommands: {
|
|
326
|
+
plan: pikkuCLICommand({
|
|
327
|
+
func: deployPlan,
|
|
328
|
+
description: 'Show deployment plan (what will be created, updated, deleted)',
|
|
329
|
+
options: {
|
|
330
|
+
provider: {
|
|
331
|
+
description: 'Deployment provider (cloudflare, aws)',
|
|
332
|
+
default: 'cloudflare',
|
|
333
|
+
short: 'p',
|
|
334
|
+
},
|
|
335
|
+
resultFile: {
|
|
336
|
+
description: 'Write structured JSON plan result to this file path',
|
|
337
|
+
},
|
|
338
|
+
},
|
|
339
|
+
}),
|
|
340
|
+
apply: pikkuCLICommand({
|
|
341
|
+
func: deployApply,
|
|
342
|
+
description: 'Execute the deployment plan',
|
|
343
|
+
options: {
|
|
344
|
+
provider: {
|
|
345
|
+
description: 'Deployment provider (cloudflare, aws)',
|
|
346
|
+
default: 'cloudflare',
|
|
347
|
+
short: 'p',
|
|
348
|
+
},
|
|
349
|
+
fromPlan: {
|
|
350
|
+
description: 'Skip build pipeline, deploy from existing plan output',
|
|
351
|
+
default: false,
|
|
352
|
+
},
|
|
353
|
+
resultFile: {
|
|
354
|
+
description: 'Write structured JSON deploy result to this file path',
|
|
355
|
+
},
|
|
356
|
+
},
|
|
357
|
+
}),
|
|
358
|
+
info: pikkuCLICommand({
|
|
359
|
+
func: deployInfo,
|
|
360
|
+
description: 'Show project deployment info (workers, queues, crons, secrets)',
|
|
361
|
+
options: {
|
|
362
|
+
provider: {
|
|
363
|
+
description: 'Deployment provider (cloudflare, aws)',
|
|
364
|
+
default: 'cloudflare',
|
|
365
|
+
short: 'p',
|
|
366
|
+
},
|
|
367
|
+
},
|
|
368
|
+
}),
|
|
369
|
+
},
|
|
370
|
+
},
|
|
312
371
|
info: pikkuCLICommand({
|
|
313
372
|
func: pikkuInfoFunctions,
|
|
314
373
|
description: 'Show information about Pikku project resources',
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provider-agnostic deployment analyzer.
|
|
3
|
+
*
|
|
4
|
+
* Core principle: one function = one deployment unit.
|
|
5
|
+
* Each function gets its own unit with all its triggers (HTTP, queue, cron).
|
|
6
|
+
* Gateways (MCP, agents, channels) dispatch to function units via RPC.
|
|
7
|
+
* Workflow orchestrators dispatch to step units via queue or RPC (inline).
|
|
8
|
+
*/
|
|
9
|
+
import type { InspectorState } from '@pikku/inspector';
|
|
10
|
+
import type { DeploymentManifest } from './manifest.js';
|
|
11
|
+
export interface AnalyzerOptions {
|
|
12
|
+
projectId: string;
|
|
13
|
+
/** Services that can't run serverless — functions using them get target: 'server' */
|
|
14
|
+
serverlessIncompatible?: string[];
|
|
15
|
+
}
|
|
16
|
+
export declare function analyzeDeployment(state: InspectorState, options: AnalyzerOptions): DeploymentManifest;
|