kamiwaza-cli 2.0.0__tar.gz

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.
Files changed (252) hide show
  1. kamiwaza_cli-2.0.0/LICENSE +202 -0
  2. kamiwaza_cli-2.0.0/NOTICE +4 -0
  3. kamiwaza_cli-2.0.0/PKG-INFO +341 -0
  4. kamiwaza_cli-2.0.0/README.md +298 -0
  5. kamiwaza_cli-2.0.0/kamiwaza_cli/__init__.py +27 -0
  6. kamiwaza_cli-2.0.0/kamiwaza_cli/__main__.py +8 -0
  7. kamiwaza_cli-2.0.0/kamiwaza_cli/auth/__init__.py +39 -0
  8. kamiwaza_cli-2.0.0/kamiwaza_cli/auth/client_factory.py +127 -0
  9. kamiwaza_cli-2.0.0/kamiwaza_cli/auth/oidc.py +1074 -0
  10. kamiwaza_cli-2.0.0/kamiwaza_cli/auth/refresh.py +76 -0
  11. kamiwaza_cli-2.0.0/kamiwaza_cli/auth/token_cache.py +206 -0
  12. kamiwaza_cli-2.0.0/kamiwaza_cli/checks/__init__.py +130 -0
  13. kamiwaza_cli-2.0.0/kamiwaza_cli/checks/base.py +216 -0
  14. kamiwaza_cli-2.0.0/kamiwaza_cli/checks/batch_execution.py +99 -0
  15. kamiwaza_cli-2.0.0/kamiwaza_cli/checks/control_plane.py +53 -0
  16. kamiwaza_cli-2.0.0/kamiwaza_cli/checks/data_store.py +99 -0
  17. kamiwaza_cli-2.0.0/kamiwaza_cli/checks/identity.py +170 -0
  18. kamiwaza_cli-2.0.0/kamiwaza_cli/checks/ingress.py +102 -0
  19. kamiwaza_cli-2.0.0/kamiwaza_cli/checks/model_serving.py +326 -0
  20. kamiwaza_cli-2.0.0/kamiwaza_cli/cli.py +344 -0
  21. kamiwaza_cli-2.0.0/kamiwaza_cli/commands/__init__.py +7 -0
  22. kamiwaza_cli-2.0.0/kamiwaza_cli/commands/_common.py +112 -0
  23. kamiwaza_cli-2.0.0/kamiwaza_cli/commands/certs.py +1066 -0
  24. kamiwaza_cli-2.0.0/kamiwaza_cli/commands/context.py +732 -0
  25. kamiwaza_cli-2.0.0/kamiwaza_cli/commands/diagnose.py +289 -0
  26. kamiwaza_cli-2.0.0/kamiwaza_cli/commands/dns.py +261 -0
  27. kamiwaza_cli-2.0.0/kamiwaza_cli/commands/login.py +394 -0
  28. kamiwaza_cli-2.0.0/kamiwaza_cli/commands/logs.py +328 -0
  29. kamiwaza_cli-2.0.0/kamiwaza_cli/commands/models.py +425 -0
  30. kamiwaza_cli-2.0.0/kamiwaza_cli/commands/provider.py +253 -0
  31. kamiwaza_cli-2.0.0/kamiwaza_cli/commands/resources.py +573 -0
  32. kamiwaza_cli-2.0.0/kamiwaza_cli/commands/restart.py +328 -0
  33. kamiwaza_cli-2.0.0/kamiwaza_cli/commands/schema.py +96 -0
  34. kamiwaza_cli-2.0.0/kamiwaza_cli/commands/status.py +200 -0
  35. kamiwaza_cli-2.0.0/kamiwaza_cli/commands/support_bundle.py +910 -0
  36. kamiwaza_cli-2.0.0/kamiwaza_cli/commands/traffic.py +249 -0
  37. kamiwaza_cli-2.0.0/kamiwaza_cli/commands/ui.py +99 -0
  38. kamiwaza_cli-2.0.0/kamiwaza_cli/commands/user.py +900 -0
  39. kamiwaza_cli-2.0.0/kamiwaza_cli/commands/version.py +108 -0
  40. kamiwaza_cli-2.0.0/kamiwaza_cli/components/__init__.py +13 -0
  41. kamiwaza_cli-2.0.0/kamiwaza_cli/components/resolver.py +55 -0
  42. kamiwaza_cli-2.0.0/kamiwaza_cli/components/vocabulary.py +93 -0
  43. kamiwaza_cli-2.0.0/kamiwaza_cli/context/__init__.py +17 -0
  44. kamiwaza_cli-2.0.0/kamiwaza_cli/context/registry.py +267 -0
  45. kamiwaza_cli-2.0.0/kamiwaza_cli/exit_codes.py +81 -0
  46. kamiwaza_cli-2.0.0/kamiwaza_cli/http/__init__.py +9 -0
  47. kamiwaza_cli-2.0.0/kamiwaza_cli/http/tls.py +188 -0
  48. kamiwaza_cli-2.0.0/kamiwaza_cli/ops/__init__.py +16 -0
  49. kamiwaza_cli-2.0.0/kamiwaza_cli/ops/certs.py +1951 -0
  50. kamiwaza_cli-2.0.0/kamiwaza_cli/ops/dns.py +890 -0
  51. kamiwaza_cli-2.0.0/kamiwaza_cli/ops/documents.py +110 -0
  52. kamiwaza_cli-2.0.0/kamiwaza_cli/ops/models.py +171 -0
  53. kamiwaza_cli-2.0.0/kamiwaza_cli/ops/providers.py +424 -0
  54. kamiwaza_cli-2.0.0/kamiwaza_cli/ops/resources.py +151 -0
  55. kamiwaza_cli-2.0.0/kamiwaza_cli/ops/status.py +213 -0
  56. kamiwaza_cli-2.0.0/kamiwaza_cli/ops/traffic.py +954 -0
  57. kamiwaza_cli-2.0.0/kamiwaza_cli/output/__init__.py +19 -0
  58. kamiwaza_cli-2.0.0/kamiwaza_cli/output/errors.py +83 -0
  59. kamiwaza_cli-2.0.0/kamiwaza_cli/output/human.py +95 -0
  60. kamiwaza_cli-2.0.0/kamiwaza_cli/output/structured.py +40 -0
  61. kamiwaza_cli-2.0.0/kamiwaza_cli/substrate/__init__.py +30 -0
  62. kamiwaza_cli-2.0.0/kamiwaza_cli/substrate/_sdk_logging.py +74 -0
  63. kamiwaza_cli-2.0.0/kamiwaza_cli/substrate/base.py +136 -0
  64. kamiwaza_cli-2.0.0/kamiwaza_cli/substrate/detect.py +301 -0
  65. kamiwaza_cli-2.0.0/kamiwaza_cli/substrate/kube.py +79 -0
  66. kamiwaza_cli-2.0.0/kamiwaza_cli/substrate/nonorchestrated.py +381 -0
  67. kamiwaza_cli-2.0.0/kamiwaza_cli/substrate/orchestrated.py +824 -0
  68. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/__init__.py +10 -0
  69. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/analyze.py +371 -0
  70. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/analyzers/__init__.py +3 -0
  71. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/analyzers/_helpers.py +224 -0
  72. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/analyzers/base.py +107 -0
  73. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/analyzers/cert_expiry.py +170 -0
  74. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/analyzers/coredns_health.py +319 -0
  75. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/analyzers/diagnose_status.py +211 -0
  76. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/analyzers/event_reason_scan.py +248 -0
  77. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/analyzers/http_status.py +129 -0
  78. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/analyzers/json_path.py +318 -0
  79. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/analyzers/log_pattern.py +119 -0
  80. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/analyzers/node_pressure.py +163 -0
  81. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/analyzers/present.py +99 -0
  82. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/analyzers/registry.py +120 -0
  83. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/analyzers/restart_count.py +247 -0
  84. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/analyzers/secret_leak.py +107 -0
  85. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/analyzers/statefulset_quorum.py +233 -0
  86. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/analyzers/text_match.py +170 -0
  87. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/analyzers/time_skew.py +121 -0
  88. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/__init__.py +3 -0
  89. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/_io.py +201 -0
  90. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/base.py +181 -0
  91. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/cluster_info.py +127 -0
  92. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/cluster_time.py +167 -0
  93. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/config.py +168 -0
  94. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/data.py +157 -0
  95. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/diagnose_snapshot.py +110 -0
  96. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/events.py +162 -0
  97. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/host.py +424 -0
  98. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/host_file.py +587 -0
  99. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/http.py +246 -0
  100. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/k8s/__init__.py +59 -0
  101. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/k8s/_client.py +395 -0
  102. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/k8s/_common.py +317 -0
  103. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/k8s/_kubeconfig.py +448 -0
  104. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/k8s/_kubectl.py +645 -0
  105. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/k8s/_resolver.py +307 -0
  106. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/k8s/cert_resources.py +91 -0
  107. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/k8s/coredns.py +242 -0
  108. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/k8s/dns_probe.py +879 -0
  109. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/k8s/events.py +63 -0
  110. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/k8s/exec.py +313 -0
  111. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/k8s/image_inventory.py +81 -0
  112. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/k8s/nodes.py +52 -0
  113. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/k8s/pod_copy.py +641 -0
  114. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/k8s/pod_inventory.py +81 -0
  115. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/k8s/popeye.py +109 -0
  116. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/k8s/previous_logs.py +110 -0
  117. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/k8s/ray_status.py +85 -0
  118. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/k8s/statefulset_health.py +66 -0
  119. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/logs.py +191 -0
  120. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/meta.py +112 -0
  121. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/previous_bundle_diff.py +282 -0
  122. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/registry.py +186 -0
  123. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/collectors/secrets_inventory.py +217 -0
  124. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/discovery.py +324 -0
  125. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/exceptions.py +94 -0
  126. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/manifest.py +318 -0
  127. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/output.py +291 -0
  128. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/pipeline.py +792 -0
  129. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/redaction_engine.py +177 -0
  130. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/redactors/__init__.py +3 -0
  131. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/redactors/base.py +90 -0
  132. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/redactors/builtin.py +181 -0
  133. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/redactors/operator.py +41 -0
  134. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/redactors/secret_name.py +77 -0
  135. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/spec/README.md +15 -0
  136. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/spec/__init__.py +3 -0
  137. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/spec/bundle-spec.schema.json +898 -0
  138. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/spec/effective.py +178 -0
  139. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/spec/merge.py +116 -0
  140. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/spec/parser.py +779 -0
  141. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/spec/resolver.py +202 -0
  142. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/spec/types.py +760 -0
  143. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/spec/well_known.py +128 -0
  144. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/specs/__init__.py +7 -0
  145. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/specs/default-categories.yaml +46 -0
  146. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/specs/default-with-k8s.yaml +417 -0
  147. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/specs/default.yaml +331 -0
  148. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/synthesizers/__init__.py +25 -0
  149. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/synthesizers/summary_md.py +216 -0
  150. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/synthesizers/timeline_json.py +283 -0
  151. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/tarball.py +100 -0
  152. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/viewer/__init__.py +19 -0
  153. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/viewer/analysis_summary.py +197 -0
  154. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/viewer/assets/__init__.py +8 -0
  155. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/viewer/assets/dashboard.html +3273 -0
  156. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/viewer/loader.py +261 -0
  157. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/viewer/output.py +65 -0
  158. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/viewer/payload.py +58 -0
  159. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/viewer/run.py +105 -0
  160. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/viewer/template.py +104 -0
  161. kamiwaza_cli-2.0.0/kamiwaza_cli/support_bundle/viewer/types.py +103 -0
  162. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/__init__.py +14 -0
  163. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/access_log.py +66 -0
  164. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/actions.py +159 -0
  165. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/app.py +3337 -0
  166. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/bootstrap.py +41 -0
  167. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/bundle.py +171 -0
  168. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/capacity.py +191 -0
  169. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/catalog.py +2908 -0
  170. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/chat.py +72 -0
  171. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/clipboard.py +45 -0
  172. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/context.py +128 -0
  173. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/describe_render.py +244 -0
  174. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/editing.py +337 -0
  175. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/errors.py +195 -0
  176. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/extension_starters.py +179 -0
  177. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/external_editor.py +97 -0
  178. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/health.py +503 -0
  179. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/identity.py +66 -0
  180. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/logstream/__init__.py +12 -0
  181. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/logstream/aggregator.py +206 -0
  182. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/logstream/correlate.py +111 -0
  183. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/logstream/histogram.py +259 -0
  184. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/logstream/normalize.py +356 -0
  185. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/logstream/patterns.py +269 -0
  186. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/logstream/timeindex.py +129 -0
  187. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/masking.py +111 -0
  188. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/notecards.py +646 -0
  189. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/pod_shell.py +188 -0
  190. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/providers/__init__.py +8 -0
  191. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/providers/base.py +175 -0
  192. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/providers/jobs.py +129 -0
  193. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/providers/k8s.py +251 -0
  194. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/providers/kr8s_accessor.py +780 -0
  195. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/providers/sdk.py +558 -0
  196. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/providers/substrate.py +165 -0
  197. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/providers/trust.py +198 -0
  198. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/recommendations.py +194 -0
  199. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/registry.py +176 -0
  200. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/run.py +66 -0
  201. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/scheduler.py +139 -0
  202. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/__init__.py +26 -0
  203. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/access_log.py +129 -0
  204. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/add_context.py +390 -0
  205. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/analytics.py +364 -0
  206. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/chat.py +138 -0
  207. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/choose.py +78 -0
  208. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/confirm.py +133 -0
  209. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/context_switch.py +65 -0
  210. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/describe.py +271 -0
  211. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/detail.py +359 -0
  212. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/diagnostics.py +133 -0
  213. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/dns.py +355 -0
  214. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/framed.py +70 -0
  215. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/list.py +876 -0
  216. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/log_explorer.py +960 -0
  217. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/logs.py +282 -0
  218. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/model_pull.py +405 -0
  219. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/offline.py +96 -0
  220. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/overview.py +1322 -0
  221. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/recommendations.py +168 -0
  222. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/resources.py +115 -0
  223. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/subsystem.py +375 -0
  224. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/swagger.py +536 -0
  225. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/theme_picker.py +109 -0
  226. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/traffic.py +302 -0
  227. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/screens/workroom.py +107 -0
  228. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/serving.py +343 -0
  229. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/state.py +46 -0
  230. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/status.py +62 -0
  231. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/swagger.py +284 -0
  232. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/widgets/__init__.py +5 -0
  233. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/widgets/action_menu.py +46 -0
  234. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/widgets/aggregated_log_pane.py +515 -0
  235. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/widgets/banner.py +54 -0
  236. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/widgets/frame.py +110 -0
  237. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/widgets/history_input.py +100 -0
  238. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/widgets/log_pane.py +243 -0
  239. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/widgets/log_syntax.py +116 -0
  240. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/widgets/nav_option_list.py +74 -0
  241. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/widgets/resource_table.py +196 -0
  242. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/widgets/status_cell.py +44 -0
  243. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/widgets/vim_scroll.py +35 -0
  244. kamiwaza_cli-2.0.0/kamiwaza_cli/tui/workroom.py +94 -0
  245. kamiwaza_cli-2.0.0/kamiwaza_cli.egg-info/PKG-INFO +341 -0
  246. kamiwaza_cli-2.0.0/kamiwaza_cli.egg-info/SOURCES.txt +250 -0
  247. kamiwaza_cli-2.0.0/kamiwaza_cli.egg-info/dependency_links.txt +1 -0
  248. kamiwaza_cli-2.0.0/kamiwaza_cli.egg-info/entry_points.txt +2 -0
  249. kamiwaza_cli-2.0.0/kamiwaza_cli.egg-info/requires.txt +22 -0
  250. kamiwaza_cli-2.0.0/kamiwaza_cli.egg-info/top_level.txt +1 -0
  251. kamiwaza_cli-2.0.0/pyproject.toml +157 -0
  252. kamiwaza_cli-2.0.0/setup.cfg +4 -0
@@ -0,0 +1,202 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
202
+
@@ -0,0 +1,4 @@
1
+ Kamiwaza CLI
2
+ Copyright 2026 Kamiwaza AI
3
+
4
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE).
@@ -0,0 +1,341 @@
1
+ Metadata-Version: 2.4
2
+ Name: kamiwaza-cli
3
+ Version: 2.0.0
4
+ Summary: Operator CLI for Kamiwaza deployments (cross-substrate).
5
+ Author: Kamiwaza Engineering
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Documentation, https://docs.kamiwaza.ai
8
+ Keywords: kamiwaza,cli,operator,diagnose,support-bundle
9
+ Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: Environment :: Console
11
+ Classifier: Intended Audience :: System Administrators
12
+ Classifier: Operating System :: MacOS :: MacOS X
13
+ Classifier: Operating System :: POSIX :: Linux
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Topic :: System :: Systems Administration
18
+ Requires-Python: >=3.11
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ License-File: NOTICE
22
+ Requires-Dist: kamiwaza-sdk<1.5,>=1.4
23
+ Requires-Dist: click<9,>=8.3.3
24
+ Requires-Dist: authlib<2,>=1.9.1
25
+ Requires-Dist: cryptography<51,>=50.0.1
26
+ Requires-Dist: rich<16,>=13.7
27
+ Requires-Dist: PyYAML<7,>=6.0
28
+ Requires-Dist: jsonschema<5,>=4.20
29
+ Requires-Dist: dnspython<3,>=2.9.2
30
+ Requires-Dist: textual<9,>=8.0
31
+ Provides-Extra: k8s
32
+ Requires-Dist: kr8s<1,>=0.20; extra == "k8s"
33
+ Requires-Dist: dpkt<2,>=1.9; extra == "k8s"
34
+ Provides-Extra: dev
35
+ Requires-Dist: pytest<9,>=8.1; extra == "dev"
36
+ Requires-Dist: pytest-httpx<0.31,>=0.30; extra == "dev"
37
+ Requires-Dist: pytest-asyncio<0.24,>=0.23; extra == "dev"
38
+ Requires-Dist: pytest-cov<6,>=5.0; extra == "dev"
39
+ Requires-Dist: ruff<1,>=0.5; extra == "dev"
40
+ Requires-Dist: commitizen<4,>=3.20; extra == "dev"
41
+ Requires-Dist: pytest-playwright<1,>=0.4; extra == "dev"
42
+ Dynamic: license-file
43
+
44
+ # kamiwaza-cli
45
+
46
+ The `kamiwaza` operator CLI — a standalone cross-substrate command-line
47
+ tool for Kamiwaza deployments. Talks to control-plane, data-store,
48
+ identity, ingress, model-serving, and batch-execution components through
49
+ the `kamiwaza-sdk`; adds OIDC login and local context management, a
50
+ k9s-style operator cockpit (`kamiwaza ui`) with matching one-shot resource
51
+ verbs, model acquisition + provider configuration, cluster PKI/DNS tooling, and a configurable support-bundle pipeline with an offline diagnostic dashboard
52
+ viewer on top.
53
+
54
+ ## Install
55
+
56
+ Install from PyPI as an isolated tool, pinned to a release:
57
+
58
+ ```bash
59
+ uv tool install "kamiwaza-cli==2.0.0"
60
+ # or
61
+ pipx install "kamiwaza-cli==2.0.0"
62
+ ```
63
+
64
+ Requires Python 3.11+.
65
+
66
+ Kamiwaza engineers with access to the source repository can install it for
67
+ development:
68
+
69
+ ```bash
70
+ git clone git@github.com:kamiwaza-mde/kamiwaza-cli.git
71
+ cd kamiwaza-cli
72
+ python -m pip install -e ".[dev]"
73
+ ```
74
+
75
+ ### Optional extras
76
+
77
+ The interactive operator console (`kamiwaza ui`) is part of the base install.
78
+ Kubernetes-native resource kinds stay behind an extra so the base stays lean:
79
+
80
+ ```bash
81
+ uv tool install "kamiwaza-cli[k8s]==2.0.0" # + Kubernetes-native kinds (orchestrated)
82
+ # or
83
+ pipx install "kamiwaza-cli[k8s]==2.0.0"
84
+ ```
85
+
86
+ See [`docs/ui.md`](docs/ui.md). The `k8s` extra adds in-process Kubernetes
87
+ access (no external tools) and only activates on orchestrated deployments
88
+ with usable cluster credentials.
89
+
90
+ ## Quickstart
91
+
92
+ ```bash
93
+ kamiwaza login # OIDC flow against the deployment
94
+ kamiwaza context list # see registered deployments
95
+ kamiwaza status # one-page cluster status (exit 0 = HEALTHY)
96
+ kamiwaza diagnose # health check across components
97
+ kamiwaza logs control-plane --since 10m
98
+ kamiwaza support-bundle collect -o bundle.tar.gz
99
+ kamiwaza support-bundle view bundle.tar.gz # offline dashboard in your browser
100
+ kamiwaza ui # interactive k9s-style cockpit
101
+ ```
102
+
103
+ See [`docs/getting-started.md`](docs/getting-started.md) for the
104
+ workstation-to-first-diagnose walkthrough.
105
+
106
+ ## Login
107
+
108
+ `kamiwaza login` is OAuth 2.0 Authorization Code + PKCE against your
109
+ deployment's Keycloak realm. On a workstation it opens a browser; you
110
+ sign in with your Keycloak credentials, approve, and the browser
111
+ closes. Token + refresh-token are cached on disk (`~/.kamiwaza/contexts/<name>/token.json`,
112
+ mode 0600); subsequent commands silently re-use them and silently
113
+ refresh as needed.
114
+
115
+ ```bash
116
+ # 1. Register the deployment (once per workstation):
117
+ kamiwaza context add prod --endpoint https://kamiwaza.prod.example/ --use
118
+
119
+ # 2. Log in:
120
+ kamiwaza login
121
+ # → browser opens → Keycloak login page → enter credentials → approve.
122
+
123
+ # 3. Use any authenticated command — no per-command auth dance:
124
+ kamiwaza diagnose
125
+ kamiwaza logs control-plane --since 10m
126
+ ```
127
+
128
+ ### One-time deployment setup: register the CLI's OIDC client
129
+
130
+ `kamiwaza login` needs a public OIDC client named `kamiwaza-cli`
131
+ registered in your deployment's Keycloak realm. Production deployments
132
+ should ship this in their installer (Helm chart / Terraform); for ad-hoc
133
+ deployments you can register it once by hand. **In the bundled debug
134
+ container this is automatic** — see "Debug container shortcut" below.
135
+
136
+ #### Option A — Keycloak Admin UI (90 seconds)
137
+
138
+ 1. Open `https://<your-deployment>/admin/master/console/` and log in as
139
+ `admin` (password in the `kamiwaza/keycloak-admin` cluster secret).
140
+ 2. Top-left dropdown → switch realm to **`kamiwaza`**.
141
+ 3. **Clients** → **Create client**:
142
+ - **Client type**: OpenID Connect
143
+ - **Client ID**: `kamiwaza-cli`
144
+ - **Next**
145
+ 4. **Capability config**:
146
+ - **Client authentication**: OFF (public client; required for PKCE)
147
+ - **Authentication flow**: tick **Standard flow** *and* **Device authorization grant**; untick the rest
148
+ - **Next**
149
+ 5. **Login settings**:
150
+ - **Valid redirect URIs**: `http://127.0.0.1:*/callback`, `http://localhost:*/callback`
151
+ - **Web origins**: `+`
152
+ - **Save**
153
+ 6. Open the new client → **Advanced** tab → **Proof Key for Code Exchange Code Challenge Method**: **S256** → **Save**.
154
+
155
+ #### Option B — `kcadm` (one shell-out, scriptable)
156
+
157
+ ```bash
158
+ KCADMIN=$(kubectl -n kamiwaza get secret keycloak-admin -o jsonpath='{.data.password}' | base64 -d)
159
+ KCPOD=$(kubectl -n kamiwaza get pod -l app.kubernetes.io/name=keycloak -o name | head -1)
160
+
161
+ kubectl -n kamiwaza exec "$KCPOD" -- /opt/keycloak/bin/kcadm.sh \
162
+ config credentials \
163
+ --server http://localhost:8080 \
164
+ --realm master --user admin --password "$KCADMIN"
165
+
166
+ kubectl -n kamiwaza exec "$KCPOD" -- /opt/keycloak/bin/kcadm.sh \
167
+ create clients \
168
+ --target-realm kamiwaza \
169
+ --set clientId=kamiwaza-cli \
170
+ --set publicClient=true \
171
+ --set 'redirectUris=["http://127.0.0.1:*/callback","http://localhost:*/callback"]' \
172
+ --set 'webOrigins=["+"]' \
173
+ --set standardFlowEnabled=true \
174
+ --set 'attributes={"oauth2.device.authorization.grant.enabled":"true","pkce.code.challenge.method":"S256"}'
175
+ ```
176
+
177
+ ### Debug container shortcut
178
+
179
+ When `kamiwaza login` runs inside the [`kamiwaza-debug` container](https://github.com/kamiwaza-internal/kamiwaza-debug-container)
180
+ (jump pod, ephemeral `kubectl debug`, or DaemonSet shell), the
181
+ container's `kamiwaza` wrapper auto-provisions the `kamiwaza-cli`
182
+ client on the realm if it's missing. It uses the pod's existing RBAC
183
+ to read the `kamiwaza/keycloak-admin` secret and exec into the
184
+ Keycloak pod's `kcadm.sh`. Idempotent (probes the realm first), runs
185
+ once per pod lifetime, no operator interaction. Outside the debug pod
186
+ the wrapper is a transparent passthrough — see Options A/B above for
187
+ your workstation.
188
+
189
+ ### From a headless environment (SSH, in-pod, no browser)
190
+
191
+ ```bash
192
+ kamiwaza login --device-code
193
+ # → prints "visit https://kamiwaza.test/realms/kamiwaza/device?user_code=XXXX-XXXX"
194
+ ```
195
+
196
+ Open that URL on any device with a browser, enter the code, approve.
197
+ The CLI is polling and finishes automatically.
198
+
199
+ ### Multiple contexts
200
+
201
+ ```bash
202
+ kamiwaza context add prod --endpoint https://kamiwaza.prod.example/
203
+ kamiwaza context add staging --endpoint https://stg.example/
204
+
205
+ kamiwaza --context prod diagnose # one-off override
206
+ kamiwaza context use staging # switch the active context
207
+ ```
208
+
209
+ Tokens are scoped per context — logging in against `staging` doesn't
210
+ disturb `prod` credentials.
211
+
212
+ ### TLS — private CAs and dev clusters
213
+
214
+ For deployments using a private CA, pin the bundle on the context once:
215
+
216
+ ```bash
217
+ kamiwaza context add prod \
218
+ --endpoint https://kamiwaza.prod.example/ \
219
+ --ca-bundle /etc/ssl/private/kamiwaza-prod-ca.pem \
220
+ --use
221
+ ```
222
+
223
+ Stored at `~/.kamiwaza/contexts/<name>/ca.pem` (mode 0600), auto-loaded
224
+ for every command — no `KAMIWAZA_CA_BUNDLE` env var dance. Mirrors
225
+ `aws --ca-bundle` and `gcloud --certificate-authority`.
226
+
227
+ For local-dev clusters with self-signed certs you don't want to bother
228
+ pinning:
229
+
230
+ ```bash
231
+ kamiwaza context add dev \
232
+ --endpoint https://kamiwaza.dev.local/ \
233
+ --insecure-skip-tls-verify --use
234
+ ```
235
+
236
+ `kubectl`-style flag — disables verification entirely for that context.
237
+ Production contexts should always pin a bundle instead.
238
+
239
+ ## Agent and script contract
240
+
241
+ `kamiwaza schema` describes the installed command tree without credentials,
242
+ configuration, or a platform connection. Use `kamiwaza schema context list`
243
+ to inspect one command's required arguments, options, types, and choices.
244
+ The JSON `schema_version` is `1.0`; it is an installed-CLI discovery format,
245
+ not a claim of full CLI Spec or CLI Agent Spec conformance.
246
+
247
+ ```bash
248
+ kamiwaza schema
249
+ kamiwaza schema context list
250
+ kamiwaza --output json --non-interactive --no-color context list
251
+ ```
252
+
253
+ Place global flags before the command path. Commands with a platform target
254
+ also accept `--context NAME`. JSON successes write data to stdout. JSON errors
255
+ write a single envelope to stderr with a stable `kind`, `summary`, `next_step`,
256
+ and `exit_code`; always check process status. Some diagnostic and support-bundle
257
+ commands use nonzero outcomes for findings, not failed changes.
258
+
259
+ `--non-interactive` refuses terminal prompts and editors. Without a TTY,
260
+ commands requiring input also refuse; supply existing command-specific flags
261
+ only after reviewing consequences. There is no global `--yes`, `--dry-run`,
262
+ or `--no-pager`: no pager runs automatically. The schema does not certify a
263
+ command's side effects, result shape, or retry safety. Inspect the command's
264
+ help and current target state before a mutation; never retry uncertain writes
265
+ blindly. Never pass credentials as CLI arguments.
266
+
267
+ ## Commands
268
+
269
+ | Command | Purpose |
270
+ |---|---|
271
+ | `kamiwaza schema [path ...]` | Discover installed commands and flags offline as JSON |
272
+ | `kamiwaza login` / `logout` | OIDC login (Auth Code + PKCE or `--device-code`); discard tokens (`--all`) |
273
+ | `kamiwaza context *` | Register / switch between multiple deployments |
274
+ | `kamiwaza status` / `events` | One-page cluster status (exit 0 = HEALTHY); recent Kubernetes Warning events |
275
+ | `kamiwaza diagnose` | Run the built-in health checks across canonical components |
276
+ | `kamiwaza dns check\|resolve` | Read-only DNS troubleshooting; resolve a name with the cause |
277
+ | `kamiwaza logs <component>` | Stream logs from a named component |
278
+ | `kamiwaza restart <component>` | Restart a component (live-integration-tested) |
279
+ | `kamiwaza kinds / get / describe / edit / delete / action` | Universal resource verbs over every kind the cockpit manages |
280
+ | `kamiwaza model search\|pull\|status` | Acquire models — search a hub, download weights, or register a provider model |
281
+ | `kamiwaza provider add\|list\|show\|remove` | Configure model providers (e.g. AWS Bedrock) |
282
+ | `kamiwaza certs *` | Cluster PKI: inventory, renew, rotate-ca, install, trust anchors, TLS test |
283
+ | `kamiwaza user *` | Identity-management operations against the deployment's user surface |
284
+ | `kamiwaza support-bundle collect\|view\|analyze\|list-*` | Redact-aware bundle pipeline + offline dashboard viewer |
285
+ | `kamiwaza ui` | Interactive command center (k9s-style TUI) |
286
+ | `kamiwaza version` | CLI + SDK version info |
287
+
288
+ Full reference: [`docs/commands.md`](docs/commands.md).
289
+
290
+ ## Documentation
291
+
292
+ - [`docs/getting-started.md`](docs/getting-started.md) — fresh laptop → first `kamiwaza diagnose`
293
+ - [`docs/commands.md`](docs/commands.md) — every subcommand, flag, exit code
294
+ - [`docs/support-bundle.md`](docs/support-bundle.md) — operator guide for the bundle pipeline
295
+ - [`docs/publishing-bundle-spec.md`](docs/publishing-bundle-spec.md) — publish a deployment-specific spec at the well-known path
296
+ - [`docs/oidc-client-setup.md`](docs/oidc-client-setup.md) — wire up the deployment's identity provider
297
+ - [`docs/runbooks/`](docs/runbooks/) — one runbook per canonical diagnose failure
298
+ - [`specs/`](specs/) — the spec-kit source of truth for every feature (`spec.md` / `plan.md` / `tasks.md` / `contracts/`)
299
+
300
+ ## Development
301
+
302
+ ```bash
303
+ python -m pip install -e ".[dev]"
304
+ pytest tests/unit/kamiwaza_cli # default test suite
305
+ pytest -m browser tests/browser # dashboard Playwright tests (requires `playwright install chromium`)
306
+ ruff check kamiwaza_cli tests/unit/kamiwaza_cli
307
+ ruff format kamiwaza_cli tests/unit/kamiwaza_cli
308
+ ```
309
+
310
+ Integration tests (`tests/integration/kamiwaza_cli/`) are gated on
311
+ `KAMIWAZA_TEST_ENDPOINT` + `KAMIWAZA_TEST_TOKEN` per Constitution
312
+ Principle VII; skipped by default.
313
+
314
+ ## Architecture
315
+
316
+ The CLI is a single Python package (`kamiwaza_cli/`) installed as the
317
+ `kamiwaza` console script. Entry point is `kamiwaza_cli.cli:main`.
318
+
319
+ Layout at the repo root:
320
+
321
+ ```
322
+ kamiwaza_cli/ Python package source
323
+ specs/ spec-kit source of truth (001–004)
324
+ tests/ unit / integration / browser / perf / fixtures
325
+ docs/ operator-facing reference + runbooks
326
+ .specify/ spec-kit templates + constitution
327
+ scripts/ developer scripts (fault sweeps, host-file verifier)
328
+ demo/ local demo harness for the spec-003 dashboard
329
+ ```
330
+
331
+ Design detail, hard rules, and the reuse contract live in
332
+ [`CLAUDE.md`](CLAUDE.md). The constitution is at
333
+ [`.specify/memory/constitution.md`](.specify/memory/constitution.md).
334
+
335
+ Platform installation and upgrades use the Deploy repository's native install interface
336
+ with a KKS-prepared substrate. The former `kamiwaza cluster sync` command has been
337
+ removed (ENG-11941); see [cluster installation guidance](docs/commands.md#platform-installation).
338
+
339
+ ## License
340
+
341
+ Apache-2.0.