d63d58ccb5
- Move 15 old workflow-* packages to legacy-packages/ (inactive, preserved for reference)
- Rename templates/ → examples/ for clarity
- Rewrite docs/architecture.md to reflect current uwf architecture
- Active packages remain in packages/: cli-uwf, uwf-agent-hermes, uwf-agent-kit, uwf-moderator, uwf-protocol, workflow-util
小橘 🍊(NEKO Team)
10 lines
388 B
TypeScript
10 lines
388 B
TypeScript
import { createCasStore } from "@uncaged/workflow-cas";
|
|
import { ok, type Result } from "@uncaged/workflow-protocol";
|
|
import { getGlobalCasDir } from "@uncaged/workflow-util";
|
|
|
|
export async function cmdCasRm(storageRoot: string, hash: string): Promise<Result<void, string>> {
|
|
const cas = createCasStore(getGlobalCasDir(storageRoot));
|
|
await cas.delete(hash);
|
|
return ok(undefined);
|
|
}
|