langtrain 0.1.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/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "langtrain",
3
+ "version": "0.1.0",
4
+ "description": "Unified JavaScript SDK for Langtrain Ecosystem",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "scripts": {
9
+ "build": "tsup",
10
+ "dev": "tsup --watch",
11
+ "test": "echo \"Error: no test specified\" && exit 1"
12
+ },
13
+ "keywords": [
14
+ "langtrain",
15
+ "langvision",
16
+ "langtune",
17
+ "sdk",
18
+ "ai",
19
+ "llm",
20
+ "finetuning"
21
+ ],
22
+ "author": "Langtrain AI",
23
+ "license": "MIT",
24
+ "devDependencies": {
25
+ "langvision": "file:../langvision/js",
26
+ "langtune": "file:../langtune/js",
27
+ "tsup": "^8.0.2",
28
+ "typescript": "^5.4.2"
29
+ }
30
+ }
package/src/index.ts ADDED
@@ -0,0 +1,10 @@
1
+
2
+ // Export Clients
3
+ export { Langvision } from 'langvision';
4
+ export { Langtune } from 'langtune';
5
+
6
+ // Export Types with Namespaces to avoid collisions
7
+ import * as Vision from 'langvision';
8
+ import * as Text from 'langtune';
9
+
10
+ export { Vision, Text };
package/tsconfig.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "module": "NodeNext",
5
+ "moduleResolution": "NodeNext",
6
+ "lib": [
7
+ "ES2020"
8
+ ],
9
+ "declaration": true,
10
+ "sourceMap": true,
11
+ "outDir": "./dist",
12
+ "strict": true,
13
+ "esModuleInterop": true,
14
+ "skipLibCheck": true,
15
+ "forceConsistentCasingInFileNames": true
16
+ },
17
+ "include": [
18
+ "src/**/*"
19
+ ]
20
+ }
package/tsup.config.ts ADDED
@@ -0,0 +1,11 @@
1
+ import { defineConfig } from 'tsup';
2
+
3
+ export default defineConfig({
4
+ entry: ['src/index.ts'],
5
+ format: ['cjs', 'esm'],
6
+ dts: true,
7
+ splitting: false,
8
+ sourcemap: true,
9
+ clean: true,
10
+ noExternal: ['langvision', 'langtune'],
11
+ });