Gear Shifter.Test
Path:
pi-cybernetic/test/gear-shifter.test.tsRelative: test/gear-shifter.test.tsSubproject: pi-cyberneticCategory: cybernetic-testsLines: 42Bytes: 1,852Imports: 5Exports: 0has tests
Content Preview
- import { describe, expect, test } from "bun:test";
- import type { AgentMessage } from "@earendil-works/pi-agent-core";
- import { GearShifter } from "../src/engines/gear-shifter.ts";
- import type { MemoryConfig } from "../src/types/index.ts";
- import { makeToolResult } from "./fixtures.ts";
- const config: MemoryConfig = {
- maxContextTokens: 100_000,
- entropyThreshold: 0.5,
- keepRecentMessages: 1,
- compressedBodyChars: 50,
- semanticPromotionCount: 2,
- skillPromotionThreshold: 2,
- maxInjectedSki