@julong/mono-rele2-core 1.32.0 → 1.34.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.cjs CHANGED
@@ -1,3 +1,2 @@
1
1
  #!/usr/bin/env node
2
- "use strict";function s(n){return{content:[{type:"text",text:n}]}}var T=require("@modelcontextprotocol/sdk/server/mcp.js"),h=require("@modelcontextprotocol/sdk/server/stdio.js");var c=require("zod");async function u(n){let[,,e,...m]=process.argv;(!e||!(e in n))&&(e&&console.error(`Unknown skill: "${e}"
3
- `),process.exit(e?1:0));let i=n[e],a=Object.keys(i.inputSchema),p={};for(let t=0;t<a.length;t++){let l=m[t];if(l!==void 0)try{p[a[t]]=JSON.parse(l)}catch{p[a[t]]=l}}let y=c.z.object(i.inputSchema).parse(p),g=await i.handler(y);for(let t of g.content)t.type==="text"&&console.log(t.text)}function d(n){n instanceof c.z.ZodError?console.error("Validation error:",n.issues.map(e=>`${e.path.join(".")}: ${e.message}`).join(", ")):console.error("Error:",n instanceof Error?n.message:String(n)),process.exit(1)}var Z=require("zod");var r=require("zod"),f=require("crypto"),o={echoTool:{name:"echo",description:"Returns the message as-is",inputSchema:{message:r.z.string().describe("Message to echo")},handler:async({message:n})=>s(n),examples:[{args:['"hello world"'],result:"hello world"}]},timestampTool:{name:"timestamp",description:"Returns the current UTC timestamp",inputSchema:{format:r.z.enum(["iso","unix"]).default("iso").describe("Timestamp format")},handler:async({format:n})=>{let e=n==="unix"?String(Date.now()):new Date().toISOString();return s(e)},examples:[{args:[],result:"2026-05-02T00:00:00.000Z"},{args:["unix"],result:"1746144000000"}]},envTool:{name:"env",description:"Returns the value of an environment variable",inputSchema:{key:r.z.string().describe("Environment variable name")},handler:async({key:n})=>s(process.env[n]??""),examples:[{args:["HOME"],result:"/Users/julong"},{args:["NODE_ENV"],result:"development"}],guidelines:["`envTool` returns an empty string when the variable is not set"]},uuidTool:{name:"uuid",description:"Generates a random UUID v4",inputSchema:{},handler:async()=>s((0,f.randomUUID)()),examples:[{args:[],result:"550e8400-e29b-41d4-a716-446655440000"}]}},B=o.echoTool,U=o.timestampTool,V=o.envTool,P=o.uuidTool;u(o).catch(d);
2
+ "use strict";var _chunkN4RVWSPCcjs = require('./chunk-N4RVWSPC.cjs');_chunkN4RVWSPCcjs.c.call(void 0, _chunkN4RVWSPCcjs.g).catch(_chunkN4RVWSPCcjs.d);
package/dist/cli.js CHANGED
@@ -1,3 +1,2 @@
1
1
  #!/usr/bin/env node
2
- function s(n){return{content:[{type:"text",text:n}]}}import{McpServer as S}from"@modelcontextprotocol/sdk/server/mcp.js";import{StdioServerTransport as x}from"@modelcontextprotocol/sdk/server/stdio.js";import{z as c}from"zod";async function u(n){let[,,e,...f]=process.argv;(!e||!(e in n))&&(e&&console.error(`Unknown skill: "${e}"
3
- `),process.exit(e?1:0));let r=n[e],i=Object.keys(r.inputSchema),a={};for(let t=0;t<i.length;t++){let p=f[t];if(p!==void 0)try{a[i[t]]=JSON.parse(p)}catch{a[i[t]]=p}}let m=c.object(r.inputSchema).parse(a),y=await r.handler(m);for(let t of y.content)t.type==="text"&&console.log(t.text)}function d(n){n instanceof c.ZodError?console.error("Validation error:",n.issues.map(e=>`${e.path.join(".")}: ${e.message}`).join(", ")):console.error("Error:",n instanceof Error?n.message:String(n)),process.exit(1)}import{z}from"zod";import{z as l}from"zod";import{randomUUID as g}from"crypto";var o={echoTool:{name:"echo",description:"Returns the message as-is",inputSchema:{message:l.string().describe("Message to echo")},handler:async({message:n})=>s(n),examples:[{args:['"hello world"'],result:"hello world"}]},timestampTool:{name:"timestamp",description:"Returns the current UTC timestamp",inputSchema:{format:l.enum(["iso","unix"]).default("iso").describe("Timestamp format")},handler:async({format:n})=>{let e=n==="unix"?String(Date.now()):new Date().toISOString();return s(e)},examples:[{args:[],result:"2026-05-02T00:00:00.000Z"},{args:["unix"],result:"1746144000000"}]},envTool:{name:"env",description:"Returns the value of an environment variable",inputSchema:{key:l.string().describe("Environment variable name")},handler:async({key:n})=>s(process.env[n]??""),examples:[{args:["HOME"],result:"/Users/julong"},{args:["NODE_ENV"],result:"development"}],guidelines:["`envTool` returns an empty string when the variable is not set"]},uuidTool:{name:"uuid",description:"Generates a random UUID v4",inputSchema:{},handler:async()=>s(g()),examples:[{args:[],result:"550e8400-e29b-41d4-a716-446655440000"}]}},J=o.echoTool,G=o.timestampTool,K=o.envTool,q=o.uuidTool;u(o).catch(d);
2
+ import{c as r,d as o,g as i}from"./chunk-GSILIFEX.js";r(i).catch(o);
package/dist/index.cjs CHANGED
@@ -1,63 +1 @@
1
- "use strict";var h=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var z=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var O=(o,e)=>{for(var n in e)h(o,n,{get:e[n],enumerable:!0})},k=(o,e,n,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of z(e))!A.call(o,r)&&r!==n&&h(o,r,{get:()=>e[r],enumerable:!(t=w(e,r))||t.enumerable});return o};var v=o=>k(h({},"__esModule",{value:!0}),o);var K={};O(K,{generateReadmeSkills:()=>x,generateSkillMarkdown:()=>S,tools:()=>d});module.exports=v(K);function f(o){return{content:[{type:"text",text:o}]}}var R=require("@modelcontextprotocol/sdk/server/mcp.js"),N=require("@modelcontextprotocol/sdk/server/stdio.js");var E=require("zod");var i=require("zod");function S(o){let{binName:e,description:n,tools:t}=o;return`---
2
- name: ${e}
3
- description: ${n}
4
- ---
5
-
6
- # ${e}
7
-
8
- \`\`\`sh
9
- ${e} <toolName> [...args]
10
- \`\`\`
11
-
12
- ## Skills
13
-
14
- ${M(t)}
15
-
16
- ## Examples
17
-
18
- ${C(e,t)}
19
-
20
- ## Guidelines
21
-
22
- ${U(e,t)}
23
- `}function M(o){return Object.entries(o).map(([e,n])=>{let t=Object.entries(n.inputSchema).map(([a,s])=>{let l=n.typeLabels?.[a];return`| \`${a}\` | ${B(s,l)} |`}).join(`
24
- `),r=n.typeDefs?Object.entries(n.typeDefs).map(([a,s])=>`
25
-
26
- **\`${a}\`** type definition:
27
- \`\`\`typescript
28
- ${s}
29
- \`\`\``).join(""):"";return`### ${e}
30
-
31
- ${n.description}
32
-
33
- | arg | description |
34
- |-----|-------------|
35
- ${t}${r}`}).join(`
36
-
37
- `)}function B(o,e){let n=o.description??"",t=o,r,a=!1;for(;t instanceof i.z.ZodOptional||t instanceof i.z.ZodDefault;){if(t instanceof i.z.ZodDefault){let l=t.def.defaultValue;r=typeof l=="function"?l():l}t instanceof i.z.ZodOptional&&(a=!0),t=t.unwrap()}let s=[];if(e&&s.push(`Type: ${e}`),n&&s.push(n),t instanceof i.z.ZodEnum){let l=t.options.map(m=>`\`${m}\``).join(" \\| ");s.push(l)}return r!==void 0?s.push(`default: \`${String(r)}\``):a&&s.push("optional"),s.join(" \u2014 ")}function C(o,e){let n=[];for(let[t,r]of Object.entries(e))if(r.examples)for(let a of r.examples){let s=[o,t,...a.args].join(" ");n.push(`- \`${s}\` => \`${a.result}\``)}return n.join(`
38
- `)}function U(o,e){let n=[],t=new Set,r=s=>{t.has(s)||(t.add(s),n.push(s))};r("Arguments are positional \u2014 pass them in the order listed in each skill's table");let a=Object.values(e).flatMap(s=>Object.values(s.inputSchema));a.some(s=>Z(s,i.z.ZodNumber))&&r("Numeric args are auto-parsed \u2014 pass as plain numbers (e.g. `10`)"),a.some(s=>Z(s,i.z.ZodArray))&&r('Array args must be valid JSON \u2014 wrap in single quotes on Unix shells (e.g. `\'["a","b"]\'`)'),a.some(s=>s instanceof i.z.ZodOptional||s instanceof i.z.ZodDefault)&&r("Optional args with defaults may be omitted");for(let s of Object.values(e))if(s.guidelines)for(let l of s.guidelines)r(l);return r(`Run \`${o}\` with no args to list all available skills`),n.map(s=>`- ${s}`).join(`
39
- `)}function Z(o,e){let n=o;for(;n instanceof i.z.ZodOptional||n instanceof i.z.ZodDefault;)n=n.unwrap();return n instanceof e}function x(o){let{binName:e,tools:n}=o;return Object.entries(n).map(([t,r])=>V(e,t,r)).join(`
40
-
41
- `)}function V(o,e,n){let t=Object.entries(n.inputSchema),r=t.map(([p,c])=>c instanceof i.z.ZodOptional||c instanceof i.z.ZodDefault?`[${p}]`:`<${p}>`).join(" "),a=[o,e,r].filter(Boolean).join(" "),s=t.map(([p,c])=>{let g=n.typeLabels?.[p],u=$(c,g),T=P(c);return`| \`${p}\` | ${u} | ${T} |`}).join(`
42
- `),l=n.examples??[],m="";if(l.length>0){let p=l.map(u=>[o,e,...u.args].join(" ")),c=Math.max(...p.map(u=>u.length));m=`
43
-
44
- \`\`\`sh
45
- ${l.map((u,T)=>`${p[T].padEnd(c)} # ${u.result}`).join(`
46
- `)}
47
- \`\`\``}let j=n.typeDefs?Object.entries(n.typeDefs).map(([p,c])=>`
48
-
49
- **\`${p}\`** type definition:
50
-
51
- \`\`\`typescript
52
- ${c}
53
- \`\`\``).join(""):"",D=s?`
54
-
55
- | arg | type | description |
56
- |-----|------|-------------|
57
- ${s}`:"";return`#### \`${e}\`
58
-
59
- ${n.description}.
60
-
61
- \`\`\`sh
62
- ${a}
63
- \`\`\`${D}${j}${m}`}function $(o,e){if(e)return e;let n=o;for(;n instanceof i.z.ZodOptional||n instanceof i.z.ZodDefault;)n=n.unwrap();return n instanceof i.z.ZodEnum?n.options.map(t=>`\`${t}\``).join(" \\| "):n instanceof i.z.ZodNumber?"number":n instanceof i.z.ZodString?"string":n instanceof i.z.ZodBoolean?"boolean":n instanceof i.z.ZodArray?"JSON string (array)":n instanceof i.z.ZodUnion?n.options.map(r=>$(r)).join(" \\| "):n instanceof i.z.ZodRecord?"JSON object":"unknown"}function P(o){let e=o.description??"",n=o,t,r=!1;for(;n instanceof i.z.ZodOptional||n instanceof i.z.ZodDefault;){if(n instanceof i.z.ZodDefault){let a=n.def.defaultValue;t=typeof a=="function"?a():a}n instanceof i.z.ZodOptional&&(r=!0),n=n.unwrap()}return t!==void 0?`${e} (default: \`${String(t)}\`)`:r?`${e} (optional)`:e}var y=require("zod"),b=require("crypto"),d={echoTool:{name:"echo",description:"Returns the message as-is",inputSchema:{message:y.z.string().describe("Message to echo")},handler:async({message:o})=>f(o),examples:[{args:['"hello world"'],result:"hello world"}]},timestampTool:{name:"timestamp",description:"Returns the current UTC timestamp",inputSchema:{format:y.z.enum(["iso","unix"]).default("iso").describe("Timestamp format")},handler:async({format:o})=>{let e=o==="unix"?String(Date.now()):new Date().toISOString();return f(e)},examples:[{args:[],result:"2026-05-02T00:00:00.000Z"},{args:["unix"],result:"1746144000000"}]},envTool:{name:"env",description:"Returns the value of an environment variable",inputSchema:{key:y.z.string().describe("Environment variable name")},handler:async({key:o})=>f(process.env[o]??""),examples:[{args:["HOME"],result:"/Users/julong"},{args:["NODE_ENV"],result:"development"}],guidelines:["`envTool` returns an empty string when the variable is not set"]},uuidTool:{name:"uuid",description:"Generates a random UUID v4",inputSchema:{},handler:async()=>f((0,b.randomUUID)()),examples:[{args:[],result:"550e8400-e29b-41d4-a716-446655440000"}]}},I=d.echoTool,L=d.timestampTool,J=d.envTool,G=d.uuidTool;0&&(module.exports={generateReadmeSkills,generateSkillMarkdown,tools});
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkN4RVWSPCcjs = require('./chunk-N4RVWSPC.cjs');exports.generateReadmeSkills = _chunkN4RVWSPCcjs.f; exports.generateSkillMarkdown = _chunkN4RVWSPCcjs.e; exports.tools = _chunkN4RVWSPCcjs.g;
package/dist/index.js CHANGED
@@ -1,63 +1 @@
1
- function f(s){return{content:[{type:"text",text:s}]}}import{McpServer as U}from"@modelcontextprotocol/sdk/server/mcp.js";import{StdioServerTransport as P}from"@modelcontextprotocol/sdk/server/stdio.js";import{z as J}from"zod";import{z as r}from"zod";function $(s){let{binName:o,description:n,tools:t}=s;return`---
2
- name: ${o}
3
- description: ${n}
4
- ---
5
-
6
- # ${o}
7
-
8
- \`\`\`sh
9
- ${o} <toolName> [...args]
10
- \`\`\`
11
-
12
- ## Skills
13
-
14
- ${b(t)}
15
-
16
- ## Examples
17
-
18
- ${D(o,t)}
19
-
20
- ## Guidelines
21
-
22
- ${w(o,t)}
23
- `}function b(s){return Object.entries(s).map(([o,n])=>{let t=Object.entries(n.inputSchema).map(([a,e])=>{let l=n.typeLabels?.[a];return`| \`${a}\` | ${j(e,l)} |`}).join(`
24
- `),i=n.typeDefs?Object.entries(n.typeDefs).map(([a,e])=>`
25
-
26
- **\`${a}\`** type definition:
27
- \`\`\`typescript
28
- ${e}
29
- \`\`\``).join(""):"";return`### ${o}
30
-
31
- ${n.description}
32
-
33
- | arg | description |
34
- |-----|-------------|
35
- ${t}${i}`}).join(`
36
-
37
- `)}function j(s,o){let n=s.description??"",t=s,i,a=!1;for(;t instanceof r.ZodOptional||t instanceof r.ZodDefault;){if(t instanceof r.ZodDefault){let l=t.def.defaultValue;i=typeof l=="function"?l():l}t instanceof r.ZodOptional&&(a=!0),t=t.unwrap()}let e=[];if(o&&e.push(`Type: ${o}`),n&&e.push(n),t instanceof r.ZodEnum){let l=t.options.map(m=>`\`${m}\``).join(" \\| ");e.push(l)}return i!==void 0?e.push(`default: \`${String(i)}\``):a&&e.push("optional"),e.join(" \u2014 ")}function D(s,o){let n=[];for(let[t,i]of Object.entries(o))if(i.examples)for(let a of i.examples){let e=[s,t,...a.args].join(" ");n.push(`- \`${e}\` => \`${a.result}\``)}return n.join(`
38
- `)}function w(s,o){let n=[],t=new Set,i=e=>{t.has(e)||(t.add(e),n.push(e))};i("Arguments are positional \u2014 pass them in the order listed in each skill's table");let a=Object.values(o).flatMap(e=>Object.values(e.inputSchema));a.some(e=>h(e,r.ZodNumber))&&i("Numeric args are auto-parsed \u2014 pass as plain numbers (e.g. `10`)"),a.some(e=>h(e,r.ZodArray))&&i('Array args must be valid JSON \u2014 wrap in single quotes on Unix shells (e.g. `\'["a","b"]\'`)'),a.some(e=>e instanceof r.ZodOptional||e instanceof r.ZodDefault)&&i("Optional args with defaults may be omitted");for(let e of Object.values(o))if(e.guidelines)for(let l of e.guidelines)i(l);return i(`Run \`${s}\` with no args to list all available skills`),n.map(e=>`- ${e}`).join(`
39
- `)}function h(s,o){let n=s;for(;n instanceof r.ZodOptional||n instanceof r.ZodDefault;)n=n.unwrap();return n instanceof o}function z(s){let{binName:o,tools:n}=s;return Object.entries(n).map(([t,i])=>A(o,t,i)).join(`
40
-
41
- `)}function A(s,o,n){let t=Object.entries(n.inputSchema),i=t.map(([p,c])=>c instanceof r.ZodOptional||c instanceof r.ZodDefault?`[${p}]`:`<${p}>`).join(" "),a=[s,o,i].filter(Boolean).join(" "),e=t.map(([p,c])=>{let y=n.typeLabels?.[p],u=Z(c,y),g=O(c);return`| \`${p}\` | ${u} | ${g} |`}).join(`
42
- `),l=n.examples??[],m="";if(l.length>0){let p=l.map(u=>[s,o,...u.args].join(" ")),c=Math.max(...p.map(u=>u.length));m=`
43
-
44
- \`\`\`sh
45
- ${l.map((u,g)=>`${p[g].padEnd(c)} # ${u.result}`).join(`
46
- `)}
47
- \`\`\``}let S=n.typeDefs?Object.entries(n.typeDefs).map(([p,c])=>`
48
-
49
- **\`${p}\`** type definition:
50
-
51
- \`\`\`typescript
52
- ${c}
53
- \`\`\``).join(""):"",x=e?`
54
-
55
- | arg | type | description |
56
- |-----|------|-------------|
57
- ${e}`:"";return`#### \`${o}\`
58
-
59
- ${n.description}.
60
-
61
- \`\`\`sh
62
- ${a}
63
- \`\`\`${x}${S}${m}`}function Z(s,o){if(o)return o;let n=s;for(;n instanceof r.ZodOptional||n instanceof r.ZodDefault;)n=n.unwrap();return n instanceof r.ZodEnum?n.options.map(t=>`\`${t}\``).join(" \\| "):n instanceof r.ZodNumber?"number":n instanceof r.ZodString?"string":n instanceof r.ZodBoolean?"boolean":n instanceof r.ZodArray?"JSON string (array)":n instanceof r.ZodUnion?n.options.map(i=>Z(i)).join(" \\| "):n instanceof r.ZodRecord?"JSON object":"unknown"}function O(s){let o=s.description??"",n=s,t,i=!1;for(;n instanceof r.ZodOptional||n instanceof r.ZodDefault;){if(n instanceof r.ZodDefault){let a=n.def.defaultValue;t=typeof a=="function"?a():a}n instanceof r.ZodOptional&&(i=!0),n=n.unwrap()}return t!==void 0?`${o} (default: \`${String(t)}\`)`:i?`${o} (optional)`:o}import{z as T}from"zod";import{randomUUID as k}from"crypto";var d={echoTool:{name:"echo",description:"Returns the message as-is",inputSchema:{message:T.string().describe("Message to echo")},handler:async({message:s})=>f(s),examples:[{args:['"hello world"'],result:"hello world"}]},timestampTool:{name:"timestamp",description:"Returns the current UTC timestamp",inputSchema:{format:T.enum(["iso","unix"]).default("iso").describe("Timestamp format")},handler:async({format:s})=>{let o=s==="unix"?String(Date.now()):new Date().toISOString();return f(o)},examples:[{args:[],result:"2026-05-02T00:00:00.000Z"},{args:["unix"],result:"1746144000000"}]},envTool:{name:"env",description:"Returns the value of an environment variable",inputSchema:{key:T.string().describe("Environment variable name")},handler:async({key:s})=>f(process.env[s]??""),examples:[{args:["HOME"],result:"/Users/julong"},{args:["NODE_ENV"],result:"development"}],guidelines:["`envTool` returns an empty string when the variable is not set"]},uuidTool:{name:"uuid",description:"Generates a random UUID v4",inputSchema:{},handler:async()=>f(k()),examples:[{args:[],result:"550e8400-e29b-41d4-a716-446655440000"}]}},v=d.echoTool,R=d.timestampTool,N=d.envTool,E=d.uuidTool;export{z as generateReadmeSkills,$ as generateSkillMarkdown,d as tools};
1
+ import{e,f as o,g as r}from"./chunk-GSILIFEX.js";export{o as generateReadmeSkills,e as generateSkillMarkdown,r as tools};
package/dist/server.cjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- "use strict";function o(e){return{content:[{type:"text",text:e}]}}var u=require("@modelcontextprotocol/sdk/server/mcp.js"),d=require("@modelcontextprotocol/sdk/server/stdio.js");function f(e,n){let c=new u.McpServer(e);for(let s of n)c.registerTool(s.name,{description:s.description,inputSchema:s.inputSchema},s.handler);return c}async function m(e){let n=new d.StdioServerTransport;await e.connect(n)}var g=require("zod");var T=require("zod");var r=require("zod"),y=require("crypto"),t={echoTool:{name:"echo",description:"Returns the message as-is",inputSchema:{message:r.z.string().describe("Message to echo")},handler:async({message:e})=>o(e),examples:[{args:['"hello world"'],result:"hello world"}]},timestampTool:{name:"timestamp",description:"Returns the current UTC timestamp",inputSchema:{format:r.z.enum(["iso","unix"]).default("iso").describe("Timestamp format")},handler:async({format:e})=>{let n=e==="unix"?String(Date.now()):new Date().toISOString();return o(n)},examples:[{args:[],result:"2026-05-02T00:00:00.000Z"},{args:["unix"],result:"1746144000000"}]},envTool:{name:"env",description:"Returns the value of an environment variable",inputSchema:{key:r.z.string().describe("Environment variable name")},handler:async({key:e})=>o(process.env[e]??""),examples:[{args:["HOME"],result:"/Users/julong"},{args:["NODE_ENV"],result:"development"}],guidelines:["`envTool` returns an empty string when the variable is not set"]},uuidTool:{name:"uuid",description:"Generates a random UUID v4",inputSchema:{},handler:async()=>o((0,y.randomUUID)()),examples:[{args:[],result:"550e8400-e29b-41d4-a716-446655440000"}]}},i=t.echoTool,a=t.timestampTool,l=t.envTool,p=t.uuidTool;var h=f({name:"mono-rele2-core",version:"1.0.0"},[i,a,l,p]);m(h).catch(e=>{console.error("[core] server error:",e),process.exit(1)});
2
+ "use strict";var _chunkN4RVWSPCcjs = require('./chunk-N4RVWSPC.cjs');var i=_chunkN4RVWSPCcjs.a.call(void 0, {name:"mono-rele2-core",version:"1.0.0"},[_chunkN4RVWSPCcjs.h,_chunkN4RVWSPCcjs.i,_chunkN4RVWSPCcjs.j,_chunkN4RVWSPCcjs.k]);_chunkN4RVWSPCcjs.b.call(void 0, i).catch(m=>{console.error("[core] server error:",m),process.exit(1)});
package/dist/server.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- function o(e){return{content:[{type:"text",text:e}]}}import{McpServer as f}from"@modelcontextprotocol/sdk/server/mcp.js";import{StdioServerTransport as m}from"@modelcontextprotocol/sdk/server/stdio.js";function u(e,n){let c=new f(e);for(let s of n)c.registerTool(s.name,{description:s.description,inputSchema:s.inputSchema},s.handler);return c}async function d(e){let n=new m;await e.connect(n)}import{z as b}from"zod";import{z as w}from"zod";import{z as r}from"zod";import{randomUUID as y}from"crypto";var t={echoTool:{name:"echo",description:"Returns the message as-is",inputSchema:{message:r.string().describe("Message to echo")},handler:async({message:e})=>o(e),examples:[{args:['"hello world"'],result:"hello world"}]},timestampTool:{name:"timestamp",description:"Returns the current UTC timestamp",inputSchema:{format:r.enum(["iso","unix"]).default("iso").describe("Timestamp format")},handler:async({format:e})=>{let n=e==="unix"?String(Date.now()):new Date().toISOString();return o(n)},examples:[{args:[],result:"2026-05-02T00:00:00.000Z"},{args:["unix"],result:"1746144000000"}]},envTool:{name:"env",description:"Returns the value of an environment variable",inputSchema:{key:r.string().describe("Environment variable name")},handler:async({key:e})=>o(process.env[e]??""),examples:[{args:["HOME"],result:"/Users/julong"},{args:["NODE_ENV"],result:"development"}],guidelines:["`envTool` returns an empty string when the variable is not set"]},uuidTool:{name:"uuid",description:"Generates a random UUID v4",inputSchema:{},handler:async()=>o(y()),examples:[{args:[],result:"550e8400-e29b-41d4-a716-446655440000"}]}},i=t.echoTool,a=t.timestampTool,l=t.envTool,p=t.uuidTool;var g=u({name:"mono-rele2-core",version:"1.0.0"},[i,a,l,p]);d(g).catch(e=>{console.error("[core] server error:",e),process.exit(1)});
2
+ import{a as r,b as e,h as o,i as c,j as t,k as s}from"./chunk-GSILIFEX.js";var i=r({name:"mono-rele2-core",version:"1.0.0"},[o,c,t,s]);e(i).catch(m=>{console.error("[core] server error:",m),process.exit(1)});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@julong/mono-rele2-core",
3
- "version": "1.32.0",
3
+ "version": "1.34.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",
@@ -31,7 +31,7 @@
31
31
  "format:check": "prettier --check src/ --check '*.{ts,json,js}'",
32
32
  "readme": "bun ../common/build/update-readme.mjs"
33
33
  },
34
- "dependencies": {
34
+ "devDependencies": {
35
35
  "@modelcontextprotocol/sdk": "^1.29.0",
36
36
  "zod": "^4.4.2"
37
37
  }