configcmd and version: the config and version standard commands; darwin /var/run

core/configcmd: "<program> config create|validate|upgrade|path" from a
Spec (name, application, minimal/full templates, Validate, Schema),
taken over from yamase-core/pkg/configcmd and generalized: Filename,
Optional (programs that run on defaults) and None (no configuration).

core/version: "<program> version [--json]" over the values each
program stamps into its internal/version; JSON keys match yasta's
existing output (yavebu reads it), VCS fallback for unstamped builds.

paths: macOS CLI/Service system-scope RuntimeDir is /var/run/<app>
instead of /run/<app>, which macOS does not have.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
terminarandClaude Opus 5.5 committed 2026-10-23 14:36:48 +02:00
1 parent ca0f06f978
commit 90132e2d76
13 files changed
+1824 -20

No files matched your search

+18 -14
View File
@@ -22,12 +22,19 @@ speculatively.
existing installations are not migrated (see `yet`'s
`docs/install-store-and-profiles.md`).
- [x] `yaseva` was built on `core/paths`/`core/config` from the start.
- The remaining applications across the `yetano`, `yak`, and `yamase`
meta-repos (`yasl`, `yamocir`, `yabaratla`, `yaais`, `yamcp`, `yacry`,
`yasta`, `yaiam`, `yaclav`, `yafowa`, `yak/yaki`, `yak/yakas`, the
`yamase-*` services) are tracked, with their migration order and a
per-application how-to, in the meta-repo's `TODO-pathchange.md`
(`yetano/yetano`), not here.
- [x] The remaining applications across the `yetano`, `yak`, and
`yamase` meta-repos were migrated on 2026-09-22; the record (and the
few open follow-ups) is the meta-repo's `TODO-pathchange.md`.
## Standard commands
- [x] `manual` (v0.2.0), `completion`, `doctor` (v0.3.0), `secretref`
(v0.4.0), `configcmd` and `version` (v0.5.0) -- see
docs/program-conventions.md in the meta-repository.
- [x] macOS CLI/Service system-scope `RuntimeDir` is `/var/run/<app>`
(was `/run/<app>`, which macOS does not have) -- v0.5.0.
- [ ] `core/gui`: the native WebView host from
`prototypes/yetano-webview` (yet-gui has a copy in `yet/gui/internal`).
## Platform tuning
@@ -136,18 +143,15 @@ which host CI happens to run on).
and is tested, but there is no ecosystem-wide "portable install"
concept wired up yet (spec section 41's "optional later:
`YETANO_HOME` or portable mode").
- The future `yet` package store model (spec sections 2/37/38: package
store vs. application data vs. config vs. state vs. cache vs. runtime
vs. executables, as distinct concepts) is intentionally not
implemented here -- `core/paths` only provides the primitives (scoped,
prioritized directories) a future store implementation would sit on
top of.
- The `yet` package store (spec sections 2/37/38) lives in `yet`
(`internal/store`), built on these primitives; `core/paths` itself
stays store-agnostic.
- Plugin/extension search paths: no dedicated category exists yet;
`paths.FindFile` is generic enough that a caller can build one today
(e.g. over `DataSearchDirs()` with a `plugins/` suffix) without
needing a new `PathKind`.
- Atomic package activation, versioning/rollback for that future store:
out of scope, same as above.
- Atomic package activation, versioning/rollback for the store: `yet`'s
business, not core's.
## Central Yetano config