transduck 0.0.1 → 0.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/dist/cli.js +6 -4
- package/package.json +1 -2
- package/src/cli.ts +6 -4
package/dist/cli.js
CHANGED
|
@@ -376,8 +376,10 @@ program.command('stats')
|
|
|
376
376
|
console.log(output);
|
|
377
377
|
});
|
|
378
378
|
export { program };
|
|
379
|
-
//
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
379
|
+
// Run CLI when executed directly (not when imported by tests or other modules)
|
|
380
|
+
if (typeof process !== 'undefined' && process.argv[1]) {
|
|
381
|
+
const script = process.argv[1];
|
|
382
|
+
if (script.endsWith('cli.js') || script.endsWith('cli.ts') || script.endsWith('/transduck') || script.endsWith('.bin/transduck')) {
|
|
383
|
+
program.parse();
|
|
384
|
+
}
|
|
383
385
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "transduck",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "AI-native translation tool using source text as keys",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@duckdb/node-api": "^1.5.0-r.1",
|
|
18
18
|
"commander": "^12.0.0",
|
|
19
|
-
"duckdb": "^1.0.0",
|
|
20
19
|
"openai": "^4.0.0",
|
|
21
20
|
"yaml": "^2.0.0"
|
|
22
21
|
},
|
package/src/cli.ts
CHANGED
|
@@ -443,8 +443,10 @@ program.command('stats')
|
|
|
443
443
|
|
|
444
444
|
export { program };
|
|
445
445
|
|
|
446
|
-
//
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
446
|
+
// Run CLI when executed directly (not when imported by tests or other modules)
|
|
447
|
+
if (typeof process !== 'undefined' && process.argv[1]) {
|
|
448
|
+
const script = process.argv[1];
|
|
449
|
+
if (script.endsWith('cli.js') || script.endsWith('cli.ts') || script.endsWith('/transduck') || script.endsWith('.bin/transduck')) {
|
|
450
|
+
program.parse();
|
|
451
|
+
}
|
|
450
452
|
}
|