@pikku/cli 0.12.104 → 0.12.105
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/console-app/assets/{abnfDiagram-VRR7QNED-DTI8lQi3.js → abnfDiagram-VRR7QNED-QRjCVsso.js} +1 -1
- package/console-app/assets/{arc-B_XK0Xbk.js → arc-CloGjkHW.js} +1 -1
- package/console-app/assets/architecture-TIHT7OUA-Cz78Qi5H.js +1 -0
- package/console-app/assets/{architectureDiagram-ZJ3FMSHR-CzE1T938.js → architectureDiagram-ZJ3FMSHR-Dl10fVqw.js} +1 -1
- package/console-app/assets/{blockDiagram-677ZJIJ3-CcSxyQZH.js → blockDiagram-677ZJIJ3-CMNoQhwm.js} +1 -1
- package/console-app/assets/{c4Diagram-LMCZKHZV-DSsAqAm5.js → c4Diagram-LMCZKHZV-C2pWYCa6.js} +1 -1
- package/console-app/assets/channel-Bm4o-pNB.js +1 -0
- package/console-app/assets/{chunk-32BRIVSS-Atv4wjmh.js → chunk-32BRIVSS-DC3ZGIPN.js} +1 -1
- package/console-app/assets/{chunk-52WLFC77-DkXgWHeH.js → chunk-52WLFC77-DuAheIlc.js} +1 -1
- package/console-app/assets/{chunk-C7G6YPKG-DhtQv4yx.js → chunk-C7G6YPKG-BVtRZIEZ.js} +1 -1
- package/console-app/assets/{chunk-EX3LRPZG-0GIQyrn1.js → chunk-EX3LRPZG-CWXF7N33.js} +1 -1
- package/console-app/assets/{chunk-FWX5IMBZ-DZvpxO7-.js → chunk-FWX5IMBZ-UN3i5qMG.js} +2 -2
- package/console-app/assets/{chunk-HOUHSVGY-CyU0q_QM.js → chunk-HOUHSVGY-DMorD8Ib.js} +1 -1
- package/console-app/assets/{chunk-ICXQ74PX-CzAIiCX5.js → chunk-ICXQ74PX-BiuzWyj2.js} +1 -1
- package/console-app/assets/{chunk-MOJQB5TN-DUKLkDFX.js → chunk-MOJQB5TN-6BhXmDyj.js} +1 -1
- package/console-app/assets/{chunk-OGEWGWER-DhmfsQT_.js → chunk-OGEWGWER-BNi3Gsmc.js} +1 -1
- package/console-app/assets/{chunk-PUDLZKDR-BMAILUQ6.js → chunk-PUDLZKDR-DNWGCeoL.js} +1 -1
- package/console-app/assets/{chunk-Q4XR5HBZ-Cpak96ZI.js → chunk-Q4XR5HBZ-i4zkt4cc.js} +1 -1
- package/console-app/assets/{chunk-RYQCIY6F-9OVlGtkS.js → chunk-RYQCIY6F-DvRUzuDz.js} +1 -1
- package/console-app/assets/{chunk-V7JOEXUC-BfBH_WMn.js → chunk-V7JOEXUC-JMjbqEgu.js} +1 -1
- package/console-app/assets/chunk-VAUOI2AC-D4_whP-t.js +1 -0
- package/console-app/assets/{chunk-VR4S4FIN-q02O9Hva.js → chunk-VR4S4FIN-BcHHugM0.js} +1 -1
- package/console-app/assets/{chunk-WYO6CB5R-cQuwndtk.js → chunk-WYO6CB5R-COKjEQwP.js} +1 -1
- package/console-app/assets/chunk-XXDRQBXY-mkAF2YHU.js +1 -0
- package/console-app/assets/{chunk-ZGVPDNZ5-2b6-Ub1z.js → chunk-ZGVPDNZ5-CENGdlFJ.js} +1 -1
- package/console-app/assets/classDiagram-OUVF2IWQ-B2cEvfK0.js +1 -0
- package/console-app/assets/classDiagram-v2-EOCWNBFH-B2cEvfK0.js +1 -0
- package/console-app/assets/{cose-bilkent-JH36ORCC-D8cALtKZ.js → cose-bilkent-JH36ORCC-D6F1MghO.js} +1 -1
- package/console-app/assets/{cynefin-VYW2F7L2-BphwdLzc.js → cynefin-VYW2F7L2-BIhff1Ln.js} +1 -1
- package/console-app/assets/{cynefinDiagram-TSTJHNR4-7Rk31pXX.js → cynefinDiagram-TSTJHNR4-DrlBq_QP.js} +1 -1
- package/console-app/assets/{dagre-VKFMJZFB-e8-5QJxJ.js → dagre-VKFMJZFB-Cm2eP0ez.js} +1 -1
- package/console-app/assets/{diagram-FQU43EPY-SGSSyx5P.js → diagram-FQU43EPY-C667dC19.js} +1 -1
- package/console-app/assets/{diagram-G47NLZAW-F_m68BCv.js → diagram-G47NLZAW-3K3OPEuG.js} +1 -1
- package/console-app/assets/{diagram-NH7WQ7WH-5p6A3YHp.js → diagram-NH7WQ7WH-CUK-d5iT.js} +1 -1
- package/console-app/assets/{diagram-OA4YK3LP-Dv-j07Wh.js → diagram-OA4YK3LP-BmjCoGBZ.js} +1 -1
- package/console-app/assets/{diagram-WEI45ONY-1gqT-Dqp.js → diagram-WEI45ONY-D33qA2d9.js} +1 -1
- package/console-app/assets/{dist-DQ3gF-0S.js → dist-jqlCD26w.js} +1 -1
- package/console-app/assets/{ebnfDiagram-CCIWWBDH-Dsfd8DxK.js → ebnfDiagram-CCIWWBDH-DUHkt7z6.js} +1 -1
- package/console-app/assets/{erDiagram-Q63AITRT-DQ5Gu1Tw.js → erDiagram-Q63AITRT-BAtdfbq3.js} +1 -1
- package/console-app/assets/eventmodeling-45OFAUF4-iK6rmyk3.js +1 -0
- package/console-app/assets/flowDiagram-23GEKE2U-CSYhKO9Y.js +1 -0
- package/console-app/assets/{ganttDiagram-NO4QXBWP-2of9JObw.js → ganttDiagram-NO4QXBWP-64_vh9rj.js} +1 -1
- package/console-app/assets/{gitGraph-TEB2WS4Q-q2ow8moS.js → gitGraph-TEB2WS4Q-DlFJY0cQ.js} +1 -1
- package/console-app/assets/{gitGraphDiagram-IHSO6WYX-7JFgdH2Q.js → gitGraphDiagram-IHSO6WYX-D9fpmYRm.js} +1 -1
- package/console-app/assets/{index-FDk51Irw.js → index-Byf4wkdP.js} +156 -150
- package/console-app/assets/{info-DKCQHKI2-DA35x9Eq.js → info-DKCQHKI2-DhyT_-b1.js} +1 -1
- package/console-app/assets/{infoDiagram-FWYZ7A6U-wBw6slQd.js → infoDiagram-FWYZ7A6U-ufTemVSR.js} +1 -1
- package/console-app/assets/{ishikawaDiagram-FXEZZL3T-XjQC7Fmw.js → ishikawaDiagram-FXEZZL3T-CWHvEncb.js} +1 -1
- package/console-app/assets/{journeyDiagram-5HDEW3XC-DyIcpJQM.js → journeyDiagram-5HDEW3XC-DKH8UvEq.js} +1 -1
- package/console-app/assets/{kanban-definition-HUTT4EX6-B1zYF1dv.js → kanban-definition-HUTT4EX6-BODtp_fB.js} +1 -1
- package/console-app/assets/{line-C6UySSzG.js → line-Do9j3HRL.js} +1 -1
- package/console-app/assets/{linear-B-Zu24zW.js → linear-5Z8stnH-.js} +1 -1
- package/console-app/assets/{mermaid-parser.core-Tfk1Eudy.js → mermaid-parser.core-CYJsdwMO.js} +3 -3
- package/console-app/assets/{mermaid.core-HtlOIxsD.js → mermaid.core-DwI4IdKs.js} +3 -3
- package/console-app/assets/{mindmap-definition-LN4V7U3C-5tBdCFVy.js → mindmap-definition-LN4V7U3C-D7IWNYnf.js} +1 -1
- package/console-app/assets/{packet-7NZHBO7P-CvZpWSge.js → packet-7NZHBO7P-comMLvz_.js} +1 -1
- package/console-app/assets/{pegDiagram-2B236MQR-Bw6WA3kx.js → pegDiagram-2B236MQR-CbqiI_m5.js} +1 -1
- package/console-app/assets/{pie-RZYD4A2V-cW9hD9gn.js → pie-RZYD4A2V-VZXoX73g.js} +1 -1
- package/console-app/assets/{pieDiagram-ENE6RG2P-DkD_01Ea.js → pieDiagram-ENE6RG2P-SA-sCnrt.js} +1 -1
- package/console-app/assets/{quadrantDiagram-ABIIQ3AL-Bwdtm5-W.js → quadrantDiagram-ABIIQ3AL-CI840rae.js} +1 -1
- package/console-app/assets/{radar-I7S5WNFK-tOWig5fu.js → radar-I7S5WNFK-W0UH9BdP.js} +1 -1
- package/console-app/assets/{railroad-3IZDKUUU-tZ2PcrQC.js → railroad-3IZDKUUU-_HEtbruA.js} +1 -1
- package/console-app/assets/railroad-abnf-AHOZXSZD-ghLnUEfg.js +1 -0
- package/console-app/assets/railroad-ebnf-EBAXGLYW-D8JHCZD5.js +1 -0
- package/console-app/assets/railroad-peg-LSFZ7HO6-C9eC4l2D.js +1 -0
- package/console-app/assets/{railroadDiagram-RFXS5EU6-Dljzejc8.js → railroadDiagram-RFXS5EU6-Cm2SfP9Z.js} +1 -1
- package/console-app/assets/{requirementDiagram-TGXJPOKE-CRV748Vu.js → requirementDiagram-TGXJPOKE-CyHrMdrC.js} +1 -1
- package/console-app/assets/{sankeyDiagram-HTMAVEWB-CrFvfCvp.js → sankeyDiagram-HTMAVEWB-DL0eJ1aK.js} +1 -1
- package/console-app/assets/{sequenceDiagram-DBY2YBRQ-CXysYi1c.js → sequenceDiagram-DBY2YBRQ-B2AvEvXu.js} +1 -1
- package/console-app/assets/{src-Bilm7g2t.js → src-72nNqhBu.js} +1 -1
- package/console-app/assets/{stateDiagram-2N3HPSRC-C8aGjwyh.js → stateDiagram-2N3HPSRC-vgyc-CMC.js} +1 -1
- package/console-app/assets/stateDiagram-v2-6OUMAXLB-B2WCkCZh.js +1 -0
- package/console-app/assets/{swimlanes-5IMT3BWC-VaTW8Eyb.js → swimlanes-5IMT3BWC-GiOMMhZh.js} +1 -1
- package/console-app/assets/swimlanesDiagram-G3AALYLV-CkCbtoLb.js +8 -0
- package/console-app/assets/{timeline-definition-FHXFAJF6-D88F4W4L.js → timeline-definition-FHXFAJF6-DTJQsTn8.js} +1 -1
- package/console-app/assets/{treeView-QDETBFTQ-hN0LxmWJ.js → treeView-QDETBFTQ-aizmbgl7.js} +1 -1
- package/console-app/assets/{treemap-6X3UGDF4-Cz4whnzW.js → treemap-6X3UGDF4-DIBl6bfV.js} +1 -1
- package/console-app/assets/{vennDiagram-L72KCM5P-CoW2kun8.js → vennDiagram-L72KCM5P-C4Ngu7VX.js} +1 -1
- package/console-app/assets/{wardley-OPB4EBWU-l9vWUHbB.js → wardley-OPB4EBWU-BqdXyJTm.js} +1 -1
- package/console-app/assets/{wardleyDiagram-EHGQE667-uWxnqqVK.js → wardleyDiagram-EHGQE667-Cw2M8s0p.js} +1 -1
- package/console-app/assets/{xychartDiagram-FW5EYKEG-ClVawwGR.js → xychartDiagram-FW5EYKEG-BxMLZdbF.js} +1 -1
- package/console-app/index.html +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +12 -12
- package/dist/.pikku/agent/pikku-agent-types.gen.js +6 -6
- package/dist/.pikku/agent/pikku-model-aliases.gen.js +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +4 -4
- package/dist/.pikku/channel/pikku-channel-types.gen.js +3 -2
- package/dist/.pikku/cli/pikku-cli-channel.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-channel.js +13 -3
- package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +2 -2
- package/dist/.pikku/cli/pikku-cli-client.gen.js +2 -2
- 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 +2 -2
- package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.json +48 -4
- 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 +2 -2
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +9 -7
- package/dist/.pikku/function/pikku-function-types.gen.js +5 -4
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +95 -52
- package/dist/.pikku/function/pikku-functions.gen.js +8 -8
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +3 -3
- package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +4 -3
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +1 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
- package/dist/.pikku/pikku-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/pikku-queue-types.gen.d.ts +2 -2
- package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +5 -3
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/schemas/register.gen.js +1 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +2 -2
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
- package/dist/.pikku/schemas/register.gen.js +8 -6
- package/dist/.pikku/schemas/schemas/PikkuSemverOutput.schema.json +1 -0
- package/dist/.pikku/scopes/pikku-personas.gen.d.ts +2 -1
- package/dist/.pikku/scopes/pikku-personas.gen.js +1 -1
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts +2 -2
- package/dist/.pikku/scopes/pikku-roles.gen.js +1 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +5 -5
- package/dist/.pikku/scopes/pikku-scope-types.gen.js +3 -3
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +2 -2
- package/dist/.pikku/scopes/pikku-scopes.gen.js +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +3 -2
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +3 -3
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +2 -2
- package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +3 -3
- package/dist/.pikku/variables/pikku-variables.gen.js +2 -2
- package/dist/.pikku/workflow/meta/allWorkflow.gen.json +9 -9
- package/dist/.pikku/workflow/pikku-personas.gen.d.ts +3 -2
- package/dist/.pikku/workflow/pikku-personas.gen.js +2 -2
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +6 -6
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +3 -3
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/bin/pikku-bin.mjs +2 -2
- package/dist/src/cli.wiring.js +50 -4
- package/dist/src/deploy/analyzer/analyzer.js +5 -5
- package/dist/src/deploy/bundler/bundler.js +2 -2
- package/dist/src/functions/commands/audit.js +33 -9
- package/dist/src/functions/commands/bootstrap.js +1 -1
- package/dist/src/functions/commands/{dev-ai-runner.d.ts → dev-agent-runner.d.ts} +3 -3
- package/dist/src/functions/commands/{dev-ai-runner.js → dev-agent-runner.js} +4 -4
- package/dist/src/functions/commands/dev.js +29 -23
- package/dist/src/functions/commands/persona-sync.js +2 -2
- package/dist/src/functions/commands/persona.js +7 -6
- package/dist/src/functions/commands/roles-shared.d.ts +1 -1
- package/dist/src/functions/commands/roles-shared.js +1 -1
- package/dist/src/functions/commands/scenario-browser.d.ts +2 -2
- package/dist/src/functions/commands/scenario-formatter.d.ts +1 -1
- package/dist/src/functions/commands/scenario-ladder.d.ts +4 -3
- package/dist/src/functions/commands/scenario-ladder.js +1 -1
- package/dist/src/functions/commands/scenario-plan.d.ts +2 -2
- package/dist/src/functions/commands/scenario-plan.js +1 -1
- package/dist/src/functions/commands/scenario.d.ts +0 -3
- package/dist/src/functions/commands/scenario.js +40 -38
- package/dist/src/functions/commands/scopes-shared.d.ts +1 -1
- package/dist/src/functions/commands/scopes-shared.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.js +20 -19
- package/dist/src/functions/commands/start-coverage.d.ts +1 -1
- package/dist/src/functions/commands/start-coverage.js +2 -2
- 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/virtual-user-formatter.d.ts +1 -1
- package/dist/src/functions/validate/scenario-file-checks.js +1 -1
- package/dist/src/functions/validate/validate-registry.js +10 -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} +3 -3
- 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} +5 -5
- 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} +21 -32
- package/dist/src/functions/wirings/{ai-agent → agent}/serialize-public-agent.js +1 -1
- 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} +5 -5
- package/dist/src/functions/wirings/{ai-scorer → agent-scorer}/serialize-scorer-names.d.ts +1 -1
- package/dist/src/functions/wirings/channels/pikku-channels.js +1 -1
- package/dist/src/functions/wirings/channels/pikku-command-channels.js +1 -1
- package/dist/src/functions/wirings/channels/serialize-channel-types.js +4 -3
- package/dist/src/functions/wirings/channels/serialize-typed-channel-map.d.ts +2 -2
- package/dist/src/functions/wirings/cli/pikku-command-cli.js +1 -1
- package/dist/src/functions/wirings/cli/serialize-channel-cli-client.d.ts +1 -1
- package/dist/src/functions/wirings/cli/serialize-channel-cli-client.js +3 -3
- package/dist/src/functions/wirings/cli/serialize-channel-cli.d.ts +1 -1
- package/dist/src/functions/wirings/cli/serialize-channel-cli.js +2 -2
- package/dist/src/functions/wirings/cli/serialize-cli-types.js +2 -1
- package/dist/src/functions/wirings/cli/serialize-local-cli-bootstrap.js +1 -1
- package/dist/src/functions/wirings/console/pikku-command-nodes-meta.js +1 -1
- package/dist/src/functions/wirings/credentials/pikku-command-credentials.js +1 -1
- package/dist/src/functions/wirings/credentials/serialize-credentials-types.d.ts +1 -1
- package/dist/src/functions/wirings/credentials/serialize-credentials-types.js +4 -3
- package/dist/src/functions/wirings/functions/pikku-command-functions.js +1 -1
- package/dist/src/functions/wirings/functions/serialize-addon-types.js +2 -1
- package/dist/src/functions/wirings/functions/serialize-function-imports.d.ts +1 -1
- package/dist/src/functions/wirings/functions/serialize-function-types.js +11 -12
- package/dist/src/functions/wirings/gateway/serialize-gateway-meta.d.ts +1 -1
- package/dist/src/functions/wirings/http/pikku-command-http-routes.js +1 -1
- package/dist/src/functions/wirings/http/pikku-http-routes.js +1 -1
- package/dist/src/functions/wirings/http/serialize-http-types.js +3 -2
- package/dist/src/functions/wirings/http/serialize-typed-http-map.d.ts +1 -1
- package/dist/src/functions/wirings/mcp/pikku-command-mcp.js +1 -1
- package/dist/src/functions/wirings/mcp/serialize-mcp-types.js +3 -11
- package/dist/src/functions/wirings/package/serialize-package-types.js +7 -6
- 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 +6 -2
- package/dist/src/functions/wirings/queue/serialize-queue-map.d.ts +1 -1
- package/dist/src/functions/wirings/queue/serialize-queue-meta.d.ts +1 -1
- package/dist/src/functions/wirings/queue/serialize-queue-types.js +2 -1
- package/dist/src/functions/wirings/roles/pikku-command-roles.js +1 -1
- package/dist/src/functions/wirings/roles/serialize-roles-types.d.ts +1 -1
- package/dist/src/functions/wirings/roles/serialize-roles-types.js +2 -2
- package/dist/src/functions/wirings/rpc/serialize-remote-rpc.js +1 -1
- package/dist/src/functions/wirings/rpc/serialize-rpc-wrapper.js +1 -1
- package/dist/src/functions/wirings/rpc/serialize-typed-rpc-map.js +5 -5
- package/dist/src/functions/wirings/scenarios/register-scenario-instrumentation.js +3 -2
- 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-feature-meta.d.ts +1 -1
- package/dist/src/functions/wirings/scenarios/serialize-scenario-meta.js +2 -2
- package/dist/src/functions/wirings/scenarios/serialize-scenario-registration.js +1 -1
- package/dist/src/functions/wirings/scheduler/serialize-scheduler-meta.d.ts +1 -1
- package/dist/src/functions/wirings/scheduler/serialize-scheduler-types.js +2 -1
- package/dist/src/functions/wirings/scopes/pikku-command-scopes.js +1 -1
- package/dist/src/functions/wirings/scopes/serialize-scopes-types.d.ts +1 -1
- package/dist/src/functions/wirings/scopes/serialize-scopes-types.js +3 -3
- package/dist/src/functions/wirings/secrets/pikku-command-secrets.js +1 -1
- package/dist/src/functions/wirings/secrets/serialize-secrets-types.d.ts +1 -1
- package/dist/src/functions/wirings/secrets/serialize-secrets-types.js +4 -3
- package/dist/src/functions/wirings/triggers/serialize-trigger-meta.d.ts +1 -1
- package/dist/src/functions/wirings/triggers/serialize-trigger-meta.js +2 -2
- package/dist/src/functions/wirings/triggers/serialize-trigger-types.js +3 -2
- package/dist/src/functions/wirings/variables/pikku-command-variables.js +1 -1
- package/dist/src/functions/wirings/variables/serialize-variables-types.d.ts +1 -1
- package/dist/src/functions/wirings/variables/serialize-variables-types.js +3 -3
- package/dist/src/functions/wirings/virtual-user/serialize-virtual-user-functions.js +7 -13
- package/dist/src/functions/wirings/webhook/serialize-webhook.js +1 -1
- package/dist/src/functions/wirings/workflow/serialize-personas.d.ts +1 -1
- package/dist/src/functions/wirings/workflow/serialize-personas.js +4 -3
- package/dist/src/functions/wirings/workflow/serialize-scenario-step-map.d.ts +1 -1
- package/dist/src/functions/wirings/workflow/serialize-workflow-bootstrap-map.d.ts +1 -1
- package/dist/src/functions/wirings/workflow/serialize-workflow-map.d.ts +2 -2
- package/dist/src/functions/wirings/workflow/serialize-workflow-map.js +1 -1
- package/dist/src/functions/wirings/workflow/serialize-workflow-meta.js +2 -2
- package/dist/src/functions/wirings/workflow/serialize-workflow-routes.js +1 -1
- package/dist/src/functions/wirings/workflow/serialize-workflow-types.js +6 -9
- package/dist/src/functions/workflows/all.workflow.js +6 -5
- package/dist/src/middleware/log-command-info-and-time.d.ts +1 -1
- package/dist/src/server/node-server-runner.js +5 -2
- package/dist/src/services/cli-logger.service.js +1 -1
- package/dist/src/utils/precise-coverage-map.d.ts +1 -1
- package/dist/src/utils/remove-legacy-scaffold-file.d.ts +14 -0
- package/dist/src/utils/remove-legacy-scaffold-file.js +28 -1
- package/dist/src/utils/resolve-personas.d.ts +3 -3
- package/dist/src/utils/resolve-personas.js +2 -2
- package/dist/src/utils/schema-diff.d.ts +22 -0
- package/dist/src/utils/schema-diff.js +190 -0
- package/dist/src/utils/serialize-schemas.d.ts +1 -1
- package/dist/src/utils/serialize-schemas.js +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/tsconfig.tsbuildinfo +1 -1
- package/package.json +25 -17
- package/console-app/assets/architecture-TIHT7OUA-BtQ4ypaP.js +0 -1
- package/console-app/assets/channel-yWsB39zH.js +0 -1
- package/console-app/assets/chunk-VAUOI2AC-DbUlDq35.js +0 -1
- package/console-app/assets/chunk-XXDRQBXY-D0yYTMY0.js +0 -1
- 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/eventmodeling-45OFAUF4-BSTAXikh.js +0 -1
- package/console-app/assets/flowDiagram-23GEKE2U-zX29jtvN.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/stateDiagram-v2-6OUMAXLB-C21qKRsf.js +0 -1
- package/console-app/assets/swimlanesDiagram-G3AALYLV-CCQS8jgU.js +0 -8
- 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/serialize-ai-agent-types.d.ts +0 -1
- package/dist/src/functions/wirings/ai-scorer/pikku-command-ai-scorer.d.ts +0 -1
- /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/src/functions/wirings/{ai-agent → agent}/pikku-command-public-agent.d.ts +0 -0
- /package/dist/src/functions/wirings/{ai-agent → agent}/pikku-command-public-agent.js +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-agent → agent}/serialize-model-aliases.js +0 -0
- /package/dist/src/functions/wirings/{ai-agent → agent}/serialize-public-agent.d.ts +0 -0
- /package/dist/src/functions/wirings/{ai-scorer → agent-scorer}/serialize-scorer-names.js +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { QueueWorkersMeta } from '@pikku/core/queue';
|
|
1
|
+
import type { QueueWorkersMeta } from '@pikku/core/ecosystem/queue';
|
|
2
2
|
export declare const serializeQueueMeta: (queueWorkersMeta: QueueWorkersMeta) => QueueWorkersMeta;
|
|
3
3
|
export declare const serializeQueueMetaTS: (jsonImportPath: string, supportsImportAttributes: boolean) => string;
|
|
@@ -6,7 +6,8 @@ export const serializeQueueTypes = (functionTypesImportPath) => {
|
|
|
6
6
|
* Queue-specific type definitions for tree-shaking optimization
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import { wireQueueWorker as wireQueueWorkerCore } from '@pikku/core/queue'
|
|
10
|
+
import { CoreQueueWorker } from '@pikku/core/ecosystem/queue'
|
|
10
11
|
import type { PikkuFunctionConfig } from '${functionTypesImportPath}'
|
|
11
12
|
|
|
12
13
|
/**
|
|
@@ -2,7 +2,7 @@ import { pikkuSessionlessFunc } from '#pikku';
|
|
|
2
2
|
import { writeFileInDir } from '../../../utils/file-writer.js';
|
|
3
3
|
import { logCommandInfoAndTime } from '../../../middleware/log-command-info-and-time.js';
|
|
4
4
|
import { serializeRolesTypes } from './serialize-roles-types.js';
|
|
5
|
-
import { validateAndBuildSystemRoleDefinitionsMeta } from '@pikku/core/role';
|
|
5
|
+
import { validateAndBuildSystemRoleDefinitionsMeta } from '@pikku/core/ecosystem/role';
|
|
6
6
|
export const pikkuRoles = pikkuSessionlessFunc({
|
|
7
7
|
func: async ({ logger, config, getInspectorState }, data) => {
|
|
8
8
|
const { rolesFile, rolesMetaJsonFile } = config;
|
|
@@ -16,8 +16,8 @@ export const serializeRolesTypes = ({ definitions }) => {
|
|
|
16
16
|
return `/**
|
|
17
17
|
* This file was generated by the @pikku/cli
|
|
18
18
|
*/
|
|
19
|
-
import type { SystemRole, SystemRoleDefinitionsMeta } from '@pikku/core/role'
|
|
20
|
-
import { flattenSystemRoleDefinitions } from '@pikku/core/role'
|
|
19
|
+
import type { SystemRole, SystemRoleDefinitionsMeta } from '@pikku/core/ecosystem/role'
|
|
20
|
+
import { flattenSystemRoleDefinitions } from '@pikku/core/ecosystem/role'
|
|
21
21
|
import definitions from './pikku-roles-meta.gen.json' with { type: 'json' }
|
|
22
22
|
|
|
23
23
|
/**
|
|
@@ -18,7 +18,7 @@ export const RemoteRPCCall = z.object({
|
|
|
18
18
|
* Do not edit manually - regenerate with 'npx pikku'
|
|
19
19
|
*/
|
|
20
20
|
import { pikkuSessionlessFunc, wireHTTP, wireQueueWorker } from '${pathToPikkuTypes}'
|
|
21
|
-
import { pikkuRemoteAuthMiddleware } from '@pikku/core/middleware'
|
|
21
|
+
import { pikkuRemoteAuthMiddleware } from '@pikku/core/ecosystem/middleware'
|
|
22
22
|
import { RemoteRPCCall } from './rpc-remote.schemas.gen.js'
|
|
23
23
|
|
|
24
24
|
export const remoteRPCHandler = pikkuSessionlessFunc({
|
|
@@ -2,7 +2,7 @@ export const serializeRPCWrapper = (rpcMapPath, globalHTTPPrefix = '') => {
|
|
|
2
2
|
return `
|
|
3
3
|
import { PikkuFetch } from "./pikku-fetch.gen.js"
|
|
4
4
|
import type { RPCInvoke, TypedAgentRun, TypedStartWorkflow, TypedRunWorkflow, TypedWorkflowStatus } from '${rpcMapPath}'
|
|
5
|
-
import type { WorkflowRunStatus } from '@pikku/core/workflow'
|
|
5
|
+
import type { WorkflowRunStatus } from '@pikku/core/ecosystem/workflow'
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* PikkuRPC provides a type-safe client for making Remote Procedure Calls (RPC)
|
|
@@ -59,7 +59,7 @@ ${generateAddonAgentImports(wireAddonDeclarations)}
|
|
|
59
59
|
${generateMergedAgentMap(wireAddonDeclarations)}
|
|
60
60
|
|
|
61
61
|
import type { PikkuRPC } from '@pikku/core/rpc'
|
|
62
|
-
import type {
|
|
62
|
+
import type { AgentInput } from '@pikku/core/ecosystem/agent'
|
|
63
63
|
|
|
64
64
|
export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
65
65
|
name: Name,
|
|
@@ -78,17 +78,17 @@ export type TypedWorkflowStatus = (
|
|
|
78
78
|
) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
|
|
79
79
|
|
|
80
80
|
type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
|
|
81
|
-
? (name: string, input:
|
|
81
|
+
? (name: string, input: AgentInput) => Promise<any>
|
|
82
82
|
: <Name extends keyof FlattenedAgentMap>(
|
|
83
83
|
name: Name,
|
|
84
|
-
input:
|
|
84
|
+
input: AgentInput
|
|
85
85
|
) => Promise<{ runId: string; result: FlattenedAgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } }>
|
|
86
86
|
|
|
87
87
|
type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
|
|
88
|
-
? (name: string, input:
|
|
88
|
+
? (name: string, input: AgentInput, options?: { requiresToolApproval?: 'all' | 'explicit' | false }) => Promise<void>
|
|
89
89
|
: <Name extends keyof FlattenedAgentMap>(
|
|
90
90
|
name: Name,
|
|
91
|
-
input:
|
|
91
|
+
input: AgentInput,
|
|
92
92
|
options?: { requiresToolApproval?: 'all' | 'explicit' | false }
|
|
93
93
|
) => Promise<void>
|
|
94
94
|
|
|
@@ -2,8 +2,9 @@ import { readFile } from 'node:fs/promises';
|
|
|
2
2
|
import { join } from 'node:path';
|
|
3
3
|
import { addFunction } from '@pikku/core/function';
|
|
4
4
|
import { pikkuState } from '@pikku/core/ecosystem';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { isTestRun } from '@pikku/core/services';
|
|
6
|
+
import { getStubTracker, } from '@pikku/core/ecosystem/services';
|
|
7
|
+
import { enableScoreSnapshots, getScoreSnapshot, gradeRun as coreGradeRun, } from '@pikku/core/ecosystem/agent-scorer';
|
|
7
8
|
/**
|
|
8
9
|
* The instrumentation `pikku scenario run` calls on the server under test:
|
|
9
10
|
* snapshot/reset live coverage, and reset/read recorded stub calls.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FeaturesMeta } from '@pikku/core/scenario';
|
|
1
|
+
import type { FeaturesMeta } from '@pikku/core/ecosystem/scenario';
|
|
2
2
|
import type { InspectorFeature } from '@pikku/inspector';
|
|
3
3
|
/**
|
|
4
4
|
* The feature meta the console reads, built from what the inspector could read
|
|
@@ -24,7 +24,7 @@ export const serializeScenarioWorkflowMeta = (outputPath, metaDir, appMetaImport
|
|
|
24
24
|
.map((name) => ` '${name}': ${sanitizeTypeName(name)}Meta,`)
|
|
25
25
|
.join('\n');
|
|
26
26
|
return `import { pikkuState } from '@pikku/core/ecosystem'
|
|
27
|
-
import type { WorkflowsRuntimeMeta } from '@pikku/core/workflow
|
|
27
|
+
import type { WorkflowsRuntimeMeta } from '@pikku/core/ecosystem/workflow'
|
|
28
28
|
import '${appMetaImportPath}'
|
|
29
29
|
${imports ? `\n${imports}\n` : ''}
|
|
30
30
|
const scenariosMeta = {
|
|
@@ -45,7 +45,7 @@ export const serializeScenarioFunctionMeta = (jsonImportPath, appMetaImportPath,
|
|
|
45
45
|
? `import metaData from '${jsonImportPath}' with { type: 'json' }`
|
|
46
46
|
: `import metaData from '${jsonImportPath}'`;
|
|
47
47
|
return `import { pikkuState } from '@pikku/core/ecosystem'
|
|
48
|
-
import type { FunctionsMeta } from '@pikku/core'
|
|
48
|
+
import type { FunctionsMeta } from '@pikku/core/ecosystem/services'
|
|
49
49
|
import '${appMetaImportPath}'
|
|
50
50
|
${importStatement}
|
|
51
51
|
|
|
@@ -15,7 +15,7 @@ export const serializeScenarioRegistration = (outputPath, metaImportPath, scenar
|
|
|
15
15
|
lines.push(`import { addWorkflow } from '@pikku/core/workflow'`);
|
|
16
16
|
}
|
|
17
17
|
if (hasFeatures) {
|
|
18
|
-
lines.push(`import { addFeature } from '@pikku/core/scenario'`);
|
|
18
|
+
lines.push(`import { addFeature } from '@pikku/core/ecosystem/scenario'`);
|
|
19
19
|
}
|
|
20
20
|
lines.push(`import '${metaImportPath}'`);
|
|
21
21
|
const sortedScenarios = Array.from(scenarioFiles.entries()).sort((a, b) => a[0].localeCompare(b[0]));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ScheduledTasksMeta } from '@pikku/core/scheduler';
|
|
1
|
+
import type { ScheduledTasksMeta } from '@pikku/core/ecosystem/scheduler';
|
|
2
2
|
export declare const serializeSchedulerMeta: (scheduledTasksMeta: ScheduledTasksMeta) => ScheduledTasksMeta;
|
|
3
3
|
export declare const serializeSchedulerMetaTS: (scheduledTasksMeta: ScheduledTasksMeta, jsonImportPath: string, supportsImportAttributes: boolean) => string;
|
|
@@ -6,7 +6,8 @@ export const serializeSchedulerTypes = (functionTypesImportPath) => {
|
|
|
6
6
|
* Scheduler-specific type definitions for tree-shaking optimization
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import { wireScheduler as wireSchedulerCore } from '@pikku/core/scheduler'
|
|
10
|
+
import { CoreScheduledTask } from '@pikku/core/ecosystem/scheduler'
|
|
10
11
|
import type { PikkuFunctionConfig, PikkuMiddleware } from '${functionTypesImportPath}'
|
|
11
12
|
|
|
12
13
|
/**
|
|
@@ -2,7 +2,7 @@ import { pikkuSessionlessFunc } from '#pikku';
|
|
|
2
2
|
import { writeFileInDir } from '../../../utils/file-writer.js';
|
|
3
3
|
import { logCommandInfoAndTime } from '../../../middleware/log-command-info-and-time.js';
|
|
4
4
|
import { serializeScopesTypes } from './serialize-scopes-types.js';
|
|
5
|
-
import { validateAndBuildScopeDefinitionsMeta } from '@pikku/core/scope';
|
|
5
|
+
import { validateAndBuildScopeDefinitionsMeta } from '@pikku/core/ecosystem/scope';
|
|
6
6
|
export const pikkuScopes = pikkuSessionlessFunc({
|
|
7
7
|
func: async ({ logger, config, getInspectorState }, data) => {
|
|
8
8
|
const { scopesFile, scopesMetaJsonFile } = config;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { flattenScopeDefinitions } from '@pikku/core/scope';
|
|
1
|
+
import { flattenScopeDefinitions } from '@pikku/core/ecosystem/scope';
|
|
2
2
|
const quote = (value) => `'${value.replace(/'/g, "\\'")}'`;
|
|
3
3
|
/**
|
|
4
4
|
* Generates the `ScopeId` union and scope metadata from `defineScope`
|
|
@@ -30,8 +30,8 @@ export const serializeScopesTypes = ({ definitions, }) => {
|
|
|
30
30
|
return `/**
|
|
31
31
|
* This file was generated by the @pikku/cli
|
|
32
32
|
*/
|
|
33
|
-
import type { FlatScope, ScopeDefinitionsMeta } from '@pikku/core/scope'
|
|
34
|
-
import { flattenScopeDefinitions } from '@pikku/core/scope'
|
|
33
|
+
import type { FlatScope, ScopeDefinitionsMeta } from '@pikku/core/ecosystem/scope'
|
|
34
|
+
import { flattenScopeDefinitions } from '@pikku/core/ecosystem/scope'
|
|
35
35
|
import definitions from './pikku-scopes-meta.gen.json' with { type: 'json' }
|
|
36
36
|
|
|
37
37
|
/**
|
|
@@ -2,7 +2,7 @@ import { pikkuSessionlessFunc } from '#pikku';
|
|
|
2
2
|
import { writeFileInDir } from '../../../utils/file-writer.js';
|
|
3
3
|
import { logCommandInfoAndTime } from '../../../middleware/log-command-info-and-time.js';
|
|
4
4
|
import { serializeSecretsTypes } from './serialize-secrets-types.js';
|
|
5
|
-
import { validateAndBuildSecretDefinitionsMeta } from '@pikku/core/secret';
|
|
5
|
+
import { validateAndBuildSecretDefinitionsMeta } from '@pikku/core/ecosystem/secret';
|
|
6
6
|
export const pikkuSecrets = pikkuSessionlessFunc({
|
|
7
7
|
func: async ({ logger, config, getInspectorState }) => {
|
|
8
8
|
const { secretsFile, secretsMetaJsonFile, packageMappings } = config;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { validateAndBuildSecretDefinitionsMeta } from '@pikku/core/secret';
|
|
1
|
+
import { validateAndBuildSecretDefinitionsMeta } from '@pikku/core/ecosystem/secret';
|
|
2
2
|
import { getFileImportRelativePath } from '../../../utils/file-import-path.js';
|
|
3
3
|
/**
|
|
4
4
|
* A display name is the human-facing label a developer wrote, so an apostrophe
|
|
@@ -37,7 +37,8 @@ export const serializeSecretsTypes = ({ definitions, schemaLookup, secretsFile,
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
const imports = [];
|
|
40
|
-
imports.push(`import { TypedSecretService as CoreTypedSecretService
|
|
40
|
+
imports.push(`import { TypedSecretService as CoreTypedSecretService } from '@pikku/core/services'
|
|
41
|
+
import type { CredentialMeta } from '@pikku/core/ecosystem/services'`);
|
|
41
42
|
imports.push(`import type { SecretService } from '@pikku/core/services'`);
|
|
42
43
|
imports.push(`import type { SecretDefinitionsMeta } from '@pikku/core/secret'`);
|
|
43
44
|
imports.push(`import secretsMeta from './pikku-secrets-meta.gen.json' with { type: 'json' }`);
|
|
@@ -45,7 +46,7 @@ export const serializeSecretsTypes = ({ definitions, schemaLookup, secretsFile,
|
|
|
45
46
|
imports.push(`import type { z } from 'zod'`);
|
|
46
47
|
}
|
|
47
48
|
if (needsOAuth2Types) {
|
|
48
|
-
imports.push(`import type { OAuth2AppCredential, OAuth2Token } from '@pikku/core/oauth2'`);
|
|
49
|
+
imports.push(`import type { OAuth2AppCredential, OAuth2Token } from '@pikku/core/ecosystem/oauth2'`);
|
|
49
50
|
}
|
|
50
51
|
for (const [sourceFile, variableNames] of schemaImports) {
|
|
51
52
|
const importPath = getFileImportRelativePath(secretsFile, sourceFile, packageMappings);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TriggerMeta, TriggerSourceMeta } from '@pikku/core/trigger';
|
|
1
|
+
import type { TriggerMeta, TriggerSourceMeta } from '@pikku/core/ecosystem/trigger';
|
|
2
2
|
export declare const serializeTriggerMeta: (triggerMeta: TriggerMeta) => TriggerMeta;
|
|
3
3
|
export declare const serializeTriggerMetaTS: (triggerMeta: TriggerMeta, jsonImportPath: string, supportsImportAttributes: boolean) => string;
|
|
4
4
|
export declare const serializeTriggerSourceMeta: (sourceMeta: TriggerSourceMeta) => TriggerSourceMeta;
|
|
@@ -7,7 +7,7 @@ export const serializeTriggerMetaTS = (triggerMeta, jsonImportPath, supportsImpo
|
|
|
7
7
|
: `import metaData from '${jsonImportPath}'`;
|
|
8
8
|
const serializedOutput = [];
|
|
9
9
|
serializedOutput.push("import { pikkuState } from '@pikku/core/ecosystem'");
|
|
10
|
-
serializedOutput.push("import { TriggerMeta } from '@pikku/core/trigger'");
|
|
10
|
+
serializedOutput.push("import { TriggerMeta } from '@pikku/core/ecosystem/trigger'");
|
|
11
11
|
serializedOutput.push(importStatement);
|
|
12
12
|
serializedOutput.push('');
|
|
13
13
|
serializedOutput.push("pikkuState(null, 'trigger', 'meta', metaData as TriggerMeta)");
|
|
@@ -27,7 +27,7 @@ export const serializeTriggerSourceMetaTS = (sourceMeta, jsonImportPath, support
|
|
|
27
27
|
: `import metaData from '${jsonImportPath}'`;
|
|
28
28
|
const serializedOutput = [];
|
|
29
29
|
serializedOutput.push("import { pikkuState } from '@pikku/core/ecosystem'");
|
|
30
|
-
serializedOutput.push("import { TriggerSourceMeta } from '@pikku/core/trigger'");
|
|
30
|
+
serializedOutput.push("import { TriggerSourceMeta } from '@pikku/core/ecosystem/trigger'");
|
|
31
31
|
serializedOutput.push(importStatement);
|
|
32
32
|
serializedOutput.push('');
|
|
33
33
|
serializedOutput.push("pikkuState(null, 'trigger', 'sourceMeta', metaData as TriggerSourceMeta)");
|
|
@@ -6,8 +6,9 @@ export const serializeTriggerTypes = (singletonServicesTypeImport, singletonServ
|
|
|
6
6
|
* Trigger-specific type definitions for tree-shaking optimization
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
9
|
+
import { wireTrigger as wireTriggerCore, wireTriggerSource as wireTriggerSourceCore } from '@pikku/core/trigger'
|
|
10
|
+
import { CorePikkuTriggerFunction, CorePikkuTriggerFunctionConfig, CoreTrigger } from '@pikku/core/ecosystem/trigger'
|
|
11
|
+
import type { CoreNodeConfig } from '@pikku/core/ecosystem/node'
|
|
11
12
|
${singletonServicesTypeImport}
|
|
12
13
|
import type { StandardSchemaV1 } from '@standard-schema/spec'
|
|
13
14
|
|
|
@@ -2,7 +2,7 @@ import { pikkuSessionlessFunc } from '#pikku';
|
|
|
2
2
|
import { writeFileInDir } from '../../../utils/file-writer.js';
|
|
3
3
|
import { logCommandInfoAndTime } from '../../../middleware/log-command-info-and-time.js';
|
|
4
4
|
import { serializeVariablesTypes } from './serialize-variables-types.js';
|
|
5
|
-
import { validateAndBuildVariableDefinitionsMeta } from '@pikku/core/variable';
|
|
5
|
+
import { validateAndBuildVariableDefinitionsMeta } from '@pikku/core/ecosystem/variable';
|
|
6
6
|
export const pikkuVariables = pikkuSessionlessFunc({
|
|
7
7
|
func: async ({ logger, config, getInspectorState }) => {
|
|
8
8
|
const { variablesFile, variablesMetaJsonFile, packageMappings } = config;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VariableDefinitions } from '@pikku/core/variable';
|
|
1
|
+
import type { VariableDefinitions } from '@pikku/core/ecosystem/variable';
|
|
2
2
|
import type { SchemaRef } from '@pikku/inspector';
|
|
3
3
|
export interface SerializeVariablesOptions {
|
|
4
4
|
definitions: VariableDefinitions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { validateAndBuildVariableDefinitionsMeta } from '@pikku/core/variable';
|
|
1
|
+
import { validateAndBuildVariableDefinitionsMeta } from '@pikku/core/ecosystem/variable';
|
|
2
2
|
import { getFileImportRelativePath } from '../../../utils/file-import-path.js';
|
|
3
3
|
/**
|
|
4
4
|
* A display name is the human-facing label a developer wrote, so an apostrophe
|
|
@@ -29,9 +29,9 @@ export const serializeVariablesTypes = ({ definitions, schemaLookup, variablesFi
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
const imports = [];
|
|
32
|
-
imports.push(`import { TypedVariablesService as CoreTypedVariablesService, type VariableMeta } from '@pikku/core/services'`);
|
|
32
|
+
imports.push(`import { TypedVariablesService as CoreTypedVariablesService, type VariableMeta } from '@pikku/core/ecosystem/services'`);
|
|
33
33
|
imports.push(`import type { VariablesService } from '@pikku/core/services'`);
|
|
34
|
-
imports.push(`import type { VariableDefinitionsMeta } from '@pikku/core/variable'`);
|
|
34
|
+
imports.push(`import type { VariableDefinitionsMeta } from '@pikku/core/ecosystem/variable'`);
|
|
35
35
|
imports.push(`import variablesMeta from './pikku-variables-meta.gen.json' with { type: 'json' }`);
|
|
36
36
|
if (needsZod) {
|
|
37
37
|
imports.push(`import type { z } from 'zod'`);
|
|
@@ -134,14 +134,8 @@ export const ExecuteVirtualUserRunOutput = z.object({
|
|
|
134
134
|
* Do not edit manually - regenerate with 'npx pikku'
|
|
135
135
|
*/
|
|
136
136
|
import { pikkuFunc, pikkuSessionlessFunc, defineScope } from '${pathToPikkuTypes}'
|
|
137
|
-
import {
|
|
138
|
-
|
|
139
|
-
prepareVirtualUserRun,
|
|
140
|
-
runVirtualUser as runVirtualUserEngine,
|
|
141
|
-
PRODUCTION_DISPOSITION,
|
|
142
|
-
type SchemaMap,
|
|
143
|
-
type VirtualUserDisposition,
|
|
144
|
-
} from '@pikku/core/virtual-user'
|
|
137
|
+
import { personaVirtualUserTarget, runVirtualUser as runVirtualUserEngine, type SchemaMap, type VirtualUserDisposition } from '@pikku/core/virtual-user'
|
|
138
|
+
import { prepareVirtualUserRun, PRODUCTION_DISPOSITION } from '@pikku/core/ecosystem/virtual-user'
|
|
145
139
|
import { createPersonas, personaConfigs } from '${pathToPersonas}'
|
|
146
140
|
import {
|
|
147
141
|
ExecuteVirtualUserRunInput,
|
|
@@ -324,7 +318,7 @@ export const executeVirtualUserRun = pikkuSessionlessFunc({
|
|
|
324
318
|
input: ExecuteVirtualUserRunInput,
|
|
325
319
|
output: ExecuteVirtualUserRunOutput,
|
|
326
320
|
func: async (
|
|
327
|
-
{ virtualUserRunStore, metaService,
|
|
321
|
+
{ virtualUserRunStore, metaService, agentRunner, variables, logger },
|
|
328
322
|
{ runId, persona: personaId, disposition, goals, memory, budget, seed }
|
|
329
323
|
) => {
|
|
330
324
|
if (!virtualUserRunStore) {
|
|
@@ -334,8 +328,8 @@ export const executeVirtualUserRun = pikkuSessionlessFunc({
|
|
|
334
328
|
if (!metaService) {
|
|
335
329
|
throw new Error('metaService is not wired — there is no catalogue to derive')
|
|
336
330
|
}
|
|
337
|
-
if (!
|
|
338
|
-
throw new Error('
|
|
331
|
+
if (!agentRunner) {
|
|
332
|
+
throw new Error('agentRunner is not wired — there is nothing to think with')
|
|
339
333
|
}
|
|
340
334
|
|
|
341
335
|
const apiUrl = await variables.get(API_URL_VARIABLE)
|
|
@@ -403,10 +397,10 @@ export const executeVirtualUserRun = pikkuSessionlessFunc({
|
|
|
403
397
|
model,
|
|
404
398
|
agents: agents.map((agent) => agent.name),
|
|
405
399
|
}),
|
|
406
|
-
// \`
|
|
400
|
+
// \`AgentRunnerService.run\` IS the engine's \`ActorLLM\` — same params,
|
|
407
401
|
// same result — so a virtual user thinks through the same runner every
|
|
408
402
|
// agent in the app does, provider quirks and all.
|
|
409
|
-
llm: (params) =>
|
|
403
|
+
llm: (params) => agentRunner.run(params),
|
|
410
404
|
model,
|
|
411
405
|
budget: {
|
|
412
406
|
steps: budget?.steps,
|
|
@@ -24,7 +24,7 @@ export const WebhookDelivery = z.object({
|
|
|
24
24
|
* Do not edit manually - regenerate with 'npx pikku'
|
|
25
25
|
*/
|
|
26
26
|
import { pikkuSessionlessFunc, wireQueueWorker } from '${pathToPikkuTypes}'
|
|
27
|
-
import { pikkuWebhookWorkerFunc } from '@pikku/core/services'
|
|
27
|
+
import { pikkuWebhookWorkerFunc } from '@pikku/core/ecosystem/services'
|
|
28
28
|
import { WebhookDelivery } from './webhook.schemas.gen.js'
|
|
29
29
|
|
|
30
30
|
wireQueueWorker({
|
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export const serializePersonas = (personas, agentMapImportPath, rpcMapImportPath) => {
|
|
10
10
|
return `/** Personas declared with definePersonas() */
|
|
11
|
-
import { createHttpPersonas } from '@pikku/core/persona'
|
|
12
|
-
import type { HttpPersonasConfig } from '@pikku/core/persona'
|
|
13
|
-
import type { ScenarioPersona
|
|
11
|
+
import { createHttpPersonas } from '@pikku/core/ecosystem/persona'
|
|
12
|
+
import type { HttpPersonasConfig } from '@pikku/core/ecosystem/persona'
|
|
13
|
+
import type { ScenarioPersona } from '@pikku/core/services'
|
|
14
|
+
import type { ResolvedPersona } from '@pikku/core/ecosystem/services'
|
|
14
15
|
import type { AgentMap } from '${agentMapImportPath}'
|
|
15
16
|
import type { FlattenedRPCMap } from '${rpcMapImportPath}'
|
|
16
17
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type TypesMap } from '@pikku/inspector';
|
|
2
|
-
import type { FunctionsMeta } from '@pikku/core';
|
|
2
|
+
import type { FunctionsMeta } from '@pikku/core/ecosystem/services';
|
|
3
3
|
import type { Logger } from '@pikku/core/services';
|
|
4
4
|
export declare const serializeScenarioStepMap: (logger: Logger, relativeToPath: string, packageMappings: Record<string, string>, typesMap: TypesMap, functionsMeta: FunctionsMeta) => string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { WorkflowsMeta } from '@pikku/core/workflow';
|
|
1
|
+
import type { WorkflowsMeta } from '@pikku/core/ecosystem/workflow';
|
|
2
2
|
import type { SerializedWorkflowGraphs } from '@pikku/inspector/workflow-graph';
|
|
3
3
|
export declare const serializeWorkflowBootstrapMap: (workflowsMeta: WorkflowsMeta, graphMeta: SerializedWorkflowGraphs) => string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generate workflow map type definitions for type-safe client API
|
|
3
3
|
*/
|
|
4
|
-
import type { WorkflowsMeta } from '@pikku/core/workflow';
|
|
4
|
+
import type { WorkflowsMeta } from '@pikku/core/ecosystem/workflow';
|
|
5
5
|
import { type TypesMap } from '@pikku/inspector';
|
|
6
6
|
import type { SerializedWorkflowGraphs } from '@pikku/inspector/workflow-graph';
|
|
7
|
-
import type { FunctionsMeta } from '@pikku/core';
|
|
7
|
+
import type { FunctionsMeta } from '@pikku/core/ecosystem/services';
|
|
8
8
|
import type { Logger } from '@pikku/core/services';
|
|
9
9
|
type WireAddonDeclarations = Map<string, {
|
|
10
10
|
package: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { serializeImportMap } from '../../../utils/serialize-import-map.js';
|
|
2
2
|
import { generateCustomTypes } from '@pikku/inspector';
|
|
3
|
-
import { parseVersionedId } from '@pikku/core';
|
|
3
|
+
import { parseVersionedId } from '@pikku/core/ecosystem/types';
|
|
4
4
|
/**
|
|
5
5
|
* A workflow or graph node name is free-form prose written by a human, so an
|
|
6
6
|
* apostrophe or a backslash in it is ordinary. `JSON.stringify` emits a valid,
|
|
@@ -8,7 +8,7 @@ export const serializeWorkflowMeta = (outputPath, metaDir, workflowNames, packag
|
|
|
8
8
|
const pkg = packageName ? `'${packageName}'` : 'null';
|
|
9
9
|
if (workflowNames.length === 0) {
|
|
10
10
|
return `import { pikkuState } from '@pikku/core/ecosystem'
|
|
11
|
-
import type { WorkflowsRuntimeMeta } from '@pikku/core/workflow
|
|
11
|
+
import type { WorkflowsRuntimeMeta } from '@pikku/core/ecosystem/workflow'
|
|
12
12
|
|
|
13
13
|
const workflowsMeta: WorkflowsRuntimeMeta = {}
|
|
14
14
|
|
|
@@ -32,7 +32,7 @@ pikkuState(${pkg}, 'workflows', 'meta', workflowsMeta)`;
|
|
|
32
32
|
})
|
|
33
33
|
.join('\n');
|
|
34
34
|
return `import { pikkuState } from '@pikku/core/ecosystem'
|
|
35
|
-
import type { WorkflowsRuntimeMeta } from '@pikku/core/workflow
|
|
35
|
+
import type { WorkflowsRuntimeMeta } from '@pikku/core/ecosystem/workflow'
|
|
36
36
|
|
|
37
37
|
${imports}
|
|
38
38
|
|
|
@@ -36,7 +36,7 @@ export const Acknowledged = z.object({ ok: z.literal(true) })
|
|
|
36
36
|
*/
|
|
37
37
|
import { pikkuSessionlessFunc, wireHTTPRoutes } from '${pathToPikkuTypes}'
|
|
38
38
|
import { MissingServiceError } from '@pikku/core/errors'
|
|
39
|
-
import { assertWorkflowRunOwner } from '@pikku/core/workflow'
|
|
39
|
+
import { assertWorkflowRunOwner } from '@pikku/core/ecosystem/workflow'
|
|
40
40
|
import {
|
|
41
41
|
WorkflowStart,
|
|
42
42
|
WorkflowRunRef,
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
export const serializeWorkflowTypes = (functionTypesImportPath, rpcMapImportPath, workflowMapImportPath, agentMapImportPath, scopesImportPath, scenarioStepMapImportPath = './pikku-scenario-step-map.gen.js', scenarioActorsImportPath = './pikku-personas.gen.js') => {
|
|
2
2
|
return `import { WorkflowCancelledException } from '@pikku/core/workflow'
|
|
3
|
-
import { template } from '@pikku/core/workflow'
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from '@pikku/core/workflow'
|
|
9
|
-
import type { PikkuWorkflowWire, WorkflowStepOptions } from '@pikku/core/workflow'
|
|
10
|
-
import type { PikkuScenarioWire, ScenarioStepOptions } from '@pikku/core/scenario'
|
|
3
|
+
import { template } from '@pikku/core/ecosystem/workflow'
|
|
4
|
+
import { pikkuWorkflowGraph as corePikkuWorkflowGraph } from '@pikku/core/workflow'
|
|
5
|
+
import type { PikkuWorkflowGraphConfig, PikkuWorkflowGraphResult } from '@pikku/core/ecosystem/workflow'
|
|
6
|
+
import type { PikkuWorkflowWire, WorkflowStepOptions } from '@pikku/core/ecosystem/workflow'
|
|
7
|
+
import type { PikkuScenarioWire, ScenarioStepOptions } from '@pikku/core/ecosystem/scenario'
|
|
11
8
|
|
|
12
9
|
export { WorkflowCancelledException }
|
|
13
10
|
import type { PikkuFunctionSessionless, PikkuFunctionConfig, WiredServices } from '${functionTypesImportPath}'
|
|
@@ -81,7 +78,7 @@ import type { StandardSchemaV1 } from '@standard-schema/spec'
|
|
|
81
78
|
import type { InferSchemaOutput, PikkuPermission, PikkuMiddleware, NodeConfig, PikkuApprovalDescription } from '${functionTypesImportPath}'
|
|
82
79
|
import type { ScopeId } from '${scopesImportPath}'
|
|
83
80
|
import { PikkuError } from '@pikku/core/errors'
|
|
84
|
-
import type { CorePermissionGroup } from '@pikku/core'
|
|
81
|
+
import type { CorePermissionGroup } from '@pikku/core/ecosystem/types'
|
|
85
82
|
|
|
86
83
|
export type PikkuFunctionWorkflow<
|
|
87
84
|
In = unknown,
|
|
@@ -2,7 +2,7 @@ import { existsSync } from 'fs';
|
|
|
2
2
|
import { pikkuWorkflowComplexFunc } from '#pikku/workflow/pikku-workflow-types.gen.js';
|
|
3
3
|
import { assertSingleCoreVersion } from '../../utils/assert-single-core-version.js';
|
|
4
4
|
import { warnOnSplitTypeIdentity } from '../validate/type-identity-checks.js';
|
|
5
|
-
import { pruneLegacyScaffoldFiles, removeRetiredScaffoldFiles, } from '../../utils/remove-legacy-scaffold-file.js';
|
|
5
|
+
import { pruneLegacyScaffoldFiles, refreshScaffoldsImportingRemovedEntryPoints, removeRetiredScaffoldFiles, } from '../../utils/remove-legacy-scaffold-file.js';
|
|
6
6
|
import { PikkuTypecheckFailedError, renderTscFull, renderTscSummary, runProjectTypecheck, } from '../../utils/tsc-check.js';
|
|
7
7
|
const scaffoldFiles = (config) => {
|
|
8
8
|
const files = [];
|
|
@@ -51,6 +51,7 @@ export const allWorkflow = pikkuWorkflowComplexFunc({
|
|
|
51
51
|
// it. Say it now or never.
|
|
52
52
|
await warnOnSplitTypeIdentity(config.rootDir, logger);
|
|
53
53
|
await pruneLegacyScaffoldFiles(config);
|
|
54
|
+
await refreshScaffoldsImportingRemovedEntryPoints(config);
|
|
54
55
|
await removeRetiredScaffoldFiles(config);
|
|
55
56
|
const allImports = [];
|
|
56
57
|
let typesDeclarationFileExists = true;
|
|
@@ -101,7 +102,7 @@ export const allWorkflow = pikkuWorkflowComplexFunc({
|
|
|
101
102
|
bootstrap: true,
|
|
102
103
|
}),
|
|
103
104
|
workflow.do('Bootstrap MCP types', 'pikkuMCPTypes', null),
|
|
104
|
-
workflow.do('Bootstrap AI agent types', '
|
|
105
|
+
workflow.do('Bootstrap AI agent types', 'pikkuAgentTypes', null),
|
|
105
106
|
]);
|
|
106
107
|
await workflow.do('Bootstrap Node types', 'pikkuNodeTypes', null);
|
|
107
108
|
await workflow.do('Bootstrap Secret definition types', 'pikkuSecretDefinitionTypes', null);
|
|
@@ -134,7 +135,7 @@ export const allWorkflow = pikkuWorkflowComplexFunc({
|
|
|
134
135
|
const typeGenerators = [
|
|
135
136
|
workflow.do('Function types split', 'pikkuFunctionTypesSplit', {}),
|
|
136
137
|
workflow.do('Trigger types', 'pikkuTriggerTypes', {}),
|
|
137
|
-
workflow.do('AI agent types', '
|
|
138
|
+
workflow.do('AI agent types', 'pikkuAgentTypes', null),
|
|
138
139
|
];
|
|
139
140
|
if (!config.addon) {
|
|
140
141
|
typeGenerators.push(workflow.do('HTTP types', 'pikkuHTTPTypes', null), workflow.do('Channel types', 'pikkuChannelTypes', null), workflow.do('Scheduler types', 'pikkuSchedulerTypes', null), workflow.do('Queue types', 'pikkuQueueTypes', null), workflow.do('MCP types', 'pikkuMCPTypes', null));
|
|
@@ -161,8 +162,8 @@ export const allWorkflow = pikkuWorkflowComplexFunc({
|
|
|
161
162
|
}
|
|
162
163
|
const [hasInternalRPCs, agents, scorers] = await Promise.all([
|
|
163
164
|
workflow.do('RPC', 'pikkuRPC', null),
|
|
164
|
-
workflow.do('AI agent', '
|
|
165
|
-
workflow.do('AI scorer', '
|
|
165
|
+
workflow.do('AI agent', 'pikkuAgent', null),
|
|
166
|
+
workflow.do('AI scorer', 'pikkuAgentScorer', null),
|
|
166
167
|
]);
|
|
167
168
|
allImports.push(config.modelAliasesFile);
|
|
168
169
|
if (agents) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Services } from '../../types/application-types.js';
|
|
2
|
-
import type { PikkuWire } from '@pikku/core';
|
|
2
|
+
import type { PikkuWire } from '@pikku/core/ecosystem/types';
|
|
3
3
|
type PikkuMiddleware = (services: Services, wire: PikkuWire, next: () => Promise<void>) => Promise<void>;
|
|
4
4
|
export interface LogCommandInfoOptions {
|
|
5
5
|
commandStart: string;
|
|
@@ -5,14 +5,17 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { LocalEventHubService } from '@pikku/core/channel/local';
|
|
7
7
|
import { PikkuNodeHTTPServer } from '@pikku/node-http-server';
|
|
8
|
-
import { pikkuWebsocketHandler } from '@pikku/ws';
|
|
8
|
+
import { DEFAULT_WS_MAX_PAYLOAD, pikkuWebsocketHandler } from '@pikku/ws';
|
|
9
9
|
import { WebSocketServer } from 'ws';
|
|
10
10
|
export class NodeServerRunner {
|
|
11
11
|
async createEventHub() {
|
|
12
12
|
return new LocalEventHubService();
|
|
13
13
|
}
|
|
14
14
|
createServer(config, logger, options = {}) {
|
|
15
|
-
const wss = new WebSocketServer({
|
|
15
|
+
const wss = new WebSocketServer({
|
|
16
|
+
noServer: true,
|
|
17
|
+
maxPayload: DEFAULT_WS_MAX_PAYLOAD,
|
|
18
|
+
});
|
|
16
19
|
const server = new PikkuNodeHTTPServer(config, logger, {
|
|
17
20
|
configureServer: (httpServer) => {
|
|
18
21
|
pikkuWebsocketHandler({ server: httpServer, wss, logger });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import { LogLevel } from '@pikku/core/services';
|
|
3
|
-
import { isExpectedError } from '@pikku/core';
|
|
3
|
+
import { isExpectedError } from '@pikku/core/ecosystem/types';
|
|
4
4
|
// Compact one-line wordmark — the old multi-line ASCII art got cropped in
|
|
5
5
|
// short/narrow AI-agent panes. Coloured directly (not via the blue `info`
|
|
6
6
|
// path) so the cyan/bold render correctly.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CoverageFunctionMeta, FunctionCoverageReport, ScriptCoverage as ScriptCoverageInput } from '@pikku/core/services';
|
|
1
|
+
import type { CoverageFunctionMeta, FunctionCoverageReport, ScriptCoverage as ScriptCoverageInput } from '@pikku/core/ecosystem/services';
|
|
2
2
|
export type { ScriptCoverageInput };
|
|
3
3
|
export declare function mapPreciseCoverage(scripts: ScriptCoverageInput[], getScriptSource: (scriptId: string) => Promise<string>, functionsMeta: Record<string, CoverageFunctionMeta>): Promise<FunctionCoverageReport>;
|
|
4
4
|
export declare function mapLineHitsToReport(lineHits: Map<string, Map<number, number>>, functionsMeta: Record<string, CoverageFunctionMeta>): FunctionCoverageReport;
|