myrlin-workbook 0.9.24 → 0.9.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/logs/server.pid +1 -1
- package/package.json +1 -1
- package/src/web/server.js +4 -1
package/logs/server.pid
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
44496
|
package/package.json
CHANGED
package/src/web/server.js
CHANGED
|
@@ -5201,7 +5201,10 @@ app.post('/api/pty/:sessionId/upload-image',
|
|
|
5201
5201
|
}
|
|
5202
5202
|
|
|
5203
5203
|
const safeName = `${Date.now()}-${crypto.randomBytes(4).toString('hex')}${ext}`;
|
|
5204
|
-
|
|
5204
|
+
// Save uploads to the data dir (~/.myrlin/uploads/) so paths are stable
|
|
5205
|
+
// across npx runs and accessible to Claude Code.
|
|
5206
|
+
const { getDataDir } = require('../utils/data-dir');
|
|
5207
|
+
const dir = path.join(getDataDir(), 'uploads', sessionId);
|
|
5205
5208
|
fs.mkdirSync(dir, { recursive: true });
|
|
5206
5209
|
|
|
5207
5210
|
const filePath = path.join(dir, safeName);
|