Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- Added canonical Capture Record constructors shared by Element and Region saves.
- Renamed the History JSON handoff to `Send to Codex` and gave each Downloads export a unique filename.
- Added bounded MCP inbox discovery and newest-valid import under the user's Downloads directory.
- Added an Electron development inspector package with one guarded registration import, package-owned preload and shortcut wiring, local History, and explicit clipboard export.
- Added the `@flyingchangescode/dev-feedback-electron` development inspector package with one guarded registration import, package-owned preload and shortcut wiring, local History, and explicit clipboard export.
- Released the browser extension source and Electron package under the MIT License.
- Removed stale implementation plans and added current issue-tracker, triage-label, and domain-document instructions.
- Kept Feedback Sessions on the checkpointed experiment branch rather than shipping them in this release.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ The companion does not read Chromium's internal storage, open a network port, co

## Electron Inspector developer package

Electron apps cannot use Chrome's extension toolbar or attach this browser extension from Chrome. Developers can instead add the free, MIT-licensed `@dev-feedback/electron` development package to their app.
Electron apps cannot use Chrome's extension toolbar or attach this browser extension from Chrome. Developers can instead add the free, MIT-licensed `@flyingchangescode/dev-feedback-electron` development package to their app.

The Host App integration is one guarded import in its main-process entry, before any window is created:

```js
if (!app.isPackaged) await import('@dev-feedback/electron/register')
if (!app.isPackaged) await import('@flyingchangescode/dev-feedback-electron/register')
```

Press `Cmd/Ctrl+Shift+.` in any registered development window to start Element capture. The package owns its session preload, shortcut, package-owned overlay, local History under Electron `userData`, and `Copy History` action. It does not require React, replace the Host App preload, or expose Electron IPC to the Host App renderer. See [packages/electron-inspector/README.md](packages/electron-inspector/README.md) for installation and the trust contract.
Expand Down
2 changes: 1 addition & 1 deletion packages/electron-inspector/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 0.2.0

- Added the development-only `@dev-feedback/electron/register` entrypoint.
- Added the development-only `@flyingchangescode/dev-feedback-electron/register` entrypoint.
- Reduced Host App integration to one guarded import before window creation.
- Moved the inspector preload, multi-window shortcut, IPC trust checks, and local History lifecycle into the package.
- Preserved existing session preloads and removed package hooks during explicit disposal.
Expand Down
2 changes: 1 addition & 1 deletion packages/electron-inspector/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2026 Monroe Stone
Copyright (c) 2026 Flying Changes Code

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 5 additions & 5 deletions packages/electron-inspector/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @dev-feedback/electron
# @flyingchangescode/dev-feedback-electron

`@dev-feedback/electron` adds an explicit Element inspector, local History, and a plain-text `Copy History` action to an Electron development build.
`@flyingchangescode/dev-feedback-electron` adds an explicit Element inspector, local History, and a plain-text `Copy History` action to an Electron development build.

The Host App keeps ownership of its windows and preload. The package owns its session preload, shortcut, DOM selection, Capture Record validation, app-local storage, and in-app History panel.

Expand All @@ -9,19 +9,19 @@ The Host App keeps ownership of its windows and preload. The package owns its se
Install the development dependency from npm:

```sh
npm install --save-dev @dev-feedback/electron
npm install --save-dev @flyingchangescode/dev-feedback-electron
```

Add this one line to the Electron main-process entry before creating any windows:

```js
if (!app.isPackaged) await import('@dev-feedback/electron/register')
if (!app.isPackaged) await import('@flyingchangescode/dev-feedback-electron/register')
```

That is the complete Host App integration. In a CommonJS entry, use:

```js
if (!app.isPackaged) require('@dev-feedback/electron/register')
if (!app.isPackaged) require('@flyingchangescode/dev-feedback-electron/register')
```

Run the app and press `Cmd/Ctrl+Shift+.` in the window you want to inspect. The package appends its own preload without replacing existing session preloads and works across windows created after registration. It does not expose `ipcRenderer` or a new global to the Host App renderer. Keep `sandbox: true`, `contextIsolation: true`, and `nodeIntegration: false`.
Expand Down
4 changes: 2 additions & 2 deletions packages/electron-inspector/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@dev-feedback/electron",
"name": "@flyingchangescode/dev-feedback-electron",
"version": "0.2.0",
"description": "Local feedback inspector for Electron development builds",
"license": "MIT",
"author": "Monroe Stone",
"author": "Flying Changes Code",
"repository": {
"type": "git",
"url": "git+https://github.com/StoneHub/webDevFeedbackExt.git",
Expand Down
2 changes: 2 additions & 0 deletions test/electron-inspector.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const { describeFeature, implicitRole } = require('../packages/electron-inspecto
test('published package contains the one-line register entry and its self-contained preload', async () => {
const packageRoot = path.resolve(__dirname, '..', 'packages', 'electron-inspector');
const manifest = JSON.parse(await fs.readFile(path.join(packageRoot, 'package.json'), 'utf8'));
assert.equal(manifest.name, '@flyingchangescode/dev-feedback-electron');
assert.equal(manifest.author, 'Flying Changes Code');
assert.equal(manifest.private, undefined);
assert.equal(manifest.license, 'MIT');
assert.equal(manifest.exports['./register'], './register.cjs');
Expand Down
Loading