Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…orrections Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Contributor
|
This PR is very large. Consider breaking it into smaller PRs for easier review. |
hotlong
marked this pull request as ready for review
January 29, 2026 02:23
hotlong
merged commit Jan 29, 2026
dda5213
into
copilot/update-examples-and-cleanup
8 of 9 checks passed
Copilot stopped work on behalf of
hotlong due to an error
January 29, 2026 02:24
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request fixes TypeScript compilation errors in the examples/basic package by updating example code to align with the current type definitions in @objectstack/spec. The changes are primarily structural updates to match evolved schema definitions.
Changes:
- Updated all imports to use the namespaced structure (
AI.*,API.*,Auth.*,Permission.*,Automation.*) instead of direct type imports - Corrected object field definitions from array format to Record/object format
- Fixed workflow, approval, and agent configurations to match current schema requirements
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| stack-definition-example.ts | Updated manifest to include required id and type fields; converted object fields from array to Record format; updated reference fields from object to string format; restructured views, dashboards, workflows, and agents to match current schemas; removed invalid properties like labelPlural, nameField |
| automation-example.ts | Changed imports to Automation namespace; updated workflow rules with flat structure (objectName, triggerType, criteria as formula strings); updated approval process with correct action structure (onApprove, onReject, onFinalApprove, onFinalReject); removed deprecated Flow and ETLPipeline examples |
| auth-permission-example.ts | Changed imports to Auth and Permission namespaces; added required priority field to RLS policies; updated Territory schema with modelId, type, assignmentRule (formula), assignedUsers, and access level fields; fixed method parameter types to handle extended User type |
| api-discovery-example.ts | Updated imports to use API namespace for DiscoveryResponse and ApiCapabilities types |
| ai-rag-example.ts | Changed imports to AI namespace; added required vector store configuration properties (batchSize, connectionPoolSize, timeout); added cache configuration; updated RAG query requests with includeMetadata and includeSources; updated Agent configuration (instructions instead of systemPrompt, knowledge with indexes/topics instead of pipeline, tools require type field); removed non-existent response fields |
This was referenced Oct 19, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix TypeScript Build Errors in examples/basic
Problem
The
examples/basicpackage has TypeScript compilation errors due to:@objectstack/spec(namespace structure not followed)Plan
Changes Made
ai-rag-example.ts
AInamespacebatchSize,connectionPoolSize,timeout)includeMetadata,includeSources)typefield)api-discovery-example.ts
APInamespaceauth-permission-example.ts
AuthandPermissionnamespacespriorityfield to RLS policiesautomation-example.ts
Automationnamespacecriteriafrom objects to formula stringsstack-definition-example.ts
idandtypefields to manifestfieldsfrom arrays to Record (object) formatVerification
✅ All examples now compile successfully with TypeScript
✅ Full project build passes
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.