@onlyflows/servicenow-mcp 2.2.0-dev.5 → 2.2.0
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/.env.example +6 -3
- package/CHANGELOG.md +312 -0
- package/README.md +504 -101
- package/dist/atf-form.d.ts +3 -15
- package/dist/atf-form.d.ts.map +1 -1
- package/dist/atf-result-cache.d.ts +23 -59
- package/dist/atf-result-cache.d.ts.map +1 -1
- package/dist/auth.d.ts +1 -0
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +17 -0
- package/dist/auth.js.map +1 -1
- package/dist/batch-limits.d.ts +18 -0
- package/dist/batch-limits.d.ts.map +1 -0
- package/dist/batch-limits.js +21 -0
- package/dist/batch-limits.js.map +1 -0
- package/dist/bounded-input.d.ts +49 -0
- package/dist/bounded-input.d.ts.map +1 -0
- package/dist/bounded-input.js +81 -0
- package/dist/bounded-input.js.map +1 -0
- package/dist/client.d.ts +25 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +92 -18
- package/dist/client.js.map +1 -1
- package/dist/command-resolution.d.ts +53 -0
- package/dist/command-resolution.d.ts.map +1 -0
- package/dist/command-resolution.js +154 -0
- package/dist/command-resolution.js.map +1 -0
- package/dist/encoded-query-policy.d.ts +11 -0
- package/dist/encoded-query-policy.d.ts.map +1 -1
- package/dist/encoded-query-policy.js +10 -1
- package/dist/encoded-query-policy.js.map +1 -1
- package/dist/field-policy.d.ts +82 -3
- package/dist/field-policy.d.ts.map +1 -1
- package/dist/field-policy.js +609 -80
- package/dist/field-policy.js.map +1 -1
- package/dist/html-response.d.ts +34 -0
- package/dist/html-response.d.ts.map +1 -0
- package/dist/html-response.js +72 -0
- package/dist/html-response.js.map +1 -0
- package/dist/http-runtime.d.ts.map +1 -1
- package/dist/http-runtime.js +8 -0
- package/dist/http-runtime.js.map +1 -1
- package/dist/incident-journal-policy.d.ts +27 -5
- package/dist/incident-journal-policy.d.ts.map +1 -1
- package/dist/incident-journal-policy.js +34 -21
- package/dist/incident-journal-policy.js.map +1 -1
- package/dist/json-shape-limits.d.ts +71 -0
- package/dist/json-shape-limits.d.ts.map +1 -0
- package/dist/json-shape-limits.js +131 -0
- package/dist/json-shape-limits.js.map +1 -0
- package/dist/metadata-cache.d.ts +46 -21
- package/dist/metadata-cache.d.ts.map +1 -1
- package/dist/metadata-cache.js +228 -195
- package/dist/metadata-cache.js.map +1 -1
- package/dist/policy-card.d.ts +131 -0
- package/dist/policy-card.d.ts.map +1 -0
- package/dist/policy-card.js +409 -0
- package/dist/policy-card.js.map +1 -0
- package/dist/profile-admin.d.ts.map +1 -1
- package/dist/profile-admin.js +3 -0
- package/dist/profile-admin.js.map +1 -1
- package/dist/profile-manager.d.ts +17 -3
- package/dist/profile-manager.d.ts.map +1 -1
- package/dist/profile-manager.js +98 -6
- package/dist/profile-manager.js.map +1 -1
- package/dist/record-identifier-policy.d.ts +2 -8
- package/dist/record-identifier-policy.d.ts.map +1 -1
- package/dist/risky-grants.d.ts +25 -0
- package/dist/risky-grants.d.ts.map +1 -0
- package/dist/risky-grants.js +77 -0
- package/dist/risky-grants.js.map +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +74 -0
- package/dist/server.js.map +1 -1
- package/dist/setup-prompts.js +1 -0
- package/dist/setup-prompts.js.map +1 -1
- package/dist/setup.d.ts +8 -1
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +492 -111
- package/dist/setup.js.map +1 -1
- package/dist/stdio-runtime.d.ts +15 -0
- package/dist/stdio-runtime.d.ts.map +1 -1
- package/dist/stdio-runtime.js +60 -0
- package/dist/stdio-runtime.js.map +1 -1
- package/dist/structured-query.d.ts +100 -115
- package/dist/structured-query.d.ts.map +1 -1
- package/dist/structured-query.js +132 -16
- package/dist/structured-query.js.map +1 -1
- package/dist/table-policy.d.ts +10 -4
- package/dist/table-policy.d.ts.map +1 -1
- package/dist/table-policy.js +1 -1
- package/dist/table-policy.js.map +1 -1
- package/dist/tool-error.d.ts +18 -0
- package/dist/tool-error.d.ts.map +1 -1
- package/dist/tool-error.js +69 -0
- package/dist/tool-error.js.map +1 -1
- package/dist/tool-table-access.d.ts.map +1 -1
- package/dist/tool-table-access.js +32 -2
- package/dist/tool-table-access.js.map +1 -1
- package/dist/tools/aggregate.d.ts +13 -19
- package/dist/tools/aggregate.d.ts.map +1 -1
- package/dist/tools/aggregate.js +2 -3
- 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 +3 -38
- package/dist/tools/all-fields-cap.js.map +1 -1
- package/dist/tools/atf-author-module.d.ts +28 -7
- package/dist/tools/atf-author-module.d.ts.map +1 -1
- package/dist/tools/atf-author-module.js +4 -2
- package/dist/tools/atf-author-module.js.map +1 -1
- package/dist/tools/atf-contracts.d.ts +135 -829
- package/dist/tools/atf-contracts.d.ts.map +1 -1
- package/dist/tools/atf-shared.js +2 -2
- package/dist/tools/atf-shared.js.map +1 -1
- package/dist/tools/atf-step-catalog.d.ts +3 -7
- package/dist/tools/atf-step-catalog.d.ts.map +1 -1
- package/dist/tools/atf-step-catalog.js +12 -5
- package/dist/tools/atf-step-catalog.js.map +1 -1
- package/dist/tools/atf.d.ts +8 -24
- package/dist/tools/atf.d.ts.map +1 -1
- package/dist/tools/atf.js +2 -2
- package/dist/tools/atf.js.map +1 -1
- package/dist/tools/attach.d.ts +6 -22
- package/dist/tools/attach.d.ts.map +1 -1
- package/dist/tools/batch.d.ts +18 -71
- package/dist/tools/batch.d.ts.map +1 -1
- package/dist/tools/batch.js +544 -96
- package/dist/tools/batch.js.map +1 -1
- package/dist/tools/catalog.d.ts +2 -2
- package/dist/tools/catalog.d.ts.map +1 -1
- package/dist/tools/catalog.js +7 -1
- package/dist/tools/catalog.js.map +1 -1
- package/dist/tools/codesearch.d.ts +1 -13
- package/dist/tools/codesearch.d.ts.map +1 -1
- package/dist/tools/create-module.d.ts +9 -14
- package/dist/tools/create-module.d.ts.map +1 -1
- package/dist/tools/create-module.js +4 -8
- package/dist/tools/create-module.js.map +1 -1
- package/dist/tools/delete.d.ts +1 -9
- package/dist/tools/delete.d.ts.map +1 -1
- package/dist/tools/delete.js +2 -3
- package/dist/tools/delete.js.map +1 -1
- package/dist/tools/discover.d.ts +6 -14
- package/dist/tools/discover.d.ts.map +1 -1
- package/dist/tools/flow-view-contracts.d.ts +1023 -0
- package/dist/tools/flow-view-contracts.d.ts.map +1 -0
- package/dist/tools/flow-view-contracts.js +570 -0
- package/dist/tools/flow-view-contracts.js.map +1 -0
- package/dist/tools/flow-view-graph.d.ts +86 -0
- package/dist/tools/flow-view-graph.d.ts.map +1 -0
- package/dist/tools/flow-view-graph.js +993 -0
- package/dist/tools/flow-view-graph.js.map +1 -0
- package/dist/tools/flow-view-gzip.d.ts +52 -0
- package/dist/tools/flow-view-gzip.d.ts.map +1 -0
- package/dist/tools/flow-view-gzip.js +179 -0
- package/dist/tools/flow-view-gzip.js.map +1 -0
- package/dist/tools/flow-view-mermaid.d.ts +37 -0
- package/dist/tools/flow-view-mermaid.d.ts.map +1 -0
- package/dist/tools/flow-view-mermaid.js +337 -0
- package/dist/tools/flow-view-mermaid.js.map +1 -0
- package/dist/tools/flow-view-module.d.ts +61 -0
- package/dist/tools/flow-view-module.d.ts.map +1 -0
- package/dist/tools/flow-view-module.js +378 -0
- package/dist/tools/flow-view-module.js.map +1 -0
- package/dist/tools/flow-view-policy.d.ts +106 -0
- package/dist/tools/flow-view-policy.d.ts.map +1 -0
- package/dist/tools/flow-view-policy.js +461 -0
- package/dist/tools/flow-view-policy.js.map +1 -0
- package/dist/tools/flow-view-renderers.d.ts +68 -0
- package/dist/tools/flow-view-renderers.d.ts.map +1 -0
- package/dist/tools/flow-view-renderers.js +513 -0
- package/dist/tools/flow-view-renderers.js.map +1 -0
- package/dist/tools/flow-view-table.d.ts +115 -0
- package/dist/tools/flow-view-table.d.ts.map +1 -0
- package/dist/tools/flow-view-table.js +1002 -0
- package/dist/tools/flow-view-table.js.map +1 -0
- package/dist/tools/get-module.d.ts +36 -42
- package/dist/tools/get-module.d.ts.map +1 -1
- package/dist/tools/health.d.ts +9 -6
- package/dist/tools/health.d.ts.map +1 -1
- package/dist/tools/incident-journal-module.d.ts +8 -7
- package/dist/tools/incident-journal-module.d.ts.map +1 -1
- package/dist/tools/index.d.ts +4 -4
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +43 -6
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/markdown.d.ts +27 -0
- package/dist/tools/markdown.d.ts.map +1 -1
- package/dist/tools/markdown.js +104 -1
- package/dist/tools/markdown.js.map +1 -1
- package/dist/tools/nl.d.ts +1 -11
- package/dist/tools/nl.d.ts.map +1 -1
- package/dist/tools/profile.d.ts +1 -1
- package/dist/tools/profile.d.ts.map +1 -1
- package/dist/tools/profile.js +19 -1
- package/dist/tools/profile.js.map +1 -1
- package/dist/tools/query-module.d.ts +59 -71
- package/dist/tools/query-module.d.ts.map +1 -1
- package/dist/tools/query-module.js +2 -2
- 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 +19 -2
- package/dist/tools/record-write-shared.js.map +1 -1
- package/dist/tools/relationships.d.ts +6 -22
- package/dist/tools/relationships.d.ts.map +1 -1
- package/dist/tools/result-envelope.d.ts +2255 -1357
- package/dist/tools/result-envelope.d.ts.map +1 -1
- package/dist/tools/result-envelope.js +24 -2
- package/dist/tools/result-envelope.js.map +1 -1
- package/dist/tools/schema-module.d.ts +36 -21
- package/dist/tools/schema-module.d.ts.map +1 -1
- package/dist/tools/schema-module.js +106 -65
- package/dist/tools/schema-module.js.map +1 -1
- package/dist/tools/script.d.ts +1 -11
- package/dist/tools/script.d.ts.map +1 -1
- package/dist/tools/syslog.d.ts +11 -18
- package/dist/tools/syslog.d.ts.map +1 -1
- package/dist/tools/syslog.js +2 -3
- package/dist/tools/syslog.js.map +1 -1
- package/dist/tools/table-hierarchy.d.ts +35 -0
- package/dist/tools/table-hierarchy.d.ts.map +1 -0
- package/dist/tools/table-hierarchy.js +74 -0
- package/dist/tools/table-hierarchy.js.map +1 -0
- package/dist/tools/tool-module.d.ts +40 -15
- package/dist/tools/tool-module.d.ts.map +1 -1
- package/dist/tools/tool-module.js +755 -205
- package/dist/tools/tool-module.js.map +1 -1
- package/dist/tools/update-module.d.ts +11 -17
- package/dist/tools/update-module.d.ts.map +1 -1
- package/dist/tools/update-module.js +10 -12
- package/dist/tools/update-module.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/dist/write-value-policy.d.ts +20 -12
- package/dist/write-value-policy.d.ts.map +1 -1
- package/dist/write-value-policy.js +179 -67
- package/dist/write-value-policy.js.map +1 -1
- package/docs/ADDING-TOOLS.md +22 -13
- package/docs/CLIENT-SETUP.md +110 -52
- package/docs/CROSS-CLIENT-RELEASE-MATRIX.md +2 -2
- package/docs/FLOW-VIEW.md +214 -0
- package/docs/PRODUCTION-SECURITY.md +154 -25
- package/docs/RELEASE-VALIDATION.md +2 -2
- package/docs/TESTING-OAUTH.md +1 -1
- package/docs/V2-MIGRATION.md +404 -30
- package/package.json +21 -6
- package/scripts/release-validate.mjs +56 -0
- package/server.json +22 -0
- package/tools/inspector/package-lock.json +163 -201
package/dist/metadata-cache.js
CHANGED
|
@@ -6,39 +6,52 @@
|
|
|
6
6
|
* selector. The scope must discriminate credential identity as well as
|
|
7
7
|
* instance: ServiceNow evaluates ACLs per user, and a cache hit skips the
|
|
8
8
|
* upstream read entirely, so a scope shared between identities would serve
|
|
9
|
-
* one caller's authorized rows to another.
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* which is stripped before upstream I/O.
|
|
9
|
+
* one caller's authorized rows to another. Callers can force refresh by
|
|
10
|
+
* passing the internal sysparm_force_recache=true parameter, which is stripped
|
|
11
|
+
* before upstream I/O.
|
|
13
12
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
13
|
+
* Freshness is a server watermark: the table's row count (X-Total-Count) and
|
|
14
|
+
* its newest row by sys_updated_on, read back as the stored UTC value. Each
|
|
15
|
+
* entry keeps the watermark read just before its rows were fetched, and a
|
|
16
|
+
* cache hit is served only while a new watermark read still matches it. Both
|
|
17
|
+
* sides of the comparison come from the instance, so the session timezone,
|
|
18
|
+
* date format, DST and clock skew between this host and the instance play no
|
|
19
|
+
* part, and no user lookup is needed: caching behaves the same in every auth
|
|
20
|
+
* mode.
|
|
20
21
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* still
|
|
22
|
+
* An insert or an update makes its row the newest, and an insert or a delete
|
|
23
|
+
* changes the count, so every write moves the watermark -- at one-second
|
|
24
|
+
* resolution. An update within the stored watermark's own second, to a row
|
|
25
|
+
* other than the newest, can still go unseen; so can a write that skips the
|
|
26
|
+
* system fields. Such a row stays stale for at most one TTL: a matching
|
|
27
|
+
* watermark refreshes recency for eviction but never extends expiresAt, so the
|
|
28
|
+
* entry still expires on schedule and forces a genuine refetch.
|
|
29
|
+
*
|
|
30
|
+
* Two memos keep the watermark from costing more than it saves. Within one
|
|
31
|
+
* tool call each table's watermark is read once, however many reads of the
|
|
32
|
+
* table the call makes. Across calls, a table whose watermark proved unusable
|
|
33
|
+
* is read straight through, without a watermark, for a while: long for causes
|
|
34
|
+
* that persist (an incomplete or future-dated watermark, a 4xx), short for
|
|
35
|
+
* transient ones (429, 5xx, timeouts, network).
|
|
25
36
|
*
|
|
26
37
|
* @module metadata-cache
|
|
27
38
|
*/
|
|
28
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.MAX_METADATA_CACHE_ENTRIES_PER_SCOPE = exports.MAX_METADATA_CACHE_SCOPES = exports.FORCE_RECACHE_PARAM = exports.DEFAULT_METADATA_CACHE_TABLES = exports.DEFAULT_METADATA_CACHE_TTL_MS = void 0;
|
|
40
|
+
exports.TRANSIENT_UNCACHEABLE_MS = exports.STRUCTURAL_UNCACHEABLE_MS = exports.MAX_METADATA_CACHE_ENTRIES_PER_SCOPE = exports.MAX_METADATA_CACHE_SCOPES = exports.FORCE_RECACHE_PARAM = exports.DEFAULT_METADATA_CACHE_TABLES = exports.DEFAULT_METADATA_CACHE_TTL_MS = void 0;
|
|
30
41
|
exports.metadataCacheConfigFromEnvironment = metadataCacheConfigFromEnvironment;
|
|
31
42
|
exports.createMetadataCacheConfig = createMetadataCacheConfig;
|
|
43
|
+
exports.uncachedOperations = uncachedOperations;
|
|
32
44
|
exports.createCachedServiceNowOperations = createCachedServiceNowOperations;
|
|
45
|
+
const client_js_1 = require("./client.js");
|
|
33
46
|
const config_js_1 = require("./config.js");
|
|
34
|
-
const
|
|
47
|
+
const tool_error_js_1 = require("./tool-error.js");
|
|
35
48
|
exports.DEFAULT_METADATA_CACHE_TTL_MS = 24 * 60 * 60 * 1000;
|
|
36
49
|
/**
|
|
37
50
|
* Tables cached by default.
|
|
38
51
|
*
|
|
39
|
-
* The bar for inclusion is a large payload relative to the
|
|
52
|
+
* The bar for inclusion is a large payload relative to the watermark read,
|
|
40
53
|
* not merely "this table changes rarely" -- a cache hit still costs one
|
|
41
|
-
* upstream round trip (see
|
|
54
|
+
* upstream round trip (see tableWatermark), so the saving is payload bytes,
|
|
42
55
|
* never request count. sys_properties is deliberately absent: its rows are
|
|
43
56
|
* ACL-restricted per user and routinely hold integration secrets in `value`,
|
|
44
57
|
* and the only reads of it here are three single-value build-info lookups
|
|
@@ -56,6 +69,9 @@ exports.DEFAULT_METADATA_CACHE_TABLES = Object.freeze([
|
|
|
56
69
|
]);
|
|
57
70
|
const SCOPED_CACHES = new Map();
|
|
58
71
|
const TABLE_NAME = /^[a-z][a-z0-9_]{0,79}$/u;
|
|
72
|
+
/** sys_updated_on as returned with sysparm_display_value=false (UTC). */
|
|
73
|
+
const STORED_DATE_TIME = /^(\d{4}-\d{2}-\d{2}) (\d{2}:\d{2}:\d{2})$/u;
|
|
74
|
+
const ROW_COUNT = /^(?:0|[1-9]\d{0,15})$/u;
|
|
59
75
|
exports.FORCE_RECACHE_PARAM = "sysparm_force_recache";
|
|
60
76
|
const MAX_CACHE_TABLE_PATTERNS = 128;
|
|
61
77
|
const MAX_CACHE_TTL_MS = 7 * 24 * 60 * 60 * 1000;
|
|
@@ -64,22 +80,10 @@ const MAX_CACHE_TTL_MS = 7 * 24 * 60 * 60 * 1000;
|
|
|
64
80
|
* so both are capped and evicted in least-recently-used order. */
|
|
65
81
|
exports.MAX_METADATA_CACHE_SCOPES = 64;
|
|
66
82
|
exports.MAX_METADATA_CACHE_ENTRIES_PER_SCOPE = 512;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
|
|
71
|
-
* half the year, and a cached one silently reintroduces the skew at every DST
|
|
72
|
-
* transition -- the longer the TTL, the longer it stays wrong. The offset is
|
|
73
|
-
* computed from the name for the specific instant being compared.
|
|
74
|
-
*
|
|
75
|
-
* Keyed by the same scope as the metadata cache, so it discriminates instance
|
|
76
|
-
* AND credential identity: two profiles on one instance can authenticate as
|
|
77
|
-
* accounts in different timezones, and sharing a resolution between them would
|
|
78
|
-
* corrupt the freshness window for both.
|
|
79
|
-
*/
|
|
80
|
-
const SCOPED_TIME_ZONES = new Map();
|
|
81
|
-
const TIME_ZONE_WARNED_SCOPES = new Set();
|
|
82
|
-
const DEFAULT_TIME_ZONE_PROPERTY = "glide.sys.default.tz";
|
|
83
|
+
/** How long a table goes uncached after its watermark proved unusable; never
|
|
84
|
+
* longer than the cache TTL. */
|
|
85
|
+
exports.STRUCTURAL_UNCACHEABLE_MS = 15 * 60 * 1000;
|
|
86
|
+
exports.TRANSIENT_UNCACHEABLE_MS = 30 * 1000;
|
|
83
87
|
function metadataCacheConfigFromEnvironment(environment = process.env) {
|
|
84
88
|
const ttlMs = (0, config_js_1.parsePositiveIntegerEnv)(environment.SN_METADATA_CACHE_TTL_MS, "SN_METADATA_CACHE_TTL_MS", { max: MAX_CACHE_TTL_MS });
|
|
85
89
|
const tables = parseTablePatterns(environment.SN_METADATA_CACHE_TABLES);
|
|
@@ -94,40 +98,67 @@ function createMetadataCacheConfig(input) {
|
|
|
94
98
|
tables: normalizeTablePatterns(input?.tables ?? exports.DEFAULT_METADATA_CACHE_TABLES),
|
|
95
99
|
});
|
|
96
100
|
}
|
|
101
|
+
/** The operations each cached wrapper reads through. */
|
|
102
|
+
const UNCACHED_OPERATIONS = new WeakMap();
|
|
103
|
+
/**
|
|
104
|
+
* The operations underneath a cached wrapper, or `operations` itself when it
|
|
105
|
+
* is not one.
|
|
106
|
+
*
|
|
107
|
+
* Use it for a read whose answer decides a write, such as the records a bulk
|
|
108
|
+
* update or delete targets. A cache hit can be stale within the watermark's
|
|
109
|
+
* documented gaps, which a read can tolerate but a write target cannot. The
|
|
110
|
+
* read costs one request, with no watermark, and leaves the cache untouched.
|
|
111
|
+
* The internal force-recache parameter is no substitute: it costs a watermark
|
|
112
|
+
* read as well, stores a single-use entry, and reaches ServiceNow unstripped
|
|
113
|
+
* when no wrapper is in place.
|
|
114
|
+
*/
|
|
115
|
+
function uncachedOperations(operations) {
|
|
116
|
+
return UNCACHED_OPERATIONS.get(operations) ?? operations;
|
|
117
|
+
}
|
|
97
118
|
/**
|
|
98
119
|
* @param scope Cache partition key. Must identify the ServiceNow instance
|
|
99
120
|
* *and* the credential identity reading from it -- see the module docstring.
|
|
100
|
-
* @param sessionUserName ServiceNow user_name this scope authenticates as.
|
|
101
|
-
* Required to resolve the session timezone; without it the freshness probe
|
|
102
|
-
* cannot be made correct, so caching is disabled for the scope.
|
|
103
121
|
*/
|
|
104
|
-
function createCachedServiceNowOperations(operations, scope, config
|
|
122
|
+
function createCachedServiceNowOperations(operations, scope, config) {
|
|
105
123
|
if (config === undefined && process.env.NODE_ENV === "test") {
|
|
106
124
|
return operations;
|
|
107
125
|
}
|
|
108
126
|
const cacheConfig = createMetadataCacheConfig(config);
|
|
109
|
-
const
|
|
127
|
+
const state = stateForScope(scope);
|
|
128
|
+
// One watermark per table for this wrapper's lifetime, which is one tool
|
|
129
|
+
// call: the dispatcher builds a wrapper per call. A hierarchy walk then
|
|
130
|
+
// reads sys_db_object's watermark once, not once per hop. Any write the call
|
|
131
|
+
// makes clears it, so the call's later reads see its own writes. No memo
|
|
132
|
+
// spans calls: that would add staleness across calls for almost no time.
|
|
133
|
+
const watermarks = new Map();
|
|
134
|
+
const clearingWatermarks = (write) => async (...args) => {
|
|
135
|
+
try {
|
|
136
|
+
return await write(...args);
|
|
137
|
+
}
|
|
138
|
+
finally {
|
|
139
|
+
watermarks.clear();
|
|
140
|
+
}
|
|
141
|
+
};
|
|
110
142
|
const cached = Object.create(null);
|
|
111
143
|
Object.defineProperties(cached, {
|
|
112
144
|
get: {
|
|
113
|
-
value: async (path, params) => (await cachedGetWithMeta(operations,
|
|
145
|
+
value: async (path, params) => (await cachedGetWithMeta(operations, state, watermarks, cacheConfig, path, params)).data,
|
|
114
146
|
},
|
|
115
147
|
getWithMeta: {
|
|
116
|
-
value: (path, params) => cachedGetWithMeta(operations,
|
|
117
|
-
scope,
|
|
118
|
-
sessionUserName,
|
|
119
|
-
}),
|
|
148
|
+
value: (path, params) => cachedGetWithMeta(operations, state, watermarks, cacheConfig, path, params),
|
|
120
149
|
},
|
|
121
|
-
post: { value: operations.post.bind(operations) },
|
|
122
|
-
patch: { value: operations.patch.bind(operations) },
|
|
123
|
-
delete: { value: operations.delete.bind(operations) },
|
|
124
|
-
postBinary: { value: operations.postBinary.bind(operations) },
|
|
150
|
+
post: { value: clearingWatermarks(operations.post.bind(operations)) },
|
|
151
|
+
patch: { value: clearingWatermarks(operations.patch.bind(operations)) },
|
|
152
|
+
delete: { value: clearingWatermarks(operations.delete.bind(operations)) },
|
|
153
|
+
postBinary: { value: clearingWatermarks(operations.postBinary.bind(operations)) },
|
|
125
154
|
getRaw: { value: operations.getRaw.bind(operations) },
|
|
126
|
-
...(operations.saveAtfStepInputs ? { saveAtfStepInputs: { value: operations.saveAtfStepInputs.bind(operations) } } : {}),
|
|
155
|
+
...(operations.saveAtfStepInputs ? { saveAtfStepInputs: { value: clearingWatermarks(operations.saveAtfStepInputs.bind(operations)) } } : {}),
|
|
127
156
|
});
|
|
128
|
-
|
|
157
|
+
Object.freeze(cached);
|
|
158
|
+
UNCACHED_OPERATIONS.set(cached, operations);
|
|
159
|
+
return cached;
|
|
129
160
|
}
|
|
130
|
-
async function cachedGetWithMeta(operations,
|
|
161
|
+
async function cachedGetWithMeta(operations, state, watermarks, config, path, params) {
|
|
131
162
|
// Strip the internal flag before any upstream call, including the
|
|
132
163
|
// passthrough: sysparm_force_recache is this module's own parameter and must
|
|
133
164
|
// never reach ServiceNow, whether or not the table is cached.
|
|
@@ -136,37 +167,56 @@ async function cachedGetWithMeta(operations, cache, config, path, params, identi
|
|
|
136
167
|
if (!match || !tableMatches(config.tables, match)) {
|
|
137
168
|
return operations.getWithMeta(path, cleanParams);
|
|
138
169
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
170
|
+
const now = Date.now();
|
|
171
|
+
const uncacheableUntil = state.uncacheable.get(match);
|
|
172
|
+
if (uncacheableUntil !== undefined) {
|
|
173
|
+
if (!forceRecache && uncacheableUntil > now) {
|
|
174
|
+
return operations.getWithMeta(path, cleanParams);
|
|
175
|
+
}
|
|
176
|
+
// Expired, or the caller asked for a refresh: try the watermark again.
|
|
177
|
+
state.uncacheable.delete(match);
|
|
178
|
+
watermarks.delete(match);
|
|
145
179
|
}
|
|
180
|
+
const cache = state.entries;
|
|
146
181
|
const key = cacheKey(path, cleanParams);
|
|
147
|
-
const now = Date.now();
|
|
148
182
|
const existing = cache.get(key);
|
|
149
|
-
|
|
183
|
+
// Read on a miss too, and always before the rows. An update landing between
|
|
184
|
+
// the two reads is then in the rows but not the watermark, which costs one
|
|
185
|
+
// extra refresh; read the other way round it would be in the watermark but
|
|
186
|
+
// not the rows, and the next comparison would serve it stale until expiry.
|
|
187
|
+
// A watermark memoized earlier in the call was also read before these rows.
|
|
188
|
+
const read = await callWatermark(operations, watermarks, match);
|
|
189
|
+
if (!read.usable)
|
|
190
|
+
markUncacheable(state, match, read.reason, config.ttlMs);
|
|
191
|
+
const watermark = read.usable ? read.watermark : undefined;
|
|
192
|
+
if (!forceRecache &&
|
|
193
|
+
existing !== undefined &&
|
|
194
|
+
existing.expiresAt > now &&
|
|
195
|
+
watermark !== undefined &&
|
|
196
|
+
sameWatermark(existing.watermark, watermark)) {
|
|
197
|
+
// Re-insert to mark the entry most recently used for eviction order.
|
|
150
198
|
cache.delete(key);
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
if (!changed) {
|
|
154
|
-
// Re-insert to mark the entry most recently used for eviction order.
|
|
155
|
-
cache.delete(key);
|
|
156
|
-
cache.set(key, existing);
|
|
157
|
-
return cloneCachedResult(existing);
|
|
158
|
-
}
|
|
199
|
+
cache.set(key, existing);
|
|
200
|
+
return cloneCachedResult(existing);
|
|
159
201
|
}
|
|
160
|
-
|
|
202
|
+
// A forced refresh must never leave behind the rows it was asked to replace:
|
|
203
|
+
// it is how a caller surfaces a write the watermark missed. Any other
|
|
204
|
+
// refetch leaves the entry until it is replaced -- if these rows cannot be
|
|
205
|
+
// kept, the old ones are still correct against any later watermark read that
|
|
206
|
+
// matches theirs, so they serve again once the table is cacheable again.
|
|
207
|
+
if (forceRecache)
|
|
208
|
+
cache.delete(key);
|
|
161
209
|
const fresh = await operations.getWithMeta(path, cleanParams);
|
|
162
210
|
// Only a materialized 200 body is reusable. A 204 carries no rows, and a
|
|
163
211
|
// failed read throws before reaching here, so nothing negative is cached.
|
|
164
|
-
|
|
212
|
+
// Rows without a watermark could never be revalidated, so they are not kept.
|
|
213
|
+
if (fresh.status !== 200 || fresh.data === null || watermark === undefined) {
|
|
165
214
|
return fresh;
|
|
215
|
+
}
|
|
166
216
|
cache.delete(key);
|
|
167
217
|
cache.set(key, Object.freeze({
|
|
168
|
-
expiresAt:
|
|
169
|
-
|
|
218
|
+
expiresAt: now + config.ttlMs,
|
|
219
|
+
watermark,
|
|
170
220
|
data: cloneJson(fresh.data),
|
|
171
221
|
status: fresh.status,
|
|
172
222
|
headers: Object.freeze([...fresh.headers.entries()]),
|
|
@@ -174,6 +224,22 @@ async function cachedGetWithMeta(operations, cache, config, path, params, identi
|
|
|
174
224
|
evictOldest(cache, exports.MAX_METADATA_CACHE_ENTRIES_PER_SCOPE);
|
|
175
225
|
return fresh;
|
|
176
226
|
}
|
|
227
|
+
function callWatermark(operations, watermarks, table) {
|
|
228
|
+
let pending = watermarks.get(table);
|
|
229
|
+
if (pending === undefined) {
|
|
230
|
+
pending = tableWatermark(operations, table);
|
|
231
|
+
watermarks.set(table, pending);
|
|
232
|
+
}
|
|
233
|
+
return pending;
|
|
234
|
+
}
|
|
235
|
+
function markUncacheable(state, table, reason, ttlMs) {
|
|
236
|
+
if (reason === "cancelled")
|
|
237
|
+
return;
|
|
238
|
+
const period = reason === "structural" ? exports.STRUCTURAL_UNCACHEABLE_MS : exports.TRANSIENT_UNCACHEABLE_MS;
|
|
239
|
+
state.uncacheable.delete(table);
|
|
240
|
+
state.uncacheable.set(table, Date.now() + Math.min(period, ttlMs));
|
|
241
|
+
evictOldest(state.uncacheable, exports.MAX_METADATA_CACHE_ENTRIES_PER_SCOPE);
|
|
242
|
+
}
|
|
177
243
|
/** Drop least-recently-used entries until the map is within `limit`. */
|
|
178
244
|
function evictOldest(entries, limit) {
|
|
179
245
|
while (entries.size > limit) {
|
|
@@ -183,23 +249,104 @@ function evictOldest(entries, limit) {
|
|
|
183
249
|
entries.delete(oldest.value);
|
|
184
250
|
}
|
|
185
251
|
}
|
|
186
|
-
|
|
252
|
+
/**
|
|
253
|
+
* The table's row count and newest row by sys_updated_on, read back as stored.
|
|
254
|
+
*
|
|
255
|
+
* The order is evaluated on the instance and the values are compared as opaque
|
|
256
|
+
* strings, so no date literal is ever built on this side. The count is the
|
|
257
|
+
* X-Total-Count header of the same request, which carries the table's total
|
|
258
|
+
* only while sysparm_no_count is left unset (with it set, the header still
|
|
259
|
+
* comes back but holds the page size).
|
|
260
|
+
*
|
|
261
|
+
* A count of 0 with no rows is a valid watermark for an empty table: the
|
|
262
|
+
* header counts rows before row ACLs filter them (a table whose newest row is
|
|
263
|
+
* ACL-hidden reads back a positive count and no row), so any insert moves it.
|
|
264
|
+
*
|
|
265
|
+
* The watermark is unusable, structurally, when:
|
|
266
|
+
* - the response is not a 200, or the count or a row field is missing or
|
|
267
|
+
* malformed (an unreadable sys_updated_on would compare equal forever);
|
|
268
|
+
* - the count is positive but no row came back, which is what a row ACL that
|
|
269
|
+
* filters after the limit produces when it hides the newest row;
|
|
270
|
+
* - the newest row is dated after the instance's own clock (the response Date
|
|
271
|
+
* header). Such a row stays the newest however many others are updated, so
|
|
272
|
+
* only the count would move, and in-place updates would go unseen.
|
|
273
|
+
* A thrown read is classified by readFailureReason.
|
|
274
|
+
*/
|
|
275
|
+
async function tableWatermark(operations, table) {
|
|
276
|
+
const structural = { usable: false, reason: "structural" };
|
|
187
277
|
try {
|
|
188
|
-
const response = await operations.
|
|
189
|
-
sysparm_query:
|
|
278
|
+
const response = await operations.getWithMeta(`/api/now/table/${table}`, {
|
|
279
|
+
sysparm_query: "ORDERBYDESCsys_updated_on",
|
|
190
280
|
sysparm_fields: "sys_id,sys_updated_on",
|
|
191
281
|
sysparm_limit: "1",
|
|
192
|
-
sysparm_no_count: "true",
|
|
193
282
|
sysparm_display_value: "false",
|
|
194
283
|
sysparm_exclude_reference_link: "true",
|
|
195
284
|
});
|
|
196
|
-
|
|
285
|
+
const count = response.headers.get("x-total-count") ?? "";
|
|
286
|
+
if (response.status !== 200 || !ROW_COUNT.test(count))
|
|
287
|
+
return structural;
|
|
288
|
+
const rows = response.data?.result;
|
|
289
|
+
if (!Array.isArray(rows))
|
|
290
|
+
return structural;
|
|
291
|
+
if (rows.length === 0) {
|
|
292
|
+
return count === "0"
|
|
293
|
+
? { usable: true, watermark: Object.freeze({ count: 0, sysId: "", updatedOn: "" }) }
|
|
294
|
+
: structural;
|
|
295
|
+
}
|
|
296
|
+
const row = rows[0];
|
|
297
|
+
if (typeof row !== "object" || row === null)
|
|
298
|
+
return structural;
|
|
299
|
+
const { sys_id: sysId, sys_updated_on: updatedOn } = row;
|
|
300
|
+
if (typeof sysId !== "string" || sysId === "")
|
|
301
|
+
return structural;
|
|
302
|
+
if (typeof updatedOn !== "string")
|
|
303
|
+
return structural;
|
|
304
|
+
const stored = STORED_DATE_TIME.exec(updatedOn);
|
|
305
|
+
const updatedAt = stored ? Date.parse(`${stored[1]}T${stored[2]}Z`) : Number.NaN;
|
|
306
|
+
const serverNow = Date.parse(response.headers.get("date") ?? "");
|
|
307
|
+
if (!Number.isFinite(updatedAt) || !Number.isFinite(serverNow))
|
|
308
|
+
return structural;
|
|
309
|
+
if (updatedAt > serverNow)
|
|
310
|
+
return structural;
|
|
311
|
+
return { usable: true, watermark: Object.freeze({ count: Number(count), sysId, updatedOn }) };
|
|
197
312
|
}
|
|
198
|
-
catch {
|
|
199
|
-
// A failed
|
|
200
|
-
return
|
|
313
|
+
catch (error) {
|
|
314
|
+
// A failed read must not serve stale metadata.
|
|
315
|
+
return { usable: false, reason: readFailureReason(error) };
|
|
201
316
|
}
|
|
202
317
|
}
|
|
318
|
+
/**
|
|
319
|
+
* A 403, 404, 409 or other fixed rejection of this request shape will repeat,
|
|
320
|
+
* so it is structural. A 401 (a token refresh can fix it), 429, 5xx, timeout,
|
|
321
|
+
* network or unrecognized failure is transient.
|
|
322
|
+
*/
|
|
323
|
+
function readFailureReason(error) {
|
|
324
|
+
if ((0, client_js_1.isServiceNowRequestCancellation)(error))
|
|
325
|
+
return "cancelled";
|
|
326
|
+
const descriptor = (0, tool_error_js_1.trustedToolErrorDescriptor)(error);
|
|
327
|
+
switch (descriptor?.category) {
|
|
328
|
+
case "authorization":
|
|
329
|
+
case "not_found":
|
|
330
|
+
case "conflict":
|
|
331
|
+
return "structural";
|
|
332
|
+
case "upstream":
|
|
333
|
+
// The client marks a 5xx GET retryable and any other status do_not_retry.
|
|
334
|
+
return descriptor.retry === "do_not_retry" ? "structural" : "transient";
|
|
335
|
+
default:
|
|
336
|
+
return "transient";
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Every field counts. The count catches inserts and deletes; the sys_id also
|
|
341
|
+
* catches the newest row being replaced as newest within the same second. A
|
|
342
|
+
* tie at the top that the instance orders differently between reads only
|
|
343
|
+
* costs an extra refresh.
|
|
344
|
+
*/
|
|
345
|
+
function sameWatermark(left, right) {
|
|
346
|
+
return (left.count === right.count &&
|
|
347
|
+
left.sysId === right.sysId &&
|
|
348
|
+
left.updatedOn === right.updatedOn);
|
|
349
|
+
}
|
|
203
350
|
function metadataTableFromPath(path) {
|
|
204
351
|
const match = /^\/api\/now\/table\/([a-z][a-z0-9_]{0,79})(?:\/|$)/u.exec(path);
|
|
205
352
|
return match?.[1];
|
|
@@ -219,14 +366,14 @@ function stripForceRecache(params) {
|
|
|
219
366
|
forceRecache: forceValue === "true" || forceValue === "1",
|
|
220
367
|
};
|
|
221
368
|
}
|
|
222
|
-
function
|
|
369
|
+
function stateForScope(scope) {
|
|
223
370
|
const existing = SCOPED_CACHES.get(scope);
|
|
224
371
|
if (existing) {
|
|
225
372
|
SCOPED_CACHES.delete(scope);
|
|
226
373
|
SCOPED_CACHES.set(scope, existing);
|
|
227
374
|
return existing;
|
|
228
375
|
}
|
|
229
|
-
const next = new Map();
|
|
376
|
+
const next = Object.freeze({ entries: new Map(), uncacheable: new Map() });
|
|
230
377
|
SCOPED_CACHES.set(scope, next);
|
|
231
378
|
evictOldest(SCOPED_CACHES, exports.MAX_METADATA_CACHE_SCOPES);
|
|
232
379
|
return next;
|
|
@@ -249,120 +396,6 @@ function cloneJson(value) {
|
|
|
249
396
|
return value;
|
|
250
397
|
return JSON.parse(JSON.stringify(value));
|
|
251
398
|
}
|
|
252
|
-
/**
|
|
253
|
-
* Format an instant as ServiceNow's `YYYY-MM-DD HH:mm:ss` in the given zone.
|
|
254
|
-
*
|
|
255
|
-
* The offset is derived from the zone NAME for this specific instant, so a
|
|
256
|
-
* timestamp on either side of a DST transition resolves to the offset actually
|
|
257
|
-
* in force then. This is why the name is what gets cached.
|
|
258
|
-
*/
|
|
259
|
-
function serviceNowDateTime(epochMs, timeZone) {
|
|
260
|
-
const parts = new Intl.DateTimeFormat("en-US", {
|
|
261
|
-
timeZone,
|
|
262
|
-
hourCycle: "h23",
|
|
263
|
-
year: "numeric",
|
|
264
|
-
month: "2-digit",
|
|
265
|
-
day: "2-digit",
|
|
266
|
-
hour: "2-digit",
|
|
267
|
-
minute: "2-digit",
|
|
268
|
-
second: "2-digit",
|
|
269
|
-
}).formatToParts(new Date(epochMs));
|
|
270
|
-
const field = (type) => parts.find((part) => part.type === type)?.value ?? "00";
|
|
271
|
-
return (`${field("year")}-${field("month")}-${field("day")} ` +
|
|
272
|
-
`${field("hour")}:${field("minute")}:${field("second")}`);
|
|
273
|
-
}
|
|
274
|
-
/** True when Intl recognizes the name, so a bad value never silently formats. */
|
|
275
|
-
function isUsableTimeZone(candidate) {
|
|
276
|
-
if (typeof candidate !== "string" || candidate.trim() === "")
|
|
277
|
-
return false;
|
|
278
|
-
try {
|
|
279
|
-
new Intl.DateTimeFormat("en-US", { timeZone: candidate.trim() });
|
|
280
|
-
return true;
|
|
281
|
-
}
|
|
282
|
-
catch {
|
|
283
|
-
return false;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
/**
|
|
287
|
-
* Resolve, and memoize per scope, the timezone the session user's
|
|
288
|
-
* `sys_updated_on` comparisons are evaluated in.
|
|
289
|
-
*
|
|
290
|
-
* Chain: the user's own `sys_user.time_zone`, then the instance default in
|
|
291
|
-
* `glide.sys.default.tz`, then unresolved. `time_zone` is not a required field
|
|
292
|
-
* and is frequently empty; an empty value means "inherit the system default"
|
|
293
|
-
* and must never be read as UTC, which is the very error this fixes.
|
|
294
|
-
*/
|
|
295
|
-
async function sessionTimeZone(operations, identity) {
|
|
296
|
-
const existing = SCOPED_TIME_ZONES.get(identity.scope);
|
|
297
|
-
if (existing) {
|
|
298
|
-
SCOPED_TIME_ZONES.delete(identity.scope);
|
|
299
|
-
SCOPED_TIME_ZONES.set(identity.scope, existing);
|
|
300
|
-
return existing;
|
|
301
|
-
}
|
|
302
|
-
const pending = resolveSessionTimeZone(operations, identity);
|
|
303
|
-
SCOPED_TIME_ZONES.set(identity.scope, pending);
|
|
304
|
-
evictOldest(SCOPED_TIME_ZONES, exports.MAX_METADATA_CACHE_SCOPES);
|
|
305
|
-
return pending;
|
|
306
|
-
}
|
|
307
|
-
async function resolveSessionTimeZone(operations, identity) {
|
|
308
|
-
const resolved = (await userTimeZone(operations, identity.sessionUserName)) ??
|
|
309
|
-
(await instanceDefaultTimeZone(operations));
|
|
310
|
-
if (resolved === undefined)
|
|
311
|
-
warnTimeZoneUnresolved(identity);
|
|
312
|
-
return resolved;
|
|
313
|
-
}
|
|
314
|
-
async function userTimeZone(operations, sessionUserName) {
|
|
315
|
-
if (typeof sessionUserName !== "string" || sessionUserName.trim() === "") {
|
|
316
|
-
return undefined;
|
|
317
|
-
}
|
|
318
|
-
return firstUsableValue(operations, "/api/now/table/sys_user", {
|
|
319
|
-
sysparm_query: `user_name=${(0, utils_js_1.escapeQueryValue)(sessionUserName.trim())}`,
|
|
320
|
-
sysparm_fields: "time_zone",
|
|
321
|
-
sysparm_limit: "1",
|
|
322
|
-
}, "time_zone");
|
|
323
|
-
}
|
|
324
|
-
async function instanceDefaultTimeZone(operations) {
|
|
325
|
-
return firstUsableValue(operations, "/api/now/table/sys_properties", {
|
|
326
|
-
sysparm_query: `name=${DEFAULT_TIME_ZONE_PROPERTY}`,
|
|
327
|
-
sysparm_fields: "value",
|
|
328
|
-
sysparm_limit: "1",
|
|
329
|
-
}, "value");
|
|
330
|
-
}
|
|
331
|
-
async function firstUsableValue(operations, path, params, field) {
|
|
332
|
-
try {
|
|
333
|
-
const response = await operations.get(path, {
|
|
334
|
-
...params,
|
|
335
|
-
sysparm_display_value: "false",
|
|
336
|
-
sysparm_exclude_reference_link: "true",
|
|
337
|
-
});
|
|
338
|
-
const row = Array.isArray(response?.result) ? response.result[0] : undefined;
|
|
339
|
-
if (typeof row !== "object" || row === null)
|
|
340
|
-
return undefined;
|
|
341
|
-
const value = row[field];
|
|
342
|
-
return isUsableTimeZone(value) ? value.trim() : undefined;
|
|
343
|
-
}
|
|
344
|
-
catch {
|
|
345
|
-
// An unreadable lookup is indistinguishable from an empty one here, and
|
|
346
|
-
// both mean the same thing: the probe cannot be made correct.
|
|
347
|
-
return undefined;
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* Report the degradation once per scope. Names the account, never the scope
|
|
352
|
-
* key -- that carries the credential fingerprint.
|
|
353
|
-
*/
|
|
354
|
-
function warnTimeZoneUnresolved(identity) {
|
|
355
|
-
if (TIME_ZONE_WARNED_SCOPES.has(identity.scope))
|
|
356
|
-
return;
|
|
357
|
-
TIME_ZONE_WARNED_SCOPES.add(identity.scope);
|
|
358
|
-
const account = typeof identity.sessionUserName === "string" && identity.sessionUserName.trim() !== ""
|
|
359
|
-
? `account "${identity.sessionUserName.trim()}"`
|
|
360
|
-
: "an account with no configured user name";
|
|
361
|
-
process.stderr.write(`[servicenow-mcp] WARNING: metadata caching is disabled for ${account}: the ` +
|
|
362
|
-
`ServiceNow session timezone could not be resolved. Grant read access to ` +
|
|
363
|
-
`sys_user (time_zone) and sys_properties (${DEFAULT_TIME_ZONE_PROPERTY}), or ` +
|
|
364
|
-
`set the account's timezone, to re-enable it.\n`);
|
|
365
|
-
}
|
|
366
399
|
function validateTtlMs(value) {
|
|
367
400
|
if (typeof value !== "number" ||
|
|
368
401
|
!Number.isSafeInteger(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