keboola-cli 0.63.4__py3-none-any.whl
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.
- keboola_agent_cli/__init__.py +34 -0
- keboola_agent_cli/__main__.py +5 -0
- keboola_agent_cli/_ui_dist/assets/arc-DhFYIddx.js +2 -0
- keboola_agent_cli/_ui_dist/assets/arc-DhFYIddx.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/architecture-7EHR7CIX-hNCijx_H.js +1 -0
- keboola_agent_cli/_ui_dist/assets/architectureDiagram-3BPJPVTR-C6hUlprM.js +37 -0
- keboola_agent_cli/_ui_dist/assets/architectureDiagram-3BPJPVTR-C6hUlprM.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/array-BifhSqXX.js +2 -0
- keboola_agent_cli/_ui_dist/assets/array-BifhSqXX.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/blockDiagram-GPEHLZMM-DC7qY9i4.js +133 -0
- keboola_agent_cli/_ui_dist/assets/blockDiagram-GPEHLZMM-DC7qY9i4.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/c4Diagram-AAUBKEIU-5Lh44evt.js +11 -0
- keboola_agent_cli/_ui_dist/assets/c4Diagram-AAUBKEIU-5Lh44evt.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/channel-DBMrXlxx.js +2 -0
- keboola_agent_cli/_ui_dist/assets/channel-DBMrXlxx.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/chunk-2J33WTMH-Coy82EBh.js +2 -0
- keboola_agent_cli/_ui_dist/assets/chunk-2J33WTMH-Coy82EBh.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/chunk-3OPIFGDE-BQC5CRHI.js +63 -0
- keboola_agent_cli/_ui_dist/assets/chunk-3OPIFGDE-BQC5CRHI.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/chunk-4BX2VUAB-DUuEt70o.js +2 -0
- keboola_agent_cli/_ui_dist/assets/chunk-4BX2VUAB-DUuEt70o.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/chunk-55IACEB6-BvR-6chF.js +2 -0
- keboola_agent_cli/_ui_dist/assets/chunk-55IACEB6-BvR-6chF.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/chunk-5ZQYHXKU-BjcTN7ul.js +3 -0
- keboola_agent_cli/_ui_dist/assets/chunk-5ZQYHXKU-BjcTN7ul.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/chunk-727SXJPM-C0zxqqRN.js +207 -0
- keboola_agent_cli/_ui_dist/assets/chunk-727SXJPM-C0zxqqRN.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/chunk-AQP2D5EJ-CXf7rIlZ.js +232 -0
- keboola_agent_cli/_ui_dist/assets/chunk-AQP2D5EJ-CXf7rIlZ.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/chunk-BSJP7CBP-Oj_FO9Q7.js +2 -0
- keboola_agent_cli/_ui_dist/assets/chunk-BSJP7CBP-Oj_FO9Q7.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/chunk-CSCIHK7Q-CcTsLrFc.js +124 -0
- keboola_agent_cli/_ui_dist/assets/chunk-CSCIHK7Q-CcTsLrFc.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/chunk-FMBD7UC4-FH-zLkkW.js +16 -0
- keboola_agent_cli/_ui_dist/assets/chunk-FMBD7UC4-FH-zLkkW.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/chunk-L5ZTLDWV-B1Ky_e7O.js +2 -0
- keboola_agent_cli/_ui_dist/assets/chunk-L5ZTLDWV-B1Ky_e7O.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/chunk-ND2GUHAM-BHz1rpbm.js +2 -0
- keboola_agent_cli/_ui_dist/assets/chunk-ND2GUHAM-BHz1rpbm.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/chunk-NNHCCRGN-DlpIbxXb.js +160 -0
- keboola_agent_cli/_ui_dist/assets/chunk-NNHCCRGN-DlpIbxXb.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/chunk-NZK2D7GU-tnrSoegS.js +2 -0
- keboola_agent_cli/_ui_dist/assets/chunk-NZK2D7GU-tnrSoegS.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/chunk-O5CBEL6O-DxxqDH0l.js +71 -0
- keboola_agent_cli/_ui_dist/assets/chunk-O5CBEL6O-DxxqDH0l.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/chunk-QZHKN3VN-CSjc2gjj.js +2 -0
- keboola_agent_cli/_ui_dist/assets/chunk-QZHKN3VN-CSjc2gjj.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/classDiagram-4FO5ZUOK-BuZcZu85.js +2 -0
- keboola_agent_cli/_ui_dist/assets/classDiagram-4FO5ZUOK-BuZcZu85.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/classDiagram-v2-Q7XG4LA2-BuZcZu85.js +2 -0
- keboola_agent_cli/_ui_dist/assets/classDiagram-v2-Q7XG4LA2-BuZcZu85.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/cose-bilkent-S5V4N54A-Y0L8LDMa.js +2 -0
- keboola_agent_cli/_ui_dist/assets/cose-bilkent-S5V4N54A-Y0L8LDMa.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/cytoscape.esm-C8YCVR3_.js +322 -0
- keboola_agent_cli/_ui_dist/assets/cytoscape.esm-C8YCVR3_.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/dagre-BM42HDAG-UZ-9BTqF.js +5 -0
- keboola_agent_cli/_ui_dist/assets/dagre-BM42HDAG-UZ-9BTqF.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/dagre-Bx709z4p.js +2 -0
- keboola_agent_cli/_ui_dist/assets/dagre-Bx709z4p.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/defaultLocale-C8Fc0cco.js +2 -0
- keboola_agent_cli/_ui_dist/assets/defaultLocale-C8Fc0cco.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/diagram-2AECGRRQ-DoDQ60wi.js +44 -0
- keboola_agent_cli/_ui_dist/assets/diagram-2AECGRRQ-DoDQ60wi.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/diagram-5GNKFQAL-CMGFxpUs.js +11 -0
- keboola_agent_cli/_ui_dist/assets/diagram-5GNKFQAL-CMGFxpUs.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/diagram-KO2AKTUF-1uGDa-Iu.js +4 -0
- keboola_agent_cli/_ui_dist/assets/diagram-KO2AKTUF-1uGDa-Iu.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/diagram-LMA3HP47-XtFH7B51.js +25 -0
- keboola_agent_cli/_ui_dist/assets/diagram-LMA3HP47-XtFH7B51.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/diagram-OG6HWLK6-B4_Te1T5.js +25 -0
- keboola_agent_cli/_ui_dist/assets/diagram-OG6HWLK6-B4_Te1T5.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/dist-Di6zmlv0.js +2 -0
- keboola_agent_cli/_ui_dist/assets/dist-Di6zmlv0.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/erDiagram-TEJ5UH35-NjQkrdFt.js +86 -0
- keboola_agent_cli/_ui_dist/assets/erDiagram-TEJ5UH35-NjQkrdFt.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/eventmodeling-FCH6USID-BrJMIks8.js +1 -0
- keboola_agent_cli/_ui_dist/assets/flowDiagram-I6XJVG4X-CIr8DWl7.js +163 -0
- keboola_agent_cli/_ui_dist/assets/flowDiagram-I6XJVG4X-CIr8DWl7.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/ganttDiagram-6RSMTGT7-C1VY_xbQ.js +293 -0
- keboola_agent_cli/_ui_dist/assets/ganttDiagram-6RSMTGT7-C1VY_xbQ.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/gitGraph-WXDBUCRP-COacYjo-.js +1 -0
- keboola_agent_cli/_ui_dist/assets/gitGraphDiagram-PVQCEYII-DQT8-kg2.js +107 -0
- keboola_agent_cli/_ui_dist/assets/gitGraphDiagram-PVQCEYII-DQT8-kg2.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/graphlib-B8gBHxth.js +2 -0
- keboola_agent_cli/_ui_dist/assets/graphlib-B8gBHxth.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/index-CMq50kkV.css +1 -0
- keboola_agent_cli/_ui_dist/assets/index-D8W97DAz.js +118 -0
- keboola_agent_cli/_ui_dist/assets/index-D8W97DAz.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/info-J43DQDTF-DdCTRIzU.js +1 -0
- keboola_agent_cli/_ui_dist/assets/infoDiagram-5YYISTIA-C77rsoTp.js +3 -0
- keboola_agent_cli/_ui_dist/assets/infoDiagram-5YYISTIA-C77rsoTp.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/init-D6jRqBbL.js +2 -0
- keboola_agent_cli/_ui_dist/assets/init-D6jRqBbL.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/ishikawaDiagram-YF4QCWOH-BcTbXaLy.js +71 -0
- keboola_agent_cli/_ui_dist/assets/ishikawaDiagram-YF4QCWOH-BcTbXaLy.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/journeyDiagram-JHISSGLW-BejeAJQ_.js +140 -0
- keboola_agent_cli/_ui_dist/assets/journeyDiagram-JHISSGLW-BejeAJQ_.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/kanban-definition-UN3LZRKU-BRNz_UrH.js +90 -0
- keboola_agent_cli/_ui_dist/assets/kanban-definition-UN3LZRKU-BRNz_UrH.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/katex-C4eR7coU.js +258 -0
- keboola_agent_cli/_ui_dist/assets/katex-C4eR7coU.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/line-CzAQKFbJ.js +2 -0
- keboola_agent_cli/_ui_dist/assets/line-CzAQKFbJ.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/linear-DUNFFdck.js +2 -0
- keboola_agent_cli/_ui_dist/assets/linear-DUNFFdck.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/mermaid-parser.core-CpuBOkFa.js +5 -0
- keboola_agent_cli/_ui_dist/assets/mermaid-parser.core-CpuBOkFa.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/mindmap-definition-RKZ34NQL-9EJQNjH0.js +97 -0
- keboola_agent_cli/_ui_dist/assets/mindmap-definition-RKZ34NQL-9EJQNjH0.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/ordinal-hYBb2elL.js +2 -0
- keboola_agent_cli/_ui_dist/assets/ordinal-hYBb2elL.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/packet-YPE3B663-DLiiw_B2.js +1 -0
- keboola_agent_cli/_ui_dist/assets/path-BWPyau1x.js +2 -0
- keboola_agent_cli/_ui_dist/assets/path-BWPyau1x.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/pie-LRSECV5Y-CRoO8G1g.js +1 -0
- keboola_agent_cli/_ui_dist/assets/pieDiagram-4H26LBE5-XH4cy6Cb.js +31 -0
- keboola_agent_cli/_ui_dist/assets/pieDiagram-4H26LBE5-XH4cy6Cb.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/quadrantDiagram-W4KKPZXB-fdhc93U8.js +8 -0
- keboola_agent_cli/_ui_dist/assets/quadrantDiagram-W4KKPZXB-fdhc93U8.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/radar-GUYGQ44K-DAlLVJHm.js +1 -0
- keboola_agent_cli/_ui_dist/assets/requirementDiagram-4Y6WPE33-a94eP3R9.js +85 -0
- keboola_agent_cli/_ui_dist/assets/requirementDiagram-4Y6WPE33-a94eP3R9.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/rough.esm-CSKSodPl.js +2 -0
- keboola_agent_cli/_ui_dist/assets/rough.esm-CSKSodPl.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/sankeyDiagram-5OEKKPKP-jcBa02sp.js +41 -0
- keboola_agent_cli/_ui_dist/assets/sankeyDiagram-5OEKKPKP-jcBa02sp.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/sequenceDiagram-3UESZ5HK-A5-GGM-e.js +163 -0
- keboola_agent_cli/_ui_dist/assets/sequenceDiagram-3UESZ5HK-A5-GGM-e.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/src-ZI-V_AF0.js +2 -0
- keboola_agent_cli/_ui_dist/assets/src-ZI-V_AF0.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/stateDiagram-AJRCARHV-BKAA5rqE.js +2 -0
- keboola_agent_cli/_ui_dist/assets/stateDiagram-AJRCARHV-BKAA5rqE.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/stateDiagram-v2-BHNVJYJU-DnJwJBsE.js +2 -0
- keboola_agent_cli/_ui_dist/assets/stateDiagram-v2-BHNVJYJU-DnJwJBsE.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/timeline-definition-PNZ67QCA-Cy39jp8b.js +121 -0
- keboola_agent_cli/_ui_dist/assets/timeline-definition-PNZ67QCA-Cy39jp8b.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/treeView-BLDUP644-DbLYl23-.js +1 -0
- keboola_agent_cli/_ui_dist/assets/treemap-LRROVOQU-Bp0eGlOt.js +1 -0
- keboola_agent_cli/_ui_dist/assets/vennDiagram-CIIHVFJN-BGECKubd.js +35 -0
- keboola_agent_cli/_ui_dist/assets/vennDiagram-CIIHVFJN-BGECKubd.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/wardley-L42UT6IY-D4yH4jqS.js +1 -0
- keboola_agent_cli/_ui_dist/assets/wardleyDiagram-YWT4CUSO-D6XRG3cZ.js +79 -0
- keboola_agent_cli/_ui_dist/assets/wardleyDiagram-YWT4CUSO-D6XRG3cZ.js.map +1 -0
- keboola_agent_cli/_ui_dist/assets/xychartDiagram-2RQKCTM6-DRre-pfZ.js +8 -0
- keboola_agent_cli/_ui_dist/assets/xychartDiagram-2RQKCTM6-DRre-pfZ.js.map +1 -0
- keboola_agent_cli/_ui_dist/index.html +50 -0
- keboola_agent_cli/ai_client.py +83 -0
- keboola_agent_cli/auto_update.py +550 -0
- keboola_agent_cli/changelog.py +1198 -0
- keboola_agent_cli/cli.py +448 -0
- keboola_agent_cli/client.py +3422 -0
- keboola_agent_cli/commands/__init__.py +0 -0
- keboola_agent_cli/commands/_data_app_git.py +343 -0
- keboola_agent_cli/commands/_helpers.py +377 -0
- keboola_agent_cli/commands/_metadata_input.py +49 -0
- keboola_agent_cli/commands/_semantic_layer_crud.py +632 -0
- keboola_agent_cli/commands/_semantic_layer_helpers.py +44 -0
- keboola_agent_cli/commands/_semantic_layer_reference_data.py +247 -0
- keboola_agent_cli/commands/agent.py +968 -0
- keboola_agent_cli/commands/branch.py +423 -0
- keboola_agent_cli/commands/changelog.py +168 -0
- keboola_agent_cli/commands/component.py +216 -0
- keboola_agent_cli/commands/config.py +2442 -0
- keboola_agent_cli/commands/context.py +1481 -0
- keboola_agent_cli/commands/data_app.py +1279 -0
- keboola_agent_cli/commands/dev_portal.py +584 -0
- keboola_agent_cli/commands/doctor.py +37 -0
- keboola_agent_cli/commands/encrypt.py +145 -0
- keboola_agent_cli/commands/feature.py +311 -0
- keboola_agent_cli/commands/flow.py +948 -0
- keboola_agent_cli/commands/http_client.py +157 -0
- keboola_agent_cli/commands/init.py +279 -0
- keboola_agent_cli/commands/job.py +661 -0
- keboola_agent_cli/commands/kai.py +301 -0
- keboola_agent_cli/commands/lineage.py +1464 -0
- keboola_agent_cli/commands/org.py +292 -0
- keboola_agent_cli/commands/permissions.py +360 -0
- keboola_agent_cli/commands/project.py +1192 -0
- keboola_agent_cli/commands/repl.py +243 -0
- keboola_agent_cli/commands/schedule.py +340 -0
- keboola_agent_cli/commands/search.py +178 -0
- keboola_agent_cli/commands/semantic_layer.py +939 -0
- keboola_agent_cli/commands/serve.py +272 -0
- keboola_agent_cli/commands/sharing.py +340 -0
- keboola_agent_cli/commands/storage.py +2630 -0
- keboola_agent_cli/commands/stream.py +266 -0
- keboola_agent_cli/commands/sync.py +1277 -0
- keboola_agent_cli/commands/tool.py +206 -0
- keboola_agent_cli/commands/version.py +186 -0
- keboola_agent_cli/commands/workspace.py +635 -0
- keboola_agent_cli/config_store.py +582 -0
- keboola_agent_cli/constants.py +528 -0
- keboola_agent_cli/data_science_client.py +342 -0
- keboola_agent_cli/dev_portal_client.py +323 -0
- keboola_agent_cli/errors.py +248 -0
- keboola_agent_cli/http_base.py +315 -0
- keboola_agent_cli/json_utils.py +126 -0
- keboola_agent_cli/lib.py +536 -0
- keboola_agent_cli/manage_client.py +324 -0
- keboola_agent_cli/metastore_client.py +214 -0
- keboola_agent_cli/models.py +427 -0
- keboola_agent_cli/output.py +1084 -0
- keboola_agent_cli/permissions.py +469 -0
- keboola_agent_cli/py.typed +3 -0
- keboola_agent_cli/result_models.py +271 -0
- keboola_agent_cli/server/__init__.py +34 -0
- keboola_agent_cli/server/agent_runner.py +1289 -0
- keboola_agent_cli/server/agents_store.py +325 -0
- keboola_agent_cli/server/app.py +764 -0
- keboola_agent_cli/server/auth.py +117 -0
- keboola_agent_cli/server/dependencies.py +149 -0
- keboola_agent_cli/server/pricing.py +303 -0
- keboola_agent_cli/server/routers/__init__.py +1 -0
- keboola_agent_cli/server/routers/agents.py +616 -0
- keboola_agent_cli/server/routers/ai_chat.py +129 -0
- keboola_agent_cli/server/routers/branches.py +133 -0
- keboola_agent_cli/server/routers/components.py +48 -0
- keboola_agent_cli/server/routers/configs.py +507 -0
- keboola_agent_cli/server/routers/data_apps.py +384 -0
- keboola_agent_cli/server/routers/dev_portal.py +67 -0
- keboola_agent_cli/server/routers/encrypt.py +35 -0
- keboola_agent_cli/server/routers/feature.py +179 -0
- keboola_agent_cli/server/routers/flows.py +204 -0
- keboola_agent_cli/server/routers/health.py +53 -0
- keboola_agent_cli/server/routers/jobs.py +175 -0
- keboola_agent_cli/server/routers/kai.py +80 -0
- keboola_agent_cli/server/routers/lineage.py +226 -0
- keboola_agent_cli/server/routers/mcp.py +70 -0
- keboola_agent_cli/server/routers/members.py +170 -0
- keboola_agent_cli/server/routers/org.py +96 -0
- keboola_agent_cli/server/routers/projects.py +106 -0
- keboola_agent_cli/server/routers/schedules.py +54 -0
- keboola_agent_cli/server/routers/search.py +30 -0
- keboola_agent_cli/server/routers/semantic_layer.py +650 -0
- keboola_agent_cli/server/routers/sharing.py +86 -0
- keboola_agent_cli/server/routers/storage.py +574 -0
- keboola_agent_cli/server/routers/stream.py +100 -0
- keboola_agent_cli/server/routers/workspaces.py +302 -0
- keboola_agent_cli/server/run_broadcaster.py +329 -0
- keboola_agent_cli/server/sse.py +25 -0
- keboola_agent_cli/services/__init__.py +0 -0
- keboola_agent_cli/services/_encryption.py +217 -0
- keboola_agent_cli/services/_semantic_layer_cascade.py +147 -0
- keboola_agent_cli/services/_semantic_layer_crud.py +382 -0
- keboola_agent_cli/services/_semantic_layer_internals.py +1078 -0
- keboola_agent_cli/services/_semantic_layer_lookup.py +181 -0
- keboola_agent_cli/services/_semantic_layer_reference_data.py +217 -0
- keboola_agent_cli/services/_sync_bindings.py +456 -0
- keboola_agent_cli/services/_sync_branch.py +191 -0
- keboola_agent_cli/services/_sync_bulk.py +228 -0
- keboola_agent_cli/services/_sync_clone.py +163 -0
- keboola_agent_cli/services/_sync_models.py +97 -0
- keboola_agent_cli/services/_sync_push_ops.py +369 -0
- keboola_agent_cli/services/_sync_storage.py +376 -0
- keboola_agent_cli/services/_sync_writeback.py +167 -0
- keboola_agent_cli/services/agent_service.py +458 -0
- keboola_agent_cli/services/base.py +175 -0
- keboola_agent_cli/services/branch_service.py +588 -0
- keboola_agent_cli/services/component_service.py +694 -0
- keboola_agent_cli/services/config_service.py +2099 -0
- keboola_agent_cli/services/data_app_git_service.py +224 -0
- keboola_agent_cli/services/data_app_service.py +2082 -0
- keboola_agent_cli/services/deep_lineage_service.py +1322 -0
- keboola_agent_cli/services/dev_portal_service.py +345 -0
- keboola_agent_cli/services/doctor_service.py +445 -0
- keboola_agent_cli/services/encrypt_service.py +87 -0
- keboola_agent_cli/services/feature_service.py +268 -0
- keboola_agent_cli/services/flow_service.py +769 -0
- keboola_agent_cli/services/flow_validation.py +188 -0
- keboola_agent_cli/services/http_forwarder_service.py +236 -0
- keboola_agent_cli/services/job_idempotency_store.py +285 -0
- keboola_agent_cli/services/job_service.py +797 -0
- keboola_agent_cli/services/kai_service.py +367 -0
- keboola_agent_cli/services/lineage_service.py +274 -0
- keboola_agent_cli/services/mcp_service.py +1498 -0
- keboola_agent_cli/services/mcp_transport.py +259 -0
- keboola_agent_cli/services/member_service.py +593 -0
- keboola_agent_cli/services/org_service.py +619 -0
- keboola_agent_cli/services/project_service.py +947 -0
- keboola_agent_cli/services/repo_validate_service.py +767 -0
- keboola_agent_cli/services/schedule_service.py +731 -0
- keboola_agent_cli/services/search_service.py +331 -0
- keboola_agent_cli/services/semantic_layer_service.py +1497 -0
- keboola_agent_cli/services/sharing_service.py +307 -0
- keboola_agent_cli/services/storage_service.py +2524 -0
- keboola_agent_cli/services/stream_service.py +395 -0
- keboola_agent_cli/services/sync_service.py +2244 -0
- keboola_agent_cli/services/variables_service.py +447 -0
- keboola_agent_cli/services/version_service.py +1038 -0
- keboola_agent_cli/services/workspace_service.py +1103 -0
- keboola_agent_cli/stream_client.py +217 -0
- keboola_agent_cli/sync/__init__.py +1 -0
- keboola_agent_cli/sync/branch_mapping.py +174 -0
- keboola_agent_cli/sync/clone.py +211 -0
- keboola_agent_cli/sync/code_extraction.py +655 -0
- keboola_agent_cli/sync/config_format.py +290 -0
- keboola_agent_cli/sync/diff_engine.py +566 -0
- keboola_agent_cli/sync/git_utils.py +93 -0
- keboola_agent_cli/sync/manifest.py +162 -0
- keboola_agent_cli/sync/naming.py +90 -0
- keboola_agent_cli/sync/secrets.py +62 -0
- keboola_agent_cli/sync/sql_split.py +134 -0
- keboola_cli-0.63.4.dist-info/METADATA +308 -0
- keboola_cli-0.63.4.dist-info/RECORD +306 -0
- keboola_cli-0.63.4.dist-info/WHEEL +4 -0
- keboola_cli-0.63.4.dist-info/entry_points.txt +2 -0
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
"""Data Streams commands -- OTLP/HTTP source provisioning and introspection.
|
|
2
|
+
|
|
3
|
+
Thin CLI layer for the ``kbagent stream`` command group: parses arguments,
|
|
4
|
+
calls :class:`StreamService`, formats output. No business logic belongs here.
|
|
5
|
+
|
|
6
|
+
Authentication uses the per-project Storage API token that kbagent already
|
|
7
|
+
stores (``X-StorageApi-Token``) -- no manage token, no extra prompt.
|
|
8
|
+
|
|
9
|
+
The OTLP endpoint embeds its secret in the URL path; ``stream detail`` /
|
|
10
|
+
``stream create-source`` mask it by default and only print it with ``--reveal``.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from __future__ import annotations
|
|
14
|
+
|
|
15
|
+
from enum import StrEnum
|
|
16
|
+
from typing import Any, NoReturn
|
|
17
|
+
|
|
18
|
+
import typer
|
|
19
|
+
from rich.console import Console
|
|
20
|
+
from rich.panel import Panel
|
|
21
|
+
from rich.table import Table
|
|
22
|
+
|
|
23
|
+
from ..errors import ConfigError, ErrorCode, KeboolaApiError
|
|
24
|
+
from ._helpers import (
|
|
25
|
+
check_cli_permission,
|
|
26
|
+
get_formatter,
|
|
27
|
+
get_service,
|
|
28
|
+
map_error_to_exit_code,
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
stream_app = typer.Typer(help="Data Streams (OTLP) source management")
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class SourceType(StrEnum):
|
|
35
|
+
"""Stream source types supported by the Stream API."""
|
|
36
|
+
|
|
37
|
+
otlp = "otlp"
|
|
38
|
+
http = "http"
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
@stream_app.callback(invoke_without_command=True)
|
|
42
|
+
def _stream_permission_check(ctx: typer.Context) -> None:
|
|
43
|
+
check_cli_permission(ctx, "stream")
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def _handle_errors(formatter: Any, exc: Exception) -> NoReturn:
|
|
47
|
+
"""Map a ConfigError / KeboolaApiError to a structured error + Exit."""
|
|
48
|
+
if isinstance(exc, ConfigError):
|
|
49
|
+
formatter.error(error_code=ErrorCode.CONFIG_ERROR, message=exc.message)
|
|
50
|
+
raise typer.Exit(code=5) from None
|
|
51
|
+
if isinstance(exc, KeboolaApiError):
|
|
52
|
+
exit_code = map_error_to_exit_code(exc)
|
|
53
|
+
formatter.error(error_code=exc.error_code, message=exc.message, retryable=exc.retryable)
|
|
54
|
+
raise typer.Exit(code=exit_code) from None
|
|
55
|
+
raise exc
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
# ── Human formatters ──────────────────────────────────────────────────
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def _format_sources_table(console: Console, data: dict[str, Any]) -> None:
|
|
62
|
+
"""Render the sources list as a Rich table."""
|
|
63
|
+
sources = data.get("sources") or []
|
|
64
|
+
alias = data.get("alias", "")
|
|
65
|
+
branch = data.get("branch_id", "")
|
|
66
|
+
if not sources:
|
|
67
|
+
console.print(
|
|
68
|
+
f"No Data Streams sources in project [cyan]{alias}[/cyan] (branch {branch}). "
|
|
69
|
+
"Create one with [bold]kbagent stream create-source[/bold]."
|
|
70
|
+
)
|
|
71
|
+
return
|
|
72
|
+
table = Table(title=f"Data Streams sources -- {alias} (branch {branch})")
|
|
73
|
+
table.add_column("Source ID", style="bold cyan")
|
|
74
|
+
table.add_column("Name")
|
|
75
|
+
table.add_column("Type", style="dim")
|
|
76
|
+
table.add_column("Base Endpoint", style="dim", max_width=60)
|
|
77
|
+
for src in sources:
|
|
78
|
+
table.add_row(
|
|
79
|
+
src.get("source_id", ""),
|
|
80
|
+
src.get("name", ""),
|
|
81
|
+
src.get("type", ""),
|
|
82
|
+
src.get("base_endpoint", ""),
|
|
83
|
+
)
|
|
84
|
+
console.print(table)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def _format_detail(console: Console, data: dict[str, Any]) -> None:
|
|
88
|
+
"""Render one source's assembled detail as a Rich panel."""
|
|
89
|
+
status = data.get("status")
|
|
90
|
+
title = f"Stream source: {data.get('source_id', '')}"
|
|
91
|
+
if status in ("created", "skipped"):
|
|
92
|
+
verb = "Created" if status == "created" else "Already exists"
|
|
93
|
+
title = f"{verb} -- {data.get('source_id', '')}"
|
|
94
|
+
|
|
95
|
+
lines = [
|
|
96
|
+
f"[bold]Name:[/bold] {data.get('name', '')}",
|
|
97
|
+
f"[bold]Type:[/bold] {data.get('type', '')}",
|
|
98
|
+
f"[bold]Branch:[/bold] {data.get('branch_id', '')}",
|
|
99
|
+
]
|
|
100
|
+
if data.get("protocol"):
|
|
101
|
+
lines.append(f"[bold]Protocol:[/bold] {data['protocol']}")
|
|
102
|
+
lines.append(f"[bold]Endpoint:[/bold] {data.get('endpoint', '')}")
|
|
103
|
+
if not data.get("secret_revealed") and data.get("endpoint"):
|
|
104
|
+
lines.append(" [dim](secret masked -- pass --reveal to print the full URL)[/dim]")
|
|
105
|
+
|
|
106
|
+
signals = data.get("signal_endpoints") or {}
|
|
107
|
+
if signals:
|
|
108
|
+
lines.append("\n[bold]Per-signal endpoints:[/bold]")
|
|
109
|
+
for signal, url in signals.items():
|
|
110
|
+
lines.append(f" [cyan]{signal}[/cyan]: {url}")
|
|
111
|
+
|
|
112
|
+
destination = data.get("destination") or {}
|
|
113
|
+
tables = destination.get("tables") or {}
|
|
114
|
+
if destination.get("bucket") or tables:
|
|
115
|
+
lines.append("\n[bold]Destination:[/bold]")
|
|
116
|
+
if destination.get("bucket"):
|
|
117
|
+
lines.append(f" bucket: {destination['bucket']}")
|
|
118
|
+
for signal, table_id in tables.items():
|
|
119
|
+
lines.append(f" [cyan]{signal}[/cyan] -> {table_id}")
|
|
120
|
+
|
|
121
|
+
conditions = data.get("import_conditions")
|
|
122
|
+
if conditions:
|
|
123
|
+
lines.append("\n[bold]Import conditions:[/bold]")
|
|
124
|
+
for key, value in conditions.items():
|
|
125
|
+
lines.append(f" {key}: {value}")
|
|
126
|
+
|
|
127
|
+
console.print(Panel("\n".join(lines), title=title, expand=False))
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
def _format_delete_result(console: Console, data: dict[str, Any]) -> None:
|
|
131
|
+
"""Render the outcome of a delete operation."""
|
|
132
|
+
status = data.get("status", "")
|
|
133
|
+
source_id = data.get("source_id", "")
|
|
134
|
+
if status == "dry_run":
|
|
135
|
+
console.print(
|
|
136
|
+
f"[bold yellow]DRY RUN[/bold yellow] would delete source "
|
|
137
|
+
f"[bold]{source_id}[/bold] (branch {data.get('branch_id', '')})."
|
|
138
|
+
)
|
|
139
|
+
elif status == "deleted":
|
|
140
|
+
console.print(f"[bold red]Deleted[/bold red] source [bold]{source_id}[/bold].")
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
# ── Commands ──────────────────────────────────────────────────────────
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
@stream_app.command("list")
|
|
147
|
+
def stream_list(
|
|
148
|
+
ctx: typer.Context,
|
|
149
|
+
project: str = typer.Option(..., "--project", "-p", help="Project alias"),
|
|
150
|
+
branch: str | None = typer.Option(
|
|
151
|
+
None, "--branch", help="Branch ref (default: the project's default branch)"
|
|
152
|
+
),
|
|
153
|
+
) -> None:
|
|
154
|
+
"""List Data Streams sources in a project."""
|
|
155
|
+
formatter = get_formatter(ctx)
|
|
156
|
+
service = get_service(ctx, "stream_service")
|
|
157
|
+
try:
|
|
158
|
+
result = service.list_sources(alias=project, branch_id=branch)
|
|
159
|
+
except (ConfigError, KeboolaApiError) as exc:
|
|
160
|
+
_handle_errors(formatter, exc)
|
|
161
|
+
formatter.output(result, _format_sources_table)
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
@stream_app.command("create-source")
|
|
165
|
+
def stream_create_source(
|
|
166
|
+
ctx: typer.Context,
|
|
167
|
+
project: str = typer.Option(..., "--project", "-p", help="Project alias"),
|
|
168
|
+
name: str = typer.Option(..., "--name", "-n", help="Human-readable source name"),
|
|
169
|
+
source_type: SourceType = typer.Option(
|
|
170
|
+
SourceType.otlp, "--type", help="Source type (otlp | http)"
|
|
171
|
+
),
|
|
172
|
+
branch: str | None = typer.Option(
|
|
173
|
+
None, "--branch", help="Branch ref (default branch if unset)"
|
|
174
|
+
),
|
|
175
|
+
if_not_exists: bool = typer.Option(
|
|
176
|
+
False, "--if-not-exists", help="Return the existing source instead of failing if it exists"
|
|
177
|
+
),
|
|
178
|
+
no_sinks: bool = typer.Option(
|
|
179
|
+
False,
|
|
180
|
+
"--no-sinks",
|
|
181
|
+
help="Skip auto-creating the logs/metrics/traces sinks for an OTLP source",
|
|
182
|
+
),
|
|
183
|
+
reveal: bool = typer.Option(False, "--reveal", help="Print the full endpoint incl. secret"),
|
|
184
|
+
) -> None:
|
|
185
|
+
"""Create an OTLP (or HTTP) source and return its endpoint.
|
|
186
|
+
|
|
187
|
+
For an OTLP source the three standard sinks (logs/metrics/traces) are
|
|
188
|
+
auto-created so data lands in Storage (bucket in.c-otlp-<source>); pass
|
|
189
|
+
--no-sinks to create a bare source without them.
|
|
190
|
+
"""
|
|
191
|
+
formatter = get_formatter(ctx)
|
|
192
|
+
service = get_service(ctx, "stream_service")
|
|
193
|
+
try:
|
|
194
|
+
result = service.create_source(
|
|
195
|
+
alias=project,
|
|
196
|
+
name=name,
|
|
197
|
+
source_type=source_type.value,
|
|
198
|
+
branch_id=branch,
|
|
199
|
+
if_not_exists=if_not_exists,
|
|
200
|
+
reveal=reveal,
|
|
201
|
+
provision_sinks=not no_sinks,
|
|
202
|
+
)
|
|
203
|
+
except (ConfigError, KeboolaApiError) as exc:
|
|
204
|
+
_handle_errors(formatter, exc)
|
|
205
|
+
formatter.output(result, _format_detail)
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
@stream_app.command("detail")
|
|
209
|
+
def stream_detail(
|
|
210
|
+
ctx: typer.Context,
|
|
211
|
+
source_id: str | None = typer.Argument(None, help="Source id (or use --name)"),
|
|
212
|
+
project: str = typer.Option(..., "--project", "-p", help="Project alias"),
|
|
213
|
+
name: str | None = typer.Option(None, "--name", "-n", help="Look up the source by name"),
|
|
214
|
+
branch: str | None = typer.Option(
|
|
215
|
+
None, "--branch", help="Branch ref (default branch if unset)"
|
|
216
|
+
),
|
|
217
|
+
reveal: bool = typer.Option(False, "--reveal", help="Print the full endpoint incl. secret"),
|
|
218
|
+
) -> None:
|
|
219
|
+
"""Show a source's endpoints, protocol, and destination tables."""
|
|
220
|
+
formatter = get_formatter(ctx)
|
|
221
|
+
service = get_service(ctx, "stream_service")
|
|
222
|
+
try:
|
|
223
|
+
result = service.get_source_detail(
|
|
224
|
+
alias=project,
|
|
225
|
+
source_id=source_id,
|
|
226
|
+
name=name,
|
|
227
|
+
branch_id=branch,
|
|
228
|
+
reveal=reveal,
|
|
229
|
+
)
|
|
230
|
+
except (ConfigError, KeboolaApiError) as exc:
|
|
231
|
+
_handle_errors(formatter, exc)
|
|
232
|
+
formatter.output(result, _format_detail)
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
@stream_app.command("delete")
|
|
236
|
+
def stream_delete(
|
|
237
|
+
ctx: typer.Context,
|
|
238
|
+
source_id: str = typer.Argument(..., help="Source id to delete"),
|
|
239
|
+
project: str = typer.Option(..., "--project", "-p", help="Project alias"),
|
|
240
|
+
branch: str | None = typer.Option(
|
|
241
|
+
None, "--branch", help="Branch ref (default branch if unset)"
|
|
242
|
+
),
|
|
243
|
+
force: bool = typer.Option(False, "--force", help="Alias for --yes (skip confirmation)"),
|
|
244
|
+
dry_run: bool = typer.Option(False, "--dry-run", help="Preview without deleting"),
|
|
245
|
+
yes: bool = typer.Option(False, "--yes", "-y", help="Skip confirmation prompt"),
|
|
246
|
+
) -> None:
|
|
247
|
+
"""Delete a Data Streams source (destructive)."""
|
|
248
|
+
formatter = get_formatter(ctx)
|
|
249
|
+
if (
|
|
250
|
+
not dry_run
|
|
251
|
+
and not formatter.json_mode
|
|
252
|
+
and not (yes or force)
|
|
253
|
+
and not typer.confirm(
|
|
254
|
+
f"Delete source '{source_id}' from project {project}? This is destructive."
|
|
255
|
+
)
|
|
256
|
+
):
|
|
257
|
+
formatter.console.print("Aborted.")
|
|
258
|
+
raise typer.Exit(code=0)
|
|
259
|
+
service = get_service(ctx, "stream_service")
|
|
260
|
+
try:
|
|
261
|
+
result = service.delete_source(
|
|
262
|
+
alias=project, source_id=source_id, branch_id=branch, dry_run=dry_run
|
|
263
|
+
)
|
|
264
|
+
except (ConfigError, KeboolaApiError) as exc:
|
|
265
|
+
_handle_errors(formatter, exc)
|
|
266
|
+
formatter.output(result, _format_delete_result)
|