aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2026-09-10Merge pull request #17 from tianrendong/refactor/chrome-command-surfaceTianren Dong
Simplify Chrome status commands and release 0.15.51
2026-09-10Simplify Chrome status commands and release 0.15.51Tianren Dong
2026-09-10Merge pull request #16 from tianrendong/docs/readme-0.15.50Tianren Dong
docs: clarify background controls and release 0.15.50
2026-09-10docs: clarify background controls and release 0.15.50Tianren Dong
2026-09-10Merge pull request #15 from tianrendong/docs/readme-onboardingTianren Dong
docs: improve pi-chrome README and onboarding
2026-09-10docs: improve pi-chrome README and onboardingTianren Dong
2026-09-10Merge pull request #14 from tianrendong/fix/input-reliabilityTianren Dong
Improve Chrome input reliability and release 0.15.49
2026-09-10Improve Chrome input reliability and release 0.15.49Tianren Dong
2026-09-09Merge pull request #13 from tianrendong/fix/hard-background-policyTianren Dong
Enforce hard background and release 0.15.48
2026-09-09Enforce hard background and release 0.15.48Tianren Dong
2026-09-09Merge pull request #12 from tianrendong/fix/session-cleanup-safetyTianren Dong
Fix session cleanup and release 0.15.47
2026-09-09Fix session cleanup and release 0.15.47Tianren Dong
2026-07-07Fix Chrome authorization update loggingTianren Dong
2026-07-07Record Chrome tool authorization state explicitlyTianren Dong
2026-07-07Log Chrome tool authorization changesTianren Dong
2026-06-25Release v0.15.43Tianren Dong
2026-06-25Make README capabilities user-facingTianren Dong
2026-06-25Release v0.15.42Tianren Dong
2026-06-25Remove README quick start sectionTianren Dong
2026-06-25Release v0.15.41Tianren Dong
2026-06-25Shorten README and move architecture docsTianren Dong
2026-06-220.15.40: keep automation targets in session groupTianren Dong
2026-06-22Keep Pi-created tabs in one session groupTianren Dong
2026-06-220.15.39: dedicated pi-chrome automation tab/window isolation (#6)TJ Dong
Stop pi-chrome from hijacking the user's active tab. Page/navigation actions with no explicit target now route to a dedicated automation window owned by the calling Pi session (falling back to a dedicated tab if a window can't be made), instead of overwriting whatever the user has open. - Session-scoped ownership: Map<sessionKey, target> in the service worker, keyed by a sessionKey forwarded from index.ts, so concurrent sessions (one shared extension) never fight over a window or close each other's tabs. - Persistence: ownership mirrored to chrome.storage.session so a service-worker restart re-hydrates and reuses the window instead of orphaning it. Cleared on full browser restart; restored windows are then left alone (never reclaimed). - getTabByParams default branch resolves the owned target; tab.activate/close/ group/ungroup pass createOwnedTarget:false so management never auto-creates a throwaway tab or falls back to the user's active tab. - Session-group integration: the dedicated-window tab still joins this session's tab group, in its own window; grouping stays best-effort. - Lifecycle: cleanup on /chrome revoke and real session end (not /reload); fire-and-forget so it never blocks /quit, /reload, or shutdown. - Tests: new test-suite/unit/automation-target.test.mjs (isolation, reuse, concurrency, restart/reconnect re-hydration, guarded tab.*, group integration, window->tab fallback, robust cleanup). Docs + CHANGELOG updated.
2026-06-08feat: show remaining auth time in Chrome Bridge status bar (#5)TJ Dong
* 0.15.36: richer chrome_snapshot + chrome_find/chrome_inspect (ported from foxfirecodes fork) - chrome_snapshot returns a concise observation (layout, hints, actions, forms, page map, query matches, diff) with mode/query/maxTextChars params - new chrome_find (query -> ranked uids) and chrome_inspect (deep element context, with page.inspect fallback) - includeSnapshot on click/type/fill/key now embeds the formatted snapshot - snapshot/inspect logic shipped as eval-free packaged snapshot_injected.js, sharing window.__PI_CHROME_STATE__ (el- uid scheme) with existing input helpers * feat: show remaining auth time in Chrome Bridge status bar Before: ● Chrome Bridge After: ● Chrome Bridge (14m) ● Chrome Bridge (indefinite) Changes: - authCountdownLabel() computes remaining minutes from chromeAuthorizedUntil - updateChromeStatus appends the label to the status line - startCountdownTicker() runs setInterval every 60s to refresh the display while a timed authorization is active; no-ops for indefinite auth - clearCountdownInterval() called in lockChromeControl and session_shutdown so no interval leaks on revoke or reload - scheduleAuthExpiry calls startCountdownTicker so the ticker starts whenever authorization is granted or restored after /reload --------- Co-authored-by: Tianren Dong <tianrendong.dtr@gmail.com>
2026-06-070.15.38: harden chrome input overlay handlingTianren Dong
2026-06-070.15.37: harden Chrome input targetingTianren Dong
2026-06-070.15.37: clarify README installation instructions (#4)Tianren Dong
2026-06-07Clarify README installation instructions (#4)TJ Dong
2026-06-060.15.36: richer chrome_snapshot + chrome_find/chrome_inspectTianren Dong
- chrome_snapshot returns a concise observation (layout, hints, actions, forms, page map, query matches, diff) with mode/query/maxTextChars params - new chrome_find (query -> ranked uids) and chrome_inspect (deep element context, with page.inspect fallback) - includeSnapshot on click/type/fill/key now embeds the formatted snapshot - snapshot/inspect logic shipped as eval-free packaged snapshot_injected.js, sharing window.__PI_CHROME_STATE__ (el- uid scheme) with existing input helpers
2026-06-010.15.35: persist /chrome authorize grant across /reload (re-register ↵Tianren Dong
chrome_* tools on session_start)
2026-06-010.15.34: tabs Pi uses join session group; fix punctuation dropped by ↵Tianren Dong
chrome_type/chrome_key (US-layout keymap)
2026-05-310.15.33: default background mode on (chrome_* run without focusing Chrome)Tianren Dong
2026-05-310.15.32: session tab-group title uses 'Pi Session: <name-or-id>' (colon)Tianren Dong
2026-05-310.15.31: per-session tab groups named 'Pi Session <name-or-id>'Tianren Dong
2026-05-310.15.30: chrome_tab grouping — auto-group Pi tabs, group/ungroup actions, ↵Tianren Dong
merge by title
2026-05-310.15.29: CSP bypass via CDP Runtime.evaluate for ↵Tianren Dong
evaluate/snapshot/waitFor/initScript - evaluateInTab/executeInTab now run through CDP Runtime.evaluate instead of new Function() in MAIN world, so chrome_evaluate/chrome_snapshot work on pages that block unsafe-eval (github.com, many bank/SaaS apps). Preserves value markers (undefined/function/symbol/bigint/Error), DOMRect expansion, and the expression/statement fallback; keeps {ok,value} error envelope. - page.waitFor polls via service-worker-side CDP evaluation. - chrome_navigate initScript uses Page.addScriptToEvaluateOnNewDocument. - Add npm test (test-suite/unit/csp-eval.test.mjs) and in-browser regression challenge 42 strict-csp-evaluate; update challenge 39 notes + docs/primer.
2026-05-310.15.28: bridge self-heal, timeout diagnostics, pressKeyInPage helper, ↵Tianren Dong
DOMRect serialization, stale-target errors, pageMutated wording
2026-05-17chore: release v0.15.27Tianren Dong
2026-05-17chore: standardize gitignoreTianren Dong
2026-05-160.15.26: update docs for benchmark gatesTianren Dong
2026-05-160.15.25: fix reload after stale singletonTianren Dong
2026-05-160.15.24: unload Chrome tools when lockedTianren Dong
2026-05-160.15.23: attribute fork featuresTianren Dong
2026-05-160.15.22: pull fork improvementsTianren Dong
2026-05-16feat: lazy-register chrome tools until /chrome authorizeDani Bednarski
Defer all pi.registerTool() calls until /chrome authorize fires. Previously, 18 chrome_* tool definitions + chrome-profile-bridge primer consumed ~5K tokens/turn even when Chrome control locked. Changes: - Add chromeToolsRegistered flag (default false) - Wrap all pi.registerTool() calls in registerChromeTools(pi) - Only register tools when authorizeFor() runs - Make before_agent_start conditional: primer injected only when tools registered AND authorized - No tools exist in context until user explicitly allows it Saves ~5,000 tokens/turn when Chrome control is locked.
2026-05-16silence startup notify + dynamic status barDani Bednarski
- Remove startup notification about companion extension - Remove static 'Chrome bridge :17318' status bar entry - Add updateChromeStatus() helper: shows green dot + 'Chrome Bridge' only when authorized, clears otherwise - Call from session_start, authorizeFor, revokeHandler
2026-05-16fix: capture early console/network messages at document_startDani Bednarski
Adds an early-capture script injected at document_start on every navigation via webNavigation.onCommitted + injectImmediately:true. Wraps console.*, fetch, and XMLHttpRequest before page JS runs, so console messages, errors, unhandled rejections, and network requests during page load are captured in window.__PI_CHROME_STATE__. Sets __piChromeWrapped flags so the existing post-hoc installPiChromeInstrumentation() is idempotent (checks instrumentationInstalled). Fixes chrome_list_console_messages returning empty for errors that fire during React render / initial API calls.
2026-05-160.15.21: version bumpTianren Dong
Tree-equivalent to v0.15.20 (preceded by the revert commit). Bumping to 0.15.21 sets the package up for normal patch releases on the 0.15.x line going forward — no version-number collisions with the unpublished 0.16/0.17 work.
2026-05-16Revert 0.16.x and 0.17.x: restore tree to v0.15.20 stateTianren Dong
Reverts the pairing + signed-envelopes work (0.16.0-0.16.1), the standalone daemon refactor (0.17.0-0.17.3), and assorted patches. These were unpublished from npm; this commit restores the working tree to match the v0.15.20 release so the branch tip and the npm 'latest' dist-tag are consistent again. Tags v0.16.0 through v0.17.3 are preserved as recovery anchors; the work is reachable via 'git checkout v0.17.3' if ever needed. Tree-equivalent to v0.15.20.