@akasecurity/ai-tc-codex 0.9.16 → 0.9.17-beta.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/.codex-plugin/plugin.json +1 -1
- package/package.json +5 -5
- package/scripts/apply-suppressions.js +678 -1252
- package/scripts/backfill.js +879 -1267
- package/scripts/content-retention.js +761 -2073
- package/scripts/filescan.js +1105 -473
- package/scripts/firstrun.js +1215 -1690
- package/scripts/history-sync.js +750 -2106
- package/scripts/intro.js +123 -2189
- package/scripts/onboard.js +2755 -1185
- package/scripts/post-tool-use.js +1302 -1696
- package/scripts/pre-tool-use.js +903 -1295
- package/scripts/query.js +1215 -1690
- package/scripts/reconcile.js +835 -1277
- package/scripts/remediate.js +920 -1317
- package/scripts/scan-worker.js +97 -13
- package/scripts/session-start.js +1819 -816
- package/scripts/start-light.js +127 -1360
- package/scripts/stop.js +271 -1112
- package/scripts/sync.js +1657 -1005
- package/scripts/user-prompt-submit.js +1042 -1404
package/scripts/scan-worker.js
CHANGED
|
@@ -21046,7 +21046,7 @@ anthropic.model("claude-haiku-4-5", {
|
|
|
21046
21046
|
name: "Claude Haiku 4.5",
|
|
21047
21047
|
ctx: 2e5,
|
|
21048
21048
|
maxOut: 64e3,
|
|
21049
|
-
// Reviewed: fast/cheap tier,
|
|
21049
|
+
// Reviewed: fast/cheap general-purpose tier, not a reasoning or code model.
|
|
21050
21050
|
capability: null,
|
|
21051
21051
|
price: anthropicPrice(1, 5, 0.1),
|
|
21052
21052
|
// The vendor documents `claude-haiku-4-5-20251001` as the versioned id and
|
|
@@ -21177,6 +21177,11 @@ openai.model("gpt-4o", {
|
|
|
21177
21177
|
price: tokenPrice(2.5, 10, { cacheRead: 1.25 }),
|
|
21178
21178
|
on: [...OPENAI_RESELLERS]
|
|
21179
21179
|
});
|
|
21180
|
+
openai.model("gpt-4o-2024-05-13", {
|
|
21181
|
+
name: "GPT-4o (2024-05-13)",
|
|
21182
|
+
price: tokenPrice(5, 15),
|
|
21183
|
+
on: [...OPENAI_RESELLERS]
|
|
21184
|
+
});
|
|
21180
21185
|
openai.model("gpt-4o-mini", {
|
|
21181
21186
|
name: "GPT-4o mini",
|
|
21182
21187
|
price: tokenPrice(0.15, 0.6, { cacheRead: 0.075 }),
|
|
@@ -21196,6 +21201,24 @@ openai.model("o3", {
|
|
|
21196
21201
|
price: tokenPrice(2, 8, { cacheRead: 0.5 }),
|
|
21197
21202
|
on: [...OPENAI_RESELLERS]
|
|
21198
21203
|
});
|
|
21204
|
+
openai.model("text-embedding-3-small", {
|
|
21205
|
+
name: "text-embedding-3-small",
|
|
21206
|
+
capability: "embedding",
|
|
21207
|
+
price: tokenPrice(0.02, 0),
|
|
21208
|
+
on: [...OPENAI_RESELLERS]
|
|
21209
|
+
});
|
|
21210
|
+
openai.model("text-embedding-3-large", {
|
|
21211
|
+
name: "text-embedding-3-large",
|
|
21212
|
+
capability: "embedding",
|
|
21213
|
+
price: tokenPrice(0.13, 0),
|
|
21214
|
+
on: [...OPENAI_RESELLERS]
|
|
21215
|
+
});
|
|
21216
|
+
openai.model("text-embedding-ada-002", {
|
|
21217
|
+
name: "text-embedding-ada-002",
|
|
21218
|
+
capability: "embedding",
|
|
21219
|
+
price: tokenPrice(0.1, 0),
|
|
21220
|
+
on: [...OPENAI_RESELLERS]
|
|
21221
|
+
});
|
|
21199
21222
|
openai.model("gpt-oss-120b", {
|
|
21200
21223
|
name: "GPT-OSS 120B",
|
|
21201
21224
|
openWeights: true,
|
|
@@ -21482,10 +21505,21 @@ var MODEL_ENTRIES = Object.freeze([
|
|
|
21482
21505
|
...alibaba.models(),
|
|
21483
21506
|
...amazon.models()
|
|
21484
21507
|
]);
|
|
21508
|
+
var LONG_CONTEXT_THRESHOLDS = Object.freeze(
|
|
21509
|
+
[
|
|
21510
|
+
...new Set(
|
|
21511
|
+
MODEL_ENTRIES.flatMap(
|
|
21512
|
+
(entry) => [...entry.platforms.values()].flatMap(
|
|
21513
|
+
(offering) => offering.price?.longContext ? [offering.price.longContext.thresholdInputTokens] : []
|
|
21514
|
+
)
|
|
21515
|
+
)
|
|
21516
|
+
)
|
|
21517
|
+
].sort((a, b) => a - b)
|
|
21518
|
+
);
|
|
21485
21519
|
var MODEL_INDEX = buildModelIndex(MODEL_ENTRIES);
|
|
21486
21520
|
|
|
21487
21521
|
// ../../packages/schema/src/model/governance.ts
|
|
21488
|
-
var ModelCapability = external_exports.enum(["reasoning", "code"]);
|
|
21522
|
+
var ModelCapability = external_exports.enum(["reasoning", "code", "embedding"]);
|
|
21489
21523
|
var DataRetention = external_exports.enum([
|
|
21490
21524
|
"zero_retention",
|
|
21491
21525
|
"no_storage",
|
|
@@ -22423,8 +22457,9 @@ var SessionTokenReport = external_exports.object({
|
|
|
22423
22457
|
totalTokens: external_exports.number().int().nonnegative(),
|
|
22424
22458
|
// Σ of the PRICED rollups only; null when no rollup had a known price.
|
|
22425
22459
|
estimatedCostUsd: external_exports.number().nullable(),
|
|
22426
|
-
// True whenever any
|
|
22427
|
-
//
|
|
22460
|
+
// True whenever any call priced to null (an unknown provider/model, or a call
|
|
22461
|
+
// over a long-context threshold whose rate is unpublished), so the total
|
|
22462
|
+
// understates real spend — the UI renders `≥ $X` instead of a falsely
|
|
22428
22463
|
// precise figure rather than silently dropping the unpriced calls.
|
|
22429
22464
|
costIsPartial: external_exports.boolean()
|
|
22430
22465
|
});
|
|
@@ -23270,7 +23305,15 @@ var StorePostureSnapshot = external_exports.object({
|
|
|
23270
23305
|
policyCounts: StorePosturePolicyCounts,
|
|
23271
23306
|
// OPTIONAL, not nullable: a reporter that predates this member keeps
|
|
23272
23307
|
// getting its 200 without a payload change.
|
|
23273
|
-
plugin: StorePosturePlugin.optional()
|
|
23308
|
+
plugin: StorePosturePlugin.optional(),
|
|
23309
|
+
// OPTIONAL, and sent only by a scoped attachment, always as `scoped`. A
|
|
23310
|
+
// machine attachment omits it, so its body is byte for byte the one it
|
|
23311
|
+
// sent before this member existed. Absent therefore means machine-wide OR
|
|
23312
|
+
// a reporter older than this member, never "scoped". Both values parse, so
|
|
23313
|
+
// a sender that one day spells `machine` breaks no receiver; any other
|
|
23314
|
+
// value fails the whole snapshot, which is why the reporter sends a
|
|
23315
|
+
// constant and never the raw mode.
|
|
23316
|
+
attachmentMode: AttachmentMode.optional()
|
|
23274
23317
|
}).meta({ id: "StorePostureSnapshot" });
|
|
23275
23318
|
var CAPTURE_VERSION_PREFIX = "capture/";
|
|
23276
23319
|
var RecordAuditEventRequest = AuditEventInput.extend({
|
|
@@ -23717,7 +23760,7 @@ var Rule = external_exports.strictObject({
|
|
|
23717
23760
|
postValidators: external_exports.array(PostValidatorRef).optional(),
|
|
23718
23761
|
requiresNearby: RequiresNearby.optional(),
|
|
23719
23762
|
examples: external_exports.array(external_exports.string()).optional(),
|
|
23720
|
-
// Whether the matched text is itself sensitive
|
|
23763
|
+
// Whether the matched text is itself sensitive (see RuleEvidence).
|
|
23721
23764
|
evidence: RuleEvidence.optional()
|
|
23722
23765
|
}).meta({ id: "Rule" });
|
|
23723
23766
|
var Author = external_exports.object({
|
|
@@ -23809,7 +23852,13 @@ var DetectionRule = external_exports.object({
|
|
|
23809
23852
|
// Representative matching strings the rule author shipped with the rule. The
|
|
23810
23853
|
// cheapest honest answer to "show me what this rule catches" — every bundled
|
|
23811
23854
|
// rule has them, and they are already in the stored snapshot.
|
|
23812
|
-
examples: external_exports.array(external_exports.string()).optional()
|
|
23855
|
+
examples: external_exports.array(external_exports.string()).optional(),
|
|
23856
|
+
// The rule's DECLARED evidence, as stored. Absent defers to the engine's
|
|
23857
|
+
// classification (ruleEvidence in @akasecurity/detections): a bundled
|
|
23858
|
+
// code-flaw rule reads as 'code' and anything else as 'value', and a rule
|
|
23859
|
+
// in a value category (secret/pii/financial/phi) is always 'value',
|
|
23860
|
+
// whatever it declares.
|
|
23861
|
+
evidence: RuleEvidence.optional()
|
|
23813
23862
|
}).meta({ id: "DetectionRule" });
|
|
23814
23863
|
var DetectionUpdate = external_exports.object({
|
|
23815
23864
|
available: external_exports.boolean(),
|
|
@@ -24075,11 +24124,14 @@ var PolicyBundle = external_exports.object({
|
|
|
24075
24124
|
ruleVersions: external_exports.record(external_exports.string(), external_exports.string()).optional(),
|
|
24076
24125
|
// Model ids (the raw `model` string a harness reports, e.g.
|
|
24077
24126
|
// `claude-opus-4-1`) the tenant has PROHIBITED. The plugin refuses to switch
|
|
24078
|
-
// a session onto one (PreModelSwitch)
|
|
24079
|
-
//
|
|
24080
|
-
//
|
|
24081
|
-
//
|
|
24082
|
-
//
|
|
24127
|
+
// a session onto one (PreModelSwitch), refuses a turn that would run on one
|
|
24128
|
+
// (UserPromptSubmit) and refuses a subagent spawn onto one (PreToolUse),
|
|
24129
|
+
// wherever the organization governs the event: everywhere on a
|
|
24130
|
+
// machine-wide attachment, and only in enrolled repositories on a scoped
|
|
24131
|
+
// one (the plugin runtime's `governanceApplies`).
|
|
24132
|
+
// Optional so an older backend — and an older on-disk cache — still
|
|
24133
|
+
// parses; consumers read `?? []`, which is the unenforced behaviour that
|
|
24134
|
+
// predates this field and the safe direction to default.
|
|
24083
24135
|
//
|
|
24084
24136
|
// Ids, not display names: the governance decision is keyed on the exact
|
|
24085
24137
|
// string the harness reports (`model_status_override.versionId` in the
|
|
@@ -24419,6 +24471,8 @@ var AttachmentScopeEntry = external_exports.object({
|
|
|
24419
24471
|
});
|
|
24420
24472
|
var AttachmentScope = external_exports.object({
|
|
24421
24473
|
endpoint: external_exports.string().min(1),
|
|
24474
|
+
tenantName: PluginWhoami.shape.tenantName.optional(),
|
|
24475
|
+
userEmail: PluginWhoami.shape.userEmail.optional(),
|
|
24422
24476
|
entries: external_exports.array(AttachmentScopeEntry)
|
|
24423
24477
|
});
|
|
24424
24478
|
var AttachmentScopeEnvelope = AttachmentScope.extend({ entries: external_exports.array(external_exports.unknown()) });
|
|
@@ -24627,6 +24681,27 @@ var ManagedSettings = external_exports.object({
|
|
|
24627
24681
|
};
|
|
24628
24682
|
}).meta({ id: "ManagedSettings" });
|
|
24629
24683
|
|
|
24684
|
+
// ../../packages/schema/src/zod/mod-policy-snapshot.ts
|
|
24685
|
+
var MOD_POLICY_SNAPSHOT_VERSION = 1;
|
|
24686
|
+
var MOD_POLICY_SNAPSHOT_MAX_BYTES = 4 * 1024 * 1024;
|
|
24687
|
+
var ModPolicySnapshot = external_exports.object({
|
|
24688
|
+
version: external_exports.literal(MOD_POLICY_SNAPSHOT_VERSION),
|
|
24689
|
+
generatedAt: external_exports.iso.datetime(),
|
|
24690
|
+
// The complete effective ruleset, as the hook's runtime scans with it: the
|
|
24691
|
+
// user's enabled installed packs (user-modified and custom packs included).
|
|
24692
|
+
// Absent means the store holds no authoritative snapshot, and the reader
|
|
24693
|
+
// scans with the packs it ships — the hook's own fallback.
|
|
24694
|
+
rules: external_exports.array(Rule).optional(),
|
|
24695
|
+
// Rule-targeted actions (first enabled policy per rule wins).
|
|
24696
|
+
ruleActions: external_exports.record(external_exports.string(), ActionTaken),
|
|
24697
|
+
// The resolved action per detection category.
|
|
24698
|
+
categoryActions: external_exports.record(external_exports.string(), ActionTaken),
|
|
24699
|
+
// Rules with an active exception grant. Honouring a grant means matching a
|
|
24700
|
+
// keyed fingerprint of the value and consuming a use, which only the hook can
|
|
24701
|
+
// do, so the mod leaves a finding of one of these rules for the hook to decide.
|
|
24702
|
+
exceptionRuleIds: external_exports.array(external_exports.string())
|
|
24703
|
+
}).meta({ id: "ModPolicySnapshot" });
|
|
24704
|
+
|
|
24630
24705
|
// ../../packages/schema/src/zod/project-files.ts
|
|
24631
24706
|
var ProjectFileInput = external_exports.object({
|
|
24632
24707
|
path: external_exports.string().min(1),
|
|
@@ -24941,7 +25016,16 @@ var AttachInput = external_exports.object({
|
|
|
24941
25016
|
// 200 matches the tenantName bound beside it in control-plane.ts; nothing
|
|
24942
25017
|
// renders a longer one usefully.
|
|
24943
25018
|
label: printable(200).optional(),
|
|
24944
|
-
accessKey: external_exports.string()
|
|
25019
|
+
accessKey: external_exports.string(),
|
|
25020
|
+
// How much of this machine the attachment is for: everything, or only the
|
|
25021
|
+
// repositories its user enrolls. Optional, so an input without it still
|
|
25022
|
+
// parses; what an absent mode means is for whatever reads it to decide, not
|
|
25023
|
+
// this shape. This member validates the VALUE rather than leaving that to the
|
|
25024
|
+
// call site, a deliberate exception to this module's shape-only rule: a shape
|
|
25025
|
+
// rejection names the field, so a value that is not a mode is refused as a bad
|
|
25026
|
+
// `mode` rather than stripped or passed on. The dashboard's attach action reads
|
|
25027
|
+
// it as the mode to attach in.
|
|
25028
|
+
mode: AttachmentMode.optional()
|
|
24945
25029
|
});
|
|
24946
25030
|
|
|
24947
25031
|
// ../../packages/schema/src/zod/triage.ts
|