auto-mode 3.1.0 → 3.1.2

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.
@@ -1,5 +1,5 @@
1
1
  import { t as findEditFields } from "./find-edit-fields-CzkhPA4j.js";
2
- import { t as findSecret } from "./find-secret-DUEWxfkc.js";
2
+ import { t as findSecret } from "./find-secret-BWeJTPPm.js";
3
3
  import { basename, relative, sep } from "node:path";
4
4
  import { Buffer } from "node:buffer";
5
5
  //#region src/bypass/classify-edit.ts
@@ -1,4 +1,4 @@
1
- import { t as findSecret } from "./find-secret-DUEWxfkc.js";
1
+ import { t as findSecret } from "./find-secret-BWeJTPPm.js";
2
2
  import { Buffer } from "node:buffer";
3
3
  //#region src/bypass/classify-reply-message.ts
4
4
  const MAX_SCANNED_BYTES = 262144;
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { C as pickJudgeLane, E as updateJSONFile, S as CLI_LIMITS, T as resolveXDGDir, _ as readCheckout, a as resolveSessionScopePath, b as loadConfig, c as splitGitCommand, d as loadCheckoutFacts, f as writeActionDiagnostic, g as isUnresolvedWord, h as resolveShellPath, i as classifyAction, l as loadPolicy, m as collectShellCommands, n as readRuntime, o as loadSessionScope, p as toRepositorySlug, s as EMPTY_SESSION_SCOPE, t as parseActionRequest, u as resolveShippedPolicyDir, v as readGitEntry, w as M, x as runCapped, y as DEFAULT_SCOPE_SOURCES } from "./parse-action-request-DySYvZxl.js";
2
+ import { C as pickJudgeLane, E as updateJSONFile, S as CLI_LIMITS, T as resolveXDGDir, _ as readCheckout, a as resolveSessionScopePath, b as loadConfig, c as splitGitCommand, d as loadCheckoutFacts, f as writeActionDiagnostic, g as isUnresolvedWord, h as resolveShellPath, i as classifyAction, l as loadPolicy, m as collectShellCommands, n as readRuntime, o as loadSessionScope, p as toRepositorySlug, s as EMPTY_SESSION_SCOPE, t as parseActionRequest, u as resolveShippedPolicyDir, v as readGitEntry, w as M, x as runCapped, y as DEFAULT_SCOPE_SOURCES } from "./parse-action-request-qyh3MBGg.js";
3
3
  import { a as literal, d as string, i as discriminatedUnion, r as boolean, s as number, u as strictObject } from "./schemas-B80Yxv6m.js";
4
4
  import { createHash, randomUUID } from "node:crypto";
5
5
  import { chmod, mkdir, open, readFile, realpath, stat } from "node:fs/promises";
@@ -7621,7 +7621,7 @@ const BETTERLEAKS_RULES = {
7621
7621
  {
7622
7622
  "id": "aws-amazon-bedrock-api-key-short-lived",
7623
7623
  "pattern": {
7624
- "source": "bedrock-api-key-YmVkcm9jay5hbWF6b25hd3MuY29t",
7624
+ "source": "[b]edrock-api-key-YmVkcm9jay5hbWF6b25hd3MuY29t",
7625
7625
  "flags": "",
7626
7626
  "engine": "js"
7627
7627
  },
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as loadConfig$1, i as classifyAction$1, n as readRuntime, r as readHostEnvironment, t as parseActionRequest } from "./parse-action-request-DySYvZxl.js";
1
+ import { b as loadConfig$1, i as classifyAction$1, n as readRuntime, r as readHostEnvironment, t as parseActionRequest } from "./parse-action-request-qyh3MBGg.js";
2
2
  //#region src/index.ts
3
3
  function classifyAction(request, config, options = {}) {
4
4
  return classifyAction$1(request, config, {
@@ -1,6 +1,6 @@
1
1
  import { a as literal, c as object, d as string, f as union, l as record, m as prettifyError, n as array, o as looseObject, p as unknown, r as boolean, s as number, t as _enum, u as strictObject } from "./schemas-B80Yxv6m.js";
2
2
  import { t as findEditFields } from "./find-edit-fields-CzkhPA4j.js";
3
- import { t as findSecret } from "./find-secret-DUEWxfkc.js";
3
+ import { t as findSecret } from "./find-secret-BWeJTPPm.js";
4
4
  import { createHash, randomUUID } from "node:crypto";
5
5
  import { access, appendFile, link, lstat, mkdir, open, readFile, realpath, rename, rm, stat, writeFile } from "node:fs/promises";
6
6
  import { basename, dirname, isAbsolute, join, matchesGlob, normalize, parse, relative, resolve } from "node:path";
@@ -1008,7 +1008,7 @@ async function tryClassifyEdit(request, scope, host, reader = {}) {
1008
1008
  ]);
1009
1009
  if (target === null || GIT_OVERRIDES.some((name) => host.env[name] !== void 0)) return null;
1010
1010
  const [checkout, current] = await Promise.all([files.readCheckout(dirname(target), host.env), request.toolName === "Edit" ? files.readFile(target).catch(() => null) : null]);
1011
- return (await import("./classify-edit-O8JNCVde.js")).classifyEdit({
1011
+ return (await import("./classify-edit-CM_mZTT9.js")).classifyEdit({
1012
1012
  toolName: request.toolName,
1013
1013
  toolInput: request.toolInput,
1014
1014
  requested,
@@ -6170,7 +6170,7 @@ async function classifyEditBypass(ctx) {
6170
6170
  async function classifyReplyChannel(ctx) {
6171
6171
  const channel = ctx.hasConfiguredDenies || ctx.scope === null ? null : findReplyChannel(ctx.request.toolName, ctx.request.toolInput, ctx.scope.replyChannels);
6172
6172
  if (channel === null) return { kind: "pass" };
6173
- if ((await import("./classify-reply-message-CrZ6S-AR.js")).classifyReplyMessage(ctx.request.toolInput).kind !== "bypass") return { kind: "pass" };
6173
+ if ((await import("./classify-reply-message-CdHLlNXA.js")).classifyReplyMessage(ctx.request.toolInput).kind !== "bypass") return { kind: "pass" };
6174
6174
  return {
6175
6175
  kind: "decided",
6176
6176
  outcome: {