Commit Graph

3 Commits

Author SHA1 Message Date
Joel Winarske 8f12358a34 feat(doctor): report available package updates
HostProvisioner gains availableUpdates() — package names with an update
available (null when the backend can't report it; empty = up to date).
PackageKit implements it via GetUpdates (the same data pkcon get-updates
uses); brew/winget return null for now.

emb doctor, after confirming the backend is available, prints the update
count (+ a short preview), labeled as reflecting the last cache refresh.
It stays read-only (no refresh) and never fails the command on the update
check.

Adds a doctor_command test (the feature had none): wiring, up-to-date,
unsupported, error-tolerance, and unavailable-skips-the-check. README +
example/README document the new line.

Signed-off-by: Joel Winarske <joel.winarske@gmail.com>
2026-06-19 10:17:53 -07:00
Joel Winarske 109075fbe3 docs(deps): add a worked deps: example manifest, docs, and test
There was no committed emb.yaml with a deps: block. Add one and document
the schema.

- example/ivi-homescreen/emb.yaml: a self-describing package with a real
  deps: block (graphics build deps for fedora/ubuntu/macos) alongside a
  build: block.
- README: a 'Host dependencies (deps:)' section — the OS/distro schema,
  list-vs-map semantics, WhatProvides name resolution, the legacy
  configs/*.json schema, and an 'emb deps --packages example --dry-run'.
- test: load the committed example and assert deps resolve to the right
  packages per host (fedora/ubuntu/macos), excluding other hosts' names.

Signed-off-by: Joel Winarske <joel.winarske@gmail.com>
2026-06-18 15:34:39 -07:00
Joel Winarske 0cc9bfe244 feat: auto-resolve PackageKit native bridge; use hosted packagekit_dart
- Depend on the published `packagekit_dart ^0.3.2` instead of a path
  dependency.
- native_lib.dart: locate `libpackagekit_nc.so` from the package's own build
  or, for hosted installs, the `package:hooks` build-hook output under
  `.dart_tool/`, so the Linux backend works without `PK_NC_LIB`.
- docs: full per-command README reference (every option, default, value set);
  add `example/`; refresh CHANGELOG.
- chore: whitelist `Kitware`, `armv`, `armhf` for cspell.

Signed-off-by: Joel Winarske <joel.winarske@gmail.com>
2026-06-15 20:31:01 -07:00