@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
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import { LogLevel } from '@pikku/core/services';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
| ____/ | |_/ ) |_/ ) | | |
|
|
8
|
-
| | | | _ (| _ (| _ (| |_| |
|
|
9
|
-
|_| |_|_| _)_| _)____/
|
|
10
|
-
`;
|
|
3
|
+
// Compact one-line wordmark — the old multi-line ASCII art got cropped in
|
|
4
|
+
// short/narrow AI-agent panes. Coloured directly (not via the blue `info`
|
|
5
|
+
// path) so the cyan/bold render correctly.
|
|
6
|
+
const logo = `${chalk.cyan('◇◆')} ${chalk.bold('pikku')} ${chalk.cyan.bold('::')}`;
|
|
11
7
|
const BASE_ERROR_URL = 'https://pikku.dev/docs/pikku-cli/errors';
|
|
8
|
+
const ANSI_ESCAPE_REGEX = /\x1B\[[0-?]*[ -/]*[@-~]/g;
|
|
12
9
|
export class CLILogger {
|
|
13
10
|
silent;
|
|
14
|
-
level = LogLevel.
|
|
11
|
+
level = LogLevel.info; // default to info level
|
|
15
12
|
criticalErrors = [];
|
|
13
|
+
outputMode = 'text';
|
|
14
|
+
jsonFlushHookRegistered = false;
|
|
16
15
|
constructor({ logLogo, silent = false, }) {
|
|
17
16
|
this.silent = silent;
|
|
18
17
|
if (logLogo && !silent) {
|
|
@@ -25,65 +24,132 @@ export class CLILogger {
|
|
|
25
24
|
setSilent(silent) {
|
|
26
25
|
this.silent = silent;
|
|
27
26
|
}
|
|
27
|
+
setOutputMode(mode) {
|
|
28
|
+
this.outputMode = mode;
|
|
29
|
+
if (mode === 'json') {
|
|
30
|
+
this.ensureJSONFlushHook();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
getOutputMode() {
|
|
34
|
+
return this.outputMode;
|
|
35
|
+
}
|
|
28
36
|
isSilent() {
|
|
29
37
|
return this.silent;
|
|
30
38
|
}
|
|
39
|
+
normalizeMessage(message) {
|
|
40
|
+
const str = typeof message === 'string'
|
|
41
|
+
? message
|
|
42
|
+
: message instanceof Error
|
|
43
|
+
? (message.stack ?? message.message)
|
|
44
|
+
: typeof message === 'object' && message !== null
|
|
45
|
+
? JSON.stringify(message)
|
|
46
|
+
: String(message);
|
|
47
|
+
if (this.outputMode === 'json') {
|
|
48
|
+
return str.replace(ANSI_ESCAPE_REGEX, '');
|
|
49
|
+
}
|
|
50
|
+
return str;
|
|
51
|
+
}
|
|
52
|
+
writeJSONLine(payload) {
|
|
53
|
+
// Logs go to stderr so stdout is reserved for command data output.
|
|
54
|
+
// This lets consumers pipe `pikku <cmd> --json | jq` or
|
|
55
|
+
// `pikku meta context --json | pikku plan ingest -` without log noise.
|
|
56
|
+
process.stderr.write(`${JSON.stringify(payload)}\n`);
|
|
57
|
+
}
|
|
58
|
+
ensureJSONFlushHook() {
|
|
59
|
+
if (this.jsonFlushHookRegistered)
|
|
60
|
+
return;
|
|
61
|
+
this.jsonFlushHookRegistered = true;
|
|
62
|
+
process.once('beforeExit', () => this.flushJSONBuffer());
|
|
63
|
+
process.once('exit', () => this.flushJSONBuffer());
|
|
64
|
+
}
|
|
65
|
+
// NDJSON records are written synchronously in `emit` so consumers can
|
|
66
|
+
// stream output; nothing is buffered. Kept as a no-op because the
|
|
67
|
+
// beforeExit/exit hooks installed by `ensureJSONFlushHook` still
|
|
68
|
+
// reference it, and external callers may rely on the signature.
|
|
69
|
+
flushJSONBuffer() { }
|
|
70
|
+
emit(level, message, type, code, data) {
|
|
71
|
+
const normalizedMessage = this.normalizeMessage(message);
|
|
72
|
+
if (this.outputMode === 'json') {
|
|
73
|
+
this.writeJSONLine({
|
|
74
|
+
level,
|
|
75
|
+
message: normalizedMessage,
|
|
76
|
+
...(type ? { type } : {}),
|
|
77
|
+
...(code ? { code } : {}),
|
|
78
|
+
...(code ? { url: `${BASE_ERROR_URL}/${code.toLowerCase()}` } : {}),
|
|
79
|
+
...(data ? { data } : {}),
|
|
80
|
+
timestamp: new Date().toISOString(),
|
|
81
|
+
});
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
if (level === 'error') {
|
|
85
|
+
console.error(chalk.red(normalizedMessage));
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
if (level === 'warn') {
|
|
89
|
+
console.error(chalk.yellow(normalizedMessage));
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
if (level === 'critical') {
|
|
93
|
+
console.error(chalk.red.bold(normalizedMessage));
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
let c = level === 'info' ? chalk.blue : chalk.gray;
|
|
97
|
+
if (type === 'success') {
|
|
98
|
+
c = chalk.green;
|
|
99
|
+
}
|
|
100
|
+
else if (type === 'timing' && level === 'info') {
|
|
101
|
+
c = chalk.gray;
|
|
102
|
+
}
|
|
103
|
+
console.log(c(normalizedMessage));
|
|
104
|
+
}
|
|
31
105
|
info(message) {
|
|
32
106
|
if (this.level > LogLevel.info || this.silent)
|
|
33
107
|
return;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
else if (message.type === 'timing') {
|
|
40
|
-
c = chalk.gray;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
console.log(c(typeof message === 'string' ? message : message.message));
|
|
108
|
+
const msg = typeof message === 'string' ? message : message.message;
|
|
109
|
+
const type = typeof message === 'string' ? undefined : message.type;
|
|
110
|
+
const data = typeof message === 'string' ? undefined : message.data;
|
|
111
|
+
this.emit('info', msg, type, undefined, data);
|
|
44
112
|
}
|
|
45
113
|
error(message) {
|
|
46
114
|
if (this.level > LogLevel.error)
|
|
47
115
|
return;
|
|
48
|
-
|
|
116
|
+
if (message instanceof Error) {
|
|
117
|
+
this.emit('error', message.stack ?? message.message);
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
const msg = typeof message === 'string' ? message : message.message;
|
|
121
|
+
const type = typeof message === 'string' ? undefined : message.type;
|
|
122
|
+
const data = typeof message === 'string' ? undefined : message.data;
|
|
123
|
+
this.emit('error', msg, type, undefined, data);
|
|
49
124
|
}
|
|
50
125
|
warn(message) {
|
|
51
126
|
if (this.level > LogLevel.warn)
|
|
52
127
|
return;
|
|
53
|
-
|
|
128
|
+
const msg = typeof message === 'string' ? message : message.message;
|
|
129
|
+
const type = typeof message === 'string' ? undefined : message.type;
|
|
130
|
+
const data = typeof message === 'string' ? undefined : message.data;
|
|
131
|
+
this.emit('warn', msg, type, undefined, data);
|
|
54
132
|
}
|
|
55
133
|
debug(message) {
|
|
56
134
|
if (this.level > LogLevel.debug || this.silent)
|
|
57
135
|
return;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
console.log(c(typeof message === 'string' ? message : message.message));
|
|
136
|
+
const msg = typeof message === 'string' ? message : message.message;
|
|
137
|
+
const type = typeof message === 'string' ? undefined : message.type;
|
|
138
|
+
const data = typeof message === 'string' ? undefined : message.data;
|
|
139
|
+
this.emit('debug', msg, type, undefined, data);
|
|
65
140
|
}
|
|
66
141
|
critical(code, message) {
|
|
67
142
|
const url = `${BASE_ERROR_URL}/${code.toLowerCase()}`;
|
|
68
143
|
const formattedMessage = `[${code}] ${message}\n → ${url}`;
|
|
69
144
|
this.criticalErrors.push(formattedMessage);
|
|
70
|
-
|
|
145
|
+
this.emit('critical', formattedMessage, undefined, code);
|
|
71
146
|
}
|
|
72
147
|
hasCriticalErrors() {
|
|
73
148
|
return this.criticalErrors.length > 0;
|
|
74
149
|
}
|
|
75
150
|
logLogo() {
|
|
76
|
-
this.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
// const packageJson = JSON.parse(
|
|
80
|
-
// readFileSync(`${dirname(__filename)}/../../../package.json`, 'utf-8')
|
|
81
|
-
// )
|
|
82
|
-
// this.primary(`⚙️ Welcome to the Pikku CLI (v${packageJson.version})\n`)
|
|
83
|
-
}
|
|
84
|
-
primary(message) {
|
|
85
|
-
if (!this.silent) {
|
|
86
|
-
console.log(chalk.green(message));
|
|
87
|
-
}
|
|
151
|
+
if (this.silent || this.outputMode === 'json')
|
|
152
|
+
return;
|
|
153
|
+
console.log(`\n${logo}\n`);
|
|
88
154
|
}
|
|
89
155
|
}
|
package/dist/src/services.js
CHANGED
|
@@ -10,6 +10,7 @@ import { existsSync } from 'fs';
|
|
|
10
10
|
import { readFile, writeFile } from 'fs/promises';
|
|
11
11
|
import { loadManifest } from './utils/contract-versions.js';
|
|
12
12
|
import { join } from 'path';
|
|
13
|
+
import { parseCLIFilters } from './utils/parse-cli-filters.js';
|
|
13
14
|
const DIAGNOSTIC_CODE_TO_LINT_KEY = {
|
|
14
15
|
[ErrorCode.SERVICES_NOT_DESTRUCTURED]: 'servicesNotDestructured',
|
|
15
16
|
[ErrorCode.WIRES_NOT_DESTRUCTURED]: 'wiresNotDestructured',
|
|
@@ -27,65 +28,22 @@ function processDiagnostics(diagnostics, lint) {
|
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
const logger = new CLILogger({ logLogo: false, silent: false });
|
|
30
|
-
/**
|
|
31
|
-
* Parse a comma-separated string or array into an array of trimmed, non-empty strings
|
|
32
|
-
* Returns undefined if the input is empty/undefined or results in an empty array
|
|
33
|
-
*/
|
|
34
|
-
function parseCommaSeparated(value) {
|
|
35
|
-
if (!value)
|
|
36
|
-
return undefined;
|
|
37
|
-
// If already an array, flatten and split any comma-separated values
|
|
38
|
-
if (Array.isArray(value)) {
|
|
39
|
-
const flattened = value
|
|
40
|
-
.flatMap((item) => item.split(','))
|
|
41
|
-
.map((item) => item.trim())
|
|
42
|
-
.filter((item) => item.length > 0);
|
|
43
|
-
return flattened.length > 0 ? flattened : undefined;
|
|
44
|
-
}
|
|
45
|
-
// If string, split by comma
|
|
46
|
-
const parsed = value
|
|
47
|
-
.split(',')
|
|
48
|
-
.map((item) => item.trim())
|
|
49
|
-
.filter((item) => item.length > 0);
|
|
50
|
-
return parsed.length > 0 ? parsed : undefined;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Parse CLI filter arguments into InspectorFilters format
|
|
54
|
-
*/
|
|
55
|
-
function parseCLIFilters(data) {
|
|
56
|
-
const filters = {};
|
|
57
|
-
if (data.filters) {
|
|
58
|
-
return JSON.parse(data.filters);
|
|
59
|
-
}
|
|
60
|
-
// Parse each filter type from CLI arguments
|
|
61
|
-
const names = parseCommaSeparated(data.names);
|
|
62
|
-
const tags = parseCommaSeparated(data.tags);
|
|
63
|
-
const types = parseCommaSeparated(data.types);
|
|
64
|
-
const directories = parseCommaSeparated(data.directories);
|
|
65
|
-
const httpRoutes = parseCommaSeparated(data.httpRoutes);
|
|
66
|
-
const httpMethods = parseCommaSeparated(data.httpMethods);
|
|
67
|
-
// Only include non-undefined values in the result
|
|
68
|
-
if (names)
|
|
69
|
-
filters.names = names;
|
|
70
|
-
if (tags)
|
|
71
|
-
filters.tags = tags;
|
|
72
|
-
if (types)
|
|
73
|
-
filters.types = types;
|
|
74
|
-
if (directories)
|
|
75
|
-
filters.directories = directories;
|
|
76
|
-
if (httpRoutes)
|
|
77
|
-
filters.httpRoutes = httpRoutes;
|
|
78
|
-
if (httpMethods)
|
|
79
|
-
filters.httpMethods = httpMethods;
|
|
80
|
-
return filters;
|
|
81
|
-
}
|
|
82
31
|
/**
|
|
83
32
|
* Default CLI renderer that logs output using the logger
|
|
84
33
|
*/
|
|
85
34
|
export const defaultCLIRenderer = pikkuCLIRender(({ logger }, data) => {
|
|
86
|
-
if (data)
|
|
87
|
-
|
|
88
|
-
|
|
35
|
+
if (!data)
|
|
36
|
+
return;
|
|
37
|
+
const validLevels = [
|
|
38
|
+
'trace',
|
|
39
|
+
'debug',
|
|
40
|
+
'info',
|
|
41
|
+
'warn',
|
|
42
|
+
'error',
|
|
43
|
+
];
|
|
44
|
+
if (!validLevels.includes(data.level))
|
|
45
|
+
return;
|
|
46
|
+
logger[data.level]({ message: data.message, type: data.type });
|
|
89
47
|
});
|
|
90
48
|
// /**
|
|
91
49
|
// * Client-safe CLI renderer that outputs to console (no service dependencies)
|
|
@@ -100,9 +58,16 @@ export const defaultCLIRenderer = pikkuCLIRender(({ logger }, data) => {
|
|
|
100
58
|
// )
|
|
101
59
|
export const createConfig = async (_variablesService, data) => {
|
|
102
60
|
// Determine log level based on CLI flags with precedence:
|
|
103
|
-
// --silent > --loglevel > --verbose > --info > default (
|
|
104
|
-
let logLevel = LogLevel.
|
|
61
|
+
// --silent > --loglevel > --verbose > --info > default (info)
|
|
62
|
+
let logLevel = LogLevel.info; // default
|
|
105
63
|
let isSilent = false;
|
|
64
|
+
// --output is constrained to 'text' | 'json' by the CLI parser
|
|
65
|
+
// (choices + default in cli.wiring.ts), so no runtime validation
|
|
66
|
+
// is needed here. --json is kept as an alias that forces 'json'.
|
|
67
|
+
const outputMode = data.json
|
|
68
|
+
? 'json'
|
|
69
|
+
: data.output;
|
|
70
|
+
logger.setOutputMode(outputMode);
|
|
106
71
|
if (data.silent) {
|
|
107
72
|
logLevel = LogLevel.critical;
|
|
108
73
|
isSilent = true;
|
|
@@ -125,7 +90,7 @@ export const createConfig = async (_variablesService, data) => {
|
|
|
125
90
|
logger.setLevel(logLevel);
|
|
126
91
|
logger.setSilent(isSilent);
|
|
127
92
|
// Display logo unless in silent mode
|
|
128
|
-
if (!isSilent) {
|
|
93
|
+
if (!isSilent && outputMode !== 'json') {
|
|
129
94
|
logger.logLogo();
|
|
130
95
|
}
|
|
131
96
|
const cliConfig = await getPikkuCLIConfig(logger, data.configFile, [], true, data.outDir);
|
|
@@ -152,7 +117,7 @@ export const createConfig = async (_variablesService, data) => {
|
|
|
152
117
|
...cliConfig,
|
|
153
118
|
...dataWithoutOutDir,
|
|
154
119
|
tags: cliConfig.tags,
|
|
155
|
-
filters: parseCLIFilters(data),
|
|
120
|
+
filters: parseCLIFilters(data, cliConfig),
|
|
156
121
|
preloadedInspectorState,
|
|
157
122
|
};
|
|
158
123
|
};
|
|
@@ -165,6 +130,7 @@ export const createSingletonServices = async (config) => {
|
|
|
165
130
|
const variables = new LocalVariablesService();
|
|
166
131
|
// Store unfiltered state
|
|
167
132
|
let unfilteredState = preloadedInspectorState;
|
|
133
|
+
let unfilteredStateIsSetupOnly = false;
|
|
168
134
|
const getInspectorState = async (refresh = false, setupOnly = false, bootstrapMode = false) => {
|
|
169
135
|
// In bootstrap mode, return a minimal "zero state" with core types
|
|
170
136
|
// This allows bootstrap to run immediately without inspecting the codebase
|
|
@@ -203,7 +169,12 @@ export const createSingletonServices = async (config) => {
|
|
|
203
169
|
// Get or refresh the unfiltered state.
|
|
204
170
|
// When a preloaded state was provided via --stateInput, skip re-inspection
|
|
205
171
|
// because the preloaded state is already the complete unfiltered state.
|
|
206
|
-
|
|
172
|
+
// Also re-run when the cache holds a setupOnly=true state but a full
|
|
173
|
+
// inspection (setupOnly=false) is now requested — setupOnly skips
|
|
174
|
+
// visitRoutes so variables/secrets/etc. are absent from that cache.
|
|
175
|
+
if (!unfilteredState ||
|
|
176
|
+
(refresh && !preloadedInspectorState) ||
|
|
177
|
+
(unfilteredStateIsSetupOnly && !setupOnly && !preloadedInspectorState)) {
|
|
207
178
|
// Run inspector WITHOUT filters to get full state
|
|
208
179
|
const wiringFiles = (await Promise.all(srcDirectories.map((dir) => glob(`${path.join(rootDir, dir)}/**/*.ts`, {
|
|
209
180
|
ignore: config.ignoreFiles || [],
|
|
@@ -227,6 +198,7 @@ export const createSingletonServices = async (config) => {
|
|
|
227
198
|
: undefined;
|
|
228
199
|
const oldProgram = unfilteredState?.program ?? undefined;
|
|
229
200
|
const inspectStart = Date.now();
|
|
201
|
+
unfilteredStateIsSetupOnly = setupOnly;
|
|
230
202
|
unfilteredState = await inspect(logger, wiringFiles, {
|
|
231
203
|
setupOnly,
|
|
232
204
|
rootDir,
|
|
@@ -250,13 +222,6 @@ export const createSingletonServices = async (config) => {
|
|
|
250
222
|
? { additionalInfo: config.openAPI.additionalInfo }
|
|
251
223
|
: undefined,
|
|
252
224
|
manifest,
|
|
253
|
-
modelConfig: config.models || config.agentDefaults || config.agentOverrides
|
|
254
|
-
? {
|
|
255
|
-
models: config.models,
|
|
256
|
-
agentDefaults: config.agentDefaults,
|
|
257
|
-
agentOverrides: config.agentOverrides,
|
|
258
|
-
}
|
|
259
|
-
: undefined,
|
|
260
225
|
});
|
|
261
226
|
logger.debug(`Inspector took ${Date.now() - inspectStart}ms`);
|
|
262
227
|
if ('diagnostics' in unfilteredState &&
|
|
@@ -7,6 +7,9 @@ export const generateBootstrapFile = async (logger, config, bootstrapFile, speci
|
|
|
7
7
|
if (hasMiddleware) {
|
|
8
8
|
commonImports.push(config.middlewareFile);
|
|
9
9
|
}
|
|
10
|
+
if (!config.addon && config.rpcInternalWiringMetaFile) {
|
|
11
|
+
commonImports.push(config.rpcInternalWiringMetaFile);
|
|
12
|
+
}
|
|
10
13
|
commonImports.push(config.functionsMetaFile, config.functionsFile);
|
|
11
14
|
// Add schema if it exists
|
|
12
15
|
if (schemas) {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { InspectorFilters } from '@pikku/inspector';
|
|
2
|
+
export type CLIFilters = InspectorFilters & {
|
|
3
|
+
excludeNames?: string[];
|
|
4
|
+
excludeTags?: string[];
|
|
5
|
+
excludeDirectories?: string[];
|
|
6
|
+
excludeHttpRoutes?: string[];
|
|
7
|
+
excludeHttpMethods?: string[];
|
|
8
|
+
excludeTarget?: Array<'serverless' | 'server'>;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Parse CLI filter arguments into InspectorFilters format
|
|
12
|
+
*/
|
|
13
|
+
export declare function parseCLIFilters(data: any, cliConfig?: {
|
|
14
|
+
deploy?: {
|
|
15
|
+
serverlessIncompatible?: string[];
|
|
16
|
+
};
|
|
17
|
+
namedFilters?: Record<string, InspectorFilters>;
|
|
18
|
+
}): CLIFilters;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parse a comma-separated string or array into an array of trimmed, non-empty strings
|
|
3
|
+
* Returns undefined if the input is empty/undefined or results in an empty array
|
|
4
|
+
*/
|
|
5
|
+
function parseCommaSeparated(value) {
|
|
6
|
+
if (!value)
|
|
7
|
+
return undefined;
|
|
8
|
+
if (Array.isArray(value)) {
|
|
9
|
+
const flattened = value
|
|
10
|
+
.flatMap((item) => item.split(','))
|
|
11
|
+
.map((item) => item.trim())
|
|
12
|
+
.filter((item) => item.length > 0);
|
|
13
|
+
return flattened.length > 0 ? flattened : undefined;
|
|
14
|
+
}
|
|
15
|
+
const parsed = value
|
|
16
|
+
.split(',')
|
|
17
|
+
.map((item) => item.trim())
|
|
18
|
+
.filter((item) => item.length > 0);
|
|
19
|
+
return parsed.length > 0 ? parsed : undefined;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Parse CLI filter arguments into InspectorFilters format
|
|
23
|
+
*/
|
|
24
|
+
export function parseCLIFilters(data, cliConfig) {
|
|
25
|
+
const filters = {};
|
|
26
|
+
// Backward-compatible escape hatch for raw JSON filter blobs.
|
|
27
|
+
if (data.filters && data.filters.trim().startsWith('{')) {
|
|
28
|
+
return JSON.parse(data.filters);
|
|
29
|
+
}
|
|
30
|
+
const mergeFilter = (source) => {
|
|
31
|
+
if (!source)
|
|
32
|
+
return;
|
|
33
|
+
const append = (key, values) => {
|
|
34
|
+
if (!values || values.length === 0)
|
|
35
|
+
return;
|
|
36
|
+
const existing = filters[key];
|
|
37
|
+
filters[key] = [...(existing ?? []), ...values];
|
|
38
|
+
};
|
|
39
|
+
append('names', source.names);
|
|
40
|
+
append('tags', source.tags);
|
|
41
|
+
append('wires', source.wires);
|
|
42
|
+
append('directories', source.directories);
|
|
43
|
+
append('httpRoutes', source.httpRoutes);
|
|
44
|
+
append('httpMethods', source.httpMethods);
|
|
45
|
+
append('target', source.target);
|
|
46
|
+
append('excludeNames', source.excludeNames);
|
|
47
|
+
append('excludeTags', source.excludeTags);
|
|
48
|
+
append('excludeWires', source.excludeWires);
|
|
49
|
+
append('excludeDirectories', source.excludeDirectories);
|
|
50
|
+
append('excludeHttpRoutes', source.excludeHttpRoutes);
|
|
51
|
+
append('excludeHttpMethods', source.excludeHttpMethods);
|
|
52
|
+
append('excludeTarget', source.excludeTarget);
|
|
53
|
+
};
|
|
54
|
+
const namedFilters = cliConfig?.namedFilters ?? {};
|
|
55
|
+
const requestedNamedFilters = parseCommaSeparated(data.filter ?? data.filters);
|
|
56
|
+
if (requestedNamedFilters && requestedNamedFilters.length > 0) {
|
|
57
|
+
for (const name of requestedNamedFilters) {
|
|
58
|
+
const preset = namedFilters[name];
|
|
59
|
+
if (!preset) {
|
|
60
|
+
const available = Object.keys(namedFilters);
|
|
61
|
+
throw new Error(available.length > 0
|
|
62
|
+
? `Unknown --filter '${name}'. Available filters: ${available.join(', ')}`
|
|
63
|
+
: `Unknown --filter '${name}'. No named filters configured in pikku.config.json`);
|
|
64
|
+
}
|
|
65
|
+
mergeFilter(preset);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
mergeFilter({
|
|
69
|
+
names: parseCommaSeparated(data.names),
|
|
70
|
+
tags: parseCommaSeparated(data.tags),
|
|
71
|
+
wires: parseCommaSeparated(data.wires),
|
|
72
|
+
directories: parseCommaSeparated(data.directories),
|
|
73
|
+
httpRoutes: parseCommaSeparated(data.httpRoutes),
|
|
74
|
+
httpMethods: parseCommaSeparated(data.httpMethods),
|
|
75
|
+
target: parseCommaSeparated(data.target),
|
|
76
|
+
excludeNames: parseCommaSeparated(data.excludeNames),
|
|
77
|
+
excludeTags: parseCommaSeparated(data.excludeTags),
|
|
78
|
+
excludeWires: parseCommaSeparated(data.excludeWires),
|
|
79
|
+
excludeDirectories: parseCommaSeparated(data.excludeDirectories),
|
|
80
|
+
excludeHttpRoutes: parseCommaSeparated(data.excludeHttpRoutes),
|
|
81
|
+
excludeHttpMethods: parseCommaSeparated(data.excludeHttpMethods),
|
|
82
|
+
excludeTarget: parseCommaSeparated(data.excludeTarget),
|
|
83
|
+
});
|
|
84
|
+
const validateTargetList = (values, argName) => {
|
|
85
|
+
if (!values || values.length === 0)
|
|
86
|
+
return undefined;
|
|
87
|
+
const invalid = values.filter((t) => t !== 'serverless' && t !== 'server');
|
|
88
|
+
if (invalid.length > 0) {
|
|
89
|
+
throw new Error(`Invalid ${argName} value(s): [${invalid.join(', ')}]. Allowed: 'serverless', 'server'.`);
|
|
90
|
+
}
|
|
91
|
+
return values;
|
|
92
|
+
};
|
|
93
|
+
filters.target = validateTargetList(filters.target, '--target');
|
|
94
|
+
filters.excludeTarget = validateTargetList(filters.excludeTarget, '--exclude-target');
|
|
95
|
+
if (filters.target || filters.excludeTarget) {
|
|
96
|
+
filters.serverlessIncompatible = cliConfig?.deploy?.serverlessIncompatible;
|
|
97
|
+
}
|
|
98
|
+
return filters;
|
|
99
|
+
}
|
|
@@ -1,28 +1,40 @@
|
|
|
1
|
-
import { join, dirname, resolve, isAbsolute } from 'path';
|
|
1
|
+
import { join, dirname, resolve, isAbsolute, parse as parsePath } from 'path';
|
|
2
2
|
import { readdir, readFile } from 'fs/promises';
|
|
3
3
|
const CLIENT_FILE_KEYS = [
|
|
4
4
|
'fetchFile',
|
|
5
5
|
'websocketFile',
|
|
6
|
+
'realtimeFile',
|
|
6
7
|
'rpcWiringsFile',
|
|
7
8
|
'reactQueryFile',
|
|
8
9
|
'queueWiringsFile',
|
|
9
10
|
'mcpJsonFile',
|
|
10
11
|
'nextBackendFile',
|
|
11
12
|
'nextHTTPFile',
|
|
13
|
+
'startServerFnsFile',
|
|
12
14
|
];
|
|
13
15
|
export const getPikkuCLIConfig = async (logger, configFile = undefined, requiredFields, exitProcess = false, outDirOverride) => {
|
|
14
16
|
const config = await _getPikkuCLIConfig(logger, configFile, requiredFields, exitProcess, outDirOverride);
|
|
15
17
|
return config;
|
|
16
18
|
};
|
|
19
|
+
async function findConfigFile() {
|
|
20
|
+
let dir = process.cwd();
|
|
21
|
+
const { root } = parsePath(dir);
|
|
22
|
+
while (true) {
|
|
23
|
+
const files = await readdir(dir);
|
|
24
|
+
const match = files.find((f) => /pikku\.config\.(ts|js|json)$/.test(f));
|
|
25
|
+
if (match)
|
|
26
|
+
return join(dir, match);
|
|
27
|
+
// Stop if we've reached the git repo root or the filesystem root
|
|
28
|
+
const hasGit = files.includes('.git');
|
|
29
|
+
if (hasGit || dir === root)
|
|
30
|
+
break;
|
|
31
|
+
dir = dirname(dir);
|
|
32
|
+
}
|
|
33
|
+
throw new Error('Config file pikku.config.json not found');
|
|
34
|
+
}
|
|
17
35
|
const _getPikkuCLIConfig = async (logger, configFile = undefined, requiredFields, exitProcess = false, outDirOverride) => {
|
|
18
36
|
if (!configFile) {
|
|
19
|
-
|
|
20
|
-
const files = await readdir(execDirectory);
|
|
21
|
-
const file = files.find((file) => /pikku\.config\.(ts|js|json)$/.test(file));
|
|
22
|
-
if (!file) {
|
|
23
|
-
throw new Error('Config file pikku.config.json not found');
|
|
24
|
-
}
|
|
25
|
-
configFile = join(execDirectory, file);
|
|
37
|
+
configFile = await findConfigFile();
|
|
26
38
|
}
|
|
27
39
|
try {
|
|
28
40
|
let result;
|
|
@@ -170,7 +182,7 @@ const _getPikkuCLIConfig = async (logger, configFile = undefined, requiredFields
|
|
|
170
182
|
if (!result.remoteRpcWorkersFile) {
|
|
171
183
|
result.remoteRpcWorkersFile = join(resolvedScaffoldDir, 'rpc-remote.gen.ts');
|
|
172
184
|
}
|
|
173
|
-
if (!result.workflowRoutesFile) {
|
|
185
|
+
if (result.scaffold?.workflow && !result.workflowRoutesFile) {
|
|
174
186
|
result.workflowRoutesFile = join(resolvedScaffoldDir, 'workflow-routes.gen.ts');
|
|
175
187
|
}
|
|
176
188
|
if (result.scaffold?.rpc && !result.publicRpcFile) {
|
|
@@ -182,6 +194,14 @@ const _getPikkuCLIConfig = async (logger, configFile = undefined, requiredFields
|
|
|
182
194
|
if (result.scaffold?.console && !result.consoleFunctionsFile) {
|
|
183
195
|
result.consoleFunctionsFile = join(resolvedScaffoldDir, 'console.gen.ts');
|
|
184
196
|
}
|
|
197
|
+
if (result.scaffold?.events && !result.eventsChannelFile) {
|
|
198
|
+
result.eventsChannelFile = join(resolvedScaffoldDir, 'events.gen.ts');
|
|
199
|
+
}
|
|
200
|
+
if (result.scaffold?.events &&
|
|
201
|
+
result.clientFiles?.fetchFile &&
|
|
202
|
+
!result.clientFiles.realtimeFile) {
|
|
203
|
+
result.clientFiles.realtimeFile = join(dirname(result.clientFiles.fetchFile), 'realtime.gen.ts');
|
|
204
|
+
}
|
|
185
205
|
const triggerDir = join(result.outDir, 'trigger');
|
|
186
206
|
if (!result.triggersTypesFile) {
|
|
187
207
|
result.triggersTypesFile = join(triggerDir, 'pikku-trigger-types.gen.ts');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["../bin/pikku.ts","../src/cli.wiring.ts","../src/services.ts","../src/deploy/build-pipeline.ts","../src/deploy/provider-adapter.ts","../src/deploy/analyzer/analyzer.ts","../src/deploy/analyzer/index.ts","../src/deploy/analyzer/manifest.ts","../src/deploy/bundler/bundler.ts","../src/deploy/bundler/dep-extractor.ts","../src/deploy/bundler/index.ts","../src/deploy/bundler/types.ts","../src/deploy/codegen/index.ts","../src/deploy/codegen/per-unit-codegen.ts","../src/deploy/plan/executor.ts","../src/deploy/plan/formatter.ts","../src/deploy/plan/index.ts","../src/deploy/plan/planner.ts","../src/deploy/plan/provider.ts","../src/deploy/plan/types.ts","../src/functions/commands/all.ts","../src/functions/commands/bootstrap.ts","../src/functions/commands/console.ts","../src/functions/commands/deploy-apply.ts","../src/functions/commands/deploy-info.ts","../src/functions/commands/deploy-plan.ts","../src/functions/commands/dev.ts","../src/functions/commands/enable.ts","../src/functions/commands/info.ts","../src/functions/commands/new-addon.ts","../src/functions/commands/new-function.ts","../src/functions/commands/new-middleware.ts","../src/functions/commands/new-permission.ts","../src/functions/commands/new-wiring.ts","../src/functions/commands/pikku-command-bootstrap.ts","../src/functions/commands/pikku-command-summary.ts","../src/functions/commands/versions-check.ts","../src/functions/commands/versions-init.ts","../src/functions/commands/versions-update.ts","../src/functions/commands/watch.ts","../src/functions/runtimes/fetch/index.ts","../src/functions/runtimes/nextjs/pikku-command-nextjs.ts","../src/functions/runtimes/nextjs/serialize-nextjs-backend-wrapper.ts","../src/functions/runtimes/nextjs/serialize-nextjs-http-wrapper.ts","../src/functions/runtimes/websocket/pikku-command-websocket-typed.ts","../src/functions/runtimes/websocket/serialize-websocket-wrapper.ts","../src/functions/wirings/ai-agent/pikku-command-ai-agent-types.ts","../src/functions/wirings/ai-agent/pikku-command-ai-agent.ts","../src/functions/wirings/ai-agent/pikku-command-public-agent.ts","../src/functions/wirings/ai-agent/serialize-agent-map.ts","../src/functions/wirings/ai-agent/serialize-ai-agent-types.ts","../src/functions/wirings/ai-agent/serialize-public-agent.ts","../src/functions/wirings/channels/pikku-channels.ts","../src/functions/wirings/channels/pikku-command-channel-types.ts","../src/functions/wirings/channels/pikku-command-channels-map.ts","../src/functions/wirings/channels/pikku-command-channels.ts","../src/functions/wirings/channels/serialize-channel-types.ts","../src/functions/wirings/channels/serialize-typed-channel-map.ts","../src/functions/wirings/cli/pikku-command-cli-entry.ts","../src/functions/wirings/cli/pikku-command-cli-types.ts","../src/functions/wirings/cli/pikku-command-cli.ts","../src/functions/wirings/cli/serialize-channel-cli-client.ts","../src/functions/wirings/cli/serialize-channel-cli.ts","../src/functions/wirings/cli/serialize-cli-types.ts","../src/functions/wirings/cli/serialize-local-cli-bootstrap.ts","../src/functions/wirings/console/pikku-command-console-functions.ts","../src/functions/wirings/console/pikku-command-node-types.ts","../src/functions/wirings/console/pikku-command-nodes-meta.ts","../src/functions/wirings/console/serialize-console-functions.ts","../src/functions/wirings/console/serialize-node-types.ts","../src/functions/wirings/credentials/pikku-command-credentials.ts","../src/functions/wirings/credentials/serialize-credentials-types.ts","../src/functions/wirings/functions/pikku-command-addon-types.ts","../src/functions/wirings/functions/pikku-command-function-types-split.ts","../src/functions/wirings/functions/pikku-command-function-types.ts","../src/functions/wirings/functions/pikku-command-functions.ts","../src/functions/wirings/functions/pikku-command-services.ts","../src/functions/wirings/functions/schemas.ts","../src/functions/wirings/functions/serialize-addon-types.ts","../src/functions/wirings/functions/serialize-function-imports.ts","../src/functions/wirings/functions/serialize-function-types.ts","../src/functions/wirings/functions/serialize-pikku-types-hub.ts","../src/functions/wirings/gateway/pikku-command-gateway.ts","../src/functions/wirings/http/pikku-command-http-map.ts","../src/functions/wirings/http/pikku-command-http-routes.ts","../src/functions/wirings/http/pikku-command-http-types.ts","../src/functions/wirings/http/pikku-command-openapi.ts","../src/functions/wirings/http/pikku-http-routes.ts","../src/functions/wirings/http/serialize-fetch-wrapper.ts","../src/functions/wirings/http/serialize-http-types.ts","../src/functions/wirings/http/serialize-typed-http-map.ts","../src/functions/wirings/mcp/pikku-command-mcp-json.ts","../src/functions/wirings/mcp/pikku-command-mcp-types.ts","../src/functions/wirings/mcp/pikku-command-mcp.ts","../src/functions/wirings/mcp/serialize-mcp-types.ts","../src/functions/wirings/middleware/pikku-command-middleware.ts","../src/functions/wirings/middleware/serialize-middleware-imports.ts","../src/functions/wirings/package/pikku-command-package-types.ts","../src/functions/wirings/package/pikku-command-package.ts","../src/functions/wirings/package/serialize-package-types.ts","../src/functions/wirings/package/serialize-package.ts","../src/functions/wirings/permissions/pikku-command-permissions.ts","../src/functions/wirings/permissions/serialize-permissions-imports.ts","../src/functions/wirings/queue/pikku-command-queue-map.ts","../src/functions/wirings/queue/pikku-command-queue-service.ts","../src/functions/wirings/queue/pikku-command-queue-types.ts","../src/functions/wirings/queue/pikku-command-queue.ts","../src/functions/wirings/queue/pikku-queue-map.ts","../src/functions/wirings/queue/pikku-queue.ts","../src/functions/wirings/queue/serialize-queue-map.ts","../src/functions/wirings/queue/serialize-queue-meta.ts","../src/functions/wirings/queue/serialize-queue-types.ts","../src/functions/wirings/queue/serialize-queue-wrapper.ts","../src/functions/wirings/rpc/pikku-command-public-rpc.ts","../src/functions/wirings/rpc/pikku-command-react-query.ts","../src/functions/wirings/rpc/pikku-command-remote-rpc.ts","../src/functions/wirings/rpc/pikku-command-rpc-client.ts","../src/functions/wirings/rpc/pikku-command-rpc-map.ts","../src/functions/wirings/rpc/pikku-command-rpc.ts","../src/functions/wirings/rpc/serialize-public-rpc.ts","../src/functions/wirings/rpc/serialize-react-query-hooks.ts","../src/functions/wirings/rpc/serialize-remote-rpc.ts","../src/functions/wirings/rpc/serialize-rpc-wrapper.ts","../src/functions/wirings/rpc/serialize-typed-rpc-map.ts","../src/functions/wirings/scheduler/pikku-command-scheduler-types.ts","../src/functions/wirings/scheduler/pikku-command-scheduler.ts","../src/functions/wirings/scheduler/serialize-scheduler-meta.ts","../src/functions/wirings/scheduler/serialize-scheduler-types.ts","../src/functions/wirings/secrets/pikku-command-secrets.ts","../src/functions/wirings/secrets/serialize-secrets-types.ts","../src/functions/wirings/triggers/pikku-command-trigger-types.ts","../src/functions/wirings/triggers/pikku-command-trigger.ts","../src/functions/wirings/triggers/serialize-trigger-meta.ts","../src/functions/wirings/triggers/serialize-trigger-types.ts","../src/functions/wirings/variables/pikku-command-variables.ts","../src/functions/wirings/variables/serialize-variables-types.ts","../src/functions/wirings/workflow/pikku-command-workflow-routes.ts","../src/functions/wirings/workflow/pikku-command-workflow.ts","../src/functions/wirings/workflow/serialize-workflow-map.ts","../src/functions/wirings/workflow/serialize-workflow-meta.ts","../src/functions/wirings/workflow/serialize-workflow-registration.ts","../src/functions/wirings/workflow/serialize-workflow-routes.ts","../src/functions/wirings/workflow/serialize-workflow-types.ts","../src/functions/workflows/all.workflow.ts","../src/middleware/log-command-info-and-time.ts","../src/scaffold/rpc-remote.gen.ts","../src/scaffold/workflow-routes.gen.ts","../src/services/cli-logger-forwarder.service.ts","../src/services/cli-logger.service.ts","../src/utils/check-required-types.ts","../src/utils/command-summary.ts","../src/utils/contract-versions.ts","../src/utils/file-import-path.ts","../src/utils/file-imports-serializer.ts","../src/utils/file-writer.ts","../src/utils/generate-bootstrap-file.ts","../src/utils/get-cli-version.ts","../src/utils/pikku-cli-config.ts","../src/utils/pikku-files-and-methods.ts","../src/utils/serialize-import-map.ts","../src/utils/serialize-meta-ts.ts","../src/utils/serialize-schemas.ts","../src/utils/strip-verbose-meta.ts","../.pikku/pikku-bootstrap.gen.ts","../.pikku/pikku-meta-service.gen.ts","../.pikku/pikku-services.gen.ts","../.pikku/pikku-types.gen.ts","../.pikku/agent/pikku-agent-map.gen.d.ts","../.pikku/agent/pikku-agent-types.gen.ts","../.pikku/channel/pikku-channel-types.gen.ts","../.pikku/cli/pikku-cli-channel.ts","../.pikku/cli/pikku-cli-client.gen.ts","../.pikku/cli/pikku-cli-types.gen.ts","../.pikku/cli/pikku-cli-wirings-meta.gen.ts","../.pikku/cli/pikku-cli-wirings.gen.ts","../.pikku/cli/pikku-cli.gen.ts","../.pikku/console/pikku-node-types.gen.ts","../.pikku/function/pikku-function-types.gen.ts","../.pikku/function/pikku-functions-meta.gen.ts","../.pikku/function/pikku-functions.gen.ts","../.pikku/http/pikku-http-types.gen.ts","../.pikku/http/pikku-http-wirings-map.gen.d.ts","../.pikku/http/pikku-http-wirings-meta.gen.ts","../.pikku/http/pikku-http-wirings.gen.ts","../.pikku/mcp/pikku-mcp-types.gen.ts","../.pikku/node/pikku-node-types.gen.ts","../.pikku/queue/pikku-queue-types.gen.ts","../.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts","../.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts","../.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts","../.pikku/scheduler/pikku-scheduler-types.gen.ts","../.pikku/schemas/register.gen.ts","../.pikku/secrets/pikku-secret-types.gen.ts","../.pikku/secrets/pikku-secrets.gen.ts","../.pikku/trigger/pikku-trigger-types.gen.ts","../.pikku/variables/pikku-variable-types.gen.ts","../.pikku/variables/pikku-variables.gen.ts","../.pikku/workflow/pikku-workflow-map.gen.d.ts","../.pikku/workflow/pikku-workflow-types.gen.ts","../.pikku/workflow/pikku-workflow-wirings-meta.gen.ts","../.pikku/workflow/pikku-workflow-wirings.gen.ts","../types/application-types.d.ts","../types/config.d.ts"],"version":"5.9.3"}
|
|
1
|
+
{"root":["../bin/pikku.ts","../src/cli.wiring.ts","../src/services.ts","../src/deploy/build-pipeline.ts","../src/deploy/provider-adapter.ts","../src/deploy/server-entry.ts","../src/deploy/analyzer/analyzer.ts","../src/deploy/analyzer/index.ts","../src/deploy/analyzer/manifest.ts","../src/deploy/bundler/bundler.ts","../src/deploy/bundler/dep-extractor.ts","../src/deploy/bundler/index.ts","../src/deploy/bundler/types.ts","../src/deploy/codegen/index.ts","../src/deploy/codegen/per-unit-codegen.ts","../src/deploy/plan/executor.ts","../src/deploy/plan/formatter.ts","../src/deploy/plan/index.ts","../src/deploy/plan/planner.ts","../src/deploy/plan/provider.ts","../src/deploy/plan/types.ts","../src/fabric/fabric-commands.ts","../src/fabric/functions/db-schema.function.ts","../src/fabric/functions/deploy-list.function.ts","../src/fabric/functions/deploy-units.function.ts","../src/fabric/functions/deploy.function.ts","../src/fabric/functions/domains-add.function.ts","../src/fabric/functions/domains-list.function.ts","../src/fabric/functions/domains-remove.function.ts","../src/fabric/functions/errors.function.ts","../src/fabric/functions/init.function.ts","../src/fabric/functions/link.function.ts","../src/fabric/functions/llm-key.function.ts","../src/fabric/functions/login.function.ts","../src/fabric/functions/logs.function.ts","../src/fabric/functions/metrics.function.ts","../src/fabric/functions/rollback.function.ts","../src/fabric/functions/secrets-list.function.ts","../src/fabric/functions/secrets-set.function.ts","../src/fabric/functions/status.function.ts","../src/fabric/functions/trace.function.ts","../src/fabric/functions/validate.function.ts","../src/fabric/lib/config.ts","../src/fabric/lib/console-url.ts","../src/fabric/lib/git.ts","../src/fabric/lib/http.ts","../src/fabric/lib/not-implemented.ts","../src/fabric/lib/output.ts","../src/fabric/lib/prompt.ts","../src/fabric/lib/stage.ts","../src/fabric/sdk/http-map.gen.d.ts","../src/fabric/sdk/pikku-fetch.gen.ts","../src/fabric/sdk/pikku-rpc.gen.ts","../src/fabric/sdk/rpc-map.gen.d.ts","../src/functions/commands/all.ts","../src/functions/commands/binary.ts","../src/functions/commands/bootstrap.ts","../src/functions/commands/console.ts","../src/functions/commands/db-migrate.ts","../src/functions/commands/db-reset.ts","../src/functions/commands/db-seed.ts","../src/functions/commands/db-shared.ts","../src/functions/commands/deploy-apply.ts","../src/functions/commands/deploy-info.ts","../src/functions/commands/deploy-plan.ts","../src/functions/commands/dev.ts","../src/functions/commands/enable.ts","../src/functions/commands/info.ts","../src/functions/commands/load-user-project.ts","../src/functions/commands/meta.ts","../src/functions/commands/new-addon.ts","../src/functions/commands/new-function.ts","../src/functions/commands/new-middleware.ts","../src/functions/commands/new-permission.ts","../src/functions/commands/new-wiring.ts","../src/functions/commands/pikku-command-bootstrap.ts","../src/functions/commands/pikku-command-summary.ts","../src/functions/commands/skills.ts","../src/functions/commands/tests-coverage.ts","../src/functions/commands/tests-init.ts","../src/functions/commands/versions-check.ts","../src/functions/commands/versions-init.ts","../src/functions/commands/versions-update.ts","../src/functions/commands/watch.ts","../src/functions/db/local-db.ts","../src/functions/db/seed.ts","../src/functions/db/sql-migrator.ts","../src/functions/db/sqlite-codegen.ts","../src/functions/db/zod-codegen.ts","../src/functions/runtimes/fetch/index.ts","../src/functions/runtimes/nextjs/pikku-command-nextjs.ts","../src/functions/runtimes/nextjs/serialize-nextjs-backend-worker-rpc-wrapper.ts","../src/functions/runtimes/nextjs/serialize-nextjs-backend-wrapper.ts","../src/functions/runtimes/nextjs/serialize-nextjs-http-wrapper.ts","../src/functions/runtimes/tanstack-start/pikku-command-tanstack-start.ts","../src/functions/runtimes/tanstack-start/serialize-tanstack-start-shim.ts","../src/functions/runtimes/websocket/pikku-command-websocket-typed.ts","../src/functions/runtimes/websocket/serialize-websocket-wrapper.ts","../src/functions/wirings/ai-agent/pikku-command-ai-agent-types.ts","../src/functions/wirings/ai-agent/pikku-command-ai-agent.ts","../src/functions/wirings/ai-agent/pikku-command-public-agent.ts","../src/functions/wirings/ai-agent/serialize-agent-map.ts","../src/functions/wirings/ai-agent/serialize-ai-agent-types.ts","../src/functions/wirings/ai-agent/serialize-public-agent.ts","../src/functions/wirings/channels/pikku-channels.ts","../src/functions/wirings/channels/pikku-command-channel-types.ts","../src/functions/wirings/channels/pikku-command-channels-map.ts","../src/functions/wirings/channels/pikku-command-channels.ts","../src/functions/wirings/channels/serialize-channel-types.ts","../src/functions/wirings/channels/serialize-typed-channel-map.ts","../src/functions/wirings/cli/pikku-command-cli-entry.ts","../src/functions/wirings/cli/pikku-command-cli-types.ts","../src/functions/wirings/cli/pikku-command-cli.ts","../src/functions/wirings/cli/serialize-channel-cli-client.ts","../src/functions/wirings/cli/serialize-channel-cli.ts","../src/functions/wirings/cli/serialize-cli-types.ts","../src/functions/wirings/cli/serialize-local-cli-bootstrap.ts","../src/functions/wirings/console/pikku-command-console-functions.ts","../src/functions/wirings/console/pikku-command-node-types.ts","../src/functions/wirings/console/pikku-command-nodes-meta.ts","../src/functions/wirings/console/serialize-console-functions.ts","../src/functions/wirings/console/serialize-node-types.ts","../src/functions/wirings/credentials/pikku-command-credentials.ts","../src/functions/wirings/credentials/serialize-credentials-types.ts","../src/functions/wirings/functions/pikku-command-addon-types.ts","../src/functions/wirings/functions/pikku-command-function-types-split.ts","../src/functions/wirings/functions/pikku-command-function-types.ts","../src/functions/wirings/functions/pikku-command-functions.ts","../src/functions/wirings/functions/pikku-command-services.ts","../src/functions/wirings/functions/schemas.ts","../src/functions/wirings/functions/serialize-addon-types.ts","../src/functions/wirings/functions/serialize-function-imports.ts","../src/functions/wirings/functions/serialize-function-types.ts","../src/functions/wirings/functions/serialize-pikku-types-hub.ts","../src/functions/wirings/gateway/pikku-command-gateway.ts","../src/functions/wirings/http/pikku-command-http-map.ts","../src/functions/wirings/http/pikku-command-http-routes.ts","../src/functions/wirings/http/pikku-command-http-types.ts","../src/functions/wirings/http/pikku-command-openapi.ts","../src/functions/wirings/http/pikku-http-routes.ts","../src/functions/wirings/http/serialize-fetch-wrapper.ts","../src/functions/wirings/http/serialize-http-types.ts","../src/functions/wirings/http/serialize-typed-http-map.ts","../src/functions/wirings/mcp/pikku-command-mcp-json.ts","../src/functions/wirings/mcp/pikku-command-mcp-types.ts","../src/functions/wirings/mcp/pikku-command-mcp.ts","../src/functions/wirings/mcp/serialize-mcp-types.ts","../src/functions/wirings/middleware/pikku-command-middleware.ts","../src/functions/wirings/middleware/serialize-middleware-imports.ts","../src/functions/wirings/package/pikku-command-package-types.ts","../src/functions/wirings/package/pikku-command-package.ts","../src/functions/wirings/package/serialize-package-types.ts","../src/functions/wirings/package/serialize-package.ts","../src/functions/wirings/permissions/pikku-command-permissions.ts","../src/functions/wirings/permissions/serialize-permissions-imports.ts","../src/functions/wirings/queue/pikku-command-queue-map.ts","../src/functions/wirings/queue/pikku-command-queue-service.ts","../src/functions/wirings/queue/pikku-command-queue-types.ts","../src/functions/wirings/queue/pikku-command-queue.ts","../src/functions/wirings/queue/pikku-queue-map.ts","../src/functions/wirings/queue/pikku-queue.ts","../src/functions/wirings/queue/serialize-queue-map.ts","../src/functions/wirings/queue/serialize-queue-meta.ts","../src/functions/wirings/queue/serialize-queue-types.ts","../src/functions/wirings/queue/serialize-queue-wrapper.ts","../src/functions/wirings/realtime/pikku-command-events-scaffold.ts","../src/functions/wirings/realtime/pikku-command-realtime.ts","../src/functions/wirings/realtime/serialize-events-scaffold.ts","../src/functions/wirings/realtime/serialize-realtime-client.ts","../src/functions/wirings/rpc/pikku-command-public-rpc.ts","../src/functions/wirings/rpc/pikku-command-react-query.ts","../src/functions/wirings/rpc/pikku-command-remote-rpc.ts","../src/functions/wirings/rpc/pikku-command-rpc-client.ts","../src/functions/wirings/rpc/pikku-command-rpc-map.ts","../src/functions/wirings/rpc/pikku-command-rpc.ts","../src/functions/wirings/rpc/serialize-public-rpc.ts","../src/functions/wirings/rpc/serialize-react-query-hooks.ts","../src/functions/wirings/rpc/serialize-remote-rpc.ts","../src/functions/wirings/rpc/serialize-rpc-wrapper.ts","../src/functions/wirings/rpc/serialize-typed-rpc-map.ts","../src/functions/wirings/scheduler/pikku-command-scheduler-types.ts","../src/functions/wirings/scheduler/pikku-command-scheduler.ts","../src/functions/wirings/scheduler/serialize-scheduler-meta.ts","../src/functions/wirings/scheduler/serialize-scheduler-types.ts","../src/functions/wirings/secrets/pikku-command-secrets.ts","../src/functions/wirings/secrets/serialize-secrets-types.ts","../src/functions/wirings/triggers/pikku-command-trigger-types.ts","../src/functions/wirings/triggers/pikku-command-trigger.ts","../src/functions/wirings/triggers/serialize-trigger-meta.ts","../src/functions/wirings/triggers/serialize-trigger-types.ts","../src/functions/wirings/variables/pikku-command-variables.ts","../src/functions/wirings/variables/serialize-variables-types.ts","../src/functions/wirings/workflow/pikku-command-workflow-routes.ts","../src/functions/wirings/workflow/pikku-command-workflow.ts","../src/functions/wirings/workflow/serialize-workflow-bootstrap-map.ts","../src/functions/wirings/workflow/serialize-workflow-map.ts","../src/functions/wirings/workflow/serialize-workflow-meta.ts","../src/functions/wirings/workflow/serialize-workflow-registration.ts","../src/functions/wirings/workflow/serialize-workflow-routes.ts","../src/functions/wirings/workflow/serialize-workflow-types.ts","../src/functions/workflows/all.workflow.ts","../src/middleware/log-command-info-and-time.ts","../src/scaffold/rpc-remote.gen.ts","../src/scaffold/workflow-routes.gen.ts","../src/services/cli-logger-forwarder.service.ts","../src/services/cli-logger.service.ts","../src/utils/check-required-types.ts","../src/utils/command-summary.ts","../src/utils/contract-versions.ts","../src/utils/file-import-path.ts","../src/utils/file-imports-serializer.ts","../src/utils/file-writer.ts","../src/utils/generate-bootstrap-file.ts","../src/utils/get-cli-version.ts","../src/utils/parse-cli-filters.ts","../src/utils/pikku-cli-config.ts","../src/utils/pikku-files-and-methods.ts","../src/utils/serialize-import-map.ts","../src/utils/serialize-meta-ts.ts","../src/utils/serialize-schemas.ts","../src/utils/strip-verbose-meta.ts","../.pikku/pikku-bootstrap.gen.ts","../.pikku/pikku-meta-service.gen.ts","../.pikku/pikku-services.gen.ts","../.pikku/pikku-types.gen.ts","../.pikku/agent/pikku-agent-map.gen.d.ts","../.pikku/agent/pikku-agent-types.gen.ts","../.pikku/channel/pikku-channel-types.gen.ts","../.pikku/cli/pikku-cli-channel.ts","../.pikku/cli/pikku-cli-types.gen.ts","../.pikku/cli/pikku-cli-wirings-meta.gen.ts","../.pikku/cli/pikku-cli-wirings.gen.ts","../.pikku/cli/pikku-cli.gen.ts","../.pikku/console/pikku-node-types.gen.ts","../.pikku/function/pikku-function-types.gen.ts","../.pikku/function/pikku-functions-meta.gen.ts","../.pikku/function/pikku-functions.gen.ts","../.pikku/http/pikku-http-types.gen.ts","../.pikku/http/pikku-http-wirings-map.gen.d.ts","../.pikku/http/pikku-http-wirings-meta.gen.ts","../.pikku/http/pikku-http-wirings.gen.ts","../.pikku/mcp/pikku-mcp-types.gen.ts","../.pikku/node/pikku-node-types.gen.ts","../.pikku/queue/pikku-queue-types.gen.ts","../.pikku/queue/pikku-queue-workers-wirings-map.gen.d.ts","../.pikku/queue/pikku-queue-workers-wirings-meta.gen.ts","../.pikku/queue/pikku-queue-workers-wirings.gen.ts","../.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts","../.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts","../.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts","../.pikku/scheduler/pikku-scheduler-types.gen.ts","../.pikku/schemas/register.gen.ts","../.pikku/secrets/pikku-secret-types.gen.ts","../.pikku/secrets/pikku-secrets.gen.ts","../.pikku/trigger/pikku-trigger-types.gen.ts","../.pikku/variables/pikku-variable-types.gen.ts","../.pikku/variables/pikku-variables.gen.ts","../.pikku/workflow/pikku-workflow-map.gen.d.ts","../.pikku/workflow/pikku-workflow-types.gen.ts","../.pikku/workflow/pikku-workflow-wirings-meta.gen.ts","../.pikku/workflow/pikku-workflow-wirings.gen.ts","../types/application-types.d.ts","../types/config.d.ts"],"version":"5.9.3"}
|