@newrelic/preflight 1.50.1 → 1.50.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/LICENSE
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
Apache License
|
|
2
3
|
Version 2.0, January 2004
|
|
3
4
|
http://www.apache.org/licenses/
|
|
@@ -32,9 +33,10 @@
|
|
|
32
33
|
not limited to compiled object code, generated documentation,
|
|
33
34
|
and conversions to other media types.
|
|
34
35
|
|
|
35
|
-
"Work" shall mean the work of authorship
|
|
36
|
-
the License, as indicated by a
|
|
37
|
-
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
38
40
|
|
|
39
41
|
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
42
|
form, that is based on (or derived from) the Work and for which the
|
|
@@ -42,23 +44,25 @@
|
|
|
42
44
|
represent, as a whole, an original work of authorship. For the purposes
|
|
43
45
|
of this License, Derivative Works shall not include works that remain
|
|
44
46
|
separable from, or merely link (or bind by name) to the interfaces of,
|
|
45
|
-
the Work and
|
|
46
|
-
|
|
47
|
-
"Contribution" shall mean
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
or
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
62
66
|
|
|
63
67
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
64
68
|
this License, each Contributor hereby grants to You a perpetual,
|
|
@@ -76,12 +80,12 @@
|
|
|
76
80
|
by such Contributor that are necessarily infringed by their
|
|
77
81
|
Contribution(s) alone or by combination of their Contribution(s)
|
|
78
82
|
with the Work to which such Contribution(s) was submitted. If You
|
|
79
|
-
institute patent litigation against any entity (including a
|
|
80
|
-
or counterclaim in a lawsuit) alleging that the Work
|
|
81
|
-
Contribution incorporated within the Work constitutes direct
|
|
82
|
-
contributory patent infringement, then any patent licenses
|
|
83
|
-
You under this License for that Work shall terminate
|
|
84
|
-
such litigation is filed.
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
85
89
|
|
|
86
90
|
4. Redistribution. You may reproduce and distribute copies of the
|
|
87
91
|
Work or Derivative Works thereof in any medium, with or without
|
|
@@ -101,24 +105,28 @@
|
|
|
101
105
|
the Derivative Works; and
|
|
102
106
|
|
|
103
107
|
(d) If the Work includes a "NOTICE" text file as part of its
|
|
104
|
-
distribution,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
if
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
113
119
|
notices within Derivative Works that You distribute, alongside
|
|
114
120
|
or as an addendum to the NOTICE text from the Work, provided
|
|
115
121
|
that such additional attribution notices cannot be construed
|
|
116
122
|
as modifying the License.
|
|
117
123
|
|
|
118
|
-
You may add Your own
|
|
119
|
-
may provide additional
|
|
120
|
-
|
|
121
|
-
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
122
130
|
|
|
123
131
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
124
132
|
any Contribution intentionally submitted for inclusion in the Work
|
|
@@ -140,7 +148,7 @@
|
|
|
140
148
|
implied, including, without limitation, any warranties or conditions
|
|
141
149
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
142
150
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
143
|
-
appropriateness of using or
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
144
152
|
risks associated with Your exercise of permissions under this License.
|
|
145
153
|
|
|
146
154
|
8. Limitation of Liability. In no event and under no legal theory,
|
|
@@ -148,12 +156,12 @@
|
|
|
148
156
|
unless required by applicable law (such as deliberate and grossly
|
|
149
157
|
negligent acts) or agreed to in writing, shall any Contributor be
|
|
150
158
|
liable to You for damages, including any direct, indirect, special,
|
|
151
|
-
incidental, or
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
152
160
|
result of this License or out of the use or inability to use the
|
|
153
161
|
Work (including but not limited to damages for loss of goodwill,
|
|
154
|
-
work stoppage, computer failure or malfunction, or all
|
|
155
|
-
commercial damages or losses), even if such Contributor
|
|
156
|
-
advised of the possibility of such damages.
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
157
165
|
|
|
158
166
|
9. Accepting Warranty or Additional Liability. While redistributing
|
|
159
167
|
the Work or Derivative Works thereof, You may choose to offer,
|
|
@@ -168,7 +176,18 @@
|
|
|
168
176
|
|
|
169
177
|
END OF TERMS AND CONDITIONS
|
|
170
178
|
|
|
171
|
-
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
172
191
|
|
|
173
192
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
174
193
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -120,9 +120,9 @@ Restart your AI tool — hooks and the MCP server load at session start. Every t
|
|
|
120
120
|
|
|
121
121
|
## Works With
|
|
122
122
|
|
|
123
|
-
**Claude Code** • **
|
|
123
|
+
**Claude Code** • **Amazon Kiro** • **Amazon Q Developer CLI** • **Factory Droid** • **OpenAI Codex** • **opencode** • **Kilo Code** • **Pi** • **GitHub Copilot** • **GitHub Copilot SDK** • **GitHub Copilot app** • **Google Gemini CLI** • **Cursor** • **Windsurf** • **Google Antigravity** • **Zed** • **Continue.dev** • **Cline**
|
|
124
124
|
|
|
125
|
-
Coverage isn't uniform — some platforms capture every built-in tool call, others (Zed, Continue.dev) only see calls routed to Preflight's own MCP tools. See [ADAPTERS.md](docs/ADAPTERS.md) for what each platform can and can't observe, and per-platform setup steps.
|
|
125
|
+
Coverage isn't uniform — some platforms capture every built-in tool call, others (Zed, Continue.dev, Cline) only see calls routed to Preflight's own MCP tools. See [ADAPTERS.md](docs/ADAPTERS.md) for what each platform can and can't observe, and per-platform setup steps.
|
|
126
126
|
|
|
127
127
|
---
|
|
128
128
|
|
|
@@ -31,6 +31,7 @@ export interface ToolSelectionScorerOptions {
|
|
|
31
31
|
readonly unusedOutputPenalty?: number;
|
|
32
32
|
readonly unusedOutputSizeThreshold?: number;
|
|
33
33
|
readonly worstOffenderCount?: number;
|
|
34
|
+
readonly referenceSessionSize?: number;
|
|
34
35
|
}
|
|
35
36
|
export declare class ToolSelectionScorer {
|
|
36
37
|
private readonly redundantReadPenalty;
|
|
@@ -38,7 +39,25 @@ export declare class ToolSelectionScorer {
|
|
|
38
39
|
private readonly unusedOutputPenalty;
|
|
39
40
|
private readonly unusedOutputSizeThreshold;
|
|
40
41
|
private readonly worstOffenderCount;
|
|
42
|
+
private readonly referenceSessionSize;
|
|
41
43
|
constructor(options?: ToolSelectionScorerOptions);
|
|
44
|
+
/**
|
|
45
|
+
* Normalizes a raw summed penalty by session size, one-sided: sessions AT
|
|
46
|
+
* OR BELOW `referenceSessionSize` calls apply the raw penalty as-is
|
|
47
|
+
* (identical to the pre-normalization absolute penalty), while sessions
|
|
48
|
+
* ABOVE it get the penalty diluted in proportion to size — a 1000-call
|
|
49
|
+
* session with 10 redundant reads is punished far less than a 15-call
|
|
50
|
+
* session with the same 10 redundant reads. This is deliberately one-sided
|
|
51
|
+
* (`Math.min(1, referenceSessionSize / totalCalls)`, never > 1): the
|
|
52
|
+
* problem being fixed is large/busy sessions scoring worse than small ones
|
|
53
|
+
* for an identical defect count, not small sessions scoring better — a
|
|
54
|
+
* two-sided scale would fix the former by introducing the same unfairness
|
|
55
|
+
* in the other direction (amplifying penalties for small sessions instead
|
|
56
|
+
* of leaving them untouched). The result is still capped at 0.7 (floor of
|
|
57
|
+
* 0.3) so even a session dense with violations relative to its own size
|
|
58
|
+
* isn't scored as a total failure.
|
|
59
|
+
*/
|
|
60
|
+
private normalizePenalty;
|
|
42
61
|
scoreSession(toolCalls: readonly ToolCallRecord[]): ToolSelectionMetrics;
|
|
43
62
|
/**
|
|
44
63
|
* Recombines per-session summaries (each already scored independently —
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-selection-scorer.d.ts","sourceRoot":"","sources":["../../src/metrics/tool-selection-scorer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAM1D,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,gBAAgB,GAAG,kBAAkB,GAAG,eAAe,CAAC;IACzE,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,SAAS,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AAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAS;IAC9C,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAS;IAChD,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAS;IAC7C,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAS;IACnD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAS;IAC5C,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAS;gBAElC,OAAO,CAAC,EAAE,0BAA0B;IAWhD;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,gBAAgB;IAMxB,YAAY,CAAC,SAAS,EAAE,SAAS,cAAc,EAAE,GAAG,oBAAoB;IA+CxE;;;;;;;OAOG;IACH,gBAAgB,CAAC,SAAS,EAAE,SAAS,oBAAoB,EAAE,GAAG,oBAAoB;IA8ClF,OAAO,CAAC,kBAAkB;IAiD1B,OAAO,CAAC,oBAAoB;IA2B5B,OAAO,CAAC,iBAAiB;IA2BzB,OAAO,CAAC,kBAAkB;CAqB3B"}
|
|
@@ -17,6 +17,12 @@ const DEFAULT_REPEATED_FAILURE_PENALTY = 0.08;
|
|
|
17
17
|
const DEFAULT_UNUSED_OUTPUT_PENALTY = 0.04;
|
|
18
18
|
const DEFAULT_UNUSED_OUTPUT_SIZE_THRESHOLD = 20000;
|
|
19
19
|
const DEFAULT_WORST_OFFENDER_COUNT = 10;
|
|
20
|
+
// Session size (in tool calls) at or below which normalization is a no-op;
|
|
21
|
+
// above it, penalties are diluted in proportion to size — see
|
|
22
|
+
// normalizePenalty(). Chosen to match the illustrative example this
|
|
23
|
+
// normalization is designed to fix (a 15-call session with 10 redundant
|
|
24
|
+
// reads applies the raw, pre-normalization penalty unchanged).
|
|
25
|
+
const DEFAULT_REFERENCE_SESSION_SIZE = 15;
|
|
20
26
|
// Tools whose output is terminal — they perform an action and their output is
|
|
21
27
|
// a confirmation or result, not raw data to be consumed by later tool calls.
|
|
22
28
|
// Penalizing these for "unused output" is nonsensical.
|
|
@@ -61,6 +67,7 @@ export class ToolSelectionScorer {
|
|
|
61
67
|
unusedOutputPenalty;
|
|
62
68
|
unusedOutputSizeThreshold;
|
|
63
69
|
worstOffenderCount;
|
|
70
|
+
referenceSessionSize;
|
|
64
71
|
constructor(options) {
|
|
65
72
|
this.redundantReadPenalty = options?.redundantReadPenalty ?? DEFAULT_REDUNDANT_READ_PENALTY;
|
|
66
73
|
this.repeatedFailurePenalty =
|
|
@@ -69,6 +76,29 @@ export class ToolSelectionScorer {
|
|
|
69
76
|
this.unusedOutputSizeThreshold =
|
|
70
77
|
options?.unusedOutputSizeThreshold ?? DEFAULT_UNUSED_OUTPUT_SIZE_THRESHOLD;
|
|
71
78
|
this.worstOffenderCount = options?.worstOffenderCount ?? DEFAULT_WORST_OFFENDER_COUNT;
|
|
79
|
+
this.referenceSessionSize = options?.referenceSessionSize ?? DEFAULT_REFERENCE_SESSION_SIZE;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Normalizes a raw summed penalty by session size, one-sided: sessions AT
|
|
83
|
+
* OR BELOW `referenceSessionSize` calls apply the raw penalty as-is
|
|
84
|
+
* (identical to the pre-normalization absolute penalty), while sessions
|
|
85
|
+
* ABOVE it get the penalty diluted in proportion to size — a 1000-call
|
|
86
|
+
* session with 10 redundant reads is punished far less than a 15-call
|
|
87
|
+
* session with the same 10 redundant reads. This is deliberately one-sided
|
|
88
|
+
* (`Math.min(1, referenceSessionSize / totalCalls)`, never > 1): the
|
|
89
|
+
* problem being fixed is large/busy sessions scoring worse than small ones
|
|
90
|
+
* for an identical defect count, not small sessions scoring better — a
|
|
91
|
+
* two-sided scale would fix the former by introducing the same unfairness
|
|
92
|
+
* in the other direction (amplifying penalties for small sessions instead
|
|
93
|
+
* of leaving them untouched). The result is still capped at 0.7 (floor of
|
|
94
|
+
* 0.3) so even a session dense with violations relative to its own size
|
|
95
|
+
* isn't scored as a total failure.
|
|
96
|
+
*/
|
|
97
|
+
normalizePenalty(rawPenalty, totalCalls) {
|
|
98
|
+
if (totalCalls <= 0)
|
|
99
|
+
return 0;
|
|
100
|
+
const scale = Math.min(1, this.referenceSessionSize / totalCalls);
|
|
101
|
+
return Math.min(rawPenalty * scale, 0.7);
|
|
72
102
|
}
|
|
73
103
|
scoreSession(toolCalls) {
|
|
74
104
|
if (toolCalls.length === 0) {
|
|
@@ -95,11 +125,7 @@ export class ToolSelectionScorer {
|
|
|
95
125
|
}
|
|
96
126
|
penalties.push(...this.findUnusedOutputs(toolCalls));
|
|
97
127
|
const rawPenalty = penalties.reduce((sum, p) => sum + p.penaltyScore, 0);
|
|
98
|
-
|
|
99
|
-
// 1000-call session with 10 redundant reads isn't unfairly punished the
|
|
100
|
-
// same as a 15-call session with 10 redundant reads. Effective penalty is
|
|
101
|
-
// at most 70% (floor of 0.3 ensures even bad sessions aren't demoralizingly low).
|
|
102
|
-
const totalPenalty = Math.min(rawPenalty, 0.7);
|
|
128
|
+
const totalPenalty = this.normalizePenalty(rawPenalty, toolCalls.length);
|
|
103
129
|
const score = Math.max(0, Math.round((1 - totalPenalty) * 1000) / 1000);
|
|
104
130
|
const worstOffenders = [...penalties]
|
|
105
131
|
.sort((a, b) => b.penaltyScore - a.penaltyScore)
|
|
@@ -151,7 +177,7 @@ export class ToolSelectionScorer {
|
|
|
151
177
|
const rawPenalty = redundantReadCount * this.redundantReadPenalty +
|
|
152
178
|
repeatedFailureCount * this.repeatedFailurePenalty +
|
|
153
179
|
unusedOutputCount * this.unusedOutputPenalty;
|
|
154
|
-
const totalPenalty =
|
|
180
|
+
const totalPenalty = this.normalizePenalty(rawPenalty, totalCalls);
|
|
155
181
|
const score = Math.max(0, Math.round((1 - totalPenalty) * 1000) / 1000);
|
|
156
182
|
return {
|
|
157
183
|
score,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-selection-scorer.js","sourceRoot":"","sources":["../../src/metrics/tool-selection-scorer.ts"],"names":[],"mappings":"AAAA,OAAO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AAC,QAAQ;oBACvB,MAAM,EAAE,eAAe;oBACvB,YAAY,EAAE,IAAI,CAAC,mBAAmB;oBACtC,MAAM,EAAE,iBAAiB,UAAU,gBAAgB,IAAI,CAAC,QAAQ,qCAAqC;iBACtG,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAEO,kBAAkB,CACxB,UAA0B,EAC1B,eAA0C;QAE1C,uFAAuF;QACvF,IAAI,UAAU,CAAC,QAAQ,KAAK,MAAM,EAAE,CAAC;YACnC,MAAM,QAAQ,GAAG,UAAU,CAAC,QAA8B,CAAC;YAC3D,IAAI,QAAQ,EAAE,CAAC;gBACb,KAAK,MAAM,IAAI,IAAI,eAAe,EAAE,CAAC;oBACnC,IACE,CAAC,IAAI,CAAC,QAAQ,KAAK,MAAM,IAAI,IAAI,CAAC,QAAQ,KAAK,OAAO,CAAC;wBACvD,IAAI,CAAC,QAAQ,KAAK,QAAQ,EAC1B,CAAC;wBACD,OAAO,IAAI,CAAC;oBACd,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newrelic/preflight",
|
|
3
|
-
"version": "1.50.
|
|
3
|
+
"version": "1.50.3",
|
|
4
4
|
"mcpName": "io.github.newrelic-experimental/preflight",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"bugs": {
|
|
20
20
|
"url": "https://github.com/newrelic-experimental/preflight/issues"
|
|
21
21
|
},
|
|
22
|
-
"description": "New Relic MCP server for observing AI coding assistants (Claude Code, Cursor, Copilot,
|
|
22
|
+
"description": "New Relic MCP server for observing AI coding assistants (Claude Code, Cursor, Windsurf, Copilot, Codex, and more)",
|
|
23
23
|
"main": "dist/index.js",
|
|
24
24
|
"types": "dist/index.d.ts",
|
|
25
25
|
"exports": {
|