@akasecurity/ai-tc-claude-code 0.9.12 → 0.9.13
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/.claude-plugin/plugin.json +1 -1
- package/package.json +2 -2
- package/scripts/apply-suppressions.js +331 -22
- package/scripts/backfill.js +464 -124
- package/scripts/content-retention.js +334 -22
- package/scripts/filescan.js +464 -124
- package/scripts/firstrun.js +464 -124
- package/scripts/history-sync.js +379 -42
- package/scripts/intro.js +209 -17
- package/scripts/message-display.js +331 -22
- package/scripts/onboard.js +331 -22
- package/scripts/post-model-switch.js +212 -17
- package/scripts/post-tool-use.js +464 -124
- package/scripts/pre-model-switch.js +488 -127
- package/scripts/pre-tool-use.js +488 -127
- package/scripts/query.js +575 -125
- package/scripts/reconcile.js +464 -124
- package/scripts/remediate.js +464 -124
- package/scripts/scan-worker.js +209 -17
- package/scripts/session-start.js +464 -124
- package/scripts/start-light.js +209 -17
- package/scripts/statusline.js +464 -124
- package/scripts/stop.js +212 -17
- package/scripts/sync.js +464 -124
- package/scripts/user-prompt-submit.js +488 -127
package/scripts/scan-worker.js
CHANGED
|
@@ -20533,7 +20533,17 @@ var UNPRICEABLE_PROVIDERS = Object.freeze([
|
|
|
20533
20533
|
"gateway",
|
|
20534
20534
|
"unknown",
|
|
20535
20535
|
"cli",
|
|
20536
|
-
"api"
|
|
20536
|
+
"api",
|
|
20537
|
+
// The browser extension's native host records these as `llm_call.provider`
|
|
20538
|
+
// for a web-chat turn — the web tool id, deliberately never the vendor id
|
|
20539
|
+
// (`openai`/`anthropic`) the session root carries. Subscription traffic
|
|
20540
|
+
// burns rate-limit budget, not dollar credits, and listing them here is
|
|
20541
|
+
// what keeps that true structurally: a later maintainer who wants to price
|
|
20542
|
+
// web-chat traffic at API rates has to delete this entry first, and meet
|
|
20543
|
+
// the reason on the way, rather than quietly adding one to
|
|
20544
|
+
// PROVIDER_PLATFORM.
|
|
20545
|
+
"chatgpt",
|
|
20546
|
+
"claude-ai"
|
|
20537
20547
|
]);
|
|
20538
20548
|
|
|
20539
20549
|
// ../../packages/schema/src/token/format.ts
|
|
@@ -20553,7 +20563,12 @@ var HARNESS = {
|
|
|
20553
20563
|
ClaudeDesktop: "claudedesktop",
|
|
20554
20564
|
ChatGpt: "chatgpt",
|
|
20555
20565
|
ClaudeAi: "claudeai",
|
|
20556
|
-
Api: "api"
|
|
20566
|
+
Api: "api",
|
|
20567
|
+
// Not a coding assistant a person drives — an in-process SDK embedded in an
|
|
20568
|
+
// application, so it has no IDE/CLI/desktop/web surface of its own. Carries
|
|
20569
|
+
// the same id as its SOURCE_TOOL counterpart, unlike every capture-side tool
|
|
20570
|
+
// whose wire spelling differs from its display spelling.
|
|
20571
|
+
AiTcSdk: "ai-tc-sdk"
|
|
20557
20572
|
};
|
|
20558
20573
|
var Harness = external_exports.enum(HARNESS).meta({ id: "Harness" });
|
|
20559
20574
|
var SOURCE_TOOL = {
|
|
@@ -20569,9 +20584,15 @@ var SOURCE_TOOL = {
|
|
|
20569
20584
|
// whose tool could not be identified both render through the read side's
|
|
20570
20585
|
// miss path rather than as a harness of their own.
|
|
20571
20586
|
Cli: "cli",
|
|
20572
|
-
Unknown: "unknown"
|
|
20587
|
+
Unknown: "unknown",
|
|
20588
|
+
// The wire id an in-process, request-path SDK stamps on its own structural
|
|
20589
|
+
// rows (`request_decision`) — never a capture of prompt/response/tool text,
|
|
20590
|
+
// since the SDK sits in front of a model call rather than inside a coding
|
|
20591
|
+
// assistant's own hook contract.
|
|
20592
|
+
AiTcSdk: "ai-tc-sdk"
|
|
20573
20593
|
};
|
|
20574
20594
|
var SourceTool = external_exports.enum(SOURCE_TOOL).meta({ id: "SourceTool" });
|
|
20595
|
+
var WebSourceTool = SourceTool.extract(["ChatGpt", "ClaudeAi"]);
|
|
20575
20596
|
var TOOL_TO_HARNESS = {
|
|
20576
20597
|
[SOURCE_TOOL.ClaudeCode]: HARNESS.ClaudeCode,
|
|
20577
20598
|
[SOURCE_TOOL.ClaudeDesktop]: HARNESS.ClaudeDesktop,
|
|
@@ -20580,7 +20601,12 @@ var TOOL_TO_HARNESS = {
|
|
|
20580
20601
|
[SOURCE_TOOL.ChatGpt]: HARNESS.ChatGpt,
|
|
20581
20602
|
[SOURCE_TOOL.Codex]: HARNESS.Codex,
|
|
20582
20603
|
[SOURCE_TOOL.Antigravity]: HARNESS.Antigravity,
|
|
20583
|
-
[SOURCE_TOOL.ClaudeAi]: HARNESS.ClaudeAi
|
|
20604
|
+
[SOURCE_TOOL.ClaudeAi]: HARNESS.ClaudeAi,
|
|
20605
|
+
// Wire and display id are the same string here, but the row still belongs:
|
|
20606
|
+
// both vocabularies carry the `AiTcSdk` member, and the join is exactly
|
|
20607
|
+
// their intersection — leaving a shared member out would read as an
|
|
20608
|
+
// uninstrumented tool on both surfaces, which this one is not.
|
|
20609
|
+
[SOURCE_TOOL.AiTcSdk]: HARNESS.AiTcSdk
|
|
20584
20610
|
};
|
|
20585
20611
|
|
|
20586
20612
|
// ../../packages/schema/src/zod/finding.ts
|
|
@@ -20614,7 +20640,8 @@ var FindingProvider = Harness.extract([
|
|
|
20614
20640
|
"ClaudeAi",
|
|
20615
20641
|
"Codex",
|
|
20616
20642
|
"Antigravity",
|
|
20617
|
-
"Api"
|
|
20643
|
+
"Api",
|
|
20644
|
+
"AiTcSdk"
|
|
20618
20645
|
]).meta({ id: "FindingProvider" });
|
|
20619
20646
|
var FindingCategory = external_exports.enum([
|
|
20620
20647
|
"secret",
|
|
@@ -20988,18 +21015,41 @@ var AuditEventType = external_exports.enum([
|
|
|
20988
21015
|
// 'tool_call' is the reconciler's structural row for every call, while
|
|
20989
21016
|
// 'tool_use' exists only where a hook enforced against the arguments.
|
|
20990
21017
|
"tool_use",
|
|
20991
|
-
// One row per model REFUSAL
|
|
20992
|
-
//
|
|
20993
|
-
//
|
|
20994
|
-
//
|
|
20995
|
-
//
|
|
20996
|
-
//
|
|
21018
|
+
// One row per model REFUSAL, across all four seams a prohibited model can be
|
|
21019
|
+
// stopped at: a switch onto it, a turn already running on it, a subagent
|
|
21020
|
+
// spawn asking for it, or a request-path refusal an embedded request-path
|
|
21021
|
+
// SDK makes in-process before the call leaves the application. Which seam
|
|
21022
|
+
// rides `attributes.refusal_seam`, never this member name. A structural row
|
|
21023
|
+
// like the ones above rather than a capture — it carries the model that was
|
|
21024
|
+
// refused and nothing the user typed, because what is worth recording about
|
|
21025
|
+
// a governance decision is the decision, and prompt text is the thing this
|
|
21026
|
+
// product exists to keep from travelling.
|
|
20997
21027
|
"model_refusal",
|
|
21028
|
+
// One row per request-path DECISION: a policy check an embedded request-path
|
|
21029
|
+
// SDK performs in-process before a model call leaves the application, or
|
|
21030
|
+
// against that call's non-streamed response. A structural row like
|
|
21031
|
+
// 'model_refusal' rather than a capture — content-free in the same way:
|
|
21032
|
+
// which side, which seam, what action and which field are decided rides
|
|
21033
|
+
// `attributes`, never this member name, and the matched text itself never
|
|
21034
|
+
// travels.
|
|
21035
|
+
//
|
|
21036
|
+
// A prohibited-model refusal on the request path is deliberately NOT this
|
|
21037
|
+
// member: it stays 'model_refusal' with `refusal_seam: 'request'`, so it
|
|
21038
|
+
// shares one bucket with the plugin's switch/turn/spawn refusals rather
|
|
21039
|
+
// than splitting one governance concept across two event types. This
|
|
21040
|
+
// member carries every OTHER request-path decision.
|
|
21041
|
+
"request_decision",
|
|
20998
21042
|
// One row per config-inventory scan, hung off the session root. It is the
|
|
20999
21043
|
// fact the posture inspection findings reference (findings require an
|
|
21000
21044
|
// audit_event_id), and its started_at is the "scanned Nm ago" the read
|
|
21001
21045
|
// surface renders.
|
|
21002
|
-
"config_scan"
|
|
21046
|
+
"config_scan",
|
|
21047
|
+
// One row per reported browser-extension capture status, hung off the web
|
|
21048
|
+
// session root. The durable home of what one tab's network interception
|
|
21049
|
+
// is doing — a write-through of the native host's in-memory tracker, so a
|
|
21050
|
+
// second process (aka extension status) and a restarted host both have
|
|
21051
|
+
// somewhere to read it back from.
|
|
21052
|
+
"capture_status"
|
|
21003
21053
|
]).meta({ id: "AuditEventType" });
|
|
21004
21054
|
var AttributeBag = external_exports.record(external_exports.string(), external_exports.unknown());
|
|
21005
21055
|
var HostAttributes = external_exports.object({
|
|
@@ -21159,6 +21209,20 @@ var CaptureAttributes = external_exports.object({
|
|
|
21159
21209
|
// repeated rather than referenced because a store reader opens this file.
|
|
21160
21210
|
redact_degraded_to: ActionTaken.optional()
|
|
21161
21211
|
}).catchall(external_exports.unknown());
|
|
21212
|
+
var CaptureStatusAttributes = external_exports.object({
|
|
21213
|
+
source_tool: external_exports.string().optional(),
|
|
21214
|
+
patched: external_exports.boolean().optional(),
|
|
21215
|
+
live: external_exports.boolean().optional(),
|
|
21216
|
+
blind: external_exports.boolean().optional(),
|
|
21217
|
+
sends_seen_dom: external_exports.number().int().nonnegative().optional(),
|
|
21218
|
+
exchanges_seen_net: external_exports.number().int().nonnegative().optional(),
|
|
21219
|
+
parse_failures: external_exports.number().int().nonnegative().optional(),
|
|
21220
|
+
unparsed_bodies: external_exports.number().int().nonnegative().optional(),
|
|
21221
|
+
shape_misses: external_exports.array(external_exports.string()).optional(),
|
|
21222
|
+
conversation_endpoints: external_exports.number().int().nonnegative().optional(),
|
|
21223
|
+
closed: external_exports.boolean().optional(),
|
|
21224
|
+
enforcement: external_exports.string().optional()
|
|
21225
|
+
}).catchall(external_exports.unknown());
|
|
21162
21226
|
var ToolCallInspection = external_exports.object({
|
|
21163
21227
|
ruleId: external_exports.string().min(1),
|
|
21164
21228
|
ruleName: external_exports.string(),
|
|
@@ -22168,6 +22232,11 @@ var RemoteFailureKind = external_exports.enum([
|
|
|
22168
22232
|
"rejected",
|
|
22169
22233
|
"unreachable"
|
|
22170
22234
|
]);
|
|
22235
|
+
var ControlPlaneFailure = RemoteFailureKind.extract([
|
|
22236
|
+
"unauthorized",
|
|
22237
|
+
"forbidden",
|
|
22238
|
+
"unreachable"
|
|
22239
|
+
]);
|
|
22171
22240
|
var AttachDeviceRequest = external_exports.object({
|
|
22172
22241
|
// This machine's own continuity id, so re-attaching ROTATES the credential
|
|
22173
22242
|
// on one machine record instead of producing a second one. Client-minted
|
|
@@ -22590,7 +22659,12 @@ var EventMetadata = external_exports.object({
|
|
|
22590
22659
|
// in — set by the browser extension's network capture so a stored `response`
|
|
22591
22660
|
// row can be joined to the `llm_call` leaf describing the same turn. Absent
|
|
22592
22661
|
// on every other capture path, which has no such id.
|
|
22593
|
-
|
|
22662
|
+
//
|
|
22663
|
+
// Non-empty for the reason WebExchange.messageId is: it is the join key, and
|
|
22664
|
+
// a blank one matches no `llm_call` leaf. That refusal reaches only the
|
|
22665
|
+
// places an event is PARSED; the local write path types the event and parses
|
|
22666
|
+
// nothing, which is why `toCaptureAttributes` omits a blank one separately.
|
|
22667
|
+
messageId: external_exports.string().min(1).optional(),
|
|
22594
22668
|
conversationId: external_exports.string().optional(),
|
|
22595
22669
|
// How long THIS capture's inspection blocked its caller, in whole
|
|
22596
22670
|
// milliseconds — the plugin's own added latency, NOT the LLM call it sat in
|
|
@@ -23190,6 +23264,18 @@ var HistorySyncConsent = external_exports.object({
|
|
|
23190
23264
|
payloadVersion: external_exports.number().int().positive(),
|
|
23191
23265
|
endpoint: external_exports.string()
|
|
23192
23266
|
});
|
|
23267
|
+
var WebChatCaptureConsent = external_exports.object({
|
|
23268
|
+
acknowledgedAt: external_exports.iso.datetime(),
|
|
23269
|
+
version: external_exports.number().int().positive()
|
|
23270
|
+
});
|
|
23271
|
+
var WebChatResponseCapture = external_exports.enum(["with-findings", "always", "never"]);
|
|
23272
|
+
var WebChatCapture = external_exports.object({
|
|
23273
|
+
responses: WebChatResponseCapture.default("with-findings"),
|
|
23274
|
+
account: external_exports.boolean().default(false),
|
|
23275
|
+
// Absent until granted. Presence alone does not authorize anything — see
|
|
23276
|
+
// isWebChatCaptureConsentValid.
|
|
23277
|
+
consent: WebChatCaptureConsent.optional()
|
|
23278
|
+
});
|
|
23193
23279
|
var BODY_RETENTION_DEFAULT_DAYS = 30;
|
|
23194
23280
|
var BodyRetention = external_exports.object({
|
|
23195
23281
|
enabled: external_exports.boolean().default(false),
|
|
@@ -23248,6 +23334,16 @@ var WorkspaceSettings = external_exports.object({
|
|
|
23248
23334
|
// both widenings. Absent until granted, and a grant for a different endpoint
|
|
23249
23335
|
// or an older payload no longer counts.
|
|
23250
23336
|
historySyncConsent: HistorySyncConsent.optional(),
|
|
23337
|
+
// What the browser extension may record from a web chat, and the grant that
|
|
23338
|
+
// authorizes it. Absent until the user answers: recording something that was
|
|
23339
|
+
// never recorded before is never an assumed grant on upgrade, so the whole
|
|
23340
|
+
// block is optional rather than defaulted in. What an absent block means is
|
|
23341
|
+
// webChatCaptureOf's answer, in one place.
|
|
23342
|
+
//
|
|
23343
|
+
// Enforcement is NOT gated on this. A machine that has never answered still
|
|
23344
|
+
// blocks, redacts and warns on what a user sends; the grant covers what is
|
|
23345
|
+
// written down.
|
|
23346
|
+
webChatCapture: WebChatCapture.optional(),
|
|
23251
23347
|
// Local body expiry (see BodyRetention). Off until switched on; expiring a
|
|
23252
23348
|
// body never removes the row or its findings.
|
|
23253
23349
|
bodyRetention: BodyRetention.default({
|
|
@@ -23605,12 +23701,14 @@ var RecommendedActionIdParam = external_exports.object({ id: external_exports.st
|
|
|
23605
23701
|
// ../../packages/schema/src/zod/settings-action.ts
|
|
23606
23702
|
var HistorySyncConsentChoice = external_exports.enum(["granted", "revoked", "unchanged"]).meta({ id: "HistorySyncConsentChoice" });
|
|
23607
23703
|
var ModelJudgeConsentChoice = external_exports.enum(["granted", "revoked", "unchanged"]).meta({ id: "ModelJudgeConsentChoice" });
|
|
23704
|
+
var WebChatCaptureConsentChoice = external_exports.enum(["granted", "revoked", "unchanged"]).meta({ id: "WebChatCaptureConsentChoice" });
|
|
23608
23705
|
var SaveSettingsInput = external_exports.object({
|
|
23609
23706
|
historicalAccess: external_exports.string(),
|
|
23610
23707
|
modelJudgeConsent: ModelJudgeConsentChoice,
|
|
23611
23708
|
historySyncConsent: HistorySyncConsentChoice,
|
|
23612
23709
|
vaultConsent: external_exports.string(),
|
|
23613
23710
|
vaultInlineReveal: external_exports.string(),
|
|
23711
|
+
webChatCaptureConsent: WebChatCaptureConsentChoice,
|
|
23614
23712
|
// Widened to `string` like its neighbours rather than typed as
|
|
23615
23713
|
// `RedactFallback`, on this module's own layering rule: shape here, VALUE at
|
|
23616
23714
|
// the call site, so the domain check receives the type it was written for.
|
|
@@ -23779,11 +23877,24 @@ var WebExchange = external_exports.object({
|
|
|
23779
23877
|
turnIndex: external_exports.number().int().nonnegative().optional(),
|
|
23780
23878
|
toolCalls: external_exports.array(WebToolCall).default([]),
|
|
23781
23879
|
// Absent when the adapter recovered no text. Capped by the caller at
|
|
23782
|
-
// RESPONSE_TEXT_MAX_BYTES
|
|
23783
|
-
//
|
|
23880
|
+
// RESPONSE_TEXT_MAX_BYTES, so a short capture is never mistaken for a short
|
|
23881
|
+
// reply.
|
|
23784
23882
|
responseText: external_exports.string().optional(),
|
|
23883
|
+
// The stored text is short of the reply. It does NOT say which of the two
|
|
23884
|
+
// ceilings on this path cut it: the caller applies its own cap on the raw
|
|
23885
|
+
// bytes it reads off the wire, which can be reached by a stream whose
|
|
23886
|
+
// recovered text stays well under RESPONSE_TEXT_MAX_BYTES, and applies that
|
|
23887
|
+
// one to the text. A reader cannot tell them apart, and nothing downstream
|
|
23888
|
+
// should branch as though it could.
|
|
23785
23889
|
truncated: external_exports.boolean().default(false)
|
|
23786
23890
|
});
|
|
23891
|
+
var WebEnforcementState = external_exports.enum([
|
|
23892
|
+
"watching",
|
|
23893
|
+
"composer-only",
|
|
23894
|
+
"button-only",
|
|
23895
|
+
"unattached",
|
|
23896
|
+
"unknown"
|
|
23897
|
+
]);
|
|
23787
23898
|
var RESPONSE_TEXT_MAX_BYTES = 2 * 1024 * 1024;
|
|
23788
23899
|
var WebCaptureStatus = external_exports.object({
|
|
23789
23900
|
patched: external_exports.boolean(),
|
|
@@ -23795,8 +23906,39 @@ var WebCaptureStatus = external_exports.object({
|
|
|
23795
23906
|
unparsedBodies: external_exports.number().int().nonnegative(),
|
|
23796
23907
|
// The adapter-declared JSON key paths that were absent from a real payload —
|
|
23797
23908
|
// the earliest signal that a site's contract moved.
|
|
23798
|
-
shapeMisses: external_exports.array(external_exports.string()).default([])
|
|
23799
|
-
|
|
23909
|
+
shapeMisses: external_exports.array(external_exports.string()).default([]),
|
|
23910
|
+
// How many `kind: 'conversation'` endpoints the reporting tab's adapter
|
|
23911
|
+
// compiled. Zero means this build declares none for the site, so observing
|
|
23912
|
+
// nothing is the design rather than a fault — the one fact that separates a
|
|
23913
|
+
// site nobody has surveyed yet from one whose contract moved. Defaulted so a
|
|
23914
|
+
// build predating the field is read as declaring nothing rather than refused.
|
|
23915
|
+
conversationEndpoints: external_exports.number().int().nonnegative().default(0),
|
|
23916
|
+
// The document that sent this report is going away. The bridge sets it on
|
|
23917
|
+
// its `pagehide` report and nowhere else.
|
|
23918
|
+
//
|
|
23919
|
+
// A property of the REPORT rather than of capture health, which is why
|
|
23920
|
+
// nothing in `deriveWebCaptureState` reads it and why it stays out of the
|
|
23921
|
+
// bridge's own report signature — a closing tab's last word must not be
|
|
23922
|
+
// suppressed for carrying the same health as the report before it. What
|
|
23923
|
+
// reads it is the per-site fold: a document that said it was unloading stops
|
|
23924
|
+
// voting on the site's state, so the reload the `blind` remediation asks for
|
|
23925
|
+
// can actually clear the verdict it was shown. A document that dies without
|
|
23926
|
+
// sending one is covered by CAPTURE_STATUS_DOCUMENT_QUIET_MS instead.
|
|
23927
|
+
//
|
|
23928
|
+
// Defaulted so a build predating the field reads as a document that never
|
|
23929
|
+
// said it was closing — which keeps it voting, the same as every report that
|
|
23930
|
+
// is not a final one.
|
|
23931
|
+
closed: external_exports.boolean().default(false),
|
|
23932
|
+
// What the DOM enforcement path is doing, which none of the counters above
|
|
23933
|
+
// can say: `sendsSeenDom` rises only once a send has COMPLETED, so a tab
|
|
23934
|
+
// whose watcher never bound reports zero exactly like a tab nobody typed in.
|
|
23935
|
+
// Defaulted to 'unknown' rather than 'watching' so a status from a build
|
|
23936
|
+
// predating the field is not read as reporting a healthy one.
|
|
23937
|
+
enforcement: WebEnforcementState.default("unknown")
|
|
23938
|
+
});
|
|
23939
|
+
var CAPTURE_STATUS_RECENCY_MS = 30 * 24 * 60 * 60 * 1e3;
|
|
23940
|
+
var CAPTURE_STATUS_RECENCY_DAYS = CAPTURE_STATUS_RECENCY_MS / (24 * 60 * 60 * 1e3);
|
|
23941
|
+
var CAPTURE_STATUS_DOCUMENT_QUIET_MS = 12 * 60 * 60 * 1e3;
|
|
23800
23942
|
|
|
23801
23943
|
// ../../packages/detections/src/posture/config-posture.ts
|
|
23802
23944
|
var RULE_VERSION = "1";
|
|
@@ -23855,6 +23997,56 @@ var CONFIG_POSTURE_RULES = [
|
|
|
23855
23997
|
}
|
|
23856
23998
|
];
|
|
23857
23999
|
|
|
24000
|
+
// ../../packages/detections/src/posture/web-capture-posture.ts
|
|
24001
|
+
var RULE_VERSION2 = "1";
|
|
24002
|
+
var DRIFT_MIN_PARSE_FAILURES = 2;
|
|
24003
|
+
var WEB_CAPTURE_DRIFT_STATES = /* @__PURE__ */ new Set([
|
|
24004
|
+
"blind",
|
|
24005
|
+
"degraded"
|
|
24006
|
+
]);
|
|
24007
|
+
var WEB_CAPTURE_DRIFT_RULE = {
|
|
24008
|
+
ruleId: "web-capture-drift",
|
|
24009
|
+
version: RULE_VERSION2,
|
|
24010
|
+
name: "Web chat capture is not reading the site",
|
|
24011
|
+
category: "config",
|
|
24012
|
+
severity: "medium",
|
|
24013
|
+
definition: JSON.stringify({
|
|
24014
|
+
kind: "web-capture-drift",
|
|
24015
|
+
states: [...WEB_CAPTURE_DRIFT_STATES],
|
|
24016
|
+
minParseFailures: DRIFT_MIN_PARSE_FAILURES
|
|
24017
|
+
})
|
|
24018
|
+
};
|
|
24019
|
+
var STATIC_COPY = {
|
|
24020
|
+
active: { headline: "turns are being observed on this site" },
|
|
24021
|
+
unreported: {
|
|
24022
|
+
// Says "recently" rather than "yet": the store read is bounded to
|
|
24023
|
+
// CAPTURE_STATUS_RECENCY_MS, so this state covers a site nothing has ever
|
|
24024
|
+
// reported for AND one whose last report has aged out. The two are the
|
|
24025
|
+
// same fact to a reader — nobody has confirmed anything lately — and the
|
|
24026
|
+
// copy may not claim the stronger of them.
|
|
24027
|
+
headline: `no report in the last ${String(CAPTURE_STATUS_RECENCY_DAYS)} days \u2014 open the site in Chrome with the extension loaded`
|
|
24028
|
+
},
|
|
24029
|
+
standby: {
|
|
24030
|
+
headline: "this build declares no endpoints for the site, so nothing is observed yet"
|
|
24031
|
+
},
|
|
24032
|
+
unpatched: {
|
|
24033
|
+
// Says what the flags say and no more. `patched` is false both for a tap
|
|
24034
|
+
// that installed and hooked neither transport and for one that never ran
|
|
24035
|
+
// at all — a page reports the same status either way, so the copy may not
|
|
24036
|
+
// assert one of them.
|
|
24037
|
+
headline: "the page tap captured neither fetch nor XHR \u2014 it may not have installed; reload the extension at chrome://extensions"
|
|
24038
|
+
},
|
|
24039
|
+
idle: { headline: "watching; no turn has been observed yet" },
|
|
24040
|
+
blind: {
|
|
24041
|
+
headline: "messages were sent in the page that the network capture never saw",
|
|
24042
|
+
remediation: "reload the tab. If it persists after `aka update` and reloading the extension at chrome://extensions, the site's send path has changed and needs a new extension build."
|
|
24043
|
+
},
|
|
24044
|
+
degraded: {
|
|
24045
|
+
headline: "the site's payloads no longer carry the fields the extension reads",
|
|
24046
|
+
remediation: "run `aka update`, then reload the extension at chrome://extensions. If it stays degraded after an update, the site's contract has changed and needs a new extension build."
|
|
24047
|
+
}
|
|
24048
|
+
};
|
|
24049
|
+
|
|
23858
24050
|
// ../../packages/detections/src/security/redos-probe.ts
|
|
23859
24051
|
var BUDGET_MS = 100;
|
|
23860
24052
|
var EXPONENTIAL_UNITS = [
|