MCPcopy Create free account
hub / github.com/cortexkit/magic-context / getPendingOps

Function getPendingOps

packages/plugin/src/tools/ctx-reduce/tools.test.ts:83–90  ·  view source on GitHub ↗
(db: Database, sessionId: string)

Source from the content-addressed store, hash-verified

81}
82
83function getPendingOps(db: Database, sessionId: string) {
84 return db
85 .prepare("SELECT * FROM pending_ops WHERE session_id = ? ORDER BY tag_id ASC")
86 .all(sessionId) as Array<{
87 tag_id: number;
88 operation: string;
89 }>;
90}
91
92function getLastNudgeTokens(db: Database, sessionId: string): number {
93 const row = db

Callers 1

tools.test.tsFile · 0.70

Calls 1

prepareMethod · 0.45

Tested by

no test coverage detected