- add POST /import, an import page and the import_yaml mcp tool; items are validated up front and imported in dependency order - switch list page import buttons to the central import - write scenario exports as separate --- yaml documents per entity - give each test app its own files dir to avoid cross-suite races - use node: prefix for node built-in imports - bump version to 1.18.0
12 lines
269 B
TypeScript
12 lines
269 B
TypeScript
import { AsyncLocalStorage } from "node:async_hooks";
|
|
|
|
export interface TraceStore {
|
|
traceId: string;
|
|
}
|
|
|
|
export const traceStorage = new AsyncLocalStorage<TraceStore>();
|
|
|
|
export function getTraceId(): string | undefined {
|
|
return traceStorage.getStore()?.traceId;
|
|
}
|