@kopynator/cli 1.6.0 ā 1.6.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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"ts":"2026-07-08T18:08:50.183Z","session":"ea6cfebf-3920-4f0f-b274-376907231052","source":"claude-code","branch":"master","model":"claude-opus-4-8","category":"chat","tokens_in":564,"tokens_out":6806,"cache_read_delta":1318530,"cache_creation_delta":159049,"lines_added":0,"lines_removed":0,"cost_input":0.001692,"cost_output":0.10209,"cost_cache_read":0.395559,"cost_cache_write":0.596434}
|
package/dist/index.js
CHANGED
|
@@ -678,7 +678,7 @@ async function syncCommand() {
|
|
|
678
678
|
return;
|
|
679
679
|
}
|
|
680
680
|
const syncConfig = await getSyncConfig();
|
|
681
|
-
const baseUrl = config.baseUrl || "https://api.kopynator.com/
|
|
681
|
+
const baseUrl = config.baseUrl || "https://api.kopynator.com/tokens";
|
|
682
682
|
const token = config.apiKey;
|
|
683
683
|
const spinner = (0, import_ora.default)("\u{1F4E1} Connecting to Kopynator Cloud...").start();
|
|
684
684
|
try {
|
|
@@ -686,7 +686,7 @@ async function syncCommand() {
|
|
|
686
686
|
const languagesUrl = `${baseUrl}/languages?token=${token}`;
|
|
687
687
|
const languagesResponse = await fetch(languagesUrl, {
|
|
688
688
|
headers: {
|
|
689
|
-
"x-kopynator-version": "1.
|
|
689
|
+
"x-kopynator-version": "1.6.1"
|
|
690
690
|
}
|
|
691
691
|
});
|
|
692
692
|
if (!languagesResponse.ok) {
|
|
@@ -706,7 +706,7 @@ async function syncCommand() {
|
|
|
706
706
|
try {
|
|
707
707
|
const translationResponse = await fetch(fetchUrl, {
|
|
708
708
|
headers: {
|
|
709
|
-
"x-kopynator-version": "1.
|
|
709
|
+
"x-kopynator-version": "1.6.1"
|
|
710
710
|
}
|
|
711
711
|
});
|
|
712
712
|
if (!translationResponse.ok) {
|
|
@@ -859,7 +859,7 @@ async function uploadCommand(options) {
|
|
|
859
859
|
headers: {
|
|
860
860
|
"Content-Type": "application/json",
|
|
861
861
|
"x-api-token": token,
|
|
862
|
-
"x-kopynator-version": "1.
|
|
862
|
+
"x-kopynator-version": "1.6.1"
|
|
863
863
|
},
|
|
864
864
|
body: JSON.stringify({ lang, data: batches[i] })
|
|
865
865
|
});
|
|
@@ -953,7 +953,7 @@ async function limitsCommand() {
|
|
|
953
953
|
const base = (resolved.baseUrl || process.env.KOPYNATOR_BASE_URL || "https://api.kopynator.com").replace(/\/+$/, "").replace(/\/api$/, "");
|
|
954
954
|
const url = `${base}/tokens/limits?token=${encodeURIComponent(resolved.apiKey)}`;
|
|
955
955
|
try {
|
|
956
|
-
const res = await fetch(url, { headers: { "x-kopynator-version": "1.
|
|
956
|
+
const res = await fetch(url, { headers: { "x-kopynator-version": "1.6.1" } });
|
|
957
957
|
if (!res.ok) {
|
|
958
958
|
const body = await res.text().catch(() => "");
|
|
959
959
|
console.log(import_chalk5.default.red(`
|
|
@@ -991,7 +991,7 @@ async function limitsCommand() {
|
|
|
991
991
|
|
|
992
992
|
// src/index.ts
|
|
993
993
|
var program = new import_commander.Command();
|
|
994
|
-
program.name("kopynator").description("Kopynator CLI - Manage your i18n workflow").version("1.
|
|
994
|
+
program.name("kopynator").description("Kopynator CLI - Manage your i18n workflow").version("1.6.1", "-v, --version").helpOption("-h, --help", "Display help for command").addHelpText("beforeAll", import_chalk6.default.blue("\n\u{1F44B} Welcome to Kopynator CLI!\n"));
|
|
995
995
|
program.command("init").description("Initialize Kopynator in your project").action(initCommand);
|
|
996
996
|
program.command("check").description("Validate translation files: JSON syntax, broken references and duplicate global keys").option("--base-ref <ref>", "Git ref to diff against when detecting new duplicate keys", "master").option("--update-baseline", "Accept all currently-missing keys as backlog (writes kopynator.i18n-baseline.json)").option("--all", "List every missing key, including ones already accepted in the baseline").action((opts) => checkCommand({ baseRef: opts.baseRef, updateBaseline: opts.updateBaseline, all: opts.all }));
|
|
997
997
|
program.command("sync").description("Sync your translations with the Kopynator Cloud").action(syncCommand);
|
package/package.json
CHANGED
package/src/commands/limits.ts
CHANGED
|
@@ -72,7 +72,7 @@ export async function limitsCommand(): Promise<void> {
|
|
|
72
72
|
const url = `${base}/tokens/limits?token=${encodeURIComponent(resolved.apiKey)}`;
|
|
73
73
|
|
|
74
74
|
try {
|
|
75
|
-
const res = await fetch(url, { headers: { 'x-kopynator-version': '1.
|
|
75
|
+
const res = await fetch(url, { headers: { 'x-kopynator-version': '1.6.1' } });
|
|
76
76
|
if (!res.ok) {
|
|
77
77
|
const body = await res.text().catch(() => '');
|
|
78
78
|
console.log(chalk.red(`\nā Could not fetch limits (HTTP ${res.status}). ${body}\n`));
|
package/src/commands/sync.ts
CHANGED
|
@@ -165,7 +165,7 @@ export async function syncCommand() {
|
|
|
165
165
|
// Get sync configuration
|
|
166
166
|
const syncConfig = await getSyncConfig();
|
|
167
167
|
|
|
168
|
-
const baseUrl = config.baseUrl || 'https://api.kopynator.com/
|
|
168
|
+
const baseUrl = config.baseUrl || 'https://api.kopynator.com/tokens';
|
|
169
169
|
const token = config.apiKey;
|
|
170
170
|
|
|
171
171
|
const spinner = ora('š” Connecting to Kopynator Cloud...').start();
|
|
@@ -176,7 +176,7 @@ export async function syncCommand() {
|
|
|
176
176
|
const languagesUrl = `${baseUrl}/languages?token=${token}`;
|
|
177
177
|
const languagesResponse = await fetch(languagesUrl, {
|
|
178
178
|
headers: {
|
|
179
|
-
'x-kopynator-version': '1.
|
|
179
|
+
'x-kopynator-version': '1.6.1'
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
182
|
if (!languagesResponse.ok) {
|
|
@@ -202,7 +202,7 @@ export async function syncCommand() {
|
|
|
202
202
|
try {
|
|
203
203
|
const translationResponse = await fetch(fetchUrl, {
|
|
204
204
|
headers: {
|
|
205
|
-
'x-kopynator-version': '1.
|
|
205
|
+
'x-kopynator-version': '1.6.1'
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
208
|
|
package/src/commands/upload.ts
CHANGED
|
@@ -164,7 +164,7 @@ export async function uploadCommand(options: { file?: string; lang?: string }) {
|
|
|
164
164
|
headers: {
|
|
165
165
|
'Content-Type': 'application/json',
|
|
166
166
|
'x-api-token': token,
|
|
167
|
-
'x-kopynator-version': '1.
|
|
167
|
+
'x-kopynator-version': '1.6.1',
|
|
168
168
|
},
|
|
169
169
|
body: JSON.stringify({ lang, data: batches[i] }),
|
|
170
170
|
});
|
package/src/index.ts
CHANGED
|
@@ -8,7 +8,7 @@ const program = new Command();
|
|
|
8
8
|
program
|
|
9
9
|
.name('kopynator')
|
|
10
10
|
.description('Kopynator CLI - Manage your i18n workflow')
|
|
11
|
-
.version('1.
|
|
11
|
+
.version('1.6.1', '-v, --version')
|
|
12
12
|
.helpOption('-h, --help', 'Display help for command')
|
|
13
13
|
.addHelpText('beforeAll', chalk.blue('\nš Welcome to Kopynator CLI!\n'));
|
|
14
14
|
|