meshagent-cli 0.31.0__tar.gz → 0.52.1__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 (209) hide show
  1. meshagent_cli-0.52.1/LICENSE +201 -0
  2. meshagent_cli-0.52.1/PKG-INFO +69 -0
  3. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/README.md +2 -2
  4. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/__init__.py +1 -1
  5. meshagent_cli-0.52.1/meshagent/cli/_filedrop.py +112 -0
  6. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/agent.py +11 -13
  7. meshagent_cli-0.52.1/meshagent/cli/agent_cli_options_test.py +43 -0
  8. meshagent_cli-0.52.1/meshagent/cli/agent_package_cli.py +193 -0
  9. meshagent_cli-0.52.1/meshagent/cli/agent_package_cli_test.py +421 -0
  10. meshagent_cli-0.52.1/meshagent/cli/agents.py +746 -0
  11. meshagent_cli-0.52.1/meshagent/cli/agents_test.py +429 -0
  12. meshagent_cli-0.52.1/meshagent/cli/ask.py +5654 -0
  13. meshagent_cli-0.52.1/meshagent/cli/ask_test.py +2207 -0
  14. meshagent_cli-0.52.1/meshagent/cli/async_typer.py +507 -0
  15. meshagent_cli-0.52.1/meshagent/cli/async_typer_test.py +209 -0
  16. meshagent_cli-0.52.1/meshagent/cli/auth.py +162 -0
  17. meshagent_cli-0.52.1/meshagent/cli/auth_async.py +377 -0
  18. meshagent_cli-0.52.1/meshagent/cli/auth_async_test.py +90 -0
  19. meshagent_cli-0.52.1/meshagent/cli/auth_test.py +309 -0
  20. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/call.py +38 -32
  21. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/chatbot.py +2309 -865
  22. meshagent_cli-0.52.1/meshagent/cli/cli.py +397 -0
  23. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/cli_mcp.py +50 -139
  24. meshagent_cli-0.52.1/meshagent/cli/cli_test.py +247 -0
  25. meshagent_cli-0.52.1/meshagent/cli/common_options.py +99 -0
  26. meshagent_cli-0.52.1/meshagent/cli/config.py +77 -0
  27. meshagent_cli-0.52.1/meshagent/cli/config_test.py +86 -0
  28. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/containers.py +312 -251
  29. meshagent_cli-0.52.1/meshagent/cli/containers_test.py +671 -0
  30. meshagent_cli-0.52.1/meshagent/cli/create.py +1150 -0
  31. meshagent_cli-0.52.1/meshagent/cli/create_project_templates/__init__.py +0 -0
  32. meshagent_cli-0.52.1/meshagent/cli/create_project_templates/python/backend-agent/server.py +159 -0
  33. meshagent_cli-0.52.1/meshagent/cli/create_project_templates/python/contact-form/server.py +667 -0
  34. meshagent_cli-0.52.1/meshagent/cli/create_project_templates/python/slack-channel/channel.py +1517 -0
  35. meshagent_cli-0.52.1/meshagent/cli/create_project_templates/python/slack-channel/scripts/configure-slack.py +563 -0
  36. meshagent_cli-0.52.1/meshagent/cli/create_project_templates/python/slack-channel/scripts/setup-slack-dev-route.py +659 -0
  37. meshagent_cli-0.52.1/meshagent/cli/create_project_templates/python/slack-channel/server.py +119 -0
  38. meshagent_cli-0.52.1/meshagent/cli/create_project_templates/python/task-queue-dashboard/server.py +707 -0
  39. meshagent_cli-0.52.1/meshagent/cli/create_project_templates/python/telegram-channel/channel.py +1845 -0
  40. meshagent_cli-0.52.1/meshagent/cli/create_project_templates/python/telegram-channel/scripts/configure-telegram.py +597 -0
  41. meshagent_cli-0.52.1/meshagent/cli/create_project_templates/python/telegram-channel/scripts/create-bot-token.py +316 -0
  42. meshagent_cli-0.52.1/meshagent/cli/create_project_templates/python/telegram-channel/server.py +88 -0
  43. meshagent_cli-0.52.1/meshagent/cli/create_project_templates/python/twilio-channel/channel.py +1411 -0
  44. meshagent_cli-0.52.1/meshagent/cli/create_project_templates/python/twilio-channel/server.py +118 -0
  45. meshagent_cli-0.52.1/meshagent/cli/create_project_templates/python/webserver/server.py +279 -0
  46. meshagent_cli-0.52.1/meshagent/cli/create_project_templates/python/whatsapp-channel/channel.py +2700 -0
  47. meshagent_cli-0.52.1/meshagent/cli/create_project_templates/python/whatsapp-channel/server.py +104 -0
  48. meshagent_cli-0.52.1/meshagent/cli/create_test.py +4384 -0
  49. meshagent_cli-0.52.1/meshagent/cli/custom_domains.py +181 -0
  50. meshagent_cli-0.52.1/meshagent/cli/custom_domains_test.py +137 -0
  51. meshagent_cli-0.52.1/meshagent/cli/dataset.py +2624 -0
  52. meshagent_cli-0.52.1/meshagent/cli/dataset_test.py +365 -0
  53. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/developer.py +2 -2
  54. meshagent_cli-0.52.1/meshagent/cli/doctor.py +1998 -0
  55. meshagent_cli-0.52.1/meshagent/cli/doctor_dockerfiles/__init__.py +1 -0
  56. meshagent_cli-0.52.1/meshagent/cli/doctor_test.py +972 -0
  57. meshagent_cli-0.52.1/meshagent/cli/feeds.py +425 -0
  58. meshagent_cli-0.52.1/meshagent/cli/feeds_test.py +158 -0
  59. meshagent_cli-0.52.1/meshagent/cli/helper.py +794 -0
  60. meshagent_cli-0.52.1/meshagent/cli/helper_test.py +201 -0
  61. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/host.py +2 -2
  62. meshagent_cli-0.52.1/meshagent/cli/iam.py +335 -0
  63. meshagent_cli-0.52.1/meshagent/cli/iam_test.py +172 -0
  64. meshagent_cli-0.52.1/meshagent/cli/image.py +5393 -0
  65. meshagent_cli-0.52.1/meshagent/cli/image_test.py +5770 -0
  66. meshagent_cli-0.52.1/meshagent/cli/launch.py +104 -0
  67. meshagent_cli-0.52.1/meshagent/cli/launch_test.py +105 -0
  68. meshagent_cli-0.52.1/meshagent/cli/llm.py +822 -0
  69. meshagent_cli-0.52.1/meshagent/cli/llm_test.py +307 -0
  70. meshagent_cli-0.52.1/meshagent/cli/local_settings.py +496 -0
  71. meshagent_cli-0.52.1/meshagent/cli/local_settings_test.py +155 -0
  72. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/mailbot.py +298 -236
  73. meshagent_cli-0.52.1/meshagent/cli/mailbot_test.py +74 -0
  74. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/mailboxes.py +205 -12
  75. meshagent_cli-0.52.1/meshagent/cli/mailboxes_test.py +265 -0
  76. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/meeting_transcriber.py +10 -14
  77. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/memory.py +3 -2
  78. meshagent_cli-0.52.1/meshagent/cli/meshagent_images.py +55 -0
  79. meshagent_cli-0.52.1/meshagent/cli/meshagent_images_test.py +64 -0
  80. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/messaging.py +23 -12
  81. meshagent_cli-0.52.1/meshagent/cli/messaging_test.py +195 -0
  82. meshagent_cli-0.52.1/meshagent/cli/mounts.py +64 -0
  83. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/multi.py +90 -51
  84. meshagent_cli-0.52.1/meshagent/cli/oci_archive.py +1311 -0
  85. meshagent_cli-0.52.1/meshagent/cli/oci_archive_test.py +283 -0
  86. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/participant_token.py +17 -30
  87. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/port.py +2 -2
  88. meshagent_cli-0.52.1/meshagent/cli/preamble_rules.py +10 -0
  89. meshagent_cli-0.52.1/meshagent/cli/preamble_rules_test.py +7 -0
  90. meshagent_cli-0.52.1/meshagent/cli/process.py +12022 -0
  91. meshagent_cli-0.52.1/meshagent/cli/process_live_test.py +695 -0
  92. meshagent_cli-0.52.1/meshagent/cli/process_test.py +7250 -0
  93. meshagent_cli-0.52.1/meshagent/cli/projects.py +369 -0
  94. meshagent_cli-0.52.1/meshagent/cli/projects_test.py +473 -0
  95. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/queue.py +103 -17
  96. meshagent_cli-0.52.1/meshagent/cli/queue_test.py +458 -0
  97. meshagent_cli-0.52.1/meshagent/cli/registry.py +300 -0
  98. meshagent_cli-0.52.1/meshagent/cli/registry_test.py +393 -0
  99. meshagent_cli-0.52.1/meshagent/cli/room.py +83 -0
  100. meshagent_cli-0.52.1/meshagent/cli/room_connect.py +621 -0
  101. meshagent_cli-0.52.1/meshagent/cli/room_connect_test.py +1030 -0
  102. meshagent_cli-0.52.1/meshagent/cli/room_services.py +334 -0
  103. meshagent_cli-0.52.1/meshagent/cli/room_services_test.py +160 -0
  104. meshagent_cli-0.52.1/meshagent/cli/rooms.py +512 -0
  105. meshagent_cli-0.52.1/meshagent/cli/rooms_test.py +538 -0
  106. meshagent_cli-0.52.1/meshagent/cli/root_commands.py +283 -0
  107. meshagent_cli-0.52.1/meshagent/cli/root_commands_test.py +878 -0
  108. meshagent_cli-0.52.1/meshagent/cli/routes.py +663 -0
  109. meshagent_cli-0.52.1/meshagent/cli/routes_test.py +352 -0
  110. meshagent_cli-0.52.1/meshagent/cli/sample_channel_http_test.py +352 -0
  111. meshagent_cli-0.52.1/meshagent/cli/sample_channel_live_e2e_test.py +96 -0
  112. meshagent_cli-0.52.1/meshagent/cli/scheduled_tasks.py +404 -0
  113. meshagent_cli-0.52.1/meshagent/cli/scheduled_tasks_test.py +585 -0
  114. meshagent_cli-0.52.1/meshagent/cli/secrets.py +911 -0
  115. meshagent_cli-0.52.1/meshagent/cli/secrets_test.py +509 -0
  116. meshagent_cli-0.52.1/meshagent/cli/service_accounts.py +477 -0
  117. meshagent_cli-0.52.1/meshagent/cli/service_accounts_test.py +213 -0
  118. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/services.py +222 -89
  119. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/services_test.py +281 -31
  120. meshagent_cli-0.52.1/meshagent/cli/sessions.py +702 -0
  121. meshagent_cli-0.52.1/meshagent/cli/sessions_test.py +789 -0
  122. meshagent_cli-0.52.1/meshagent/cli/sqlite.py +1025 -0
  123. meshagent_cli-0.52.1/meshagent/cli/sqlite_recovery.py +373 -0
  124. meshagent_cli-0.52.1/meshagent/cli/sqlite_recovery_test.py +1026 -0
  125. meshagent_cli-0.52.1/meshagent/cli/sqlite_test.py +68 -0
  126. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/storage.py +18 -18
  127. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/storage_test.py +47 -5
  128. meshagent_cli-0.52.1/meshagent/cli/subscriptions.py +225 -0
  129. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/sync.py +11 -6
  130. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/task_runner.py +437 -413
  131. meshagent_cli-0.52.1/meshagent/cli/task_runner_test.py +160 -0
  132. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/test.py +24 -15
  133. meshagent_cli-0.52.1/meshagent/cli/testing.py +107 -0
  134. meshagent_cli-0.52.1/meshagent/cli/thread_inspect.py +359 -0
  135. meshagent_cli-0.52.1/meshagent/cli/thread_inspect_test.py +248 -0
  136. meshagent_cli-0.52.1/meshagent/cli/thread_sidebar.py +423 -0
  137. meshagent_cli-0.52.1/meshagent/cli/tool_call_summary.py +1478 -0
  138. meshagent_cli-0.52.1/meshagent/cli/tool_call_summary_test.py +276 -0
  139. meshagent_cli-0.52.1/meshagent/cli/tool_integrations.py +1396 -0
  140. meshagent_cli-0.52.1/meshagent/cli/tool_integrations_test.py +708 -0
  141. meshagent_cli-0.52.1/meshagent/cli/tui/auth_switch.py +277 -0
  142. meshagent_cli-0.52.1/meshagent/cli/tui/auth_switch_test.py +148 -0
  143. meshagent_cli-0.52.1/meshagent/cli/tui/create.py +714 -0
  144. meshagent_cli-0.52.1/meshagent/cli/tui/deploy_room.py +1463 -0
  145. meshagent_cli-0.52.1/meshagent/cli/tui/deploy_room_test.py +317 -0
  146. meshagent_cli-0.52.1/meshagent/cli/tui/project_activate.py +372 -0
  147. meshagent_cli-0.52.1/meshagent/cli/tui/project_activate_test.py +153 -0
  148. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/tui/setup.py +618 -74
  149. meshagent_cli-0.52.1/meshagent/cli/tui/setup_test.py +873 -0
  150. meshagent_cli-0.52.1/meshagent/cli/version.py +1 -0
  151. meshagent_cli-0.52.1/meshagent/cli/version_check.py +106 -0
  152. meshagent_cli-0.52.1/meshagent/cli/version_check_test.py +58 -0
  153. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/voicebot.py +10 -14
  154. meshagent_cli-0.52.1/meshagent/cli/volumes.py +252 -0
  155. meshagent_cli-0.52.1/meshagent/cli/volumes_test.py +31 -0
  156. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/webserver.py +112 -22
  157. meshagent_cli-0.52.1/meshagent/cli/webserver_test.py +348 -0
  158. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/worker.py +316 -300
  159. meshagent_cli-0.52.1/meshagent/cli/worker_test.py +146 -0
  160. meshagent_cli-0.52.1/meshagent_cli.egg-info/PKG-INFO +69 -0
  161. meshagent_cli-0.52.1/meshagent_cli.egg-info/SOURCES.txt +173 -0
  162. meshagent_cli-0.52.1/meshagent_cli.egg-info/dependency_links.txt +1 -0
  163. meshagent_cli-0.52.1/meshagent_cli.egg-info/requires.txt +43 -0
  164. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/pyproject.toml +39 -16
  165. meshagent_cli-0.31.0/PKG-INFO +0 -53
  166. meshagent_cli-0.31.0/meshagent/cli/api_keys.py +0 -105
  167. meshagent_cli-0.31.0/meshagent/cli/async_typer.py +0 -142
  168. meshagent_cli-0.31.0/meshagent/cli/auth.py +0 -30
  169. meshagent_cli-0.31.0/meshagent/cli/auth_async.py +0 -331
  170. meshagent_cli-0.31.0/meshagent/cli/cli.py +0 -279
  171. meshagent_cli-0.31.0/meshagent/cli/cli_secrets.py +0 -415
  172. meshagent_cli-0.31.0/meshagent/cli/cli_test.py +0 -34
  173. meshagent_cli-0.31.0/meshagent/cli/codex.py +0 -4168
  174. meshagent_cli-0.31.0/meshagent/cli/common_options.py +0 -63
  175. meshagent_cli-0.31.0/meshagent/cli/containers_test.py +0 -125
  176. meshagent_cli-0.31.0/meshagent/cli/database.py +0 -1277
  177. meshagent_cli-0.31.0/meshagent/cli/helper.py +0 -468
  178. meshagent_cli-0.31.0/meshagent/cli/helper_test.py +0 -33
  179. meshagent_cli-0.31.0/meshagent/cli/oauth2.py +0 -392
  180. meshagent_cli-0.31.0/meshagent/cli/process.py +0 -26
  181. meshagent_cli-0.31.0/meshagent/cli/process_test.py +0 -574
  182. meshagent_cli-0.31.0/meshagent/cli/projects.py +0 -119
  183. meshagent_cli-0.31.0/meshagent/cli/queue_test.py +0 -191
  184. meshagent_cli-0.31.0/meshagent/cli/room.py +0 -48
  185. meshagent_cli-0.31.0/meshagent/cli/room_services.py +0 -168
  186. meshagent_cli-0.31.0/meshagent/cli/rooms.py +0 -279
  187. meshagent_cli-0.31.0/meshagent/cli/routes.py +0 -264
  188. meshagent_cli-0.31.0/meshagent/cli/scheduled_tasks.py +0 -159
  189. meshagent_cli-0.31.0/meshagent/cli/scheduled_tasks_test.py +0 -46
  190. meshagent_cli-0.31.0/meshagent/cli/sessions.py +0 -26
  191. meshagent_cli-0.31.0/meshagent/cli/sessions_test.py +0 -123
  192. meshagent_cli-0.31.0/meshagent/cli/tui/setup_test.py +0 -22
  193. meshagent_cli-0.31.0/meshagent/cli/version.py +0 -1
  194. meshagent_cli-0.31.0/meshagent/cli/webhook.py +0 -100
  195. meshagent_cli-0.31.0/meshagent/cli/webserver_test.py +0 -106
  196. meshagent_cli-0.31.0/meshagent_cli.egg-info/PKG-INFO +0 -53
  197. meshagent_cli-0.31.0/meshagent_cli.egg-info/SOURCES.txt +0 -73
  198. meshagent_cli-0.31.0/meshagent_cli.egg-info/requires.txt +0 -29
  199. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/developer_test.py +0 -0
  200. /meshagent_cli-0.31.0/meshagent_cli.egg-info/dependency_links.txt → /meshagent_cli-0.52.1/meshagent/cli/doctor_templates/__init__.py +0 -0
  201. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/helpers.py +0 -0
  202. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/memory_test.py +0 -0
  203. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/port_test.py +0 -0
  204. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/sync_test.py +0 -0
  205. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/tui/__init__.py +0 -0
  206. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent/cli/tui/setup_splash_frames.py +0 -0
  207. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent_cli.egg-info/entry_points.txt +0 -0
  208. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/meshagent_cli.egg-info/top_level.txt +0 -0
  209. {meshagent_cli-0.31.0 → meshagent_cli-0.52.1}/setup.cfg +0 -0
@@ -0,0 +1,201 @@
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.
@@ -0,0 +1,69 @@
1
+ Metadata-Version: 2.4
2
+ Name: meshagent-cli
3
+ Version: 0.52.1
4
+ Summary: CLI for Meshagent
5
+ License-Expression: Apache-2.0
6
+ Project-URL: Documentation, https://docs.meshagent.com
7
+ Project-URL: Website, https://www.meshagent.com
8
+ Project-URL: Source, https://www.meshagent.com
9
+ Requires-Python: >=3.13
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Requires-Dist: typer~=0.26.6
13
+ Requires-Dist: aiofiles~=24.1
14
+ Requires-Dist: fastmcp~=2.8
15
+ Requires-Dist: opentelemetry-distro~=0.59b0
16
+ Requires-Dist: opentelemetry-exporter-otlp-proto-http~=1.33
17
+ Requires-Dist: art~=6.5
18
+ Requires-Dist: pyyaml~=6.0.2
19
+ Requires-Dist: pydantic-yaml~=1.5
20
+ Requires-Dist: pyarrow~=21.0.0
21
+ Requires-Dist: openpyxl~=3.1
22
+ Requires-Dist: xlsxwriter~=3.2
23
+ Requires-Dist: pathspec<2,>=1.0.3
24
+ Requires-Dist: zstandard~=0.25.0
25
+ Requires-Dist: meshagent-llm-proxy==0.52.1
26
+ Requires-Dist: meshagent-codex==0.52.1
27
+ Requires-Dist: rich~=14.3.0
28
+ Requires-Dist: sounddevice~=0.5
29
+ Requires-Dist: textual<9.0,>=8.2.3
30
+ Requires-Dist: textual-image[textual]~=0.12.0
31
+ Requires-Dist: prompt-toolkit~=3.0.52
32
+ Requires-Dist: ascii-magic~=2.3
33
+ Requires-Dist: pillow~=11.3.0
34
+ Provides-Extra: all
35
+ Requires-Dist: meshagent-agents[all]==0.52.1; extra == "all"
36
+ Requires-Dist: meshagent-api[all]==0.52.1; extra == "all"
37
+ Requires-Dist: meshagent-commoncrawl==0.52.1; extra == "all"
38
+ Requires-Dist: meshagent-scrapy==0.52.1; extra == "all"
39
+ Requires-Dist: meshagent-computers==0.52.1; extra == "all"
40
+ Requires-Dist: meshagent-openai==0.52.1; extra == "all"
41
+ Requires-Dist: meshagent-anthropic==0.52.1; extra == "all"
42
+ Requires-Dist: meshagent-otel==0.52.1; extra == "all"
43
+ Requires-Dist: meshagent-mcp==0.52.1; extra == "all"
44
+ Requires-Dist: meshagent-tools==0.52.1; extra == "all"
45
+ Requires-Dist: supabase-auth~=2.28.0; extra == "all"
46
+ Requires-Dist: prompt-toolkit~=3.0.52; extra == "all"
47
+ Provides-Extra: mcp-service
48
+ Requires-Dist: meshagent-agents[all]==0.52.1; extra == "mcp-service"
49
+ Requires-Dist: meshagent-api==0.52.1; extra == "mcp-service"
50
+ Requires-Dist: meshagent-mcp==0.52.1; extra == "mcp-service"
51
+ Requires-Dist: meshagent-tools==0.52.1; extra == "mcp-service"
52
+ Requires-Dist: supabase-auth~=2.28.0; extra == "mcp-service"
53
+ Dynamic: license-file
54
+
55
+ # [Meshagent](https://www.meshagent.com)
56
+
57
+ ## MeshAgent CLI
58
+
59
+ The ``meshagent.cli`` package installs everything you need to streamline room and agent management from your terminal. The CLI assembles submodules for authentication, projects, API keys, participant tokens, messaging, storage, agents, and more.
60
+ Check out the [CLI Quickstart](https://docs.meshagent.com/cli/getting_started) for more details.
61
+
62
+ ---
63
+ ### Learn more about MeshAgent on our website or check out the docs for additional examples!
64
+
65
+ **Website**: [www.meshagent.com](https://www.meshagent.com/)
66
+
67
+ **Documentation**: [docs.meshagent.com](https://docs.meshagent.com/)
68
+
69
+ ---
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## MeshAgent CLI
4
4
 
5
- The ``meshagent.cli`` package installs everything you need to streamline room and agent management from your terminal. The CLI assembles submodules for authentication, projects, API keys, participant tokens, messaging, storage, agents, webhooks, and more.
5
+ The ``meshagent.cli`` package installs everything you need to streamline room and agent management from your terminal. The CLI assembles submodules for authentication, projects, API keys, participant tokens, messaging, storage, agents, and more.
6
6
  Check out the [CLI Quickstart](https://docs.meshagent.com/cli/getting_started) for more details.
7
7
 
8
8
  ---
@@ -12,4 +12,4 @@ Check out the [CLI Quickstart](https://docs.meshagent.com/cli/getting_started) f
12
12
 
13
13
  **Documentation**: [docs.meshagent.com](https://docs.meshagent.com/)
14
14
 
15
- ---
15
+ ---
@@ -1,3 +1,3 @@
1
1
  from .version import __version__
2
2
 
3
- __all__ = [__version__]
3
+ __all__ = ["__version__"]
@@ -0,0 +1,112 @@
1
+ from __future__ import annotations
2
+
3
+ import mimetypes
4
+ import re
5
+ import shlex
6
+ from pathlib import Path
7
+ from urllib.parse import unquote, urlparse
8
+
9
+ _FILE_URI_RE = re.compile(r"file://(?:(?:%[0-9A-Fa-f]{2})|[^\s'\"<>])+")
10
+
11
+
12
+ def dropped_file_paths_from_text(
13
+ text: str,
14
+ *,
15
+ current_working_directory: str | Path,
16
+ ) -> list[Path]:
17
+ """Return existing file paths from text emitted by terminal file drops."""
18
+ paths: list[Path] = []
19
+ seen: set[str] = set()
20
+ for candidate in _dropped_path_candidates(text):
21
+ for path in _expanded_existing_files(
22
+ candidate,
23
+ current_working_directory=Path(current_working_directory),
24
+ ):
25
+ key = str(path)
26
+ if key in seen:
27
+ continue
28
+ seen.add(key)
29
+ paths.append(path)
30
+ return paths
31
+
32
+
33
+ def dropped_image_file_paths_from_text(
34
+ text: str,
35
+ *,
36
+ current_working_directory: str | Path,
37
+ ) -> list[Path]:
38
+ return [
39
+ path
40
+ for path in dropped_file_paths_from_text(
41
+ text,
42
+ current_working_directory=current_working_directory,
43
+ )
44
+ if _is_image_path(path)
45
+ ]
46
+
47
+
48
+ def _dropped_path_candidates(text: str) -> list[str]:
49
+ stripped_text = text.strip()
50
+ if stripped_text == "":
51
+ return []
52
+ if "\n" not in stripped_text and stripped_text.startswith("file://"):
53
+ return [stripped_text]
54
+
55
+ file_uri_candidates = _FILE_URI_RE.findall(stripped_text)
56
+ if len(file_uri_candidates) > 0:
57
+ return file_uri_candidates
58
+
59
+ raw_candidate = [stripped_text] if "\n" not in stripped_text else []
60
+ try:
61
+ split_candidates = shlex.split(stripped_text)
62
+ except ValueError:
63
+ split_candidates = []
64
+ if len(split_candidates) > 0:
65
+ return raw_candidate + [
66
+ candidate for candidate in split_candidates if candidate != stripped_text
67
+ ]
68
+ if len(raw_candidate) > 0:
69
+ return raw_candidate
70
+
71
+ return [line.strip() for line in stripped_text.splitlines() if line.strip() != ""]
72
+
73
+
74
+ def _expanded_existing_files(
75
+ candidate: str,
76
+ *,
77
+ current_working_directory: Path,
78
+ ) -> list[Path]:
79
+ candidate_path = _path_from_candidate(candidate)
80
+ if candidate_path is None:
81
+ return []
82
+ if not candidate_path.is_absolute():
83
+ candidate_path = current_working_directory / candidate_path
84
+ try:
85
+ resolved = candidate_path.expanduser().resolve()
86
+ except OSError:
87
+ return []
88
+ if resolved.is_file():
89
+ return [resolved]
90
+ if not resolved.is_dir():
91
+ return []
92
+ return sorted(
93
+ (path.resolve() for path in resolved.rglob("*") if path.is_file()),
94
+ key=str,
95
+ )
96
+
97
+
98
+ def _path_from_candidate(candidate: str) -> Path | None:
99
+ normalized = candidate.strip().strip("\"'").replace("\x00", "")
100
+ if normalized == "":
101
+ return None
102
+ parsed = urlparse(normalized)
103
+ if parsed.scheme == "file":
104
+ if parsed.netloc not in ("", "localhost"):
105
+ return None
106
+ return Path(unquote(parsed.path))
107
+ return Path(normalized)
108
+
109
+
110
+ def _is_image_path(path: Path) -> bool:
111
+ mime_type = mimetypes.guess_type(str(path))[0]
112
+ return isinstance(mime_type, str) and mime_type.startswith("image/")
@@ -16,7 +16,12 @@ from meshagent.cli.helper import resolve_project_id
16
16
  from meshagent.cli import async_typer
17
17
  from meshagent.cli.helper import get_client, resolve_room
18
18
 
19
- app = async_typer.AsyncTyper(help="Interact with agents and toolkits in a room")
19
+ app = async_typer.LazyTyper(help="Interact with agents and toolkits in a room")
20
+ app.add_lazy_command(
21
+ name="call",
22
+ module="meshagent.cli.call",
23
+ help="Trigger agent/tool calls in a room",
24
+ )
20
25
 
21
26
 
22
27
  def _chunk_to_output(chunk: Content) -> dict:
@@ -46,9 +51,6 @@ async def invoke_tool(
46
51
  on_behalf_of_id: Annotated[
47
52
  Optional[str], typer.Option(..., help="Optional 'on_behalf_of' participant ID")
48
53
  ] = None,
49
- caller_context: Annotated[
50
- Optional[str], typer.Option(..., help="Optional JSON for caller context")
51
- ] = None,
52
54
  timeout: Annotated[
53
55
  Optional[int],
54
56
  typer.Option(
@@ -69,10 +71,10 @@ async def invoke_tool(
69
71
 
70
72
  print("[bold green]Connecting to room...[/bold green]")
71
73
  async with RoomClient(
72
- protocol=WebSocketClientProtocol(
74
+ protocol_factory=WebSocketClientProtocol(
73
75
  url=websocket_room_url(room_name=room),
74
76
  token=connection.jwt,
75
- )
77
+ ).create_factory()
76
78
  ) as client:
77
79
  found = timeout == 0
78
80
  for i in range(timeout):
@@ -97,14 +99,12 @@ async def invoke_tool(
97
99
  raise typer.Exit(1)
98
100
 
99
101
  print("[bold green]Invoking tool...[/bold green]")
100
- parsed_context = json.loads(caller_context) if caller_context else None
101
102
  response = await client.agents.invoke_tool(
102
103
  toolkit=toolkit,
103
104
  tool=tool,
104
105
  input=json.loads(arguments),
105
106
  participant_id=participant_id,
106
107
  on_behalf_of_id=on_behalf_of_id,
107
- caller_context=parsed_context,
108
108
  )
109
109
  if not isinstance(response, Content):
110
110
  print("[bold green]Tool response stream opened[/bold green]")
@@ -141,10 +141,10 @@ async def list_toolkits_command(
141
141
 
142
142
  print("[bold green]Connecting to room...[/bold green]")
143
143
  async with RoomClient(
144
- protocol=WebSocketClientProtocol(
144
+ protocol_factory=WebSocketClientProtocol(
145
145
  url=websocket_room_url(room_name=room),
146
146
  token=connection.jwt,
147
- )
147
+ ).create_factory()
148
148
  ) as client:
149
149
  print("[bold green]Fetching list of toolkits...[/bold green]")
150
150
  toolkits = await client.agents.list_toolkits(participant_id=participant_id)
@@ -157,16 +157,14 @@ async def list_toolkits_command(
157
157
  "name": tk.name,
158
158
  "title": tk.title,
159
159
  "description": tk.description,
160
- "thumbnail_url": tk.thumbnail_url,
160
+ "annotations": tk.annotations,
161
161
  "tools": [
162
162
  {
163
163
  "name": tool.name,
164
164
  "title": tool.title,
165
165
  "description": tool.description,
166
166
  "input_schema": tool.input_schema,
167
- "thumbnail_url": tool.thumbnail_url,
168
167
  "defs": tool.defs,
169
- "supports_context": tool.supports_context,
170
168
  }
171
169
  for tool in tk.tools
172
170
  ],
@@ -0,0 +1,43 @@
1
+ from meshagent.cli.testing import CliRunner
2
+ import pytest
3
+
4
+ from meshagent.cli import async_typer
5
+ from meshagent.cli import mailbot
6
+ from meshagent.cli import multi
7
+ from meshagent.cli import task_runner
8
+ from meshagent.cli import worker
9
+
10
+
11
+ @pytest.mark.parametrize(
12
+ ("module", "subcommand"),
13
+ [
14
+ pytest.param(task_runner, "join", id="task-runner"),
15
+ pytest.param(mailbot, "join", id="mailbot"),
16
+ pytest.param(worker, "join", id="worker"),
17
+ ],
18
+ )
19
+ def test_join_help_retains_storage_mount_options(module, subcommand: str) -> None:
20
+ command = async_typer.get_command(module.app).get_command(None, subcommand)
21
+
22
+ assert command is not None
23
+ options = {
24
+ option
25
+ for param in command.params
26
+ for option in [
27
+ *getattr(param, "opts", []),
28
+ *getattr(param, "secondary_opts", []),
29
+ ]
30
+ }
31
+ assert "--storage-tool-local-path" in options
32
+ assert "--storage-tool-room-path" in options
33
+
34
+
35
+ @pytest.mark.parametrize("subcommand", ["chatbot", "mailbot", "worker"])
36
+ def test_multi_join_preserves_deprecated_aliases(subcommand: str) -> None:
37
+ result = CliRunner().invoke(
38
+ async_typer.get_command(multi.cli_join),
39
+ [subcommand, "--require-storage", "--help"],
40
+ )
41
+
42
+ assert result.exit_code == 0
43
+ assert "--storage" in result.output