zen-cli 0.1.23__tar.gz → 0.1.26__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. {zen_cli-0.1.23 → zen_cli-0.1.26}/CHANGELOG.md +24 -0
  2. {zen_cli-0.1.23 → zen_cli-0.1.26}/PKG-INFO +2 -2
  3. {zen_cli-0.1.23 → zen_cli-0.1.26}/pyproject.toml +12 -4
  4. zen_cli-0.1.26/src/zen_cli/cmds/daas/edge/__init__.py +1 -0
  5. zen_cli-0.1.26/src/zen_cli/cmds/daas/edge/bootstrap.py +18 -0
  6. zen_cli-0.1.26/src/zen_cli/cmds/daas/edge/delete.py +30 -0
  7. zen_cli-0.1.26/src/zen_cli/cmds/daas/edge/get.py +25 -0
  8. zen_cli-0.1.26/src/zen_cli/cmds/daas/edge/list.py +28 -0
  9. zen_cli-0.1.26/src/zen_cli/cmds/daas/edge/module/__init__.py +1 -0
  10. zen_cli-0.1.26/src/zen_cli/cmds/daas/edge/module/add.py +25 -0
  11. zen_cli-0.1.26/src/zen_cli/cmds/daas/edge/module/delete.py +30 -0
  12. zen_cli-0.1.26/src/zen_cli/cmds/daas/edge/module/disable.py +22 -0
  13. zen_cli-0.1.26/src/zen_cli/cmds/daas/edge/module/enable.py +22 -0
  14. zen_cli-0.1.26/src/zen_cli/cmds/daas/edge/module/get.py +25 -0
  15. zen_cli-0.1.26/src/zen_cli/cmds/daas/edge/module/list.py +27 -0
  16. zen_cli-0.1.26/src/zen_cli/cmds/daas/edge/module/version.py +23 -0
  17. zen_cli-0.1.26/src/zen_cli/cmds/daas/edge/offboard.py +39 -0
  18. zen_cli-0.1.26/src/zen_cli/cmds/daas/edge/onboard.py +59 -0
  19. zen_cli-0.1.26/src/zen_cli/cmds/daas/edge/upgrade.py +46 -0
  20. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/upgrade.py +16 -3
  21. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/mcp/resources/__init__.py +2 -0
  22. zen_cli-0.1.26/src/zen_cli/daas/mcp/resources/edge.py +27 -0
  23. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/mcp/server.py +4 -1
  24. zen_cli-0.1.26/src/zen_cli/daas/service/edge.py +71 -0
  25. zen_cli-0.1.26/src/zen_cli/daas/support/edge_host.py +359 -0
  26. zen_cli-0.1.26/src/zen_cli/daas/support/edge_view.py +39 -0
  27. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/support/login_support.py +10 -1
  28. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/support/profile.py +1 -0
  29. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/sglib/auth.py +8 -1
  30. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/sglib/csp.py +3 -0
  31. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/sglib/ez_client.py +11 -0
  32. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/test_cli.py +6 -2
  33. zen_cli-0.1.26/tests/test_dev_upgrade.py +123 -0
  34. zen_cli-0.1.26/tests/test_edge_host.py +145 -0
  35. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/test_mcp.py +2 -0
  36. {zen_cli-0.1.23 → zen_cli-0.1.26}/.gitignore +0 -0
  37. {zen_cli-0.1.23 → zen_cli-0.1.26}/LICENSE +0 -0
  38. {zen_cli-0.1.23 → zen_cli-0.1.26}/README.md +0 -0
  39. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/__init__.py +0 -0
  40. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/__main__.py +0 -0
  41. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cli.py +0 -0
  42. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/auth/__init__.py +0 -0
  43. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/auth/details.py +0 -0
  44. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/auth/login.py +0 -0
  45. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/auth/logout.py +0 -0
  46. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/auth/refresh.py +0 -0
  47. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/auth/status.py +0 -0
  48. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/auth/token.py +0 -0
  49. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/completion.py +0 -0
  50. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/__init__.py +0 -0
  51. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/activity/__init__.py +0 -0
  52. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/activity/get.py +0 -0
  53. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/activity/list.py +0 -0
  54. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/activity/use.py +0 -0
  55. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/api.py +0 -0
  56. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/credential/__init__.py +0 -0
  57. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/credential/create.py +0 -0
  58. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/credential/delete.py +0 -0
  59. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/credential/get.py +0 -0
  60. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/credential/list.py +0 -0
  61. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/credential/use.py +0 -0
  62. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/deployment/__init__.py +0 -0
  63. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/deployment/create.py +0 -0
  64. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/deployment/delete.py +0 -0
  65. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/deployment/get.py +0 -0
  66. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/deployment/list.py +0 -0
  67. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/deployment/use.py +0 -0
  68. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/entitlement/__init__.py +0 -0
  69. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/entitlement/create.py +0 -0
  70. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/entitlement/delete.py +0 -0
  71. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/entitlement/get.py +0 -0
  72. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/entitlement/list.py +0 -0
  73. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/entitlement/use.py +0 -0
  74. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/group/__init__.py +0 -0
  75. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/group/create.py +0 -0
  76. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/group/delete.py +0 -0
  77. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/group/get.py +0 -0
  78. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/group/list.py +0 -0
  79. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/group/use.py +0 -0
  80. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/mcp.py +0 -0
  81. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/network/__init__.py +0 -0
  82. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/network/create.py +0 -0
  83. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/network/delete.py +0 -0
  84. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/network/get.py +0 -0
  85. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/network/list.py +0 -0
  86. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/network/use.py +0 -0
  87. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/notification/__init__.py +0 -0
  88. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/notification/get.py +0 -0
  89. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/notification/list.py +0 -0
  90. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/notification/use.py +0 -0
  91. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/org/__init__.py +0 -0
  92. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/org/create.py +0 -0
  93. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/org/get.py +0 -0
  94. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/org/list.py +0 -0
  95. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/org/use.py +0 -0
  96. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/pool/__init__.py +0 -0
  97. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/pool/create.py +0 -0
  98. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/pool/delete.py +0 -0
  99. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/pool/get.py +0 -0
  100. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/pool/list.py +0 -0
  101. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/pool/use.py +0 -0
  102. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/provider/__init__.py +0 -0
  103. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/provider/create.py +0 -0
  104. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/provider/delete.py +0 -0
  105. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/provider/get.py +0 -0
  106. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/provider/list.py +0 -0
  107. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/provider/use.py +0 -0
  108. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/sag/__init__.py +0 -0
  109. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/sag/create.py +0 -0
  110. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/sag/delete.py +0 -0
  111. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/sag/get.py +0 -0
  112. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/sag/list.py +0 -0
  113. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/sag/use.py +0 -0
  114. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/task/__init__.py +0 -0
  115. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/task/cancel.py +0 -0
  116. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/task/duplicate.py +0 -0
  117. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/task/get.py +0 -0
  118. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/task/list.py +0 -0
  119. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/task/log.py +0 -0
  120. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/task/namespaces.py +0 -0
  121. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/task/use.py +0 -0
  122. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/task/wait.py +0 -0
  123. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/vm/__init__.py +0 -0
  124. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/vm/delete.py +0 -0
  125. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/vm/get.py +0 -0
  126. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/vm/list.py +0 -0
  127. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/vm/poweroff.py +0 -0
  128. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/vm/poweron.py +0 -0
  129. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/vm/restart.py +0 -0
  130. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/vm/shutdown.py +0 -0
  131. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/vm/use.py +0 -0
  132. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/daas/vm/wait.py +0 -0
  133. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/profile/__init__.py +0 -0
  134. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/profile/init.py +0 -0
  135. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/profile/lock.py +0 -0
  136. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/cmds/profile/unlock.py +0 -0
  137. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/config/default.yaml +0 -0
  138. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/config/int.yaml +0 -0
  139. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/config/prod.yaml +0 -0
  140. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/config/stg.yaml +0 -0
  141. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/ctxp/__init__.py +0 -0
  142. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/ctxp/_init.py +0 -0
  143. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/ctxp/built_in_cmds/__init__.py +0 -0
  144. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/ctxp/built_in_cmds/_ut.py +0 -0
  145. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/ctxp/built_in_cmds/context.py +0 -0
  146. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/ctxp/built_in_cmds/profile.py +0 -0
  147. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/ctxp/cli_options.py +0 -0
  148. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/ctxp/cli_processor.py +0 -0
  149. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/ctxp/config.py +0 -0
  150. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/ctxp/context.py +0 -0
  151. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/ctxp/data_util.py +0 -0
  152. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/ctxp/file_lock.py +0 -0
  153. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/ctxp/httpx_alias.py +0 -0
  154. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/ctxp/logger.py +0 -0
  155. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/ctxp/profile.py +0 -0
  156. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/ctxp/profile_store.py +0 -0
  157. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/ctxp/recent.py +0 -0
  158. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/ctxp/secret_store.py +0 -0
  159. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/ctxp/state.py +0 -0
  160. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/ctxp/telemetry.py +0 -0
  161. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/ctxp/util.py +0 -0
  162. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/__init__.py +0 -0
  163. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/mcp/__init__.py +0 -0
  164. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/mcp/_util.py +0 -0
  165. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/mcp/resources/activity.py +0 -0
  166. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/mcp/resources/api.py +0 -0
  167. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/mcp/resources/credential.py +0 -0
  168. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/mcp/resources/deployment.py +0 -0
  169. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/mcp/resources/entitlement.py +0 -0
  170. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/mcp/resources/group.py +0 -0
  171. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/mcp/resources/network.py +0 -0
  172. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/mcp/resources/notification.py +0 -0
  173. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/mcp/resources/org.py +0 -0
  174. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/mcp/resources/pool.py +0 -0
  175. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/mcp/resources/provider.py +0 -0
  176. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/mcp/resources/sag.py +0 -0
  177. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/mcp/resources/task.py +0 -0
  178. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/mcp/resources/vm.py +0 -0
  179. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/service/__init__.py +0 -0
  180. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/service/activity.py +0 -0
  181. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/service/api.py +0 -0
  182. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/service/broker/__init__.py +0 -0
  183. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/service/broker/entitlement.py +0 -0
  184. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/service/broker/pool_group.py +0 -0
  185. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/service/cockpit/__init__.py +0 -0
  186. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/service/cockpit/network.py +0 -0
  187. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/service/cockpit/pool.py +0 -0
  188. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/service/cockpit/provider.py +0 -0
  189. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/service/cockpit/sag.py +0 -0
  190. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/service/cockpit/vm.py +0 -0
  191. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/service/credential.py +0 -0
  192. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/service/deployment.py +0 -0
  193. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/service/notification.py +0 -0
  194. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/service/org.py +0 -0
  195. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/service/task.py +0 -0
  196. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/support/activity.py +0 -0
  197. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/support/auth.py +0 -0
  198. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/support/deployment.py +0 -0
  199. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/support/network.py +0 -0
  200. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/support/notification.py +0 -0
  201. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/support/org.py +0 -0
  202. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/support/payload.py +0 -0
  203. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/support/pool.py +0 -0
  204. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/support/recent.py +0 -0
  205. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/support/task.py +0 -0
  206. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/support/use_util.py +0 -0
  207. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/daas/support/vm.py +0 -0
  208. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/dex/.gitkeep +0 -0
  209. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/sglib/__init__.py +0 -0
  210. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/sglib/cli_options.py +0 -0
  211. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/sglib/client_util.py +0 -0
  212. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/sglib/mdc.py +0 -0
  213. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/sglib/requtil.py +0 -0
  214. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/sglib/zds_client.py +0 -0
  215. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/util/exec_util.py +0 -0
  216. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/util/exit.py +0 -0
  217. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/util/query_util.py +0 -0
  218. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/util/readonly.py +0 -0
  219. {zen_cli-0.1.23 → zen_cli-0.1.26}/src/zen_cli/util/versions.py +0 -0
  220. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/__init__.py +0 -0
  221. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/blackbox/__init__.py +0 -0
  222. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/blackbox/cli_test.py +0 -0
  223. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/blackbox/conftest.py +0 -0
  224. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/blackbox/test_api.py +0 -0
  225. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/blackbox/test_auth.py +0 -0
  226. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/blackbox/test_completion.py +0 -0
  227. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/blackbox/test_context.py +0 -0
  228. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/blackbox/test_errors.py +0 -0
  229. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/blackbox/test_help.py +0 -0
  230. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/blackbox/test_io.py +0 -0
  231. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/blackbox/test_login.py +0 -0
  232. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/blackbox/test_logout.py +0 -0
  233. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/blackbox/test_org.py +0 -0
  234. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/blackbox/test_pool.py +0 -0
  235. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/blackbox/test_profile.py +0 -0
  236. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/blackbox/test_root.py +0 -0
  237. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/blackbox/util.py +0 -0
  238. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/test_auth_status.py +0 -0
  239. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/test_dev_bundle.py +0 -0
  240. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/test_dev_release.py +0 -0
  241. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/test_device_login.py +0 -0
  242. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/test_error_details.py +0 -0
  243. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/test_error_object.py +0 -0
  244. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/test_import_lazy.py +0 -0
  245. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/test_leaf_help.py +0 -0
  246. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/test_payload.py +0 -0
  247. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/test_profile_features.py +0 -0
  248. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/test_profile_keyring.py +0 -0
  249. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/test_profile_lazy.py +0 -0
  250. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/test_profile_templates.py +0 -0
  251. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/test_query_util.py +0 -0
  252. {zen_cli-0.1.23 → zen_cli-0.1.26}/tests/test_recent.py +0 -0
@@ -9,6 +9,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [0.1.26] - 2026-11-29
13
+
14
+ ### Fixed
15
+
16
+ - `zen upgrade` passes pipx `--pip-args=--no-cache-dir` as one argument. A following `--no-cache-dir` is ignored by argparse, which then reports that `--pip-args` requires a value.
17
+
18
+ ## [0.1.25] - 2026-11-29
19
+
20
+ ### Added
21
+
22
+ - `./dev upgrade` updates each locked dependency to the newest minor and patch within its current major version.
23
+ - `./dev help` lists the developer commands. `./dev help <command>` shows that command's help.
24
+
25
+ ### Fixed
26
+
27
+ - `zen upgrade` bypasses the installer cache for uv (`uv tool upgrade --no-cache`), pipx (`--pip-args --no-cache-dir`), and pip, so a release still inside PyPI's index cache window is picked up.
28
+ - Bump locked dependencies past known advisories: authlib 1.9.10, certifi 2026.11.20, filelock 4.3.2, joserfc 1.8.0, msgpack 1.2.4, opentelemetry-api 1.45.2, virtualenv 21.15.14.
29
+
30
+ ## [0.1.24] - 2026-11-26
31
+
32
+ ### Added
33
+
34
+ - Profile `features.insecure` skips TLS certificate verification for that profile's CSP and ZDS requests. Default remains verification on.
35
+
12
36
  ## [0.1.23] - 2026-10-12
13
37
 
14
38
  ## [0.1.22] - 2026-10-12
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: zen-cli
3
- Version: 0.1.23
3
+ Version: 0.1.26
4
4
  Summary: CLI for Zen Cloud Service. Designed for AI and Human.
5
5
  Project-URL: Homepage, https://pypi.org/project/zen-cli/
6
6
  Author: zen-cli authors
7
7
  License-Expression: MIT
8
8
  License-File: LICENSE
9
9
  Requires-Python: >=3.14
10
- Requires-Dist: authlib>=1.3
10
+ Requires-Dist: authlib>=1.9.1
11
11
  Requires-Dist: click>=8.1
12
12
  Requires-Dist: httpx2>=2
13
13
  Requires-Dist: keyring>=25.7
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "zen-cli"
7
- version = "0.1.23"
7
+ version = "0.1.26"
8
8
  description = "CLI for Zen Cloud Service. Designed for AI and Human."
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -12,7 +12,7 @@ license-files = ["LICENSE"]
12
12
  requires-python = ">=3.14"
13
13
  authors = [{ name = "zen-cli authors" }]
14
14
  dependencies = [
15
- "authlib>=1.3",
15
+ "authlib>=1.9.1",
16
16
  "click>=8.1",
17
17
  "rich-click>=1.8",
18
18
  "httpx2>=2",
@@ -33,8 +33,8 @@ dependencies = [
33
33
  dev = [
34
34
  "build>=1.2",
35
35
  "pre-commit>=4",
36
- "ruff==0.16.8",
37
- "mypy==2.3.1",
36
+ "ruff==0.17.6",
37
+ "mypy==2.4.1",
38
38
  "pip-audit>=2.7",
39
39
  "pytest>=8",
40
40
  "pytest-cov>=6",
@@ -45,6 +45,14 @@ bundle = ["pyinstaller>=6.16"]
45
45
 
46
46
  [tool.uv]
47
47
  default-groups = ["dev"]
48
+ constraint-dependencies = [
49
+ "certifi>=2026.10.18",
50
+ "filelock>=4.2.1",
51
+ "joserfc>=1.7.6",
52
+ "msgpack>=1.2.3",
53
+ "opentelemetry-api>=1.45.1",
54
+ "virtualenv>=21.14.10",
55
+ ]
48
56
 
49
57
  [project.scripts]
50
58
  zen = "zen_cli.cli:main"
@@ -0,0 +1 @@
1
+ help = "Edge commands."
@@ -0,0 +1,18 @@
1
+ from typing import Any
2
+
3
+ import rich_click as click
4
+
5
+ import zen_cli.sglib.cli_options as cli
6
+ from zen_cli.daas.service import edge
7
+
8
+
9
+ @click.command()
10
+ @cli.org_id
11
+ def bootstrap(org: str) -> Any:
12
+ """Issue a one-time edge bootstrap string for the org.
13
+
14
+ Examples:
15
+ zen daas edge bootstrap
16
+ zen daas edge bootstrap --org ORG_ID
17
+ """
18
+ return edge.issue_bootstrap(cli.get_org_id(org))
@@ -0,0 +1,30 @@
1
+ from typing import Any
2
+
3
+ import rich_click as click
4
+
5
+ import zen_cli.sglib.cli_options as cli
6
+ from zen_cli.ctxp import recent
7
+ from zen_cli.daas.service import edge
8
+
9
+
10
+ @click.command()
11
+ @click.argument("edge_id", type=str, required=False)
12
+ @cli.confirm
13
+ @cli.org_id
14
+ def delete(edge_id: str, confirm: bool, org: str) -> Any:
15
+ """Delete an edge from the org.
16
+
17
+ Examples:
18
+ zen daas edge delete EDGE_ID -y
19
+ zen daas edge delete -y
20
+ zen daas edge delete EDGE_ID --org ORG_ID -y
21
+ """
22
+ org_id = cli.get_org_id(org)
23
+ edge_id = recent.require("edge", edge_id)
24
+ current = edge.get(edge_id, org_id)
25
+ if not current:
26
+ click.echo(f"Edge {edge_id} not found; already deleted.", err=True)
27
+ return ""
28
+ if not confirm:
29
+ click.confirm(f"Delete edge {edge_id}?", abort=True)
30
+ return edge.delete(edge_id, org_id)
@@ -0,0 +1,25 @@
1
+ from typing import Any
2
+
3
+ import rich_click as click
4
+
5
+ import zen_cli.sglib.cli_options as cli
6
+ from zen_cli.ctxp import recent
7
+ from zen_cli.daas.service import edge
8
+
9
+
10
+ @click.command()
11
+ @click.argument("edge_id", type=str, required=False)
12
+ @cli.org_id
13
+ def get(edge_id: str, org: str) -> Any:
14
+ """Get one edge, including its modules.
15
+
16
+ Examples:
17
+ zen daas edge get
18
+ zen daas edge get EDGE_ID
19
+ zen daas edge get EDGE_ID --org ORG_ID
20
+ """
21
+ edge_id = recent.require("edge", edge_id)
22
+ ret = edge.get(edge_id, cli.get_org_id(org))
23
+ if ret:
24
+ return ret
25
+ return "", 1
@@ -0,0 +1,28 @@
1
+ from typing import Any
2
+
3
+ import rich_click as click
4
+
5
+ import zen_cli.sglib.cli_options as cli
6
+ from zen_cli.ctxp import recent
7
+ from zen_cli.daas.service import edge
8
+ from zen_cli.daas.support.edge_view import format_edge_table
9
+
10
+
11
+ @click.command(name="list")
12
+ @cli.org_id
13
+ @click.option("--status", type=str, required=False, help="Filter by edge status.")
14
+ @click.option("--location", type=str, required=False, help="Filter by edge location.")
15
+ @cli.sort
16
+ @cli.limit
17
+ @cli.formatter(format_edge_table)
18
+ def list_edges(org: str, status: str | None, location: str | None, **kwargs: Any) -> Any:
19
+ """List edges in the org.
20
+
21
+ Examples:
22
+ zen daas edge list
23
+ zen daas edge list --status online -o table
24
+ zen daas edge list --org ORG_ID --location beijing
25
+ """
26
+ ret = edge.list_edges(cli.get_org_id(org), status=status, location=location, **kwargs)
27
+ recent.helper.default_list(ret, "edge", field_name="edgeId")
28
+ return ret
@@ -0,0 +1 @@
1
+ help = "Modules installed on an edge."
@@ -0,0 +1,25 @@
1
+ from typing import Any
2
+
3
+ import rich_click as click
4
+
5
+ import zen_cli.sglib.cli_options as cli
6
+ from zen_cli.ctxp import recent
7
+ from zen_cli.daas.service import edge
8
+
9
+
10
+ @click.command()
11
+ @click.argument("edge_id", type=str, required=False)
12
+ @click.argument("module_id", type=str)
13
+ @click.option("--image", "image_id", required=True, type=str, help="Module image id.")
14
+ @click.option("--enabled/--disabled", default=True, help="Start the module enabled or disabled.")
15
+ @cli.org_id
16
+ def add(edge_id: str, module_id: str, image_id: str, enabled: bool, org: str) -> Any:
17
+ """Add a module to an edge.
18
+
19
+ Examples:
20
+ zen daas edge module add EDGE_ID MODULE_ID --image IMAGE_ID
21
+ zen daas edge module add EDGE_ID MODULE_ID --image IMAGE_ID --disabled
22
+ zen daas edge module add EDGE_ID MODULE_ID --image IMAGE_ID --org ORG_ID
23
+ """
24
+ edge_id = recent.require("edge", edge_id)
25
+ return edge.add_module(edge_id, module_id, cli.get_org_id(org), image_id, enabled)
@@ -0,0 +1,30 @@
1
+ from typing import Any
2
+
3
+ import rich_click as click
4
+
5
+ import zen_cli.sglib.cli_options as cli
6
+ from zen_cli.ctxp import recent
7
+ from zen_cli.daas.service import edge
8
+
9
+
10
+ @click.command()
11
+ @click.argument("edge_id", type=str, required=False)
12
+ @click.argument("module_id", type=str)
13
+ @cli.confirm
14
+ @cli.org_id
15
+ def delete(edge_id: str, module_id: str, confirm: bool, org: str) -> Any:
16
+ """Remove a module from an edge.
17
+
18
+ Examples:
19
+ zen daas edge module delete EDGE_ID MODULE_ID -y
20
+ zen daas edge module delete EDGE_ID MODULE_ID --org ORG_ID -y
21
+ """
22
+ org_id = cli.get_org_id(org)
23
+ edge_id = recent.require("edge", edge_id)
24
+ current = edge.get_module(edge_id, module_id, org_id)
25
+ if not current:
26
+ click.echo(f"Module {module_id} on edge {edge_id} not found; already deleted.", err=True)
27
+ return ""
28
+ if not confirm:
29
+ click.confirm(f"Delete module {module_id} from edge {edge_id}?", abort=True)
30
+ return edge.delete_module(edge_id, module_id, org_id)
@@ -0,0 +1,22 @@
1
+ from typing import Any
2
+
3
+ import rich_click as click
4
+
5
+ import zen_cli.sglib.cli_options as cli
6
+ from zen_cli.ctxp import recent
7
+ from zen_cli.daas.service import edge
8
+
9
+
10
+ @click.command()
11
+ @click.argument("edge_id", type=str, required=False)
12
+ @click.argument("module_id", type=str)
13
+ @cli.org_id
14
+ def disable(edge_id: str, module_id: str, org: str) -> Any:
15
+ """Disable a module on an edge.
16
+
17
+ Examples:
18
+ zen daas edge module disable EDGE_ID MODULE_ID
19
+ zen daas edge module disable EDGE_ID MODULE_ID --org ORG_ID
20
+ """
21
+ edge_id = recent.require("edge", edge_id)
22
+ return edge.set_module_enabled(edge_id, module_id, cli.get_org_id(org), False)
@@ -0,0 +1,22 @@
1
+ from typing import Any
2
+
3
+ import rich_click as click
4
+
5
+ import zen_cli.sglib.cli_options as cli
6
+ from zen_cli.ctxp import recent
7
+ from zen_cli.daas.service import edge
8
+
9
+
10
+ @click.command()
11
+ @click.argument("edge_id", type=str, required=False)
12
+ @click.argument("module_id", type=str)
13
+ @cli.org_id
14
+ def enable(edge_id: str, module_id: str, org: str) -> Any:
15
+ """Enable a module on an edge.
16
+
17
+ Examples:
18
+ zen daas edge module enable EDGE_ID MODULE_ID
19
+ zen daas edge module enable EDGE_ID MODULE_ID --org ORG_ID
20
+ """
21
+ edge_id = recent.require("edge", edge_id)
22
+ return edge.set_module_enabled(edge_id, module_id, cli.get_org_id(org), True)
@@ -0,0 +1,25 @@
1
+ from typing import Any
2
+
3
+ import rich_click as click
4
+
5
+ import zen_cli.sglib.cli_options as cli
6
+ from zen_cli.ctxp import recent
7
+ from zen_cli.daas.service import edge
8
+
9
+
10
+ @click.command()
11
+ @click.argument("edge_id", type=str, required=False)
12
+ @click.argument("module_id", type=str)
13
+ @cli.org_id
14
+ def get(edge_id: str, module_id: str, org: str) -> Any:
15
+ """Get one module on an edge.
16
+
17
+ Examples:
18
+ zen daas edge module get EDGE_ID MODULE_ID
19
+ zen daas edge module get EDGE_ID MODULE_ID --org ORG_ID
20
+ """
21
+ edge_id = recent.require("edge", edge_id)
22
+ ret = edge.get_module(edge_id, module_id, cli.get_org_id(org))
23
+ if ret:
24
+ return ret
25
+ return "", 1
@@ -0,0 +1,27 @@
1
+ from typing import Any
2
+
3
+ import rich_click as click
4
+
5
+ import zen_cli.sglib.cli_options as cli
6
+ from zen_cli.ctxp import recent
7
+ from zen_cli.daas.service import edge
8
+ from zen_cli.daas.support.edge_view import format_module_table, module_rows
9
+
10
+
11
+ @click.command(name="list")
12
+ @click.argument("edge_id", type=str, required=False)
13
+ @cli.org_id
14
+ @cli.formatter(format_module_table)
15
+ def list_modules(edge_id: str, org: str) -> Any:
16
+ """List modules on an edge.
17
+
18
+ Examples:
19
+ zen daas edge module list EDGE_ID
20
+ zen daas edge module list -o table
21
+ zen daas edge module list EDGE_ID --org ORG_ID
22
+ """
23
+ edge_id = recent.require("edge", edge_id)
24
+ device = edge.get(edge_id, cli.get_org_id(org))
25
+ if not device:
26
+ return "", 1
27
+ return module_rows(device)
@@ -0,0 +1,23 @@
1
+ from typing import Any
2
+
3
+ import rich_click as click
4
+
5
+ import zen_cli.sglib.cli_options as cli
6
+ from zen_cli.ctxp import recent
7
+ from zen_cli.daas.service import edge
8
+
9
+
10
+ @click.command()
11
+ @click.argument("edge_id", type=str, required=False)
12
+ @click.argument("module_id", type=str)
13
+ @click.option("--image", "image_id", required=True, type=str, help="Module image id.")
14
+ @cli.org_id
15
+ def version(edge_id: str, module_id: str, image_id: str, org: str) -> Any:
16
+ """Change the image of a module on an edge.
17
+
18
+ Examples:
19
+ zen daas edge module version EDGE_ID MODULE_ID --image IMAGE_ID
20
+ zen daas edge module version EDGE_ID MODULE_ID --image IMAGE_ID --org ORG_ID
21
+ """
22
+ edge_id = recent.require("edge", edge_id)
23
+ return edge.set_module_version(edge_id, module_id, cli.get_org_id(org), image_id)
@@ -0,0 +1,39 @@
1
+ from typing import Any
2
+
3
+ import rich_click as click
4
+
5
+ import zen_cli.sglib.cli_options as cli
6
+ from zen_cli.ctxp import CtxpException
7
+ from zen_cli.daas.service import edge as edge_svc
8
+ from zen_cli.daas.support import edge_host
9
+
10
+
11
+ @click.command()
12
+ @cli.org_id
13
+ @cli.confirm
14
+ def offboard(org: str, confirm: bool) -> Any:
15
+ """Remove the local edge and delete it from the org.
16
+
17
+ Examples:
18
+ zen daas edge offboard
19
+ zen daas edge offboard -y
20
+ zen daas edge offboard --org ORG_ID -y
21
+ """
22
+ org_id = edge_host.onboard_org(org)
23
+ current = edge_host.require_one_local_edge("offboard")
24
+ name = current["name"]
25
+ edge_id = (current.get("edgeId") or "").strip()
26
+ if not edge_id:
27
+ raise CtxpException(f"Local edge {name} has no edge id.")
28
+ edge_host.require_local_org(name, current.get("orgId") or "", org_id)
29
+ if not confirm:
30
+ click.confirm(f"Offboard {name} and delete it from org {org_id}?", abort=True)
31
+
32
+ click.echo(f"Removing {name}.", err=True)
33
+ edge_host.remove_local_edge(name)
34
+ remote = edge_svc.get(edge_id, org_id)
35
+ if remote:
36
+ edge_svc.delete(edge_id, org_id)
37
+ else:
38
+ click.echo(f"Edge {edge_id} not found; already deleted.", err=True)
39
+ return {"edgeId": edge_id, "name": name, "orgId": org_id, "status": "removed"}
@@ -0,0 +1,59 @@
1
+ from typing import Any
2
+
3
+ import rich_click as click
4
+ from yumako.time import duration
5
+
6
+ import zen_cli.sglib.cli_options as cli
7
+ from zen_cli.ctxp import CtxpException
8
+ from zen_cli.daas.service import edge as edge_svc
9
+ from zen_cli.daas.support import edge_host
10
+
11
+
12
+ @click.command()
13
+ @cli.org_id
14
+ @cli.confirm
15
+ @click.option(
16
+ "--image",
17
+ type=str,
18
+ required=False,
19
+ default=None,
20
+ help="Edge device image. Default: the published ACR image.",
21
+ )
22
+ @click.option(
23
+ "--timeout",
24
+ "-t",
25
+ type=str,
26
+ required=False,
27
+ default="2m",
28
+ show_default=True,
29
+ help="How long to wait until the edge is up. Examples: 30s, 2m.",
30
+ )
31
+ def onboard(org: str, confirm: bool, image: str | None, timeout: str) -> Any:
32
+ """Onboard one edge on this machine.
33
+
34
+ Examples:
35
+ zen daas edge onboard
36
+ zen daas edge onboard -y
37
+ zen daas edge onboard --org ORG_ID -y
38
+ """
39
+ org_id = edge_host.onboard_org(org)
40
+ edge_host.require_no_local_edge()
41
+ if not confirm:
42
+ click.confirm(f"Onboard an edge for org {org_id} on this machine?", abort=True)
43
+
44
+ click.echo("Requesting a bootstrap from edgehub.", err=True)
45
+ issued = edge_svc.issue_bootstrap(org_id)
46
+ token = str((issued or {}).get("bootstrapString") or "").strip()
47
+ if not token:
48
+ raise CtxpException("edgehub did not return a bootstrap string.")
49
+ edge_id = edge_host.edge_id_from_bootstrap(token)
50
+ chosen = image or edge_host.EDGE_DEVICE_IMAGE
51
+ name = f"edge-{edge_id}"
52
+
53
+ click.echo(f"Pulling {chosen}.", err=True)
54
+ sock = edge_host.podman_socket()
55
+ edge_host.pull_image(chosen)
56
+ click.echo(f"Starting {name}.", err=True)
57
+ edge_host.start_edge(name, org_id, edge_id, token, chosen, sock)
58
+ state = edge_host.wait_until_running(name, duration(timeout), redeem=True)
59
+ return {"edgeId": edge_id, "name": name, "image": chosen, "orgId": org_id, "status": state}
@@ -0,0 +1,46 @@
1
+ from typing import Any
2
+
3
+ import rich_click as click
4
+ from yumako.time import duration
5
+
6
+ import zen_cli.sglib.cli_options as cli
7
+ from zen_cli.daas.support import edge_host
8
+
9
+
10
+ @click.command()
11
+ @cli.confirm
12
+ @click.option(
13
+ "--image",
14
+ type=str,
15
+ required=False,
16
+ default=None,
17
+ help="Edge device image. Default: the published ACR image.",
18
+ )
19
+ @click.option(
20
+ "--timeout",
21
+ "-t",
22
+ type=str,
23
+ required=False,
24
+ default="2m",
25
+ show_default=True,
26
+ help="How long to wait until the edge is running. Examples: 30s, 2m.",
27
+ )
28
+ def upgrade(confirm: bool, image: str | None, timeout: str) -> Any:
29
+ """Replace the local edge device image and start it again.
30
+
31
+ Examples:
32
+ zen daas edge upgrade
33
+ zen daas edge upgrade -y
34
+ zen daas edge upgrade --image IMAGE -y
35
+ """
36
+ current = edge_host.require_one_local_edge()
37
+ chosen = image or edge_host.EDGE_DEVICE_IMAGE
38
+ if not confirm:
39
+ click.confirm(f"Upgrade {current['name']} to {chosen}?", abort=True)
40
+ click.echo(f"Pulling {chosen}.", err=True)
41
+ sock = edge_host.podman_socket()
42
+ edge_host.pull_image(chosen)
43
+ click.echo(f"Restarting {current['name']}.", err=True)
44
+ edge_host.replace_edge_image(current["name"], chosen, sock)
45
+ state = edge_host.wait_until_running(current["name"], duration(timeout), redeem=False)
46
+ return {"edgeId": current.get("edgeId") or "", "name": current["name"], "image": chosen, "status": state}
@@ -1,3 +1,4 @@
1
+ import os
1
2
  import shutil
2
3
  import subprocess
3
4
  import sys
@@ -23,16 +24,28 @@ def _managed_by(prefix: Path | None = None) -> str | None:
23
24
  return None
24
25
 
25
26
 
27
+ def _fresh_env() -> dict[str, str]:
28
+ # PyPI's simple index is cacheable (max-age=600). Ignore installer caches on every upgrade.
29
+ env = os.environ.copy()
30
+ env["PIP_NO_CACHE_DIR"] = "1"
31
+ env["UV_NO_CACHE"] = "1"
32
+ return env
33
+
34
+
26
35
  def _upgrade_cmd() -> list[str]:
27
36
  manager = _managed_by()
28
37
  if manager == "uv":
29
38
  uv = shutil.which("uv")
30
39
  if uv:
31
- return [uv, "tool", "upgrade", _PKG]
40
+ # `uv tool upgrade` has no --refresh; --no-cache skips the cached index.
41
+ return [uv, "tool", "upgrade", "--no-cache", _PKG]
32
42
  elif manager == "pipx":
33
43
  pipx = shutil.which("pipx")
34
44
  if pipx:
35
- return [pipx, "upgrade", _PKG]
45
+ # One argv. A separate "--no-cache-dir" is an option, so argparse
46
+ # reports that --pip-args has no value. Forwarded to pip, and to
47
+ # `uv pip` (alias of --no-cache) on pipx's uv backend.
48
+ return [pipx, "upgrade", _PKG, "--pip-args=--no-cache-dir"]
36
49
  return [
37
50
  sys.executable,
38
51
  "-m",
@@ -55,7 +68,7 @@ def upgrade() -> None:
55
68
  zen upgrade
56
69
  """
57
70
  cmd = _upgrade_cmd()
58
- p = subprocess.run(cmd, stdout=sys.stdout, stderr=sys.stderr, check=False)
71
+ p = subprocess.run(cmd, env=_fresh_env(), stdout=sys.stdout, stderr=sys.stderr, check=False)
59
72
  if p.returncode:
60
73
  if _managed_by() is None and sys.prefix == getattr(sys, "base_prefix", sys.prefix):
61
74
  print(
@@ -3,6 +3,7 @@ from . import (
3
3
  api,
4
4
  credential,
5
5
  deployment,
6
+ edge,
6
7
  entitlement,
7
8
  group,
8
9
  network,
@@ -20,6 +21,7 @@ __all__ = [
20
21
  "api",
21
22
  "credential",
22
23
  "deployment",
24
+ "edge",
23
25
  "entitlement",
24
26
  "group",
25
27
  "network",
@@ -0,0 +1,27 @@
1
+ from typing import Any
2
+
3
+ from zen_cli.daas.mcp._util import jsonable, page_kwargs, require, resolve_org_id
4
+ from zen_cli.daas.service import edge as edge_svc
5
+
6
+
7
+ def list_edges(
8
+ org_id: str | None = None,
9
+ status: str | None = None,
10
+ location: str | None = None,
11
+ sort: str | None = None,
12
+ limit: int = 20,
13
+ ) -> Any:
14
+ """List edges in the org."""
15
+ return jsonable(
16
+ edge_svc.list_edges(
17
+ resolve_org_id(org_id),
18
+ status=status,
19
+ location=location,
20
+ **page_kwargs(limit=limit, sort=sort),
21
+ )
22
+ )
23
+
24
+
25
+ def get_edge(id: str, org_id: str | None = None) -> Any:
26
+ """Get one edge, including its modules."""
27
+ return require(edge_svc.get(id, resolve_org_id(org_id)), "edge", id)
@@ -6,6 +6,7 @@ from zen_cli.daas.mcp.resources import activity as activity_res
6
6
  from zen_cli.daas.mcp.resources import api as api_res
7
7
  from zen_cli.daas.mcp.resources import credential as credential_res
8
8
  from zen_cli.daas.mcp.resources import deployment as deployment_res
9
+ from zen_cli.daas.mcp.resources import edge as edge_res
9
10
  from zen_cli.daas.mcp.resources import entitlement as entitlement_res
10
11
  from zen_cli.daas.mcp.resources import group as group_res
11
12
  from zen_cli.daas.mcp.resources import network as network_res
@@ -40,6 +41,8 @@ _TOOLS: list[tuple[Callable[..., Any], str]] = [
40
41
  (credential_res.get_credential, "credential_get"),
41
42
  (deployment_res.list_deployments, "deployment_list"),
42
43
  (deployment_res.get_deployment, "deployment_get"),
44
+ (edge_res.list_edges, "edge_list"),
45
+ (edge_res.get_edge, "edge_get"),
43
46
  (notification_res.list_notifications, "notification_list"),
44
47
  (notification_res.get_notification, "notification_get"),
45
48
  (pool_res.list_pools, "pool_list"),
@@ -57,7 +60,7 @@ def build() -> MCPServer:
57
60
  instructions=(
58
61
  "Zen Cloud PC MCP. Tool api is generic ZCS REST. "
59
62
  "Other tools are read-only get/list for org, activity, entitlement, "
60
- "group, provider, sag, network, credential, deployment, notification, "
63
+ "group, provider, sag, network, credential, deployment, edge, notification, "
61
64
  "pool, vm, and task. Do not invent delete or mutate tools."
62
65
  ),
63
66
  )