feat: add build system, stubs, and npm packaging — openclaude is now runnable

- package.json with all 70+ dependencies
- Bun build script with feature flag shims, native module stubs, otel externals
- Stubs for ~15 missing source files (snapshot gaps)
- tsconfig.json for TypeScript
- bin/openclaude entry point
- Builds to single 19MB dist/cli.mjs
- Verified: --version and --help work

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
did:key:z6MkqDnb7Siv3Cwj7pGJq4T5EsUisECqR8KpnDLwcaZq5TPr
2026-04-01 02:36:07 +08:00
parent fd108243eb
commit 3e652cafdf
30 changed files with 1988 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
// Stub
export default null
export const REPLTool = null

View File

@@ -0,0 +1,3 @@
// Stub
export default null
export const SuggestBackgroundPRTool = null

View File

@@ -0,0 +1,2 @@
// Stub — TungstenTool not included in source snapshot (internal tool)
export const TungstenLiveMonitor = null

View File

@@ -0,0 +1,2 @@
// Stub
export const TungstenTool = null

View File

@@ -0,0 +1,3 @@
// Stub
export default null
export const VerifyPlanExecutionTool = null

View File

@@ -0,0 +1,2 @@
// Stub — WorkflowTool not included in source snapshot
export const WORKFLOW_TOOL_NAME = 'WorkflowTool'