github rohitg00/agentmemory v0.8.11
v0.8.11 — iii-sdk v0.11 getContext crash fix

12 hours ago

What's Fixed

node dist/index.mjs crashed on startup after the iii-sdk v0.11 migration (#116) merged:

SyntaxError: The requested module 'iii-sdk' does not provide an export named 'getContext'

iii-sdk v0.11 dropped getContext() entirely. 32 src/functions/*.ts files still imported and called it. The bug was invisible to CI (tests mock iii-sdk) and build (tsdown doesn't type-check).

Changes

  • src/logger.ts — new thin stderr shim with .info/.warn/.error replacing getContext().logger. Output goes to stderr as [agentmemory] <level> <msg>, forwarded into docker logs by iii-exec.
  • 32 src/functions/*.ts files — removed getContext imports, deleted const ctx = getContext() lines, replaced ctx.logger.* with logger.*
  • src/functions/search.ts — also fixed registerFunction({ id: '...' })registerFunction('...') for v0.11 string-ID API
  • 45 test files — updated vi.mock("iii-sdk") logger mocks to vi.mock("../src/logger.js")

Verification

  • node dist/index.mjs — starts cleanly, logs all startup lines
  • npm test — 731/731 pass

Don't miss a new agentmemory release

NewReleases is sending notifications on new releases.