MCPcopy Index your code
hub / github.com/continuedev/continue / getUniqueId

Function getUniqueId

extensions/cli/src/util/uniqueId.ts:9–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 * Uses CONTINUE_USER_ID env var if set, otherwise falls back to machine ID.
8 */
9export function getUniqueId(): string {
10 if (!_uniqueId) {
11 if (process.env.CONTINUE_USER_ID) {
12 _uniqueId = process.env.CONTINUE_USER_ID;
13 } else {
14 _uniqueId = node_machine_id.machineIdSync();
15 }
16 }
17 return _uniqueId;
18}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected