Skip to content

Commit f1b717c

Browse files
committed
Sync Electron Agent Debug Skill 1.0.4 and bundled runtime
1 parent 673d58c commit f1b717c

16 files changed

Lines changed: 1201 additions & 229 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Electron Agent Debug
2+
on:
3+
pull_request:
4+
paths:
5+
- 'plugins/electron-agent-debug/**'
6+
- 'tests/electron-agent-debug/**'
7+
- 'scripts/validate-electron-agent-debug.mjs'
8+
- '.github/workflows/electron-agent-debug.yml'
9+
- 'package.json'
10+
push:
11+
branches: [main]
12+
paths:
13+
- 'plugins/electron-agent-debug/**'
14+
- 'tests/electron-agent-debug/**'
15+
- 'scripts/validate-electron-agent-debug.mjs'
16+
- '.github/workflows/electron-agent-debug.yml'
17+
- 'package.json'
18+
permissions:
19+
contents: read
20+
jobs:
21+
master:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
25+
with:
26+
persist-credentials: false
27+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
28+
with:
29+
node-version: 22
30+
- name: Run master suite on Node 22
31+
run: npm run test:electron-agent-debug
32+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
33+
with:
34+
node-version: 24
35+
- name: Run master suite on Node 24
36+
run: npm run test:electron-agent-debug

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"test:physical-engineering": "node tests/physical-engineering/run.mjs",
3838
"test:pcba-engineering": "npm run validate:pcba-engineering && node --test --test-concurrency=1 tests/pcba-engineering/unit/*.test.mjs tests/pcba-engineering/integration/*.test.mjs tests/pcba-engineering/security/*.test.mjs && python3 tests/pcba-engineering/support/dataset-verify.py",
3939
"validate:pcba-engineering": "node scripts/validate-pcba-engineering.mjs",
40-
"test:electron-agent-debug": "node scripts/validate-electron-agent-debug.mjs",
40+
"test:electron-agent-debug": "npm run validate:electron-agent-debug && node --test --test-concurrency=1 tests/electron-agent-debug/package.test.mjs",
4141
"validate:electron-agent-debug": "node scripts/validate-electron-agent-debug.mjs"
4242
},
4343
"engines": {

‎plugins/electron-agent-debug/.codex-plugin/plugin.json‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "electron-agent-debug",
3-
"version": "0.1.0",
4-
"description": "Collect bounded runtime evidence from a running local Electron application through Node Inspector and Chromium DevTools Protocol.",
3+
"version": "1.0.4",
4+
"description": "Diagnose running local Electron apps using a bundled, attach-only MCP runtime and Agent Skill.",
55
"author": {
66
"name": "longhun12346",
77
"url": "https://github.com/longhun12346"
88
},
9-
"homepage": "https://github.com/tonyloehr/community-plugins/tree/main/plugins/electron-agent-debug",
9+
"homepage": "https://github.com/openai/community-plugins/tree/main/plugins/electron-agent-debug",
1010
"repository": "https://github.com/longhun12346/electron-agent-debug",
1111
"license": "MIT",
1212
"keywords": [
@@ -18,14 +18,16 @@
1818
],
1919
"skills": "./skills/",
2020
"interface": {
21-
"displayName": "Electron Debug",
22-
"shortDescription": "Collect local Electron runtime evidence.",
23-
"longDescription": "Guide an Agent through attach-only diagnosis of a running local Electron application. Use the four core MCP tools to inspect main-process and renderer connection state, page targets, and bounded runtime logs after code changes. The plugin does not start or control the app, register MCP automatically, execute page code, or decide whether the business behavior is correct.",
21+
"displayName": "Electron Agent Debug",
22+
"shortDescription": "Diagnose Electron with a bundled local MCP runtime.",
23+
"longDescription": "Use the bundled Node.js MCP runtime to inspect main-process Inspector and renderer CDP state, targets, logs and exceptions. The Agent verifies the package, configures the local stdio entry and provides the running app, dynamic loopback endpoints and regression steps. Application lifecycle and final verification remain with the Agent.",
2424
"developerName": "longhun12346",
2525
"category": "Developer Tools",
2626
"websiteURL": "https://github.com/longhun12346/electron-agent-debug",
2727
"capabilities": [
28-
"Read"
28+
"Read",
29+
"Write",
30+
"Execute"
2931
],
3032
"brandColor": "#478CBF",
3133
"defaultPrompt": [
Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,37 @@
1-
# Electron Debug
1+
# Electron Agent Debug
22

3-
Electron Debug is a Skill-only Codex plugin for coding Agents working on Electron applications. It guides an Agent to collect bounded runtime evidence after a code change by attaching to a running local Electron application through the project's Node Inspector and renderer CDP discovery endpoints.
3+
Version 1.0.4 provides an Agent Skill and its self-contained JavaScript MCP runtime for attach-only diagnosis of a running local Electron application. Four tools return main-process Inspector and renderer CDP state, targets, logs and exceptions. The Agent supplies the application, regression steps and dynamic loopback endpoints, then decides what the evidence proves.
44

5-
The plugin distributes the Skill. It does not bundle the MCP server, register MCP automatically, start or stop Electron, execute page code, inspect the DOM, take screenshots, set breakpoints, or decide whether a business requirement passed. The MCP source and build instructions remain in [electron-agent-debug](https://github.com/longhun12346/electron-agent-debug).
5+
## Install and prerequisites
66

7-
## Safe first run
8-
9-
Start a new Codex task after installation and explicitly provide the project prerequisites:
7+
After the PR is accepted, install the complete plugin from the community marketplace. Preserve the entire skills/electron-debug directory, including runtime, references, VERSION.md and third-party licenses. Node.js 22+ is required. Node, Electron, native binaries and optional native accelerators are not shipped.
108

11-
`Use $electron-debug after I have started the Electron app with the project's existing command and provided the actual local Inspector/CDP discovery endpoints. Collect baseline and regression evidence for the change; report BLOCKED if a prerequisite is missing.`
9+
Installing the plugin does not register or launch MCP. Normal use requires no source download, dependency installation or build. Verify the package origin through an approved installation channel before running package code.
1210

13-
The Agent must supply the Electron project directory, existing start or reload command, expected behavior, regression command, required endpoint URLs, and target selection condition. Ports and paths are chosen by the Agent or the project; this plugin does not prescribe fixed values.
14-
15-
## Install
11+
## Safe first run
1612

17-
After this plugin is accepted into the community marketplace:
13+
Use this prompt after preparing the project:
1814

19-
`codex plugin marketplace add tonyloehr/community-plugins --ref main --sparse .agents/plugins --sparse plugins/electron-agent-debug
20-
codex plugin add electron-agent-debug@community-plugins`
15+
`Use $electron-debug to verify this Electron change. Use the project's existing commands and actual local Inspector/CDP endpoints. Verify the bundled runtime, configure the host as needed, collect evidence and run the project regression. Report BLOCKED if a necessary prerequisite cannot be supplied.`
2116

22-
Start a new Codex task after installation so the Skill is loaded. Installing the plugin does not configure the MCP server.
17+
The Agent determines the installed Skill's absolute path and runs:
2318

24-
## Configure the MCP prerequisite
19+
```text
20+
node <absolute-skill-directory>/runtime/launch.cjs --verify
21+
```
2522

26-
The Agent must separately build and configure the MCP server from the source repository:
23+
On success, configure the host's local stdio MCP entry to run the same launcher without --verify. Refresh the host and confirm electron_attach, electron_status, electron_targets and electron_logs are visible. Host configuration paths, application commands, ports and target selectors remain environment-specific. Full setup, migration and provenance instructions are in [the bundled setup reference](skills/electron-debug/references/mcp-setup.md).
2724

28-
1. Build the checked-out source with the repository's documented command.
29-
2. Configure the current host's local stdio MCP entry to run `node <actual-repository-path>/dist/index.js`.
30-
3. Refresh the host configuration and confirm that `electron_attach`, `electron_status`, `electron_targets`, and `electron_logs` are visible.
31-
4. Start or confirm the Electron application using its existing project command, with dynamic loopback Inspector/CDP endpoints.
25+
## Permissions, execution and data
3226

33-
The exact host configuration file, repository path, Electron command, ports, and target selector are environment-specific and must be discovered by the Agent.
27+
The interface declares Read, Write and Execute to disclose the workflow: read project/configuration files; update the host's MCP configuration when authorized; launch the bundled Node.js stdio process; and use the project's existing commands for preparation and regression. These labels do not grant permissions or bypass host approval. The MCP server itself does not write project files, execute page code, inspect DOM, take screenshots, set breakpoints or manage Electron's lifecycle.
3428

35-
## Permissions and data boundary
29+
No install hooks, credentials, OAuth flow or remote service are included. No project files or diagnostic logs are uploaded. The runtime connects only to Agent-provided loopback HTTP(S) discovery endpoints and loopback WebSockets, and retains bounded events in memory. Do not supply production endpoints or private logs.
3630

37-
The manifest declares `Read`. The plugin has no credentials, OAuth flow, remote service, install hook, bundled executable, or automatic file write. The Skill may guide the Agent to use the project's existing commands and configure the host's MCP entry. The MCP server accepts only loopback HTTP(S) discovery endpoints and keeps bounded diagnostic events in memory. No project files or logs are uploaded by this plugin.
31+
The launcher checks the manifest and SHA-256 hashes before loading MCP. Missing or inconsistent files produce PACKAGE_INTEGRITY_ERROR and no server launch. Same-package hashes detect inconsistency; they do not independently establish publisher identity or code safety. Missing application, endpoint, target or regression prerequisites produce BLOCKED rather than a code-failure verdict.
3832

39-
Do not provide production endpoints, credentials, tokens, or private logs. If the MCP host, application, endpoint, target, expected behavior, or regression operation is unavailable, report `BLOCKED` instead of treating the missing prerequisite as a code failure.
33+
## Validation
4034

41-
## Verification
35+
Run `npm run test:electron-agent-debug` at the marketplace root. This master command validates metadata and exercises an archived package in isolated project/global layouts, all four MCP tools with network and external module loading prohibited, and corruption/missing-file rejection.
4236

43-
The source repository provides unit and contract tests, a real Electron fixture, and an opt-in external Electron E2E harness. The external harness requires a caller-provided project checkout and Electron executable; it is not part of the plugin install and is not a default marketplace test.
37+
The [source release](https://github.com/longhun12346/electron-agent-debug/releases/tag/skill-v1.0.4) supplies build-provenance verification, cross-platform CI and real Electron fixture evidence. These source checks are separate from marketplace package tests and do not prove an installed Codex session or a caller's business regression passed.

0 commit comments

Comments
 (0)