gm-skill 2.0.1676 → 2.0.1677
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/gm-plugkit/package.json +1 -1
- package/gm-plugkit/plugkit.version +1 -1
- package/gm.json +1 -1
- package/lib/spool-dispatch.js +5 -3
- package/package.json +1 -1
package/gm-plugkit/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-plugkit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1677",
|
|
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": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.729
|
package/gm.json
CHANGED
package/lib/spool-dispatch.js
CHANGED
|
@@ -319,15 +319,17 @@ function checkDispatchGates(sessionId, operation, extra) {
|
|
|
319
319
|
.split(/&&|\|\||[;&|]|(?<=["'])\s*&\s*(?=["'])/)
|
|
320
320
|
.map((s) => s.trim())
|
|
321
321
|
.filter(Boolean);
|
|
322
|
+
const GIT_SUBCOMMAND_RE = /(^|[\s"'(;&|])git(\.exe)?\s+(add|am|apply|bisect|branch|checkout|cherry-pick|clean|clone|commit|config|diff|fetch|finalize|gc|grep|init|log|merge|mv|notes|pull|push|rebase|reflog|remote|reset|restore|revert|rm|show|stash|status|submodule|switch|tag|worktree)\b/i;
|
|
322
323
|
const gitDominant = segments.some((seg) => {
|
|
323
|
-
const
|
|
324
|
+
const stripped = seg.replace(/^["']|["']$/g, '');
|
|
325
|
+
const tokens = stripped.split(/\s+/).filter(Boolean);
|
|
324
326
|
for (let i = 0; i < tokens.length; i++) {
|
|
325
327
|
const tok = tokens[i].replace(/^["']|["']$/g, '');
|
|
326
328
|
if (isGitToken(tok)) return true;
|
|
327
329
|
if (tok === 'env' || tok === 'exec' || tok === 'cd') continue;
|
|
328
330
|
break;
|
|
329
331
|
}
|
|
330
|
-
return
|
|
332
|
+
return GIT_SUBCOMMAND_RE.test(stripped);
|
|
331
333
|
});
|
|
332
334
|
if (gitDominant) {
|
|
333
335
|
logDeviation('deviation.bash-git-bypass', { verb: extra.verb, cmd: cmd.slice(0, 80) });
|
|
@@ -479,4 +481,4 @@ function checkDispatchGates(sessionId, operation, extra) {
|
|
|
479
481
|
return { allowed: true };
|
|
480
482
|
}
|
|
481
483
|
|
|
482
|
-
module.exports = { checkDispatchGates, isWorktreeDirty, hasUnpushedCommits, unsolicitedDocs, logDeviation, markInstructionSeen, hasDispatchedInstruction, isSpoolPollCommand, SPOOL_POLL_REASON, recordBrowserEdit, markBrowserWitnessed, clearBrowserTurnMarkers, isBrowserRunningFile, readBrowserEdits, isBrowserWitnessed };
|
|
484
|
+
module.exports = { checkDispatchGates, isWorktreeDirty, hasUnpushedCommits, unsolicitedDocs, logDeviation, markInstructionSeen, hasDispatchedInstruction, isSpoolPollCommand, isNativeSearchCommand, SPOOL_POLL_REASON, recordBrowserEdit, markBrowserWitnessed, clearBrowserTurnMarkers, isBrowserRunningFile, readBrowserEdits, isBrowserWitnessed };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-skill",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1677",
|
|
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",
|