@kodax-ai/kodax 0.7.69 → 0.7.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +53 -1
- package/LICENSE +158 -191
- package/README.md +38 -5
- package/README_CN.md +31 -7
- package/config-templates/integrations/a2a.example.jsonc +1 -1
- package/dist/chunks/{agent-DQRXT6M7.js → agent-T72XYPW4.js} +1 -1
- package/dist/chunks/argument-completer-QXJC36UP.js +2 -0
- package/dist/chunks/chunk-34L74PEG.js +60 -0
- package/dist/chunks/{chunk-ZG4DMYBS.js → chunk-4P4L3WEK.js} +1 -1
- package/dist/chunks/{chunk-VYKFM3TB.js → chunk-7PV577LP.js} +67 -63
- package/dist/chunks/{chunk-PQ3XUSY2.js → chunk-AQGNRBEJ.js} +189 -180
- package/dist/chunks/{chunk-URC6ZI6P.js → chunk-F4NOOBRZ.js} +1 -1
- package/dist/chunks/{chunk-PA76WUBL.js → chunk-GOQRVDFP.js} +2 -2
- package/dist/chunks/{chunk-VAZ25MDX.js → chunk-K7RYV2SE.js} +2 -2
- package/dist/chunks/{chunk-M7TCFYTO.js → chunk-P2UKNYYS.js} +3 -3
- package/dist/chunks/{chunk-4WIODYOH.js → chunk-RY5OLVQV.js} +1 -1
- package/dist/chunks/{chunk-NGJURAY5.js → chunk-XNQ2O7NI.js} +4 -4
- package/dist/chunks/{compaction-config-ABLL6UH3.js → compaction-config-TC6C2PJ6.js} +1 -1
- package/dist/chunks/{construction-bootstrap-GH6RW6ST.js → construction-bootstrap-BPRXZK4A.js} +1 -1
- package/dist/chunks/{dist-RWL2RBO4.js → dist-UENHF5OS.js} +1 -1
- package/dist/chunks/{host-7SAB4WEC.js → host-XUVAICP7.js} +1 -1
- package/dist/chunks/{run-manager-XMDKTONJ.js → run-manager-T7ALQZNT.js} +1 -1
- package/dist/chunks/{utils-QYE5Y73D.js → utils-TMMH6PKT.js} +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +6 -6
- package/dist/kodax_cli.js +1207 -1192
- package/dist/runtime-worker.js +1104 -1090
- package/dist/sdk-a2a.d.ts +6 -6
- package/dist/sdk-a2a.js +8 -7
- package/dist/sdk-agent.d.ts +2 -2
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +19 -11
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-llm.d.ts +1 -1
- package/dist/sdk-mcp.d.ts +2 -2
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-repl.d.ts +10 -10
- package/dist/sdk-repl.js +1 -1
- package/dist/sdk-runtime.d.ts +80 -11
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-session.d.ts +4 -4
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +10 -10
- package/dist/types-chunks/{bash-prefix-extractor.d-BkIA8Wto.d.ts → bash-prefix-extractor.d-h9AwGqmO.d.ts} +12 -2
- package/dist/types-chunks/{capability.d-3C62G8Eq.d.ts → capability.d-K664nHOS.d.ts} +21 -6
- package/dist/types-chunks/{commands.d-DkPfcQWG.d.ts → commands.d-DxiVanpI.d.ts} +3 -3
- package/dist/types-chunks/{manager.d-CoEuPRAo.d.ts → manager.d-B67TmPO1.d.ts} +27 -3
- package/dist/types-chunks/{public-api.d-7G4--RZE.d.ts → public-api.d-BqFKI5fK.d.ts} +1 -1
- package/dist/types-chunks/{sdk-session-BQccrODn.d.ts → sdk-session-tcoxrMHQ.d.ts} +2 -2
- package/dist/types-chunks/{types.d-C9YHEAmA.d.ts → types.d-DZaYznxo.d.ts} +2 -2
- package/dist/types-chunks/{utils.d-BbB5jzi1.d.ts → utils.d-B4zc7oot.d.ts} +2 -2
- package/docs/SDK_EMBEDDER_GUIDE.md +112 -19
- package/package.json +2 -2
- package/dist/chunks/argument-completer-RSK6CCGP.js +0 -2
- package/dist/chunks/chunk-Z4PPLJF2.js +0 -60
package/CHANGELOG.md
CHANGED
|
@@ -6,7 +6,59 @@ All notable changes to this project will be documented in this file.
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
-
## [0.7.
|
|
9
|
+
## [0.7.70] - 2026-07-15
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **Typed shared-daemon rollback management (FEATURE_269 patch).** Daemon
|
|
14
|
+
facades now expose revisioned management inspection and atomic
|
|
15
|
+
`stopForInline()`, plus public owner-fence queries and revision-free daemon
|
|
16
|
+
re-enable helpers for safe embedder rollback workflows.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- **KAI-FCL licensing from v0.7.70.** Official KodaX source, binaries, and npm
|
|
21
|
+
packages now use the KodaX-AI Fair Core License 1.0: community use remains
|
|
22
|
+
available, while commercial or managed use requires KodaX-AI authorization.
|
|
23
|
+
Previously released Apache-2.0 copies retain their original grants.
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
|
|
27
|
+
- **A2A interoperability and execution boundaries.** Selected Card interfaces
|
|
28
|
+
remain bound to their trusted discovery origin and advertised Bearer scheme;
|
|
29
|
+
concrete recursive reads and child runs retain the parent policy ceiling;
|
|
30
|
+
pending input resumes the original Runtime run; task retention, history,
|
|
31
|
+
cleanup, stable cursor pagination, protocol correlation/version, authenticated
|
|
32
|
+
SSE, appended artifact chunks, and early-stream-EOF semantics are bounded;
|
|
33
|
+
and direct, staged, or successfully promoted admitted Skill outputs are
|
|
34
|
+
returned as negotiated artifacts without exposing ordinary workspace writes.
|
|
35
|
+
- **MCP multilingual zero-match efficiency.** Compact CJK queries now segment
|
|
36
|
+
into words, while cross-language lexical zero matches can return a lossless
|
|
37
|
+
shared-prefix exact-id inventory only when it is no more expensive than a
|
|
38
|
+
normal default search page and fits the real result capacity. Oversized
|
|
39
|
+
recovery emits one concise catalog-language retry with no biased partial list.
|
|
40
|
+
Fully unavailable catalogs no longer trigger a duplicate inventory attempt;
|
|
41
|
+
concurrent discovery is coalesced, in-flight invalidation cannot be overwritten,
|
|
42
|
+
and filtered cursor revisions ignore unrelated capability families.
|
|
43
|
+
- **Logical daemon client accounting.** Stop preflight now counts only live,
|
|
44
|
+
initialized SDK clients. Daemon self-connections and read-only health probes
|
|
45
|
+
are excluded, and awaited client close converges the count across processes.
|
|
46
|
+
Health probes also tolerate the daemon token disappearing during a concurrent
|
|
47
|
+
shutdown or owner transition instead of leaking an `ENOENT` race to clients.
|
|
48
|
+
- **Preflight/stop race.** Rollback commit gates new clients and mutations,
|
|
49
|
+
validates the same Runtime, management revision, owner-policy revision, and
|
|
50
|
+
blockers, and changes sticky inline policy while the verified daemon still
|
|
51
|
+
owns the profile fence. Stale commits fail with structured `conflict` and do
|
|
52
|
+
not stop or change policy.
|
|
53
|
+
- **Complete rollback draining and background-work blockers.** Credential and
|
|
54
|
+
Host Tool bridge state can no longer change after draining starts, while
|
|
55
|
+
running/paused Workflows and non-terminal or unknown External Agent tasks now
|
|
56
|
+
block stop and participate in the management revision. Reverse-result frames
|
|
57
|
+
remain outside the durable journal so credentials and Host Tool results are
|
|
58
|
+
not persisted. In-flight stop conflicts identify the active mutation methods
|
|
59
|
+
and counts so lifecycle stalls can be diagnosed without reproducing them.
|
|
60
|
+
|
|
61
|
+
## [0.7.69] - 2026-07-15
|
|
10
62
|
|
|
11
63
|
> Scope note: this release delivers **FEATURE_267**, **FEATURE_268**, and
|
|
12
64
|
> **FEATURE_269** as one bounded interoperability/runtime release: bidirectional
|
package/LICENSE
CHANGED
|
@@ -1,191 +1,158 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
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
|
-
Copyright 2026 icetomoyo <icetomoyo@gmail.com> <icetomoyo@163.com>
|
|
180
|
-
|
|
181
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
182
|
-
you may not use this file except in compliance with the License.
|
|
183
|
-
You may obtain a copy of the License at
|
|
184
|
-
|
|
185
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
186
|
-
|
|
187
|
-
Unless required by applicable law or agreed to in writing, software
|
|
188
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
189
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
190
|
-
See the License for the specific language governing permissions and
|
|
191
|
-
limitations under the License.
|
|
1
|
+
KodaX-AI Fair Core License (KAI-FCL) 1.0
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 icetomoyo <icetomoyo@gmail.com> <icetomoyo@163.com>
|
|
4
|
+
|
|
5
|
+
All rights reserved except as expressly granted in this License.
|
|
6
|
+
|
|
7
|
+
This License applies to KodaX releases and files that include this LICENSE file
|
|
8
|
+
or otherwise identify KAI-FCL as their governing license. Earlier KodaX
|
|
9
|
+
releases or files that were distributed under the Apache License, Version 2.0
|
|
10
|
+
remain licensed under Apache-2.0 for those released copies. Third-party
|
|
11
|
+
components remain governed by their own license terms.
|
|
12
|
+
|
|
13
|
+
Effective Version Notice
|
|
14
|
+
|
|
15
|
+
KodaX-AI intends KAI-FCL to govern official KodaX distributions for version
|
|
16
|
+
0.7.70 and later when those distributions are provided by KodaX-AI with this
|
|
17
|
+
LICENSE file, a KAI-FCL notice, or accompanying customer terms.
|
|
18
|
+
|
|
19
|
+
Historical Git tags, source archives, binaries, npm packages, or other copies
|
|
20
|
+
of KodaX that were already distributed with Apache-2.0 license text remain
|
|
21
|
+
licensed under Apache-2.0 for those specific copies. This notice does not
|
|
22
|
+
retroactively revoke rights that were already granted under Apache-2.0.
|
|
23
|
+
|
|
24
|
+
For avoidance of doubt, current and future official enterprise/customer
|
|
25
|
+
packages for KodaX 0.7.70 and later should be delivered with KAI-FCL or
|
|
26
|
+
separate KodaX-AI customer terms.
|
|
27
|
+
|
|
28
|
+
1. Definitions
|
|
29
|
+
|
|
30
|
+
"Software" means KodaX, including its source code, object code, documentation,
|
|
31
|
+
configuration, examples, official npm packages, binaries, and other materials
|
|
32
|
+
distributed by KodaX-AI under this License.
|
|
33
|
+
|
|
34
|
+
"KodaX-AI" means the copyright owner, licensor, or license steward for the
|
|
35
|
+
Software.
|
|
36
|
+
|
|
37
|
+
"You" means the individual or legal entity exercising permissions under this
|
|
38
|
+
License.
|
|
39
|
+
|
|
40
|
+
"Community Use" means use by an individual for personal learning, individual
|
|
41
|
+
non-commercial work, classroom instruction, non-production research, or
|
|
42
|
+
developing and testing changes for contribution to public open-source
|
|
43
|
+
projects.
|
|
44
|
+
|
|
45
|
+
"Commercial or Managed Use" means any use by or for a company, school, lab,
|
|
46
|
+
institution, government agency, or other organization for administration, IT
|
|
47
|
+
operations, team research and development, production work, intranet hosting,
|
|
48
|
+
managed-device deployment, paid service delivery, customer redistribution,
|
|
49
|
+
hosted or managed services, or other business purposes.
|
|
50
|
+
|
|
51
|
+
"Customer Agreement" means a written agreement with KodaX-AI, including
|
|
52
|
+
evaluation terms, an order form, an enterprise agreement, partner terms, or
|
|
53
|
+
another commercial authorization document.
|
|
54
|
+
|
|
55
|
+
"License Entitlement" means a signed offline entitlement file, commonly using
|
|
56
|
+
the `.kodax-license` extension, that identifies product, edition, license
|
|
57
|
+
kind, customer, expiry, enabled features, binding claims, and signature. A
|
|
58
|
+
License Entitlement proves technical authorization; it is not by itself the
|
|
59
|
+
complete legal contract.
|
|
60
|
+
|
|
61
|
+
2. Community Grant
|
|
62
|
+
|
|
63
|
+
Subject to this License, KodaX-AI grants You a limited, non-exclusive,
|
|
64
|
+
non-transferable, no-charge license to download, install, run, inspect, and
|
|
65
|
+
modify the Software solely for Community Use.
|
|
66
|
+
|
|
67
|
+
You may make copies of the Software as reasonably necessary for Your own
|
|
68
|
+
Community Use, backup, testing, and contribution preparation. You may submit
|
|
69
|
+
changes, patches, issues, and documentation improvements to KodaX-AI. Unless a
|
|
70
|
+
separate written contribution agreement says otherwise, You grant KodaX-AI a
|
|
71
|
+
perpetual, worldwide, irrevocable, royalty-free license to use, reproduce,
|
|
72
|
+
modify, distribute, sublicense, and otherwise exploit contributions You submit
|
|
73
|
+
for inclusion in the Software.
|
|
74
|
+
|
|
75
|
+
3. Commercial and Managed Use
|
|
76
|
+
|
|
77
|
+
Commercial or Managed Use is not permitted under the Community Grant.
|
|
78
|
+
|
|
79
|
+
Enterprise evaluation, enterprise production, intranet deployment,
|
|
80
|
+
managed-device deployment, commercial redistribution, partner distribution,
|
|
81
|
+
paid service delivery, or any other Commercial or Managed Use requires a
|
|
82
|
+
Customer Agreement with KodaX-AI and, where the Software requires it, a valid
|
|
83
|
+
License Entitlement.
|
|
84
|
+
|
|
85
|
+
All production customer License Entitlements must include an expiry date unless
|
|
86
|
+
a Customer Agreement expressly says otherwise. Longer commercial terms are
|
|
87
|
+
renewals or replacements, not perpetual local secrets.
|
|
88
|
+
|
|
89
|
+
4. Restrictions
|
|
90
|
+
|
|
91
|
+
Except as expressly allowed by this License or a Customer Agreement, You must
|
|
92
|
+
not:
|
|
93
|
+
|
|
94
|
+
- use the Software for Commercial or Managed Use;
|
|
95
|
+
- sell, rent, lease, sublicense, host, provide, or redistribute the Software to
|
|
96
|
+
third parties;
|
|
97
|
+
- remove, disable, bypass, tamper with, or misrepresent license enforcement,
|
|
98
|
+
entitlement checks, signatures, expiry checks, binding checks, or related
|
|
99
|
+
technical controls;
|
|
100
|
+
- remove or alter copyright, license, attribution, trademark, or third-party
|
|
101
|
+
notices;
|
|
102
|
+
- use KodaX-AI names, logos, product names, or trademarks except to describe
|
|
103
|
+
the origin of the Software accurately;
|
|
104
|
+
- violate applicable law or use the Software to infringe third-party rights.
|
|
105
|
+
|
|
106
|
+
5. Separate Agreements
|
|
107
|
+
|
|
108
|
+
If You have a Customer Agreement with KodaX-AI, that Customer Agreement
|
|
109
|
+
controls for the Software, edition, term, users, sites, features, and use cases
|
|
110
|
+
it covers. This License controls only where the Customer Agreement does not
|
|
111
|
+
grant additional rights or impose different obligations.
|
|
112
|
+
|
|
113
|
+
6. Ownership
|
|
114
|
+
|
|
115
|
+
KodaX-AI and its licensors retain all right, title, and interest in and to the
|
|
116
|
+
Software. No rights are granted except those expressly stated in this License
|
|
117
|
+
or a Customer Agreement.
|
|
118
|
+
|
|
119
|
+
7. Third-Party Software
|
|
120
|
+
|
|
121
|
+
The Software may include or depend on third-party software, packages, models,
|
|
122
|
+
fonts, assets, or tools. Those materials are licensed by their respective
|
|
123
|
+
owners under their own terms. This License does not change third-party license
|
|
124
|
+
obligations.
|
|
125
|
+
|
|
126
|
+
8. Termination
|
|
127
|
+
|
|
128
|
+
Your rights under this License terminate automatically if You violate this
|
|
129
|
+
License and do not cure the violation within 30 days after receiving notice
|
|
130
|
+
from KodaX-AI. Rights also terminate immediately for intentional license
|
|
131
|
+
enforcement bypass, unauthorized Commercial or Managed Use, or unauthorized
|
|
132
|
+
redistribution. After termination, You must stop using and distributing the
|
|
133
|
+
Software, and You must delete copies not otherwise authorized by a Customer
|
|
134
|
+
Agreement or by another license that independently applies to a specific
|
|
135
|
+
released copy.
|
|
136
|
+
|
|
137
|
+
9. Disclaimer of Warranty
|
|
138
|
+
|
|
139
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND "AS AVAILABLE", WITHOUT WARRANTIES OR
|
|
140
|
+
CONDITIONS OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF
|
|
141
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, NON-INFRINGEMENT,
|
|
142
|
+
SECURITY, ACCURACY, OR AVAILABILITY.
|
|
143
|
+
|
|
144
|
+
10. Limitation of Liability
|
|
145
|
+
|
|
146
|
+
TO THE MAXIMUM EXTENT PERMITTED BY LAW, KODAX-AI AND ITS CONTRIBUTORS WILL NOT
|
|
147
|
+
BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, EXEMPLARY, OR
|
|
148
|
+
PUNITIVE DAMAGES, OR FOR LOST PROFITS, LOST REVENUE, LOST DATA, BUSINESS
|
|
149
|
+
INTERRUPTION, GOODWILL LOSS, OR PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
150
|
+
ARISING OUT OF OR RELATING TO THE SOFTWARE OR THIS LICENSE, EVEN IF ADVISED OF
|
|
151
|
+
THE POSSIBILITY OF SUCH DAMAGES.
|
|
152
|
+
|
|
153
|
+
11. Contact
|
|
154
|
+
|
|
155
|
+
For enterprise evaluation, production licensing, redistribution permission, or
|
|
156
|
+
questions about this License, contact:
|
|
157
|
+
|
|
158
|
+
icetomoyo <icetomoyo@gmail.com> <icetomoyo@163.com>
|
package/README.md
CHANGED
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
|
-
<b>
|
|
10
|
+
<b>Source-available AI coding agent on every LLM you can reach.</b><br>
|
|
11
11
|
Anthropic · OpenAI · DeepSeek · Kimi · Zhipu · MiniMax · MiMo · Ark · Qwen · Gemini · Codex.<br>
|
|
12
12
|
REPL · CLI · library · Node-free single binary.
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
15
|
<p align="center">
|
|
16
16
|
<a href="https://www.npmjs.com/package/@kodax-ai/kodax"><img alt="npm version" src="https://img.shields.io/npm/v/@kodax-ai/kodax?style=flat-square&color=cb3837"></a>
|
|
17
|
-
<a href="LICENSE"><img alt="license" src="https://img.shields.io/badge/license-
|
|
17
|
+
<a href="LICENSE"><img alt="license" src="https://img.shields.io/badge/license-KAI--FCL_1.0-orange?style=flat-square"></a>
|
|
18
18
|
<a href="https://github.com/icetomoyo/KodaX/stargazers"><img alt="GitHub stars" src="https://img.shields.io/github/stars/icetomoyo/KodaX?style=flat-square&logo=github&color=f1c40f"></a>
|
|
19
19
|
<a href="https://github.com/icetomoyo/KodaX/actions"><img alt="CI" src="https://img.shields.io/github/actions/workflow/status/icetomoyo/KodaX/release.yml?style=flat-square&label=release"></a>
|
|
20
20
|
<img alt="providers" src="https://img.shields.io/badge/LLMs-15_aliases_+_custom-2ecc71?style=flat-square">
|
|
@@ -115,7 +115,7 @@ That's it. You're in the REPL — ask anything in natural language.
|
|
|
115
115
|
|
|
116
116
|
| Feature | **KodaX** | Claude Code | Aider | Codex CLI | Cursor | Cline |
|
|
117
117
|
|---|---|---|---|---|---|---|
|
|
118
|
-
|
|
|
118
|
+
| Source license | ⚠️ KAI-FCL, non-commercial | ❌ Source-available | ✅ Apache 2.0 | ✅ Apache 2.0 | ❌ Proprietary | ✅ Apache 2.0 |
|
|
119
119
|
| Node-free single binary | ✅ Bun | ❌ Node | ❌ Python | ✅ Rust | ❌ Electron | ❌ Extension |
|
|
120
120
|
| Native China providers<br><sub>(Zhipu · Kimi · MiniMax · MiMo · Ark · Qwen)</sub> | ✅ 6 native | ❌ | ⚠ via LiteLLM | ❌ OpenAI-first | ❌ no provider menu | ⚠ Kimi / Qwen / DeepSeek |
|
|
121
121
|
| Branchable session lineage | ✅ fork & rewind | ⚠ routines / sessions | ❌ | ❌ | ❌ | ⚠ checkpoints |
|
|
@@ -511,6 +511,24 @@ KodaX has two layers that consumers should understand separately:
|
|
|
511
511
|
|
|
512
512
|
**Bidirectional A2A 1.0 (FEATURE_267, v0.7.69)**: `/a2a` discovers allowed Agent Cards and installs a JSON-RPC/SSE executor through the existing F258 plane. Configured outbound Agents are also registered automatically as `external:<name>` in embedded CLI and user-daemon Runtimes, so the main Agent can orchestrate them without host code. The same module can publish the Runtime default or one validated `~/.kodax/agents/*.md` Agent behind an authenticated Runtime facade. The built-in listener is loopback-only; public deployment uses `handle()` behind host-owned TLS and authorization. A2A 0.3, gRPC, HTTP+JSON, push notifications, and automatic public exposure are not advertised. See the [client/server recipes and security boundaries](docs/SDK_EMBEDDER_GUIDE.md#22-bidirectional-a2a-10--a2a-feature_267-v0769).
|
|
513
513
|
|
|
514
|
+
**v0.7.70 interoperability hardening** keeps a discovered A2A interface on the
|
|
515
|
+
trusted Agent Card origin and sends a credential only when the Card advertises
|
|
516
|
+
Bearer authentication. `a2a serve` now resolves its provider from CLI, then
|
|
517
|
+
environment, config, and the built-in default; a Markdown Agent can pin its own
|
|
518
|
+
provider. Input continuation resumes the original Runtime run, task history and
|
|
519
|
+
retention are bounded with stable cursor pagination, and authenticated SSE is
|
|
520
|
+
correlated before falling back to polling after an early normal EOF. Only
|
|
521
|
+
direct remote artifacts, broker-staged outputs, and outputs from a successfully
|
|
522
|
+
admitted Skill script can be published; ordinary workspace writes and local
|
|
523
|
+
paths stay private.
|
|
524
|
+
|
|
525
|
+
**v0.7.70 MCP discovery hardening** uses exact capability IDs and revisioned
|
|
526
|
+
cursors while admitting results against real physical capacity. Compact CJK
|
|
527
|
+
queries are segmented, and a cross-language lexical zero match either returns a
|
|
528
|
+
lossless bounded grouped inventory or one concise retry in the catalog language.
|
|
529
|
+
Partial provider failure remains explicit rather than disappearing into an
|
|
530
|
+
apparently complete result.
|
|
531
|
+
|
|
514
532
|
The complete built-in path is available without writing TypeScript:
|
|
515
533
|
|
|
516
534
|
```bash
|
|
@@ -528,7 +546,13 @@ kodax a2a serve # loopback http://127.0.0.1:8765
|
|
|
528
546
|
MCP, A2A, and Extension declarations live in one user file per domain under
|
|
529
547
|
`~/.kodax/integrations/`. Use `kodax config template <mcp|a2a|extensions>`,
|
|
530
548
|
`kodax integrations migrate --apply`, and the `kodax mcp`, `kodax a2a`, or
|
|
531
|
-
`kodax extensions` commands to manage them.
|
|
549
|
+
`kodax extensions` commands to manage them. Migration imports only legacy
|
|
550
|
+
`config.json#mcpServers` and `config.json#extensions`; A2A has no legacy source.
|
|
551
|
+
It never overwrites an existing destination. The first MCP/Extension mutation
|
|
552
|
+
can stage legacy entries. Remove legacy keys only with
|
|
553
|
+
`--apply --cleanup-legacy`, after reviewing destination files and
|
|
554
|
+
literal-secret warnings. Running
|
|
555
|
+
CLI/daemon hosts retain the
|
|
532
556
|
last valid revision, atomically replace the complete MCP provider, reconcile
|
|
533
557
|
Extensions per entry, and hot-register outbound A2A Agents. `a2a serve` loads
|
|
534
558
|
its configured MCP/Extension capability surface before listening and pins that
|
|
@@ -1385,4 +1409,13 @@ KodaX uses an **English-first** comment style with selective Chinese brief notes
|
|
|
1385
1409
|
|
|
1386
1410
|
## License
|
|
1387
1411
|
|
|
1388
|
-
[
|
|
1412
|
+
[KodaX-AI Fair Core License (KAI-FCL) 1.0](LICENSE) - Copyright 2026 [icetomoyo](mailto:icetomoyo@gmail.com).
|
|
1413
|
+
|
|
1414
|
+
KAI-FCL is source-available / fair-core, not OSI open source. Commercial,
|
|
1415
|
+
enterprise, managed deployment, paid service, or customer redistribution use
|
|
1416
|
+
requires KodaX-AI authorization and a valid entitlement where required.
|
|
1417
|
+
|
|
1418
|
+
Official KodaX 0.7.70 and later distributions use KAI-FCL or accompanying
|
|
1419
|
+
KodaX-AI customer terms. Historical tags, archives, binaries, npm packages, or
|
|
1420
|
+
other copies already distributed with Apache-2.0 notices remain Apache-2.0 for
|
|
1421
|
+
those specific copies.
|
package/README_CN.md
CHANGED
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
|
-
<b
|
|
10
|
+
<b>源代码可用的 AI Coding Agent,跑你能拿到的任何 LLM。</b><br>
|
|
11
11
|
Anthropic · OpenAI · DeepSeek · Kimi · 智谱 · MiniMax · 小米 MiMo · 火山方舟 · Qwen · Gemini · Codex<br>
|
|
12
12
|
REPL · CLI · 库 · 免 Node 单文件二进制
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
15
|
<p align="center">
|
|
16
16
|
<a href="https://www.npmjs.com/package/@kodax-ai/kodax"><img alt="npm version" src="https://img.shields.io/npm/v/@kodax-ai/kodax?style=flat-square&color=cb3837"></a>
|
|
17
|
-
<a href="LICENSE"><img alt="license" src="https://img.shields.io/badge/license-
|
|
17
|
+
<a href="LICENSE"><img alt="license" src="https://img.shields.io/badge/license-KAI--FCL_1.0-orange?style=flat-square"></a>
|
|
18
18
|
<a href="https://github.com/icetomoyo/KodaX/stargazers"><img alt="GitHub stars" src="https://img.shields.io/github/stars/icetomoyo/KodaX?style=flat-square&logo=github&color=f1c40f"></a>
|
|
19
19
|
<a href="https://github.com/icetomoyo/KodaX/actions"><img alt="CI" src="https://img.shields.io/github/actions/workflow/status/icetomoyo/KodaX/release.yml?style=flat-square&label=release"></a>
|
|
20
20
|
<img alt="providers" src="https://img.shields.io/badge/LLMs-15_aliases_+_custom-2ecc71?style=flat-square">
|
|
@@ -130,7 +130,7 @@ fail closed,不能静默退回 inline Coder。完整接入说明见
|
|
|
130
130
|
|
|
131
131
|
| 能力 | **KodaX** | Claude Code | Aider | Codex CLI | Cursor | Cline |
|
|
132
132
|
|---|---|---|---|---|---|---|
|
|
133
|
-
|
|
|
133
|
+
| 源代码许可 | ⚠️ KAI-FCL,非商业 | ❌ source-available | ✅ Apache 2.0 | ✅ Apache 2.0 | ❌ 闭源 | ✅ Apache 2.0 |
|
|
134
134
|
| 免 Node 单文件 | ✅ Bun | ❌ 需 Node | ❌ 需 Python | ✅ Rust | ❌ Electron | ❌ 插件 |
|
|
135
135
|
| 国内 6 家原生<br><sub>(智谱·Kimi·MiniMax·MiMo·方舟·Qwen)</sub> | ✅ 6 家原生 | ❌ | ⚠ 走 LiteLLM | ❌ OpenAI 主线 | ❌ 无 provider 菜单 | ⚠ Kimi/Qwen/DeepSeek |
|
|
136
136
|
| 可分叉会话血缘 | ✅ fork & rewind | ⚠ routines/sessions | ❌ | ❌ | ❌ | ⚠ checkpoints |
|
|
@@ -592,6 +592,19 @@ KodaX 有两层结构,SDK 用户需要分开理解:
|
|
|
592
592
|
|
|
593
593
|
**双向 A2A 1.0(FEATURE_267,v0.7.69)**:`/a2a` 可发现 allowlist 内的 Agent Card,并通过既有 F258 plane 安装 JSON-RPC/SSE executor。配置中的出站 Agent 还会作为 `external:<name>` 自动注册到 embedded CLI 与用户 daemon Runtime,因此主 Agent 无需宿主代码即可编排。入站方向可以发布 Runtime 默认 Agent,或发布一个经过验证的 `~/.kodax/agents/*.md` Agent。内置 listener 仅允许 loopback;公网部署必须由宿主用 TLS、鉴权和授权包住 `handle()`。不宣称支持 A2A 0.3、gRPC、HTTP+JSON、push notification,也不会自动把本地 Agent 暴露到网络。详见 [SDK Embedder Guide §22](docs/SDK_EMBEDDER_GUIDE.md#22-bidirectional-a2a-10--a2a-feature_267-v0769)。
|
|
594
594
|
|
|
595
|
+
**v0.7.70 互操作加固**:发现得到的 A2A interface 必须与受信 Agent Card
|
|
596
|
+
同源,且只有 Card 宣告 Bearer 鉴权时才会携带凭据。`a2a serve` 按 CLI、环境变量、
|
|
597
|
+
配置、内置默认值的顺序解析 provider,Markdown Agent 也可固定自己的 provider。
|
|
598
|
+
补充输入会继续原 Runtime run;任务历史、保留策略与稳定 cursor 分页均有边界;
|
|
599
|
+
带鉴权的 SSE 会先校验关联信息,流在正常终止但未给出终态时回退 polling。
|
|
600
|
+
仅远端直接 artifact、输出 broker 暂存结果,以及成功授权执行的 Skill 脚本输出
|
|
601
|
+
可以发布;普通工作区写入与本地路径不会暴露。
|
|
602
|
+
|
|
603
|
+
**v0.7.70 MCP 发现加固**:能力使用精确 ID 和带 revision 的 cursor,结果按真实物理
|
|
604
|
+
容量准入。紧凑 CJK 查询会分词;跨语言 lexical 零匹配只会返回容量内的无损分组
|
|
605
|
+
清单,或一条使用 catalog 语言的简短重试提示。部分 provider 失败会显式保留,
|
|
606
|
+
不会伪装成完整结果。
|
|
607
|
+
|
|
595
608
|
完整的内置调用路径不需要再写 TypeScript:
|
|
596
609
|
|
|
597
610
|
```bash
|
|
@@ -609,7 +622,11 @@ kodax a2a serve # 仅监听 http://127.0.0.1:8765
|
|
|
609
622
|
MCP、A2A、Extension 分别使用 `~/.kodax/integrations/` 下的一个用户级文件。
|
|
610
623
|
可以通过 `kodax config template <mcp|a2a|extensions>` 查看模板,通过
|
|
611
624
|
`kodax integrations migrate --apply` 迁移旧配置,并用 `kodax mcp`、
|
|
612
|
-
`kodax a2a`、`kodax extensions`
|
|
625
|
+
`kodax a2a`、`kodax extensions` 管理。迁移只导入旧
|
|
626
|
+
`config.json#mcpServers` 与 `config.json#extensions`;A2A 没有旧来源,且不会
|
|
627
|
+
覆盖已有目标文件。第一次 MCP/Extension 修改可以暂存旧条目;只有在检查目标文件
|
|
628
|
+
和明文 secret 警告后,才应同时使用 `--apply --cleanup-legacy` 清理旧 key。
|
|
629
|
+
运行中的 CLI/daemon 保留最后一个
|
|
613
630
|
有效版本,完整替换 MCP provider、逐条协调 Extension,并热注册出站 A2A Agent。
|
|
614
631
|
`a2a serve` 会在监听前装载已配置的 MCP/Extension 能力并固定执行权威,同时热加载
|
|
615
632
|
公开信息、鉴权和限额。Agent、Skill、Extension 工具权威、工作区、tool policy
|
|
@@ -741,7 +758,7 @@ KodaX 现在会把 Repo Intelligence 的本地缓存分成内置引擎 profile
|
|
|
741
758
|
## 文档
|
|
742
759
|
|
|
743
760
|
- [README.md](README.md) - 英文版 README
|
|
744
|
-
- [docs/SDK_EMBEDDER_GUIDE.md](docs/SDK_EMBEDDER_GUIDE.md) - SDK 宿主集成与 v0.7.
|
|
761
|
+
- [docs/SDK_EMBEDDER_GUIDE.md](docs/SDK_EMBEDDER_GUIDE.md) - SDK 宿主集成与 v0.7.70 公共 API 契约
|
|
745
762
|
- [docs/release.md](docs/release.md) - 单文件二进制构建与发布流程
|
|
746
763
|
- [docs/PRD.md](docs/PRD.md) - 产品需求
|
|
747
764
|
- [docs/ADR.md](docs/ADR.md) - 架构决策
|
|
@@ -756,9 +773,16 @@ KodaX 现在会把 Repo Intelligence 的本地缓存分成内置引擎 profile
|
|
|
756
773
|
|
|
757
774
|
## 许可证
|
|
758
775
|
|
|
759
|
-
|
|
776
|
+
[KodaX-AI Fair Core License (KAI-FCL) 1.0](LICENSE) - Copyright 2026 icetomoyo。
|
|
777
|
+
|
|
778
|
+
KAI-FCL 是 source-available / fair-core 协议,不是 OSI open source。商业、
|
|
779
|
+
企业、托管部署、付费服务或客户再分发用途,需要 KodaX-AI 授权,并在需要时
|
|
780
|
+
具备有效 entitlement。
|
|
760
781
|
|
|
761
|
-
-
|
|
782
|
+
KodaX-AI 当前官方许可政策:KodaX 0.7.70 及之后版本,在由 KodaX-AI 带有该
|
|
783
|
+
notice 分发时,适用 KAI-FCL 或配套 KodaX-AI 客户条款。此前已带 Apache-2.0
|
|
784
|
+
notice 分发的历史 tag、source archive、二进制、npm 包或其他副本,仍只对那些
|
|
785
|
+
特定副本保留 Apache-2.0。
|
|
762
786
|
|
|
763
787
|
## 相关仓库
|
|
764
788
|
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
// "published": {
|
|
44
44
|
// "name": "KodaX Agent",
|
|
45
45
|
// "description": "Completes approved general tasks.",
|
|
46
|
-
// "version": "0.7.
|
|
46
|
+
// "version": "0.7.70",
|
|
47
47
|
// "skills": [{ "id": "general", "name": "General", "description": "Complete general tasks.", "tags": [] }],
|
|
48
48
|
// "inputModes": ["text/plain"],
|
|
49
49
|
// "outputModes": ["text/plain"]
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{Ga as i,K as c,L as d,M as e,Ma as j,N as f,ma as g,na as h}from"./chunk-
|
|
2
|
+
import{Ga as i,K as c,L as d,M as e,Ma as j,N as f,ma as g,na as h}from"./chunk-RY5OLVQV.js";import"./chunk-I4TPQEJN.js";import"./chunk-Y4WOTWUC.js";import"./chunk-AQGNRBEJ.js";import"./chunk-UJEMSPM5.js";import{sb as a,tb as b}from"./chunk-7PV577LP.js";import"./chunk-AWMTNUDS.js";import"./chunk-F7C7J6IM.js";import"./chunk-NGHQIGVW.js";import"./chunk-ONUPGMER.js";export{d as bucketProviderPayloadSize,g as buildAutoRepoIntelligenceContext,e as checkPromiseSignal,b as cleanupIncompleteToolCalls,h as describeTransientProviderRetry,f as emitResilienceDebug,c as estimateProviderPayloadBytes,j as runKodaX,i as saveSessionSnapshot,a as validateAndFixToolHistory};
|