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.
Files changed (62) hide show
  1. {blamcode-0.4.2 → blamcode-0.4.4}/PKG-INFO +1 -1
  2. {blamcode-0.4.2 → blamcode-0.4.4}/blamcode.egg-info/PKG-INFO +1 -1
  3. {blamcode-0.4.2 → blamcode-0.4.4}/pyproject.toml +1 -1
  4. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/__init__.py +1 -1
  5. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/opencode.json +52 -52
  6. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/scripts/blamcode +15 -5
  7. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/scripts/patch-brand.py +20 -19
  8. {blamcode-0.4.2 → blamcode-0.4.4}/LICENSE +0 -0
  9. {blamcode-0.4.2 → blamcode-0.4.4}/README.md +0 -0
  10. {blamcode-0.4.2 → blamcode-0.4.4}/blamcode.egg-info/SOURCES.txt +0 -0
  11. {blamcode-0.4.2 → blamcode-0.4.4}/blamcode.egg-info/dependency_links.txt +0 -0
  12. {blamcode-0.4.2 → blamcode-0.4.4}/blamcode.egg-info/entry_points.txt +0 -0
  13. {blamcode-0.4.2 → blamcode-0.4.4}/blamcode.egg-info/top_level.txt +0 -0
  14. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/cli.py +0 -0
  15. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/README.md +0 -0
  16. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/agent/build.md +0 -0
  17. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/agent/debugger.md +0 -0
  18. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/agent/designer.md +0 -0
  19. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/agent/vision.md +0 -0
  20. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/agent/writer.md +0 -0
  21. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/command/ask.md +0 -0
  22. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/command/blam.md +0 -0
  23. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/command/explore.md +0 -0
  24. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/command/fix.md +0 -0
  25. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/command/open.md +0 -0
  26. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/command/review.md +0 -0
  27. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/themes/bangladeshi.json +0 -0
  28. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/themes/blamcode.json +0 -0
  29. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/config/tui.json +0 -0
  30. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/install.sh +0 -0
  31. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/scripts/__pycache__/patch-brand.cpython-312.pyc +0 -0
  32. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/scripts/blamcode-browser +0 -0
  33. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/scripts/blamcode-menu +0 -0
  34. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/scripts/blamcode-uninstall +0 -0
  35. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/scripts/blamcode-vision +0 -0
  36. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/scripts/oc-settings.sh +0 -0
  37. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/android-app/SKILL.md +0 -0
  38. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/api-integration/SKILL.md +0 -0
  39. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/bash-cli-expert/SKILL.md +0 -0
  40. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/bot-development/SKILL.md +0 -0
  41. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/clean-code-performance/SKILL.md +0 -0
  42. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/database/SKILL.md +0 -0
  43. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/debugging-fixes/SKILL.md +0 -0
  44. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/deploy-hosting/SKILL.md +0 -0
  45. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/docker/SKILL.md +0 -0
  46. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/firebase-supabase/SKILL.md +0 -0
  47. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/git-workflow/SKILL.md +0 -0
  48. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/lets-scroll/SKILL.md +0 -0
  49. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/lets-scroll/references/index-template.html +0 -0
  50. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/lets-scroll/references/knockout.py +0 -0
  51. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/lets-scroll/references/pipeline.md +0 -0
  52. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/lets-scroll/references/prompts.md +0 -0
  53. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/lets-scroll/references/scrub-engine.js +0 -0
  54. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/project-structure/SKILL.md +0 -0
  55. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/python-automation/SKILL.md +0 -0
  56. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/react-next-best-practices/SKILL.md +0 -0
  57. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/security-review/SKILL.md +0 -0
  58. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/seo-basics/SKILL.md +0 -0
  59. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/testing/SKILL.md +0 -0
  60. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/ui-ux-responsive/SKILL.md +0 -0
  61. {blamcode-0.4.2 → blamcode-0.4.4}/python/blamcode/layer/skills/website-builder/SKILL.md +0 -0
  62. {blamcode-0.4.2 → blamcode-0.4.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: blamcode
3
- Version: 0.4.2
3
+ Version: 0.4.4
4
4
  Summary: BLAMCODE — AI coding CLI for Termux. Your app, BLAM, done!
5
5
  Author: zyvo9
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: blamcode
3
- Version: 0.4.2
3
+ Version: 0.4.4
4
4
  Summary: BLAMCODE — AI coding CLI for Termux. Your app, BLAM, done!
5
5
  Author: zyvo9
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "blamcode"
7
- version = "0.4.2"
7
+ version = "0.4.4"
8
8
  description = "BLAMCODE — AI coding CLI for Termux. Your app, BLAM, done!"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -6,4 +6,4 @@ hands over to the real installer (install.sh) which does everything
6
6
  else (core engine, deps, single-line live progress).
7
7
  """
8
8
 
9
- __version__ = "0.4.2"
9
+ __version__ = "0.4.4"
@@ -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": "BlamCode (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
- }
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 || true
301
- cd "$SDIR"
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
- (b'Request is not supported by this version of OpenCode Server (Server responded with text/html)',
111
- b'Request is not supported by this version of BLAMCODE Server (Server responded with text/html)'),
112
- # provider / model labels
113
- (b'name:"OpenCode Zen"', b'name:"BLAMCODE Zen"'),
114
- (b'name:"OpenCode Go"', b'name:"BLAMCODE Go"'),
115
- (b'name:"OpenCode Default"', b'name:"BLAMCODE Default"'),
116
- (b'label:"OpenCode Login"', b'label:"BLAMCODE Login"'),
117
- # upgrade / connect dialogs
118
- (b' and enable OpenCode Go', b' and enable BLAMCODE Go'),
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 Zen gives you access to all the best coding models at the cheapest prices with a single API key.'),
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'BLAMCODE Go is a $10 per month subscription that provides reliable access to popular open coding models with generous usage limits.'),
123
- (b'Subscribe to OpenCode Go for reliable access to the best open-source models, starting at $5/month.',
124
- b'Subscribe to BLAMCODE Go for reliable access to the best open-source models, starting at $5/month.'),
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'Use {highlight}/connect{/highlight} with OpenCode Zen for curated, tested models',
127
- b'Use {highlight}/connect{/highlight} with BLAMCODE Zen for curated, tested models'),
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