@devness/useai-cli 0.3.2 → 0.3.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/index.js +5 -5
- package/package.json +12 -11
- package/LICENSE +0 -21
package/dist/index.js
CHANGED
|
@@ -430,7 +430,7 @@ function writeJsonFile(path, data) {
|
|
|
430
430
|
function isConfiguredStandard(configPath) {
|
|
431
431
|
const config = readJsonFile(configPath);
|
|
432
432
|
const servers = config["mcpServers"];
|
|
433
|
-
return !!servers?.["UseAI"];
|
|
433
|
+
return !!servers?.["UseAI"] || !!servers?.["useai"];
|
|
434
434
|
}
|
|
435
435
|
function installStandard(configPath) {
|
|
436
436
|
const config = readJsonFile(configPath);
|
|
@@ -455,7 +455,7 @@ function removeStandard(configPath) {
|
|
|
455
455
|
function isConfiguredVscode(configPath) {
|
|
456
456
|
const config = readJsonFile(configPath);
|
|
457
457
|
const servers = config["servers"];
|
|
458
|
-
return !!servers?.["UseAI"];
|
|
458
|
+
return !!servers?.["UseAI"] || !!servers?.["useai"];
|
|
459
459
|
}
|
|
460
460
|
function installVscode(configPath) {
|
|
461
461
|
const config = readJsonFile(configPath);
|
|
@@ -480,7 +480,7 @@ function removeVscode(configPath) {
|
|
|
480
480
|
function isConfiguredZed(configPath) {
|
|
481
481
|
const config = readJsonFile(configPath);
|
|
482
482
|
const servers = config["context_servers"];
|
|
483
|
-
return !!servers?.["UseAI"];
|
|
483
|
+
return !!servers?.["UseAI"] || !!servers?.["useai"];
|
|
484
484
|
}
|
|
485
485
|
function installZed(configPath) {
|
|
486
486
|
const config = readJsonFile(configPath);
|
|
@@ -522,7 +522,7 @@ function writeTomlFile(path, data) {
|
|
|
522
522
|
function isConfiguredToml(configPath) {
|
|
523
523
|
const config = readTomlFile(configPath);
|
|
524
524
|
const servers = config["mcp_servers"];
|
|
525
|
-
return !!servers?.["UseAI"];
|
|
525
|
+
return !!servers?.["UseAI"] || !!servers?.["useai"];
|
|
526
526
|
}
|
|
527
527
|
function installToml(configPath) {
|
|
528
528
|
const config = readTomlFile(configPath);
|
|
@@ -561,7 +561,7 @@ function writeYamlFile(path, data) {
|
|
|
561
561
|
function isConfiguredYaml(configPath) {
|
|
562
562
|
const config = readYamlFile(configPath);
|
|
563
563
|
const extensions = config["extensions"];
|
|
564
|
-
return !!extensions?.["UseAI"];
|
|
564
|
+
return !!extensions?.["UseAI"] || !!extensions?.["useai"];
|
|
565
565
|
}
|
|
566
566
|
function installYaml(configPath) {
|
|
567
567
|
const config = readYamlFile(configPath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devness/useai-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "CLI tool for useai.dev — stats, sync, publish your AI development workflow",
|
|
5
5
|
"author": "nabeelkausari",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,6 +14,14 @@
|
|
|
14
14
|
"README.md",
|
|
15
15
|
"LICENSE"
|
|
16
16
|
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsc -p tsconfig.build.json",
|
|
19
|
+
"dev": "tsc --watch",
|
|
20
|
+
"bundle": "tsup src/index.ts --format esm --target node18 --no-splitting",
|
|
21
|
+
"prepublishOnly": "pnpm run bundle",
|
|
22
|
+
"typecheck": "tsc --noEmit",
|
|
23
|
+
"clean": "rm -rf dist"
|
|
24
|
+
},
|
|
17
25
|
"dependencies": {
|
|
18
26
|
"@inquirer/prompts": "^8.2.1",
|
|
19
27
|
"chalk": "^5.4.1",
|
|
@@ -23,9 +31,9 @@
|
|
|
23
31
|
},
|
|
24
32
|
"devDependencies": {
|
|
25
33
|
"@types/node": "^22.13.4",
|
|
34
|
+
"@useai/shared": "workspace:*",
|
|
26
35
|
"tsup": "^8.0.0",
|
|
27
|
-
"typescript": "^5.7.3"
|
|
28
|
-
"@useai/shared": "0.2.0"
|
|
36
|
+
"typescript": "^5.7.3"
|
|
29
37
|
},
|
|
30
38
|
"repository": {
|
|
31
39
|
"type": "git",
|
|
@@ -34,12 +42,5 @@
|
|
|
34
42
|
"homepage": "https://useai.dev",
|
|
35
43
|
"engines": {
|
|
36
44
|
"node": ">=18"
|
|
37
|
-
},
|
|
38
|
-
"scripts": {
|
|
39
|
-
"build": "tsc -p tsconfig.build.json",
|
|
40
|
-
"dev": "tsc --watch",
|
|
41
|
-
"bundle": "tsup src/index.ts --format esm --target node18 --no-splitting",
|
|
42
|
-
"typecheck": "tsc --noEmit",
|
|
43
|
-
"clean": "rm -rf dist"
|
|
44
45
|
}
|
|
45
|
-
}
|
|
46
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 useai.dev
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|