@onlyflows/servicenow-mcp 2.3.0-rc.1 → 2.3.0-rc.3
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/CHANGELOG.md +788 -3
- package/README.md +446 -41
- package/dist/atf-policy.d.ts +1 -1
- package/dist/atf-policy.d.ts.map +1 -1
- package/dist/atf-policy.js +2 -0
- package/dist/atf-policy.js.map +1 -1
- package/dist/call-metrics.d.ts +42 -0
- package/dist/call-metrics.d.ts.map +1 -0
- package/dist/call-metrics.js +89 -0
- package/dist/call-metrics.js.map +1 -0
- package/dist/client.d.ts +18 -14
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +51 -36
- package/dist/client.js.map +1 -1
- package/dist/code-search-snippet.d.ts +25 -0
- package/dist/code-search-snippet.d.ts.map +1 -0
- package/dist/code-search-snippet.js +67 -0
- package/dist/code-search-snippet.js.map +1 -0
- package/dist/code-search-targets.d.ts +66 -0
- package/dist/code-search-targets.d.ts.map +1 -0
- package/dist/code-search-targets.js +82 -0
- package/dist/code-search-targets.js.map +1 -0
- package/dist/config.d.ts +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/credential-tables.d.ts +32 -0
- package/dist/credential-tables.d.ts.map +1 -0
- package/dist/credential-tables.js +58 -0
- package/dist/credential-tables.js.map +1 -0
- package/dist/encoded-query-policy.d.ts +9 -0
- package/dist/encoded-query-policy.d.ts.map +1 -1
- package/dist/encoded-query-policy.js +27 -2
- package/dist/encoded-query-policy.js.map +1 -1
- package/dist/execution-context.d.ts +14 -0
- package/dist/execution-context.d.ts.map +1 -1
- package/dist/execution-context.js +8 -0
- package/dist/execution-context.js.map +1 -1
- package/dist/field-policy.d.ts +44 -1
- package/dist/field-policy.d.ts.map +1 -1
- package/dist/field-policy.js +623 -35
- package/dist/field-policy.js.map +1 -1
- package/dist/hidden-values.d.ts +225 -0
- package/dist/hidden-values.d.ts.map +1 -0
- package/dist/hidden-values.js +748 -0
- package/dist/hidden-values.js.map +1 -0
- package/dist/http-entrypoint.d.ts.map +1 -1
- package/dist/http-entrypoint.js +7 -0
- package/dist/http-entrypoint.js.map +1 -1
- package/dist/http-observability.js +1 -0
- package/dist/http-observability.js.map +1 -1
- package/dist/http-runtime.js +16 -0
- package/dist/http-runtime.js.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/metadata-cache.d.ts +135 -7
- package/dist/metadata-cache.d.ts.map +1 -1
- package/dist/metadata-cache.js +357 -21
- package/dist/metadata-cache.js.map +1 -1
- package/dist/policy-card.d.ts +16 -1
- package/dist/policy-card.d.ts.map +1 -1
- package/dist/policy-card.js +15 -2
- package/dist/policy-card.js.map +1 -1
- package/dist/profile-admin.d.ts +18 -0
- package/dist/profile-admin.d.ts.map +1 -1
- package/dist/profile-admin.js +26 -1
- package/dist/profile-admin.js.map +1 -1
- package/dist/profile-manager.d.ts +13 -1
- package/dist/profile-manager.d.ts.map +1 -1
- package/dist/profile-manager.js +23 -1
- package/dist/profile-manager.js.map +1 -1
- package/dist/response-too-large.d.ts +23 -0
- package/dist/response-too-large.d.ts.map +1 -0
- package/dist/response-too-large.js +42 -0
- package/dist/response-too-large.js.map +1 -0
- package/dist/risky-grants.d.ts +6 -2
- package/dist/risky-grants.d.ts.map +1 -1
- package/dist/risky-grants.js +58 -5
- package/dist/risky-grants.js.map +1 -1
- package/dist/setup-prompts.js +1 -1
- package/dist/setup-prompts.js.map +1 -1
- package/dist/setup.d.ts +4 -0
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +176 -68
- package/dist/setup.js.map +1 -1
- package/dist/structured-query.d.ts +61 -2
- package/dist/structured-query.d.ts.map +1 -1
- package/dist/structured-query.js +382 -36
- package/dist/structured-query.js.map +1 -1
- package/dist/table-policy.d.ts +75 -2
- package/dist/table-policy.d.ts.map +1 -1
- package/dist/table-policy.js +184 -15
- package/dist/table-policy.js.map +1 -1
- package/dist/tool-error.d.ts +47 -4
- package/dist/tool-error.d.ts.map +1 -1
- package/dist/tool-error.js +104 -4
- package/dist/tool-error.js.map +1 -1
- package/dist/tool-table-access.d.ts +9 -2
- package/dist/tool-table-access.d.ts.map +1 -1
- package/dist/tool-table-access.js +118 -36
- package/dist/tool-table-access.js.map +1 -1
- package/dist/tools/aggregate.js +2 -2
- package/dist/tools/aggregate.js.map +1 -1
- package/dist/tools/all-fields-cap.d.ts.map +1 -1
- package/dist/tools/all-fields-cap.js +29 -7
- package/dist/tools/all-fields-cap.js.map +1 -1
- package/dist/tools/atf-author-module.d.ts +1 -7
- package/dist/tools/atf-author-module.d.ts.map +1 -1
- package/dist/tools/atf-author-module.js +16 -7
- package/dist/tools/atf-author-module.js.map +1 -1
- package/dist/tools/atf-contracts.d.ts +69 -4
- package/dist/tools/atf-contracts.d.ts.map +1 -1
- package/dist/tools/atf-contracts.js +32 -2
- package/dist/tools/atf-contracts.js.map +1 -1
- package/dist/tools/atf-renderers.js +2 -1
- package/dist/tools/atf-renderers.js.map +1 -1
- package/dist/tools/atf-results-module.d.ts.map +1 -1
- package/dist/tools/atf-results-module.js +5 -3
- package/dist/tools/atf-results-module.js.map +1 -1
- package/dist/tools/atf-run-module.js +3 -2
- package/dist/tools/atf-run-module.js.map +1 -1
- package/dist/tools/atf-shared.d.ts +6 -0
- package/dist/tools/atf-shared.d.ts.map +1 -1
- package/dist/tools/atf-shared.js +49 -10
- package/dist/tools/atf-shared.js.map +1 -1
- package/dist/tools/atf-step-catalog.d.ts +13 -8
- package/dist/tools/atf-step-catalog.d.ts.map +1 -1
- package/dist/tools/atf-step-catalog.js +169 -5
- package/dist/tools/atf-step-catalog.js.map +1 -1
- package/dist/tools/batch.d.ts.map +1 -1
- package/dist/tools/batch.js +25 -7
- package/dist/tools/batch.js.map +1 -1
- package/dist/tools/catalog.d.ts.map +1 -1
- package/dist/tools/catalog.js +2 -1
- package/dist/tools/catalog.js.map +1 -1
- package/dist/tools/codesearch.d.ts +2 -2
- package/dist/tools/codesearch.d.ts.map +1 -1
- package/dist/tools/codesearch.js +536 -67
- package/dist/tools/codesearch.js.map +1 -1
- package/dist/tools/flow-view-contracts.d.ts +59 -3
- package/dist/tools/flow-view-contracts.d.ts.map +1 -1
- package/dist/tools/flow-view-contracts.js +34 -2
- package/dist/tools/flow-view-contracts.js.map +1 -1
- package/dist/tools/flow-view-graph.d.ts +14 -0
- package/dist/tools/flow-view-graph.d.ts.map +1 -1
- package/dist/tools/flow-view-graph.js +43 -1
- package/dist/tools/flow-view-graph.js.map +1 -1
- package/dist/tools/flow-view-module.js +2 -2
- package/dist/tools/flow-view-module.js.map +1 -1
- package/dist/tools/flow-view-policy.d.ts +3 -3
- package/dist/tools/flow-view-policy.d.ts.map +1 -1
- package/dist/tools/flow-view-policy.js +5 -4
- package/dist/tools/flow-view-policy.js.map +1 -1
- package/dist/tools/flow-view-renderers.d.ts.map +1 -1
- package/dist/tools/flow-view-renderers.js +9 -21
- package/dist/tools/flow-view-renderers.js.map +1 -1
- package/dist/tools/get-module.js +1 -1
- package/dist/tools/get-module.js.map +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +116 -25
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/platform-view-contracts.d.ts +189 -0
- package/dist/tools/platform-view-contracts.d.ts.map +1 -0
- package/dist/tools/platform-view-contracts.js +353 -0
- package/dist/tools/platform-view-contracts.js.map +1 -0
- package/dist/tools/platform-view-evaluate.d.ts +219 -0
- package/dist/tools/platform-view-evaluate.d.ts.map +1 -0
- package/dist/tools/platform-view-evaluate.js +1346 -0
- package/dist/tools/platform-view-evaluate.js.map +1 -0
- package/dist/tools/platform-view-module.d.ts +28 -0
- package/dist/tools/platform-view-module.d.ts.map +1 -0
- package/dist/tools/platform-view-module.js +111 -0
- package/dist/tools/platform-view-module.js.map +1 -0
- package/dist/tools/platform-view-scan.d.ts +57 -0
- package/dist/tools/platform-view-scan.d.ts.map +1 -0
- package/dist/tools/platform-view-scan.js +375 -0
- package/dist/tools/platform-view-scan.js.map +1 -0
- package/dist/tools/platform-view-upgrades.d.ts +152 -0
- package/dist/tools/platform-view-upgrades.d.ts.map +1 -0
- package/dist/tools/platform-view-upgrades.js +545 -0
- package/dist/tools/platform-view-upgrades.js.map +1 -0
- package/dist/tools/profile.d.ts.map +1 -1
- package/dist/tools/profile.js +1 -0
- package/dist/tools/profile.js.map +1 -1
- package/dist/tools/query-module.d.ts.map +1 -1
- package/dist/tools/query-module.js +231 -64
- package/dist/tools/query-module.js.map +1 -1
- package/dist/tools/record-write-shared.d.ts.map +1 -1
- package/dist/tools/record-write-shared.js +4 -3
- package/dist/tools/record-write-shared.js.map +1 -1
- package/dist/tools/result-envelope.d.ts +429 -38
- package/dist/tools/result-envelope.d.ts.map +1 -1
- package/dist/tools/result-envelope.js +372 -36
- package/dist/tools/result-envelope.js.map +1 -1
- package/dist/tools/schema-module.d.ts.map +1 -1
- package/dist/tools/schema-module.js +1 -1
- package/dist/tools/schema-module.js.map +1 -1
- package/dist/tools/syslog-cursor.d.ts +61 -0
- package/dist/tools/syslog-cursor.d.ts.map +1 -0
- package/dist/tools/syslog-cursor.js +146 -0
- package/dist/tools/syslog-cursor.js.map +1 -0
- package/dist/tools/syslog.d.ts +2 -0
- package/dist/tools/syslog.d.ts.map +1 -1
- package/dist/tools/syslog.js +126 -2
- package/dist/tools/syslog.js.map +1 -1
- package/dist/tools/truncation-hint.d.ts +125 -0
- package/dist/tools/truncation-hint.d.ts.map +1 -0
- package/dist/tools/truncation-hint.js +298 -0
- package/dist/tools/truncation-hint.js.map +1 -0
- package/dist/unknown-filter-fields.d.ts +52 -0
- package/dist/unknown-filter-fields.d.ts.map +1 -0
- package/dist/unknown-filter-fields.js +87 -0
- package/dist/unknown-filter-fields.js.map +1 -0
- package/dist/update-set-eval/engine.d.ts +29 -0
- package/dist/update-set-eval/engine.d.ts.map +1 -0
- package/dist/update-set-eval/engine.js +405 -0
- package/dist/update-set-eval/engine.js.map +1 -0
- package/dist/update-set-eval/prepare.d.ts +72 -0
- package/dist/update-set-eval/prepare.d.ts.map +1 -0
- package/dist/update-set-eval/prepare.js +216 -0
- package/dist/update-set-eval/prepare.js.map +1 -0
- package/dist/update-set-eval/rules.d.ts +126 -0
- package/dist/update-set-eval/rules.d.ts.map +1 -0
- package/dist/update-set-eval/rules.js +927 -0
- package/dist/update-set-eval/rules.js.map +1 -0
- package/dist/update-set-eval/script-scan.d.ts +65 -0
- package/dist/update-set-eval/script-scan.d.ts.map +1 -0
- package/dist/update-set-eval/script-scan.js +378 -0
- package/dist/update-set-eval/script-scan.js.map +1 -0
- package/dist/update-set-eval/secret-patterns.d.ts +75 -0
- package/dist/update-set-eval/secret-patterns.d.ts.map +1 -0
- package/dist/update-set-eval/secret-patterns.js +570 -0
- package/dist/update-set-eval/secret-patterns.js.map +1 -0
- package/dist/update-set-eval/types.d.ts +181 -0
- package/dist/update-set-eval/types.d.ts.map +1 -0
- package/dist/update-set-eval/types.js +20 -0
- package/dist/update-set-eval/types.js.map +1 -0
- package/dist/update-set-eval/xml-reader.d.ts +117 -0
- package/dist/update-set-eval/xml-reader.d.ts.map +1 -0
- package/dist/update-set-eval/xml-reader.js +561 -0
- package/dist/update-set-eval/xml-reader.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/CLIENT-SETUP.md +30 -7
- package/docs/FLOW-VIEW.md +14 -5
- package/docs/PRODUCTION-SECURITY.md +84 -1
- package/docs/PROFILE-CREDENTIALS.md +10 -4
- package/docs/V2-MIGRATION.md +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input and output shapes of the update-set evaluator.
|
|
3
|
+
*
|
|
4
|
+
* A clean result is not an approval: the rules are heuristics over the
|
|
5
|
+
* scripts and fields they know, and `coverage` says what was not examined.
|
|
6
|
+
*
|
|
7
|
+
* The engine reads nothing upstream. Its caller (the `evaluate` view) reads
|
|
8
|
+
* the sets, their rows and the extra facts some rules need, inside its
|
|
9
|
+
* declared access plan, and hands them over here. Instance text in the input
|
|
10
|
+
* is untrusted: the engine never puts payload text into a finding, and it
|
|
11
|
+
* returns row metadata (`name`, `target_name`, `type`) as data for the caller
|
|
12
|
+
* to fence.
|
|
13
|
+
*/
|
|
14
|
+
export declare const RULE_GROUPS: readonly ["perf", "sec", "bp"];
|
|
15
|
+
export type RuleGroup = (typeof RULE_GROUPS)[number];
|
|
16
|
+
/** Lowest first. */
|
|
17
|
+
export declare const SEVERITIES: readonly ["info", "low", "medium", "high", "critical"];
|
|
18
|
+
export type Severity = (typeof SEVERITIES)[number];
|
|
19
|
+
export type Confidence = "high" | "medium" | "low";
|
|
20
|
+
/** One update set: a local `sys_update_set` or a remote `sys_remote_update_set`. */
|
|
21
|
+
export interface EvaluateSet {
|
|
22
|
+
readonly sys_id: string;
|
|
23
|
+
readonly name: string;
|
|
24
|
+
/** `in progress`, `complete` or `ignore` for a local set; a remote state otherwise. */
|
|
25
|
+
readonly state?: string | null;
|
|
26
|
+
readonly is_default?: boolean;
|
|
27
|
+
/** Whether the set has a non-empty description. The text itself is not needed. */
|
|
28
|
+
readonly has_description?: boolean;
|
|
29
|
+
/** The set's application sys_id. */
|
|
30
|
+
readonly application?: string | null;
|
|
31
|
+
/** The parent set's sys_id, for batch members. */
|
|
32
|
+
readonly parent?: string | null;
|
|
33
|
+
/** Rows in the set, from a stats read; an absent stats group is 0. */
|
|
34
|
+
readonly update_count: number;
|
|
35
|
+
}
|
|
36
|
+
/** One `sys_update_xml` row. */
|
|
37
|
+
export interface EvaluateUpdate {
|
|
38
|
+
readonly sys_id: string;
|
|
39
|
+
readonly name: string;
|
|
40
|
+
readonly type?: string | null;
|
|
41
|
+
readonly target_name?: string | null;
|
|
42
|
+
/** The set (local or remote) the row belongs to. */
|
|
43
|
+
readonly update_set: string;
|
|
44
|
+
readonly action?: string | null;
|
|
45
|
+
/** The `table` column, when the caller read it. */
|
|
46
|
+
readonly table?: string | null;
|
|
47
|
+
readonly application?: string | null;
|
|
48
|
+
readonly replace_on_upgrade?: boolean;
|
|
49
|
+
/** The payload, or null when it is not readable under field policy or was not read. */
|
|
50
|
+
readonly payload: string | null;
|
|
51
|
+
}
|
|
52
|
+
/** One `sys_update_preview_problem` row of a remote set. */
|
|
53
|
+
export interface PreviewProblem {
|
|
54
|
+
readonly sys_id: string;
|
|
55
|
+
/** The `sys_update_xml` row (`remote_update`) the problem is about, if any. */
|
|
56
|
+
readonly remote_update?: string | null;
|
|
57
|
+
readonly status: string | null;
|
|
58
|
+
readonly type?: string | null;
|
|
59
|
+
}
|
|
60
|
+
/** What a field-type lookup knows about one table's password-typed fields. */
|
|
61
|
+
export type HiddenFieldNames = ReadonlySet<string> | "unavailable";
|
|
62
|
+
/**
|
|
63
|
+
* Facts from shared helpers that the engine must not decide by itself. The
|
|
64
|
+
* caller wires these to the shared credential-table list, the type-based
|
|
65
|
+
* hiding helper and the table hierarchy.
|
|
66
|
+
*/
|
|
67
|
+
export interface EvaluateContext {
|
|
68
|
+
/** True for a table whose rows carry credentials (the shared credential-table list). */
|
|
69
|
+
readonly isCredentialTable: (table: string) => boolean;
|
|
70
|
+
/** Field names typed `password` or `password2` on the table, walking its hierarchy. */
|
|
71
|
+
readonly hiddenFieldNames: (table: string) => HiddenFieldNames;
|
|
72
|
+
/** Whether the table extends `sys_metadata`, or "unknown" when the hierarchy was not read. */
|
|
73
|
+
readonly extendsMetadata: (table: string) => boolean | "unknown";
|
|
74
|
+
}
|
|
75
|
+
export interface EvaluationInput {
|
|
76
|
+
/** `local`: `sys_update_set` rows. `remote`: a retrieved set's rows (commit-time evaluation). */
|
|
77
|
+
readonly source: "local" | "remote";
|
|
78
|
+
/** Every set in scope: one, or a batch root and its descendants. */
|
|
79
|
+
readonly sets: readonly EvaluateSet[];
|
|
80
|
+
/** The batch root's sys_id, when the scope is a batch. */
|
|
81
|
+
readonly batch_root?: string | null;
|
|
82
|
+
/** The rows read, newest-first or in any order; at most the caller's `max_updates`. */
|
|
83
|
+
readonly updates: readonly EvaluateUpdate[];
|
|
84
|
+
/** Rows in scope according to the stats read; may exceed `updates.length`. */
|
|
85
|
+
readonly updates_total: number;
|
|
86
|
+
/** "denied" when field policy hides `payload`: only metadata rules run. */
|
|
87
|
+
readonly payload_access: "granted" | "denied";
|
|
88
|
+
/** Remote scope only: the sets' preview problems. Absent means not read. */
|
|
89
|
+
readonly problems?: readonly PreviewProblem[];
|
|
90
|
+
/** Local scope only: update name to the number of other open sets that hold it. Absent means not read. */
|
|
91
|
+
readonly open_set_collisions?: ReadonlyMap<string, number>;
|
|
92
|
+
/**
|
|
93
|
+
* Update name to its `sys_update_version` source: `baseline` (a platform or
|
|
94
|
+
* store source) or `customer`. A name missing from the map was not checked.
|
|
95
|
+
*/
|
|
96
|
+
readonly baseline_versions?: ReadonlyMap<string, "baseline" | "customer">;
|
|
97
|
+
readonly context: EvaluateContext;
|
|
98
|
+
}
|
|
99
|
+
export interface EvaluationOptions {
|
|
100
|
+
/** Only these groups' rules run. Default: all. */
|
|
101
|
+
readonly groups?: readonly RuleGroup[];
|
|
102
|
+
/** Findings below this severity are left out of the findings and the summary. Default: info. */
|
|
103
|
+
readonly min_severity?: Severity;
|
|
104
|
+
}
|
|
105
|
+
/** Engine limits; tests may lower them. */
|
|
106
|
+
export interface EngineLimits {
|
|
107
|
+
/** CPU budget per call, counted while the engine runs (not while it yields). */
|
|
108
|
+
readonly cpuBudgetMs: number;
|
|
109
|
+
/** Yield to the event loop after this many rows. */
|
|
110
|
+
readonly yieldEvery: number;
|
|
111
|
+
readonly maxFindings: number;
|
|
112
|
+
/** UTF-8 bytes per payload; a larger one is not scanned. */
|
|
113
|
+
readonly maxPayloadBytes: number;
|
|
114
|
+
/** UTF-8 bytes of payload per call; rows past it are not evaluated. */
|
|
115
|
+
readonly maxTotalBytes: number;
|
|
116
|
+
}
|
|
117
|
+
export interface FindingUpdate {
|
|
118
|
+
readonly sys_id: string;
|
|
119
|
+
readonly name: string;
|
|
120
|
+
readonly type: string | null;
|
|
121
|
+
readonly target_name: string | null;
|
|
122
|
+
readonly update_set: string;
|
|
123
|
+
}
|
|
124
|
+
export interface FindingSet {
|
|
125
|
+
readonly sys_id: string;
|
|
126
|
+
readonly name: string;
|
|
127
|
+
}
|
|
128
|
+
export interface Finding {
|
|
129
|
+
readonly rule_id: string;
|
|
130
|
+
readonly group: RuleGroup;
|
|
131
|
+
readonly severity: Severity;
|
|
132
|
+
readonly confidence: Confidence;
|
|
133
|
+
/** The row, for a row finding. */
|
|
134
|
+
readonly update?: FindingUpdate;
|
|
135
|
+
/** The set, for a set finding. */
|
|
136
|
+
readonly update_set?: FindingSet;
|
|
137
|
+
/** A fixed sentence. It holds no instance text. */
|
|
138
|
+
readonly message: string;
|
|
139
|
+
/** SEC011: the data table, a validated table name chosen by the payload. Untrusted text for the caller to escape. */
|
|
140
|
+
readonly table?: string;
|
|
141
|
+
/** The payload element that holds the script (a validated element name). Never set for SEC005 or SEC010. */
|
|
142
|
+
readonly field?: string;
|
|
143
|
+
/** 1-based line in that element's text. Never set for SEC005 or SEC010. */
|
|
144
|
+
readonly line?: number;
|
|
145
|
+
}
|
|
146
|
+
export interface Coverage {
|
|
147
|
+
readonly updates_total: number;
|
|
148
|
+
/** Rows the engine reached. */
|
|
149
|
+
readonly evaluated: number;
|
|
150
|
+
/** Rows whose payload was read and whose script and payload rules ran. */
|
|
151
|
+
readonly scanned: number;
|
|
152
|
+
/**
|
|
153
|
+
* Rows whose payload was absent, too large or unreadable: metadata rules
|
|
154
|
+
* only. Never counted as clean.
|
|
155
|
+
*/
|
|
156
|
+
readonly skipped_unreadable: number;
|
|
157
|
+
/** Credential-table rows: metadata rules and SEC010 only; scripts and values are not scanned. */
|
|
158
|
+
readonly credential_rows: number;
|
|
159
|
+
/** Rows in scope that were not reached: not read (`max_updates`), CPU budget or byte cap. */
|
|
160
|
+
readonly not_evaluated: number;
|
|
161
|
+
/** Rule checks that needed a fact the caller could not supply (field types, hierarchy). */
|
|
162
|
+
readonly checks_unavailable: number;
|
|
163
|
+
/** True when anything above means the result is not the whole scope. */
|
|
164
|
+
readonly partial: boolean;
|
|
165
|
+
readonly cpu_budget_hit: boolean;
|
|
166
|
+
readonly bytes_cap_hit: boolean;
|
|
167
|
+
/** True when field policy hid every payload. */
|
|
168
|
+
readonly metadata_only: boolean;
|
|
169
|
+
}
|
|
170
|
+
export interface EvaluationResult {
|
|
171
|
+
readonly rules_version: string;
|
|
172
|
+
readonly summary: {
|
|
173
|
+
readonly by_group: Readonly<Record<RuleGroup, number>>;
|
|
174
|
+
readonly by_severity: Readonly<Record<Severity, number>>;
|
|
175
|
+
};
|
|
176
|
+
/** Sorted by severity (highest first), then rule id, then sys_id. */
|
|
177
|
+
readonly findings: readonly Finding[];
|
|
178
|
+
readonly findings_truncated: boolean;
|
|
179
|
+
readonly coverage: Coverage;
|
|
180
|
+
}
|
|
181
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/update-set-eval/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,WAAW,gCAAgD,CAAC;AACzE,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD,oBAAoB;AACpB,eAAO,MAAM,UAAU,wDAAwE,CAAC;AAChG,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEnD,oFAAoF;AACpF,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,uFAAuF;IACvF,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAA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AE,CAAC;IACtC,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;IACrC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;CAC7B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Input and output shapes of the update-set evaluator.
|
|
4
|
+
*
|
|
5
|
+
* A clean result is not an approval: the rules are heuristics over the
|
|
6
|
+
* scripts and fields they know, and `coverage` says what was not examined.
|
|
7
|
+
*
|
|
8
|
+
* The engine reads nothing upstream. Its caller (the `evaluate` view) reads
|
|
9
|
+
* the sets, their rows and the extra facts some rules need, inside its
|
|
10
|
+
* declared access plan, and hands them over here. Instance text in the input
|
|
11
|
+
* is untrusted: the engine never puts payload text into a finding, and it
|
|
12
|
+
* returns row metadata (`name`, `target_name`, `type`) as data for the caller
|
|
13
|
+
* to fence.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SEVERITIES = exports.RULE_GROUPS = void 0;
|
|
17
|
+
exports.RULE_GROUPS = Object.freeze(["perf", "sec", "bp"]);
|
|
18
|
+
/** Lowest first. */
|
|
19
|
+
exports.SEVERITIES = Object.freeze(["info", "low", "medium", "high", "critical"]);
|
|
20
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/update-set-eval/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;AAEU,QAAA,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAU,CAAC,CAAC;AAGzE,oBAAoB;AACP,QAAA,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A minimal, bounded XML reader for `sys_update_xml.payload`.
|
|
3
|
+
*
|
|
4
|
+
* Payloads come from this instance and, for a remote set, from another one, so
|
|
5
|
+
* the reader treats every byte as hostile:
|
|
6
|
+
* - iterative, never recursive, with caps on depth, element count,
|
|
7
|
+
* attributes per element, name length and total bytes;
|
|
8
|
+
* - no DTD of any kind: DOCTYPE, ENTITY and every other `<!` declaration are
|
|
9
|
+
* rejected, so nothing can declare an entity or point at an external one;
|
|
10
|
+
* - only the five predefined entities and valid numeric character
|
|
11
|
+
* references are decoded; any other `&name;` is rejected;
|
|
12
|
+
* - processing instructions are rejected, except one leading
|
|
13
|
+
* `<?xml version=… encoding=… standalone=…?>` declaration at offset 0
|
|
14
|
+
* (after an optional byte-order mark), which every payload has;
|
|
15
|
+
* - an XInclude namespace binding is rejected, although nothing here would
|
|
16
|
+
* act on it;
|
|
17
|
+
* - comments are skipped and kept out of the tree;
|
|
18
|
+
* - adjacent text and CDATA sections, including those a comment or a CDATA
|
|
19
|
+
* boundary splits (`]]]]><![CDATA[>`), become one text node, so a value
|
|
20
|
+
* a caller masks node by node cannot be split across nodes.
|
|
21
|
+
* It never throws on input. A failure is a fixed code plus a fixed message;
|
|
22
|
+
* neither carries any payload text.
|
|
23
|
+
*
|
|
24
|
+
* No dependency: the npm XML parsers either resolve entities or are far larger
|
|
25
|
+
* than this format needs.
|
|
26
|
+
*/
|
|
27
|
+
/** Default caps. Callers may lower any of them; `maxBytes` may also be raised, to `XML_READER_MAX_BYTES`. */
|
|
28
|
+
export declare const XML_READER_LIMITS: Readonly<{
|
|
29
|
+
maxDepth: 64;
|
|
30
|
+
maxElements: 20000;
|
|
31
|
+
maxAttributesPerElement: 64;
|
|
32
|
+
/** UTF-8 bytes. The evaluator's per-payload cap. */
|
|
33
|
+
maxBytes: 262144;
|
|
34
|
+
maxNameLength: 256;
|
|
35
|
+
}>;
|
|
36
|
+
/** The ceiling for a caller's `maxBytes`. */
|
|
37
|
+
export declare const XML_READER_MAX_BYTES = 1048576;
|
|
38
|
+
export interface XmlReaderOptions {
|
|
39
|
+
readonly maxDepth?: number;
|
|
40
|
+
readonly maxElements?: number;
|
|
41
|
+
readonly maxAttributesPerElement?: number;
|
|
42
|
+
readonly maxBytes?: number;
|
|
43
|
+
}
|
|
44
|
+
export interface XmlDeclaration {
|
|
45
|
+
readonly version: string;
|
|
46
|
+
readonly encoding: string | null;
|
|
47
|
+
readonly standalone: "yes" | "no" | null;
|
|
48
|
+
}
|
|
49
|
+
export interface XmlText {
|
|
50
|
+
readonly kind: "text";
|
|
51
|
+
/** Decoded text. */
|
|
52
|
+
readonly value: string;
|
|
53
|
+
/** True when any part of the text came from a CDATA section. */
|
|
54
|
+
readonly cdata: boolean;
|
|
55
|
+
}
|
|
56
|
+
export interface XmlElement {
|
|
57
|
+
readonly kind: "element";
|
|
58
|
+
readonly name: string;
|
|
59
|
+
/** Decoded attribute values, in document order. */
|
|
60
|
+
readonly attributes: ReadonlyMap<string, string>;
|
|
61
|
+
readonly children: readonly XmlNode[];
|
|
62
|
+
}
|
|
63
|
+
export type XmlNode = XmlElement | XmlText;
|
|
64
|
+
export interface XmlDocument {
|
|
65
|
+
readonly declaration: XmlDeclaration | null;
|
|
66
|
+
readonly root: XmlElement;
|
|
67
|
+
readonly elementCount: number;
|
|
68
|
+
readonly maxDepth: number;
|
|
69
|
+
/** UTF-8 length of the input. */
|
|
70
|
+
readonly bytes: number;
|
|
71
|
+
}
|
|
72
|
+
export declare const XML_READ_ERROR_CODES: readonly ["not_text", "too_large", "no_root", "invalid_declaration", "processing_instruction", "doctype", "entity_declaration", "markup_declaration", "external_reference", "invalid_entity_reference", "invalid_character_reference", "malformed_tag", "invalid_name", "name_too_long", "invalid_attribute", "duplicate_attribute", "mismatched_tag", "unclosed_element", "unclosed_comment", "unclosed_cdata", "content_outside_root", "multiple_roots", "depth_limit", "element_limit", "attribute_limit"];
|
|
73
|
+
export type XmlReadErrorCode = (typeof XML_READ_ERROR_CODES)[number];
|
|
74
|
+
/** One fixed sentence per code. None interpolates anything. */
|
|
75
|
+
export declare const XML_READ_ERROR_MESSAGES: Readonly<Record<XmlReadErrorCode, string>>;
|
|
76
|
+
export interface XmlReadFailure {
|
|
77
|
+
readonly ok: false;
|
|
78
|
+
readonly code: XmlReadErrorCode;
|
|
79
|
+
readonly message: string;
|
|
80
|
+
}
|
|
81
|
+
export type XmlReadResult = {
|
|
82
|
+
readonly ok: true;
|
|
83
|
+
readonly document: XmlDocument;
|
|
84
|
+
} | XmlReadFailure;
|
|
85
|
+
/**
|
|
86
|
+
* Reads a payload. Never throws on input; a bad option value (a programming
|
|
87
|
+
* error) throws a `RangeError` with a fixed message.
|
|
88
|
+
*/
|
|
89
|
+
export declare function readXml(text: string, options?: XmlReaderOptions): XmlReadResult;
|
|
90
|
+
export declare function getAttribute(element: XmlElement, name: string): string | undefined;
|
|
91
|
+
/** Direct child elements, optionally only those with `name`. */
|
|
92
|
+
export declare function childElements(element: XmlElement, name?: string): XmlElement[];
|
|
93
|
+
export declare function firstChildElement(element: XmlElement, name: string): XmlElement | undefined;
|
|
94
|
+
/** The element's own text: its direct text and CDATA children, joined. Descendants are not included. */
|
|
95
|
+
export declare function textContent(element: XmlElement): string;
|
|
96
|
+
/**
|
|
97
|
+
* Visits every element in document order, iteratively. `ancestors` runs from
|
|
98
|
+
* the root to the element's parent and is only valid during the call. Return
|
|
99
|
+
* `"skip"` to leave an element's children unvisited.
|
|
100
|
+
*/
|
|
101
|
+
export declare function walkElements(root: XmlElement, visit: (element: XmlElement, ancestors: readonly XmlElement[]) => void | "skip"): void;
|
|
102
|
+
export interface XmlSerializeOptions {
|
|
103
|
+
/** Emit `<?xml version="1.0" encoding="UTF-8"?>` first. Default false. */
|
|
104
|
+
readonly declaration?: boolean;
|
|
105
|
+
/** Rewrites each text node before it is escaped; `ancestors` ends with `parent`. */
|
|
106
|
+
readonly text?: (value: string, parent: XmlElement, ancestors: readonly XmlElement[]) => string;
|
|
107
|
+
/** Rewrites each attribute value before it is escaped; `ancestors` ends with `element`. */
|
|
108
|
+
readonly attribute?: (name: string, value: string, element: XmlElement, ancestors: readonly XmlElement[]) => string;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Writes a tree back out, iteratively. CDATA comes out as escaped text, so
|
|
112
|
+
* nothing in a value can close a section early. The hooks let a caller mask
|
|
113
|
+
* text and attribute values on the way out (the payload view's masking)
|
|
114
|
+
* without copying the tree.
|
|
115
|
+
*/
|
|
116
|
+
export declare function serializeXml(root: XmlElement, options?: XmlSerializeOptions): string;
|
|
117
|
+
//# sourceMappingURL=xml-reader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xml-reader.d.ts","sourceRoot":"","sources":["../../src/update-set-eval/xml-reader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,6GAA6G;AAC7G,eAAO,MAAM,iBAAiB;;;;IAI5B,oDAAoD;;;EAGpD,CAAC;AAEH,6CAA6C;AAC7C,eAAO,MAAM,oBAAoB,UAAY,CAAC;AAE9C,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAC1C,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,UAAU,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,CAAC;CAC1C;AAED,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,oBAAoB;IACpB,QAAQ,CAAC,KA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