Skip to content
Beskid Platform specification

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

Design model

Spec standingStandard

Owner
Piotr Mikstacki
Submitter
Piotr Mikstacki

Tooling-side state and paths for the beskid new command family.

Path (under user config root)Content
templates/installed/<identity>/Extracted template tree + manifest.snapshot.json
templates/git/<hash>/Git clone caches
templates/registry-index.jsonOptional index of last-known registry versions for update checks

Exact config root must match other Beskid CLI state (same resolver as beskid pckg auth config).

manifest.snapshot.json stores:

  • identity, shortName, packageId, resolvedVersion, checksum, installedAt
  • source: registry | path | git
  • yanked: boolean snapshot at install time

On beskid new <shortName> (and --package):

  1. Read installed resolvedVersion.
  2. Query registry for latest non-yanked version.
  3. If newer: print update message (non-fatal).
  4. If current is yanked: print warning (see contracts).
ModeBehavior
Registry reachablePrefer download of beskid.templates.*; update check enabled
OfflineUse cache only; list shows installed; warn if update check skipped
CodeMeaning
0Success
1User error (validation, collision)
2Engine or I/O failure
3Registry auth or network failure when required
  • compiler/crates/beskid_cli/src/cli.rs — subcommand registration
  • compiler/crates/beskid_pckg — download API