refactor: apply minimal tfcode branding

- Rename packages/opencode → packages/tfcode (directory only)
- Rename bin/opencode → bin/tfcode (CLI binary)
- Rename .opencode → .tfcode (config directory)
- Update package.json name and bin field
- Update config directory path references (.tfcode)
- Keep internal code references as 'opencode' for easy upstream sync
- Keep @opencode-ai/* workspace package names

This minimal branding approach allows clean merges from upstream
opencode repository while providing tfcode branding for users.
This commit is contained in:
Gab 2026-03-24 13:19:59 +11:00
parent 8bcbd40e9b
commit a8b73fd754
608 changed files with 26 additions and 32 deletions

View File

@ -1,6 +0,0 @@
node_modules
plans
package.json
bun.lock
.gitignore
package-lock.json

View File

@ -6,7 +6,7 @@
"type": "module", "type": "module",
"packageManager": "bun@1.3.11", "packageManager": "bun@1.3.11",
"scripts": { "scripts": {
"dev": "bun run --cwd packages/opencode --conditions=browser src/index.ts", "dev": "bun run --cwd packages/tfcode --conditions=browser src/index.ts",
"dev:desktop": "bun --cwd packages/desktop tauri dev", "dev:desktop": "bun --cwd packages/desktop tauri dev",
"dev:web": "bun --cwd packages/app dev", "dev:web": "bun --cwd packages/app dev",
"dev:console": "ulimit -n 10240 2>/dev/null; bun run --cwd packages/console/app dev", "dev:console": "ulimit -n 10240 2>/dev/null; bun run --cwd packages/console/app dev",

View File

@ -26,7 +26,7 @@ const scriptPath = fs.realpathSync(__filename)
const scriptDir = path.dirname(scriptPath) const scriptDir = path.dirname(scriptPath)
// //
const cached = path.join(scriptDir, ".opencode") const cached = path.join(scriptDir, ".tfcode")
if (fs.existsSync(cached)) { if (fs.existsSync(cached)) {
run(cached) run(cached)
} }

View File

@ -1,7 +1,7 @@
{ {
"$schema": "https://json.schemastore.org/package.json", "$schema": "https://json.schemastore.org/package.json",
"version": "1.3.0", "version": "1.3.0",
"name": "opencode", "name": "tfcode",
"type": "module", "type": "module",
"license": "MIT", "license": "MIT",
"private": true, "private": true,
@ -20,7 +20,7 @@
"db": "bun drizzle-kit" "db": "bun drizzle-kit"
}, },
"bin": { "bin": {
"opencode": "./bin/opencode" "tfcode": "./bin/tfcode"
}, },
"randomField": "this-is-a-random-value-12345", "randomField": "this-is-a-random-value-12345",
"exports": { "exports": {

View File

@ -104,7 +104,7 @@ export namespace Agent {
}, },
edit: { edit: {
"*": "deny", "*": "deny",
[path.join(".opencode", "plans", "*.md")]: "allow", [path.join(".tfcode", "plans", "*.md")]: "allow",
[path.relative(Instance.worktree, path.join(Global.Path.data, path.join("plans", "*.md")))]: "allow", [path.relative(Instance.worktree, path.join(Global.Path.data, path.join("plans", "*.md")))]: "allow",
}, },
}), }),

View File

@ -99,7 +99,7 @@ const AgentCreateCommand = cmd({
scope = scopeResult scope = scopeResult
} }
targetPath = path.join( targetPath = path.join(
scope === "global" ? Global.Path.config : path.join(Instance.worktree, ".opencode"), scope === "global" ? Global.Path.config : path.join(Instance.worktree, ".tfcode"),
"agent", "agent",
) )
} }

Some files were not shown because too many files have changed in this diff Show More