@ken-jo/agent-connector 0.1.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/LICENSE +202 -0
- package/NOTICE +6 -0
- package/README.md +348 -0
- package/dist/amp-QSFH2V7Y.js +217 -0
- package/dist/amp-QSFH2V7Y.js.map +1 -0
- package/dist/amp-TULUPXXL.js +237 -0
- package/dist/amp-TULUPXXL.js.map +1 -0
- package/dist/antigravity-CX2YLSY7.js +17 -0
- package/dist/antigravity-CX2YLSY7.js.map +1 -0
- package/dist/antigravity-STHZWMP3.js +171 -0
- package/dist/antigravity-STHZWMP3.js.map +1 -0
- package/dist/antigravity-cli-P6HADOAO.js +121 -0
- package/dist/antigravity-cli-P6HADOAO.js.map +1 -0
- package/dist/antigravity-cli-YQDFVV4U.js +86 -0
- package/dist/antigravity-cli-YQDFVV4U.js.map +1 -0
- package/dist/chunk-54EMKTTX.js +191 -0
- package/dist/chunk-54EMKTTX.js.map +1 -0
- package/dist/chunk-7L6ITC4T.js +54 -0
- package/dist/chunk-7L6ITC4T.js.map +1 -0
- package/dist/chunk-7MSDGHJW.js +316 -0
- package/dist/chunk-7MSDGHJW.js.map +1 -0
- package/dist/chunk-BCHWFTV4.js +196 -0
- package/dist/chunk-BCHWFTV4.js.map +1 -0
- package/dist/chunk-DBQMX75U.js +36 -0
- package/dist/chunk-DBQMX75U.js.map +1 -0
- package/dist/chunk-EXLS7BSI.js +29 -0
- package/dist/chunk-EXLS7BSI.js.map +1 -0
- package/dist/chunk-JNM3TPLX.js +593 -0
- package/dist/chunk-JNM3TPLX.js.map +1 -0
- package/dist/chunk-JWNT5KW7.js +197 -0
- package/dist/chunk-JWNT5KW7.js.map +1 -0
- package/dist/chunk-KHO5WNTP.js +30 -0
- package/dist/chunk-KHO5WNTP.js.map +1 -0
- package/dist/chunk-LTT56GI3.js +155 -0
- package/dist/chunk-LTT56GI3.js.map +1 -0
- package/dist/chunk-MEH7GC7R.js +111 -0
- package/dist/chunk-MEH7GC7R.js.map +1 -0
- package/dist/chunk-MQPNU2CY.js +64 -0
- package/dist/chunk-MQPNU2CY.js.map +1 -0
- package/dist/chunk-OPXAP3AC.js +12 -0
- package/dist/chunk-OPXAP3AC.js.map +1 -0
- package/dist/chunk-RK6VBLXP.js +50 -0
- package/dist/chunk-RK6VBLXP.js.map +1 -0
- package/dist/chunk-TIIP3RG2.js +420 -0
- package/dist/chunk-TIIP3RG2.js.map +1 -0
- package/dist/chunk-TRKWUNO4.js +702 -0
- package/dist/chunk-TRKWUNO4.js.map +1 -0
- package/dist/chunk-TRQKHP7D.js +93 -0
- package/dist/chunk-TRQKHP7D.js.map +1 -0
- package/dist/chunk-WCETQWWK.js +59 -0
- package/dist/chunk-WCETQWWK.js.map +1 -0
- package/dist/chunk-WV63X7IK.js +357 -0
- package/dist/chunk-WV63X7IK.js.map +1 -0
- package/dist/chunk-XD7MY6HB.js +343 -0
- package/dist/chunk-XD7MY6HB.js.map +1 -0
- package/dist/chunk-XNAM7F35.js +276 -0
- package/dist/chunk-XNAM7F35.js.map +1 -0
- package/dist/chunk-XUCWLJY5.js +238 -0
- package/dist/chunk-XUCWLJY5.js.map +1 -0
- package/dist/chunk-YNZU6PAV.js +800 -0
- package/dist/chunk-YNZU6PAV.js.map +1 -0
- package/dist/chunk-YT43MUSJ.js +146 -0
- package/dist/chunk-YT43MUSJ.js.map +1 -0
- package/dist/claude-code-HKDV7T32.js +637 -0
- package/dist/claude-code-HKDV7T32.js.map +1 -0
- package/dist/claude-code-W74MNTAC.js +652 -0
- package/dist/claude-code-W74MNTAC.js.map +1 -0
- package/dist/cli/sdk.d.ts +54 -0
- package/dist/cli/sdk.js +82 -0
- package/dist/cli/sdk.js.map +1 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +15 -0
- package/dist/cli.js.map +1 -0
- package/dist/codebuff-3PMZJJHP.js +307 -0
- package/dist/codebuff-3PMZJJHP.js.map +1 -0
- package/dist/codebuff-QX57FJDN.js +220 -0
- package/dist/codebuff-QX57FJDN.js.map +1 -0
- package/dist/codex-JFQTS6LU.js +593 -0
- package/dist/codex-JFQTS6LU.js.map +1 -0
- package/dist/codex-Q3ATRRX3.js +364 -0
- package/dist/codex-Q3ATRRX3.js.map +1 -0
- package/dist/copilot-cli-MTCGHZ2T.js +622 -0
- package/dist/copilot-cli-MTCGHZ2T.js.map +1 -0
- package/dist/copilot-cli-SJGIXVSD.js +369 -0
- package/dist/copilot-cli-SJGIXVSD.js.map +1 -0
- package/dist/crush-I7PK3FGI.js +360 -0
- package/dist/crush-I7PK3FGI.js.map +1 -0
- package/dist/crush-LN5QFFR2.js +183 -0
- package/dist/crush-LN5QFFR2.js.map +1 -0
- package/dist/cursor-4TMXKJOZ.js +603 -0
- package/dist/cursor-4TMXKJOZ.js.map +1 -0
- package/dist/cursor-QZ6MTO74.js +194 -0
- package/dist/cursor-QZ6MTO74.js.map +1 -0
- package/dist/detect-WIAGVYS4.js +68 -0
- package/dist/detect-WIAGVYS4.js.map +1 -0
- package/dist/doctor-EZW2K4NI.js +372 -0
- package/dist/doctor-EZW2K4NI.js.map +1 -0
- package/dist/droid-KN6VRMMT.js +424 -0
- package/dist/droid-KN6VRMMT.js.map +1 -0
- package/dist/droid-W5WF5XEX.js +224 -0
- package/dist/droid-W5WF5XEX.js.map +1 -0
- package/dist/gemini-cli-CIRW37TU.js +369 -0
- package/dist/gemini-cli-CIRW37TU.js.map +1 -0
- package/dist/gemini-cli-Y35FFK4M.js +705 -0
- package/dist/gemini-cli-Y35FFK4M.js.map +1 -0
- package/dist/goose-A3M5GODH.js +212 -0
- package/dist/goose-A3M5GODH.js.map +1 -0
- package/dist/goose-ZTGTSUFJ.js +480 -0
- package/dist/goose-ZTGTSUFJ.js.map +1 -0
- package/dist/hermes-H2KV44GK.js +470 -0
- package/dist/hermes-H2KV44GK.js.map +1 -0
- package/dist/hermes-ZYLMOFLZ.js +196 -0
- package/dist/hermes-ZYLMOFLZ.js.map +1 -0
- package/dist/hook-YVDILAMZ.js +75 -0
- package/dist/hook-YVDILAMZ.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/install-HQRYZOQ2.js +60 -0
- package/dist/install-HQRYZOQ2.js.map +1 -0
- package/dist/jetbrains-copilot-HWA3DMH7.js +633 -0
- package/dist/jetbrains-copilot-HWA3DMH7.js.map +1 -0
- package/dist/kilo-NSWAVP6P.js +235 -0
- package/dist/kilo-NSWAVP6P.js.map +1 -0
- package/dist/kilo-QXJRCSLT.js +384 -0
- package/dist/kilo-QXJRCSLT.js.map +1 -0
- package/dist/kilo-cli-EAQTHXUW.js +587 -0
- package/dist/kilo-cli-EAQTHXUW.js.map +1 -0
- package/dist/kilo-cli-EVBKUODA.js +160 -0
- package/dist/kilo-cli-EVBKUODA.js.map +1 -0
- package/dist/kimi-EI3UM3ZV.js +155 -0
- package/dist/kimi-EI3UM3ZV.js.map +1 -0
- package/dist/kimi-GQ7VXNYT.js +423 -0
- package/dist/kimi-GQ7VXNYT.js.map +1 -0
- package/dist/kiro-UCLSLBW2.js +217 -0
- package/dist/kiro-UCLSLBW2.js.map +1 -0
- package/dist/kiro-VQTT6LO2.js +451 -0
- package/dist/kiro-VQTT6LO2.js.map +1 -0
- package/dist/leaderboard-K6ON3SWW.js +137 -0
- package/dist/leaderboard-K6ON3SWW.js.map +1 -0
- package/dist/mux-T2TV4CIQ.js +211 -0
- package/dist/mux-T2TV4CIQ.js.map +1 -0
- package/dist/mux-ZMLVAXOO.js +96 -0
- package/dist/mux-ZMLVAXOO.js.map +1 -0
- package/dist/omp-PB4VDKS6.js +586 -0
- package/dist/omp-PB4VDKS6.js.map +1 -0
- package/dist/openclaw-ETN2M63O.js +751 -0
- package/dist/openclaw-ETN2M63O.js.map +1 -0
- package/dist/openclaw-IYA7ASL6.js +150 -0
- package/dist/openclaw-IYA7ASL6.js.map +1 -0
- package/dist/opencode-FZ33JKUZ.js +734 -0
- package/dist/opencode-FZ33JKUZ.js.map +1 -0
- package/dist/opencode-HWT3RSMN.js +216 -0
- package/dist/opencode-HWT3RSMN.js.map +1 -0
- package/dist/package-DLOVE2E4.js +1132 -0
- package/dist/package-DLOVE2E4.js.map +1 -0
- package/dist/pi-CIU2QHT4.js +208 -0
- package/dist/pi-CIU2QHT4.js.map +1 -0
- package/dist/pi-UFX2OYFV.js +139 -0
- package/dist/pi-UFX2OYFV.js.map +1 -0
- package/dist/qwen-code-5POCNU6P.js +573 -0
- package/dist/qwen-code-5POCNU6P.js.map +1 -0
- package/dist/qwen-code-W7NUCDEN.js +134 -0
- package/dist/qwen-code-W7NUCDEN.js.map +1 -0
- package/dist/roo-code-IOIUXRDE.js +242 -0
- package/dist/roo-code-IOIUXRDE.js.map +1 -0
- package/dist/roo-code-ZLKH4A7N.js +229 -0
- package/dist/roo-code-ZLKH4A7N.js.map +1 -0
- package/dist/runtime/index.d.ts +157 -0
- package/dist/runtime/index.js +20 -0
- package/dist/runtime/index.js.map +1 -0
- package/dist/serve-HVWWY4B6.js +65 -0
- package/dist/serve-HVWWY4B6.js.map +1 -0
- package/dist/status-FE7TECZD.js +128 -0
- package/dist/status-FE7TECZD.js.map +1 -0
- package/dist/synthetic-UKR6SMGS.js +178 -0
- package/dist/synthetic-UKR6SMGS.js.map +1 -0
- package/dist/telemetry-36GESKQQ.js +349 -0
- package/dist/telemetry-36GESKQQ.js.map +1 -0
- package/dist/trae-JSNDZFKL.js +204 -0
- package/dist/trae-JSNDZFKL.js.map +1 -0
- package/dist/trae-PA26DPBW.js +157 -0
- package/dist/trae-PA26DPBW.js.map +1 -0
- package/dist/types-CYUB1OTr.d.ts +427 -0
- package/dist/uninstall-IGCKNOSF.js +72 -0
- package/dist/uninstall-IGCKNOSF.js.map +1 -0
- package/dist/upgrade-JV2VK242.js +104 -0
- package/dist/upgrade-JV2VK242.js.map +1 -0
- package/dist/usage-6ER6EMEY.js +324 -0
- package/dist/usage-6ER6EMEY.js.map +1 -0
- package/dist/usage-event-JKBI6XCF.js +48 -0
- package/dist/usage-event-JKBI6XCF.js.map +1 -0
- package/dist/vscode-copilot-CK3NO54M.js +715 -0
- package/dist/vscode-copilot-CK3NO54M.js.map +1 -0
- package/dist/warp-JNQA7PBU.js +126 -0
- package/dist/warp-JNQA7PBU.js.map +1 -0
- package/dist/warp-QNVDXOG4.js +199 -0
- package/dist/warp-QNVDXOG4.js.map +1 -0
- package/dist/zed-NNNX5MNT.js +272 -0
- package/dist/zed-NNNX5MNT.js.map +1 -0
- package/dist/zed-VRJKWYUR.js +209 -0
- package/dist/zed-VRJKWYUR.js.map +1 -0
- package/package.json +79 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
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).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
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.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
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.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
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
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
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.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
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.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
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]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/NOTICE
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
# agent-connector
|
|
2
|
+
|
|
3
|
+
> **Write your MCP server + hooks once. Ship them to every AI-agent platform —
|
|
4
|
+
> and finally see how many tokens your tools actually cost.**
|
|
5
|
+
|
|
6
|
+
[](https://www.npmjs.com/package/@ken-jo/agent-connector)
|
|
7
|
+
[](LICENSE)
|
|
8
|
+

|
|
9
|
+

|
|
10
|
+

|
|
11
|
+

|
|
12
|
+

|
|
13
|
+

|
|
14
|
+

|
|
15
|
+
|
|
16
|
+
Every agent host — Claude Code, Codex, Cursor, OpenCode, Copilot, Gemini, Warp,
|
|
17
|
+
… — re-invents the same two integration surfaces (**MCP registration** and
|
|
18
|
+
**lifecycle hooks**) with incompatible config files, root keys, formats (JSON /
|
|
19
|
+
JSONC / TOML / YAML / exported functions), transports, scopes, and event names.
|
|
20
|
+
Supporting them today means hand-authoring and maintaining *N* dialects and *N*
|
|
21
|
+
install flows, then chasing each platform's quirks.
|
|
22
|
+
|
|
23
|
+
agent-connector is the middleware that does it for you:
|
|
24
|
+
|
|
25
|
+
1. **One API, every platform.** Declare your server + hooks once with
|
|
26
|
+
`defineConnector({...})`; the CLI detects every installed host and renders the
|
|
27
|
+
right native config in each — install, uninstall, upgrade, doctor.
|
|
28
|
+
2. **Token telemetry, by default.** No host reports per-tool usage back to an MCP
|
|
29
|
+
server. agent-connector measures your server's *own* bytes (args in, results
|
|
30
|
+
out, tool schemas) and tokenizes them locally — so you get a
|
|
31
|
+
platform-independent answer to *"which of my tools cost the most context?"*,
|
|
32
|
+
with **aggregate counts only, stored locally, zero egress by default.**
|
|
33
|
+
|
|
34
|
+
> Status: **29 platforms, all 3 hook paradigms** (exceeds the
|
|
35
|
+
> [tokscale](https://github.com/junhoyeo/tokscale) token-leaderboard coverage).
|
|
36
|
+
>
|
|
37
|
+
> | Paradigm | Platforms |
|
|
38
|
+
> |---|---|
|
|
39
|
+
> | `json-stdio` (full hook dispatch) | Claude Code · Codex CLI · Cursor · VS Code Copilot · JetBrains Copilot · GitHub Copilot CLI · Gemini CLI · Qwen CLI · Kiro · Kimi CLI · Crush · Goose · Hermes · Droid (Factory) · Antigravity · Antigravity CLI |
|
|
40
|
+
> | `mcp-only` (MCP registration only) | Warp · Kilo · Roo Code · Trae · Zed · Amp · Codebuff · Mux · Pi |
|
|
41
|
+
> | `ts-plugin` (generated bridge module) | OpenCode · Kilo CLI · OMP · OpenClaw |
|
|
42
|
+
>
|
|
43
|
+
> …plus the telemetry core. Adding a platform = **one registry entry + one
|
|
44
|
+
> adapter**. (Google Antigravity is now fully supported, including the `agy` CLI,
|
|
45
|
+
> as Gemini CLI sunsets.) See [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md).
|
|
46
|
+
|
|
47
|
+
## Verification
|
|
48
|
+
|
|
49
|
+
The full single-API contract is **install-verified across all 29 platforms**. A
|
|
50
|
+
sample connector declaring **all four surfaces** — MCP server **+** lifecycle
|
|
51
|
+
hooks **+** slash commands **+** tools (skills + subagents) — was installed into
|
|
52
|
+
an isolated environment for every adapter and inspected on disk:
|
|
53
|
+
|
|
54
|
+
- **29 / 29 platforms — zero missing, zero failed surfaces.** Each surface is
|
|
55
|
+
written where the host supports it and gracefully *skip-warned* (never silently
|
|
56
|
+
dropped) where it does not, across all three hook paradigms — JSON/TOML/YAML
|
|
57
|
+
hook entries (`json-stdio`), synthesized + registered plugin modules
|
|
58
|
+
(`ts-plugin`), and MCP-only graceful degradation.
|
|
59
|
+
- **Live hook dispatch + telemetry, proven end-to-end.** Hooks fire with the
|
|
60
|
+
correct allow / deny / context decisions through the universal entrypoint, and
|
|
61
|
+
the telemetry serve-proxy records per-MCP token usage in vivo — both the
|
|
62
|
+
🔌 MCP/plugin and 🖥️ host/user leaderboards verified against real CLI logs.
|
|
63
|
+
- **Runtime-activated, headlessly — 10 real host CLIs.** **Claude Code · Codex ·
|
|
64
|
+
OpenCode · Kilo CLI · OpenClaw · qwen-code · Hermes · Gemini CLI · GitHub
|
|
65
|
+
Copilot CLI · Antigravity CLI (agy)** each genuinely loaded the config, spawned
|
|
66
|
+
our telemetry serve-wrapper, completed the MCP handshake, and were captured *in
|
|
67
|
+
vivo* by our own telemetry store. Most via their own `mcp list`/`reconnect` handshake with
|
|
68
|
+
no API key, login, or model turn; Codex, Gemini CLI & Copilot CLI on real
|
|
69
|
+
logged-in sessions (Codex/Gemini recorded actual tool-call rows). Each row now
|
|
70
|
+
carries the correct `hostPlatform` (the install target is baked into the
|
|
71
|
+
wrapper as `--host`). Kimi also spawned the server (its probe tears the pipe
|
|
72
|
+
down before the row flushes). Login-gated CLIs not configured here (amp, goose,
|
|
73
|
+
codebuff, omp), TUI-only Crush, the GUI-only Coder Mux, and the IDE/editor
|
|
74
|
+
hosts are verified at the config-write layer and need the app itself for full
|
|
75
|
+
runtime activation.
|
|
76
|
+
- **Clean uninstall + `--purge`.** Every installed surface reverses; `--purge`
|
|
77
|
+
deregisters the connector record and tears down the home binary when no
|
|
78
|
+
connectors remain (29 / 29).
|
|
79
|
+
- **951 tests passing** · `tsc` clean · build green.
|
|
80
|
+
|
|
81
|
+
Coverage was confirmed by **installing the real, not-yet-present agent CLIs into
|
|
82
|
+
isolated homes and observing their actual config** — which caught defects a
|
|
83
|
+
static code/web audit missed. See the reports under
|
|
84
|
+
[`docs/research/`](docs/research/).
|
|
85
|
+
|
|
86
|
+
## Quick start
|
|
87
|
+
|
|
88
|
+
agent-connector is an **SDK you depend on**, not a global tool. Add it to the
|
|
89
|
+
package that holds your connector, declare the connector once, then **either**
|
|
90
|
+
ship a branded CLI your users drive directly **or** run it with `npx`. No
|
|
91
|
+
separate global install is required.
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
# 1. add agent-connector as a DEPENDENCY of your connector package
|
|
95
|
+
npm install @ken-jo/agent-connector
|
|
96
|
+
|
|
97
|
+
# 2. write agent-connector.config.mjs (defineConnector — see "Define once" below)
|
|
98
|
+
|
|
99
|
+
# 3a. ship a branded CLI so YOUR users drive it (auto-scoped — no --connector):
|
|
100
|
+
acme-db detect # which platforms are installed here?
|
|
101
|
+
acme-db install --dry-run # preview every change, everywhere
|
|
102
|
+
acme-db install # deploy across all detected hosts
|
|
103
|
+
acme-db leaderboard # acme-db's token footprint vs the boards
|
|
104
|
+
acme-db package # OR emit a marketplace-installable plugin (below)
|
|
105
|
+
|
|
106
|
+
# 3b. …or just run it from the project with npx — still no global install:
|
|
107
|
+
npx @ken-jo/agent-connector detect
|
|
108
|
+
npx @ken-jo/agent-connector install
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
> **Optional convenience.** A global `npm i -g @ken-jo/agent-connector` is **not**
|
|
112
|
+
> required for the flow above — `npx @ken-jo/agent-connector …` runs it straight from
|
|
113
|
+
> your project. Install it globally only if you want to poke at the CLI by hand
|
|
114
|
+
> outside any connector package.
|
|
115
|
+
|
|
116
|
+
### Embed it / ship a branded CLI
|
|
117
|
+
|
|
118
|
+
A connector developer adds agent-connector as a dependency and ships their
|
|
119
|
+
**own** bin. `createConnectorCli({ name, connector })` (from the
|
|
120
|
+
`agent-connector/cli` export) exposes **every** agent-connector subcommand under
|
|
121
|
+
your brand, fully delegated and **auto-scoped** to your connector — so your
|
|
122
|
+
users never install agent-connector globally or type `--connector`. See
|
|
123
|
+
[`examples/branded-cli`](examples/branded-cli) for the full, runnable package.
|
|
124
|
+
|
|
125
|
+
```jsonc
|
|
126
|
+
// package.json — agent-connector is a dependency (not -g); your package owns the bin
|
|
127
|
+
{
|
|
128
|
+
"name": "acme-db-tools",
|
|
129
|
+
"type": "module",
|
|
130
|
+
"bin": { "acme-db": "./bin.mjs" },
|
|
131
|
+
"dependencies": { "@ken-jo/agent-connector": "0.1.0" }
|
|
132
|
+
}
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
```js
|
|
136
|
+
#!/usr/bin/env node
|
|
137
|
+
// bin.mjs — every agent-connector subcommand, branded as `acme-db`
|
|
138
|
+
import { fileURLToPath } from "node:url";
|
|
139
|
+
import { createConnectorCli } from "@ken-jo/agent-connector/cli";
|
|
140
|
+
|
|
141
|
+
// run() resolves to the exit code and never calls process.exit
|
|
142
|
+
process.exitCode = await createConnectorCli({
|
|
143
|
+
name: "acme-db",
|
|
144
|
+
connector: fileURLToPath(
|
|
145
|
+
new URL("./agent-connector.config.mjs", import.meta.url),
|
|
146
|
+
),
|
|
147
|
+
}).run();
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
After a consumer installs **your** package (`npm install acme-db-tools`), the
|
|
151
|
+
`acme-db` bin is on their PATH and every command is scoped to your connector:
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
acme-db install # deploy the acme-db connector everywhere (no --connector)
|
|
155
|
+
acme-db upgrade # bring everything current (alias: sync, update)
|
|
156
|
+
acme-db doctor # health-check every platform for acme-db
|
|
157
|
+
acme-db leaderboard # the 🔌 MCP/plugin section, scoped to acme-db
|
|
158
|
+
acme-db telemetry report --by tool # acme-db's per-tool token footprint
|
|
159
|
+
acme-db --help # every agent-connector subcommand, branded
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
**Auto-scoping is pure argument injection over the SAME single home binary.** A
|
|
163
|
+
branded subcommand is the matching agent-connector command with your connector
|
|
164
|
+
pre-injected — `acme-db leaderboard` ≈ `agent-connector leaderboard --connector
|
|
165
|
+
acme-db`, `acme-db install` ≈ `agent-connector install --connector
|
|
166
|
+
./agent-connector.config.mjs`. `serve` and `hook` still route through the one
|
|
167
|
+
`~/.agent-connector` home binary every host config points back to, so branded
|
|
168
|
+
tools share that infrastructure. An explicit `--connector` / `--connector-id`
|
|
169
|
+
always overrides the injected default.
|
|
170
|
+
|
|
171
|
+
### Two ways to ship: direct install **or** a marketplace package
|
|
172
|
+
|
|
173
|
+
Same one definition, your choice of distribution:
|
|
174
|
+
|
|
175
|
+
- **Direct install** (above) — `install` writes each host's native MCP + plugin/
|
|
176
|
+
extension config in place; no per-platform marketplace submission or review.
|
|
177
|
+
- **Marketplace package** — `agent-connector package` turns the connector into a
|
|
178
|
+
marketplace/extension bundle (manifest + bundled commands, agents, skills,
|
|
179
|
+
hooks, MCP) for **9 host formats** (plus 2 official MCP standard artifacts —
|
|
180
|
+
see *Publish to the MCP ecosystem*) across the ecosystem, from one definition:
|
|
181
|
+
`claude-plugin` (Claude Code · Codex · VS Code Copilot · OpenClaw · OMP) ·
|
|
182
|
+
`codex-plugin` · `factory-plugin` (Droid) · `gemini-extension` (Gemini CLI) ·
|
|
183
|
+
`qwen-extension` · `agy-plugin` (Antigravity CLI/IDE) · `cursor-plugin` ·
|
|
184
|
+
`kimi-plugin` · `npm-plugin` (OpenCode / Kilo CLI / Pi). Hooks + MCP keep the
|
|
185
|
+
telemetry serve-wrapper, so a marketplace-installed connector still reports
|
|
186
|
+
per-tool tokens.
|
|
187
|
+
|
|
188
|
+
```bash
|
|
189
|
+
# emit all 9 host formats (mcp-server-json + mcpb are opt-in by name — they need publish{})
|
|
190
|
+
agent-connector package --format all --out ./dist-plugin
|
|
191
|
+
agent-connector package --format gemini-extension --out ./ext # or one
|
|
192
|
+
# e.g. Claude Code: /plugin marketplace add ./dist-plugin/claude-plugin
|
|
193
|
+
# /plugin install <connector-id>@agent-connector
|
|
194
|
+
# e.g. Gemini CLI: gemini extensions install ./dist-plugin/gemini-extension/<id>
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
## Define once
|
|
198
|
+
|
|
199
|
+
```ts
|
|
200
|
+
import { defineConnector } from "@ken-jo/agent-connector";
|
|
201
|
+
|
|
202
|
+
export default defineConnector({
|
|
203
|
+
id: "acme-db",
|
|
204
|
+
server: {
|
|
205
|
+
transport: "stdio",
|
|
206
|
+
command: "npx",
|
|
207
|
+
args: ["-y", "@acme/db-mcp"],
|
|
208
|
+
env: { ACME_DB_DSN: "${env:ACME_DB_DSN}" },
|
|
209
|
+
},
|
|
210
|
+
hooks: {
|
|
211
|
+
PreToolUse: {
|
|
212
|
+
matcher: "acme_write",
|
|
213
|
+
async handler(evt) {
|
|
214
|
+
return evt.toolName === "acme_write"
|
|
215
|
+
? { decision: "ask", reason: "Confirm write" }
|
|
216
|
+
: { decision: "allow" };
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
// telemetry is on by default
|
|
221
|
+
});
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
`agent-connector install` turns that into, e.g.:
|
|
225
|
+
|
|
226
|
+
| Host | What gets written |
|
|
227
|
+
|---|---|
|
|
228
|
+
| **Claude Code** | `~/.claude.json` → `mcpServers.acme-db` (+ hooks in `~/.claude/settings.json`) |
|
|
229
|
+
| **Codex CLI** | `~/.codex/config.toml` → `[mcp_servers.acme-db]` (+ `~/.codex/hooks.json`) |
|
|
230
|
+
| **Cursor** | `~/.cursor/mcp.json` → `mcpServers.acme-db` (+ `~/.cursor/hooks.json`) |
|
|
231
|
+
|
|
232
|
+
…each pointing hooks at a **single stable home binary**, so one update propagates
|
|
233
|
+
everywhere.
|
|
234
|
+
|
|
235
|
+
## How it works (operating model)
|
|
236
|
+
|
|
237
|
+
- **Home-dir, single binary.** The runtime installs once under
|
|
238
|
+
`~/.agent-connector` (override `AGENT_CONNECTOR_DATA_DIR`). Every platform
|
|
239
|
+
config we write is a thin pointer back to that one binary — update it in one
|
|
240
|
+
place. Updates are **explicit/managed** (`agent-connector upgrade`), never silent
|
|
241
|
+
auto-update, so one bad release can't break every project at once.
|
|
242
|
+
- **Per-project data, kept.** Telemetry/state is keyed by a stable project
|
|
243
|
+
identity (git remote or normalized path), partitioned per project, stored under
|
|
244
|
+
the home data-root — surviving `git clean`, shared across hosts opening the same
|
|
245
|
+
project.
|
|
246
|
+
- **Native config stays native.** We never relocate a host's own settings files;
|
|
247
|
+
only framework-owned state lives under the data-root.
|
|
248
|
+
- **Windows-first correctness.** No symlinks, no POSIX-only assumptions.
|
|
249
|
+
|
|
250
|
+
## CLI
|
|
251
|
+
|
|
252
|
+
| Command | Purpose |
|
|
253
|
+
|---|---|
|
|
254
|
+
| `detect` | List installed platforms, scopes, capabilities, hook paradigm. |
|
|
255
|
+
| `install [--scope user\|project] [--targets …] [--dry-run]` | Render + write MCP + hooks across targets. |
|
|
256
|
+
| `uninstall [--targets …]` | Full inverse — removes everything we wrote. |
|
|
257
|
+
| `upgrade [--channel stable\|latest]` | One verb (alias: `update`, `sync`) — re-render host config + heal stale pointers + refresh the home-binary pointer, printing managed-update guidance (never a silent self-update). |
|
|
258
|
+
| `doctor [--probe]` | Per-platform health checks with fixes; `--probe` runs a live MCP handshake (initialize → ping → tools/list) against the real server. |
|
|
259
|
+
| `status` | Light install-state: which connectors are present on which hosts (always exits 0). |
|
|
260
|
+
| `package [--format <fmt>\|all]` | Emit a host bundle, or an OFFICIAL standard artifact: `mcp-server-json` (registry) · `mcpb` (one-click bundle). |
|
|
261
|
+
| `telemetry report [--by tool\|session\|project] [--since 7d] [--connector <id>]` | Token footprint (scope to your connector with `--connector`). |
|
|
262
|
+
| `telemetry export [--format csv\|json] [--connector <id>]` | Raw aggregate records. |
|
|
263
|
+
| `usage report\|export\|leaderboard` | Host-native token usage parsed read-only from each agent CLI's own logs; never summed with telemetry. |
|
|
264
|
+
| `leaderboard [--since 7d] [--connector <id>] [--scope <slice>]` | Three origin-labeled boards; `--connector` filters the 🔌 MCP/plugin section to one connector. |
|
|
265
|
+
|
|
266
|
+
> `hook` and `serve` also exist — internal entrypoints the written host configs
|
|
267
|
+
> point at; you never run them by hand. Full flag-level reference: the
|
|
268
|
+
> [docs site `/docs/cli`](https://github.com/ken-jo/agent-connector) · `llms-full.txt` §3 (canonical, drift-guarded by tests).
|
|
269
|
+
|
|
270
|
+
> A **branded CLI** auto-injects `--connector` for you: `<your-tool>
|
|
271
|
+
> leaderboard` ≈ `agent-connector leaderboard --connector <id>`, and
|
|
272
|
+
> `<your-tool> telemetry report` ≈ `agent-connector telemetry report --connector
|
|
273
|
+
> <id>` — so a connector developer sees **their** connector's token usage by
|
|
274
|
+
> default.
|
|
275
|
+
|
|
276
|
+
## Publish to the MCP ecosystem
|
|
277
|
+
|
|
278
|
+
Where the MCP standard already covers your server's functionality, agent-connector
|
|
279
|
+
**emits the standard exactly** so your already-standard work is portable — you
|
|
280
|
+
write the server, we carry the distribution:
|
|
281
|
+
|
|
282
|
+
- **`package --format mcp-server-json`** → an official **MCP Registry** `server.json`
|
|
283
|
+
(schema `2025-12-11`). It describes your **real upstream server** (what a registry
|
|
284
|
+
installer runs), not our telemetry wrapper. Publish it with the official
|
|
285
|
+
`mcp-publisher` CLI.
|
|
286
|
+
- **`package --format mcpb`** → an official **MCPB** (`.mcpb`, formerly DXT) bundle
|
|
287
|
+
`manifest.json` (`manifest_version 0.3`) for one-click local install in Claude
|
|
288
|
+
Desktop and any MCPB host, with secrets routed through the host keychain
|
|
289
|
+
(`user_config`).
|
|
290
|
+
|
|
291
|
+
Both read a `publish` block on your connector (the namespace you own + your
|
|
292
|
+
published package + author):
|
|
293
|
+
|
|
294
|
+
```ts
|
|
295
|
+
defineConnector({
|
|
296
|
+
id: "acme-db",
|
|
297
|
+
version: "1.2.0",
|
|
298
|
+
server: { transport: "stdio", command: "npx", args: ["-y", "@acme/acme-db-mcp"] },
|
|
299
|
+
publish: {
|
|
300
|
+
registryNamespace: "io.github.acme", // a namespace YOU proved ownership of
|
|
301
|
+
packageName: "@acme/acme-db-mcp", // your REAL published package
|
|
302
|
+
author: { name: "Acme Inc" },
|
|
303
|
+
},
|
|
304
|
+
});
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
> **Config we write is the standard.** `install` writes each host's native MCP
|
|
308
|
+
> config in the de-facto canonical `mcpServers` shape — `{ command, args, env }`
|
|
309
|
+
> for stdio, `{ url, headers }` for remote — across every target in one call. The
|
|
310
|
+
> spec transport slug for streamable HTTP is `streamable-http` (registry
|
|
311
|
+
> `server.json`); host configs canonically use `http`. WebSocket (`ws`) is **not**
|
|
312
|
+
> an MCP spec transport and the standard artifacts reject it.
|
|
313
|
+
|
|
314
|
+
> **Forward-compatible by transport.** The `serve` proxy is **byte-transparent**:
|
|
315
|
+
> it forwards every JSON-RPC message verbatim and only tees a copy to count
|
|
316
|
+
> `tools/call` round-trips (+ the one-time `tools/list` overhead). So newer MCP
|
|
317
|
+
> features ride through untouched and uncounted — **MCP Apps** (the official
|
|
318
|
+
> `io.modelcontextprotocol/ui` extension: `ui://` resource templates, `_meta.ui`
|
|
319
|
+
> tool linkage, the bidirectional `ui/*` + `sampling` traffic) and **any
|
|
320
|
+
> reverse-DNS extension** negotiated at `initialize`. A connector whose server
|
|
321
|
+
> already speaks these deploys across every host and keeps its telemetry today,
|
|
322
|
+
> no agent-connector change required. (Authoring such a UI is the dev's own MCP
|
|
323
|
+
> server's job; we deploy + wrap it. `doctor --probe` offers the latest released
|
|
324
|
+
> protocol revision and accepts whatever a server negotiates.)
|
|
325
|
+
|
|
326
|
+
## Telemetry & privacy
|
|
327
|
+
|
|
328
|
+
- Default tokenizer: `gpt-tokenizer` (pure-JS, no native build) — `o200k_base`
|
|
329
|
+
for OpenAI/Codex-family, used as a documented approximation for Anthropic
|
|
330
|
+
(labeled `tokenizer-approx`). Falls back to a `chars/4` heuristic (labeled
|
|
331
|
+
`heuristic`) if the tokenizer can't load. Every record carries a confidence tag.
|
|
332
|
+
- **Aggregate counts only** — raw tool arguments and results are never stored or
|
|
333
|
+
transmitted. Local-first; zero network egress by default.
|
|
334
|
+
- Off switch: `AGENT_CONNECTOR_TELEMETRY=0`, or `telemetry: { enabled: false }`.
|
|
335
|
+
|
|
336
|
+
## Development
|
|
337
|
+
|
|
338
|
+
```bash
|
|
339
|
+
npm install
|
|
340
|
+
npm run typecheck
|
|
341
|
+
npm test
|
|
342
|
+
npm run build
|
|
343
|
+
npm run dev -- detect # run the CLI from source via tsx
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
## License
|
|
347
|
+
|
|
348
|
+
Apache-2.0 © 2026 KenJo
|