tweek 0.3.1__py3-none-any.whl → 0.4.0__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.
- tweek/__init__.py +2 -2
- tweek/audit.py +2 -2
- tweek/cli.py +78 -6605
- tweek/cli_config.py +643 -0
- tweek/cli_configure.py +413 -0
- tweek/cli_core.py +718 -0
- tweek/cli_dry_run.py +390 -0
- tweek/cli_helpers.py +316 -0
- tweek/cli_install.py +1666 -0
- tweek/cli_logs.py +301 -0
- tweek/cli_mcp.py +148 -0
- tweek/cli_memory.py +343 -0
- tweek/cli_plugins.py +748 -0
- tweek/cli_protect.py +564 -0
- tweek/cli_proxy.py +405 -0
- tweek/cli_security.py +236 -0
- tweek/cli_skills.py +289 -0
- tweek/cli_uninstall.py +551 -0
- tweek/cli_vault.py +313 -0
- tweek/config/allowed_dirs.yaml +16 -17
- tweek/config/families.yaml +4 -1
- tweek/config/manager.py +17 -0
- tweek/config/patterns.yaml +29 -5
- tweek/config/templates/config.yaml.template +212 -0
- tweek/config/templates/env.template +45 -0
- tweek/config/templates/overrides.yaml.template +121 -0
- tweek/config/templates/tweek.yaml.template +20 -0
- tweek/config/templates.py +136 -0
- tweek/config/tiers.yaml +5 -4
- tweek/diagnostics.py +112 -32
- tweek/hooks/overrides.py +4 -0
- tweek/hooks/post_tool_use.py +46 -1
- tweek/hooks/pre_tool_use.py +149 -49
- tweek/integrations/openclaw.py +84 -0
- tweek/licensing.py +1 -1
- tweek/mcp/__init__.py +7 -9
- tweek/mcp/clients/chatgpt.py +2 -2
- tweek/mcp/clients/claude_desktop.py +2 -2
- tweek/mcp/clients/gemini.py +2 -2
- tweek/mcp/proxy.py +165 -1
- tweek/memory/provenance.py +438 -0
- tweek/memory/queries.py +2 -0
- tweek/memory/safety.py +23 -4
- tweek/memory/schemas.py +1 -0
- tweek/memory/store.py +101 -71
- tweek/plugins/screening/heuristic_scorer.py +1 -1
- tweek/security/integrity.py +77 -0
- tweek/security/llm_reviewer.py +162 -68
- tweek/security/local_reviewer.py +44 -2
- tweek/security/model_registry.py +73 -7
- tweek/skill_template/overrides-reference.md +1 -1
- tweek/skills/context.py +221 -0
- tweek/skills/scanner.py +2 -2
- {tweek-0.3.1.dist-info → tweek-0.4.0.dist-info}/METADATA +8 -7
- {tweek-0.3.1.dist-info → tweek-0.4.0.dist-info}/RECORD +60 -38
- tweek/mcp/server.py +0 -320
- {tweek-0.3.1.dist-info → tweek-0.4.0.dist-info}/WHEEL +0 -0
- {tweek-0.3.1.dist-info → tweek-0.4.0.dist-info}/entry_points.txt +0 -0
- {tweek-0.3.1.dist-info → tweek-0.4.0.dist-info}/licenses/LICENSE +0 -0
- {tweek-0.3.1.dist-info → tweek-0.4.0.dist-info}/licenses/NOTICE +0 -0
- {tweek-0.3.1.dist-info → tweek-0.4.0.dist-info}/top_level.txt +0 -0
tweek/__init__.py
CHANGED
|
@@ -5,12 +5,12 @@ GAH! Because paranoia is a feature, not a bug.
|
|
|
5
5
|
|
|
6
6
|
Tweek provides:
|
|
7
7
|
- Credential vaulting via macOS Keychain
|
|
8
|
-
-
|
|
8
|
+
- Dry-run isolation via sandbox-exec
|
|
9
9
|
- Speculative execution (preview-then-execute)
|
|
10
10
|
- Per-skill/per-tool security policies
|
|
11
11
|
"""
|
|
12
12
|
|
|
13
|
-
__version__ = "0.
|
|
13
|
+
__version__ = "0.4.0"
|
|
14
14
|
__author__ = "Tommy Mancino"
|
|
15
15
|
|
|
16
16
|
# "TOO MUCH PRESSURE!" - Tweek Tweak
|
tweek/audit.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Tweek Skill Audit — Security analysis for skill files and tool descriptions.
|
|
3
3
|
|
|
4
4
|
Reads skill content, detects language, translates non-English content,
|
|
5
|
-
and runs the full
|
|
5
|
+
and runs the full 262-pattern regex analysis + LLM semantic review.
|
|
6
6
|
Designed for one-time evaluation of skills before installation.
|
|
7
7
|
"""
|
|
8
8
|
|
|
@@ -173,7 +173,7 @@ def audit_content(
|
|
|
173
173
|
except Exception:
|
|
174
174
|
pass
|
|
175
175
|
|
|
176
|
-
# Step 3: Pattern matching (all
|
|
176
|
+
# Step 3: Pattern matching (all 262 patterns against English content)
|
|
177
177
|
try:
|
|
178
178
|
from tweek.hooks.pre_tool_use import PatternMatcher
|
|
179
179
|
|