mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 13:54:01 +00:00
2.4 KiB
2.4 KiB
tfcode Progress Summary
Goal
Build and deploy tfcode - ToothFairyAI's official AI coding agent, a fork of opencode.
Completed Tasks
- ✅ Implemented ToothFairyAI branding (logo, colors, strings)
- ✅ Created ToothFairyAI provider with dynamic model fetching
- ✅ Synced tools/agents/skills from ToothFairyAI workspace
- ✅ Filtered models to only
deploymentType: "serverless" - ✅ Implemented the
/predictionsendpoint for ToothFairyAI provider - ✅ Added
tfcode setupcommand to persist credentials - ✅ Fixed npm installation flow (v1.0.4)
- Binary now included in main npm package
- Postinstall script checks if binary exists before downloading
- ESM-compatible module resolution for npm fallback
- Wrapper script fixed to look for binary in correct location
- ✅ Fixed ToothFairyAI model support (v1.0.5)
- Disabled
thinkingparameters for TF models (API doesn't support yet) - Disabled auto-update (managed via npm instead)
- Updated
upgradecommand to point to npm - Tested with
mysticamodel - working!
- Disabled
Current Status
Working: npm installation and ToothFairyAI models are fully functional.
npm install -g @toothfairyai/tfcode@latest
Version History
- 1.0.5: Fixed ToothFairyAI model support, disabled auto-update
- 1.0.4: Fixed npm installation flow, binary included in main package
- 1.0.3: Initial npm publication (broken installation)
Key Fixes
v1.0.5 Changes
- Provider transform: Added early return for
@toothfairyai/sdkto prevent sendingthinkingparameters - Auto-update: Hardcoded
OPENCODE_DISABLE_AUTOUPDATE = true - Upgrade command: Now shows npm instructions instead of attempting self-update
v1.0.4 Changes
- Postinstall script: Fixed ESM module resolution, early return if binary exists
- Publish script: Copy current platform binary to main package
- Wrapper script: Fixed binary path lookup
Testing
# Install
npm install -g @toothfairyai/tfcode@latest
# Set credentials
export TF_WORKSPACE_ID="your-workspace-id"
export TF_API_KEY="your-api-key"
export TF_REGION="dev" # or au, eu, us
# Test
tfcode run "say hello" --model toothfairyai/mystica
Next Steps
- Build all platform binaries (12 targets)
- Test on different platforms (currently only darwin-arm64)
- Document available models (mystica, mystica_15, etc.)