@julong/mono-rele2-utils 1.3.0 → 1.3.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.
Files changed (2) hide show
  1. package/README.md +98 -0
  2. package/package.json +5 -1
package/README.md ADDED
@@ -0,0 +1,98 @@
1
+ # @julong/mono-rele2-utils
2
+
3
+ Text utility tools for the mono-rele2 monorepo. Available as an MCP server and a standalone CLI.
4
+
5
+ ## CLI
6
+
7
+ ### Installation
8
+
9
+ ```sh
10
+ npm install -g @julong/mono-rele2-utils
11
+ # or
12
+ npx @julong/mono-rele2-utils <skillName> [...args]
13
+ ```
14
+
15
+ ### Usage
16
+
17
+ ```sh
18
+ mono-rele2-utils <skillName> [...args]
19
+ ```
20
+
21
+ Run without arguments to list all available skills:
22
+
23
+ ```sh
24
+ mono-rele2-utils
25
+ ```
26
+
27
+ ```
28
+ Available skills:
29
+
30
+ caseConvertTool
31
+ Converts text to the specified case format
32
+ input Text to convert
33
+ to Target case format
34
+ ...
35
+ ```
36
+
37
+ ### Skills
38
+
39
+ #### `caseConvertTool`
40
+
41
+ Converts text to the specified case format.
42
+
43
+ ```sh
44
+ mono-rele2-utils caseConvertTool <input> <to>
45
+ ```
46
+
47
+ | arg | type | description |
48
+ |-----|------|-------------|
49
+ | `input` | string | Text to convert |
50
+ | `to` | `upper` \| `lower` \| `capitalize` \| `camel` \| `snake` \| `kebab` | Target case format |
51
+
52
+ ```sh
53
+ mono-rele2-utils caseConvertTool "hello world" camel # helloWorld
54
+ mono-rele2-utils caseConvertTool "helloWorld" snake # hello_world
55
+ mono-rele2-utils caseConvertTool "hello world" kebab # hello-world
56
+ mono-rele2-utils caseConvertTool "hello world" upper # HELLO WORLD
57
+ ```
58
+
59
+ #### `cnTool`
60
+
61
+ Merges class names, filtering out falsy values.
62
+
63
+ ```sh
64
+ mono-rele2-utils cnTool <classes>
65
+ ```
66
+
67
+ | arg | type | description |
68
+ |-----|------|-------------|
69
+ | `classes` | JSON string (array) | Class names to merge |
70
+
71
+ ```sh
72
+ mono-rele2-utils cnTool '["btn", "active", "large"]' # btn active large
73
+ ```
74
+
75
+ #### `truncateTool`
76
+
77
+ Truncates text to a maximum length and appends a suffix.
78
+
79
+ ```sh
80
+ mono-rele2-utils truncateTool <input> <maxLength> [suffix]
81
+ ```
82
+
83
+ | arg | type | description |
84
+ |-----|------|-------------|
85
+ | `input` | string | Text to truncate |
86
+ | `maxLength` | number | Maximum character length |
87
+ | `suffix` | string | Suffix to append (default: `...`) |
88
+
89
+ ```sh
90
+ mono-rele2-utils truncateTool "hello world long text" 10 # hello w...
91
+ mono-rele2-utils truncateTool "hello world" 8 "…" # hello w…
92
+ ```
93
+
94
+ ## MCP Server
95
+
96
+ ```sh
97
+ mcp-utils
98
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@julong/mono-rele2-utils",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "exports": {
@@ -23,5 +23,9 @@
23
23
  "build": "tsup",
24
24
  "typecheck": "tsc --noEmit",
25
25
  "clean": "rimraf dist"
26
+ },
27
+ "dependencies": {
28
+ "@modelcontextprotocol/sdk": "^1.29.0",
29
+ "zod": "^4.4.2"
26
30
  }
27
31
  }