Portable OpenSpec extensions, HTML designs and repository setup
| Package | Content | Targets |
|---|---|---|
| moonrockz/openspec-ext | The bundle files, the config migration, the typed lock (format 1 and 2), the retired files and the pure snapshot and bundle checks. No I/O. | wasm, wasm-gc, js, native |
| moonrockz/openspec-ext/host | install, check and setup: file reads and writes, symlink guards, the retirement of old files and the isolated openspec init. | wasm, native |
mise exec -- moon test apps/openspec-ext apps/tools tests/openspec-ext-acceptance --target native --deny-warn
mise run openspec:check
mise exec -- openspec schema validate html-design
mise exec -- openspec validate --all --strictpub suberror ExtensionError {
InvalidPath(String)
InvalidConfig(String)
InvalidDigest(String)
InvalidTool(String)
}impl Show for ExtensionError#deprecated("`ExtensionError::output` is deprecated, use `Show::output` instead.")
fn ExtensionError::output(self : ExtensionError, logger : &Logger) -> Unit#deprecated("`ExtensionError::to_string` is deprecated, use `Show::to_string` instead.")
fn ExtensionError::to_string(self : ExtensionError) -> Stringpub suberror LockError {
Syntax
MissingField(String)
UnknownFormat(String)
WrongExtension(String)
WrongModule(String)
InvalidToolName(String)
InvalidVersion(String)
InvalidDigest(String)
}impl Show for OpenSpecVersionError#deprecated("`OpenSpecVersionError::output` is deprecated, use `Show::output` instead.")
fn OpenSpecVersionError::output(self : OpenSpecVersionError, logger : &Logger) -> Unit#deprecated("`OpenSpecVersionError::to_string` is deprecated, use `Show::to_string` instead.")
fn OpenSpecVersionError::to_string(self : OpenSpecVersionError) -> String#deprecated("`BundleFile::equal` is deprecated, use `Eq::equal` instead.")
fn BundleFile::equal(BundleFile, BundleFile) -> Bool#deprecated("`BundleFile::not_equal` is deprecated, use `Eq::not_equal` instead.")
fn BundleFile::not_equal(x : BundleFile, y : BundleFile) -> Bool#deprecated("`FileDigest::equal` is deprecated, use `Eq::equal` instead.")
fn FileDigest::equal(FileDigest, FileDigest) -> Bool#deprecated("`FileDigest::not_equal` is deprecated, use `Eq::not_equal` instead.")
fn FileDigest::not_equal(x : FileDigest, y : FileDigest) -> Boolpub struct LockedFiles {
// private fields
}pub enum Problem {
MissingFile(Input)
UnsupportedLock
LegacyLock
FileSet
MissingDigest(BundleFile)
Drift(BundleFile)
Schema
ToolVersion(recorded~ : Tool, expected~ : Tool)
BundleDrift(BundleFile, Tool)
}pub struct RepositoryPath {
// private fields
}#deprecated("`RetiredFile::equal` is deprecated, use `Eq::equal` instead.")
fn RetiredFile::equal(RetiredFile, RetiredFile) -> Bool#deprecated("`RetiredFile::not_equal` is deprecated, use `Eq::not_equal` instead.")
fn RetiredFile::not_equal(x : RetiredFile, y : RetiredFile) -> Boolpub enum Retirement {
Absent
Delete
Edited
Unmanaged
}pub struct SupportedOpenSpec {
// private fields
}fn SupportedOpenSpec::SupportedOpenSpec(text : String) -> SupportedOpenSpec raise OpenSpecVersionErrorfn check_snapshot(lock~ : String?, config~ : String?, file~ : (BundleFile) -> String?, level~ : CheckLevel) -> Array[Problem]let config_path : Stringfn initial_config() -> Stringlet supported_openspec : String