dsh-cait 0.0.0-stage → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,352 @@
1
+ # Changelog
2
+
3
+ All notable changes to CAIT are documented here. The project follows
4
+ [Semantic Versioning](https://semver.org/) and the format is based on
5
+ [Keep a Changelog](https://keepachangelog.com/).
6
+
7
+ ## [1.0.3] - 2026-11-05
8
+
9
+ npm distribution.
10
+
11
+ ### Added
12
+
13
+ - The package can now be installed from the npm registry:
14
+ `plugin_manager install_bundle target: dsh-cait` in DSH Desktop, or
15
+ `dsh plugin --profile <name> add dsh-cait`. Pin a release with
16
+ `dsh-cait@1.0.3`; the GitHub and local-checkout routes still work.
17
+ - `engines.dsh` (`>=0.2.2-rc.1`), so the plugin manager refuses an older host
18
+ with a compatibility report instead of a broken mount.
19
+ - `publishConfig.access: public`, an `author` field, and the `dsh-plugin` /
20
+ `cordis` keywords for the registry listing.
21
+ - `prepublishOnly` rebuilds the client bundle and syntax-checks it, so a
22
+ release cannot ship a stale `client.js`.
23
+ - `.github/workflows/publish.yml` publishes a GitHub release through npm
24
+ Trusted Publishing with `--provenance`; it checks the tag against
25
+ `package.json`, runs the whole test suite, and never stores an npm token.
26
+ - `@deepseek-ai/schemastery` is a `devDependency` as well as a peer dependency,
27
+ so a fresh checkout can run the tests.
28
+
29
+ ### Changed
30
+
31
+ - `README.ja.md` ships in the package (`files`).
32
+ - The README install section leads with the npm route and keeps the GitHub and
33
+ local-checkout routes as alternatives.
34
+ - The repository no longer tracks `node_modules/`; packed tarballs are ignored.
35
+
36
+ ### Removed
37
+
38
+ - `"private": true`, which blocked `npm publish`.
39
+
40
+ ## [1.0.2] - 2026-11-04
41
+
42
+ Interface-language fix.
43
+
44
+ ### Added
45
+
46
+ - Japanese README (`README.ja.md`), linked from the language switcher of all
47
+ three READMEs and listed in the project layout.
48
+
49
+ ### Fixed
50
+
51
+ - **Follow DSH language** now follows the DSH locale instead of staying on
52
+ English. The client plugin declared only `slots` in its inject list, so
53
+ Cordis rejected the `ctx.locale` access with a throw that the registration
54
+ `try`/`catch` swallowed: the DSH-bound translator stayed `null`, every lookup
55
+ fell through to the English dictionary, and a Simplified-Chinese DSH looked
56
+ English. `locale` is now a declared dependency.
57
+ - `auto` resolves the locale service snapshot itself (`zh-CN` → `zh`,
58
+ `ja-JP` → `ja`, `en-US` → `en`) before consulting the DSH-bound translator,
59
+ so a locale tag without a registered fallback chain no longer degrades to
60
+ English. The export `resolveUiLang` covers this mapping.
61
+ - The workbench and the sidebar label subscribe to DSH locale changes, so
62
+ switching the DSH language while `auto` is selected re-renders CAIT
63
+ immediately instead of requiring a reload.
64
+
65
+ ## [1.0.1] - 2026-11-04
66
+
67
+ UI languages and license metadata.
68
+
69
+ ### Added
70
+
71
+ - Japanese (`ja`) UI dictionary. The workbench now ships three interface
72
+ languages: Simplified Chinese, English, and Japanese.
73
+ - **Settings → Interface → Interface language**, with *Follow DSH language*
74
+ (default), 简体中文, English, and 日本語. The choice is stored as
75
+ `settings.uiLang` in the CAIT store, applies to the workbench and the sidebar
76
+ label immediately, and only affects the CAIT interface — document source and
77
+ target languages are untouched.
78
+ - `NOTICE`, the attribution supplement for Apache-2.0 (section 4(d)), and an
79
+ explicit `license` field in `package.json`.
80
+
81
+ ### Changed
82
+
83
+ - `LICENSE` appendix copyright line now reads `Copyright 2026 Jovi Lecca`.
84
+ - Version bumped to `1.0.1` (`package.json`, `CAIT_VERSION`, and the exported
85
+ document metadata move together).
86
+ - Verified against DSH `0.2.2-rc.1`; the README badges and development notes use
87
+ that version.
88
+
89
+ ### Fixed
90
+
91
+ - `saveSettings` rejects an unsupported interface language with
92
+ `INVALID_UI_LANG` instead of silently storing it.
93
+
94
+ ## [1.0.0] - 2026-11-04
95
+
96
+ First public release. CAIT was developed as `0.1.0` and renumbered to `1.0.0`
97
+ for the first GitHub release.
98
+
99
+ The npm package and Cordis entry are named `dsh-cait`; the UI entry, data
100
+ directory (`$DSH_HOME/cait`), and API route (`/cait/api`) keep the CAIT name.
101
+
102
+ ### Highlights
103
+
104
+ - A complete CAT workbench inside DeepSeek Harness: sidebar entry, main panel,
105
+ segment list/editor, TM/glossary/MT side panel, and export flow.
106
+ - Seven agent tools that share the exact store used by the UI.
107
+ - Multiple TM and glossary libraries with mounted-only lookup and default write
108
+ targets.
109
+ - Format-preserving DOCX and PPTX export, plus a broad text, subtitle,
110
+ localization, and Office format matrix.
111
+ - Persistence with atomic snapshots, corrupt-file recovery, strict confirm
112
+ writes, and revision polling between agents and the open workbench.
113
+
114
+ ### Added
115
+
116
+ #### Plugin and UI
117
+
118
+ - Host + Client bundle structure (`index.js`, `client.js`, `cordis.patch.yml`,
119
+ `package.json`, locale metadata, icon).
120
+ - New two-bubble A/文 icon: a bilingual speech-bubble pair that reads as
121
+ source/target, used both for the package icon and the DSH sidebar mark.
122
+ - Left-sidebar entry `cait` and main panel `cait`; all styling uses DSH
123
+ `--dsw-alias-*` theme tokens.
124
+ - English and Chinese UI dictionaries; plugin metadata locales.
125
+ - Workbench with document tabs, segment rail, source highlighting, glossary
126
+ chips, target editor, confirm/next/previous/draft actions, progress, and
127
+ responsive density scaling from 1× to 1.8×.
128
+ - Document tabs with close, reopen, new-page import, duplicate-import reuse,
129
+ and a recent-document cleanup dialog for one or all closed documents.
130
+ - Settings modal for source/target languages, fuzzy threshold, TM result limit,
131
+ MT route/model/temperature, and library mounts.
132
+ - Lightweight **库 / Libraries** modal to create, mount, and choose default TM
133
+ and glossary libraries.
134
+ - Visual save-failure/stale banner and a two-second revision poll so
135
+ agent-triggered document switches and confirmations appear in an open
136
+ workbench without discarding a dirty draft.
137
+
138
+ #### Translation memory and glossary
139
+
140
+ - Multiple TM libraries with id, name, mount state, default write library, and
141
+ per-library deduplication.
142
+ - Graded TM matching: `exact`, independent `near_exact` (ignores digits,
143
+ punctuation, and whitespace), `high_fuzzy >= 0.85`,
144
+ `medium_fuzzy 0.75–0.85`, `low_fuzzy < 0.75` above the configurable floor.
145
+ - Lexical fuzzy scoring: character-bigram Dice (72%) + token Jaccard (28%);
146
+ Latin words and CJK characters are tokenized separately.
147
+ - Multiple glossary libraries, source-language filtering, live highlighting,
148
+ click-to-insert terms, case-sensitive terms, CSV/TSV import, and notes.
149
+ - Mounted-only lookups in the UI and tools; unmounted write targets are rejected
150
+ with `TM_NOT_MOUNTED` / `GLOSSARY_NOT_MOUNTED`.
151
+ - Clear operations default to mounted libraries, accept explicit mounted ids, and
152
+ require `all: true` plus `confirm: true` to clear every library.
153
+ - Canonical language tags via `Intl.getCanonicalLocales` (`EN` → `en`,
154
+ `ZH_cn` → `zh-CN`).
155
+
156
+ #### Agent tools
157
+
158
+ - `cat_get_segment` — current segment, TM matches, glossary hits.
159
+ - `cat_submit_translation` — confirm target, optional mounted `targetTmId`,
160
+ write to TM, advance.
161
+ - `cat_lookup_tm` — mounted-library graded lookup.
162
+ - `cat_lookup_glossary` — mounted glossary query with language/case handling.
163
+ - `cat_list_documents` — document list and progress.
164
+ - `cat_switch_document` — switch active document.
165
+ - `cat_suggest_mt` — MT through the selected DSH route, or explicit offline
166
+ glossary-substitution fallback.
167
+
168
+ #### MT
169
+
170
+ - MT provider-route selector built from `ctx.llm.listProviders()` and
171
+ `ctx.llm.listModels()`, optionally filtered by `ctx.loader.entries()`.
172
+ - Calls through `ctx.llm.stream()`; concatenates `text-delta` chunks only.
173
+ - No CAIT-managed `baseUrl` or API key; DSH resolves credentials.
174
+ - Explicit offline fallback labelled **术语替换(离线) / Glossary substitution
175
+ (offline)** (internal id `mock`) when no route/model is available.
176
+ - Host-only detailed logging of stream failures; clients receive the generic
177
+ `MT_PROVIDER_FAILED`.
178
+
179
+ #### Persistence and configuration
180
+
181
+ - Schemastery `dataDir` config; default `$DSH_HOME/cait` or `~/.dsh/cait`.
182
+ - Versioned JSON snapshot (`version: 2`) containing documents, segments, open-tab
183
+ ids, TM, glossary, libraries, mounts, and non-secret settings.
184
+ - Atomic temp-file + rename writes; strict confirm writes that roll back on disk
185
+ failure and return `PERSISTENCE_FAILED` (503); best-effort structural writes
186
+ with a visible storage-error banner.
187
+ - Corrupt/unknown-version snapshots are backed up as
188
+ `store.json.corrupt-<timestamp>` and replaced with empty state.
189
+ - v1 → v2 migration to default TM/glossary libraries.
190
+ - DOCX and PPTX source sidecars under `sources/<document-id>.*` for
191
+ format-preserving export; sidecars are removed when the document is deleted.
192
+ - Open tabs and `activeDocId` persist; draft text and per-document cursor do not.
193
+ - Duplicate import guard based on SHA-256 of languages, source, format, and
194
+ exchange metadata.
195
+
196
+ #### Formats
197
+
198
+ - TXT, Markdown, DOCX body text, TMX 1.4, CSV, SRT, WebVTT, PO, XLIFF 1.2,
199
+ basic XLIFF 2.0, basic SDLXLIFF, HTML, JSON string paths, XLSX, PPTX, and RTF
200
+ import.
201
+ - Target-only TXT/Markdown/HTML/RTF/SRT/WebVTT export; bilingual
202
+ Markdown/CSV/TMX; document exports for PO, XLIFF, XLSX, and PPTX;
203
+ current-document JSON; structure-preserving JSON; DOCX source-package export.
204
+ - CSV column mapping by header name or 1-based number.
205
+ - SRT/VTT cue timing/settings/identifier metadata; semantic inline tags retained;
206
+ invalid ranges rejected; untimed cues follow the previous cue end + 2 s.
207
+ - PO contexts, plural forms, translator comments, and obsolete `#~` entries.
208
+ - XLIFF inline placeholders converted to `{n}` tokens and expanded back on
209
+ export; confirmation rejects dropped tokens with `PLACEHOLDER_MISMATCH`.
210
+ - DOCX export patches translated text into the original package, preserving
211
+ paragraph/run properties, styles, numbering, images, headers, tables, and
212
+ layout.
213
+ - PPTX export patches translated body text into the retained source package,
214
+ preserving slides, masters, shapes, images, and layout.
215
+ - XLSX two-column Source/Target workbook import/export.
216
+ - JSON original-template preservation through `formatMeta.jsonTemplate`.
217
+
218
+ #### API and security
219
+
220
+ - Same-origin JSON bridge at `GET /cait/api/health` and
221
+ `POST /cait/api/rpc`.
222
+ - `ctx.connection.requestRejection` browser/Origin check.
223
+ - 32 MB body limit (`413 BODY_TOO_LARGE`), JSON content-type check, and
224
+ allow-listed handlers.
225
+ - `clearTM` / `clearGlossary` require `confirm: true` (`409
226
+ CONFIRMATION_REQUIRED` otherwise).
227
+ - No API key in the browser, snapshot, RPC response, or logs.
228
+
229
+ ### Changed
230
+
231
+ - Renamed the UI fallback from “mock” to **术语替换(离线) / Glossary
232
+ substitution (offline)** while keeping internal ids compatible.
233
+ - Replaced CAIT-managed OpenAI-compatible HTTP calls with DSH provider routes.
234
+ - Split the 1,718-line `lib/store.js` into a `CatStore` facade plus
235
+ `libraries.js`, `tm.js`, `glossary.js`, `persistence.js`,
236
+ `import-export.js`, `store-utils.js`, and `errors.js`.
237
+ - Split the Web UI into `client/helpers.js`, `rpc.js`, `styles.js`,
238
+ `components.js`, `locales.js`, and `entry.js`; `client.js` is now generated by
239
+ `scripts/build-client.mjs`.
240
+ - JSON export was renamed from a purported “project backup” to
241
+ `*.document.json` (current document only); structured JSON export is a
242
+ separate `json-tree` format.
243
+ - Subtitle export now renumbers cues in file order and maintains a monotonic
244
+ cursor for untimed cues instead of overlapping `index * 2s`.
245
+ - Removed the never-incremented `usageCount` TM metric.
246
+ - `cat_submit_translation` now returns `tm.count` as the mounted count and
247
+ `tm.total` as the all-library count.
248
+ - Open documents persist `openDocIds` and `activeDocId`; settings persist, but
249
+ drafts, cursor, and library-modal UI state do not.
250
+ - API key and endpoint fields were removed from settings; `publicSettings()`
251
+ exposes only route/model/temperature.
252
+ - README rewritten for GitHub; this changelog added.
253
+
254
+ ### Fixed
255
+
256
+ - Mount checkbox was disabled for every unmounted library when only one was
257
+ mounted; unmounted libraries are now selectable and only the last mounted one
258
+ is protected.
259
+ - `loadDemo()` TM entries were not persisted; demo state now survives reload.
260
+ - Save errors were swallowed and confirmations could report success without a
261
+ disk write; strict confirm + rollback + banner now surface the failure.
262
+ - Agent-driven document switches/confirmations were invisible in an open
263
+ workbench; revision polling and stale/draft handling fixed this.
264
+ - DOCX table paragraphs were flattened into the body text despite the docs; table
265
+ blocks are now excluded during import.
266
+ - TMX inline `bpt/ept/ph` markup was silently dropped; imports now return a
267
+ `TMX_INLINE_MARKUP_LOST` warning with a count.
268
+ - Glossary language matching was case-sensitive in hits but case-insensitive in
269
+ the tool; both paths now canonicalize.
270
+ - XLIFF placeholders, PO plurals/comments/obsolete blocks, and subtitle semantic
271
+ tags were dropped in earlier adapters; all are preserved now.
272
+ - Subtitle zero/negative-duration cues were silently rewritten; they now fail
273
+ with an explicit parse error.
274
+ - Duplicate imports always created a new document; identical content now reuses
275
+ the existing document.
276
+ - Closed documents could not be cleaned up; the recent-documents dialog can now
277
+ delete one or all closed documents.
278
+ - `cat_lookup_glossary` parameter text still claimed case-insensitive matching
279
+ after case-sensitive support was added; corrected.
280
+ - PPTX export no longer silently emits an unformatted deck when the source
281
+ package is missing; it returns `PPTX_SOURCE_REQUIRED`.
282
+ - JSON `formatMeta.jsonTemplate`, XLSX metadata, and PPTX source sidecars were
283
+ not preserved through reload in the first integration pass; fixed and tested.
284
+ - Save-label text was invisible in the settings modal because the generic button
285
+ reset overrode `.cait-btn-primary`; fixed and covered by the mount test.
286
+
287
+ ### Security
288
+
289
+ - Removed the CAIT-managed `baseUrl` and API key path, eliminating the SSRF /
290
+ keyless-regex / remote-error-body findings from the audit.
291
+ - MT failures expose only `MT_PROVIDER_FAILED`; provider/model/code/status stay in
292
+ the Host log.
293
+ - All RPC calls retain the DSH Origin/browser-trust check; clear methods require
294
+ explicit confirmation.
295
+ - Snapshot excludes API keys by design; MT credentials remain inside DSH.
296
+
297
+ ### Tests
298
+
299
+ - 13 suites: `test-core`, `test-imports`, `test-formats`,
300
+ `test-second-tier`, `test-docx-export`, `test-api`, `test-plugin`,
301
+ `test-persistence`, `test-documents`, `test-libraries`, `test-mounts`,
302
+ `test-ui-scale`, and `test-mt`.
303
+ - Coverage includes TM grading and boundaries, multi-library mounts,
304
+ mounted-only lookup, unmounted-target rejection, clear scope/confirmation,
305
+ corruption fallback, v1 migration, strict persistence rollback, demo reload,
306
+ document tabs/dedupe/delete, DOCX/XLSX/PPTX source preservation, CSV mapping,
307
+ SRT/VTT timelines, PO plurals/comments/obsolete, XLIFF 1.2/2.0 placeholders,
308
+ second-tier round-trips, API 413/403/404/409/415, and UI helper logic.
309
+ - Fixtures: `sample.docx`, `sample-table.docx`, `sample-format.docx` with
310
+ `make-*.py` regeneration scripts.
311
+
312
+ ### Documentation
313
+
314
+ - Replaced the long development README with a GitHub-oriented README: badges,
315
+ quick start, feature overview, format matrix, install paths, configuration,
316
+ tools, architecture, development, security, and limits.
317
+ - Added this changelog and set `package.json` version to `1.0.0`.
318
+ - Added a complete Simplified Chinese README (`README.zh-CN.md`) and a language
319
+ switcher; the English README now contains English-only prose and UI labels.
320
+
321
+ ### Known limitations
322
+
323
+ - No PDF, EPUB, or image/OCR import yet; no PDF layout-preserving export.
324
+ - DOCX: tables, headers/footers, footnotes, fields, alt text, and tracked
325
+ deletions are not imported; mixed-run translation inherits the first run style.
326
+ - PPTX: body text only; notes, charts, SmartArt, and fields are not imported.
327
+ - XLSX: two-column table only; styles, formulas, merged cells, images, and extra
328
+ sheets are not preserved.
329
+ - HTML/RTF export does not round-trip original styling; JSON only translates
330
+ string values.
331
+ - TM matching is lexical, not semantic.
332
+ - Library rename/delete and per-tab mount state are not part of v1.0.0.
333
+ - Persistence is one snapshot with last-write-wins semantics, not a multi-user
334
+ journal.
335
+ - No browser pixel/click test is included; the generated client is validated by
336
+ `node --check`, helper tests, and plugin slot activation.
337
+
338
+ ## Development history
339
+
340
+ | Date | Milestone |
341
+ | --- | --- |
342
+ | 2026-11-03 | Plugin skeleton, Host/Client split, CAT store, segmentation, TM, glossary, three tools, workbench UI, TXT/MD/DOCX/TMX import/export, mock MT. |
343
+ | 2026-11-03 | Persistence layer (`dataDir`, v1 snapshot, atomic writes, corrupt fallback), `tmId`/`glossaryId` reservations, reload/corruption tests. |
344
+ | 2026-11-03 | Graded `matchType` (`exact`/`near_exact`/three fuzzy bands) with locale labels and boundary tests. |
345
+ | 2026-11-03 | Four additional agent tools (`cat_lookup_glossary`, `cat_list_documents`, `cat_switch_document`, `cat_suggest_mt`). |
346
+ | 2026-11-03 | Multi-library TM/glossary mounts, `targetTmId`, v1→v2 migration, library modal, mounted-only semantics. |
347
+ | 2026-11-03 | Read-only audit and hardening: mount checkbox, MT route reuse, clear confirmation, mounted write boundaries, strict persistence, revision polling, language/metadata fixes, store/client split. |
348
+ | 2026-11-04 | Document tabs, close/reopen, duplicate fingerprint, recent-document cleanup. |
349
+ | 2026-11-04 | Source-format-preserving DOCX export with sidecar storage and fixtures. |
350
+ | 2026-11-04 | First-tier exchange formats: CSV mapping, SRT, WebVTT, PO, XLIFF 1.2, metadata persistence, timeline fixes. |
351
+ | 2026-11-04 | Second-tier formats: HTML, JSON, XLSX, PPTX, RTF; binary upload/export; source-preserving PPTX. |
352
+ | 2026-11-04 | Responsive UI density 1×–1.8×; button contrast fix; v1.0.0 release. |
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Jovi Lecca
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,14 @@
1
+ CAIT (dsh-cait)
2
+ Copyright 2026 Jovi Lecca
3
+
4
+ This product includes software developed as part of the CAIT project
5
+ (https://github.com/JoviLecca/dsh-CAIT).
6
+
7
+ This NOTICE file is a supplement to, and does not modify, the terms of the
8
+ Apache License, Version 2.0, under which the work is distributed (see LICENSE).
9
+ It carries the attribution notice recommended by section 4(d) of that license:
10
+ any redistribution of the work or a derivative work must retain this notice.
11
+
12
+ Third-party components are not bundled with this work. DSH itself, the DSH
13
+ runtime, and any installed DSH plugins remain under their own licenses; CAIT
14
+ loads them from the host environment and does not redistribute them.