@localness/cli 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Hwacc
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -5,9 +5,12 @@ Compares and syncs a repository's locale JSON files with a Localness project. Fo
5
5
  ## Install
6
6
 
7
7
  ```sh
8
- pnpm add -D @localness/cli
8
+ pnpm add -g @localness/cli # or: npm install -g @localness/cli
9
+ localness --help
9
10
  ```
10
11
 
12
+ A global install puts `localness` on your PATH, which the examples below, the VS Code extension's default `localness.cliCommand` and the Agent Skill expect. To pin a version per repository instead, add it as a dev dependency (`pnpm add -D @localness/cli`) and run it through `pnpm exec localness` or `npx localness`; to try it without installing, `npx @localness/cli diff`.
13
+
11
14
  Node 18.3 or later. The token is `LOCALNESS_TOKEN`, read from `.env.local` next to `localness.config.json` first and from the environment otherwise. A read token is enough for `init`, `diff`, `pull`, `push` and `sync`; `apply` and `suggest-name` need a Read & write token. The CLI never uses the VS Code extension's sign-in, and the extension never reads this token: give the CLI (and agents running it) its own token, Read only unless it has to write.
12
15
 
13
16
  ```sh
package/dist/cli.mjs CHANGED
@@ -13,7 +13,7 @@ import { claimReview, createReviewSession, hasEditor, isAlive, parseReviewInput,
13
13
  import { createServer } from "node:http";
14
14
  import { fileURLToPath } from "node:url";
15
15
  // package.json
16
- var version = "0.1.0";
16
+ var version = "0.1.1";
17
17
  // src/env.ts
18
18
  const TOKEN_ENV = "LOCALNESS_TOKEN";
19
19
  const ENV_FILE = ".env.local";
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@localness/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Sync a repository's locale JSON files with a Localness project.",
5
+ "license": "MIT",
5
6
  "type": "module",
6
7
  "bin": {
7
8
  "localness": "./dist/cli.mjs"
@@ -23,7 +24,7 @@
23
24
  },
24
25
  "dependencies": {
25
26
  "@localness/contract": "^0.5.1",
26
- "@localness/sdk": "0.1.0"
27
+ "@localness/sdk": "0.1.1"
27
28
  },
28
29
  "scripts": {
29
30
  "build": "tsdown",