opencode-studio-server 1.3.3 → 1.3.5
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/index.js +1 -1
- package/package.json +1 -1
- package/server.live.err.log +0 -0
- package/server.live.log +1 -0
package/index.js
CHANGED
|
@@ -1626,7 +1626,7 @@ app.get('/api/presets', (req, res) => {
|
|
|
1626
1626
|
app.post('/api/presets', (req, res) => {
|
|
1627
1627
|
const { name, description, config } = req.body;
|
|
1628
1628
|
const studio = loadStudioConfig();
|
|
1629
|
-
const id = crypto.randomUUID();
|
|
1629
|
+
const id = crypto.randomUUID ? crypto.randomUUID() : crypto.randomBytes(16).toString('hex');
|
|
1630
1630
|
const preset = { id, name, description, config };
|
|
1631
1631
|
studio.presets = studio.presets || [];
|
|
1632
1632
|
studio.presets.push(preset);
|
package/package.json
CHANGED
|
File without changes
|
package/server.live.log
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Server running at http://localhost:3001
|