@yahyahammad/venastine 0.1.0 → 0.3.8
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.
- package/.env.example +19 -14
- package/CONFIG_ARCHITECTURE.md +2002 -0
- package/NOTICE +1 -1
- package/README.md +249 -93
- package/agents/builtin/build.md +73 -0
- package/agents/builtin/general.md +80 -0
- package/agents/builtin/plan.md +23 -5
- package/agents/builtin/test.md +65 -0
- package/agents/builtin/writer.md +67 -0
- package/agents/manager.py +261 -195
- package/agents/subagent_tool.py +280 -23
- package/agents/tui_commands.py +31 -21
- package/bin/venastine.mjs +528 -382
- package/bin/venastine.py +71 -0
- package/cli_commands.py +835 -0
- package/config.py +95 -1198
- package/config.yaml +1090 -0
- package/config_edit.py +1301 -0
- package/config_schema.py +966 -0
- package/config_update.py +749 -0
- package/core/agent_activity.py +256 -0
- package/core/ansi.py +452 -0
- package/core/approval.py +27 -5
- package/core/call_view.py +364 -0
- package/core/cancel.py +121 -0
- package/core/chatgpt_auth.py +747 -0
- package/core/claims_view.py +107 -0
- package/core/client.py +1249 -82
- package/core/commands.py +454 -0
- package/core/compaction.py +1735 -959
- package/core/config_loader.py +516 -97
- package/core/connect.py +686 -0
- package/core/events.py +68 -6
- package/core/file_mentions.py +280 -0
- package/core/interaction.py +87 -4
- package/core/line_pattern.py +128 -0
- package/core/loop.py +2566 -1353
- package/core/memory.py +482 -370
- package/core/pipeline_models.py +23 -9
- package/core/provider_errors.py +234 -0
- package/core/reasoning/confidence_scoring.py +70 -54
- package/core/reasoning/json_retry.py +19 -1
- package/core/reasoning/orchestrator.py +232 -53
- package/core/reasoning/output_writer.py +90 -31
- package/core/reasoning/payload_validation.py +133 -7
- package/core/reasoning/pipeline_storage.py +427 -361
- package/core/reasoning/review.py +659 -615
- package/core/reasoning/scholar.py +38 -14
- package/core/reasoning/source_corpus.py +110 -4
- package/core/replay.py +315 -167
- package/core/session.py +36 -12
- package/core/session_view.py +259 -0
- package/core/session_wake.py +259 -0
- package/core/shell_sessions.py +1553 -0
- package/core/workspace_trust.py +1 -1
- package/credentials.py +308 -180
- package/database.py +82 -1
- package/{PRIVACY.md → docs/PRIVACY.md} +19 -7
- package/docs/SECURITY.md +108 -0
- package/docs/THIRD_PARTY_NOTICES.md +148 -0
- package/env_secrets.py +118 -77
- package/json_store.py +236 -16
- package/logging_setup.py +121 -11
- package/main.py +1672 -198
- package/mcp_client/client.py +257 -23
- package/mcp_client/config.py +484 -379
- package/mcp_client/registration.py +163 -2
- package/memories/manager.py +15 -0
- package/memories/tui_commands.py +21 -14
- package/package.json +303 -73
- package/project_init/config_files.py +4 -0
- package/project_init/generator.py +201 -37
- package/project_init/manifest.py +418 -406
- package/project_init/tui_commands.py +7 -4
- package/prompts/revalidate.md +1 -1
- package/prompts/revise.md +17 -15
- package/prompts/system_prompts.py +64 -10
- package/providers.json.example +94 -92
- package/pyproject.toml +149 -100
- package/requirements.txt +252 -29
- package/safety/policy_enforcement.py +1082 -682
- package/security/askpass.py +419 -0
- package/security/capability.py +37 -7
- package/security/confine.py +484 -0
- package/security/hosted.py +182 -0
- package/security/permissions.py +54 -7
- package/security/posture.py +124 -12
- package/security/protected_paths.py +198 -6
- package/security/sandbox.py +3262 -139
- package/security/secrets.py +855 -0
- package/skills/tui_commands.py +3 -4
- package/storage.py +1338 -1005
- package/tools/base.py +465 -305
- package/tools/builtin/_math_common.py +306 -16
- package/tools/builtin/_net_common.py +267 -61
- package/tools/builtin/arxiv.py +681 -223
- package/tools/builtin/ask_user.py +231 -213
- package/tools/builtin/discrete_math.py +35 -4
- package/tools/builtin/fetch_url.py +239 -21
- package/tools/builtin/file_ops.py +341 -33
- package/tools/builtin/geometry.py +184 -148
- package/tools/builtin/get_time.py +2 -2
- package/tools/builtin/linear_algebra.py +66 -23
- package/tools/builtin/load_skill.py +10 -0
- package/tools/builtin/logic.py +171 -12
- package/tools/builtin/pin.py +46 -12
- package/tools/builtin/probability_stats.py +224 -228
- package/tools/builtin/project_docs.py +80 -21
- package/tools/builtin/remember.py +21 -4
- package/tools/builtin/shell.py +586 -67
- package/tools/builtin/shell_sessions.py +613 -0
- package/tools/builtin/symbolic_math.py +80 -10
- package/tools/builtin/todo.py +5 -3
- package/tools/builtin/web_search.py +329 -151
- package/tools/context.py +23 -0
- package/tools/isolation.py +387 -314
- package/tools/registry.py +374 -29
- package/tui/app.py +5281 -397
- package/tui/app.tcss +290 -9
- package/tui/commands.py +26 -61
- package/tui/diffs.py +286 -265
- package/tui/history.py +128 -0
- package/tui/hosted_driver.py +102 -0
- package/tui/markdown.py +1329 -0
- package/tui/meters.py +364 -0
- package/tui/screens.py +346 -92
- package/tui/themes.py +599 -366
- package/tui/widgets.py +2673 -116
- package/SECURITY.md +0 -88
- package/THIRD_PARTY_NOTICES.md +0 -100
package/tools/context.py
CHANGED
|
@@ -32,11 +32,27 @@ class ToolContext:
|
|
|
32
32
|
requirement but can never remove one. See requires_approval().
|
|
33
33
|
subagent_depth: incremented by §18's spawn_subagent each time it
|
|
34
34
|
builds a child context; the nesting limit is checked against it.
|
|
35
|
+
spawn_targets: None means this layer expresses NO opinion about WHICH
|
|
36
|
+
agents may be spawned -- not "none of them", exactly as for
|
|
37
|
+
allowed_tools above. A set restricts spawn_subagent to those
|
|
38
|
+
agent names, and composes the same way: intersection, so a layer
|
|
39
|
+
can only ever narrow the roster it inherited.
|
|
40
|
+
|
|
41
|
+
SEPARATE FROM allowed_tools because they answer different
|
|
42
|
+
questions. `allowed_tools` decides whether this run may spawn AT
|
|
43
|
+
ALL; this decides who it may spawn, and the two failure modes are
|
|
44
|
+
not the same one. C6 caps a child's tools by intersecting them
|
|
45
|
+
with the parent's, which turns "a parent that should not delegate
|
|
46
|
+
this work" into "a child that quietly cannot do it" -- `plan`
|
|
47
|
+
spawning `build` returned a build with no `write` or `edit` and
|
|
48
|
+
no way for either side to tell. An agent that must not delegate
|
|
49
|
+
a kind of work should be refused, not narrowed.
|
|
35
50
|
"""
|
|
36
51
|
|
|
37
52
|
allowed_tools: Optional[set[str]] = None
|
|
38
53
|
approval_overrides: dict[str, bool] = field(default_factory=dict)
|
|
39
54
|
subagent_depth: int = 0
|
|
55
|
+
spawn_targets: Optional[set[str]] = None
|
|
40
56
|
|
|
41
57
|
|
|
42
58
|
@dataclass
|
|
@@ -84,6 +100,13 @@ class RunInfo:
|
|
|
84
100
|
# sign-off carries the SUBSET the child may use. Merging them would
|
|
85
101
|
# force a set to hold both a name and a name-plus-subset.
|
|
86
102
|
signoffs: dict = field(default_factory=dict)
|
|
103
|
+
# ROADMAP_v3 §81 (IM6). Whether an image in a tool result can reach the
|
|
104
|
+
# model in this run: the provider is marked `accepts_images` and the
|
|
105
|
+
# thread is not a research pass. Computed ONCE, by the loop, and read
|
|
106
|
+
# twice -- by the schema list, to leave `view_image` out, and by the
|
|
107
|
+
# handler, to refuse a call made anyway -- so the two cannot disagree.
|
|
108
|
+
# False by default: a RunInfo built anywhere else delivers no images.
|
|
109
|
+
images: bool = False
|
|
87
110
|
|
|
88
111
|
def remember_signoff(self, tool_name: str, subject, subset) -> None:
|
|
89
112
|
"""Record an answer so the rest of this run need not re-ask.
|