@nexical/ai 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/dist/AiClientFactory.d.ts +4 -0
- package/dist/index.d.ts +3 -0
- package/dist/providers/GeminiCLI.d.ts +6 -0
- package/dist/types.d.ts +13 -0
- package/package.json +41 -41
- package/tsconfig.json +16 -19
package/dist/index.d.ts
ADDED
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface AiClientResult {
|
|
2
|
+
code: number;
|
|
3
|
+
shouldRetry: boolean;
|
|
4
|
+
output: string;
|
|
5
|
+
}
|
|
6
|
+
export interface AiClientConfig {
|
|
7
|
+
provider?: string;
|
|
8
|
+
commandTemplate?: string;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
export interface AiClient {
|
|
12
|
+
run(model: string, input: string): Promise<AiClientResult>;
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
2
|
+
"name": "@nexical/ai",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "General purpose AI Client interfaces and providers for the Nexical applications",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc -p tsconfig.build.json",
|
|
9
|
+
"format": "prettier --write .",
|
|
10
|
+
"lint": "eslint .",
|
|
11
|
+
"lint:fix": "eslint . --fix",
|
|
12
|
+
"prepare": "husky",
|
|
13
|
+
"prepublishOnly": "npm run build",
|
|
14
|
+
"test": "vitest run --passWithNoTests",
|
|
15
|
+
"test:unit": "vitest run --passWithNoTests"
|
|
16
|
+
},
|
|
17
|
+
"lint-staged": {
|
|
18
|
+
"**/*": [
|
|
19
|
+
"prettier --write --ignore-unknown"
|
|
20
|
+
],
|
|
21
|
+
"**/*.{js,jsx,ts,tsx,astro}": [
|
|
22
|
+
"eslint --fix"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"chalk": "^5.3.0"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@eslint/js": "^9.39.2",
|
|
30
|
+
"@types/node": "^22.0.0",
|
|
31
|
+
"eslint": "^9.39.2",
|
|
32
|
+
"eslint-config-prettier": "^10.0.1",
|
|
33
|
+
"globals": "^15.9.0",
|
|
34
|
+
"husky": "^9.1.5",
|
|
35
|
+
"lint-staged": "^15.2.10",
|
|
36
|
+
"prettier": "^3.3.3",
|
|
37
|
+
"typescript": "^5.5.4",
|
|
38
|
+
"typescript-eslint": "^8.3.0",
|
|
39
|
+
"vitest": "^2.1.0"
|
|
40
|
+
},
|
|
41
|
+
"types": "dist/index.d.ts"
|
|
42
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"src/**/*"
|
|
19
|
-
]
|
|
20
|
-
}
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "Bundler",
|
|
6
|
+
"lib": ["ESNext"],
|
|
7
|
+
"strict": true,
|
|
8
|
+
"esModuleInterop": true,
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"forceConsistentCasingInFileNames": true,
|
|
11
|
+
"resolveJsonModule": true,
|
|
12
|
+
"declaration": true,
|
|
13
|
+
"outDir": "dist",
|
|
14
|
+
"rootDir": "src"
|
|
15
|
+
},
|
|
16
|
+
"include": ["src/**/*"]
|
|
17
|
+
}
|