@pikku/cli 0.12.145 → 0.12.152
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 +36 -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 +207 -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 +207 -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 +253 -26
- 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 +11 -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 +35 -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/FabricChangesFileInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricChangesFileOutput.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 +1 -1
- package/dist/src/deploy/analyzer/analyzer.js +40 -2
- package/dist/src/deploy/analyzer/grouping.d.ts +41 -7
- package/dist/src/deploy/analyzer/grouping.js +76 -2
- package/dist/src/deploy/build-pipeline.js +4 -0
- package/dist/src/fabric/fabric-commands.d.ts +360 -138
- package/dist/src/fabric/fabric-commands.js +166 -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-file.function.d.ts +64 -0
- package/dist/src/fabric/functions/changes-file.function.js +56 -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 +35 -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 +1 -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 -9620
- 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
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { ListChangesOutput } from '../sdk/rpc-map.gen.d.js';
|
|
3
|
+
export declare const FabricChangesListInput: z.ZodObject<{
|
|
4
|
+
apiUrl: z.ZodOptional<z.ZodString>;
|
|
5
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
6
|
+
stageId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
route: z.ZodOptional<z.ZodString>;
|
|
8
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
9
|
+
pickupOnly: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
includeDone: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const FabricChangesListOutput: z.ZodObject<{
|
|
14
|
+
changes: z.ZodAny;
|
|
15
|
+
groups: z.ZodAny;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export declare const FabricChangesList: import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionConfig<{
|
|
18
|
+
apiUrl?: string | undefined;
|
|
19
|
+
projectId?: string | undefined;
|
|
20
|
+
stageId?: string | undefined;
|
|
21
|
+
route?: string | undefined;
|
|
22
|
+
groupId?: string | undefined;
|
|
23
|
+
pickupOnly?: boolean | undefined;
|
|
24
|
+
includeDone?: boolean | undefined;
|
|
25
|
+
limit?: number | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
changes: any;
|
|
28
|
+
groups: any;
|
|
29
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunction<{
|
|
30
|
+
apiUrl?: string | undefined;
|
|
31
|
+
projectId?: string | undefined;
|
|
32
|
+
stageId?: string | undefined;
|
|
33
|
+
route?: string | undefined;
|
|
34
|
+
groupId?: string | undefined;
|
|
35
|
+
pickupOnly?: boolean | undefined;
|
|
36
|
+
includeDone?: boolean | undefined;
|
|
37
|
+
limit?: number | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
changes: any;
|
|
40
|
+
groups: any;
|
|
41
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices> | import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
|
|
42
|
+
apiUrl?: string | undefined;
|
|
43
|
+
projectId?: string | undefined;
|
|
44
|
+
stageId?: string | undefined;
|
|
45
|
+
route?: string | undefined;
|
|
46
|
+
groupId?: string | undefined;
|
|
47
|
+
pickupOnly?: boolean | undefined;
|
|
48
|
+
includeDone?: boolean | undefined;
|
|
49
|
+
limit?: number | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
changes: any;
|
|
52
|
+
groups: any;
|
|
53
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices, unknown>, undefined, undefined>;
|
|
54
|
+
type Change = ListChangesOutput['changes'][number];
|
|
55
|
+
type Group = ListChangesOutput['groups'][number];
|
|
56
|
+
export declare const renderChangesList: (_s: unknown, { changes, groups }: {
|
|
57
|
+
changes: Change[];
|
|
58
|
+
groups: Group[];
|
|
59
|
+
}) => void;
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { pikkuSessionlessFunc } from '../../../.pikku/function/index.js';
|
|
3
|
+
import { age, changesContext, remaining, requireProjectId, } from '../lib/changes.js';
|
|
4
|
+
import { dim, safe, statusColor } from '../lib/output.js';
|
|
5
|
+
export const FabricChangesListInput = z.object({
|
|
6
|
+
apiUrl: z.string().optional(),
|
|
7
|
+
projectId: z.string().optional(),
|
|
8
|
+
stageId: z.string().optional(),
|
|
9
|
+
route: z.string().optional(),
|
|
10
|
+
groupId: z.string().optional(),
|
|
11
|
+
pickupOnly: z.boolean().optional(),
|
|
12
|
+
includeDone: z.boolean().optional(),
|
|
13
|
+
limit: z.number().optional(),
|
|
14
|
+
});
|
|
15
|
+
export const FabricChangesListOutput = z.object({
|
|
16
|
+
changes: z.any(),
|
|
17
|
+
groups: z.any(),
|
|
18
|
+
});
|
|
19
|
+
export const FabricChangesList = pikkuSessionlessFunc({
|
|
20
|
+
description: 'List the open changes filed against a project.',
|
|
21
|
+
input: FabricChangesListInput,
|
|
22
|
+
output: FabricChangesListOutput,
|
|
23
|
+
func: async (_services, input) => {
|
|
24
|
+
const { rpc, projectId } = await changesContext(input.apiUrl, input.projectId);
|
|
25
|
+
return await rpc.invoke('listChanges', {
|
|
26
|
+
projectId: requireProjectId(projectId),
|
|
27
|
+
stageId: input.stageId,
|
|
28
|
+
route: input.route,
|
|
29
|
+
groupId: input.groupId,
|
|
30
|
+
pickupOnly: input.pickupOnly ?? false,
|
|
31
|
+
includeDone: input.includeDone ?? false,
|
|
32
|
+
limit: input.limit ?? 50,
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
const line = (change) => {
|
|
37
|
+
const flags = [
|
|
38
|
+
statusColor(change.status),
|
|
39
|
+
change.held ? dim('held') : null,
|
|
40
|
+
change.route ? safe(change.route) : null,
|
|
41
|
+
]
|
|
42
|
+
.filter(Boolean)
|
|
43
|
+
.join(' ');
|
|
44
|
+
console.log(` #${safe(change.shortId)} ${safe(change.title)}`);
|
|
45
|
+
console.log(` ${flags} ${age(change.createdAt)} ago ${dim(safe(change.changeId))}`);
|
|
46
|
+
const named = (change.capture?.elements ?? [])
|
|
47
|
+
.map((element) => element.testId ?? element.sourceAnchor ?? element.cssPath)
|
|
48
|
+
.filter((name) => !!name)
|
|
49
|
+
.map(safe);
|
|
50
|
+
if (named.length)
|
|
51
|
+
console.log(dim(` circled: ${named.join(', ')}`));
|
|
52
|
+
};
|
|
53
|
+
export const renderChangesList = (_s, { changes, groups }) => {
|
|
54
|
+
if (!changes.length) {
|
|
55
|
+
console.log(dim(' Nothing open.'));
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const listed = new Set(groups.map((group) => group.groupId));
|
|
59
|
+
const ungrouped = changes.filter((change) => !change.groupId);
|
|
60
|
+
const grouped = changes.filter((change) => change.groupId);
|
|
61
|
+
if (ungrouped.length) {
|
|
62
|
+
console.log(`unclaimed (${ungrouped.length})`);
|
|
63
|
+
ungrouped.forEach(line);
|
|
64
|
+
}
|
|
65
|
+
for (const group of groups) {
|
|
66
|
+
const members = grouped.filter((change) => change.groupId === group.groupId);
|
|
67
|
+
if (!members.length)
|
|
68
|
+
continue;
|
|
69
|
+
const lease = group.claimedBy && group.claimExpiresAt
|
|
70
|
+
? `claimed by ${safe(group.claimedBy)}, ${remaining(group.claimExpiresAt)} left`
|
|
71
|
+
: 'unclaimed';
|
|
72
|
+
console.log('');
|
|
73
|
+
console.log(`${safe(group.title)} ${dim(`(${lease}) ${safe(group.groupId)}`)}`);
|
|
74
|
+
members.forEach(line);
|
|
75
|
+
}
|
|
76
|
+
const orphaned = grouped.filter((change) => !listed.has(change.groupId));
|
|
77
|
+
if (orphaned.length) {
|
|
78
|
+
console.log('');
|
|
79
|
+
console.log(dim('grouped, group not listed'));
|
|
80
|
+
orphaned.forEach(line);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { AttachChangeShotOutput } from '../sdk/rpc-map.gen.d.js';
|
|
3
|
+
export declare const FabricChangesShotInput: z.ZodObject<{
|
|
4
|
+
apiUrl: z.ZodOptional<z.ZodString>;
|
|
5
|
+
changeId: z.ZodString;
|
|
6
|
+
label: z.ZodString;
|
|
7
|
+
image: z.ZodOptional<z.ZodString>;
|
|
8
|
+
imageBase64: z.ZodOptional<z.ZodString>;
|
|
9
|
+
contentType: z.ZodOptional<z.ZodEnum<{
|
|
10
|
+
"image/jpeg": "image/jpeg";
|
|
11
|
+
"image/png": "image/png";
|
|
12
|
+
"image/webp": "image/webp";
|
|
13
|
+
}>>;
|
|
14
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
15
|
+
evidence: "evidence";
|
|
16
|
+
option: "option";
|
|
17
|
+
}>>;
|
|
18
|
+
authorName: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export declare const FabricChangesShotOutput: z.ZodObject<{
|
|
21
|
+
message: z.ZodAny;
|
|
22
|
+
key: z.ZodString;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
/**
|
|
25
|
+
* `--image <path>` rather than only the raw base64 the API takes: this command
|
|
26
|
+
* runs on the machine that rendered the variant, so making the caller shell out
|
|
27
|
+
* to `base64` puts a multi-megabyte argument on the command line for no reason.
|
|
28
|
+
*/
|
|
29
|
+
export declare const FabricChangesShot: import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionConfig<{
|
|
30
|
+
apiUrl?: string | undefined;
|
|
31
|
+
changeId: string;
|
|
32
|
+
label: string;
|
|
33
|
+
image?: string | undefined;
|
|
34
|
+
imageBase64?: string | undefined;
|
|
35
|
+
contentType?: "image/jpeg" | "image/png" | "image/webp" | undefined;
|
|
36
|
+
kind?: "evidence" | "option" | undefined;
|
|
37
|
+
authorName?: string | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
message: any;
|
|
40
|
+
key: string;
|
|
41
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunction<{
|
|
42
|
+
apiUrl?: string | undefined;
|
|
43
|
+
changeId: string;
|
|
44
|
+
label: string;
|
|
45
|
+
image?: string | undefined;
|
|
46
|
+
imageBase64?: string | undefined;
|
|
47
|
+
contentType?: "image/jpeg" | "image/png" | "image/webp" | undefined;
|
|
48
|
+
kind?: "evidence" | "option" | undefined;
|
|
49
|
+
authorName?: string | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
message: any;
|
|
52
|
+
key: string;
|
|
53
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices> | import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
|
|
54
|
+
apiUrl?: string | undefined;
|
|
55
|
+
changeId: string;
|
|
56
|
+
label: string;
|
|
57
|
+
image?: string | undefined;
|
|
58
|
+
imageBase64?: string | undefined;
|
|
59
|
+
contentType?: "image/jpeg" | "image/png" | "image/webp" | undefined;
|
|
60
|
+
kind?: "evidence" | "option" | undefined;
|
|
61
|
+
authorName?: string | undefined;
|
|
62
|
+
}, {
|
|
63
|
+
message: any;
|
|
64
|
+
key: string;
|
|
65
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices, unknown>, undefined, undefined>;
|
|
66
|
+
export declare const renderChangesShot: (_s: unknown, { message, key }: AttachChangeShotOutput) => void;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { readFile } from 'node:fs/promises';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { pikkuSessionlessFunc } from '../../../.pikku/function/index.js';
|
|
4
|
+
import { changesContext, imageContentType, } from '../lib/changes.js';
|
|
5
|
+
import { dim, safe } from '../lib/output.js';
|
|
6
|
+
export const FabricChangesShotInput = z.object({
|
|
7
|
+
apiUrl: z.string().optional(),
|
|
8
|
+
changeId: z.string(),
|
|
9
|
+
label: z.string(),
|
|
10
|
+
image: z.string().optional(),
|
|
11
|
+
imageBase64: z.string().optional(),
|
|
12
|
+
contentType: z.enum(['image/png', 'image/jpeg', 'image/webp']).optional(),
|
|
13
|
+
kind: z.enum(['option', 'evidence']).optional(),
|
|
14
|
+
authorName: z.string().optional(),
|
|
15
|
+
});
|
|
16
|
+
export const FabricChangesShotOutput = z.object({
|
|
17
|
+
message: z.any(),
|
|
18
|
+
key: z.string(),
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* `--image <path>` rather than only the raw base64 the API takes: this command
|
|
22
|
+
* runs on the machine that rendered the variant, so making the caller shell out
|
|
23
|
+
* to `base64` puts a multi-megabyte argument on the command line for no reason.
|
|
24
|
+
*/
|
|
25
|
+
export const FabricChangesShot = pikkuSessionlessFunc({
|
|
26
|
+
description: 'Attach a rendered option or a piece of evidence to a change.',
|
|
27
|
+
input: FabricChangesShotInput,
|
|
28
|
+
output: FabricChangesShotOutput,
|
|
29
|
+
func: async (_services, input) => {
|
|
30
|
+
if (!input.image && !input.imageBase64)
|
|
31
|
+
throw new Error('Pass --image <path> or --image-base64 <data>.');
|
|
32
|
+
let contentType = input.contentType;
|
|
33
|
+
let imageBase64 = input.imageBase64;
|
|
34
|
+
if (input.image) {
|
|
35
|
+
const inferred = imageContentType(input.image);
|
|
36
|
+
if (!inferred && !contentType)
|
|
37
|
+
throw new Error(`Cannot tell the image type from “${input.image}” — pass --content-type.`);
|
|
38
|
+
contentType ??= inferred;
|
|
39
|
+
imageBase64 = (await readFile(input.image)).toString('base64');
|
|
40
|
+
}
|
|
41
|
+
const { rpc } = await changesContext(input.apiUrl);
|
|
42
|
+
return await rpc.invoke('attachChangeShot', {
|
|
43
|
+
changeId: input.changeId,
|
|
44
|
+
label: input.label,
|
|
45
|
+
kind: input.kind ?? 'option',
|
|
46
|
+
contentType: contentType ?? 'image/png',
|
|
47
|
+
imageBase64: imageBase64,
|
|
48
|
+
authorName: input.authorName ?? 'pikku-cli',
|
|
49
|
+
});
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
export const renderChangesShot = (_s, { message, key }) => {
|
|
53
|
+
const count = message.attachments.length;
|
|
54
|
+
console.log(`Attached — the item now has ${count} attachment${count === 1 ? '' : 's'} in the panel.`);
|
|
55
|
+
console.log(dim(`key ${safe(key)}`));
|
|
56
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { GetChangeOutput } from '../sdk/rpc-map.gen.d.js';
|
|
3
|
+
export declare const FabricChangesShowInput: z.ZodObject<{
|
|
4
|
+
apiUrl: z.ZodOptional<z.ZodString>;
|
|
5
|
+
changeId: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const FabricChangesShowOutput: z.ZodObject<{
|
|
8
|
+
change: z.ZodAny;
|
|
9
|
+
thread: z.ZodAny;
|
|
10
|
+
stageUrl: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const FabricChangesShow: import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionConfig<{
|
|
13
|
+
apiUrl?: string | undefined;
|
|
14
|
+
changeId: string;
|
|
15
|
+
}, {
|
|
16
|
+
change: any;
|
|
17
|
+
thread: any;
|
|
18
|
+
stageUrl: string | null;
|
|
19
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunction<{
|
|
20
|
+
apiUrl?: string | undefined;
|
|
21
|
+
changeId: string;
|
|
22
|
+
}, {
|
|
23
|
+
change: any;
|
|
24
|
+
thread: any;
|
|
25
|
+
stageUrl: string | null;
|
|
26
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices> | import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
|
|
27
|
+
apiUrl?: string | undefined;
|
|
28
|
+
changeId: string;
|
|
29
|
+
}, {
|
|
30
|
+
change: any;
|
|
31
|
+
thread: any;
|
|
32
|
+
stageUrl: string | null;
|
|
33
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices, unknown>, undefined, undefined>;
|
|
34
|
+
type Change = GetChangeOutput['change'];
|
|
35
|
+
type Message = GetChangeOutput['thread'][number];
|
|
36
|
+
export declare const renderChangesShow: (_s: unknown, { change, thread, stageUrl, }: {
|
|
37
|
+
change: Change;
|
|
38
|
+
thread: Message[];
|
|
39
|
+
stageUrl: string | null;
|
|
40
|
+
}) => void;
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { pikkuSessionlessFunc } from '../../../.pikku/function/index.js';
|
|
3
|
+
import { age, changesContext } from '../lib/changes.js';
|
|
4
|
+
import { dim, keyValue, safe, safeBlock, statusColor } from '../lib/output.js';
|
|
5
|
+
export const FabricChangesShowInput = z.object({
|
|
6
|
+
apiUrl: z.string().optional(),
|
|
7
|
+
changeId: z.string(),
|
|
8
|
+
});
|
|
9
|
+
export const FabricChangesShowOutput = z.object({
|
|
10
|
+
change: z.any(),
|
|
11
|
+
thread: z.any(),
|
|
12
|
+
stageUrl: z.string().nullable(),
|
|
13
|
+
});
|
|
14
|
+
export const FabricChangesShow = pikkuSessionlessFunc({
|
|
15
|
+
description: 'Read one change with its thread and its circled elements.',
|
|
16
|
+
input: FabricChangesShowInput,
|
|
17
|
+
output: FabricChangesShowOutput,
|
|
18
|
+
func: async (_services, input) => {
|
|
19
|
+
const { rpc } = await changesContext(input.apiUrl);
|
|
20
|
+
return await rpc.invoke('getChange', { changeId: input.changeId });
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
export const renderChangesShow = (_s, { change, thread, stageUrl, }) => {
|
|
24
|
+
console.log(`#${safe(change.shortId)} ${safe(change.title)}`);
|
|
25
|
+
console.log(`${statusColor(change.status)}${change.held ? dim(' (held)') : ''} ${dim(safe(change.changeId))}`);
|
|
26
|
+
if (change.body) {
|
|
27
|
+
console.log('');
|
|
28
|
+
console.log(safeBlock(change.body));
|
|
29
|
+
}
|
|
30
|
+
const rows = [];
|
|
31
|
+
if (change.route)
|
|
32
|
+
rows.push([
|
|
33
|
+
'route',
|
|
34
|
+
`${safe(change.route)}${stageUrl ? dim(` (${safe(stageUrl)})`) : ''}`,
|
|
35
|
+
]);
|
|
36
|
+
if (change.gitSha)
|
|
37
|
+
rows.push(['filed at', safe(change.gitSha)]);
|
|
38
|
+
if (change.viewport)
|
|
39
|
+
rows.push([
|
|
40
|
+
'viewport',
|
|
41
|
+
`${change.viewport.width}×${change.viewport.height}`,
|
|
42
|
+
]);
|
|
43
|
+
if (change.screenshotUrl)
|
|
44
|
+
rows.push(['screenshot', safe(change.screenshotUrl)]);
|
|
45
|
+
let anchored = false;
|
|
46
|
+
for (const element of change.capture?.elements ?? []) {
|
|
47
|
+
const asOf = change.gitSha ? ` as of ${safe(change.gitSha)}` : '';
|
|
48
|
+
const addresses = [
|
|
49
|
+
element.sourceAnchor ? `${safe(element.sourceAnchor)}${asOf}` : null,
|
|
50
|
+
element.testId ? `testid ${safe(element.testId)}` : null,
|
|
51
|
+
element.cssPath ? safe(element.cssPath) : null,
|
|
52
|
+
].filter((address) => !!address);
|
|
53
|
+
if (!addresses.length)
|
|
54
|
+
continue;
|
|
55
|
+
anchored ||= !!element.sourceAnchor;
|
|
56
|
+
rows.push([
|
|
57
|
+
'circled',
|
|
58
|
+
`${addresses[0]}${element.text ? dim(` “${safe(element.text)}”`) : ''}`,
|
|
59
|
+
]);
|
|
60
|
+
for (const fallback of addresses.slice(1))
|
|
61
|
+
rows.push(['', dim(fallback)]);
|
|
62
|
+
}
|
|
63
|
+
if (rows.length) {
|
|
64
|
+
console.log('');
|
|
65
|
+
console.log(keyValue(rows));
|
|
66
|
+
}
|
|
67
|
+
if (anchored && change.gitSha) {
|
|
68
|
+
console.log(dim(`The anchored line is where it was at ${safe(change.gitSha)} — find today's equivalent.`));
|
|
69
|
+
}
|
|
70
|
+
for (const message of thread) {
|
|
71
|
+
console.log('');
|
|
72
|
+
console.log(`${safe(message.authorName ?? message.authorKind)} ${dim(`· ${age(message.createdAt)} ago`)}`);
|
|
73
|
+
console.log(` ${safeBlock(message.body)}`);
|
|
74
|
+
for (const attachment of message.attachments) {
|
|
75
|
+
console.log(` ${dim(`[${safe(attachment.kind)}]`)} ${safe(attachment.label)}${attachment.url ? dim(` ${safe(attachment.url)}`) : ''}`);
|
|
76
|
+
}
|
|
77
|
+
if (message.chosenOption)
|
|
78
|
+
console.log(` picked: ${safe(message.chosenOption)}`);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
@@ -11,17 +11,17 @@ export declare const FabricDbSchema: import("../../../.pikku/function/pikku-func
|
|
|
11
11
|
}, {
|
|
12
12
|
branch: string;
|
|
13
13
|
schema: any;
|
|
14
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").
|
|
14
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunction<{
|
|
15
15
|
branch: string;
|
|
16
16
|
}, {
|
|
17
17
|
branch: string;
|
|
18
18
|
schema: any;
|
|
19
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices
|
|
19
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices> | import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
|
|
20
20
|
branch: string;
|
|
21
21
|
}, {
|
|
22
22
|
branch: string;
|
|
23
23
|
schema: any;
|
|
24
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices>, undefined, undefined>;
|
|
24
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices, unknown>, undefined, undefined>;
|
|
25
25
|
type Schema = {
|
|
26
26
|
tables?: {
|
|
27
27
|
name: string;
|
|
@@ -11,17 +11,17 @@ export declare const FabricDeployList: import("../../../.pikku/function/pikku-fu
|
|
|
11
11
|
}, {
|
|
12
12
|
branch: string;
|
|
13
13
|
deployments: any[];
|
|
14
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").
|
|
14
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunction<{
|
|
15
15
|
branch: string;
|
|
16
16
|
}, {
|
|
17
17
|
branch: string;
|
|
18
18
|
deployments: any[];
|
|
19
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices
|
|
19
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices> | import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
|
|
20
20
|
branch: string;
|
|
21
21
|
}, {
|
|
22
22
|
branch: string;
|
|
23
23
|
deployments: any[];
|
|
24
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices>, undefined, undefined>;
|
|
24
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices, unknown>, undefined, undefined>;
|
|
25
25
|
type DeploymentRow = {
|
|
26
26
|
deploymentId: string;
|
|
27
27
|
status: string;
|
|
@@ -11,17 +11,17 @@ export declare const FabricDeployUnits: import("../../../.pikku/function/pikku-f
|
|
|
11
11
|
}, {
|
|
12
12
|
branch: string;
|
|
13
13
|
workers: any[];
|
|
14
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").
|
|
14
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunction<{
|
|
15
15
|
branch: string;
|
|
16
16
|
}, {
|
|
17
17
|
branch: string;
|
|
18
18
|
workers: any[];
|
|
19
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices
|
|
19
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices> | import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
|
|
20
20
|
branch: string;
|
|
21
21
|
}, {
|
|
22
22
|
branch: string;
|
|
23
23
|
workers: any[];
|
|
24
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices>, undefined, undefined>;
|
|
24
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices, unknown>, undefined, undefined>;
|
|
25
25
|
type WorkerRow = {
|
|
26
26
|
name: string;
|
|
27
27
|
role: string;
|
|
@@ -24,10 +24,10 @@ export declare const FabricDeployValidatedInput: z.ZodObject<{
|
|
|
24
24
|
export declare const FabricDeployApplyOutput: z.ZodObject<{
|
|
25
25
|
event: z.ZodLiteral<"result">;
|
|
26
26
|
outcome: z.ZodEnum<{
|
|
27
|
+
blocked: "blocked";
|
|
27
28
|
failed: "failed";
|
|
28
29
|
queued: "queued";
|
|
29
30
|
succeeded: "succeeded";
|
|
30
|
-
blocked: "blocked";
|
|
31
31
|
timeout: "timeout";
|
|
32
32
|
}>;
|
|
33
33
|
projectId: z.ZodString;
|
|
@@ -39,10 +39,10 @@ export declare const FabricDeployApplyOutput: z.ZodObject<{
|
|
|
39
39
|
stageId: z.ZodOptional<z.ZodString>;
|
|
40
40
|
runId: z.ZodOptional<z.ZodString>;
|
|
41
41
|
blockedReason: z.ZodOptional<z.ZodEnum<{
|
|
42
|
-
unknown: "unknown";
|
|
43
42
|
awaiting_approval: "awaiting_approval";
|
|
44
|
-
needs_config: "needs_config";
|
|
45
43
|
needs_attention: "needs_attention";
|
|
44
|
+
needs_config: "needs_config";
|
|
45
|
+
unknown: "unknown";
|
|
46
46
|
}>>;
|
|
47
47
|
missingSecrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
48
48
|
name: z.ZodString;
|
|
@@ -111,7 +111,7 @@ export declare const FabricDeployApply: import("../../../.pikku/function/pikku-f
|
|
|
111
111
|
json?: boolean | undefined;
|
|
112
112
|
}, {
|
|
113
113
|
event: "result";
|
|
114
|
-
outcome: "
|
|
114
|
+
outcome: "blocked" | "failed" | "queued" | "succeeded" | "timeout";
|
|
115
115
|
projectId: string;
|
|
116
116
|
deploymentId: string;
|
|
117
117
|
branch?: string | undefined;
|
|
@@ -120,7 +120,7 @@ export declare const FabricDeployApply: import("../../../.pikku/function/pikku-f
|
|
|
120
120
|
statusReason?: string | null | undefined;
|
|
121
121
|
stageId?: string | undefined;
|
|
122
122
|
runId?: string | undefined;
|
|
123
|
-
blockedReason?: "
|
|
123
|
+
blockedReason?: "awaiting_approval" | "needs_attention" | "needs_config" | "unknown" | undefined;
|
|
124
124
|
missingSecrets?: {
|
|
125
125
|
name: string;
|
|
126
126
|
displayName: string | null;
|
|
@@ -162,7 +162,7 @@ export declare const FabricDeployApply: import("../../../.pikku/function/pikku-f
|
|
|
162
162
|
approved?: boolean | undefined;
|
|
163
163
|
elapsedMs?: number | undefined;
|
|
164
164
|
timeoutSeconds?: number | undefined;
|
|
165
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").
|
|
165
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunction<{
|
|
166
166
|
branch?: string | undefined;
|
|
167
167
|
production?: boolean | undefined;
|
|
168
168
|
ref?: string | undefined;
|
|
@@ -174,7 +174,7 @@ export declare const FabricDeployApply: import("../../../.pikku/function/pikku-f
|
|
|
174
174
|
json?: boolean | undefined;
|
|
175
175
|
}, {
|
|
176
176
|
event: "result";
|
|
177
|
-
outcome: "
|
|
177
|
+
outcome: "blocked" | "failed" | "queued" | "succeeded" | "timeout";
|
|
178
178
|
projectId: string;
|
|
179
179
|
deploymentId: string;
|
|
180
180
|
branch?: string | undefined;
|
|
@@ -183,7 +183,7 @@ export declare const FabricDeployApply: import("../../../.pikku/function/pikku-f
|
|
|
183
183
|
statusReason?: string | null | undefined;
|
|
184
184
|
stageId?: string | undefined;
|
|
185
185
|
runId?: string | undefined;
|
|
186
|
-
blockedReason?: "
|
|
186
|
+
blockedReason?: "awaiting_approval" | "needs_attention" | "needs_config" | "unknown" | undefined;
|
|
187
187
|
missingSecrets?: {
|
|
188
188
|
name: string;
|
|
189
189
|
displayName: string | null;
|
|
@@ -225,7 +225,7 @@ export declare const FabricDeployApply: import("../../../.pikku/function/pikku-f
|
|
|
225
225
|
approved?: boolean | undefined;
|
|
226
226
|
elapsedMs?: number | undefined;
|
|
227
227
|
timeoutSeconds?: number | undefined;
|
|
228
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices
|
|
228
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices> | import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
|
|
229
229
|
branch?: string | undefined;
|
|
230
230
|
production?: boolean | undefined;
|
|
231
231
|
ref?: string | undefined;
|
|
@@ -237,7 +237,7 @@ export declare const FabricDeployApply: import("../../../.pikku/function/pikku-f
|
|
|
237
237
|
json?: boolean | undefined;
|
|
238
238
|
}, {
|
|
239
239
|
event: "result";
|
|
240
|
-
outcome: "
|
|
240
|
+
outcome: "blocked" | "failed" | "queued" | "succeeded" | "timeout";
|
|
241
241
|
projectId: string;
|
|
242
242
|
deploymentId: string;
|
|
243
243
|
branch?: string | undefined;
|
|
@@ -246,7 +246,7 @@ export declare const FabricDeployApply: import("../../../.pikku/function/pikku-f
|
|
|
246
246
|
statusReason?: string | null | undefined;
|
|
247
247
|
stageId?: string | undefined;
|
|
248
248
|
runId?: string | undefined;
|
|
249
|
-
blockedReason?: "
|
|
249
|
+
blockedReason?: "awaiting_approval" | "needs_attention" | "needs_config" | "unknown" | undefined;
|
|
250
250
|
missingSecrets?: {
|
|
251
251
|
name: string;
|
|
252
252
|
displayName: string | null;
|
|
@@ -288,6 +288,6 @@ export declare const FabricDeployApply: import("../../../.pikku/function/pikku-f
|
|
|
288
288
|
approved?: boolean | undefined;
|
|
289
289
|
elapsedMs?: number | undefined;
|
|
290
290
|
timeoutSeconds?: number | undefined;
|
|
291
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices>, undefined, undefined>;
|
|
291
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices, unknown>, undefined, undefined>;
|
|
292
292
|
export declare const renderDeployApply: (_s: unknown, result: ApplyOutput) => void;
|
|
293
293
|
export {};
|
|
@@ -3,6 +3,7 @@ import { pikkuSessionlessFunc } from '../../../.pikku/function/index.js';
|
|
|
3
3
|
import { resolveApiContext } from '../lib/config.js';
|
|
4
4
|
import { getFabricRPC } from '../lib/http.js';
|
|
5
5
|
import { assertNamedBranchDeploySafety, currentBranch, resolveRef, } from '../lib/git.js';
|
|
6
|
+
import { FabricPreconditionError } from '../lib/errors.js';
|
|
6
7
|
import { promptConfirm } from '../lib/prompt.js';
|
|
7
8
|
import { added, changed, removed, dim, table } from '../lib/output.js';
|
|
8
9
|
import { blockedReason, blockedSummary, missingConfigHints, changesAreEmpty, classifyStatus, describeDeployment, destructiveMigrations, isApprovable, readDeploymentStatus, readWorkers, reconcileDeployedRef, stateLabel, waitForDeployment, } from '../lib/deployment.js';
|
|
@@ -143,7 +144,7 @@ const EXIT_BY_OUTCOME = {
|
|
|
143
144
|
*/
|
|
144
145
|
export const branchFromHead = (head) => {
|
|
145
146
|
if (head === 'HEAD' || head === '') {
|
|
146
|
-
throw new
|
|
147
|
+
throw new FabricPreconditionError('Deployment blocked: HEAD is detached, so there is no current branch to deploy.\nCheck out a branch, or name the target: `pikku fabric deploy apply <branch>`.');
|
|
147
148
|
}
|
|
148
149
|
return head;
|
|
149
150
|
};
|
|
@@ -157,10 +158,10 @@ export const FabricDeployApply = pikkuSessionlessFunc({
|
|
|
157
158
|
: () => { };
|
|
158
159
|
const timeoutSeconds = input.timeout ?? DEFAULT_TIMEOUT_SECONDS;
|
|
159
160
|
if (timeoutSeconds <= 0) {
|
|
160
|
-
throw new
|
|
161
|
+
throw new FabricPreconditionError('--timeout must be a positive number of seconds.');
|
|
161
162
|
}
|
|
162
163
|
if (input.deploymentId && (input.branch || input.production)) {
|
|
163
|
-
throw new
|
|
164
|
+
throw new FabricPreconditionError('--deployment-id already names its target — drop the branch/--production.');
|
|
164
165
|
}
|
|
165
166
|
const attaching = Boolean(input.deploymentId);
|
|
166
167
|
let projectId;
|
|
@@ -195,10 +196,10 @@ export const FabricDeployApply = pikkuSessionlessFunc({
|
|
|
195
196
|
if (!input.autoApprove) {
|
|
196
197
|
const target = `${branch} @ ${resolved.slice(0, 8)}`;
|
|
197
198
|
if (!process.stdin.isTTY) {
|
|
198
|
-
throw new
|
|
199
|
+
throw new FabricPreconditionError(`Refusing to deploy ${target} without confirmation — re-run with --auto-approve to deploy non-interactively.`);
|
|
199
200
|
}
|
|
200
201
|
if (!(await promptConfirm(`Deploy ${target}?`))) {
|
|
201
|
-
throw new
|
|
202
|
+
throw new FabricPreconditionError('Deploy aborted.');
|
|
202
203
|
}
|
|
203
204
|
}
|
|
204
205
|
const created = await rpc.invoke('deployByStageKind', {
|
|
@@ -2,8 +2,8 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const FabricDomainsAddInput: z.ZodObject<{
|
|
3
3
|
hostname: z.ZodString;
|
|
4
4
|
target: z.ZodOptional<z.ZodEnum<{
|
|
5
|
-
app: "app";
|
|
6
5
|
api: "api";
|
|
6
|
+
app: "app";
|
|
7
7
|
}>>;
|
|
8
8
|
apiUrl: z.ZodOptional<z.ZodString>;
|
|
9
9
|
}, z.core.$strip>;
|
|
@@ -13,23 +13,23 @@ export declare const FabricDomainsAddOutput: z.ZodObject<{
|
|
|
13
13
|
}, z.core.$strip>;
|
|
14
14
|
export declare const FabricDomainsAdd: import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionConfig<{
|
|
15
15
|
hostname: string;
|
|
16
|
-
target?: "
|
|
16
|
+
target?: "api" | "app" | undefined;
|
|
17
17
|
apiUrl?: string | undefined;
|
|
18
18
|
}, {
|
|
19
19
|
hostname: string;
|
|
20
20
|
cnameTarget: string;
|
|
21
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").
|
|
21
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunction<{
|
|
22
22
|
hostname: string;
|
|
23
|
-
target?: "
|
|
23
|
+
target?: "api" | "app" | undefined;
|
|
24
24
|
apiUrl?: string | undefined;
|
|
25
25
|
}, {
|
|
26
26
|
hostname: string;
|
|
27
27
|
cnameTarget: string;
|
|
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
|
hostname: string;
|
|
30
|
-
target?: "
|
|
30
|
+
target?: "api" | "app" | undefined;
|
|
31
31
|
apiUrl?: string | undefined;
|
|
32
32
|
}, {
|
|
33
33
|
hostname: string;
|
|
34
34
|
cnameTarget: string;
|
|
35
|
-
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices>, undefined, undefined>;
|
|
35
|
+
}, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices, unknown>, undefined, undefined>;
|