MCPcopy Create free account
hub / github.com/tiann/hapi / buildMachineMetadata

Function buildMachineMetadata

cli/src/agent/sessionFactory.ts:41–51  ·  view source on GitHub ↗
(options?: { workspaceRoots?: string[] })

Source from the content-addressed store, hash-verified

39}
40
41export function buildMachineMetadata(options?: { workspaceRoots?: string[] }): MachineMetadata {
42 return {
43 host: process.env.HAPI_HOSTNAME || os.hostname(),
44 platform: os.platform(),
45 happyCliVersion: packageJson.version,
46 homeDir: os.homedir(),
47 happyHomeDir: configuration.happyHomeDir,
48 happyLibDir: runtimePath(),
49 workspaceRoots: options?.workspaceRoots
50 }
51}
52
53export function buildSessionMetadata(options: {
54 flavor: string

Callers 3

startRunnerFunction · 0.90
bootstrapSessionFunction · 0.85
bootstrapExistingSessionFunction · 0.85

Calls 1

runtimePathFunction · 0.90

Tested by

no test coverage detected