@pikku/cli 0.12.144 → 0.12.151
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/HelpPanel-CxjgE40i.js +1 -0
- package/console-app/assets/{abnfDiagram-N423BO3Z-BIPJyOId.js → abnfDiagram-VCTEODGH-UPW1PlxM.js} +1 -1
- package/console-app/assets/architecture-7GRP2DOG-BQN972Vc.js +1 -0
- package/console-app/assets/architectureDiagram-5GKGNRK7-B3XFrvZk.js +36 -0
- package/console-app/assets/blockDiagram-I7D4REHJ-Ca0v9UJQ.js +129 -0
- package/console-app/assets/c4Diagram-7LVT6UL2-CLewVsj_.js +38 -0
- package/console-app/assets/channel-B8xtOmL3.js +1 -0
- package/console-app/assets/chunk-4HAMMTFA-BwhbhOD9.js +62 -0
- package/console-app/assets/{chunk-NSK5VX7P-VK0slsok.js → chunk-75Z2AOVW-C7nAgNk0.js} +1 -1
- package/console-app/assets/chunk-DU6HZSFF-D4yYAcHt.js +127 -0
- package/console-app/assets/{chunk-2GRJ4B5K-pBREt5-Y.js → chunk-F27PBJKO-UHllOPps.js} +1 -1
- package/console-app/assets/{chunk-KEIR6QF5-BICK3FdT.js → chunk-FOHPRMQF-CoA4358r.js} +9 -9
- package/console-app/assets/chunk-GMAD6QVW-C0l_vm7T.js +72 -0
- package/console-app/assets/chunk-GVQU2GXP-h-H2Oird.js +1 -0
- package/console-app/assets/{chunk-5RXB4S5H-wo8Xtqiv.js → chunk-IMKFNOWR-DJ_W9CSg.js} +2 -2
- package/console-app/assets/chunk-L3NEJ4N5-Ce9oniwE.js +1 -0
- package/console-app/assets/chunk-OSK3NFVY-CdGE5qxS.js +10 -0
- package/console-app/assets/chunk-P2QGCYS3-DK1pHDdz.js +1 -0
- package/console-app/assets/{chunk-KBJHAD2P-PiPaopal.js → chunk-POPQ4Y6H-DjevEFNo.js} +1 -1
- package/console-app/assets/{chunk-4I5QYGJK-SmJ1Rqsn.js → chunk-PWAF6VOD-BVF5N1No.js} +1 -1
- package/console-app/assets/chunk-SHT3W25Y-BX8We-wN.js +168 -0
- package/console-app/assets/{chunk-6Q2QTUOP-B6uqaxr0.js → chunk-SVP7TREG-Cl0GgAPC.js} +1 -1
- package/console-app/assets/{chunk-GF5L2VYU-Cw7tsTe6.js → chunk-TICWLB2K-IWZAWDhu.js} +2 -2
- package/console-app/assets/chunk-XXDRQBXY-CGWcS5Ol.js +1 -0
- package/console-app/assets/classDiagram-ZZMXUADV-OGsmOlmO.js +1 -0
- package/console-app/assets/classDiagram-v2-VYDZK3BY-OGsmOlmO.js +1 -0
- package/console-app/assets/cose-bilkent-JH36ORCC-GsQ0JAnL.js +1 -0
- package/console-app/assets/cynefin-OW5HDTMX-hZsAZp_5.js +1 -0
- package/console-app/assets/{cynefinDiagram-MW4NZA55-BzFWEf8Y.js → cynefinDiagram-5FMLGOSQ-CsyMovx1.js} +1 -1
- package/console-app/assets/cytoscape.esm-B-1iW2ft.js +321 -0
- package/console-app/assets/dagre-BP8XEFz-.js +1 -0
- package/console-app/assets/dagre-GXQ25YYZ-Jg5285rx.js +4 -0
- package/console-app/assets/{diagram-7IWD3JNH-C58VaHJt.js → diagram-S7CK7UJ4-n9JiR8HK.js} +4 -4
- package/console-app/assets/{diagram-UB23O5K3-CmRNd5vm.js → diagram-UQ7AKVKN-Cde-dgbI.js} +1 -1
- package/console-app/assets/{diagram-B4RE2ZJO-B3w3TcXn.js → diagram-VSXAHHWV-CPZUg4FP.js} +1 -1
- package/console-app/assets/{diagram-Q27KOJAE-7oaP3D-d.js → diagram-VX7I27RA-B2rCDWvn.js} +1 -1
- package/console-app/assets/{diagram-LBJQPF4R-L1ZkDsab.js → diagram-Z3DM3KII-UwO0hte3.js} +1 -1
- package/console-app/assets/{ebnfDiagram-BXEA7PRR-D0rxzLaa.js → ebnfDiagram-PWID7BFC-BGJ_PBlS.js} +1 -1
- package/console-app/assets/erDiagram-RLTQ6QDP-CKsTScr3.js +99 -0
- package/console-app/assets/eventmodeling-NTZA5JFV-CnZOTLz3.js +1 -0
- package/console-app/assets/flowDiagram-HODETNUW-TYMCrte8.js +1 -0
- package/console-app/assets/ganttDiagram-EL5Y4UJY-koeTkIEA.js +292 -0
- package/console-app/assets/gitGraph-4MIJSDKK-DyRPbcM4.js +1 -0
- package/console-app/assets/{gitGraphDiagram-DS77QQ5N-JaW7OYCY.js → gitGraphDiagram-WWUBYQGX-DSIejrYw.js} +1 -1
- package/console-app/assets/graphlib-BpQ_697T.js +1 -0
- package/console-app/assets/index-BbJGr-r1.css +1 -0
- package/console-app/assets/index-Du9_fRSw.js +262 -0
- package/console-app/assets/info-A6RAGUB7-C63f9an_.js +1 -0
- package/console-app/assets/{infoDiagram-6WML65LV-DIbMcTbW.js → infoDiagram-27XIBGKW-Dz5gMcUF.js} +1 -1
- package/console-app/assets/{ishikawaDiagram-WSZJBQD7-mozqgfxi.js → ishikawaDiagram-5VMMS53U-m-nTAZTH.js} +1 -1
- package/console-app/assets/{journeyDiagram-NVQOT4AX-CKDrjPz5.js → journeyDiagram-3NMN7TZE-C7mjFY7i.js} +2 -2
- package/console-app/assets/{kanban-definition-27J2QSJJ-B9shPbST.js → kanban-definition-UXKFOSKX-Cm7PqOOP.js} +2 -2
- package/console-app/assets/{katex-CXMH3UgJ.js → katex-ZlcWpGUi.js} +2 -2
- package/console-app/assets/{line-DLrnl2PN.js → line-RZNRGurC.js} +1 -1
- package/console-app/assets/linear-C2IGWMlF.js +1 -0
- package/console-app/assets/{mermaid-parser.core-ElI_yw4f.js → mermaid-parser.core-DN1yDqgB.js} +3 -3
- package/console-app/assets/mermaid.core-DDRs3TbC.js +44 -0
- package/console-app/assets/{mindmap-definition-FAOFIHXS-BTvmLZE7.js → mindmap-definition-YA3MSWOX-o6riOwlF.js} +1 -1
- package/console-app/assets/packet-AYTQ26CC-B89F6gXG.js +1 -0
- package/console-app/assets/{pegDiagram-VL7TDLO6-1hBiUSmO.js → pegDiagram-XKGWAZYB-BQ1AAIaV.js} +1 -1
- package/console-app/assets/pie-WAS4IAKB-CzuwQlQz.js +1 -0
- package/console-app/assets/{pieDiagram-7S7Q4E2Y-vvgYfdFq.js → pieDiagram-E7YTZNPT-DlcGHWGT.js} +1 -1
- package/console-app/assets/{quadrantDiagram-CIZ2JOQS-B_emxK6O.js → quadrantDiagram-AXDQQJYC-DdITwqw-.js} +1 -1
- package/console-app/assets/radar-RG4KPBEZ-DlJ29jAN.js +1 -0
- package/console-app/assets/railroad-74A4TZTK-BL49fdM8.js +1 -0
- package/console-app/assets/railroad-abnf-HS5TGJTU-D9Ej_sin.js +1 -0
- package/console-app/assets/railroad-ebnf-LZEXJU2U-CjzlC3qv.js +1 -0
- package/console-app/assets/railroad-peg-WCYAUIDC-BPa6lIrj.js +1 -0
- package/console-app/assets/{railroadDiagram-AXF67PYL-IXXj_KlB.js → railroadDiagram-O6MQD6OU-BNgQGtF5.js} +1 -1
- package/console-app/assets/{requirementDiagram-LRYGKXZP-B15ZEbec.js → requirementDiagram-BXWQKSXE-48lE_WeD.js} +2 -2
- package/console-app/assets/{sankeyDiagram-W5VNT64P-w-sj_WN8.js → sankeyDiagram-P5KCCOFB-WmTardCP.js} +1 -1
- package/console-app/assets/{sequenceDiagram-SI44F4Z6-BP1UgEbX.js → sequenceDiagram-WJ2MYXX4-Bd5cHDMs.js} +1 -1
- package/console-app/assets/src-BTXg_NtK.js +1 -0
- package/console-app/assets/{stateDiagram-OKZ733FA-DE4L-y3n.js → stateDiagram-D77RDMKH-DBoCkqGv.js} +1 -1
- package/console-app/assets/stateDiagram-v2-MP3YSRHH-BLbaZawL.js +1 -0
- package/console-app/assets/swimlanes-42K2YHIH-lecUPBaK.js +1 -0
- package/console-app/assets/swimlanesDiagram-VR7AAH4N-CM_5HS_7.js +8 -0
- package/console-app/assets/{timeline-definition-Z64GVDOM-Cc8M2qee.js → timeline-definition-24CTP7MA-CWq0OWm1.js} +1 -1
- package/console-app/assets/treeView-Q6P3EWNA-C7lEeqUz.js +1 -0
- package/console-app/assets/treemap-WGGIJYW6-Bkx2DAoI.js +1 -0
- package/console-app/assets/{vennDiagram-T6HMQDX7-dpGyGzMg.js → vennDiagram-4TSXK5OY-Bw_kGRL3.js} +1 -1
- package/console-app/assets/wardley-WFR3VGLG-V0zki2L0.js +1 -0
- package/console-app/assets/{wardleyDiagram-T6FBY63Y-CBvRf8GJ.js → wardleyDiagram-VM6X3IG4-C5vrwEHM.js} +1 -1
- package/console-app/assets/{xychartDiagram-ELKLHX3M-UlPqx-ve.js → xychartDiagram-S5SC5T6Z-B9uA0moC.js} +3 -3
- package/console-app/index.html +2 -3
- package/dist/.pikku/addon/index.d.ts +1 -1
- package/dist/.pikku/addon/index.js +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.js +1 -1
- package/dist/.pikku/agent/index.d.ts +1 -1
- package/dist/.pikku/agent/index.js +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +6 -6
- package/dist/.pikku/agent/pikku-model-aliases.gen.js +1 -1
- package/dist/.pikku/analytics/index.d.ts +7 -0
- package/dist/.pikku/analytics/index.js +7 -0
- package/dist/.pikku/analytics/pikku-analytics-types.gen.d.ts +5 -0
- package/dist/.pikku/analytics/pikku-analytics-types.gen.js +4 -0
- package/dist/.pikku/auth/auth.types.d.ts +1 -1
- package/dist/.pikku/auth/auth.types.js +1 -1
- package/dist/.pikku/auth/index.d.ts +1 -1
- package/dist/.pikku/auth/index.js +1 -1
- package/dist/.pikku/auth/pikku-auth-types.gen.d.ts +1 -1
- package/dist/.pikku/auth/pikku-auth-types.gen.js +1 -1
- package/dist/.pikku/channel/index.d.ts +1 -1
- package/dist/.pikku/channel/index.js +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +3 -3
- package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
- package/dist/.pikku/cli/index.d.ts +1 -1
- package/dist/.pikku/cli/index.js +1 -1
- package/dist/.pikku/cli/pikku-cli-channel.d.ts +7 -7
- package/dist/.pikku/cli/pikku-cli-channel.js +31 -1
- package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-client.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.json +170 -0
- 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 +170 -0
- package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli.gen.js +1 -1
- package/dist/.pikku/error/index.d.ts +1 -1
- package/dist/.pikku/error/index.js +1 -1
- package/dist/.pikku/error/pikku-error-types.gen.d.ts +1 -1
- package/dist/.pikku/error/pikku-error-types.gen.js +1 -1
- package/dist/.pikku/function/index.d.ts +1 -1
- package/dist/.pikku/function/index.js +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +8 -7
- package/dist/.pikku/function/pikku-function-types.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +235 -27
- package/dist/.pikku/function/pikku-functions.gen.js +9 -1
- package/dist/.pikku/gateway/index.d.ts +1 -1
- package/dist/.pikku/gateway/index.js +1 -1
- package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts +1 -1
- package/dist/.pikku/gateway/pikku-gateway-types.gen.js +1 -1
- package/dist/.pikku/http/index.d.ts +1 -1
- package/dist/.pikku/http/index.js +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
- package/dist/.pikku/mcp/index.d.ts +1 -1
- package/dist/.pikku/mcp/index.js +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
- package/dist/.pikku/middleware/index.d.ts +1 -1
- package/dist/.pikku/middleware/index.js +1 -1
- package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts +1 -1
- package/dist/.pikku/middleware/pikku-middleware-types.gen.js +1 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +1 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
- package/dist/.pikku/pikku-services.gen.d.ts +5 -1
- package/dist/.pikku/pikku-services.gen.js +4 -0
- package/dist/.pikku/queue/index.d.ts +1 -1
- package/dist/.pikku/queue/index.js +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +10 -0
- package/dist/.pikku/scenarios/index.d.ts +1 -1
- package/dist/.pikku/scenarios/index.js +1 -1
- package/dist/.pikku/scenarios/pikku-personas.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/pikku-personas.gen.js +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/schemas/register.gen.js +1 -1
- package/dist/.pikku/scheduler/index.d.ts +1 -1
- package/dist/.pikku/scheduler/index.js +1 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
- package/dist/.pikku/schemas/register.gen.js +31 -1
- package/dist/.pikku/schemas/schemas/FabricChangesAskInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricChangesAskOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricChangesClaimInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricChangesClaimOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricChangesDoneInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricChangesDoneOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricChangesListInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricChangesListOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricChangesShotInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricChangesShotOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricChangesShowInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricChangesShowOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricDeployApplyOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/FabricFindingsListOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/FabricProjectsListOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/FabricPublishOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/FabricRollbackOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/FabricSecretsDeleteOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/FabricSecretsRotateOutput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuAnalyticsOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuFeatureFlagsScaffoldOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuFlagsInput.schema.json +1 -0
- package/dist/.pikku/scopes/index.d.ts +2 -1
- package/dist/.pikku/scopes/index.js +2 -1
- package/dist/.pikku/scopes/pikku-flags-meta.gen.json +1 -0
- package/dist/.pikku/scopes/pikku-flags.gen.d.ts +41 -0
- package/dist/.pikku/scopes/pikku-flags.gen.js +34 -0
- 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 +2 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.js +2 -1
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +1 -1
- package/dist/.pikku/secrets/index.d.ts +1 -1
- package/dist/.pikku/secrets/index.js +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
- package/dist/.pikku/services/pikku-meta-service.gen.d.ts +1 -1
- package/dist/.pikku/services/pikku-meta-service.gen.js +1 -1
- package/dist/.pikku/setup/index.d.ts +1 -1
- package/dist/.pikku/setup/index.js +1 -1
- package/dist/.pikku/setup/pikku-setup-types.gen.d.ts +2 -2
- package/dist/.pikku/setup/pikku-setup-types.gen.js +1 -1
- package/dist/.pikku/trigger/index.d.ts +1 -1
- package/dist/.pikku/trigger/index.js +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/variables/index.d.ts +1 -1
- package/dist/.pikku/variables/index.js +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
- package/dist/.pikku/workflow/index.d.ts +1 -1
- package/dist/.pikku/workflow/index.js +1 -1
- package/dist/.pikku/workflow/meta/allWorkflow.gen.json +42 -6
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/bin/pikku-bin.mjs +2 -2
- package/dist/src/deploy/analyzer/analyzer.d.ts +8 -1
- package/dist/src/deploy/analyzer/analyzer.js +212 -52
- package/dist/src/deploy/analyzer/grouping.d.ts +57 -0
- package/dist/src/deploy/analyzer/grouping.js +148 -0
- package/dist/src/deploy/analyzer/index.d.ts +1 -0
- package/dist/src/deploy/analyzer/naming.d.ts +1 -0
- package/dist/src/deploy/analyzer/naming.js +9 -0
- package/dist/src/deploy/build-pipeline.d.ts +2 -0
- package/dist/src/deploy/build-pipeline.js +24 -0
- package/dist/src/fabric/fabric-commands.d.ts +323 -138
- package/dist/src/fabric/fabric-commands.js +135 -0
- package/dist/src/fabric/functions/add.function.d.ts +3 -3
- package/dist/src/fabric/functions/addon-verify.function.d.ts +9 -9
- package/dist/src/fabric/functions/changes-ask.function.d.ts +34 -0
- package/dist/src/fabric/functions/changes-ask.function.js +30 -0
- package/dist/src/fabric/functions/changes-claim.function.d.ts +50 -0
- package/dist/src/fabric/functions/changes-claim.function.js +43 -0
- package/dist/src/fabric/functions/changes-done.function.d.ts +55 -0
- package/dist/src/fabric/functions/changes-done.function.js +59 -0
- package/dist/src/fabric/functions/changes-list.function.d.ts +60 -0
- package/dist/src/fabric/functions/changes-list.function.js +82 -0
- package/dist/src/fabric/functions/changes-shot.function.d.ts +66 -0
- package/dist/src/fabric/functions/changes-shot.function.js +56 -0
- package/dist/src/fabric/functions/changes-show.function.d.ts +41 -0
- package/dist/src/fabric/functions/changes-show.function.js +80 -0
- package/dist/src/fabric/functions/db-schema.function.d.ts +3 -3
- package/dist/src/fabric/functions/deploy-list.function.d.ts +3 -3
- package/dist/src/fabric/functions/deploy-units.function.d.ts +3 -3
- package/dist/src/fabric/functions/deploy.function.d.ts +12 -12
- package/dist/src/fabric/functions/deploy.function.js +6 -5
- package/dist/src/fabric/functions/domains-add.function.d.ts +7 -7
- package/dist/src/fabric/functions/domains-list.function.d.ts +3 -3
- package/dist/src/fabric/functions/domains-remove.function.d.ts +3 -3
- package/dist/src/fabric/functions/errors.function.d.ts +3 -3
- package/dist/src/fabric/functions/findings-clear.function.d.ts +3 -3
- package/dist/src/fabric/functions/findings-flush.function.d.ts +3 -3
- package/dist/src/fabric/functions/findings-list.function.d.ts +3 -3
- package/dist/src/fabric/functions/init.function.d.ts +3 -3
- package/dist/src/fabric/functions/link.function.d.ts +3 -3
- package/dist/src/fabric/functions/link.function.js +3 -2
- package/dist/src/fabric/functions/llm-key.function.d.ts +9 -9
- package/dist/src/fabric/functions/login.function.d.ts +3 -3
- package/dist/src/fabric/functions/logs.function.d.ts +3 -3
- package/dist/src/fabric/functions/logs.function.js +2 -1
- package/dist/src/fabric/functions/metrics.function.d.ts +3 -3
- package/dist/src/fabric/functions/projects-list.function.d.ts +3 -3
- package/dist/src/fabric/functions/publish.function.d.ts +3 -3
- package/dist/src/fabric/functions/report.function.d.ts +15 -15
- package/dist/src/fabric/functions/rollback.function.d.ts +9 -9
- package/dist/src/fabric/functions/secrets-delete.function.d.ts +3 -3
- package/dist/src/fabric/functions/secrets-list.function.d.ts +3 -3
- package/dist/src/fabric/functions/secrets-rotate.function.d.ts +3 -3
- package/dist/src/fabric/functions/secrets-set.function.d.ts +3 -3
- package/dist/src/fabric/functions/smoke.function.d.ts +3 -3
- package/dist/src/fabric/functions/status.function.d.ts +3 -3
- package/dist/src/fabric/functions/trace.function.d.ts +3 -3
- package/dist/src/fabric/functions/validate.function.d.ts +7 -7
- package/dist/src/fabric/functions/variables-get.function.d.ts +3 -3
- package/dist/src/fabric/functions/variables-set.function.d.ts +6 -6
- package/dist/src/fabric/lib/changes.d.ts +38 -0
- package/dist/src/fabric/lib/changes.js +70 -0
- package/dist/src/fabric/lib/errors.d.ts +21 -0
- package/dist/src/fabric/lib/errors.js +21 -0
- package/dist/src/fabric/lib/finding.d.ts +3 -3
- package/dist/src/fabric/lib/git.d.ts +3 -2
- package/dist/src/fabric/lib/git.js +10 -8
- package/dist/src/fabric/lib/output.d.ts +20 -0
- package/dist/src/fabric/lib/output.js +32 -7
- package/dist/src/functions/commands/all.d.ts +1 -1
- package/dist/src/functions/commands/audit.d.ts +1 -1
- package/dist/src/functions/commands/binary.d.ts +3 -3
- package/dist/src/functions/commands/bootstrap.d.ts +1 -1
- package/dist/src/functions/commands/bootstrap.js +3 -0
- package/dist/src/functions/commands/db-audit.d.ts +1 -1
- package/dist/src/functions/commands/db-baseline.d.ts +1 -1
- package/dist/src/functions/commands/db-check.d.ts +1 -1
- package/dist/src/functions/commands/db-codegen.d.ts +1 -1
- package/dist/src/functions/commands/db-export.d.ts +1 -1
- package/dist/src/functions/commands/db-generate.d.ts +1 -1
- package/dist/src/functions/commands/db-migrate.d.ts +1 -1
- package/dist/src/functions/commands/db-reset.d.ts +3 -3
- package/dist/src/functions/commands/deploy-apply.d.ts +3 -3
- package/dist/src/functions/commands/deploy-apply.js +36 -3
- package/dist/src/functions/commands/deploy-info.d.ts +1 -1
- package/dist/src/functions/commands/deploy-plan.d.ts +3 -3
- package/dist/src/functions/commands/deploy-plan.js +2 -0
- package/dist/src/functions/commands/dev-agent-runner.d.ts +9 -7
- package/dist/src/functions/commands/dev-agent-runner.js +56 -12
- package/dist/src/functions/commands/dev.d.ts +3 -3
- package/dist/src/functions/commands/dev.js +60 -6
- package/dist/src/functions/commands/dist.d.ts +3 -3
- package/dist/src/functions/commands/dist.js +2 -9
- package/dist/src/functions/commands/doc.d.ts +3 -3
- package/dist/src/functions/commands/emails-init.d.ts +1 -1
- package/dist/src/functions/commands/enable.d.ts +9 -9
- package/dist/src/functions/commands/import-n8n.d.ts +3 -3
- package/dist/src/functions/commands/info.d.ts +4 -4
- package/dist/src/functions/commands/init-or-warn.d.ts +19 -0
- package/dist/src/functions/commands/init-or-warn.js +25 -0
- package/dist/src/functions/commands/knowledge-index.d.ts +6 -6
- package/dist/src/functions/commands/knowledge-plan.d.ts +15 -15
- package/dist/src/functions/commands/knowledge-reconcile.d.ts +6 -6
- package/dist/src/functions/commands/knowledge-validate.d.ts +6 -6
- package/dist/src/functions/commands/login.d.ts +7 -7
- package/dist/src/functions/commands/meta.d.ts +34 -34
- package/dist/src/functions/commands/new-addon.d.ts +3 -3
- package/dist/src/functions/commands/new-function.d.ts +3 -3
- package/dist/src/functions/commands/new-middleware.d.ts +3 -3
- package/dist/src/functions/commands/new-permission.d.ts +3 -3
- package/dist/src/functions/commands/new-wiring.d.ts +3 -3
- package/dist/src/functions/commands/persona-sync.d.ts +3 -3
- package/dist/src/functions/commands/persona.d.ts +7 -7
- package/dist/src/functions/commands/pikku-command-bootstrap.d.ts +1 -1
- package/dist/src/functions/commands/pikku-command-summary.d.ts +1 -1
- package/dist/src/functions/commands/roles-audit.d.ts +1 -1
- package/dist/src/functions/commands/roles-prune.d.ts +3 -3
- package/dist/src/functions/commands/scenario.d.ts +7 -7
- package/dist/src/functions/commands/scopes-audit.d.ts +1 -1
- package/dist/src/functions/commands/scopes-prune.d.ts +3 -3
- package/dist/src/functions/commands/semver.d.ts +1 -1
- package/dist/src/functions/commands/serve.d.ts +3 -3
- package/dist/src/functions/commands/serve.js +40 -3
- package/dist/src/functions/commands/skills.d.ts +6 -6
- package/dist/src/functions/commands/update.d.ts +1 -1
- package/dist/src/functions/commands/validate.d.ts +6 -6
- package/dist/src/functions/commands/versions-check.d.ts +1 -1
- package/dist/src/functions/commands/versions-init.d.ts +3 -3
- package/dist/src/functions/commands/versions-update.d.ts +1 -1
- package/dist/src/functions/commands/watch.d.ts +3 -3
- package/dist/src/functions/db/zod-codegen.d.ts +19 -19
- package/dist/src/functions/knowledge/schemas.d.ts +5 -5
- package/dist/src/functions/runtimes/fetch/index.d.ts +1 -1
- package/dist/src/functions/runtimes/nextjs/pikku-command-nextjs.d.ts +1 -1
- package/dist/src/functions/runtimes/tanstack-start/pikku-command-tanstack-start.d.ts +1 -1
- package/dist/src/functions/runtimes/websocket/pikku-command-websocket-typed.d.ts +1 -1
- package/dist/src/functions/surface/build-surface-doc.js +1 -1
- package/dist/src/functions/surface/surface-doc.types.d.ts +1 -1
- package/dist/src/functions/surface/surface-editorial.js +5 -0
- package/dist/src/functions/validate/pikku-barrel-checks.js +2 -22
- package/dist/src/functions/validate/validate.d.ts +2 -2
- package/dist/src/functions/validate/websocket-deps-checks.d.ts +1 -1
- package/dist/src/functions/wirings/agent/pikku-command-agent-types.d.ts +1 -1
- package/dist/src/functions/wirings/agent/pikku-command-agent.d.ts +1 -1
- package/dist/src/functions/wirings/agent/pikku-command-public-agent.d.ts +1 -1
- package/dist/src/functions/wirings/agent-scorer/pikku-command-agent-scorer.d.ts +1 -1
- package/dist/src/functions/wirings/analytics/pikku-command-analytics.d.ts +11 -0
- package/dist/src/functions/wirings/analytics/pikku-command-analytics.js +66 -0
- package/dist/src/functions/wirings/analytics/serialize-analytics.d.ts +30 -0
- package/dist/src/functions/wirings/analytics/serialize-analytics.js +141 -0
- package/dist/src/functions/wirings/auth/pikku-command-auth.d.ts +3 -3
- package/dist/src/functions/wirings/auth/pikku-command-auth.js +2 -6
- package/dist/src/functions/wirings/auth/serialize-auth-gen.d.ts +1 -1
- package/dist/src/functions/wirings/auth/serialize-auth-gen.js +15 -36
- package/dist/src/functions/wirings/channels/pikku-command-channel-types.d.ts +1 -1
- package/dist/src/functions/wirings/channels/pikku-command-channels-map.d.ts +1 -1
- package/dist/src/functions/wirings/channels/pikku-command-channels.d.ts +1 -1
- package/dist/src/functions/wirings/cli/pikku-command-cli-entry.d.ts +1 -1
- package/dist/src/functions/wirings/cli/pikku-command-cli-types.d.ts +1 -1
- package/dist/src/functions/wirings/cli/pikku-command-cli.d.ts +1 -1
- package/dist/src/functions/wirings/console/pikku-command-console-functions.d.ts +1 -1
- package/dist/src/functions/wirings/console/pikku-command-nodes-meta.d.ts +1 -1
- package/dist/src/functions/wirings/credentials/pikku-command-credentials.d.ts +1 -1
- package/dist/src/functions/wirings/emails/pikku-command-emails.d.ts +1 -1
- package/dist/src/functions/wirings/errors/pikku-command-error-types.d.ts +1 -1
- package/dist/src/functions/wirings/flags/pikku-command-feature-flags-scaffold.d.ts +1 -0
- package/dist/src/functions/wirings/flags/pikku-command-feature-flags-scaffold.js +36 -0
- package/dist/src/functions/wirings/flags/pikku-command-flags.d.ts +7 -0
- package/dist/src/functions/wirings/flags/pikku-command-flags.js +36 -0
- package/dist/src/functions/wirings/flags/serialize-feature-flags-scaffold.d.ts +13 -0
- package/dist/src/functions/wirings/flags/serialize-feature-flags-scaffold.js +73 -0
- package/dist/src/functions/wirings/flags/serialize-flags-types.d.ts +14 -0
- package/dist/src/functions/wirings/flags/serialize-flags-types.js +68 -0
- package/dist/src/functions/wirings/functions/pikku-command-addon-types.d.ts +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-function-types-split.d.ts +3 -3
- package/dist/src/functions/wirings/functions/pikku-command-function-types-split.js +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-functions.d.ts +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-leaf-indexes.d.ts +2 -2
- package/dist/src/functions/wirings/functions/pikku-command-leaf-indexes.js +2 -1
- package/dist/src/functions/wirings/functions/pikku-command-services.d.ts +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-services.js +9 -2
- package/dist/src/functions/wirings/functions/schemas.d.ts +1 -1
- package/dist/src/functions/wirings/functions/serialize-function-types.d.ts +1 -1
- package/dist/src/functions/wirings/functions/serialize-function-types.js +9 -4
- package/dist/src/functions/wirings/gateway/pikku-command-gateway-types.d.ts +3 -3
- package/dist/src/functions/wirings/gateway/pikku-command-gateway.d.ts +1 -1
- package/dist/src/functions/wirings/graph/pikku-command-graph-wirings.d.ts +1 -1
- package/dist/src/functions/wirings/http/pikku-command-http-map.d.ts +1 -1
- package/dist/src/functions/wirings/http/pikku-command-http-routes.d.ts +1 -1
- package/dist/src/functions/wirings/http/pikku-command-http-types.d.ts +1 -1
- package/dist/src/functions/wirings/http/pikku-command-openapi.d.ts +1 -1
- package/dist/src/functions/wirings/mcp/pikku-command-mcp-json.d.ts +1 -1
- package/dist/src/functions/wirings/mcp/pikku-command-mcp-types.d.ts +1 -1
- package/dist/src/functions/wirings/mcp/pikku-command-mcp.d.ts +1 -1
- package/dist/src/functions/wirings/middleware/pikku-command-middleware.d.ts +1 -1
- package/dist/src/functions/wirings/package/pikku-command-package-types.d.ts +4 -3
- package/dist/src/functions/wirings/package/pikku-command-package-types.js +14 -1
- package/dist/src/functions/wirings/package/pikku-command-package.d.ts +1 -1
- package/dist/src/functions/wirings/package/serialize-package-types.d.ts +1 -0
- package/dist/src/functions/wirings/package/serialize-package-types.js +15 -0
- package/dist/src/functions/wirings/permissions/pikku-command-permissions.d.ts +1 -1
- package/dist/src/functions/wirings/personas/pikku-command-personas.d.ts +3 -3
- package/dist/src/functions/wirings/queue/pikku-command-queue-map.d.ts +1 -1
- package/dist/src/functions/wirings/queue/pikku-command-queue-service.d.ts +1 -1
- package/dist/src/functions/wirings/queue/pikku-command-queue-types.d.ts +1 -1
- package/dist/src/functions/wirings/queue/pikku-command-queue.d.ts +1 -1
- package/dist/src/functions/wirings/queue/pikku-queue-map.d.ts +1 -1
- package/dist/src/functions/wirings/realtime/pikku-command-events-scaffold.d.ts +1 -1
- package/dist/src/functions/wirings/realtime/pikku-command-realtime.d.ts +1 -1
- package/dist/src/functions/wirings/remote-jobs/pikku-command-remote-jobs.d.ts +1 -1
- package/dist/src/functions/wirings/roles/pikku-command-roles.d.ts +3 -3
- package/dist/src/functions/wirings/rpc/pikku-command-public-rpc.d.ts +1 -1
- package/dist/src/functions/wirings/rpc/pikku-command-react-query.d.ts +1 -1
- package/dist/src/functions/wirings/rpc/pikku-command-remote-rpc.d.ts +1 -1
- package/dist/src/functions/wirings/rpc/pikku-command-rpc-client.d.ts +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.d.ts +1 -1
- package/dist/src/functions/wirings/scheduler/pikku-command-scheduler-types.d.ts +1 -1
- package/dist/src/functions/wirings/scheduler/pikku-command-scheduler.d.ts +1 -1
- package/dist/src/functions/wirings/scopes/pikku-command-scopes.d.ts +3 -3
- package/dist/src/functions/wirings/secrets/pikku-command-secrets.d.ts +1 -1
- package/dist/src/functions/wirings/triggers/pikku-command-trigger-types.d.ts +3 -3
- package/dist/src/functions/wirings/triggers/pikku-command-trigger.d.ts +1 -1
- package/dist/src/functions/wirings/variables/pikku-command-variables.d.ts +1 -1
- package/dist/src/functions/wirings/virtual-user/pikku-command-virtual-user-functions.d.ts +1 -1
- package/dist/src/functions/wirings/webhook/pikku-command-webhook.d.ts +1 -1
- package/dist/src/functions/wirings/workflow/pikku-command-workflow-routes.d.ts +1 -1
- package/dist/src/functions/wirings/workflow/pikku-command-workflow.d.ts +1 -1
- package/dist/src/functions/workflows/all.workflow.js +34 -9
- package/dist/src/services.js +7 -0
- package/dist/src/utils/analytics-schemas-file.d.ts +6 -0
- package/dist/src/utils/analytics-schemas-file.js +9 -0
- package/dist/src/utils/file-import-path.js +4 -1
- package/dist/src/utils/pikku-cli-config.d.ts +2 -2
- package/dist/src/utils/pikku-cli-config.js +28 -0
- package/dist/src/utils/remove-legacy-scaffold-file.js +4 -0
- package/dist/src/utils/resolve-from-project.d.ts +5 -0
- package/dist/src/utils/resolve-from-project.js +8 -2
- package/dist/src/utils/tsc-check.d.ts +11 -15
- package/dist/src/utils/tsc-check.js +97 -86
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +32 -25
- package/snippets.json +1 -1
- package/surface.json +743 -27
- package/CHANGELOG.md +0 -9599
- package/console-app/assets/HelpPanel-nYO2hRY5.js +0 -1
- package/console-app/assets/architecture-TIHT7OUA-B-c05-x5.js +0 -1
- package/console-app/assets/architectureDiagram-T3A2C74G-BAH1O4B7.js +0 -36
- package/console-app/assets/blockDiagram-VBNYF7ZC-T3kmcPgj.js +0 -132
- package/console-app/assets/c4Diagram-5PPSVZJV-DRva89Br.js +0 -10
- package/console-app/assets/channel-DJ3jfSNX.js +0 -1
- package/console-app/assets/chunk-7BUUIJ7U-Bb538aSH.js +0 -1
- package/console-app/assets/chunk-7Z6QIM7H-uxzNGOHh.js +0 -10
- package/console-app/assets/chunk-I66GZJ75-DksrbEtn.js +0 -127
- package/console-app/assets/chunk-JQJVKLGR-BnRvPhDK.js +0 -156
- package/console-app/assets/chunk-QR6OTTB3-CgQotuzQ.js +0 -62
- package/console-app/assets/chunk-RYQCIY6F-Cei0abOq.js +0 -1
- package/console-app/assets/chunk-UBXNYLIW-B55XJk4O.js +0 -1
- package/console-app/assets/chunk-W5SLKNZC-gFa01tuI.js +0 -1
- package/console-app/assets/chunk-WRU74C26-C3ESZQ-F.js +0 -70
- package/console-app/assets/chunk-XXDRQBXY-D0tL6SVk.js +0 -1
- package/console-app/assets/classDiagram-JCYQIIEL-BqEwCDi8.js +0 -1
- package/console-app/assets/classDiagram-v2-OCEON4UE-BqEwCDi8.js +0 -1
- package/console-app/assets/cose-bilkent-JH36ORCC-CUxqwjs-.js +0 -1
- package/console-app/assets/cynefin-VYW2F7L2-Dh1yOBBs.js +0 -1
- package/console-app/assets/cytoscape.esm-B-NFISlW.js +0 -321
- package/console-app/assets/dagre-DKjebq_c.js +0 -1
- package/console-app/assets/dagre-VZM6K2ZE-BllFBMe9.js +0 -4
- package/console-app/assets/erDiagram-JOGREHBK-Bg0FPLS0.js +0 -85
- package/console-app/assets/eventmodeling-45OFAUF4-CVovwmpS.js +0 -1
- package/console-app/assets/flowDiagram-UKHOOZJN-DwRgEyXD.js +0 -1
- package/console-app/assets/ganttDiagram-PKOTCBZU-BBxxHrPG.js +0 -292
- package/console-app/assets/gitGraph-TEB2WS4Q-Cn1MjFvM.js +0 -1
- package/console-app/assets/graphlib-IlWVLY3o.js +0 -1
- package/console-app/assets/index-C8MC-uMB.css +0 -1
- package/console-app/assets/index-Deds7K2I.js +0 -290
- package/console-app/assets/info-DKCQHKI2-C2R7hV-y.js +0 -1
- package/console-app/assets/isUndefined-T4snU1Mx.js +0 -1
- package/console-app/assets/linear-BQOZezXu.js +0 -1
- package/console-app/assets/map-BmPfXn7V.js +0 -1
- package/console-app/assets/mermaid.core-B02bSmuz.js +0 -42
- package/console-app/assets/packet-7NZHBO7P-CkYMF0Cd.js +0 -1
- package/console-app/assets/pie-RZYD4A2V-BFMvieVM.js +0 -1
- package/console-app/assets/radar-I7S5WNFK-C_2tp7_w.js +0 -1
- package/console-app/assets/railroad-3IZDKUUU-DwlFJLv5.js +0 -1
- package/console-app/assets/railroad-abnf-AHOZXSZD-Cyu_rpdZ.js +0 -1
- package/console-app/assets/railroad-ebnf-EBAXGLYW-BLiwK-H7.js +0 -1
- package/console-app/assets/railroad-peg-LSFZ7HO6-BUDTDYmP.js +0 -1
- package/console-app/assets/src-BI35UZf8.js +0 -1
- package/console-app/assets/stateDiagram-v2-UEYNNEHI-BsP8TwKV.js +0 -1
- package/console-app/assets/swimlanes-SLNWSIFB-DvAJxCGQ.js +0 -2
- package/console-app/assets/swimlanesDiagram-ULZ7WXOC-BAXO3Id2.js +0 -8
- package/console-app/assets/treeView-QDETBFTQ-DnlS0s0_.js +0 -1
- package/console-app/assets/treemap-6X3UGDF4-CiUoxlJe.js +0 -1
- package/console-app/assets/wardley-OPB4EBWU-DrTySJtR.js +0 -1
- package/dist/.pikku/console/index.d.ts +0 -1
- package/dist/.pikku/console/index.js +0 -1
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +0 -6
- package/dist/.pikku/console/pikku-node-types.gen.js +0 -1
- package/dist/.pikku/pikku-meta-service.gen.d.ts +0 -7
- package/dist/.pikku/pikku-meta-service.gen.js +0 -9
- package/dist/.pikku/pikku-types.gen.d.ts +0 -17
- package/dist/.pikku/pikku-types.gen.js +0 -28
- package/dist/.pikku/workflow/pikku-personas.gen.d.ts +0 -15
- package/dist/.pikku/workflow/pikku-personas.gen.js +0 -17
- package/dist/src/functions/surface/collect-surface.d.ts +0 -58
- package/dist/src/functions/surface/collect-surface.js +0 -613
- /package/console-app/assets/{sizeCapture-X5ZJPWSS-B0uUizjq.js → sizeCapture-INFHLROL-B0uUizjq.js} +0 -0
|
@@ -8,9 +8,9 @@ export declare const FabricValidateOutput: z.ZodObject<{
|
|
|
8
8
|
findings: z.ZodArray<z.ZodObject<{
|
|
9
9
|
id: z.ZodString;
|
|
10
10
|
severity: z.ZodEnum<{
|
|
11
|
-
warn: "warn";
|
|
12
11
|
error: "error";
|
|
13
12
|
info: "info";
|
|
13
|
+
warn: "warn";
|
|
14
14
|
}>;
|
|
15
15
|
message: z.ZodString;
|
|
16
16
|
path: z.ZodString;
|
|
@@ -27,34 +27,34 @@ export declare const FabricValidate: import("../../../.pikku/function/pikku-func
|
|
|
27
27
|
root: string;
|
|
28
28
|
findings: {
|
|
29
29
|
id: string;
|
|
30
|
-
severity: "
|
|
30
|
+
severity: "error" | "info" | "warn";
|
|
31
31
|
message: string;
|
|
32
32
|
path: string;
|
|
33
33
|
fixHint: string;
|
|
34
34
|
}[];
|
|
35
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").
|
|
35
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunction<{
|
|
36
36
|
skipTypecheck?: boolean | undefined;
|
|
37
37
|
}, {
|
|
38
38
|
ok: boolean;
|
|
39
39
|
root: string;
|
|
40
40
|
findings: {
|
|
41
41
|
id: string;
|
|
42
|
-
severity: "
|
|
42
|
+
severity: "error" | "info" | "warn";
|
|
43
43
|
message: string;
|
|
44
44
|
path: string;
|
|
45
45
|
fixHint: string;
|
|
46
46
|
}[];
|
|
47
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices
|
|
47
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices> | import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
|
|
48
48
|
skipTypecheck?: boolean | undefined;
|
|
49
49
|
}, {
|
|
50
50
|
ok: boolean;
|
|
51
51
|
root: string;
|
|
52
52
|
findings: {
|
|
53
53
|
id: string;
|
|
54
|
-
severity: "
|
|
54
|
+
severity: "error" | "info" | "warn";
|
|
55
55
|
message: string;
|
|
56
56
|
path: string;
|
|
57
57
|
fixHint: string;
|
|
58
58
|
}[];
|
|
59
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices>, undefined, undefined>;
|
|
59
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices, unknown>, undefined, undefined>;
|
|
60
60
|
export declare const renderValidate: (_s: unknown, { ok, root, findings }: z.infer<typeof FabricValidateOutput>) => void;
|
|
@@ -17,7 +17,7 @@ export declare const FabricVariablesGet: import("../../../.pikku/function/pikku-
|
|
|
17
17
|
name: string;
|
|
18
18
|
exists: boolean;
|
|
19
19
|
value: unknown;
|
|
20
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").
|
|
20
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunction<{
|
|
21
21
|
name: string;
|
|
22
22
|
branch?: string | undefined;
|
|
23
23
|
json?: boolean | undefined;
|
|
@@ -25,7 +25,7 @@ export declare const FabricVariablesGet: import("../../../.pikku/function/pikku-
|
|
|
25
25
|
name: string;
|
|
26
26
|
exists: boolean;
|
|
27
27
|
value: unknown;
|
|
28
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices
|
|
28
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices> | import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
|
|
29
29
|
name: string;
|
|
30
30
|
branch?: string | undefined;
|
|
31
31
|
json?: boolean | undefined;
|
|
@@ -33,4 +33,4 @@ export declare const FabricVariablesGet: import("../../../.pikku/function/pikku-
|
|
|
33
33
|
name: string;
|
|
34
34
|
exists: boolean;
|
|
35
35
|
value: unknown;
|
|
36
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices>, undefined, undefined>;
|
|
36
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices, unknown>, undefined, undefined>;
|
|
@@ -10,23 +10,23 @@ export declare const FabricVariablesSetOutput: z.ZodObject<{
|
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
export declare const FabricVariablesSet: import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionConfig<{
|
|
12
12
|
name: string;
|
|
13
|
-
value: string;
|
|
14
13
|
branch?: string | undefined;
|
|
14
|
+
value: string;
|
|
15
15
|
}, {
|
|
16
16
|
name: string;
|
|
17
17
|
success: boolean;
|
|
18
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").
|
|
18
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunction<{
|
|
19
19
|
name: string;
|
|
20
|
-
value: string;
|
|
21
20
|
branch?: string | undefined;
|
|
21
|
+
value: string;
|
|
22
22
|
}, {
|
|
23
23
|
name: string;
|
|
24
24
|
success: boolean;
|
|
25
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices
|
|
25
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices> | import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
|
|
26
26
|
name: string;
|
|
27
|
-
value: string;
|
|
28
27
|
branch?: string | undefined;
|
|
28
|
+
value: string;
|
|
29
29
|
}, {
|
|
30
30
|
name: string;
|
|
31
31
|
success: boolean;
|
|
32
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices>, undefined, undefined>;
|
|
32
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices, unknown>, undefined, undefined>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { PikkuRPC } from '../sdk/pikku-rpc.gen.js';
|
|
2
|
+
/**
|
|
3
|
+
* Resolve the three things every `changes` command needs: the api url, a
|
|
4
|
+
* bearer, and the project the queue belongs to.
|
|
5
|
+
*
|
|
6
|
+
* `requireProject` is false for the per-item commands, which address a change
|
|
7
|
+
* by id and so work from any directory — a harness reading a queue is often
|
|
8
|
+
* not sitting in the checkout it is about to edit.
|
|
9
|
+
*/
|
|
10
|
+
export declare function changesContext(apiUrlOverride: string | undefined, projectIdOverride?: string): Promise<{
|
|
11
|
+
rpc: PikkuRPC;
|
|
12
|
+
projectId: string | null;
|
|
13
|
+
}>;
|
|
14
|
+
export declare function requireProjectId(projectId: string | null): string;
|
|
15
|
+
/**
|
|
16
|
+
* Split a repeatable comma-separated option into ids. `--change-ids a,b
|
|
17
|
+
* --change-ids c` and `--change-ids a --change-ids b` both mean the same list,
|
|
18
|
+
* because a harness building the flag from a shell loop will produce either.
|
|
19
|
+
*/
|
|
20
|
+
export declare function idList(values: string[] | undefined): string[] | undefined;
|
|
21
|
+
/** How long ago something happened — for timestamps in the past. */
|
|
22
|
+
export declare function age(at: Date | string): string;
|
|
23
|
+
/**
|
|
24
|
+
* How long is left — for a lease expiry, which is in the future. Passing one of
|
|
25
|
+
* those to `age` renders it as `-30m`, and an expiry already behind us is `0m`
|
|
26
|
+
* rather than a negative number, because the lease is simply over.
|
|
27
|
+
*/
|
|
28
|
+
export declare function remaining(at: Date | string): string;
|
|
29
|
+
declare const CONTENT_TYPES: {
|
|
30
|
+
readonly '.png': 'image/png';
|
|
31
|
+
readonly '.jpg': 'image/jpeg';
|
|
32
|
+
readonly '.jpeg': 'image/jpeg';
|
|
33
|
+
readonly '.webp': 'image/webp';
|
|
34
|
+
};
|
|
35
|
+
export type ImageContentType = (typeof CONTENT_TYPES)[keyof typeof CONTENT_TYPES];
|
|
36
|
+
/** The content type an image path implies, or undefined if the name says nothing. */
|
|
37
|
+
export declare function imageContentType(path: string): ImageContentType | undefined;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { extname } from 'node:path';
|
|
2
|
+
import { resolveApiContext } from './config.js';
|
|
3
|
+
import { getFabricRPC } from './http.js';
|
|
4
|
+
/**
|
|
5
|
+
* Resolve the three things every `changes` command needs: the api url, a
|
|
6
|
+
* bearer, and the project the queue belongs to.
|
|
7
|
+
*
|
|
8
|
+
* `requireProject` is false for the per-item commands, which address a change
|
|
9
|
+
* by id and so work from any directory — a harness reading a queue is often
|
|
10
|
+
* not sitting in the checkout it is about to edit.
|
|
11
|
+
*/
|
|
12
|
+
export async function changesContext(apiUrlOverride, projectIdOverride) {
|
|
13
|
+
const ctx = await resolveApiContext({ apiUrlOverride });
|
|
14
|
+
if (!ctx.token)
|
|
15
|
+
throw new Error('Not logged in. Run `pikku fabric login` first.');
|
|
16
|
+
return {
|
|
17
|
+
rpc: getFabricRPC({ apiUrl: ctx.apiUrl, token: ctx.token }),
|
|
18
|
+
projectId: projectIdOverride ?? ctx.projectId,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export function requireProjectId(projectId) {
|
|
22
|
+
if (!projectId)
|
|
23
|
+
throw new Error('No fabric project. Pass --project-id, or run `pikku fabric link` in the checkout.');
|
|
24
|
+
return projectId;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Split a repeatable comma-separated option into ids. `--change-ids a,b
|
|
28
|
+
* --change-ids c` and `--change-ids a --change-ids b` both mean the same list,
|
|
29
|
+
* because a harness building the flag from a shell loop will produce either.
|
|
30
|
+
*/
|
|
31
|
+
export function idList(values) {
|
|
32
|
+
if (!values?.length)
|
|
33
|
+
return undefined;
|
|
34
|
+
const ids = values
|
|
35
|
+
.flatMap((value) => value.split(','))
|
|
36
|
+
.map((id) => id.trim())
|
|
37
|
+
.filter(Boolean);
|
|
38
|
+
return ids.length ? ids : undefined;
|
|
39
|
+
}
|
|
40
|
+
const span = (minutes) => {
|
|
41
|
+
if (minutes < 60)
|
|
42
|
+
return `${minutes}m`;
|
|
43
|
+
if (minutes < 60 * 24)
|
|
44
|
+
return `${Math.round(minutes / 60)}h`;
|
|
45
|
+
return `${Math.round(minutes / (60 * 24))}d`;
|
|
46
|
+
};
|
|
47
|
+
/** How long ago something happened — for timestamps in the past. */
|
|
48
|
+
export function age(at) {
|
|
49
|
+
return span(Math.round((Date.now() - new Date(at).getTime()) / 60_000));
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* How long is left — for a lease expiry, which is in the future. Passing one of
|
|
53
|
+
* those to `age` renders it as `-30m`, and an expiry already behind us is `0m`
|
|
54
|
+
* rather than a negative number, because the lease is simply over.
|
|
55
|
+
*/
|
|
56
|
+
export function remaining(at) {
|
|
57
|
+
const minutes = Math.round((new Date(at).getTime() - Date.now()) / 60_000);
|
|
58
|
+
return span(Math.max(0, minutes));
|
|
59
|
+
}
|
|
60
|
+
const CONTENT_TYPES = {
|
|
61
|
+
'.png': 'image/png',
|
|
62
|
+
'.jpg': 'image/jpeg',
|
|
63
|
+
'.jpeg': 'image/jpeg',
|
|
64
|
+
'.webp': 'image/webp',
|
|
65
|
+
};
|
|
66
|
+
/** The content type an image path implies, or undefined if the name says nothing. */
|
|
67
|
+
export function imageContentType(path) {
|
|
68
|
+
const extension = extname(path).toLowerCase();
|
|
69
|
+
return CONTENT_TYPES[extension];
|
|
70
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PikkuError } from '@pikku/core/errors';
|
|
2
|
+
/**
|
|
3
|
+
* A fabric command refusing to run because something the user controls is not
|
|
4
|
+
* ready yet — a dirty tree, a branch with no upstream, a local head that is not
|
|
5
|
+
* the remote's, a required argument left off.
|
|
6
|
+
*
|
|
7
|
+
* These are not crashes. They are the outcomes the command exists to check for,
|
|
8
|
+
* and every message is already written as an instruction ("Push or pull main
|
|
9
|
+
* before deploying"). Raised as a `PikkuError`, which is how the rest of the
|
|
10
|
+
* repo marks an error whose message is the whole output: `formatCLIError` prints
|
|
11
|
+
* it alone, and keeps the full stack for everything else — an unexpected
|
|
12
|
+
* `TypeError` with its frames removed is a bug nobody can diagnose. `--verbose`
|
|
13
|
+
* or `PIKKU_DEBUG` still shows the stack when someone wants it.
|
|
14
|
+
*
|
|
15
|
+
* Thrown as a plain `Error` these read as a crash in pikku: ten frames of
|
|
16
|
+
* `@pikku/core` function-runner and cli-runner internals in front of the one
|
|
17
|
+
* sentence that says what to do. The exit code is unchanged — non-zero either
|
|
18
|
+
* way.
|
|
19
|
+
*/
|
|
20
|
+
export declare class FabricPreconditionError extends PikkuError {
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PikkuError } from '@pikku/core/errors';
|
|
2
|
+
/**
|
|
3
|
+
* A fabric command refusing to run because something the user controls is not
|
|
4
|
+
* ready yet — a dirty tree, a branch with no upstream, a local head that is not
|
|
5
|
+
* the remote's, a required argument left off.
|
|
6
|
+
*
|
|
7
|
+
* These are not crashes. They are the outcomes the command exists to check for,
|
|
8
|
+
* and every message is already written as an instruction ("Push or pull main
|
|
9
|
+
* before deploying"). Raised as a `PikkuError`, which is how the rest of the
|
|
10
|
+
* repo marks an error whose message is the whole output: `formatCLIError` prints
|
|
11
|
+
* it alone, and keeps the full stack for everything else — an unexpected
|
|
12
|
+
* `TypeError` with its frames removed is a bug nobody can diagnose. `--verbose`
|
|
13
|
+
* or `PIKKU_DEBUG` still shows the stack when someone wants it.
|
|
14
|
+
*
|
|
15
|
+
* Thrown as a plain `Error` these read as a crash in pikku: ten frames of
|
|
16
|
+
* `@pikku/core` function-runner and cli-runner internals in front of the one
|
|
17
|
+
* sentence that says what to do. The exit code is unchanged — non-zero either
|
|
18
|
+
* way.
|
|
19
|
+
*/
|
|
20
|
+
export class FabricPreconditionError extends PikkuError {
|
|
21
|
+
}
|
|
@@ -3,8 +3,8 @@ import type { ReportEnvironment } from './report-environment.js';
|
|
|
3
3
|
export declare const FindingInput: z.ZodObject<{
|
|
4
4
|
title: z.ZodString;
|
|
5
5
|
kind: z.ZodEnum<{
|
|
6
|
-
product: "product";
|
|
7
6
|
harness: "harness";
|
|
7
|
+
product: "product";
|
|
8
8
|
}>;
|
|
9
9
|
model: z.ZodString;
|
|
10
10
|
expected: z.ZodString;
|
|
@@ -20,9 +20,9 @@ export declare const FindingInput: z.ZodObject<{
|
|
|
20
20
|
unresolved: z.ZodOptional<z.ZodBoolean>;
|
|
21
21
|
area: z.ZodOptional<z.ZodString>;
|
|
22
22
|
surface: z.ZodOptional<z.ZodEnum<{
|
|
23
|
-
local: "local";
|
|
24
|
-
deployed: "deployed";
|
|
25
23
|
both: "both";
|
|
24
|
+
deployed: "deployed";
|
|
25
|
+
local: "local";
|
|
26
26
|
}>>;
|
|
27
27
|
cost: z.ZodOptional<z.ZodString>;
|
|
28
28
|
run: z.ZodOptional<z.ZodString>;
|
|
@@ -41,8 +41,9 @@ export interface DeploySafetyResult {
|
|
|
41
41
|
remoteSha: string;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* Spec §10 deploy ref safety checks. Throws on any
|
|
45
|
-
* message
|
|
44
|
+
* Spec §10 deploy ref safety checks. Throws `FabricPreconditionError` on any
|
|
45
|
+
* failure, with a message written to be the whole output; returns the resolved
|
|
46
|
+
* commit context on pass.
|
|
46
47
|
*/
|
|
47
48
|
export declare function assertDeploySafety(cwd?: string): Promise<DeploySafetyResult>;
|
|
48
49
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { spawn } from 'node:child_process';
|
|
2
|
+
import { FabricPreconditionError } from './errors.js';
|
|
2
3
|
/**
|
|
3
4
|
* Local git probes for the deploy safety checks (clean tree, HEAD == remote,
|
|
4
5
|
* ref resolution). Shell out to `git` rather than depend on simple-git —
|
|
@@ -137,22 +138,23 @@ export async function isAncestor(candidate, mainRef, cwd) {
|
|
|
137
138
|
}
|
|
138
139
|
}
|
|
139
140
|
/**
|
|
140
|
-
* Spec §10 deploy ref safety checks. Throws on any
|
|
141
|
-
* message
|
|
141
|
+
* Spec §10 deploy ref safety checks. Throws `FabricPreconditionError` on any
|
|
142
|
+
* failure, with a message written to be the whole output; returns the resolved
|
|
143
|
+
* commit context on pass.
|
|
142
144
|
*/
|
|
143
145
|
export async function assertDeploySafety(cwd) {
|
|
144
146
|
if (!(await isWorkingTreeClean(cwd))) {
|
|
145
|
-
throw new
|
|
147
|
+
throw new FabricPreconditionError('Deployment blocked: uncommitted changes detected.\nCommit and push your changes before deploying.');
|
|
146
148
|
}
|
|
147
149
|
const branch = await currentBranch(cwd);
|
|
148
150
|
const upstream = await upstreamBranch(cwd);
|
|
149
151
|
if (!upstream) {
|
|
150
|
-
throw new
|
|
152
|
+
throw new FabricPreconditionError(`Deployment blocked: branch ${branch} has no upstream.\nPush it (\`git push -u origin ${branch}\`) before deploying.`);
|
|
151
153
|
}
|
|
152
154
|
const head = await headSha(cwd);
|
|
153
155
|
const remote = await remoteHeadSha(upstream, cwd);
|
|
154
156
|
if (head !== remote) {
|
|
155
|
-
throw new
|
|
157
|
+
throw new FabricPreconditionError(`Deployment blocked: local HEAD ${head.slice(0, 8)} ≠ remote ${remote.slice(0, 8)} (${upstream}).\nPush or pull before deploying.`);
|
|
156
158
|
}
|
|
157
159
|
return { branch, headSha: head, upstream, remoteSha: remote };
|
|
158
160
|
}
|
|
@@ -167,15 +169,15 @@ export async function assertNamedBranchDeploySafety(branch, cwd) {
|
|
|
167
169
|
head = await localBranchHeadSha(branch, cwd);
|
|
168
170
|
}
|
|
169
171
|
catch (error) {
|
|
170
|
-
throw new
|
|
172
|
+
throw new FabricPreconditionError(`Deployment blocked: local branch ${branch} does not exist (${error.message}).\nFetch or create it before deploying.`);
|
|
171
173
|
}
|
|
172
174
|
const upstream = await upstreamForBranch(branch, cwd);
|
|
173
175
|
if (!upstream) {
|
|
174
|
-
throw new
|
|
176
|
+
throw new FabricPreconditionError(`Deployment blocked: branch ${branch} has no upstream.\nPush it (\`git push -u origin ${branch}\`) before deploying.`);
|
|
175
177
|
}
|
|
176
178
|
const remote = await remoteHeadSha(upstream, cwd);
|
|
177
179
|
if (head !== remote) {
|
|
178
|
-
throw new
|
|
180
|
+
throw new FabricPreconditionError(`Deployment blocked: ${branch} ${head.slice(0, 8)} ≠ remote ${remote.slice(0, 8)} (${upstream}).\nPush or pull ${branch} before deploying.`);
|
|
179
181
|
}
|
|
180
182
|
return { branch, headSha: head, upstream, remoteSha: remote };
|
|
181
183
|
}
|
|
@@ -7,6 +7,26 @@
|
|
|
7
7
|
* the json case. They just turn returned data into a pretty, coloured table.
|
|
8
8
|
*/
|
|
9
9
|
type Cell = string | number | null | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Text that came back over the wire — a change title, an id, a route, an
|
|
12
|
+
* attachment label — was typed by whoever filed it and is about to be printed
|
|
13
|
+
* to a terminal. Escape sequences in it would move the cursor, repaint the
|
|
14
|
+
* screen or set the window title, so every remote string passes through here on
|
|
15
|
+
* the way to `console.log`.
|
|
16
|
+
*
|
|
17
|
+
* This is the inline one, and it takes the line endings with it: a title
|
|
18
|
+
* printed as one field of one row can otherwise carry a newline and forge a
|
|
19
|
+
* whole further line of output — a second change, a different status — that
|
|
20
|
+
* nothing in the response ever said. Multi-line text goes through `safeBlock`.
|
|
21
|
+
*/
|
|
22
|
+
export declare const safe: (s: string) => string;
|
|
23
|
+
/**
|
|
24
|
+
* The same, for the two places a remote string is genuinely a block of prose —
|
|
25
|
+
* a change body and a thread message. Newlines and tabs survive there because
|
|
26
|
+
* the text was written with them; a lone carriage return does not, since it
|
|
27
|
+
* rewrites the line already printed rather than starting a new one.
|
|
28
|
+
*/
|
|
29
|
+
export declare const safeBlock: (s: string) => string;
|
|
10
30
|
/** Dim, secondary text (hints, empty-state lines, labels). */
|
|
11
31
|
export declare const dim: (s: string) => string;
|
|
12
32
|
/** Status / change colours — mirror the console UI: green = good/added,
|
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
const cell = (c) => c === null || c === undefined ? '' : String(c);
|
|
3
|
+
/**
|
|
4
|
+
* Text that came back over the wire — a change title, an id, a route, an
|
|
5
|
+
* attachment label — was typed by whoever filed it and is about to be printed
|
|
6
|
+
* to a terminal. Escape sequences in it would move the cursor, repaint the
|
|
7
|
+
* screen or set the window title, so every remote string passes through here on
|
|
8
|
+
* the way to `console.log`.
|
|
9
|
+
*
|
|
10
|
+
* This is the inline one, and it takes the line endings with it: a title
|
|
11
|
+
* printed as one field of one row can otherwise carry a newline and forge a
|
|
12
|
+
* whole further line of output — a second change, a different status — that
|
|
13
|
+
* nothing in the response ever said. Multi-line text goes through `safeBlock`.
|
|
14
|
+
*/
|
|
15
|
+
export const safe = (s) =>
|
|
16
|
+
// eslint-disable-next-line no-control-regex
|
|
17
|
+
s.replace(/[\x00-\x1f\x7f-\x9f]/g, '');
|
|
18
|
+
/**
|
|
19
|
+
* The same, for the two places a remote string is genuinely a block of prose —
|
|
20
|
+
* a change body and a thread message. Newlines and tabs survive there because
|
|
21
|
+
* the text was written with them; a lone carriage return does not, since it
|
|
22
|
+
* rewrites the line already printed rather than starting a new one.
|
|
23
|
+
*/
|
|
24
|
+
export const safeBlock = (s) =>
|
|
25
|
+
// eslint-disable-next-line no-control-regex
|
|
26
|
+
s.replace(/[\x00-\x08\x0b-\x1f\x7f-\x9f]/g, '');
|
|
3
27
|
/** Dim, secondary text (hints, empty-state lines, labels). */
|
|
4
28
|
export const dim = (s) => chalk.dim(s);
|
|
5
29
|
/** Status / change colours — mirror the console UI: green = good/added,
|
|
@@ -12,13 +36,14 @@ const BUSY = /^(deploying|planned|suspended|pending|building|provisioning|queued
|
|
|
12
36
|
const BAD = /^(failed|error|crashed|unhealthy|dead|removed|cancelled|canceled)$/i;
|
|
13
37
|
/** Colour a status token by its meaning (falls back to dim). */
|
|
14
38
|
export function statusColor(status) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
39
|
+
const token = safe(status);
|
|
40
|
+
if (GOOD.test(token))
|
|
41
|
+
return added(token);
|
|
42
|
+
if (BUSY.test(token))
|
|
43
|
+
return changed(token);
|
|
44
|
+
if (BAD.test(token))
|
|
45
|
+
return removed(token);
|
|
46
|
+
return dim(token);
|
|
22
47
|
}
|
|
23
48
|
// Strip ANSI so coloured cells still measure/align correctly.
|
|
24
49
|
const visibleLen = (s) => s.replace(/\x1b\[[0-9;]*m/g, '').length;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const all: import("#pikku/function").PikkuFunctionConfig<void, void, "rpc" | "session", import("#pikku/function").
|
|
1
|
+
export declare const all: import("#pikku/function").PikkuFunctionConfig<void, void, "rpc" | "session", import("#pikku/function").PikkuFunction<void, void, "rpc" | "session", import("#pikku/function").WiredServices> | import("#pikku/function").PikkuFunctionSessionless<void, void, "rpc" | "session", import("#pikku/function").WiredServices, unknown>, undefined, undefined>;
|
|
@@ -11,5 +11,5 @@ export declare function parseBunAudit(raw: string): SecurityAuditIssue[];
|
|
|
11
11
|
export declare function semverLevel(current: string, latest: string): SecurityAuditUpdate['level'];
|
|
12
12
|
export declare function parseBunOutdated(raw: string): SecurityAuditUpdate[];
|
|
13
13
|
export declare function summarise(tool: PackageManager, issues: SecurityAuditIssue[], updates: SecurityAuditUpdate[], note?: string): SecurityAuditReport;
|
|
14
|
-
export declare const pikkuAudit: import("#pikku/function").PikkuFunctionConfig<AuditInput, void, "rpc" | "session", import("#pikku/function").
|
|
14
|
+
export declare const pikkuAudit: import("#pikku/function").PikkuFunctionConfig<AuditInput, void, "rpc" | "session", import("#pikku/function").PikkuFunction<AuditInput, void, "rpc" | "session", import("#pikku/function").WiredServices> | import("#pikku/function").PikkuFunctionSessionless<AuditInput, void, "rpc" | "session", import("#pikku/function").WiredServices, unknown>, undefined, undefined>;
|
|
15
15
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const binary: import("#pikku/function").PikkuFunctionConfig<{
|
|
2
2
|
compileTarget?: string;
|
|
3
|
-
}, void, "rpc" | "session", import("#pikku/function").
|
|
3
|
+
}, void, "rpc" | "session", import("#pikku/function").PikkuFunction<{
|
|
4
4
|
compileTarget?: string;
|
|
5
|
-
}, void, "rpc" | "session", import("#pikku/function").WiredServices
|
|
5
|
+
}, void, "rpc" | "session", import("#pikku/function").WiredServices> | import("#pikku/function").PikkuFunctionSessionless<{
|
|
6
6
|
compileTarget?: string;
|
|
7
|
-
}, void, "rpc" | "session", import("#pikku/function").WiredServices>, undefined, undefined>;
|
|
7
|
+
}, void, "rpc" | "session", import("#pikku/function").WiredServices, unknown>, undefined, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const bootstrap: import("#pikku/function").PikkuFunctionConfig<void, void, "rpc" | "session", import("#pikku/function").
|
|
1
|
+
export declare const bootstrap: import("#pikku/function").PikkuFunctionConfig<void, void, "rpc" | "session", import("#pikku/function").PikkuFunction<void, void, "rpc" | "session", import("#pikku/function").WiredServices> | import("#pikku/function").PikkuFunctionSessionless<void, void, "rpc" | "session", import("#pikku/function").WiredServices, unknown>, undefined, undefined>;
|
|
@@ -7,6 +7,8 @@ export const bootstrap = pikkuVoidFunc({
|
|
|
7
7
|
await rpc.invoke('pikkuScopes', { bootstrap: true });
|
|
8
8
|
// Before function types too: personas import SystemRoleName.
|
|
9
9
|
await rpc.invoke('pikkuRoles', { bootstrap: true });
|
|
10
|
+
// And before them too: they import FeatureFlagName from the flags codegen.
|
|
11
|
+
await rpc.invoke('pikkuFlags', { bootstrap: true });
|
|
10
12
|
await rpc.invoke('pikkuPersonas', { bootstrap: true });
|
|
11
13
|
await rpc.invoke('pikkuFunctionTypesSplit', { bootstrap: true });
|
|
12
14
|
// Stub auth.types.ts (if better-auth is used) so the pikkuBetterAuth
|
|
@@ -24,6 +26,7 @@ export const bootstrap = pikkuVoidFunc({
|
|
|
24
26
|
await rpc.invoke('pikkuSecretDefinitionTypes');
|
|
25
27
|
await rpc.invoke('pikkuVariableDefinitionTypes');
|
|
26
28
|
await rpc.invoke('pikkuScopeDefinitionTypes');
|
|
29
|
+
await rpc.invoke('pikkuAnalyticsDefinitionTypes');
|
|
27
30
|
await rpc.invoke('pikkuCLITypes', { bootstrap: true });
|
|
28
31
|
await rpc.invoke('pikkuLeafIndexes');
|
|
29
32
|
if (logger.hasCriticalErrors()) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const dbAudit: import("#pikku/function").PikkuFunctionConfig<{}, void, "rpc" | "session", import("#pikku/function").
|
|
1
|
+
export declare const dbAudit: import("#pikku/function").PikkuFunctionConfig<{}, void, "rpc" | "session", import("#pikku/function").PikkuFunction<{}, void, "rpc" | "session", import("#pikku/function").WiredServices> | import("#pikku/function").PikkuFunctionSessionless<{}, void, "rpc" | "session", import("#pikku/function").WiredServices, unknown>, undefined, undefined>;
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
* premise. A database that is behind gets the same report `db check` gives —
|
|
11
11
|
* baselining it would bury a real gap under a history claiming otherwise.
|
|
12
12
|
*/
|
|
13
|
-
export declare const dbBaseline: import("#pikku/function").PikkuFunctionConfig<{}, void, "rpc" | "session", import("#pikku/function").
|
|
13
|
+
export declare const dbBaseline: import("#pikku/function").PikkuFunctionConfig<{}, void, "rpc" | "session", import("#pikku/function").PikkuFunction<{}, void, "rpc" | "session", import("#pikku/function").WiredServices> | import("#pikku/function").PikkuFunctionSessionless<{}, void, "rpc" | "session", import("#pikku/function").WiredServices, unknown>, undefined, undefined>;
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
* fail: something created them outside the migration history, which is worth
|
|
10
10
|
* seeing but is not this command's to fix.
|
|
11
11
|
*/
|
|
12
|
-
export declare const dbCheck: import("#pikku/function").PikkuFunctionConfig<{}, void, "rpc" | "session", import("#pikku/function").
|
|
12
|
+
export declare const dbCheck: import("#pikku/function").PikkuFunctionConfig<{}, void, "rpc" | "session", import("#pikku/function").PikkuFunction<{}, void, "rpc" | "session", import("#pikku/function").WiredServices> | import("#pikku/function").PikkuFunctionSessionless<{}, void, "rpc" | "session", import("#pikku/function").WiredServices, unknown>, undefined, undefined>;
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* introspects that, so `pikku all` can be given an accurate table zod on a
|
|
9
9
|
* machine with no database reachable at all.
|
|
10
10
|
*/
|
|
11
|
-
export declare const dbCodegen: import("#pikku/function").PikkuFunctionConfig<{}, void, "rpc" | "session", import("#pikku/function").
|
|
11
|
+
export declare const dbCodegen: import("#pikku/function").PikkuFunctionConfig<{}, void, "rpc" | "session", import("#pikku/function").PikkuFunction<{}, void, "rpc" | "session", import("#pikku/function").WiredServices> | import("#pikku/function").PikkuFunctionSessionless<{}, void, "rpc" | "session", import("#pikku/function").WiredServices, unknown>, undefined, undefined>;
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
*
|
|
10
10
|
* Run this from the addon's build, beside the rest of its codegen.
|
|
11
11
|
*/
|
|
12
|
-
export declare const dbExport: import("#pikku/function").PikkuFunctionConfig<{}, void, "rpc" | "session", import("#pikku/function").
|
|
12
|
+
export declare const dbExport: import("#pikku/function").PikkuFunctionConfig<{}, void, "rpc" | "session", import("#pikku/function").PikkuFunction<{}, void, "rpc" | "session", import("#pikku/function").WiredServices> | import("#pikku/function").PikkuFunctionSessionless<{}, void, "rpc" | "session", import("#pikku/function").WiredServices, unknown>, undefined, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const dbGenerate: import("#pikku/function").PikkuFunctionConfig<{}, void, "rpc" | "session", import("#pikku/function").
|
|
1
|
+
export declare const dbGenerate: import("#pikku/function").PikkuFunctionConfig<{}, void, "rpc" | "session", import("#pikku/function").PikkuFunction<{}, void, "rpc" | "session", import("#pikku/function").WiredServices> | import("#pikku/function").PikkuFunctionSessionless<{}, void, "rpc" | "session", import("#pikku/function").WiredServices, unknown>, undefined, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const dbMigrate: import("#pikku/function").PikkuFunctionConfig<{}, void, "rpc" | "session", import("#pikku/function").
|
|
1
|
+
export declare const dbMigrate: import("#pikku/function").PikkuFunctionConfig<{}, void, "rpc" | "session", import("#pikku/function").PikkuFunction<{}, void, "rpc" | "session", import("#pikku/function").WiredServices> | import("#pikku/function").PikkuFunctionSessionless<{}, void, "rpc" | "session", import("#pikku/function").WiredServices, unknown>, undefined, undefined>;
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const dbReset: import("#pikku/function").PikkuFunctionConfig<{
|
|
10
10
|
noSeed?: boolean;
|
|
11
|
-
}, void, "rpc" | "session", import("#pikku/function").
|
|
11
|
+
}, void, "rpc" | "session", import("#pikku/function").PikkuFunction<{
|
|
12
12
|
noSeed?: boolean;
|
|
13
|
-
}, void, "rpc" | "session", import("#pikku/function").WiredServices
|
|
13
|
+
}, void, "rpc" | "session", import("#pikku/function").WiredServices> | import("#pikku/function").PikkuFunctionSessionless<{
|
|
14
14
|
noSeed?: boolean;
|
|
15
|
-
}, void, "rpc" | "session", import("#pikku/function").WiredServices>, undefined, undefined>;
|
|
15
|
+
}, void, "rpc" | "session", import("#pikku/function").WiredServices, unknown>, undefined, undefined>;
|
|
@@ -21,7 +21,7 @@ export declare const deployApply: import("#pikku/function").PikkuFunctionConfig<
|
|
|
21
21
|
desktopUrl?: string;
|
|
22
22
|
resultFile?: string;
|
|
23
23
|
debugArtifacts?: boolean;
|
|
24
|
-
}, void, "rpc" | "session", import("#pikku/function").
|
|
24
|
+
}, void, "rpc" | "session", import("#pikku/function").PikkuFunction<{
|
|
25
25
|
fromPlan?: boolean;
|
|
26
26
|
provider?: string;
|
|
27
27
|
runtime?: string;
|
|
@@ -29,7 +29,7 @@ export declare const deployApply: import("#pikku/function").PikkuFunctionConfig<
|
|
|
29
29
|
desktopUrl?: string;
|
|
30
30
|
resultFile?: string;
|
|
31
31
|
debugArtifacts?: boolean;
|
|
32
|
-
}, void, "rpc" | "session", import("#pikku/function").WiredServices
|
|
32
|
+
}, void, "rpc" | "session", import("#pikku/function").WiredServices> | import("#pikku/function").PikkuFunctionSessionless<{
|
|
33
33
|
fromPlan?: boolean;
|
|
34
34
|
provider?: string;
|
|
35
35
|
runtime?: string;
|
|
@@ -37,4 +37,4 @@ export declare const deployApply: import("#pikku/function").PikkuFunctionConfig<
|
|
|
37
37
|
desktopUrl?: string;
|
|
38
38
|
resultFile?: string;
|
|
39
39
|
debugArtifacts?: boolean;
|
|
40
|
-
}, void, "rpc" | "session", import("#pikku/function").WiredServices>, undefined, undefined>;
|
|
40
|
+
}, void, "rpc" | "session", import("#pikku/function").WiredServices, unknown>, undefined, undefined>;
|