@wenathlan/extension 1.1.65 → 1.1.66

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.
Files changed (46) hide show
  1. package/README.md +4 -3
  2. package/dist/attentionfeed.d.ts +74 -0
  3. package/dist/attentionfeed.d.ts.map +1 -0
  4. package/dist/backgroundruns.d.ts +71 -0
  5. package/dist/backgroundruns.d.ts.map +1 -0
  6. package/dist/flowlibrary.d.ts +147 -0
  7. package/dist/flowlibrary.d.ts.map +1 -0
  8. package/dist/index.d.ts +7 -1
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +686 -3
  11. package/dist/index.js.map +4 -4
  12. package/dist/memory.d.ts +67 -1
  13. package/dist/memory.d.ts.map +1 -1
  14. package/dist/outputcompare.d.ts +68 -0
  15. package/dist/outputcompare.d.ts.map +1 -0
  16. package/dist/policy.d.ts +63 -0
  17. package/dist/policy.d.ts.map +1 -1
  18. package/dist/protocol.d.ts +167 -0
  19. package/dist/protocol.d.ts.map +1 -1
  20. package/dist/runreplay.d.ts +53 -0
  21. package/dist/runreplay.d.ts.map +1 -0
  22. package/dist/surfaces.d.ts +2 -2
  23. package/dist/surfaces.d.ts.map +1 -1
  24. package/dist/syncbridge.d.ts +80 -0
  25. package/dist/syncbridge.d.ts.map +1 -0
  26. package/dist/types.d.ts +194 -3
  27. package/dist/types.d.ts.map +1 -1
  28. package/dist/version.d.ts +1 -1
  29. package/extension/dist/background.js +944 -6
  30. package/extension/dist/background.js.map +4 -4
  31. package/extension/dist/dashboardpage.html +2 -0
  32. package/extension/dist/dashboardpage.js +90 -0
  33. package/extension/dist/dashboardpage.js.map +2 -2
  34. package/extension/dist/manifest.json +1 -1
  35. package/extension/dist/optionspage.html +1 -0
  36. package/extension/dist/optionspage.js +73 -0
  37. package/extension/dist/optionspage.js.map +2 -2
  38. package/extension/dist/pagebridge.js.map +1 -1
  39. package/extension/dist/popup.html +1 -1
  40. package/extension/dist/popup.js +48 -36
  41. package/extension/dist/popup.js.map +2 -2
  42. package/extension/dist/sidepanel.html +1 -1
  43. package/extension/dist/sidepanel.js +135 -0
  44. package/extension/dist/sidepanel.js.map +2 -2
  45. package/extension/manifest.json +1 -1
  46. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  <!doctype html>
2
2
  <html lang="en">
3
3
  <head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Devthink</title><link rel="stylesheet" href="style.css"></head>
4
- <body><main><header><p class="eyebrow">DEVTHINK 1.1.65</p><h1>Browser bridge</h1><p>Consent is required before page access or action.</p></header><label for="endpoint">Optional agent endpoint</label><input id="endpoint" type="url" inputmode="url" placeholder="https://agent.example/proposal" autocomplete="off"><button id="connect">Approve endpoint origin</button><div class="actions"><button id="session">Start active tab session</button><button id="pause" class="secondary">Pause session</button><button id="openpanel" class="secondary">Review plans</button><button id="stop" class="danger">Stop</button></div>
4
+ <body><main><header><p class="eyebrow">DEVTHINK 1.1.66</p><h1>Browser bridge</h1><p>Consent is required before page access or action.</p></header><label for="endpoint">Optional agent endpoint</label><input id="endpoint" type="url" inputmode="url" placeholder="https://agent.example/proposal" autocomplete="off"><button id="connect">Approve endpoint origin</button><div class="actions"><button id="session">Start active tab session</button><button id="pause" class="secondary">Pause session</button><button id="openpanel" class="secondary">Review plans</button><button id="stop" class="danger">Stop</button></div>
5
5
  <section id="onboardingcard" class="panel" hidden></section>
6
6
  <section><h2>Task</h2><label for="taskinput">Describe a browser task in plain language</label><textarea id="taskinput" rows="3" placeholder="For example: collect the pricing table of this page into a dataset."></textarea><div class="actions"><button id="tasksubmit">Propose plan</button><span id="proposalstatus" class="muted">idle</span></div><div class="actions"><button id="runquick" class="secondary">Run</button><button id="cancelquick" class="secondary">Cancel run</button><button id="opendashboard" class="secondary">Open dashboard</button><button id="openoptions" class="secondary">Open options</button></div></section>
7
7
  <section><h2>Recent runs</h2><div id="recenttray" class="panel" role="list" aria-label="Recent runs"></div></section><section><h2>Quick actions</h2><div id="quickactions" class="panel" role="list" aria-label="Quick actions of the active tab"></div></section><section><h2>Command palette</h2><div class="actions"><input id="paletteinput" placeholder="Search commands (ctrl+.)" aria-label="Command palette search"><button id="paletteopen" class="secondary">Palette</button></div><div id="palettematches" class="panel"></div></section><p id="capabilities" role="status" class="muted">Optional capabilities: loading.</p><p id="livelogic" role="status" class="muted">Held keys: none · Open dialogs answered: none.</p><p id="navstate" role="status" class="muted">Navigation: unknown.</p><p id="windowlayout" role="status" class="muted">Window layout: unknown.</p><p id="captchastate" role="status" class="muted">Captcha handoff: none.</p><p id="datasetstate" role="status" class="muted">Datasets: none collected yet.</p><p id="downloadstate" role="status" class="muted">Downloads: none.</p><p id="clipboardstate" role="status" class="muted">Clipboard consent: none waiting.</p><p id="capturestate" role="status" class="muted">Captures: none.</p><p id="mediastate" role="status" class="muted">Media: none.</p><p id="callstate" role="status" class="muted">Outbound calls: none.</p><p id="netstate" role="status" class="muted">Observed requests: none.</p><p id="rulestate" role="status" class="muted">Traffic rules: none active.</p><p id="debugstate" role="status" class="muted">Timeline: no errors captured.</p><p id="emulationstate" role="status" class="muted">Emulation: no active layer.</p><p id="sessionstate" role="status" class="muted">Sessions: none saved yet.</p><p id="workflowstate" role="status" class="muted">Workflows: none running.</p><p id="triggerstate" role="status" class="muted">Triggers: none armed.</p><p id="mcpstate" role="status" class="muted">Mcp server: stopped.</p><p id="modelstate" role="status" class="muted">Models: none connected.</p><p id="swarmstate" role="status" class="muted">Swarm: no agents.</p><p id="environmentstate" role="status" class="muted">Environments: no run state.</p><p id="securitystate" role="status" class="muted">Security: denydefault posture.</p><p id="sessiongridstate" role="status" class="muted">Session grid: no run yet.</p><div id="workflowcontrols" class="actions"></div><div id="windowcontrols" class="actions"></div><div id="environmentcontrols" class="actions"></div><div id="securitycontrols" class="actions"></div><div id="sessiongridcontrols" class="actions"></div><p id="status" role="status">Loading session state.</p></main><script type="module" src="popup.js"></script></body>
@@ -675,47 +675,59 @@ async function renderrecenttray() {
675
675
  const result = await request({ kind: "views", recent: { list: true } });
676
676
  const tray = result.tray ?? [];
677
677
  recenttraynode.replaceChildren();
678
- if (tray.length === 0) {
679
- recenttraynode.textContent = "No run yet; the tray lists the latest runs with resume and reopen.";
680
- return;
681
- }
682
- const list = document.createElement("ul");
683
- list.className = "audit";
684
- for (const entry of tray) {
685
- const item = document.createElement("li");
686
- item.textContent = `${entry.outcome} \u2014 ${entry.title || entry.runid} (${entry.origin})`;
687
- if (entry.resumable) {
688
- const resume = document.createElement("button");
689
- resume.type = "button";
690
- resume.className = "secondary";
691
- resume.textContent = "Resume";
692
- resume.addEventListener("click", () => {
693
- void (async () => {
694
- await request({ kind: "sessions", grid: { resume: { runid: entry.runid } } });
695
- status(`The run ${entry.runid} resumed through the sessions seam.`);
696
- })().catch((error) => status(error instanceof Error ? error.message : String(error), true));
697
- });
698
- item.append(" ", resume);
699
- }
700
- if (entry.reopenable) {
701
- const reopen = document.createElement("button");
702
- reopen.type = "button";
703
- reopen.className = "secondary";
704
- reopen.textContent = "Reopen";
705
- reopen.addEventListener("click", () => {
706
- void (async () => {
707
- await request({ kind: "sessions", grid: { reopen: { runid: entry.runid } } });
708
- status(`The run ${entry.runid} reopened through the sessions seam.`);
709
- })().catch((error) => status(error instanceof Error ? error.message : String(error), true));
710
- });
711
- item.append(" ", reopen);
678
+ if (tray.length === 0) recenttraynode.textContent = "No run yet; the tray lists the latest runs with resume and reopen.";
679
+ else {
680
+ const list = document.createElement("ul");
681
+ list.className = "audit";
682
+ for (const entry of tray) {
683
+ const item = document.createElement("li");
684
+ item.textContent = `${entry.outcome} \u2014 ${entry.title || entry.runid} (${entry.origin})`;
685
+ if (entry.resumable) {
686
+ const resume = document.createElement("button");
687
+ resume.type = "button";
688
+ resume.className = "secondary";
689
+ resume.textContent = "Resume";
690
+ resume.addEventListener("click", () => {
691
+ void (async () => {
692
+ await request({ kind: "sessions", grid: { resume: { runid: entry.runid } } });
693
+ status(`The run ${entry.runid} resumed through the sessions seam.`);
694
+ })().catch((error) => status(error instanceof Error ? error.message : String(error), true));
695
+ });
696
+ item.append(" ", resume);
697
+ }
698
+ if (entry.reopenable) {
699
+ const reopen = document.createElement("button");
700
+ reopen.type = "button";
701
+ reopen.className = "secondary";
702
+ reopen.textContent = "Reopen";
703
+ reopen.addEventListener("click", () => {
704
+ void (async () => {
705
+ await request({ kind: "sessions", grid: { reopen: { runid: entry.runid } } });
706
+ status(`The run ${entry.runid} reopened through the sessions seam.`);
707
+ })().catch((error) => status(error instanceof Error ? error.message : String(error), true));
708
+ });
709
+ item.append(" ", reopen);
710
+ }
711
+ list.append(item);
712
712
  }
713
- list.append(item);
713
+ recenttraynode.append(list);
714
714
  }
715
- recenttraynode.append(list);
716
715
  } catch (error) {
717
716
  recenttraynode.textContent = error instanceof Error ? error.message : String(error);
718
717
  }
718
+ try {
719
+ const background = await request({ kind: "ecosystem", background: { list: true } });
720
+ if (background.tray.length > 0) {
721
+ const backgroundlist = document.createElement("ul");
722
+ backgroundlist.className = "audit";
723
+ const headline = document.createElement("li");
724
+ headline.textContent = `Background runs: ${background.tray.length} finished entr${background.tray.length === 1 ? "y" : "ies"} from the background queue.`;
725
+ backgroundlist.append(headline);
726
+ for (const entry of background.tray.slice(0, 3)) backgroundlist.append(Object.assign(document.createElement("li"), { textContent: `${entry.outcome} \u2014 ${entry.title}` }));
727
+ recenttraynode.append(backgroundlist);
728
+ }
729
+ } catch {
730
+ }
719
731
  }
720
732
  var quickactionsnode = document.querySelector("#quickactions");
721
733
  async function renderquickactions() {