localharness 0.9.9__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.
- localharness/__init__.py +2 -0
- localharness/agent/__init__.py +27 -0
- localharness/agent/context.py +1169 -0
- localharness/agent/loop.py +1449 -0
- localharness/agent/permissions.py +57 -0
- localharness/agent/subagent.py +1196 -0
- localharness/assets/design-screenshot.js +64 -0
- localharness/autoresearch/__init__.py +4 -0
- localharness/autoresearch/adoption.py +214 -0
- localharness/autoresearch/archive.py +464 -0
- localharness/autoresearch/budget.py +141 -0
- localharness/autoresearch/experiment.py +550 -0
- localharness/autoresearch/loop.py +519 -0
- localharness/autoresearch/proposer.py +341 -0
- localharness/autoresearch/sampler.py +98 -0
- localharness/autoresearch/sentinel.py +300 -0
- localharness/bench/__init__.py +1 -0
- localharness/bench/aggregator.py +227 -0
- localharness/bench/compare.py +347 -0
- localharness/bench/config.py +113 -0
- localharness/bench/fixtures.py +57 -0
- localharness/bench/orchestrator.py +417 -0
- localharness/bench/report.py +150 -0
- localharness/bench/runner.py +596 -0
- localharness/bench/schema.py +232 -0
- localharness/channels/__init__.py +23 -0
- localharness/channels/base.py +181 -0
- localharness/channels/discord.py +252 -0
- localharness/channels/errors.py +35 -0
- localharness/channels/terminal.py +701 -0
- localharness/cli/__init__.py +0 -0
- localharness/cli/agent_cmd.py +170 -0
- localharness/cli/app.py +81 -0
- localharness/cli/autoresearch_cmd.py +750 -0
- localharness/cli/bench_cmd.py +226 -0
- localharness/cli/components_cmd.py +420 -0
- localharness/cli/config_cmd.py +94 -0
- localharness/cli/doctor_cmd.py +329 -0
- localharness/cli/experiment_cmd.py +146 -0
- localharness/cli/init_cmd.py +433 -0
- localharness/cli/model_cmd.py +170 -0
- localharness/cli/model_ops.py +206 -0
- localharness/cli/propose_cmd.py +257 -0
- localharness/cli/repl.py +670 -0
- localharness/cli/report_cmd.py +605 -0
- localharness/cli/session_accumulator.py +130 -0
- localharness/cli/start_cmd.py +1042 -0
- localharness/cli/ui.py +41 -0
- localharness/cli/validate_cmd.py +131 -0
- localharness/config/__init__.py +0 -0
- localharness/config/defaults.py +28 -0
- localharness/config/loader.py +531 -0
- localharness/config/migrate.py +116 -0
- localharness/config/models.py +1599 -0
- localharness/config/overlay.py +95 -0
- localharness/config/paths.py +54 -0
- localharness/core/__init__.py +56 -0
- localharness/core/bus.py +310 -0
- localharness/core/events.py +519 -0
- localharness/core/reduce.py +69 -0
- localharness/core/types.py +24 -0
- localharness/memory/__init__.py +26 -0
- localharness/memory/chapter_writer.py +700 -0
- localharness/memory/clustering.py +416 -0
- localharness/memory/consolidation.py +841 -0
- localharness/memory/discovery.py +268 -0
- localharness/memory/embeddings.py +89 -0
- localharness/memory/errors.py +47 -0
- localharness/memory/gate.py +216 -0
- localharness/memory/hierarchy.py +161 -0
- localharness/memory/history.py +92 -0
- localharness/memory/idle_llm.py +173 -0
- localharness/memory/markdown.py +181 -0
- localharness/memory/mining.py +861 -0
- localharness/memory/predictive_gate.py +163 -0
- localharness/memory/predictive_write_gate.py +293 -0
- localharness/memory/reconciliation.py +257 -0
- localharness/memory/sqlite.py +2458 -0
- localharness/memory/tag_classify.py +100 -0
- localharness/memory/user_signals.py +186 -0
- localharness/orchestrator/__init__.py +1 -0
- localharness/orchestrator/cards.py +237 -0
- localharness/orchestrator/router.py +48 -0
- localharness/orchestrator/workflow.py +285 -0
- localharness/plugins/__init__.py +1 -0
- localharness/plugins/loader.py +164 -0
- localharness/provider/__init__.py +29 -0
- localharness/provider/client.py +803 -0
- localharness/provider/detector.py +195 -0
- localharness/provider/fn_call.py +388 -0
- localharness/provider/refarch.py +68 -0
- localharness/provider/server.py +250 -0
- localharness/registry/__init__.py +26 -0
- localharness/registry/catalogue.py +223 -0
- localharness/registry/coerce.py +78 -0
- localharness/registry/paths.py +86 -0
- localharness/tools/__init__.py +20 -0
- localharness/tools/base.py +144 -0
- localharness/tools/builtin/__init__.py +64 -0
- localharness/tools/builtin/agent_tool.py +100 -0
- localharness/tools/builtin/bash_tool.py +102 -0
- localharness/tools/builtin/chunk_tool.py +102 -0
- localharness/tools/builtin/cruncher_exec.py +165 -0
- localharness/tools/builtin/edit_tool.py +90 -0
- localharness/tools/builtin/glob_tool.py +74 -0
- localharness/tools/builtin/grep_tool.py +202 -0
- localharness/tools/builtin/load_document_tool.py +71 -0
- localharness/tools/builtin/memory_tools.py +318 -0
- localharness/tools/builtin/paths.py +24 -0
- localharness/tools/builtin/python_tool.py +67 -0
- localharness/tools/builtin/read_tool.py +65 -0
- localharness/tools/builtin/tool_result_get_tool.py +45 -0
- localharness/tools/builtin/web_tool.py +340 -0
- localharness/tools/builtin/write_tool.py +97 -0
- localharness/tools/capabilities.py +113 -0
- localharness/tools/hooks.py +192 -0
- localharness/tools/mcp.py +321 -0
- localharness/tools/registry.py +433 -0
- localharness-0.9.9.dist-info/METADATA +197 -0
- localharness-0.9.9.dist-info/RECORD +123 -0
- localharness-0.9.9.dist-info/WHEEL +4 -0
- localharness-0.9.9.dist-info/entry_points.txt +2 -0
- localharness-0.9.9.dist-info/licenses/LICENSE +21 -0
localharness/__init__.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""Agent package: AgentLoop, Session, guardrail components, ContextManager, PermissionEvaluator."""
|
|
2
|
+
from localharness.agent.loop import (
|
|
3
|
+
AgentLoop,
|
|
4
|
+
Session,
|
|
5
|
+
StuckDetector,
|
|
6
|
+
StuckState,
|
|
7
|
+
BudgetTracker,
|
|
8
|
+
BudgetViolation,
|
|
9
|
+
KillWatcher,
|
|
10
|
+
StepResult,
|
|
11
|
+
)
|
|
12
|
+
from localharness.agent.context import ContextManager
|
|
13
|
+
from localharness.agent.permissions import PermissionEvaluator, PermissionResult
|
|
14
|
+
|
|
15
|
+
__all__ = [
|
|
16
|
+
"AgentLoop",
|
|
17
|
+
"Session",
|
|
18
|
+
"StuckDetector",
|
|
19
|
+
"StuckState",
|
|
20
|
+
"BudgetTracker",
|
|
21
|
+
"BudgetViolation",
|
|
22
|
+
"KillWatcher",
|
|
23
|
+
"StepResult",
|
|
24
|
+
"ContextManager",
|
|
25
|
+
"PermissionEvaluator",
|
|
26
|
+
"PermissionResult",
|
|
27
|
+
]
|