@wilm-ai/wilma-cli 0.0.4 → 0.0.6
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/LICENSE +21 -0
- package/dist/index.js +5 -4
- package/package.json +10 -11
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Wilm.ai
|
|
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.
|
package/dist/index.js
CHANGED
|
@@ -258,15 +258,16 @@ function tenantMatches(search, tenant) {
|
|
|
258
258
|
}
|
|
259
259
|
function fuzzyIncludes(target, needle) {
|
|
260
260
|
const hay = (target ?? "").toLowerCase();
|
|
261
|
-
|
|
261
|
+
const search = (needle ?? "").toLowerCase();
|
|
262
|
+
if (!search)
|
|
262
263
|
return true;
|
|
263
|
-
if (hay.includes(
|
|
264
|
+
if (hay.includes(search))
|
|
264
265
|
return true;
|
|
265
266
|
let i = 0;
|
|
266
267
|
for (const ch of hay) {
|
|
267
|
-
if (ch ===
|
|
268
|
+
if (ch === search[i]) {
|
|
268
269
|
i += 1;
|
|
269
|
-
if (i >=
|
|
270
|
+
if (i >= search.length)
|
|
270
271
|
return true;
|
|
271
272
|
}
|
|
272
273
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wilm-ai/wilma-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,17 +8,9 @@
|
|
|
8
8
|
"wilmai": "dist/index.js",
|
|
9
9
|
"wilma": "dist/index.js"
|
|
10
10
|
},
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "tsc -p tsconfig.json",
|
|
13
|
-
"lint": "echo 'add lint'",
|
|
14
|
-
"test": "echo 'add tests'",
|
|
15
|
-
"start": "node dist/index.js",
|
|
16
|
-
"prepack": "pnpm --filter @wilm-ai/wilma-client build && pnpm --filter @wilm-ai/wilma-cli build",
|
|
17
|
-
"test:live": "tsc -p tsconfig.json && node test/live.spec.mjs"
|
|
18
|
-
},
|
|
19
11
|
"dependencies": {
|
|
20
12
|
"@inquirer/prompts": "^5.3.8",
|
|
21
|
-
"@wilm-ai/wilma-client": "^0.0.
|
|
13
|
+
"@wilm-ai/wilma-client": "^0.0.2"
|
|
22
14
|
},
|
|
23
15
|
"devDependencies": {
|
|
24
16
|
"typescript": "^5.6.3"
|
|
@@ -29,5 +21,12 @@
|
|
|
29
21
|
],
|
|
30
22
|
"publishConfig": {
|
|
31
23
|
"access": "public"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "tsc -p tsconfig.json",
|
|
27
|
+
"lint": "echo 'add lint'",
|
|
28
|
+
"test": "echo 'add tests'",
|
|
29
|
+
"start": "node dist/index.js",
|
|
30
|
+
"test:live": "tsc -p tsconfig.json && node test/live.spec.mjs"
|
|
32
31
|
}
|
|
33
|
-
}
|
|
32
|
+
}
|