opencode-studio-server 1.3.3 → 1.3.4

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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-studio-server",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "Backend server for OpenCode Studio - manages opencode configurations",
5
5
  "main": "index.js",
6
6
  "bin": {
File without changes
@@ -0,0 +1 @@
1
+ Server running at http://localhost:3001