@akasecurity/ai-tc-codex 0.9.9 → 0.9.10

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/scripts/intro.js CHANGED
@@ -492,7 +492,7 @@ var require_ignore = __commonJS({
492
492
  });
493
493
 
494
494
  // src/intro.ts
495
- import { readFileSync as readFileSync14 } from "fs";
495
+ import { readFileSync as readFileSync15 } from "fs";
496
496
 
497
497
  // src/present.ts
498
498
  var SHADE = {
@@ -549,7 +549,7 @@ function fenced(body) {
549
549
 
550
550
  // ../../packages/plugin-sdk/src/config.ts
551
551
  import { existsSync as existsSync7 } from "fs";
552
- import { join as join12 } from "path";
552
+ import { join as join13 } from "path";
553
553
 
554
554
  // ../../packages/persistence/src/attached-derived.ts
555
555
  import { rmSync } from "fs";
@@ -21854,6 +21854,26 @@ var AttachTokenResponse = external_exports.union([
21854
21854
  AttachTokenExpired,
21855
21855
  external_exports.object({ status: printable(64) })
21856
21856
  ]);
21857
+ var DeviceCommandKind = external_exports.enum(["shares_rescan"]);
21858
+ var DeviceCommand = external_exports.object({
21859
+ id: printable(128).min(1),
21860
+ kind: DeviceCommandKind,
21861
+ issuedAt: printable(64).min(1),
21862
+ expiresAt: printable(64).min(1)
21863
+ }).strict();
21864
+ var DeviceCommandPollResponse = external_exports.object({ command: DeviceCommand.nullable() });
21865
+ var DeviceCommandFailureReason = external_exports.enum(["scan_failed", "no_projects", "expired"]);
21866
+ var DeviceCommandAckBody = external_exports.discriminatedUnion("outcome", [
21867
+ external_exports.object({
21868
+ outcome: external_exports.literal("reported"),
21869
+ projectsScanned: external_exports.number().int().nonnegative()
21870
+ }).strict(),
21871
+ external_exports.object({
21872
+ outcome: external_exports.literal("failed"),
21873
+ reason: DeviceCommandFailureReason,
21874
+ projectsScanned: external_exports.number().int().nonnegative()
21875
+ }).strict()
21876
+ ]);
21857
21877
 
21858
21878
  // ../../packages/schema/src/zod/registry.ts
21859
21879
  var Namespace = external_exports.string().regex(/^[a-z][a-z0-9-]*$/);
@@ -22020,7 +22040,7 @@ var PackManifest = external_exports.object({
22020
22040
  }).meta({ id: "PackManifest" });
22021
22041
 
22022
22042
  // ../../packages/schema/src/zod/detection.ts
22023
- var OriginEnum = external_exports.enum(["library"]).meta({ id: "OriginEnum" });
22043
+ var OriginEnum = external_exports.enum(["library", "custom"]).meta({ id: "OriginEnum" });
22024
22044
  var DetectionFilterEnum = external_exports.enum(["all", "library", "custom", "customized", "updates"]);
22025
22045
  var LibraryStateEnum = external_exports.enum(["new", "imported", "update"]).meta({ id: "LibraryStateEnum" });
22026
22046
  var DetectionCounts = external_exports.object({
@@ -22215,8 +22235,9 @@ var Event = external_exports.object({
22215
22235
  metadata: EventMetadata.optional()
22216
22236
  }).meta({ id: "Event" });
22217
22237
  var IngestEvent = Event.meta({ id: "IngestEvent" });
22238
+ var INGEST_BATCH_MAX = 100;
22218
22239
  var IngestBatch = external_exports.object({
22219
- events: external_exports.array(IngestEvent).min(1).max(100),
22240
+ events: external_exports.array(IngestEvent).min(1).max(INGEST_BATCH_MAX),
22220
22241
  // Dedup policy for this batch. Id-dedup ALWAYS applies. 'content-hash'
22221
22242
  // additionally rejects any event whose contentHash the store has already
22222
22243
  // recorded — for re-runnable bulk ingest (worktree scan, transcript
@@ -22342,6 +22363,225 @@ var PatchInstalledPackRequest = external_exports.object({
22342
22363
  message: "At least one field must be provided"
22343
22364
  }).meta({ id: "PatchInstalledPackRequest" });
22344
22365
 
22366
+ // ../../packages/schema/src/zod/policy.ts
22367
+ var PolicyScope = external_exports.enum(["global", "repo", "user"]).meta({ id: "PolicyScope" });
22368
+ var PolicyTarget = external_exports.union([external_exports.object({ ruleId: external_exports.string() }), external_exports.object({ category: DetectionCategory })]).meta({ id: "PolicyTarget" });
22369
+ var PolicyKind = external_exports.enum(["builtin", "custom"]).meta({ id: "PolicyKind" });
22370
+ var PolicyProvenance = external_exports.enum(["builtin", "authored"]).meta({ id: "PolicyProvenance" });
22371
+ var Policy = external_exports.object({
22372
+ id: external_exports.guid(),
22373
+ scope: PolicyScope,
22374
+ target: PolicyTarget,
22375
+ action: ActionTaken,
22376
+ enabled: external_exports.boolean().default(true),
22377
+ customKeywords: external_exports.array(external_exports.string()).optional(),
22378
+ // Display name — optional so older policy rows without name still parse.
22379
+ // Added for the findings API (policy.name column migration).
22380
+ name: external_exports.string().optional(),
22381
+ // Whether an AUTHORED policy governs this row's target — not a claim about
22382
+ // which row this is. A producer that collapses several rows onto one target
22383
+ // must carry the marker onto whichever row survives, or the collapse decides
22384
+ // the answer; a survivor may therefore be a built-in expansion still marked
22385
+ // 'authored' because an authored sibling targeted the same thing.
22386
+ // Optional so an older producer — and an older on-disk cache — still parses;
22387
+ // absent reads as 'builtin', which is the behaviour that predates the field.
22388
+ //
22389
+ // Deliberately NOT `kind`/PolicyKind: that name and that enum answer which
22390
+ // built-in archetype catalog entry a policy is, which every catalog surface
22391
+ // reads and which a caller may state. This one is a statement the PRODUCER
22392
+ // of a bundle makes about a row, and only the bundle builder ever stamps it
22393
+ // — the CRUD routes neither accept nor set it.
22394
+ //
22395
+ // A device consumes this in exactly one direction: an 'authored' policy
22396
+ // arriving from a control plane marks the rules it targets as not
22397
+ // locally re-assignable. That can only ever ADD a refusal, never relax one,
22398
+ // which is what makes it safe to honour from an unsigned cache — the same
22399
+ // test `prohibitedModels` passes and `reversibleRuleIds` fails.
22400
+ provenance: PolicyProvenance.optional()
22401
+ }).meta({ id: "Policy" });
22402
+ var PolicyBundle = external_exports.object({
22403
+ version: external_exports.string(),
22404
+ policies: external_exports.array(Policy),
22405
+ // Rules from the installed marketplace packs (snapshotted by the
22406
+ // control plane). The plugin registers these in addition to its bundled
22407
+ // packs. Optional so older backends — and older on-disk caches — that omit
22408
+ // the field still parse; consumers read `bundle.rules ?? []`.
22409
+ rules: external_exports.array(Rule).optional(),
22410
+ // When true, `rules` IS the complete effective ruleset and the runtime must
22411
+ // NOT merge its compiled-in bundled packs — the standalone gateway sets this
22412
+ // after reading the user's installed snapshot (installed_packs, enabled
22413
+ // packs only), which is how detection updates stay manual: new bundled
22414
+ // rules run only after the user applies the pack update. Absent/false keeps
22415
+ // the historical composition (bundled packs + rules) — older caches.
22416
+ rulesComplete: external_exports.boolean().optional(),
22417
+ // Active detection exceptions, evaluation subset only (see
22418
+ // ExceptionBundleEntry). Optional so older bundle producers — and older
22419
+ // on-disk caches — that omit the field still parse; consumers read
22420
+ // `bundle.exceptions ?? []`.
22421
+ exceptions: external_exports.array(ExceptionBundleEntry).optional(),
22422
+ // Rule ids whose pack is assigned a REVERSIBLE archetype (Redact & Vault).
22423
+ // A second axis over the same `redact` action, carried beside the policies
22424
+ // rather than on them: nothing writes ruleId-targeted policies to disk, so
22425
+ // widening Policy itself would change a persisted shape to express something
22426
+ // only the in-memory bundle needs. Optional so an older producer — or an
22427
+ // older on-disk cache — still parses; consumers read `?? []` and get the
22428
+ // pre-existing one-way behaviour, which is the safe direction to default.
22429
+ reversibleRuleIds: external_exports.array(external_exports.string()).optional(),
22430
+ // Installed pack version, keyed by ruleId, for rules in `rules` that came
22431
+ // from a versioned installed pack. Optional so older backends — and older
22432
+ // on-disk caches — that omit the field still parse; consumers fall back to
22433
+ // the rule's own spec version. NOT the bundle version above — see
22434
+ // installedRuleset's ruleVersions for the source of truth.
22435
+ ruleVersions: external_exports.record(external_exports.string(), external_exports.string()).optional(),
22436
+ // Model ids (the raw `model` string a harness reports, e.g.
22437
+ // `claude-opus-4-1`) the tenant has PROHIBITED. The plugin refuses to switch
22438
+ // a session onto one (PreModelSwitch) and refuses a turn that would run on
22439
+ // one (UserPromptSubmit). Optional so an older backend — and an older
22440
+ // on-disk cache — still parses; consumers read `?? []`, which is the
22441
+ // unenforced behaviour that predates this field and the safe direction to
22442
+ // default.
22443
+ //
22444
+ // Ids, not display names: the governance decision is keyed on the exact
22445
+ // string the harness reports (`model_status_override.versionId` in the
22446
+ // control plane), so no name resolution stands between the decision and the
22447
+ // comparison.
22448
+ prohibitedModels: external_exports.array(external_exports.string()).optional(),
22449
+ customKeywords: external_exports.array(external_exports.string()),
22450
+ fetchedAt: external_exports.iso.datetime()
22451
+ }).meta({ id: "PolicyBundle" });
22452
+ var POLICY_BUNDLE_SHAPE_ID = [
22453
+ ...Object.keys(PolicyBundle.shape),
22454
+ ...Object.keys(Policy.shape).map((key) => `policies.${key}`),
22455
+ ...PolicyTarget.options.flatMap((member) => "shape" in member ? Object.keys(member.shape) : []).map((key) => `policies.target.${key}`),
22456
+ ...Object.keys(ExceptionBundleEntry.shape).map((key) => `exceptions.${key}`)
22457
+ ].sort().join(",");
22458
+ var OBSERVE_ONLY_CATEGORIES = ["config"];
22459
+ var ENFORCEABLE_CATEGORIES = DetectionCategory.options.filter((c) => !OBSERVE_ONLY_CATEGORIES.includes(c));
22460
+ var CATEGORY_PEAK_SEVERITY = {
22461
+ secret: "critical",
22462
+ financial: "critical",
22463
+ // core-financial/credit-card
22464
+ code_flaw: "critical",
22465
+ pii: "high",
22466
+ phi: "high",
22467
+ custom: "high",
22468
+ // user-defined; conservative
22469
+ code_context: "low",
22470
+ config: "low"
22471
+ // observe-only; floors to monitor regardless
22472
+ };
22473
+ function severityFloorPolicy(category) {
22474
+ if (OBSERVE_ONLY_CATEGORIES.includes(category)) return "monitor";
22475
+ const peak = CATEGORY_PEAK_SEVERITY[category];
22476
+ return peak === "critical" || peak === "high" ? "warn" : "monitor";
22477
+ }
22478
+ var KNOWN_BUILTIN_IDS = ["monitor", "warn", "redact", "vault", "block"];
22479
+ var BuiltinPolicyId = external_exports.enum(KNOWN_BUILTIN_IDS).meta({ id: "BuiltinPolicyId" });
22480
+ var RedactFallback = BuiltinPolicyId.extract(["monitor", "warn", "block"]).meta({
22481
+ id: "RedactFallback"
22482
+ });
22483
+ var BUILTIN_POLICY_SPECS = {
22484
+ monitor: {
22485
+ name: "Monitor",
22486
+ action: "log",
22487
+ reversible: false,
22488
+ description: "Log every match for audit. The request is allowed through untouched."
22489
+ },
22490
+ warn: {
22491
+ name: "Warn",
22492
+ action: "warn",
22493
+ reversible: false,
22494
+ description: "Allow the request, but warn the user inline before it is sent."
22495
+ },
22496
+ redact: {
22497
+ name: "Redact",
22498
+ action: "redact",
22499
+ reversible: false,
22500
+ description: "Strip the matched value from the request and destroy it, then continue. What was removed cannot be recovered."
22501
+ },
22502
+ vault: {
22503
+ name: "Redact & Vault",
22504
+ action: "redact",
22505
+ reversible: true,
22506
+ description: "Strip the matched value from the request and keep an encrypted, recoverable copy in the local vault, leaving a pointer in its place. Needs the vault consent granted under Settings; without it this behaves as Redact."
22507
+ },
22508
+ block: {
22509
+ name: "Block",
22510
+ action: "block",
22511
+ reversible: false,
22512
+ description: "Refuse the request entirely whenever any rule in this detection matches."
22513
+ }
22514
+ };
22515
+ function builtinPolicyToAction(id) {
22516
+ return BUILTIN_POLICY_SPECS[id].action;
22517
+ }
22518
+ var PALETTE_WEAKEST_FIRST = [
22519
+ ...new Set(KNOWN_BUILTIN_IDS.map(builtinPolicyToAction))
22520
+ ];
22521
+ var BELOW_PALETTE = ACTION_TAKEN_KEYS.filter(
22522
+ (action) => !PALETTE_WEAKEST_FIRST.includes(action)
22523
+ );
22524
+ var ACTION_STRENGTH_ORDER = [
22525
+ ...BELOW_PALETTE,
22526
+ ...PALETTE_WEAKEST_FIRST
22527
+ ];
22528
+ var PackPolicyFloor = external_exports.object({
22529
+ /**
22530
+ * The weakest archetype the device may assign. Stated as a BuiltinPolicyId
22531
+ * rather than a raw ActionTaken because that is the vocabulary the user
22532
+ * picks from — a floor a UI cannot name is one it cannot explain.
22533
+ */
22534
+ floor: BuiltinPolicyId,
22535
+ /**
22536
+ * True when the organization AUTHORED a policy governing this pack rather
22537
+ * than stating a minimum: it gave the answer, so the pack is not
22538
+ * re-assignable locally in either direction.
22539
+ */
22540
+ locked: external_exports.boolean()
22541
+ }).describe("PackPolicyFloor");
22542
+ var CATEGORY_EXPRESSIBLE_IDS = KNOWN_BUILTIN_IDS.filter(
22543
+ (id) => !BUILTIN_POLICY_SPECS[id].reversible
22544
+ );
22545
+ var CATEGORY_INEXPRESSIBLE_IDS = KNOWN_BUILTIN_IDS.filter(
22546
+ (id) => BUILTIN_POLICY_SPECS[id].reversible
22547
+ );
22548
+ var CategoryPolicyId = external_exports.enum(CATEGORY_EXPRESSIBLE_IDS).meta({ id: "CategoryPolicyId" });
22549
+ var DEFAULT_ACTIONS = Object.fromEntries(
22550
+ DetectionCategory.options.map((c) => [c, builtinPolicyToAction(severityFloorPolicy(c))])
22551
+ );
22552
+ var BUILTIN_POLICIES = Object.fromEntries(
22553
+ KNOWN_BUILTIN_IDS.map((id) => [id, { id, ...BUILTIN_POLICY_SPECS[id] }])
22554
+ );
22555
+ var UsedByItem = external_exports.object({
22556
+ id: external_exports.string(),
22557
+ name: external_exports.string(),
22558
+ ruleCount: external_exports.number().int().nonnegative(),
22559
+ enabled: external_exports.boolean()
22560
+ }).meta({ id: "UsedByItem" });
22561
+ var PolicyListItem = external_exports.object({
22562
+ id: external_exports.string(),
22563
+ kind: PolicyKind,
22564
+ name: external_exports.string(),
22565
+ enabled: external_exports.boolean(),
22566
+ usedByCount: external_exports.number().int().nonnegative()
22567
+ }).meta({ id: "PolicyListItem" });
22568
+ var ListPoliciesResponse = external_exports.object({ items: external_exports.array(PolicyListItem) }).meta({ id: "ListPoliciesResponse" });
22569
+ var PolicyDetail = external_exports.object({
22570
+ specVersion: external_exports.literal(1),
22571
+ id: external_exports.string(),
22572
+ kind: PolicyKind,
22573
+ name: external_exports.string(),
22574
+ enabled: external_exports.boolean(),
22575
+ description: external_exports.string(),
22576
+ usedBy: external_exports.array(UsedByItem)
22577
+ }).meta({ id: "PolicyDetail" });
22578
+ var PolicyStatsResponse = external_exports.object({
22579
+ policies: external_exports.number().int().nonnegative(),
22580
+ builtin: external_exports.number().int().nonnegative(),
22581
+ custom: external_exports.number().int().nonnegative(),
22582
+ detectionsGoverned: external_exports.number().int().nonnegative()
22583
+ }).meta({ id: "PolicyStatsResponse" });
22584
+
22345
22585
  // ../../packages/schema/src/zod/vault.ts
22346
22586
  var CATEGORY_ALTERNATION = DetectionCategory.options.join("|");
22347
22587
  var POINTER_TOKEN_PATTERN = new RegExp(
@@ -22378,6 +22618,14 @@ var VaultEntry = external_exports.object({
22378
22618
  // How many times this value has been detected on this machine — the reuse
22379
22619
  // signal the vault dashboard reads. Distinct from VaultDeref.pointerCount.
22380
22620
  occurrenceCount: external_exports.number().int().nonnegative(),
22621
+ // True when a PERSON asked for this value to be replaced — the surfaced-
22622
+ // secrets strike — rather than a pack enforcing its assignment. One value is
22623
+ // one row however many paths vault it, so this is what tells a policy sweep
22624
+ // that the row carries somebody's own instruction and not just an assignment
22625
+ // that has since been lowered. STICKY and MONOTONIC: a later automatic
22626
+ // vaulting of the same value must never clear it — what the user said about
22627
+ // the value does not expire.
22628
+ userAuthorized: external_exports.boolean(),
22381
22629
  firstSeen: external_exports.string(),
22382
22630
  lastSeen: external_exports.string()
22383
22631
  });
@@ -22493,7 +22741,7 @@ var VaultConsent = external_exports.object({
22493
22741
  });
22494
22742
 
22495
22743
  // ../../packages/schema/src/zod/local.ts
22496
- var WORKSPACE_SETTINGS_SPEC_VERSION = 6;
22744
+ var WORKSPACE_SETTINGS_SPEC_VERSION = 7;
22497
22745
  var RunMode = external_exports.enum(["standalone", "attached"]);
22498
22746
  var ControlPlaneConnection = external_exports.object({
22499
22747
  endpoint: external_exports.string().min(1),
@@ -22534,6 +22782,19 @@ var WorkspaceSettings = external_exports.object({
22534
22782
  vaultKeyCustody: VaultKeyCustody.default("file"),
22535
22783
  // How a pointer renders in assistant prose on screen (see VaultInlineReveal).
22536
22784
  vaultInlineReveal: VaultInlineReveal.default("masked"),
22785
+ // What a `redact` policy degrades to on a FIELD the host cannot rewrite in
22786
+ // place. Not a handling policy: the policy has already resolved to redact,
22787
+ // and this only says what happens when the host offers no channel to carry it
22788
+ // out — Antigravity's PreToolUse has no updatedInput at all, and Codex and
22789
+ // Claude Code decline to mask a field that EXECUTES because masking would
22790
+ // change what runs. Per FIELD rather than per host, so a host that can
22791
+ // rewrite some inputs keeps true redaction on those.
22792
+ //
22793
+ // Spelled in the built-in policy vocabulary rather than as a fresh enum, so
22794
+ // an attached machine's merge is `strongerAction` over the one action ladder
22795
+ // and no second rank order exists to drift from it. 'deny' is a host wire
22796
+ // word and stays out of the stored value.
22797
+ redactFallback: RedactFallback.default("warn"),
22537
22798
  // Absent until /aka:setup completes; its presence is what "onboarded" means.
22538
22799
  onboardedAt: external_exports.iso.datetime().optional(),
22539
22800
  // Records that the user consented to sending findings to the model API for
@@ -22541,10 +22802,12 @@ var WorkspaceSettings = external_exports.object({
22541
22802
  // Absent until granted; a stale payloadVersion means the consent no longer
22542
22803
  // covers the current payload and must be re-granted.
22543
22804
  modelJudgeConsent: ModelJudgeConsent.optional(),
22544
- // Records that the user consented to sending the activity already recorded on
22545
- // this machine to the deployment it is attached to, along with the payload
22546
- // shape and the endpoint they agreed to. Absent until granted, and a grant for
22547
- // a different endpoint or an older payload no longer counts.
22805
+ // Records that the user consented to the DEFERRED send — the outbox — along
22806
+ // with the payload shape and the endpoint they agreed to. Since payload v2
22807
+ // that covers both the pre-attach backlog and undelivered captures (which
22808
+ // carry prompt/reply text in `content`); the key name predates the widening.
22809
+ // Absent until granted, and a grant for a different endpoint or an older
22810
+ // payload no longer counts.
22548
22811
  historySyncConsent: HistorySyncConsent.optional()
22549
22812
  });
22550
22813
 
@@ -22557,7 +22820,8 @@ var ManagedSettingKey = external_exports.enum([
22557
22820
  "vaultKeyCustody",
22558
22821
  "vaultInlineReveal",
22559
22822
  "modelJudgeConsent",
22560
- "dataSharesInPlace"
22823
+ "dataSharesInPlace",
22824
+ "redactFallback"
22561
22825
  ]).meta({ id: "ManagedSettingKey" });
22562
22826
  var ManagedSettingsValues = external_exports.object({
22563
22827
  runMode: external_exports.enum(["standalone", "attached"]).optional(),
@@ -22570,7 +22834,8 @@ var ManagedSettingsValues = external_exports.object({
22570
22834
  vaultKeyCustody: external_exports.enum(["file", "keychain"]).optional(),
22571
22835
  vaultInlineReveal: external_exports.enum(["masked", "full", "off"]).optional(),
22572
22836
  modelJudgeConsent: external_exports.boolean().optional(),
22573
- dataSharesInPlace: external_exports.boolean().optional()
22837
+ dataSharesInPlace: external_exports.boolean().optional(),
22838
+ redactFallback: RedactFallback.optional()
22574
22839
  }).meta({ id: "ManagedSettingsValues" });
22575
22840
  var ManagedSettings = external_exports.object({
22576
22841
  specVersion: external_exports.number().int().positive().default(MANAGED_SETTINGS_SPEC_VERSION),
@@ -22585,171 +22850,6 @@ var ManagedSettings = external_exports.object({
22585
22850
  lockedFields: external_exports.array(ManagedSettingKey).default([])
22586
22851
  }).meta({ id: "ManagedSettings" });
22587
22852
 
22588
- // ../../packages/schema/src/zod/policy.ts
22589
- var PolicyScope = external_exports.enum(["global", "repo", "user"]).meta({ id: "PolicyScope" });
22590
- var PolicyTarget = external_exports.union([external_exports.object({ ruleId: external_exports.string() }), external_exports.object({ category: DetectionCategory })]).meta({ id: "PolicyTarget" });
22591
- var Policy = external_exports.object({
22592
- id: external_exports.guid(),
22593
- scope: PolicyScope,
22594
- target: PolicyTarget,
22595
- action: ActionTaken,
22596
- enabled: external_exports.boolean().default(true),
22597
- customKeywords: external_exports.array(external_exports.string()).optional(),
22598
- // Display name — optional so older policy rows without name still parse.
22599
- // Added for the findings API (policy.name column migration).
22600
- name: external_exports.string().optional()
22601
- }).meta({ id: "Policy" });
22602
- var PolicyBundle = external_exports.object({
22603
- version: external_exports.string(),
22604
- policies: external_exports.array(Policy),
22605
- // Rules from the installed marketplace packs (snapshotted by the
22606
- // control plane). The plugin registers these in addition to its bundled
22607
- // packs. Optional so older backends — and older on-disk caches — that omit
22608
- // the field still parse; consumers read `bundle.rules ?? []`.
22609
- rules: external_exports.array(Rule).optional(),
22610
- // When true, `rules` IS the complete effective ruleset and the runtime must
22611
- // NOT merge its compiled-in bundled packs — the standalone gateway sets this
22612
- // after reading the user's installed snapshot (installed_packs, enabled
22613
- // packs only), which is how detection updates stay manual: new bundled
22614
- // rules run only after the user applies the pack update. Absent/false keeps
22615
- // the historical composition (bundled packs + rules) — older caches.
22616
- rulesComplete: external_exports.boolean().optional(),
22617
- // Active detection exceptions, evaluation subset only (see
22618
- // ExceptionBundleEntry). Optional so older bundle producers — and older
22619
- // on-disk caches — that omit the field still parse; consumers read
22620
- // `bundle.exceptions ?? []`.
22621
- exceptions: external_exports.array(ExceptionBundleEntry).optional(),
22622
- // Rule ids whose pack is assigned a REVERSIBLE archetype (Redact & Vault).
22623
- // A second axis over the same `redact` action, carried beside the policies
22624
- // rather than on them: nothing writes ruleId-targeted policies to disk, so
22625
- // widening Policy itself would change a persisted shape to express something
22626
- // only the in-memory bundle needs. Optional so an older producer — or an
22627
- // older on-disk cache — still parses; consumers read `?? []` and get the
22628
- // pre-existing one-way behaviour, which is the safe direction to default.
22629
- reversibleRuleIds: external_exports.array(external_exports.string()).optional(),
22630
- // Installed pack version, keyed by ruleId, for rules in `rules` that came
22631
- // from a versioned installed pack. Optional so older backends — and older
22632
- // on-disk caches — that omit the field still parse; consumers fall back to
22633
- // the rule's own spec version. NOT the bundle version above — see
22634
- // installedRuleset's ruleVersions for the source of truth.
22635
- ruleVersions: external_exports.record(external_exports.string(), external_exports.string()).optional(),
22636
- // Model ids (the raw `model` string a harness reports, e.g.
22637
- // `claude-opus-4-1`) the tenant has PROHIBITED. The plugin refuses to switch
22638
- // a session onto one (PreModelSwitch) and refuses a turn that would run on
22639
- // one (UserPromptSubmit). Optional so an older backend — and an older
22640
- // on-disk cache — still parses; consumers read `?? []`, which is the
22641
- // unenforced behaviour that predates this field and the safe direction to
22642
- // default.
22643
- //
22644
- // Ids, not display names: the governance decision is keyed on the exact
22645
- // string the harness reports (`model_status_override.versionId` in the
22646
- // control plane), so no name resolution stands between the decision and the
22647
- // comparison.
22648
- prohibitedModels: external_exports.array(external_exports.string()).optional(),
22649
- customKeywords: external_exports.array(external_exports.string()),
22650
- fetchedAt: external_exports.iso.datetime()
22651
- }).meta({ id: "PolicyBundle" });
22652
- var OBSERVE_ONLY_CATEGORIES = ["config"];
22653
- var ENFORCEABLE_CATEGORIES = DetectionCategory.options.filter((c) => !OBSERVE_ONLY_CATEGORIES.includes(c));
22654
- var CATEGORY_PEAK_SEVERITY = {
22655
- secret: "critical",
22656
- financial: "critical",
22657
- // core-financial/credit-card
22658
- code_flaw: "critical",
22659
- pii: "high",
22660
- phi: "high",
22661
- custom: "high",
22662
- // user-defined; conservative
22663
- code_context: "low",
22664
- config: "low"
22665
- // observe-only; floors to monitor regardless
22666
- };
22667
- function severityFloorPolicy(category) {
22668
- if (OBSERVE_ONLY_CATEGORIES.includes(category)) return "monitor";
22669
- const peak = CATEGORY_PEAK_SEVERITY[category];
22670
- return peak === "critical" || peak === "high" ? "warn" : "monitor";
22671
- }
22672
- var PolicyKind = external_exports.enum(["builtin", "custom"]).meta({ id: "PolicyKind" });
22673
- var KNOWN_BUILTIN_IDS = ["monitor", "warn", "redact", "vault", "block"];
22674
- var BuiltinPolicyId = external_exports.enum(KNOWN_BUILTIN_IDS).meta({ id: "BuiltinPolicyId" });
22675
- var BUILTIN_POLICY_SPECS = {
22676
- monitor: {
22677
- name: "Monitor",
22678
- action: "log",
22679
- reversible: false,
22680
- description: "Log every match for audit. The request is allowed through untouched."
22681
- },
22682
- warn: {
22683
- name: "Warn",
22684
- action: "warn",
22685
- reversible: false,
22686
- description: "Allow the request, but warn the user inline before it is sent."
22687
- },
22688
- redact: {
22689
- name: "Redact",
22690
- action: "redact",
22691
- reversible: false,
22692
- description: "Strip the matched value from the request and destroy it, then continue. What was removed cannot be recovered."
22693
- },
22694
- vault: {
22695
- name: "Redact & Vault",
22696
- action: "redact",
22697
- reversible: true,
22698
- description: "Strip the matched value from the request and keep an encrypted, recoverable copy in the local vault, leaving a pointer in its place. Needs the vault consent granted under Settings; without it this behaves as Redact."
22699
- },
22700
- block: {
22701
- name: "Block",
22702
- action: "block",
22703
- reversible: false,
22704
- description: "Refuse the request entirely whenever any rule in this detection matches."
22705
- }
22706
- };
22707
- function builtinPolicyToAction(id) {
22708
- return BUILTIN_POLICY_SPECS[id].action;
22709
- }
22710
- var CATEGORY_EXPRESSIBLE_IDS = KNOWN_BUILTIN_IDS.filter(
22711
- (id) => !BUILTIN_POLICY_SPECS[id].reversible
22712
- );
22713
- var CATEGORY_INEXPRESSIBLE_IDS = KNOWN_BUILTIN_IDS.filter(
22714
- (id) => BUILTIN_POLICY_SPECS[id].reversible
22715
- );
22716
- var CategoryPolicyId = external_exports.enum(CATEGORY_EXPRESSIBLE_IDS).meta({ id: "CategoryPolicyId" });
22717
- var DEFAULT_ACTIONS = Object.fromEntries(
22718
- DetectionCategory.options.map((c) => [c, builtinPolicyToAction(severityFloorPolicy(c))])
22719
- );
22720
- var BUILTIN_POLICIES = Object.fromEntries(
22721
- KNOWN_BUILTIN_IDS.map((id) => [id, { id, ...BUILTIN_POLICY_SPECS[id] }])
22722
- );
22723
- var UsedByItem = external_exports.object({
22724
- id: external_exports.string(),
22725
- name: external_exports.string(),
22726
- ruleCount: external_exports.number().int().nonnegative(),
22727
- enabled: external_exports.boolean()
22728
- }).meta({ id: "UsedByItem" });
22729
- var PolicyListItem = external_exports.object({
22730
- id: external_exports.string(),
22731
- kind: PolicyKind,
22732
- name: external_exports.string(),
22733
- enabled: external_exports.boolean(),
22734
- usedByCount: external_exports.number().int().nonnegative()
22735
- }).meta({ id: "PolicyListItem" });
22736
- var ListPoliciesResponse = external_exports.object({ items: external_exports.array(PolicyListItem) }).meta({ id: "ListPoliciesResponse" });
22737
- var PolicyDetail = external_exports.object({
22738
- specVersion: external_exports.literal(1),
22739
- id: external_exports.string(),
22740
- kind: PolicyKind,
22741
- name: external_exports.string(),
22742
- enabled: external_exports.boolean(),
22743
- description: external_exports.string(),
22744
- usedBy: external_exports.array(UsedByItem)
22745
- }).meta({ id: "PolicyDetail" });
22746
- var PolicyStatsResponse = external_exports.object({
22747
- policies: external_exports.number().int().nonnegative(),
22748
- builtin: external_exports.number().int().nonnegative(),
22749
- custom: external_exports.number().int().nonnegative(),
22750
- detectionsGoverned: external_exports.number().int().nonnegative()
22751
- }).meta({ id: "PolicyStatsResponse" });
22752
-
22753
22853
  // ../../packages/schema/src/zod/project-files.ts
22754
22854
  var ProjectFileInput = external_exports.object({
22755
22855
  path: external_exports.string().min(1),
@@ -22989,10 +23089,12 @@ var DismissRecommendedActionResponse = external_exports.object({ id: external_ex
22989
23089
  var RecommendedActionIdParam = external_exports.object({ id: external_exports.string() });
22990
23090
 
22991
23091
  // ../../packages/schema/src/zod/settings-action.ts
23092
+ var HistorySyncConsentChoice = external_exports.enum(["granted", "revoked", "unchanged"]).meta({ id: "HistorySyncConsentChoice" });
23093
+ var ModelJudgeConsentChoice = external_exports.enum(["granted", "revoked", "unchanged"]).meta({ id: "ModelJudgeConsentChoice" });
22992
23094
  var SaveSettingsInput = external_exports.object({
22993
23095
  historicalAccess: external_exports.string(),
22994
- modelJudgeConsent: external_exports.boolean(),
22995
- historySyncConsent: external_exports.boolean(),
23096
+ modelJudgeConsent: ModelJudgeConsentChoice,
23097
+ historySyncConsent: HistorySyncConsentChoice,
22996
23098
  vaultConsent: external_exports.string(),
22997
23099
  vaultInlineReveal: external_exports.string()
22998
23100
  });
@@ -23133,8 +23235,8 @@ import {
23133
23235
  import { threadId } from "worker_threads";
23134
23236
 
23135
23237
  // ../../packages/persistence/src/database.ts
23136
- import { randomUUID as randomUUID10 } from "crypto";
23137
- import { join as join4, sep } from "path";
23238
+ import { randomUUID as randomUUID11 } from "crypto";
23239
+ import { dirname as dirname2, join as join7, sep } from "path";
23138
23240
  import { DatabaseSync } from "node:sqlite";
23139
23241
 
23140
23242
  // ../../packages/persistence/src/ids.ts
@@ -23150,6 +23252,20 @@ var STAGED_NAME_SUFFIX = `.bak${SNAPSHOT_STAGING_SUFFIX}`;
23150
23252
 
23151
23253
  // ../../packages/persistence/src/repositories/activity.ts
23152
23254
  var LIVE_ACTIVITY_WINDOW_MS = 30 * 6e4;
23255
+ var DB_EVENT_TYPE_TO_KIND = {
23256
+ session: "session",
23257
+ prompt: "prompt",
23258
+ response: "response",
23259
+ tool_call: "tool",
23260
+ hook: "hook",
23261
+ detection: "detection",
23262
+ share: "share",
23263
+ permission: "permission",
23264
+ commit: "commit",
23265
+ error: "error",
23266
+ active: "active"
23267
+ };
23268
+ var TIMELINE_EVENT_TYPES = Object.keys(DB_EVENT_TYPE_TO_KIND).map((kind) => `'${kind}'`).join(", ");
23153
23269
  var DEFAULT_HARNESS = HARNESS.ClaudeCode;
23154
23270
 
23155
23271
  // ../../packages/persistence/src/repositories/exceptions.ts
@@ -23166,12 +23282,46 @@ var ACTIVE_REVEAL_GRANT_PREDICATE = `capability = 'reveal_to_model'
23166
23282
  // ../../packages/persistence/src/repositories/history-sync.ts
23167
23283
  var STRUCTURAL_EVENT_TYPES = ["session", "llm_call", "tool_call"];
23168
23284
  var TYPE_LIST = STRUCTURAL_EVENT_TYPES.map((t) => `'${t}'`).join(", ");
23285
+ var OUTBOX_CAPTURE_EVENT_TYPES = ["prompt", "response", "tool_use"];
23286
+ var CAPTURE_TYPE_LIST = OUTBOX_CAPTURE_EVENT_TYPES.map((t) => `'${t}'`).join(", ");
23169
23287
 
23170
23288
  // ../../packages/persistence/src/repositories/installed-packs.ts
23171
- import { createHash as createHash2, randomUUID as randomUUID3 } from "crypto";
23289
+ import { createHash as createHash2, randomUUID as randomUUID4 } from "crypto";
23290
+
23291
+ // ../../packages/persistence/src/policy-floor.ts
23292
+ import { readFileSync as readFileSync5 } from "fs";
23293
+ import { join as join6 } from "path";
23294
+
23295
+ // ../../packages/persistence/src/local-layout.ts
23296
+ import { renameSync as renameSync3 } from "fs";
23297
+ import { mkdir } from "fs/promises";
23298
+ import { homedir } from "os";
23299
+ import { join as join4 } from "path";
23300
+
23301
+ // ../../packages/persistence/src/settings.ts
23302
+ import { readFileSync as readFileSync4 } from "fs";
23303
+ import { join as join5 } from "path";
23304
+
23305
+ // ../../packages/persistence/src/file-lock.ts
23306
+ import { randomUUID as randomUUID3 } from "crypto";
23307
+ import {
23308
+ closeSync,
23309
+ existsSync as existsSync2,
23310
+ openSync,
23311
+ readFileSync as readFileSync2,
23312
+ rmSync as rmSync5,
23313
+ statSync as statSync3,
23314
+ writeFileSync as writeFileSync2
23315
+ } from "fs";
23316
+ import { hostname as hostname3 } from "os";
23317
+ var PARK = new Int32Array(new SharedArrayBuffer(4));
23318
+
23319
+ // ../../packages/persistence/src/managed-settings.ts
23320
+ import { readFileSync as readFileSync3 } from "fs";
23321
+ import { posix, win32 } from "path";
23172
23322
 
23173
23323
  // ../../packages/persistence/src/repositories/inventory-assets.ts
23174
- import { randomUUID as randomUUID4 } from "crypto";
23324
+ import { randomUUID as randomUUID5 } from "crypto";
23175
23325
  var VALID_HARNESS_IDS = new Set(HarnessId.options);
23176
23326
  var HARNESS_LABELS = {
23177
23327
  [HARNESS.ClaudeCode]: "Claude Code",
@@ -23189,16 +23339,16 @@ var TITLE_NEEDLES = {
23189
23339
  };
23190
23340
 
23191
23341
  // ../../packages/persistence/src/repositories/policies.ts
23192
- import { randomUUID as randomUUID5 } from "crypto";
23342
+ import { randomUUID as randomUUID6 } from "crypto";
23193
23343
 
23194
23344
  // ../../packages/persistence/src/repositories/project-files.ts
23195
- import { randomUUID as randomUUID6 } from "crypto";
23345
+ import { randomUUID as randomUUID7 } from "crypto";
23196
23346
 
23197
23347
  // ../../packages/persistence/src/repositories/resolutions.ts
23198
- import { randomUUID as randomUUID7 } from "crypto";
23348
+ import { randomUUID as randomUUID8 } from "crypto";
23199
23349
 
23200
23350
  // ../../packages/persistence/src/repositories/secret-vault.ts
23201
- import { randomUUID as randomUUID8 } from "crypto";
23351
+ import { randomUUID as randomUUID9 } from "crypto";
23202
23352
 
23203
23353
  // ../../packages/persistence/src/repositories/security.ts
23204
23354
  var SCAN_COVERAGE = {
@@ -23213,53 +23363,28 @@ var SCAN_COVERAGE = {
23213
23363
  };
23214
23364
 
23215
23365
  // ../../packages/persistence/src/repositories/shares.ts
23216
- import { randomUUID as randomUUID9 } from "crypto";
23366
+ import { randomUUID as randomUUID10 } from "crypto";
23217
23367
 
23218
- // ../../packages/persistence/src/file-lock.ts
23219
- import { randomUUID as randomUUID11 } from "crypto";
23220
- import {
23221
- closeSync,
23222
- existsSync as existsSync2,
23223
- openSync,
23224
- readFileSync as readFileSync2,
23225
- rmSync as rmSync5,
23226
- statSync as statSync3,
23227
- writeFileSync as writeFileSync2
23228
- } from "fs";
23229
- import { hostname as hostname3 } from "os";
23230
- var PARK = new Int32Array(new SharedArrayBuffer(4));
23368
+ // ../../packages/persistence/src/database.ts
23369
+ var CAPTURE_GRAIN = new Set(EventKind.options);
23231
23370
 
23232
23371
  // ../../packages/persistence/src/finding-key.ts
23233
23372
  import { createHash as createHash3 } from "crypto";
23234
23373
 
23235
23374
  // ../../packages/persistence/src/fingerprint.ts
23236
23375
  import { createHmac, randomBytes } from "crypto";
23237
- import { existsSync as existsSync3, readFileSync as readFileSync3 } from "fs";
23238
- import { join as join5 } from "path";
23376
+ import { existsSync as existsSync3, readFileSync as readFileSync6 } from "fs";
23377
+ import { join as join8 } from "path";
23239
23378
  import { DatabaseSync as DatabaseSync2 } from "node:sqlite";
23240
23379
 
23241
23380
  // ../../packages/persistence/src/history-preview.ts
23242
23381
  import { existsSync as existsSync4 } from "fs";
23243
- import { join as join6 } from "path";
23382
+ import { join as join9 } from "path";
23244
23383
  import { DatabaseSync as DatabaseSync3 } from "node:sqlite";
23245
23384
 
23246
- // ../../packages/persistence/src/local-layout.ts
23247
- import { renameSync as renameSync3 } from "fs";
23248
- import { mkdir } from "fs/promises";
23249
- import { homedir } from "os";
23250
- import { join as join7 } from "path";
23251
-
23252
- // ../../packages/persistence/src/managed-settings.ts
23253
- import { readFileSync as readFileSync4 } from "fs";
23254
- import { posix, win32 } from "path";
23255
-
23256
- // ../../packages/persistence/src/settings.ts
23257
- import { readFileSync as readFileSync5 } from "fs";
23258
- import { join as join8 } from "path";
23259
-
23260
23385
  // ../../packages/persistence/src/store-symlinks.ts
23261
23386
  import { existsSync as existsSync5, lstatSync as lstatSync3, readlinkSync, realpathSync, statSync as statSync4 } from "fs";
23262
- import { dirname as dirname2, join as join9, resolve } from "path";
23387
+ import { dirname as dirname3, join as join10, resolve } from "path";
23263
23388
 
23264
23389
  // ../../packages/persistence/src/vault/crypto.ts
23265
23390
  import {
@@ -23273,15 +23398,15 @@ import {
23273
23398
  // ../../packages/persistence/src/vault/key-provider.ts
23274
23399
  import { execFileSync } from "child_process";
23275
23400
  import { randomBytes as randomBytes2 } from "crypto";
23276
- import { chmodSync as chmodSync3, readFileSync as readFileSync6, renameSync as renameSync4, rmSync as rmSync6, statSync as statSync5, writeFileSync as writeFileSync3 } from "fs";
23277
- import { join as join10 } from "path";
23401
+ import { chmodSync as chmodSync3, readFileSync as readFileSync7, renameSync as renameSync4, rmSync as rmSync6, statSync as statSync5, writeFileSync as writeFileSync3 } from "fs";
23402
+ import { join as join11 } from "path";
23278
23403
 
23279
23404
  // ../../packages/persistence/src/vault/vault.ts
23280
23405
  import { randomBytes as randomBytes3, randomUUID as randomUUID12 } from "crypto";
23281
23406
 
23282
23407
  // ../../packages/persistence/src/warn-era-cap.ts
23283
23408
  import { existsSync as existsSync6, writeFileSync as writeFileSync4 } from "fs";
23284
- import { join as join11 } from "path";
23409
+ import { join as join12 } from "path";
23285
23410
 
23286
23411
  // ../../packages/plugin-sdk/src/provider-env.ts
23287
23412
  var booleanish = external_exports.string().optional().transform((v) => {
@@ -23302,9 +23427,9 @@ var providerEnvShape = {
23302
23427
  var ProviderEnvSchema = external_exports.object(providerEnvShape);
23303
23428
 
23304
23429
  // ../../packages/plugin-sdk/src/config-inventory.ts
23305
- import { readdirSync as readdirSync2, readFileSync as readFileSync8, realpathSync as realpathSync2, statSync as statSync7 } from "fs";
23430
+ import { readdirSync as readdirSync2, readFileSync as readFileSync9, realpathSync as realpathSync2, statSync as statSync7 } from "fs";
23306
23431
  import { homedir as homedir2 } from "os";
23307
- import { basename as basename3, join as join14 } from "path";
23432
+ import { basename as basename3, join as join15 } from "path";
23308
23433
 
23309
23434
  // ../../packages/detections/src/egress/registry.ts
23310
23435
  var EXTRACTOR_VERSION = "1";
@@ -24062,8 +24187,8 @@ var CPU_CORROBORATION_SHARE = 0.2;
24062
24187
  var CORROBORATION_FLOOR_MS = BUDGET_MS * CPU_CORROBORATION_SHARE;
24063
24188
 
24064
24189
  // ../../packages/plugin-sdk/src/repo.ts
24065
- import { existsSync as existsSync8, readFileSync as readFileSync7, statSync as statSync6 } from "fs";
24066
- import { basename as basename2, dirname as dirname3, isAbsolute, join as join13, sep as sep2 } from "path";
24190
+ import { existsSync as existsSync8, readFileSync as readFileSync8, statSync as statSync6 } from "fs";
24191
+ import { basename as basename2, dirname as dirname4, isAbsolute, join as join14, sep as sep2 } from "path";
24067
24192
 
24068
24193
  // ../../packages/plugin-sdk/src/events.ts
24069
24194
  import { createHash as createHash4, randomUUID as randomUUID13 } from "crypto";
@@ -24075,8 +24200,8 @@ import { Worker } from "worker_threads";
24075
24200
 
24076
24201
  // ../../packages/plugin-sdk/src/ignore-layers.ts
24077
24202
  var import_ignore = __toESM(require_ignore(), 1);
24078
- import { readFileSync as readFileSync9 } from "fs";
24079
- import { join as join15 } from "path";
24203
+ import { readFileSync as readFileSync10 } from "fs";
24204
+ import { join as join16 } from "path";
24080
24205
 
24081
24206
  // ../../packages/plugin-sdk/src/inventory-resolver.ts
24082
24207
  import { arch, hostname as hostname4, platform, release } from "os";
@@ -24087,24 +24212,24 @@ import {
24087
24212
  fstatSync,
24088
24213
  mkdirSync as mkdirSync2,
24089
24214
  openSync as openSync2,
24090
- readFileSync as readFileSync10,
24215
+ readFileSync as readFileSync11,
24091
24216
  readSync,
24092
24217
  writeFileSync as writeFileSync5
24093
24218
  } from "fs";
24094
- import { join as join16 } from "path";
24219
+ import { join as join17 } from "path";
24095
24220
  var TAIL_BYTES = 256 * 1024;
24096
24221
 
24097
24222
  // ../../packages/plugin-sdk/src/nudge.ts
24098
- import { mkdirSync as mkdirSync3, readFileSync as readFileSync11, writeFileSync as writeFileSync6 } from "fs";
24099
- import { join as join17 } from "path";
24223
+ import { mkdirSync as mkdirSync3, readFileSync as readFileSync12, writeFileSync as writeFileSync6 } from "fs";
24224
+ import { join as join18 } from "path";
24100
24225
 
24101
24226
  // ../../packages/plugin-sdk/src/paths.ts
24102
24227
  import { readdirSync as readdirSync3, realpathSync as realpathSync3 } from "fs";
24103
- import { basename as basename4, dirname as dirname4, sep as sep3 } from "path";
24228
+ import { basename as basename4, dirname as dirname5, sep as sep3 } from "path";
24104
24229
 
24105
24230
  // ../../packages/plugin-sdk/src/project-files.ts
24106
24231
  import { existsSync as existsSync10, readdirSync as readdirSync4 } from "fs";
24107
- import { basename as basename5, join as join18 } from "path";
24232
+ import { basename as basename5, join as join19 } from "path";
24108
24233
 
24109
24234
  // ../../packages/plugin-sdk/src/provider-env-antigravity.ts
24110
24235
  var optionalBaseUrl2 = external_exports.preprocess((v) => {
@@ -24140,11 +24265,11 @@ var THIRTY_DAYS_MS = 30 * 24 * 60 * 60 * 1e3;
24140
24265
 
24141
24266
  // ../../packages/plugin-sdk/src/throttle.ts
24142
24267
  import { mkdirSync as mkdirSync4, statSync as statSync8, writeFileSync as writeFileSync7 } from "fs";
24143
- import { join as join19 } from "path";
24268
+ import { join as join20 } from "path";
24144
24269
 
24145
24270
  // ../../packages/setup-wizard/src/remediation/rotation-checklist.ts
24146
24271
  import { writeFileSync as writeFileSync8 } from "fs";
24147
- import { join as join20 } from "path";
24272
+ import { join as join21 } from "path";
24148
24273
 
24149
24274
  // ../../packages/setup-wizard/src/triage/merge.ts
24150
24275
  var RANK = Object.fromEntries(
@@ -24152,9 +24277,9 @@ var RANK = Object.fromEntries(
24152
24277
  );
24153
24278
 
24154
24279
  // ../../packages/setup-wizard/src/triage/plan-file.ts
24155
- import { mkdtempSync, readFileSync as readFileSync12, rmdirSync, rmSync as rmSync7, writeFileSync as writeFileSync9 } from "fs";
24280
+ import { mkdtempSync, readFileSync as readFileSync13, rmdirSync, rmSync as rmSync7, writeFileSync as writeFileSync9 } from "fs";
24156
24281
  import { tmpdir } from "os";
24157
- import { basename as basename6, dirname as dirname5, join as join21 } from "path";
24282
+ import { basename as basename6, dirname as dirname6, join as join22 } from "path";
24158
24283
  var SuppressionEntrySchema = external_exports.object({
24159
24284
  ruleId: external_exports.string(),
24160
24285
  category: DetectionCategory,
@@ -24196,8 +24321,8 @@ var PersistedPlanSchema = external_exports.object({
24196
24321
  });
24197
24322
 
24198
24323
  // src/skills-registry.ts
24199
- import { readdirSync as readdirSync5, readFileSync as readFileSync13 } from "fs";
24200
- import { join as join22 } from "path";
24324
+ import { readdirSync as readdirSync5, readFileSync as readFileSync14 } from "fs";
24325
+ import { join as join23 } from "path";
24201
24326
  import { fileURLToPath as fileURLToPath2 } from "url";
24202
24327
  var SKILLS_DIR = fileURLToPath2(new URL("../skills", import.meta.url));
24203
24328
 
@@ -24237,7 +24362,7 @@ function authorName(author) {
24237
24362
  var manifestPath = process.argv[2];
24238
24363
  var manifest = {};
24239
24364
  try {
24240
- manifest = JSON.parse(readFileSync14(manifestPath ?? "", "utf8"));
24365
+ manifest = JSON.parse(readFileSync15(manifestPath ?? "", "utf8"));
24241
24366
  } catch {
24242
24367
  }
24243
24368
  process.stdout.write(