nerve create sense: scaffold TypeScript + esbuild bundle instead of raw .js #225
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Following #224, senses now use TypeScript source + esbuild bundle (matching the workflow convention). But
nerve create sensestill scaffolds a rawindex.js.Tasks
1. Update
packages/cli/src/commands/create.tsbuildSenseIndexJs()→ rename tobuildSenseIndexTs(), output TypeScript with typessrc/index.tsinstead ofindex.jsbuildSenseSchemaTs()→ write tosrc/schema.tsinstead ofschema.tsbuildSensePackageJson()that generates:pnpm install && pnpm buildin the sense directorymigrations/at sense root (unchanged)2. Update
packages/skills/nerve-dev/SKILL.mdsrc/index.ts,src/schema.ts,package.jsonindex.jsat root is the esbuild bundle output, not hand-written3. Update tests
packages/cli/src/__tests__/create-sense.test.ts— verify new structurepackages/cli/src/__tests__/e2e-create.test.ts— if sense-related, updateReference
See nerve-workspace senses for the target pattern: https://git.shazhou.work/xiaoju/nerve-workspace/src/branch/master/senses/linux-system-health/