@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
|
@@ -2,7 +2,7 @@ import { readdir, mkdir, writeFile } from 'fs/promises';
|
|
|
2
2
|
import { existsSync } from 'fs';
|
|
3
3
|
import { dirname, join, sep } from 'path';
|
|
4
4
|
import { listSkillFiles, listSkillNames, readSkillFile } from '@pikku/skills';
|
|
5
|
-
import { pikkuSessionlessFunc } from '#pikku';
|
|
5
|
+
import { pikkuSessionlessFunc } from '#pikku/function';
|
|
6
6
|
/**
|
|
7
7
|
* Write one skill's files out to `dest`, reading through @pikku/skills rather
|
|
8
8
|
* than off a directory we resolved ourselves. That package reads from its own
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { added, changed, dim, removed, table } from '../../fabric/lib/output.js';
|
|
2
|
+
const STATUS_LABEL = {
|
|
3
|
+
current: dim('current'),
|
|
4
|
+
outdated: changed('outdated'),
|
|
5
|
+
'stale-install': changed('stale install'),
|
|
6
|
+
linked: dim('linked'),
|
|
7
|
+
manual: dim('manual'),
|
|
8
|
+
unresolved: removed('unresolved'),
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* A linked package is a deliberate local checkout, not a decision waiting on
|
|
12
|
+
* the user — so it is counted but never listed. Listing it buries the two rows
|
|
13
|
+
* that matter under twenty that don't, which is what a monorepo run looks like.
|
|
14
|
+
*/
|
|
15
|
+
const QUIET = ['current', 'linked'];
|
|
16
|
+
export const renderUpdate = (_services, result) => {
|
|
17
|
+
const { entries, peers, summary, applied } = result;
|
|
18
|
+
if (entries.length === 0) {
|
|
19
|
+
console.log(dim('No @pikku/* dependencies found.'));
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const multiManifest = new Set(entries.map((entry) => entry.manifest)).size > 1;
|
|
23
|
+
const interesting = entries.filter((entry) => !QUIET.includes(entry.status));
|
|
24
|
+
const rows = (interesting.length > 0 ? interesting : entries).map((entry) => [
|
|
25
|
+
entry.package,
|
|
26
|
+
entry.range,
|
|
27
|
+
entry.installed ?? dim('—'),
|
|
28
|
+
entry.latest ?? dim('—'),
|
|
29
|
+
entry.target ? added(entry.target) : dim('—'),
|
|
30
|
+
STATUS_LABEL[entry.status],
|
|
31
|
+
...(multiManifest ? [dim(entry.manifest)] : []),
|
|
32
|
+
]);
|
|
33
|
+
console.log(table([
|
|
34
|
+
'Package',
|
|
35
|
+
'Range',
|
|
36
|
+
'Installed',
|
|
37
|
+
'Latest',
|
|
38
|
+
applied ? 'Written' : 'Update to',
|
|
39
|
+
'Status',
|
|
40
|
+
...(multiManifest ? ['Manifest'] : []),
|
|
41
|
+
], rows));
|
|
42
|
+
for (const entry of entries) {
|
|
43
|
+
if (entry.reason &&
|
|
44
|
+
entry.status !== 'stale-install' &&
|
|
45
|
+
!QUIET.includes(entry.status)) {
|
|
46
|
+
console.log(`${dim('•')} ${entry.package}: ${dim(entry.reason)}`);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
if (peers.length > 0) {
|
|
50
|
+
console.log();
|
|
51
|
+
console.log(changed(`${peers.length} unsatisfied peer requirement(s):`));
|
|
52
|
+
for (const peer of peers) {
|
|
53
|
+
const has = peer.found
|
|
54
|
+
? `has ${peer.found}${peer.resolved ? dim(` (${peer.resolved})`) : ''}`
|
|
55
|
+
: removed('not declared');
|
|
56
|
+
console.log(` ${peer.package} needs ${peer.peer}@${peer.required} — ${has}`);
|
|
57
|
+
}
|
|
58
|
+
if (!applied && peers.some((peer) => peer.found)) {
|
|
59
|
+
console.log(dim(' run with --update-peers to write the ranges you already declare'));
|
|
60
|
+
}
|
|
61
|
+
if (peers.some((peer) => !peer.found)) {
|
|
62
|
+
console.log(dim(' a peer you do not declare is yours to add — update never adds one'));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
console.log('─'.repeat(40));
|
|
66
|
+
const counts = [
|
|
67
|
+
dim(`${summary.checked} @pikku dependenc${summary.checked === 1 ? 'y' : 'ies'}`),
|
|
68
|
+
];
|
|
69
|
+
if (summary.outdated > 0)
|
|
70
|
+
counts.push(changed(`${summary.outdated} outdated`));
|
|
71
|
+
if (summary.staleInstall > 0)
|
|
72
|
+
counts.push(changed(`${summary.staleInstall} stale install`));
|
|
73
|
+
if (summary.linked > 0)
|
|
74
|
+
counts.push(dim(`${summary.linked} linked`));
|
|
75
|
+
if (summary.manual > 0)
|
|
76
|
+
counts.push(dim(`${summary.manual} manual`));
|
|
77
|
+
if (summary.unresolved > 0)
|
|
78
|
+
counts.push(removed(`${summary.unresolved} unresolved`));
|
|
79
|
+
console.log(counts.join(' '));
|
|
80
|
+
if (applied) {
|
|
81
|
+
if (result.written.length === 0) {
|
|
82
|
+
console.log(added('✓') + ' ' + dim('nothing to write — already current'));
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
console.log(added('✓') +
|
|
86
|
+
` ${result.written.length} package.json file${result.written.length !== 1 ? 's' : ''} updated`);
|
|
87
|
+
console.log(result.installed
|
|
88
|
+
? added('✓') +
|
|
89
|
+
' ' +
|
|
90
|
+
dim(`${result.packageManager} install completed`)
|
|
91
|
+
: dim(result.packageManager === 'unknown'
|
|
92
|
+
? ' no lockfile found — install with your package manager'
|
|
93
|
+
: ` skipped install — run \`${result.packageManager} install\``));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
else if (summary.outdated > 0 || summary.staleInstall > 0) {
|
|
97
|
+
console.log(dim(' run `pikku update --update` to apply'));
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
console.log(added('✓') + ' ' + dim('every @pikku dependency is current'));
|
|
101
|
+
}
|
|
102
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
export type PackageManager = 'bun' | 'npm' | 'yarn' | 'pnpm' | 'unknown';
|
|
2
|
+
export type DependencyField = 'dependencies' | 'devDependencies' | 'peerDependencies' | 'optionalDependencies';
|
|
3
|
+
export type UpdateStatus = 'current' | 'outdated' | 'stale-install' | 'linked' | 'manual' | 'unresolved';
|
|
4
|
+
export type UpdateEntry = {
|
|
5
|
+
package: string;
|
|
6
|
+
/** package.json holding the range, relative to the project root. */
|
|
7
|
+
manifest: string;
|
|
8
|
+
field: DependencyField;
|
|
9
|
+
range: string;
|
|
10
|
+
/** Version resolved in node_modules, when the project has been installed. */
|
|
11
|
+
installed: string | null;
|
|
12
|
+
latest: string | null;
|
|
13
|
+
/** The range `--update` would write, or null when there is nothing to write. */
|
|
14
|
+
target: string | null;
|
|
15
|
+
status: UpdateStatus;
|
|
16
|
+
reason?: string;
|
|
17
|
+
};
|
|
18
|
+
export type PeerFinding = {
|
|
19
|
+
/** The @pikku package that declares the peer. */
|
|
20
|
+
package: string;
|
|
21
|
+
peer: string;
|
|
22
|
+
required: string;
|
|
23
|
+
/** The range the project declares for the peer, or null when it declares none. */
|
|
24
|
+
found: string | null;
|
|
25
|
+
resolved: string | null;
|
|
26
|
+
manifest: string;
|
|
27
|
+
optional: boolean;
|
|
28
|
+
/** The range `--update-peers` would write. */
|
|
29
|
+
target: string;
|
|
30
|
+
};
|
|
31
|
+
export type UpdateResult = {
|
|
32
|
+
root: string;
|
|
33
|
+
registry: string;
|
|
34
|
+
tag: string;
|
|
35
|
+
packageManager: PackageManager;
|
|
36
|
+
entries: UpdateEntry[];
|
|
37
|
+
peers: PeerFinding[];
|
|
38
|
+
applied: boolean;
|
|
39
|
+
/** Manifests rewritten by `--update`, relative to the project root. */
|
|
40
|
+
written: string[];
|
|
41
|
+
installed: boolean;
|
|
42
|
+
summary: {
|
|
43
|
+
checked: number;
|
|
44
|
+
outdated: number;
|
|
45
|
+
staleInstall: number;
|
|
46
|
+
linked: number;
|
|
47
|
+
manual: number;
|
|
48
|
+
unresolved: number;
|
|
49
|
+
peerIssues: number;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export type UpdateInput = {
|
|
53
|
+
update?: boolean;
|
|
54
|
+
updatePeers?: boolean;
|
|
55
|
+
install?: boolean;
|
|
56
|
+
tag?: string;
|
|
57
|
+
registry?: string;
|
|
58
|
+
};
|
|
59
|
+
export type Packument = {
|
|
60
|
+
'dist-tags'?: Record<string, string>;
|
|
61
|
+
versions?: Record<string, {
|
|
62
|
+
peerDependencies?: Record<string, string>;
|
|
63
|
+
peerDependenciesMeta?: Record<string, {
|
|
64
|
+
optional?: boolean;
|
|
65
|
+
}>;
|
|
66
|
+
}>;
|
|
67
|
+
};
|
|
68
|
+
export type FetchPackument = (name: string) => Promise<Packument | null>;
|
|
69
|
+
/** The range `--update` writes for `latest`, or null when the range is not ours to move. */
|
|
70
|
+
export declare const rewriteRange: (range: string, latest: string) => string | null;
|
|
71
|
+
export declare const findProjectRoot: (startDir: string, exists?: (path: string) => boolean) => string;
|
|
72
|
+
/**
|
|
73
|
+
* Where `install` has to run: the nearest directory at or above the project
|
|
74
|
+
* root that says which package manager owns the tree. In a monorepo that is the
|
|
75
|
+
* workspace root, not the package the command was invoked in.
|
|
76
|
+
*
|
|
77
|
+
* The corepack `packageManager` field wins over lockfiles — it states intent
|
|
78
|
+
* before a lockfile exists, and a project can carry a stale one from another
|
|
79
|
+
* tool. Guessing wrong is not a soft failure: the install spawns a binary that
|
|
80
|
+
* isn't on PATH.
|
|
81
|
+
*/
|
|
82
|
+
export declare const findInstallRoot: (root: string, exists?: (path: string) => boolean, read?: (path: string) => any | null) => {
|
|
83
|
+
dir: string;
|
|
84
|
+
packageManager: PackageManager;
|
|
85
|
+
};
|
|
86
|
+
/** Every package.json the run covers: the project root, plus its workspaces. */
|
|
87
|
+
export declare const collectManifestPaths: (root: string) => Promise<string[]>;
|
|
88
|
+
/** Version resolved in node_modules, walking up from the manifest's own directory. */
|
|
89
|
+
export declare const resolveInstalled: (manifestDir: string, name: string, read?: (path: string) => any | null) => string | null;
|
|
90
|
+
export declare const runUpdate: ({ rootDir, apply, updatePeers, install, tag, registry, fetchPackument, }: {
|
|
91
|
+
rootDir: string;
|
|
92
|
+
apply: boolean;
|
|
93
|
+
updatePeers: boolean;
|
|
94
|
+
install: boolean;
|
|
95
|
+
tag: string;
|
|
96
|
+
registry: string;
|
|
97
|
+
fetchPackument?: FetchPackument;
|
|
98
|
+
}) => Promise<UpdateResult>;
|
|
99
|
+
export declare const pikkuUpdate: import("#pikku/function").PikkuFunctionConfig<UpdateInput, UpdateResult, "rpc" | "session", import("#pikku/function").PikkuFunctionSessionless<UpdateInput, UpdateResult, "rpc" | "session", import("#pikku/function").WiredServices, unknown> | import("#pikku/function").PikkuFunction<UpdateInput, UpdateResult, "rpc" | "session", import("#pikku/function").WiredServices>, undefined, undefined>;
|
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|
|
2
|
+
import { dirname, join, relative, resolve, sep } from 'node:path';
|
|
3
|
+
import { spawnSync } from 'node:child_process';
|
|
4
|
+
import { glob } from 'tinyglobby';
|
|
5
|
+
import semver from 'semver';
|
|
6
|
+
import { pikkuSessionlessFunc } from '#pikku/function';
|
|
7
|
+
const DEPENDENCY_FIELDS = [
|
|
8
|
+
'dependencies',
|
|
9
|
+
'devDependencies',
|
|
10
|
+
'peerDependencies',
|
|
11
|
+
'optionalDependencies',
|
|
12
|
+
];
|
|
13
|
+
const LOCKFILES = [
|
|
14
|
+
['bun.lock', 'bun'],
|
|
15
|
+
['bun.lockb', 'bun'],
|
|
16
|
+
['pnpm-lock.yaml', 'pnpm'],
|
|
17
|
+
['yarn.lock', 'yarn'],
|
|
18
|
+
['package-lock.json', 'npm'],
|
|
19
|
+
];
|
|
20
|
+
/**
|
|
21
|
+
* Ranges we can rewrite without changing what the range *means*: a caret, a
|
|
22
|
+
* tilde, a `>=` floor, or an exact pin. Anything else — a union, an x-range, a
|
|
23
|
+
* `workspace:`/`file:` protocol — is reported and left alone, because moving
|
|
24
|
+
* its floor is a judgement call rather than a substitution.
|
|
25
|
+
*/
|
|
26
|
+
const SIMPLE_RANGE = /^(\^|~|>=|)(\d+\.\d+\.\d+(?:[-+][0-9A-Za-z-.]+)?)$/;
|
|
27
|
+
/**
|
|
28
|
+
* A range that resolves to a checkout on disk rather than to the registry. The
|
|
29
|
+
* project is deliberately on a local copy, so there is nothing to update and
|
|
30
|
+
* nothing for the user to decide — it is reported apart from the ranges we
|
|
31
|
+
* genuinely cannot rewrite.
|
|
32
|
+
*/
|
|
33
|
+
const LINK_PROTOCOL = /^(workspace|file|link|portal):/;
|
|
34
|
+
/** The range `--update` writes for `latest`, or null when the range is not ours to move. */
|
|
35
|
+
export const rewriteRange = (range, latest) => {
|
|
36
|
+
const match = SIMPLE_RANGE.exec(range.trim());
|
|
37
|
+
if (!match) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return `${match[1]}${latest}`;
|
|
41
|
+
};
|
|
42
|
+
/** The lowest version a range admits — what the project is pinned *at least* to. */
|
|
43
|
+
const floorOf = (range) => {
|
|
44
|
+
try {
|
|
45
|
+
return semver.minVersion(range)?.version ?? null;
|
|
46
|
+
}
|
|
47
|
+
catch {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
export const findProjectRoot = (startDir, exists = existsSync) => {
|
|
52
|
+
let dir = resolve(startDir);
|
|
53
|
+
for (let i = 0; i < 12; i++) {
|
|
54
|
+
if (exists(join(dir, 'package.json'))) {
|
|
55
|
+
return dir;
|
|
56
|
+
}
|
|
57
|
+
const parent = dirname(dir);
|
|
58
|
+
if (parent === dir) {
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
dir = parent;
|
|
62
|
+
}
|
|
63
|
+
return resolve(startDir);
|
|
64
|
+
};
|
|
65
|
+
const readJson = (path) => {
|
|
66
|
+
try {
|
|
67
|
+
return JSON.parse(readFileSync(path, 'utf-8'));
|
|
68
|
+
}
|
|
69
|
+
catch {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
const KNOWN_MANAGERS = ['bun', 'yarn', 'pnpm', 'npm'];
|
|
74
|
+
/**
|
|
75
|
+
* Where `install` has to run: the nearest directory at or above the project
|
|
76
|
+
* root that says which package manager owns the tree. In a monorepo that is the
|
|
77
|
+
* workspace root, not the package the command was invoked in.
|
|
78
|
+
*
|
|
79
|
+
* The corepack `packageManager` field wins over lockfiles — it states intent
|
|
80
|
+
* before a lockfile exists, and a project can carry a stale one from another
|
|
81
|
+
* tool. Guessing wrong is not a soft failure: the install spawns a binary that
|
|
82
|
+
* isn't on PATH.
|
|
83
|
+
*/
|
|
84
|
+
export const findInstallRoot = (root, exists = existsSync, read = readJson) => {
|
|
85
|
+
let dir = resolve(root);
|
|
86
|
+
for (let i = 0; i < 12; i++) {
|
|
87
|
+
const declared = read(join(dir, 'package.json'))?.packageManager;
|
|
88
|
+
const name = typeof declared === 'string' ? declared.split('@')[0] : null;
|
|
89
|
+
if (name && KNOWN_MANAGERS.includes(name)) {
|
|
90
|
+
return { dir, packageManager: name };
|
|
91
|
+
}
|
|
92
|
+
for (const [file, pm] of LOCKFILES) {
|
|
93
|
+
if (exists(join(dir, file))) {
|
|
94
|
+
return { dir, packageManager: pm };
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
const parent = dirname(dir);
|
|
98
|
+
if (parent === dir) {
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
dir = parent;
|
|
102
|
+
}
|
|
103
|
+
return { dir: resolve(root), packageManager: 'unknown' };
|
|
104
|
+
};
|
|
105
|
+
const workspacePatterns = (manifest) => {
|
|
106
|
+
const workspaces = manifest?.workspaces;
|
|
107
|
+
if (Array.isArray(workspaces)) {
|
|
108
|
+
return workspaces;
|
|
109
|
+
}
|
|
110
|
+
if (Array.isArray(workspaces?.packages)) {
|
|
111
|
+
return workspaces.packages;
|
|
112
|
+
}
|
|
113
|
+
return [];
|
|
114
|
+
};
|
|
115
|
+
/** Every package.json the run covers: the project root, plus its workspaces. */
|
|
116
|
+
export const collectManifestPaths = async (root) => {
|
|
117
|
+
const rootManifest = join(root, 'package.json');
|
|
118
|
+
const paths = existsSync(rootManifest) ? [rootManifest] : [];
|
|
119
|
+
const patterns = workspacePatterns(readJson(rootManifest));
|
|
120
|
+
if (patterns.length === 0) {
|
|
121
|
+
return paths;
|
|
122
|
+
}
|
|
123
|
+
const matches = await glob(patterns.map((pattern) => `${pattern.replace(/\/$/, '')}/package.json`), { cwd: root, absolute: true, ignore: ['**/node_modules/**'] });
|
|
124
|
+
for (const match of matches.sort()) {
|
|
125
|
+
if (!paths.includes(match)) {
|
|
126
|
+
paths.push(match);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return paths;
|
|
130
|
+
};
|
|
131
|
+
/** Version resolved in node_modules, walking up from the manifest's own directory. */
|
|
132
|
+
export const resolveInstalled = (manifestDir, name, read = readJson) => {
|
|
133
|
+
let dir = resolve(manifestDir);
|
|
134
|
+
for (let i = 0; i < 12; i++) {
|
|
135
|
+
const candidate = read(join(dir, 'node_modules', ...name.split('/'), 'package.json'));
|
|
136
|
+
if (candidate?.version) {
|
|
137
|
+
return String(candidate.version);
|
|
138
|
+
}
|
|
139
|
+
const parent = dirname(dir);
|
|
140
|
+
if (parent === dir) {
|
|
141
|
+
break;
|
|
142
|
+
}
|
|
143
|
+
dir = parent;
|
|
144
|
+
}
|
|
145
|
+
return null;
|
|
146
|
+
};
|
|
147
|
+
const isPikkuPackage = (name) => name.startsWith('@pikku/');
|
|
148
|
+
const defaultFetchPackument = (registry) => async (name) => {
|
|
149
|
+
try {
|
|
150
|
+
const response = await fetch(`${registry.replace(/\/$/, '')}/${name}`, {
|
|
151
|
+
headers: { accept: 'application/vnd.npm.install-v1+json' },
|
|
152
|
+
});
|
|
153
|
+
if (!response.ok) {
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
156
|
+
return (await response.json());
|
|
157
|
+
}
|
|
158
|
+
catch {
|
|
159
|
+
return null;
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* Rewrite a manifest's ranges in place, keeping the file's own indentation and
|
|
164
|
+
* key order — a package.json is hand-edited far more often than it is
|
|
165
|
+
* generated, so a version bump must not reformat it.
|
|
166
|
+
*/
|
|
167
|
+
const writeManifest = (path, edits) => {
|
|
168
|
+
const raw = readFileSync(path, 'utf-8');
|
|
169
|
+
const json = JSON.parse(raw);
|
|
170
|
+
for (const edit of edits) {
|
|
171
|
+
if (json[edit.field]?.[edit.package] !== undefined) {
|
|
172
|
+
json[edit.field][edit.package] = edit.range;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
const indentMatch = raw.match(/\n(\s+)"/);
|
|
176
|
+
const indent = indentMatch ? indentMatch[1] : ' ';
|
|
177
|
+
const trailing = raw.endsWith('\n') ? '\n' : '';
|
|
178
|
+
writeFileSync(path, `${JSON.stringify(json, null, indent)}${trailing}`, 'utf-8');
|
|
179
|
+
};
|
|
180
|
+
export const runUpdate = async ({ rootDir, apply, updatePeers, install, tag, registry, fetchPackument, }) => {
|
|
181
|
+
const root = findProjectRoot(rootDir);
|
|
182
|
+
const { dir: installDir, packageManager } = findInstallRoot(root);
|
|
183
|
+
const fetchOne = fetchPackument ?? defaultFetchPackument(registry);
|
|
184
|
+
const manifests = [];
|
|
185
|
+
for (const path of await collectManifestPaths(root)) {
|
|
186
|
+
const json = readJson(path);
|
|
187
|
+
if (json) {
|
|
188
|
+
manifests.push({
|
|
189
|
+
path,
|
|
190
|
+
relative: relative(root, path).split(sep).join('/') || 'package.json',
|
|
191
|
+
dir: dirname(path),
|
|
192
|
+
json,
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
const names = new Set();
|
|
197
|
+
for (const manifest of manifests) {
|
|
198
|
+
for (const field of DEPENDENCY_FIELDS) {
|
|
199
|
+
for (const name of Object.keys(manifest.json[field] ?? {})) {
|
|
200
|
+
if (isPikkuPackage(name)) {
|
|
201
|
+
names.add(name);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
const packuments = new Map();
|
|
207
|
+
await Promise.all([...names].map(async (name) => {
|
|
208
|
+
packuments.set(name, await fetchOne(name));
|
|
209
|
+
}));
|
|
210
|
+
const entries = [];
|
|
211
|
+
for (const manifest of manifests) {
|
|
212
|
+
for (const field of DEPENDENCY_FIELDS) {
|
|
213
|
+
const deps = manifest.json[field] ?? {};
|
|
214
|
+
for (const [name, range] of Object.entries(deps)) {
|
|
215
|
+
if (!isPikkuPackage(name)) {
|
|
216
|
+
continue;
|
|
217
|
+
}
|
|
218
|
+
const installedVersion = resolveInstalled(manifest.dir, name);
|
|
219
|
+
const latest = packuments.get(name)?.['dist-tags']?.[tag] ?? null;
|
|
220
|
+
const entry = {
|
|
221
|
+
package: name,
|
|
222
|
+
manifest: manifest.relative,
|
|
223
|
+
field,
|
|
224
|
+
range,
|
|
225
|
+
installed: installedVersion,
|
|
226
|
+
latest,
|
|
227
|
+
target: null,
|
|
228
|
+
status: 'current',
|
|
229
|
+
};
|
|
230
|
+
if (LINK_PROTOCOL.test(range.trim())) {
|
|
231
|
+
entry.status = 'linked';
|
|
232
|
+
}
|
|
233
|
+
else if (!latest) {
|
|
234
|
+
entry.status = 'unresolved';
|
|
235
|
+
entry.reason = `no '${tag}' release found on ${registry}`;
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
const rewritten = rewriteRange(range, latest);
|
|
239
|
+
if (rewritten === null) {
|
|
240
|
+
entry.status = 'manual';
|
|
241
|
+
entry.reason = `'${range}' is not a plain caret, tilde, >= or exact range`;
|
|
242
|
+
}
|
|
243
|
+
else if (rewritten !== range) {
|
|
244
|
+
entry.status = 'outdated';
|
|
245
|
+
entry.target = rewritten;
|
|
246
|
+
}
|
|
247
|
+
else if (installedVersion && semver.lt(installedVersion, latest)) {
|
|
248
|
+
entry.status = 'stale-install';
|
|
249
|
+
entry.reason = 'the range already allows it — run an install';
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
entries.push(entry);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Peers are read off the version the run lands on, not the one installed —
|
|
258
|
+
* the point is what the *target* needs. So resolve every @pikku package to
|
|
259
|
+
* its post-update version first, then read that version's peers.
|
|
260
|
+
*/
|
|
261
|
+
const targetVersion = (entry) => entry.status === 'outdated' || entry.status === 'stale-install'
|
|
262
|
+
? entry.latest
|
|
263
|
+
: (entry.installed ?? floorOf(entry.range));
|
|
264
|
+
const pikkuTargets = new Map();
|
|
265
|
+
for (const entry of entries) {
|
|
266
|
+
const version = targetVersion(entry);
|
|
267
|
+
if (version && semver.valid(version)) {
|
|
268
|
+
const existing = pikkuTargets.get(entry.package);
|
|
269
|
+
if (!existing || semver.gt(version, existing)) {
|
|
270
|
+
pikkuTargets.set(entry.package, version);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
const peers = [];
|
|
275
|
+
for (const manifest of manifests) {
|
|
276
|
+
const declared = new Map();
|
|
277
|
+
for (const field of DEPENDENCY_FIELDS) {
|
|
278
|
+
for (const [name, range] of Object.entries(manifest.json[field] ?? {})) {
|
|
279
|
+
if (!declared.has(name)) {
|
|
280
|
+
declared.set(name, { field, range });
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
for (const [name] of declared) {
|
|
285
|
+
if (!isPikkuPackage(name)) {
|
|
286
|
+
continue;
|
|
287
|
+
}
|
|
288
|
+
const version = pikkuTargets.get(name);
|
|
289
|
+
const versionMeta = version
|
|
290
|
+
? packuments.get(name)?.versions?.[version]
|
|
291
|
+
: undefined;
|
|
292
|
+
for (const [peer, required] of Object.entries(versionMeta?.peerDependencies ?? {})) {
|
|
293
|
+
const optional = versionMeta?.peerDependenciesMeta?.[peer]?.optional === true;
|
|
294
|
+
const found = declared.get(peer)?.range ?? null;
|
|
295
|
+
const resolved = pikkuTargets.get(peer) ??
|
|
296
|
+
resolveInstalled(manifest.dir, peer) ??
|
|
297
|
+
(found ? floorOf(found) : null);
|
|
298
|
+
if (resolved &&
|
|
299
|
+
semver.satisfies(resolved, required, { includePrerelease: true })) {
|
|
300
|
+
continue;
|
|
301
|
+
}
|
|
302
|
+
if (!found && optional) {
|
|
303
|
+
continue;
|
|
304
|
+
}
|
|
305
|
+
peers.push({
|
|
306
|
+
package: name,
|
|
307
|
+
peer,
|
|
308
|
+
required,
|
|
309
|
+
found,
|
|
310
|
+
resolved,
|
|
311
|
+
manifest: manifest.relative,
|
|
312
|
+
optional,
|
|
313
|
+
target: required,
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
const written = [];
|
|
319
|
+
if (apply) {
|
|
320
|
+
for (const manifest of manifests) {
|
|
321
|
+
const edits = entries
|
|
322
|
+
.filter((entry) => entry.manifest === manifest.relative && entry.target)
|
|
323
|
+
.map((entry) => ({
|
|
324
|
+
field: entry.field,
|
|
325
|
+
package: entry.package,
|
|
326
|
+
range: entry.target,
|
|
327
|
+
}));
|
|
328
|
+
if (updatePeers) {
|
|
329
|
+
for (const peer of peers) {
|
|
330
|
+
if (peer.manifest !== manifest.relative || !peer.found) {
|
|
331
|
+
continue;
|
|
332
|
+
}
|
|
333
|
+
const field = DEPENDENCY_FIELDS.find((candidate) => manifest.json[candidate]?.[peer.peer] !== undefined);
|
|
334
|
+
if (field) {
|
|
335
|
+
edits.push({ field, package: peer.peer, range: peer.target });
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
if (edits.length > 0) {
|
|
340
|
+
writeManifest(manifest.path, edits);
|
|
341
|
+
written.push(manifest.relative);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
let ranInstall = false;
|
|
346
|
+
if (apply && install && written.length > 0 && packageManager !== 'unknown') {
|
|
347
|
+
const result = spawnSync(packageManager, ['install'], {
|
|
348
|
+
cwd: installDir,
|
|
349
|
+
stdio: 'inherit',
|
|
350
|
+
});
|
|
351
|
+
if (result.error || result.status !== 0) {
|
|
352
|
+
throw new Error(`${packageManager} install failed: ${result.error?.message ?? `exit ${result.status}`}`);
|
|
353
|
+
}
|
|
354
|
+
ranInstall = true;
|
|
355
|
+
}
|
|
356
|
+
const count = (status) => entries.filter((entry) => entry.status === status).length;
|
|
357
|
+
return {
|
|
358
|
+
root,
|
|
359
|
+
registry,
|
|
360
|
+
tag,
|
|
361
|
+
packageManager,
|
|
362
|
+
entries,
|
|
363
|
+
peers,
|
|
364
|
+
applied: apply,
|
|
365
|
+
written,
|
|
366
|
+
installed: ranInstall,
|
|
367
|
+
summary: {
|
|
368
|
+
checked: entries.length,
|
|
369
|
+
outdated: count('outdated'),
|
|
370
|
+
staleInstall: count('stale-install'),
|
|
371
|
+
linked: count('linked'),
|
|
372
|
+
manual: count('manual'),
|
|
373
|
+
unresolved: count('unresolved'),
|
|
374
|
+
peerIssues: peers.length,
|
|
375
|
+
},
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
export const pikkuUpdate = pikkuSessionlessFunc({
|
|
379
|
+
func: async ({ config }, input) => {
|
|
380
|
+
const updatePeers = input?.updatePeers === true;
|
|
381
|
+
return runUpdate({
|
|
382
|
+
rootDir: config.rootDir,
|
|
383
|
+
apply: input?.update === true || updatePeers,
|
|
384
|
+
updatePeers,
|
|
385
|
+
install: input?.install !== false,
|
|
386
|
+
tag: input?.tag || 'latest',
|
|
387
|
+
registry: input?.registry ||
|
|
388
|
+
process.env.npm_config_registry ||
|
|
389
|
+
'https://registry.npmjs.org',
|
|
390
|
+
});
|
|
391
|
+
},
|
|
392
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { renderValidate } from '../validate/validate.js';
|
|
2
|
-
export declare const validate: import("#pikku").PikkuFunctionConfig<Record<string, never>, {
|
|
2
|
+
export declare const validate: import("#pikku/function").PikkuFunctionConfig<Record<string, never>, {
|
|
3
3
|
ok: boolean;
|
|
4
4
|
root: string;
|
|
5
5
|
ran: {
|
|
@@ -14,7 +14,7 @@ export declare const validate: import("#pikku").PikkuFunctionConfig<Record<strin
|
|
|
14
14
|
path: string;
|
|
15
15
|
fixHint: string;
|
|
16
16
|
}[];
|
|
17
|
-
}, "rpc" | "session", import("#pikku").PikkuFunctionSessionless<Record<string, never>, {
|
|
17
|
+
}, "rpc" | "session", import("#pikku/function").PikkuFunctionSessionless<Record<string, never>, {
|
|
18
18
|
ok: boolean;
|
|
19
19
|
root: string;
|
|
20
20
|
ran: {
|
|
@@ -29,7 +29,7 @@ export declare const validate: import("#pikku").PikkuFunctionConfig<Record<strin
|
|
|
29
29
|
path: string;
|
|
30
30
|
fixHint: string;
|
|
31
31
|
}[];
|
|
32
|
-
}, "rpc" | "session", import("#pikku").WiredServices, unknown> | import("#pikku").PikkuFunction<Record<string, never>, {
|
|
32
|
+
}, "rpc" | "session", import("#pikku/function").WiredServices, unknown> | import("#pikku/function").PikkuFunction<Record<string, never>, {
|
|
33
33
|
ok: boolean;
|
|
34
34
|
root: string;
|
|
35
35
|
ran: {
|
|
@@ -44,5 +44,5 @@ export declare const validate: import("#pikku").PikkuFunctionConfig<Record<strin
|
|
|
44
44
|
path: string;
|
|
45
45
|
fixHint: string;
|
|
46
46
|
}[];
|
|
47
|
-
}, "rpc" | "session", import("#pikku").WiredServices>, undefined, undefined>;
|
|
47
|
+
}, "rpc" | "session", import("#pikku/function").WiredServices>, undefined, undefined>;
|
|
48
48
|
export { renderValidate };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { pikkuSessionlessFunc } from '#pikku';
|
|
1
|
+
import { pikkuSessionlessFunc } from '#pikku/function';
|
|
2
2
|
import { ValidateInput, ValidateOutput, renderValidate, runProjectValidate, } from '../validate/validate.js';
|
|
3
3
|
export const validate = pikkuSessionlessFunc({
|
|
4
4
|
description: 'Check this project against every Pikku check that applies to it — app structure, and the published file set of any addon it contains. Prints what was checked, with fix hints for anything wrong.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const pikkuVersionsCheck: import("#pikku").PikkuFunctionConfig<void, void, "rpc" | "session", import("#pikku").PikkuFunctionSessionless<void, void, "rpc" | "session", import("#pikku").WiredServices, unknown> | import("#pikku").PikkuFunction<void, void, "rpc" | "session", import("#pikku").WiredServices>, undefined, undefined>;
|
|
1
|
+
export declare const pikkuVersionsCheck: import("#pikku/function").PikkuFunctionConfig<void, void, "rpc" | "session", import("#pikku/function").PikkuFunctionSessionless<void, void, "rpc" | "session", import("#pikku/function").WiredServices, unknown> | import("#pikku/function").PikkuFunction<void, void, "rpc" | "session", import("#pikku/function").WiredServices>, undefined, undefined>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const pikkuVersionsInit: import("#pikku").PikkuFunctionConfig<{
|
|
1
|
+
export declare const pikkuVersionsInit: import("#pikku/function").PikkuFunctionConfig<{
|
|
2
2
|
force?: boolean;
|
|
3
|
-
}, void, "rpc" | "session", import("#pikku").PikkuFunctionSessionless<{
|
|
3
|
+
}, void, "rpc" | "session", import("#pikku/function").PikkuFunctionSessionless<{
|
|
4
4
|
force?: boolean;
|
|
5
|
-
}, void, "rpc" | "session", import("#pikku").WiredServices, unknown> | import("#pikku").PikkuFunction<{
|
|
5
|
+
}, void, "rpc" | "session", import("#pikku/function").WiredServices, unknown> | import("#pikku/function").PikkuFunction<{
|
|
6
6
|
force?: boolean;
|
|
7
|
-
}, void, "rpc" | "session", import("#pikku").WiredServices>, undefined, undefined>;
|
|
7
|
+
}, void, "rpc" | "session", import("#pikku/function").WiredServices>, undefined, undefined>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { existsSync } from 'fs';
|
|
2
2
|
import { join } from 'path';
|
|
3
|
-
import { pikkuSessionlessFunc } from '#pikku';
|
|
3
|
+
import { pikkuSessionlessFunc } from '#pikku/function';
|
|
4
4
|
import { createEmptyManifest, saveManifest, } from '../../utils/contract-versions.js';
|
|
5
5
|
export const pikkuVersionsInit = pikkuSessionlessFunc({
|
|
6
6
|
func: async ({ logger, config }, { force }) => {
|