@yahyahammad/venastine 0.2.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 +233 -94
- 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 +277 -43
- package/agents/tui_commands.py +7 -12
- 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 +158 -20
- 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 +1238 -82
- package/core/commands.py +454 -0
- package/core/compaction.py +830 -66
- 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 +1516 -440
- package/core/memory.py +120 -8
- 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 +158 -26
- 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 +1671 -199
- 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 +7 -12
- package/package.json +234 -4
- 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 +51 -2
- package/requirements.txt +252 -29
- package/safety/policy_enforcement.py +353 -17
- 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 +368 -35
- 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 +347 -30
- package/tui/app.py +4645 -438
- package/tui/app.tcss +185 -2
- package/tui/commands.py +10 -154
- package/tui/diffs.py +286 -265
- package/tui/hosted_driver.py +102 -0
- package/tui/markdown.py +60 -10
- package/tui/meters.py +103 -7
- package/tui/screens.py +346 -92
- package/tui/themes.py +59 -19
- package/tui/widgets.py +1575 -111
- package/SECURITY.md +0 -88
- package/THIRD_PARTY_NOTICES.md +0 -100
|
@@ -66,6 +66,7 @@ TOOL_SCHEMA = {
|
|
|
66
66
|
"description": "'project' (default) for facts about this "
|
|
67
67
|
"codebase; 'global' for how the user likes "
|
|
68
68
|
"to work.",
|
|
69
|
+
"default": "project",
|
|
69
70
|
},
|
|
70
71
|
"category": {
|
|
71
72
|
"type": "string",
|
|
@@ -80,6 +81,20 @@ TOOL_SCHEMA = {
|
|
|
80
81
|
_SCOPES = ("project", "global")
|
|
81
82
|
|
|
82
83
|
|
|
84
|
+
def _scope(params: dict):
|
|
85
|
+
"""The scope asked for, with an explicit null read as ABSENT (batch 190).
|
|
86
|
+
|
|
87
|
+
The ChatGPT plan's model sends each optional parameter at its declared
|
|
88
|
+
default (ROADMAP_v3 §83, the owner's live check), so the schema now
|
|
89
|
+
declares 'project'; a model that sends null instead means the same
|
|
90
|
+
thing, and refusing it cost a turn. Anything else -- an empty string
|
|
91
|
+
included -- is the caller's own answer, checked against _SCOPES and never
|
|
92
|
+
coerced (see `run`).
|
|
93
|
+
"""
|
|
94
|
+
scope = params.get("scope")
|
|
95
|
+
return "project" if scope is None else scope
|
|
96
|
+
|
|
97
|
+
|
|
83
98
|
def approval_notice(params: dict, context) -> str:
|
|
84
99
|
"""What the approval prompt shows before the write.
|
|
85
100
|
|
|
@@ -92,7 +107,7 @@ def approval_notice(params: dict, context) -> str:
|
|
|
92
107
|
"""
|
|
93
108
|
from memories.manager import manager
|
|
94
109
|
|
|
95
|
-
scope = params
|
|
110
|
+
scope = _scope(params)
|
|
96
111
|
where = ("every future conversation, in any project"
|
|
97
112
|
if scope == "global"
|
|
98
113
|
else f"future conversations in {manager.scope_path() or 'this project'}")
|
|
@@ -101,8 +116,10 @@ def approval_notice(params: dict, context) -> str:
|
|
|
101
116
|
|
|
102
117
|
def run(params: dict, memory=None) -> dict:
|
|
103
118
|
# params.get, not params[]: no provider validates tool inputs against
|
|
104
|
-
# the schema
|
|
105
|
-
#
|
|
119
|
+
# the schema. tools/base.py carries the one copy of why, under
|
|
120
|
+
# "WHAT A CALLABLE REGISTERED BELOW MAY RAISE": a handler's exception IS
|
|
121
|
+
# contained, so what this buys is an error dict the model can READ rather
|
|
122
|
+
# than the generic wrapper dispatch() would return (batch 146).
|
|
106
123
|
from memories.manager import manager
|
|
107
124
|
from storage import save_memory
|
|
108
125
|
|
|
@@ -110,7 +127,7 @@ def run(params: dict, memory=None) -> dict:
|
|
|
110
127
|
if not content:
|
|
111
128
|
return {"error": "remember requires 'content' -- the fact to save."}
|
|
112
129
|
|
|
113
|
-
scope = params
|
|
130
|
+
scope = _scope(params)
|
|
114
131
|
if scope not in _SCOPES:
|
|
115
132
|
# Not silently coerced to the default. A model asking for "global"
|
|
116
133
|
# and getting a project row would believe a preference follows the
|