Centralize all path management via src/config/paths.ts
- Add getPaths() with workspace, scripts, ppt skin/template paths - Export getWorkspacePath(args?) helper — removes duplicate local functions and stale process.cwd()/workspace fallbacks from sqlite, pdf, excel, image, pubmed, email, audio-transcribe (7 files) - weather.ts: replace __dirname-relative scripts path with getPaths().scripts - Move ppt/ to .smallclaw/skills/presenter/ppt/; update server-v2.ts, pptx.ts, pptx_gen.py (argparse --skin-dir/--template-dir) - Fix PPT skin thumbnail serving: res.sendFile → fs.createReadStream (bypasses send module dotfiles restriction for .smallclaw/ paths) - Fix workspace default: .smallclaw/workspace (was project root workspace/) - Fix subagent paths to use SMALLCLAW_DATA_DIR env var - Fix Monaco marked module load failure: restore define.amd on DOMContentLoaded after deferred UMD libs (tone, magenta) have loaded - Add AudioContext resume on first user click (Chrome autoplay policy) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -107,7 +107,7 @@
|
||||
"ppt": {
|
||||
"engine": "python",
|
||||
"template": "business",
|
||||
"skin": "cream",
|
||||
"skin": "coral",
|
||||
"unsplash_key": "env:UNSPLASH_ACCESS_KEY",
|
||||
"pexels_key": "env:PEXELS_API_KEY",
|
||||
"pixabay_key": ""
|
||||
@@ -117,6 +117,10 @@
|
||||
"interval_minutes": 30,
|
||||
"workspace_file": "HEARTBEAT.md"
|
||||
},
|
||||
"workspace": {
|
||||
"path": "/home/kim/homeclaw/.smallclaw/workspace",
|
||||
"codeDir": "code"
|
||||
},
|
||||
"agents": [
|
||||
{
|
||||
"id": "pubmed_researcher",
|
||||
|
||||
Reference in New Issue
Block a user