@shipi18n/cli 1.1.5 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,42 @@
1
+ # @shipi18n/cli
2
+
3
+ ## 2.3.0
4
+
5
+ - New: `shipi18n lock [path]` — record hand-edited translations in a readable, commit-friendly
6
+ `.shipi18n/locks.json`. `--keys` globs, `--lang`, `--relock`.
7
+ - New: `check` reports `manual-translation-clobbered` and `manual-translation-stale` (warnings only —
8
+ locks protect human work and must never fail a pipeline). `--no-locks` disables.
9
+ - Fix: `--no-locks` did nothing. Commander pairs it with `--locks <file>`, so the negation arrives as
10
+ `locks: false`; the code only checked `noLocks`.
11
+
12
+ ## 2.2.0
13
+
14
+ - New: `shipi18n check --semantic` — BYO-key LLM-judge pass on top of the structural check.
15
+ - Advisory by default: semantic findings are warnings and never fail CI unless you opt in with
16
+ `--semantic-fail`.
17
+ - Structural-first: keys that already have structural errors are not sent to the judge.
18
+ - Incremental: verdicts are cached (`--semantic-cache`, default `.shipi18n/semantic-cache.json`);
19
+ unchanged strings cost zero model calls on re-runs.
20
+ - `--glossary <file>` enforces do-not-translate and locked terms deterministically (no LLM) and
21
+ feeds the glossary to the judge as context.
22
+ - New flags: `-p/--provider`, `--api-key`, `--semantic-model`, `--semantic-passes`.
23
+ - Semantic findings flow through all reporters; SARIF remains schema-valid.
24
+
25
+ ## 2.1.0
26
+
27
+ - New command: `shipi18n check [path]` — validate translated locale files against the source
28
+ language in CI. No LLM, no API key, no network.
29
+ - Auto-detects flat (`locales/en.json`) and nested (`locales/en/<ns>.json`) JSON trees, Flutter
30
+ ARB directories and Apple `.xcstrings` catalogs.
31
+ - Reporters: `human`, `json`, `sarif` (GitHub code-scanning / PR annotations) and `junit`.
32
+ - `--fail-on error|warning|none`, `--min-coverage <pct>`, `--ignore-keys <globs>`,
33
+ `--output <file>`. Exit codes: 0 pass, 1 findings, 2 usage error.
34
+ - Errors can fail CI; warnings never do by default.
35
+
36
+ ## 2.0.0
37
+
38
+ **Breaking — bring-your-own-LLM.** Rebuilt on `@shipi18n/core`; no Shipi18n account or hosted API.
39
+
40
+ - `shipi18n translate <input> -t es,fr -p anthropic|openai [--incremental] [--api-key] [--model]`.
41
+ - LLM key read from `--api-key` or `ANTHROPIC_API_KEY` / `OPENAI_API_KEY`.
42
+ - Removed the hosted-API `keys` and `config` commands.
package/NOTICE CHANGED
@@ -1,10 +1,16 @@
1
1
  @shipi18n/cli
2
2
  Copyright 2025 Shipi18n
3
3
 
4
- This product includes software developed at Shipi18n (https://shipi18n.com).
4
+ This product includes software developed at Shipi18n (https://github.com/Shipi18n).
5
5
 
6
6
  Licensed under the Apache License, Version 2.0 (the "License");
7
7
  you may not use this file except in compliance with the License.
8
8
  You may obtain a copy of the License at
9
9
 
10
10
  http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.