Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 35 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
"git:prune": "bash scripts/git/prune-merged.sh",
"ship": "git push origin main",
"prepare": "husky",
"sync:agent-core": "tsx scripts/sync-agent-core.ts",
"probe:models": "tsx scripts/probe-models.ts",
"check:models": "tsx scripts/check-model-ids.ts",
"check:telemetry": "tsx scripts/check-telemetry.ts",
Expand All @@ -118,7 +117,7 @@
"@xterm/addon-fit": "^0.11.0",
"@xterm/addon-web-links": "^0.12.0",
"@xterm/xterm": "^6.0.0",
"ai-kit": "github:bitbaum/ai-kit#v0.2.1",
"ai-kit": "github:bitbaum/ai-kit#v0.6.2",
"bip-kit": "^0.1.0",
"bs58check": "^4.0.0",
"class-variance-authority": "^0.7.1",
Expand Down
41 changes: 0 additions & 41 deletions scripts/sync-agent-core.ts

This file was deleted.

145 changes: 0 additions & 145 deletions scripts/test/agent-core-drift.ts

This file was deleted.

6 changes: 3 additions & 3 deletions scripts/test/agent-grounding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import {
renderFacts,
unrecordedFields,
NOT_RECORDED,
} from "../../src/lib/agent/core/facts";
import { buildContract, buildGroundedContext, renderDirectives, buildAssistantRules, NO_BASIS } from "../../src/lib/agent/core/contract";
import { verifyAnswer, buildRepairPrompt } from "../../src/lib/agent/core/verify";
} from "ai-kit/grounding";
import { buildContract, buildGroundedContext, renderDirectives, buildAssistantRules, NO_BASIS } from "ai-kit/grounding";
import { verifyAnswer, buildRepairPrompt } from "ai-kit/grounding";

// ── The real records, exactly as FleetCrown stores them ──────────────────────
const FACTS = assignFactIds([
Expand Down
2 changes: 1 addition & 1 deletion scripts/test/agent-tool-loop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { z } from "zod";
import { parseTextToolCalls, stripToolCallLines, type ModelTurn } from "../../src/lib/agent/llm";
import { defineTool, renderToolCatalog, toOpenAITools, type ToolRegistry } from "../../src/lib/agent/tools/registry";
import { runLokiTurn } from "../../src/lib/agent/loop";
import { makeFact, assignFactIds } from "../../src/lib/agent/core/facts";
import { makeFact, assignFactIds } from "ai-kit/grounding";

const NAMES = ["search_people", "list_projects", "propose_action"];

Expand Down
2 changes: 1 addition & 1 deletion scripts/test/fact-budget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
estimateTokens,
omissionNotice,
} from "@/lib/agent/fact-budget";
import type { Fact } from "@/lib/agent/core/facts";
import type { Fact } from "ai-kit/grounding";

function assert(condition: boolean, message: string): void {
if (!condition) throw new Error(message);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/agent/brief.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import { getStuckGoals, getGoalsDueSoon, listUpcomingCommitments } from "@/db/queries/today";
import { getEventsDueSoon } from "@/db/queries/events";
import { getTodayHabits } from "@/db/queries/habits";
import type { Directive } from "@/lib/agent/core/contract";
import type { Directive } from "ai-kit/grounding";

/** Days ahead treated as "imminent" for the day-planning brief. */
const IMMINENT_DAYS = 3;
Expand Down
4 changes: 2 additions & 2 deletions src/lib/agent/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
* records answers about the wrong one. Cheap deterministic facts (people,
* projects) are kept whole; retrieved documents are the elastic part.
*/
import { assignFactIds, renderFacts, type Fact } from "@/lib/agent/core/facts";
import { buildGroundedContext, type Directive } from "@/lib/agent/core/contract";
import { assignFactIds, renderFacts, type Fact } from "ai-kit/grounding";
import { buildGroundedContext, type Directive } from "ai-kit/grounding";
import {
peopleFacts,
projectFacts,
Expand Down
74 changes: 0 additions & 74 deletions src/lib/agent/core/README.md

This file was deleted.

Loading
Loading