Procedural Store
Path:
pi-cybernetic/src/storage/procedural-store.tsRelative: src/storage/procedural-store.tsSubproject: pi-cyberneticCategory: cybernetic-coreLines: 78Bytes: 2,391Imports: 2Exports: 1
Content Preview
- /** Procedural memory — verified skills + working memory (active hypotheses). */
- import type { ActiveHypothesis, Evidence, VerifiedSkill } from "../types/index.ts";
- import { cosineSimilarity, nextId, termFrequency } from "../util.ts";
- export class ProceduralStore {
- private skills: VerifiedSkill[] = [];
- private hypotheses = new Map<string, ActiveHypothesis>();
- addSkill(name: string, tags: string[], pattern: string): VerifiedSkill {
- const existing = this.skills.find((skill) => skill.n