@lazyingart/agintiflow 0.20.120 → 0.20.121

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.120",
3
+ "version": "0.20.121",
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",
@@ -568,6 +568,18 @@ try {
568
568
  assert(failedOutsidePathAdvice?.failureKind === "workspace-path", "outside host path failure advice was not generated");
569
569
  assert(failedOutsidePathAdvice.suggestedCommand.includes("--sandbox-mode host"), "outside path advice did not suggest host mode");
570
570
  assert(!failedOutsidePathAdvice.suggestedCommand.includes("aginti run --sandbox host"), "outside path advice used legacy sandbox syntax");
571
+ const missingReadonlyHostPathAdvice = buildFailedCommandAdvice({
572
+ args: { command: "ls /home/lachlan/ProjectsLFS/ProteinStructure" },
573
+ commandPolicy: evaluateCommandPolicy("ls /home/lachlan/ProjectsLFS/ProteinStructure", dockerWorkspacePolicy),
574
+ commandResult: {
575
+ ok: false,
576
+ stdout: "",
577
+ stderr: "ls: cannot access '/home/lachlan/ProjectsLFS/ProteinStructure': No such file or directory",
578
+ },
579
+ config: dockerWorkspacePolicy,
580
+ state: { sessionId: "coding-readonly-missing-host-path-smoke" },
581
+ });
582
+ assert(missingReadonlyHostPathAdvice === null, "missing read-only host path should not trigger danger-mode permission advice");
571
583
  assert(
572
584
  shouldRunParallelScouts(
573
585
  {
@@ -249,7 +249,7 @@ export function looksLikeDockerWorkspacePathFailure(result = {}, config = {}) {
249
249
  }
250
250
 
251
251
  export function buildFailedCommandAdvice({ args = {}, commandPolicy = {}, commandResult = {}, config = {}, state = {} } = {}) {
252
- if (looksLikeDockerWorkspacePathFailure(commandResult, config)) {
252
+ if (looksLikeDockerWorkspacePathFailure(commandResult, config) && commandPolicy.category !== "read-only") {
253
253
  return {
254
254
  ...adviceForCategory("workspace-path", {
255
255
  toolName: "run_command",