@brainervirus/workit-cursor 8.26.0 → 8.26.1

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.
@@ -2,7 +2,7 @@
2
2
  "name": "workit",
3
3
  "displayName": "Workit",
4
4
  "description": "Adaptive Workit workflow with shared MCP tools and native Cursor hooks",
5
- "version": "8.26.0",
5
+ "version": "8.26.1",
6
6
  "author": {
7
7
  "name": "Cristhofer Pincetti"
8
8
  },
@@ -19841,7 +19841,7 @@ var init_policy = __esm(() => {
19841
19841
  });
19842
19842
 
19843
19843
  // packages/workit-core/src/hooks/delivery-verbs.ts
19844
- var WORKIT_ALLOWED_VERBS, WORKIT_BYPASS_FLAGS, ALLOWED, isBypass = (word) => WORKIT_BYPASS_FLAGS.some((flag) => word === flag || word.startsWith(`${flag}=`)), isWorkitWord = (word) => /^(?:.*[\\/])?workit(?:-cli)?$/u.test(word), bypassReason = (flag) => `Workit: \`${flag}\` overrides a Workit gate, so the user decides this call (no allow rule covers it).`, EXPANSION_REASON = "Workit: an expansion before `--` could become a bypass flag, so the user decides this call (no allow rule covers it).", workitBypassFlag = (command, dialect = "posix") => {
19844
+ var WORKIT_ALLOWED_VERBS, WORKIT_BYPASS_FLAGS, ALLOWED, isBypass = (word) => WORKIT_BYPASS_FLAGS.some((flag) => word === flag || word.startsWith(`${flag}=`)), isWorkitWord = (word) => /^(?:.*[\\/])?workit(?:-cli)?$/u.test(word), bypassReason = (flag) => `Workit: \`${flag}\` overrides a Workit gate, so the user decides this call (no allow rule covers it).`, workitBypassFlag = (command, dialect = "posix") => {
19845
19845
  for (const segment of segmentsOf(command, dialect)) {
19846
19846
  if (segment.unanalyzable) {
19847
19847
  const text = command.replaceAll(/['"\\`]/gu, "");
@@ -19858,9 +19858,6 @@ var WORKIT_ALLOWED_VERBS, WORKIT_BYPASS_FLAGS, ALLOWED, isBypass = (word) => WOR
19858
19858
  const flag = (end < 0 ? words : words.slice(0, end)).find(isBypass);
19859
19859
  if (flag)
19860
19860
  return bypassReason(flag.split("=")[0] ?? flag);
19861
- const limit = start + 1 + (end < 0 ? words.length : end);
19862
- if (segment.expands?.some((index) => index > start && index < limit))
19863
- return EXPANSION_REASON;
19864
19861
  }
19865
19862
  return null;
19866
19863
  };
@@ -20015,7 +20015,6 @@ var ALLOWED = new Set(WORKIT_ALLOWED_VERBS);
20015
20015
  var isBypass = (word) => WORKIT_BYPASS_FLAGS.some((flag) => word === flag || word.startsWith(`${flag}=`));
20016
20016
  var isWorkitWord = (word) => /^(?:.*[\\/])?workit(?:-cli)?$/u.test(word);
20017
20017
  var bypassReason = (flag) => `Workit: \`${flag}\` overrides a Workit gate, so the user decides this call (no allow rule covers it).`;
20018
- var EXPANSION_REASON = "Workit: an expansion before `--` could become a bypass flag, so the user decides this call (no allow rule covers it).";
20019
20018
  var workitBypassFlag = (command, dialect = "posix") => {
20020
20019
  for (const segment of segmentsOf(command, dialect)) {
20021
20020
  if (segment.unanalyzable) {
@@ -20033,9 +20032,6 @@ var workitBypassFlag = (command, dialect = "posix") => {
20033
20032
  const flag = (end < 0 ? words : words.slice(0, end)).find(isBypass);
20034
20033
  if (flag)
20035
20034
  return bypassReason(flag.split("=")[0] ?? flag);
20036
- const limit = start + 1 + (end < 0 ? words.length : end);
20037
- if (segment.expands?.some((index) => index > start && index < limit))
20038
- return EXPANSION_REASON;
20039
20035
  }
20040
20036
  return null;
20041
20037
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainervirus/workit-cursor",
3
- "version": "8.26.0",
3
+ "version": "8.26.1",
4
4
  "private": false,
5
5
  "description": "Workit Cursor plugin — shared MCP transport, native hooks, and sixteen method skills",
6
6
  "keywords": [
@@ -46,8 +46,8 @@
46
46
  "build": "bun scripts/build.ts"
47
47
  },
48
48
  "devDependencies": {
49
- "@brainervirus/workit-core": "^8.26.0",
50
- "@brainervirus/workit-mcp": "^8.26.0"
49
+ "@brainervirus/workit-core": "^8.26.1",
50
+ "@brainervirus/workit-mcp": "^8.26.1"
51
51
  },
52
52
  "engines": {
53
53
  "node": ">=24"