@pikku/cli 0.12.20 → 0.12.22
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/assets/index-C52h1B_L.css +1 -0
- package/console-app/assets/index-CAk106ji.js +232 -0
- package/console-app/index.html +3 -6
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +3 -3
- package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-channel.d.ts +6 -6
- package/dist/.pikku/cli/pikku-cli-channel.js +280 -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 +792 -8
- 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 +44 -70
- package/dist/.pikku/function/pikku-function-types.gen.js +33 -40
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +1439 -316
- package/dist/.pikku/function/pikku-functions.gen.js +21 -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 +3 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +3 -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/queue/pikku-queue-workers-wirings-meta.gen.d.ts +1 -0
- package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +6 -0
- package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.json +250 -0
- package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +4 -0
- package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +5 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +66 -10
- 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 +157 -11
- package/dist/.pikku/schemas/schemas/BinaryInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/DbMigrateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/DbResetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/DbSeedInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricDbSchemaInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricDbSchemaOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricDeployApplyInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricDeployApplyOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricDeployListInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricDeployListOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricDeployPlanInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricDeployPlanOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricDeployUnitsInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricDeployUnitsOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricDomainsAddInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricDomainsAddOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricDomainsListInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricDomainsListOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricDomainsRemoveInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricDomainsRemoveOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricErrorsInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricErrorsOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricInitInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricInitOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricLLMKeyInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricLLMKeyOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricLinkInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricLinkOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricLoginInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricLoginOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricLogsInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricLogsOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricMetricsInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricMetricsOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricRollbackInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricRollbackOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricSecretsListInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricSecretsListOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricSecretsSetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricSecretsSetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricStatusInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricStatusOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricTraceInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricTraceOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricValidateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricValidateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuCommandChannelsOutput.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/PikkuEventsScaffoldOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuMetaClientsInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuMetaContextInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuMetaFunctionsGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuMetaFunctionsListInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuMetaMiddlewareGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuMetaMiddlewareListInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuMetaPermissionsGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuMetaPermissionsListInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuMetaSchemasGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuMetaSchemasListInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuMetaWiresChannelInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuMetaWiresHttpInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuMetaWiresListInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuMetaWiresQueueInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuMetaWiresSchedulerInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuMetaWiresTriggerInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuMetaWiresTypeInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuMetaWorkflowsGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuMetaWorkflowsListInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuSkillsInstallInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuSkillsListInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuTestsCoverageInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuTestsInitInput.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 +237 -629
- 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/bin/pikku-bin.mjs +23 -0
- package/dist/bin/pikku.js +28 -1
- package/dist/src/cli.wiring.js +286 -10
- package/dist/src/deploy/analyzer/analyzer.d.ts +16 -1
- package/dist/src/deploy/analyzer/analyzer.js +83 -43
- 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 +123 -19
- package/dist/src/deploy/bundler/bundler.d.ts +3 -1
- package/dist/src/deploy/bundler/bundler.js +40 -9
- 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 +11 -1
- package/dist/src/deploy/codegen/per-unit-codegen.js +49 -6
- package/dist/src/deploy/plan/planner.js +25 -3
- package/dist/src/deploy/plan/provider.d.ts +2 -0
- package/dist/src/deploy/provider-adapter.d.ts +34 -0
- package/dist/src/deploy/server-entry.d.ts +16 -0
- package/dist/src/deploy/server-entry.js +81 -0
- package/dist/src/fabric/fabric-commands.d.ts +522 -0
- package/dist/src/fabric/fabric-commands.js +299 -0
- package/dist/src/fabric/functions/db-schema.function.d.ts +35 -0
- package/dist/src/fabric/functions/db-schema.function.js +37 -0
- package/dist/src/fabric/functions/deploy-list.function.d.ts +41 -0
- package/dist/src/fabric/functions/deploy-list.function.js +43 -0
- package/dist/src/fabric/functions/deploy-units.function.d.ts +35 -0
- package/dist/src/fabric/functions/deploy-units.function.js +41 -0
- package/dist/src/fabric/functions/deploy.function.d.ts +105 -0
- package/dist/src/fabric/functions/deploy.function.js +122 -0
- package/dist/src/fabric/functions/domains-add.function.d.ts +35 -0
- package/dist/src/fabric/functions/domains-add.function.js +46 -0
- package/dist/src/fabric/functions/domains-list.function.d.ts +20 -0
- package/dist/src/fabric/functions/domains-list.function.js +50 -0
- package/dist/src/fabric/functions/domains-remove.function.d.ts +24 -0
- package/dist/src/fabric/functions/domains-remove.function.js +44 -0
- package/dist/src/fabric/functions/errors.function.d.ts +44 -0
- package/dist/src/fabric/functions/errors.function.js +50 -0
- package/dist/src/fabric/functions/init.function.d.ts +51 -0
- package/dist/src/fabric/functions/init.function.js +54 -0
- package/dist/src/fabric/functions/link.function.d.ts +28 -0
- package/dist/src/fabric/functions/link.function.js +77 -0
- package/dist/src/fabric/functions/llm-key.function.d.ts +46 -0
- package/dist/src/fabric/functions/llm-key.function.js +76 -0
- package/dist/src/fabric/functions/login.function.d.ts +42 -0
- package/dist/src/fabric/functions/login.function.js +68 -0
- package/dist/src/fabric/functions/logs.function.d.ts +40 -0
- package/dist/src/fabric/functions/logs.function.js +84 -0
- package/dist/src/fabric/functions/metrics.function.d.ts +32 -0
- package/dist/src/fabric/functions/metrics.function.js +49 -0
- package/dist/src/fabric/functions/rollback.function.d.ts +76 -0
- package/dist/src/fabric/functions/rollback.function.js +69 -0
- package/dist/src/fabric/functions/secrets-list.function.d.ts +24 -0
- package/dist/src/fabric/functions/secrets-list.function.js +37 -0
- package/dist/src/fabric/functions/secrets-set.function.d.ts +32 -0
- package/dist/src/fabric/functions/secrets-set.function.js +36 -0
- package/dist/src/fabric/functions/status.function.d.ts +34 -0
- package/dist/src/fabric/functions/status.function.js +43 -0
- package/dist/src/fabric/functions/trace.function.d.ts +28 -0
- package/dist/src/fabric/functions/trace.function.js +45 -0
- package/dist/src/fabric/functions/validate.function.d.ts +50 -0
- package/dist/src/fabric/functions/validate.function.js +363 -0
- package/dist/src/fabric/lib/config.d.ts +64 -0
- package/dist/src/fabric/lib/config.js +62 -0
- package/dist/src/fabric/lib/console-url.d.ts +5 -0
- package/dist/src/fabric/lib/console-url.js +13 -0
- package/dist/src/fabric/lib/git.d.ts +53 -0
- package/dist/src/fabric/lib/git.js +151 -0
- package/dist/src/fabric/lib/http.d.ts +4 -0
- package/dist/src/fabric/lib/http.js +12 -0
- package/dist/src/fabric/lib/not-implemented.d.ts +5 -0
- package/dist/src/fabric/lib/not-implemented.js +8 -0
- package/dist/src/fabric/lib/output.d.ts +23 -0
- package/dist/src/fabric/lib/output.js +39 -0
- package/dist/src/fabric/lib/prompt.d.ts +12 -0
- package/dist/src/fabric/lib/prompt.js +32 -0
- package/dist/src/fabric/lib/stage.d.ts +7 -0
- package/dist/src/fabric/lib/stage.js +14 -0
- package/dist/src/fabric/sdk/pikku-fetch.gen.d.ts +14 -0
- package/dist/src/fabric/sdk/pikku-fetch.gen.js +30 -0
- package/dist/src/fabric/sdk/pikku-rpc.gen.d.ts +105 -0
- package/dist/src/fabric/sdk/pikku-rpc.gen.js +126 -0
- package/dist/src/functions/commands/all.d.ts +1 -1
- package/dist/src/functions/commands/binary.d.ts +7 -0
- package/dist/src/functions/commands/binary.js +40 -0
- package/dist/src/functions/commands/bootstrap.d.ts +1 -1
- package/dist/src/functions/commands/bootstrap.js +7 -4
- package/dist/src/functions/commands/console.d.ts +3 -3
- package/dist/src/functions/commands/db-migrate.d.ts +1 -0
- package/dist/src/functions/commands/db-migrate.js +35 -0
- package/dist/src/functions/commands/db-reset.d.ts +1 -0
- package/dist/src/functions/commands/db-reset.js +36 -0
- package/dist/src/functions/commands/db-seed.d.ts +1 -0
- package/dist/src/functions/commands/db-seed.js +27 -0
- package/dist/src/functions/commands/db-shared.d.ts +32 -0
- package/dist/src/functions/commands/db-shared.js +26 -0
- package/dist/src/functions/commands/deploy-apply.d.ts +3 -3
- package/dist/src/functions/commands/deploy-apply.js +6 -4
- package/dist/src/functions/commands/deploy-info.d.ts +1 -1
- package/dist/src/functions/commands/deploy-plan.d.ts +3 -3
- package/dist/src/functions/commands/deploy-plan.js +7 -1
- package/dist/src/functions/commands/dev.d.ts +3 -3
- package/dist/src/functions/commands/dev.js +142 -86
- package/dist/src/functions/commands/enable.d.ts +5 -4
- package/dist/src/functions/commands/enable.js +4 -0
- package/dist/src/functions/commands/info.d.ts +4 -4
- package/dist/src/functions/commands/load-user-project.d.ts +11 -0
- package/dist/src/functions/commands/load-user-project.js +40 -0
- package/dist/src/functions/commands/meta.d.ts +82 -0
- package/dist/src/functions/commands/meta.js +454 -0
- package/dist/src/functions/commands/new-addon.d.ts +3 -3
- package/dist/src/functions/commands/new-function.d.ts +3 -3
- package/dist/src/functions/commands/new-middleware.d.ts +3 -3
- package/dist/src/functions/commands/new-permission.d.ts +3 -3
- package/dist/src/functions/commands/new-wiring.d.ts +3 -3
- package/dist/src/functions/commands/pikku-command-bootstrap.d.ts +1 -1
- package/dist/src/functions/commands/pikku-command-bootstrap.js +15 -1
- package/dist/src/functions/commands/pikku-command-summary.d.ts +1 -1
- package/dist/src/functions/commands/pikku-command-summary.js +7 -1
- package/dist/src/functions/commands/skills.d.ts +26 -0
- package/dist/src/functions/commands/skills.js +184 -0
- package/dist/src/functions/commands/tests-coverage.d.ts +7 -0
- package/dist/src/functions/commands/tests-coverage.js +231 -0
- package/dist/src/functions/commands/tests-init.d.ts +7 -0
- package/dist/src/functions/commands/tests-init.js +225 -0
- package/dist/src/functions/commands/versions-check.d.ts +1 -1
- package/dist/src/functions/commands/versions-init.d.ts +3 -3
- package/dist/src/functions/commands/versions-update.d.ts +1 -1
- package/dist/src/functions/commands/versions-update.js +4 -2
- package/dist/src/functions/commands/watch.d.ts +3 -3
- package/dist/src/functions/commands/watch.js +1 -1
- package/dist/src/functions/db/local-db.d.ts +48 -0
- package/dist/src/functions/db/local-db.js +106 -0
- package/dist/src/functions/db/seed.d.ts +11 -0
- package/dist/src/functions/db/seed.js +22 -0
- package/dist/src/functions/db/sql-migrator.d.ts +26 -0
- package/dist/src/functions/db/sql-migrator.js +104 -0
- package/dist/src/functions/db/sqlite-codegen.d.ts +45 -0
- package/dist/src/functions/db/sqlite-codegen.js +294 -0
- package/dist/src/functions/db/zod-codegen.d.ts +10 -0
- package/dist/src/functions/db/zod-codegen.js +109 -0
- package/dist/src/functions/runtimes/fetch/index.d.ts +1 -1
- package/dist/src/functions/runtimes/nextjs/pikku-command-nextjs.d.ts +1 -1
- package/dist/src/functions/runtimes/nextjs/pikku-command-nextjs.js +21 -2
- package/dist/src/functions/runtimes/nextjs/serialize-nextjs-backend-worker-rpc-wrapper.d.ts +1 -0
- package/dist/src/functions/runtimes/nextjs/serialize-nextjs-backend-worker-rpc-wrapper.js +163 -0
- package/dist/src/functions/runtimes/nextjs/serialize-nextjs-http-wrapper.d.ts +1 -1
- package/dist/src/functions/runtimes/nextjs/serialize-nextjs-http-wrapper.js +5 -2
- package/dist/src/functions/runtimes/tanstack-start/pikku-command-tanstack-start.d.ts +1 -0
- package/dist/src/functions/runtimes/tanstack-start/pikku-command-tanstack-start.js +32 -0
- package/dist/src/functions/runtimes/tanstack-start/serialize-tanstack-start-shim.d.ts +11 -0
- package/dist/src/functions/runtimes/tanstack-start/serialize-tanstack-start-shim.js +36 -0
- package/dist/src/functions/runtimes/websocket/pikku-command-websocket-typed.d.ts +1 -1
- package/dist/src/functions/wirings/ai-agent/pikku-command-ai-agent-types.d.ts +1 -1
- package/dist/src/functions/wirings/ai-agent/pikku-command-ai-agent.d.ts +1 -1
- package/dist/src/functions/wirings/ai-agent/pikku-command-ai-agent.js +1 -10
- package/dist/src/functions/wirings/ai-agent/pikku-command-public-agent.d.ts +1 -1
- package/dist/src/functions/wirings/ai-agent/serialize-public-agent.js +76 -1
- package/dist/src/functions/wirings/channels/pikku-channels.d.ts +1 -1
- package/dist/src/functions/wirings/channels/pikku-command-channel-types.d.ts +1 -1
- package/dist/src/functions/wirings/channels/pikku-command-channels-map.d.ts +1 -1
- 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/cli/pikku-command-cli-entry.d.ts +1 -1
- package/dist/src/functions/wirings/cli/pikku-command-cli-entry.js +5 -2
- package/dist/src/functions/wirings/cli/pikku-command-cli-types.d.ts +5 -1
- package/dist/src/functions/wirings/cli/pikku-command-cli-types.js +8 -2
- package/dist/src/functions/wirings/cli/pikku-command-cli.d.ts +1 -1
- package/dist/src/functions/wirings/cli/serialize-channel-cli-client.js +27 -9
- package/dist/src/functions/wirings/cli/serialize-channel-cli.d.ts +5 -1
- package/dist/src/functions/wirings/cli/serialize-channel-cli.js +13 -3
- package/dist/src/functions/wirings/console/pikku-command-console-functions.d.ts +1 -1
- package/dist/src/functions/wirings/console/pikku-command-console-functions.js +5 -1
- package/dist/src/functions/wirings/console/pikku-command-node-types.d.ts +1 -1
- package/dist/src/functions/wirings/console/pikku-command-nodes-meta.d.ts +1 -1
- package/dist/src/functions/wirings/console/serialize-console-functions.js +5 -0
- package/dist/src/functions/wirings/credentials/pikku-command-credentials.d.ts +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-addon-types.d.ts +5 -1
- package/dist/src/functions/wirings/functions/pikku-command-addon-types.js +7 -2
- package/dist/src/functions/wirings/functions/pikku-command-function-types-split.d.ts +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-function-types-split.js +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-function-types.d.ts +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-functions.d.ts +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-services.d.ts +1 -1
- package/dist/src/functions/wirings/functions/schemas.d.ts +1 -1
- package/dist/src/functions/wirings/functions/serialize-function-types.js +105 -80
- package/dist/src/functions/wirings/gateway/pikku-command-gateway.d.ts +1 -1
- package/dist/src/functions/wirings/http/pikku-command-http-map.d.ts +1 -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/http/pikku-command-http-types.d.ts +1 -1
- package/dist/src/functions/wirings/http/pikku-command-openapi.d.ts +1 -1
- package/dist/src/functions/wirings/http/pikku-http-routes.d.ts +1 -1
- package/dist/src/functions/wirings/mcp/pikku-command-mcp-json.d.ts +1 -1
- package/dist/src/functions/wirings/mcp/pikku-command-mcp-types.d.ts +1 -1
- package/dist/src/functions/wirings/mcp/pikku-command-mcp.d.ts +1 -1
- package/dist/src/functions/wirings/middleware/pikku-command-middleware.d.ts +1 -1
- package/dist/src/functions/wirings/package/pikku-command-package-types.d.ts +2 -2
- package/dist/src/functions/wirings/package/pikku-command-package.d.ts +1 -1
- package/dist/src/functions/wirings/permissions/pikku-command-permissions.d.ts +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-service.d.ts +1 -1
- package/dist/src/functions/wirings/queue/pikku-command-queue-types.d.ts +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/queue/pikku-queue-map.d.ts +1 -1
- package/dist/src/functions/wirings/queue/pikku-queue.d.ts +1 -1
- package/dist/src/functions/wirings/realtime/pikku-command-events-scaffold.d.ts +1 -0
- package/dist/src/functions/wirings/realtime/pikku-command-events-scaffold.js +26 -0
- package/dist/src/functions/wirings/realtime/pikku-command-realtime.d.ts +1 -0
- package/dist/src/functions/wirings/realtime/pikku-command-realtime.js +35 -0
- package/dist/src/functions/wirings/realtime/serialize-events-scaffold.d.ts +23 -0
- package/dist/src/functions/wirings/realtime/serialize-events-scaffold.js +98 -0
- package/dist/src/functions/wirings/realtime/serialize-realtime-client.d.ts +22 -0
- package/dist/src/functions/wirings/realtime/serialize-realtime-client.js +337 -0
- package/dist/src/functions/wirings/rpc/pikku-command-public-rpc.d.ts +1 -1
- package/dist/src/functions/wirings/rpc/pikku-command-public-rpc.js +5 -1
- package/dist/src/functions/wirings/rpc/pikku-command-react-query.d.ts +1 -1
- package/dist/src/functions/wirings/rpc/pikku-command-remote-rpc.d.ts +1 -1
- package/dist/src/functions/wirings/rpc/pikku-command-remote-rpc.js +5 -1
- package/dist/src/functions/wirings/rpc/pikku-command-rpc-client.d.ts +1 -1
- package/dist/src/functions/wirings/rpc/pikku-command-rpc-client.js +3 -1
- package/dist/src/functions/wirings/rpc/pikku-command-rpc-map.d.ts +2 -2
- package/dist/src/functions/wirings/rpc/pikku-command-rpc.d.ts +2 -1
- package/dist/src/functions/wirings/rpc/pikku-command-rpc.js +13 -7
- package/dist/src/functions/wirings/rpc/serialize-public-rpc.js +1 -0
- package/dist/src/functions/wirings/rpc/serialize-react-query-hooks.js +1 -1
- package/dist/src/functions/wirings/rpc/serialize-remote-rpc.js +7 -1
- package/dist/src/functions/wirings/rpc/serialize-typed-rpc-map.js +16 -2
- package/dist/src/functions/wirings/scheduler/pikku-command-scheduler-types.d.ts +1 -1
- package/dist/src/functions/wirings/scheduler/pikku-command-scheduler.d.ts +1 -1
- package/dist/src/functions/wirings/secrets/pikku-command-secrets.d.ts +1 -1
- package/dist/src/functions/wirings/triggers/pikku-command-trigger-types.d.ts +1 -1
- package/dist/src/functions/wirings/triggers/pikku-command-trigger-types.js +1 -1
- package/dist/src/functions/wirings/triggers/pikku-command-trigger.d.ts +1 -1
- package/dist/src/functions/wirings/variables/pikku-command-variables.d.ts +1 -1
- package/dist/src/functions/wirings/workflow/pikku-command-workflow-routes.d.ts +1 -1
- package/dist/src/functions/wirings/workflow/pikku-command-workflow-routes.js +1 -1
- package/dist/src/functions/wirings/workflow/pikku-command-workflow.d.ts +5 -1
- package/dist/src/functions/wirings/workflow/pikku-command-workflow.js +18 -4
- package/dist/src/functions/wirings/workflow/serialize-workflow-bootstrap-map.d.ts +3 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-bootstrap-map.js +40 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-routes.js +56 -2
- package/dist/src/functions/workflows/all.workflow.js +45 -12
- package/dist/src/scaffold/rpc-remote.gen.d.ts +3 -3
- package/dist/src/scaffold/rpc-remote.gen.js +7 -2
- package/dist/src/scaffold/workflow-routes.gen.d.ts +18 -18
- package/dist/src/scaffold/workflow-routes.gen.js +33 -1
- package/dist/src/services/cli-logger.service.d.ts +22 -3
- package/dist/src/services/cli-logger.service.js +107 -41
- package/dist/src/services.js +32 -67
- package/dist/src/utils/generate-bootstrap-file.js +3 -0
- package/dist/src/utils/parse-cli-filters.d.ts +18 -0
- package/dist/src/utils/parse-cli-filters.js +99 -0
- package/dist/src/utils/pikku-cli-config.js +29 -9
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -4
- package/skills/pikku-addon/SKILL.md +330 -0
- package/skills/pikku-ai-agent/SKILL.md +227 -0
- package/skills/pikku-ai-vercel/SKILL.md +78 -0
- package/skills/pikku-ai-voice/SKILL.md +85 -0
- package/skills/pikku-auth-js/SKILL.md +106 -0
- package/skills/pikku-aws/SKILL.md +107 -0
- package/skills/pikku-backblaze/SKILL.md +70 -0
- package/skills/pikku-cli/SKILL.md +281 -0
- package/skills/pikku-concepts/SKILL.md +281 -0
- package/skills/pikku-concepts/references/concept-mapping.md +528 -0
- package/skills/pikku-config/SKILL.md +208 -0
- package/skills/pikku-cron/SKILL.md +211 -0
- package/skills/pikku-deploy-azure/SKILL.md +69 -0
- package/skills/pikku-deploy-cloudflare/SKILL.md +80 -0
- package/skills/pikku-deploy-express/SKILL.md +83 -0
- package/skills/pikku-deploy-fastify/SKILL.md +70 -0
- package/skills/pikku-deploy-lambda/SKILL.md +107 -0
- package/skills/pikku-deploy-nextjs/SKILL.md +76 -0
- package/skills/pikku-deploy-uws/SKILL.md +85 -0
- package/skills/pikku-fabric/SKILL.md +245 -0
- package/skills/pikku-feature/SKILL.md +258 -0
- package/skills/pikku-gateway-slack/SKILL.md +112 -0
- package/skills/pikku-http/SKILL.md +317 -0
- package/skills/pikku-i18n/SKILL.md +208 -0
- package/skills/pikku-info/SKILL.md +95 -0
- package/skills/pikku-jose/SKILL.md +102 -0
- package/skills/pikku-kysely/SKILL.md +145 -0
- package/skills/pikku-mcp/SKILL.md +237 -0
- package/skills/pikku-mongodb/SKILL.md +102 -0
- package/skills/pikku-n8n-addon-map/SKILL.md +178 -0
- package/skills/pikku-n8n-code-translate/SKILL.md +166 -0
- package/skills/pikku-pino/SKILL.md +77 -0
- package/skills/pikku-queue/SKILL.md +237 -0
- package/skills/pikku-react/SKILL.md +183 -0
- package/skills/pikku-react-query/SKILL.md +205 -0
- package/skills/pikku-realtime/SKILL.md +285 -0
- package/skills/pikku-redis/SKILL.md +87 -0
- package/skills/pikku-rpc/SKILL.md +168 -0
- package/skills/pikku-rtl/SKILL.md +205 -0
- package/skills/pikku-schedule/SKILL.md +54 -0
- package/skills/pikku-schema-ajv/SKILL.md +60 -0
- package/skills/pikku-schema-cfworker/SKILL.md +60 -0
- package/skills/pikku-security/SKILL.md +243 -0
- package/skills/pikku-services/SKILL.md +247 -0
- package/skills/pikku-template-clone/SKILL.md +39 -0
- package/skills/pikku-testing/SKILL.md +428 -0
- package/skills/pikku-trigger/SKILL.md +177 -0
- package/skills/pikku-versioning/SKILL.md +169 -0
- package/skills/pikku-websocket/SKILL.md +239 -0
- package/skills/pikku-workflow/SKILL.md +283 -0
- package/skills/pikku-workflows-client/SKILL.md +150 -0
- package/skills/pikku-ws/SKILL.md +45 -0
- package/console-app/assets/index-BpY2pSuA.css +0 -10
- package/console-app/assets/index-DXLy-_D4.js +0 -717
- 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 → PikkuCLIEntryOutput.schema.json} +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
process.removeAllListeners('warning')
|
|
2
|
+
process.on('warning', (w) => {
|
|
3
|
+
if (w.name === 'ExperimentalWarning' && w.message.includes('SQLite')) return
|
|
4
|
+
process.stderr.write(`${w.name}: ${w.message}\n`)
|
|
5
|
+
})
|
|
6
|
+
async function checkForUpdate() {
|
|
7
|
+
if (process.env.CI || !process.stderr.isTTY) return
|
|
8
|
+
try {
|
|
9
|
+
const res = await fetch('https://registry.npmjs.org/@pikku/cli/latest', {
|
|
10
|
+
signal: AbortSignal.timeout(3000),
|
|
11
|
+
})
|
|
12
|
+
if (!res.ok) return
|
|
13
|
+
const { version: latest } = await res.json()
|
|
14
|
+
if (latest !== '0.12.22') {
|
|
15
|
+
process.stderr.write(`\n Update available 0.12.22 → ${latest}\n brew upgrade pikku or npm install -g @pikku/cli\n\n`)
|
|
16
|
+
}
|
|
17
|
+
} catch {}
|
|
18
|
+
}
|
|
19
|
+
import { PikkuCLI } from '../.pikku/cli/pikku-cli.gen.js'
|
|
20
|
+
const updateCheck = checkForUpdate()
|
|
21
|
+
await PikkuCLI(process.argv.slice(2))
|
|
22
|
+
await updateCheck
|
|
23
|
+
process.exit(0)
|
package/dist/bin/pikku.js
CHANGED
|
@@ -1,15 +1,42 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
process.removeAllListeners('warning');
|
|
3
|
+
process.on('warning', (w) => {
|
|
4
|
+
if (w.name === 'ExperimentalWarning' && w.message.includes('SQLite'))
|
|
5
|
+
return;
|
|
6
|
+
process.stderr.write(`${w.name}: ${w.message}\n`);
|
|
7
|
+
});
|
|
8
|
+
import { existsSync, readFileSync } from 'fs';
|
|
3
9
|
import { fileURLToPath, pathToFileURL } from 'url';
|
|
4
10
|
import { dirname, join } from 'path';
|
|
5
11
|
const __filename = fileURLToPath(import.meta.url);
|
|
6
12
|
const __dirname = dirname(__filename);
|
|
13
|
+
async function checkForUpdate() {
|
|
14
|
+
if (process.env.CI || !process.stderr.isTTY)
|
|
15
|
+
return;
|
|
16
|
+
try {
|
|
17
|
+
const { version: current } = JSON.parse(readFileSync(join(__dirname, '../package.json'), 'utf-8'));
|
|
18
|
+
const res = await fetch('https://registry.npmjs.org/@pikku/cli/latest', {
|
|
19
|
+
signal: AbortSignal.timeout(3000),
|
|
20
|
+
});
|
|
21
|
+
if (!res.ok)
|
|
22
|
+
return;
|
|
23
|
+
const { version: latest } = (await res.json());
|
|
24
|
+
if (latest !== current) {
|
|
25
|
+
process.stderr.write(`\n Update available ${current} → ${latest}\n brew upgrade pikku or npm install -g @pikku/cli\n\n`);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
catch {
|
|
29
|
+
// never block the CLI for a network check
|
|
30
|
+
}
|
|
31
|
+
}
|
|
7
32
|
// Use the generated Pikku CLI
|
|
8
33
|
const pikkuCliPath = join(__dirname, '../.pikku/cli/pikku-cli.gen.js');
|
|
9
34
|
if (existsSync(pikkuCliPath)) {
|
|
10
35
|
try {
|
|
11
36
|
const { PikkuCLI } = await import(pathToFileURL(pikkuCliPath).href);
|
|
37
|
+
const updateCheck = checkForUpdate();
|
|
12
38
|
await PikkuCLI(process.argv.slice(2));
|
|
39
|
+
await updateCheck;
|
|
13
40
|
process.exit(0);
|
|
14
41
|
}
|
|
15
42
|
catch (error) {
|
package/dist/src/cli.wiring.js
CHANGED
|
@@ -3,16 +3,23 @@ import { pikkuFetch } from './functions/runtimes/fetch/index.js';
|
|
|
3
3
|
import { pikkuWebSocketTyped } from './functions/runtimes/websocket/pikku-command-websocket-typed.js';
|
|
4
4
|
import { pikkuRPCClient } from './functions/wirings/rpc/pikku-command-rpc-client.js';
|
|
5
5
|
import { pikkuReactQuery } from './functions/wirings/rpc/pikku-command-react-query.js';
|
|
6
|
+
import { pikkuTanStackStart } from './functions/runtimes/tanstack-start/pikku-command-tanstack-start.js';
|
|
6
7
|
import { pikkuQueueService } from './functions/wirings/queue/pikku-command-queue-service.js';
|
|
7
8
|
import { pikkuOpenAPI } from './functions/wirings/http/pikku-command-openapi.js';
|
|
8
9
|
import { pikkuNext } from './functions/runtimes/nextjs/pikku-command-nextjs.js';
|
|
9
10
|
import { pikkuCLICommand, wireCLI } from '../.pikku/cli/pikku-cli-types.gen.js';
|
|
11
|
+
import { fabricCommands } from './fabric/fabric-commands.js';
|
|
10
12
|
import { all } from './functions/commands/all.js';
|
|
11
13
|
import { bootstrap } from './functions/commands/bootstrap.js';
|
|
12
14
|
import { watch } from './functions/commands/watch.js';
|
|
13
15
|
import { consoleCommand } from './functions/commands/console.js';
|
|
14
16
|
import { dev } from './functions/commands/dev.js';
|
|
17
|
+
import { dbMigrate } from './functions/commands/db-migrate.js';
|
|
18
|
+
import { dbSeed } from './functions/commands/db-seed.js';
|
|
19
|
+
import { dbReset } from './functions/commands/db-reset.js';
|
|
15
20
|
import { pikkuVersionsInit } from './functions/commands/versions-init.js';
|
|
21
|
+
import { pikkuTestsInit } from './functions/commands/tests-init.js';
|
|
22
|
+
import { pikkuTestsCoverage } from './functions/commands/tests-coverage.js';
|
|
16
23
|
import { pikkuVersionsCheck } from './functions/commands/versions-check.js';
|
|
17
24
|
import { pikkuVersionsUpdate } from './functions/commands/versions-update.js';
|
|
18
25
|
import { pikkuNewFunction } from './functions/commands/new-function.js';
|
|
@@ -21,15 +28,19 @@ import { pikkuNewMiddleware } from './functions/commands/new-middleware.js';
|
|
|
21
28
|
import { pikkuNewPermission } from './functions/commands/new-permission.js';
|
|
22
29
|
import { pikkuNewAddon } from './functions/commands/new-addon.js';
|
|
23
30
|
import { pikkuInfoFunctions, pikkuInfoTags, pikkuInfoMiddleware, pikkuInfoPermissions, } from './functions/commands/info.js';
|
|
24
|
-
import { enableRpc, enableConsole, enableAgent, enableWorkflow, } from './functions/commands/enable.js';
|
|
31
|
+
import { enableRpc, enableConsole, enableAgent, enableWorkflow, enableEvents, } from './functions/commands/enable.js';
|
|
32
|
+
import { pikkuRealtime } from './functions/wirings/realtime/pikku-command-realtime.js';
|
|
33
|
+
import { binary } from './functions/commands/binary.js';
|
|
25
34
|
import { deployPlan } from './functions/commands/deploy-plan.js';
|
|
26
35
|
import { deployApply } from './functions/commands/deploy-apply.js';
|
|
27
36
|
import { deployInfo } from './functions/commands/deploy-info.js';
|
|
28
|
-
|
|
37
|
+
import { pikkuSkillsInstall, pikkuSkillsList, } from './functions/commands/skills.js';
|
|
38
|
+
import { pikkuMetaFunctionsGet, pikkuMetaFunctionsList, pikkuMetaSchemasGet, pikkuMetaSchemasList, pikkuMetaMiddlewareGet, pikkuMetaMiddlewareList, pikkuMetaPermissionsGet, pikkuMetaPermissionsList, pikkuMetaWiresList, pikkuMetaWiresHttp, pikkuMetaWiresScheduler, pikkuMetaWiresQueue, pikkuMetaWiresChannel, pikkuMetaWiresTrigger, pikkuMetaWiresType, pikkuMetaWorkflowsGet, pikkuMetaWorkflowsList, pikkuMetaContext, pikkuMetaClients, } from './functions/commands/meta.js';
|
|
39
|
+
import { defaultCLIRenderer } from './services.js';
|
|
29
40
|
wireCLI({
|
|
30
41
|
program: 'pikku',
|
|
31
42
|
description: 'Pikku CLI - Code generation tool for type-safe backend development',
|
|
32
|
-
|
|
43
|
+
render: defaultCLIRenderer,
|
|
33
44
|
options: {
|
|
34
45
|
config: {
|
|
35
46
|
description: 'Path to pikku.config.json file',
|
|
@@ -40,6 +51,16 @@ wireCLI({
|
|
|
40
51
|
default: 'info',
|
|
41
52
|
short: 'l',
|
|
42
53
|
},
|
|
54
|
+
output: {
|
|
55
|
+
description: 'Output format (json emits NDJSON)',
|
|
56
|
+
choices: ['text', 'json'],
|
|
57
|
+
default: 'text',
|
|
58
|
+
},
|
|
59
|
+
json: {
|
|
60
|
+
description: 'Alias for --output json',
|
|
61
|
+
default: false,
|
|
62
|
+
short: 'j',
|
|
63
|
+
},
|
|
43
64
|
userSessionType: {
|
|
44
65
|
description: 'Specify which UserSession type to use (when multiple exist)',
|
|
45
66
|
},
|
|
@@ -66,27 +87,54 @@ wireCLI({
|
|
|
66
87
|
description: 'Generate all Pikku files (types, schemas, wirings, etc.)',
|
|
67
88
|
isDefault: true,
|
|
68
89
|
options: {
|
|
90
|
+
filter: {
|
|
91
|
+
description: 'Named filter(s) from pikku.config.json filters map (comma-separated)',
|
|
92
|
+
},
|
|
69
93
|
tags: {
|
|
70
|
-
description: '
|
|
94
|
+
description: 'Include functions by tags (comma-separated)',
|
|
71
95
|
short: 't',
|
|
72
96
|
},
|
|
73
|
-
|
|
74
|
-
description: 'Filter
|
|
97
|
+
wires: {
|
|
98
|
+
description: 'Filter direct wirings by category (comma-separated)',
|
|
99
|
+
},
|
|
100
|
+
excludeWires: {
|
|
101
|
+
description: 'Exclude direct wirings by category (comma-separated)',
|
|
102
|
+
},
|
|
103
|
+
excludeTags: {
|
|
104
|
+
description: 'Exclude functions by tags (comma-separated)',
|
|
75
105
|
},
|
|
76
106
|
directories: {
|
|
77
|
-
description: '
|
|
107
|
+
description: 'Include functions by directories (comma-separated)',
|
|
78
108
|
short: 'd',
|
|
79
109
|
},
|
|
110
|
+
excludeDirectories: {
|
|
111
|
+
description: 'Exclude functions by directories (comma-separated)',
|
|
112
|
+
},
|
|
80
113
|
httpMethods: {
|
|
81
|
-
description: '
|
|
114
|
+
description: 'Include HTTP routes by methods (comma-separated)',
|
|
115
|
+
},
|
|
116
|
+
excludeHttpMethods: {
|
|
117
|
+
description: 'Exclude HTTP routes by methods (comma-separated)',
|
|
82
118
|
},
|
|
83
119
|
httpRoutes: {
|
|
84
|
-
description: '
|
|
120
|
+
description: 'Include HTTP routes by route patterns (comma-separated)',
|
|
121
|
+
},
|
|
122
|
+
excludeHttpRoutes: {
|
|
123
|
+
description: 'Exclude HTTP routes by route patterns (comma-separated)',
|
|
85
124
|
},
|
|
86
125
|
names: {
|
|
87
|
-
description: '
|
|
126
|
+
description: 'Include functions by name patterns (supports wildcards)',
|
|
88
127
|
short: 'n',
|
|
89
128
|
},
|
|
129
|
+
excludeNames: {
|
|
130
|
+
description: 'Exclude functions by name patterns (supports wildcards)',
|
|
131
|
+
},
|
|
132
|
+
target: {
|
|
133
|
+
description: 'Include functions by deploy target (comma-separated: serverless, server)',
|
|
134
|
+
},
|
|
135
|
+
excludeTarget: {
|
|
136
|
+
description: 'Exclude functions by deploy target (comma-separated: serverless, server)',
|
|
137
|
+
},
|
|
90
138
|
},
|
|
91
139
|
}),
|
|
92
140
|
bootstrap: pikkuCLICommand({
|
|
@@ -146,6 +194,27 @@ wireCLI({
|
|
|
146
194
|
func: pikkuSchemas,
|
|
147
195
|
description: 'Generate JSON schemas for function input/output types',
|
|
148
196
|
}),
|
|
197
|
+
db: {
|
|
198
|
+
description: 'Local development database commands',
|
|
199
|
+
subcommands: {
|
|
200
|
+
migrate: pikkuCLICommand({
|
|
201
|
+
func: dbMigrate,
|
|
202
|
+
description: 'Apply pending SQL migrations and regenerate db/schema.d.ts',
|
|
203
|
+
}),
|
|
204
|
+
seed: pikkuCLICommand({
|
|
205
|
+
func: dbSeed,
|
|
206
|
+
description: 'Apply db/seed.sql to the dev database',
|
|
207
|
+
}),
|
|
208
|
+
reset: pikkuCLICommand({
|
|
209
|
+
func: dbReset,
|
|
210
|
+
description: 'Wipe and recreate the dev database (migrate + seed)',
|
|
211
|
+
}),
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
fabric: {
|
|
215
|
+
description: 'PikkuFabric commands (login, link, deploy, domains, secrets, logs, …)',
|
|
216
|
+
subcommands: fabricCommands,
|
|
217
|
+
},
|
|
149
218
|
fetch: pikkuCLICommand({
|
|
150
219
|
func: pikkuFetch,
|
|
151
220
|
description: 'Generate type-safe HTTP fetch client',
|
|
@@ -162,6 +231,14 @@ wireCLI({
|
|
|
162
231
|
func: pikkuReactQuery,
|
|
163
232
|
description: 'Generate React Query hooks from RPC map',
|
|
164
233
|
}),
|
|
234
|
+
'tanstack-start': pikkuCLICommand({
|
|
235
|
+
func: pikkuTanStackStart,
|
|
236
|
+
description: 'Generate the TanStack Start server-function shim (makeApi)',
|
|
237
|
+
}),
|
|
238
|
+
realtime: pikkuCLICommand({
|
|
239
|
+
func: pikkuRealtime,
|
|
240
|
+
description: 'Generate the typed realtime client (PikkuRealtime websocket + SSE helper)',
|
|
241
|
+
}),
|
|
165
242
|
'queue-service': pikkuCLICommand({
|
|
166
243
|
func: pikkuQueueService,
|
|
167
244
|
description: 'Generate queue service wrapper',
|
|
@@ -217,6 +294,16 @@ wireCLI({
|
|
|
217
294
|
},
|
|
218
295
|
},
|
|
219
296
|
}),
|
|
297
|
+
events: pikkuCLICommand({
|
|
298
|
+
func: enableEvents,
|
|
299
|
+
description: 'Enable the realtime events channel + SSE stream (scaffolds events.gen.ts)',
|
|
300
|
+
options: {
|
|
301
|
+
noAuth: {
|
|
302
|
+
description: 'Disable auth requirement',
|
|
303
|
+
default: false,
|
|
304
|
+
},
|
|
305
|
+
},
|
|
306
|
+
}),
|
|
220
307
|
},
|
|
221
308
|
},
|
|
222
309
|
new: {
|
|
@@ -323,6 +410,29 @@ wireCLI({
|
|
|
323
410
|
}),
|
|
324
411
|
},
|
|
325
412
|
},
|
|
413
|
+
tests: {
|
|
414
|
+
description: 'Manage function tests',
|
|
415
|
+
subcommands: {
|
|
416
|
+
init: pikkuCLICommand({
|
|
417
|
+
func: pikkuTestsInit,
|
|
418
|
+
description: 'Scaffold the ftest Cucumber harness in your functions package',
|
|
419
|
+
options: {
|
|
420
|
+
force: {
|
|
421
|
+
description: 'Overwrite existing ftest directory',
|
|
422
|
+
},
|
|
423
|
+
},
|
|
424
|
+
}),
|
|
425
|
+
coverage: pikkuCLICommand({
|
|
426
|
+
func: pikkuTestsCoverage,
|
|
427
|
+
description: 'Run the tests suite under c8 and emit tests/coverage/function-coverage.json',
|
|
428
|
+
options: {
|
|
429
|
+
noRun: {
|
|
430
|
+
description: 'Skip running the suite and only re-analyse an existing coverage-final.json',
|
|
431
|
+
},
|
|
432
|
+
},
|
|
433
|
+
}),
|
|
434
|
+
},
|
|
435
|
+
},
|
|
326
436
|
versions: {
|
|
327
437
|
description: 'Manage function contract versions',
|
|
328
438
|
subcommands: {
|
|
@@ -345,6 +455,15 @@ wireCLI({
|
|
|
345
455
|
}),
|
|
346
456
|
},
|
|
347
457
|
},
|
|
458
|
+
binary: pikkuCLICommand({
|
|
459
|
+
func: binary,
|
|
460
|
+
description: 'Compile a TypeScript entrypoint to a self-contained native binary using bun build --compile',
|
|
461
|
+
options: {
|
|
462
|
+
compileTarget: {
|
|
463
|
+
description: 'Override compilation target (e.g. bun-linux-x64). Defaults to targets in pikku.config.json.',
|
|
464
|
+
},
|
|
465
|
+
},
|
|
466
|
+
}),
|
|
348
467
|
deploy: {
|
|
349
468
|
description: 'Deploy Pikku project to cloud infrastructure',
|
|
350
469
|
subcommands: {
|
|
@@ -393,6 +512,163 @@ wireCLI({
|
|
|
393
512
|
}),
|
|
394
513
|
},
|
|
395
514
|
},
|
|
515
|
+
skills: {
|
|
516
|
+
description: 'Install bundled agent skills (Claude Code today; Codex/Gemini coming soon)',
|
|
517
|
+
subcommands: {
|
|
518
|
+
list: pikkuCLICommand({
|
|
519
|
+
func: pikkuSkillsList,
|
|
520
|
+
description: 'List skills bundled with @pikku/cli and which are installed',
|
|
521
|
+
}),
|
|
522
|
+
install: pikkuCLICommand({
|
|
523
|
+
func: pikkuSkillsInstall,
|
|
524
|
+
description: 'Copy bundled skills into the current project',
|
|
525
|
+
options: {
|
|
526
|
+
agent: {
|
|
527
|
+
description: 'Target agent (claude | opencode | codex | gemini). Default: claude',
|
|
528
|
+
default: 'claude',
|
|
529
|
+
},
|
|
530
|
+
only: {
|
|
531
|
+
description: 'Comma-separated list of skill names to install (default: all)',
|
|
532
|
+
},
|
|
533
|
+
core: {
|
|
534
|
+
description: 'Install skills whose frontmatter includes installGroups: [core]',
|
|
535
|
+
default: false,
|
|
536
|
+
},
|
|
537
|
+
fabric: {
|
|
538
|
+
description: 'Install skills whose frontmatter includes installGroups: [fabric]',
|
|
539
|
+
default: false,
|
|
540
|
+
},
|
|
541
|
+
update: {
|
|
542
|
+
description: 'Overwrite existing skills if already installed',
|
|
543
|
+
default: false,
|
|
544
|
+
},
|
|
545
|
+
},
|
|
546
|
+
}),
|
|
547
|
+
},
|
|
548
|
+
},
|
|
549
|
+
meta: {
|
|
550
|
+
description: 'Inspect project metadata in machine-readable form',
|
|
551
|
+
subcommands: {
|
|
552
|
+
context: pikkuCLICommand({
|
|
553
|
+
func: pikkuMetaContext,
|
|
554
|
+
description: 'Bulk project context for planners (functions, wires, middleware, permissions, workflows, capabilities, layout) in one call',
|
|
555
|
+
}),
|
|
556
|
+
clients: pikkuCLICommand({
|
|
557
|
+
func: pikkuMetaClients,
|
|
558
|
+
description: 'Frontend-targeted metadata: exposed RPCs, workflows, channels with their input/output type names and descriptions',
|
|
559
|
+
}),
|
|
560
|
+
functions: {
|
|
561
|
+
func: pikkuMetaFunctionsList,
|
|
562
|
+
description: 'Inspect function metadata',
|
|
563
|
+
subcommands: {
|
|
564
|
+
list: pikkuCLICommand({
|
|
565
|
+
func: pikkuMetaFunctionsList,
|
|
566
|
+
description: 'List available functions (lightweight index)',
|
|
567
|
+
}),
|
|
568
|
+
get: pikkuCLICommand({
|
|
569
|
+
func: pikkuMetaFunctionsGet,
|
|
570
|
+
description: 'Get full metadata for a function id',
|
|
571
|
+
parameters: '<functionId>',
|
|
572
|
+
}),
|
|
573
|
+
},
|
|
574
|
+
},
|
|
575
|
+
schemas: {
|
|
576
|
+
func: pikkuMetaSchemasList,
|
|
577
|
+
description: 'Inspect generated JSON schemas',
|
|
578
|
+
subcommands: {
|
|
579
|
+
list: pikkuCLICommand({
|
|
580
|
+
func: pikkuMetaSchemasList,
|
|
581
|
+
description: 'List generated JSON schema names',
|
|
582
|
+
}),
|
|
583
|
+
get: pikkuCLICommand({
|
|
584
|
+
func: pikkuMetaSchemasGet,
|
|
585
|
+
description: 'Get one generated JSON schema by name',
|
|
586
|
+
parameters: '<schemaName>',
|
|
587
|
+
}),
|
|
588
|
+
},
|
|
589
|
+
},
|
|
590
|
+
workflows: {
|
|
591
|
+
func: pikkuMetaWorkflowsList,
|
|
592
|
+
description: 'Inspect workflow metadata',
|
|
593
|
+
subcommands: {
|
|
594
|
+
list: pikkuCLICommand({
|
|
595
|
+
func: pikkuMetaWorkflowsList,
|
|
596
|
+
description: 'List available workflows (lightweight index)',
|
|
597
|
+
}),
|
|
598
|
+
get: pikkuCLICommand({
|
|
599
|
+
func: pikkuMetaWorkflowsGet,
|
|
600
|
+
description: 'Get full metadata for a workflow id',
|
|
601
|
+
parameters: '<workflowId>',
|
|
602
|
+
}),
|
|
603
|
+
},
|
|
604
|
+
},
|
|
605
|
+
middleware: {
|
|
606
|
+
func: pikkuMetaMiddlewareList,
|
|
607
|
+
description: 'Inspect middleware metadata',
|
|
608
|
+
subcommands: {
|
|
609
|
+
list: pikkuCLICommand({
|
|
610
|
+
func: pikkuMetaMiddlewareList,
|
|
611
|
+
description: 'List available middleware (lightweight index)',
|
|
612
|
+
}),
|
|
613
|
+
get: pikkuCLICommand({
|
|
614
|
+
func: pikkuMetaMiddlewareGet,
|
|
615
|
+
description: 'Get full metadata for a middleware id',
|
|
616
|
+
parameters: '<middlewareId>',
|
|
617
|
+
}),
|
|
618
|
+
},
|
|
619
|
+
},
|
|
620
|
+
permissions: {
|
|
621
|
+
func: pikkuMetaPermissionsList,
|
|
622
|
+
description: 'Inspect permission metadata',
|
|
623
|
+
subcommands: {
|
|
624
|
+
list: pikkuCLICommand({
|
|
625
|
+
func: pikkuMetaPermissionsList,
|
|
626
|
+
description: 'List available permissions (lightweight index)',
|
|
627
|
+
}),
|
|
628
|
+
get: pikkuCLICommand({
|
|
629
|
+
func: pikkuMetaPermissionsGet,
|
|
630
|
+
description: 'Get full metadata for a permission id',
|
|
631
|
+
parameters: '<permissionId>',
|
|
632
|
+
}),
|
|
633
|
+
},
|
|
634
|
+
},
|
|
635
|
+
wires: {
|
|
636
|
+
func: pikkuMetaWiresList,
|
|
637
|
+
description: 'Inspect wire metadata',
|
|
638
|
+
subcommands: {
|
|
639
|
+
list: pikkuCLICommand({
|
|
640
|
+
func: pikkuMetaWiresList,
|
|
641
|
+
description: 'List available wire types and counts',
|
|
642
|
+
}),
|
|
643
|
+
http: pikkuCLICommand({
|
|
644
|
+
func: pikkuMetaWiresHttp,
|
|
645
|
+
description: 'List HTTP wire entries',
|
|
646
|
+
}),
|
|
647
|
+
scheduler: pikkuCLICommand({
|
|
648
|
+
func: pikkuMetaWiresScheduler,
|
|
649
|
+
description: 'List scheduler wire entries',
|
|
650
|
+
}),
|
|
651
|
+
queue: pikkuCLICommand({
|
|
652
|
+
func: pikkuMetaWiresQueue,
|
|
653
|
+
description: 'List queue wire entries',
|
|
654
|
+
}),
|
|
655
|
+
channel: pikkuCLICommand({
|
|
656
|
+
func: pikkuMetaWiresChannel,
|
|
657
|
+
description: 'List channel wire entries',
|
|
658
|
+
}),
|
|
659
|
+
trigger: pikkuCLICommand({
|
|
660
|
+
func: pikkuMetaWiresTrigger,
|
|
661
|
+
description: 'List trigger wire entries',
|
|
662
|
+
}),
|
|
663
|
+
get: pikkuCLICommand({
|
|
664
|
+
func: pikkuMetaWiresType,
|
|
665
|
+
description: 'Get wire entries for a type',
|
|
666
|
+
parameters: '<type>',
|
|
667
|
+
}),
|
|
668
|
+
},
|
|
669
|
+
},
|
|
670
|
+
},
|
|
671
|
+
},
|
|
396
672
|
info: pikkuCLICommand({
|
|
397
673
|
func: pikkuInfoFunctions,
|
|
398
674
|
description: 'Show information about Pikku project resources',
|
|
@@ -6,12 +6,27 @@
|
|
|
6
6
|
* Gateways (MCP, agents, channels) dispatch to function units via RPC.
|
|
7
7
|
* Workflow orchestrators dispatch to step units via queue or RPC (inline).
|
|
8
8
|
*/
|
|
9
|
-
import type
|
|
9
|
+
import { type InspectorState } from '@pikku/inspector';
|
|
10
10
|
import type { DeploymentManifest } from './manifest.js';
|
|
11
11
|
export interface AnalyzerOptions {
|
|
12
12
|
projectId: string;
|
|
13
13
|
/** Services that can't run serverless — functions using them get target: 'server' */
|
|
14
14
|
serverlessIncompatible?: string[];
|
|
15
|
+
/**
|
|
16
|
+
* When `true` (default), the analyzer synthesizes a per-workflow
|
|
17
|
+
* orchestrator queue + a per-step queue, plus the matching producer
|
|
18
|
+
* bindings, so providers whose workflow runtime fans out via queues
|
|
19
|
+
* have everything they need.
|
|
20
|
+
*
|
|
21
|
+
* Set to `false` for providers whose workflow runtime dispatches steps
|
|
22
|
+
* natively (e.g. Cloudflare's DO-backed `CloudflareWorkflowService`).
|
|
23
|
+
* In that case no `wf-orchestrator-*` / `wf-step-*` queues are added
|
|
24
|
+
* to `manifest.queues` and the orchestrator unit is emitted with no
|
|
25
|
+
* `{ type: 'queue' }` handler — only the HTTP routes.
|
|
26
|
+
*
|
|
27
|
+
* Queues created via explicit `wireQueue(...)` user code are unaffected.
|
|
28
|
+
*/
|
|
29
|
+
workflowQueues?: boolean;
|
|
15
30
|
}
|
|
16
31
|
export declare function analyzeDeployment(state: InspectorState, options: AnalyzerOptions): DeploymentManifest;
|
|
17
32
|
export declare function toSafeKebab(str: string): string;
|