@microi.net/cli 5.9.4 → 5.9.5

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 (36) hide show
  1. package/.codebuddy-plugin/marketplace.json +2 -2
  2. package/.codebuddy-plugin/plugin.json +1 -1
  3. package/.codex-plugin/plugin.json +1 -1
  4. package/.mcp.json +1 -1
  5. package/.workbuddy-plugin/marketplace.json +2 -2
  6. package/.workbuddy-plugin/plugin.json +1 -1
  7. package/LICENSE +21 -21
  8. package/README.md +71 -71
  9. package/assets/build-meta.json +6 -6
  10. package/assets/feature-matrix.json +138 -138
  11. package/assets/logo.svg +4 -4
  12. package/cordis.patch.yml +1 -1
  13. package/package.json +1 -1
  14. package/scripts/codex-marketplace.json +20 -20
  15. package/scripts/mcp-codex-stdio-adapter.js +189 -189
  16. package/scripts/mcp-server.js +1 -1
  17. package/scripts/mcp-trae-windows-launcher.cmd +21 -21
  18. package/scripts/microi-cli-mcp.js +7 -7
  19. package/scripts/microi-codex-broker.js +466 -466
  20. package/scripts/microi-codex-router.js +634 -634
  21. package/scripts/microi-skills.meta.json +212 -212
  22. package/skills/.microi-skills-version.json +2 -2
  23. package/skills/.progressive-disclosure-manifest.json +42 -33
  24. package/skills/microi-codex/SKILL.md +11 -6
  25. package/skills/microi-deployment/SKILL.md +6 -4
  26. package/skills/microi-docs-coverage/references/capability-map.md +1 -1
  27. package/skills/microi-microservice/SKILL.md +5 -0
  28. package/skills/microi-system-delivery/SKILL.md +2 -2
  29. package/skills/microi-system-delivery/references/progressive-02-/350/207/252/345/212/250/345/214/226/346/265/213/350/257/225/345/277/205/351/241/273/350/246/206/347/233/226/347/232/204/345/235/221.md +3 -1
  30. package/skills/microi-uniapp-frontend/SKILL.md +3 -1
  31. package/skills/playwright-e2e/SKILL.md +5 -4
  32. package/skills/v8-file-upload/SKILL.md +2 -0
  33. package/skills/v8-mongodb/SKILL.md +2 -1
  34. package/skills/v8-security/SKILL.md +6 -0
  35. package/skills/workspace-conventions/SKILL.md +4 -3
  36. package/skills/workspace-conventions/references/progressive-02-microi-net-api-/346/234/254/345/234/260/345/220/257/345/212/250/347/272/246/345/256/232.md +13 -0
@@ -1,20 +1,20 @@
1
- {
2
- "name": "microi-net",
3
- "interface": {
4
- "displayName": "Microi.Net"
5
- },
6
- "plugins": [
7
- {
8
- "name": "microi",
9
- "source": {
10
- "source": "local",
11
- "path": "./plugins/microi"
12
- },
13
- "policy": {
14
- "installation": "AVAILABLE",
15
- "authentication": "ON_USE"
16
- },
17
- "category": "developer-tools"
18
- }
19
- ]
20
- }
1
+ {
2
+ "name": "microi-net",
3
+ "interface": {
4
+ "displayName": "Microi.Net"
5
+ },
6
+ "plugins": [
7
+ {
8
+ "name": "microi",
9
+ "source": {
10
+ "source": "local",
11
+ "path": "./plugins/microi"
12
+ },
13
+ "policy": {
14
+ "installation": "AVAILABLE",
15
+ "authentication": "ON_USE"
16
+ },
17
+ "category": "developer-tools"
18
+ }
19
+ ]
20
+ }
@@ -1,189 +1,189 @@
1
- #!/usr/bin/env node
2
- /*
3
- * Codex MCP stdio adapter for the bundled Microi MCP server.
4
- *
5
- * The MCP SDK version used by Microi currently speaks newline-delimited
6
- * JSON-RPC over stdio. Some Codex runtimes send and expect Content-Length
7
- * framed JSON-RPC. This adapter bridges both formats without changing the
8
- * normal VS Code/Cursor/Trae/Claude MCP configuration.
9
- */
10
-
11
- const childProcess = require('node:child_process');
12
- const path = require('node:path');
13
-
14
- const target = process.argv[2];
15
- if (!target) {
16
- console.error('[microi-mcp-adapter] Missing target MCP server path.');
17
- process.exit(1);
18
- }
19
-
20
- const child = childProcess.spawn(process.execPath, [target, ...process.argv.slice(3)], {
21
- cwd: process.cwd(),
22
- env: process.env,
23
- stdio: ['pipe', 'pipe', 'pipe'],
24
- windowsHide: true,
25
- });
26
-
27
- let inputBuffer = Buffer.alloc(0);
28
- let outputBuffer = Buffer.alloc(0);
29
- let clientFraming = null; // 'content-length' | 'line'
30
- let shutdownRequested = false;
31
- let requestedExitCode = 0;
32
- let forceExitTimer = null;
33
-
34
- function stopChildAndExit(exitCode = 0) {
35
- if (shutdownRequested) return;
36
- shutdownRequested = true;
37
- requestedExitCode = exitCode;
38
-
39
- if (!child.stdin.destroyed) {
40
- child.stdin.end();
41
- }
42
-
43
- if (child.exitCode !== null) {
44
- process.exit(requestedExitCode);
45
- }
46
-
47
- try {
48
- child.kill('SIGTERM');
49
- } catch {
50
- process.exit(requestedExitCode);
51
- }
52
-
53
- forceExitTimer = setTimeout(() => {
54
- try {
55
- child.kill('SIGKILL');
56
- } catch {
57
- // 子进程可能已在超时边界退出。
58
- }
59
- process.exit(requestedExitCode);
60
- }, 2000);
61
- }
62
-
63
- // Codex 会为每个 MCP 连接启动一个适配器。客户端退出、重载或异常断开时,
64
- // 必须同步终止其子 MCP 服务,否则孤儿进程会持续累积并挤占前端构建内存。
65
- process.stdin.on('end', () => stopChildAndExit(0));
66
- process.stdin.on('error', () => stopChildAndExit(1));
67
- process.stdout.on('error', error => {
68
- stopChildAndExit(error && error.code === 'EPIPE' ? 0 : 1);
69
- });
70
- process.on('disconnect', () => stopChildAndExit(0));
71
- for (const signal of ['SIGINT', 'SIGTERM', 'SIGHUP']) {
72
- process.on(signal, () => stopChildAndExit(0));
73
- }
74
-
75
- const parentPid = process.ppid;
76
- if (parentPid > 1) {
77
- const parentWatchTimer = setInterval(() => {
78
- try {
79
- process.kill(parentPid, 0);
80
- } catch (error) {
81
- if (error && error.code === 'ESRCH') {
82
- stopChildAndExit(0);
83
- }
84
- }
85
- }, 5000);
86
- parentWatchTimer.unref();
87
- }
88
-
89
- process.on('exit', () => {
90
- if (child.exitCode === null) {
91
- try {
92
- child.kill('SIGKILL');
93
- } catch {
94
- // 退出阶段只做尽力清理。
95
- }
96
- }
97
- });
98
-
99
- function writeLineToChild(jsonText) {
100
- if (!child.stdin.destroyed) {
101
- child.stdin.write(jsonText.trimEnd() + '\n');
102
- }
103
- }
104
-
105
- function writeToClient(jsonText) {
106
- const text = jsonText.trim();
107
- if (!text) return;
108
-
109
- if (clientFraming === 'line') {
110
- process.stdout.write(text + '\n');
111
- return;
112
- }
113
-
114
- const bytes = Buffer.byteLength(text, 'utf8');
115
- process.stdout.write(`Content-Length: ${bytes}\r\n\r\n${text}`);
116
- }
117
-
118
- function processInputBuffer() {
119
- while (inputBuffer.length > 0) {
120
- const asText = inputBuffer.toString('utf8');
121
-
122
- if (/^Content-Length:/i.test(asText)) {
123
- clientFraming = 'content-length';
124
- const headerEnd = asText.indexOf('\r\n\r\n');
125
- if (headerEnd < 0) return;
126
-
127
- const header = asText.slice(0, headerEnd);
128
- const match = header.match(/Content-Length:\s*(\d+)/i);
129
- if (!match) {
130
- console.error('[microi-mcp-adapter] Invalid Content-Length header.');
131
- stopChildAndExit(1);
132
- return;
133
- }
134
-
135
- const length = Number(match[1]);
136
- const bodyStart = Buffer.byteLength(asText.slice(0, headerEnd + 4), 'utf8');
137
- if (inputBuffer.length < bodyStart + length) return;
138
-
139
- const body = inputBuffer.slice(bodyStart, bodyStart + length).toString('utf8');
140
- writeLineToChild(body);
141
- inputBuffer = inputBuffer.slice(bodyStart + length);
142
- continue;
143
- }
144
-
145
- clientFraming = clientFraming || 'line';
146
- const newline = inputBuffer.indexOf(0x0a);
147
- if (newline < 0) return;
148
-
149
- const line = inputBuffer.slice(0, newline + 1).toString('utf8').trim();
150
- inputBuffer = inputBuffer.slice(newline + 1);
151
- if (line) {
152
- writeLineToChild(line);
153
- }
154
- }
155
- }
156
-
157
- process.stdin.on('data', chunk => {
158
- inputBuffer = Buffer.concat([inputBuffer, chunk]);
159
- processInputBuffer();
160
- });
161
-
162
- child.stdout.on('data', chunk => {
163
- outputBuffer = Buffer.concat([outputBuffer, chunk]);
164
- let newlineIndex;
165
- while ((newlineIndex = outputBuffer.indexOf(0x0a)) >= 0) {
166
- const line = outputBuffer.slice(0, newlineIndex).toString('utf8').trim();
167
- outputBuffer = outputBuffer.slice(newlineIndex + 1);
168
- if (line) writeToClient(line);
169
- }
170
- });
171
-
172
- child.stderr.on('data', chunk => {
173
- process.stderr.write(chunk);
174
- });
175
-
176
- child.on('exit', code => {
177
- if (forceExitTimer) {
178
- clearTimeout(forceExitTimer);
179
- }
180
- if (outputBuffer.length > 0) {
181
- writeToClient(outputBuffer.toString('utf8'));
182
- }
183
- process.exit(shutdownRequested ? requestedExitCode : (code || 0));
184
- });
185
-
186
- child.on('error', err => {
187
- console.error(`[microi-mcp-adapter] Failed to start ${path.basename(target)}: ${err.message}`);
188
- stopChildAndExit(1);
189
- });
1
+ #!/usr/bin/env node
2
+ /*
3
+ * Codex MCP stdio adapter for the bundled Microi MCP server.
4
+ *
5
+ * The MCP SDK version used by Microi currently speaks newline-delimited
6
+ * JSON-RPC over stdio. Some Codex runtimes send and expect Content-Length
7
+ * framed JSON-RPC. This adapter bridges both formats without changing the
8
+ * normal VS Code/Cursor/Trae/Claude MCP configuration.
9
+ */
10
+
11
+ const childProcess = require('node:child_process');
12
+ const path = require('node:path');
13
+
14
+ const target = process.argv[2];
15
+ if (!target) {
16
+ console.error('[microi-mcp-adapter] Missing target MCP server path.');
17
+ process.exit(1);
18
+ }
19
+
20
+ const child = childProcess.spawn(process.execPath, [target, ...process.argv.slice(3)], {
21
+ cwd: process.cwd(),
22
+ env: process.env,
23
+ stdio: ['pipe', 'pipe', 'pipe'],
24
+ windowsHide: true,
25
+ });
26
+
27
+ let inputBuffer = Buffer.alloc(0);
28
+ let outputBuffer = Buffer.alloc(0);
29
+ let clientFraming = null; // 'content-length' | 'line'
30
+ let shutdownRequested = false;
31
+ let requestedExitCode = 0;
32
+ let forceExitTimer = null;
33
+
34
+ function stopChildAndExit(exitCode = 0) {
35
+ if (shutdownRequested) return;
36
+ shutdownRequested = true;
37
+ requestedExitCode = exitCode;
38
+
39
+ if (!child.stdin.destroyed) {
40
+ child.stdin.end();
41
+ }
42
+
43
+ if (child.exitCode !== null) {
44
+ process.exit(requestedExitCode);
45
+ }
46
+
47
+ try {
48
+ child.kill('SIGTERM');
49
+ } catch {
50
+ process.exit(requestedExitCode);
51
+ }
52
+
53
+ forceExitTimer = setTimeout(() => {
54
+ try {
55
+ child.kill('SIGKILL');
56
+ } catch {
57
+ // 子进程可能已在超时边界退出。
58
+ }
59
+ process.exit(requestedExitCode);
60
+ }, 2000);
61
+ }
62
+
63
+ // Codex 会为每个 MCP 连接启动一个适配器。客户端退出、重载或异常断开时,
64
+ // 必须同步终止其子 MCP 服务,否则孤儿进程会持续累积并挤占前端构建内存。
65
+ process.stdin.on('end', () => stopChildAndExit(0));
66
+ process.stdin.on('error', () => stopChildAndExit(1));
67
+ process.stdout.on('error', error => {
68
+ stopChildAndExit(error && error.code === 'EPIPE' ? 0 : 1);
69
+ });
70
+ process.on('disconnect', () => stopChildAndExit(0));
71
+ for (const signal of ['SIGINT', 'SIGTERM', 'SIGHUP']) {
72
+ process.on(signal, () => stopChildAndExit(0));
73
+ }
74
+
75
+ const parentPid = process.ppid;
76
+ if (parentPid > 1) {
77
+ const parentWatchTimer = setInterval(() => {
78
+ try {
79
+ process.kill(parentPid, 0);
80
+ } catch (error) {
81
+ if (error && error.code === 'ESRCH') {
82
+ stopChildAndExit(0);
83
+ }
84
+ }
85
+ }, 5000);
86
+ parentWatchTimer.unref();
87
+ }
88
+
89
+ process.on('exit', () => {
90
+ if (child.exitCode === null) {
91
+ try {
92
+ child.kill('SIGKILL');
93
+ } catch {
94
+ // 退出阶段只做尽力清理。
95
+ }
96
+ }
97
+ });
98
+
99
+ function writeLineToChild(jsonText) {
100
+ if (!child.stdin.destroyed) {
101
+ child.stdin.write(jsonText.trimEnd() + '\n');
102
+ }
103
+ }
104
+
105
+ function writeToClient(jsonText) {
106
+ const text = jsonText.trim();
107
+ if (!text) return;
108
+
109
+ if (clientFraming === 'line') {
110
+ process.stdout.write(text + '\n');
111
+ return;
112
+ }
113
+
114
+ const bytes = Buffer.byteLength(text, 'utf8');
115
+ process.stdout.write(`Content-Length: ${bytes}\r\n\r\n${text}`);
116
+ }
117
+
118
+ function processInputBuffer() {
119
+ while (inputBuffer.length > 0) {
120
+ const asText = inputBuffer.toString('utf8');
121
+
122
+ if (/^Content-Length:/i.test(asText)) {
123
+ clientFraming = 'content-length';
124
+ const headerEnd = asText.indexOf('\r\n\r\n');
125
+ if (headerEnd < 0) return;
126
+
127
+ const header = asText.slice(0, headerEnd);
128
+ const match = header.match(/Content-Length:\s*(\d+)/i);
129
+ if (!match) {
130
+ console.error('[microi-mcp-adapter] Invalid Content-Length header.');
131
+ stopChildAndExit(1);
132
+ return;
133
+ }
134
+
135
+ const length = Number(match[1]);
136
+ const bodyStart = Buffer.byteLength(asText.slice(0, headerEnd + 4), 'utf8');
137
+ if (inputBuffer.length < bodyStart + length) return;
138
+
139
+ const body = inputBuffer.slice(bodyStart, bodyStart + length).toString('utf8');
140
+ writeLineToChild(body);
141
+ inputBuffer = inputBuffer.slice(bodyStart + length);
142
+ continue;
143
+ }
144
+
145
+ clientFraming = clientFraming || 'line';
146
+ const newline = inputBuffer.indexOf(0x0a);
147
+ if (newline < 0) return;
148
+
149
+ const line = inputBuffer.slice(0, newline + 1).toString('utf8').trim();
150
+ inputBuffer = inputBuffer.slice(newline + 1);
151
+ if (line) {
152
+ writeLineToChild(line);
153
+ }
154
+ }
155
+ }
156
+
157
+ process.stdin.on('data', chunk => {
158
+ inputBuffer = Buffer.concat([inputBuffer, chunk]);
159
+ processInputBuffer();
160
+ });
161
+
162
+ child.stdout.on('data', chunk => {
163
+ outputBuffer = Buffer.concat([outputBuffer, chunk]);
164
+ let newlineIndex;
165
+ while ((newlineIndex = outputBuffer.indexOf(0x0a)) >= 0) {
166
+ const line = outputBuffer.slice(0, newlineIndex).toString('utf8').trim();
167
+ outputBuffer = outputBuffer.slice(newlineIndex + 1);
168
+ if (line) writeToClient(line);
169
+ }
170
+ });
171
+
172
+ child.stderr.on('data', chunk => {
173
+ process.stderr.write(chunk);
174
+ });
175
+
176
+ child.on('exit', code => {
177
+ if (forceExitTimer) {
178
+ clearTimeout(forceExitTimer);
179
+ }
180
+ if (outputBuffer.length > 0) {
181
+ writeToClient(outputBuffer.toString('utf8'));
182
+ }
183
+ process.exit(shutdownRequested ? requestedExitCode : (code || 0));
184
+ });
185
+
186
+ child.on('error', err => {
187
+ console.error(`[microi-mcp-adapter] Failed to start ${path.basename(target)}: ${err.message}`);
188
+ stopChildAndExit(1);
189
+ });
@@ -1,4 +1,4 @@
1
- "use strict";var lN=Object.create;var Gf=Object.defineProperty;var uN=Object.getOwnPropertyDescriptor;var pN=Object.getOwnPropertyNames;var dN=Object.getPrototypeOf,fN=Object.prototype.hasOwnProperty;var k=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Xf=(t,e)=>{for(var r in e)Gf(t,r,{get:e[r],enumerable:!0})},mN=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of pN(e))!fN.call(t,i)&&i!==r&&Gf(t,i,{get:()=>e[i],enumerable:!(n=uN(e,i))||n.enumerable});return t};var Te=(t,e,r)=>(r=t!=null?lN(dN(t)):{},mN(e||!t||!t.__esModule?Gf(r,"default",{value:t,enumerable:!0}):r,t));var to=k((Ine,qu)=>{"use strict";qu.exports=GD;qu.exports.format=P1;qu.exports.parse=$1;var ZD=/\B(?=(\d{3})+(?!\d))/g,KD=/(?:\.0*|(\.[^0]+)0+)$/,fi={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},WD=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function GD(t,e){return typeof t=="string"?$1(t):typeof t=="number"?P1(t,e):null}function P1(t,e){if(!Number.isFinite(t))return null;var r=Math.abs(t),n=e&&e.thousandsSeparator||"",i=e&&e.unitSeparator||"",o=e&&e.decimalPlaces!==void 0?e.decimalPlaces:2,a=!!(e&&e.fixedDecimals),s=e&&e.unit||"";(!s||!fi[s.toLowerCase()])&&(r>=fi.pb?s="PB":r>=fi.tb?s="TB":r>=fi.gb?s="GB":r>=fi.mb?s="MB":r>=fi.kb?s="KB":s="B");var c=t/fi[s.toLowerCase()],l=c.toFixed(o);return a||(l=l.replace(KD,"$1")),n&&(l=l.split(".").map(function(u,p){return p===0?u.replace(ZD,n):u}).join(".")),l+i+s}function $1(t){if(typeof t=="number"&&!isNaN(t))return t;if(typeof t!="string")return null;var e=WD.exec(t),r,n="b";return e?(r=parseFloat(e[1]),n=e[4].toLowerCase()):(r=parseInt(t,10),n="b"),isNaN(r)?null:Math.floor(fi[n]*r)}});var bn=k((Ane,D1)=>{var XD=require("path").relative;D1.exports=r5;var YD=process.cwd();function N1(t,e){for(var r=t.split(/[ ,]+/),n=String(e).toLowerCase(),i=0;i<r.length;i++){var o=r[i];if(o&&(o==="*"||o.toLowerCase()===n))return!0}return!1}function QD(t,e,r){var n=Object.getOwnPropertyDescriptor(t,e),i=n.value;return n.get=function(){return i},n.writable&&(n.set=function(a){return i=a}),delete n.value,delete n.writable,Object.defineProperty(t,e,n),n}function e5(t){for(var e="",r=0;r<t;r++)e+=", arg"+r;return e.substr(2)}function t5(t){var e=this.name+": "+this.namespace;this.message&&(e+=" deprecated "+this.message);for(var r=0;r<t.length;r++)e+=`
1
+ var lN=Object.create;var Gf=Object.defineProperty;var uN=Object.getOwnPropertyDescriptor;var pN=Object.getOwnPropertyNames;var dN=Object.getPrototypeOf,fN=Object.prototype.hasOwnProperty;var k=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Xf=(t,e)=>{for(var r in e)Gf(t,r,{get:e[r],enumerable:!0})},mN=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of pN(e))!fN.call(t,i)&&i!==r&&Gf(t,i,{get:()=>e[i],enumerable:!(n=uN(e,i))||n.enumerable});return t};var Te=(t,e,r)=>(r=t!=null?lN(dN(t)):{},mN(e||!t||!t.__esModule?Gf(r,"default",{value:t,enumerable:!0}):r,t));var to=k((Ine,qu)=>{"use strict";qu.exports=GD;qu.exports.format=P1;qu.exports.parse=$1;var ZD=/\B(?=(\d{3})+(?!\d))/g,KD=/(?:\.0*|(\.[^0]+)0+)$/,fi={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},WD=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function GD(t,e){return typeof t=="string"?$1(t):typeof t=="number"?P1(t,e):null}function P1(t,e){if(!Number.isFinite(t))return null;var r=Math.abs(t),n=e&&e.thousandsSeparator||"",i=e&&e.unitSeparator||"",o=e&&e.decimalPlaces!==void 0?e.decimalPlaces:2,a=!!(e&&e.fixedDecimals),s=e&&e.unit||"";(!s||!fi[s.toLowerCase()])&&(r>=fi.pb?s="PB":r>=fi.tb?s="TB":r>=fi.gb?s="GB":r>=fi.mb?s="MB":r>=fi.kb?s="KB":s="B");var c=t/fi[s.toLowerCase()],l=c.toFixed(o);return a||(l=l.replace(KD,"$1")),n&&(l=l.split(".").map(function(u,p){return p===0?u.replace(ZD,n):u}).join(".")),l+i+s}function $1(t){if(typeof t=="number"&&!isNaN(t))return t;if(typeof t!="string")return null;var e=WD.exec(t),r,n="b";return e?(r=parseFloat(e[1]),n=e[4].toLowerCase()):(r=parseInt(t,10),n="b"),isNaN(r)?null:Math.floor(fi[n]*r)}});var bn=k((Ane,D1)=>{var XD=require("path").relative;D1.exports=r5;var YD=process.cwd();function N1(t,e){for(var r=t.split(/[ ,]+/),n=String(e).toLowerCase(),i=0;i<r.length;i++){var o=r[i];if(o&&(o==="*"||o.toLowerCase()===n))return!0}return!1}function QD(t,e,r){var n=Object.getOwnPropertyDescriptor(t,e),i=n.value;return n.get=function(){return i},n.writable&&(n.set=function(a){return i=a}),delete n.value,delete n.writable,Object.defineProperty(t,e,n),n}function e5(t){for(var e="",r=0;r<t;r++)e+=", arg"+r;return e.substr(2)}function t5(t){var e=this.name+": "+this.namespace;this.message&&(e+=" deprecated "+this.message);for(var r=0;r<t.length;r++)e+=`
2
2
  at `+t[r].toString();return e}function r5(t){if(!t)throw new TypeError("argument namespace is required");var e=Uu(),r=ga(e[1]),n=r[0];function i(o){Vu.call(i,o)}return i._file=n,i._ignored=i5(t),i._namespace=t,i._traced=o5(t),i._warned=Object.create(null),i.function=l5,i.property=u5,i}function n5(t,e){var r=typeof t.listenerCount!="function"?t.listeners(e).length:t.listenerCount(e);return r>0}function i5(t){if(process.noDeprecation)return!0;var e=process.env.NO_DEPRECATION||"";return N1(e,t)}function o5(t){if(process.traceDeprecation)return!0;var e=process.env.TRACE_DEPRECATION||"";return N1(e,t)}function Vu(t,e){var r=n5(process,"deprecation");if(!(!r&&this._ignored)){var n,i,o,a,s=0,c=!1,l=Uu(),u=this._file;for(e?(a=e,o=ga(l[1]),o.name=a.name,u=o[0]):(s=2,a=ga(l[s]),o=a);s<l.length;s++)if(n=ga(l[s]),i=n[0],i===u)c=!0;else if(i===this._file)u=this._file;else if(c)break;var p=n?a.join(":")+"__"+n.join(":"):void 0;if(!(p!==void 0&&p in this._warned)){this._warned[p]=!0;var f=t;if(f||(f=o===a||!o.name?O1(a):O1(o)),r){var m=M1(this._namespace,f,l.slice(s));process.emit("deprecation",m);return}var h=process.stderr.isTTY?s5:a5,g=h.call(this,f,n,l.slice(s));process.stderr.write(g+`
3
3
  `,"utf8")}}}function ga(t){var e=t.getFileName()||"<anonymous>",r=t.getLineNumber(),n=t.getColumnNumber();t.isEval()&&(e=t.getEvalOrigin()+", "+e);var i=[e,r,n];return i.callSite=t,i.name=t.getFunctionName(),i}function O1(t){var e=t.callSite,r=t.name;r||(r="<anonymous@"+xg(t)+">");var n=e.getThis(),i=n&&e.getTypeName();return i==="Object"&&(i=void 0),i==="Function"&&(i=n.name||i),i&&e.getMethodName()?i+"."+r:r}function a5(t,e,r){var n=new Date().toUTCString(),i=n+" "+this._namespace+" deprecated "+t;if(this._traced){for(var o=0;o<r.length;o++)i+=`
4
4
  at `+r[o].toString();return i}return e&&(i+=" at "+xg(e)),i}function s5(t,e,r){var n="\x1B[36;1m"+this._namespace+"\x1B[22;39m \x1B[33;1mdeprecated\x1B[22;39m \x1B[0m"+t+"\x1B[39m";if(this._traced){for(var i=0;i<r.length;i++)n+=`
@@ -1,21 +1,21 @@
1
- @echo off
2
- setlocal
3
-
4
- if "%~1"=="" (
5
- >&2 echo [microi-trae-mcp] Missing Node or Electron runtime path.
6
- exit /b 2
7
- )
8
-
9
- if "%~2"=="" (
10
- >&2 echo [microi-trae-mcp] Missing MCP adapter path.
11
- exit /b 2
12
- )
13
-
14
- if "%~3"=="" (
15
- >&2 echo [microi-trae-mcp] Missing MCP server path.
16
- exit /b 2
17
- )
18
-
19
- call "%~1" "%~2" "%~3"
20
- set "MICROI_MCP_EXIT_CODE=%ERRORLEVEL%"
21
- endlocal & exit /b %MICROI_MCP_EXIT_CODE%
1
+ @echo off
2
+ setlocal
3
+
4
+ if "%~1"=="" (
5
+ >&2 echo [microi-trae-mcp] Missing Node or Electron runtime path.
6
+ exit /b 2
7
+ )
8
+
9
+ if "%~2"=="" (
10
+ >&2 echo [microi-trae-mcp] Missing MCP adapter path.
11
+ exit /b 2
12
+ )
13
+
14
+ if "%~3"=="" (
15
+ >&2 echo [microi-trae-mcp] Missing MCP server path.
16
+ exit /b 2
17
+ )
18
+
19
+ call "%~1" "%~2" "%~3"
20
+ set "MICROI_MCP_EXIT_CODE=%ERRORLEVEL%"
21
+ endlocal & exit /b %MICROI_MCP_EXIT_CODE%
@@ -1,7 +1,7 @@
1
- #!/usr/bin/env node
2
- 'use strict';
3
-
4
- // Keep the configured entry name stable and independent from mcp-server.js.
5
- // Historical VS Code extensions scanned arguments containing that basename
6
- // and rewrote them to their own extension directory during activation.
7
- require('./mcp-server.js');
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ // Keep the configured entry name stable and independent from mcp-server.js.
5
+ // Historical VS Code extensions scanned arguments containing that basename
6
+ // and rewrote them to their own extension directory during activation.
7
+ require('./mcp-server.js');