build(coding-agent): embedded assets into binary to eliminate runtime reads

- Embedded assets (themes, templates, agents, commands) directly into binary at compile time using Bun imports.
- Removed runtime filesystem reads for bundled assets in favor of static build-time imports.
- Simplified build scripts by removing copy-assets steps and compiling directly from TypeScript source.
- Updated publish workflow to use bun publish with NPM_CONFIG_TOKEN environment variable.
- Added TypeScript declarations for importing .md, .css, .html, and .js files as text strings.
This commit is contained in:
can1357
2026-01-03 13:48:40 +01:00
parent d657e2cf04
commit a6715fb8f0
14 changed files with 140 additions and 161 deletions
+3 -3
View File
@@ -97,14 +97,14 @@ jobs:
- name: Publish packages to npm
if: ${{ !inputs.skip_npm }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
for pkg in packages/*/; do
pkg_name=$(basename "$pkg")
echo "Publishing $pkg_name..."
output=$(cd "$pkg" && npm publish --access public --provenance 2>&1) && echo "$output" && continue
output=$(cd "$pkg" && bun publish --access public 2>&1) && echo "$output" && continue
echo "$output"
if echo "$output" | grep -q "previously published\|cannot publish over"; then
if echo "$output" | grep -q "previously published\|cannot publish over\|You cannot publish over"; then
echo "✓ Already published, skipping"
else
echo "✗ Failed to publish $pkg_name"