5970456a54
CI / check (pull_request) Failing after 8m30s
Rename packages/ subdirectories to match their @united-workforce/* scope: cli-workflow → cli workflow-agent-builtin → agent-builtin workflow-agent-claude-code → agent-claude-code workflow-agent-hermes → agent-hermes workflow-dashboard → dashboard workflow-protocol → protocol workflow-util-agent → util-agent workflow-util → util Updated all tsconfig references, scripts, and active docs. Historical docs (docs/plans/, docs/superpowers/) left as-is. Closes #21
19 lines
625 B
TypeScript
19 lines
625 B
TypeScript
import { homedir } from "node:os";
|
|
import { join } from "node:path";
|
|
|
|
/** Default filesystem root for workflow data (`~/.uwf`). */
|
|
export function getDefaultStorageRoot(): string {
|
|
return join(homedir(), ".uwf");
|
|
}
|
|
|
|
/** @deprecated Use `getDefaultStorageRoot` instead. */
|
|
export function getDefaultWorkflowStorageRoot(): string {
|
|
return getDefaultStorageRoot();
|
|
}
|
|
|
|
/** Global content-addressed store directory under the workflow storage root (`<root>/cas`). */
|
|
export function getGlobalCasDir(storageRoot: string | undefined): string {
|
|
const root = storageRoot ?? getDefaultStorageRoot();
|
|
return join(root, "cas");
|
|
}
|