Skip to content

Add v2 page-memory schema support#108

Merged
suguanYang merged 3 commits into
mainfrom
feat/wangbinqi/v2-page-memory-api
Jul 2, 2026
Merged

Add v2 page-memory schema support#108
suguanYang merged 3 commits into
mainfrom
feat/wangbinqi/v2-page-memory-api

Conversation

@suguanYang

Copy link
Copy Markdown
Contributor

Summary

  • add SDK-level apiVersion support with default v1 behavior and per-call overrides for jobs, documents, polling/loading, and retrieval
  • add v2 page-memory schemas: page chunks, contentSource, page metadata/entities, pageChunks, and retrieval chunkTypes / expanded dataType
  • update result parsing, local knowledge helpers, tests, README examples, and add a patch changeset for the SDK release

Notes

Verification

  • pnpm run format:check:all
  • pnpm run lint:all (passed with existing warning-only lint output)
  • pnpm run typecheck:all
  • pnpm run test:all (278 root tests + 11 MCP tests)
  • pnpm run build:all
  • git diff --check

@suguanYang

Copy link
Copy Markdown
Contributor Author

Follow-up update for the v2-only direction:

  • Removed the public apiVersion / v1 parse-flow switching surface from the SDK.
  • SDK requests now always use /v2 for parse, jobs, documents, polling, and retrieval.
  • @ontos-ai/knowhere-sdk and @ontos-ai/knowhere-mcp are now explicitly versioned as 2.0.0; I removed the normal Changesets major entry because a major bump from 0.x would have released 1.0.0, not 2.0.0.
  • Legacy parsed-result chunk inspection remains for existing v1 result ZIPs.

Validation:

  • pnpm run format:all
  • pnpm run format:check:all
  • pnpm run lint:all (existing warnings only)
  • pnpm run typecheck:all
  • pnpm run test:all
  • pnpm run build:all
  • pnpm run release:check-changeset -- origin/main
  • git diff --check

Remote CI is green for Node 20 and Node 22 on commit 31c88e2.

@suguanYang suguanYang merged commit b866444 into main Jul 2, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant