agentlife 2.2.0 → 2.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/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3004,11 +3004,14 @@ function registerSurfacesService(api, state) {
|
|
|
3004
3004
|
state.surfaceDb = new SurfaceDb(db);
|
|
3005
3005
|
}
|
|
3006
3006
|
runStartupPurge(state);
|
|
3007
|
+
const FLOW_INPUT_IDS = new Set(["welcome-input"]);
|
|
3007
3008
|
let inputPurged = 0;
|
|
3008
3009
|
for (const [surfaceId, meta] of state.surfaceDb.entries()) {
|
|
3009
3010
|
const headerLine = meta.lines[0] ?? "";
|
|
3010
3011
|
if (!/\binput\b/.test(headerLine))
|
|
3011
3012
|
continue;
|
|
3013
|
+
if (FLOW_INPUT_IDS.has(surfaceId))
|
|
3014
|
+
continue;
|
|
3012
3015
|
state.surfaceDb.delete(surfaceId);
|
|
3013
3016
|
inputPurged++;
|
|
3014
3017
|
}
|
|
@@ -6644,12 +6647,13 @@ function registerSurfacesGateway(api, state2) {
|
|
|
6644
6647
|
respond(true, { surfaces: [] });
|
|
6645
6648
|
return;
|
|
6646
6649
|
}
|
|
6650
|
+
const FLOW_INPUT_IDS = new Set(["welcome-input"]);
|
|
6647
6651
|
for (const [surfaceId, meta] of state2.surfaceDb.entries()) {
|
|
6648
6652
|
if (isExpired(meta, now))
|
|
6649
6653
|
continue;
|
|
6650
6654
|
const headerLine = meta.lines[0] ?? "";
|
|
6651
6655
|
const isInput = /\binput\b/.test(headerLine);
|
|
6652
|
-
if (isInput)
|
|
6656
|
+
if (isInput && !FLOW_INPUT_IDS.has(surfaceId))
|
|
6653
6657
|
continue;
|
|
6654
6658
|
if (meta.lines.length > 0) {
|
|
6655
6659
|
surfaceEntries.push({ surfaceId, dsl: meta.lines.join(`
|