lens-engine 0.1.4 → 0.1.7
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/cli.js +1 -1
- package/daemon.js +15 -0
- package/dashboard/assets/{index-OZDKUmhI.js → index-Bahbzbq2.js} +44 -44
- package/dashboard/index.html +1 -1
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -4368,7 +4368,7 @@ async function logoutCommand() {
|
|
|
4368
4368
|
}
|
|
4369
4369
|
|
|
4370
4370
|
// packages/cli/src/index.ts
|
|
4371
|
-
var program2 = new Command().name("lens").description("LENS \u2014 Local-first repo context engine").version("0.1.
|
|
4371
|
+
var program2 = new Command().name("lens").description("LENS \u2014 Local-first repo context engine").version("0.1.7");
|
|
4372
4372
|
function trackCommand(name) {
|
|
4373
4373
|
if (!isTelemetryEnabled()) return;
|
|
4374
4374
|
const BASE_URL2 = process.env.LENS_HOST ?? "http://127.0.0.1:4111";
|
package/daemon.js
CHANGED
|
@@ -34852,6 +34852,8 @@ function createApp(db, dashboardDist, initialCaps, initialPlanData) {
|
|
|
34852
34852
|
authClients.delete(ctrl);
|
|
34853
34853
|
}
|
|
34854
34854
|
}
|
|
34855
|
+
refreshQuotaCache().catch(() => {
|
|
34856
|
+
});
|
|
34855
34857
|
});
|
|
34856
34858
|
} catch {
|
|
34857
34859
|
}
|
|
@@ -35188,6 +35190,19 @@ function createApp(db, dashboardDist, initialCaps, initialPlanData) {
|
|
|
35188
35190
|
return c.json({ error: e.message }, 500);
|
|
35189
35191
|
}
|
|
35190
35192
|
});
|
|
35193
|
+
trackRoute("POST", "/api/dashboard/refresh-plan");
|
|
35194
|
+
app.post("/api/dashboard/refresh-plan", async (c) => {
|
|
35195
|
+
try {
|
|
35196
|
+
await refreshQuotaCache();
|
|
35197
|
+
return c.json({
|
|
35198
|
+
plan: quotaCache?.plan ?? "free",
|
|
35199
|
+
has_capabilities: !!caps,
|
|
35200
|
+
refreshed_at: quotaCache?.fetchedAt ?? null
|
|
35201
|
+
});
|
|
35202
|
+
} catch (e) {
|
|
35203
|
+
return c.json({ error: e.message }, 500);
|
|
35204
|
+
}
|
|
35205
|
+
});
|
|
35191
35206
|
trackRoute("GET", "/api/dashboard/routes");
|
|
35192
35207
|
app.get("/api/dashboard/routes", (c) => {
|
|
35193
35208
|
return c.json({ routes: registeredRoutes });
|