@pikku/cli 0.12.110 → 0.12.112
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/CHANGELOG.md +271 -0
- package/console-app/assets/{abnfDiagram-N423BO3Z-Bz2Ycfpe.js → abnfDiagram-N423BO3Z-Bltf5dmS.js} +1 -1
- package/console-app/assets/architecture-TIHT7OUA-DgRqRaqo.js +1 -0
- package/console-app/assets/{architectureDiagram-T3A2C74G-CvAkxhy0.js → architectureDiagram-T3A2C74G-BTtx6R7-.js} +1 -1
- package/console-app/assets/{blockDiagram-VBNYF7ZC-CuVOo2PB.js → blockDiagram-VBNYF7ZC-DgeTIOaM.js} +1 -1
- package/console-app/assets/{c4Diagram-5PPSVZJV-4Vg8SxCa.js → c4Diagram-5PPSVZJV-CaswnNob.js} +1 -1
- package/console-app/assets/channel-37lNznWk.js +1 -0
- package/console-app/assets/{chunk-2GRJ4B5K-CKKR4_dC.js → chunk-2GRJ4B5K-OnpnkpQT.js} +1 -1
- package/console-app/assets/{chunk-4I5QYGJK-C-m_kVjm.js → chunk-4I5QYGJK-CWmfNXFr.js} +1 -1
- package/console-app/assets/{chunk-5RXB4S5H-CyUGtd0h.js → chunk-5RXB4S5H-M8QmKeuk.js} +1 -1
- package/console-app/assets/{chunk-6Q2QTUOP-BuzItInf.js → chunk-6Q2QTUOP-C_h5lS68.js} +1 -1
- package/console-app/assets/{chunk-7Z6QIM7H-BGiBPuWt.js → chunk-7Z6QIM7H-DSnVb09k.js} +1 -1
- package/console-app/assets/{chunk-GF5L2VYU-D8jaliB9.js → chunk-GF5L2VYU-BkX038sq.js} +1 -1
- package/console-app/assets/{chunk-I66GZJ75-C-Lq_UXl.js → chunk-I66GZJ75-b3yMIljX.js} +1 -1
- package/console-app/assets/{chunk-JQJVKLGR-D7viK-tf.js → chunk-JQJVKLGR-Bihcz4nv.js} +1 -1
- package/console-app/assets/{chunk-KBJHAD2P-BS9N9gG4.js → chunk-KBJHAD2P-CS7eflbk.js} +1 -1
- package/console-app/assets/{chunk-NSK5VX7P-Fi_H0vaS.js → chunk-NSK5VX7P-CfigFGDQ.js} +1 -1
- package/console-app/assets/{chunk-QR6OTTB3-BJdg-tcL.js → chunk-QR6OTTB3-BBy8NfTW.js} +1 -1
- package/console-app/assets/{chunk-RYQCIY6F-CVbGA6YZ.js → chunk-RYQCIY6F-BCfZVQef.js} +1 -1
- package/console-app/assets/{chunk-UBXNYLIW-BF-sAqEK.js → chunk-UBXNYLIW-DkMKDHW4.js} +1 -1
- package/console-app/assets/{chunk-W5SLKNZC-CXrJJ0BX.js → chunk-W5SLKNZC-BSLytTSJ.js} +1 -1
- package/console-app/assets/{chunk-WRU74C26-CGzysGBy.js → chunk-WRU74C26-Dic7ZP8H.js} +1 -1
- package/console-app/assets/chunk-XXDRQBXY-B1prMCvW.js +1 -0
- package/console-app/assets/classDiagram-JCYQIIEL-BDCX9ZLm.js +1 -0
- package/console-app/assets/classDiagram-v2-OCEON4UE-BDCX9ZLm.js +1 -0
- package/console-app/assets/{cose-bilkent-JH36ORCC-BvFZIDHb.js → cose-bilkent-JH36ORCC-CEpWcE3M.js} +1 -1
- package/console-app/assets/{cynefin-VYW2F7L2-DRQ8xGmN.js → cynefin-VYW2F7L2-irPiPhgz.js} +1 -1
- package/console-app/assets/{cynefinDiagram-MW4NZA55-BwxQ4C1z.js → cynefinDiagram-MW4NZA55-CIkqQ912.js} +1 -1
- package/console-app/assets/{dagre-J22zmNeE.js → dagre-FZyyw3H3.js} +1 -1
- package/console-app/assets/{dagre-VZM6K2ZE-DPtUyvjD.js → dagre-VZM6K2ZE-Dxnnu7Rh.js} +1 -1
- package/console-app/assets/{diagram-7IWD3JNH-DGAzJ2Ln.js → diagram-7IWD3JNH-DaT47sVs.js} +1 -1
- package/console-app/assets/{diagram-B4RE2ZJO-D14cIfto.js → diagram-B4RE2ZJO-Dmht03tx.js} +1 -1
- package/console-app/assets/{diagram-LBJQPF4R-CUscJ_pO.js → diagram-LBJQPF4R-B--jwILh.js} +1 -1
- package/console-app/assets/{diagram-Q27KOJAE-CehBHMt3.js → diagram-Q27KOJAE-D9H0euUr.js} +1 -1
- package/console-app/assets/{diagram-UB23O5K3-BvazI_qH.js → diagram-UB23O5K3-DloUQ8tO.js} +1 -1
- package/console-app/assets/{ebnfDiagram-BXEA7PRR-CBZPYFwZ.js → ebnfDiagram-BXEA7PRR-gaOXzNBU.js} +1 -1
- package/console-app/assets/{erDiagram-JOGREHBK-BN3FevvT.js → erDiagram-JOGREHBK-3X9eTLsh.js} +1 -1
- package/console-app/assets/eventmodeling-45OFAUF4-BarrKD55.js +1 -0
- package/console-app/assets/flowDiagram-UKHOOZJN-B6RiRjcD.js +1 -0
- package/console-app/assets/{ganttDiagram-PKOTCBZU-03mWH2kB.js → ganttDiagram-PKOTCBZU-khAFwSBy.js} +1 -1
- package/console-app/assets/{gitGraph-TEB2WS4Q-By2486wn.js → gitGraph-TEB2WS4Q-Bb7uENmk.js} +1 -1
- package/console-app/assets/{gitGraphDiagram-DS77QQ5N-CCzKPRBJ.js → gitGraphDiagram-DS77QQ5N-OkSBM0h0.js} +1 -1
- package/console-app/assets/{index-snBzz_U8.js → index-Bn1BoT3w.js} +184 -184
- package/console-app/assets/{info-DKCQHKI2-C_vsavqC.js → info-DKCQHKI2-BH5dbX2B.js} +1 -1
- package/console-app/assets/{infoDiagram-6WML65LV-BKvU8du7.js → infoDiagram-6WML65LV-IbUl8J2C.js} +1 -1
- package/console-app/assets/{ishikawaDiagram-WSZJBQD7-CnF0qm0n.js → ishikawaDiagram-WSZJBQD7-CX0gA3de.js} +1 -1
- package/console-app/assets/{journeyDiagram-NVQOT4AX-DxKe9OZ7.js → journeyDiagram-NVQOT4AX--k2etXu8.js} +1 -1
- package/console-app/assets/{kanban-definition-27J2QSJJ-CB8lgPxU.js → kanban-definition-27J2QSJJ-D1FvtPpN.js} +1 -1
- package/console-app/assets/{line-DFNLso1I.js → line-JLMY_DDK.js} +1 -1
- package/console-app/assets/{linear-D1cspVtk.js → linear-CSvLB3cd.js} +1 -1
- package/console-app/assets/{mermaid-parser.core-BtmN233C.js → mermaid-parser.core-CwwjcAjz.js} +3 -3
- package/console-app/assets/{mermaid.core-37H5_HoB.js → mermaid.core-hmS_M4K5.js} +4 -4
- package/console-app/assets/{mindmap-definition-FAOFIHXS-Czf82JOB.js → mindmap-definition-FAOFIHXS-rTDa_CTp.js} +1 -1
- package/console-app/assets/{packet-7NZHBO7P-CErYxAQM.js → packet-7NZHBO7P-DBUJcYfI.js} +1 -1
- package/console-app/assets/{pegDiagram-VL7TDLO6-CRKX6HOt.js → pegDiagram-VL7TDLO6-D42PxXnS.js} +1 -1
- package/console-app/assets/{pie-RZYD4A2V-YmMmh6Nq.js → pie-RZYD4A2V-dM0uFAE4.js} +1 -1
- package/console-app/assets/{pieDiagram-7S7Q4E2Y-Cot0Fu5q.js → pieDiagram-7S7Q4E2Y-wCln1ucl.js} +1 -1
- package/console-app/assets/{quadrantDiagram-CIZ2JOQS-DPEonVYT.js → quadrantDiagram-CIZ2JOQS-DrRwS1g5.js} +1 -1
- package/console-app/assets/{radar-I7S5WNFK-Pf_KiQJM.js → radar-I7S5WNFK-BW0V-EGR.js} +1 -1
- package/console-app/assets/{railroad-3IZDKUUU-BYoOMoQY.js → railroad-3IZDKUUU-FiTHaDbb.js} +1 -1
- package/console-app/assets/railroad-abnf-AHOZXSZD-lmUjOixE.js +1 -0
- package/console-app/assets/railroad-ebnf-EBAXGLYW-ZjdA7OHp.js +1 -0
- package/console-app/assets/railroad-peg-LSFZ7HO6-VHSlvwI8.js +1 -0
- package/console-app/assets/{railroadDiagram-AXF67PYL-Di8N9tHD.js → railroadDiagram-AXF67PYL-9ef7j5U7.js} +1 -1
- package/console-app/assets/{requirementDiagram-LRYGKXZP-2yZZ753q.js → requirementDiagram-LRYGKXZP-Cu90DbEZ.js} +1 -1
- package/console-app/assets/{sankeyDiagram-W5VNT64P-BwYA-xq1.js → sankeyDiagram-W5VNT64P-Bhxmyxaw.js} +1 -1
- package/console-app/assets/{sequenceDiagram-SI44F4Z6-odIxlx8J.js → sequenceDiagram-SI44F4Z6-CBsbRTz8.js} +1 -1
- package/console-app/assets/{src-CxJwpjvz.js → src-BR8qR3lM.js} +1 -1
- package/console-app/assets/{stateDiagram-OKZ733FA-Du2S0qU9.js → stateDiagram-OKZ733FA-Dr0frETZ.js} +1 -1
- package/console-app/assets/stateDiagram-v2-UEYNNEHI-BSXWhCvf.js +1 -0
- package/console-app/assets/{swimlanes-SLNWSIFB-JZ3swzI2.js → swimlanes-SLNWSIFB-CXMjvd_a.js} +1 -1
- package/console-app/assets/swimlanesDiagram-ULZ7WXOC-BUdsPDKC.js +8 -0
- package/console-app/assets/{timeline-definition-Z64GVDOM-CsppAEWi.js → timeline-definition-Z64GVDOM-DpmEZPV0.js} +1 -1
- package/console-app/assets/{treeView-QDETBFTQ-DkkO8peQ.js → treeView-QDETBFTQ-CjmuinMk.js} +1 -1
- package/console-app/assets/{treemap-6X3UGDF4-hjLkPCJI.js → treemap-6X3UGDF4-BP_fU6Cn.js} +1 -1
- package/console-app/assets/{vennDiagram-T6HMQDX7-BOfgM1xp.js → vennDiagram-T6HMQDX7-DgZS7iuW.js} +1 -1
- package/console-app/assets/{wardley-OPB4EBWU-C5ZtGfBa.js → wardley-OPB4EBWU-CgMPoouN.js} +1 -1
- package/console-app/assets/{wardleyDiagram-T6FBY63Y-ymf3Vm6A.js → wardleyDiagram-T6FBY63Y-6y-xxP1R.js} +1 -1
- package/console-app/assets/{xychartDiagram-ELKLHX3M-DdxXIoKz.js → xychartDiagram-ELKLHX3M-DOeIQjYI.js} +1 -1
- package/console-app/index.html +1 -1
- package/dist/.pikku/addon/index.d.ts +1 -1
- package/dist/.pikku/addon/index.js +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.js +1 -1
- package/dist/.pikku/agent/index.d.ts +1 -1
- package/dist/.pikku/agent/index.js +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
- package/dist/.pikku/agent/pikku-model-aliases.gen.js +1 -1
- package/dist/.pikku/auth/index.d.ts +1 -1
- package/dist/.pikku/auth/index.js +1 -1
- package/dist/.pikku/auth/pikku-auth-types.gen.d.ts +9 -2
- package/dist/.pikku/auth/pikku-auth-types.gen.js +1 -1
- package/dist/.pikku/channel/index.d.ts +1 -1
- package/dist/.pikku/channel/index.js +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
- package/dist/.pikku/cli/index.d.ts +1 -1
- package/dist/.pikku/cli/index.js +1 -1
- package/dist/.pikku/cli/pikku-cli-channel.js +1 -1
- package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-client.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings.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/error/index.d.ts +1 -1
- package/dist/.pikku/error/index.js +1 -1
- package/dist/.pikku/error/pikku-error-types.gen.d.ts +1 -1
- package/dist/.pikku/error/pikku-error-types.gen.js +1 -1
- package/dist/.pikku/function/index.d.ts +1 -1
- package/dist/.pikku/function/index.js +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +12 -2
- package/dist/.pikku/function/pikku-function-types.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +3 -3
- package/dist/.pikku/function/pikku-functions.gen.js +1 -1
- package/dist/.pikku/gateway/index.d.ts +1 -1
- package/dist/.pikku/gateway/index.js +1 -1
- package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts +1 -1
- package/dist/.pikku/gateway/pikku-gateway-types.gen.js +1 -1
- package/dist/.pikku/http/index.d.ts +1 -1
- package/dist/.pikku/http/index.js +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
- package/dist/.pikku/mcp/index.d.ts +1 -1
- package/dist/.pikku/mcp/index.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/middleware/index.d.ts +1 -1
- package/dist/.pikku/middleware/index.js +1 -1
- package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts +9 -2
- package/dist/.pikku/middleware/pikku-middleware-types.gen.js +1 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +1 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
- package/dist/.pikku/pikku-services.gen.d.ts +2 -1
- package/dist/.pikku/pikku-services.gen.js +1 -0
- package/dist/.pikku/queue/index.d.ts +1 -1
- package/dist/.pikku/queue/index.js +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/scenarios/index.d.ts +1 -1
- package/dist/.pikku/scenarios/index.js +1 -1
- package/dist/.pikku/scenarios/pikku-personas.gen.js +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/schemas/register.gen.js +1 -1
- package/dist/.pikku/scheduler/index.d.ts +1 -1
- package/dist/.pikku/scheduler/index.js +1 -1
- 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 +1 -1
- package/dist/.pikku/scopes/index.d.ts +1 -1
- package/dist/.pikku/scopes/index.js +1 -1
- package/dist/.pikku/scopes/pikku-personas.gen.js +1 -1
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts +1 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +1 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.js +1 -1
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +1 -1
- package/dist/.pikku/secrets/index.d.ts +1 -1
- package/dist/.pikku/secrets/index.js +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/services/pikku-meta-service.gen.d.ts +1 -1
- package/dist/.pikku/services/pikku-meta-service.gen.js +1 -1
- package/dist/.pikku/setup/index.d.ts +1 -1
- package/dist/.pikku/setup/index.js +1 -1
- package/dist/.pikku/setup/pikku-setup-types.gen.d.ts +1 -1
- package/dist/.pikku/setup/pikku-setup-types.gen.js +1 -1
- package/dist/.pikku/trigger/index.d.ts +1 -1
- package/dist/.pikku/trigger/index.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/index.d.ts +1 -1
- package/dist/.pikku/variables/index.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/index.d.ts +1 -1
- package/dist/.pikku/workflow/index.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/bin/pikku-bin.mjs +2 -2
- package/dist/src/deploy/analyzer/analyzer.d.ts +1 -1
- package/dist/src/deploy/analyzer/index.d.ts +0 -1
- package/dist/src/deploy/build-pipeline.d.ts +2 -2
- package/dist/src/deploy/bundler/types.d.ts +1 -1
- package/dist/src/deploy/codegen/per-unit-codegen.d.ts +1 -1
- package/dist/src/deploy/plan/executor.d.ts +1 -1
- package/dist/src/deploy/plan/planner.d.ts +1 -1
- package/dist/src/deploy/plan/provider.d.ts +1 -1
- package/dist/src/deploy/server-entry.d.ts +1 -1
- package/dist/src/fabric/fabric-commands.d.ts +3 -3
- package/dist/src/fabric/functions/llm-key.function.d.ts +4 -4
- package/dist/src/functions/commands/db-generate.js +1 -1
- package/dist/src/functions/commands/deploy-apply.d.ts +1 -1
- package/dist/src/functions/commands/new-addon.js +14 -12
- package/dist/src/functions/commands/persona.js +6 -0
- package/dist/src/functions/db/better-auth-schema.js +5 -0
- package/dist/src/functions/db/local-db.d.ts +11 -3
- package/dist/src/functions/db/local-db.js +17 -8
- package/dist/src/functions/wirings/auth/serialize-auth-guards.d.ts +1 -1
- package/dist/src/functions/wirings/auth/serialize-auth-guards.js +9 -2
- package/dist/src/functions/wirings/functions/pikku-command-function-types-split.js +2 -2
- package/dist/src/functions/wirings/functions/serialize-function-types.js +11 -1
- package/dist/src/functions/wirings/middleware/serialize-middleware-types.d.ts +1 -1
- package/dist/src/functions/wirings/middleware/serialize-middleware-types.js +10 -2
- package/dist/src/functions/wirings/virtual-user/serialize-virtual-user-functions.js +485 -102
- package/dist/src/utils/pikku-cli-config-error.d.ts +9 -0
- package/dist/src/utils/pikku-cli-config-error.js +9 -0
- package/dist/src/utils/pikku-cli-config.d.ts +2 -3
- package/dist/src/utils/pikku-cli-config.js +2 -3
- package/dist/src/utils/resolve-scaffold-feature.d.ts +6 -0
- package/dist/src/utils/resolve-scaffold-feature.js +22 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -7
- package/surface.json +4 -26
- package/console-app/assets/architecture-TIHT7OUA-5QhJKy4P.js +0 -1
- package/console-app/assets/channel-DoE3nnYB.js +0 -1
- package/console-app/assets/chunk-XXDRQBXY-BDALKVU4.js +0 -1
- package/console-app/assets/classDiagram-JCYQIIEL-BgrrHQtN.js +0 -1
- package/console-app/assets/classDiagram-v2-OCEON4UE-BgrrHQtN.js +0 -1
- package/console-app/assets/eventmodeling-45OFAUF4-D2SxzJUl.js +0 -1
- package/console-app/assets/flowDiagram-UKHOOZJN-CQXuJ0z2.js +0 -1
- package/console-app/assets/railroad-abnf-AHOZXSZD-CCRXsRRD.js +0 -1
- package/console-app/assets/railroad-ebnf-EBAXGLYW-DVRSVgn8.js +0 -1
- package/console-app/assets/railroad-peg-LSFZ7HO6-COUBoNH3.js +0 -1
- package/console-app/assets/stateDiagram-v2-UEYNNEHI-CTXOGDRR.js +0 -1
- package/console-app/assets/swimlanesDiagram-ULZ7WXOC-DRrggQgK.js +0 -8
- package/dist/src/deploy/analyzer/manifest.d.ts +0 -170
- package/dist/src/deploy/analyzer/manifest.js +0 -8
- package/dist/src/deploy/provider-adapter.d.ts +0 -176
- package/dist/src/deploy/provider-adapter.js +0 -10
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provider adapter interface for the deploy pipeline.
|
|
3
|
-
*
|
|
4
|
-
* Each provider (Cloudflare, AWS, etc.) implements this to handle
|
|
5
|
-
* the provider-specific parts of deployment: entry generation,
|
|
6
|
-
* infrastructure manifests, and config files.
|
|
7
|
-
*
|
|
8
|
-
* The generic pipeline handles: analysis, codegen, bundling, plan/apply.
|
|
9
|
-
*/
|
|
10
|
-
import type { DeploymentManifest, DeploymentUnit } from './analyzer/manifest.js';
|
|
11
|
-
export interface EntryGenerationContext {
|
|
12
|
-
/** The unit being generated */
|
|
13
|
-
unit: DeploymentUnit;
|
|
14
|
-
/** Absolute path to the unit's output directory */
|
|
15
|
-
unitDir: string;
|
|
16
|
-
/** Relative path to the unit's pikku-bootstrap.gen.js */
|
|
17
|
-
bootstrapPath: string;
|
|
18
|
-
/** Import statement for createConfig */
|
|
19
|
-
configImport: string;
|
|
20
|
-
/** Variable name for createConfig */
|
|
21
|
-
configVar: string;
|
|
22
|
-
/** Import statement for createSingletonServices */
|
|
23
|
-
servicesImport: string;
|
|
24
|
-
/** Variable name for createSingletonServices */
|
|
25
|
-
servicesVar: string;
|
|
26
|
-
/** Import statement for SingletonServices type (or empty string) */
|
|
27
|
-
singletonServicesImport: string;
|
|
28
|
-
/** Type expression for Partial<SingletonServices> (or fallback) */
|
|
29
|
-
servicesType: string;
|
|
30
|
-
/**
|
|
31
|
-
* `import mcpJson from '…/mcp.gen.json' with { type: 'json' }` when the unit
|
|
32
|
-
* has a non-empty mcp.gen.json, else ''. Pair with `mcpServerOption`.
|
|
33
|
-
*/
|
|
34
|
-
mcpImport: string;
|
|
35
|
-
/**
|
|
36
|
-
* `'mcpJson, '` to splice into the PikkuNodeHTTPServer *third* (options) arg —
|
|
37
|
-
* the server reads `this.options.mcpJson`, NOT the first config arg — so it
|
|
38
|
-
* mounts /mcp. Else ''. Empty is safe — trailing commas are valid.
|
|
39
|
-
*/
|
|
40
|
-
mcpServerOption: string;
|
|
41
|
-
}
|
|
42
|
-
export interface ProviderAdapter {
|
|
43
|
-
/** Provider name (e.g. 'cloudflare', 'aws') */
|
|
44
|
-
readonly name: string;
|
|
45
|
-
/** Subdirectory name under .deploy/ (e.g. 'cloudflare') */
|
|
46
|
-
readonly deployDirName: string;
|
|
47
|
-
/**
|
|
48
|
-
* When true, skips per-unit decomposition and bundles everything
|
|
49
|
-
* into a single unit using the project's full .pikku/ directory.
|
|
50
|
-
* Used by standalone adapter.
|
|
51
|
-
*/
|
|
52
|
-
readonly singleUnit?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Whether the provider's workflow runtime needs synthesized per-step
|
|
55
|
-
* dispatch queues. Defaults to `true`.
|
|
56
|
-
*
|
|
57
|
-
* - `true` (default): The deploy pipeline synthesizes a `wf-orchestrator-*`
|
|
58
|
-
* queue and a `wf-step-*` queue for every workflow step, plus producer
|
|
59
|
-
* bindings, so the workflow runtime can fan out via queues.
|
|
60
|
-
* - `false`: No synthetic workflow queues are emitted into the manifest
|
|
61
|
-
* or per-unit codegen. Use this when the provider's workflow runtime
|
|
62
|
-
* dispatches steps natively (e.g. Cloudflare's Durable-Object-based
|
|
63
|
-
* `CloudflareWorkflowService`, where the orchestrator DO advances
|
|
64
|
-
* steps directly without a queue hop). Queues created via explicit
|
|
65
|
-
* `wireQueue(...)` user code are unaffected.
|
|
66
|
-
*/
|
|
67
|
-
readonly workflowQueues?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Generate the entry file source for a deployment unit.
|
|
70
|
-
* Called once per unit.
|
|
71
|
-
*/
|
|
72
|
-
generateEntrySource(ctx: EntryGenerationContext): string;
|
|
73
|
-
/**
|
|
74
|
-
* Generate the entry file source for a `target: 'server'` (container) unit.
|
|
75
|
-
*
|
|
76
|
-
* Optional. When a provider implements it, the deploy pipeline uses it
|
|
77
|
-
* instead of the provider-agnostic `generateServerEntrySource`, so the
|
|
78
|
-
* provider can inject the SAME platform services (kysely, secrets, …) into
|
|
79
|
-
* the container that it injects into its serverless workers — sourcing the
|
|
80
|
-
* bindings from `process.env` instead of a runtime `env` object. When
|
|
81
|
-
* omitted, the pipeline falls back to the generic generator (no platform
|
|
82
|
-
* injection), which is correct for providers whose containers carry no
|
|
83
|
-
* platform services.
|
|
84
|
-
*/
|
|
85
|
-
generateServerEntrySource?(ctx: EntryGenerationContext): string;
|
|
86
|
-
/**
|
|
87
|
-
* Generate provider-specific config files per unit (e.g. wrangler.toml).
|
|
88
|
-
* Returns a map of filename → content to write into the unit directory.
|
|
89
|
-
*/
|
|
90
|
-
generateUnitConfigs(unit: DeploymentUnit, manifest: DeploymentManifest, projectId: string): Map<string, string>;
|
|
91
|
-
/**
|
|
92
|
-
* Generate provider-level infrastructure manifest (e.g. infra.json).
|
|
93
|
-
* Returns file content, or null if not applicable.
|
|
94
|
-
*/
|
|
95
|
-
generateInfraManifest(manifest: DeploymentManifest): string | null;
|
|
96
|
-
/**
|
|
97
|
-
* External modules for esbuild bundling.
|
|
98
|
-
* Defaults to ['node:*'] if not provided.
|
|
99
|
-
*/
|
|
100
|
-
getExternals?(): string[];
|
|
101
|
-
/**
|
|
102
|
-
* Regex sources for modules to stub to `export {}` during bundling — modules
|
|
103
|
-
* this provider's runtime never executes (e.g. the `postgres` driver on CF
|
|
104
|
-
* Workers, which use a libsql/Turso dialect). Unlike `getExternals`, a stub
|
|
105
|
-
* removes the bytes entirely rather than leaving a runtime import to resolve.
|
|
106
|
-
*/
|
|
107
|
-
getStubModules?(): string[];
|
|
108
|
-
/**
|
|
109
|
-
* Module aliases for esbuild bundling (e.g. { crypto: 'node:crypto' }).
|
|
110
|
-
* Used to remap bare imports to platform-compatible paths.
|
|
111
|
-
*/
|
|
112
|
-
getAliases?(): Record<string, string>;
|
|
113
|
-
/**
|
|
114
|
-
* esbuild define map for compile-time constants (e.g. { 'process.env.NODE_ENV': '"production"' }).
|
|
115
|
-
*/
|
|
116
|
-
getDefine?(): Record<string, string>;
|
|
117
|
-
/**
|
|
118
|
-
* esbuild platform target. Defaults to 'node'.
|
|
119
|
-
* Cloudflare Workers should use 'neutral'.
|
|
120
|
-
*/
|
|
121
|
-
getPlatform?(): 'node' | 'neutral' | 'browser';
|
|
122
|
-
/**
|
|
123
|
-
* esbuild output format. Defaults to 'esm'.
|
|
124
|
-
* pkg requires 'cjs' for standalone binaries.
|
|
125
|
-
*/
|
|
126
|
-
getFormat?(): 'esm' | 'cjs';
|
|
127
|
-
/**
|
|
128
|
-
* Skip the createRequire banner. CF Workers should return true —
|
|
129
|
-
* `import.meta.url` is undefined there and the banner crashes at boot.
|
|
130
|
-
*/
|
|
131
|
-
getNoRequireShim?(): boolean;
|
|
132
|
-
/**
|
|
133
|
-
* Generate additional provider-level config files (e.g. serverless.yml).
|
|
134
|
-
* Returns a map of filename → content to write into the deploy directory.
|
|
135
|
-
*/
|
|
136
|
-
generateProviderConfigs?(manifest: DeploymentManifest): Map<string, string>;
|
|
137
|
-
/**
|
|
138
|
-
* Emit any provider-specific artifacts that aren't tied to a single user
|
|
139
|
-
* unit — e.g. a synthesized proxy Worker that fronts a CF Container.
|
|
140
|
-
* Called after the infra manifest is written so providers can read it
|
|
141
|
-
* and key off resources that were provisioned in earlier steps.
|
|
142
|
-
*/
|
|
143
|
-
emitSideArtifacts?(options: {
|
|
144
|
-
buildDir: string;
|
|
145
|
-
manifest: DeploymentManifest;
|
|
146
|
-
logger: {
|
|
147
|
-
info(msg: string): void;
|
|
148
|
-
error(msg: string): void;
|
|
149
|
-
};
|
|
150
|
-
}): Promise<void>;
|
|
151
|
-
/**
|
|
152
|
-
* Deploy the built artifacts to the provider.
|
|
153
|
-
* Optional — if not implemented, the CLI just outputs the build directory.
|
|
154
|
-
*/
|
|
155
|
-
deploy?(options: {
|
|
156
|
-
buildDir: string;
|
|
157
|
-
logger: {
|
|
158
|
-
info(msg: string): void;
|
|
159
|
-
error(msg: string): void;
|
|
160
|
-
};
|
|
161
|
-
onProgress?: (step: string, detail: string) => void;
|
|
162
|
-
}): Promise<{
|
|
163
|
-
success: boolean;
|
|
164
|
-
workersDeployed?: Array<{
|
|
165
|
-
name: string;
|
|
166
|
-
}>;
|
|
167
|
-
resourcesCreated?: Array<{
|
|
168
|
-
type: string;
|
|
169
|
-
name: string;
|
|
170
|
-
}>;
|
|
171
|
-
errors: Array<{
|
|
172
|
-
step: string;
|
|
173
|
-
error: string;
|
|
174
|
-
}>;
|
|
175
|
-
}>;
|
|
176
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provider adapter interface for the deploy pipeline.
|
|
3
|
-
*
|
|
4
|
-
* Each provider (Cloudflare, AWS, etc.) implements this to handle
|
|
5
|
-
* the provider-specific parts of deployment: entry generation,
|
|
6
|
-
* infrastructure manifests, and config files.
|
|
7
|
-
*
|
|
8
|
-
* The generic pipeline handles: analysis, codegen, bundling, plan/apply.
|
|
9
|
-
*/
|
|
10
|
-
export {};
|