supermemory/packages/tools/test/with-supermemory
rajashidattapy 81f1f5ccf1 fix(tools): clear every type error under packages/tools/test
`claude-memory.ts` moved to src/ and five files in test/ kept importing
`./claude-memory`; the Mastra and AI-SDK fixtures drifted behind their
installed types. Together these left `bunx tsc --noEmit` unusable for the
package.

- repoint the five `./claude-memory` imports at `../src/claude-memory`
- add the `state` property Mastra now requires on ProcessInputArgs and
  ProcessOutputResultArgs (35 fixtures)
- add `totalTokens` to the two LanguageModelV2Usage fixtures and drop the
  `rawCall` property the type no longer has
- iterate with `.entries()` instead of indexing, which was tripping
  noUncheckedIndexedAccess once the files started resolving
- pass containerTag/customId through options in test-supermemory.ts, matching
  the current `withSupermemory` signature
- exclude test/chatapp: a standalone Next.js demo with its own package.json,
  lockfile and tsconfig that has no business in this package's program

Repointing the import also made test/claude-memory.test.ts loadable again, and
it turned out to be a live-API suite: gate it behind SUPERMEMORY_API_KEY the
same way the other integration suites are, so `vitest run` no longer collects
a dozen 401s.
2026-10-02 18:35:07 -07:00
..
conversation-conversion.test.ts fix(tools,validation): persist tool-call turns in conversation memory & tidy search thresholds (#1211) 2026-07-10 18:54:56 -07:00
integration.test.ts custom id implementation (#877) 2026-04-24 23:43:16 +00:00
unit.test.ts fix(tools): clear every type error under packages/tools/test 2026-10-02 18:35:07 -07:00