@proagentstore/cli 0.4.121 → 0.4.122

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.
@@ -134,6 +134,8 @@ export class BrowserBridge {
134
134
  pages = 0;
135
135
  lastSnapshot = "";
136
136
  visited = new Set();
137
+ /** The host of the page the browser is on now — not the last NEW host: a Set keeps first-insertion order. */
138
+ here = null;
137
139
  findings = [];
138
140
  sourceFailures = [];
139
141
  summary = null;
@@ -186,8 +188,7 @@ export class BrowserBridge {
186
188
  return { content: [{ type: "text", text: textOf(res) }], ...(res.isError ? { isError: true } : {}) };
187
189
  }
188
190
  currentHost() {
189
- const last = [...this.visited].pop();
190
- return last ? { domain: last } : {};
191
+ return this.here ? { domain: this.here } : {};
191
192
  }
192
193
  /** Refuse, on the trace — naming the site and the owner's decision behind it when there is one. */
193
194
  refuse(tool, reason, host) {
@@ -307,6 +308,7 @@ export class BrowserBridge {
307
308
  if (!host)
308
309
  return;
309
310
  this.visited.add(host);
311
+ this.here = host;
310
312
  this.host.emit({ type: "browser.navigated", url: state.url, domain: host, detail: redactDetail({ title: state.title }) });
311
313
  }
312
314
  async inspect() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proagentstore/cli",
3
- "version": "0.4.121",
3
+ "version": "0.4.122",
4
4
  "description": "CLI for creating, publishing, and running ProAgentStore agents",
5
5
  "license": "MIT",
6
6
  "type": "module",