@kenhkl/agent-moss 0.17.15 → 0.17.16

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/dist/cli.js CHANGED
@@ -1890,7 +1890,7 @@ function isWriteOperation(actionType, actionDetail, writeKeywords = WRITE_KEYWOR
1890
1890
  (_m, _q, p) => ">" + p
1891
1891
  );
1892
1892
  const detailWithoutQuotes = detailUnquotedRedirect.replace(/'[^']*'|"[^"]*"/g, "");
1893
- if (/>{1,2}\s*(?!&)\S/.test(detailWithoutQuotes)) {
1893
+ if (/(?<![/\-=>])>{1,2}\s*(?!&)\S/.test(detailWithoutQuotes)) {
1894
1894
  return true;
1895
1895
  }
1896
1896
  }
@@ -2087,7 +2087,7 @@ function checkReadBeforeWrite(actionType, actionDetail, actionHistory, reason, c
2087
2087
  (_m, _q, p) => ">" + p
2088
2088
  );
2089
2089
  const detailNoQuotes = detailUnquotedRedirect.replace(/'[^']*'|"[^"]*"/g, "");
2090
- const hasRedirectWrite = />{1,2}\s*(?!&)\S/.test(detailNoQuotes);
2090
+ const hasRedirectWrite = /(?<![/\-=>])>{1,2}\s*(?!&)\S/.test(detailNoQuotes);
2091
2091
  let hasWriteSeg = hasRedirectWrite;
2092
2092
  if (!hasWriteSeg) {
2093
2093
  for (const seg of splitCommandSegments(actionDetail)) {
@@ -1060,7 +1060,7 @@ function isWriteOperation(actionType, actionDetail, writeKeywords = WRITE_KEYWOR
1060
1060
  (_m, _q, p) => ">" + p
1061
1061
  );
1062
1062
  const detailWithoutQuotes = detailUnquotedRedirect.replace(/'[^']*'|"[^"]*"/g, "");
1063
- if (/>{1,2}\s*(?!&)\S/.test(detailWithoutQuotes)) {
1063
+ if (/(?<![/\-=>])>{1,2}\s*(?!&)\S/.test(detailWithoutQuotes)) {
1064
1064
  return true;
1065
1065
  }
1066
1066
  }
@@ -1257,7 +1257,7 @@ function checkReadBeforeWrite(actionType, actionDetail, actionHistory, reason, c
1257
1257
  (_m, _q, p) => ">" + p
1258
1258
  );
1259
1259
  const detailNoQuotes = detailUnquotedRedirect.replace(/'[^']*'|"[^"]*"/g, "");
1260
- const hasRedirectWrite = />{1,2}\s*(?!&)\S/.test(detailNoQuotes);
1260
+ const hasRedirectWrite = /(?<![/\-=>])>{1,2}\s*(?!&)\S/.test(detailNoQuotes);
1261
1261
  let hasWriteSeg = hasRedirectWrite;
1262
1262
  if (!hasWriteSeg) {
1263
1263
  for (const seg of splitCommandSegments(actionDetail)) {
package/dist/server.js CHANGED
@@ -1598,7 +1598,7 @@ function isWriteOperation(actionType, actionDetail, writeKeywords = WRITE_KEYWOR
1598
1598
  (_m, _q, p) => ">" + p
1599
1599
  );
1600
1600
  const detailWithoutQuotes = detailUnquotedRedirect.replace(/'[^']*'|"[^"]*"/g, "");
1601
- if (/>{1,2}\s*(?!&)\S/.test(detailWithoutQuotes)) {
1601
+ if (/(?<![/\-=>])>{1,2}\s*(?!&)\S/.test(detailWithoutQuotes)) {
1602
1602
  return true;
1603
1603
  }
1604
1604
  }
@@ -1795,7 +1795,7 @@ function checkReadBeforeWrite(actionType, actionDetail, actionHistory, reason, c
1795
1795
  (_m, _q, p) => ">" + p
1796
1796
  );
1797
1797
  const detailNoQuotes = detailUnquotedRedirect.replace(/'[^']*'|"[^"]*"/g, "");
1798
- const hasRedirectWrite = />{1,2}\s*(?!&)\S/.test(detailNoQuotes);
1798
+ const hasRedirectWrite = /(?<![/\-=>])>{1,2}\s*(?!&)\S/.test(detailNoQuotes);
1799
1799
  let hasWriteSeg = hasRedirectWrite;
1800
1800
  if (!hasWriteSeg) {
1801
1801
  for (const seg of splitCommandSegments(actionDetail)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kenhkl/agent-moss",
3
- "version": "0.17.15",
3
+ "version": "0.17.16",
4
4
  "description": "Multi-layer security analysis engine for AI agents (TypeScript)",
5
5
  "type": "module",
6
6
  "main": "dist/server.js",