Repository navigation
Commit 8875a7c
bcode
phase-h step 5: skills + embed; delete vendored Python harness
- packages/bcode-browser/skills/ — browsercode-owned. BROWSER.md (the
agent's prompt for browser_execute, centered on the no-magic /
workspace-as-plain-code model) + interaction-skills/*.md (verbatim
initial copy from browser-harness-js@95b7a22a; ours after).
- packages/bcode-browser/script/embed-skills.ts — smaller cousin of the
retired embed-harness.ts. Walks skills/, emits bcode-skills.gen.ts
with file map + content-hash buildHash sentinel.
- packages/bcode-browser/src/skills.ts — runtime resolver. Dev: in-tree
path. Compiled: extracts to <dataDir>/skills/ once per build hash;
baseline-overwrite (no agent-editable surface; the agent's editable
surface is per-project <projectDir>/.bcode/agent-workspace/).
- packages/opencode/script/build.ts — swap createEmbeddedHarnessBundle
for createEmbeddedSkillsBundle; rename bcode-harness.gen.ts ->
bcode-skills.gen.ts in the Bun.build files map and entrypoints.
- packages/opencode/src/agent/agent.ts — drop harnessGlob/harnessArchive*
(already dropped in step 2); add browserSkillsGlob pointing at
Skills.skillsDir(Global.Path.data).
- packages/opencode/src/tool/browser-execute.{ts,txt} — substitute
{{SKILLS_DIR}} at make-time; prompt points at <skillsDir>/BROWSER.md
and <skillsDir>/interaction-skills/.
- packages/bcode-browser/{README.md,src/index.ts} — refreshed to reflect
the new contents; harness column gone.
- DELETE packages/bcode-browser/harness/ entirely (~3400 LOC; the
largest single deletion of the port). Net hand-written code drop from
this step alone is ~-2000 LOC even after adding ~600 LOC of TS for
cdp/, browser-execute.ts, cloud-browser.ts, skills.ts, session-store.ts,
embed-skills.ts.
- DELETE harness-sync.md (retired with the harness vendoring).
- DELETE script/check-harness-diff.sh; trim harness branch from
script/check-upstream.sh.
- UPSTREAM.md retitled to track only anomalyco/opencode; old harness
sync log preserved as historical archaeology.
- memory side: created memory/browsercode/harness_watchlist.md (Phase H
hard rule #2 mechanism — patterns to track for possible porting later,
no sync cadence).
Typecheck clean across all browsercode packages. workspace-import
smoke tests still pass.1 parent 13d028a commit 8875a7c
79 files changed
Lines changed: 1497 additions & 4895 deletions
File tree
- packages
- bcode-browser
- harness
- .github
- ISSUE_TEMPLATE
- agent-workspace
- docs
- interaction-skills
- src/browser_harness
- tests
- integration
- unit
- script
- skills
- interaction-skills
- src
- opencode
- script
- src
- agent
- tool
- script
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | | - | |
| 7 | + | |
9 | 8 | | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | | - | |
| 56 | + | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
101 | | - | |
| 100 | + | |
102 | 101 | | |
103 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 20 | + | |
19 | 21 | | |
20 | | - | |
| 22 | + | |
Lines changed: 0 additions & 49 deletions
This file was deleted.
Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 0 additions & 37 deletions
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments