@julong/mono-rele2-core 1.10.1 → 1.11.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 +7 -7
- package/dist/index.d.ts +1 -51
- package/dist/index.js +8 -9
- package/dist/server.js +7 -10
- package/dist/skills/mono-rele2-core/skill.md +64 -5
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -76,18 +76,18 @@ var tools = {
|
|
|
76
76
|
echoTool: toolDef({
|
|
77
77
|
name: "echo",
|
|
78
78
|
description: "Returns the message as-is",
|
|
79
|
-
inputSchema: {
|
|
79
|
+
inputSchema: z3.object({
|
|
80
80
|
message: z3.string().describe("Message to echo")
|
|
81
|
-
},
|
|
81
|
+
}),
|
|
82
82
|
handler: async ({ message }) => text(message),
|
|
83
83
|
examples: [{ args: [`"hello world"`], result: "hello world" }]
|
|
84
84
|
}),
|
|
85
85
|
timestampTool: toolDef({
|
|
86
86
|
name: "timestamp",
|
|
87
87
|
description: "Returns the current UTC timestamp",
|
|
88
|
-
inputSchema: {
|
|
88
|
+
inputSchema: z3.object({
|
|
89
89
|
format: z3.enum(["iso", "unix"]).default("iso").describe("Timestamp format")
|
|
90
|
-
},
|
|
90
|
+
}),
|
|
91
91
|
handler: async ({ format }) => {
|
|
92
92
|
const value = format === "unix" ? String(Date.now()) : (/* @__PURE__ */ new Date()).toISOString();
|
|
93
93
|
return text(value);
|
|
@@ -100,9 +100,9 @@ var tools = {
|
|
|
100
100
|
envTool: toolDef({
|
|
101
101
|
name: "env",
|
|
102
102
|
description: "Returns the value of an environment variable",
|
|
103
|
-
inputSchema: {
|
|
103
|
+
inputSchema: z3.object({
|
|
104
104
|
key: z3.string().describe("Environment variable name")
|
|
105
|
-
},
|
|
105
|
+
}),
|
|
106
106
|
handler: async ({ key }) => text(process.env[key] ?? ""),
|
|
107
107
|
examples: [
|
|
108
108
|
{ args: ["HOME"], result: "/Users/julong" },
|
|
@@ -113,7 +113,7 @@ var tools = {
|
|
|
113
113
|
uuidTool: toolDef({
|
|
114
114
|
name: "uuid",
|
|
115
115
|
description: "Generates a random UUID v4",
|
|
116
|
-
inputSchema: {},
|
|
116
|
+
inputSchema: z3.object({}),
|
|
117
117
|
handler: async () => text(randomUUID()),
|
|
118
118
|
examples: [{ args: [], result: "550e8400-e29b-41d4-a716-446655440000" }]
|
|
119
119
|
})
|
package/dist/index.d.ts
CHANGED
|
@@ -27,56 +27,6 @@ declare function generateReadmeSkills(opts: {
|
|
|
27
27
|
tools: SkillTools;
|
|
28
28
|
}): string;
|
|
29
29
|
|
|
30
|
-
declare const tools: {
|
|
31
|
-
echoTool: {
|
|
32
|
-
name: string;
|
|
33
|
-
description: string;
|
|
34
|
-
inputSchema: {
|
|
35
|
-
readonly message: z.ZodString;
|
|
36
|
-
};
|
|
37
|
-
handler: (input: {
|
|
38
|
-
message: string;
|
|
39
|
-
}) => Promise<ToolResult>;
|
|
40
|
-
examples?: ToolExample[];
|
|
41
|
-
guidelines?: string[];
|
|
42
|
-
};
|
|
43
|
-
timestampTool: {
|
|
44
|
-
name: string;
|
|
45
|
-
description: string;
|
|
46
|
-
inputSchema: {
|
|
47
|
-
readonly format: z.ZodDefault<z.ZodEnum<{
|
|
48
|
-
iso: "iso";
|
|
49
|
-
unix: "unix";
|
|
50
|
-
}>>;
|
|
51
|
-
};
|
|
52
|
-
handler: (input: {
|
|
53
|
-
format: "iso" | "unix";
|
|
54
|
-
}) => Promise<ToolResult>;
|
|
55
|
-
examples?: ToolExample[];
|
|
56
|
-
guidelines?: string[];
|
|
57
|
-
};
|
|
58
|
-
envTool: {
|
|
59
|
-
name: string;
|
|
60
|
-
description: string;
|
|
61
|
-
inputSchema: {
|
|
62
|
-
readonly key: z.ZodString;
|
|
63
|
-
};
|
|
64
|
-
handler: (input: {
|
|
65
|
-
key: string;
|
|
66
|
-
}) => Promise<ToolResult>;
|
|
67
|
-
examples?: ToolExample[];
|
|
68
|
-
guidelines?: string[];
|
|
69
|
-
};
|
|
70
|
-
uuidTool: {
|
|
71
|
-
name: string;
|
|
72
|
-
description: string;
|
|
73
|
-
inputSchema: {};
|
|
74
|
-
handler: (input: Record<string, never>) => Promise<ToolResult>;
|
|
75
|
-
examples?: ToolExample[];
|
|
76
|
-
guidelines?: string[];
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
|
|
80
30
|
declare function createCoreServer(): _modelcontextprotocol_sdk_server_mcp_js.McpServer;
|
|
81
31
|
|
|
82
|
-
export { createCoreServer, generateReadmeSkills, generateSkillMarkdown
|
|
32
|
+
export { createCoreServer, generateReadmeSkills, generateSkillMarkdown };
|
package/dist/index.js
CHANGED
|
@@ -215,18 +215,18 @@ var tools = {
|
|
|
215
215
|
echoTool: toolDef({
|
|
216
216
|
name: "echo",
|
|
217
217
|
description: "Returns the message as-is",
|
|
218
|
-
inputSchema: {
|
|
218
|
+
inputSchema: z3.object({
|
|
219
219
|
message: z3.string().describe("Message to echo")
|
|
220
|
-
},
|
|
220
|
+
}),
|
|
221
221
|
handler: async ({ message }) => text(message),
|
|
222
222
|
examples: [{ args: [`"hello world"`], result: "hello world" }]
|
|
223
223
|
}),
|
|
224
224
|
timestampTool: toolDef({
|
|
225
225
|
name: "timestamp",
|
|
226
226
|
description: "Returns the current UTC timestamp",
|
|
227
|
-
inputSchema: {
|
|
227
|
+
inputSchema: z3.object({
|
|
228
228
|
format: z3.enum(["iso", "unix"]).default("iso").describe("Timestamp format")
|
|
229
|
-
},
|
|
229
|
+
}),
|
|
230
230
|
handler: async ({ format }) => {
|
|
231
231
|
const value = format === "unix" ? String(Date.now()) : (/* @__PURE__ */ new Date()).toISOString();
|
|
232
232
|
return text(value);
|
|
@@ -239,9 +239,9 @@ var tools = {
|
|
|
239
239
|
envTool: toolDef({
|
|
240
240
|
name: "env",
|
|
241
241
|
description: "Returns the value of an environment variable",
|
|
242
|
-
inputSchema: {
|
|
242
|
+
inputSchema: z3.object({
|
|
243
243
|
key: z3.string().describe("Environment variable name")
|
|
244
|
-
},
|
|
244
|
+
}),
|
|
245
245
|
handler: async ({ key }) => text(process.env[key] ?? ""),
|
|
246
246
|
examples: [
|
|
247
247
|
{ args: ["HOME"], result: "/Users/julong" },
|
|
@@ -252,7 +252,7 @@ var tools = {
|
|
|
252
252
|
uuidTool: toolDef({
|
|
253
253
|
name: "uuid",
|
|
254
254
|
description: "Generates a random UUID v4",
|
|
255
|
-
inputSchema: {},
|
|
255
|
+
inputSchema: z3.object({}),
|
|
256
256
|
handler: async () => text(randomUUID()),
|
|
257
257
|
examples: [{ args: [], result: "550e8400-e29b-41d4-a716-446655440000" }]
|
|
258
258
|
})
|
|
@@ -272,6 +272,5 @@ function createCoreServer() {
|
|
|
272
272
|
export {
|
|
273
273
|
createCoreServer,
|
|
274
274
|
generateReadmeSkills,
|
|
275
|
-
generateSkillMarkdown
|
|
276
|
-
tools
|
|
275
|
+
generateSkillMarkdown
|
|
277
276
|
};
|
package/dist/server.js
CHANGED
|
@@ -44,18 +44,18 @@ var tools = {
|
|
|
44
44
|
echoTool: toolDef({
|
|
45
45
|
name: "echo",
|
|
46
46
|
description: "Returns the message as-is",
|
|
47
|
-
inputSchema: {
|
|
47
|
+
inputSchema: z3.object({
|
|
48
48
|
message: z3.string().describe("Message to echo")
|
|
49
|
-
},
|
|
49
|
+
}),
|
|
50
50
|
handler: async ({ message }) => text(message),
|
|
51
51
|
examples: [{ args: [`"hello world"`], result: "hello world" }]
|
|
52
52
|
}),
|
|
53
53
|
timestampTool: toolDef({
|
|
54
54
|
name: "timestamp",
|
|
55
55
|
description: "Returns the current UTC timestamp",
|
|
56
|
-
inputSchema: {
|
|
56
|
+
inputSchema: z3.object({
|
|
57
57
|
format: z3.enum(["iso", "unix"]).default("iso").describe("Timestamp format")
|
|
58
|
-
},
|
|
58
|
+
}),
|
|
59
59
|
handler: async ({ format }) => {
|
|
60
60
|
const value = format === "unix" ? String(Date.now()) : (/* @__PURE__ */ new Date()).toISOString();
|
|
61
61
|
return text(value);
|
|
@@ -68,9 +68,9 @@ var tools = {
|
|
|
68
68
|
envTool: toolDef({
|
|
69
69
|
name: "env",
|
|
70
70
|
description: "Returns the value of an environment variable",
|
|
71
|
-
inputSchema: {
|
|
71
|
+
inputSchema: z3.object({
|
|
72
72
|
key: z3.string().describe("Environment variable name")
|
|
73
|
-
},
|
|
73
|
+
}),
|
|
74
74
|
handler: async ({ key }) => text(process.env[key] ?? ""),
|
|
75
75
|
examples: [
|
|
76
76
|
{ args: ["HOME"], result: "/Users/julong" },
|
|
@@ -81,7 +81,7 @@ var tools = {
|
|
|
81
81
|
uuidTool: toolDef({
|
|
82
82
|
name: "uuid",
|
|
83
83
|
description: "Generates a random UUID v4",
|
|
84
|
-
inputSchema: {},
|
|
84
|
+
inputSchema: z3.object({}),
|
|
85
85
|
handler: async () => text(randomUUID()),
|
|
86
86
|
examples: [{ args: [], result: "550e8400-e29b-41d4-a716-446655440000" }]
|
|
87
87
|
})
|
|
@@ -105,6 +105,3 @@ startServer(server).catch((err) => {
|
|
|
105
105
|
console.error("[core] server error:", err);
|
|
106
106
|
process.exit(1);
|
|
107
107
|
});
|
|
108
|
-
export {
|
|
109
|
-
tools
|
|
110
|
-
};
|
|
@@ -17,7 +17,22 @@ Returns the message as-is
|
|
|
17
17
|
|
|
18
18
|
| arg | description |
|
|
19
19
|
|-----|-------------|
|
|
20
|
-
| `
|
|
20
|
+
| `toJSONSchema` | |
|
|
21
|
+
| `def` | |
|
|
22
|
+
| `type` | |
|
|
23
|
+
| `parse` | |
|
|
24
|
+
| `safeParse` | |
|
|
25
|
+
| `parseAsync` | |
|
|
26
|
+
| `safeParseAsync` | |
|
|
27
|
+
| `spa` | |
|
|
28
|
+
| `encode` | |
|
|
29
|
+
| `decode` | |
|
|
30
|
+
| `encodeAsync` | |
|
|
31
|
+
| `decodeAsync` | |
|
|
32
|
+
| `safeEncode` | |
|
|
33
|
+
| `safeDecode` | |
|
|
34
|
+
| `safeEncodeAsync` | |
|
|
35
|
+
| `safeDecodeAsync` | |
|
|
21
36
|
|
|
22
37
|
### timestampTool
|
|
23
38
|
|
|
@@ -25,7 +40,22 @@ Returns the current UTC timestamp
|
|
|
25
40
|
|
|
26
41
|
| arg | description |
|
|
27
42
|
|-----|-------------|
|
|
28
|
-
| `
|
|
43
|
+
| `toJSONSchema` | |
|
|
44
|
+
| `def` | |
|
|
45
|
+
| `type` | |
|
|
46
|
+
| `parse` | |
|
|
47
|
+
| `safeParse` | |
|
|
48
|
+
| `parseAsync` | |
|
|
49
|
+
| `safeParseAsync` | |
|
|
50
|
+
| `spa` | |
|
|
51
|
+
| `encode` | |
|
|
52
|
+
| `decode` | |
|
|
53
|
+
| `encodeAsync` | |
|
|
54
|
+
| `decodeAsync` | |
|
|
55
|
+
| `safeEncode` | |
|
|
56
|
+
| `safeDecode` | |
|
|
57
|
+
| `safeEncodeAsync` | |
|
|
58
|
+
| `safeDecodeAsync` | |
|
|
29
59
|
|
|
30
60
|
### envTool
|
|
31
61
|
|
|
@@ -33,7 +63,22 @@ Returns the value of an environment variable
|
|
|
33
63
|
|
|
34
64
|
| arg | description |
|
|
35
65
|
|-----|-------------|
|
|
36
|
-
| `
|
|
66
|
+
| `toJSONSchema` | |
|
|
67
|
+
| `def` | |
|
|
68
|
+
| `type` | |
|
|
69
|
+
| `parse` | |
|
|
70
|
+
| `safeParse` | |
|
|
71
|
+
| `parseAsync` | |
|
|
72
|
+
| `safeParseAsync` | |
|
|
73
|
+
| `spa` | |
|
|
74
|
+
| `encode` | |
|
|
75
|
+
| `decode` | |
|
|
76
|
+
| `encodeAsync` | |
|
|
77
|
+
| `decodeAsync` | |
|
|
78
|
+
| `safeEncode` | |
|
|
79
|
+
| `safeDecode` | |
|
|
80
|
+
| `safeEncodeAsync` | |
|
|
81
|
+
| `safeDecodeAsync` | |
|
|
37
82
|
|
|
38
83
|
### uuidTool
|
|
39
84
|
|
|
@@ -41,7 +86,22 @@ Generates a random UUID v4
|
|
|
41
86
|
|
|
42
87
|
| arg | description |
|
|
43
88
|
|-----|-------------|
|
|
44
|
-
|
|
89
|
+
| `toJSONSchema` | |
|
|
90
|
+
| `def` | |
|
|
91
|
+
| `type` | |
|
|
92
|
+
| `parse` | |
|
|
93
|
+
| `safeParse` | |
|
|
94
|
+
| `parseAsync` | |
|
|
95
|
+
| `safeParseAsync` | |
|
|
96
|
+
| `spa` | |
|
|
97
|
+
| `encode` | |
|
|
98
|
+
| `decode` | |
|
|
99
|
+
| `encodeAsync` | |
|
|
100
|
+
| `decodeAsync` | |
|
|
101
|
+
| `safeEncode` | |
|
|
102
|
+
| `safeDecode` | |
|
|
103
|
+
| `safeEncodeAsync` | |
|
|
104
|
+
| `safeDecodeAsync` | |
|
|
45
105
|
|
|
46
106
|
## Examples
|
|
47
107
|
|
|
@@ -55,6 +115,5 @@ Generates a random UUID v4
|
|
|
55
115
|
## Guidelines
|
|
56
116
|
|
|
57
117
|
- Arguments are positional — pass them in the order listed in each skill's table
|
|
58
|
-
- Optional args with defaults may be omitted
|
|
59
118
|
- `envTool` returns an empty string when the variable is not set
|
|
60
119
|
- 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.11.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",
|