@akasecurity/ai-tc-copilot 0.9.20-bootstrap.0 → 0.9.21

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.
@@ -10941,7 +10941,7 @@ var DetectedWebAccounts = object({
10941
10941
  var DetectedWebAccountsEnvelope = DetectedWebAccounts.extend({ accounts: array(unknown()) });
10942
10942
 
10943
10943
  // ../../packages/schema/src/zod/local.ts
10944
- var WORKSPACE_SETTINGS_SPEC_VERSION = 10;
10944
+ var WORKSPACE_SETTINGS_SPEC_VERSION = 11;
10945
10945
  var RunMode = _enum(["standalone", "attached"]);
10946
10946
  var ControlPlaneConnection = object({
10947
10947
  endpoint: string2().min(1),
@@ -11043,6 +11043,15 @@ var BodyRetention = object({
11043
11043
  // candidate set that is already bounded by "delivered, or never owed".
11044
11044
  retainDays: number2().int().min(1).max(3650).default(BODY_RETENTION_DEFAULT_DAYS)
11045
11045
  }).meta({ id: "BodyRetention" });
11046
+ var MAX_PROTECTED_PATH_ENTRIES = 256;
11047
+ var MAX_PROTECTED_PATH_ENTRY_CHARS = 1024;
11048
+ var ProtectedPathEntry = string2().trim().min(1).max(MAX_PROTECTED_PATH_ENTRY_CHARS);
11049
+ var ProtectedPaths = array(unknown()).transform(
11050
+ (entries) => entries.flatMap((entry) => {
11051
+ const parsed = ProtectedPathEntry.safeParse(entry);
11052
+ return parsed.success ? [parsed.data] : [];
11053
+ }).slice(0, MAX_PROTECTED_PATH_ENTRIES)
11054
+ );
11046
11055
  var WorkspaceSettings = object({
11047
11056
  specVersion: number2().int().positive().default(WORKSPACE_SETTINGS_SPEC_VERSION),
11048
11057
  runMode: RunMode.default("standalone"),
@@ -11133,7 +11142,18 @@ var WorkspaceSettings = object({
11133
11142
  bodyRetention: BodyRetention.default({
11134
11143
  enabled: false,
11135
11144
  retainDays: BODY_RETENTION_DEFAULT_DAYS
11136
- })
11145
+ }),
11146
+ // Folders and file name globs whose files a tool call may not touch
11147
+ // unflagged: a Read, Grep, Glob or Bash naming one becomes a finding under
11148
+ // the command-risk pack's policy. Absent means none are protected, and
11149
+ // protectedPathsOf is the one reader.
11150
+ //
11151
+ // A bad entry is dropped on its own (see ProtectedPaths); `.catch(undefined)`
11152
+ // reads a value that is not a list at all as no list. A settings.json that
11153
+ // fails this schema reads as the unonboarded defaults, and the next save
11154
+ // writes those back over it, so a malformed value must not cost every other
11155
+ // setting. Not a ManagedSettingKey.
11156
+ protectedPaths: ProtectedPaths.optional().catch(void 0)
11137
11157
  });
11138
11158
 
11139
11159
  // ../../packages/schema/src/zod/agent-scope.ts
@@ -11297,6 +11317,9 @@ var ConfigInventoryAck = object({
11297
11317
  accepted: number2().int().nonnegative()
11298
11318
  });
11299
11319
 
11320
+ // ../../packages/schema/src/zod/credential-status.ts
11321
+ var CredentialStatus = _enum(["rotation_overdue", "exposed"]).meta({ id: "CredentialStatus" });
11322
+
11300
11323
  // ../../packages/schema/src/zod/registry.ts
11301
11324
  var Namespace = string2().regex(/^[a-z][a-z0-9-]*$/);
11302
11325
  var PackId = string2().regex(/^[a-z][a-z0-9-]*$/);
@@ -13858,6 +13881,7 @@ function worstProbeMs(rule, now = wallClock, corroborate) {
13858
13881
  }
13859
13882
  var CPU_CORROBORATION_SHARE = 0.2;
13860
13883
  var CORROBORATION_FLOOR_MS = BUDGET_MS * CPU_CORROBORATION_SHARE;
13884
+ var MAX_GROWTH_RATIO = 3;
13861
13885
  function repeatTo(unit, length) {
13862
13886
  return unit.repeat(Math.ceil(length / unit.length)).slice(0, length);
13863
13887
  }
@@ -13894,6 +13918,8 @@ var GROWTH_CORPORA = [
13894
13918
  build: (length) => repeatTo(unit, length)
13895
13919
  }))
13896
13920
  ];
13921
+ var QUADRATIC_GROWTH = 4;
13922
+ var SAMPLED_GROWTH = MAX_GROWTH_RATIO ** 2 / QUADRATIC_GROWTH;
13897
13923
  function checkRuleTiming(rule, corroborate) {
13898
13924
  const { ms, probe, corroboratedMs } = worstProbeMs(rule, wallClock, corroborate);
13899
13925
  const work = corroboratedMs ?? 0;