-
Notifications
You must be signed in to change notification settings - Fork 1.3k
docs: update workflow docs and mark schema commands as experimental #526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (3)
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. Comment |
Add [experimental] tag to help description and runtime warning for schema management commands to indicate they may change.
4a1db13 to
2c1fd3f
Compare
Greptile SummaryUpdated documentation to reflect implemented schema management features from PRs #522 and #525, and marked schema commands as experimental with
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant CLI
participant SchemaCmd
participant Resolver
participant FileSystem
User->>CLI: openspec schema <subcommand>
CLI->>SchemaCmd: registerSchemaCommand()
SchemaCmd->>SchemaCmd: preAction hook
SchemaCmd-->>User: "Schema commands are experimental"
alt schema which [name]
User->>SchemaCmd: which spec-driven
SchemaCmd->>Resolver: getSchemaDir(name, projectRoot)
Resolver->>FileSystem: Check project/openspec/schemas/
Resolver->>FileSystem: Check ~/.local/share/openspec/schemas/
Resolver->>FileSystem: Check package schemas/
FileSystem-->>Resolver: Return paths and existence
Resolver-->>SchemaCmd: First existing location
SchemaCmd-->>User: Display source and path
else schema which --all
User->>SchemaCmd: which --all
SchemaCmd->>Resolver: listSchemas(projectRoot)
Resolver->>FileSystem: Read all schema directories
FileSystem-->>Resolver: All schema names
SchemaCmd->>SchemaCmd: checkAllLocations for each
SchemaCmd-->>User: List by source (project, user, package)
else schema validate [name]
User->>SchemaCmd: validate my-workflow
SchemaCmd->>Resolver: getSchemaDir(name, projectRoot)
Resolver-->>SchemaCmd: Schema directory path
SchemaCmd->>FileSystem: Read schema.yaml
FileSystem-->>SchemaCmd: Schema YAML content
SchemaCmd->>SchemaCmd: parseSchema()
SchemaCmd->>SchemaCmd: Check template files exist
SchemaCmd->>SchemaCmd: Validate dependency graph (cycles)
SchemaCmd-->>User: Validation result
else schema fork <source> [name]
User->>SchemaCmd: fork spec-driven my-workflow
SchemaCmd->>Resolver: getSchemaDir(source, projectRoot)
Resolver-->>SchemaCmd: Source directory
SchemaCmd->>FileSystem: Check if destination exists
alt Destination exists
SchemaCmd-->>User: Error or confirm overwrite
else Destination available
SchemaCmd->>FileSystem: Copy directory recursively
SchemaCmd->>FileSystem: Update name in schema.yaml
FileSystem-->>SchemaCmd: Success
SchemaCmd-->>User: Forked schema created
end
else schema init <name>
User->>SchemaCmd: init my-workflow
SchemaCmd->>SchemaCmd: Validate name (kebab-case)
SchemaCmd->>FileSystem: Check if schema exists
alt Schema exists
SchemaCmd-->>User: Error or confirm overwrite
else New schema
SchemaCmd->>User: Prompt for description
User-->>SchemaCmd: Enter description
SchemaCmd->>User: Prompt for artifacts (multi-select)
User-->>SchemaCmd: Select artifacts
SchemaCmd->>FileSystem: Create openspec/schemas/<name>/
SchemaCmd->>FileSystem: Write schema.yaml
SchemaCmd->>FileSystem: Create template files
FileSystem-->>SchemaCmd: Success
SchemaCmd-->>User: Schema initialized
end
end
|
Review CompleteYour review story is ready! Comment !reviewfast on this PR to re-generate the story. |
…ission-AI#526) * docs: update workflow docs for schema management CLI Update documentation to reflect implemented schema management features: - Document schema CLI commands (which, validate, fork, init) - Update gap summary to show completed phases (PR Fission-AI#522, Fission-AI#525) - Improve custom schema examples with actual CLI usage - Update resolution order documentation * feat(cli): mark schema commands as experimental Add [experimental] tag to help description and runtime warning for schema management commands to indicate they may change.
# By Tabish Bidiwale (57) and others # Via GitHub * main: (67 commits) fix(ci): use workflow_dispatch for polish release notes (Fission-AI#533) fix(changelog): convert markdown headers to bold text for proper formatting (Fission-AI#532) Version Packages (Fission-AI#531) Add changeset for project config and schema commands (Fission-AI#530) fix(config): handle null rules field in project config (Fission-AI#529) docs: update workflow docs and mark schema commands as experimental (Fission-AI#526) feat(cli): add schema management commands (Fission-AI#525) fix: Windows path compatibility in resolver tests (Fission-AI#524) change(schema-management-cli): proposal for schema management commands (Fission-AI#523) feat(resolver): add project-local schema support (Fission-AI#522) docs: add project-config demo guide (Fission-AI#521) feat(config): add project-level configuration via openspec/config.yaml (Fission-AI#499) fix: auto-trigger polish release notes on release publish (Fission-AI#519) perf: add path filtering to Nix validation CI job (Fission-AI#518) Version Packages (Fission-AI#517) Add changeset for v0.21 release (Fission-AI#516) fix: prevent implementation during explore mode (Fission-AI#515) OPSX apply: infer target change (Fission-AI#513) Refine opsx archive sync assessment (Fission-AI#514) feat: add nix flake support (sorry for this duplicate) (Fission-AI#459) ... # Conflicts: # src/core/templates/slash-command-templates.ts
Summary
Changes
which,validate,fork,init)[experimental]tag and runtime warning to schema commandsTest plan
openspec schema --helpto see[experimental]tagopenspec schema which --allto see runtime warning🤖 Generated with Claude Code