supermemory/packages
Vorflux AI 3b6fc72fb5 refactor: replace Object.create with Proxy for model wrapping
Addresses review feedback about ES private fields breaking with
Object.create + Object.defineProperties approach:

Source changes (packages/tools/src/vercel/index.ts):
- Replace Object.create/Object.defineProperties with a Proxy that
  delegates property access to the original model instance. This
  preserves prototype getters, ES private fields (#field), and
  instance brand checks since 'this' inside getters remains the
  real model instance.
- Extract doGenerate/doStream overrides into named functions
  (wrappedDoGenerate/wrappedDoStream) for clarity.
- Remove one-use 'descriptors' intermediate variable (inlined).

Test changes (packages/tools/test/with-supermemory/unit.test.ts):
- Remove duplicate test 'should preserve all V3 metadata after
  wrapping' (strict subset of prototype getter test).
- Add MockLanguageModelV3WithPrivateFields class using true ES
  private fields (#config) to catch TypeError that would occur
  with Object.create-based wrapping.
- Add test 'should handle V3 models with ES private fields' that
  verifies the Proxy approach works with private field access.
- Clean up 'valid API key' test to be intentionally minimal
  (property preservation covered by dedicated V2/V3 suites).
2026-04-15 19:24:45 +00:00
..
agent-framework-python Add Supermemory integration for Microsoft Agent Framework (#775) 2026-03-10 01:49:45 +00:00
ai-sdk fix: username issue and bun lock issue (#818) 2026-03-31 21:41:25 +00:00
cartesia-sdk-python Supermemory-Cartesia SDK (#744) 2026-04-15 16:27:23 +00:00
docs-test one more try 2026-03-05 14:30:57 -08:00
hooks chore(nova): ux improvments (#820) 2026-04-02 18:20:34 +00:00
lib perf(lib): optimize subscription status lookup to O(n) (#848) 2026-04-12 15:47:45 -07:00
memory-graph fix: memory graph progressively loads all data and remove background 2026-04-11 14:20:41 -07:00
openai-sdk-python perf(middleware): await background task cancellation on timeout (#786) 2026-04-12 14:22:41 -07:00
pipecat-sdk-python chore: bump package versions 2026-01-22 20:50:51 -07:00
tools refactor: replace Object.create with Proxy for model wrapping 2026-04-15 19:24:45 +00:00
ui fix: privacy and terms pages links (#815) 2026-03-30 17:10:39 +00:00
validation feat: change "All Spaces" to "Nova Spaces" with multi-select support (#731) 2026-02-13 21:34:58 +00:00