@akasecurity/ai-tc-copilot 0.9.23 → 0.9.25

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.
@@ -8329,7 +8329,11 @@ var ListFindingTypesQuery = object({
8329
8329
  // and so is not bounded by what any page happens to hold.
8330
8330
  includeId: string2().optional(),
8331
8331
  limit: coerce_exports.number().int().min(1).max(MAX_FINDING_TYPES_LIMIT).optional(),
8332
- cursor: string2().optional()
8332
+ cursor: string2().optional(),
8333
+ // A row position to read from, for jumping to a page instead of stepping to
8334
+ // it. Takes precedence over `cursor`, and the page's `nextCursor` carries on
8335
+ // from wherever it lands.
8336
+ offset: coerce_exports.number().int().min(0).optional()
8333
8337
  });
8334
8338
  var ListFindingTypesResponse = object({
8335
8339
  totals: object({
@@ -8409,7 +8413,11 @@ var ListFindingInstancesQuery = object({
8409
8413
  sessionId: string2().optional(),
8410
8414
  from: iso_exports.datetime().optional(),
8411
8415
  limit: coerce_exports.number().int().min(1).max(MAX_FLAT_FINDINGS_LIMIT).optional(),
8412
- cursor: string2().optional()
8416
+ cursor: string2().optional(),
8417
+ // A row position to read from, for jumping to a page instead of stepping to
8418
+ // it. Takes precedence over `cursor`, and the page's `nextCursor` carries on
8419
+ // from wherever it lands.
8420
+ offset: coerce_exports.number().int().min(0).optional()
8413
8421
  });
8414
8422
  var ListFindingInstancesResponse = object({
8415
8423
  // Instances matching the filters across the whole scope, not just this
@@ -8480,7 +8488,11 @@ var ListFindingLocationsQuery = object({
8480
8488
  // rather than a deep-link corner. Never affects totals, facets or the cursor.
8481
8489
  includeId: string2().optional(),
8482
8490
  limit: coerce_exports.number().int().min(1).max(MAX_FINDING_LOCATIONS_LIMIT).optional(),
8483
- cursor: string2().optional()
8491
+ cursor: string2().optional(),
8492
+ // A row position to read from, for jumping to a page instead of stepping to
8493
+ // it. Takes precedence over `cursor`, and the page's `nextCursor` carries on
8494
+ // from wherever it lands.
8495
+ offset: coerce_exports.number().int().min(0).optional()
8484
8496
  });
8485
8497
  var ListFindingLocationsResponse = object({
8486
8498
  totals: object({
@@ -8973,7 +8985,13 @@ var AuditEventType = _enum([
8973
8985
  // is doing — a write-through of the native host's in-memory tracker, so a
8974
8986
  // second process (aka extension status) and a restarted host both have
8975
8987
  // somewhere to read it back from.
8976
- "capture_status"
8988
+ "capture_status",
8989
+ // One row per commit a session's checkout reached while a git command the
8990
+ // agent ran was running, hung off the session root. Its `attributes` follow
8991
+ // `GitCommitAttributes`: the commit id, the kind of HEAD move, the
8992
+ // attribution, and `scope_key`, the repository the command ran in; never
8993
+ // the branch, commit message, author or diff.
8994
+ "git_commit"
8977
8995
  ]).meta({ id: "AuditEventType" });
8978
8996
  var AttributeBag = record(string2(), unknown());
8979
8997
  var HostAttributes = object({
@@ -9081,6 +9099,13 @@ var ToolCallAttributes = object({
9081
9099
  parent_uuid: string2().optional(),
9082
9100
  run_key: string2().optional()
9083
9101
  }).catchall(unknown());
9102
+ var GitCommitKind = _enum(["commit", "merge", "rebase", "cherry-pick", "am", "revert"]);
9103
+ var GitCommitAttributes = object({
9104
+ commit: string2().regex(/^[0-9a-f]{40}([0-9a-f]{24})?$/),
9105
+ kind: GitCommitKind,
9106
+ attribution: literal("command_window"),
9107
+ scope_key: string2().optional()
9108
+ }).catchall(unknown());
9084
9109
  var CaptureAttributes = object({
9085
9110
  // The harness/tool that produced the capture (`claude-code`, `cli`, …). A
9086
9111
  // column on the legacy `events` table; here it rides the bag because a
@@ -10877,7 +10902,11 @@ var MAX_VAULT_PAGE_LIMIT = 200;
10877
10902
  var ListVaultInventoryQuery = object({
10878
10903
  limit: coerce_exports.number().int().min(1).max(MAX_VAULT_PAGE_LIMIT).optional(),
10879
10904
  // Opaque; names the last row of the page just served.
10880
- cursor: string2().optional()
10905
+ cursor: string2().optional(),
10906
+ // A row position to read from, for jumping to a page instead of stepping to
10907
+ // it. Takes precedence over `cursor`, and the page's `nextCursor` carries on
10908
+ // from wherever it lands.
10909
+ offset: coerce_exports.number().int().min(0).optional()
10881
10910
  });
10882
10911
  var ListVaultInventoryResponse = object({
10883
10912
  // Vaulted values across the whole store, not just this page — cursor-
@@ -10889,7 +10918,11 @@ var ListVaultInventoryResponse = object({
10889
10918
  });
10890
10919
  var ListVaultReuseQuery = object({
10891
10920
  limit: coerce_exports.number().int().min(1).max(MAX_VAULT_PAGE_LIMIT).optional(),
10892
- cursor: string2().optional()
10921
+ cursor: string2().optional(),
10922
+ // A row position to read from, for jumping to a page instead of stepping to
10923
+ // it. Takes precedence over `cursor`, and the page's `nextCursor` carries on
10924
+ // from wherever it lands.
10925
+ offset: coerce_exports.number().int().min(0).optional()
10893
10926
  });
10894
10927
  var ListVaultReuseResponse = object({
10895
10928
  // Reused values across the whole store — the number the section's claim
@@ -10905,9 +10938,15 @@ var ListVaultDerefsQuery = object({
10905
10938
  // over a Server Action, which preserves the type, never as a URL param.
10906
10939
  includeBatched: boolean2().optional(),
10907
10940
  limit: coerce_exports.number().int().min(1).max(MAX_VAULT_PAGE_LIMIT).optional(),
10908
- cursor: string2().optional()
10941
+ cursor: string2().optional(),
10942
+ // A row position to read from, for jumping to a page instead of stepping to
10943
+ // it. Takes precedence over `cursor`, and the page's `nextCursor` carries on
10944
+ // from wherever it lands.
10945
+ offset: coerce_exports.number().int().min(0).optional()
10909
10946
  });
10910
10947
  var ListVaultDerefsResponse = object({
10948
+ // Rows this filter selects across the whole trail, not just this page.
10949
+ totals: object({ derefs: number2().int().nonnegative() }),
10911
10950
  items: array(VaultDeref),
10912
10951
  nextCursor: string2().nullable(),
10913
10952
  // Display/view-render rows the query hid, over the WHOLE trail rather than
@@ -11358,6 +11397,45 @@ var ConfigInventoryAck = object({
11358
11397
  accepted: number2().int().nonnegative()
11359
11398
  });
11360
11399
 
11400
+ // ../../packages/schema/src/zod/credential-handles.ts
11401
+ var CREDENTIAL_SLUG_SOURCE = "[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?";
11402
+ var CredentialSlug = string2().regex(
11403
+ new RegExp(`^${CREDENTIAL_SLUG_SOURCE}$`),
11404
+ "must be lower-case letters, digits and dashes"
11405
+ );
11406
+ var HANDLE_SOURCE = `\\[\\[aka:cred:(${CREDENTIAL_SLUG_SOURCE})\\]\\]`;
11407
+ function credentialHandleScanner() {
11408
+ return new RegExp(HANDLE_SOURCE, "g");
11409
+ }
11410
+ var CREDENTIAL_RESOLVE_BATCH_MAX = 20;
11411
+ var CREDENTIAL_VALUE_MAX_LENGTH = 65536;
11412
+ var AvailableCredential = object({
11413
+ slug: CredentialSlug,
11414
+ description: string2().max(500),
11415
+ /**
11416
+ * The value's sighting tokens under each accepted sighting-key version, so a
11417
+ * machine can recognise the value when it is pasted. Absent when the store
11418
+ * could not be read.
11419
+ */
11420
+ lookups: array(string2().max(200)).max(SIGHTING_ALIASES_MAX + 1).optional()
11421
+ }).strict();
11422
+ var AvailableCredentialsResponse = object({ credentials: array(AvailableCredential) }).strict();
11423
+ var ResolveCredentialsRequest = object({
11424
+ slugs: array(CredentialSlug).min(1).max(CREDENTIAL_RESOLVE_BATCH_MAX).refine((slugs) => new Set(slugs).size === slugs.length, "slugs must be unique"),
11425
+ sessionId: string2().min(1).max(128).nullable()
11426
+ }).strict();
11427
+ var CredentialRefusalReason = _enum([
11428
+ "no_grant",
11429
+ "credential_not_found",
11430
+ "store_unavailable"
11431
+ ]);
11432
+ var ResolveCredentialsResponse = object({
11433
+ resolved: array(
11434
+ object({ slug: CredentialSlug, value: string2().max(CREDENTIAL_VALUE_MAX_LENGTH) }).strict()
11435
+ ),
11436
+ refused: array(object({ slug: CredentialSlug, reason: CredentialRefusalReason }).strict())
11437
+ }).strict();
11438
+
11361
11439
  // ../../packages/schema/src/zod/credential-status.ts
11362
11440
  var CredentialStatus = _enum(["rotation_overdue", "exposed"]).meta({ id: "CredentialStatus" });
11363
11441
 
@@ -13716,7 +13794,11 @@ function scanText(text, ruleset2, context) {
13716
13794
  }
13717
13795
 
13718
13796
  // ../../packages/detections/src/pointer-shield.ts
13719
- var SHIELDED_SOURCE = `${POINTER_TOKEN_PATTERN.source}|${SIGHTING_TOKEN_PATTERN.source}`;
13797
+ var SHIELDED_SOURCE = [
13798
+ POINTER_TOKEN_PATTERN.source,
13799
+ SIGHTING_TOKEN_PATTERN.source,
13800
+ credentialHandleScanner().source
13801
+ ].join("|");
13720
13802
 
13721
13803
  // ../../packages/detections/src/posture/config-posture.ts
13722
13804
  var RULE_VERSION = "2";