Release v0.3.3 - ObjectAI documentation + critical build fixes#102
Release v0.3.3 - ObjectAI documentation + critical build fixes#102
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Bumped all packages to version 0.3.3 - Added comprehensive ObjectAI implementation documentation - Fixed validation.zod.ts syntax errors and missing CustomValidatorSchema - Fixed AI module exports (orchestration vs workflow-automation) - Fixed import paths (ApiEndpoint, DriverInterface, DriverOptions) - Updated query parameters (top -> limit, filters -> where) - Updated DriverCapabilities schema compatibility - Updated CHANGELOG.md and RELEASE_NOTES.md Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
| @@ -1,4 +1,4 @@ | |||
| import { QueryAST, FilterNode, SortNode, AggregationNode, WindowFunctionNode } from '@objectstack/spec/data'; | |||
| import { QueryAST, SortNode, AggregationNode, WindowFunctionNode } from '@objectstack/spec/data'; | |||
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 2 months ago
To fix an unused import, remove that specific symbol from the import statement while leaving the rest of the imports and functionality unchanged. In this case, we should edit packages/client/src/index.ts, line 1, and delete WindowFunctionNode from the curly-brace list. No other code changes are required because the symbol is not referenced elsewhere in the shown code. The import will then only include QueryAST, SortNode, and AggregationNode, which are actually used.
| @@ -1,4 +1,4 @@ | ||
| import { QueryAST, SortNode, AggregationNode, WindowFunctionNode } from '@objectstack/spec/data'; | ||
| import { QueryAST, SortNode, AggregationNode } from '@objectstack/spec/data'; | ||
|
|
||
| export interface ClientConfig { | ||
| baseUrl: string; |
| @@ -1,13 +1,15 @@ | |||
| import { QueryAST, QueryInput } from '@objectstack/spec/data'; | |||
| import { DriverInterface, DriverOptions } from '@objectstack/spec/system'; | |||
| import { QueryAST, QueryInput, DriverOptions } from '@objectstack/spec/data'; | |||
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 2 months ago
In general, the way to fix an unused import is to remove only the unused symbol from the import list, leaving all used imports intact. This reduces noise without changing runtime behavior.
For this file, we should edit the import on line 1 so that it no longer imports QueryAST, but still imports QueryInput and DriverOptions exactly as before. No other code changes are required, and no new methods, definitions, or imports are needed. Concretely, in packages/driver-memory/src/memory-driver.ts, change the named import list from { QueryAST, QueryInput, DriverOptions } to { QueryInput, DriverOptions }.
| @@ -1,4 +1,4 @@ | ||
| import { QueryAST, QueryInput, DriverOptions } from '@objectstack/spec/data'; | ||
| import { QueryInput, DriverOptions } from '@objectstack/spec/data'; | ||
|
|
||
| /** | ||
| * Example: In-Memory Driver |
Overview
Version bump to 0.3.3 for new ObjectAI documentation. Required fixing multiple build-blocking issues discovered during release preparation.
Version Updates
All packages bumped from 0.3.2 → 0.3.3 via changesets:
@objectstack/spec,@objectstack/types@objectstack/objectql,@objectstack/runtime,@objectstack/client@objectstack/driver-memory,@objectstack/plugin-hono-server,@objectstack/plugin-mswBuild Fixes
Schema Definition Errors
CustomValidatorSchemaandJSONValidationtype exportsorchestration.zodnotworkflow-automation.zod)Module Boundary Corrections
Moved types to their correct protocol layers:
Query API Normalization
Aligned with QuerySchema specification:
top→limitskip→offsetfilters→wheresort→orderByDriver Protocol Compliance
vectorSearch,geoSpatialimplements DriverInterface(zod function schemas don't support structural typing)Documentation
Updated CHANGELOG.md and RELEASE_NOTES.md with v0.3.3 details.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.