Sign In

@sonenta/cli

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sonenta/cli - npm Package Compare versions

Comparing version
0.50.0
to
0.51.0
+5
-3
package.json
{
"name": "@sonenta/cli",
"version": "0.50.0",
"version": "0.51.0",
"description": "Command-line interface for Sonenta translation management.",

@@ -24,2 +24,3 @@ "license": "MIT",

"dist/",
"!dist/**/*.map",
"README.md",

@@ -32,3 +33,3 @@ "LICENSE"

"scripts": {
"build": "npm run generate && tsup",
"build": "npm run generate && tsup && node scripts/strip-sourcemap-comment.mjs",
"test": "vitest run",

@@ -41,3 +42,4 @@ "typecheck": "tsc --noEmit",

"pretest": "npm run generate",
"smoke": "node scripts/smoke-bin.mjs"
"smoke": "node scripts/smoke-bin.mjs",
"capture:catalogues": "node scripts/capture-catalogues.mjs"
},

@@ -44,0 +46,0 @@ "dependencies": {

@@ -153,43 +153,9 @@ # @sonenta/cli

- **`sonenta-a11y`**: accessibility auditor. Drives the Sonenta a11y MCP tools
(`a11y_report`, `list_a11y_gaps`, `set_a11y_variant`, plus the
`generate_a11y_variant` / `translate_a11y_variants` fallback) to find WCAG gaps:
missing aria-labels, images without alt text, hard-to-read copy, missing or
untranslated a11y variants, and fix them. Also scores plain-language difficulty
locally (`list_cognitive_candidates` → `set_cognitive_score`, 0 credits) and
suggests clearer rewrites.
- **`sonenta-i18n`**: i18n automation. Audits coverage (`coverage_report`,
`list_missing_keys`), creates missing keys (`create_keys_bulk`), translates the
untranslated itself honoring the glossary + project context
(`list_untranslated_keys` → `propose_translations_bulk`), and publishes
(`publish_cdn`).
- **`sonenta-source-health`**: duplicate-source repairer. Finds keys that share
the same source string and fixes them, **strictly step by step and only on your
acceptance**. When the Sonenta dashboard has prepared a merge plan (surfaced via
`list_source_duplicates` → `merge_plan`), it applies it verbatim: repoints
`t('redundant')` → `t('canonical')` in your code and trashes the redundant keys
(`delete_keys_bulk`, **value-safe & restorable**, never edits a source value),
then per `survivor_outcome` marks the residue `allowed` (`set_duplicate_status`)
or differentiates the survivors (`update_key`). With no plan it falls back to
its own consolidate / disambiguate / allow judgment.
- **`sonenta-knowledge`**: knowledge manager. Builds and maintains the project's
**glossary** (`glossary_list` / `glossary_create` / `glossary_update`;
translation rules, do-not-translate, forbidden) and **context document**
(`project_context_get` / `project_context_set`; domain, audience, tone, product
name) from the real source strings (`list_keys`) + repo docs. Three modes:
**INIT** (bootstrap from scratch), **AUDIT** (report current state + gaps,
read-only), **MAINTAIN** (detect new terms, inconsistent usage, and context
drift, then propose updates). Non-destructive: proposes and confirms before
overwriting (the context `set` replaces the whole doc, so it always merges
first).
- **`sonenta-surface`**: surface configuration advisor. Audits which
translation **surfaces** a project has (`list_surfaces`: device
desktop/mobile/tablet + custom; a11y aria_label/alt_text/screen_reader/
plain_language), recommends which to **enable** from the project's key types
(`list_keys`) and accessibility gaps (`a11y_report`), and applies the config
via `create_surface` / `update_surface` (enable/disable/rename) /
`delete_surface`. Non-destructive (confirm before create/update, never delete
without confirmation; deactivation is soft). It configures surfaces **only** for filling the a11y *values* (alt/aria/plain-language) it hands off to
`sonenta-a11y`, keeping the two complementary.
The set is served by the API, not listed here: descriptions live on the server so
there is one copy of them, and this file cannot drift from it. The agents' own
instructions are not distributed in this package and are fetched at install time
for accounts whose plan includes them.
To see what exists, with live descriptions in your language:
```bash

@@ -196,0 +162,0 @@ # see what's available (and what's already installed)

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display