@pipelab/core-node 1.0.0-beta.22 → 1.0.0-beta.26

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/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # @pipelab/core-node
2
2
 
3
+ ## 1.0.0-beta.26
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @pipelab/shared@1.0.0-beta.22
9
+
10
+ ## 1.0.0-beta.25
11
+
12
+ ### Patch Changes
13
+
14
+ - sd
15
+ - Updated dependencies
16
+ - @pipelab/constants@1.0.0-beta.23
17
+ - @pipelab/shared@1.0.0-beta.21
18
+
19
+ ## 1.0.0-beta.24
20
+
21
+ ### Patch Changes
22
+
23
+ - sd
24
+ - Updated dependencies
25
+ - @pipelab/constants@1.0.0-beta.22
26
+ - @pipelab/shared@1.0.0-beta.20
27
+
28
+ ## 1.0.0-beta.23
29
+
30
+ ### Patch Changes
31
+
32
+ - sd
33
+ - Updated dependencies
34
+ - @pipelab/constants@1.0.0-beta.21
35
+ - @pipelab/shared@1.0.0-beta.19
36
+
3
37
  ## 1.0.0-beta.22
4
38
 
5
39
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"config-CFgGRD9U.mjs","names":["mkdirP","fs"],"sources":["../src/utils/fs-extras.ts","../src/config.ts"],"sourcesContent":["import { createWriteStream } from \"node:fs\";\nimport { execa, Options, Subprocess } from \"execa\";\nimport { mkdir as mkdirP, writeFile, stat, readdir } from \"node:fs/promises\";\nimport { join, dirname } from \"node:path\";\nimport tar from \"tar\";\nimport yauzl from \"yauzl\";\nimport archiver from \"archiver\";\nimport { pipeline } from \"node:stream/promises\";\n\n/**\n * Ensures a directory exists and a file is created with default content if missing.\n */\nexport const ensure = async (filesPath: string, defaultContent = \"{}\") => {\n await mkdirP(dirname(filesPath), { recursive: true });\n try {\n const s = await stat(filesPath);\n if (s.size === 0) {\n await writeFile(filesPath, defaultContent);\n }\n } catch {\n await writeFile(filesPath, defaultContent);\n }\n};\n\n/**\n * Extracts a .tar.gz archive.\n */\nexport async function extractTarGz(archivePath: string, destinationDir: string): Promise<void> {\n await mkdirP(destinationDir, { recursive: true });\n await tar.x({\n file: archivePath,\n cwd: destinationDir,\n });\n}\n\n/**\n * Extracts a .zip archive.\n */\nexport async function extractZip(archivePath: string, destinationDir: string): Promise<void> {\n await mkdirP(destinationDir, { recursive: true });\n return new Promise((resolve, reject) => {\n yauzl.open(archivePath, { lazyEntries: true }, (err, zipfile) => {\n if (err || !zipfile) return reject(err || new Error(\"Could not open zip file\"));\n zipfile.on(\"error\", reject);\n zipfile.readEntry();\n zipfile.on(\"entry\", (entry) => {\n const entryPath = join(destinationDir, entry.fileName);\n if (/\\/$/.test(entry.fileName)) {\n mkdirP(entryPath, { recursive: true })\n .then(() => zipfile.readEntry())\n .catch(reject);\n } else {\n mkdirP(dirname(entryPath), { recursive: true })\n .then(() => {\n zipfile.openReadStream(entry, (err, readStream) => {\n if (err || !readStream)\n return reject(err || new Error(\"Could not open read stream\"));\n readStream.on(\"error\", reject);\n const writeStream = createWriteStream(entryPath);\n writeStream.on(\"error\", reject);\n writeStream.on(\"close\", () => zipfile.readEntry());\n readStream.pipe(writeStream);\n });\n })\n .catch(reject);\n }\n });\n zipfile.on(\"end\", () => resolve());\n });\n });\n}\n\n/**\n * Zips a folder.\n */\nexport const zipFolder = async (\n from: string,\n to: string,\n log: typeof console.log = console.log,\n) => {\n const output = createWriteStream(to);\n const archive = archiver(\"zip\", { zlib: { level: 9 } });\n return new Promise<string>((resolve, reject) => {\n output.on(\"close\", () => {\n log(archive.pointer() + \" total bytes\");\n resolve(to);\n });\n archive.on(\"error\", reject);\n archive.pipe(output);\n archive.directory(from, false);\n archive.finalize();\n });\n};\n\n/**\n * Downloads a file with progress tracking.\n */\nexport interface DownloadHooks {\n onProgress?: (data: { progress: number; downloadedSize: number }) => void;\n}\n\nexport const downloadFile = async (\n url: string,\n localPath: string,\n hooks?: DownloadHooks,\n abortSignal?: AbortSignal,\n): Promise<void> => {\n const response = await fetch(url, { signal: abortSignal });\n if (!response.ok) throw new Error(`Failed to fetch file: ${response.statusText}`);\n const contentLength = response.headers.get(\"content-length\");\n if (!contentLength) throw new Error(\"Content-Length header is missing\");\n const totalSize = parseInt(contentLength, 10);\n let downloadedSize = 0;\n const fileStream = createWriteStream(localPath);\n const progressStream = new TransformStream({\n transform(chunk, controller) {\n downloadedSize += chunk.length;\n const progress = (downloadedSize / totalSize) * 100;\n hooks?.onProgress?.({ progress, downloadedSize });\n controller.enqueue(chunk);\n },\n });\n const readable = response.body?.pipeThrough(progressStream);\n if (!readable) throw new Error(\"Failed to create a readable stream\");\n await pipeline(readable, fileStream);\n};\n\nexport const runWithLiveLogs = async (\n command: string,\n args: string[],\n execaOptions: Options,\n log: typeof console.log,\n hooks?: {\n onStdout?: (data: string, subprocess: Subprocess) => void;\n onStderr?: (data: string, subprocess: Subprocess) => void;\n onExit?: (code: number) => void;\n onCreated?: (subprocess: Subprocess) => void;\n },\n abortSignal?: AbortSignal,\n): Promise<void> => {\n const subprocess = execa(command, args, {\n ...execaOptions,\n stdout: \"pipe\",\n stderr: \"pipe\",\n stdin: \"pipe\",\n env: {\n ...process.env,\n ...execaOptions.env,\n TERM: \"xterm-256color\",\n FORCE_STDERR_LOGGING: \"1\",\n },\n cancelSignal: abortSignal,\n });\n\n hooks?.onCreated?.(subprocess);\n\n subprocess.stdout?.on(\"data\", (data: Buffer) => {\n hooks?.onStdout?.(data.toString(), subprocess);\n });\n\n subprocess.stderr?.on(\"data\", (data: Buffer) => {\n hooks?.onStderr?.(data.toString(), subprocess);\n });\n\n try {\n const { exitCode } = await subprocess;\n hooks?.onExit?.(exitCode ?? 0);\n } catch (error: any) {\n const code = error.exitCode ?? 1;\n hooks?.onExit?.(code);\n throw new Error(`Command failed with exit code ${code}: ${error.message}`);\n }\n};\n\n/**\n * Calculates the total size of a directory recursively.\n */\nexport async function getFolderSize(dirPath: string): Promise<number> {\n try {\n const files = await readdir(dirPath, { withFileTypes: true });\n const ArrayOfPromises = files.map(async (file) => {\n const path = join(dirPath, file.name);\n if (file.isDirectory()) {\n try {\n return await getFolderSize(path);\n } catch {\n return 0;\n }\n }\n try {\n const { size } = await stat(path);\n return size;\n } catch {\n return 0;\n }\n });\n const results = await Promise.all(ArrayOfPromises);\n return results.reduce((acc, size) => acc + size, 0);\n } catch {\n return 0;\n }\n}\n","import { PipelabContext } from \"./context\";\nimport path from \"node:path\";\nimport { ensure } from \"./utils/fs-extras\";\nimport fs from \"node:fs/promises\";\nimport {\n useLogger,\n Migrator,\n AppConfig,\n ConnectionsConfig,\n FileRepo,\n SavedFile,\n appSettingsMigrator,\n connectionsMigrator,\n fileRepoMigrations,\n savedFileMigrator,\n} from \"@pipelab/shared\";\n\nexport const setupConfigFile = async <T>(\n filesPath: string,\n options: { context: PipelabContext; migrator: Migrator<T> },\n) => {\n const ctx = options.context;\n const parsedPath = path.parse(filesPath);\n const migrator = options.migrator;\n\n await ensure(filesPath, JSON.stringify(migrator.defaultValue));\n\n return {\n setConfig: async (config: T) => {\n const { logger } = useLogger();\n try {\n await fs.writeFile(filesPath, JSON.stringify(config));\n return true;\n } catch (e) {\n logger().error(`Error saving config ${parsedPath.name}:`, e);\n return false;\n }\n },\n getConfig: async () => {\n const { logger } = useLogger();\n let content = undefined;\n let originalJson: any = undefined;\n let parseFailed = false;\n\n try {\n content = await fs.readFile(filesPath, \"utf8\");\n if (content !== undefined) {\n originalJson = JSON.parse(content);\n }\n } catch (e) {\n logger().error(`Error reading or parsing config ${parsedPath.name}:`, e);\n parseFailed = true;\n }\n\n let json: any = undefined;\n let migrationFailed = false;\n try {\n if (!parseFailed) {\n json = await migrator.migrate(originalJson, {\n debug: false,\n onStep: async (state: any, version: string) => {\n const versionedPath = path.join(parsedPath.dir, `${parsedPath.name}.v${version}.json`);\n try {\n await fs.writeFile(versionedPath, JSON.stringify(state));\n logger().info(`Intermediate backup created for ${parsedPath.name} at ${versionedPath}`);\n } catch (e) {\n logger().error(\n `Failed to create intermediate backup for ${parsedPath.name} at v${version}:`,\n e,\n );\n }\n },\n });\n } else {\n json = migrator.defaultValue;\n }\n } catch (e) {\n logger().error(`Error migrating config ${parsedPath.name}:`, e);\n migrationFailed = true;\n json = migrator.defaultValue;\n }\n\n const originalVersion = originalJson?.version;\n const newVersion = json?.version;\n\n const shouldSaveBack =\n originalVersion !== newVersion || content === undefined || parseFailed || migrationFailed;\n\n if (shouldSaveBack) {\n if (parseFailed || migrationFailed) {\n try {\n const timestamp = new Date().toISOString().replace(/[:.]/g, \"-\");\n const corruptedPath = path.join(\n parsedPath.dir,\n `${parsedPath.name}.corrupted.${timestamp}.json`,\n );\n const backupContent = parseFailed\n ? content || \"\"\n : JSON.stringify(originalJson, null, 2);\n await fs.writeFile(corruptedPath, backupContent);\n logger().info(`Corrupted config file preserved at ${corruptedPath}`);\n } catch (e) {\n logger().error(`Failed to backup corrupted config ${parsedPath.name}:`, e);\n }\n }\n\n try {\n await fs.writeFile(filesPath, JSON.stringify(json));\n } catch (e) {\n logger().error(`Error saving migrated config ${parsedPath.name}:`, e);\n }\n }\n\n return json as T;\n },\n };\n};\n\nexport const setupSettingsConfigFile = (context: PipelabContext) => {\n return setupConfigFile<AppConfig>(context.getSettingsPath(), {\n context,\n migrator: appSettingsMigrator,\n });\n};\n\nexport const setupConnectionsConfigFile = (context: PipelabContext) => {\n return setupConfigFile<ConnectionsConfig>(context.getConnectionsPath(), {\n context,\n migrator: connectionsMigrator,\n });\n};\n\nexport const setupProjectsConfigFile = (context: PipelabContext) => {\n return setupConfigFile<FileRepo>(context.getProjectsPath(), {\n context,\n migrator: fileRepoMigrations,\n });\n};\n\nexport const setupPipelineConfigFileByName = (name: string, context: PipelabContext) => {\n const filesPath = context.getConfigPath(`${name}.json`);\n return setupConfigFile<SavedFile>(filesPath, {\n context,\n migrator: savedFileMigrator,\n });\n};\n\nexport const setupPipelineConfigFileByPath = (absolutePath: string, context: PipelabContext) => {\n return setupConfigFile<SavedFile>(absolutePath, {\n context,\n migrator: savedFileMigrator,\n });\n};\n\nconst deleteConfigFile = async (filesPath: string) => {\n await fs.rm(filesPath, { force: true });\n};\n\nexport const deletePipelineConfigFileByName = async (name: string, context: PipelabContext) => {\n const filesPath = context.getConfigPath(`${name}.json`);\n await deleteConfigFile(filesPath);\n};\n\nexport const deletePipelineConfigFileByPath = async (absolutePath: string, context: PipelabContext) => {\n await deleteConfigFile(absolutePath);\n};\n"],"mappings":";;;;;;;;;;;;;AAYA,MAAa,SAAS,OAAO,WAAmB,iBAAiB,SAAS;AACxE,OAAMA,MAAO,QAAQ,UAAU,EAAE,EAAE,WAAW,MAAM,CAAC;AACrD,KAAI;AAEF,OADU,MAAM,KAAK,UAAU,EACzB,SAAS,EACb,OAAM,UAAU,WAAW,eAAe;SAEtC;AACN,QAAM,UAAU,WAAW,eAAe;;;;;;AAO9C,eAAsB,aAAa,aAAqB,gBAAuC;AAC7F,OAAMA,MAAO,gBAAgB,EAAE,WAAW,MAAM,CAAC;AACjD,OAAM,IAAI,EAAE;EACV,MAAM;EACN,KAAK;EACN,CAAC;;;;;AAMJ,eAAsB,WAAW,aAAqB,gBAAuC;AAC3F,OAAMA,MAAO,gBAAgB,EAAE,WAAW,MAAM,CAAC;AACjD,QAAO,IAAI,SAAS,SAAS,WAAW;AACtC,QAAM,KAAK,aAAa,EAAE,aAAa,MAAM,GAAG,KAAK,YAAY;AAC/D,OAAI,OAAO,CAAC,QAAS,QAAO,OAAO,uBAAO,IAAI,MAAM,0BAA0B,CAAC;AAC/E,WAAQ,GAAG,SAAS,OAAO;AAC3B,WAAQ,WAAW;AACnB,WAAQ,GAAG,UAAU,UAAU;IAC7B,MAAM,YAAY,KAAK,gBAAgB,MAAM,SAAS;AACtD,QAAI,MAAM,KAAK,MAAM,SAAS,CAC5B,OAAO,WAAW,EAAE,WAAW,MAAM,CAAC,CACnC,WAAW,QAAQ,WAAW,CAAC,CAC/B,MAAM,OA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EAC3C;EACA,UAAU;EACX,CAAC;;AAGJ,MAAa,iCAAiC,cAAsB,YAA4B;AAC9F,QAAO,gBAA2B,cAAc;EAC9C;EACA,UAAU;EACX,CAAC;;AAGJ,MAAM,mBAAmB,OAAO,cAAsB;AACpD,OAAMA,KAAG,GAAG,WAAW,EAAE,OAAO,MAAM,CAAC;;AAGzC,MAAa,iCAAiC,OAAO,MAAc,YAA4B;AAE7F,OAAM,iBADY,QAAQ,cAAc,GAAG,KAAK,OAAO,CACtB;;AAGnC,MAAa,iCAAiC,OAAO,cAAsB,YAA4B;AACrG,OAAM,iBAAiB,aAAa"}
1
+ {"version":3,"file":"config-CFgGRD9U.mjs","names":["mkdirP","fs"],"sources":["../src/utils/fs-extras.ts","../src/config.ts"],"sourcesContent":["import { createWriteStream } from \"node:fs\";\nimport { execa, Options, Subprocess } from \"execa\";\nimport { mkdir as mkdirP, writeFile, stat, readdir } from \"node:fs/promises\";\nimport { join, dirname } from \"node:path\";\nimport tar from \"tar\";\nimport yauzl from \"yauzl\";\nimport archiver from \"archiver\";\nimport { pipeline } from \"node:stream/promises\";\n\n/**\n * Ensures a directory exists and a file is created with default content if missing.\n */\nexport const ensure = async (filesPath: string, defaultContent = \"{}\") => {\n await mkdirP(dirname(filesPath), { recursive: true });\n try {\n const s = await stat(filesPath);\n if (s.size === 0) {\n await writeFile(filesPath, defaultContent);\n }\n } catch {\n await writeFile(filesPath, defaultContent);\n }\n};\n\n/**\n * Extracts a .tar.gz archive.\n */\nexport async function extractTarGz(archivePath: string, destinationDir: string): Promise<void> {\n await mkdirP(destinationDir, { recursive: true });\n await tar.x({\n file: archivePath,\n cwd: destinationDir,\n });\n}\n\n/**\n * Extracts a .zip archive.\n */\nexport async function extractZip(archivePath: string, destinationDir: string): Promise<void> {\n await mkdirP(destinationDir, { recursive: true });\n return new Promise((resolve, reject) => {\n yauzl.open(archivePath, { lazyEntries: true }, (err, zipfile) => {\n if (err || !zipfile) return reject(err || new Error(\"Could not open zip file\"));\n zipfile.on(\"error\", reject);\n zipfile.readEntry();\n zipfile.on(\"entry\", (entry) => {\n const entryPath = join(destinationDir, entry.fileName);\n if (/\\/$/.test(entry.fileName)) {\n mkdirP(entryPath, { recursive: true })\n .then(() => zipfile.readEntry())\n .catch(reject);\n } else {\n mkdirP(dirname(entryPath), { recursive: true })\n .then(() => {\n zipfile.openReadStream(entry, (err, readStream) => {\n if (err || !readStream)\n return reject(err || new Error(\"Could not open read stream\"));\n readStream.on(\"error\", reject);\n const writeStream = createWriteStream(entryPath);\n writeStream.on(\"error\", reject);\n writeStream.on(\"close\", () => zipfile.readEntry());\n readStream.pipe(writeStream);\n });\n })\n .catch(reject);\n }\n });\n zipfile.on(\"end\", () => resolve());\n });\n });\n}\n\n/**\n * Zips a folder.\n */\nexport const zipFolder = async (\n from: string,\n to: string,\n log: typeof console.log = console.log,\n) => {\n const output = createWriteStream(to);\n const archive = archiver(\"zip\", { zlib: { level: 9 } });\n return new Promise<string>((resolve, reject) => {\n output.on(\"close\", () => {\n log(archive.pointer() + \" total bytes\");\n resolve(to);\n });\n archive.on(\"error\", reject);\n archive.pipe(output);\n archive.directory(from, false);\n archive.finalize();\n });\n};\n\n/**\n * Downloads a file with progress tracking.\n */\nexport interface DownloadHooks {\n onProgress?: (data: { progress: number; downloadedSize: number }) => void;\n}\n\nexport const downloadFile = async (\n url: string,\n localPath: string,\n hooks?: DownloadHooks,\n abortSignal?: AbortSignal,\n): Promise<void> => {\n const response = await fetch(url, { signal: abortSignal });\n if (!response.ok) throw new Error(`Failed to fetch file: ${response.statusText}`);\n const contentLength = response.headers.get(\"content-length\");\n if (!contentLength) throw new Error(\"Content-Length header is missing\");\n const totalSize = parseInt(contentLength, 10);\n let downloadedSize = 0;\n const fileStream = createWriteStream(localPath);\n const progressStream = new TransformStream({\n transform(chunk, controller) {\n downloadedSize += chunk.length;\n const progress = (downloadedSize / totalSize) * 100;\n hooks?.onProgress?.({ progress, downloadedSize });\n controller.enqueue(chunk);\n },\n });\n const readable = response.body?.pipeThrough(progressStream);\n if (!readable) throw new Error(\"Failed to create a readable stream\");\n await pipeline(readable, fileStream);\n};\n\nexport const runWithLiveLogs = async (\n command: string,\n args: string[],\n execaOptions: Options,\n log: typeof console.log,\n hooks?: {\n onStdout?: (data: string, subprocess: Subprocess) => void;\n onStderr?: (data: string, subprocess: Subprocess) => void;\n onExit?: (code: number) => void;\n onCreated?: (subprocess: Subprocess) => void;\n },\n abortSignal?: AbortSignal,\n): Promise<void> => {\n const subprocess = execa(command, args, {\n ...execaOptions,\n stdout: \"pipe\",\n stderr: \"pipe\",\n stdin: \"pipe\",\n env: {\n ...process.env,\n ...execaOptions.env,\n TERM: \"xterm-256color\",\n FORCE_STDERR_LOGGING: \"1\",\n },\n cancelSignal: abortSignal,\n });\n\n hooks?.onCreated?.(subprocess);\n\n subprocess.stdout?.on(\"data\", (data: Buffer) => {\n hooks?.onStdout?.(data.toString(), subprocess);\n });\n\n subprocess.stderr?.on(\"data\", (data: Buffer) => {\n hooks?.onStderr?.(data.toString(), subprocess);\n });\n\n try {\n const { exitCode } = await subprocess;\n hooks?.onExit?.(exitCode ?? 0);\n } catch (error: any) {\n const code = error.exitCode ?? 1;\n hooks?.onExit?.(code);\n throw new Error(`Command failed with exit code ${code}: ${error.message}`);\n }\n};\n\n/**\n * Calculates the total size of a directory recursively.\n */\nexport async function getFolderSize(dirPath: string): Promise<number> {\n try {\n const files = await readdir(dirPath, { withFileTypes: true });\n const ArrayOfPromises = files.map(async (file) => {\n const path = join(dirPath, file.name);\n if (file.isDirectory()) {\n try {\n return await getFolderSize(path);\n } catch {\n return 0;\n }\n }\n try {\n const { size } = await stat(path);\n return size;\n } catch {\n return 0;\n }\n });\n const results = await Promise.all(ArrayOfPromises);\n return results.reduce((acc, size) => acc + size, 0);\n } catch {\n return 0;\n }\n}\n","import { PipelabContext } from \"./context\";\nimport path from \"node:path\";\nimport { ensure } from \"./utils/fs-extras\";\nimport fs from \"node:fs/promises\";\nimport {\n useLogger,\n Migrator,\n AppConfig,\n ConnectionsConfig,\n FileRepo,\n SavedFile,\n appSettingsMigrator,\n connectionsMigrator,\n fileRepoMigrations,\n savedFileMigrator,\n} from \"@pipelab/shared\";\n\nexport const setupConfigFile = async <T>(\n filesPath: string,\n options: { context: PipelabContext; migrator: Migrator<T> },\n) => {\n const ctx = options.context;\n const parsedPath = path.parse(filesPath);\n const migrator = options.migrator;\n\n await ensure(filesPath, JSON.stringify(migrator.defaultValue));\n\n return {\n setConfig: async (config: T) => {\n const { logger } = useLogger();\n try {\n await fs.writeFile(filesPath, JSON.stringify(config));\n return true;\n } catch (e) {\n logger().error(`Error saving config ${parsedPath.name}:`, e);\n return false;\n }\n },\n getConfig: async () => {\n const { logger } = useLogger();\n let content = undefined;\n let originalJson: any = undefined;\n let parseFailed = false;\n\n try {\n content = await fs.readFile(filesPath, \"utf8\");\n if (content !== undefined) {\n originalJson = JSON.parse(content);\n }\n } catch (e) {\n logger().error(`Error reading or parsing config ${parsedPath.name}:`, e);\n parseFailed = true;\n }\n\n let json: any = undefined;\n let migrationFailed = false;\n try {\n if (!parseFailed) {\n json = await migrator.migrate(originalJson, {\n debug: false,\n onStep: async (state: any, version: string) => {\n const versionedPath = path.join(\n parsedPath.dir,\n `${parsedPath.name}.v${version}.json`,\n );\n try {\n await fs.writeFile(versionedPath, JSON.stringify(state));\n logger().info(\n `Intermediate backup created for ${parsedPath.name} at ${versionedPath}`,\n );\n } catch (e) {\n logger().error(\n `Failed to create intermediate backup for ${parsedPath.name} at v${version}:`,\n e,\n );\n }\n },\n });\n } else {\n json = migrator.defaultValue;\n }\n } catch (e) {\n logger().error(`Error migrating config ${parsedPath.name}:`, e);\n migrationFailed = true;\n json = migrator.defaultValue;\n }\n\n const originalVersion = originalJson?.version;\n const newVersion = json?.version;\n\n const shouldSaveBack =\n originalVersion !== newVersion || content === undefined || parseFailed || migrationFailed;\n\n if (shouldSaveBack) {\n if (parseFailed || migrationFailed) {\n try {\n const timestamp = new Date().toISOString().replace(/[:.]/g, \"-\");\n const corruptedPath = path.join(\n parsedPath.dir,\n `${parsedPath.name}.corrupted.${timestamp}.json`,\n );\n const backupContent = parseFailed\n ? content || \"\"\n : JSON.stringify(originalJson, null, 2);\n await fs.writeFile(corruptedPath, backupContent);\n logger().info(`Corrupted config file preserved at ${corruptedPath}`);\n } catch (e) {\n logger().error(`Failed to backup corrupted config ${parsedPath.name}:`, e);\n }\n }\n\n try {\n await fs.writeFile(filesPath, JSON.stringify(json));\n } catch (e) {\n logger().error(`Error saving migrated config ${parsedPath.name}:`, e);\n }\n }\n\n return json as T;\n },\n };\n};\n\nexport const setupSettingsConfigFile = (context: PipelabContext) => {\n return setupConfigFile<AppConfig>(context.getSettingsPath(), {\n context,\n migrator: appSettingsMigrator,\n });\n};\n\nexport const setupConnectionsConfigFile = (context: PipelabContext) => {\n return setupConfigFile<ConnectionsConfig>(context.getConnectionsPath(), {\n context,\n migrator: connectionsMigrator,\n });\n};\n\nexport const setupProjectsConfigFile = (context: PipelabContext) => {\n return setupConfigFile<FileRepo>(context.getProjectsPath(), {\n context,\n migrator: fileRepoMigrations,\n });\n};\n\nexport const setupPipelineConfigFileByName = (name: string, context: PipelabContext) => {\n const filesPath = context.getConfigPath(`${name}.json`);\n return setupConfigFile<SavedFile>(filesPath, {\n context,\n migrator: savedFileMigrator,\n });\n};\n\nexport const setupPipelineConfigFileByPath = (absolutePath: string, context: PipelabContext) => {\n return setupConfigFile<SavedFile>(absolutePath, {\n context,\n migrator: savedFileMigrator,\n });\n};\n\nconst deleteConfigFile = async (filesPath: string) => {\n await fs.rm(filesPath, { force: true });\n};\n\nexport const deletePipelineConfigFileByName = async (name: string, context: PipelabContext) => {\n const filesPath = context.getConfigPath(`${name}.json`);\n await deleteConfigFile(filesPath);\n};\n\nexport const deletePipelineConfigFileByPath = async (\n absolutePath: string,\n context: PipelabContext,\n) => {\n await deleteConfigFile(absolutePath);\n};\n"],"mappings":";;;;;;;;;;;;;AAYA,MAAa,SAAS,OA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,OAAM,iBAAiB,aAAa"}
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { SandboxFolder } from "@pipelab/constants";
2
+ import { DEFAULT_NODE_VERSION, DEFAULT_PNPM_VERSION, SandboxFolder } from "@pipelab/constants";
3
3
  import { WebSocket } from "ws";
4
4
  import { Action, Agent, BuildHistoryEntry, Channels, End, Event as Event$1, Events, Expression, ExtractInputsFromAction, ExtractInputsFromEvent, ExtractInputsFromExpression, HandleListenerRendererSendFn, IBuildHistoryStorage, IpcMessage, RendererChannels, RendererData, RendererEnd, RendererEvents, RendererMessage, RequestId, SetOutputActionFn, SetOutputExpressionFn, UpdateStatus, Variable, WebSocketConnectionState, WebSocketEvent, WebSocketHandler, WebSocketSendFunction } from "@pipelab/shared";
5
5
  import * as execa$1 from "execa";
@@ -22,27 +22,28 @@ interface PipelabContextOptions {
22
22
  userDataPath: string;
23
23
  releaseTag?: string;
24
24
  }
25
+ type Join<T extends string[], D extends string> = T extends [] ? "" : T extends [infer F extends string] ? F : T extends [infer F extends string, ...infer R extends string[]] ? `${F}${D}${Join<R, D>}` : string;
25
26
  declare class PipelabContext {
26
27
  readonly userDataPath: string;
27
28
  readonly releaseTag: string;
28
29
  constructor(options: PipelabContextOptions);
29
- getPackagesPath(...subpaths: string[]): string;
30
- getThirdPartyPath(...subpaths: string[]): string;
31
- getConfigPath(...subpaths: string[]): string;
32
- getSettingsPath(): string;
33
- getConnectionsPath(): string;
34
- getProjectsPath(): string;
30
+ getPackagesPath<S extends string[]>(...subpaths: S): `PACKAGES/${Join<S, "/">}`;
31
+ getThirdPartyPath<S extends string[]>(...subpaths: S): `THIRDPARTY/${Join<S, "/">}`;
32
+ getConfigPath<S extends string[]>(...subpaths: S): `CONFIG/${Join<S, "/">}`;
33
+ getSettingsPath(): `CONFIG/settings.json`;
34
+ getConnectionsPath(): `CONFIG/connections.json`;
35
+ getProjectsPath(): `CONFIG/projects.json`;
35
36
  private _cachedSettings;
36
37
  private _cachedSettingsTime;
37
38
  private getSettings;
38
- getTempPath(...subpaths: string[]): string;
39
- createTempFolder(prefix?: string): Promise<string>;
40
- getCachePath(): string;
41
- getCachePath(folder: CacheFolderType, ...subpaths: string[]): string;
42
- getPnpmPath(...subpaths: string[]): string;
43
- getBuildHistoryPath(...subpaths: string[]): string;
44
- getNodePath(version?: any): string;
45
- getPnpmBinPath(version?: any): string;
39
+ getTempPath<S extends string[]>(...subpaths: S): `TEMP/${Join<S, "/">}`;
40
+ createTempFolder<T extends string = "pipelab-">(prefix?: T): Promise<`TEMP/${T}${string}`>;
41
+ getCachePath(): `CACHE/`;
42
+ getCachePath<F extends CacheFolderType, S extends string[]>(folder: F, ...subpaths: S): `CACHE/${F}/${Join<S, "/">}`;
43
+ getPnpmPath<S extends string[]>(...subpaths: S): `PNPM/${Join<S, "/">}`;
44
+ getBuildHistoryPath<S extends string[]>(...subpaths: S): `BUILD_HISTORY/${Join<S, "/">}`;
45
+ getNodePath<V extends string = typeof DEFAULT_NODE_VERSION>(version?: V): `THIRDPARTY/node/${V}/${string}`;
46
+ getPnpmBinPath<V extends string = typeof DEFAULT_PNPM_VERSION>(version?: V): `PACKAGES/pnpm/${V}/bin/pnpm.cjs`;
46
47
  getSandboxFolders(): Array<{
47
48
  name: SandboxFolder;
48
49
  label: string;
@@ -281,7 +282,7 @@ declare function runPnpm(cwd: string, options: {
281
282
  env: {
282
283
  NODE_ENV: string;
283
284
  PATH: string | undefined;
284
- PNPM_HOME: string;
285
+ PNPM_HOME: "PNPM/";
285
286
  PNPM_ONLY_ALLOW_TRUSTED_DEPENDENCIES: string;
286
287
  };
287
288
  }>>;
@@ -464,5 +465,11 @@ declare function fetchLatestPackageRelease(packageName: string, options?: FetchR
464
465
  */
465
466
  declare function fetchLatestDesktopRelease(options?: FetchReleaseOptions): Promise<GitHubRelease | null>;
466
467
  //#endregion
467
- export { type Action, ActionRunner, ActionRunnerData, BuildHistoryStorage, CacheFolder, CacheFolderType, ConnectedClient, DownloadHooks, type Event$1 as Event, EventRunner, type Expression, ExpressionRunner, type ExtractInputsFromAction, type ExtractInputsFromEvent, type ExtractInputsFromExpression, FetchOptions, FetchReleaseOptions, GitHubRelease, HandleListener, HandleListenerRenderer, type HandleListenerRendererSendFn, HandleListenerSendFn, ListenerMain, PipelabContext, PipelabContextOptions, PipelabEnv, type RendererChannels, type RendererData, type RendererEnd, type RendererEvents, type RendererMessage, type RequestId, RunOptions, Runner, RunnerCallbackFnArgument, ServeOptions, type SetOutputActionFn, type SetOutputExpressionFn, type UpdateStatus, UseMainAPI, WebSocketServer, WsEvent, builtInPlugins, deletePipelineConfigFileByName, deletePipelineConfigFileByPath, downloadFile, ensure, ensureNodeJS, ensurePNPM, executeGraphWithHistory, extractTarGz, extractZip, fetchLatestDesktopRelease, fetchLatestPackageRelease, fetchPackage, fetchPackageReleases, fetchPipelabAsset, fetchPipelabCli, fetchPipelabPlugin, findInstalledPlugins, getDefaultUserDataPath, getFinalPlugins, getFolderSize, handleActionExecute, isDev, isOnline, loadCustomPlugin, loadPipelabPlugin, projectRoot, registerAgentsHandlers, registerAllHandlers, registerConfigHandlers, registerEngineHandlers, registerFsHandlers, registerHistoryHandlers, registerShellHandlers, runPipelineCommand, runPnpm, runWithLiveLogs, sendStartupProgress, sendStartupReady, serveCommand, setupConnectionsConfigFile, setupPipelineConfigFileByName, setupPipelineConfigFileByPath, setupProjectsConfigFile, setupSettingsConfigFile, useAPI, usePluginAPI, webSocketServer, zipFolder };
468
+ //#region src/fs-utils.d.ts
469
+ /**
470
+ * Checks if a path matches a critical user or system directory.
471
+ */
472
+ declare function isPathBlacklisted(pathToCheck: string): boolean;
473
+ //#endregion
474
+ export { type Action, ActionRunner, ActionRunnerData, BuildHistoryStorage, CacheFolder, CacheFolderType, ConnectedClient, DownloadHooks, type Event$1 as Event, EventRunner, type Expression, ExpressionRunner, type ExtractInputsFromAction, type ExtractInputsFromEvent, type ExtractInputsFromExpression, FetchOptions, FetchReleaseOptions, GitHubRelease, HandleListener, HandleListenerRenderer, type HandleListenerRendererSendFn, HandleListenerSendFn, ListenerMain, PipelabContext, PipelabContextOptions, PipelabEnv, type RendererChannels, type RendererData, type RendererEnd, type RendererEvents, type RendererMessage, type RequestId, RunOptions, Runner, RunnerCallbackFnArgument, ServeOptions, type SetOutputActionFn, type SetOutputExpressionFn, type UpdateStatus, UseMainAPI, WebSocketServer, WsEvent, builtInPlugins, deletePipelineConfigFileByName, deletePipelineConfigFileByPath, downloadFile, ensure, ensureNodeJS, ensurePNPM, executeGraphWithHistory, extractTarGz, extractZip, fetchLatestDesktopRelease, fetchLatestPackageRelease, fetchPackage, fetchPackageReleases, fetchPipelabAsset, fetchPipelabCli, fetchPipelabPlugin, findInstalledPlugins, getDefaultUserDataPath, getFinalPlugins, getFolderSize, handleActionExecute, isDev, isOnline, isPathBlacklisted, loadCustomPlugin, loadPipelabPlugin, projectRoot, registerAgentsHandlers, registerAllHandlers, registerConfigHandlers, registerEngineHandlers, registerFsHandlers, registerHistoryHandlers, registerShellHandlers, runPipelineCommand, runPnpm, runWithLiveLogs, sendStartupProgress, sendStartupReady, serveCommand, setupConnectionsConfigFile, setupPipelineConfigFileByName, setupPipelineConfigFileByPath, setupProjectsConfigFile, setupSettingsConfigFile, useAPI, usePluginAPI, webSocketServer, zipFolder };
468
475
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":["DOMEvent","Event","GlobalResponse","Response","GlobalRequest","Request","Electron","Params","Type","K","events","EventEmitter","BrowserWindow","WebContents","Certificate","Details","ContinueActivityDetails","Function","AuthenticationResponseDetails","AuthInfo","Record","NotificationResponse","RenderProcessGoneDetails","Session","ConfigureHostResolverOptions","FocusOptions","ApplicationInfoForProtocolReturnValue","Promise","ProcessMetric","FileIconOptions","NativeImage","GPUFeatureStatus","JumpListSettings","LoginItemSettingsOptions","LoginItemSettings","ImportCertificateOptions","MoveToApplicationsFolderOptions","RelaunchOptions","AboutPanelOptionsOptions","JumpListCategory","Settings","ProxyConfig","Task","Menu","CommandLine","Dock","NodeJS","Error","Date","FeedURLOptions","Point","Rectangle","WillResizeDetails","BaseWindowConstructorOptions","BaseWindow","Buffer","AppDetailsOptions","Size","Partial","View","IgnoreMouseEventsOptions","ProgressBarOptions","ThumbarButton","TitleBarOverlayOptions","TouchBar","VisibleOnAllWorkspacesOptions","NodeEventEmitter","TitleBarOverlay","BrowserViewConstructorOptions","AutoResizeOptions","BrowserWindowConstructorOptions","BrowserView","Opts","LoadFileOptions","LoadURLOptions","WebPreferences","CertificatePrincipal","IncomingMessage","ClientRequestConstructorOptions","UploadProgress","ReadBookmark","Data","TraceBufferUsageReturnValue","TraceConfig","TraceCategoriesAndOptions","Cookie","CookiesGetFilter","CookiesSetDetails","CrashReport","CrashReporterStartOptions","Privileges","SourcesOptions","DesktopCapturerSource","CertificateTrustDialogOptions","MessageBoxOptions","MessageBoxReturnValue","MessageBoxSyncOptions","OpenDialogOptions","OpenDialogReturnValue","OpenDialogSyncOptions","SaveDialogOptions","SaveDialogReturnValue","SaveDialogSyncOptions","PermissionRequest","Accelerator","Product","PurchaseProductOpts","Array","IpcMainInvokeEvent","IpcMainEvent","MessagePortMain","WebFrameMain","IpcRendererEvent","MessagePort","IpcRenderer","JumpListItem","InputEvent","MenuItemConstructorOptions","MenuItem","PopupOptions","SharingItem","MessageEvent","MouseInputEvent","CreateFromBitmapOptions","CreateFromBufferOptions","AddRepresentationOptions","BitmapOptions","ResizeOptions","ToBitmapOptions","ToDataURLOptions","ToPNGOptions","EntryAtIndex","RequestInit","ClientRequest","ResolveHostOptions","ResolvedHost","StartLoggingOptions","NotificationConstructorOptions","NotificationAction","UploadRawData","UploadFile","Options","CPUUsage","MemoryInfo","ProductDiscount","ProductSubscriptionPeriod","ProtocolRequest","ProtocolResponse","ReadableStream","CustomScheme","UploadData","ProtocolResponseUploadData","ResolvedEndpoint","Display","MessageDetails","RegistrationCompletedDetails","ServiceWorkerInfo","FromPartitionOptions","FromPathOptions","Extension","FileSystemAccessRestrictedDetails","HidDeviceAddedDetails","HidDeviceRemovedDetails","HidDeviceRevokedDetails","SelectHidDeviceDetails","SerialPort","SelectUsbDeviceDetails","SerialPortRevokedDetails","USBDevice","UsbDeviceRevokedDetails","DownloadItem","ClearCodeCachesOptions","ClearDataOptions","ClearStorageDataOptions","CreateInterruptedDownloadOptions","DownloadURLOptions","EnableNetworkEmulationOptions","LoadExtensionOptions","PreconnectOptions","BluetoothPairingHandlerHandlerDetails","DevicePermissionHandlerHandlerDetails","DisplayMediaRequestHandlerHandlerRequest","Streams","DisplayMediaRequestHandlerOpts","PermissionCheckHandlerHandlerDetails","FilesystemPermissionRequest","MediaAccessPermissionRequest","OpenExternalPermissionRequest","Config","USBProtectedClassesHandlerHandlerDetails","Cookies","NetLog","Protocol","ServiceWorkers","WebRequest","OpenExternalOptions","ShortcutDetails","AnimationSettings","UserDefaultTypes","TouchBarConstructorOptions","TouchBarButton","TouchBarColorPicker","TouchBarGroup","TouchBarLabel","TouchBarPopover","TouchBarScrubber","TouchBarSegmentedControl","TouchBarSlider","TouchBarSpacer","TouchBarOtherItemsProxy","TouchBarButtonConstructorOptions","TouchBarColorPickerConstructorOptions","TouchBarGroupConstructorOptions","TouchBarLabelConstructorOptions","TouchBarPopoverConstructorOptions","TouchBarScrubberConstructorOptions","ScrubberItem","TouchBarSegmentedControlConstructorOptions","SegmentedControlSegment","TouchBarSliderConstructorOptions","TouchBarSpacerConstructorOptions","Payment","KeyboardEvent","DisplayBalloonOptions","TitleOptions","ForkOptions","UtilityProcess","WebContentsAudioStateChangedEventParams","Input","ContextMenuParams","DidCreateWindowDetails","WebContentsDidRedirectNavigationEventParams","WebContentsDidStartNavigationEventParams","Result","FrameCreatedDetails","LoginAuthenticationResponseDetails","BluetoothDevice","WebContentsWillFrameNavigateEventParams","WebContentsWillNavigateEventParams","WebContentsWillRedirectEventParams","AdjustSelectionOptions","CloseOpts","Parameters","WebSource","FindInPageOptions","SharedWorkerInfo","PrinterInfo","WebRTCUDPPortRange","InsertCSSOptions","OpenDevToolsOptions","WebContentsPrintOptions","PrintToPDFOptions","MouseWheelInputEvent","KeyboardInputEvent","UdpPortRange","HandlerDetails","WindowOpenHandlerResponse","Item","Debugger","IpcMain","NavigationHistory","WebContentsViewConstructorOptions","WebFrame","ResourceUsage","Info","Provider","DefaultFontFamily","WebRequestFilter","OnBeforeRedirectListenerDetails","OnBeforeRequestListenerDetails","CallbackResponse","OnBeforeSendHeadersListenerDetails","BeforeSendResponse","OnCompletedListenerDetails","OnErrorOccurredListenerDetails","OnHeadersReceivedListenerDetails","HeadersReceivedResponse","OnResponseStartedListenerDetails","OnSendHeadersListenerDetails","File","LoadCommitEvent","DidFailLoadEvent","DidFrameFinishLoadEvent","PageTitleUpdatedEvent","PageFaviconUpdatedEvent","ConsoleMessageEvent","FoundInPageEvent","WillNavigateEvent","WillFrameNavigateEvent","DidStartNavigationEvent","DidRedirectNavigationEvent","DidNavigateEvent","DidFrameNavigateEvent","DidNavigateInPageEvent","IpcMessageEvent","RenderProcessGoneEvent","PluginCrashedEvent","DidChangeThemeColorEvent","UpdateTargetUrlEvent","DevtoolsOpenUrlEvent","DevtoolsSearchQueryEvent","ContextMenuEvent","HTMLElementEventMap","HTMLElement","EventListenerOrEventListenerObject","WebviewTagPrintOptions","Uint8Array","Referrer","MediaFlags","EditFlags","HIDDevice","PostBody","Env","FoundInPageResult","LaunchItems","AbortSignal","FileFilter","PaymentDiscount","Margins","MemoryUsageDetails","Video","PageRanges","Clipboard","CrashReporter","Shell","BlinkMemoryInfo","HeapStatistics","SystemMemoryInfo","ExtensionInfo","FilePathWithHeaders","MimeTypedBuffer","ProcessMemoryInfo","Transaction","App","AutoUpdater","ContentTracing","DesktopCapturer","Dialog","GlobalShortcut","InAppPurchase","MessageChannelMain","NativeTheme","Net","Notification","PowerMonitor","PowerSaveBlocker","PushNotifications","SafeStorage","Screen","ShareMenu","SystemPreferences","Tray","WebContentsView","ContextBridge","WebUtils","WebviewTag","ParentPort","preventDefault","defaultPrevented","on","event","accessibilitySupportEnabled","listener","off","once","addListener","removeListener","hasVisibleWindows","type","userInfo","window","webContents","url","error","certificate","isTrusted","callback","isMainFrame","details","authenticationResponseDetails","authInfo","username","password","path","exitCode","launchInfo","argv","workingDirectory","additionalData","certificateList","session","addRecentDocument","clearRecentDocuments","configureHostResolver","options","disableDomainBlockingFor3DAPIs","disableHardwareAcceleration","enableSandbox","exit","focus","getApplicationInfoForProtocol","getApplicationNameForProtocol","getAppMetrics","getAppPath","getBadgeCount","getCurrentActivityType","getFileIcon","getGPUFeatureStatus","getGPUInfo","infoType","getJumpListSettings","getLocale","getLocaleCountryCode","getLoginItemSettings","getName","getPath","name","getPreferredSystemLanguages","getSystemLocale","getVersion","hasSingleInstanceLock","hide","importCertificate","result","invalidateCurrentActivity","isAccessibilitySupportEnabled","isDefaultProtocolClient","protocol","args","isEmojiPanelSupported","isHidden","isInApplicationsFolder","isReady","isSecureKeyboardEntryEnabled","isUnityRunning","moveToApplicationsFolder","quit","relaunch","releaseSingleInstanceLock","removeAsDefaultProtocolClient","requestSingleInstanceLock","resignCurrentActivity","resolveProxy","setAboutPanelOptions","setAccessibilitySupportEnabled","enabled","setActivationPolicy","policy","setAppLogsPath","setAppUserModelId","id","setAsDefaultProtocolClient","setBadgeCount","count","setJumpList","categories","setLoginItemSettings","settings","setName","setPath","setProxy","config","setSecureKeyboardEntryEnabled","setUserActivity","webpageURL","setUserTasks","tasks","show","showAboutPanel","showEmojiPanel","startAccessingSecurityScopedResource","bookmarkData","updateCurrentActivity","whenReady","applicationMenu","badgeCount","commandLine","dock","isPackaged","runningUnderARM64Translation","userAgentFallback","releaseNotes","releaseName","releaseDate","updateURL","checkForUpdates","getFeedURL","quitAndInstall","setFeedURL","isAlwaysOnTop","command","rotation","direction","point","newBounds","constructor","fromId","getAllWindows","getFocusedWindow","addTabbedWindow","baseWindow","blur","center","close","closeFilePreview","destroy","flashFrame","flag","getBackgroundColor","getBounds","getChildWindows","getContentBounds","getContentSize","getContentView","getMaximumSize","getMediaSourceId","getMinimumSize","getNativeWindowHandle","getNormalBounds","getOpacity","getParentWindow","getPosition","getRepresentedFilename","getSize","getTitle","getWindowButtonPosition","hasShadow","hookWindowMessage","message","wParam","lParam","invalidateShadow","isClosable","isDestroyed","isDocumentEdited","isEnabled","isFocusable","isFocused","isFullScreen","isFullScreenable","isHiddenInMissionControl","isKiosk","isMaximizable","isMaximized","isMenuBarAutoHide","isMenuBarVisible","isMinimizable","isMinimized","isModal","isMovable","isNormal","isResizable","isSimpleFullScreen","isTabletMode","isVisible","isVisibleOnAllWorkspaces","isWindowMessageHooked","maximize","mergeAllWindows","minimize","moveAbove","mediaSourceId","moveTabToNewWindow","moveTop","previewFile","displayName","removeMenu","restore","selectNextTab","selectPreviousTab","setAlwaysOnTop","level","relativeLevel","setAppDetails","setAspectRatio","aspectRatio","extraSize","setAutoHideCursor","autoHide","setAutoHideMenuBar","setBackgroundColor","backgroundColor","setBackgroundMaterial","material","setBounds","bounds","animate","setClosable","closable","setContentBounds","setContentProtection","enable","setContentSize","width","height","setContentView","view","setDocumentEdited","edited","setEnabled","setFocusable","focusable","setFullScreen","setFullScreenable","fullscreenable","setHasShadow","setHiddenInMissionControl","hidden","setIcon","icon","setIgnoreMouseEvents","ignore","setKiosk","setMaximizable","maximizable","setMaximumSize","setMenu","menu","setMenuBarVisibility","visible","setMinimizable","minimizable","setMinimumSize","setMovable","movable","setOpacity","opacity","setOverlayIcon","overlay","description","setParentWindow","parent","setPosition","x","y","setProgressBar","progress","setRepresentedFilename","filename","setResizable","resizable","setShape","rects","setSheetOffset","offsetY","offsetX","setSimpleFullScreen","setSize","setSkipTaskbar","skip","setThumbarButtons","buttons","setThumbnailClip","region","setThumbnailToolTip","toolTip","setTitle","title","setTitleBarOverlay","setTouchBar","touchBar","setVibrancy","setVisibleOnAllWorkspaces","setWindowButtonPosition","position","setWindowButtonVisibility","showAllTabs","showInactive","toggleTabBar","unhookAllWindowMessages","unhookWindowMessage","unmaximize","accessibleTitle","autoHideMenuBar","contentView","documentEdited","excludedFromShownWindowsMenu","fullScreen","fullScreenable","kiosk","menuBarVisible","representedFilename","shadow","simpleFullScreen","tabbingIdentifier","visibleOnAllWorkspaces","acceptFirstMouse","alwaysOnTop","backgroundMaterial","darkTheme","disableAutoHideCursor","enableLargerThanScreen","frame","fullscreen","hiddenInMissionControl","maxHeight","maxWidth","minHeight","minWidth","modal","roundedCorners","simpleFullscreen","skipTaskbar","thickFrame","titleBarOverlay","titleBarStyle","trafficLightPosition","transparent","useContentSize","vibrancy","visualEffectState","zoomToPageWidth","deviceId","deviceName","setAutoResize","color","explicitSet","fromBrowserView","browserView","fromWebContents","addBrowserView","browserWindow","blurWebView","capturePage","rect","opts","focusOnWebView","getBrowserView","getBrowserViews","loadFile","filePath","loadURL","reload","removeBrowserView","setBrowserView","setTopBrowserView","showDefinitionForSelection","paintWhenInitiallyHidden","webPreferences","data","fingerprint","issuer","issuerCert","issuerName","serialNumber","subject","subjectName","validExpiry","validStart","commonName","country","locality","organizations","organizationUnits","state","statusCode","method","redirectUrl","responseHeaders","response","abort","end","chunk","encoding","followRedirect","getHeader","getUploadProgress","removeHeader","setHeader","value","write","chunkedEncoding","availableFormats","clear","has","format","read","readBookmark","readBuffer","readFindText","readHTML","readImage","readRTF","readText","writeBookmark","writeBuffer","buffer","writeFindText","text","writeHTML","markup","writeImage","image","writeRTF","writeText","appendArgument","appendSwitch","the_switch","getSwitchValue","hasSwitch","removeSwitch","getCategories","getTraceBufferUsage","startRecording","stopRecording","resultFilePath","exposeInIsolatedWorld","worldId","apiKey","api","exposeInMainWorld","domain","expirationDate","hostOnly","httpOnly","sameSite","secure","cookie","cause","removed","flushStore","get","filter","remove","set","cumulativeCPUUsage","idleWakeupsPerSecond","percentCPUUsage","date","addExtraParameter","key","getLastCrashReport","getParameters","getUploadedReports","getUploadToServer","removeExtraParameter","setUploadToServer","uploadToServer","start","privileges","scheme","reason","params","sessionId","attach","protocolVersion","detach","isAttached","sendCommand","commandParams","getSources","appIcon","display_id","thumbnail","showCertificateTrustDialog","showErrorBox","content","showMessageBox","showMessageBoxSync","showOpenDialog","showOpenDialogSync","showSaveDialog","showSaveDialogSync","accelerometerSupport","colorDepth","colorSpace","depthPerComponent","detected","displayFrequency","internal","label","maximumCursorSize","monochrome","nativeOrigin","scaleFactor","size","touchSupport","workArea","workAreaSize","bounce","cancelBounce","downloadFinished","getBadge","getMenu","setBadge","cancel","canResume","getContentDisposition","getCurrentBytesPerSecond","getEndTime","getETag","getFilename","getLastModifiedTime","getMimeType","getPercentComplete","getReceivedBytes","getSaveDialogOptions","getSavePath","getStartTime","getState","getTotalBytes","getURL","getURLChain","hasUserGesture","isPaused","pause","resume","setSaveDialogOptions","setSavePath","savePath","manifest","version","extensions","headers","fileAccessType","isDirectory","isRegistered","accelerator","register","registerAll","accelerators","unregister","unregisterAll","flash_3d","flash_stage3d","flash_stage3d_baseline","gpu_compositing","multiple_raster_threads","native_gpu_memory_buffers","rasterization","video_decode","video_encode","vpx_decode","webgl","webgl2","guid","productId","vendorId","canMakePayments","finishAllTransactions","finishTransactionByDate","getProducts","productIDs","getReceiptURL","purchaseProduct","productID","restoreCompletedTransactions","httpVersion","httpVersionMajor","httpVersionMinor","rawHeaders","statusMessage","modifiers","handle","channel","handleOnce","removeAllListeners","removeHandler","frameId","ports","processId","reply","returnValue","sender","senderFrame","invoke","postMessage","transfer","send","sendSync","sendToHost","items","iconIndex","iconPath","program","altKey","ctrlKey","metaKey","shiftKey","triggeredByAccelerator","keyCode","mediaTypes","securityOrigin","peakWorkingSetSize","privateBytes","workingSetSize","liveSize","buildFromTemplate","template","getApplicationMenu","sendActionToFirstResponder","action","setApplicationMenu","append","menuItem","closePopup","getMenuItemById","insert","pos","popup","checked","click","commandId","registerAccelerator","role","sharingItem","sublabel","submenu","userAccelerator","port1","port2","messageEvent","charset","mimeType","button","clickCount","globalX","globalY","movementX","movementY","accelerationRatioX","accelerationRatioY","canScroll","deltaX","deltaY","hasPreciseScrollingDeltas","wheelTicksX","wheelTicksY","createEmpty","createFromBitmap","createFromBuffer","createFromDataURL","dataURL","createFromNamedImage","imageName","hslShift","createFromPath","createThumbnailFromPath","addRepresentation","crop","getAspectRatio","getBitmap","getNativeHandle","getScaleFactors","isEmpty","isTemplateImage","resize","setTemplateImage","option","toBitmap","toDataURL","toJPEG","quality","toPNG","isMacTemplateImage","inForcedColorsMode","prefersReducedTransparency","shouldUseDarkColors","shouldUseHighContrastColors","shouldUseInvertedColorScheme","themeSource","canGoBack","canGoForward","canGoToOffset","offset","getActiveIndex","getEntryAtIndex","index","goBack","goForward","goToIndex","goToOffset","length","fetch","input","bypassCustomProtocolHandlers","init","isOnline","request","resolveHost","host","online","startLogging","stopLogging","currentlyLogging","isSupported","actions","body","closeButtonText","hasReply","replyPlaceholder","silent","sound","subtitle","timeoutType","toastXml","urgency","actionIdentifier","identifier","userText","externalURL","keyIdentifier","nonce","signature","timestamp","requestingUrl","boundary","contentType","getCurrentThermalState","getSystemIdleState","idleThreshold","getSystemIdleTime","isOnBatteryPower","onBatteryPower","isStarted","stop","isDefault","status","private","residentSet","shared","cpu","creationTime","integrityLevel","memory","pid","sandboxed","serviceName","currencyCode","discounts","downloadContentLengths","downloadContentVersion","formattedPrice","introductoryPrice","isDownloadable","localizedDescription","localizedTitle","price","productIdentifier","subscriptionGroupIdentifier","subscriptionPeriod","numberOfPeriods","paymentMode","priceLocale","numberOfUnits","unit","handler","interceptBufferProtocol","interceptFileProtocol","interceptHttpProtocol","interceptStreamProtocol","interceptStringProtocol","isProtocolHandled","isProtocolIntercepted","isProtocolRegistered","registerBufferProtocol","registerFileProtocol","registerHttpProtocol","registerSchemesAsPrivileged","customSchemes","registerStreamProtocol","registerStringProtocol","unhandle","uninterceptProtocol","unregisterProtocol","referrer","uploadData","mode","pacScript","proxyBypassRules","proxyRules","registerForAPNSNotifications","unregisterForAPNSNotifications","address","family","endpoints","decryptString","encrypted","encryptString","plainText","getSelectedStorageBackend","isEncryptionAvailable","setUsePlainTextEncryption","usePlainText","newDisplay","display","changedMetrics","oldDisplay","dipToScreenPoint","dipToScreenRect","getAllDisplays","getCursorScreenPoint","getDisplayMatching","getDisplayNearestPoint","getPrimaryDisplay","screenToDipPoint","screenToDipRect","deviceInstanceId","portId","portName","usbDriverName","renderProcessId","scope","scriptUrl","messageDetails","getAllRunning","getFromVersionID","versionId","fromPartition","partition","fromPath","defaultSession","extension","preconnectUrl","allowCredentials","portList","port","languageCode","device","item","addWordToSpellCheckerDictionary","word","allowNTLMCredentialsForDomains","domains","clearAuthCache","clearCache","clearCodeCaches","clearData","clearHostResolverCache","clearStorageData","closeAllConnections","createInterruptedDownload","disableNetworkEmulation","downloadURL","enableNetworkEmulation","flushStorageData","forceReloadProxyConfig","getAllExtensions","getBlobData","getCacheSize","getExtension","extensionId","getPreloads","getSpellCheckerLanguages","getStoragePath","getUserAgent","isPersistent","isSpellCheckerEnabled","listWordsInSpellCheckerDictionary","loadExtension","preconnect","removeExtension","removeWordFromSpellCheckerDictionary","setBluetoothPairingHandler","setCertificateVerifyProc","verificationResult","proc","setCodeCachePath","setDevicePermissionHandler","setDisplayMediaRequestHandler","streams","setDownloadPath","setPermissionCheckHandler","permission","requestingOrigin","setPermissionRequestHandler","permissionGranted","setPreloads","preloads","setSpellCheckerDictionaryDownloadURL","setSpellCheckerEnabled","setSpellCheckerLanguages","languages","setSSLConfig","setUSBProtectedClassesHandler","setUserAgent","userAgent","acceptLanguages","availableSpellCheckerLanguages","cookies","netLog","serviceWorkers","spellCheckerEnabled","storagePath","webRequest","filePaths","texts","urls","beep","openExternal","openPath","readShortcutLink","shortcutPath","showItemInFolder","fullPath","trashItem","writeShortcutLink","operation","appUserModelId","cwd","target","toastActivatorClsid","newColor","askForMediaAccess","mediaType","canPromptTouchID","getAccentColor","getAnimationSettings","getColor","getEffectiveAppearance","getMediaAccessStatus","getSystemColor","getUserDefault","isAeroGlassEnabled","isSwipeTrackingFromScrollEventsEnabled","isTrustedAccessibilityClient","prompt","postLocalNotification","postNotification","deliverImmediately","postWorkspaceNotification","promptTouchID","registerDefaults","defaults","removeUserDefault","setUserDefault","subscribeLocalNotification","object","subscribeNotification","subscribeWorkspaceNotification","unsubscribeLocalNotification","unsubscribeNotification","unsubscribeWorkspaceNotification","accessibilityDisplayShouldReduceTransparency","effectiveAppearance","arguments","flags","tooltip","escapeItem","accessibilityLabel","iconPosition","availableColors","selectedColor","textColor","continuous","overlayStyle","selectedStyle","showArrowButtons","segments","segmentStyle","selectedIndex","maxValue","minValue","categoryFilter","traceOptions","enable_argument_filter","excluded_categories","histogram_names","included_categories","included_process_ids","memory_dump_config","recording_mode","trace_buffer_size_in_events","trace_buffer_size_in_kb","errorCode","errorMessage","originalTransactionIdentifier","payment","transactionDate","transactionIdentifier","transactionState","files","closeContextMenu","displayBalloon","getIgnoreDoubleClickEvents","popUpContextMenu","removeBalloon","setContextMenu","setIgnoreDoubleClickEvents","setImage","setPressedImage","setToolTip","blobUUID","bytes","file","modificationTime","deviceClass","deviceProtocol","deviceSubclass","deviceVersionMajor","deviceVersionMinor","deviceVersionSubminor","manufacturerName","productName","usbVersionMajor","usbVersionMinor","usbVersionSubminor","array","boolean","dictionary","double","float","integer","string","fork","modulePath","code","kill","stderr","stdout","addChildView","removeChildView","setVisible","children","fromDevToolsTargetId","targetId","fromFrame","getAllWebContents","getFocusedWebContents","line","sourceId","scale","hotspot","query","errorDescription","validatedURL","frameProcessId","frameRoutingId","httpResponseCode","httpStatusText","isInPlace","inputEvent","favicons","dirtyRect","preferredSize","preloadPath","devices","zoomDirection","addWorkSpace","adjustSelection","beginFrameSubscription","onlyDirty","centerSelection","clearHistory","closeDevTools","copy","copyImageAt","cut","delete","disableDeviceEmulation","enableDeviceEmulation","parameters","endFrameSubscription","executeJavaScript","userGesture","executeJavaScriptInIsolatedWorld","scripts","findInPage","forcefullyCrashRenderer","getAllSharedWorkers","getBackgroundThrottling","getDevToolsTitle","getFrameRate","requestWebContents","getOSProcessId","getPrintersAsync","getProcessId","getType","getWebRTCIPHandlingPolicy","getWebRTCUDPPortRange","getZoomFactor","getZoomLevel","insertCSS","css","insertText","inspectElement","inspectServiceWorker","inspectSharedWorker","inspectSharedWorkerById","workerId","invalidate","isAudioMuted","isBeingCaptured","isCrashed","isCurrentlyAudible","isDevToolsFocused","isDevToolsOpened","isLoading","isLoadingMainFrame","isOffscreen","isPainting","isWaitingForResponse","openDevTools","paste","pasteAndMatchStyle","print","success","failureReason","printToPDF","redo","reloadIgnoringCache","removeInsertedCSS","removeWorkSpace","replace","replaceMisspelling","savePage","saveType","scrollToBottom","scrollToTop","selectAll","sendInputEvent","sendToFrame","setAudioMuted","muted","setBackgroundThrottling","allowed","setDevToolsTitle","setDevToolsWebContents","devToolsWebContents","setFrameRate","fps","setIgnoreMenuShortcuts","setImageAnimationPolicy","setVisualZoomLevelLimits","minimumLevel","maximumLevel","setWebRTCIPHandlingPolicy","setWebRTCUDPPortRange","udpPortRange","setWindowOpenHandler","setZoomFactor","factor","setZoomLevel","startDrag","startPainting","stopFindInPage","stopPainting","takeHeapSnapshot","toggleDevTools","undo","unselect","audioMuted","backgroundThrottling","debugger","frameRate","hostWebContents","ipc","mainFrame","navigationHistory","opener","zoomFactor","zoomLevel","findFrameByName","findFrameByRoutingId","routingId","getFrameForSelector","selector","getResourceUsage","getWordSuggestions","isWordMisspelled","setIsolatedWorldInfo","info","setSpellCheckProvider","language","provider","firstChild","nextSibling","top","frames","framesInSubtree","frameTreeNodeId","origin","osProcessId","visibilityState","additionalArguments","allowRunningInsecureContent","autoplayPolicy","contextIsolation","defaultEncoding","defaultFontFamily","defaultFontSize","defaultMonospaceFontSize","devTools","disableBlinkFeatures","disableDialogs","disableHtmlFullscreenWindowResize","enableBlinkFeatures","enablePreferredSizeMode","enableWebSQL","experimentalFeatures","imageAnimationPolicy","images","javascript","minimumFontSize","navigateOnDragDrop","nodeIntegration","nodeIntegrationInSubFrames","nodeIntegrationInWorker","offscreen","plugins","preload","safeDialogs","safeDialogsMessage","sandbox","scrollBounce","spellcheck","textAreasAreResizable","v8CacheOptions","webSecurity","webviewTag","onBeforeRedirect","onBeforeRequest","onBeforeSendHeaders","beforeSendResponse","onCompleted","onErrorOccurred","onHeadersReceived","headersReceivedResponse","onResponseStarted","onSendHeaders","types","getPathForFile","addEventListener","useCapture","removeEventListener","this","ev","getWebContentsId","allowpopups","disableblinkfeatures","disablewebsecurity","enableblinkfeatures","httpreferrer","nodeintegration","nodeintegrationinsubframes","src","useragent","webpreferences","createWindow","outlivesOpener","overrideBrowserWindowOptions","applicationName","applicationVersion","copyright","credits","authors","website","shouldRenderRichAnimation","scrollAnimationsEnabledBySystem","prefersReducedMotion","appId","appIconPath","appIconIndex","relaunchCommand","relaunchDisplayName","isProxy","realm","horizontal","vertical","requestHeaders","allocated","total","pairingKind","pin","redirectURL","dataTypes","origins","excludeOrigins","avoidClosingConnections","originMatchingMode","storages","quotas","credentials","useSessionCookies","hostname","redirect","referrerPolicy","cache","waitForBeforeUnload","minVersion","maxVersion","disabledCipherSuites","enableBuiltInResolver","secureDnsMode","secureDnsServers","enableAdditionalDnsQueryTypes","linkURL","linkText","pageURL","frameURL","srcURL","hasImageContents","isEditable","selectionText","titleText","altText","suggestedFilename","selectionRect","selectionStartOffset","misspelledWord","dictionarySuggestions","frameCharset","formControlType","spellcheckEnabled","menuSourceType","mediaFlags","editFlags","submitURL","companyName","ignoreSystemCrashHandler","rateLimit","compress","extra","globalExtra","urlChain","lastModified","eTag","startTime","html","rtf","bookmark","standard","serif","sansSerif","monospace","cursive","fantasy","math","deviceType","themeColor","frameName","postBody","disposition","iconType","largeIcon","noSound","respectQuietTime","videoRequested","audioRequested","useSystemPicker","offline","latency","downloadThroughput","uploadThroughput","serverType","forward","findNext","matchCase","steal","env","execArgv","stdio","allowLoadingUnsignedLibraries","respondToAuthRequestsFromMainProcess","features","statusLine","totalHeapSize","totalHeapSizeExecutable","totalPhysicalSize","totalAvailableSize","usedHeapSize","heapSizeLimit","mallocedMemory","peakMallocedMemory","doesZapGarbage","csp","isAutoRepeat","isComposing","shift","control","alt","meta","location","cssOrigin","minItems","removedItems","allowFileAccess","search","hash","httpReferrer","extraHeaders","postData","baseURLForDataURL","openAtLogin","openAsHidden","wasOpenedAtLogin","wasOpenedAsHidden","restoreState","executableWillLaunchAtLogin","launchItems","acceleratorWorksWhenHidden","before","after","beforeGroupContaining","afterGroupContaining","defaultId","signal","detail","checkboxLabel","checkboxChecked","textWidth","cancelId","noLink","normalizeAccessKeys","source","sourceUrl","lineNumber","conflictHandler","conflictType","webContentsId","resourceType","ip","fromCache","activate","defaultPath","buttonLabel","filters","properties","securityScopedBookmarks","canceled","bookmarks","logUsage","stayHidden","stayAwake","screenPosition","screenSize","viewPosition","deviceScaleFactor","viewSize","quantity","applicationUsername","paymentDiscount","embeddingOrigin","positioningItem","sourceType","numSockets","landscape","displayHeaderFooter","printBackground","pageSize","margins","pageRanges","headerTemplate","footerTemplate","preferCSSPageSize","generateTaggedPDF","generateDocumentOutline","bypassCSP","allowServiceWorkers","supportFetchAPI","corsEnabled","stream","codeCache","spellCheck","words","misspeltWords","execPath","validatedCertificate","isIssuedByKnownRoot","queryType","cacheUsage","secureDnsPolicy","cssStyleSheets","xslStyleSheets","fonts","other","confirmed","requestId","activeMatchOrdinal","matches","selectionArea","finalUpdate","nameFieldLabel","showsTagField","deviceList","thumbnailSize","fetchWindowIcons","captureMode","maxFileSize","video","audio","enableLocalEcho","free","swapTotal","swapFree","symbolColor","fontType","change","showCloseButton","select","highlight","highlightedIndex","isSelected","newValue","percentage","min","max","active","started","current","protectedClasses","visibleOnFullScreen","skipTransformProcessType","audible","isSameDocument","initiator","pagesPerSheet","collate","copies","duplexMode","dpi","header","footer","edge","canUndo","canRedo","canCut","canCopy","canPaste","canDelete","canSelectAll","canEditRichly","marginType","bottom","left","right","inError","isMuted","hasAudio","isLooping","isControlsVisible","canToggleControls","canPrint","canSave","canShowPictureInPicture","isShowingPictureInPicture","canRotate","canLoop","from","to","Common","clipboard","crashReporter","nativeImage","shell","Main","app","autoUpdater","contentTracing","desktopCapturer","dialog","globalShortcut","inAppPurchase","ipcMain","nativeTheme","net","powerMonitor","powerSaveBlocker","pushNotifications","safeStorage","screen","systemPreferences","utilityProcess","webFrameMain","Renderer","contextBridge","ipcRenderer","webFrame","webUtils","Utility","CrossProcessExports","parentPort","_0","sideEffect","_1","_2","_3","_4","NodeRequireFunction","moduleName","NodeRequire","_5","fs","_6","Document","createElement","tagName","Process","eventName","crash","getBlinkMemoryInfo","getCPUUsage","getCreationTime","getHeapStatistics","getProcessMemoryInfo","getSystemMemoryInfo","getSystemVersion","hang","setFdLimit","maxDescriptors","chrome","contextId","contextIsolated","defaultApp","electron","mas","noAsar","noDeprecation","resourcesPath","throwDeprecation","traceDeprecation","traceProcessWarnings","windowsStore","ProcessVersions"],"sources":["../src/context.ts","../src/websocket-server.ts","../src/ipc-core.ts","../src/handlers/shell.ts","../src/handlers/fs.ts","../src/handlers/config.ts","../src/handlers/history.ts","../src/handlers/engine.ts","../src/handlers/agents.ts","../src/handlers/build-history.ts","../src/handlers/index.ts","../src/config.ts","../src/api.ts","../src/handler-func.ts","../src/utils.ts","../src/plugins-registry.ts","../src/utils/remote.ts","../src/utils/fs-extras.ts","../../../node_modules/electron/electron.d.ts","../src/types/runner.ts","../src/runner.ts","../src/server.ts","../src/utils/github.ts"],"x_google_ignoreList":[18],"mappings":";;;;;;;;;;cAiBa,KAAA;AAAA,KAED,UAAA;AAAA,cAEC,sBAAA,GAA0B,GAAA,GAAM,UAAA;AAAA,cAgChC,WAAA;AAAA,cAEA,WAAA;EAAA;;;;KAMD,eAAA,WAA0B,WAAA,eAA0B,WAAA;AAAA,UAE/C,qBAAA;EACf,YAAA;EACA,UAAA;AAAA;AAAA,cAGW,cAAA;EAAA,SACK,YAAA;EAAA,SACA,UAAA;cAEJ,OAAA,EAAS,qBAAA;EAKrB,eAAA,CAAA,GAAmB,QAAA;E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AAA,EAAQ,KAAA;IACN,IAAA;IACA,oBAAA;EAAA;AAAA;AAAA,UAIa,mBAAA;EACf,IAAA;EACA,eAAA;AAAA;AtBIF;;;;AAAA,iBsBGsB,oBAAA,CACpB,WAAA,UACA,OAAA,GAAS,mBAAA,GACR,OAAA,CAAQ,aAAA;AtBJX;;;;AAAA,iBsBwHsB,yBAAA,CACpB,WAAA,UACA,OAAA,GAAS,mBAAA,GACR,OAAA,CAAQ,aAAA;AtB3FX;;;;AAAA,iBsBmIsB,yBAAA,CACpB,OAAA,GAAS,mBAAA,GACR,OAAA,CAAQ,aAAA"}
1
+ {"version":3,"file":"index.d.mts","names":["DOMEvent","Event","GlobalResponse","Response","GlobalRequest","Request","Electron","Params","Type","K","events","EventEmitter","BrowserWindow","WebContents","Certificate","Details","ContinueActivityDetails","Function","AuthenticationResponseDetails","AuthInfo","Record","NotificationResponse","RenderProcessGoneDetails","Session","ConfigureHostResolverOptions","FocusOptions","ApplicationInfoForProtocolReturnValue","Promise","ProcessMetric","FileIconOptions","NativeImage","GPUFeatureStatus","JumpListSettings","LoginItemSettingsOptions","LoginItemSettings","ImportCertificateOptions","MoveToApplicationsFolderOptions","RelaunchOptions","AboutPanelOptionsOptions","JumpListCategory","Settings","ProxyConfig","Task","Menu","CommandLine","Dock","NodeJS","Error","Date","FeedURLOptions","Point","Rectangle","WillResizeDetails","BaseWindowConstructorOptions","BaseWindow","Buffer","AppDetailsOptions","Size","Partial","View","IgnoreMouseEventsOptions","ProgressBarOptions","ThumbarButton","TitleBarOverlayOptions","TouchBar","VisibleOnAllWorkspacesOptions","NodeEventEmitter","TitleBarOverlay","BrowserViewConstructorOptions","AutoResizeOptions","BrowserWindowConstructorOptions","BrowserView","Opts","LoadFileOptions","LoadURLOptions","WebPreferences","CertificatePrincipal","IncomingMessage","ClientRequestConstructorOptions","UploadProgress","ReadBookmark","Data","TraceBufferUsageReturnValue","TraceConfig","TraceCategoriesAndOptions","Cookie","CookiesGetFilter","CookiesSetDetails","CrashReport","CrashReporterStartOptions","Privileges","SourcesOptions","DesktopCapturerSource","CertificateTrustDialogOptions","MessageBoxOptions","MessageBoxReturnValue","MessageBoxSyncOptions","OpenDialogOptions","OpenDialogReturnValue","OpenDialogSyncOptions","SaveDialogOptions","SaveDialogReturnValue","SaveDialogSyncOptions","PermissionRequest","Accelerator","Product","PurchaseProductOpts","Array","IpcMainInvokeEvent","IpcMainEvent","MessagePortMain","WebFrameMain","IpcRendererEvent","MessagePort","IpcRenderer","JumpListItem","InputEvent","MenuItemConstructorOptions","MenuItem","PopupOptions","SharingItem","MessageEvent","MouseInputEvent","CreateFromBitmapOptions","CreateFromBufferOptions","AddRepresentationOptions","BitmapOptions","ResizeOptions","ToBitmapOptions","ToDataURLOptions","ToPNGOptions","EntryAtIndex","RequestInit","ClientRequest","ResolveHostOptions","ResolvedHost","StartLoggingOptions","NotificationConstructorOptions","NotificationAction","UploadRawData","UploadFile","Options","CPUUsage","MemoryInfo","ProductDiscount","ProductSubscriptionPeriod","ProtocolRequest","ProtocolResponse","ReadableStream","CustomScheme","UploadData","ProtocolResponseUploadData","ResolvedEndpoint","Display","MessageDetails","RegistrationCompletedDetails","ServiceWorkerInfo","FromPartitionOptions","FromPathOptions","Extension","FileSystemAccessRestrictedDetails","HidDeviceAddedDetails","HidDeviceRemovedDetails","HidDeviceRevokedDetails","SelectHidDeviceDetails","SerialPort","SelectUsbDeviceDetails","SerialPortRevokedDetails","USBDevice","UsbDeviceRevokedDetails","DownloadItem","ClearCodeCachesOptions","ClearDataOptions","ClearStorageDataOptions","CreateInterruptedDownloadOptions","DownloadURLOptions","EnableNetworkEmulationOptions","LoadExtensionOptions","PreconnectOptions","BluetoothPairingHandlerHandlerDetails","DevicePermissionHandlerHandlerDetails","DisplayMediaRequestHandlerHandlerRequest","Streams","DisplayMediaRequestHandlerOpts","PermissionCheckHandlerHandlerDetails","FilesystemPermissionRequest","MediaAccessPermissionRequest","OpenExternalPermissionRequest","Config","USBProtectedClassesHandlerHandlerDetails","Cookies","NetLog","Protocol","ServiceWorkers","WebRequest","OpenExternalOptions","ShortcutDetails","AnimationSettings","UserDefaultTypes","TouchBarConstructorOptions","TouchBarButton","TouchBarColorPicker","TouchBarGroup","TouchBarLabel","TouchBarPopover","TouchBarScrubber","TouchBarSegmentedControl","TouchBarSlider","TouchBarSpacer","TouchBarOtherItemsProxy","TouchBarButtonConstructorOptions","TouchBarColorPickerConstructorOptions","TouchBarGroupConstructorOptions","TouchBarLabelConstructorOptions","TouchBarPopoverConstructorOptions","TouchBarScrubberConstructorOptions","ScrubberItem","TouchBarSegmentedControlConstructorOptions","SegmentedControlSegment","TouchBarSliderConstructorOptions","TouchBarSpacerConstructorOptions","Payment","KeyboardEvent","DisplayBalloonOptions","TitleOptions","ForkOptions","UtilityProcess","WebContentsAudioStateChangedEventParams","Input","ContextMenuParams","DidCreateWindowDetails","WebContentsDidRedirectNavigationEventParams","WebContentsDidStartNavigationEventParams","Result","FrameCreatedDetails","LoginAuthenticationResponseDetails","BluetoothDevice","WebContentsWillFrameNavigateEventParams","WebContentsWillNavigateEventParams","WebContentsWillRedirectEventParams","AdjustSelectionOptions","CloseOpts","Parameters","WebSource","FindInPageOptions","SharedWorkerInfo","PrinterInfo","WebRTCUDPPortRange","InsertCSSOptions","OpenDevToolsOptions","WebContentsPrintOptions","PrintToPDFOptions","MouseWheelInputEvent","KeyboardInputEvent","UdpPortRange","HandlerDetails","WindowOpenHandlerResponse","Item","Debugger","IpcMain","NavigationHistory","WebContentsViewConstructorOptions","WebFrame","ResourceUsage","Info","Provider","DefaultFontFamily","WebRequestFilter","OnBeforeRedirectListenerDetails","OnBeforeRequestListenerDetails","CallbackResponse","OnBeforeSendHeadersListenerDetails","BeforeSendResponse","OnCompletedListenerDetails","OnErrorOccurredListenerDetails","OnHeadersReceivedListenerDetails","HeadersReceivedResponse","OnResponseStartedListenerDetails","OnSendHeadersListenerDetails","File","LoadCommitEvent","DidFailLoadEvent","DidFrameFinishLoadEvent","PageTitleUpdatedEvent","PageFaviconUpdatedEvent","ConsoleMessageEvent","FoundInPageEvent","WillNavigateEvent","WillFrameNavigateEvent","DidStartNavigationEvent","DidRedirectNavigationEvent","DidNavigateEvent","DidFrameNavigateEvent","DidNavigateInPageEvent","IpcMessageEvent","RenderProcessGoneEvent","PluginCrashedEvent","DidChangeThemeColorEvent","UpdateTargetUrlEvent","DevtoolsOpenUrlEvent","DevtoolsSearchQueryEvent","ContextMenuEvent","HTMLElementEventMap","HTMLElement","EventListenerOrEventListenerObject","WebviewTagPrintOptions","Uint8Array","Referrer","MediaFlags","EditFlags","HIDDevice","PostBody","Env","FoundInPageResult","LaunchItems","AbortSignal","FileFilter","PaymentDiscount","Margins","MemoryUsageDetails","Video","PageRanges","Clipboard","CrashReporter","Shell","BlinkMemoryInfo","HeapStatistics","SystemMemoryInfo","ExtensionInfo","FilePathWithHeaders","MimeTypedBuffer","ProcessMemoryInfo","Transaction","App","AutoUpdater","ContentTracing","DesktopCapturer","Dialog","GlobalShortcut","InAppPurchase","MessageChannelMain","NativeTheme","Net","Notification","PowerMonitor","PowerSaveBlocker","PushNotifications","SafeStorage","Screen","ShareMenu","SystemPreferences","Tray","WebContentsView","ContextBridge","WebUtils","WebviewTag","ParentPort","preventDefault","defaultPrevented","on","event","accessibilitySupportEnabled","listener","off","once","addListener","removeListener","hasVisibleWindows","type","userInfo","window","webContents","url","error","certificate","isTrusted","callback","isMainFrame","details","authenticationResponseDetails","authInfo","username","password","path","exitCode","launchInfo","argv","workingDirectory","additionalData","certificateList","session","addRecentDocument","clearRecentDocuments","configureHostResolver","options","disableDomainBlockingFor3DAPIs","disableHardwareAcceleration","enableSandbox","exit","focus","getApplicationInfoForProtocol","getApplicationNameForProtocol","getAppMetrics","getAppPath","getBadgeCount","getCurrentActivityType","getFileIcon","getGPUFeatureStatus","getGPUInfo","infoType","getJumpListSettings","getLocale","getLocaleCountryCode","getLoginItemSettings","getName","getPath","name","getPreferredSystemLanguages","getSystemLocale","getVersion","hasSingleInstanceLock","hide","importCertificate","result","invalidateCurrentActivity","isAccessibilitySupportEnabled","isDefaultProtocolClient","protocol","args","isEmojiPanelSupported","isHidden","isInApplicationsFolder","isReady","isSecureKeyboardEntryEnabled","isUnityRunning","moveToApplicationsFolder","quit","relaunch","releaseSingleInstanceLock","removeAsDefaultProtocolClient","requestSingleInstanceLock","resignCurrentActivity","resolveProxy","setAboutPanelOptions","setAccessibilitySupportEnabled","enabled","setActivationPolicy","policy","setAppLogsPath","setAppUserModelId","id","setAsDefaultProtocolClient","setBadgeCount","count","setJumpList","categories","setLoginItemSettings","settings","setName","setPath","setProxy","config","setSecureKeyboardEntryEnabled","setUserActivity","webpageURL","setUserTasks","tasks","show","showAboutPanel","showEmojiPanel","startAccessingSecurityScopedResource","bookmarkData","updateCurrentActivity","whenReady","applicationMenu","badgeCount","commandLine","dock","isPackaged","runningUnderARM64Translation","userAgentFallback","releaseNotes","releaseName","releaseDate","updateURL","checkForUpdates","getFeedURL","quitAndInstall","setFeedURL","isAlwaysOnTop","command","rotation","direction","point","newBounds","constructor","fromId","getAllWindows","getFocusedWindow","addTabbedWindow","baseWindow","blur","center","close","closeFilePreview","destroy","flashFrame","flag","getBackgroundColor","getBounds","getChildWindows","getContentBounds","getContentSize","getContentView","getMaximumSize","getMediaSourceId","getMinimumSize","getNativeWindowHandle","getNormalBounds","getOpacity","getParentWindow","getPosition","getRepresentedFilename","getSize","getTitle","getWindowButtonPosition","hasShadow","hookWindowMessage","message","wParam","lParam","invalidateShadow","isClosable","isDestroyed","isDocumentEdited","isEnabled","isFocusable","isFocused","isFullScreen","isFullScreenable","isHiddenInMissionControl","isKiosk","isMaximizable","isMaximized","isMenuBarAutoHide","isMenuBarVisible","isMinimizable","isMinimized","isModal","isMovable","isNormal","isResizable","isSimpleFullScreen","isTabletMode","isVisible","isVisibleOnAllWorkspaces","isWindowMessageHooked","maximize","mergeAllWindows","minimize","moveAbove","mediaSourceId","moveTabToNewWindow","moveTop","previewFile","displayName","removeMenu","restore","selectNextTab","selectPreviousTab","setAlwaysOnTop","level","relativeLevel","setAppDetails","setAspectRatio","aspectRatio","extraSize","setAutoHideCursor","autoHide","setAutoHideMenuBar","setBackgroundColor","backgroundColor","setBackgroundMaterial","material","setBounds","bounds","animate","setClosable","closable","setContentBounds","setContentProtection","enable","setContentSize","width","height","setContentView","view","setDocumentEdited","edited","setEnabled","setFocusable","focusable","setFullScreen","setFullScreenable","fullscreenable","setHasShadow","setHiddenInMissionControl","hidden","setIcon","icon","setIgnoreMouseEvents","ignore","setKiosk","setMaximizable","maximizable","setMaximumSize","setMenu","menu","setMenuBarVisibility","visible","setMinimizable","minimizable","setMinimumSize","setMovable","movable","setOpacity","opacity","setOverlayIcon","overlay","description","setParentWindow","parent","setPosition","x","y","setProgressBar","progress","setRepresentedFilename","filename","setResizable","resizable","setShape","rects","setSheetOffset","offsetY","offsetX","setSimpleFullScreen","setSize","setSkipTaskbar","skip","setThumbarButtons","buttons","setThumbnailClip","region","setThumbnailToolTip","toolTip","setTitle","title","setTitleBarOverlay","setTouchBar","touchBar","setVibrancy","setVisibleOnAllWorkspaces","setWindowButtonPosition","position","setWindowButtonVisibility","showAllTabs","showInactive","toggleTabBar","unhookAllWindowMessages","unhookWindowMessage","unmaximize","accessibleTitle","autoHideMenuBar","contentView","documentEdited","excludedFromShownWindowsMenu","fullScreen","fullScreenable","kiosk","menuBarVisible","representedFilename","shadow","simpleFullScreen","tabbingIdentifier","visibleOnAllWorkspaces","acceptFirstMouse","alwaysOnTop","backgroundMaterial","darkTheme","disableAutoHideCursor","enableLargerThanScreen","frame","fullscreen","hiddenInMissionControl","maxHeight","maxWidth","minHeight","minWidth","modal","roundedCorners","simpleFullscreen","skipTaskbar","thickFrame","titleBarOverlay","titleBarStyle","trafficLightPosition","transparent","useContentSize","vibrancy","visualEffectState","zoomToPageWidth","deviceId","deviceName","setAutoResize","color","explicitSet","fromBrowserView","browserView","fromWebContents","addBrowserView","browserWindow","blurWebView","capturePage","rect","opts","focusOnWebView","getBrowserView","getBrowserViews","loadFile","filePath","loadURL","reload","removeBrowserView","setBrowserView","setTopBrowserView","showDefinitionForSelection","paintWhenInitiallyHidden","webPreferences","data","fingerprint","issuer","issuerCert","issuerName","serialNumber","subject","subjectName","validExpiry","validStart","commonName","country","locality","organizations","organizationUnits","state","statusCode","method","redirectUrl","responseHeaders","response","abort","end","chunk","encoding","followRedirect","getHeader","getUploadProgress","removeHeader","setHeader","value","write","chunkedEncoding","availableFormats","clear","has","format","read","readBookmark","readBuffer","readFindText","readHTML","readImage","readRTF","readText","writeBookmark","writeBuffer","buffer","writeFindText","text","writeHTML","markup","writeImage","image","writeRTF","writeText","appendArgument","appendSwitch","the_switch","getSwitchValue","hasSwitch","removeSwitch","getCategories","getTraceBufferUsage","startRecording","stopRecording","resultFilePath","exposeInIsolatedWorld","worldId","apiKey","api","exposeInMainWorld","domain","expirationDate","hostOnly","httpOnly","sameSite","secure","cookie","cause","removed","flushStore","get","filter","remove","set","cumulativeCPUUsage","idleWakeupsPerSecond","percentCPUUsage","date","addExtraParameter","key","getLastCrashReport","getParameters","getUploadedReports","getUploadToServer","removeExtraParameter","setUploadToServer","uploadToServer","start","privileges","scheme","reason","params","sessionId","attach","protocolVersion","detach","isAttached","sendCommand","commandParams","getSources","appIcon","display_id","thumbnail","showCertificateTrustDialog","showErrorBox","content","showMessageBox","showMessageBoxSync","showOpenDialog","showOpenDialogSync","showSaveDialog","showSaveDialogSync","accelerometerSupport","colorDepth","colorSpace","depthPerComponent","detected","displayFrequency","internal","label","maximumCursorSize","monochrome","nativeOrigin","scaleFactor","size","touchSupport","workArea","workAreaSize","bounce","cancelBounce","downloadFinished","getBadge","getMenu","setBadge","cancel","canResume","getContentDisposition","getCurrentBytesPerSecond","getEndTime","getETag","getFilename","getLastModifiedTime","getMimeType","getPercentComplete","getReceivedBytes","getSaveDialogOptions","getSavePath","getStartTime","getState","getTotalBytes","getURL","getURLChain","hasUserGesture","isPaused","pause","resume","setSaveDialogOptions","setSavePath","savePath","manifest","version","extensions","headers","fileAccessType","isDirectory","isRegistered","accelerator","register","registerAll","accelerators","unregister","unregisterAll","flash_3d","flash_stage3d","flash_stage3d_baseline","gpu_compositing","multiple_raster_threads","native_gpu_memory_buffers","rasterization","video_decode","video_encode","vpx_decode","webgl","webgl2","guid","productId","vendorId","canMakePayments","finishAllTransactions","finishTransactionByDate","getProducts","productIDs","getReceiptURL","purchaseProduct","productID","restoreCompletedTransactions","httpVersion","httpVersionMajor","httpVersionMinor","rawHeaders","statusMessage","modifiers","handle","channel","handleOnce","removeAllListeners","removeHandler","frameId","ports","processId","reply","returnValue","sender","senderFrame","invoke","postMessage","transfer","send","sendSync","sendToHost","items","iconIndex","iconPath","program","altKey","ctrlKey","metaKey","shiftKey","triggeredByAccelerator","keyCode","mediaTypes","securityOrigin","peakWorkingSetSize","privateBytes","workingSetSize","liveSize","buildFromTemplate","template","getApplicationMenu","sendActionToFirstResponder","action","setApplicationMenu","append","menuItem","closePopup","getMenuItemById","insert","pos","popup","checked","click","commandId","registerAccelerator","role","sharingItem","sublabel","submenu","userAccelerator","port1","port2","messageEvent","charset","mimeType","button","clickCount","globalX","globalY","movementX","movementY","accelerationRatioX","accelerationRatioY","canScroll","deltaX","deltaY","hasPreciseScrollingDeltas","wheelTicksX","wheelTicksY","createEmpty","createFromBitmap","createFromBuffer","createFromDataURL","dataURL","createFromNamedImage","imageName","hslShift","createFromPath","createThumbnailFromPath","addRepresentation","crop","getAspectRatio","getBitmap","getNativeHandle","getScaleFactors","isEmpty","isTemplateImage","resize","setTemplateImage","option","toBitmap","toDataURL","toJPEG","quality","toPNG","isMacTemplateImage","inForcedColorsMode","prefersReducedTransparency","shouldUseDarkColors","shouldUseHighContrastColors","shouldUseInvertedColorScheme","themeSource","canGoBack","canGoForward","canGoToOffset","offset","getActiveIndex","getEntryAtIndex","index","goBack","goForward","goToIndex","goToOffset","length","fetch","input","bypassCustomProtocolHandlers","init","isOnline","request","resolveHost","host","online","startLogging","stopLogging","currentlyLogging","isSupported","actions","body","closeButtonText","hasReply","replyPlaceholder","silent","sound","subtitle","timeoutType","toastXml","urgency","actionIdentifier","identifier","userText","externalURL","keyIdentifier","nonce","signature","timestamp","requestingUrl","boundary","contentType","getCurrentThermalState","getSystemIdleState","idleThreshold","getSystemIdleTime","isOnBatteryPower","onBatteryPower","isStarted","stop","isDefault","status","private","residentSet","shared","cpu","creationTime","integrityLevel","memory","pid","sandboxed","serviceName","currencyCode","discounts","downloadContentLengths","downloadContentVersion","formattedPrice","introductoryPrice","isDownloadable","localizedDescription","localizedTitle","price","productIdentifier","subscriptionGroupIdentifier","subscriptionPeriod","numberOfPeriods","paymentMode","priceLocale","numberOfUnits","unit","handler","interceptBufferProtocol","interceptFileProtocol","interceptHttpProtocol","interceptStreamProtocol","interceptStringProtocol","isProtocolHandled","isProtocolIntercepted","isProtocolRegistered","registerBufferProtocol","registerFileProtocol","registerHttpProtocol","registerSchemesAsPrivileged","customSchemes","registerStreamProtocol","registerStringProtocol","unhandle","uninterceptProtocol","unregisterProtocol","referrer","uploadData","mode","pacScript","proxyBypassRules","proxyRules","registerForAPNSNotifications","unregisterForAPNSNotifications","address","family","endpoints","decryptString","encrypted","encryptString","plainText","getSelectedStorageBackend","isEncryptionAvailable","setUsePlainTextEncryption","usePlainText","newDisplay","display","changedMetrics","oldDisplay","dipToScreenPoint","dipToScreenRect","getAllDisplays","getCursorScreenPoint","getDisplayMatching","getDisplayNearestPoint","getPrimaryDisplay","screenToDipPoint","screenToDipRect","deviceInstanceId","portId","portName","usbDriverName","renderProcessId","scope","scriptUrl","messageDetails","getAllRunning","getFromVersionID","versionId","fromPartition","partition","fromPath","defaultSession","extension","preconnectUrl","allowCredentials","portList","port","languageCode","device","item","addWordToSpellCheckerDictionary","word","allowNTLMCredentialsForDomains","domains","clearAuthCache","clearCache","clearCodeCaches","clearData","clearHostResolverCache","clearStorageData","closeAllConnections","createInterruptedDownload","disableNetworkEmulation","downloadURL","enableNetworkEmulation","flushStorageData","forceReloadProxyConfig","getAllExtensions","getBlobData","getCacheSize","getExtension","extensionId","getPreloads","getSpellCheckerLanguages","getStoragePath","getUserAgent","isPersistent","isSpellCheckerEnabled","listWordsInSpellCheckerDictionary","loadExtension","preconnect","removeExtension","removeWordFromSpellCheckerDictionary","setBluetoothPairingHandler","setCertificateVerifyProc","verificationResult","proc","setCodeCachePath","setDevicePermissionHandler","setDisplayMediaRequestHandler","streams","setDownloadPath","setPermissionCheckHandler","permission","requestingOrigin","setPermissionRequestHandler","permissionGranted","setPreloads","preloads","setSpellCheckerDictionaryDownloadURL","setSpellCheckerEnabled","setSpellCheckerLanguages","languages","setSSLConfig","setUSBProtectedClassesHandler","setUserAgent","userAgent","acceptLanguages","availableSpellCheckerLanguages","cookies","netLog","serviceWorkers","spellCheckerEnabled","storagePath","webRequest","filePaths","texts","urls","beep","openExternal","openPath","readShortcutLink","shortcutPath","showItemInFolder","fullPath","trashItem","writeShortcutLink","operation","appUserModelId","cwd","target","toastActivatorClsid","newColor","askForMediaAccess","mediaType","canPromptTouchID","getAccentColor","getAnimationSettings","getColor","getEffectiveAppearance","getMediaAccessStatus","getSystemColor","getUserDefault","isAeroGlassEnabled","isSwipeTrackingFromScrollEventsEnabled","isTrustedAccessibilityClient","prompt","postLocalNotification","postNotification","deliverImmediately","postWorkspaceNotification","promptTouchID","registerDefaults","defaults","removeUserDefault","setUserDefault","subscribeLocalNotification","object","subscribeNotification","subscribeWorkspaceNotification","unsubscribeLocalNotification","unsubscribeNotification","unsubscribeWorkspaceNotification","accessibilityDisplayShouldReduceTransparency","effectiveAppearance","arguments","flags","tooltip","escapeItem","accessibilityLabel","iconPosition","availableColors","selectedColor","textColor","continuous","overlayStyle","selectedStyle","showArrowButtons","segments","segmentStyle","selectedIndex","maxValue","minValue","categoryFilter","traceOptions","enable_argument_filter","excluded_categories","histogram_names","included_categories","included_process_ids","memory_dump_config","recording_mode","trace_buffer_size_in_events","trace_buffer_size_in_kb","errorCode","errorMessage","originalTransactionIdentifier","payment","transactionDate","transactionIdentifier","transactionState","files","closeContextMenu","displayBalloon","getIgnoreDoubleClickEvents","popUpContextMenu","removeBalloon","setContextMenu","setIgnoreDoubleClickEvents","setImage","setPressedImage","setToolTip","blobUUID","bytes","file","modificationTime","deviceClass","deviceProtocol","deviceSubclass","deviceVersionMajor","deviceVersionMinor","deviceVersionSubminor","manufacturerName","productName","usbVersionMajor","usbVersionMinor","usbVersionSubminor","array","boolean","dictionary","double","float","integer","string","fork","modulePath","code","kill","stderr","stdout","addChildView","removeChildView","setVisible","children","fromDevToolsTargetId","targetId","fromFrame","getAllWebContents","getFocusedWebContents","line","sourceId","scale","hotspot","query","errorDescription","validatedURL","frameProcessId","frameRoutingId","httpResponseCode","httpStatusText","isInPlace","inputEvent","favicons","dirtyRect","preferredSize","preloadPath","devices","zoomDirection","addWorkSpace","adjustSelection","beginFrameSubscription","onlyDirty","centerSelection","clearHistory","closeDevTools","copy","copyImageAt","cut","delete","disableDeviceEmulation","enableDeviceEmulation","parameters","endFrameSubscription","executeJavaScript","userGesture","executeJavaScriptInIsolatedWorld","scripts","findInPage","forcefullyCrashRenderer","getAllSharedWorkers","getBackgroundThrottling","getDevToolsTitle","getFrameRate","requestWebContents","getOSProcessId","getPrintersAsync","getProcessId","getType","getWebRTCIPHandlingPolicy","getWebRTCUDPPortRange","getZoomFactor","getZoomLevel","insertCSS","css","insertText","inspectElement","inspectServiceWorker","inspectSharedWorker","inspectSharedWorkerById","workerId","invalidate","isAudioMuted","isBeingCaptured","isCrashed","isCurrentlyAudible","isDevToolsFocused","isDevToolsOpened","isLoading","isLoadingMainFrame","isOffscreen","isPainting","isWaitingForResponse","openDevTools","paste","pasteAndMatchStyle","print","success","failureReason","printToPDF","redo","reloadIgnoringCache","removeInsertedCSS","removeWorkSpace","replace","replaceMisspelling","savePage","saveType","scrollToBottom","scrollToTop","selectAll","sendInputEvent","sendToFrame","setAudioMuted","muted","setBackgroundThrottling","allowed","setDevToolsTitle","setDevToolsWebContents","devToolsWebContents","setFrameRate","fps","setIgnoreMenuShortcuts","setImageAnimationPolicy","setVisualZoomLevelLimits","minimumLevel","maximumLevel","setWebRTCIPHandlingPolicy","setWebRTCUDPPortRange","udpPortRange","setWindowOpenHandler","setZoomFactor","factor","setZoomLevel","startDrag","startPainting","stopFindInPage","stopPainting","takeHeapSnapshot","toggleDevTools","undo","unselect","audioMuted","backgroundThrottling","debugger","frameRate","hostWebContents","ipc","mainFrame","navigationHistory","opener","zoomFactor","zoomLevel","findFrameByName","findFrameByRoutingId","routingId","getFrameForSelector","selector","getResourceUsage","getWordSuggestions","isWordMisspelled","setIsolatedWorldInfo","info","setSpellCheckProvider","language","provider","firstChild","nextSibling","top","frames","framesInSubtree","frameTreeNodeId","origin","osProcessId","visibilityState","additionalArguments","allowRunningInsecureContent","autoplayPolicy","contextIsolation","defaultEncoding","defaultFontFamily","defaultFontSize","defaultMonospaceFontSize","devTools","disableBlinkFeatures","disableDialogs","disableHtmlFullscreenWindowResize","enableBlinkFeatures","enablePreferredSizeMode","enableWebSQL","experimentalFeatures","imageAnimationPolicy","images","javascript","minimumFontSize","navigateOnDragDrop","nodeIntegration","nodeIntegrationInSubFrames","nodeIntegrationInWorker","offscreen","plugins","preload","safeDialogs","safeDialogsMessage","sandbox","scrollBounce","spellcheck","textAreasAreResizable","v8CacheOptions","webSecurity","webviewTag","onBeforeRedirect","onBeforeRequest","onBeforeSendHeaders","beforeSendResponse","onCompleted","onErrorOccurred","onHeadersReceived","headersReceivedResponse","onResponseStarted","onSendHeaders","types","getPathForFile","addEventListener","useCapture","removeEventListener","this","ev","getWebContentsId","allowpopups","disableblinkfeatures","disablewebsecurity","enableblinkfeatures","httpreferrer","nodeintegration","nodeintegrationinsubframes","src","useragent","webpreferences","createWindow","outlivesOpener","overrideBrowserWindowOptions","applicationName","applicationVersion","copyright","credits","authors","website","shouldRenderRichAnimation","scrollAnimationsEnabledBySystem","prefersReducedMotion","appId","appIconPath","appIconIndex","relaunchCommand","relaunchDisplayName","isProxy","realm","horizontal","vertical","requestHeaders","allocated","total","pairingKind","pin","redirectURL","dataTypes","origins","excludeOrigins","avoidClosingConnections","originMatchingMode","storages","quotas","credentials","useSessionCookies","hostname","redirect","referrerPolicy","cache","waitForBeforeUnload","minVersion","maxVersion","disabledCipherSuites","enableBuiltInResolver","secureDnsMode","secureDnsServers","enableAdditionalDnsQueryTypes","linkURL","linkText","pageURL","frameURL","srcURL","hasImageContents","isEditable","selectionText","titleText","altText","suggestedFilename","selectionRect","selectionStartOffset","misspelledWord","dictionarySuggestions","frameCharset","formControlType","spellcheckEnabled","menuSourceType","mediaFlags","editFlags","submitURL","companyName","ignoreSystemCrashHandler","rateLimit","compress","extra","globalExtra","urlChain","lastModified","eTag","startTime","html","rtf","bookmark","standard","serif","sansSerif","monospace","cursive","fantasy","math","deviceType","themeColor","frameName","postBody","disposition","iconType","largeIcon","noSound","respectQuietTime","videoRequested","audioRequested","useSystemPicker","offline","latency","downloadThroughput","uploadThroughput","serverType","forward","findNext","matchCase","steal","env","execArgv","stdio","allowLoadingUnsignedLibraries","respondToAuthRequestsFromMainProcess","features","statusLine","totalHeapSize","totalHeapSizeExecutable","totalPhysicalSize","totalAvailableSize","usedHeapSize","heapSizeLimit","mallocedMemory","peakMallocedMemory","doesZapGarbage","csp","isAutoRepeat","isComposing","shift","control","alt","meta","location","cssOrigin","minItems","removedItems","allowFileAccess","search","hash","httpReferrer","extraHeaders","postData","baseURLForDataURL","openAtLogin","openAsHidden","wasOpenedAtLogin","wasOpenedAsHidden","restoreState","executableWillLaunchAtLogin","launchItems","acceleratorWorksWhenHidden","before","after","beforeGroupContaining","afterGroupContaining","defaultId","signal","detail","checkboxLabel","checkboxChecked","textWidth","cancelId","noLink","normalizeAccessKeys","source","sourceUrl","lineNumber","conflictHandler","conflictType","webContentsId","resourceType","ip","fromCache","activate","defaultPath","buttonLabel","filters","properties","securityScopedBookmarks","canceled","bookmarks","logUsage","stayHidden","stayAwake","screenPosition","screenSize","viewPosition","deviceScaleFactor","viewSize","quantity","applicationUsername","paymentDiscount","embeddingOrigin","positioningItem","sourceType","numSockets","landscape","displayHeaderFooter","printBackground","pageSize","margins","pageRanges","headerTemplate","footerTemplate","preferCSSPageSize","generateTaggedPDF","generateDocumentOutline","bypassCSP","allowServiceWorkers","supportFetchAPI","corsEnabled","stream","codeCache","spellCheck","words","misspeltWords","execPath","validatedCertificate","isIssuedByKnownRoot","queryType","cacheUsage","secureDnsPolicy","cssStyleSheets","xslStyleSheets","fonts","other","confirmed","requestId","activeMatchOrdinal","matches","selectionArea","finalUpdate","nameFieldLabel","showsTagField","deviceList","thumbnailSize","fetchWindowIcons","captureMode","maxFileSize","video","audio","enableLocalEcho","free","swapTotal","swapFree","symbolColor","fontType","change","showCloseButton","select","highlight","highlightedIndex","isSelected","newValue","percentage","min","max","active","started","current","protectedClasses","visibleOnFullScreen","skipTransformProcessType","audible","isSameDocument","initiator","pagesPerSheet","collate","copies","duplexMode","dpi","header","footer","edge","canUndo","canRedo","canCut","canCopy","canPaste","canDelete","canSelectAll","canEditRichly","marginType","bottom","left","right","inError","isMuted","hasAudio","isLooping","isControlsVisible","canToggleControls","canPrint","canSave","canShowPictureInPicture","isShowingPictureInPicture","canRotate","canLoop","from","to","Common","clipboard","crashReporter","nativeImage","shell","Main","app","autoUpdater","contentTracing","desktopCapturer","dialog","globalShortcut","inAppPurchase","ipcMain","nativeTheme","net","powerMonitor","powerSaveBlocker","pushNotifications","safeStorage","screen","systemPreferences","utilityProcess","webFrameMain","Renderer","contextBridge","ipcRenderer","webFrame","webUtils","Utility","CrossProcessExports","parentPort","_0","sideEffect","_1","_2","_3","_4","NodeRequireFunction","moduleName","NodeRequire","_5","fs","_6","Document","createElement","tagName","Process","eventName","crash","getBlinkMemoryInfo","getCPUUsage","getCreationTime","getHeapStatistics","getProcessMemoryInfo","getSystemMemoryInfo","getSystemVersion","hang","setFdLimit","maxDescriptors","chrome","contextId","contextIsolated","defaultApp","electron","mas","noAsar","noDeprecation","resourcesPath","throwDeprecation","traceDeprecation","traceProcessWarnings","windowsStore","ProcessVersions"],"sources":["../src/context.ts","../src/websocket-server.ts","../src/ipc-core.ts","../src/handlers/shell.ts","../src/handlers/fs.ts","../src/handlers/config.ts","../src/handlers/history.ts","../src/handlers/engine.ts","../src/handlers/agents.ts","../src/handlers/build-history.ts","../src/handlers/index.ts","../src/config.ts","../src/api.ts","../src/handler-func.ts","../src/utils.ts","../src/plugins-registry.ts","../src/utils/remote.ts","../src/utils/fs-extras.ts","../../../node_modules/electron/electron.d.ts","../src/types/runner.ts","../src/runner.ts","../src/server.ts","../src/utils/github.ts","../src/fs-utils.ts"],"x_google_ignoreList":[18],"mappings":";;;;;;;;;;cAiBa,KAAA;AAAA,KAED,UAAA;AAAA,cAEC,sBAAA,GAA0B,GAAA,GAAM,UAAA;AAAA,cAgChC,WAAA;AAAA,cAEA,WAAA;EAAA;;;;KAMD,eAAA,WAA0B,WAAA,eAA0B,WAAA;AAAA,UAE/C,qBAAA;EACf,YAAA;EACA,UAAA;AAAA;AAAA,KAGG,IAAA,yCACH,CAAA,mBACA,CAAA,oCAAqC,CAAA,GACrC,CAAA,oEAAqE,CAAA,GAAI,CAAA,GAAI,IAAA,CAAK,CAAA,EAAG,CAAA;AAAA,cAG1E,cAAA;EAAA,SACK,YAAA;EAAA,SACA,UAAA;cAEJ,OAAA,EAAS,qBAAA;EAKrB,eAAA,oBAAA,CAAA,GAAuC,QAAA,EAAU,CAAA,eAAgB,IAAA,CAAK,CAAA;EAKtE,iBAAA,oBAAA,CAAA,GAAyC,QAAA,EAAU,CAAA,iBAAkB,IAAA,CAAK,CAAA;EAK1E,aAAA,oBAAA,CAAA,GAAqC,QAAA,EAAU,CAAA,aAAc,IAAA,CAAK,CAAA;EAKlE,eAAA,CAAA;EAIA,kBAAA,CAAA;EAIA,eAAA,CAAA;EAAA,QAIQ,eAAA;EAAA,QACA,mBAAA;EAAA,QAEA,WAAA;EAmBR,WAAA,oBAAA,CAAA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