@4da/mcp-server 4.5.0 → 4.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -21
- package/README.md +63 -83
- package/dist/auth.js +1 -1
- package/dist/auth.js.map +1 -1
- package/dist/db.d.ts +46 -1
- package/dist/db.d.ts.map +1 -1
- package/dist/db.js +156 -36
- package/dist/db.js.map +1 -1
- package/dist/doctor.js +1 -1
- package/dist/doctor.js.map +1 -1
- package/dist/http-transport.js +1 -1
- package/dist/http-transport.js.map +1 -1
- package/dist/index.d.ts +9 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +49 -35
- package/dist/index.js.map +1 -1
- package/dist/live/cache.js +1 -1
- package/dist/live/cache.js.map +1 -1
- package/dist/live/crates-registry.js +1 -1
- package/dist/live/crates-registry.js.map +1 -1
- package/dist/live/go-registry.js +1 -1
- package/dist/live/go-registry.js.map +1 -1
- package/dist/live/hn-fetcher.js +1 -1
- package/dist/live/hn-fetcher.js.map +1 -1
- package/dist/live/http-utils.js +1 -1
- package/dist/live/http-utils.js.map +1 -1
- package/dist/live/index.d.ts +28 -0
- package/dist/live/index.d.ts.map +1 -1
- package/dist/live/index.js +63 -4
- package/dist/live/index.js.map +1 -1
- package/dist/live/npm-registry.js +1 -1
- package/dist/live/npm-registry.js.map +1 -1
- package/dist/live/osv-scanner.d.ts +4 -0
- package/dist/live/osv-scanner.d.ts.map +1 -1
- package/dist/live/osv-scanner.js +45 -40
- package/dist/live/osv-scanner.js.map +1 -1
- package/dist/live/pypi-registry.js +1 -1
- package/dist/live/pypi-registry.js.map +1 -1
- package/dist/live/rate-limiter.js +1 -1
- package/dist/live/rate-limiter.js.map +1 -1
- package/dist/live/semver-utils.js +1 -1
- package/dist/live/semver-utils.js.map +1 -1
- package/dist/live/types.d.ts +4 -0
- package/dist/live/types.d.ts.map +1 -1
- package/dist/live/types.js +1 -1
- package/dist/live/types.js.map +1 -1
- package/dist/live/version-resolver.d.ts +5 -0
- package/dist/live/version-resolver.d.ts.map +1 -1
- package/dist/live/version-resolver.js +64 -14
- package/dist/live/version-resolver.js.map +1 -1
- package/dist/live-singleton.js +1 -1
- package/dist/live-singleton.js.map +1 -1
- package/dist/llm.d.ts.map +1 -1
- package/dist/llm.js +13 -16
- package/dist/llm.js.map +1 -1
- package/dist/output-manager.js +1 -1
- package/dist/output-manager.js.map +1 -1
- package/dist/project-scanner.d.ts +5 -0
- package/dist/project-scanner.d.ts.map +1 -1
- package/dist/project-scanner.js +66 -10
- package/dist/project-scanner.js.map +1 -1
- package/dist/schema-registry.d.ts +4 -2
- package/dist/schema-registry.d.ts.map +1 -1
- package/dist/schema-registry.js +58 -238
- package/dist/schema-registry.js.map +1 -1
- package/dist/schemas/agent-memory.json +1 -1
- package/dist/schemas/decision-enforcement.json +1 -1
- package/dist/schemas/decision-memory.json +1 -1
- package/dist/schemas/dependency-health.json +1 -1
- package/dist/schemas/developer-dna.json +1 -1
- package/dist/schemas/ecosystem-pulse.json +1 -1
- package/dist/schemas/get-actionable-signals.json +1 -1
- package/dist/schemas/get-context.json +1 -1
- package/dist/schemas/get-relevant-content.json +1 -1
- package/dist/schemas/knowledge-gaps.json +1 -1
- package/dist/schemas/record-feedback.json +1 -1
- package/dist/schemas/upgrade-planner.json +1 -1
- package/dist/schemas/vulnerability-scan.json +2 -2
- package/dist/setup.js +1 -1
- package/dist/setup.js.map +1 -1
- package/dist/tool-dispatch.d.ts +1 -7
- package/dist/tool-dispatch.d.ts.map +1 -1
- package/dist/tool-dispatch.js +51 -50
- package/dist/tool-dispatch.js.map +1 -1
- package/dist/tools/agent-memory.js +1 -1
- package/dist/tools/agent-memory.js.map +1 -1
- package/dist/tools/decision-enforcement.js +1 -1
- package/dist/tools/decision-enforcement.js.map +1 -1
- package/dist/tools/decision-memory.d.ts +0 -2
- package/dist/tools/decision-memory.d.ts.map +1 -1
- package/dist/tools/decision-memory.js +1 -80
- package/dist/tools/decision-memory.js.map +1 -1
- package/dist/tools/dependency-health.js +1 -1
- package/dist/tools/dependency-health.js.map +1 -1
- package/dist/tools/developer-dna.js +1 -1
- package/dist/tools/developer-dna.js.map +1 -1
- package/dist/tools/ecosystem-pulse.js +1 -1
- package/dist/tools/ecosystem-pulse.js.map +1 -1
- package/dist/tools/get-actionable-signals.d.ts.map +1 -1
- package/dist/tools/get-actionable-signals.js +26 -1
- package/dist/tools/get-actionable-signals.js.map +1 -1
- package/dist/tools/get-context.js +1 -1
- package/dist/tools/get-context.js.map +1 -1
- package/dist/tools/get-relevant-content.js +1 -1
- package/dist/tools/get-relevant-content.js.map +1 -1
- package/dist/tools/index.d.ts +13 -42
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +19 -55
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/knowledge-gaps.js +1 -1
- package/dist/tools/knowledge-gaps.js.map +1 -1
- package/dist/tools/record-feedback.js +1 -1
- package/dist/tools/record-feedback.js.map +1 -1
- package/dist/tools/upgrade-planner.js +1 -1
- package/dist/tools/upgrade-planner.js.map +1 -1
- package/dist/tools/vulnerability-scan.d.ts +7 -3
- package/dist/tools/vulnerability-scan.d.ts.map +1 -1
- package/dist/tools/vulnerability-scan.js +19 -6
- package/dist/tools/vulnerability-scan.js.map +1 -1
- package/dist/tools/what-should-i-know.d.ts +3 -12
- package/dist/tools/what-should-i-know.d.ts.map +1 -1
- package/dist/tools/what-should-i-know.js +11 -171
- package/dist/tools/what-should-i-know.js.map +1 -1
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +12 -8
- package/dist/schemas/agent-feedback-stats.json +0 -14
- package/dist/schemas/agent-session-brief.json +0 -25
- package/dist/schemas/attention-report.json +0 -13
- package/dist/schemas/autophagy-status.json +0 -13
- package/dist/schemas/compound-advantage.json +0 -14
- package/dist/schemas/config-validator.json +0 -18
- package/dist/schemas/context-analysis.json +0 -25
- package/dist/schemas/daily-briefing.json +0 -34
- package/dist/schemas/decision-windows.json +0 -22
- package/dist/schemas/delegation-score.json +0 -18
- package/dist/schemas/explain-relevance.json +0 -19
- package/dist/schemas/export-context.json +0 -17
- package/dist/schemas/llm-status.json +0 -13
- package/dist/schemas/preemption-feed.json +0 -18
- package/dist/schemas/project-health.json +0 -13
- package/dist/schemas/record-agent-feedback.json +0 -28
- package/dist/schemas/reverse-mentions.json +0 -13
- package/dist/schemas/score-autopsy.json +0 -30
- package/dist/schemas/semantic-shifts.json +0 -17
- package/dist/schemas/signal-chains.json +0 -19
- package/dist/schemas/source-health.json +0 -17
- package/dist/schemas/tech-radar.json +0 -23
- package/dist/schemas/topic-connections.json +0 -34
- package/dist/schemas/trend-analysis.json +0 -29
- package/dist/schemas/trust-summary.json +0 -13
- package/dist/tools/agent-feedback-stats.d.ts +0 -30
- package/dist/tools/agent-feedback-stats.d.ts.map +0 -1
- package/dist/tools/agent-feedback-stats.js +0 -41
- package/dist/tools/agent-feedback-stats.js.map +0 -1
- package/dist/tools/agent-session-brief.d.ts +0 -44
- package/dist/tools/agent-session-brief.d.ts.map +0 -1
- package/dist/tools/agent-session-brief.js +0 -179
- package/dist/tools/agent-session-brief.js.map +0 -1
- package/dist/tools/attention-report.d.ts +0 -40
- package/dist/tools/attention-report.d.ts.map +0 -1
- package/dist/tools/attention-report.js +0 -73
- package/dist/tools/attention-report.js.map +0 -1
- package/dist/tools/autophagy-status.d.ts +0 -25
- package/dist/tools/autophagy-status.d.ts.map +0 -1
- package/dist/tools/autophagy-status.js +0 -56
- package/dist/tools/autophagy-status.js.map +0 -1
- package/dist/tools/compound-advantage.d.ts +0 -30
- package/dist/tools/compound-advantage.d.ts.map +0 -1
- package/dist/tools/compound-advantage.js +0 -133
- package/dist/tools/compound-advantage.js.map +0 -1
- package/dist/tools/config-validator.d.ts +0 -59
- package/dist/tools/config-validator.d.ts.map +0 -1
- package/dist/tools/config-validator.js +0 -417
- package/dist/tools/config-validator.js.map +0 -1
- package/dist/tools/context-analysis.d.ts +0 -108
- package/dist/tools/context-analysis.d.ts.map +0 -1
- package/dist/tools/context-analysis.js +0 -301
- package/dist/tools/context-analysis.js.map +0 -1
- package/dist/tools/daily-briefing.d.ts +0 -103
- package/dist/tools/daily-briefing.d.ts.map +0 -1
- package/dist/tools/daily-briefing.js +0 -294
- package/dist/tools/daily-briefing.js.map +0 -1
- package/dist/tools/decision-windows.d.ts +0 -37
- package/dist/tools/decision-windows.d.ts.map +0 -1
- package/dist/tools/decision-windows.js +0 -67
- package/dist/tools/decision-windows.js.map +0 -1
- package/dist/tools/delegation-score.d.ts +0 -34
- package/dist/tools/delegation-score.d.ts.map +0 -1
- package/dist/tools/delegation-score.js +0 -260
- package/dist/tools/delegation-score.js.map +0 -1
- package/dist/tools/explain-relevance.d.ts +0 -36
- package/dist/tools/explain-relevance.d.ts.map +0 -1
- package/dist/tools/explain-relevance.js +0 -51
- package/dist/tools/explain-relevance.js.map +0 -1
- package/dist/tools/export-context.d.ts +0 -60
- package/dist/tools/export-context.d.ts.map +0 -1
- package/dist/tools/export-context.js +0 -179
- package/dist/tools/export-context.js.map +0 -1
- package/dist/tools/llm-status.d.ts +0 -45
- package/dist/tools/llm-status.d.ts.map +0 -1
- package/dist/tools/llm-status.js +0 -93
- package/dist/tools/llm-status.js.map +0 -1
- package/dist/tools/muse-context.d.ts +0 -195
- package/dist/tools/muse-context.d.ts.map +0 -1
- package/dist/tools/muse-context.js +0 -284
- package/dist/tools/muse-context.js.map +0 -1
- package/dist/tools/preemption-feed.d.ts +0 -55
- package/dist/tools/preemption-feed.d.ts.map +0 -1
- package/dist/tools/preemption-feed.js +0 -124
- package/dist/tools/preemption-feed.js.map +0 -1
- package/dist/tools/project-health.d.ts +0 -53
- package/dist/tools/project-health.d.ts.map +0 -1
- package/dist/tools/project-health.js +0 -122
- package/dist/tools/project-health.js.map +0 -1
- package/dist/tools/record-agent-feedback.d.ts +0 -46
- package/dist/tools/record-agent-feedback.d.ts.map +0 -1
- package/dist/tools/record-agent-feedback.js +0 -71
- package/dist/tools/record-agent-feedback.js.map +0 -1
- package/dist/tools/reverse-mentions.d.ts +0 -38
- package/dist/tools/reverse-mentions.d.ts.map +0 -1
- package/dist/tools/reverse-mentions.js +0 -75
- package/dist/tools/reverse-mentions.js.map +0 -1
- package/dist/tools/score-autopsy.d.ts +0 -93
- package/dist/tools/score-autopsy.d.ts.map +0 -1
- package/dist/tools/score-autopsy.js +0 -295
- package/dist/tools/score-autopsy.js.map +0 -1
- package/dist/tools/semantic-shifts.d.ts +0 -53
- package/dist/tools/semantic-shifts.d.ts.map +0 -1
- package/dist/tools/semantic-shifts.js +0 -74
- package/dist/tools/semantic-shifts.js.map +0 -1
- package/dist/tools/signal-chains.d.ts +0 -52
- package/dist/tools/signal-chains.d.ts.map +0 -1
- package/dist/tools/signal-chains.js +0 -63
- package/dist/tools/signal-chains.js.map +0 -1
- package/dist/tools/source-health.d.ts +0 -64
- package/dist/tools/source-health.d.ts.map +0 -1
- package/dist/tools/source-health.js +0 -205
- package/dist/tools/source-health.js.map +0 -1
- package/dist/tools/tech-radar.d.ts +0 -38
- package/dist/tools/tech-radar.d.ts.map +0 -1
- package/dist/tools/tech-radar.js +0 -249
- package/dist/tools/tech-radar.js.map +0 -1
- package/dist/tools/topic-connections.d.ts +0 -112
- package/dist/tools/topic-connections.d.ts.map +0 -1
- package/dist/tools/topic-connections.js +0 -319
- package/dist/tools/topic-connections.js.map +0 -1
- package/dist/tools/trend-analysis.d.ts +0 -105
- package/dist/tools/trend-analysis.d.ts.map +0 -1
- package/dist/tools/trend-analysis.js +0 -296
- package/dist/tools/trend-analysis.js.map +0 -1
- package/dist/tools/trust-summary.d.ts +0 -38
- package/dist/tools/trust-summary.d.ts.map +0 -1
- package/dist/tools/trust-summary.js +0 -89
- package/dist/tools/trust-summary.js.map +0 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,201 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2025-2026 4DA Systems Pty Ltd (ACN 696 078 841)
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
# @4da/mcp-server
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@4da/mcp-server)
|
|
4
|
-
[](LICENSE)
|
|
5
5
|
[](https://nodejs.org/)
|
|
6
6
|
[](https://smithery.ai/server/@4da/mcp-server)
|
|
7
7
|
|
|
8
|
-
**
|
|
8
|
+
**Dependency intelligence for AI coding agents.** Live CVE scanning, dependency health checks, upgrade planning, ecosystem news, and persistent decision memory. Zero config, privacy-first.
|
|
9
9
|
|
|
10
10
|
```
|
|
11
|
-
You: "
|
|
12
|
-
Claude:
|
|
11
|
+
You: "Check my dependency health"
|
|
12
|
+
Claude: Health: 72/100. 47 dependencies scanned, 3 vulnerable, 1 deprecated, 8 outdated.
|
|
13
13
|
|
|
14
|
-
CRITICAL openssl-sys 0.9.93
|
|
15
|
-
HIGH serde 1.0.197
|
|
16
|
-
MEDIUM cookie 0.17.0
|
|
14
|
+
CRITICAL openssl-sys 0.9.93 CVE-2025-4231 -> 0.9.96
|
|
15
|
+
HIGH serde 1.0.197 RUSTSEC-2026-12 -> 1.0.210
|
|
16
|
+
MEDIUM cookie 0.17.0 deprecated -> 0.18.1
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
Quick wins: 6 patch upgrades, 2 minor. Run upgrade_planner for full plan.
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
One command to install. No API keys. No accounts. No code leaves your machine.
|
|
@@ -83,97 +83,76 @@ npx @4da/mcp-server --setup
|
|
|
83
83
|
```
|
|
84
84
|
</details>
|
|
85
85
|
|
|
86
|
-
Then ask your AI: **"
|
|
86
|
+
Then ask your AI: **"Check my dependency health"** or **"Scan for vulnerabilities"**
|
|
87
87
|
|
|
88
88
|
## How It Works
|
|
89
89
|
|
|
90
|
-
On
|
|
90
|
+
On startup, the server reads your manifest and lock files (`package.json`, `Cargo.toml`, `go.mod`, `pyproject.toml`), resolves exact dependency versions, and queries live APIs:
|
|
91
91
|
|
|
92
|
-
**
|
|
92
|
+
- **OSV.dev** for known CVEs across all ecosystems
|
|
93
|
+
- **npm registry** for version freshness, deprecation status, and weekly downloads
|
|
94
|
+
- **crates.io sparse index** for Rust package versions (avoids the 1 req/s API limit)
|
|
95
|
+
- **PyPI JSON API** for Python package metadata with license normalization
|
|
96
|
+
- **Go module proxy** for Go module versions
|
|
97
|
+
- **Hacker News Algolia API** for ecosystem news filtered by your tech stack
|
|
98
|
+
|
|
99
|
+
Results are cached (24h for registry data, 1h for vulnerabilities, 30min for news) and rate-limited per source.
|
|
100
|
+
|
|
101
|
+
**What's sent over the network:** package names + versions, generic tech keywords. The same data visible in your `package.json`. No source code, no file paths, no personal data. Set `FOURDA_OFFLINE=true` to disable all network calls.
|
|
93
102
|
|
|
94
103
|
**Ecosystems supported:** npm, crates.io (Rust), PyPI (Python), Go.
|
|
95
104
|
|
|
96
105
|
## What You Can Ask
|
|
97
106
|
|
|
98
107
|
```
|
|
99
|
-
"
|
|
108
|
+
"Check my dependency health" -> dependency_health
|
|
109
|
+
"Scan for vulnerabilities" -> vulnerability_scan
|
|
110
|
+
"Which deps should I upgrade first?" -> upgrade_planner
|
|
111
|
+
"What should I know before I start coding?" -> what_should_i_know
|
|
112
|
+
"What's happening in the ecosystem?" -> ecosystem_pulse
|
|
100
113
|
"What's my tech stack?" -> get_context
|
|
101
|
-
"What are my knowledge gaps?" -> knowledge_gaps
|
|
102
|
-
"Any security issues in my dependencies?" -> project_health
|
|
103
114
|
"Record a decision: we chose Postgres" -> decision_memory
|
|
104
|
-
"
|
|
105
|
-
"
|
|
115
|
+
"Does switching to MySQL align?" -> check_decision_alignment
|
|
116
|
+
"Remember: never use ORM for batch inserts" -> agent_memory
|
|
106
117
|
```
|
|
107
118
|
|
|
108
|
-
## All
|
|
119
|
+
## All 14 Tools
|
|
109
120
|
|
|
110
|
-
### Security
|
|
121
|
+
### Dependency Security
|
|
111
122
|
|
|
112
|
-
| Tool |
|
|
123
|
+
| Tool | What it does |
|
|
113
124
|
|------|-------------|
|
|
114
|
-
| `vulnerability_scan` |
|
|
115
|
-
| `
|
|
116
|
-
| `
|
|
125
|
+
| `vulnerability_scan` | Live CVE scanning via OSV.dev. Severity, fix versions, CVSS scores. |
|
|
126
|
+
| `dependency_health` | Health score (0-100) + version freshness, deprecation, CVE counts per dependency. |
|
|
127
|
+
| `upgrade_planner` | Ranked upgrade recommendations. Quick wins vs. breaking changes. Risk-sorted. |
|
|
117
128
|
|
|
118
|
-
###
|
|
129
|
+
### Intelligence
|
|
119
130
|
|
|
120
|
-
| Tool |
|
|
131
|
+
| Tool | What it does |
|
|
121
132
|
|------|-------------|
|
|
122
|
-
| `
|
|
123
|
-
| `
|
|
124
|
-
| `
|
|
125
|
-
| `
|
|
133
|
+
| `what_should_i_know` | Pre-task intelligence briefing: vulns, decisions, signals, ecosystem updates. |
|
|
134
|
+
| `ecosystem_pulse` | Live ecosystem news from Hacker News, filtered by your detected tech stack. |
|
|
135
|
+
| `get_context` | Your tech stack, resolved dependency versions, interests, affinities. |
|
|
136
|
+
| `get_relevant_content`* | Scored content feed — articles, advisories, releases ranked by relevance. |
|
|
137
|
+
| `get_actionable_signals`* | Classified alerts: security advisories, breaking changes, trending repos. |
|
|
138
|
+
| `knowledge_gaps`* | Dependencies you use daily but never read about. Surfaces missed CVEs and updates. |
|
|
139
|
+
| `record_feedback`* | Save or dismiss items to teach 4DA what matters. Sharpens future scoring. |
|
|
126
140
|
|
|
127
|
-
###
|
|
141
|
+
### Decisions & Memory
|
|
128
142
|
|
|
129
|
-
| Tool |
|
|
143
|
+
| Tool | What it does |
|
|
130
144
|
|------|-------------|
|
|
131
|
-
| `decision_memory` | Record, query, and
|
|
132
|
-
| `
|
|
133
|
-
| `
|
|
145
|
+
| `decision_memory` | Record, query, and manage architectural decisions across sessions. |
|
|
146
|
+
| `check_decision_alignment` | Verify if a proposed technology change aligns with recorded decisions. |
|
|
147
|
+
| `agent_memory` | Persistent memory that survives across sessions, agents, and editors. |
|
|
134
148
|
|
|
135
|
-
###
|
|
149
|
+
### Identity
|
|
136
150
|
|
|
137
|
-
| Tool |
|
|
151
|
+
| Tool | What it does |
|
|
138
152
|
|------|-------------|
|
|
139
|
-
| `
|
|
140
|
-
| `agent_session_brief` | Tailored startup context so agents resume where you left off |
|
|
141
|
-
| `delegation_score` | Autonomy assessment: should the agent proceed or ask the human? |
|
|
142
|
-
| `what_should_i_know` | Pre-task intelligence briefing: advisories, decisions, signals |
|
|
143
|
-
| `record_agent_feedback` | Record whether agent recommendations were used or rejected |
|
|
144
|
-
| `get_agent_feedback_stats` | Agent recommendation accuracy: source usefulness, top items, trends |
|
|
153
|
+
| `developer_dna`* | Your tech identity: primary stack, engagement patterns, blind spots. |
|
|
145
154
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
Requires the [4DA desktop app](https://4da.ai) for full functionality. These tools score and analyze content from Hacker News, GitHub, arXiv, Reddit, and 7 other sources against your tech stack.
|
|
149
|
-
|
|
150
|
-
| Tool | Description |
|
|
151
|
-
|------|-------------|
|
|
152
|
-
| `get_relevant_content` | Filtered content feed: only items that pass the 5-axis scoring gate |
|
|
153
|
-
| `daily_briefing` | AI-generated executive summary of today's discoveries |
|
|
154
|
-
| `explain_relevance` | Full axis breakdown of why a specific item scored the way it did |
|
|
155
|
-
| `record_feedback` | Teach 4DA what matters: save, dismiss, or mark items irrelevant |
|
|
156
|
-
| `score_autopsy` | Forensic analysis of how any item's relevance score was computed |
|
|
157
|
-
| `trend_analysis` | Statistical patterns, anomalies, and predictions across your feed |
|
|
158
|
-
| `context_analysis` | Recommendations to sharpen your scoring context |
|
|
159
|
-
| `topic_connections` | Knowledge graph of how your content topics relate |
|
|
160
|
-
| `signal_chains` | Causal chains connecting related events across sources over time |
|
|
161
|
-
| `semantic_shifts` | Detects when topics you follow are shifting in meaning or sentiment |
|
|
162
|
-
| `attention_report` | Where you spend attention vs. where your codebase actually needs it |
|
|
163
|
-
| `preemption_feed` | Forward-looking alerts on risks and ecosystem shifts affecting your stack |
|
|
164
|
-
| `trust_summary` | Intelligence quality metrics: precision, action rate, false positives |
|
|
165
|
-
| `reverse_mentions` | Where your projects are being discussed across monitored sources |
|
|
166
|
-
| `autophagy_status` | Self-cleaning intelligence health: calibration accuracy, anti-patterns |
|
|
167
|
-
| `decision_windows` | Time-bounded opportunities that need your attention now |
|
|
168
|
-
| `compound_advantage` | How much intelligence leverage your decisions are generating |
|
|
169
|
-
|
|
170
|
-
### Diagnostic
|
|
171
|
-
|
|
172
|
-
| Tool | Description |
|
|
173
|
-
|------|-------------|
|
|
174
|
-
| `source_health` | Source fetching status and data quality diagnostics |
|
|
175
|
-
| `config_validator` | Configuration validation and issue detection |
|
|
176
|
-
| `llm_status` | LLM and Ollama provider availability check |
|
|
155
|
+
*\* Requires the [4DA desktop app](https://4da.ai) for full data.*
|
|
177
156
|
|
|
178
157
|
## Standalone vs. Full Mode
|
|
179
158
|
|
|
@@ -182,14 +161,15 @@ The MCP server works without the desktop app. On first run it creates a local da
|
|
|
182
161
|
| Capability | Standalone | With 4DA Desktop |
|
|
183
162
|
|------------|-----------|-------------------|
|
|
184
163
|
| Vulnerability scanning (OSV.dev) | Yes | Yes |
|
|
185
|
-
|
|
|
186
|
-
|
|
|
187
|
-
|
|
|
188
|
-
|
|
|
189
|
-
|
|
|
190
|
-
|
|
|
191
|
-
|
|
|
192
|
-
|
|
|
164
|
+
| Dependency health (4 registries) | Yes | Yes |
|
|
165
|
+
| Upgrade planner | Yes | Yes |
|
|
166
|
+
| Ecosystem news (Hacker News) | Yes | Yes |
|
|
167
|
+
| Pre-task intelligence briefing | Yes | Yes |
|
|
168
|
+
| Tech stack detection + resolved versions | Yes | Yes |
|
|
169
|
+
| Decision memory + alignment checking | Yes | Yes |
|
|
170
|
+
| Agent memory (cross-session) | Yes | Yes |
|
|
171
|
+
| Scored content feed (20+ sources) | -- | Yes |
|
|
172
|
+
| Actionable signals + knowledge gaps | -- | Yes |
|
|
193
173
|
| Compound intelligence (learns over time) | -- | Yes |
|
|
194
174
|
|
|
195
175
|
> **[Download 4DA](https://github.com/runyourempire/4DA/releases/latest)** for the full experience.
|
|
@@ -226,10 +206,10 @@ npx @4da/mcp-server --version # Print version
|
|
|
226
206
|
## FAQ
|
|
227
207
|
|
|
228
208
|
**Does this send my code anywhere?**
|
|
229
|
-
No. The
|
|
209
|
+
No. The server sends package names and versions to public APIs ([OSV.dev](https://osv.dev), npm registry, crates.io, PyPI, Go proxy) and generic tech keywords to [HN Algolia](https://hn.algolia.com/api). The same public data visible in your `package.json`. No source code, no file paths, no personal data. Set `FOURDA_OFFLINE=true` to disable all network calls.
|
|
230
210
|
|
|
231
211
|
**Do I need the 4DA desktop app?**
|
|
232
|
-
No.
|
|
212
|
+
No. 9 tools work standalone: vulnerability scanning, dependency health, upgrade planning, ecosystem news, pre-task briefings, project context, decision memory, alignment checking, and agent memory. The desktop app adds scored content from 20+ sources that compounds over time.
|
|
233
213
|
|
|
234
214
|
**Which AI tools does this work with?**
|
|
235
215
|
Any tool that supports [MCP](https://modelcontextprotocol.io): Claude Code, Claude Desktop, Cursor, Windsurf, VS Code (Copilot), and any custom MCP client.
|
|
@@ -246,7 +226,7 @@ pnpm test # 71 contract tests
|
|
|
246
226
|
|
|
247
227
|
## License
|
|
248
228
|
|
|
249
|
-
|
|
229
|
+
Apache License 2.0 (`Apache-2.0`). See [LICENSE](LICENSE).
|
|
250
230
|
|
|
251
231
|
---
|
|
252
232
|
|
package/dist/auth.js
CHANGED
package/dist/auth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC;;;;;;GAMG;AAWH;;;;;;;;;GASG;AACH,MAAM,UAAU,iBAAiB,CAAC,GAAoB;IACpD,MAAM,IAAI,GAAG,GAAG,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IAC1C,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;QACzC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IACnC,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IAExB,IAAI,CAAC;QACH,wDAAwD;QACxD,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC/B,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC;QAEpC,+BAA+B;QAC/B,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CACxB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CACrD,CAAC;QAEF,2BAA2B;QAC3B,IAAI,CAAC,OAAO,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,IAAI,CAAC,OAA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B,CAAC;AACH,CAAC"}
|
package/dist/db.d.ts
CHANGED
|
@@ -14,6 +14,32 @@ export interface DatabaseValidationResult {
|
|
|
14
14
|
/** True when no existing DB was found — standalone mode will create one */
|
|
15
15
|
standalone?: boolean;
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Live freshness state of the feed database, read from ground truth (`source_items`, `sources`,
|
|
19
|
+
* `engine_runs`). The MCP server reads the DB but cannot fetch or score — that pipeline lives in
|
|
20
|
+
* the 4DA app / `fourda-engine`. Attaching this to DB-backed tool responses stops the server from
|
|
21
|
+
* presenting stale data as if it were live. Mirrors the Rust `engine_runs::FreshnessSnapshot`.
|
|
22
|
+
*/
|
|
23
|
+
export interface DataFreshness {
|
|
24
|
+
/** Total rows in `source_items`. */
|
|
25
|
+
source_items_total: number;
|
|
26
|
+
/** Newest `source_items.created_at` (ingestion watermark, UTC), or null if empty. */
|
|
27
|
+
newest_item_at: string | null;
|
|
28
|
+
/** Newest `sources.last_fetch` across all sources (UTC), or null if nothing has fetched. */
|
|
29
|
+
last_fetch_at: string | null;
|
|
30
|
+
/** `completed_at` of the most recent engine run, or null if none / table absent. */
|
|
31
|
+
last_engine_run_at: string | null;
|
|
32
|
+
/** `trigger` of the most recent engine run (e.g. `scheduled`, `headless_once`). */
|
|
33
|
+
last_engine_run_trigger: string | null;
|
|
34
|
+
/** Whether the most recent engine run reported success. */
|
|
35
|
+
last_engine_run_ok: boolean | null;
|
|
36
|
+
/** Whole minutes since the last fetch, or null if never fetched. */
|
|
37
|
+
age_minutes: number | null;
|
|
38
|
+
/** True when the feed has not been refreshed within `STALE_AFTER_MINUTES`. */
|
|
39
|
+
is_stale: boolean;
|
|
40
|
+
/** Human-readable summary with the remedy when stale. */
|
|
41
|
+
note: string;
|
|
42
|
+
}
|
|
17
43
|
/**
|
|
18
44
|
* 4DA Database accessor
|
|
19
45
|
*/
|
|
@@ -66,9 +92,28 @@ export declare class FourDADatabase {
|
|
|
66
92
|
*/
|
|
67
93
|
queryWithRetry<T>(fn: () => T, maxRetries?: number): T;
|
|
68
94
|
/**
|
|
69
|
-
* Get relevant content items
|
|
95
|
+
* Get relevant content items scored by the Rust pipeline (preferred) or
|
|
96
|
+
* TypeScript fallback scoring when Rust scores are unavailable.
|
|
70
97
|
*/
|
|
71
98
|
getRelevantContent(minScore?: number, sourceType?: string, limit?: number, sinceHours?: number): RelevantItem[];
|
|
99
|
+
/**
|
|
100
|
+
* Read the live freshness state of the feed database. Answered from ground truth, not from any
|
|
101
|
+
* claim that a refresh ran — so DB-backed tools can tell the caller whether the curated feed is
|
|
102
|
+
* fresh or stale. Tolerant of older databases where `engine_runs` does not yet exist.
|
|
103
|
+
*/
|
|
104
|
+
getFreshness(): DataFreshness;
|
|
105
|
+
/** `MAX(sources.last_fetch)`, tolerant of a missing `sources` table (returns null). */
|
|
106
|
+
private safeMaxLastFetch;
|
|
107
|
+
private hasColumn;
|
|
108
|
+
/**
|
|
109
|
+
* Use Rust-computed relevance_score from the desktop app's scoring pipeline.
|
|
110
|
+
* These scores are from the full 5-axis PASIFA engine — much more accurate.
|
|
111
|
+
*/
|
|
112
|
+
private getRelevantContentFromRust;
|
|
113
|
+
/**
|
|
114
|
+
* Fallback: TypeScript keyword scoring for standalone mode (no Rust pipeline).
|
|
115
|
+
*/
|
|
116
|
+
private getRelevantContentFallback;
|
|
72
117
|
/**
|
|
73
118
|
* Get a single source item by ID and type
|
|
74
119
|
*/
|
package/dist/db.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../src/db.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AAUH,OAAO,KAAK,aAAa,MAAM,gBAAgB,CAAC;AAsBhD,OAAO,KAAK,EACV,UAAU,EACV,YAAY,EAMZ,WAAW,EAGX,oBAAoB,EACpB,cAAc,EACd,cAAc,EACf,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sB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