webhelm 1.0.34 → 1.0.35
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.
package/README.md
CHANGED
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
| [`lalalic/webhelm`](https://github.com/lalalic/webhelm) | npm Runtime/CLI (including the Daemon-managed Chrome Extension), Skill (`skills/webhelm`), tests | npm `webhelm@latest`; Skill source separately |
|
|
10
10
|
| [`lalalic/webhelm-actions`](https://github.com/lalalic/webhelm-actions) | Site manifests, ChatGPT/Z.ai/DeepSeek/XHS/etc. Actions | Git checkout at `~/.local/webhelm` |
|
|
11
11
|
|
|
12
|
+
The npm Runtime and bundled Chrome Extension use the **same semantic version**. The GitHub npm publishing workflow stamps the Extension manifest from the final npm version, including publish retries, and refuses mismatched packages. The Chrome toolbar popup displays the installed Extension version in its header. Use `node scripts/sync-extension-version.mjs --check` to verify the checkout before publishing.
|
|
13
|
+
|
|
12
14
|
The npm package **does not include** the Skill or site Actions. The Skill's executable uses `npm exec --yes --package=webhelm@latest -- webhelm` to avoid inherited npm lifecycle variable conflicts; its contents may update without a Runtime release.
|
|
13
15
|
|
|
14
16
|
The agent-facing `webhelm` CLI uses only the `WebHelm` Workspace. It intentionally does not accept `--workspace` or expose Workspace management helpers in `session exec`. `session stop --all` only stops WebHelm Sessions. Application services such as Relay provision their own named Workspaces through daemon IPC `workspace-create`, `workspace-resize`, `workspace-configure`, and `workspace-delete`; they may start Sessions via the daemon `start` operation for those pre-provisioned names. To hide a group from the extension toolbar menu without removing its Chrome tab group or Sessions, send `{ "op": "workspace-configure", "name": "WeChat", "show_in_menu": false }`. On creation, `workspace-create` also accepts optional `show_in_menu: false`. The setting is persisted in the Chrome profile; omitted values preserve existing visibility, and the default is visible. `workspace.list` and `workspace.status` still expose hidden groups and their `showInMenu` property; only `workspace.control.status().workspaces` filters hidden groups for the menu. Leasing a missing Workspace fails rather than creating it.
|
package/package.json
CHANGED
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
:root { color-scheme: light dark; --ink:#182234; --muted:#5f6d81; --border:#e1e7f0; --accent:#345fd5; --accent-light:#edf2ff; --warning:#ae3849; }
|
|
9
9
|
* { box-sizing: border-box; }
|
|
10
10
|
body { width:320px; margin:0; padding:12px 14px; background:light-dark(#fff,#172131); color:light-dark(var(--ink),#edf2f9); font:12px/1.4 system-ui,sans-serif; }
|
|
11
|
-
.panel-heading { display:flex; align-items:center; justify-content:
|
|
11
|
+
.panel-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:3px; }
|
|
12
|
+
.extension-version { font-size:11px; font-variant-numeric:tabular-nums; color:light-dark(var(--muted),#acb8c9); }
|
|
12
13
|
.daemon-state { font-size:11px; color:light-dark(var(--muted),#acb8c9); white-space:nowrap; }
|
|
13
14
|
.daemon-state::before { content:""; display:inline-block; vertical-align:middle; width:6px; height:6px; border-radius:50%; background:#8893a1; margin-right:5px; }
|
|
14
15
|
.daemon-state.online::before { background:#23915c; }
|
|
@@ -68,6 +69,7 @@
|
|
|
68
69
|
</head>
|
|
69
70
|
<body>
|
|
70
71
|
<header class="panel-heading">
|
|
72
|
+
<span id="extension-version" class="extension-version" aria-label="WebHelm version"></span>
|
|
71
73
|
<span id="daemon-status" class="daemon-state" role="status">Connecting…</span>
|
|
72
74
|
</header>
|
|
73
75
|
<strong>Keep Alive Sites</strong>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {readKeptSites, setStoredSite, compactQueue, readMenuWorkspaces} from './popup-data.mjs';
|
|
2
2
|
const el = id => document.getElementById(id);
|
|
3
|
+
el('extension-version').textContent = `v${chrome.runtime.getManifest().version}`;
|
|
3
4
|
let confirming = false;
|
|
4
5
|
let chosen = null;
|
|
5
6
|
let lastSignature = '';
|
|
@@ -7,6 +7,7 @@ import {LOCAL_ROOT} from './config-paths.mjs';
|
|
|
7
7
|
|
|
8
8
|
export const EXTENSION_ID='kkkpgmhpoeceojalkpfdidffdfnlgdog';
|
|
9
9
|
const SOURCE=fileURLToPath(new URL('./extension/',import.meta.url));
|
|
10
|
+
const RUNTIME_VERSION=JSON.parse(fs.readFileSync(new URL('../package.json',import.meta.url),'utf8')).version;
|
|
10
11
|
const SOURCE_MODE=process.env.WEBHELM_SOURCE_MODE==='1';
|
|
11
12
|
export const EXTENSION_HOME=path.resolve(process.env.WEBHELM_EXTENSION_HOME ||
|
|
12
13
|
(SOURCE_MODE ? SOURCE : path.join(LOCAL_ROOT,'extension')));
|
|
@@ -25,6 +26,8 @@ function manifest(dir){
|
|
|
25
26
|
return data;
|
|
26
27
|
}
|
|
27
28
|
export const extensionVersion=manifest(SOURCE).version;
|
|
29
|
+
if(extensionVersion!==RUNTIME_VERSION)
|
|
30
|
+
throw Error(`Bundled WebHelm version mismatch: Runtime ${RUNTIME_VERSION}, Extension ${extensionVersion}`);
|
|
28
31
|
function canonicalPath(value) {
|
|
29
32
|
try { return fs.realpathSync(value || ''); }
|
|
30
33
|
catch { return path.resolve(value || ''); }
|