gm-skill 2.0.1433 → 2.0.1435

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-plugkit",
3
- "version": "2.0.1433",
3
+ "version": "2.0.1435",
4
4
  "description": "Bootstrap and daemon-spawn tool for gm plugkit binary. Downloads the correct platform binary, verifies SHA256, and starts the spool watcher daemon. Includes plugkit-wasm-wrapper for WASM-based spool watching.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -374,6 +374,24 @@ function readCurrentSess() {
374
374
 
375
375
  const __lockRejectedEmitAt = new Map();
376
376
 
377
+ const UNAMBIGUOUS_CLIENT_EXT_RE = /\.(?:html?|jsx|tsx|vue|svelte|css|scss|sass)$/i;
378
+ const AMBIGUOUS_JS_EXT_RE = /\.(?:m?js|cjs|ts)$/i;
379
+ const BROWSER_REACHABLE_DIR_RE = /(?:^|\/)(?:site|public|web|www|client|frontend|ui|assets|static|dist|build|docs)\//i;
380
+ const NODE_ONLY_DIR_RE = /(?:^|\/)(?:lib|bin|scripts?|gm-plugkit|node_modules|tests?|__tests__|\.gm)\//i;
381
+
382
+ function isBrowserRelevantPath(rel, cwd) {
383
+ if (UNAMBIGUOUS_CLIENT_EXT_RE.test(rel)) return true;
384
+ if (!AMBIGUOUS_JS_EXT_RE.test(rel)) return false;
385
+ if (NODE_ONLY_DIR_RE.test(rel)) return false;
386
+ if (BROWSER_REACHABLE_DIR_RE.test(rel)) return true;
387
+ try {
388
+ const dir = path.dirname(path.isAbsolute(rel) ? rel : path.join(cwd, rel));
389
+ const sibs = fs.readdirSync(dir);
390
+ if (sibs.some(f => /\.html?$/i.test(f))) return true;
391
+ } catch (_) {}
392
+ return false;
393
+ }
394
+
377
395
  function autoRecordBrowserEditsFromBody(body, cwd, taskBase, verb) {
378
396
  if (!body || typeof body !== 'string') return;
379
397
  const BROWSER_EXT_RE = /[\w.\-/\\]+\.(?:html?|tsx?|jsx?|mjs|cjs|vue|svelte|css|scss|sass)\b/gi;
@@ -388,6 +406,7 @@ function autoRecordBrowserEditsFromBody(body, cwd, taskBase, verb) {
388
406
  let rel = String(raw).replace(/^["'`(]+|["'`)]+$/g, '').replace(/\\/g, '/');
389
407
  if (rel.startsWith('http://') || rel.startsWith('https://') || rel.startsWith('//')) continue;
390
408
  if (rel.includes('node_modules/') || rel.startsWith('.gm/') || rel.includes('/.gm/')) continue;
409
+ if (!isBrowserRelevantPath(rel, cwd)) continue;
391
410
  if (seen.has(rel)) continue;
392
411
  seen.add(rel);
393
412
  const abs = path.isAbsolute(rel) ? rel : path.join(cwd, rel);
package/gm.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.1433",
3
+ "version": "2.0.1435",
4
4
  "description": "Spool-dispatch orchestration engine with unified state machine, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
@@ -704,6 +704,7 @@ async function bootstrapPlugkit(sessionId, options) {
704
704
  ensureBuildToolIgnores(process.cwd());
705
705
  ensureNextStepWiring(process.cwd());
706
706
  ensureSkillMdCurrent();
707
+ ensureWrapperInstalled();
707
708
 
708
709
  const manifest = readManifest();
709
710
  let targetVersion = manifest.version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-skill",
3
- "version": "2.0.1433",
3
+ "version": "2.0.1435",
4
4
  "description": "Canonical universal harness — AI-native software engineering via skill-driven orchestration; bootstraps plugkit for task execution and session isolation. Install in any AI coding agent host.",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",