Download packages/knowledge-fabric/src/index.ts from AnthropicallyHuggingFaces/ProjectOS: direct link, hf CLI and curl.
- Browser
- Download file 1.02 kB
-
https://huggingface.co/spaces/AnthropicallyHuggingFaces/ProjectOS/resolve/main/packages/knowledge-fabric/src/index.ts
- Command line
-
hf download hf://spaces/AnthropicallyHuggingFaces/ProjectOS/packages/knowledge-fabric/src/index.ts
-
curl -L -o index.ts https://huggingface.co/spaces/AnthropicallyHuggingFaces/ProjectOS/resolve/main/packages/knowledge-fabric/src/index.ts
1.02 kB
| import { randomUUID } from 'node:crypto'; | |
| export { CanonService } from './CanonService.js'; | |
| export { FrontierService } from './FrontierService.js'; | |
| export { SnapshotService } from './SnapshotService.js'; | |
| export { ArchiveService, type ArchiveInput } from './ArchiveService.js'; | |
| export { PromotionService, type GovernancePromotionResult, type LogicPromotionResult, type PromotionDependencies } from './PromotionService.js'; | |
| export { ConsolidationService, type ConsolidationInput } from './ConsolidationService.js'; | |
| export interface KnowledgeRecord { id: string; project: string; kind: string; title: string; created: string; payload: unknown } | |
| export function createKnowledgeRecord(input: Omit<KnowledgeRecord, 'created'>): KnowledgeRecord { | |
| return { ...input, created: new Date().toISOString() }; | |
| } | |
| export function createProjectSnapshot(project: string, payload: unknown): KnowledgeRecord { | |
| return createKnowledgeRecord({ id: randomUUID(), project, kind: 'snapshot', title: `${project} snapshot`, payload }); | |
| } | |