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

Function buildManifest

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

Source from the content-addressed store, hash-verified

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