@julong/mono-rele2-core 1.8.0 → 1.10.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/dist/cli.js
CHANGED
|
@@ -32,8 +32,7 @@ ${paramLines}`;
|
|
|
32
32
|
return "Available skills:\n\n" + sections.join("\n\n");
|
|
33
33
|
}
|
|
34
34
|
async function runCli(tools2) {
|
|
35
|
-
const [, ,
|
|
36
|
-
console.log(process.argv);
|
|
35
|
+
const [, , toolName, ...rawArgs] = process.argv;
|
|
37
36
|
if (!toolName || !(toolName in tools2)) {
|
|
38
37
|
if (toolName) console.error(`Unknown skill: "${toolName}"
|
|
39
38
|
`);
|
|
@@ -70,7 +69,7 @@ function handleCliError(err) {
|
|
|
70
69
|
// ../common/kit/skill.ts
|
|
71
70
|
import { z as z2 } from "zod";
|
|
72
71
|
|
|
73
|
-
// src/tools/
|
|
72
|
+
// src/tools/index.ts
|
|
74
73
|
import { z as z3 } from "zod";
|
|
75
74
|
import { randomUUID } from "crypto";
|
|
76
75
|
var tools = {
|
package/dist/index.js
CHANGED
|
@@ -208,7 +208,7 @@ function describeReadmeDesc(schema) {
|
|
|
208
208
|
return baseDesc;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
// src/tools/
|
|
211
|
+
// src/tools/index.ts
|
|
212
212
|
import { z as z3 } from "zod";
|
|
213
213
|
import { randomUUID } from "crypto";
|
|
214
214
|
var tools = {
|
|
@@ -266,7 +266,7 @@ var uuidTool = defineTool(tools.uuidTool);
|
|
|
266
266
|
function createCoreServer() {
|
|
267
267
|
return createMcpServer(
|
|
268
268
|
{ name: "mono-rele2-core", version: "1.0.0" },
|
|
269
|
-
[echoTool, timestampTool, envTool
|
|
269
|
+
[echoTool, timestampTool, envTool]
|
|
270
270
|
);
|
|
271
271
|
}
|
|
272
272
|
export {
|
package/dist/server.js
CHANGED
|
@@ -37,7 +37,7 @@ import { z } from "zod";
|
|
|
37
37
|
// ../common/kit/skill.ts
|
|
38
38
|
import { z as z2 } from "zod";
|
|
39
39
|
|
|
40
|
-
// src/tools/
|
|
40
|
+
// src/tools/index.ts
|
|
41
41
|
import { z as z3 } from "zod";
|
|
42
42
|
import { randomUUID } from "crypto";
|
|
43
43
|
var tools = {
|
|
@@ -95,7 +95,7 @@ var uuidTool = defineTool(tools.uuidTool);
|
|
|
95
95
|
function createCoreServer() {
|
|
96
96
|
return createMcpServer(
|
|
97
97
|
{ name: "mono-rele2-core", version: "1.0.0" },
|
|
98
|
-
[echoTool, timestampTool, envTool
|
|
98
|
+
[echoTool, timestampTool, envTool]
|
|
99
99
|
);
|
|
100
100
|
}
|
|
101
101
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: mono-rele2-core
|
|
2
|
+
name: mono-rele2-core
|
|
3
3
|
description: Use this skill to invoke core system utility functions via the mono-rele2-core CLI. Handles message echo, UTC timestamp generation, and environment variable lookup.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# mono-rele2-core
|
|
6
|
+
# mono-rele2-core
|
|
7
7
|
|
|
8
8
|
```sh
|
|
9
|
-
mono-rele2-core
|
|
9
|
+
mono-rele2-core <skillName> [...args]
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
## Skills
|
|
@@ -45,16 +45,16 @@ Generates a random UUID v4
|
|
|
45
45
|
|
|
46
46
|
## Examples
|
|
47
47
|
|
|
48
|
-
- `mono-rele2-core
|
|
49
|
-
- `mono-rele2-core
|
|
50
|
-
- `mono-rele2-core
|
|
51
|
-
- `mono-rele2-core
|
|
52
|
-
- `mono-rele2-core
|
|
53
|
-
- `mono-rele2-core
|
|
48
|
+
- `mono-rele2-core echoTool "hello world"` => `hello world`
|
|
49
|
+
- `mono-rele2-core timestampTool` => `2026-05-02T00:00:00.000Z`
|
|
50
|
+
- `mono-rele2-core timestampTool unix` => `1746144000000`
|
|
51
|
+
- `mono-rele2-core envTool HOME` => `/Users/julong`
|
|
52
|
+
- `mono-rele2-core envTool NODE_ENV` => `development`
|
|
53
|
+
- `mono-rele2-core uuidTool` => `550e8400-e29b-41d4-a716-446655440000`
|
|
54
54
|
|
|
55
55
|
## Guidelines
|
|
56
56
|
|
|
57
57
|
- Arguments are positional — pass them in the order listed in each skill's table
|
|
58
58
|
- Optional args with defaults may be omitted
|
|
59
59
|
- `envTool` returns an empty string when the variable is not set
|
|
60
|
-
- Run `mono-rele2-core
|
|
60
|
+
- Run `mono-rele2-core` with no args to list all available skills
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@julong/mono-rele2-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "Use this skill to invoke core system utility functions via the mono-rele2-core CLI. Handles message echo, UTC timestamp generation, and environment variable lookup.",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"type": "module",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"bin": {
|
|
14
|
-
"
|
|
15
|
-
"mono-rele2-core
|
|
14
|
+
"mcp-core": "./dist/server.js",
|
|
15
|
+
"mono-rele2-core": "./dist/cli.js"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
18
|
"dist"
|