fleet-memory/scripts
Nicolò Boschi 72c25c97e3
feat(typescript-client): Deno compatibility (#607)
* feat(typescript-client): add Deno compatibility

- Switch build from tsc to tsup for dual CJS + ESM output with proper exports field
- Add deno_setup.ts preload that injects Jest-compatible globals (describe/test/expect) via @std/testing/bdd and @std/expect
- Fix generated client.gen.ts: exclude hey-api internal `client` field from RequestInit spread to avoid conflict with Deno.HttpClient
- Add test:deno npm script using --unstable-sloppy-imports and --preload
- Add test-typescript-client-deno CI job using denoland/setup-deno@v2 (v2.x)
- Update docs: rename page to TypeScript / JavaScript Client, add Deno installation section

* feat: add Deno compatibility to ai-sdk and chat integrations

- Switch ai-sdk and chat builds from tsc to tsup (ESM bundle, eliminates
  extension-less import issues in Deno)
- Add deno.json import map to ai-sdk redirecting 'vitest' to a custom
  vitest-compat.ts shim and bare npm specifiers to npm: URLs
- Add vitest-compat.ts shim implementing vi.fn()/vi.spyOn()/vi.mocked()
  using @std/expect's Symbol.for("@MOCK") interface so toHaveBeenCalledWith
  and other mock matchers work under Deno
- Add test:deno script to ai-sdk (all 30 tests pass under Deno)

* ci: add Deno test job for ai-sdk integration

Adds a new test-ai-sdk-integration-deno CI job that runs the ai-sdk
unit tests under Deno LTS, verifying Deno compatibility of the package.

* fix: remove broken link to non-existent n8n blog post in streamlit post

* fix: patch client.gen.ts for Deno compatibility during generation

Add a post-generation patch step to generate-clients.sh that removes
the hey-api internal 'client' field from the RequestInit spread in
client.gen.ts. Deno's Request constructor rejects 'client' because it
conflicts with the Deno.HttpClient option name.
2026-03-18 14:25:35 +01:00
..
benchmarks fix: improve async batch retain with large payloads (#366) 2026-02-16 12:51:42 +01:00
dev feat: observation history tracking and diff UI (#513) 2026-03-06 16:16:05 +01:00
hooks feat: introduce hindsight-api-slim and hindsight-all-slim packages (#560) 2026-03-13 13:50:03 +01:00
generate-clients.sh feat(typescript-client): Deno compatibility (#607) 2026-03-18 14:25:35 +01:00
generate-docs-skill.sh docs: add Best Practices unversioned page (#598) 2026-03-17 14:03:38 +01:00
generate-openapi.sh doc: changelog for 0.2.0 (and regenerate clients) (#99) 2026-01-05 12:36:29 +01:00
release.sh feat: add Agno integration with Hindsight memory toolkit (#596) 2026-03-18 11:17:23 +01:00
run-upgrade-tests.sh ci: add upgrade tests (#200) 2026-01-26 15:25:30 +01:00
setup-hooks.sh feat: support for gemini-3-pro and gpt-5.2 (#30) 2025-12-16 11:00:27 +01:00
smoke-test-slim.sh fix: remove broken minimax test and enhance slim smoke test with retain/recall (#564) 2026-03-13 14:10:32 +01:00
sync-cookbook.sh bump pg0 0.11.x and improve documentation (#33) 2025-12-16 13:33:01 +01:00
test-doc-examples.sh feat: use official go generator for Go client (#377) 2026-02-16 14:04:12 +01:00
update-docs-version.sh feat: add docs skill (#335) 2026-02-10 14:41:51 +01:00