@muggleai/mcp
Advanced tools
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
| import { z } from "zod"; | ||
| /** | ||
| * Local execution context schema for local-run upload. | ||
| */ | ||
| export declare const LocalExecutionContextInputSchema: z.ZodObject<{ | ||
| originalUrl: z.ZodString; | ||
| productionUrl: z.ZodString; | ||
| runByUserId: z.ZodString; | ||
| machineHostname: z.ZodOptional<z.ZodString>; | ||
| osInfo: z.ZodOptional<z.ZodString>; | ||
| electronAppVersion: z.ZodOptional<z.ZodString>; | ||
| mcpServerVersion: z.ZodOptional<z.ZodString>; | ||
| localExecutionCompletedAt: z.ZodNumber; | ||
| uploadedAt: z.ZodOptional<z.ZodNumber>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| productionUrl: string; | ||
| originalUrl: string; | ||
| runByUserId: string; | ||
| localExecutionCompletedAt: number; | ||
| electronAppVersion?: string | undefined; | ||
| osInfo?: string | undefined; | ||
| mcpServerVersion?: string | undefined; | ||
| machineHostname?: string | undefined; | ||
| uploadedAt?: number | undefined; | ||
| }, { | ||
| productionUrl: string; | ||
| originalUrl: string; | ||
| runByUserId: string; | ||
| localExecutionCompletedAt: number; | ||
| electronAppVersion?: string | undefined; | ||
| osInfo?: string | undefined; | ||
| mcpServerVersion?: string | undefined; | ||
| machineHostname?: string | undefined; | ||
| uploadedAt?: number | undefined; | ||
| }>; | ||
| /** | ||
| * Input schema for remote local-run upload tool. | ||
| */ | ||
| export declare const LocalRunUploadInputSchema: z.ZodObject<{ | ||
| projectId: z.ZodString; | ||
| useCaseId: z.ZodString; | ||
| testCaseId: z.ZodString; | ||
| runType: z.ZodEnum<["generation", "replay"]>; | ||
| productionUrl: z.ZodString; | ||
| localExecutionContext: z.ZodObject<{ | ||
| originalUrl: z.ZodString; | ||
| productionUrl: z.ZodString; | ||
| runByUserId: z.ZodString; | ||
| machineHostname: z.ZodOptional<z.ZodString>; | ||
| osInfo: z.ZodOptional<z.ZodString>; | ||
| electronAppVersion: z.ZodOptional<z.ZodString>; | ||
| mcpServerVersion: z.ZodOptional<z.ZodString>; | ||
| localExecutionCompletedAt: z.ZodNumber; | ||
| uploadedAt: z.ZodOptional<z.ZodNumber>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| productionUrl: string; | ||
| originalUrl: string; | ||
| runByUserId: string; | ||
| localExecutionCompletedAt: number; | ||
| electronAppVersion?: string | undefined; | ||
| osInfo?: string | undefined; | ||
| mcpServerVersion?: string | undefined; | ||
| machineHostname?: string | undefined; | ||
| uploadedAt?: number | undefined; | ||
| }, { | ||
| productionUrl: string; | ||
| originalUrl: string; | ||
| runByUserId: string; | ||
| localExecutionCompletedAt: number; | ||
| electronAppVersion?: string | undefined; | ||
| osInfo?: string | undefined; | ||
| mcpServerVersion?: string | undefined; | ||
| machineHostname?: string | undefined; | ||
| uploadedAt?: number | undefined; | ||
| }>; | ||
| actionScript: z.ZodArray<z.ZodUnknown, "many">; | ||
| status: z.ZodEnum<["passed", "failed"]>; | ||
| executionTimeMs: z.ZodNumber; | ||
| errorMessage: z.ZodOptional<z.ZodString>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| status: "failed" | "passed"; | ||
| runType: "generation" | "replay"; | ||
| projectId: string; | ||
| useCaseId: string; | ||
| productionUrl: string; | ||
| localExecutionContext: { | ||
| productionUrl: string; | ||
| originalUrl: string; | ||
| runByUserId: string; | ||
| localExecutionCompletedAt: number; | ||
| electronAppVersion?: string | undefined; | ||
| osInfo?: string | undefined; | ||
| mcpServerVersion?: string | undefined; | ||
| machineHostname?: string | undefined; | ||
| uploadedAt?: number | undefined; | ||
| }; | ||
| executionTimeMs: number; | ||
| actionScript: unknown[]; | ||
| testCaseId: string; | ||
| errorMessage?: string | undefined; | ||
| }, { | ||
| status: "failed" | "passed"; | ||
| runType: "generation" | "replay"; | ||
| projectId: string; | ||
| useCaseId: string; | ||
| productionUrl: string; | ||
| localExecutionContext: { | ||
| productionUrl: string; | ||
| originalUrl: string; | ||
| runByUserId: string; | ||
| localExecutionCompletedAt: number; | ||
| electronAppVersion?: string | undefined; | ||
| osInfo?: string | undefined; | ||
| mcpServerVersion?: string | undefined; | ||
| machineHostname?: string | undefined; | ||
| uploadedAt?: number | undefined; | ||
| }; | ||
| executionTimeMs: number; | ||
| actionScript: unknown[]; | ||
| testCaseId: string; | ||
| errorMessage?: string | undefined; | ||
| }>; | ||
| //# sourceMappingURL=local-run-schemas.d.ts.map |
| {"version":3,"file":"local-run-schemas.d.ts","sourceRoot":"","sources":["../../../src/qa/contracts/local-run-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU3C,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWpC,CAAC"} |
+1
-1
| #!/usr/bin/env node | ||
| import { getLogger, getConfig, getQaTools, registerTools, getLocalQaTools, createUnifiedMcpServer, startStdioServer, getElectronAppVersion, getDownloadBaseUrl, getElectronAppDir, isElectronAppInstalled, getElectronAppChecksums, performLogin, performLogout, getAuthService, hasApiKey, getDataDir, getBundledElectronAppVersion, getElectronAppVersionSource, getCredentialsFilePath, __require } from './chunk-HOXCZIJC.js'; | ||
| import { getLogger, getConfig, getQaTools, registerTools, getLocalQaTools, createUnifiedMcpServer, startStdioServer, getElectronAppVersion, getDownloadBaseUrl, getElectronAppDir, isElectronAppInstalled, getElectronAppChecksums, performLogin, performLogout, getAuthService, hasApiKey, getDataDir, getBundledElectronAppVersion, getElectronAppVersionSource, getCredentialsFilePath, __require } from './chunk-DGEO3CP2.js'; | ||
| import * as fs from 'fs'; | ||
@@ -4,0 +4,0 @@ import { readFileSync, existsSync, rmSync, mkdirSync, createWriteStream, readdirSync, writeFileSync, statSync } from 'fs'; |
+2
-2
@@ -1,3 +0,3 @@ | ||
| import { __export, toolRequiresAuth, startDeviceCodeFlow, saveCredentials, saveApiKey, resetLogger, resetConfig, pollDeviceCode, performLogout, performLogin, openBrowserUrl, loadCredentials, isElectronAppInstalled, isCredentialsExpired, hasApiKey, getValidCredentials, getLogger, getElectronAppVersionSource, getElectronAppVersion, getElectronAppDir, getElectronAppChecksums, getDownloadBaseUrl, getDataDir, getCredentialsFilePath, getConfig, getCallerCredentialsAsync, getCallerCredentials, getBundledElectronAppVersion, getApiKey, deleteCredentials, createChildLogger, createApiKeyWithToken } from './chunk-HOXCZIJC.js'; | ||
| export { createChildLogger, createUnifiedMcpServer, getConfig, getLocalQaTools, getLogger, getQaTools, local_qa_exports as localQa, qa_exports as qa, server_exports as server } from './chunk-HOXCZIJC.js'; | ||
| import { __export, toolRequiresAuth, startDeviceCodeFlow, saveCredentials, saveApiKey, resetLogger, resetConfig, pollDeviceCode, performLogout, performLogin, openBrowserUrl, loadCredentials, isElectronAppInstalled, isCredentialsExpired, hasApiKey, getValidCredentials, getLogger, getElectronAppVersionSource, getElectronAppVersion, getElectronAppDir, getElectronAppChecksums, getDownloadBaseUrl, getDataDir, getCredentialsFilePath, getConfig, getCallerCredentialsAsync, getCallerCredentials, getBundledElectronAppVersion, getApiKey, deleteCredentials, createChildLogger, createApiKeyWithToken } from './chunk-DGEO3CP2.js'; | ||
| export { createChildLogger, createUnifiedMcpServer, getConfig, getLocalQaTools, getLogger, getQaTools, local_qa_exports as localQa, qa_exports as qa, server_exports as server } from './chunk-DGEO3CP2.js'; | ||
@@ -4,0 +4,0 @@ // src/shared/index.ts |
@@ -34,4 +34,10 @@ /** | ||
| url: z.ZodOptional<z.ZodString>; | ||
| /** Cloud project ID (required for electron workflow context). */ | ||
| projectId: z.ZodString; | ||
| /** Cloud use case ID (required for electron workflow context). */ | ||
| useCaseId: z.ZodString; | ||
| }, "strip", z.ZodTypeAny, { | ||
| id: string; | ||
| projectId: string; | ||
| useCaseId: string; | ||
| goal: string; | ||
@@ -45,2 +51,4 @@ title: string; | ||
| id: string; | ||
| projectId: string; | ||
| useCaseId: string; | ||
| goal: string; | ||
@@ -69,4 +77,10 @@ title: string; | ||
| url: z.ZodOptional<z.ZodString>; | ||
| /** Cloud project ID (required for electron workflow context). */ | ||
| projectId: z.ZodString; | ||
| /** Cloud use case ID (required for electron workflow context). */ | ||
| useCaseId: z.ZodString; | ||
| }, "strip", z.ZodTypeAny, { | ||
| id: string; | ||
| projectId: string; | ||
| useCaseId: string; | ||
| name: string; | ||
@@ -78,2 +92,4 @@ actionScript: unknown[]; | ||
| id: string; | ||
| projectId: string; | ||
| useCaseId: string; | ||
| name: string; | ||
@@ -106,4 +122,10 @@ actionScript: unknown[]; | ||
| url: z.ZodOptional<z.ZodString>; | ||
| /** Cloud project ID (required for electron workflow context). */ | ||
| projectId: z.ZodString; | ||
| /** Cloud use case ID (required for electron workflow context). */ | ||
| useCaseId: z.ZodString; | ||
| }, "strip", z.ZodTypeAny, { | ||
| id: string; | ||
| projectId: string; | ||
| useCaseId: string; | ||
| goal: string; | ||
@@ -117,2 +139,4 @@ title: string; | ||
| id: string; | ||
| projectId: string; | ||
| useCaseId: string; | ||
| goal: string; | ||
@@ -135,2 +159,4 @@ title: string; | ||
| id: string; | ||
| projectId: string; | ||
| useCaseId: string; | ||
| goal: string; | ||
@@ -149,2 +175,4 @@ title: string; | ||
| id: string; | ||
| projectId: string; | ||
| useCaseId: string; | ||
| goal: string; | ||
@@ -178,4 +206,10 @@ title: string; | ||
| url: z.ZodOptional<z.ZodString>; | ||
| /** Cloud project ID (required for electron workflow context). */ | ||
| projectId: z.ZodString; | ||
| /** Cloud use case ID (required for electron workflow context). */ | ||
| useCaseId: z.ZodString; | ||
| }, "strip", z.ZodTypeAny, { | ||
| id: string; | ||
| projectId: string; | ||
| useCaseId: string; | ||
| name: string; | ||
@@ -187,2 +221,4 @@ actionScript: unknown[]; | ||
| id: string; | ||
| projectId: string; | ||
| useCaseId: string; | ||
| name: string; | ||
@@ -204,2 +240,4 @@ actionScript: unknown[]; | ||
| id: string; | ||
| projectId: string; | ||
| useCaseId: string; | ||
| name: string; | ||
@@ -216,2 +254,4 @@ actionScript: unknown[]; | ||
| id: string; | ||
| projectId: string; | ||
| useCaseId: string; | ||
| name: string; | ||
@@ -218,0 +258,0 @@ actionScript: unknown[]; |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"project-schemas.d.ts","sourceRoot":"","sources":["../../../src/local-qa/contracts/project-schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;GAGG;AACH,eAAO,MAAM,qBAAqB;IAChC,0BAA0B;;IAE1B,uBAAuB;;IAEvB,iBAAiB;;IAEjB,uBAAuB;;IAEvB,gCAAgC;;IAEhC,4CAA4C;;IAE5C,gEAAgE;;;;;;;;;;;;;;;;;;EAEhE,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAMpE;;;GAGG;AACH,eAAO,MAAM,uBAAuB;IAClC,4BAA4B;;IAE5B,mBAAmB;;IAEnB,iDAAiD;;IAEjD,2BAA2B;;IAE3B,gEAAgE;;;;;;;;;;;;;;EAEhE,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAMxE;;;GAGG;AACH,eAAO,MAAM,gCAAgC;IAC3C,+CAA+C;;QAlD/C,0BAA0B;;QAE1B,uBAAuB;;QAEvB,iBAAiB;;QAEjB,uBAAuB;;QAEvB,gCAAgC;;QAEhC,4CAA4C;;QAE5C,gEAAgE;;;;;;;;;;;;;;;;;;;IAwChE,iCAAiC;;IAEjC,gDAAgD;;IAEhD,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAExB,CAAC;AAEH,MAAM,MAAM,0BAA0B,G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IACG,mBAAmB,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IA2CnD;;OAEG;IACH,MAAM,IAAI,OAAO;CAmBlB;AAKD;;GAEG;AACH,wBAAgB,cAAc,IAAI,WAAW,CAG5C;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAEvC"} |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"execution-service.d.ts","sourceRoot":"","sources":["../../../src/local-qa/services/execution-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAOH,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAE1F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AA0BvE;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,cAAc;IACd,EAAE,EAAE,MAAM,CAAC;IACX,sBAAsB;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB;IAClB,MAAM,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC5B,4BAA4B;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AA+FD;;;;;;;;;;GAUG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE;IAClD,QAAQ,EAAE,eAAe,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,eAAe,CAAC,CA6F3B;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,aAAa,CAAC,MAAM,EAAE;IAC1C,UAAU,EAAE,iBAAiB,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,eAAe,CAAC,CAwE3B;AAmCD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAsBlE;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC,CAKxF"} | ||
| {"version":3,"file":"execution-service.d.ts","sourceRoot":"","sources":["../../../src/local-qa/services/execution-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AASH,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAG1F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAwCvE;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,cAAc;IACd,EAAE,EAAE,MAAM,CAAC;IACX,sBAAsB;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB;IAClB,MAAM,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC5B,4BAA4B;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAkeD;;;;;;;;;;GAUG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE;IAClD,QAAQ,EAAE,eAAe,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,eAAe,CAAC,CAyK3B;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,aAAa,CAAC,MAAM,EAAE;IAC1C,UAAU,EAAE,iBAAiB,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,eAAe,CAAC,CAmI3B;AAmCD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAsBlE;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC,CAKxF"} |
@@ -20,2 +20,23 @@ /** | ||
| /** | ||
| * Local execution context captured during local run execution. | ||
| */ | ||
| export interface ILocalExecutionContext { | ||
| /** URL executed locally (typically localhost). */ | ||
| originalUrl: string; | ||
| /** Cloud production URL associated with the test case/script. */ | ||
| productionUrl: string; | ||
| /** User ID who ran the local execution. */ | ||
| runByUserId: string; | ||
| /** Machine hostname for the local execution environment. */ | ||
| machineHostname?: string; | ||
| /** OS information for local execution environment. */ | ||
| osInfo?: string; | ||
| /** Electron app version used for local execution. */ | ||
| electronAppVersion?: string; | ||
| /** MCP server version used for local execution. */ | ||
| mcpServerVersion?: string; | ||
| /** Local execution completion timestamp (epoch ms). */ | ||
| localExecutionCompletedAt?: number; | ||
| } | ||
| /** | ||
| * Run result record. | ||
@@ -32,6 +53,16 @@ */ | ||
| cloudTestCaseId: string; | ||
| /** Cloud project ID. */ | ||
| projectId: string; | ||
| /** Cloud use case ID. */ | ||
| useCaseId: string; | ||
| /** Local URL used for testing. */ | ||
| localUrl: string; | ||
| /** Cloud production URL for the same test. */ | ||
| productionUrl: string; | ||
| /** Local execution context details. */ | ||
| localExecutionContext: ILocalExecutionContext; | ||
| /** Associated test script ID (if generated). */ | ||
| testScriptId?: string; | ||
| /** Path to run artifacts directory (action script, screenshots, results). */ | ||
| artifactsDir?: string; | ||
| /** Execution time in ms. */ | ||
@@ -45,2 +76,4 @@ executionTimeMs?: number; | ||
| updatedAt: string; | ||
| /** Studio returned result (populated by electron-app after execution). */ | ||
| studioReturnedResult?: unknown; | ||
| } | ||
@@ -107,3 +140,7 @@ /** | ||
| cloudTestCaseId: string; | ||
| projectId: string; | ||
| useCaseId: string; | ||
| localUrl: string; | ||
| productionUrl: string; | ||
| localExecutionContext: ILocalExecutionContext; | ||
| }): IRunResult; | ||
@@ -110,0 +147,0 @@ /** |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"run-result-storage-service.d.ts","sourceRoot":"","sources":["../../../src/local-qa/services/run-result-storage-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAeH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,CAAC;AAExF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,QAAQ,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,qBAAqB;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB;IAChB,OAAO,EAAE,aAAa,CAAC;IACvB,kBAAkB;IAClB,MAAM,EAAE,eAAe,CAAC;IACxB,0BAA0B;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,kCAAkC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4BAA4B;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yBAAyB;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,yBAAyB;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEhF;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,kBAAkB;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,qBAAqB;IACrB,MAAM,EAAE,gBAAgB,CAAC;IACzB,0BAA0B;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB;IACjB,IAAI,CAA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G,gBAAgB;IAmBpB;;OAEG;IACH,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,gBAAgB,GAAG,SAAS;CAezG;AAQD;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,uBAAuB,CAKpE;AAED;;GAEG;AACH,wBAAgB,4BAA4B,IAAI,IAAI,CAEnD"} | ||
| {"version":3,"file":"run-result-storage-service.d.ts","sourceRoot":"","sources":["../../../src/local-qa/services/run-result-storage-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAeH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,CAAC;AAExF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,QAAQ,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,kDAAkD;IAClD,WAAW,EAAE,MAAM,CAAC;IACpB,iEAAiE;IACjE,aAAa,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,4DAA4D;IAC5D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sDAAsD;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qDAAqD;IACrD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mDAAmD;IACnD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,uDAAuD;IACvD,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,qBAAqB;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB;IAChB,OAAO,EAAE,aAAa,CAAC;IACvB,kBAAkB;IAClB,MAAM,EAAE,eAAe,CAAC;IACxB,0BAA0B;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,wBAAwB;IACxB,SAAS,EAAE,MAAM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AA0B,IAAI,uBAAuB,CAKpE;AAED;;GAEG;AACH,wBAAgB,4BAA4B,IAAI,IAAI,CAEnD"} |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"tool-registry.d.ts","sourceRoot":"","sources":["../../../src/local-qa/tools/tool-registry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAuavE;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,aAAa,EAgB1C,CAAC;AASF;;GAEG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAE/D;AAED;;GAEG;AACH,wBAAsB,WAAW,CAC/B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,EACd,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,cAAc,CAAC,CAWzB"} | ||
| {"version":3,"file":"tool-registry.d.ts","sourceRoot":"","sources":["../../../src/local-qa/tools/tool-registry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AA+kBvE;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,aAAa,EAgB1C,CAAC;AASF;;GAEG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAE/D;AAED;;GAEG;AACH,wBAAsB,WAAW,CAC/B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,EACd,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,cAAc,CAAC,CAWzB"} |
+361
-41
@@ -5,2 +5,3 @@ /** | ||
| import { z } from "zod"; | ||
| export * from "./local-run-schemas.js"; | ||
| /** Pagination input schema. */ | ||
@@ -19,4 +20,48 @@ export declare const PaginationInputSchema: z.ZodObject<{ | ||
| export declare const IdSchema: z.ZodString; | ||
| /** Optional memory configuration overrides in workflow params. */ | ||
| export declare const WorkflowMemoryParamsSchema: z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>; | ||
| /** Optional workflow parameters. */ | ||
| export declare const WorkflowParamsSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; | ||
| export declare const WorkflowParamsSchema: z.ZodOptional<z.ZodObject<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, z.ZodTypeAny, "passthrough">>>; | ||
| export declare const ProjectCreateInputSchema: z.ZodObject<{ | ||
@@ -118,6 +163,6 @@ projectName: z.ZodString; | ||
| }, "strip", z.ZodTypeAny, { | ||
| projectId: string; | ||
| name: string; | ||
| url: string; | ||
| description: string; | ||
| projectId: string; | ||
| prdFilePath: string; | ||
@@ -128,6 +173,6 @@ originalFileName: string; | ||
| }, { | ||
| projectId: string; | ||
| name: string; | ||
| url: string; | ||
| description: string; | ||
| projectId: string; | ||
| prdFilePath: string; | ||
@@ -159,12 +204,12 @@ originalFileName: string; | ||
| }, "strip", z.ZodTypeAny, { | ||
| projectId: string; | ||
| name: string; | ||
| value: string; | ||
| description: string; | ||
| projectId: string; | ||
| source?: "user" | "agent" | undefined; | ||
| }, { | ||
| projectId: string; | ||
| name: string; | ||
| value: string; | ||
| description: string; | ||
| projectId: string; | ||
| source?: "user" | "agent" | undefined; | ||
@@ -260,11 +305,11 @@ }>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| projectId: string; | ||
| prompts: { | ||
| instruction: string; | ||
| }[]; | ||
| }, { | ||
| projectId: string; | ||
| }, { | ||
| prompts: { | ||
| instruction: string; | ||
| }[]; | ||
| projectId: string; | ||
| }>; | ||
@@ -340,2 +385,4 @@ export declare const UseCaseUpdateFromPromptInputSchema: z.ZodObject<{ | ||
| }, "strip", z.ZodTypeAny, { | ||
| projectId: string; | ||
| useCaseId: string; | ||
| url: string; | ||
@@ -346,4 +393,2 @@ goal: string; | ||
| description: string; | ||
| projectId: string; | ||
| useCaseId: string; | ||
| status?: "DRAFT" | "ACTIVE" | "DEPRECATED" | "ARCHIVED" | undefined; | ||
@@ -356,2 +401,4 @@ precondition?: string | undefined; | ||
| }, { | ||
| projectId: string; | ||
| useCaseId: string; | ||
| url: string; | ||
@@ -362,4 +409,2 @@ goal: string; | ||
| description: string; | ||
| projectId: string; | ||
| useCaseId: string; | ||
| status?: "DRAFT" | "ACTIVE" | "DEPRECATED" | "ARCHIVED" | undefined; | ||
@@ -412,15 +457,70 @@ precondition?: string | undefined; | ||
| archiveUnapproved: z.ZodOptional<z.ZodBoolean>; | ||
| workflowParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; | ||
| workflowParams: z.ZodOptional<z.ZodObject<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, z.ZodTypeAny, "passthrough">>>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| projectId: string; | ||
| url: string; | ||
| description: string; | ||
| projectId: string; | ||
| archiveUnapproved?: boolean | undefined; | ||
| workflowParams?: Record<string, unknown> | undefined; | ||
| workflowParams?: z.objectOutputType<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, z.ZodTypeAny, "passthrough"> | undefined; | ||
| }, { | ||
| projectId: string; | ||
| url: string; | ||
| description: string; | ||
| projectId: string; | ||
| archiveUnapproved?: boolean | undefined; | ||
| workflowParams?: Record<string, unknown> | undefined; | ||
| workflowParams?: z.objectInputType<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, z.ZodTypeAny, "passthrough"> | undefined; | ||
| }>; | ||
@@ -447,17 +547,72 @@ export declare const WorkflowListRuntimesInputSchema: z.ZodObject<{ | ||
| url: z.ZodString; | ||
| workflowParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; | ||
| workflowParams: z.ZodOptional<z.ZodObject<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, z.ZodTypeAny, "passthrough">>>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| projectId: string; | ||
| useCaseId: string; | ||
| name: string; | ||
| url: string; | ||
| description: string; | ||
| workflowParams?: z.objectOutputType<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, z.ZodTypeAny, "passthrough"> | undefined; | ||
| }, { | ||
| projectId: string; | ||
| useCaseId: string; | ||
| workflowParams?: Record<string, unknown> | undefined; | ||
| }, { | ||
| name: string; | ||
| url: string; | ||
| description: string; | ||
| projectId: string; | ||
| useCaseId: string; | ||
| workflowParams?: Record<string, unknown> | undefined; | ||
| workflowParams?: z.objectInputType<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, z.ZodTypeAny, "passthrough"> | undefined; | ||
| }>; | ||
@@ -474,4 +629,39 @@ export declare const WorkflowStartTestScriptGenerationInputSchema: z.ZodObject<{ | ||
| expectedResult: z.ZodString; | ||
| workflowParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; | ||
| workflowParams: z.ZodOptional<z.ZodObject<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, z.ZodTypeAny, "passthrough">>>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| projectId: string; | ||
| useCaseId: string; | ||
| name: string; | ||
@@ -484,6 +674,17 @@ url: string; | ||
| testCaseId: string; | ||
| workflowParams?: z.objectOutputType<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, z.ZodTypeAny, "passthrough"> | undefined; | ||
| }, { | ||
| projectId: string; | ||
| useCaseId: string; | ||
| workflowParams?: Record<string, unknown> | undefined; | ||
| }, { | ||
| name: string; | ||
@@ -496,5 +697,14 @@ url: string; | ||
| testCaseId: string; | ||
| projectId: string; | ||
| useCaseId: string; | ||
| workflowParams?: Record<string, unknown> | undefined; | ||
| workflowParams?: z.objectInputType<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, z.ZodTypeAny, "passthrough"> | undefined; | ||
| }>; | ||
@@ -514,17 +724,72 @@ export declare const WorkflowGetLatestScriptGenByTestCaseInputSchema: z.ZodObject<{ | ||
| name: z.ZodString; | ||
| workflowParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; | ||
| workflowParams: z.ZodOptional<z.ZodObject<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, z.ZodTypeAny, "passthrough">>>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| projectId: string; | ||
| useCaseId: string; | ||
| testScriptId: string; | ||
| name: string; | ||
| testCaseId: string; | ||
| workflowParams?: z.objectOutputType<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, z.ZodTypeAny, "passthrough"> | undefined; | ||
| }, { | ||
| projectId: string; | ||
| useCaseId: string; | ||
| workflowParams?: Record<string, unknown> | undefined; | ||
| }, { | ||
| testScriptId: string; | ||
| name: string; | ||
| testCaseId: string; | ||
| projectId: string; | ||
| useCaseId: string; | ||
| workflowParams?: Record<string, unknown> | undefined; | ||
| workflowParams?: z.objectInputType<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, z.ZodTypeAny, "passthrough"> | undefined; | ||
| }>; | ||
@@ -540,10 +805,54 @@ export declare const WorkflowStartTestScriptReplayBulkInputSchema: z.ZodObject<{ | ||
| repeatPerTestCase: z.ZodOptional<z.ZodNumber>; | ||
| workflowParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; | ||
| workflowParams: z.ZodOptional<z.ZodObject<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, z.ZodTypeAny, "passthrough">>>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| projectId: string; | ||
| name: string; | ||
| projectId: string; | ||
| intervalSec: number; | ||
| useCaseId?: string | undefined; | ||
| limit?: number | undefined; | ||
| useCaseId?: string | undefined; | ||
| workflowParams?: Record<string, unknown> | undefined; | ||
| workflowParams?: z.objectOutputType<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, z.ZodTypeAny, "passthrough"> | undefined; | ||
| namePrefix?: string | undefined; | ||
@@ -553,8 +862,19 @@ testCaseIds?: string[] | undefined; | ||
| }, { | ||
| projectId: string; | ||
| name: string; | ||
| projectId: string; | ||
| intervalSec: number; | ||
| useCaseId?: string | undefined; | ||
| limit?: number | undefined; | ||
| useCaseId?: string | undefined; | ||
| workflowParams?: Record<string, unknown> | undefined; | ||
| workflowParams?: z.objectInputType<{ | ||
| memory: z.ZodOptional<z.ZodObject<{ | ||
| enableSharedTestMemory: z.ZodOptional<z.ZodBoolean>; | ||
| enableEverMemOS: z.ZodOptional<z.ZodBoolean>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }, { | ||
| enableSharedTestMemory?: boolean | undefined; | ||
| enableEverMemOS?: boolean | undefined; | ||
| }>>; | ||
| }, z.ZodTypeAny, "passthrough"> | undefined; | ||
| namePrefix?: string | undefined; | ||
@@ -561,0 +881,0 @@ testCaseIds?: string[] | undefined; |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/qa/contracts/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,+BAA+B;AAC/B,eAAO,MAAM,qBAAqB;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-1,1 +0,1 @@ | ||
| {"version":3,"file":"tool-registry.d.ts","sourceRoot":"","sources":["../../../src/qa/tools/tool-registry.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAgB,iBAAiB,EAAqB,MAAM,aAAa,CAAC;AA6zCjF,+BAA+B;AAC/B,eAAO,MAAM,oBAAoB,EAAE,iBAAiB,EAanD,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAE3E;AAWD;;;;;;GAMG;AACH,wBAAsB,aAAa,CACjC,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,OAAO,EACd,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,cAAc,CAAC,CAyEzB"} | ||
| {"version":3,"file":"tool-registry.d.ts","sourceRoot":"","sources":["../../../src/qa/tools/tool-registry.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAgB,iBAAiB,EAAqB,MAAM,aAAa,CAAC;AA+1CjF,+BAA+B;AAC/B,eAAO,MAAM,oBAAoB,EAAE,iBAAiB,EAanD,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAE3E;AAWD;;;;;;GAMG;AACH,wBAAsB,aAAa,CACjC,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,OAAO,EACd,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,cAAc,CAAC,CAyEzB"} |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/shared/auth.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAaH,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,uBAAuB,EAC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AAC,EAAE,mBAAmB,CAAC;IACzC,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC,CA4FD;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,IAAI,CASpC;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,kBAAkB,CAiBzD;AAED;;;;;GAKG;AACH,wBAAsB,yBAAyB,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAiB7E;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAuD1D"} |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/shared/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,OAAO,KAAK,EAEV,OAAO,EAGP,sBAAsB,EAEvB,MAAM,YAAY,CAAC;AAkIpB;;;GAGG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAEnC;AAsLD;;;GAGG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAenC;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAGlC;AAQD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAuB9C;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,IAAI,KAAK,GAAG,UAAU,GAAG,SAAS,CAqB5E;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,IAAI,MAAM,CAErD;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,sBAAsB,GAAG,SAAS,CAE5E;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,IAAI,OAAO,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAG1D"} | ||
| {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/shared/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,OAAO,KAAK,EAEV,OAAO,EAGP,sBAAsB,EAEvB,MAAM,YAAY,CAAC;AAgKpB;;;GAGG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAEnC;AA8QD;;;GAGG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAenC;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAGlC;AAQD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAuB9C;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,IAAI,KAAK,GAAG,UAAU,GAAG,SAAS,CAqB5E;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,IAAI,MAAM,CAErD;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,sBAAsB,GAAG,SAAS,CAE5E;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,IAAI,OAAO,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAG1D"} |
@@ -27,2 +27,4 @@ /** | ||
| checksums?: IMuggleConfigChecksums; | ||
| /** Default runtime target baked into the package at build/publish time. */ | ||
| runtimeTargetDefault?: "production" | "dev"; | ||
| } | ||
@@ -29,0 +31,0 @@ /** |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/shared/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,4CAA4C;IAC5C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kCAAkC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4BAA4B;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED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B;IACxB,OAAO,EAAE,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;CACzF"} |
+3
-2
| { | ||
| "name": "@muggleai/mcp", | ||
| "version": "1.0.20", | ||
| "version": "1.0.21", | ||
| "description": "Unified MCP server for Muggle AI - Cloud QA and Local Testing tools", | ||
@@ -29,4 +29,5 @@ "type": "module", | ||
| "muggleConfig": { | ||
| "electronAppVersion": "1.0.6", | ||
| "electronAppVersion": "1.0.8", | ||
| "downloadBaseUrl": "https://github.com/multiplex-ai/muggle-ai-mcp/releases/download", | ||
| "runtimeTargetDefault": "production", | ||
| "checksums": { | ||
@@ -33,0 +34,0 @@ "darwin-arm64": "", |
+268
-9
@@ -10,2 +10,3 @@ #!/usr/bin/env node | ||
| import { | ||
| readFileSync, | ||
| createReadStream, | ||
@@ -17,2 +18,3 @@ createWriteStream, | ||
| rmSync, | ||
| writeFileSync, | ||
| } from "fs"; | ||
@@ -26,4 +28,84 @@ import { homedir, platform } from "os"; | ||
| const VERSION_DIRECTORY_NAME_PATTERN = /^\d+\.\d+\.\d+(?:[-+][A-Za-z0-9.-]+)?$/; | ||
| const CURSOR_SERVER_NAME = "muggle"; | ||
| const INSTALL_METADATA_FILE_NAME = ".install-metadata.json"; | ||
| /** | ||
| * Get the Cursor MCP config path. | ||
| * @returns {string} Path to ~/.cursor/mcp.json | ||
| */ | ||
| function getCursorMcpConfigPath() { | ||
| return join(homedir(), ".cursor", "mcp.json"); | ||
| } | ||
| /** | ||
| * Build the default Cursor server configuration for this package. | ||
| * @returns {{command: string, args: string[]}} Server configuration | ||
| */ | ||
| function buildCursorServerConfig() { | ||
| const localCliPath = join(process.cwd(), "bin", "muggle-mcp.js"); | ||
| return { | ||
| command: "node", | ||
| args: [localCliPath, "serve"], | ||
| }; | ||
| } | ||
| /** | ||
| * Read and parse Cursor mcp.json. | ||
| * @param {string} configPath - Path to mcp.json | ||
| * @returns {Record<string, unknown>} Parsed config object | ||
| */ | ||
| function readCursorConfig(configPath) { | ||
| if (!existsSync(configPath)) { | ||
| return {}; | ||
| } | ||
| const rawConfig = readFileSync(configPath, "utf-8"); | ||
| const parsedConfig = JSON.parse(rawConfig); | ||
| if (typeof parsedConfig !== "object" || parsedConfig === null || Array.isArray(parsedConfig)) { | ||
| throw new Error(`Invalid JSON structure in ${configPath}: expected an object at root`); | ||
| } | ||
| return parsedConfig; | ||
| } | ||
| /** | ||
| * Update ~/.cursor/mcp.json with the muggle server entry. | ||
| * Existing server configurations are preserved. | ||
| */ | ||
| function updateCursorMcpConfig() { | ||
| const configPath = getCursorMcpConfigPath(); | ||
| const cursorDir = join(homedir(), ".cursor"); | ||
| try { | ||
| const parsedConfig = readCursorConfig(configPath); | ||
| const currentMcpServers = parsedConfig.mcpServers; | ||
| let normalizedMcpServers = {}; | ||
| if (currentMcpServers !== undefined) { | ||
| if (typeof currentMcpServers !== "object" || currentMcpServers === null || Array.isArray(currentMcpServers)) { | ||
| throw new Error(`Invalid mcpServers in ${configPath}: expected an object`); | ||
| } | ||
| normalizedMcpServers = currentMcpServers; | ||
| } | ||
| normalizedMcpServers[CURSOR_SERVER_NAME] = buildCursorServerConfig(); | ||
| parsedConfig.mcpServers = normalizedMcpServers; | ||
| mkdirSync(cursorDir, { recursive: true }); | ||
| const prettyJson = `${JSON.stringify(parsedConfig, null, 2)}\n`; | ||
| writeFileSync(configPath, prettyJson, "utf-8"); | ||
| console.log(`Updated Cursor MCP config: ${configPath}`); | ||
| } catch (error) { | ||
| console.error("\n========================================"); | ||
| console.error("ERROR: Failed to update Cursor MCP config"); | ||
| console.error("========================================\n"); | ||
| console.error("Path:", configPath); | ||
| console.error("\nFull error details:"); | ||
| console.error(error instanceof Error ? error.stack || error : error); | ||
| console.error(""); | ||
| } | ||
| } | ||
| /** | ||
| * Get the Muggle AI data directory. | ||
@@ -187,2 +269,137 @@ * @returns {string} Path to ~/.muggle-ai | ||
| /** | ||
| * Get the expected extracted executable path for the current platform. | ||
| * @param {string} versionDir - Version directory path | ||
| * @returns {string} Expected executable path | ||
| */ | ||
| function getExpectedExecutablePath(versionDir) { | ||
| const os = platform(); | ||
| switch (os) { | ||
| case "darwin": | ||
| return join(versionDir, "MuggleAI.app", "Contents", "MacOS", "MuggleAI"); | ||
| case "win32": | ||
| return join(versionDir, "MuggleAI.exe"); | ||
| case "linux": | ||
| return join(versionDir, "MuggleAI"); | ||
| default: | ||
| throw new Error(`Unsupported platform: ${os}`); | ||
| } | ||
| } | ||
| /** | ||
| * Get the metadata file path for an installed version. | ||
| * @param {string} versionDir - Version directory path | ||
| * @returns {string} Metadata file path | ||
| */ | ||
| function getInstallMetadataPath(versionDir) { | ||
| return join(versionDir, INSTALL_METADATA_FILE_NAME); | ||
| } | ||
| /** | ||
| * Read install metadata from disk. | ||
| * @param {string} metadataPath - Metadata file path | ||
| * @returns {Record<string, unknown> | null} Parsed metadata, or null if missing/invalid | ||
| */ | ||
| function readInstallMetadata(metadataPath) { | ||
| if (!existsSync(metadataPath)) { | ||
| return null; | ||
| } | ||
| try { | ||
| const metadataContent = readFileSync(metadataPath, "utf-8"); | ||
| const parsedMetadata = JSON.parse(metadataContent); | ||
| if (typeof parsedMetadata !== "object" || parsedMetadata === null || Array.isArray(parsedMetadata)) { | ||
| return null; | ||
| } | ||
| return parsedMetadata; | ||
| } catch { | ||
| return null; | ||
| } | ||
| } | ||
| /** | ||
| * Persist install metadata to disk. | ||
| * @param {object} params - Metadata fields | ||
| * @param {string} params.metadataPath - Metadata file path | ||
| * @param {string} params.version - Installed version | ||
| * @param {string} params.binaryName - Archive filename | ||
| * @param {string} params.platformKey - Platform key | ||
| * @param {string} params.executableChecksum - Checksum of extracted executable | ||
| * @param {string} params.expectedArchiveChecksum - Configured archive checksum for platform | ||
| */ | ||
| function writeInstallMetadata({ | ||
| metadataPath, | ||
| version, | ||
| binaryName, | ||
| platformKey, | ||
| executableChecksum, | ||
| expectedArchiveChecksum, | ||
| }) { | ||
| const metadata = { | ||
| version: version, | ||
| binaryName: binaryName, | ||
| platformKey: platformKey, | ||
| executableChecksum: executableChecksum, | ||
| expectedArchiveChecksum: expectedArchiveChecksum, | ||
| updatedAt: new Date().toISOString(), | ||
| }; | ||
| writeFileSync(metadataPath, `${JSON.stringify(metadata, null, 2)}\n`, "utf-8"); | ||
| } | ||
| /** | ||
| * Verify existing installed executable and metadata. | ||
| * @param {object} params - Verification params | ||
| * @param {string} params.versionDir - Installed version directory | ||
| * @param {string} params.executablePath - Expected executable path | ||
| * @param {string} params.version - Version string | ||
| * @param {string} params.binaryName - Archive filename | ||
| * @param {string} params.platformKey - Platform key | ||
| * @param {string} params.expectedArchiveChecksum - Configured checksum for downloaded archive | ||
| * @returns {Promise<{valid: boolean, reason: string}>} Verification result | ||
| */ | ||
| async function verifyExistingInstall({ | ||
| versionDir, | ||
| executablePath, | ||
| version, | ||
| binaryName, | ||
| platformKey, | ||
| expectedArchiveChecksum, | ||
| }) { | ||
| const metadataPath = getInstallMetadataPath(versionDir); | ||
| const metadata = readInstallMetadata(metadataPath); | ||
| if (!metadata) { | ||
| return { valid: false, reason: "install metadata is missing or invalid" }; | ||
| } | ||
| if (metadata.version !== version) { | ||
| return { valid: false, reason: "installed metadata version does not match configured version" }; | ||
| } | ||
| if (metadata.binaryName !== binaryName) { | ||
| return { valid: false, reason: "installed metadata binary name does not match current platform archive" }; | ||
| } | ||
| if (metadata.platformKey !== platformKey) { | ||
| return { valid: false, reason: "installed metadata platform key does not match current platform" }; | ||
| } | ||
| if ((metadata.expectedArchiveChecksum || "") !== expectedArchiveChecksum) { | ||
| return { valid: false, reason: "configured archive checksum changed since previous install" }; | ||
| } | ||
| if (typeof metadata.executableChecksum !== "string" || metadata.executableChecksum === "") { | ||
| return { valid: false, reason: "installed metadata executable checksum is missing" }; | ||
| } | ||
| const currentExecutableChecksum = await calculateFileChecksum(executablePath); | ||
| if (currentExecutableChecksum !== metadata.executableChecksum) { | ||
| return { valid: false, reason: "installed executable checksum does not match recorded checksum" }; | ||
| } | ||
| return { valid: true, reason: "installed executable checksum is valid" }; | ||
| } | ||
| /** | ||
| * Download and extract the Electron app. | ||
@@ -199,2 +416,5 @@ */ | ||
| const binaryName = getBinaryName(); | ||
| const checksums = config.checksums || {}; | ||
| const platformKey = getPlatformKey(); | ||
| const expectedChecksum = checksums[platformKey] || ""; | ||
| const downloadUrl = `${baseUrl}/v${version}/${binaryName}`; | ||
@@ -204,8 +424,33 @@ | ||
| const versionDir = join(appDir, version); | ||
| const metadataPath = getInstallMetadataPath(versionDir); | ||
| // Check if already downloaded | ||
| // Check if already downloaded and extracted correctly | ||
| const expectedExecutablePath = getExpectedExecutablePath(versionDir); | ||
| if (existsSync(versionDir)) { | ||
| cleanupNonCurrentVersions({ appDir: appDir, currentVersion: version }); | ||
| console.log(`Electron app v${version} already installed at ${versionDir}`); | ||
| return; | ||
| if (existsSync(expectedExecutablePath)) { | ||
| const existingInstallVerification = await verifyExistingInstall({ | ||
| versionDir: versionDir, | ||
| executablePath: expectedExecutablePath, | ||
| version: version, | ||
| binaryName: binaryName, | ||
| platformKey: platformKey, | ||
| expectedArchiveChecksum: expectedChecksum, | ||
| }); | ||
| if (existingInstallVerification.valid) { | ||
| cleanupNonCurrentVersions({ appDir: appDir, currentVersion: version }); | ||
| console.log(`Electron app v${version} already installed at ${versionDir}`); | ||
| return; | ||
| } | ||
| console.log( | ||
| `Installed Electron app v${version} failed verification (${existingInstallVerification.reason}). Re-downloading...`, | ||
| ); | ||
| rmSync(versionDir, { recursive: true, force: true }); | ||
| } else { | ||
| console.log( | ||
| `Electron app v${version} directory exists but executable is missing. Re-downloading...`, | ||
| ); | ||
| rmSync(versionDir, { recursive: true, force: true }); | ||
| } | ||
| } | ||
@@ -238,7 +483,2 @@ | ||
| // Get expected checksum from config | ||
| const checksums = config.checksums || {}; | ||
| const platformKey = getPlatformKey(); | ||
| const expectedChecksum = checksums[platformKey] || ""; | ||
| // Verify checksum | ||
@@ -275,2 +515,20 @@ const checksumResult = await verifyFileChecksum(tempFile, expectedChecksum); | ||
| if (!existsSync(expectedExecutablePath)) { | ||
| throw new Error( | ||
| `Extraction completed but executable was not found.\n` + | ||
| `Expected path: ${expectedExecutablePath}\n` + | ||
| `Version directory: ${versionDir}`, | ||
| ); | ||
| } | ||
| const executableChecksum = await calculateFileChecksum(expectedExecutablePath); | ||
| writeInstallMetadata({ | ||
| metadataPath: metadataPath, | ||
| version: version, | ||
| binaryName: binaryName, | ||
| platformKey: platformKey, | ||
| executableChecksum: executableChecksum, | ||
| expectedArchiveChecksum: expectedChecksum, | ||
| }); | ||
| cleanupNonCurrentVersions({ appDir: appDir, currentVersion: version }); | ||
@@ -345,2 +603,3 @@ | ||
| // Run postinstall | ||
| updateCursorMcpConfig(); | ||
| downloadElectronApp().catch(console.error); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
985930
13.46%106
1.92%11713
14.32%28
3.7%13
8.33%