@muggleai/mcp 1.0.2 → 1.0.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.
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Execution service types.
3
+ */
4
+ import type { IExecutionProcess } from "./project-types.js";
5
+ /**
6
+ * Studio auth info for electron-app.
7
+ */
8
+ export interface IStudioAuthInfo {
9
+ /** Access token. */
10
+ accessToken: string;
11
+ /** User email. */
12
+ email: string;
13
+ /** User ID. */
14
+ userId: string;
15
+ }
16
+ /**
17
+ * Secret option for action scripts.
18
+ */
19
+ export interface ISecretOption {
20
+ /** Secret ID. */
21
+ id: string;
22
+ /** Secret name. */
23
+ secretName: string;
24
+ /** Secret description. */
25
+ description: string;
26
+ /** Secret source. */
27
+ source?: "agent" | "user";
28
+ }
29
+ /**
30
+ * Workflow file metadata for action scripts.
31
+ */
32
+ export interface IWorkflowFileMetadata {
33
+ /** File ID. */
34
+ id: string;
35
+ /** File path. */
36
+ filePath: string;
37
+ /** File description. */
38
+ description: string;
39
+ /** File tags. */
40
+ tags?: string[];
41
+ }
42
+ /**
43
+ * Early exit info captured when process exits before waitForCompletion is called.
44
+ */
45
+ export interface IEarlyExitInfo {
46
+ /** Exit code from process. */
47
+ code: number | null;
48
+ /** Signal that terminated the process. */
49
+ signal: NodeJS.Signals | null;
50
+ /** Captured stdout. */
51
+ stdout: string;
52
+ /** Captured stderr. */
53
+ stderr: string;
54
+ }
55
+ /**
56
+ * Extended execution process with additional internal tracking.
57
+ */
58
+ export interface IInternalExecutionProcess extends IExecutionProcess {
59
+ /** Timeout timer. */
60
+ timeoutTimer?: ReturnType<typeof setTimeout>;
61
+ /** Inactivity check interval. */
62
+ inactivityCheckInterval?: ReturnType<typeof setInterval>;
63
+ /** Captured stdout from early handlers. */
64
+ capturedStdout: string;
65
+ /** Captured stderr from early handlers. */
66
+ capturedStderr: string;
67
+ /** Early exit info if process exits before waitForCompletion. */
68
+ earlyExitInfo?: IEarlyExitInfo;
69
+ /** Whether the process has exited. */
70
+ hasExited: boolean;
71
+ /** Timestamp of last output (stdout or stderr) received. */
72
+ lastOutputAt: number;
73
+ /** Whether the process was killed due to inactivity. */
74
+ killedDueToInactivity: boolean;
75
+ }
76
+ //# sourceMappingURL=execution-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution-types.d.ts","sourceRoot":"","sources":["../../../src/local-qa/types/execution-types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,oBAAoB;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,iBAAiB;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,mBAAmB;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,0BAA0B;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,qBAAqB;IACrB,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,eAAe;IACf,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,wBAAwB;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB;IACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,8BAA8B;IAC9B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,0CAA0C;IAC1C,MAAM,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;IAC9B,uBAAuB;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,uBAAuB;IACvB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB;IAClE,qBAAqB;IACrB,YAAY,CAAC,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;IAC7C,iCAAiC;IACjC,uBAAuB,CAAC,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;IACzD,2CAA2C;IAC3C,cAAc,EAAE,MAAM,CAAC;IACvB,2CAA2C;IAC3C,cAAc,EAAE,MAAM,CAAC;IACvB,iEAAiE;IACjE,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B,sCAAsC;IACtC,SAAS,EAAE,OAAO,CAAC;IACnB,4DAA4D;IAC5D,YAAY,EAAE,MAAM,CAAC;IACrB,wDAAwD;IACxD,qBAAqB,EAAE,OAAO,CAAC;CAChC"}
@@ -4,6 +4,7 @@
4
4
  export * from "./enums.js";
5
5
  export * from "./auth-types.js";
6
6
  export * from "./config-types.js";
7
+ export * from "./execution-types.js";
7
8
  export * from "./project-types.js";
8
9
  export * from "./storage-params.js";
9
10
  export * from "./tool-types.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/local-qa/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/local-qa/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muggleai/mcp",
3
- "version": "1.0.2",
3
+ "version": "1.0.5",
4
4
  "description": "Unified MCP server for Muggle AI - Cloud QA and Local Testing tools",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -132,7 +132,7 @@ async function downloadElectronApp() {
132
132
  const baseUrl = config.downloadBaseUrl || "https://github.com/multiplex-ai/muggle-ai-mcp/releases/download";
133
133
 
134
134
  const binaryName = getBinaryName();
135
- const downloadUrl = `${baseUrl}/electron-app-v${version}/${binaryName}`;
135
+ const downloadUrl = `${baseUrl}/v${version}/${binaryName}`;
136
136
 
137
137
  const appDir = getElectronAppDir();
138
138
  const versionDir = join(appDir, version);