Skip to content

Conversation

@ymc9
Copy link
Member

@ymc9 ymc9 commented Aug 19, 2025

Summary by CodeRabbit

  • Refactor
    • CLI: “validate” command renamed to “check”; generate command no longer supports --silent; default --schema path updated; final generation messages always printed.
    • Runtime: removed “debug” client option; streamlined query error messages (less verbose).
    • Language: removed provider-specific @db type modifiers and password/omit attributes from the standard library; schema directive commented out.
  • Documentation
    • Updated CLI descriptions and help text across commands.
  • Tests
    • Updated CLI tests to use the new “check” command.
  • Chores
    • Bumped package versions to 3.0.0-alpha.28 across the monorepo.

ymc9 and others added 2 commits August 19, 2025 15:08
* chore: misc changes

* update

* fix tests

* fix lint

* update test

* update
Copilot AI review requested due to automatic review settings August 19, 2025 07:16
@coderabbitai
Copy link

coderabbitai bot commented Aug 19, 2025

Walkthrough

The PR bumps package versions to 3.0.0-alpha.28, renames the CLI command from “validate” to “check,” removes the generate --silent option, updates CLI texts/defaults, simplifies runtime query error messages, removes the debug client option, adjusts test schemas, and trims provider-specific/other attributes from stdlib.zmodel.

Changes

Cohort / File(s) Summary of changes
Version bumps
package.json, packages/*/package.json, samples/blog/package.json, tests/e2e/package.json
Incremented versions from 3.0.0-alpha.27 to 3.0.0-alpha.28; no other edits.
CLI command rename and generate option cleanup
packages/cli/src/index.ts, packages/cli/src/actions/index.ts, packages/cli/src/actions/generate.ts, packages/cli/src/actions/check.ts, packages/cli/test/check.test.ts
Replaced validate command with check; updated wiring/exports; removed generate --silent option and made final logs unconditional; minor description/default path updates; JSDoc tweak; tests updated to use check.
Language stdlib pruning
packages/language/res/stdlib.zmodel
Removed multiple provider-specific @db mappings, password/encrypted/omit attributes, and @@Schema directive; added comments and reorganized validation section headers.
Runtime client/error handling and options
packages/runtime/src/client/options.ts, packages/runtime/src/client/executor/zenstack-query-executor.ts, packages/runtime/src/client/crud/operations/base.ts, packages/runtime/src/client/client-impl.ts
Removed ClientOptions.debug; simplified query error messages (no parameter introspection); dropped unused import; doc comment tweak; behavior otherwise unchanged.
Runtime test schema adjustments
packages/runtime/test/schemas/todo/schema.ts, packages/runtime/test/schemas/todo/todo.zmodel
Removed @password and @omit attributes from User.password fields; types remain unchanged.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Poem

A hop, a bop—new alpha sprung,
“Validate” now “check,” the bell is rung.
Silent’s gone; the logs all sing,
Errors trimmed of every string.
Schemas light, the bytes take flight—
Version bumps by moonlit night.
Thump-thump! Ship it—just right. 🐰✨

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dev

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@claude
Copy link

claude bot commented Aug 19, 2025

Claude finished @ymc9's task —— View job


Pull Request Review

Reviewing PR #188 (dev → main) for code quality, bugs, performance, security, and test coverage.

Todo List

  • Analyze version consistency across packages
  • Review CLI action changes (check.ts, generate.ts, index.ts)
  • Review runtime client changes
  • Review language stdlib changes
  • Check for potential bugs and security issues
  • Assess performance implications
  • Evaluate test coverage impact
  • Provide comprehensive feedback

Code Review Summary

This appears to be a release PR merging development changes to main for version 3.0.0-alpha.28. The changes include version bumps, CLI refactoring, runtime improvements, and language specification updates.

Positive Findings

Version Consistency

  • All packages correctly updated to 3.0.0-alpha.28
  • Consistent versioning across the monorepo workspace

CLI Action Improvements

  • check.ts: Clean, simple schema validation with proper error handling
  • generate.ts: Well-structured with comprehensive plugin processing
  • Proper separation of concerns between action files

Runtime Client Architecture

  • client-impl.ts: Robust transaction handling with both interactive and sequential modes
  • base.ts: Comprehensive CRUD operations with proper error handling and validation
  • zenstack-query-executor.ts: Well-designed plugin architecture with proper mutation hooks

⚠️ Areas of Concern

Code Quality Issues

  1. Large Complex File (packages/runtime/src/client/crud/operations/base.ts):

    • 2,156 lines - this is extremely large and violates SRP
    • Recommendation: Break into smaller, focused classes (e.g., CreateOperationHandler, UpdateOperationHandler, etc.)
  2. TODO Comments in Production Code:

    // TODO: this is not clean, needs a better solution (base.ts:104)
    // TODO: should this work at kysely level instead? (base.ts:854)
    // TODO: trim the result to the original query node (zenstack-query-executor.ts:100)
    • Recommendation: Address TODOs before release or create proper tickets
  3. Commented Debug Code:

    // let createdEntity: any;
    // try {
    //     createdEntity = await this.executeQueryTakeFirst(kysely, query, 'create');
    // } catch (err) {
    //     const { sql, parameters } = query.compile();
    //     throw new QueryError(`Error during create: ${err}, sql: ${sql}, parameters: ${parameters}`);
    // }
    • Recommendation: Remove commented code or implement proper debug logging

Performance Considerations

  1. CLI Generation Output:

    • Large template literal output in generate.ts (lines 31-40) could be inefficient
    • Recommendation: Consider using a template engine for cleaner code generation
  2. Query Execution Pattern:

    • Multiple database round trips in complex operations (e.g., delegate model operations)
    • Some operations might benefit from batch processing

Test Coverage Gaps

  1. CLI Test Renaming:
    • check.test.ts was renamed but only basic structural changes
    • Recommendation: Ensure new check action has comprehensive test coverage

🔒 Security Assessment

Positive Security Practices

  • Proper input validation using InputValidator
  • Parameterized queries preventing SQL injection
  • Auth context properly handled in policy evaluation

Potential Security Concerns

  • Raw SQL query support in $executeRawUnsafe and $queryRawUnsafe methods
  • Recommendation: Ensure proper sanitization and access controls

📋 Minor Issues

  1. Magic Values:

    if (defaultValue.args?.[0] && ExpressionUtils.isLiteral(defaultValue.args?.[0]) && defaultValue.args[0].value === 7)
    • Recommendation: Use named constants instead of magic numbers
  2. Language Stdlib:

    • Removed 69 lines of code - ensure this doesn't break backward compatibility
    • Recommendation: Verify no breaking changes for existing schemas

🎯 Recommendations

  1. Immediate (Pre-merge):

    • Remove commented debug code
    • Address critical TODOs or create tickets
    • Verify test coverage for new CLI check action
  2. Post-release:

    • Refactor large base.ts file into smaller components
    • Implement proper debug logging system
    • Review and optimize query patterns for performance

Overall Assessment

This is a solid release PR with good architectural decisions and proper version management. The code quality is generally high with robust error handling and well-designed plugin architecture. The main concerns are around code organization (large files) and cleanup of development artifacts.

✅ Recommendation: APPROVE with minor cleanup suggestions for optimal code quality.


Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
packages/cli/src/actions/generate.ts (1)

30-40: Avoid absolute/OS-specific import path in snippet

Using ${outputPath}/schema can emit absolute paths and Windows backslashes, making the copy-paste snippet invalid. Build a normalized relative import path with forward slashes.

-    console.log(colors.green(`Generation completed successfully in ${Date.now() - start}ms.\n`));
-    console.log(`You can now create a ZenStack client with it.
-
-```ts
-import { ZenStackClient } from '@zenstackhq/runtime';
-import { schema } from '${outputPath}/schema';
-
-const client = new ZenStackClient(schema, {
-    dialect: { ... }
-});
-````);
+    const importPath = (() => {
+        const abs = path.join(outputPath, 'schema');
+        let rel = path.relative(process.cwd(), abs).replace(/\\/g, '/');
+        if (!rel.startsWith('.')) rel = './' + rel;
+        return rel;
+    })();
+    console.log(colors.green(`Generation completed successfully in ${Date.now() - start}ms.\n`));
+    console.log(`You can now create a ZenStack client with it.
+
+```ts
+import { ZenStackClient } from '@zenstackhq/runtime';
+import { schema } from '${importPath}';
+
+const client = new ZenStackClient(schema, {
+    dialect: { ... }
+});
+````);
🧹 Nitpick comments (7)
packages/cli/src/actions/check.ts (1)

16-19: Update CLI messages to say “check” instead of “validation”

User-facing messages still say “validation,” which is inconsistent with the new command name.

Apply:

-        console.log(colors.green('✓ Schema validation completed successfully.'));
+        console.log(colors.green('✓ Schema check completed successfully.'));
-        console.error(colors.red('✗ Schema validation failed.'));
+        console.error(colors.red('✗ Schema check failed.'));
packages/runtime/src/client/crud/operations/base.ts (1)

170-179: Error message simplified (good); optional: include model context and avoid stringifying unknown

Good move reducing PII by excluding parameters. For better diagnostics, consider including model and using (err as Error).message so we don't stringify unknown.

-            const message = `Failed to execute query: ${err}, sql: ${compiled.sql}`;
+            const message = `Failed to execute read on model "${model}": ${(err as Error).message}, sql: ${compiled.sql}`;
             throw new QueryError(message, err);
packages/cli/test/check.test.ts (3)

38-38: Align test names with the new “check” command

Rename the suite and test titles for consistency and future grep-ability.

-describe('CLI validate command test', () => {
+describe('CLI check command test', () => {
@@
-    it('should validate a valid schema successfully', () => {
+    it('should pass for a valid schema', () => {
@@
-    it('should fail validation for invalid schema', () => {
+    it('should fail for an invalid schema', () => {
@@
-    it('should validate schema with syntax errors', () => {
+    it('should detect schema syntax errors', () => {

Also applies to: 39-39, 46-46, 84-84


72-72: Use fs.rmSync instead of deprecated fs.rmdirSync

fs.rmdirSync is deprecated. Use fs.rmSync for forward compatibility.

-        fs.rmdirSync(path.join(workDir, 'zenstack'));
+        fs.rmSync(path.join(workDir, 'zenstack'), { recursive: true, force: true });

43-43: Optional: avoid shell interpolation in runCli to eliminate injection/escaping pitfalls

Tests are safe, but improving utils makes them more robust (handles spaces/escaping better).

Proposed change to packages/cli/test/utils.ts:

// Suggested refactor outside this file
import { execFileSync } from 'node:child_process';
import path from 'node:path';

export function runCli(command: string, cwd: string) {
    const cli = path.join(__dirname, '../dist/index.js');
    // naive split is enough for current usage; replace with a proper argv parser if needed
    const [cmd, ...args] = command.split(' ');
    execFileSync('node', [cli, cmd, ...args], { cwd, stdio: 'inherit' });
}
packages/cli/src/actions/index.ts (1)

6-6: Consider a temporary deprecated alias to ease migration

If external code imports actions.validate, a one-release deprecated alias can reduce breakage.

-import { run as check } from './check';
-
-export { db, generate, info, init, migrate, check };
+import { run as check } from './check';
+// Deprecated alias to smooth the transition; remove in a future release
+const validate = check;
+export { db, generate, info, init, migrate, check, validate };

Also applies to: 8-8

packages/cli/src/index.ts (1)

125-130: Optional: add a deprecated 'validate' alias command for smoother transition

Consider keeping a hidden/deprecated alias for one release to reduce breakage in user scripts.

     program
         .command('check')
         .description('Check a ZModel schema for syntax or semantic errors.')
         .addOption(schemaOption)
         .action(checkAction);
+
+    // Deprecated alias: remove in a future release
+    program
+        .command('validate', { hidden: false })
+        .description('[DEPRECATED] Use "check" instead.')
+        .addOption(schemaOption)
+        .action(async (options) => {
+            console.warn(colors.yellow('"zenstack validate" is deprecated; use "zenstack check" instead.'));
+            await checkAction(options);
+        });
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between c5660c5 and bca8ee8.

📒 Files selected for processing (29)
  • package.json (1 hunks)
  • packages/cli/package.json (1 hunks)
  • packages/cli/src/actions/check.ts (1 hunks)
  • packages/cli/src/actions/generate.ts (1 hunks)
  • packages/cli/src/actions/index.ts (1 hunks)
  • packages/cli/src/index.ts (4 hunks)
  • packages/cli/test/check.test.ts (3 hunks)
  • packages/common-helpers/package.json (1 hunks)
  • packages/create-zenstack/package.json (1 hunks)
  • packages/dialects/sql.js/package.json (1 hunks)
  • packages/eslint-config/package.json (1 hunks)
  • packages/ide/vscode/package.json (1 hunks)
  • packages/language/package.json (1 hunks)
  • packages/language/res/stdlib.zmodel (1 hunks)
  • packages/runtime/package.json (1 hunks)
  • packages/runtime/src/client/client-impl.ts (1 hunks)
  • packages/runtime/src/client/crud/operations/base.ts (1 hunks)
  • packages/runtime/src/client/executor/zenstack-query-executor.ts (1 hunks)
  • packages/runtime/src/client/options.ts (0 hunks)
  • packages/runtime/test/schemas/todo/schema.ts (1 hunks)
  • packages/runtime/test/schemas/todo/todo.zmodel (1 hunks)
  • packages/sdk/package.json (1 hunks)
  • packages/tanstack-query/package.json (1 hunks)
  • packages/testtools/package.json (1 hunks)
  • packages/typescript-config/package.json (1 hunks)
  • packages/vitest-config/package.json (1 hunks)
  • packages/zod/package.json (1 hunks)
  • samples/blog/package.json (1 hunks)
  • tests/e2e/package.json (1 hunks)
💤 Files with no reviewable changes (1)
  • packages/runtime/src/client/options.ts
🧰 Additional context used
📓 Path-based instructions (2)
{packages,samples,tests}/**

📄 CodeRabbit Inference Engine (CLAUDE.md)

Packages are located in packages/, samples/, and tests/

Files:

  • packages/testtools/package.json
  • packages/language/package.json
  • packages/zod/package.json
  • packages/typescript-config/package.json
  • samples/blog/package.json
  • packages/cli/src/actions/check.ts
  • packages/create-zenstack/package.json
  • packages/common-helpers/package.json
  • packages/cli/test/check.test.ts
  • packages/cli/src/actions/index.ts
  • packages/runtime/src/client/client-impl.ts
  • packages/sdk/package.json
  • packages/dialects/sql.js/package.json
  • tests/e2e/package.json
  • packages/runtime/src/client/executor/zenstack-query-executor.ts
  • packages/runtime/src/client/crud/operations/base.ts
  • packages/vitest-config/package.json
  • packages/cli/package.json
  • packages/tanstack-query/package.json
  • packages/ide/vscode/package.json
  • packages/eslint-config/package.json
  • packages/runtime/package.json
  • packages/runtime/test/schemas/todo/schema.ts
  • packages/runtime/test/schemas/todo/todo.zmodel
  • packages/cli/src/index.ts
  • packages/cli/src/actions/generate.ts
  • packages/language/res/stdlib.zmodel
tests/e2e/**

📄 CodeRabbit Inference Engine (CLAUDE.md)

E2E tests are in tests/e2e/ directory

Files:

  • tests/e2e/package.json
🧠 Learnings (2)
📚 Learning: 2025-08-04T08:43:33.161Z
Learnt from: CR
PR: zenstackhq/zenstack-v3#0
File: CLAUDE.md:0-0
Timestamp: 2025-08-04T08:43:33.161Z
Learning: `zenstack generate` compiles ZModel to TypeScript schema (`schema.ts`)

Applied to files:

  • packages/language/package.json
  • packages/cli/src/index.ts
  • packages/cli/src/actions/generate.ts
📚 Learning: 2025-08-04T08:43:33.161Z
Learnt from: CR
PR: zenstackhq/zenstack-v3#0
File: CLAUDE.md:0-0
Timestamp: 2025-08-04T08:43:33.161Z
Learning: Schema is used to instantiate `ZenStackClient` with type-safe CRUD operations

Applied to files:

  • packages/runtime/src/client/client-impl.ts
🧬 Code Graph Analysis (2)
packages/cli/test/check.test.ts (1)
packages/cli/test/utils.ts (2)
  • runCli (20-23)
  • createProject (12-18)
packages/cli/src/index.ts (2)
packages/runtime/src/client/executor/zenstack-query-executor.ts (1)
  • options (53-55)
packages/runtime/src/client/crud/operations/base.ts (1)
  • options (90-92)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: claude-review
  • GitHub Check: build-test (20.x)
🔇 Additional comments (31)
packages/typescript-config/package.json (1)

3-3: All alpha versions and internal dependencies are aligned

✅ No leftover alpha versions detected.
✅ All @zenstackhq internal dependencies use workspace:*.

tests/e2e/package.json (1)

3-3: E2E tests updated: no deprecated “validate” usage
No matches for validate under tests/e2e—CLI rename to check is correctly reflected. The version bump in tests/e2e/package.json also aligns with the new workspace release.

packages/dialects/sql.js/package.json (1)

3-3: Version bump approved.

No behavioral impact; aligns with monorepo release cadence.

packages/vitest-config/package.json (1)

4-4: Version bump approved.

Config package remains metadata-only; no risk introduced.

packages/zod/package.json (1)

3-3: Version bump approved.

No changes beyond metadata; dependencies/peers unchanged and consistent.

packages/runtime/package.json (1)

3-3: Version bump looks good

Consistent with the repo-wide alpha.28 release. No functional changes here.

packages/eslint-config/package.json (1)

3-3: LGTM on version bump

Private ESLint config package bumped to alpha.28; no other changes.

packages/testtools/package.json (1)

3-3: LGTM on version bump

Matches the coordinated alpha.28 release across the monorepo.

packages/common-helpers/package.json (1)

3-3: LGTM on version bump

No API or dependency changes; aligns with the release train.

package.json (2)

3-3: Root version bump approved

Root package updated to 3.0.0-alpha.28; consistent with the coordinated release.


3-3: All package.json versions match 3.0.0-alpha.28
✅ Verified that every package.json in the repository (root, packages, samples, tests) reports version 3.0.0-alpha.28. No further action needed.

packages/language/package.json (1)

4-4: Monorepo version consistency verified

All internal packages (@zenstackhq/*, create-zenstack, zenstack) are at 3.0.0-alpha.28 and no lingering “alpha.27” references remain.

• packages/cli through packages/zod → all at 3.0.0-alpha.28
• samples/blog, tests/e2e, root package.json → 3.0.0-alpha.28
• grep –R reported zero matches for “alpha.27”

packages/cli/package.json (1)

6-6: CLI package version bump: looks good.

No other changes; aligns with the repo-wide release bump.

packages/ide/vscode/package.json (1)

4-4: VS Code extension version bump: OK.

Pre-release bump aligns with the rest of the workspace.

packages/create-zenstack/package.json (1)

3-3: create-zenstack version bump: OK.

No functional changes in this file; consistent with the release train.

packages/sdk/package.json (1)

3-3: SDK version bump: OK.

Exports and dependencies unchanged; compatible with the monorepo-wide version update.

packages/runtime/test/schemas/todo/schema.ts (1)

183-184: Verified: No tests depend on omission of the password field

We scanned all occurrences of “password” in the repo:

  • In packages/runtime/test/utils.ts, it’s only used for the TEST_PG_PASSWORD DB connection string.
  • In packages/runtime/test/schemas/todo/schema.ts and the other Z-model schemas, it appears only as a generated field definition.
  • No .ts/.js test files access .password on model instances or assert that it’s omitted.

This change only affects the generated schema output; there’s no test in this repo that would leak or fail based on treating password as a plain optional String. Application-level code remains responsible for omitting or hashing passwords as appropriate.

packages/cli/src/actions/check.ts (1)

8-10: Docstring rename to “check” looks good

The JSDoc now matches the “check” terminology.

packages/runtime/src/client/client-impl.ts (1)

37-39: LGTM: wording tweak

Comment updated to “ZenStack ORM client.” reads clearer. No functional changes.

packages/tanstack-query/package.json (1)

3-3: Version bump aligned

Alpha bump to 3.0.0-alpha.28 looks consistent with the repo-wide update.

samples/blog/package.json (1)

3-3: Version bump aligned

Sample updated to 3.0.0-alpha.28. No other changes—looks good.

packages/runtime/test/schemas/todo/todo.zmodel (1)

73-73: Password field now selectable by default – verify test and sample code

Removing the per‐field @omit means password will be returned by default. I didn’t find any direct queries against the User model in packages/runtime/test/schemas/todo, but please manually verify that no tests or sample snippets unintentionally expose this field:

  • Locate any calls that fetch or return a User (e.g. findUnique, findMany, create, update).

  • For those queries, explicitly omit the password:

    client.user.findMany({ omit: { password: true } });
  • Alternatively, enforce a model-level default omit in your schema:

    model User {
      password String?   @select(false)
      // … 
    }

Re-run your test suite to confirm nothing breaks. Let me know if you’d like patches to apply omit: { password: true } across your tests.

packages/runtime/src/client/executor/zenstack-query-executor.ts (1)

156-164: PII-safe error reporting LGTM

Switching to a concise message without dumping parameters removes a potential leakage path and keeps logs cleaner. Looks good.

packages/language/res/stdlib.zmodel (1)

475-480: Commenting out @@Schema directive doc is fine

Acknowledging multi-schema support without exposing an active attribute aligns with the trimming effort. Looks good.

packages/cli/test/check.test.ts (1)

43-43: Command rename in tests looks good

All invocations updated to use the new "check" command and continue asserting throw/no-throw semantics appropriately.

Also applies to: 50-50, 58-58, 65-65, 81-81, 99-99

packages/cli/src/actions/index.ts (2)

6-6: Wiring “check” action export looks correct

Imports/exports updated cleanly from validate → check.

Also applies to: 8-8


6-6: Verified: check action present and no stale validate imports

  • packages/cli/src/actions/check.ts exists and exports run
  • No from './validate' or actions.validate references in the CLI source (only descriptive text in tests)
packages/cli/src/index.ts (4)

28-30: LGTM: new checkAction is correctly typed and delegated

The action signature tracks actions.check via Parameters[0], keeping types in sync.


60-62: LGTM: wording improvements for migrate/db/info

Descriptions are clearer and consistent; no behavioral impact.

Also applies to: 100-101, 107-107, 115-116


49-51: Default schema path matches resolution logic
Confirmed that the resolver first checks ./zenstack/schema.zmodel, matching the documented default. No changes needed.


53-59: Verify complete removal of --silent flag
Ran a repo-wide search for --silent (using rg -nP --hidden --glob '!.git' --glob '!**/dist/**' --glob '!**/node_modules/**' '\B--silent\b') and found no occurrences. Docs, help text, and the action parser no longer reference it.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@ymc9 ymc9 added this pull request to the merge queue Aug 19, 2025
Merged via the queue into main with commit 32691ce Aug 19, 2025
8 of 12 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.

2 participants