@nxuss/lemma 1.33.0 β†’ 1.34.0

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.
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>lemma Dashboard - Agent Orchestration Hub</title>
8
- <script type="module" crossorigin src="/dashboard/assets/index-Dh-whqJ7.js"></script>
8
+ <script type="module" crossorigin src="/dashboard/assets/index-euG1IvQ7.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/dashboard/assets/index-Yt1H2B7F.css">
10
10
  </head>
11
11
  <body>
@@ -1 +1 @@
1
- {"version":3,"file":"lemma-proxy.d.ts","sourceRoot":"","sources":["../../../src/cli/lemma-proxy.ts"],"names":[],"mappings":";AAwcA,wBAAgB,+BAA+B,CAAC,OAAO,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CA8DvF;AAifD,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAGtD;AA6tDD,wBAAsB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CA8KhL"}
1
+ {"version":3,"file":"lemma-proxy.d.ts","sourceRoot":"","sources":["../../../src/cli/lemma-proxy.ts"],"names":[],"mappings":";AAycA,wBAAgB,+BAA+B,CAAC,OAAO,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CA8DvF;AAifD,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAGtD;AAivDD,wBAAsB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CA8KhL"}
@@ -56,6 +56,7 @@ const ProjectIdentity_1 = require("../utils/ProjectIdentity");
56
56
  const ProjectRegistry_1 = require("../proxy/ProjectRegistry");
57
57
  const ContextInjector_1 = require("../proxy/ContextInjector");
58
58
  const SavingsLedger_1 = require("../utils/SavingsLedger");
59
+ const DebuggerState_1 = require("../proxy/DebuggerState");
59
60
  const ProjectStore_1 = require("../proxy/ProjectStore");
60
61
  const gitHooks_1 = require("./gitHooks");
61
62
  const hostHooks_1 = require("./hostHooks");
@@ -1011,7 +1012,7 @@ class LemmaServer {
1011
1012
  setupRoutes() {
1012
1013
  this.app.get('/health', async (req, res) => {
1013
1014
  const gs = gatekeeper.getStatus();
1014
- res.json({ status: 'ok', project: this.projectName, mode: gs.mode, tier: gs.isPro ? 'pro' : 'free', port: this.port });
1015
+ res.json({ status: 'ok', version: VERSION, project: this.projectName, mode: gs.mode, tier: gs.isPro ? 'pro' : 'free', port: this.port });
1015
1016
  });
1016
1017
  // MCP Status endpoint
1017
1018
  this.app.get('/api/mcp-status', (req, res) => {
@@ -1041,6 +1042,20 @@ class LemmaServer {
1041
1042
  console.log(`πŸ”„ [MCP] Toggled ${state}`);
1042
1043
  res.json({ enabled: MCP_STATUS.mcpEnabled, status: state });
1043
1044
  });
1045
+ // Debugger pause/resume (dashboard debugger panel)
1046
+ this.app.get('/api/debugger/state', (req, res) => {
1047
+ res.json({ paused: (0, DebuggerState_1.isDebuggerPaused)() });
1048
+ });
1049
+ this.app.post('/api/debugger/pause', (req, res) => {
1050
+ (0, DebuggerState_1.setDebuggerPaused)(true);
1051
+ console.log('⏸️ [Debugger] Paused β€” new completions are refused until resumed');
1052
+ res.json({ paused: true, timestamp: new Date().toISOString() });
1053
+ });
1054
+ this.app.post('/api/debugger/resume', (req, res) => {
1055
+ (0, DebuggerState_1.setDebuggerPaused)(false);
1056
+ console.log('▢️ [Debugger] Resumed');
1057
+ res.json({ resumed: true, paused: false, timestamp: new Date().toISOString() });
1058
+ });
1044
1059
  // Project registration from MCP handshake
1045
1060
  this.app.post('/api/handshake', (req, res) => {
1046
1061
  const { projectPath, projectName, stack } = req.body;
@@ -1835,6 +1850,10 @@ class LemmaServer {
1835
1850
  const tier = pro ? 'pro' : 'standard';
1836
1851
  const isStream = !!req.body.stream;
1837
1852
  let historyTokensSaved = 0;
1853
+ if ((0, DebuggerState_1.isDebuggerPaused)()) {
1854
+ res.setHeader('Retry-After', '5');
1855
+ return res.status(503).json({ error: { message: 'Lemma is paused from the dashboard debugger. Resume it to continue.' } });
1856
+ }
1838
1857
  if (!pro) {
1839
1858
  const usage = await loadUsage();
1840
1859
  if (usage.count >= ProjectStore_1.FREE_TIER_LIMIT) {