Skip to content

Latest commit

 

History

History
94 lines (78 loc) · 5.6 KB

PACKAGE_DECLARATIONS_V1.md

File metadata and controls

94 lines (78 loc) · 5.6 KB

ObliviousMic package declarations v1

The only package entry files are obliviousmic.module.json and obliviousmic.theme.json, both at the ZIP root. Exactly one is required. Filename and package_type must agree. Both entries together, legacy entry filenames, duplicate entries, nested-only entries and case variants are rejected. There is no legacy package-format compatibility contract before the first release.

The normative, self-contained JSON Schemas are src/obliviousmic/schemas/obliviousmic-module-v1.json and src/obliviousmic/schemas/obliviousmic-theme-v1.json.

Common fields

schema_version: 1, package_type, license, framework (min, max_exclusive), platforms, and architectures are required. Use any for portable packages; supported platform values are windows, linux, macos; architecture values are x86, x86_64, arm64. Version bounds use Python packaging version ordering, including prereleases. Empty/reversed ranges fail.

Optional name, display_names, author, description, descriptions, keywords, preview and repository provide discovery metadata. Localized names follow framework language, then English. Missing optional data stays absent or null in storage; UI displays the literal unknow when no meaningful fallback exists. Missing required installation data cannot be replaced with that word. repository is an HTTPS GitHub repository URL; preview names a passive packaged image beneath assets/. Repository ownership is independently verified by the collector. There is no self-asserted trusted publisher field.

Module fields

Keep stable module_id, module_version, module api range, runtime, ports, processing, settings_schema, actions_schema, permissions, resources and optional dependencies. All previous SDK execution and port constraints remain. Optional installation: {"direct": true | false} is an author declaration: true means no additional preparation is required with the base framework; false means the user must follow the repository README to install dependencies or prepare models. Ordinary API credentials/voice settings alone do not count as environment preparation. Omission is unknown, never implicitly true. Do not include executable dependency-install commands in this declaration.

Uninstalled versions show a circle/check only when direct is true and the current framework version is within framework.min <= version < framework.max_exclusive. Otherwise they show a triangle/exclamation, with the reasons available on hover or keyboard focus. Installed versions instead reuse local dependency/resource checks for that exact version. One usable parameter table/model configuration is sufficient; unused uninitialized archives do not block readiness. Missing API credentials alone do not warn; no provider requests or inference are performed. Installed badges still warn about framework bounds, and do not replace graph validation or imply a security review. Restart the backend manually after installing dependencies. Module framework bounds are advisory only for installation and execution. API, platform/architecture, dependency, integrity and runtime checks remain enforced; theme compatibility rules are unchanged.

Official cards open https://github.com/Labiey/ObliviousMic-Modules; community cards use their declared HTTPS GitHub repository. Missing repository metadata does not produce a guessed link. Built-in declarations also supply guidance. Official catalogs may publish installation beside an entry's declaration, bound to its exact module ID, version and ZIP digest. This supplements immutable published ZIPs without editing their declarations or weakening equality/hash checks. Future releases may put it directly in the module declaration.

setup optionally references setup.json; resource_declaration optionally references resources.json. These specialized definitions remain separate files. Audio recordings, model asset metadata and voice archive manifests are unrelated to package entry declarations and are not renamed.

Theme fields

Keep stable id, version, theme_api: 1, style: "style.css", and mode (light/dark). Optional settings: "settings.json" declares controls. Passive asset restrictions, local CSS URLs, import/script restrictions and existing resource/size limits still apply. Theme preference files remain version independent.

External distribution

A repository root may contain one external declaration for each package type, pointing to distinct ZIPs. Multi-package official repositories explicitly list declaration paths; discovery does not recursively guess directories.

Only the external declaration includes distribution: GitHub numeric repository_id, release_id, asset_id, Release tag release, final ZIP url, bytes, and SHA-256 sha256. Collectors must independently verify these values against GitHub and bind them to the actual repository owner. The ZIP's declaration contains no distribution block, avoiding its own ZIP hash's circular dependency. After removing only that external block, the external and internal declarations must be exactly equal, including execution metadata. Final ZIP size/hash and entry identity are verified before importing any package code.

Catalog display names never grant namespace or code-trust permissions. Official status comes from a trusted catalog binding repository numeric ID, stable package ID, version and digest to a published official package; built-ins use trusted framework source. Community entries, PR merges and keyword matches grant no trust. Changing a publisher's display status never changes graph IDs or pinned versions.