@pikku/cli 0.12.104 → 0.12.107
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 +7306 -0
- package/console-app/assets/abnfDiagram-N423BO3Z-C5uToS9v.js +1 -0
- package/console-app/assets/arc-D8VmsdJb.js +1 -0
- package/console-app/assets/architecture-TIHT7OUA-B1IpeRpl.js +1 -0
- package/console-app/assets/architectureDiagram-T3A2C74G-BzJDRfv4.js +36 -0
- package/console-app/assets/{blockDiagram-677ZJIJ3-CcSxyQZH.js → blockDiagram-VBNYF7ZC-X5G9Ch-D.js} +5 -5
- package/console-app/assets/c4Diagram-5PPSVZJV-B59aO2Sc.js +10 -0
- package/console-app/assets/channel-sTJGzqn9.js +1 -0
- package/console-app/assets/{chunk-32BRIVSS-Atv4wjmh.js → chunk-2GRJ4B5K-Bwe32j_R.js} +1 -1
- package/console-app/assets/{chunk-HOUHSVGY-CyU0q_QM.js → chunk-4I5QYGJK-Beg_uQQN.js} +1 -1
- package/console-app/assets/chunk-5RXB4S5H-0HaMiv3k.js +231 -0
- package/console-app/assets/{chunk-MOJQB5TN-DUKLkDFX.js → chunk-6Q2QTUOP-CXxkExOq.js} +1 -1
- package/console-app/assets/chunk-7Z6QIM7H-zUqPbrvp.js +10 -0
- package/console-app/assets/{chunk-V7JOEXUC-BfBH_WMn.js → chunk-GF5L2VYU-CY0wGPcJ.js} +3 -3
- package/console-app/assets/chunk-I66GZJ75-BP5UNkJY.js +127 -0
- package/console-app/assets/chunk-JQJVKLGR-3dvnUUZN.js +156 -0
- package/console-app/assets/{chunk-VR4S4FIN-q02O9Hva.js → chunk-KBJHAD2P-ChD7o2bf.js} +1 -1
- package/console-app/assets/{chunk-KEIR6QF5-DNzq6p3w.js → chunk-KEIR6QF5-BICK3FdT.js} +32 -32
- package/console-app/assets/chunk-NSK5VX7P-oG1nh33f.js +2 -0
- package/console-app/assets/{chunk-ZGVPDNZ5-2b6-Ub1z.js → chunk-QR6OTTB3-D_uKJrj6.js} +3 -3
- package/console-app/assets/chunk-RYQCIY6F-CtYhP8W5.js +1 -0
- package/console-app/assets/chunk-UBXNYLIW-CMgD3fvL.js +1 -0
- package/console-app/assets/{chunk-C7G6YPKG-DhtQv4yx.js → chunk-W5SLKNZC-cjI56NCs.js} +1 -1
- package/console-app/assets/{chunk-Q4XR5HBZ-Cpak96ZI.js → chunk-WRU74C26-BQqHgerX.js} +7 -7
- package/console-app/assets/chunk-XXDRQBXY-CLdTtHL4.js +1 -0
- package/console-app/assets/classDiagram-JCYQIIEL-Dh0wx8TK.js +1 -0
- package/console-app/assets/classDiagram-v2-OCEON4UE-Dh0wx8TK.js +1 -0
- package/console-app/assets/cose-bilkent-JH36ORCC-DcHzDpDb.js +1 -0
- package/console-app/assets/cynefin-VYW2F7L2-Cn2zn-8-.js +1 -0
- package/console-app/assets/cynefinDiagram-MW4NZA55-C00zINdu.js +62 -0
- package/console-app/assets/cytoscape.esm-B-NFISlW.js +321 -0
- package/console-app/assets/dagre-DE2imcyX.js +1 -0
- package/console-app/assets/dagre-VZM6K2ZE-Bb2uZ7tL.js +4 -0
- package/console-app/assets/defaultLocale-BFoDCU3G.js +1 -0
- package/console-app/assets/{diagram-OA4YK3LP-Dv-j07Wh.js → diagram-7IWD3JNH-DUN-JIa1.js} +3 -3
- package/console-app/assets/{diagram-FQU43EPY-SGSSyx5P.js → diagram-B4RE2ZJO-Ct5iRFhI.js} +1 -1
- package/console-app/assets/diagram-LBJQPF4R-BZ2Hrr-9.js +24 -0
- package/console-app/assets/diagram-Q27KOJAE-BHaThj6T.js +24 -0
- package/console-app/assets/diagram-UB23O5K3-CH-SzBoh.js +41 -0
- package/console-app/assets/dist-CsdsWTxp.js +1 -0
- package/console-app/assets/ebnfDiagram-BXEA7PRR-BkjeNaQH.js +1 -0
- package/console-app/assets/{erDiagram-Q63AITRT-DQ5Gu1Tw.js → erDiagram-JOGREHBK-BdL77bY3.js} +3 -3
- package/console-app/assets/eventmodeling-45OFAUF4-C6PNVeIU.js +1 -0
- package/console-app/assets/flowDiagram-UKHOOZJN-CmURPvo2.js +1 -0
- package/console-app/assets/ganttDiagram-PKOTCBZU-DfgO68Ez.js +292 -0
- package/console-app/assets/gitGraph-TEB2WS4Q-BNbepAzP.js +1 -0
- package/console-app/assets/{gitGraphDiagram-IHSO6WYX-7JFgdH2Q.js → gitGraphDiagram-DS77QQ5N-Crb8obGB.js} +4 -4
- package/console-app/assets/graphlib-IlWVLY3o.js +1 -0
- package/console-app/assets/index-Dsydm-nw.css +1 -0
- package/console-app/assets/index-g8jA8DJo.js +290 -0
- package/console-app/assets/info-DKCQHKI2-D9tXUXel.js +1 -0
- package/console-app/assets/infoDiagram-6WML65LV-BvG8ufLa.js +2 -0
- package/console-app/assets/init-C-OQMol4.js +1 -0
- package/console-app/assets/isUndefined-T4snU1Mx.js +1 -0
- package/console-app/assets/{ishikawaDiagram-FXEZZL3T-XjQC7Fmw.js → ishikawaDiagram-WSZJBQD7-BWoGxEjO.js} +3 -3
- package/console-app/assets/{journeyDiagram-5HDEW3XC-DyIcpJQM.js → journeyDiagram-NVQOT4AX-CR4YcPHg.js} +3 -3
- package/console-app/assets/{kanban-definition-HUTT4EX6-B1zYF1dv.js → kanban-definition-27J2QSJJ-DYfc5EZe.js} +6 -6
- package/console-app/assets/{katex-Vhh-h91d.js → katex-CXMH3UgJ.js} +3 -3
- package/console-app/assets/{line-C6UySSzG.js → line-NIaf8Mfw.js} +1 -1
- package/console-app/assets/linear-DB_1BE-l.js +1 -0
- package/console-app/assets/map-BmPfXn7V.js +1 -0
- package/console-app/assets/{mermaid-parser.core-Tfk1Eudy.js → mermaid-parser.core-BqCVMHRZ.js} +3 -3
- package/console-app/assets/mermaid.core-CYaeERjF.js +42 -0
- package/console-app/assets/{mindmap-definition-LN4V7U3C-5tBdCFVy.js → mindmap-definition-FAOFIHXS-BCjT2v4F.js} +3 -3
- package/console-app/assets/{ordinal-hYBb2elL.js → ordinal-BDEzSJ7C.js} +1 -1
- package/console-app/assets/packet-7NZHBO7P-CzFZvntp.js +1 -0
- package/console-app/assets/path-fybaL0A-.js +1 -0
- package/console-app/assets/pegDiagram-VL7TDLO6-3iMotW64.js +1 -0
- package/console-app/assets/pie-RZYD4A2V-CXIoUTJn.js +1 -0
- package/console-app/assets/pieDiagram-7S7Q4E2Y-B-EOKkdd.js +39 -0
- package/console-app/assets/{quadrantDiagram-ABIIQ3AL-Bwdtm5-W.js → quadrantDiagram-CIZ2JOQS-DDdq8l2N.js} +2 -2
- package/console-app/assets/radar-I7S5WNFK-9SLSkJ73.js +1 -0
- package/console-app/assets/railroad-3IZDKUUU-DdJ88Ord.js +1 -0
- package/console-app/assets/railroad-abnf-AHOZXSZD-D2QiLT8B.js +1 -0
- package/console-app/assets/railroad-ebnf-EBAXGLYW-CSMqj9L2.js +1 -0
- package/console-app/assets/railroad-peg-LSFZ7HO6-Cg1-F8im.js +1 -0
- package/console-app/assets/railroadDiagram-AXF67PYL-BMW_s9QW.js +1 -0
- package/console-app/assets/{requirementDiagram-TGXJPOKE-CRV748Vu.js → requirementDiagram-LRYGKXZP-BzcnEvjk.js} +2 -2
- package/console-app/assets/rolldown-runtime-BcKkbAw3.js +1 -0
- package/console-app/assets/{rough.esm-CSKSodPl.js → rough.esm-Dy-Kn_BL.js} +1 -1
- package/console-app/assets/{sankeyDiagram-HTMAVEWB-CrFvfCvp.js → sankeyDiagram-W5VNT64P-Dh2TFvuG.js} +2 -2
- package/console-app/assets/sequenceDiagram-SI44F4Z6-b-m-tQYz.js +162 -0
- package/console-app/assets/src-Dm8O0hiD.js +1 -0
- package/console-app/assets/stateDiagram-OKZ733FA-W98kCkqj.js +1 -0
- package/console-app/assets/stateDiagram-v2-UEYNNEHI-DpnoMNHC.js +1 -0
- package/console-app/assets/swimlanes-SLNWSIFB-0q_y6cLu.js +2 -0
- package/console-app/assets/swimlanesDiagram-ULZ7WXOC-BmGtOaWo.js +8 -0
- package/console-app/assets/timeline-definition-Z64GVDOM-DmsNlhwe.js +120 -0
- package/console-app/assets/treeView-QDETBFTQ-DY7A9uJm.js +1 -0
- package/console-app/assets/treemap-6X3UGDF4-DI73Vm90.js +1 -0
- package/console-app/assets/vennDiagram-T6HMQDX7-Czpr9diJ.js +34 -0
- package/console-app/assets/wardley-OPB4EBWU-C39AmDqd.js +1 -0
- package/console-app/assets/{wardleyDiagram-EHGQE667-uWxnqqVK.js → wardleyDiagram-T6FBY63Y-DOtWBvnk.js} +36 -36
- package/console-app/assets/{xychartDiagram-FW5EYKEG-ClVawwGR.js → xychartDiagram-ELKLHX3M-VHHuGrWV.js} +4 -4
- package/console-app/index.html +4 -2
- package/dist/.pikku/addon/index.d.ts +7 -0
- package/dist/.pikku/addon/index.js +7 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +7 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.js +7 -0
- package/dist/.pikku/agent/index.d.ts +7 -0
- package/dist/.pikku/agent/index.js +7 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +14 -13
- package/dist/.pikku/agent/pikku-agent-types.gen.js +5 -6
- package/dist/.pikku/agent/pikku-model-aliases.gen.js +2 -2
- package/dist/.pikku/auth/index.d.ts +8 -0
- package/dist/.pikku/auth/index.js +8 -0
- package/dist/.pikku/auth/pikku-auth-types.gen.d.ts +118 -0
- package/dist/.pikku/auth/pikku-auth-types.gen.js +92 -0
- package/dist/.pikku/channel/index.d.ts +7 -0
- package/dist/.pikku/channel/index.js +7 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +6 -8
- package/dist/.pikku/channel/pikku-channel-types.gen.js +2 -9
- package/dist/.pikku/cli/index.d.ts +7 -0
- package/dist/.pikku/cli/index.js +7 -0
- package/dist/.pikku/cli/pikku-cli-channel.js +14 -3
- 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 +3 -2
- package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +2 -2
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.json +86 -22
- 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/index.d.ts +1 -0
- package/dist/.pikku/console/index.js +1 -0
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
- package/dist/.pikku/error/index.d.ts +7 -0
- package/dist/.pikku/error/index.js +7 -0
- package/dist/.pikku/error/pikku-error-types.gen.d.ts +7 -0
- package/dist/.pikku/error/pikku-error-types.gen.js +7 -0
- package/dist/.pikku/function/index.d.ts +7 -0
- package/dist/.pikku/function/index.js +7 -0
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +26 -258
- package/dist/.pikku/function/pikku-function-types.gen.js +2 -236
- package/dist/.pikku/function/pikku-functions-meta.gen.js +2 -2
- package/dist/.pikku/function/pikku-functions-meta.gen.json +193 -128
- package/dist/.pikku/function/pikku-functions.gen.js +14 -12
- package/dist/.pikku/gateway/index.d.ts +7 -0
- package/dist/.pikku/gateway/index.js +7 -0
- package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts +36 -0
- package/dist/.pikku/gateway/pikku-gateway-types.gen.js +25 -0
- package/dist/.pikku/http/index.d.ts +7 -0
- package/dist/.pikku/http/index.js +7 -0
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +4 -22
- package/dist/.pikku/http/pikku-http-types.gen.js +2 -24
- package/dist/.pikku/mcp/index.d.ts +7 -0
- package/dist/.pikku/mcp/index.js +7 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +7 -4
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
- package/dist/.pikku/middleware/index.d.ts +7 -0
- package/dist/.pikku/middleware/index.js +7 -0
- package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts +117 -0
- package/dist/.pikku/middleware/pikku-middleware-types.gen.js +108 -0
- package/dist/.pikku/node/index.d.ts +1 -0
- package/dist/.pikku/node/index.js +1 -0
- 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-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 +4 -4
- package/dist/.pikku/pikku-services.gen.js +3 -3
- package/dist/.pikku/pikku-types.gen.d.ts +1 -1
- package/dist/.pikku/pikku-types.gen.js +1 -1
- package/dist/.pikku/queue/index.d.ts +7 -0
- package/dist/.pikku/queue/index.js +7 -0
- 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 +2 -2
- 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 +2 -2
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +8 -5
- package/dist/.pikku/scenarios/index.d.ts +7 -0
- package/dist/.pikku/scenarios/index.js +7 -0
- package/dist/.pikku/scenarios/pikku-personas.gen.d.ts +17 -0
- package/dist/.pikku/scenarios/pikku-personas.gen.js +17 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +2 -2
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts +310 -0
- package/dist/.pikku/scenarios/pikku-scenario-types.gen.js +71 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +2 -2
- 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 +7 -0
- package/dist/.pikku/scheduler/index.js +7 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +3 -2
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
- package/dist/.pikku/schemas/register.gen.js +9 -7
- package/dist/.pikku/schemas/schemas/PikkuSemverOutput.schema.json +1 -0
- package/dist/.pikku/scopes/index.d.ts +7 -0
- package/dist/.pikku/scopes/index.js +7 -0
- package/dist/.pikku/scopes/pikku-personas.gen.d.ts +5 -13
- 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 -3
- 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 +8 -0
- package/dist/.pikku/secrets/index.js +8 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -2
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +8 -12
- package/dist/.pikku/secrets/pikku-secrets.gen.js +7 -9
- package/dist/.pikku/services/pikku-meta-service.gen.d.ts +7 -0
- package/dist/.pikku/services/pikku-meta-service.gen.js +9 -0
- package/dist/.pikku/setup/index.d.ts +7 -0
- package/dist/.pikku/setup/index.js +7 -0
- package/dist/.pikku/setup/pikku-setup-types.gen.d.ts +66 -0
- package/dist/.pikku/setup/pikku-setup-types.gen.js +87 -0
- package/dist/.pikku/trigger/index.d.ts +7 -0
- package/dist/.pikku/trigger/index.js +7 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +6 -6
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/variables/index.d.ts +8 -0
- package/dist/.pikku/variables/index.js +8 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -2
- package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +7 -10
- package/dist/.pikku/variables/pikku-variables.gen.js +8 -10
- package/dist/.pikku/workflow/index.d.ts +7 -0
- package/dist/.pikku/workflow/index.js +7 -0
- package/dist/.pikku/workflow/meta/allWorkflow.gen.json +105 -82
- package/dist/.pikku/workflow/pikku-personas.gen.d.ts +1 -2
- package/dist/.pikku/workflow/pikku-personas.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +21 -263
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +2 -65
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +2 -2
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +0 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/bin/pikku-bin.mjs +2 -2
- package/dist/src/cli.wiring.js +69 -7
- package/dist/src/deploy/analyzer/analyzer.js +39 -17
- package/dist/src/deploy/build-pipeline.d.ts +13 -0
- package/dist/src/deploy/build-pipeline.js +22 -0
- package/dist/src/deploy/bundler/bundler.js +2 -2
- package/dist/src/deploy/server-entry.js +1 -1
- package/dist/src/fabric/fabric-commands.d.ts +104 -104
- package/dist/src/fabric/functions/add.function.d.ts +4 -4
- package/dist/src/fabric/functions/add.function.js +1 -1
- package/dist/src/fabric/functions/addon-verify.function.d.ts +4 -4
- package/dist/src/fabric/functions/addon-verify.function.js +1 -1
- package/dist/src/fabric/functions/db-schema.function.d.ts +4 -4
- package/dist/src/fabric/functions/db-schema.function.js +1 -1
- package/dist/src/fabric/functions/deploy-list.function.d.ts +4 -4
- package/dist/src/fabric/functions/deploy-list.function.js +1 -1
- package/dist/src/fabric/functions/deploy-units.function.d.ts +4 -4
- package/dist/src/fabric/functions/deploy-units.function.js +1 -1
- package/dist/src/fabric/functions/deploy.function.d.ts +8 -8
- package/dist/src/fabric/functions/deploy.function.js +1 -1
- package/dist/src/fabric/functions/domains-add.function.d.ts +4 -4
- package/dist/src/fabric/functions/domains-add.function.js +1 -1
- package/dist/src/fabric/functions/domains-list.function.d.ts +4 -4
- package/dist/src/fabric/functions/domains-list.function.js +1 -1
- package/dist/src/fabric/functions/domains-remove.function.d.ts +4 -4
- package/dist/src/fabric/functions/domains-remove.function.js +1 -1
- package/dist/src/fabric/functions/errors.function.d.ts +4 -4
- package/dist/src/fabric/functions/errors.function.js +1 -1
- package/dist/src/fabric/functions/init.function.d.ts +4 -4
- package/dist/src/fabric/functions/init.function.js +1 -1
- package/dist/src/fabric/functions/link.function.d.ts +4 -4
- package/dist/src/fabric/functions/link.function.js +1 -1
- package/dist/src/fabric/functions/llm-key.function.d.ts +4 -4
- package/dist/src/fabric/functions/llm-key.function.js +1 -1
- package/dist/src/fabric/functions/login.function.d.ts +4 -4
- package/dist/src/fabric/functions/login.function.js +1 -1
- package/dist/src/fabric/functions/logs.function.d.ts +4 -4
- package/dist/src/fabric/functions/logs.function.js +1 -1
- package/dist/src/fabric/functions/metrics.function.d.ts +4 -4
- package/dist/src/fabric/functions/metrics.function.js +1 -1
- package/dist/src/fabric/functions/publish.function.d.ts +4 -4
- package/dist/src/fabric/functions/publish.function.js +1 -1
- package/dist/src/fabric/functions/rollback.function.d.ts +4 -4
- package/dist/src/fabric/functions/rollback.function.js +1 -1
- package/dist/src/fabric/functions/secrets-list.function.d.ts +4 -4
- package/dist/src/fabric/functions/secrets-list.function.js +1 -1
- package/dist/src/fabric/functions/secrets-rotate.function.d.ts +4 -4
- package/dist/src/fabric/functions/secrets-rotate.function.js +1 -1
- package/dist/src/fabric/functions/secrets-set.function.d.ts +4 -4
- package/dist/src/fabric/functions/secrets-set.function.js +1 -1
- package/dist/src/fabric/functions/smoke.function.d.ts +4 -4
- package/dist/src/fabric/functions/smoke.function.js +13 -13
- package/dist/src/fabric/functions/status.function.d.ts +4 -4
- package/dist/src/fabric/functions/status.function.js +1 -1
- package/dist/src/fabric/functions/trace.function.d.ts +4 -4
- package/dist/src/fabric/functions/trace.function.js +1 -1
- package/dist/src/fabric/functions/validate.function.d.ts +4 -4
- package/dist/src/fabric/functions/validate.function.js +90 -27
- package/dist/src/fabric/lib/git.d.ts +23 -0
- package/dist/src/fabric/lib/git.js +39 -0
- package/dist/src/functions/commands/all.d.ts +1 -1
- package/dist/src/functions/commands/all.js +1 -1
- package/dist/src/functions/commands/audit.d.ts +11 -1
- package/dist/src/functions/commands/audit.js +59 -23
- package/dist/src/functions/commands/binary.d.ts +4 -4
- package/dist/src/functions/commands/binary.js +1 -1
- package/dist/src/functions/commands/bootstrap.d.ts +1 -1
- package/dist/src/functions/commands/bootstrap.js +5 -4
- package/dist/src/functions/commands/bun-coverage-loader.js +4 -1
- package/dist/src/functions/commands/db-audit.d.ts +1 -1
- package/dist/src/functions/commands/db-audit.js +1 -1
- package/dist/src/functions/commands/db-baseline.d.ts +1 -1
- package/dist/src/functions/commands/db-baseline.js +1 -1
- package/dist/src/functions/commands/db-check.d.ts +1 -1
- package/dist/src/functions/commands/db-check.js +1 -1
- package/dist/src/functions/commands/db-codegen.d.ts +1 -1
- package/dist/src/functions/commands/db-codegen.js +1 -1
- package/dist/src/functions/commands/db-export.d.ts +1 -1
- package/dist/src/functions/commands/db-export.js +1 -1
- package/dist/src/functions/commands/db-generate.d.ts +1 -1
- package/dist/src/functions/commands/db-generate.js +1 -1
- package/dist/src/functions/commands/db-migrate.d.ts +1 -1
- package/dist/src/functions/commands/db-migrate.js +1 -1
- package/dist/src/functions/commands/db-reset.d.ts +4 -4
- package/dist/src/functions/commands/db-reset.js +1 -1
- package/dist/src/functions/commands/deploy-apply.d.ts +4 -4
- package/dist/src/functions/commands/deploy-apply.js +14 -2
- package/dist/src/functions/commands/deploy-info.d.ts +1 -1
- package/dist/src/functions/commands/deploy-info.js +1 -1
- package/dist/src/functions/commands/deploy-plan.d.ts +4 -4
- package/dist/src/functions/commands/deploy-plan.js +6 -2
- package/dist/src/functions/commands/{dev-ai-runner.d.ts → dev-agent-runner.d.ts} +5 -4
- package/dist/src/functions/commands/{dev-ai-runner.js → dev-agent-runner.js} +4 -4
- package/dist/src/functions/commands/dev.d.ts +4 -4
- package/dist/src/functions/commands/dev.js +32 -25
- package/dist/src/functions/commands/emails-init.d.ts +1 -1
- package/dist/src/functions/commands/emails-init.js +19 -6
- package/dist/src/functions/commands/enable.d.ts +8 -8
- package/dist/src/functions/commands/enable.js +4 -2
- package/dist/src/functions/commands/environment.d.ts +27 -0
- package/dist/src/functions/commands/environment.js +36 -2
- package/dist/src/functions/commands/import-n8n.d.ts +4 -4
- package/dist/src/functions/commands/import-n8n.js +1 -1
- package/dist/src/functions/commands/info.d.ts +4 -4
- package/dist/src/functions/commands/info.js +1 -1
- package/dist/src/functions/commands/knowledge-index.d.ts +4 -4
- package/dist/src/functions/commands/knowledge-index.js +1 -1
- package/dist/src/functions/commands/knowledge-validate.d.ts +4 -4
- package/dist/src/functions/commands/knowledge-validate.js +1 -1
- package/dist/src/functions/commands/login.d.ts +9 -9
- package/dist/src/functions/commands/login.js +1 -1
- package/dist/src/functions/commands/meta.d.ts +37 -37
- package/dist/src/functions/commands/meta.js +1 -1
- package/dist/src/functions/commands/new-addon.d.ts +5 -4
- package/dist/src/functions/commands/new-addon.js +27 -25
- package/dist/src/functions/commands/new-function.d.ts +4 -4
- package/dist/src/functions/commands/new-function.js +4 -4
- package/dist/src/functions/commands/new-middleware.d.ts +4 -4
- package/dist/src/functions/commands/new-middleware.js +3 -3
- package/dist/src/functions/commands/new-permission.d.ts +4 -4
- package/dist/src/functions/commands/new-permission.js +3 -3
- package/dist/src/functions/commands/new-wiring.d.ts +4 -4
- package/dist/src/functions/commands/new-wiring.js +8 -8
- package/dist/src/functions/commands/persona-sync.d.ts +4 -4
- package/dist/src/functions/commands/persona-sync.js +1 -1
- package/dist/src/functions/commands/persona.d.ts +5 -5
- package/dist/src/functions/commands/persona.js +6 -6
- package/dist/src/functions/commands/pikku-command-bootstrap.d.ts +1 -1
- package/dist/src/functions/commands/pikku-command-bootstrap.js +7 -2
- package/dist/src/functions/commands/pikku-command-summary.d.ts +1 -1
- package/dist/src/functions/commands/pikku-command-summary.js +2 -2
- package/dist/src/functions/commands/roles-audit.d.ts +1 -1
- package/dist/src/functions/commands/roles-audit.js +1 -1
- package/dist/src/functions/commands/roles-prune.d.ts +4 -4
- package/dist/src/functions/commands/roles-prune.js +1 -1
- package/dist/src/functions/commands/scenario-browser.d.ts +18 -12
- package/dist/src/functions/commands/scenario-browser.js +20 -6
- package/dist/src/functions/commands/scenario-formatter.d.ts +6 -52
- package/dist/src/functions/commands/scenario-ladder.d.ts +4 -4
- package/dist/src/functions/commands/scenario.d.ts +8 -11
- package/dist/src/functions/commands/scenario.js +107 -55
- package/dist/src/functions/commands/scopes-audit.d.ts +1 -1
- package/dist/src/functions/commands/scopes-audit.js +1 -1
- package/dist/src/functions/commands/scopes-prune.d.ts +4 -4
- package/dist/src/functions/commands/scopes-prune.js +1 -1
- package/dist/src/functions/commands/semver-render.d.ts +2 -0
- package/dist/src/functions/commands/semver-render.js +60 -0
- package/dist/src/functions/commands/semver.d.ts +25 -0
- package/dist/src/functions/commands/semver.js +50 -0
- package/dist/src/functions/commands/serve.d.ts +4 -4
- package/dist/src/functions/commands/serve.js +25 -22
- package/dist/src/functions/commands/skills.d.ts +8 -8
- package/dist/src/functions/commands/skills.js +1 -1
- package/dist/src/functions/commands/update-render.d.ts +2 -0
- package/dist/src/functions/commands/update-render.js +102 -0
- package/dist/src/functions/commands/update.d.ts +99 -0
- package/dist/src/functions/commands/update.js +392 -0
- package/dist/src/functions/commands/validate.d.ts +4 -4
- package/dist/src/functions/commands/validate.js +1 -1
- package/dist/src/functions/commands/versions-check.d.ts +1 -1
- package/dist/src/functions/commands/versions-check.js +1 -1
- package/dist/src/functions/commands/versions-init.d.ts +4 -4
- package/dist/src/functions/commands/versions-init.js +1 -1
- package/dist/src/functions/commands/versions-update.d.ts +1 -1
- package/dist/src/functions/commands/versions-update.js +1 -1
- package/dist/src/functions/commands/watch.d.ts +4 -4
- package/dist/src/functions/commands/watch.js +1 -1
- package/dist/src/functions/db/annotation-parser.d.ts +11 -3
- package/dist/src/functions/db/better-auth-schema.js +1 -1
- package/dist/src/functions/db/db-codegen.js +4 -2
- package/dist/src/functions/db/local-db.js +3 -3
- package/dist/src/functions/runtimes/fetch/index.d.ts +1 -1
- package/dist/src/functions/runtimes/fetch/index.js +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 +1 -1
- package/dist/src/functions/runtimes/tanstack-start/pikku-command-tanstack-start.d.ts +1 -1
- package/dist/src/functions/runtimes/tanstack-start/pikku-command-tanstack-start.js +1 -1
- package/dist/src/functions/runtimes/websocket/pikku-command-websocket-typed.d.ts +1 -1
- package/dist/src/functions/runtimes/websocket/pikku-command-websocket-typed.js +1 -1
- package/dist/src/functions/surface/build-surface-doc.d.ts +22 -0
- package/dist/src/functions/surface/build-surface-doc.js +151 -0
- package/dist/src/functions/surface/collect-surface-usage.d.ts +16 -0
- package/dist/src/functions/surface/collect-surface-usage.js +35 -0
- package/dist/src/functions/surface/collect-surface.d.ts +19 -1
- package/dist/src/functions/surface/collect-surface.js +104 -16
- package/dist/src/functions/surface/generate-surface-doc.d.ts +1 -0
- package/dist/src/functions/surface/generate-surface-doc.js +46 -0
- package/dist/src/functions/surface/shipped-surface-doc.d.ts +16 -0
- package/dist/src/functions/surface/shipped-surface-doc.js +44 -0
- package/dist/src/functions/surface/surface-doc.types.d.ts +69 -0
- package/dist/src/functions/surface/surface-doc.types.js +1 -0
- package/dist/src/functions/surface/surface-editorial.d.ts +25 -0
- package/dist/src/functions/surface/surface-editorial.js +101 -0
- package/dist/src/functions/surface/write-surface-usage.d.ts +12 -0
- package/dist/src/functions/surface/write-surface-usage.js +18 -0
- package/dist/src/functions/validate/pikku-barrel-checks.d.ts +12 -0
- package/dist/src/functions/validate/pikku-barrel-checks.js +97 -0
- package/dist/src/functions/validate/scenario-file-checks.js +1 -1
- package/dist/src/functions/validate/shared-checks.d.ts +10 -0
- package/dist/src/functions/validate/shared-checks.js +16 -2
- package/dist/src/functions/validate/validate-registry.js +20 -0
- package/dist/src/functions/validate/workspace-exports-checks.d.ts +14 -0
- package/dist/src/functions/validate/workspace-exports-checks.js +211 -0
- package/dist/src/functions/wirings/agent/pikku-command-agent-types.d.ts +1 -0
- package/dist/src/functions/wirings/{ai-agent/pikku-command-ai-agent-types.js → agent/pikku-command-agent-types.js} +5 -4
- package/dist/src/functions/wirings/agent/pikku-command-agent.d.ts +1 -0
- package/dist/src/functions/wirings/{ai-agent/pikku-command-ai-agent.js → agent/pikku-command-agent.js} +7 -7
- package/dist/src/functions/wirings/agent/pikku-command-public-agent.d.ts +1 -0
- package/dist/src/functions/wirings/{ai-agent → agent}/pikku-command-public-agent.js +4 -4
- package/dist/src/functions/wirings/{ai-agent → agent}/serialize-agent-map.d.ts +2 -2
- package/dist/src/functions/wirings/agent/serialize-agent-types.d.ts +1 -0
- package/dist/src/functions/wirings/{ai-agent/serialize-ai-agent-types.js → agent/serialize-agent-types.js} +24 -30
- package/dist/src/functions/wirings/{ai-agent → agent}/serialize-model-aliases.js +1 -1
- package/dist/src/functions/wirings/agent/serialize-public-agent.d.ts +5 -0
- package/dist/src/functions/wirings/{ai-agent → agent}/serialize-public-agent.js +5 -3
- package/dist/src/functions/wirings/agent-scorer/pikku-command-agent-scorer.d.ts +1 -0
- package/dist/src/functions/wirings/{ai-scorer/pikku-command-ai-scorer.js → agent-scorer/pikku-command-agent-scorer.js} +7 -7
- package/dist/src/functions/wirings/{ai-scorer → agent-scorer}/serialize-scorer-names.d.ts +1 -1
- package/dist/src/functions/wirings/auth/pikku-command-auth.d.ts +4 -4
- package/dist/src/functions/wirings/auth/pikku-command-auth.js +5 -4
- package/dist/src/functions/wirings/auth/serialize-auth-gen.d.ts +1 -1
- package/dist/src/functions/wirings/auth/serialize-auth-gen.js +3 -8
- package/dist/src/functions/wirings/auth/serialize-auth-guards.d.ts +12 -0
- package/dist/src/functions/wirings/auth/serialize-auth-guards.js +168 -0
- package/dist/src/functions/wirings/auth/serialize-auth-types.d.ts +4 -4
- package/dist/src/functions/wirings/auth/serialize-auth-types.js +4 -4
- package/dist/src/functions/wirings/channels/pikku-channels.d.ts +1 -1
- package/dist/src/functions/wirings/channels/pikku-channels.js +2 -2
- package/dist/src/functions/wirings/channels/pikku-command-channel-types.d.ts +1 -1
- package/dist/src/functions/wirings/channels/pikku-command-channel-types.js +6 -3
- package/dist/src/functions/wirings/channels/pikku-command-channels-map.d.ts +1 -1
- package/dist/src/functions/wirings/channels/pikku-command-channels-map.js +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 +2 -2
- package/dist/src/functions/wirings/channels/serialize-channel-types.d.ts +3 -1
- package/dist/src/functions/wirings/channels/serialize-channel-types.js +18 -24
- package/dist/src/functions/wirings/channels/serialize-typed-channel-map.d.ts +1 -2
- 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 +2 -2
- package/dist/src/functions/wirings/cli/pikku-command-cli-types.d.ts +1 -1
- package/dist/src/functions/wirings/cli/pikku-command-cli-types.js +3 -3
- package/dist/src/functions/wirings/cli/pikku-command-cli.d.ts +1 -1
- package/dist/src/functions/wirings/cli/pikku-command-cli.js +2 -2
- package/dist/src/functions/wirings/cli/serialize-channel-cli.d.ts +1 -1
- package/dist/src/functions/wirings/cli/serialize-channel-cli.js +9 -3
- package/dist/src/functions/wirings/cli/serialize-cli-types.d.ts +1 -1
- package/dist/src/functions/wirings/cli/serialize-cli-types.js +9 -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 +6 -5
- package/dist/src/functions/wirings/console/pikku-command-nodes-meta.d.ts +1 -1
- package/dist/src/functions/wirings/console/pikku-command-nodes-meta.js +1 -1
- package/dist/src/functions/wirings/console/serialize-console-functions.d.ts +1 -1
- package/dist/src/functions/wirings/console/serialize-console-functions.js +20 -4
- package/dist/src/functions/wirings/credentials/pikku-command-credentials.d.ts +1 -1
- package/dist/src/functions/wirings/credentials/pikku-command-credentials.js +2 -2
- package/dist/src/functions/wirings/credentials/serialize-credentials-types.js +3 -4
- package/dist/src/functions/wirings/emails/pikku-command-emails.d.ts +1 -1
- package/dist/src/functions/wirings/emails/pikku-command-emails.js +1 -1
- package/dist/src/functions/wirings/emails/serialize-emails.js +2 -2
- package/dist/src/functions/wirings/errors/pikku-command-error-types.d.ts +1 -0
- package/dist/src/functions/wirings/errors/pikku-command-error-types.js +17 -0
- package/dist/src/functions/wirings/errors/serialize-error-types.d.ts +9 -0
- package/dist/src/functions/wirings/errors/serialize-error-types.js +16 -0
- package/dist/src/functions/wirings/functions/pikku-command-addon-types.d.ts +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-addon-types.js +20 -8
- package/dist/src/functions/wirings/functions/pikku-command-function-types-split.d.ts +4 -4
- package/dist/src/functions/wirings/functions/pikku-command-function-types-split.js +17 -3
- package/dist/src/functions/wirings/functions/pikku-command-functions.d.ts +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-functions.js +2 -2
- package/dist/src/functions/wirings/functions/pikku-command-leaf-indexes.d.ts +14 -0
- package/dist/src/functions/wirings/functions/pikku-command-leaf-indexes.js +119 -0
- package/dist/src/functions/wirings/functions/pikku-command-services.d.ts +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-services.js +18 -3
- package/dist/src/functions/wirings/functions/schemas.d.ts +1 -1
- package/dist/src/functions/wirings/functions/schemas.js +1 -1
- package/dist/src/functions/wirings/functions/serialize-addon-types.d.ts +13 -0
- package/dist/src/functions/wirings/functions/serialize-addon-types.js +20 -1
- package/dist/src/functions/wirings/functions/serialize-function-imports.d.ts +1 -1
- package/dist/src/functions/wirings/functions/serialize-function-types.d.ts +7 -2
- package/dist/src/functions/wirings/functions/serialize-function-types.js +46 -361
- package/dist/src/functions/wirings/functions/serialize-leaf-index.d.ts +17 -0
- package/dist/src/functions/wirings/functions/serialize-leaf-index.js +27 -0
- package/dist/src/functions/wirings/gateway/pikku-command-gateway-types.d.ts +7 -0
- package/dist/src/functions/wirings/gateway/pikku-command-gateway-types.js +24 -0
- package/dist/src/functions/wirings/gateway/pikku-command-gateway.d.ts +1 -1
- package/dist/src/functions/wirings/gateway/pikku-command-gateway.js +1 -1
- package/dist/src/functions/wirings/gateway/serialize-gateway-types.d.ts +6 -0
- package/dist/src/functions/wirings/gateway/serialize-gateway-types.js +55 -0
- package/dist/src/functions/wirings/graph/pikku-command-graph-wirings.d.ts +1 -1
- package/dist/src/functions/wirings/graph/pikku-command-graph-wirings.js +3 -4
- package/dist/src/functions/wirings/graph/serialize-graph-wirings.d.ts +1 -1
- package/dist/src/functions/wirings/graph/serialize-graph-wirings.js +2 -2
- package/dist/src/functions/wirings/http/pikku-command-http-map.d.ts +1 -1
- package/dist/src/functions/wirings/http/pikku-command-http-map.js +3 -3
- 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 +2 -2
- package/dist/src/functions/wirings/http/pikku-command-http-types.d.ts +1 -1
- package/dist/src/functions/wirings/http/pikku-command-http-types.js +7 -3
- package/dist/src/functions/wirings/http/pikku-command-openapi.d.ts +1 -1
- package/dist/src/functions/wirings/http/pikku-command-openapi.js +1 -1
- package/dist/src/functions/wirings/http/pikku-http-routes.d.ts +1 -1
- package/dist/src/functions/wirings/http/pikku-http-routes.js +2 -2
- package/dist/src/functions/wirings/http/serialize-http-types.d.ts +3 -1
- package/dist/src/functions/wirings/http/serialize-http-types.js +20 -35
- package/dist/src/functions/wirings/http/serialize-typed-http-map.d.ts +5 -1
- package/dist/src/functions/wirings/http/serialize-typed-http-map.js +5 -4
- package/dist/src/functions/wirings/mcp/pikku-command-mcp-json.d.ts +1 -1
- package/dist/src/functions/wirings/mcp/pikku-command-mcp-json.js +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-types.js +5 -2
- package/dist/src/functions/wirings/mcp/pikku-command-mcp.d.ts +1 -1
- package/dist/src/functions/wirings/mcp/pikku-command-mcp.js +7 -3
- package/dist/src/functions/wirings/mcp/serialize-mcp-types.d.ts +3 -1
- package/dist/src/functions/wirings/mcp/serialize-mcp-types.js +15 -15
- package/dist/src/functions/wirings/middleware/pikku-command-middleware.d.ts +1 -1
- package/dist/src/functions/wirings/middleware/pikku-command-middleware.js +1 -1
- package/dist/src/functions/wirings/middleware/serialize-middleware-types.d.ts +9 -0
- package/dist/src/functions/wirings/middleware/serialize-middleware-types.js +176 -0
- package/dist/src/functions/wirings/package/pikku-command-package-types.d.ts +3 -3
- package/dist/src/functions/wirings/package/pikku-command-package-types.js +1 -1
- package/dist/src/functions/wirings/package/pikku-command-package.d.ts +1 -1
- package/dist/src/functions/wirings/package/pikku-command-package.js +1 -1
- package/dist/src/functions/wirings/package/serialize-package-types.js +0 -4
- package/dist/src/functions/wirings/package/serialize-package.js +1 -1
- package/dist/src/functions/wirings/permissions/pikku-command-permissions.d.ts +1 -1
- package/dist/src/functions/wirings/permissions/pikku-command-permissions.js +1 -1
- package/dist/src/functions/wirings/personas/pikku-command-personas.d.ts +4 -4
- package/dist/src/functions/wirings/personas/pikku-command-personas.js +1 -1
- package/dist/src/functions/wirings/personas/serialize-personas-types.d.ts +1 -1
- package/dist/src/functions/wirings/personas/serialize-personas-types.js +9 -28
- 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-service.js +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-types.js +4 -2
- 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-map.js +1 -1
- package/dist/src/functions/wirings/queue/pikku-queue.d.ts +1 -1
- package/dist/src/functions/wirings/queue/pikku-queue.js +1 -1
- package/dist/src/functions/wirings/queue/serialize-queue-map.js +1 -1
- package/dist/src/functions/wirings/queue/serialize-queue-types.d.ts +3 -1
- package/dist/src/functions/wirings/queue/serialize-queue-types.js +8 -5
- package/dist/src/functions/wirings/queue/serialize-queue-wrapper.js +1 -1
- package/dist/src/functions/wirings/realtime/pikku-command-events-scaffold.d.ts +1 -1
- package/dist/src/functions/wirings/realtime/pikku-command-events-scaffold.js +3 -4
- package/dist/src/functions/wirings/realtime/pikku-command-realtime.d.ts +1 -1
- package/dist/src/functions/wirings/realtime/pikku-command-realtime.js +1 -1
- package/dist/src/functions/wirings/realtime/serialize-events-scaffold.d.ts +1 -1
- package/dist/src/functions/wirings/realtime/serialize-events-scaffold.js +4 -8
- package/dist/src/functions/wirings/roles/pikku-command-roles.d.ts +4 -4
- package/dist/src/functions/wirings/roles/pikku-command-roles.js +2 -2
- 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 +6 -6
- package/dist/src/functions/wirings/rpc/pikku-command-react-query.d.ts +1 -1
- package/dist/src/functions/wirings/rpc/pikku-command-react-query.js +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 +6 -6
- 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 +1 -1
- package/dist/src/functions/wirings/rpc/pikku-command-rpc-map.d.ts +3 -3
- package/dist/src/functions/wirings/rpc/pikku-command-rpc-map.js +1 -1
- package/dist/src/functions/wirings/rpc/pikku-command-rpc.d.ts +1 -1
- package/dist/src/functions/wirings/rpc/pikku-command-rpc.js +2 -2
- package/dist/src/functions/wirings/rpc/serialize-public-rpc.d.ts +1 -1
- package/dist/src/functions/wirings/rpc/serialize-public-rpc.js +3 -2
- package/dist/src/functions/wirings/rpc/serialize-remote-rpc.d.ts +1 -1
- package/dist/src/functions/wirings/rpc/serialize-remote-rpc.js +4 -2
- package/dist/src/functions/wirings/rpc/serialize-typed-rpc-map.js +5 -5
- package/dist/src/functions/wirings/scenarios/register-scenario-instrumentation.js +3 -3
- package/dist/src/functions/wirings/scenarios/scenario-partition.d.ts +1 -1
- package/dist/src/functions/wirings/scenarios/scenario-schema-partition.d.ts +1 -1
- package/dist/src/functions/wirings/scenarios/serialize-scenario-meta.js +4 -4
- package/dist/src/functions/wirings/scheduler/pikku-command-scheduler-types.d.ts +1 -1
- package/dist/src/functions/wirings/scheduler/pikku-command-scheduler-types.js +5 -2
- package/dist/src/functions/wirings/scheduler/pikku-command-scheduler.d.ts +1 -1
- package/dist/src/functions/wirings/scheduler/pikku-command-scheduler.js +1 -1
- package/dist/src/functions/wirings/scheduler/serialize-scheduler-types.d.ts +3 -1
- package/dist/src/functions/wirings/scheduler/serialize-scheduler-types.js +10 -5
- package/dist/src/functions/wirings/scopes/pikku-command-scopes.d.ts +4 -4
- package/dist/src/functions/wirings/scopes/pikku-command-scopes.js +4 -3
- package/dist/src/functions/wirings/secrets/pikku-command-secrets.d.ts +1 -1
- package/dist/src/functions/wirings/secrets/pikku-command-secrets.js +1 -1
- package/dist/src/functions/wirings/secrets/serialize-secrets-types.js +13 -19
- package/dist/src/functions/wirings/setup/serialize-setup-types.d.ts +7 -0
- package/dist/src/functions/wirings/setup/serialize-setup-types.js +111 -0
- package/dist/src/functions/wirings/triggers/pikku-command-trigger-types.d.ts +4 -4
- package/dist/src/functions/wirings/triggers/pikku-command-trigger-types.js +2 -2
- package/dist/src/functions/wirings/triggers/pikku-command-trigger.d.ts +1 -1
- package/dist/src/functions/wirings/triggers/pikku-command-trigger.js +1 -1
- package/dist/src/functions/wirings/triggers/serialize-trigger-meta.js +2 -2
- package/dist/src/functions/wirings/triggers/serialize-trigger-types.d.ts +3 -1
- package/dist/src/functions/wirings/triggers/serialize-trigger-types.js +18 -11
- package/dist/src/functions/wirings/user-admin/pikku-command-user-admin-functions.d.ts +1 -1
- package/dist/src/functions/wirings/user-admin/pikku-command-user-admin-functions.js +18 -17
- package/dist/src/functions/wirings/user-admin/serialize-user-admin-functions.d.ts +10 -9
- package/dist/src/functions/wirings/user-admin/serialize-user-admin-functions.js +67 -49
- package/dist/src/functions/wirings/variables/pikku-command-variables.d.ts +1 -1
- package/dist/src/functions/wirings/variables/pikku-command-variables.js +1 -1
- package/dist/src/functions/wirings/variables/serialize-variables-types.js +12 -16
- package/dist/src/functions/wirings/virtual-user/pikku-command-virtual-user-functions.d.ts +1 -1
- package/dist/src/functions/wirings/virtual-user/pikku-command-virtual-user-functions.js +4 -3
- package/dist/src/functions/wirings/virtual-user/serialize-virtual-user-functions.d.ts +1 -1
- package/dist/src/functions/wirings/virtual-user/serialize-virtual-user-functions.js +9 -11
- package/dist/src/functions/wirings/webhook/pikku-command-webhook.d.ts +1 -1
- package/dist/src/functions/wirings/webhook/pikku-command-webhook.js +6 -6
- package/dist/src/functions/wirings/webhook/serialize-webhook.d.ts +1 -1
- package/dist/src/functions/wirings/webhook/serialize-webhook.js +3 -2
- 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 +4 -4
- package/dist/src/functions/wirings/workflow/pikku-command-workflow.d.ts +1 -1
- package/dist/src/functions/wirings/workflow/pikku-command-workflow.js +14 -5
- package/dist/src/functions/wirings/workflow/serialize-personas.js +2 -1
- package/dist/src/functions/wirings/workflow/serialize-scenario-step-map.d.ts +1 -2
- package/dist/src/functions/wirings/workflow/serialize-scenario-types.d.ts +2 -0
- package/dist/src/functions/wirings/workflow/serialize-scenario-types.js +511 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-map.d.ts +1 -2
- package/dist/src/functions/wirings/workflow/serialize-workflow-map.js +1 -1
- package/dist/src/functions/wirings/workflow/serialize-workflow-meta.js +4 -4
- package/dist/src/functions/wirings/workflow/serialize-workflow-registration.js +0 -4
- package/dist/src/functions/wirings/workflow/serialize-workflow-routes.d.ts +1 -1
- package/dist/src/functions/wirings/workflow/serialize-workflow-routes.js +3 -2
- package/dist/src/functions/wirings/workflow/serialize-workflow-types.d.ts +1 -1
- package/dist/src/functions/wirings/workflow/serialize-workflow-types.js +28 -441
- package/dist/src/functions/workflows/all.workflow.d.ts +1 -1
- package/dist/src/functions/workflows/all.workflow.js +83 -27
- package/dist/src/middleware/log-command-info-and-time.d.ts +1 -1
- package/dist/src/server/bun-server-runner.d.ts +1 -1
- package/dist/src/server/content-signing-jwt.js +1 -1
- package/dist/src/server/dev-server-runner.interface.d.ts +1 -1
- package/dist/src/server/node-server-runner.d.ts +1 -1
- package/dist/src/server/node-server-runner.js +5 -2
- package/dist/src/services/cli-logger.service.d.ts +1 -1
- package/dist/src/services/cli-logger.service.js +1 -1
- package/dist/src/services.d.ts +9 -6
- package/dist/src/services.js +22 -6
- package/dist/src/utils/file-writer.d.ts +2 -0
- package/dist/src/utils/file-writer.js +37 -1
- package/dist/src/utils/is-deploy-codegen.d.ts +21 -0
- package/dist/src/utils/is-deploy-codegen.js +23 -0
- package/dist/src/utils/leaf-import-path.d.ts +16 -0
- package/dist/src/utils/leaf-import-path.js +15 -0
- package/dist/src/utils/parse-cli-filters.js +15 -35
- package/dist/src/utils/pikku-cli-config.d.ts +11 -0
- package/dist/src/utils/pikku-cli-config.js +82 -12
- package/dist/src/utils/remove-legacy-scaffold-file.d.ts +14 -0
- package/dist/src/utils/remove-legacy-scaffold-file.js +36 -1
- package/dist/src/utils/resolve-scaffold-feature.js +5 -1
- package/dist/src/utils/schema-diff.d.ts +22 -0
- package/dist/src/utils/schema-diff.js +190 -0
- package/dist/src/utils/serialize-meta-ts.js +1 -1
- package/dist/src/utils/serialize-schemas.d.ts +1 -1
- package/dist/src/utils/surface-diff.d.ts +35 -0
- package/dist/src/utils/surface-diff.js +183 -0
- package/dist/src/utils/surface.d.ts +51 -0
- package/dist/src/utils/surface.js +156 -0
- package/dist/src/utils/tsc-check.d.ts +1 -1
- package/dist/src/utils/tsc-check.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +53 -44
- package/surface.json +4464 -0
- package/console-app/assets/abnfDiagram-VRR7QNED-DTI8lQi3.js +0 -1
- package/console-app/assets/arc-B_XK0Xbk.js +0 -1
- package/console-app/assets/architecture-TIHT7OUA-BtQ4ypaP.js +0 -1
- package/console-app/assets/architectureDiagram-ZJ3FMSHR-CzE1T938.js +0 -36
- package/console-app/assets/c4Diagram-LMCZKHZV-DSsAqAm5.js +0 -10
- package/console-app/assets/channel-yWsB39zH.js +0 -1
- package/console-app/assets/chunk-52WLFC77-DkXgWHeH.js +0 -10
- package/console-app/assets/chunk-EX3LRPZG-0GIQyrn1.js +0 -231
- package/console-app/assets/chunk-FWX5IMBZ-DZvpxO7-.js +0 -2
- package/console-app/assets/chunk-ICXQ74PX-CzAIiCX5.js +0 -2
- package/console-app/assets/chunk-OGEWGWER-DhmfsQT_.js +0 -1
- package/console-app/assets/chunk-PUDLZKDR-BMAILUQ6.js +0 -156
- package/console-app/assets/chunk-RYQCIY6F-9OVlGtkS.js +0 -1
- package/console-app/assets/chunk-VAUOI2AC-DbUlDq35.js +0 -1
- package/console-app/assets/chunk-WYO6CB5R-cQuwndtk.js +0 -127
- package/console-app/assets/chunk-XXDRQBXY-D0yYTMY0.js +0 -1
- package/console-app/assets/chunk-ZIRB5QZD-H-kepumB.js +0 -32
- package/console-app/assets/classDiagram-OUVF2IWQ-jBNBOKfR.js +0 -1
- package/console-app/assets/classDiagram-v2-EOCWNBFH-jBNBOKfR.js +0 -1
- package/console-app/assets/cose-bilkent-JH36ORCC-D8cALtKZ.js +0 -1
- package/console-app/assets/cynefin-VYW2F7L2-BphwdLzc.js +0 -1
- package/console-app/assets/cynefinDiagram-TSTJHNR4-7Rk31pXX.js +0 -62
- package/console-app/assets/cytoscape.esm-h6BdjjI9.js +0 -321
- package/console-app/assets/dagre-CXRCoUWR.js +0 -1
- package/console-app/assets/dagre-VKFMJZFB-e8-5QJxJ.js +0 -4
- package/console-app/assets/defaultLocale-C8Fc0cco.js +0 -1
- package/console-app/assets/diagram-G47NLZAW-F_m68BCv.js +0 -24
- package/console-app/assets/diagram-NH7WQ7WH-5p6A3YHp.js +0 -24
- package/console-app/assets/diagram-WEI45ONY-1gqT-Dqp.js +0 -41
- package/console-app/assets/dist-DQ3gF-0S.js +0 -1
- package/console-app/assets/ebnfDiagram-CCIWWBDH-Dsfd8DxK.js +0 -1
- package/console-app/assets/eventmodeling-45OFAUF4-BSTAXikh.js +0 -1
- package/console-app/assets/flowDiagram-23GEKE2U-zX29jtvN.js +0 -1
- package/console-app/assets/ganttDiagram-NO4QXBWP-2of9JObw.js +0 -292
- package/console-app/assets/gitGraph-TEB2WS4Q-q2ow8moS.js +0 -1
- package/console-app/assets/graphlib-B8gBHxth.js +0 -1
- package/console-app/assets/index-CTO5cTAD.css +0 -1
- package/console-app/assets/index-FDk51Irw.js +0 -255
- package/console-app/assets/info-DKCQHKI2-DA35x9Eq.js +0 -1
- package/console-app/assets/infoDiagram-FWYZ7A6U-wBw6slQd.js +0 -2
- package/console-app/assets/init-D6jRqBbL.js +0 -1
- package/console-app/assets/linear-B-Zu24zW.js +0 -1
- package/console-app/assets/map-DsCK-0Cs.js +0 -1
- package/console-app/assets/mermaid.core-HtlOIxsD.js +0 -11
- package/console-app/assets/packet-7NZHBO7P-CvZpWSge.js +0 -1
- package/console-app/assets/path-BWPyau1x.js +0 -1
- package/console-app/assets/pegDiagram-2B236MQR-Bw6WA3kx.js +0 -1
- package/console-app/assets/pie-RZYD4A2V-cW9hD9gn.js +0 -1
- package/console-app/assets/pieDiagram-ENE6RG2P-DkD_01Ea.js +0 -39
- package/console-app/assets/radar-I7S5WNFK-tOWig5fu.js +0 -1
- package/console-app/assets/railroad-3IZDKUUU-tZ2PcrQC.js +0 -1
- package/console-app/assets/railroad-abnf-AHOZXSZD-D3lzFQzK.js +0 -1
- package/console-app/assets/railroad-ebnf-EBAXGLYW-DRp6_rsA.js +0 -1
- package/console-app/assets/railroad-peg-LSFZ7HO6-CuWNWp3P.js +0 -1
- package/console-app/assets/railroadDiagram-RFXS5EU6-Dljzejc8.js +0 -1
- package/console-app/assets/sequenceDiagram-DBY2YBRQ-CXysYi1c.js +0 -162
- package/console-app/assets/src-Bilm7g2t.js +0 -1
- package/console-app/assets/stateDiagram-2N3HPSRC-C8aGjwyh.js +0 -1
- package/console-app/assets/stateDiagram-v2-6OUMAXLB-C21qKRsf.js +0 -1
- package/console-app/assets/swimlanes-5IMT3BWC-VaTW8Eyb.js +0 -2
- package/console-app/assets/swimlanesDiagram-G3AALYLV-CCQS8jgU.js +0 -8
- package/console-app/assets/timeline-definition-FHXFAJF6-D88F4W4L.js +0 -120
- package/console-app/assets/treeView-QDETBFTQ-hN0LxmWJ.js +0 -1
- package/console-app/assets/treemap-6X3UGDF4-Cz4whnzW.js +0 -1
- package/console-app/assets/vennDiagram-L72KCM5P-CoW2kun8.js +0 -34
- package/console-app/assets/wardley-OPB4EBWU-l9vWUHbB.js +0 -1
- package/dist/src/functions/db/coercion-plugin.d.ts +0 -7
- package/dist/src/functions/db/coercion-plugin.js +0 -103
- package/dist/src/functions/wirings/ai-agent/pikku-command-ai-agent-types.d.ts +0 -1
- package/dist/src/functions/wirings/ai-agent/pikku-command-ai-agent.d.ts +0 -1
- package/dist/src/functions/wirings/ai-agent/pikku-command-public-agent.d.ts +0 -1
- package/dist/src/functions/wirings/ai-agent/serialize-ai-agent-types.d.ts +0 -1
- package/dist/src/functions/wirings/ai-agent/serialize-public-agent.d.ts +0 -5
- package/dist/src/functions/wirings/ai-scorer/pikku-command-ai-scorer.d.ts +0 -1
- package/dist/src/functions/wirings/console/pikku-command-node-types.d.ts +0 -1
- package/dist/src/functions/wirings/console/pikku-command-node-types.js +0 -21
- package/dist/src/functions/wirings/console/serialize-node-types.d.ts +0 -1
- package/dist/src/functions/wirings/console/serialize-node-types.js +0 -11
- package/dist/src/functions/wirings/functions/pikku-command-function-types.d.ts +0 -7
- package/dist/src/functions/wirings/functions/pikku-command-function-types.js +0 -43
- package/dist/src/functions/wirings/functions/serialize-pikku-types-hub.d.ts +0 -4
- package/dist/src/functions/wirings/functions/serialize-pikku-types-hub.js +0 -36
- /package/dist/.pikku/schemas/schemas/{PikkuAIAgentOutput.schema.json → PikkuAgentOutput.schema.json} +0 -0
- /package/dist/.pikku/schemas/schemas/{PikkuAIScorerOutput.schema.json → PikkuAgentScorerOutput.schema.json} +0 -0
- /package/dist/.pikku/schemas/schemas/{PikkuFunctionTypesInput.schema.json → PikkuGatewayTypesInput.schema.json} +0 -0
- /package/dist/src/functions/wirings/{ai-agent → agent}/serialize-agent-map.js +0 -0
- /package/dist/src/functions/wirings/{ai-agent → agent}/serialize-model-aliases.d.ts +0 -0
- /package/dist/src/functions/wirings/{ai-scorer → agent-scorer}/serialize-scorer-names.js +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { join, dirname, resolve, isAbsolute, parse as parsePath } from 'path';
|
|
2
2
|
import { readdir, readFile } from 'fs/promises';
|
|
3
3
|
import { resolveScaffoldFeature } from './resolve-scaffold-feature.js';
|
|
4
|
+
import { setScaffoldWriteGuard } from './file-writer.js';
|
|
4
5
|
const CLIENT_FILE_KEYS = [
|
|
5
6
|
'fetchFile',
|
|
6
7
|
'websocketFile',
|
|
@@ -17,7 +18,24 @@ export const getPikkuCLIConfig = async (logger, configFile = undefined, required
|
|
|
17
18
|
const config = await _getPikkuCLIConfig(logger, configFile, requiredFields, exitProcess, outDirOverride);
|
|
18
19
|
return config;
|
|
19
20
|
};
|
|
20
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Like `getPikkuCLIConfig`, but returns null when the project has no config at
|
|
23
|
+
* all rather than throwing.
|
|
24
|
+
*
|
|
25
|
+
* Some commands are meant to run *outside* a Pikku project: `pikku skills
|
|
26
|
+
* install` seeds a repo's agent skills, which is something you do before there
|
|
27
|
+
* is a pikku.config.json to read. Requiring one to find out there isn't one is
|
|
28
|
+
* a chicken-and-egg. A config that exists but is broken still throws — that is
|
|
29
|
+
* a real error, and staying quiet about it would hide it.
|
|
30
|
+
*/
|
|
31
|
+
export const tryGetPikkuCLIConfig = async (logger, configFile = undefined, requiredFields, outDirOverride) => {
|
|
32
|
+
const resolved = configFile ?? (await findConfigFileOrNull());
|
|
33
|
+
if (!resolved) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return await getPikkuCLIConfig(logger, resolved, requiredFields, false, outDirOverride);
|
|
37
|
+
};
|
|
38
|
+
async function findConfigFileOrNull() {
|
|
21
39
|
let dir = process.cwd();
|
|
22
40
|
const { root } = parsePath(dir);
|
|
23
41
|
while (true) {
|
|
@@ -31,7 +49,14 @@ async function findConfigFile() {
|
|
|
31
49
|
break;
|
|
32
50
|
dir = dirname(dir);
|
|
33
51
|
}
|
|
34
|
-
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
async function findConfigFile() {
|
|
55
|
+
const configFile = await findConfigFileOrNull();
|
|
56
|
+
if (!configFile) {
|
|
57
|
+
throw new Error('Config file pikku.config.json not found');
|
|
58
|
+
}
|
|
59
|
+
return configFile;
|
|
35
60
|
}
|
|
36
61
|
/** A config that was found and parsed, but says something impossible. */
|
|
37
62
|
export class PikkuCLIConfigError extends Error {
|
|
@@ -119,6 +144,17 @@ const _getPikkuCLIConfig = async (logger, configFile = undefined, requiredFields
|
|
|
119
144
|
? outDirOverride
|
|
120
145
|
: resolve(result.rootDir, outDirOverride);
|
|
121
146
|
}
|
|
147
|
+
// An addon's whole generated tree roots one level down, so every leaf it
|
|
148
|
+
// authors is reached as `#pikku/addon/<leaf>`. tsconfig `paths` are global
|
|
149
|
+
// to a tsx process rather than scoped to the package that declared them, so
|
|
150
|
+
// a linked addon's `#pikku/function` would otherwise match the *host
|
|
151
|
+
// application's* flat leaf and type the addon's functions against the
|
|
152
|
+
// host's services. An application generates nothing at this depth, so the
|
|
153
|
+
// pattern finds no candidate and resolution falls back to Node's
|
|
154
|
+
// per-package `imports`, which is package-scoped by definition.
|
|
155
|
+
if (result.addon) {
|
|
156
|
+
result.outDir = join(result.outDir, 'addon');
|
|
157
|
+
}
|
|
122
158
|
// Create transport/event directories
|
|
123
159
|
const functionDir = join(result.outDir, 'function');
|
|
124
160
|
const httpDir = join(result.outDir, 'http');
|
|
@@ -147,8 +183,21 @@ const _getPikkuCLIConfig = async (logger, configFile = undefined, requiredFields
|
|
|
147
183
|
if (!result.functionTypesFile) {
|
|
148
184
|
result.functionTypesFile = join(functionDir, 'pikku-function-types.gen.ts');
|
|
149
185
|
}
|
|
150
|
-
if (!result.
|
|
151
|
-
result.
|
|
186
|
+
if (!result.middlewareTypesFile) {
|
|
187
|
+
result.middlewareTypesFile = join(middlewareDir, 'pikku-middleware-types.gen.ts');
|
|
188
|
+
}
|
|
189
|
+
const setupDir = join(result.outDir, 'setup');
|
|
190
|
+
if (!result.setupTypesFile) {
|
|
191
|
+
result.setupTypesFile = join(setupDir, 'pikku-setup-types.gen.ts');
|
|
192
|
+
}
|
|
193
|
+
if (!result.addonSetupTypesFile) {
|
|
194
|
+
result.addonSetupTypesFile = join(setupDir, 'pikku-addon-setup-types.gen.ts');
|
|
195
|
+
}
|
|
196
|
+
// Sits in the same directory as the better-auth wrapper so both reach the
|
|
197
|
+
// reader as `#pikku/auth`, but is written unconditionally: every project
|
|
198
|
+
// decides who may call a function, only some projects use better-auth.
|
|
199
|
+
if (!result.authGuardsFile) {
|
|
200
|
+
result.authGuardsFile = join(result.outDir, 'auth', 'pikku-auth-types.gen.ts');
|
|
152
201
|
}
|
|
153
202
|
// HTTP
|
|
154
203
|
if (!result.httpWiringsFile) {
|
|
@@ -174,6 +223,9 @@ const _getPikkuCLIConfig = async (logger, configFile = undefined, requiredFields
|
|
|
174
223
|
}
|
|
175
224
|
// Gateways
|
|
176
225
|
const gatewayDir = join(result.outDir, 'gateway');
|
|
226
|
+
if (!result.gatewaysTypesFile) {
|
|
227
|
+
result.gatewaysTypesFile = join(gatewayDir, 'pikku-gateway-types.gen.ts');
|
|
228
|
+
}
|
|
177
229
|
if (!result.gatewaysWiringFile) {
|
|
178
230
|
result.gatewaysWiringFile = join(gatewayDir, 'pikku-gateway-wirings.gen.ts');
|
|
179
231
|
}
|
|
@@ -232,6 +284,14 @@ const _getPikkuCLIConfig = async (logger, configFile = undefined, requiredFields
|
|
|
232
284
|
const resolvedScaffoldDir = isAbsolute(scaffoldDir)
|
|
233
285
|
? scaffoldDir
|
|
234
286
|
: join(result.rootDir, scaffoldDir);
|
|
287
|
+
// Per-unit deploy codegen re-runs the whole of `pikku all` with `--outDir`
|
|
288
|
+
// pointed at one unit's `.pikku`. It needs the `.pikku` artifacts and
|
|
289
|
+
// nothing else — the scaffold is project source, and regenerating it under
|
|
290
|
+
// a redirected outDir rewrites the developer's imports to point inside
|
|
291
|
+
// `.deploy/`. Read straight from the environment rather than through the
|
|
292
|
+
// variables service: that service JSON-parses, so `'1'` arrives as the
|
|
293
|
+
// number 1 and every `=== '1'` check against it silently never matched.
|
|
294
|
+
setScaffoldWriteGuard(process.env.PIKKU_DEPLOY_CODEGEN === '1' ? resolvedScaffoldDir : undefined);
|
|
235
295
|
// Read every scaffold feature once, here, so a legacy 'auth'/'no-auth'
|
|
236
296
|
// fails at load with the migration named, rather than downstream where the
|
|
237
297
|
// value has already been coerced into something plausible.
|
|
@@ -407,11 +467,18 @@ const _getPikkuCLIConfig = async (logger, configFile = undefined, requiredFields
|
|
|
407
467
|
if (!result.workflowMetaDir) {
|
|
408
468
|
result.workflowMetaDir = join(workflowDir, 'meta');
|
|
409
469
|
}
|
|
410
|
-
if (!result.personasWiringFile) {
|
|
411
|
-
result.personasWiringFile = join(workflowDir, 'pikku-personas.gen.ts');
|
|
412
|
-
}
|
|
413
470
|
// Scenarios
|
|
414
471
|
const scenarioDir = join(result.outDir, 'scenarios');
|
|
472
|
+
if (!result.scenarioTypesFile) {
|
|
473
|
+
result.scenarioTypesFile = join(scenarioDir, 'pikku-scenario-types.gen.ts');
|
|
474
|
+
}
|
|
475
|
+
// The actors a scenario drives. Sat under `workflow/` beside a different
|
|
476
|
+
// file of the same name — `scopes/pikku-personas.gen.ts` declares personas,
|
|
477
|
+
// this one types them at runtime — which made the pair impossible to tell
|
|
478
|
+
// apart by import path.
|
|
479
|
+
if (!result.personasWiringFile) {
|
|
480
|
+
result.personasWiringFile = join(scenarioDir, 'pikku-personas.gen.ts');
|
|
481
|
+
}
|
|
415
482
|
if (!result.scenarioStepsFile) {
|
|
416
483
|
result.scenarioStepsFile = join(scenarioDir, 'pikku-scenario-functions.gen.ts');
|
|
417
484
|
}
|
|
@@ -537,16 +604,17 @@ const _getPikkuCLIConfig = async (logger, configFile = undefined, requiredFields
|
|
|
537
604
|
if (!result.addonMetaJsonFile) {
|
|
538
605
|
result.addonMetaJsonFile = join(consoleDir, 'pikku-addon-meta.gen.json');
|
|
539
606
|
}
|
|
540
|
-
if (!result.nodeTypesFile) {
|
|
541
|
-
result.nodeTypesFile = join(consoleDir, 'pikku-node-types.gen.ts');
|
|
542
|
-
}
|
|
543
607
|
const addonDir = join(result.outDir, 'addon');
|
|
544
608
|
if (!result.packageFile) {
|
|
545
|
-
result.packageFile = join(addonDir, 'pikku-package.gen.ts');
|
|
609
|
+
result.packageFile = join(result.addon ? result.outDir : addonDir, 'pikku-package.gen.ts');
|
|
546
610
|
}
|
|
547
611
|
if (!result.addonTypesFile) {
|
|
548
612
|
result.addonTypesFile = join(addonDir, 'pikku-addon-types.gen.ts');
|
|
549
613
|
}
|
|
614
|
+
const errorDir = join(result.outDir, 'error');
|
|
615
|
+
if (!result.errorTypesFile) {
|
|
616
|
+
result.errorTypesFile = join(errorDir, 'pikku-error-types.gen.ts');
|
|
617
|
+
}
|
|
550
618
|
// Secrets (typed wrapper for SecretService)
|
|
551
619
|
const secretsDir = join(result.outDir, 'secrets');
|
|
552
620
|
if (!result.secretTypesFile) {
|
|
@@ -669,7 +737,9 @@ const _getPikkuCLIConfig = async (logger, configFile = undefined, requiredFields
|
|
|
669
737
|
throw e;
|
|
670
738
|
}
|
|
671
739
|
logger.error(e);
|
|
672
|
-
|
|
740
|
+
// The file was found and read; it is the loading that failed. Reporting
|
|
741
|
+
// that as "not found" sends the reader hunting for a file that is there.
|
|
742
|
+
throw new Error(`Failed to load config file: ${configFile}`);
|
|
673
743
|
}
|
|
674
744
|
};
|
|
675
745
|
export const validateCLIConfig = (cliConfig, required) => {
|
|
@@ -14,4 +14,18 @@ export declare const removeLegacyScaffoldFile: (file: string) => Promise<void>;
|
|
|
14
14
|
* to write to, this removes a file pikku no longer writes at all.
|
|
15
15
|
*/
|
|
16
16
|
export declare const removeRetiredScaffoldFiles: (config: PikkuCLIConfig) => Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Delete agent scaffolds that import an entry point pikku no longer publishes.
|
|
19
|
+
*
|
|
20
|
+
* A scaffold is written once, when missing, and left alone afterwards so a
|
|
21
|
+
* project can edit it. That is the right default until the import at the top
|
|
22
|
+
* stops resolving: the file then fails to compile and pikku will not replace it,
|
|
23
|
+
* because it is still there. Deleting it puts it back in the missing set, so the
|
|
24
|
+
* same `pikku all` regenerates it against the current entry point.
|
|
25
|
+
*
|
|
26
|
+
* Only the specifiers above count as stale. Anything a
|
|
27
|
+
* project added to the file is lost with it — which is why this is keyed to an
|
|
28
|
+
* import that cannot compile rather than to the file simply being out of date.
|
|
29
|
+
*/
|
|
30
|
+
export declare const refreshScaffoldsImportingRemovedEntryPoints: (config: PikkuCLIConfig) => Promise<void>;
|
|
17
31
|
export declare const pruneLegacyScaffoldFiles: (config: PikkuCLIConfig) => Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { rm } from 'node:fs/promises';
|
|
2
|
-
import { existsSync } from 'node:fs';
|
|
2
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
3
3
|
import { basename, dirname, join } from 'node:path';
|
|
4
4
|
const scaffoldFiles = (config) => {
|
|
5
5
|
const authDir = config.authFile ? dirname(config.authFile) : undefined;
|
|
@@ -57,6 +57,41 @@ export const removeRetiredScaffoldFiles = async (config) => {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
+
/**
|
|
61
|
+
* Entry points a scaffold may still import that nothing resolves any more: the
|
|
62
|
+
* two #596 renamed, and the `#pikku` hub #1308 replaced with per-wiring leaves.
|
|
63
|
+
* The hub was the project's own file, so a scaffold names it by a relative path
|
|
64
|
+
* rather than by package — matching on the file name is what catches it wherever
|
|
65
|
+
* `outDir` sits.
|
|
66
|
+
*/
|
|
67
|
+
const REMOVED_ENTRY_POINTS = [
|
|
68
|
+
'@pikku/core/ai-agent',
|
|
69
|
+
'@pikku/core/ai-scorer',
|
|
70
|
+
'pikku-types.gen.js',
|
|
71
|
+
];
|
|
72
|
+
/**
|
|
73
|
+
* Delete agent scaffolds that import an entry point pikku no longer publishes.
|
|
74
|
+
*
|
|
75
|
+
* A scaffold is written once, when missing, and left alone afterwards so a
|
|
76
|
+
* project can edit it. That is the right default until the import at the top
|
|
77
|
+
* stops resolving: the file then fails to compile and pikku will not replace it,
|
|
78
|
+
* because it is still there. Deleting it puts it back in the missing set, so the
|
|
79
|
+
* same `pikku all` regenerates it against the current entry point.
|
|
80
|
+
*
|
|
81
|
+
* Only the specifiers above count as stale. Anything a
|
|
82
|
+
* project added to the file is lost with it — which is why this is keyed to an
|
|
83
|
+
* import that cannot compile rather than to the file simply being out of date.
|
|
84
|
+
*/
|
|
85
|
+
export const refreshScaffoldsImportingRemovedEntryPoints = async (config) => {
|
|
86
|
+
for (const file of [config.publicAgentFile, config.publicAgentSchemasFile]) {
|
|
87
|
+
if (!file || !existsSync(file))
|
|
88
|
+
continue;
|
|
89
|
+
const contents = readFileSync(file, 'utf-8');
|
|
90
|
+
if (REMOVED_ENTRY_POINTS.some((entry) => contents.includes(entry))) {
|
|
91
|
+
await rm(file, { force: true });
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
};
|
|
60
95
|
export const pruneLegacyScaffoldFiles = async (config) => {
|
|
61
96
|
for (const file of scaffoldFiles(config)) {
|
|
62
97
|
if (file) {
|
|
@@ -35,7 +35,11 @@ export const resolveScaffoldFeature = (feature, value) => {
|
|
|
35
35
|
* path — so guessing would be wrong twice over.
|
|
36
36
|
*/
|
|
37
37
|
const legacyValueMessage = (feature, value) => {
|
|
38
|
-
const migrated = value === 'no-auth'
|
|
38
|
+
const migrated = value === 'no-auth'
|
|
39
|
+
? '{ "auth": false }'
|
|
40
|
+
: LEGACY_VALUES.has(value)
|
|
41
|
+
? 'true'
|
|
42
|
+
: null;
|
|
39
43
|
if (!migrated) {
|
|
40
44
|
return (`pikku.config.json: scaffold.${feature} must be true, false, or an object ` +
|
|
41
45
|
`like { "auth": false } — received the string ${JSON.stringify(value)}.`);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Field-level compatibility diff between two JSON Schemas.
|
|
3
|
+
*
|
|
4
|
+
* Whether a change breaks anyone depends on which way the data flows, so every
|
|
5
|
+
* comparison carries a `direction`. An input schema is contravariant — the
|
|
6
|
+
* caller writes it, so tightening (a new required field, a narrower enum) is
|
|
7
|
+
* what breaks. An output schema is covariant — the caller reads it, so
|
|
8
|
+
* loosening (a field that may now be absent, a new enum member the consumer
|
|
9
|
+
* never handled) is what breaks. Removing a field breaks in both directions.
|
|
10
|
+
*/
|
|
11
|
+
export type SchemaDirection = 'input' | 'output';
|
|
12
|
+
export interface SchemaChange {
|
|
13
|
+
/** Dotted path from the schema root, `[]` marking array items. */
|
|
14
|
+
path: string;
|
|
15
|
+
breaking: boolean;
|
|
16
|
+
reason: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Diff two schemas, either of which may be absent — a function that gained or
|
|
20
|
+
* lost an input/output entirely is a real compatibility event, not a no-op.
|
|
21
|
+
*/
|
|
22
|
+
export declare function diffSchema(before: unknown, after: unknown, direction: SchemaDirection): SchemaChange[];
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Field-level compatibility diff between two JSON Schemas.
|
|
3
|
+
*
|
|
4
|
+
* Whether a change breaks anyone depends on which way the data flows, so every
|
|
5
|
+
* comparison carries a `direction`. An input schema is contravariant — the
|
|
6
|
+
* caller writes it, so tightening (a new required field, a narrower enum) is
|
|
7
|
+
* what breaks. An output schema is covariant — the caller reads it, so
|
|
8
|
+
* loosening (a field that may now be absent, a new enum member the consumer
|
|
9
|
+
* never handled) is what breaks. Removing a field breaks in both directions.
|
|
10
|
+
*/
|
|
11
|
+
const isSchema = (value) => !!value && typeof value === 'object' && !Array.isArray(value);
|
|
12
|
+
const joinPath = (parent, key) => parent ? `${parent}.${key}` : key;
|
|
13
|
+
/**
|
|
14
|
+
* Resolve local `#/definitions/...` / `#/$defs/...` pointers against the root
|
|
15
|
+
* they were authored in. Anything non-local is left alone — an unresolvable
|
|
16
|
+
* `$ref` is compared as the opaque object it is rather than guessed at.
|
|
17
|
+
*/
|
|
18
|
+
function deref(schema, root, seen) {
|
|
19
|
+
let current = schema;
|
|
20
|
+
while (typeof current.$ref === 'string') {
|
|
21
|
+
const ref = current.$ref;
|
|
22
|
+
if (!ref.startsWith('#/') || seen.has(ref))
|
|
23
|
+
return current;
|
|
24
|
+
seen.add(ref);
|
|
25
|
+
let target = root;
|
|
26
|
+
for (const rawSegment of ref.slice(2).split('/')) {
|
|
27
|
+
const segment = rawSegment.replace(/~1/g, '/').replace(/~0/g, '~');
|
|
28
|
+
if (!isSchema(target))
|
|
29
|
+
return current;
|
|
30
|
+
target = target[segment];
|
|
31
|
+
}
|
|
32
|
+
if (!isSchema(target))
|
|
33
|
+
return current;
|
|
34
|
+
current = target;
|
|
35
|
+
}
|
|
36
|
+
return current;
|
|
37
|
+
}
|
|
38
|
+
const typeOf = (schema) => {
|
|
39
|
+
const type = schema.type;
|
|
40
|
+
if (typeof type === 'string')
|
|
41
|
+
return type;
|
|
42
|
+
if (Array.isArray(type))
|
|
43
|
+
return [...type].sort().join('|');
|
|
44
|
+
return undefined;
|
|
45
|
+
};
|
|
46
|
+
const requiredSet = (schema) => new Set(Array.isArray(schema.required) ? schema.required : []);
|
|
47
|
+
const propertiesOf = (schema) => isSchema(schema.properties) ? schema.properties : {};
|
|
48
|
+
/**
|
|
49
|
+
* `additionalProperties: false` is what makes an unknown key an error, so a
|
|
50
|
+
* removed input field only breaks callers when the schema is closed.
|
|
51
|
+
*/
|
|
52
|
+
const isClosed = (schema) => schema.additionalProperties === false;
|
|
53
|
+
function compare(beforeRaw, afterRaw, direction, path, beforeRoot, afterRoot, depth, changes) {
|
|
54
|
+
// Deep enough to have left any sane generated schema behind; a cyclic pair of
|
|
55
|
+
// `$ref`s that dodges the per-branch guard stops here rather than recursing.
|
|
56
|
+
if (depth > 24)
|
|
57
|
+
return;
|
|
58
|
+
const before = deref(beforeRaw, beforeRoot, new Set());
|
|
59
|
+
const after = deref(afterRaw, afterRoot, new Set());
|
|
60
|
+
const beforeType = typeOf(before);
|
|
61
|
+
const afterType = typeOf(after);
|
|
62
|
+
if (beforeType !== afterType && (beforeType || afterType)) {
|
|
63
|
+
changes.push({
|
|
64
|
+
path,
|
|
65
|
+
breaking: true,
|
|
66
|
+
reason: `type changed from ${beforeType ?? 'unknown'} to ${afterType ?? 'unknown'}`,
|
|
67
|
+
});
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
compareEnums(before, after, direction, path, changes);
|
|
71
|
+
const beforeProps = propertiesOf(before);
|
|
72
|
+
const afterProps = propertiesOf(after);
|
|
73
|
+
const beforeRequired = requiredSet(before);
|
|
74
|
+
const afterRequired = requiredSet(after);
|
|
75
|
+
for (const key of Object.keys(beforeProps)) {
|
|
76
|
+
const childPath = joinPath(path, key);
|
|
77
|
+
if (!(key in afterProps)) {
|
|
78
|
+
// Dropping an input field only breaks callers that still send it, which
|
|
79
|
+
// is only an error against a closed schema.
|
|
80
|
+
const breaking = direction === 'output' || isClosed(after);
|
|
81
|
+
changes.push({
|
|
82
|
+
path: childPath,
|
|
83
|
+
breaking,
|
|
84
|
+
reason: breaking
|
|
85
|
+
? 'field removed'
|
|
86
|
+
: 'field removed (schema accepts additional properties)',
|
|
87
|
+
});
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
if (beforeRequired.has(key) && !afterRequired.has(key)) {
|
|
91
|
+
changes.push({
|
|
92
|
+
path: childPath,
|
|
93
|
+
breaking: direction === 'output',
|
|
94
|
+
reason: direction === 'output'
|
|
95
|
+
? 'field is no longer guaranteed to be present'
|
|
96
|
+
: 'field became optional',
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
else if (!beforeRequired.has(key) && afterRequired.has(key)) {
|
|
100
|
+
changes.push({
|
|
101
|
+
path: childPath,
|
|
102
|
+
breaking: direction === 'input',
|
|
103
|
+
reason: direction === 'input'
|
|
104
|
+
? 'optional field became required'
|
|
105
|
+
: 'field is now always present',
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
compare(beforeProps[key], afterProps[key], direction, childPath, beforeRoot, afterRoot, depth + 1, changes);
|
|
109
|
+
}
|
|
110
|
+
for (const key of Object.keys(afterProps)) {
|
|
111
|
+
if (key in beforeProps)
|
|
112
|
+
continue;
|
|
113
|
+
const childPath = joinPath(path, key);
|
|
114
|
+
const required = afterRequired.has(key);
|
|
115
|
+
const breaking = direction === 'input' && required;
|
|
116
|
+
changes.push({
|
|
117
|
+
path: childPath,
|
|
118
|
+
breaking,
|
|
119
|
+
reason: breaking
|
|
120
|
+
? 'required field added'
|
|
121
|
+
: `${required ? 'required' : 'optional'} field added`,
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
if (isSchema(before.items) && isSchema(after.items)) {
|
|
125
|
+
compare(before.items, after.items, direction, `${path}[]`, beforeRoot, afterRoot, depth + 1, changes);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function compareEnums(before, after, direction, path, changes) {
|
|
129
|
+
if (!Array.isArray(before.enum) || !Array.isArray(after.enum))
|
|
130
|
+
return;
|
|
131
|
+
const beforeValues = before.enum.map((v) => JSON.stringify(v));
|
|
132
|
+
const afterValues = new Set(after.enum.map((v) => JSON.stringify(v)));
|
|
133
|
+
const beforeSet = new Set(beforeValues);
|
|
134
|
+
const removed = beforeValues.filter((v) => !afterValues.has(v));
|
|
135
|
+
const added = after.enum
|
|
136
|
+
.map((v) => JSON.stringify(v))
|
|
137
|
+
.filter((v) => !beforeSet.has(v));
|
|
138
|
+
if (removed.length > 0) {
|
|
139
|
+
changes.push({
|
|
140
|
+
path,
|
|
141
|
+
// A value the caller may still send is now rejected; a value the caller
|
|
142
|
+
// will simply never see again is not their problem.
|
|
143
|
+
breaking: direction === 'input',
|
|
144
|
+
reason: `enum values removed: ${removed.join(', ')}`,
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
if (added.length > 0) {
|
|
148
|
+
changes.push({
|
|
149
|
+
path,
|
|
150
|
+
// A new value in a response reaches consumers that never handled it.
|
|
151
|
+
breaking: direction === 'output',
|
|
152
|
+
reason: `enum values added: ${added.join(', ')}`,
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Diff two schemas, either of which may be absent — a function that gained or
|
|
158
|
+
* lost an input/output entirely is a real compatibility event, not a no-op.
|
|
159
|
+
*/
|
|
160
|
+
export function diffSchema(before, after, direction) {
|
|
161
|
+
const hasBefore = isSchema(before);
|
|
162
|
+
const hasAfter = isSchema(after);
|
|
163
|
+
if (!hasBefore && !hasAfter)
|
|
164
|
+
return [];
|
|
165
|
+
if (!hasBefore && hasAfter) {
|
|
166
|
+
const required = requiredSet(after);
|
|
167
|
+
const breaking = direction === 'input' && required.size > 0;
|
|
168
|
+
return [
|
|
169
|
+
{
|
|
170
|
+
path: '',
|
|
171
|
+
breaking,
|
|
172
|
+
reason: breaking
|
|
173
|
+
? `${direction} schema added with required fields: ${[...required].join(', ')}`
|
|
174
|
+
: `${direction} schema added`,
|
|
175
|
+
},
|
|
176
|
+
];
|
|
177
|
+
}
|
|
178
|
+
if (hasBefore && !hasAfter) {
|
|
179
|
+
return [
|
|
180
|
+
{
|
|
181
|
+
path: '',
|
|
182
|
+
breaking: direction === 'output',
|
|
183
|
+
reason: `${direction} schema removed`,
|
|
184
|
+
},
|
|
185
|
+
];
|
|
186
|
+
}
|
|
187
|
+
const changes = [];
|
|
188
|
+
compare(before, after, direction, '', before, after, 0, changes);
|
|
189
|
+
return changes;
|
|
190
|
+
}
|
|
@@ -3,7 +3,7 @@ export function serializeMetaTS({ jsonImportPath, supportsImportAttributes, pikk
|
|
|
3
3
|
? `import metaData from '${jsonImportPath}' with { type: 'json' }`
|
|
4
4
|
: `import metaData from '${jsonImportPath}'`;
|
|
5
5
|
const serializedOutput = [];
|
|
6
|
-
serializedOutput.push("import { pikkuState } from '@pikku/core/
|
|
6
|
+
serializedOutput.push("import { pikkuState } from '@pikku/core/state'");
|
|
7
7
|
serializedOutput.push(`import { ${metaTypeName} } from '${metaTypeImport}'`);
|
|
8
8
|
serializedOutput.push(importStatement);
|
|
9
9
|
serializedOutput.push('');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { JSONValue } from '@pikku/core';
|
|
1
|
+
import type { JSONValue } from '@pikku/core/utils';
|
|
2
2
|
import type { CLILogger } from '../services/cli-logger.service.js';
|
|
3
3
|
export declare function saveSchemas(logger: CLILogger, schemaParentDir: string, schemas: Record<string, JSONValue>, requiredSchemas: Set<string>, supportsImportAttributes: boolean, packageName?: string | null,
|
|
4
4
|
/** Names the set in log output — there is more than one now (app, scenario). */
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Surface, WiringCategory } from './surface.js';
|
|
2
|
+
/**
|
|
3
|
+
* Turn two surfaces into the release verdict and the reasons behind it.
|
|
4
|
+
*
|
|
5
|
+
* The three rules, in order: anything a client depended on that is gone or
|
|
6
|
+
* tightened is **major**; anything new or compatibly loosened is **minor**;
|
|
7
|
+
* a surface that did not move at all is **patch** — the release is internal
|
|
8
|
+
* work, which is the only thing left for it to be.
|
|
9
|
+
*/
|
|
10
|
+
export type Verdict = 'major' | 'minor' | 'patch';
|
|
11
|
+
export type ChangeKind = 'function' | WiringCategory;
|
|
12
|
+
export type ChangeStatus = 'added' | 'removed' | 'modified';
|
|
13
|
+
export interface SurfaceChange {
|
|
14
|
+
kind: ChangeKind;
|
|
15
|
+
id: string;
|
|
16
|
+
status: ChangeStatus;
|
|
17
|
+
breaking: boolean;
|
|
18
|
+
reasons: string[];
|
|
19
|
+
}
|
|
20
|
+
export interface SurfaceChanges {
|
|
21
|
+
schemaVersion: number;
|
|
22
|
+
generatedAt: string;
|
|
23
|
+
/** The `--against` value, recorded so the artifact says what it is relative to. */
|
|
24
|
+
baseline: string;
|
|
25
|
+
verdict: Verdict;
|
|
26
|
+
summary: {
|
|
27
|
+
breaking: number;
|
|
28
|
+
added: number;
|
|
29
|
+
removed: number;
|
|
30
|
+
modified: number;
|
|
31
|
+
};
|
|
32
|
+
changes: SurfaceChange[];
|
|
33
|
+
}
|
|
34
|
+
export declare const CHANGES_SCHEMA_VERSION = 1;
|
|
35
|
+
export declare function computeSurfaceDiff(before: Surface, after: Surface, baseline: string): SurfaceChanges;
|