@lazyingart/agintiflow 0.20.221 → 0.20.222

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazyingart/agintiflow",
3
- "version": "0.20.221",
3
+ "version": "0.20.222",
4
4
  "type": "module",
5
5
  "description": "AgInTiFlow is a project-aware agent workspace for hybrid wet-dry R&D, hardware-aware intelligence, software automation, and industrial workflows.",
6
6
  "license": "Apache-2.0",
@@ -685,6 +685,20 @@ try {
685
685
  exactReadOnlyGitIdentityLoopPolicy.writesWorkspace === false,
686
686
  "bounded per-repository Git identity/status audit incorrectly required destructive host permission"
687
687
  );
688
+ const exactReadOnlyGitRepositoryAudit =
689
+ 'for d in /home/lachlan/ProjectsLFS/AgenticApp /home/lachlan/ProjectsLFS/Musia /home/lachlan/ProjectsLFS/LALACHAN /home/lachlan/DiskMech/Projects/lazyedit; do echo "=== $d ==="; git -C "$d" config --get user.name; git -C "$d" config --get user.email; git -C "$d" status --porcelain=v1 --branch; echo "--- remotes ---"; git -C "$d" remote -v; echo; done';
690
+ const exactReadOnlyGitRepositoryAuditPolicy = evaluateCommandPolicy(
691
+ exactReadOnlyGitRepositoryAudit,
692
+ hostReadRootPolicy
693
+ );
694
+ assert(
695
+ exactReadOnlyGitRepositoryAuditPolicy.allowed &&
696
+ exactReadOnlyGitRepositoryAuditPolicy.category === "read-only" &&
697
+ exactReadOnlyGitRepositoryAuditPolicy.boundedForLoop === true &&
698
+ exactReadOnlyGitRepositoryAuditPolicy.needsNetwork === false &&
699
+ exactReadOnlyGitRepositoryAuditPolicy.writesWorkspace === false,
700
+ "bounded per-repository Git identity/status/remote audit incorrectly required destructive host permission"
701
+ );
688
702
  for (const unsafeEchoSubstitution of [
689
703
  'echo "VALUE=$(rm -rf report.md)"',
690
704
  'echo "VALUE=$(cp README.md report.md)"',
@@ -716,6 +730,8 @@ try {
716
730
  'for d in /tmp; do echo "VALUE=$(git -C "$d" config --global user.name)"; done',
717
731
  'for d in /tmp; do echo "VALUE=$(git -C "$d" status; rm -rf report.md)"; done',
718
732
  'for d in /tmp; do git -C "$d" status --short > report.md; done',
733
+ 'for d in /tmp; do git -C "$d" remote add origin https://example.com/repo.git; done',
734
+ 'for d in /tmp; do git -C "$d" remote set-url origin https://example.com/repo.git; done',
719
735
  ]) {
720
736
  const unsafeLoopSubstitutionPolicy = evaluateCommandPolicy(
721
737
  unsafeLoopSubstitution,
@@ -1158,7 +1158,8 @@ function classifyScopedReadOnlyGitProbe(normalized = "") {
1158
1158
  (args.length === 1 && ["user.name", "user.email"].includes(args[0])) ||
1159
1159
  (args.length === 2 && args[0] === "--get" && ["user.name", "user.email"].includes(args[1]))
1160
1160
  );
1161
- if (!safeStatus && !safeIdentityConfig) return null;
1161
+ const safeRemoteList = operation === "remote" && args.length === 1 && args[0] === "-v";
1162
+ if (!safeStatus && !safeIdentityConfig && !safeRemoteList) return null;
1162
1163
 
1163
1164
  return {
1164
1165
  category: "read-only",