summaryrefslogtreecommitdiffhomepage
path: root/js/OpenCode.md
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-05-28 14:16:56 -0400
committerDax Raad <[email protected]>2025-05-28 14:17:02 -0400
commit4767276a0e35deb0fd9cf44bbd7cb1157c5991f7 (patch)
tree56323bb0bffdd4bca93316907ca975ab67e18bd3 /js/OpenCode.md
parent71bab45065a2ace8ea2f59d4f4856136ffd1b157 (diff)
downloadopencode-4767276a0e35deb0fd9cf44bbd7cb1157c5991f7.tar.gz
opencode-4767276a0e35deb0fd9cf44bbd7cb1157c5991f7.zip
more
Diffstat (limited to 'js/OpenCode.md')
-rw-r--r--js/OpenCode.md27
1 files changed, 0 insertions, 27 deletions
diff --git a/js/OpenCode.md b/js/OpenCode.md
deleted file mode 100644
index 7def6f8c7..000000000
--- a/js/OpenCode.md
+++ /dev/null
@@ -1,27 +0,0 @@
-# OpenCode Context
-
-## Build/Test Commands
-
-- `bun install` - Install dependencies
-- `bun run index.ts` - Run the application
-- `bun build src/index.ts --compile --outfile ./dist/opencode` - Build executable
-- `bun test` - Run all tests
-- `bun test <pattern>` - Run specific test files
-- `bun test --test-name-pattern <regex>` - Run tests matching pattern
-
-## Code Style & Conventions
-
-- TypeScript with Bun runtime
-- ES modules (`"type": "module"`)
-- Namespace-based organization (e.g., `Tool.define`, `App.provide`)
-- Zod for schema validation and type safety
-- Async/await patterns throughout
-- Structured logging with service-based loggers (`Log.create({ service: "name" })`)
-- Tool pattern: define tools with `Tool.define()` wrapper for metadata/timing
-- Context pattern: use `Context.create()` for dependency injection
-- Import style: Node.js built-ins with `node:` prefix, relative imports with explicit extensions
-- Error handling: try/catch with structured logging
-- File organization: group by feature in `src/` with index files for exports
-- Test files: co-located in `test/` directory, use Bun's built-in test runner
-- Naming: camelCase for variables/functions, PascalCase for namespaces/types
-- **Variable declarations: Prefer `const` over `let` unless reassignment is necessary** \ No newline at end of file