XoneAI 1.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (640) hide show
  1. xoneai/__init__.py +86 -0
  2. xoneai/__main__.py +15 -0
  3. xoneai/_dev/__init__.py +17 -0
  4. xoneai/_dev/api_md.py +1024 -0
  5. xoneai/_dev/parity/__init__.py +42 -0
  6. xoneai/_dev/parity/docs_extractor.py +183 -0
  7. xoneai/_dev/parity/docs_generator.py +981 -0
  8. xoneai/_dev/parity/generator.py +785 -0
  9. xoneai/_dev/parity/python_docs_extractor.py +167 -0
  10. xoneai/_dev/parity/python_extractor.py +252 -0
  11. xoneai/_dev/parity/rust_docs_extractor.py +55 -0
  12. xoneai/_dev/parity/rust_extractor.py +332 -0
  13. xoneai/_dev/parity/topic_normalizer.py +170 -0
  14. xoneai/_dev/parity/ts_docs_extractor.py +55 -0
  15. xoneai/_dev/parity/typescript_extractor.py +219 -0
  16. xoneai/acp/__init__.py +54 -0
  17. xoneai/acp/config.py +159 -0
  18. xoneai/acp/safe_edit.py +442 -0
  19. xoneai/acp/server.py +587 -0
  20. xoneai/acp/session.py +219 -0
  21. xoneai/adapters/__init__.py +50 -0
  22. xoneai/adapters/readers.py +395 -0
  23. xoneai/adapters/rerankers.py +315 -0
  24. xoneai/adapters/retrievers.py +568 -0
  25. xoneai/adapters/vector_stores.py +409 -0
  26. xoneai/agent_scheduler.py +337 -0
  27. xoneai/agents_generator.py +1004 -0
  28. xoneai/api/call.py +292 -0
  29. xoneai/app/__init__.py +24 -0
  30. xoneai/app/agentos.py +243 -0
  31. xoneai/audit/__init__.py +23 -0
  32. xoneai/audit/agent_centric.py +580 -0
  33. xoneai/auto.py +1380 -0
  34. xoneai/bots/__init__.py +65 -0
  35. xoneai/bots/_ack.py +99 -0
  36. xoneai/bots/_approval.py +149 -0
  37. xoneai/bots/_approval_base.py +139 -0
  38. xoneai/bots/_chunk.py +127 -0
  39. xoneai/bots/_commands.py +74 -0
  40. xoneai/bots/_config_schema.py +152 -0
  41. xoneai/bots/_debounce.py +122 -0
  42. xoneai/bots/_discord_approval.py +372 -0
  43. xoneai/bots/_http_approval.py +255 -0
  44. xoneai/bots/_protocol_mixin.py +235 -0
  45. xoneai/bots/_registry.py +84 -0
  46. xoneai/bots/_resilience.py +252 -0
  47. xoneai/bots/_session.py +237 -0
  48. xoneai/bots/_slack_approval.py +399 -0
  49. xoneai/bots/_telegram_approval.py +373 -0
  50. xoneai/bots/_webhook_approval.py +254 -0
  51. xoneai/bots/_whatsapp_web_adapter.py +333 -0
  52. xoneai/bots/bot.py +313 -0
  53. xoneai/bots/botos.py +320 -0
  54. xoneai/bots/discord.py +462 -0
  55. xoneai/bots/media.py +78 -0
  56. xoneai/bots/slack.py +555 -0
  57. xoneai/bots/telegram.py +711 -0
  58. xoneai/bots/whatsapp.py +913 -0
  59. xoneai/browser/__init__.py +50 -0
  60. xoneai/browser/agent.py +827 -0
  61. xoneai/browser/benchmark.py +952 -0
  62. xoneai/browser/cdp_agent.py +1617 -0
  63. xoneai/browser/cdp_utils.py +367 -0
  64. xoneai/browser/cli.py +3161 -0
  65. xoneai/browser/diagnostics.py +609 -0
  66. xoneai/browser/launcher.py +363 -0
  67. xoneai/browser/playwright_agent.py +271 -0
  68. xoneai/browser/profiling.py +305 -0
  69. xoneai/browser/protocol.py +108 -0
  70. xoneai/browser/report.py +137 -0
  71. xoneai/browser/server.py +1035 -0
  72. xoneai/browser/sessions.py +386 -0
  73. xoneai/browser/video.py +333 -0
  74. xoneai/capabilities/__init__.py +278 -0
  75. xoneai/capabilities/a2a.py +140 -0
  76. xoneai/capabilities/assistants.py +283 -0
  77. xoneai/capabilities/audio.py +320 -0
  78. xoneai/capabilities/batches.py +469 -0
  79. xoneai/capabilities/completions.py +336 -0
  80. xoneai/capabilities/container_files.py +155 -0
  81. xoneai/capabilities/containers.py +93 -0
  82. xoneai/capabilities/embeddings.py +168 -0
  83. xoneai/capabilities/files.py +467 -0
  84. xoneai/capabilities/fine_tuning.py +293 -0
  85. xoneai/capabilities/guardrails.py +182 -0
  86. xoneai/capabilities/images.py +330 -0
  87. xoneai/capabilities/mcp.py +190 -0
  88. xoneai/capabilities/messages.py +270 -0
  89. xoneai/capabilities/moderations.py +154 -0
  90. xoneai/capabilities/ocr.py +217 -0
  91. xoneai/capabilities/passthrough.py +204 -0
  92. xoneai/capabilities/rag.py +207 -0
  93. xoneai/capabilities/realtime.py +160 -0
  94. xoneai/capabilities/rerank.py +165 -0
  95. xoneai/capabilities/responses.py +266 -0
  96. xoneai/capabilities/search.py +109 -0
  97. xoneai/capabilities/skills.py +133 -0
  98. xoneai/capabilities/vector_store_files.py +334 -0
  99. xoneai/capabilities/vector_stores.py +304 -0
  100. xoneai/capabilities/videos.py +141 -0
  101. xoneai/chainlit_ui.py +304 -0
  102. xoneai/chat/__init__.py +106 -0
  103. xoneai/chat/app.py +125 -0
  104. xoneai/cli/__init__.py +26 -0
  105. xoneai/cli/app.py +525 -0
  106. xoneai/cli/branding.py +98 -0
  107. xoneai/cli/commands/__init__.py +91 -0
  108. xoneai/cli/commands/acp.py +80 -0
  109. xoneai/cli/commands/agents.py +80 -0
  110. xoneai/cli/commands/app.py +139 -0
  111. xoneai/cli/commands/audit.py +102 -0
  112. xoneai/cli/commands/batch.py +848 -0
  113. xoneai/cli/commands/benchmark.py +286 -0
  114. xoneai/cli/commands/bot.py +403 -0
  115. xoneai/cli/commands/browser.py +299 -0
  116. xoneai/cli/commands/call.py +45 -0
  117. xoneai/cli/commands/chat.py +319 -0
  118. xoneai/cli/commands/code.py +156 -0
  119. xoneai/cli/commands/commit.py +47 -0
  120. xoneai/cli/commands/completion.py +333 -0
  121. xoneai/cli/commands/config.py +166 -0
  122. xoneai/cli/commands/context.py +414 -0
  123. xoneai/cli/commands/debug.py +142 -0
  124. xoneai/cli/commands/deploy.py +109 -0
  125. xoneai/cli/commands/diag.py +55 -0
  126. xoneai/cli/commands/docs.py +1572 -0
  127. xoneai/cli/commands/doctor.py +334 -0
  128. xoneai/cli/commands/endpoints.py +51 -0
  129. xoneai/cli/commands/environment.py +179 -0
  130. xoneai/cli/commands/eval.py +131 -0
  131. xoneai/cli/commands/examples.py +826 -0
  132. xoneai/cli/commands/gateway.py +83 -0
  133. xoneai/cli/commands/hooks.py +74 -0
  134. xoneai/cli/commands/knowledge.py +440 -0
  135. xoneai/cli/commands/loop.py +211 -0
  136. xoneai/cli/commands/lsp.py +112 -0
  137. xoneai/cli/commands/mcp.py +700 -0
  138. xoneai/cli/commands/memory.py +298 -0
  139. xoneai/cli/commands/obs.py +19 -0
  140. xoneai/cli/commands/package.py +76 -0
  141. xoneai/cli/commands/plugins.py +609 -0
  142. xoneai/cli/commands/profile.py +466 -0
  143. xoneai/cli/commands/rag.py +913 -0
  144. xoneai/cli/commands/realtime.py +45 -0
  145. xoneai/cli/commands/recipe.py +675 -0
  146. xoneai/cli/commands/registry.py +59 -0
  147. xoneai/cli/commands/replay.py +830 -0
  148. xoneai/cli/commands/research.py +49 -0
  149. xoneai/cli/commands/retrieval.py +377 -0
  150. xoneai/cli/commands/rules.py +71 -0
  151. xoneai/cli/commands/run.py +411 -0
  152. xoneai/cli/commands/sandbox.py +371 -0
  153. xoneai/cli/commands/schedule.py +150 -0
  154. xoneai/cli/commands/serve.py +579 -0
  155. xoneai/cli/commands/session.py +284 -0
  156. xoneai/cli/commands/skills.py +370 -0
  157. xoneai/cli/commands/standardise.py +694 -0
  158. xoneai/cli/commands/templates.py +54 -0
  159. xoneai/cli/commands/test.py +558 -0
  160. xoneai/cli/commands/todo.py +74 -0
  161. xoneai/cli/commands/tools.py +204 -0
  162. xoneai/cli/commands/traces.py +145 -0
  163. xoneai/cli/commands/tracker.py +852 -0
  164. xoneai/cli/commands/train.py +613 -0
  165. xoneai/cli/commands/ui.py +242 -0
  166. xoneai/cli/commands/version.py +101 -0
  167. xoneai/cli/commands/workflow.py +91 -0
  168. xoneai/cli/config_loader.py +298 -0
  169. xoneai/cli/configuration/__init__.py +18 -0
  170. xoneai/cli/configuration/loader.py +353 -0
  171. xoneai/cli/configuration/paths.py +114 -0
  172. xoneai/cli/configuration/schema.py +233 -0
  173. xoneai/cli/execution/__init__.py +99 -0
  174. xoneai/cli/execution/core.py +210 -0
  175. xoneai/cli/execution/profiler.py +898 -0
  176. xoneai/cli/execution/request.py +85 -0
  177. xoneai/cli/execution/result.py +74 -0
  178. xoneai/cli/features/__init__.py +273 -0
  179. xoneai/cli/features/acp.py +236 -0
  180. xoneai/cli/features/action_orchestrator.py +554 -0
  181. xoneai/cli/features/agent_scheduler.py +773 -0
  182. xoneai/cli/features/agent_tools.py +474 -0
  183. xoneai/cli/features/agents.py +375 -0
  184. xoneai/cli/features/approval.py +139 -0
  185. xoneai/cli/features/at_mentions.py +471 -0
  186. xoneai/cli/features/audit_cli.py +270 -0
  187. xoneai/cli/features/auto_memory.py +182 -0
  188. xoneai/cli/features/auto_mode.py +552 -0
  189. xoneai/cli/features/autonomy_mode.py +546 -0
  190. xoneai/cli/features/background.py +356 -0
  191. xoneai/cli/features/base.py +168 -0
  192. xoneai/cli/features/benchmark.py +1462 -0
  193. xoneai/cli/features/bots_cli.py +1133 -0
  194. xoneai/cli/features/capabilities.py +1326 -0
  195. xoneai/cli/features/checkpoints.py +338 -0
  196. xoneai/cli/features/cli_profiler.py +335 -0
  197. xoneai/cli/features/code_intelligence.py +666 -0
  198. xoneai/cli/features/compaction.py +294 -0
  199. xoneai/cli/features/compare.py +534 -0
  200. xoneai/cli/features/config_hierarchy.py +318 -0
  201. xoneai/cli/features/context_manager.py +597 -0
  202. xoneai/cli/features/cost_tracker.py +514 -0
  203. xoneai/cli/features/csv_test_runner.py +736 -0
  204. xoneai/cli/features/debug.py +810 -0
  205. xoneai/cli/features/deploy.py +517 -0
  206. xoneai/cli/features/diag.py +289 -0
  207. xoneai/cli/features/doctor/__init__.py +63 -0
  208. xoneai/cli/features/doctor/checks/__init__.py +24 -0
  209. xoneai/cli/features/doctor/checks/acp_checks.py +220 -0
  210. xoneai/cli/features/doctor/checks/bot_checks.py +88 -0
  211. xoneai/cli/features/doctor/checks/config_checks.py +366 -0
  212. xoneai/cli/features/doctor/checks/db_checks.py +366 -0
  213. xoneai/cli/features/doctor/checks/env_checks.py +628 -0
  214. xoneai/cli/features/doctor/checks/lsp_checks.py +231 -0
  215. xoneai/cli/features/doctor/checks/mcp_checks.py +349 -0
  216. xoneai/cli/features/doctor/checks/memory_checks.py +268 -0
  217. xoneai/cli/features/doctor/checks/network_checks.py +251 -0
  218. xoneai/cli/features/doctor/checks/obs_checks.py +328 -0
  219. xoneai/cli/features/doctor/checks/performance_checks.py +235 -0
  220. xoneai/cli/features/doctor/checks/permissions_checks.py +259 -0
  221. xoneai/cli/features/doctor/checks/selftest_checks.py +322 -0
  222. xoneai/cli/features/doctor/checks/serve_checks.py +426 -0
  223. xoneai/cli/features/doctor/checks/skills_checks.py +231 -0
  224. xoneai/cli/features/doctor/checks/tools_checks.py +371 -0
  225. xoneai/cli/features/doctor/engine.py +266 -0
  226. xoneai/cli/features/doctor/formatters.py +310 -0
  227. xoneai/cli/features/doctor/handler.py +397 -0
  228. xoneai/cli/features/doctor/models.py +265 -0
  229. xoneai/cli/features/doctor/registry.py +239 -0
  230. xoneai/cli/features/endpoints.py +1019 -0
  231. xoneai/cli/features/eval.py +559 -0
  232. xoneai/cli/features/examples.py +707 -0
  233. xoneai/cli/features/external_agents.py +231 -0
  234. xoneai/cli/features/fast_context.py +410 -0
  235. xoneai/cli/features/file_history.py +320 -0
  236. xoneai/cli/features/flow_display.py +566 -0
  237. xoneai/cli/features/gateway.py +238 -0
  238. xoneai/cli/features/git_attribution.py +159 -0
  239. xoneai/cli/features/git_integration.py +651 -0
  240. xoneai/cli/features/guardrail.py +171 -0
  241. xoneai/cli/features/handoff.py +252 -0
  242. xoneai/cli/features/hooks.py +583 -0
  243. xoneai/cli/features/image.py +384 -0
  244. xoneai/cli/features/interactive_core_headless.py +450 -0
  245. xoneai/cli/features/interactive_runtime.py +600 -0
  246. xoneai/cli/features/interactive_test_harness.py +537 -0
  247. xoneai/cli/features/interactive_tools.py +408 -0
  248. xoneai/cli/features/interactive_tui.py +603 -0
  249. xoneai/cli/features/jobs.py +632 -0
  250. xoneai/cli/features/knowledge.py +531 -0
  251. xoneai/cli/features/knowledge_cli.py +438 -0
  252. xoneai/cli/features/lite.py +244 -0
  253. xoneai/cli/features/logs.py +200 -0
  254. xoneai/cli/features/lsp_cli.py +225 -0
  255. xoneai/cli/features/lsp_diagnostics.py +185 -0
  256. xoneai/cli/features/mcp.py +169 -0
  257. xoneai/cli/features/message_queue.py +587 -0
  258. xoneai/cli/features/metrics.py +211 -0
  259. xoneai/cli/features/migrate.py +1297 -0
  260. xoneai/cli/features/migration_flow.py +463 -0
  261. xoneai/cli/features/migration_spec.py +276 -0
  262. xoneai/cli/features/n8n.py +673 -0
  263. xoneai/cli/features/observability.py +293 -0
  264. xoneai/cli/features/ollama.py +361 -0
  265. xoneai/cli/features/onboard.py +253 -0
  266. xoneai/cli/features/output_modes.py +152 -0
  267. xoneai/cli/features/output_style.py +273 -0
  268. xoneai/cli/features/package.py +631 -0
  269. xoneai/cli/features/performance.py +308 -0
  270. xoneai/cli/features/persistence.py +636 -0
  271. xoneai/cli/features/plugin_cli.py +295 -0
  272. xoneai/cli/features/profile.py +226 -0
  273. xoneai/cli/features/profiler/__init__.py +81 -0
  274. xoneai/cli/features/profiler/core.py +558 -0
  275. xoneai/cli/features/profiler/optimizations.py +652 -0
  276. xoneai/cli/features/profiler/suite.py +386 -0
  277. xoneai/cli/features/profiling.py +350 -0
  278. xoneai/cli/features/queue/__init__.py +73 -0
  279. xoneai/cli/features/queue/manager.py +435 -0
  280. xoneai/cli/features/queue/models.py +289 -0
  281. xoneai/cli/features/queue/persistence.py +564 -0
  282. xoneai/cli/features/queue/scheduler.py +529 -0
  283. xoneai/cli/features/queue/worker.py +400 -0
  284. xoneai/cli/features/recipe.py +2183 -0
  285. xoneai/cli/features/recipe_creator.py +996 -0
  286. xoneai/cli/features/recipe_optimizer.py +1364 -0
  287. xoneai/cli/features/recipe_prompts.py +226 -0
  288. xoneai/cli/features/recipes.py +449 -0
  289. xoneai/cli/features/registry.py +229 -0
  290. xoneai/cli/features/repo_map.py +860 -0
  291. xoneai/cli/features/router.py +466 -0
  292. xoneai/cli/features/safe_shell.py +354 -0
  293. xoneai/cli/features/sandbox_cli.py +255 -0
  294. xoneai/cli/features/sandbox_executor.py +515 -0
  295. xoneai/cli/features/sdk_knowledge.py +500 -0
  296. xoneai/cli/features/serve.py +829 -0
  297. xoneai/cli/features/session.py +222 -0
  298. xoneai/cli/features/skills.py +855 -0
  299. xoneai/cli/features/slash_commands.py +650 -0
  300. xoneai/cli/features/telemetry.py +179 -0
  301. xoneai/cli/features/templates.py +1384 -0
  302. xoneai/cli/features/thinking.py +305 -0
  303. xoneai/cli/features/todo.py +334 -0
  304. xoneai/cli/features/tools.py +680 -0
  305. xoneai/cli/features/tui/__init__.py +83 -0
  306. xoneai/cli/features/tui/app.py +871 -0
  307. xoneai/cli/features/tui/cli.py +580 -0
  308. xoneai/cli/features/tui/config.py +150 -0
  309. xoneai/cli/features/tui/debug.py +526 -0
  310. xoneai/cli/features/tui/events.py +99 -0
  311. xoneai/cli/features/tui/mock_provider.py +328 -0
  312. xoneai/cli/features/tui/orchestrator.py +652 -0
  313. xoneai/cli/features/tui/screens/__init__.py +50 -0
  314. xoneai/cli/features/tui/screens/help.py +157 -0
  315. xoneai/cli/features/tui/screens/main.py +568 -0
  316. xoneai/cli/features/tui/screens/queue.py +174 -0
  317. xoneai/cli/features/tui/screens/session.py +124 -0
  318. xoneai/cli/features/tui/screens/settings.py +148 -0
  319. xoneai/cli/features/tui/session_store.py +198 -0
  320. xoneai/cli/features/tui/widgets/__init__.py +56 -0
  321. xoneai/cli/features/tui/widgets/chat.py +263 -0
  322. xoneai/cli/features/tui/widgets/command_popup.py +258 -0
  323. xoneai/cli/features/tui/widgets/composer.py +292 -0
  324. xoneai/cli/features/tui/widgets/file_popup.py +207 -0
  325. xoneai/cli/features/tui/widgets/queue_panel.py +223 -0
  326. xoneai/cli/features/tui/widgets/status.py +181 -0
  327. xoneai/cli/features/tui/widgets/tool_panel.py +307 -0
  328. xoneai/cli/features/wizard.py +289 -0
  329. xoneai/cli/features/workflow.py +720 -0
  330. xoneai/cli/features/yaml_utils.py +321 -0
  331. xoneai/cli/interactive/__init__.py +48 -0
  332. xoneai/cli/interactive/async_tui.py +1187 -0
  333. xoneai/cli/interactive/config.py +133 -0
  334. xoneai/cli/interactive/core.py +578 -0
  335. xoneai/cli/interactive/events.py +131 -0
  336. xoneai/cli/interactive/frontends/__init__.py +31 -0
  337. xoneai/cli/interactive/frontends/rich_frontend.py +462 -0
  338. xoneai/cli/interactive/frontends/textual_frontend.py +157 -0
  339. xoneai/cli/interactive/repl.py +297 -0
  340. xoneai/cli/interactive/split_tui.py +456 -0
  341. xoneai/cli/interactive/tui_app.py +457 -0
  342. xoneai/cli/interactive/xone_io.py +502 -0
  343. xoneai/cli/legacy.py +266 -0
  344. xoneai/cli/main.py +6491 -0
  345. xoneai/cli/output/__init__.py +15 -0
  346. xoneai/cli/output/console.py +363 -0
  347. xoneai/cli/schedule_cli.py +54 -0
  348. xoneai/cli/session/__init__.py +13 -0
  349. xoneai/cli/session/unified.py +306 -0
  350. xoneai/cli/state/__init__.py +31 -0
  351. xoneai/cli/state/identifiers.py +161 -0
  352. xoneai/cli/state/sessions.py +390 -0
  353. xoneai/cli/ui/__init__.py +162 -0
  354. xoneai/cli/ui/config.py +46 -0
  355. xoneai/cli/ui/events.py +61 -0
  356. xoneai/cli/ui/mg_backend.py +342 -0
  357. xoneai/cli/ui/plain.py +133 -0
  358. xoneai/cli/ui/rich_backend.py +162 -0
  359. xoneai/code/__init__.py +93 -0
  360. xoneai/code/agent_tools.py +344 -0
  361. xoneai/code/diff/__init__.py +21 -0
  362. xoneai/code/diff/diff_strategy.py +432 -0
  363. xoneai/code/tools/__init__.py +27 -0
  364. xoneai/code/tools/apply_diff.py +232 -0
  365. xoneai/code/tools/execute_command.py +318 -0
  366. xoneai/code/tools/list_files.py +274 -0
  367. xoneai/code/tools/read_file.py +206 -0
  368. xoneai/code/tools/search_replace.py +248 -0
  369. xoneai/code/tools/write_file.py +227 -0
  370. xoneai/code/utils/__init__.py +46 -0
  371. xoneai/code/utils/file_utils.py +307 -0
  372. xoneai/code/utils/ignore_utils.py +308 -0
  373. xoneai/code/utils/text_utils.py +276 -0
  374. xoneai/context/__init__.py +104 -0
  375. xoneai/context/artifact_store.py +513 -0
  376. xoneai/context/config.py +111 -0
  377. xoneai/context/history_store.py +514 -0
  378. xoneai/context/queue.py +384 -0
  379. xoneai/context/setup.py +144 -0
  380. xoneai/context/terminal_logger.py +486 -0
  381. xoneai/daemon/__init__.py +62 -0
  382. xoneai/daemon/launchd.py +138 -0
  383. xoneai/daemon/systemd.py +123 -0
  384. xoneai/db/__init__.py +64 -0
  385. xoneai/db/adapter.py +531 -0
  386. xoneai/deploy/__init__.py +62 -0
  387. xoneai/deploy/api.py +231 -0
  388. xoneai/deploy/docker.py +454 -0
  389. xoneai/deploy/doctor.py +367 -0
  390. xoneai/deploy/main.py +327 -0
  391. xoneai/deploy/models.py +179 -0
  392. xoneai/deploy/providers/__init__.py +33 -0
  393. xoneai/deploy/providers/aws.py +331 -0
  394. xoneai/deploy/providers/azure.py +358 -0
  395. xoneai/deploy/providers/base.py +101 -0
  396. xoneai/deploy/providers/gcp.py +314 -0
  397. xoneai/deploy/schema.py +208 -0
  398. xoneai/deploy.py +185 -0
  399. xoneai/docs_runner/__init__.py +38 -0
  400. xoneai/docs_runner/classifier.py +152 -0
  401. xoneai/docs_runner/executor.py +336 -0
  402. xoneai/docs_runner/extractor.py +215 -0
  403. xoneai/docs_runner/reporter.py +289 -0
  404. xoneai/docs_runner/runner.py +269 -0
  405. xoneai/docs_runner/workspace.py +113 -0
  406. xoneai/endpoints/__init__.py +53 -0
  407. xoneai/endpoints/a2u_server.py +420 -0
  408. xoneai/endpoints/discovery.py +165 -0
  409. xoneai/endpoints/providers/__init__.py +28 -0
  410. xoneai/endpoints/providers/a2a.py +253 -0
  411. xoneai/endpoints/providers/a2u.py +208 -0
  412. xoneai/endpoints/providers/agents_api.py +171 -0
  413. xoneai/endpoints/providers/base.py +231 -0
  414. xoneai/endpoints/providers/mcp.py +263 -0
  415. xoneai/endpoints/providers/recipe.py +206 -0
  416. xoneai/endpoints/providers/tools_mcp.py +150 -0
  417. xoneai/endpoints/registry.py +131 -0
  418. xoneai/endpoints/server.py +161 -0
  419. xoneai/gateway/__init__.py +22 -0
  420. xoneai/gateway/server.py +1101 -0
  421. xoneai/inbuilt_tools/__init__.py +49 -0
  422. xoneai/inbuilt_tools/autogen_tools.py +117 -0
  423. xoneai/inc/__init__.py +12 -0
  424. xoneai/inc/config.py +96 -0
  425. xoneai/inc/models.py +153 -0
  426. xoneai/integrations/__init__.py +56 -0
  427. xoneai/integrations/base.py +303 -0
  428. xoneai/integrations/claude_code.py +270 -0
  429. xoneai/integrations/codex_cli.py +255 -0
  430. xoneai/integrations/cursor_cli.py +195 -0
  431. xoneai/integrations/gemini_cli.py +222 -0
  432. xoneai/jobs/__init__.py +67 -0
  433. xoneai/jobs/executor.py +424 -0
  434. xoneai/jobs/models.py +230 -0
  435. xoneai/jobs/router.py +314 -0
  436. xoneai/jobs/server.py +186 -0
  437. xoneai/jobs/store.py +215 -0
  438. xoneai/llm/__init__.py +131 -0
  439. xoneai/llm/registry.py +382 -0
  440. xoneai/mcp_server/__init__.py +152 -0
  441. xoneai/mcp_server/adapters/__init__.py +74 -0
  442. xoneai/mcp_server/adapters/agents.py +128 -0
  443. xoneai/mcp_server/adapters/capabilities.py +168 -0
  444. xoneai/mcp_server/adapters/cli_tools.py +568 -0
  445. xoneai/mcp_server/adapters/extended_capabilities.py +462 -0
  446. xoneai/mcp_server/adapters/knowledge.py +93 -0
  447. xoneai/mcp_server/adapters/memory.py +104 -0
  448. xoneai/mcp_server/adapters/prompts.py +306 -0
  449. xoneai/mcp_server/adapters/resources.py +124 -0
  450. xoneai/mcp_server/adapters/tools_bridge.py +280 -0
  451. xoneai/mcp_server/auth/__init__.py +48 -0
  452. xoneai/mcp_server/auth/api_key.py +291 -0
  453. xoneai/mcp_server/auth/oauth.py +460 -0
  454. xoneai/mcp_server/auth/oidc.py +289 -0
  455. xoneai/mcp_server/auth/scopes.py +260 -0
  456. xoneai/mcp_server/cli.py +852 -0
  457. xoneai/mcp_server/elicitation.py +445 -0
  458. xoneai/mcp_server/icons.py +302 -0
  459. xoneai/mcp_server/recipe_adapter.py +573 -0
  460. xoneai/mcp_server/recipe_cli.py +824 -0
  461. xoneai/mcp_server/registry.py +703 -0
  462. xoneai/mcp_server/sampling.py +422 -0
  463. xoneai/mcp_server/server.py +490 -0
  464. xoneai/mcp_server/tasks.py +443 -0
  465. xoneai/mcp_server/tool_index.py +483 -0
  466. xoneai/mcp_server/transports/__init__.py +18 -0
  467. xoneai/mcp_server/transports/http_stream.py +376 -0
  468. xoneai/mcp_server/transports/stdio.py +132 -0
  469. xoneai/persistence/__init__.py +84 -0
  470. xoneai/persistence/config.py +238 -0
  471. xoneai/persistence/conversation/__init__.py +25 -0
  472. xoneai/persistence/conversation/async_mysql.py +427 -0
  473. xoneai/persistence/conversation/async_postgres.py +410 -0
  474. xoneai/persistence/conversation/async_sqlite.py +371 -0
  475. xoneai/persistence/conversation/base.py +151 -0
  476. xoneai/persistence/conversation/json_store.py +250 -0
  477. xoneai/persistence/conversation/mysql.py +387 -0
  478. xoneai/persistence/conversation/postgres.py +401 -0
  479. xoneai/persistence/conversation/singlestore.py +240 -0
  480. xoneai/persistence/conversation/sqlite.py +341 -0
  481. xoneai/persistence/conversation/supabase.py +203 -0
  482. xoneai/persistence/conversation/surrealdb.py +287 -0
  483. xoneai/persistence/factory.py +301 -0
  484. xoneai/persistence/hooks/__init__.py +18 -0
  485. xoneai/persistence/hooks/agent_hooks.py +297 -0
  486. xoneai/persistence/knowledge/__init__.py +26 -0
  487. xoneai/persistence/knowledge/base.py +144 -0
  488. xoneai/persistence/knowledge/cassandra.py +232 -0
  489. xoneai/persistence/knowledge/chroma.py +295 -0
  490. xoneai/persistence/knowledge/clickhouse.py +242 -0
  491. xoneai/persistence/knowledge/cosmosdb_vector.py +438 -0
  492. xoneai/persistence/knowledge/couchbase.py +286 -0
  493. xoneai/persistence/knowledge/lancedb.py +216 -0
  494. xoneai/persistence/knowledge/langchain_adapter.py +291 -0
  495. xoneai/persistence/knowledge/lightrag_adapter.py +212 -0
  496. xoneai/persistence/knowledge/llamaindex_adapter.py +256 -0
  497. xoneai/persistence/knowledge/milvus.py +277 -0
  498. xoneai/persistence/knowledge/mongodb_vector.py +306 -0
  499. xoneai/persistence/knowledge/pgvector.py +335 -0
  500. xoneai/persistence/knowledge/pinecone.py +253 -0
  501. xoneai/persistence/knowledge/qdrant.py +301 -0
  502. xoneai/persistence/knowledge/redis_vector.py +291 -0
  503. xoneai/persistence/knowledge/singlestore_vector.py +299 -0
  504. xoneai/persistence/knowledge/surrealdb_vector.py +309 -0
  505. xoneai/persistence/knowledge/upstash_vector.py +266 -0
  506. xoneai/persistence/knowledge/weaviate.py +223 -0
  507. xoneai/persistence/migrations/__init__.py +10 -0
  508. xoneai/persistence/migrations/manager.py +251 -0
  509. xoneai/persistence/orchestrator.py +406 -0
  510. xoneai/persistence/state/__init__.py +21 -0
  511. xoneai/persistence/state/async_mongodb.py +200 -0
  512. xoneai/persistence/state/base.py +107 -0
  513. xoneai/persistence/state/dynamodb.py +226 -0
  514. xoneai/persistence/state/firestore.py +175 -0
  515. xoneai/persistence/state/gcs.py +155 -0
  516. xoneai/persistence/state/memory.py +245 -0
  517. xoneai/persistence/state/mongodb.py +158 -0
  518. xoneai/persistence/state/redis.py +190 -0
  519. xoneai/persistence/state/upstash.py +144 -0
  520. xoneai/persistence/tests/__init__.py +3 -0
  521. xoneai/persistence/tests/test_all_backends.py +633 -0
  522. xoneai/profiler.py +1214 -0
  523. xoneai/recipe/__init__.py +134 -0
  524. xoneai/recipe/bridge.py +278 -0
  525. xoneai/recipe/core.py +1119 -0
  526. xoneai/recipe/exceptions.py +54 -0
  527. xoneai/recipe/history.py +467 -0
  528. xoneai/recipe/models.py +266 -0
  529. xoneai/recipe/operations.py +440 -0
  530. xoneai/recipe/policy.py +422 -0
  531. xoneai/recipe/registry.py +849 -0
  532. xoneai/recipe/runtime.py +214 -0
  533. xoneai/recipe/security.py +711 -0
  534. xoneai/recipe/serve.py +859 -0
  535. xoneai/recipe/server.py +613 -0
  536. xoneai/replay/__init__.py +91 -0
  537. xoneai/replay/analyzer.py +464 -0
  538. xoneai/replay/applier.py +285 -0
  539. xoneai/replay/judge.py +2719 -0
  540. xoneai/replay/plan.py +200 -0
  541. xoneai/replay/player.py +313 -0
  542. xoneai/replay/reader.py +151 -0
  543. xoneai/replay/storage.py +132 -0
  544. xoneai/replay/writer.py +131 -0
  545. xoneai/sandbox/__init__.py +23 -0
  546. xoneai/sandbox/docker.py +437 -0
  547. xoneai/sandbox/subprocess.py +349 -0
  548. xoneai/scheduler/__init__.py +45 -0
  549. xoneai/scheduler/agent_scheduler.py +552 -0
  550. xoneai/scheduler/base.py +124 -0
  551. xoneai/scheduler/daemon_manager.py +225 -0
  552. xoneai/scheduler/state_manager.py +155 -0
  553. xoneai/scheduler/yaml_loader.py +193 -0
  554. xoneai/scheduler.py +194 -0
  555. xoneai/security/__init__.py +183 -0
  556. xoneai/security/audit.py +99 -0
  557. xoneai/security/injection.py +414 -0
  558. xoneai/security/protected.py +132 -0
  559. xoneai/setup/__init__.py +1 -0
  560. xoneai/setup/build.py +21 -0
  561. xoneai/setup/post_install.py +23 -0
  562. xoneai/setup/setup_conda_env.py +25 -0
  563. xoneai/setup.py +16 -0
  564. xoneai/standardise/__init__.py +84 -0
  565. xoneai/standardise/ai_generator.py +1278 -0
  566. xoneai/standardise/config.py +260 -0
  567. xoneai/standardise/dedupe.py +221 -0
  568. xoneai/standardise/discovery.py +319 -0
  569. xoneai/standardise/drift.py +263 -0
  570. xoneai/standardise/engine.py +270 -0
  571. xoneai/standardise/enhanced_templates.py +674 -0
  572. xoneai/standardise/example_verifier.py +229 -0
  573. xoneai/standardise/manifest.py +201 -0
  574. xoneai/standardise/models.py +355 -0
  575. xoneai/standardise/reports.py +176 -0
  576. xoneai/standardise/templates.py +399 -0
  577. xoneai/standardise/undo_redo.py +232 -0
  578. xoneai/standardise/validator.py +283 -0
  579. xoneai/suite_runner/__init__.py +73 -0
  580. xoneai/suite_runner/batch_source.py +351 -0
  581. xoneai/suite_runner/cli_docs_source.py +300 -0
  582. xoneai/suite_runner/discovery.py +269 -0
  583. xoneai/suite_runner/docs_source.py +379 -0
  584. xoneai/suite_runner/examples_source.py +173 -0
  585. xoneai/suite_runner/executor.py +232 -0
  586. xoneai/suite_runner/models.py +257 -0
  587. xoneai/suite_runner/report_viewer.py +793 -0
  588. xoneai/suite_runner/reporter.py +301 -0
  589. xoneai/suite_runner/runner.py +294 -0
  590. xoneai/templates/__init__.py +116 -0
  591. xoneai/templates/cache.py +364 -0
  592. xoneai/templates/dependency_checker.py +358 -0
  593. xoneai/templates/discovery.py +391 -0
  594. xoneai/templates/loader.py +649 -0
  595. xoneai/templates/registry.py +511 -0
  596. xoneai/templates/resolver.py +206 -0
  597. xoneai/templates/security.py +334 -0
  598. xoneai/templates/tool_override.py +501 -0
  599. xoneai/templates/tools_doctor.py +256 -0
  600. xoneai/test.py +105 -0
  601. xoneai/tool_resolver.py +418 -0
  602. xoneai/tools/__init__.py +61 -0
  603. xoneai/tools/audio.py +268 -0
  604. xoneai/tools/glob_tool.py +192 -0
  605. xoneai/tools/grep_tool.py +259 -0
  606. xoneai/tools/multiedit.py +224 -0
  607. xoneai/train/__init__.py +77 -0
  608. xoneai/train/agents/__init__.py +94 -0
  609. xoneai/train/agents/grader.py +63 -0
  610. xoneai/train/agents/hook.py +320 -0
  611. xoneai/train/agents/models.py +328 -0
  612. xoneai/train/agents/orchestrator.py +394 -0
  613. xoneai/train/agents/storage.py +282 -0
  614. xoneai/train/llm/__init__.py +23 -0
  615. xoneai/train/llm/trainer.py +562 -0
  616. xoneai/train.py +562 -0
  617. xoneai/train_vision.py +306 -0
  618. xoneai/ui/agents.py +838 -0
  619. xoneai/ui/bot.py +422 -0
  620. xoneai/ui/callbacks.py +57 -0
  621. xoneai/ui/chainlit_compat.py +246 -0
  622. xoneai/ui/chat.py +834 -0
  623. xoneai/ui/code.py +816 -0
  624. xoneai/ui/colab.py +474 -0
  625. xoneai/ui/colab_chainlit.py +81 -0
  626. xoneai/ui/components/aicoder.py +284 -0
  627. xoneai/ui/context.py +283 -0
  628. xoneai/ui/database_config.py +56 -0
  629. xoneai/ui/db.py +294 -0
  630. xoneai/ui/realtime.py +488 -0
  631. xoneai/ui/realtimeclient/__init__.py +756 -0
  632. xoneai/ui/realtimeclient/tools.py +242 -0
  633. xoneai/ui/sql_alchemy.py +710 -0
  634. xoneai/upload_vision.py +140 -0
  635. xoneai/version.py +1 -0
  636. xoneai-1.0.1.dist-info/METADATA +3548 -0
  637. xoneai-1.0.1.dist-info/RECORD +640 -0
  638. xoneai-1.0.1.dist-info/WHEEL +5 -0
  639. xoneai-1.0.1.dist-info/entry_points.txt +4 -0
  640. xoneai-1.0.1.dist-info/top_level.txt +1 -0
xoneai/__init__.py ADDED
@@ -0,0 +1,86 @@
1
+ # Suppress crewai.cli.config logger BEFORE any imports to prevent INFO log
2
+ import logging
3
+ logging.getLogger('crewai.cli.config').setLevel(logging.ERROR)
4
+
5
+ # Disable OpenTelemetry SDK
6
+ import os
7
+ os.environ["OTEL_SDK_DISABLED"] = "true"
8
+ os.environ["EC_TELEMETRY"] = "false"
9
+
10
+ # Version is lightweight, import directly
11
+ from .version import __version__
12
+
13
+ # Define __all__ for lazy loading
14
+ __all__ = [
15
+ 'XoneAI',
16
+ '__version__',
17
+ 'Deploy',
18
+ 'DeployConfig',
19
+ 'DeployType',
20
+ 'CloudProvider',
21
+ 'AgentOS', # Production deployment platform (v0.14.16+)
22
+ 'AgentApp', # Silent alias for AgentOS (backward compat)
23
+ 'recipe',
24
+ 'embed',
25
+ 'embedding',
26
+ ]
27
+
28
+
29
+ # Lazy loading for heavy imports
30
+ def __getattr__(name):
31
+ """Lazy load heavy modules to improve import time."""
32
+ if name == 'XoneAI':
33
+ from .cli import XoneAI
34
+ return XoneAI
35
+ elif name == 'Deploy':
36
+ from .deploy import Deploy
37
+ return Deploy
38
+ elif name == 'DeployConfig':
39
+ from .deploy import DeployConfig
40
+ return DeployConfig
41
+ elif name == 'DeployType':
42
+ from .deploy import DeployType
43
+ return DeployType
44
+ elif name == 'CloudProvider':
45
+ from .deploy import CloudProvider
46
+ return CloudProvider
47
+ elif name == 'recipe':
48
+ from .recipe import core as recipe_module
49
+ return recipe_module
50
+ elif name == 'embed':
51
+ # Re-export from core SDK for unified API
52
+ from xoneaiagents.embedding.embed import embed
53
+ return embed
54
+ elif name == 'embedding':
55
+ # Re-export from core SDK for unified API
56
+ from xoneaiagents.embedding.embed import embedding
57
+ return embedding
58
+ elif name == 'aembed':
59
+ from xoneaiagents.embedding.embed import aembed
60
+ return aembed
61
+ elif name == 'aembedding':
62
+ from xoneaiagents.embedding.embed import aembedding
63
+ return aembedding
64
+ elif name == 'EmbeddingResult':
65
+ from xoneaiagents.embedding import EmbeddingResult
66
+ return EmbeddingResult
67
+ elif name == 'AgentOS':
68
+ from .app import AgentOS
69
+ return AgentOS
70
+ elif name == 'AgentApp':
71
+ # Silent alias for AgentOS (backward compatibility)
72
+ from .app import AgentOS
73
+ return AgentOS
74
+
75
+ # Try xoneaiagents exports
76
+ try:
77
+ import xoneaiagents
78
+ if hasattr(xoneaiagents, name):
79
+ return getattr(xoneaiagents, name)
80
+ except ImportError:
81
+ pass
82
+
83
+ raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
84
+
85
+
86
+
xoneai/__main__.py ADDED
@@ -0,0 +1,15 @@
1
+ # __main__.py
2
+ """
3
+ XoneAI CLI Entry Point.
4
+
5
+ Supports both new Typer-based CLI and legacy argparse CLI.
6
+ """
7
+
8
+ def main():
9
+ """Main entry point with legacy support."""
10
+ from .cli.legacy import main_with_legacy_support
11
+ main_with_legacy_support()
12
+
13
+
14
+ if __name__ == "__main__":
15
+ main()
@@ -0,0 +1,17 @@
1
+ """
2
+ Development utilities for XoneAI.
3
+
4
+ This module contains development-only tools that are NOT imported during normal runtime.
5
+ """
6
+
7
+ __all__ = ["generate_api_md", "ApiMdGenerator"]
8
+
9
+
10
+ def __getattr__(name: str):
11
+ """Lazy load development utilities."""
12
+ if name in ("generate_api_md", "ApiMdGenerator"):
13
+ from .api_md import generate_api_md, ApiMdGenerator
14
+ if name == "generate_api_md":
15
+ return generate_api_md
16
+ return ApiMdGenerator
17
+ raise AttributeError(f"module {__name__!r} has no attribute {name!r}")