xllama-remote 0.11.2__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.
- xllama_remote-0.11.2/.editorconfig +15 -0
- xllama_remote-0.11.2/.github/ISSUE_TEMPLATE/bug_report.yml +47 -0
- xllama_remote-0.11.2/.github/ISSUE_TEMPLATE/config.yml +5 -0
- xllama_remote-0.11.2/.github/ISSUE_TEMPLATE/feature_request.yml +26 -0
- xllama_remote-0.11.2/.github/dependabot.yml +21 -0
- xllama_remote-0.11.2/.github/pull_request_template.md +14 -0
- xllama_remote-0.11.2/.github/workflows/ci.yml +68 -0
- xllama_remote-0.11.2/.github/workflows/release.yml +60 -0
- xllama_remote-0.11.2/.gitignore +30 -0
- xllama_remote-0.11.2/.pre-commit-config.yaml +18 -0
- xllama_remote-0.11.2/.python-version +1 -0
- xllama_remote-0.11.2/CHANGELOG.md +438 -0
- xllama_remote-0.11.2/CONTRIBUTING.md +49 -0
- xllama_remote-0.11.2/LICENSE +21 -0
- xllama_remote-0.11.2/NOTICE +26 -0
- xllama_remote-0.11.2/PKG-INFO +191 -0
- xllama_remote-0.11.2/README.md +152 -0
- xllama_remote-0.11.2/SECURITY.md +74 -0
- xllama_remote-0.11.2/docs/ARCHITECTURE.md +265 -0
- xllama_remote-0.11.2/docs/MISSION.md +20 -0
- xllama_remote-0.11.2/docs/ROADMAP.md +155 -0
- xllama_remote-0.11.2/docs/adr/0001-local-daemon.md +66 -0
- xllama_remote-0.11.2/docs/adr/0002-scalable-structure.md +79 -0
- xllama_remote-0.11.2/docs/adr/0003-agent-turn-protocol-and-context-budget.md +244 -0
- xllama_remote-0.11.2/pyproject.toml +115 -0
- xllama_remote-0.11.2/scripts/bench_context_cache.py +228 -0
- xllama_remote-0.11.2/scripts/bench_transcript.py +92 -0
- xllama_remote-0.11.2/scripts/console/README.md +32 -0
- xllama_remote-0.11.2/scripts/console/card_sampling_eval.py +123 -0
- xllama_remote-0.11.2/scripts/console/lfm2_parser_probes.py +218 -0
- xllama_remote-0.11.2/src/xllama_remote/__init__.py +10 -0
- xllama_remote-0.11.2/src/xllama_remote/__main__.py +6 -0
- xllama_remote-0.11.2/src/xllama_remote/api/__init__.py +2 -0
- xllama_remote-0.11.2/src/xllama_remote/api/atomic.py +29 -0
- xllama_remote-0.11.2/src/xllama_remote/api/backend.py +71 -0
- xllama_remote-0.11.2/src/xllama_remote/api/catalog.py +130 -0
- xllama_remote-0.11.2/src/xllama_remote/api/client.py +632 -0
- xllama_remote-0.11.2/src/xllama_remote/api/config.py +392 -0
- xllama_remote-0.11.2/src/xllama_remote/api/discovery.py +178 -0
- xllama_remote-0.11.2/src/xllama_remote/api/errors.py +196 -0
- xllama_remote-0.11.2/src/xllama_remote/api/network.py +49 -0
- xllama_remote-0.11.2/src/xllama_remote/api/sampling.py +51 -0
- xllama_remote-0.11.2/src/xllama_remote/api/sse.py +58 -0
- xllama_remote-0.11.2/src/xllama_remote/api/wire.py +263 -0
- xllama_remote-0.11.2/src/xllama_remote/cli/__init__.py +106 -0
- xllama_remote-0.11.2/src/xllama_remote/cli/agent.py +263 -0
- xllama_remote-0.11.2/src/xllama_remote/cli/daemon.py +228 -0
- xllama_remote-0.11.2/src/xllama_remote/cli/mcp.py +65 -0
- xllama_remote-0.11.2/src/xllama_remote/cli/media.py +177 -0
- xllama_remote-0.11.2/src/xllama_remote/cli/model.py +369 -0
- xllama_remote-0.11.2/src/xllama_remote/cli/repl_launch.py +475 -0
- xllama_remote-0.11.2/src/xllama_remote/cli/run.py +631 -0
- xllama_remote-0.11.2/src/xllama_remote/cli/sessions.py +136 -0
- xllama_remote-0.11.2/src/xllama_remote/cli/state.py +298 -0
- xllama_remote-0.11.2/src/xllama_remote/cli/system.py +236 -0
- xllama_remote-0.11.2/src/xllama_remote/cli/trust.py +85 -0
- xllama_remote-0.11.2/src/xllama_remote/daemon/__init__.py +15 -0
- xllama_remote-0.11.2/src/xllama_remote/daemon/app.py +449 -0
- xllama_remote-0.11.2/src/xllama_remote/daemon/auth.py +111 -0
- xllama_remote-0.11.2/src/xllama_remote/daemon/client.py +182 -0
- xllama_remote-0.11.2/src/xllama_remote/daemon/codes.py +27 -0
- xllama_remote-0.11.2/src/xllama_remote/daemon/folder_grant.py +57 -0
- xllama_remote-0.11.2/src/xllama_remote/daemon/gate.py +70 -0
- xllama_remote-0.11.2/src/xllama_remote/daemon/remote.py +385 -0
- xllama_remote-0.11.2/src/xllama_remote/daemon/server.py +281 -0
- xllama_remote-0.11.2/src/xllama_remote/daemon/service.py +1013 -0
- xllama_remote-0.11.2/src/xllama_remote/daemon/state.py +122 -0
- xllama_remote-0.11.2/src/xllama_remote/daemon/static/app.css +66 -0
- xllama_remote-0.11.2/src/xllama_remote/daemon/static/app.js +851 -0
- xllama_remote-0.11.2/src/xllama_remote/daemon/static/index.html +86 -0
- xllama_remote-0.11.2/src/xllama_remote/daemon/turn_end.py +73 -0
- xllama_remote-0.11.2/src/xllama_remote/daemon/turnlog.py +140 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/__init__.py +2 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/agent.py +759 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/agent_types.py +187 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/bm25.py +41 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/cancel.py +35 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/compaction.py +153 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/context.py +244 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/environment.py +87 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/__init__.py +74 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/cases/persona/brevity.jsonl +8 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/cases/persona/identity.jsonl +8 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/cases/persona/register.jsonl +8 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/cases/recall/recall.jsonl +8 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/cases/task/change.jsonl +2 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/cases/task/fix.jsonl +3 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/cases/task/inspect.jsonl +2 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/cases/v1/abstention.jsonl +21 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/cases/v1/chat.jsonl +10 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/cases/v1/environment.jsonl +10 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/cases/v1/irrelevance.jsonl +26 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/cases/v1/missing_param.jsonl +6 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/cases/v1/multiturn.jsonl +15 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/cases/v1/retrieval.jsonl +37 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/cases/v1/single.jsonl +23 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/cases/v1/web.jsonl +12 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/cases.py +165 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/checks.py +273 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/extra_tools.py +116 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/fixtures/README.md +18 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/fixtures/greeter/README.md +3 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/fixtures/greeter/app.py +18 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/fixtures/greeter/users.json +4 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/fixtures/receipt/README.md +5 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/fixtures/receipt/calc.py +22 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/fixtures/receipt/test_calc.py +18 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/fixtures/shapes/README.md +5 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/fixtures/shapes/geometry.py +9 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/fixtures/shapes/report.py +15 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/fixtures/shapes/test_shapes.py +19 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/report.py +308 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/runner.py +694 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/evals/stats.py +43 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/hooks.py +89 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/language.py +91 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/mcp.py +474 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/model_choice.py +273 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/models.py +535 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/permissions.py +351 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/procs.py +97 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/reasoning.py +55 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/runtime.py +603 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/sandbox.py +251 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/sessions.py +454 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/tool_retrieval.py +55 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/tools/__init__.py +6 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/tools/builtin.py +322 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/tools/control.py +56 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/tools/keywords.py +93 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/tools/registry.py +165 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/trust.py +28 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/turn.py +94 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/web/__init__.py +49 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/web/extract.py +65 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/web/fetch.py +230 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/web/passages.py +81 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/web/provenance.py +82 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/web/search.py +139 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/web/settings.py +77 -0
- xllama_remote-0.11.2/src/xllama_remote/harness/web/tools.py +75 -0
- xllama_remote-0.11.2/src/xllama_remote/py.typed +0 -0
- xllama_remote-0.11.2/src/xllama_remote/ui/__init__.py +2 -0
- xllama_remote-0.11.2/src/xllama_remote/ui/clipboard.py +17 -0
- xllama_remote-0.11.2/src/xllama_remote/ui/command_panel.py +36 -0
- xllama_remote-0.11.2/src/xllama_remote/ui/commands.py +85 -0
- xllama_remote-0.11.2/src/xllama_remote/ui/dialogs.py +210 -0
- xllama_remote-0.11.2/src/xllama_remote/ui/doctor.py +170 -0
- xllama_remote-0.11.2/src/xllama_remote/ui/fullscreen.py +731 -0
- xllama_remote-0.11.2/src/xllama_remote/ui/fullscreen_render.py +115 -0
- xllama_remote-0.11.2/src/xllama_remote/ui/fullscreen_session.py +117 -0
- xllama_remote-0.11.2/src/xllama_remote/ui/history.py +69 -0
- xllama_remote-0.11.2/src/xllama_remote/ui/logfile.py +62 -0
- xllama_remote-0.11.2/src/xllama_remote/ui/model_picker.py +170 -0
- xllama_remote-0.11.2/src/xllama_remote/ui/output.py +92 -0
- xllama_remote-0.11.2/src/xllama_remote/ui/picker.py +284 -0
- xllama_remote-0.11.2/src/xllama_remote/ui/prompt.py +115 -0
- xllama_remote-0.11.2/src/xllama_remote/ui/render.py +395 -0
- xllama_remote-0.11.2/src/xllama_remote/ui/repl.py +853 -0
- xllama_remote-0.11.2/src/xllama_remote/ui/session_picker.py +64 -0
- xllama_remote-0.11.2/src/xllama_remote/ui/tool_picker.py +76 -0
- xllama_remote-0.11.2/src/xllama_remote/ui/transcript.py +411 -0
- xllama_remote-0.11.2/tests/__init__.py +0 -0
- xllama_remote-0.11.2/tests/api/__init__.py +0 -0
- xllama_remote-0.11.2/tests/api/test_atomic.py +36 -0
- xllama_remote-0.11.2/tests/api/test_backend.py +114 -0
- xllama_remote-0.11.2/tests/api/test_catalog_facts.py +19 -0
- xllama_remote-0.11.2/tests/api/test_chat.py +166 -0
- xllama_remote-0.11.2/tests/api/test_client_contract.py +592 -0
- xllama_remote-0.11.2/tests/api/test_config.py +46 -0
- xllama_remote-0.11.2/tests/api/test_discovery.py +141 -0
- xllama_remote-0.11.2/tests/api/test_errors.py +132 -0
- xllama_remote-0.11.2/tests/api/test_models.py +63 -0
- xllama_remote-0.11.2/tests/api/test_proxy.py +139 -0
- xllama_remote-0.11.2/tests/api/test_sampling.py +231 -0
- xllama_remote-0.11.2/tests/api/test_server_info.py +71 -0
- xllama_remote-0.11.2/tests/api/test_sse.py +74 -0
- xllama_remote-0.11.2/tests/cli/__init__.py +0 -0
- xllama_remote-0.11.2/tests/cli/test_cli_commands.py +1097 -0
- xllama_remote-0.11.2/tests/cli/test_config.py +200 -0
- xllama_remote-0.11.2/tests/cli/test_default_model.py +166 -0
- xllama_remote-0.11.2/tests/cli/test_help.py +20 -0
- xllama_remote-0.11.2/tests/cli/test_trust.py +239 -0
- xllama_remote-0.11.2/tests/conftest.py +79 -0
- xllama_remote-0.11.2/tests/daemon/__init__.py +0 -0
- xllama_remote-0.11.2/tests/daemon/test_approvals.py +273 -0
- xllama_remote-0.11.2/tests/daemon/test_attach.py +312 -0
- xllama_remote-0.11.2/tests/daemon/test_codes.py +17 -0
- xllama_remote-0.11.2/tests/daemon/test_controller.py +317 -0
- xllama_remote-0.11.2/tests/daemon/test_daemon.py +376 -0
- xllama_remote-0.11.2/tests/daemon/test_errors_json.py +48 -0
- xllama_remote-0.11.2/tests/daemon/test_idle_close.py +192 -0
- xllama_remote-0.11.2/tests/daemon/test_lan.py +217 -0
- xllama_remote-0.11.2/tests/daemon/test_remote.py +213 -0
- xllama_remote-0.11.2/tests/daemon/test_service_limits.py +64 -0
- xllama_remote-0.11.2/tests/daemon/test_sessions.py +475 -0
- xllama_remote-0.11.2/tests/daemon/test_turn_limits.py +102 -0
- xllama_remote-0.11.2/tests/daemon/test_update_race.py +43 -0
- xllama_remote-0.11.2/tests/daemon/test_web.py +301 -0
- xllama_remote-0.11.2/tests/daemon/web/harness.js +97 -0
- xllama_remote-0.11.2/tests/daemon/web/run.js +421 -0
- xllama_remote-0.11.2/tests/e2e/__init__.py +1 -0
- xllama_remote-0.11.2/tests/e2e/conftest.py +13 -0
- xllama_remote-0.11.2/tests/e2e/test_e2e.py +378 -0
- xllama_remote-0.11.2/tests/e2e/test_fake.py +157 -0
- xllama_remote-0.11.2/tests/fakes/__init__.py +1 -0
- xllama_remote-0.11.2/tests/fakes/xllama.py +427 -0
- xllama_remote-0.11.2/tests/harness/__init__.py +0 -0
- xllama_remote-0.11.2/tests/harness/test_agent.py +536 -0
- xllama_remote-0.11.2/tests/harness/test_compaction.py +161 -0
- xllama_remote-0.11.2/tests/harness/test_env_blocks_first.py +57 -0
- xllama_remote-0.11.2/tests/harness/test_eval_tasks.py +331 -0
- xllama_remote-0.11.2/tests/harness/test_evals.py +654 -0
- xllama_remote-0.11.2/tests/harness/test_hooks_cwd.py +66 -0
- xllama_remote-0.11.2/tests/harness/test_mcp.py +388 -0
- xllama_remote-0.11.2/tests/harness/test_model_choice.py +145 -0
- xllama_remote-0.11.2/tests/harness/test_models.py +221 -0
- xllama_remote-0.11.2/tests/harness/test_permission_rules.py +83 -0
- xllama_remote-0.11.2/tests/harness/test_procs.py +125 -0
- xllama_remote-0.11.2/tests/harness/test_prompt_warming.py +205 -0
- xllama_remote-0.11.2/tests/harness/test_read_limits.py +78 -0
- xllama_remote-0.11.2/tests/harness/test_reasoning.py +21 -0
- xllama_remote-0.11.2/tests/harness/test_recall_suite.py +68 -0
- xllama_remote-0.11.2/tests/harness/test_runtime.py +307 -0
- xllama_remote-0.11.2/tests/harness/test_sandbox.py +251 -0
- xllama_remote-0.11.2/tests/harness/test_sessions_context.py +353 -0
- xllama_remote-0.11.2/tests/harness/test_stable_fit.py +238 -0
- xllama_remote-0.11.2/tests/harness/test_standard_mechanisms.py +235 -0
- xllama_remote-0.11.2/tests/harness/test_tools_permissions.py +229 -0
- xllama_remote-0.11.2/tests/harness/test_turn_protocol.py +394 -0
- xllama_remote-0.11.2/tests/harness/test_web_agent.py +260 -0
- xllama_remote-0.11.2/tests/harness/test_web_content.py +214 -0
- xllama_remote-0.11.2/tests/harness/test_web_fetch.py +180 -0
- xllama_remote-0.11.2/tests/live/__init__.py +0 -0
- xllama_remote-0.11.2/tests/live/test_live.py +89 -0
- xllama_remote-0.11.2/tests/support/__init__.py +1 -0
- xllama_remote-0.11.2/tests/support/clock.py +14 -0
- xllama_remote-0.11.2/tests/support/daemon.py +205 -0
- xllama_remote-0.11.2/tests/support/screen.py +65 -0
- xllama_remote-0.11.2/tests/support/sse.py +30 -0
- xllama_remote-0.11.2/tests/support/wait.py +16 -0
- xllama_remote-0.11.2/tests/test_console_scripts.py +84 -0
- xllama_remote-0.11.2/tests/test_layers.py +66 -0
- xllama_remote-0.11.2/tests/ui/test_agent_stream.py +187 -0
- xllama_remote-0.11.2/tests/ui/test_dialogs.py +201 -0
- xllama_remote-0.11.2/tests/ui/test_fullscreen.py +202 -0
- xllama_remote-0.11.2/tests/ui/test_fullscreen_errors.py +91 -0
- xllama_remote-0.11.2/tests/ui/test_fullscreen_layout.py +80 -0
- xllama_remote-0.11.2/tests/ui/test_fullscreen_repl.py +221 -0
- xllama_remote-0.11.2/tests/ui/test_fullscreen_state.py +138 -0
- xllama_remote-0.11.2/tests/ui/test_model_picker.py +143 -0
- xllama_remote-0.11.2/tests/ui/test_model_switch.py +125 -0
- xllama_remote-0.11.2/tests/ui/test_navigation.py +185 -0
- xllama_remote-0.11.2/tests/ui/test_picker_layout.py +108 -0
- xllama_remote-0.11.2/tests/ui/test_prompt.py +67 -0
- xllama_remote-0.11.2/tests/ui/test_repl.py +298 -0
- xllama_remote-0.11.2/tests/ui/test_repl_warm.py +32 -0
- xllama_remote-0.11.2/tests/ui/test_screen.py +49 -0
- xllama_remote-0.11.2/tests/ui/test_session_picker.py +27 -0
- xllama_remote-0.11.2/tests/ui/test_sessions_in_chat.py +160 -0
- xllama_remote-0.11.2/tests/ui/test_transcript.py +193 -0
- xllama_remote-0.11.2/tests/ui/test_transcript_complete.py +133 -0
- xllama_remote-0.11.2/tests/ui/test_tui_design.py +135 -0
- xllama_remote-0.11.2/tests/ui/test_tui_polish.py +231 -0
- xllama_remote-0.11.2/uv.lock +2294 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*]
|
|
4
|
+
charset = utf-8
|
|
5
|
+
end_of_line = lf
|
|
6
|
+
insert_final_newline = true
|
|
7
|
+
trim_trailing_whitespace = true
|
|
8
|
+
indent_style = space
|
|
9
|
+
indent_size = 4
|
|
10
|
+
|
|
11
|
+
[*.{yml,yaml,toml,md,json}]
|
|
12
|
+
indent_size = 2
|
|
13
|
+
|
|
14
|
+
[Makefile]
|
|
15
|
+
indent_style = tab
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Something in xlr does not work as expected
|
|
3
|
+
labels: [bug]
|
|
4
|
+
body:
|
|
5
|
+
- type: textarea
|
|
6
|
+
id: what
|
|
7
|
+
attributes:
|
|
8
|
+
label: What happened
|
|
9
|
+
description: What you ran and what went wrong. Do not include console IPs or credentials.
|
|
10
|
+
validations:
|
|
11
|
+
required: true
|
|
12
|
+
- type: textarea
|
|
13
|
+
id: expected
|
|
14
|
+
attributes:
|
|
15
|
+
label: Expected
|
|
16
|
+
validations:
|
|
17
|
+
required: true
|
|
18
|
+
- type: dropdown
|
|
19
|
+
id: command
|
|
20
|
+
attributes:
|
|
21
|
+
label: Command
|
|
22
|
+
options:
|
|
23
|
+
- xlr (REPL)
|
|
24
|
+
- xlr run
|
|
25
|
+
- xlr model (ls / show / pull / eval)
|
|
26
|
+
- xlr config
|
|
27
|
+
- xlr doctor
|
|
28
|
+
- xlr discover
|
|
29
|
+
- xlr mcp ls
|
|
30
|
+
- other / install / CI
|
|
31
|
+
validations:
|
|
32
|
+
required: true
|
|
33
|
+
- type: input
|
|
34
|
+
id: version
|
|
35
|
+
attributes:
|
|
36
|
+
label: xlr version / commit
|
|
37
|
+
- type: input
|
|
38
|
+
id: xllama
|
|
39
|
+
attributes:
|
|
40
|
+
label: xllama app version
|
|
41
|
+
description: For example 1.7.0.0 or 1.8.0.0, if this is an API mismatch.
|
|
42
|
+
- type: textarea
|
|
43
|
+
id: logs
|
|
44
|
+
attributes:
|
|
45
|
+
label: Output
|
|
46
|
+
description: CLI output with addresses redacted to http://<console-ip>:11434/v1
|
|
47
|
+
render: shell
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: Feature request
|
|
2
|
+
description: Propose a client command or behaviour
|
|
3
|
+
labels: [enhancement]
|
|
4
|
+
body:
|
|
5
|
+
- type: textarea
|
|
6
|
+
id: problem
|
|
7
|
+
attributes:
|
|
8
|
+
label: Problem / motivation
|
|
9
|
+
description: What can you not do with the current xlr commands?
|
|
10
|
+
validations:
|
|
11
|
+
required: true
|
|
12
|
+
- type: textarea
|
|
13
|
+
id: proposal
|
|
14
|
+
attributes:
|
|
15
|
+
label: Proposed solution
|
|
16
|
+
description: Prefer a thin command that maps to a documented xllama LAN API route.
|
|
17
|
+
- type: dropdown
|
|
18
|
+
id: roadmap
|
|
19
|
+
attributes:
|
|
20
|
+
label: Roadmap slice
|
|
21
|
+
options:
|
|
22
|
+
- Already listed on docs/ROADMAP.md
|
|
23
|
+
- New slice
|
|
24
|
+
- Unsure
|
|
25
|
+
validations:
|
|
26
|
+
required: true
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: uv
|
|
4
|
+
directory: /
|
|
5
|
+
schedule:
|
|
6
|
+
interval: weekly
|
|
7
|
+
commit-message:
|
|
8
|
+
prefix: deps
|
|
9
|
+
groups:
|
|
10
|
+
python:
|
|
11
|
+
patterns: ["*"]
|
|
12
|
+
|
|
13
|
+
- package-ecosystem: github-actions
|
|
14
|
+
directory: /
|
|
15
|
+
schedule:
|
|
16
|
+
interval: weekly
|
|
17
|
+
commit-message:
|
|
18
|
+
prefix: ci
|
|
19
|
+
groups:
|
|
20
|
+
actions:
|
|
21
|
+
patterns: ["*"]
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
## What and why
|
|
2
|
+
|
|
3
|
+
<!-- What does this change? Link a ROADMAP item or issue if there is one. -->
|
|
4
|
+
|
|
5
|
+
## How verified
|
|
6
|
+
|
|
7
|
+
- [ ] `uv run pytest`
|
|
8
|
+
- [ ] `uv run ruff check .` and `uv run ruff format --check .`
|
|
9
|
+
- [ ] `uv run mypy src`
|
|
10
|
+
- [ ] `CHANGELOG.md` `[Unreleased]` and the docs (README, ARCHITECTURE, SECURITY, ROADMAP) updated where the change shows
|
|
11
|
+
|
|
12
|
+
## Notes
|
|
13
|
+
|
|
14
|
+
<!-- Compatibility with xllama LAN API versions, follow-ups, or reviewer context. -->
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
concurrency:
|
|
9
|
+
group: ci-${{ github.workflow }}-${{ github.ref }}
|
|
10
|
+
cancel-in-progress: true
|
|
11
|
+
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
lint:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
20
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
21
|
+
with:
|
|
22
|
+
python-version: "3.12"
|
|
23
|
+
- name: Install
|
|
24
|
+
run: uv sync --frozen --group dev --all-extras
|
|
25
|
+
- name: Ruff
|
|
26
|
+
run: |
|
|
27
|
+
uv run ruff check .
|
|
28
|
+
uv run ruff format --check .
|
|
29
|
+
- name: Type check
|
|
30
|
+
run: uv run mypy
|
|
31
|
+
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
32
|
+
with:
|
|
33
|
+
node-version: "24"
|
|
34
|
+
- name: Web client syntax
|
|
35
|
+
run: node --check src/xllama_remote/daemon/static/app.js
|
|
36
|
+
- name: Build
|
|
37
|
+
run: uv build
|
|
38
|
+
|
|
39
|
+
test:
|
|
40
|
+
runs-on: ubuntu-latest
|
|
41
|
+
strategy:
|
|
42
|
+
fail-fast: false
|
|
43
|
+
matrix:
|
|
44
|
+
python-version: ["3.11", "3.12", "3.13"]
|
|
45
|
+
steps:
|
|
46
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
47
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
48
|
+
with:
|
|
49
|
+
python-version: ${{ matrix.python-version }}
|
|
50
|
+
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
51
|
+
with:
|
|
52
|
+
node-version: "24"
|
|
53
|
+
- name: Install bubblewrap
|
|
54
|
+
run: |
|
|
55
|
+
sudo apt-get update
|
|
56
|
+
sudo apt-get install -y bubblewrap
|
|
57
|
+
# Ubuntu's AppArmor policy blocks the unprivileged user namespaces bwrap needs.
|
|
58
|
+
if sudo sysctl -n kernel.apparmor_restrict_unprivileged_userns >/dev/null 2>&1; then
|
|
59
|
+
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
|
|
60
|
+
fi
|
|
61
|
+
- name: Install
|
|
62
|
+
run: uv sync --frozen --group dev --all-extras
|
|
63
|
+
- name: Pytest
|
|
64
|
+
env:
|
|
65
|
+
# The sandbox and web-client tests fail instead of skipping.
|
|
66
|
+
XLR_REQUIRE_SANDBOX: "1"
|
|
67
|
+
XLR_REQUIRE_NODE: "1"
|
|
68
|
+
run: uv run pytest -rs -n auto --cov --cov-report=term-missing:skip-covered
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
# Publishes to PyPI through trusted publishing (OIDC): no API token is stored.
|
|
4
|
+
# Runs only when a version tag is pushed; the tag must match the package version.
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
tags: ["v*"]
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: release-${{ github.ref }}
|
|
14
|
+
cancel-in-progress: false
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
build:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
21
|
+
with:
|
|
22
|
+
persist-credentials: false
|
|
23
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
24
|
+
with:
|
|
25
|
+
python-version: "3.12"
|
|
26
|
+
- name: Check the tag matches the package version
|
|
27
|
+
env:
|
|
28
|
+
TAG: ${{ github.ref_name }}
|
|
29
|
+
run: |
|
|
30
|
+
version=$(python3 -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')
|
|
31
|
+
if [ "$TAG" != "v$version" ]; then
|
|
32
|
+
echo "::error::tag $TAG does not match the package version v$version"
|
|
33
|
+
exit 1
|
|
34
|
+
fi
|
|
35
|
+
- name: Build
|
|
36
|
+
run: uv build
|
|
37
|
+
- name: Check the built files
|
|
38
|
+
run: |
|
|
39
|
+
ls -l dist
|
|
40
|
+
uvx twine check --strict dist/*
|
|
41
|
+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
42
|
+
with:
|
|
43
|
+
name: dist
|
|
44
|
+
path: dist/
|
|
45
|
+
if-no-files-found: error
|
|
46
|
+
|
|
47
|
+
publish:
|
|
48
|
+
needs: build
|
|
49
|
+
runs-on: ubuntu-latest
|
|
50
|
+
environment:
|
|
51
|
+
name: pypi
|
|
52
|
+
url: https://pypi.org/project/xllama-remote/
|
|
53
|
+
permissions:
|
|
54
|
+
id-token: write # trusted publishing; nothing else
|
|
55
|
+
steps:
|
|
56
|
+
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
57
|
+
with:
|
|
58
|
+
name: dist
|
|
59
|
+
path: dist/
|
|
60
|
+
- uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
*.egg-info/
|
|
6
|
+
.eggs/
|
|
7
|
+
dist/
|
|
8
|
+
build/
|
|
9
|
+
*.egg
|
|
10
|
+
|
|
11
|
+
# Tools
|
|
12
|
+
.venv/
|
|
13
|
+
.mypy_cache/
|
|
14
|
+
.ruff_cache/
|
|
15
|
+
.pytest_cache/
|
|
16
|
+
.coverage
|
|
17
|
+
htmlcov/
|
|
18
|
+
.tox/
|
|
19
|
+
.nox/
|
|
20
|
+
|
|
21
|
+
# Editors / OS
|
|
22
|
+
.idea/
|
|
23
|
+
.vscode/
|
|
24
|
+
*.swp
|
|
25
|
+
.DS_Store
|
|
26
|
+
|
|
27
|
+
# Secrets and local env (never commit console addresses)
|
|
28
|
+
.env
|
|
29
|
+
.env.*
|
|
30
|
+
!.env.example
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v5.0.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: trailing-whitespace
|
|
6
|
+
- id: end-of-file-fixer
|
|
7
|
+
- id: check-yaml
|
|
8
|
+
- id: check-toml
|
|
9
|
+
- id: check-added-large-files
|
|
10
|
+
- id: check-merge-conflict
|
|
11
|
+
- id: mixed-line-ending
|
|
12
|
+
args: [--fix=lf]
|
|
13
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
14
|
+
rev: v0.17.6
|
|
15
|
+
hooks:
|
|
16
|
+
- id: ruff
|
|
17
|
+
args: [--fix]
|
|
18
|
+
- id: ruff-format
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.12
|