blamcode 0.4.2__tar.gz → 0.4.4__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.
- {blamcode-0.4.2 → blamcode-0.4.4}/PKG-INFO +1 -1
- {blamcode-0.4.2 → blamcode-0.4.4}/blamcode.egg-info/PKG-INFO +1 -1
- {blamcode-0.4.2 → blamcode-0.4.4}/pyproject.toml +1 -1
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/__init__.py +1 -1
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/opencode.json +52 -52
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/scripts/blamcode +15 -5
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/scripts/patch-brand.py +20 -19
- {blamcode-0.4.2 → blamcode-0.4.4}/LICENSE +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/README.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/blamcode.egg-info/SOURCES.txt +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/blamcode.egg-info/dependency_links.txt +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/blamcode.egg-info/entry_points.txt +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/blamcode.egg-info/top_level.txt +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/cli.py +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/README.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/agent/build.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/agent/debugger.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/agent/designer.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/agent/vision.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/agent/writer.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/command/ask.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/command/blam.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/command/explore.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/command/fix.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/command/open.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/command/review.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/themes/bangladeshi.json +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/themes/blamcode.json +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/tui.json +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/install.sh +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/scripts/__pycache__/patch-brand.cpython-312.pyc +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/scripts/blamcode-browser +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/scripts/blamcode-menu +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/scripts/blamcode-uninstall +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/scripts/blamcode-vision +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/scripts/oc-settings.sh +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/android-app/SKILL.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/api-integration/SKILL.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/bash-cli-expert/SKILL.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/bot-development/SKILL.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/clean-code-performance/SKILL.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/database/SKILL.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/debugging-fixes/SKILL.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/deploy-hosting/SKILL.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/docker/SKILL.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/firebase-supabase/SKILL.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/git-workflow/SKILL.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/lets-scroll/SKILL.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/lets-scroll/references/index-template.html +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/lets-scroll/references/knockout.py +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/lets-scroll/references/pipeline.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/lets-scroll/references/prompts.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/lets-scroll/references/scrub-engine.js +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/project-structure/SKILL.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/python-automation/SKILL.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/react-next-best-practices/SKILL.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/security-review/SKILL.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/seo-basics/SKILL.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/testing/SKILL.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/ui-ux-responsive/SKILL.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/website-builder/SKILL.md +0 -0
- {blamcode-0.4.2 → blamcode-0.4.4}/setup.cfg +0 -0
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opencode.ai/config.json",
|
|
3
|
-
"theme": "blamcode",
|
|
4
|
-
"username": "blamcode-dev",
|
|
5
|
-
"provider": {
|
|
6
|
-
"blamcode": {
|
|
7
|
-
"npm": "@ai-sdk/openai-compatible",
|
|
8
|
-
"name": "
|
|
9
|
-
"options": {
|
|
10
|
-
"baseURL": "https://opencode.ai/zen/v1",
|
|
11
|
-
"apiKey": "{env:OPENCODE_API_KEY}"
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"default_agent": "build",
|
|
16
|
-
"agent": {
|
|
17
|
-
"build": {
|
|
18
|
-
"temperature": 0.5,
|
|
19
|
-
"permission": {
|
|
20
|
-
"bash": "allow",
|
|
21
|
-
"edit": "allow",
|
|
22
|
-
"webfetch": "allow",
|
|
23
|
-
"websearch": "allow",
|
|
24
|
-
"external_directory": "allow",
|
|
25
|
-
"doom_loop": "allow"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"snapshot": false,
|
|
30
|
-
"autoupdate": false,
|
|
31
|
-
"share": "disabled",
|
|
32
|
-
"watcher": {
|
|
33
|
-
"ignore": [
|
|
34
|
-
"Android/**",
|
|
35
|
-
"DCIM/**",
|
|
36
|
-
"Pictures/**",
|
|
37
|
-
"Movies/**",
|
|
38
|
-
"Music/**",
|
|
39
|
-
"WhatsApp/**",
|
|
40
|
-
"Download/**",
|
|
41
|
-
"**/node_modules/**",
|
|
42
|
-
"**/.git/**"
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
"permission": {
|
|
46
|
-
"bash": "allow",
|
|
47
|
-
"edit": "allow",
|
|
48
|
-
"webfetch": "allow",
|
|
49
|
-
"websearch": "allow",
|
|
50
|
-
"external_directory": "allow",
|
|
51
|
-
"doom_loop": "allow"
|
|
52
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opencode.ai/config.json",
|
|
3
|
+
"theme": "blamcode",
|
|
4
|
+
"username": "blamcode-dev",
|
|
5
|
+
"provider": {
|
|
6
|
+
"blamcode": {
|
|
7
|
+
"npm": "@ai-sdk/openai-compatible",
|
|
8
|
+
"name": "OpenCode (Zen)",
|
|
9
|
+
"options": {
|
|
10
|
+
"baseURL": "https://opencode.ai/zen/v1",
|
|
11
|
+
"apiKey": "{env:OPENCODE_API_KEY}"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"default_agent": "build",
|
|
16
|
+
"agent": {
|
|
17
|
+
"build": {
|
|
18
|
+
"temperature": 0.5,
|
|
19
|
+
"permission": {
|
|
20
|
+
"bash": "allow",
|
|
21
|
+
"edit": "allow",
|
|
22
|
+
"webfetch": "allow",
|
|
23
|
+
"websearch": "allow",
|
|
24
|
+
"external_directory": "allow",
|
|
25
|
+
"doom_loop": "allow"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"snapshot": false,
|
|
30
|
+
"autoupdate": false,
|
|
31
|
+
"share": "disabled",
|
|
32
|
+
"watcher": {
|
|
33
|
+
"ignore": [
|
|
34
|
+
"Android/**",
|
|
35
|
+
"DCIM/**",
|
|
36
|
+
"Pictures/**",
|
|
37
|
+
"Movies/**",
|
|
38
|
+
"Music/**",
|
|
39
|
+
"WhatsApp/**",
|
|
40
|
+
"Download/**",
|
|
41
|
+
"**/node_modules/**",
|
|
42
|
+
"**/.git/**"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"permission": {
|
|
46
|
+
"bash": "allow",
|
|
47
|
+
"edit": "allow",
|
|
48
|
+
"webfetch": "allow",
|
|
49
|
+
"websearch": "allow",
|
|
50
|
+
"external_directory": "allow",
|
|
51
|
+
"doom_loop": "allow"
|
|
52
|
+
}
|
|
53
53
|
}
|
|
@@ -295,10 +295,18 @@ if [ -z "$SESSION_NAME" ]; then
|
|
|
295
295
|
;;
|
|
296
296
|
*)
|
|
297
297
|
if [ "$PWD" = "$HOME" ] || [ "$PWD" = "$SDIR_ROOT" ]; then
|
|
298
|
-
# Default dedicated folder so root is never cluttered
|
|
298
|
+
# Default dedicated folder so root is never cluttered.
|
|
299
|
+
# Storage may not be granted yet (termux-setup-storage) —
|
|
300
|
+
# mkdir/cd then fail silently, so guard and fall back to
|
|
301
|
+
# the internal-storage home instead of dying.
|
|
299
302
|
SDIR="$SDIR_ROOT/default"
|
|
300
|
-
mkdir -p "$SDIR" 2>/dev/null ||
|
|
301
|
-
|
|
303
|
+
if ! mkdir -p "$SDIR" 2>/dev/null || ! cd "$SDIR" 2>/dev/null; then
|
|
304
|
+
echo "blamcode: no /sdcard access yet — using ~/blamcode instead" >&2
|
|
305
|
+
echo " (grant storage with: termux-setup-storage — /sdcard/blamcode works next run)" >&2
|
|
306
|
+
SDIR="$HOME/blamcode/default"
|
|
307
|
+
mkdir -p "$SDIR" 2>/dev/null || true
|
|
308
|
+
cd "$SDIR" || { echo "blamcode: cannot create $SDIR" >&2; exit 1; }
|
|
309
|
+
fi
|
|
302
310
|
export OPENCODE_DEFAULT_DIR="$SDIR"
|
|
303
311
|
else
|
|
304
312
|
export OPENCODE_DEFAULT_DIR="$PWD"
|
|
@@ -313,10 +321,12 @@ else
|
|
|
313
321
|
esac
|
|
314
322
|
SDIR="$SDIR_ROOT/$SESSION_NAME"
|
|
315
323
|
mkdir -p "$SDIR" 2>/dev/null || true
|
|
316
|
-
if [ -d "$SDIR" ]; then
|
|
317
|
-
cd "$SDIR"
|
|
324
|
+
if [ -d "$SDIR" ] && cd "$SDIR" 2>/dev/null; then
|
|
318
325
|
export OPENCODE_DEFAULT_DIR="$SDIR"
|
|
319
326
|
SESSION_MODE=1
|
|
327
|
+
elif [ -d "$SDIR" ]; then
|
|
328
|
+
echo "blamcode: cannot enter $SDIR (storage access?) — run: termux-setup-storage" >&2
|
|
329
|
+
exit 1
|
|
320
330
|
else
|
|
321
331
|
echo "blamcode: could not create project folder ($SDIR)" >&2
|
|
322
332
|
exit 1
|
|
@@ -107,26 +107,27 @@ PATCHES = [
|
|
|
107
107
|
(b'This will allow the following patterns until OpenCode is restarted',
|
|
108
108
|
b'This will allow the following patterns until BLAMCODE is restarted'),
|
|
109
109
|
(b'OpenCode service failure', b'BLAMCODE service failure'),
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
# provider
|
|
113
|
-
(b'name:"
|
|
114
|
-
(b'name:"
|
|
115
|
-
(b'name:"
|
|
116
|
-
(b'label:"
|
|
117
|
-
|
|
118
|
-
(b'
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
110
|
+
# RESTORE the real upstream service names on already-branded cores —
|
|
111
|
+
# the free models / Zen billing belong to OpenCode Zen, not to us;
|
|
112
|
+
# the picker must show the provider's true name
|
|
113
|
+
(b'name:"BLAMCODE Zen"', b'name:"OpenCode Zen"'),
|
|
114
|
+
(b'name:"BLAMCODE Go"', b'name:"OpenCode Go"'),
|
|
115
|
+
(b'name:"BLAMCODE Default"', b'name:"OpenCode Default"'),
|
|
116
|
+
(b'label:"BLAMCODE Login"', b'label:"OpenCode Login"'),
|
|
117
|
+
(b' and enable BLAMCODE Go', b' and enable OpenCode Go'),
|
|
118
|
+
(b'BLAMCODE Zen gives you access to all the best coding models at the cheapest prices with a single API key.',
|
|
119
|
+
b'OpenCode Zen gives you access to all the best coding models at the cheapest prices with a single API key.'),
|
|
120
|
+
(b'BLAMCODE Go is a $10 per month subscription that provides reliable access to popular open coding models with generous usage limits.',
|
|
121
|
+
b'OpenCode Go is a $10 per month subscription that provides reliable access to popular open coding models with generous usage limits.'),
|
|
122
|
+
(b'Subscribe to BLAMCODE Go for reliable access to the best open-source models, starting at $5/month.',
|
|
123
|
+
b'Subscribe to OpenCode Go for reliable access to the best open-source models, starting at $5/month.'),
|
|
124
|
+
(b'Use {highlight}/connect{/highlight} with BLAMCODE Zen for curated, tested models',
|
|
125
|
+
b'Use {highlight}/connect{/highlight} with OpenCode Zen for curated, tested models'),
|
|
126
|
+
(b'Request is not supported by this version of BLAMCODE Server (Server responded with text/html)',
|
|
127
|
+
b'Request is not supported by this version of OpenCode Server (Server responded with text/html)'),
|
|
125
128
|
# tips / menus
|
|
126
|
-
(b'
|
|
127
|
-
b'
|
|
128
|
-
(b'Run {highlight}opencode serve{/highlight} for headless API access to OpenCode',
|
|
129
|
-
b'Run {highlight}opencode serve{/highlight} for headless API access to BLAMCODE'),
|
|
129
|
+
(b'Run {highlight}opencode serve{/highlight} for headless API access to BLAMCODE',
|
|
130
|
+
b'Run {highlight}opencode serve{/highlight} for headless API access to OpenCode'),
|
|
130
131
|
(b'Create a plugin to prevent OpenCode from reading sensitive files',
|
|
131
132
|
b'Create a plugin to prevent BLAMCODE from reading sensitive files'),
|
|
132
133
|
(b'Uninstall OpenCode', b'Uninstall BLAMCODE'),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/clean-code-performance/SKILL.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/lets-scroll/references/knockout.py
RENAMED
|
File without changes
|
{blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/lets-scroll/references/pipeline.md
RENAMED
|
File without changes
|
{blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/lets-scroll/references/prompts.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/react-next-best-practices/SKILL.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|