apigrip 0.1.0 → 0.2.1
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/client/dist/index.html
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
if (t) document.documentElement.setAttribute('data-theme', t);
|
|
11
11
|
} catch (e) {}
|
|
12
12
|
</script>
|
|
13
|
-
<script type="module" crossorigin src="/assets/index-
|
|
13
|
+
<script type="module" crossorigin src="/assets/index-C7v85lM6.js"></script>
|
|
14
14
|
<link rel="stylesheet" crossorigin href="/assets/index-kzeRjfI8.css">
|
|
15
15
|
</head>
|
|
16
16
|
<body>
|
package/package.json
CHANGED
package/server/routes/project.js
CHANGED
|
@@ -2,6 +2,7 @@ import { Router } from 'express';
|
|
|
2
2
|
import { getGitInfo } from '../../core/git-info.js';
|
|
3
3
|
import { parseSpec } from '../../core/spec-parser.js';
|
|
4
4
|
import { discoverSpec } from '../../core/spec-discovery.js';
|
|
5
|
+
import { addProject } from '../../core/projects-store.js';
|
|
5
6
|
import { broadcast } from './events.js';
|
|
6
7
|
import path from 'path';
|
|
7
8
|
import fs from 'fs';
|
|
@@ -62,6 +63,9 @@ export function createProjectRoutes(state) {
|
|
|
62
63
|
// Switch project
|
|
63
64
|
state.projectDir = newPath;
|
|
64
65
|
|
|
66
|
+
// Auto-bookmark the project
|
|
67
|
+
try { addProject(newPath); } catch { /* already bookmarked or invalid — ignore */ }
|
|
68
|
+
|
|
65
69
|
// Discover and parse spec
|
|
66
70
|
const specResult = await discoverSpec(newPath);
|
|
67
71
|
state.specPath = specResult?.specPath || null;
|