siada-cli 0.0.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.
- siada_cli-0.0.1/LICENSE +201 -0
- siada_cli-0.0.1/PKG-INFO +457 -0
- siada_cli-0.0.1/README.md +416 -0
- siada_cli-0.0.1/agent_config.yaml +34 -0
- siada_cli-0.0.1/pyproject.toml +59 -0
- siada_cli-0.0.1/siada/__init__.py +13 -0
- siada_cli-0.0.1/siada/agent_hub/__init__.py +10 -0
- siada_cli-0.0.1/siada/agent_hub/coder/bug_fix_agent.py +398 -0
- siada_cli-0.0.1/siada/agent_hub/coder/code_gen_agent.py +235 -0
- siada_cli-0.0.1/siada/agent_hub/coder/fe_gen_agent.py +37 -0
- siada_cli-0.0.1/siada/agent_hub/coder/issue_review_agent.py +68 -0
- siada_cli-0.0.1/siada/agent_hub/coder/prompt/__init__.py +0 -0
- siada_cli-0.0.1/siada/agent_hub/coder/prompt/base/__init__.py +0 -0
- siada_cli-0.0.1/siada/agent_hub/coder/prompt/base/capabilities.py +18 -0
- siada_cli-0.0.1/siada/agent_hub/coder/prompt/base/non_interactive.py +14 -0
- siada_cli-0.0.1/siada/agent_hub/coder/prompt/base/prompt_builder.py +33 -0
- siada_cli-0.0.1/siada/agent_hub/coder/prompt/base/rules.py +40 -0
- siada_cli-0.0.1/siada/agent_hub/coder/prompt/base/tool_use.py +14 -0
- siada_cli-0.0.1/siada/agent_hub/coder/prompt/bug_prompt/bug_fix_prompt.py +51 -0
- siada_cli-0.0.1/siada/agent_hub/coder/prompt/bug_prompt/rules.py +53 -0
- siada_cli-0.0.1/siada/agent_hub/coder/prompt/code_gen_prompt.py +45 -0
- siada_cli-0.0.1/siada/agent_hub/coder/prompt/fe_gen_prompt.py +45 -0
- siada_cli-0.0.1/siada/agent_hub/coder/prompt/issue_review_prompt.py +121 -0
- siada_cli-0.0.1/siada/agent_hub/coder/tracing/__init__.py +22 -0
- siada_cli-0.0.1/siada/agent_hub/coder/tracing/logger_tracing_processor.py +458 -0
- siada_cli-0.0.1/siada/agent_hub/hooks/__init__.py +0 -0
- siada_cli-0.0.1/siada/agent_hub/hooks/io_hooks.py +30 -0
- siada_cli-0.0.1/siada/agent_hub/siada_agent.py +214 -0
- siada_cli-0.0.1/siada/config/__init__.py +0 -0
- siada_cli-0.0.1/siada/config/config_loader.py +67 -0
- siada_cli-0.0.1/siada/entrypoint/__init__.py +3 -0
- siada_cli-0.0.1/siada/entrypoint/args_parser/__init__.py +0 -0
- siada_cli-0.0.1/siada/entrypoint/args_parser/args.py +195 -0
- siada_cli-0.0.1/siada/entrypoint/interaction/__init__.py +0 -0
- siada_cli-0.0.1/siada/entrypoint/interaction/base_turn.py +107 -0
- siada_cli-0.0.1/siada/entrypoint/interaction/config.py +30 -0
- siada_cli-0.0.1/siada/entrypoint/interaction/controller.py +122 -0
- siada_cli-0.0.1/siada/entrypoint/interaction/nointeractive_controller.py +27 -0
- siada_cli-0.0.1/siada/entrypoint/interaction/turn/interface.py +116 -0
- siada_cli-0.0.1/siada/entrypoint/interaction/turn/models.py +34 -0
- siada_cli-0.0.1/siada/entrypoint/interaction/turn/run_turn.py +641 -0
- siada_cli-0.0.1/siada/entrypoint/interaction/turn_factory.py +35 -0
- siada_cli-0.0.1/siada/entrypoint/interaction/turn_models.py +28 -0
- siada_cli-0.0.1/siada/entrypoint/siadahub.py +413 -0
- siada_cli-0.0.1/siada/foundation/__init__.py +0 -0
- siada_cli-0.0.1/siada/foundation/code_agent_context.py +48 -0
- siada_cli-0.0.1/siada/foundation/config.py +59 -0
- siada_cli-0.0.1/siada/foundation/constants.py +2 -0
- siada_cli-0.0.1/siada/foundation/context.py +76 -0
- siada_cli-0.0.1/siada/foundation/logging.py +341 -0
- siada_cli-0.0.1/siada/foundation/tools/__init__.py +0 -0
- siada_cli-0.0.1/siada/foundation/tools/get_git_diff.py +105 -0
- siada_cli-0.0.1/siada/io/__init__.py +0 -0
- siada_cli-0.0.1/siada/io/banner.py +148 -0
- siada_cli-0.0.1/siada/io/color_settings.py +207 -0
- siada_cli-0.0.1/siada/io/color_utils.py +16 -0
- siada_cli-0.0.1/siada/io/components/__init__.py +0 -0
- siada_cli-0.0.1/siada/io/components/mdstream.py +204 -0
- siada_cli-0.0.1/siada/io/console_printer.py +68 -0
- siada_cli-0.0.1/siada/io/io.py +661 -0
- siada_cli-0.0.1/siada/io/key_bindings.py +129 -0
- siada_cli-0.0.1/siada/io/notification_command.py +40 -0
- siada_cli-0.0.1/siada/io/test_banner.py +64 -0
- siada_cli-0.0.1/siada/models/__init__.py +0 -0
- siada_cli-0.0.1/siada/models/agent.py +47 -0
- siada_cli-0.0.1/siada/models/coder/__init__.py +0 -0
- siada_cli-0.0.1/siada/models/converter.py +27 -0
- siada_cli-0.0.1/siada/models/model_base_config.py +121 -0
- siada_cli-0.0.1/siada/models/model_run_config.py +153 -0
- siada_cli-0.0.1/siada/provider/__init__.py +0 -0
- siada_cli-0.0.1/siada/provider/client_factory.py +112 -0
- siada_cli-0.0.1/siada/provider/llm_client.py +11 -0
- siada_cli-0.0.1/siada/provider/openrouter/__init__.py +0 -0
- siada_cli-0.0.1/siada/provider/openrouter/coverter.py +17 -0
- siada_cli-0.0.1/siada/provider/openrouter/openroute_provider.py +33 -0
- siada_cli-0.0.1/siada/provider/provider_factory.py +53 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/README.md +7 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/arduino-tags.scm +5 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/c-tags.scm +9 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/chatito-tags.scm +16 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/commonlisp-tags.scm +122 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/cpp-tags.scm +15 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/csharp-tags.scm +26 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/d-tags.scm +26 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/dart-tags.scm +92 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/elisp-tags.scm +5 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/elixir-tags.scm +54 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/elm-tags.scm +19 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/gleam-tags.scm +41 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/go-tags.scm +42 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/java-tags.scm +20 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/javascript-tags.scm +88 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/lua-tags.scm +34 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/ocaml-tags.scm +115 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/ocaml_interface-tags.scm +98 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/pony-tags.scm +39 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/properties-tags.scm +5 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/python-tags.scm +14 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/r-tags.scm +21 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/racket-tags.scm +12 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/ruby-tags.scm +64 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/rust-tags.scm +60 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/solidity-tags.scm +43 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/swift-tags.scm +51 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-language-pack/udev-tags.scm +20 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-languages/README.md +23 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-languages/c-tags.scm +9 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-languages/c_sharp-tags.scm +46 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-languages/cpp-tags.scm +15 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-languages/dart-tags.scm +91 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-languages/elisp-tags.scm +8 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-languages/elixir-tags.scm +54 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-languages/elm-tags.scm +19 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-languages/go-tags.scm +30 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-languages/hcl-tags.scm +77 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-languages/java-tags.scm +20 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-languages/javascript-tags.scm +88 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-languages/kotlin-tags.scm +27 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-languages/ocaml-tags.scm +115 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-languages/ocaml_interface-tags.scm +98 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-languages/php-tags.scm +26 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-languages/python-tags.scm +12 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-languages/ql-tags.scm +26 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-languages/ruby-tags.scm +64 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-languages/rust-tags.scm +60 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-languages/scala-tags.scm +65 -0
- siada_cli-0.0.1/siada/queries/tree-sitter-languages/typescript-tags.scm +41 -0
- siada_cli-0.0.1/siada/services/__init__.py +30 -0
- siada_cli-0.0.1/siada/services/at_file_recommendation_design_document.md +1213 -0
- siada_cli-0.0.1/siada/services/code_context_manager.py +136 -0
- siada_cli-0.0.1/siada/services/enhanced_fix_result_check.py +546 -0
- siada_cli-0.0.1/siada/services/execution_trace_collector.py +207 -0
- siada_cli-0.0.1/siada/services/file_recommendation/__init__.py +136 -0
- siada_cli-0.0.1/siada/services/file_recommendation/core/__init__.py +17 -0
- siada_cli-0.0.1/siada/services/file_recommendation/core/completion_engine.py +351 -0
- siada_cli-0.0.1/siada/services/file_recommendation/core/config.py +62 -0
- siada_cli-0.0.1/siada/services/file_recommendation/core/file_discovery.py +353 -0
- siada_cli-0.0.1/siada/services/file_recommendation/core/suggestion.py +110 -0
- siada_cli-0.0.1/siada/services/file_recommendation/utils/__init__.py +22 -0
- siada_cli-0.0.1/siada/services/file_recommendation/utils/path_utils.py +138 -0
- siada_cli-0.0.1/siada/services/file_recommendation/utils/text_utils.py +253 -0
- siada_cli-0.0.1/siada/services/fix_result_check.py +377 -0
- siada_cli-0.0.1/siada/services/handle_at_command/README.md +247 -0
- siada_cli-0.0.1/siada/services/handle_at_command/__init__.py +115 -0
- siada_cli-0.0.1/siada/services/handle_at_command/exceptions.py +46 -0
- siada_cli-0.0.1/siada/services/handle_at_command/models.py +92 -0
- siada_cli-0.0.1/siada/services/handle_at_command/parser.py +189 -0
- siada_cli-0.0.1/siada/services/handle_at_command/processor.py +321 -0
- siada_cli-0.0.1/siada/services/handle_at_command/resolver.py +318 -0
- siada_cli-0.0.1/siada/services/handle_at_command/utils.py +345 -0
- siada_cli-0.0.1/siada/services/model_info_service.py +103 -0
- siada_cli-0.0.1/siada/services/siada_runner.py +170 -0
- siada_cli-0.0.1/siada/session/__init__.py +29 -0
- siada_cli-0.0.1/siada/session/session_manager.py +66 -0
- siada_cli-0.0.1/siada/session/session_models.py +43 -0
- siada_cli-0.0.1/siada/support/__init__.py +0 -0
- siada_cli-0.0.1/siada/support/completer.py +204 -0
- siada_cli-0.0.1/siada/support/editor.py +146 -0
- siada_cli-0.0.1/siada/support/envprocessor.py +54 -0
- siada_cli-0.0.1/siada/support/repo.py +51 -0
- siada_cli-0.0.1/siada/support/slash_commands.py +410 -0
- siada_cli-0.0.1/siada/support/spinner.py +320 -0
- siada_cli-0.0.1/siada/tools/__init__.py +0 -0
- siada_cli-0.0.1/siada/tools/ast/README.md +345 -0
- siada_cli-0.0.1/siada/tools/ast/ast_tool.py +341 -0
- siada_cli-0.0.1/siada/tools/ast/models.py +11 -0
- siada_cli-0.0.1/siada/tools/coder/__init__.py +0 -0
- siada_cli-0.0.1/siada/tools/coder/ask_followup_question.py +70 -0
- siada_cli-0.0.1/siada/tools/coder/cmd_runner.py +132 -0
- siada_cli-0.0.1/siada/tools/coder/file_operator.py +284 -0
- siada_cli-0.0.1/siada/tools/coder/file_search/README.md +223 -0
- siada_cli-0.0.1/siada/tools/coder/file_search/__init__.py +10 -0
- siada_cli-0.0.1/siada/tools/coder/file_search/bin/rg-linux-arm64 +0 -0
- siada_cli-0.0.1/siada/tools/coder/file_search/bin/rg-linux-x64 +0 -0
- siada_cli-0.0.1/siada/tools/coder/file_search/bin/rg-macos-arm64 +0 -0
- siada_cli-0.0.1/siada/tools/coder/file_search/bin/rg-macos-x64 +0 -0
- siada_cli-0.0.1/siada/tools/coder/file_search/bin/rg.exe +0 -0
- siada_cli-0.0.1/siada/tools/coder/file_search/search.py +437 -0
- siada_cli-0.0.1/siada/tools/coder/file_search/setup_package.py +150 -0
- siada_cli-0.0.1/siada/tools/coder/file_search/test_search.py +142 -0
- siada_cli-0.0.1/siada/tools/coder/files.py +147 -0
- siada_cli-0.0.1/siada/tools/coder/fix_attempt_completion.py +58 -0
- siada_cli-0.0.1/siada/tools/coder/issue_review_completion.py +29 -0
- siada_cli-0.0.1/siada/tools/coder/observation/__init__.py +0 -0
- siada_cli-0.0.1/siada/tools/coder/observation/error.py +22 -0
- siada_cli-0.0.1/siada/tools/coder/observation/file_observation.py +216 -0
- siada_cli-0.0.1/siada/tools/coder/observation/observation.py +71 -0
- siada_cli-0.0.1/siada/tools/coder/repo_map/__init__.py +157 -0
- siada_cli-0.0.1/siada/tools/coder/repo_map/dump.py +29 -0
- siada_cli-0.0.1/siada/tools/coder/repo_map/io.py +226 -0
- siada_cli-0.0.1/siada/tools/coder/repo_map/repo_map.py +881 -0
- siada_cli-0.0.1/siada/tools/coder/repo_map/special.py +203 -0
- siada_cli-0.0.1/siada/tools/coder/repo_map/token_counter.py +154 -0
- siada_cli-0.0.1/siada/tools/coder/repo_map/waiting.py +221 -0
- siada_cli-0.0.1/siada/tools/coder/reproduce_completion.py +39 -0
- siada_cli-0.0.1/siada/tools/coder/run_cmd.py +60 -0
- siada_cli-0.0.1/siada/tools/coder/test_completion.py +25 -0
- siada_cli-0.0.1/siada/tools/coder/tool_docs.py +44 -0
- siada_cli-0.0.1/siada/tools/compression_tool.py +200 -0
- siada_cli-0.0.1/siada/tools/read_many_files/README.md +220 -0
- siada_cli-0.0.1/siada/tools/read_many_files/__init__.py +25 -0
- siada_cli-0.0.1/siada/tools/read_many_files/file_processor.py +486 -0
- siada_cli-0.0.1/siada/tools/read_many_files/filters.py +326 -0
- siada_cli-0.0.1/siada/tools/read_many_files/formatters.py +204 -0
- siada_cli-0.0.1/siada/tools/read_many_files/models.py +189 -0
- siada_cli-0.0.1/siada/tools/read_many_files_tool.py +233 -0
- siada_cli-0.0.1/siada/tools/tool_call_format/__init__.py +55 -0
- siada_cli-0.0.1/siada/tools/tool_call_format/file_to_language.py +231 -0
- siada_cli-0.0.1/siada/tools/tool_call_format/formatter_factory.py +80 -0
- siada_cli-0.0.1/siada/tools/tool_call_format/formatters.py +282 -0
- siada_cli-0.0.1/siada/tools/tool_call_format/tool_call_formatter.py +54 -0
- siada_cli-0.0.1/siada/tools/web/__init__.py +0 -0
- siada_cli-0.0.1/siada/tools/web/web_crawl.py +208 -0
- siada_cli-0.0.1/siada/utils.py +194 -0
siada_cli-0.0.1/LICENSE
ADDED
|
@@ -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 (c) 2025 Li Auto Inc. and its affiliates
|
|
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.
|
siada_cli-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: siada-cli
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Siada CLI is a Ai Pair Programming Tool in terminal
|
|
5
|
+
License: Apache-2.0
|
|
6
|
+
Requires-Python: >=3.12,<4.0
|
|
7
|
+
Classifier: Environment :: Console
|
|
8
|
+
Classifier: Intended Audience :: Developers
|
|
9
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
10
|
+
Classifier: Programming Language :: Python
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
+
Classifier: Topic :: Software Development
|
|
15
|
+
Requires-Dist: binaryornot (==0.4.4)
|
|
16
|
+
Requires-Dist: click (>=8.2.1,<9.0.0)
|
|
17
|
+
Requires-Dist: configargparse (>=1.7,<2.0.0)
|
|
18
|
+
Requires-Dist: diskcache (==5.6.3)
|
|
19
|
+
Requires-Dist: fastapi (>=0.110.0,<1.0.0)
|
|
20
|
+
Requires-Dist: grep-ast (>=0.9.0,<1.0.0)
|
|
21
|
+
Requires-Dist: litellm (>=1.72.6,<2.0.0)
|
|
22
|
+
Requires-Dist: openai (>=1.99.9,<2.0.0)
|
|
23
|
+
Requires-Dist: openai-agents (==0.2.5)
|
|
24
|
+
Requires-Dist: openhands-aci (==0.3.0)
|
|
25
|
+
Requires-Dist: partial-json-parser (>=0.2.1.1.post6,<1.0.0)
|
|
26
|
+
Requires-Dist: patch-ng (>=1.18.1,<2.0.0)
|
|
27
|
+
Requires-Dist: pexpect (>=4.9.0,<5.0.0)
|
|
28
|
+
Requires-Dist: prompt-toolkit (>=3.0.51,<4.0.0)
|
|
29
|
+
Requires-Dist: psutil (>=7.0.0,<8.0.0)
|
|
30
|
+
Requires-Dist: pydantic (>=2.6.0,<3.0.0)
|
|
31
|
+
Requires-Dist: pydantic-settings (>=2.2.0,<3.0.0)
|
|
32
|
+
Requires-Dist: pygments (>=2.19.1,<3.0.0)
|
|
33
|
+
Requires-Dist: rich (>=13.0.0,<14.0.0)
|
|
34
|
+
Requires-Dist: shtab (>=1.7,<2.0.0)
|
|
35
|
+
Requires-Dist: termcolor (>=3.1.0,<4.0.0)
|
|
36
|
+
Requires-Dist: tqdm (>=4.67.1,<5.0.0)
|
|
37
|
+
Requires-Dist: trafilatura (>=2.0.0,<3.0.0)
|
|
38
|
+
Requires-Dist: uvicorn (>=0.27.0,<1.0.0)
|
|
39
|
+
Project-URL: Homepage, https://github.com/liauto-siada/siada-cli
|
|
40
|
+
Description-Content-Type: text/markdown
|
|
41
|
+
|
|
42
|
+
# Siada CLI
|
|
43
|
+
|
|
44
|
+
**[简体中文](./docs/zh-CN/README_zh.md) | English**
|
|
45
|
+
|
|
46
|
+

|
|
47
|
+
|
|
48
|
+
This repository contains Siada CLI, a command-line AI workflow tool that provides specialized intelligent agents for code development, debugging, and automation tasks.
|
|
49
|
+
|
|
50
|
+
With Siada CLI you can:
|
|
51
|
+
|
|
52
|
+
- Fix bugs in large codebases through intelligent analysis and automated solutions.
|
|
53
|
+
- Generate new applications and components using specialized frontend and backend agents.
|
|
54
|
+
- Automate development workflows through intelligent code generation and testing.
|
|
55
|
+
- Execute system commands and interact with development environments.
|
|
56
|
+
- Seamlessly support multiple programming languages and frameworks.
|
|
57
|
+
|
|
58
|
+
## Installation/Update
|
|
59
|
+
|
|
60
|
+
1. System Requirements
|
|
61
|
+
- MAC, Linux
|
|
62
|
+
- GCC 11+
|
|
63
|
+
|
|
64
|
+
2. Installation Command
|
|
65
|
+
TODO
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
## Installation (Developer Mode)
|
|
69
|
+
|
|
70
|
+
1. **Prerequisites:** Ensure you have [Python 3.12](https://www.python.org/downloads/) or higher and [Poetry](https://python-poetry.org/docs/#installation) installed.
|
|
71
|
+
|
|
72
|
+
2. **Clone and Install:**
|
|
73
|
+
```bash
|
|
74
|
+
git clone https://github.com/your-org/siada-agenthub.git
|
|
75
|
+
cd siada-agenthub
|
|
76
|
+
poetry install
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
3. **Run CLI:**
|
|
80
|
+
```bash
|
|
81
|
+
# Method 1: Run with Poetry
|
|
82
|
+
poetry run siada-cli
|
|
83
|
+
|
|
84
|
+
# Method 2: Activate virtual environment then use (recommended)
|
|
85
|
+
source $(poetry env info --path)/bin/activate
|
|
86
|
+
siada-cli
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Configuration
|
|
90
|
+
|
|
91
|
+
### Model Configuration
|
|
92
|
+
|
|
93
|
+
**Method 1: Default Configuration**
|
|
94
|
+
- The system reads default configuration from `agent_config.yaml` file
|
|
95
|
+
- Current defaults: model `claude-sonnet-4`, provider `openrouter`
|
|
96
|
+
|
|
97
|
+
**Method 2: Customize via Configuration File**
|
|
98
|
+
- Regular Users
|
|
99
|
+
- Edit configuration file `~/.siada-cli/conf.yaml`
|
|
100
|
+
```bash
|
|
101
|
+
# 1. Create configuration file in user home directory
|
|
102
|
+
cd ~
|
|
103
|
+
mkdir -p ~/.siada-cli
|
|
104
|
+
touch ~/.siada-cli/conf.yaml
|
|
105
|
+
|
|
106
|
+
# 2. Configuration file content example
|
|
107
|
+
llm_config:
|
|
108
|
+
model: "claude-sonnet-4" # Change to your desired model
|
|
109
|
+
provider: "openrouter"
|
|
110
|
+
```
|
|
111
|
+
- Required when using OpenRouter provider
|
|
112
|
+
```bash
|
|
113
|
+
export OPENROUTER_API_KEY="your_openrouter_key"
|
|
114
|
+
```
|
|
115
|
+
- Developer Mode
|
|
116
|
+
- Edit the `llm_config` section in `agent_config.yaml` file:
|
|
117
|
+
```yaml
|
|
118
|
+
llm_config:
|
|
119
|
+
provider: "openrouter"
|
|
120
|
+
model_name: "claude-sonnet-4" # Change to your desired model
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
**Method 3: Via Environment Variables**
|
|
124
|
+
```bash
|
|
125
|
+
# Set model
|
|
126
|
+
export SIADA_MODEL="claude-sonnet-4"
|
|
127
|
+
|
|
128
|
+
# Set provider
|
|
129
|
+
export SIADA_PROVIDER="openrouter"
|
|
130
|
+
|
|
131
|
+
# Required when using OpenRouter provider
|
|
132
|
+
export OPENROUTER_API_KEY="your_openrouter_key"
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
**Method 4: Via Command Line Parameters (Highest Priority)**
|
|
136
|
+
```bash
|
|
137
|
+
# Only change model (keep provider unchanged)
|
|
138
|
+
siada-cli --model claude-sonnet-4
|
|
139
|
+
|
|
140
|
+
# Change both model and provider
|
|
141
|
+
siada-cli --model gpt-4.1 --provider openrouter
|
|
142
|
+
|
|
143
|
+
# Only change provider (keep model unchanged)
|
|
144
|
+
siada-cli --provider openrouter
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
> **Important Notes:**
|
|
148
|
+
> - **Complete Priority**: `Command line parameters` > `Environment variables (SIADA_ prefix)` > `Configuration file (agent_config.yaml)`
|
|
149
|
+
> - **Provider Requirements**: When using `openrouter`, must set `OPENROUTER_API_KEY` environment variable
|
|
150
|
+
|
|
151
|
+
### Agent Configuration (Developer Mode)
|
|
152
|
+
|
|
153
|
+
Edit `agent_config.yaml` to customize agent behavior:
|
|
154
|
+
|
|
155
|
+
```yaml
|
|
156
|
+
agents:
|
|
157
|
+
bugfix:
|
|
158
|
+
class: "siada.agent_hub.coder.bug_fix_agent.BugFixAgent"
|
|
159
|
+
description: "Specialized agent for code bug fixing"
|
|
160
|
+
enabled: true
|
|
161
|
+
|
|
162
|
+
llm_config:
|
|
163
|
+
provider: "openrouter"
|
|
164
|
+
model_name: "claude-sonnet-4"
|
|
165
|
+
repo_map_tokens: 8192
|
|
166
|
+
repo_map_mul_no_files: 16
|
|
167
|
+
repo_verbose: true
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
### Environment Variables
|
|
171
|
+
|
|
172
|
+
Set environment variables to configure behavior:
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
# Siada-specific settings (use SIADA_ prefix)
|
|
176
|
+
export SIADA_AGENT="bugfix"
|
|
177
|
+
export SIADA_MODEL="claude-sonnet-4"
|
|
178
|
+
export SIADA_THEME="dark"
|
|
179
|
+
|
|
180
|
+
# Required when using OpenRouter provider
|
|
181
|
+
export OPENROUTER_API_KEY="your_openrouter_key"
|
|
182
|
+
|
|
183
|
+
# Unset environment variables in current terminal session
|
|
184
|
+
unset SIADA_MODEL
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
## Usage Modes
|
|
188
|
+
|
|
189
|
+
Siada CLI supports two usage modes to meet different usage scenarios:
|
|
190
|
+
|
|
191
|
+
### Non-Interactive Mode
|
|
192
|
+
|
|
193
|
+
**Features:**
|
|
194
|
+
- One-time execution: Execute a single task and automatically exit
|
|
195
|
+
- Stateless: Does not retain session context
|
|
196
|
+
- Use cases: Automation scripts, CI/CD pipelines, single task execution
|
|
197
|
+
|
|
198
|
+
**Usage:**
|
|
199
|
+
```bash
|
|
200
|
+
# Use --prompt parameter to trigger non-interactive mode
|
|
201
|
+
siada-cli --agent bugfix --prompt "Fix login errors in auth.py"
|
|
202
|
+
|
|
203
|
+
# Combine with other parameters
|
|
204
|
+
siada-cli --agent coder --model claude-sonnet-4 --prompt "Create a REST API endpoint"
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### Interactive Mode
|
|
208
|
+
|
|
209
|
+
**Features:**
|
|
210
|
+
- Continuous conversation: Maintains session state after startup, allows continuous dialogue
|
|
211
|
+
- Context memory: AI remembers previous conversation content
|
|
212
|
+
- Real-time interaction: Supports slash commands, editor mode, and other advanced features
|
|
213
|
+
- Use cases: Exploratory programming, complex tasks, development work requiring multiple rounds of dialogue
|
|
214
|
+
|
|
215
|
+
**Usage:**
|
|
216
|
+
```bash
|
|
217
|
+
# Start directly (defaults to interactive mode)
|
|
218
|
+
siada-cli --agent coder
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
**Interactive Process:**
|
|
222
|
+
```
|
|
223
|
+
> Create a user management API
|
|
224
|
+
[AI response...]
|
|
225
|
+
> Add data validation to this API
|
|
226
|
+
[AI response...]
|
|
227
|
+
> Write some unit tests
|
|
228
|
+
[AI response...]
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
## Command Line Options
|
|
232
|
+
|
|
233
|
+
```bash
|
|
234
|
+
# Use a specific agent
|
|
235
|
+
siada-cli --agent coder
|
|
236
|
+
# Supports abbreviations
|
|
237
|
+
siada-cli -a coder
|
|
238
|
+
|
|
239
|
+
# Non-interactive mode with a single prompt
|
|
240
|
+
siada-cli --prompt "Fix authentication errors in login.py"
|
|
241
|
+
# Supports abbreviations
|
|
242
|
+
siada-cli -p "Fix authentication errors in login.py"
|
|
243
|
+
|
|
244
|
+
# Use a different model
|
|
245
|
+
siada-cli --model claude-sonnet-4
|
|
246
|
+
|
|
247
|
+
# Use OpenRouter provider (requires API key setup)
|
|
248
|
+
siada-cli --provider openrouter
|
|
249
|
+
|
|
250
|
+
# Set color theme
|
|
251
|
+
siada-cli --theme dark
|
|
252
|
+
|
|
253
|
+
# Enable verbose output
|
|
254
|
+
siada-cli --verbose
|
|
255
|
+
|
|
256
|
+
# List all available models
|
|
257
|
+
siada-cli --list-models
|
|
258
|
+
siada-cli --models
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
## Slash Commands
|
|
262
|
+
|
|
263
|
+
In the CLI, you can use slash commands for additional functionality:
|
|
264
|
+
|
|
265
|
+
- `/shell` - Switch to shell mode to execute system commands (type `exit` or `quit` to exit shell mode)
|
|
266
|
+
- `/models` - List available AI models
|
|
267
|
+
- `/run <command>` or `!<command>` - Execute shell commands
|
|
268
|
+
- `/editor` - Open editor for multiline input
|
|
269
|
+
- `/exit` or `/quit` - Exit the application
|
|
270
|
+
|
|
271
|
+
### Shell Mode Usage Guide
|
|
272
|
+
|
|
273
|
+
Siada CLI provides two ways to execute system commands:
|
|
274
|
+
|
|
275
|
+
#### Method 1: Use `/shell` to switch to shell mode
|
|
276
|
+
Switch to persistent shell mode where you can continuously execute multiple system commands:
|
|
277
|
+
|
|
278
|
+
```bash
|
|
279
|
+
> /shell
|
|
280
|
+
# After entering shell mode, you can execute multiple commands
|
|
281
|
+
ls -la
|
|
282
|
+
cd my-project
|
|
283
|
+
npm install
|
|
284
|
+
git status
|
|
285
|
+
# Use exit or quit to exit shell mode
|
|
286
|
+
exit
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
#### Method 2: Use `!` prefix to execute commands directly
|
|
290
|
+
Execute single system commands directly in interactive mode without switching modes:
|
|
291
|
+
|
|
292
|
+
```bash
|
|
293
|
+
> !ls -la
|
|
294
|
+
> !git status
|
|
295
|
+
> !npm run dev
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
Differences between the two methods:
|
|
299
|
+
- **`/shell`**: Suitable for scenarios requiring continuous execution of multiple system commands, switch once and use persistently
|
|
300
|
+
- **`!<command>`**: Suitable for occasionally executing single system commands, returns to AI conversation mode immediately after execution
|
|
301
|
+
|
|
302
|
+
## Agent Types
|
|
303
|
+
|
|
304
|
+
### Bug Fix Agent (`--agent bugfix` / `-a bugfix` / `--bugfix`)
|
|
305
|
+
> **Only supports non-interactive mode!**
|
|
306
|
+
|
|
307
|
+
Specialized for identifying, analyzing, and fixing bugs in codebases. Provides detailed analysis and automated fix suggestions.
|
|
308
|
+
|
|
309
|
+
### Code Generation Agent (`--agent coder` / `-a coder` / `--coder`)
|
|
310
|
+
General-purpose code development agent for creating new features, refactoring code, and implementing functionality in various programming languages.
|
|
311
|
+
|
|
312
|
+
### Frontend Generation Agent (`--agent fegen` / `-a fegen` / `--fegen`)
|
|
313
|
+
Focused on frontend development tasks, including React components, CSS styling, and user interface implementation.
|
|
314
|
+
|
|
315
|
+
## Examples
|
|
316
|
+
|
|
317
|
+
### Activate Virtual Environment (Developer Mode Only)
|
|
318
|
+
First, enter the siada-agenthub project directory and activate the virtual environment:
|
|
319
|
+
|
|
320
|
+
```bash
|
|
321
|
+
# Enter project directory
|
|
322
|
+
cd ~/path/to/siada-agenthub
|
|
323
|
+
|
|
324
|
+
# Activate virtual environment (recommended method)
|
|
325
|
+
source $(poetry env info --path)/bin/activate
|
|
326
|
+
|
|
327
|
+
# Or use Poetry run (no need to activate environment)
|
|
328
|
+
# poetry run siada-cli
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
### Usage Examples
|
|
332
|
+
|
|
333
|
+
After activating the environment, you can choose between interactive mode or non-interactive mode to interact with AI agents.
|
|
334
|
+
|
|
335
|
+
**Interactive Mode:**
|
|
336
|
+
|
|
337
|
+
```bash
|
|
338
|
+
# Enter project directory
|
|
339
|
+
cd my-project/
|
|
340
|
+
|
|
341
|
+
# Start interactive mode
|
|
342
|
+
siada-cli --agent coder
|
|
343
|
+
|
|
344
|
+
# Then you can input prompts in the interactive interface
|
|
345
|
+
> Create a REST API server with user authentication using FastAPI
|
|
346
|
+
# AI will respond and you can continue the conversation...
|
|
347
|
+
> Add logging functionality to this API
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
**Non-Interactive Mode (One-time execution):**
|
|
351
|
+
|
|
352
|
+
```bash
|
|
353
|
+
# Execute a single task and exit (uses coder agent by default)
|
|
354
|
+
siada-cli --prompt "Create a user registration API"
|
|
355
|
+
|
|
356
|
+
# Specify a specific agent to execute tasks
|
|
357
|
+
siada-cli --agent bugfix --prompt "Fix authentication errors in login.py"
|
|
358
|
+
siada-cli --agent fegen --prompt "Create a responsive navigation bar component using React and Tailwind CSS"
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
**Exit Virtual Environment (Developer Mode Only):**
|
|
362
|
+
|
|
363
|
+
```bash
|
|
364
|
+
# Exit virtual environment after use
|
|
365
|
+
deactivate
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
## Common Tasks
|
|
369
|
+
|
|
370
|
+
### Debug and Fix Code Issues
|
|
371
|
+
|
|
372
|
+
```text
|
|
373
|
+
> Analyze this error message and suggest a fix: [paste error]
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
```text
|
|
377
|
+
> Help me reproduce this intermittent bug that occurs during high load
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
### Code Generation and Development
|
|
381
|
+
|
|
382
|
+
```text
|
|
383
|
+
> Implement a caching layer for the database queries in this service
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
```text
|
|
387
|
+
> Refactor this monolithic function into smaller, more maintainable pieces
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
### Frontend Development
|
|
391
|
+
|
|
392
|
+
```text
|
|
393
|
+
> Create a responsive dashboard layout with sidebar navigation
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
```text
|
|
397
|
+
> Add form validation to the user registration form
|
|
398
|
+
```
|
|
399
|
+
|
|
400
|
+
## Troubleshooting
|
|
401
|
+
|
|
402
|
+
### Common Issues
|
|
403
|
+
|
|
404
|
+
**Command not found:**
|
|
405
|
+
If running `siada-cli` directly shows command not found:
|
|
406
|
+
- This is normal behavior in developer mode as the command is installed in the virtual environment
|
|
407
|
+
- Refer to examples to activate the virtual environment
|
|
408
|
+
|
|
409
|
+
**Model API errors:**
|
|
410
|
+
- Check your internet connection
|
|
411
|
+
- If using OpenRouter provider, ensure API key is set correctly
|
|
412
|
+
- If using OpenRouter provider, verify your account has sufficient credits
|
|
413
|
+
|
|
414
|
+
**Installation issues:**
|
|
415
|
+
- Ensure you have Python 3.12+ installed
|
|
416
|
+
- Install Poetry using the official installation method
|
|
417
|
+
- Try removing `poetry.lock` and re-running `poetry install`
|
|
418
|
+
|
|
419
|
+
**Agent not working:**
|
|
420
|
+
- Check if the agent is enabled in `agent_config.yaml`
|
|
421
|
+
- Verify the agent class path is correct
|
|
422
|
+
- Use `--verbose` flag to see detailed output
|
|
423
|
+
|
|
424
|
+
For more detailed troubleshooting, check logs and use the `--verbose` flag for additional debug information.
|
|
425
|
+
|
|
426
|
+
## Contributing
|
|
427
|
+
|
|
428
|
+
We welcome contributions to Siada CLI! Whether you want to fix bugs, add new features, improve documentation, or suggest enhancements, your contributions are greatly appreciated.
|
|
429
|
+
|
|
430
|
+
To get started with contributing, please read our [Contributing Guide](./docs/CONTRIBUTING.md) which includes:
|
|
431
|
+
|
|
432
|
+
- Our project vision and development goals
|
|
433
|
+
- Project directory structure and development guidelines
|
|
434
|
+
- Pull request guidelines and best practices
|
|
435
|
+
- Code organization principles
|
|
436
|
+
|
|
437
|
+
Before submitting any changes, please make sure to check our issue tracker and follow the contribution workflow outlined in the guide.
|
|
438
|
+
|
|
439
|
+
## Acknowledgements
|
|
440
|
+
|
|
441
|
+
Siada CLI is built upon the foundation of numerous open source projects, and we extend our deepest respect and gratitude to their contributors.
|
|
442
|
+
|
|
443
|
+
Special thanks to the [OpenAI Agent SDK](https://github.com/openai/openai-agent-sdk) for providing the foundational framework that powers our intelligent agent capabilities.
|
|
444
|
+
|
|
445
|
+
For a complete list of open source projects and licenses used in Siada CLI, please see our [CREDITS.md](./docs/CREDITS.md) file.
|
|
446
|
+
|
|
447
|
+
## License
|
|
448
|
+
|
|
449
|
+
Distributed under the Apache-2.0 License. See [`LICENSE`](LICENSE) for more information.
|
|
450
|
+
|
|
451
|
+
## DISCLAIMERS
|
|
452
|
+
See [disclaimers.md](./disclaimers.md)
|
|
453
|
+
|
|
454
|
+
----
|
|
455
|
+
<div align="center">
|
|
456
|
+
Built with ❤️ by Li Auto Code Intelligence Team and the open source community
|
|
457
|
+
</div>
|