MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / buildManifest

Function buildManifest

apps/desktop/src/main/diagnostics.ts:182–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

180 .replace(/\.\d+Z$/, "Z");
181
182const buildManifest = () => {
183 const settings = getServerSettings();
184 const executorLogs = join(app.getPath("home"), ".executor", "logs");
185 return {
186 generated: new Date().toISOString(),
187 app: app.getName(),
188 runId,
189 version: app.getVersion(),
190 packaged: app.isPackaged,
191 platform: process.platform,
192 arch: process.arch,
193 versions: process.versions,
194 uptimeSeconds: Math.round(process.uptime()),
195 errorReportingEnabled,
196 paths: {
197 userData: app.getPath("userData"),
198 logs: dirname(log.transports.file.getFile().path),
199 executorLogs,
200 crashDumps: app.getPath("crashDumps"),
201 },
202 // The bearer token is never included — it stays in auth.json on the machine.
203 serverSettings: {
204 port: settings.port,
205 },
206 };
207};
208
209/**
210 * Pack manifest + electron-log files + sidecar log + crash dumps into

Callers 1

exportDiagnosticsFunction · 0.70

Calls 1

getServerSettingsFunction · 0.90

Tested by

no test coverage detected