auto-mode 1.0.0 → 1.0.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.
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { C as resolveXDGDir, D as string, E as strictObject, S as CLI_LIMITS, T as number, _ as findGitEntry, a as EMPTY_SESSION_SCOPE, b as readHostEnvironment, c as loadPolicy, d as writeActionDiagnostic, f as toRepositorySlug, g as findCheckout, h as isUnresolvedWord, i as loadSessionScope, l as resolveShippedPolicyDir, m as resolveShellPath, n as classifyAction, o as splitGitCommand, p as collectShellCommands, r as resolveSessionScopePath, s as M, t as parseActionRequest, u as loadCheckoutFacts, v as DEFAULT_SCOPE_SOURCES, w as updateJSONFile, x as runCapped, y as loadConfig } from "./parse-action-request-
|
|
2
|
+
import { C as resolveXDGDir, D as string, E as strictObject, S as CLI_LIMITS, T as number, _ as findGitEntry, a as EMPTY_SESSION_SCOPE, b as readHostEnvironment, c as loadPolicy, d as writeActionDiagnostic, f as toRepositorySlug, g as findCheckout, h as isUnresolvedWord, i as loadSessionScope, l as resolveShippedPolicyDir, m as resolveShellPath, n as classifyAction, o as splitGitCommand, p as collectShellCommands, r as resolveSessionScopePath, s as M, t as parseActionRequest, u as loadCheckoutFacts, v as DEFAULT_SCOPE_SOURCES, w as updateJSONFile, x as runCapped, y as loadConfig } from "./parse-action-request-BfkmQxEC.js";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import { chmod, mkdir, open, readFile, realpath, stat } from "node:fs/promises";
|
|
5
5
|
import { basename, dirname, isAbsolute, join, resolve } from "node:path";
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as classifyAction, t as parseActionRequest, y as loadConfig } from "./parse-action-request-
|
|
1
|
+
import { n as classifyAction, t as parseActionRequest, y as loadConfig } from "./parse-action-request-BfkmQxEC.js";
|
|
2
2
|
export { classifyAction, loadConfig, parseActionRequest };
|
|
@@ -7874,7 +7874,7 @@ function collectScopeFindings(action, scope, scratchPaths = SCRATCH_PATHS) {
|
|
|
7874
7874
|
...action.tool.startsWith("mcp__") ? collectToolFindings(action, scope) : [],
|
|
7875
7875
|
...action.tool === "Bash" && typeof command === "string" ? collectCommandFindings(command, action.cwd, action.cwd, scope, scratchPaths) : []
|
|
7876
7876
|
];
|
|
7877
|
-
return findings.filter((finding, index) => findings.findIndex((other) => other.kind === finding.kind && other.target === finding.target) === index);
|
|
7877
|
+
return findings.filter((finding, index) => findings.findIndex((other) => other.kind === finding.kind && other.target === finding.target && JSON.stringify(other.grant) === JSON.stringify(finding.grant)) === index);
|
|
7878
7878
|
}
|
|
7879
7879
|
const FILE_WRITE_TOOLS = /* @__PURE__ */ new Set([
|
|
7880
7880
|
"Edit",
|
|
@@ -9286,12 +9286,12 @@ function findNoVerifyOption(args, subcommand) {
|
|
|
9286
9286
|
const arg = args[index] ?? "";
|
|
9287
9287
|
if (arg.startsWith("--")) {
|
|
9288
9288
|
const [option = "", ...value] = arg.slice(2).split("=");
|
|
9289
|
-
if (option.startsWith("no-ve") && "no-verify".startsWith(option)) found =
|
|
9289
|
+
if (option.startsWith("no-ve") && "no-verify".startsWith(option)) found = "--no-verify";
|
|
9290
9290
|
else if (option.startsWith("veri") && "verify".startsWith(option)) found = null;
|
|
9291
9291
|
if (subcommand === "commit" && value.length === 0 && COMMIT_VALUED_LONG.has(findCommitOption(option) ?? "")) index += 1;
|
|
9292
9292
|
} else if (subcommand === "commit" && arg.startsWith("-") && arg !== "-") {
|
|
9293
9293
|
const cluster = parseCommitCluster(arg);
|
|
9294
|
-
if (cluster.hasNoVerify) found =
|
|
9294
|
+
if (cluster.hasNoVerify) found = "-n";
|
|
9295
9295
|
if (cluster.takesNextWord) index += 1;
|
|
9296
9296
|
}
|
|
9297
9297
|
index += 1;
|