@kodax-ai/kodax 0.7.69 → 0.7.71

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.
Files changed (87) hide show
  1. package/CHANGELOG.md +187 -1
  2. package/LICENSE +158 -191
  3. package/README.md +100 -17
  4. package/README_CN.md +77 -11
  5. package/config-templates/integrations/a2a.example.jsonc +62 -18
  6. package/dist/chunks/{agent-DQRXT6M7.js → agent-X2EWQADL.js} +1 -1
  7. package/dist/chunks/argument-completer-BLNXDO2F.js +2 -0
  8. package/dist/chunks/chunk-23X6REO4.js +46 -0
  9. package/dist/chunks/{chunk-Y4WOTWUC.js → chunk-44QXPEEE.js} +1 -1
  10. package/dist/chunks/chunk-4DY756KL.js +70 -0
  11. package/dist/chunks/{chunk-AWMTNUDS.js → chunk-52JSZ77P.js} +1 -1
  12. package/dist/chunks/{chunk-I4TPQEJN.js → chunk-64NQBOSN.js} +1 -1
  13. package/dist/chunks/{chunk-URC6ZI6P.js → chunk-A2TFSV5M.js} +1 -1
  14. package/dist/chunks/{chunk-ZG4DMYBS.js → chunk-A574DBTV.js} +2 -2
  15. package/dist/chunks/{chunk-VAZ25MDX.js → chunk-F7KGYHJ3.js} +2 -2
  16. package/dist/chunks/{chunk-M7TCFYTO.js → chunk-GVTM4Z6O.js} +66 -22
  17. package/dist/chunks/{chunk-PA76WUBL.js → chunk-PHH4TRGF.js} +2 -2
  18. package/dist/chunks/chunk-PVUXONQB.js +366 -0
  19. package/dist/chunks/{chunk-WW2O2DEP.js → chunk-SX2WFHIS.js} +1 -1
  20. package/dist/chunks/{chunk-4WIODYOH.js → chunk-T7LYK53M.js} +2 -2
  21. package/dist/chunks/{chunk-F7C7J6IM.js → chunk-VRSVNU2Y.js} +3 -3
  22. package/dist/chunks/chunk-Y5XKAN7C.js +755 -0
  23. package/dist/chunks/{chunk-NGJURAY5.js → chunk-Z535BARK.js} +4 -4
  24. package/dist/chunks/chunk-ZJIMT5I3.js +78 -0
  25. package/dist/chunks/compaction-config-5KKKXYFT.js +2 -0
  26. package/dist/chunks/{construction-bootstrap-GH6RW6ST.js → construction-bootstrap-OXDDDW6O.js} +1 -1
  27. package/dist/chunks/{dist-DRBKYVHF.js → dist-GOUP4YVE.js} +1 -1
  28. package/dist/chunks/{dist-RWL2RBO4.js → dist-IXJRJ27U.js} +1 -1
  29. package/dist/chunks/host-VRKDAN26.js +2 -0
  30. package/dist/chunks/run-manager-Z3W6MDO7.js +2 -0
  31. package/dist/chunks/{utils-QYE5Y73D.js → utils-CFOXDCB5.js} +1 -1
  32. package/dist/index.d.ts +18 -18
  33. package/dist/index.js +6 -6
  34. package/dist/kodax_cli.js +1365 -1296
  35. package/dist/provider-capabilities.json +101 -57
  36. package/dist/runtime-worker.js +1224 -1156
  37. package/dist/sdk-a2a.d.ts +187 -22
  38. package/dist/sdk-a2a.js +8 -7
  39. package/dist/sdk-agent.d.ts +49 -20
  40. package/dist/sdk-agent.js +1 -1
  41. package/dist/sdk-coding.d.ts +33 -25
  42. package/dist/sdk-coding.js +1 -1
  43. package/dist/sdk-experimental-memory.d.ts +1 -1
  44. package/dist/sdk-experimental-memory.js +1 -1
  45. package/dist/sdk-llm.d.ts +7 -7
  46. package/dist/sdk-llm.js +1 -1
  47. package/dist/sdk-mcp.d.ts +2 -2
  48. package/dist/sdk-mcp.js +1 -1
  49. package/dist/sdk-media.d.ts +1 -1
  50. package/dist/sdk-media.js +1 -1
  51. package/dist/sdk-repl.d.ts +17 -17
  52. package/dist/sdk-repl.js +1 -1
  53. package/dist/sdk-runtime.d.ts +96 -17
  54. package/dist/sdk-runtime.js +1 -1
  55. package/dist/sdk-session.d.ts +7 -7
  56. package/dist/sdk-session.js +1 -1
  57. package/dist/sdk-skills.js +1 -1
  58. package/dist/semantic-worker.js +10 -10
  59. package/dist/types-chunks/{base.d-CYjtB68X.d.ts → base.d-Cz_rwpOi.d.ts} +2 -1
  60. package/dist/types-chunks/{bash-prefix-extractor.d-BkIA8Wto.d.ts → bash-prefix-extractor.d-YoiZl5yt.d.ts} +15 -5
  61. package/dist/types-chunks/{capability-learning.d-WtsyRv3O.d.ts → capability-learning.d-_lR0J4iR.d.ts} +1 -1
  62. package/dist/types-chunks/{capability.d-3C62G8Eq.d.ts → capability.d-K664nHOS.d.ts} +21 -6
  63. package/dist/types-chunks/{capsule.d-xJvfh4YR.d.ts → capsule.d-CK5Pfz1k.d.ts} +3 -3
  64. package/dist/types-chunks/{commands.d-DkPfcQWG.d.ts → commands.d-D6g2jq8V.d.ts} +4 -4
  65. package/dist/types-chunks/{guardrail.d-R7AiGfrI.d.ts → guardrail.d-DdeDWnVu.d.ts} +3 -3
  66. package/dist/types-chunks/{guardrail.d-6ZDbNbHO.d.ts → guardrail.d-DilYC1dh.d.ts} +1 -1
  67. package/dist/types-chunks/{manager.d-CoEuPRAo.d.ts → manager.d-B67TmPO1.d.ts} +27 -3
  68. package/dist/types-chunks/{public-api.d-7G4--RZE.d.ts → public-api.d-BvCp5VkW.d.ts} +3 -3
  69. package/dist/types-chunks/{resolver.d-CIVoGc97.d.ts → resolver.d-ssgNSlrh.d.ts} +2 -2
  70. package/dist/types-chunks/{run-manager.d-BaXtkryp.d.ts → run-manager.d-DxU3SSGR.d.ts} +1 -1
  71. package/dist/types-chunks/{sdk-session-BQccrODn.d.ts → sdk-session-wGpa7X_U.d.ts} +4 -4
  72. package/dist/types-chunks/{types.d-CJR7t6iW.d.ts → types.d-CEZZSY9s.d.ts} +2 -2
  73. package/dist/types-chunks/{types.d-BtC4yLYO.d.ts → types.d-CRCaLt_s.d.ts} +55 -7
  74. package/dist/types-chunks/{types.d-TTvpAGWf.d.ts → types.d-Cqaw71Ax.d.ts} +4 -2
  75. package/dist/types-chunks/{types.d-C9YHEAmA.d.ts → types.d-CzsLFqmf.d.ts} +5 -5
  76. package/dist/types-chunks/{utils.d-BbB5jzi1.d.ts → utils.d-Cb6vdvFM.d.ts} +5 -5
  77. package/docs/SDK_EMBEDDER_GUIDE.md +357 -55
  78. package/package.json +5 -2
  79. package/dist/chunks/argument-completer-RSK6CCGP.js +0 -2
  80. package/dist/chunks/chunk-NGHQIGVW.js +0 -46
  81. package/dist/chunks/chunk-PQ3XUSY2.js +0 -357
  82. package/dist/chunks/chunk-UJEMSPM5.js +0 -78
  83. package/dist/chunks/chunk-VYKFM3TB.js +0 -751
  84. package/dist/chunks/chunk-Z4PPLJF2.js +0 -60
  85. package/dist/chunks/compaction-config-ABLL6UH3.js +0 -2
  86. package/dist/chunks/host-7SAB4WEC.js +0 -2
  87. package/dist/chunks/run-manager-XMDKTONJ.js +0 -2
package/CHANGELOG.md CHANGED
@@ -6,7 +6,193 @@ All notable changes to this project will be documented in this file.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
- ## [0.7.69] - Unreleased
9
+ ## [0.7.71] - 2026-07-17
10
+
11
+ ### Added
12
+
13
+ - **Kimi Code K3 support.** The `kimi-code` subscription provider now exposes
14
+ `k3-256k` (Moderato) and `k3` (1,048,576 context tokens, Allegretto+) as
15
+ explicit catalog choices, alongside `kimi-for-coding-highspeed` and the
16
+ stable `kimi-for-coding` default. Both K3 choices send the upstream model id
17
+ `k3`, so users do not need to override compaction settings for their plan.
18
+ K3 sends its effort inside `thinking.effort` on both Anthropic- and
19
+ OpenAI-compatible transports, defaults omitted reasoning to `max`, and
20
+ preserves both legacy `reasoning=false` and explicit `effort=none` as disabled
21
+ thinking. Static capability, reasoning, media, cost-tracking, and opt-in
22
+ real-wire regressions cover the subscription routes and local context-tier
23
+ mapping.
24
+ - **Standards-based A2A authentication and Agent activation (FEATURE_267/268
25
+ closure).** Outbound A2A entries can use OAuth 2.0 Client Credentials with an
26
+ external Authorization Server, while inbound KodaX Agents can validate RFC
27
+ 9068 JWT access tokens against an external issuer/JWKS as an OAuth Resource
28
+ Server. The fixed environment Bearer profile remains available for
29
+ compatibility. A hot `agents.<name>.enabled` switch plus `kodax a2a
30
+ enable|disable` lets operators keep many configured third-party Agents while
31
+ controlling which ones admit new orchestration; in-flight tasks are not
32
+ cancelled.
33
+
34
+ ### Changed
35
+
36
+ - **External Agent SDK migration notes.** `AgentRegistrationService` now
37
+ requires `setEnabled`; custom implementations must add the same
38
+ revision/owner-conditional enablement operation. `executorConfig` and
39
+ executor-reference `metadata` are `AgentJsonObject` values and reject class
40
+ instances, accessors, circular references, and other non-JSON-safe data at
41
+ runtime. SDK daemon auto-start without an explicit `homeDir` now follows the
42
+ resolved `KODAX_HOME`; embedders that intentionally need the OS-home endpoint
43
+ must pass `homeDir`, while custom endpoints remain attach-only.
44
+
45
+ ### Fixed
46
+
47
+ - **A2A durable-owner upgrade and admission concurrency.** New inbound tasks
48
+ persist a non-secret principal-key scheme marker. Pre-realm tasks remain
49
+ inaccessible during normal serving, but stopped operators can use
50
+ `kodax a2a migrate-tasks` to dry-run and explicitly apply the configured
51
+ owner mapping; custom hosts can use the public
52
+ `migrateA2ALegacyTaskOwners()` SDK with exact mappings. Ambiguous or live-
53
+ store migration fails closed. Global task capacity now uses a synchronous
54
+ pending reservation, keeping slow workspace/session/run preparation outside
55
+ any global lock while preserving exact limits and per-principal ordering.
56
+ - **Bounded External Agent and daemon shutdown/startup.** Executor-plane close
57
+ now has a 30-second default upper bound (overrideable with `closeTimeoutMs`),
58
+ obsolete-executor cleanup runs outside the serialized registration mutation
59
+ lane, and revision tombstones are SHA-256 fingerprints capped at 4,096
60
+ entries. Current registrations and task snapshots continue to enforce exact
61
+ revision immutability after older, unreferenced tombstones age out. Daemon
62
+ auto-start now races health checks against the spawned child's exit, keeps
63
+ the child referenced until readiness, and terminates it on early exit,
64
+ timeout, identity mismatch, or when another daemon wins ownership. A startup
65
+ candidate that exits after losing the owner race now lets its SDK caller wait
66
+ for and attach to the competing owner instead of failing that caller.
67
+ - **Faster packaged-Electron gates.** Release jobs build once and reuse that
68
+ output for both the Windows Electron smoke and binary packaging. CI and
69
+ release jobs cache the version-pinned Electron smoke toolchain, whose local
70
+ directory is now explicitly ignored. Both paths explicitly materialize the
71
+ Electron binary after cache restore or dependency installation, preventing a
72
+ successful npm package install with a missing `electron/dist` from bypassing
73
+ the real packaged-daemon gate.
74
+ - **A2A authentication and reconciliation hardening.** Card-level and
75
+ Skill-level security requirements now fail closed unless one complete
76
+ alternative is satisfiable. Card, RPC, and token origins remain separate;
77
+ exact credentials used by active RPC/SSE requests remain retained through
78
+ response parsing and are redacted from errors and successful results;
79
+ concurrent rejected-token invalidation cannot discard a newer token and each
80
+ RPC retries at most once. Direct SDK and file configuration now share strict
81
+ issuer, endpoint, resource, and RFC 6749 scope validation. Task ownership
82
+ also requires a stable `securityRealm` and hashes the
83
+ `(realm, subject, tenant)` tuple: built-in Bearer/OAuth derive realms from the
84
+ token-env name/exact issuer, custom authentication must provide one, authority
85
+ switches and legacy pre-realm tasks fail closed, and same-realm restart
86
+ preserves new-format tasks. Authentication/effect changes participate in
87
+ executor revisions; registration persistence
88
+ precedes catalog mutation; first-class management ownership plus revision-
89
+ conditional mutations protects unrelated or concurrently replaced SDK
90
+ registrations, including same-revision owner takeovers; changed authority is
91
+ fenced before parallel discovery; live drift is repaired; and a final
92
+ post-preflight admission check closes disable/removal races without
93
+ rediscovering unchanged peers. Internal immutable route snapshots preserve
94
+ admitted task input/cancel/reconcile routing across registration update or
95
+ removal and Runtime restart without exposing secret material or expanding the
96
+ public task DTO. Admission now rechecks globally unique task IDs, task writes
97
+ publish to memory only after durable persistence, and terminal event-write
98
+ failures cannot strand waiters or route snapshots. Returned registration
99
+ summaries are detached, executor cache keys are unambiguous tuples, and one
100
+ ownership conflict or observer failure cannot abort unrelated Agent
101
+ reconciliation or leave unawaited activation work. Daemon A2A ownership is
102
+ now bound to the exact resolved config home—`<homeDir>/.kodax` when explicitly
103
+ selected, otherwise the possibly arbitrary `KODAX_HOME`—recorded in daemon
104
+ state, and checked across every local profile before mutation. Legacy
105
+ non-empty version-1 A2A files require an explicit stopped-owner migration,
106
+ while version-2 migration is a read-only idempotent no-op. Failed initial A2A
107
+ reconciliation also closes the newly created Runtime before releasing daemon
108
+ ownership.
109
+ - **A2A post-closure lifecycle and resource correctness.** Executor operations
110
+ and close now drain without disposal races; configured artifact references
111
+ and direct `a2a call` use a bounded reference-only/no-fetch policy. CLI task
112
+ RPC/SSE permits 32 MiB while Card/interface/OAuth/security metadata remains
113
+ capped at 2 MiB, and unsupported required Card extensions fail discovery.
114
+ Daemon mutation now requires independently owner-derived
115
+ `externalAgentAdmin: 1` and `a2aConfigReconciler: 1`; capability overrides
116
+ cannot forge them. Public `/a2a` config exports are read-only, with raw writers
117
+ retained inside the fenced CLI owner. Inbound serving now has a global
118
+ admission reservation, subscribe-first replay, authentication-before-body,
119
+ exact JSON/SSE media matching, an admitted-handler close barrier, and fixed
120
+ four-per-task/eight-per-server/24 MiB-per-stream SSE ceilings without
121
+ terminating the underlying task for one slow subscriber.
122
+ - **Public Kimi Open Platform parity and live coverage.** `kimi` now defaults to
123
+ `kimi-k2.7-code`, exposes the HighSpeed route and wire-legal K2.5 id, uses the
124
+ exact 262,144-token limits and current prices, and has gated real-key coverage
125
+ for credential verification, K2.7 thinking, forced-tool fallback, and K2.6
126
+ thinking disablement. K2.7 disable requests now fail locally instead of being
127
+ silently ignored, while K2.6 disable requests emit the required wire toggle.
128
+
129
+ - **Packaged Electron shared-daemon auto-start.** Runtime SDK embedders running
130
+ from packaged/asar Electron applications now launch the detached daemon child
131
+ through a bootstrap-only Node execution boundary without changing the host or
132
+ long-lived daemon environment, leaking `ELECTRON_RUN_AS_NODE` to user child
133
+ processes, or opening a second GUI instance. Trusted internal JavaScript
134
+ children retain a bounded Electron-to-Node launch path. Missing packaged CLI
135
+ sidecars fail immediately, disabled `RunAsNode` fuses receive an actionable
136
+ timeout diagnostic, and a real Windows Electron 42.5.0 + asar smoke now gates
137
+ CI and releases. Public docs also distinguish CLI-style `homeDir` from the
138
+ lower-level `.kodax` path used by `KODAX_HOME`.
139
+ - **Cross-platform release template checks.** Generated configuration templates
140
+ now compare normalized line endings, so Windows CRLF checkouts no longer report
141
+ false drift during binary builds.
142
+
143
+ ## [0.7.70] - 2026-07-15
144
+
145
+ ### Added
146
+
147
+ - **Typed shared-daemon rollback management (FEATURE_269 patch).** Daemon
148
+ facades now expose revisioned management inspection and atomic
149
+ `stopForInline()`, plus public owner-fence queries and revision-free daemon
150
+ re-enable helpers for safe embedder rollback workflows.
151
+
152
+ ### Changed
153
+
154
+ - **KAI-FCL licensing from v0.7.70.** Official KodaX source, binaries, and npm
155
+ packages now use the KodaX-AI Fair Core License 1.0: community use remains
156
+ available, while commercial or managed use requires KodaX-AI authorization.
157
+ Previously released Apache-2.0 copies retain their original grants.
158
+
159
+ ### Fixed
160
+
161
+ - **A2A interoperability and execution boundaries.** Selected Card interfaces
162
+ remain bound to their trusted discovery origin and advertised Bearer scheme;
163
+ concrete recursive reads and child runs retain the parent policy ceiling;
164
+ pending input resumes the original Runtime run; task retention, history,
165
+ cleanup, stable cursor pagination, protocol correlation/version, authenticated
166
+ SSE, appended artifact chunks, and early-stream-EOF semantics are bounded;
167
+ and direct, staged, or successfully promoted admitted Skill outputs are
168
+ returned as negotiated artifacts without exposing ordinary workspace writes.
169
+ - **MCP multilingual zero-match efficiency.** Compact CJK queries now segment
170
+ into words, while cross-language lexical zero matches can return a lossless
171
+ shared-prefix exact-id inventory only when it is no more expensive than a
172
+ normal default search page and fits the real result capacity. Oversized
173
+ recovery emits one concise catalog-language retry with no biased partial list.
174
+ Fully unavailable catalogs no longer trigger a duplicate inventory attempt;
175
+ concurrent discovery is coalesced, in-flight invalidation cannot be overwritten,
176
+ and filtered cursor revisions ignore unrelated capability families.
177
+ - **Logical daemon client accounting.** Stop preflight now counts only live,
178
+ initialized SDK clients. Daemon self-connections and read-only health probes
179
+ are excluded, and awaited client close converges the count across processes.
180
+ Health probes also tolerate the daemon token disappearing during a concurrent
181
+ shutdown or owner transition instead of leaking an `ENOENT` race to clients.
182
+ - **Preflight/stop race.** Rollback commit gates new clients and mutations,
183
+ validates the same Runtime, management revision, owner-policy revision, and
184
+ blockers, and changes sticky inline policy while the verified daemon still
185
+ owns the profile fence. Stale commits fail with structured `conflict` and do
186
+ not stop or change policy.
187
+ - **Complete rollback draining and background-work blockers.** Credential and
188
+ Host Tool bridge state can no longer change after draining starts, while
189
+ running/paused Workflows and non-terminal or unknown External Agent tasks now
190
+ block stop and participate in the management revision. Reverse-result frames
191
+ remain outside the durable journal so credentials and Host Tool results are
192
+ not persisted. In-flight stop conflicts identify the active mutation methods
193
+ and counts so lifecycle stalls can be diagnosed without reproducing them.
194
+
195
+ ## [0.7.69] - 2026-07-15
10
196
 
11
197
  > Scope note: this release delivers **FEATURE_267**, **FEATURE_268**, and
12
198
  > **FEATURE_269** as one bounded interoperability/runtime release: bidirectional
package/LICENSE CHANGED
@@ -1,191 +1,158 @@
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 the 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 the 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 any 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
- 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>