Commit Graph
22 Commits
Author SHA1 Message Date
terminarandClaude Opus 5.5 83f4228e66 LICENSE: proprietary notice instead of MIT
The Yetano projects are closed source for now (owner, 2026-10-31); the
MIT license file did not match that. All rights reserved until the
license is decided.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 14:27:47 +01:00
terminarandClaude Opus 5.5 c11197bb37 configfamily: one config file per program plus an optional family file
The generic part of yamase-core/pkg/configfile (yamase ADR-0074): per
tier a program merges the family file's top level, its section of the
family file and its own <program>.yaml, then --config. Includes
unknown-option rules for shared files, the config command on top of
configcmd.Layered with "create --shared", and doctor/logging helpers.
yaiam is the first user; yamase can move onto it later.

configcmd: a layered Optional program without any file now validates
its defaults and passes doctor instead of failing, as the single-file
path already did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 20:26:25 +01:00
terminarandClaude Opus 5.5 5471863163 cobracmd: unknown subcommands of a command group are usage errors (exit 2)
cobra rejects an unknown subcommand only at the root; "prog group nosuch"
printed the group's help and exited 0. Execute now calls StrictGroups
first (found in yamase-ctl while rolling out cobracmd/v0.1.0).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 14:48:52 +01:00
terminarandClaude Opus 5.5 5288c4ce74 cobracmd: standard completion and exit codes for cobra programs; bash install line via eval
New module yetano.dev/yetano/core/cobracmd (own go.mod, cobra stays out
of the main module): Completion replaces cobra's default completion
command, which exits 0 for an unknown shell, with one that accepts only
bash|zsh|fish|powershell (exit 2 otherwise); Execute maps cobra's usage
errors to exit 2, other errors to 1.

completion: the bash script's install line is eval "$(prog completion
bash)" -- bash 3.2 on macOS cannot source a process substitution.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 14:34:39 +01:00
terminarandClaude Opus 5.5 fa52990e3e configcmd: config show, Doctor, KnownKey and a Layered hook
"config show [--json] [--show-secrets]" prints the configuration with
the origin of every value (secrets redacted), for every program.
Spec.Layered lets a program whose configuration is merged from several
inputs (family file, a section of it, its own file -- the yamase
family) run path, validate and show over all layers, with its own
unknown-option rules; unknown options are warnings there. Doctor(report,
spec, explicit) is the config part of a doctor command. UnknownKey
carries the layer it is in; KnownKey tells whether a dotted key is an
option of a config struct.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 17:29:19 +01:00
terminarandClaude Opus 5.5 185211e304 config: Merge with per-value origins; configcmd: UnknownKeysNode
config.Merge(sources...) overlays explicit, ordered sources with the
LoadMerged rules (LoadMerged now uses the same code) and returns the
origin of every leaf, for a "config show" that says where each value
is set. config.ReadFile reads one file as a mapping, Resolver.Paths()
exposes the core/paths resolver (e.g. DataDir for defaults).
configcmd.UnknownKeysNode checks one section of a parsed document.
Needed by the yamase family's layered configuration (yamase ADR-0074).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 14:57:50 +01:00
terminarandClaude Opus 5.5 b7f7ba6b36 TODO: follow-ups now live in the meta-repo TODO.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 15:36:16 +02:00
terminarandClaude Opus 5.5 88d37410f7 tui: shared terminal-UI kernel as nested module yetano.dev/yetano/core/tui
Themes (slate/dialog/midnight) and their lipgloss styles, Paint/Outer,
ListState and the text helpers that yet, yavebu and yalsh menuconfig
each carried as a hand-kept copy (yavebu's had already drifted). Values
are yet's (grey slate); Paint is menuconfig's profile-aware version.
Own go.mod and tui/vX.Y.Z tags keep Charm out of the main module.
Programs are not switched yet; tui/README.md has the steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 14:54:25 +02:00
terminarandClaude Opus 5.5 8c63d42a27 gui: native WebView host as nested module yetano.dev/yetano/core/gui
Extracted from prototypes/yetano-webview (AP1): packages assets,
document, bridge and window (macOS Cocoa/WKWebView via cgo, Windows
Win32/WebView2 pure Go). No local HTTP listener or port: assets go
through the WebView's resource handler, app routes through the native
message binding. Own go.mod and gui/vX.Y.Z tags keep cgo and the
WebView dependencies out of the main core module. Adds backend-free
tests for the window's dispatch/destroy guards and a yet-gui migration
guide.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 14:47:26 +02:00
terminarandClaude Opus 5.5 90132e2d76 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>
2026-10-23 14:36:48 +02:00
terminarandClaude Opus 5.5 ca0f06f978 Ignore resume.sh (local session helper)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 14:32:05 +02:00
terminarandClaude Opus 5.5 58dfe0f5a6 README: yavebu uses core/secretref now
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 12:20:07 +02:00
terminarandClaude Opus 5.5 43775950a4 secretref: secret://, env:, file:, base64: references (from yavebu) for yacry and yadenes
Adds IsReference for programs that keep accepting literals, and
YasevaConfig (passed as --config).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 12:17:04 +02:00
terminarandClaude Opus 5.5 13c1862c74 completion, doctor: the shared standard commands
core/completion prints bash, zsh, fish or PowerShell completion scripts
from a static command tree ("<program> completion <shell>"); core/doctor
is one report shape (resolved paths incl. the standard core/paths ones,
named checks), printed as a table or --json, exit 0/1/2. Together with
core/manual they implement the Yetano program standard
(docs/program-conventions.md in the meta-repo).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 16:30:45 +02:00
terminarandClaude Opus 5.5 e757fdd025 manual: the shared "<program> manual" command (ADR-0012)
FromFS turns embedded README.md + docs/**/*.md into topics (README is
"readme", titles from the first heading); Run serves "manual",
"manual <topic>" and "manual --json [topic]" -- the JSON shape yet
reads for an installed program's manual (yet manual --package, TUI,
yet-gui), same as "yet manual --json".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 16:22:03 +02:00
terminarandClaude Opus 5.5 e8bf23a064 paths: skip the user search tier when there is no home directory
ConfigSearchDirs/DataSearchDirs/ExecutableSearchDirs (and therefore
core/config's Resolve/ResolveAll/LoadMerged) failed outright with
ErrNoHomeDirectory when HOME/USERPROFILE was unset, so a service
started without HOME could no longer find its working-directory or
/etc/<app> config -- a regression against the hand-rolled lookups
being migrated onto core, which just skipped the user location.
Missing-home now only drops the user tier from the search lists; the
canonical <Category>Dir() methods still report ErrNoHomeDirectory.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-22 22:24:51 +02:00
terminarandClaude Opus 5.5 72b656262d TODO: point remaining application migrations at the meta-repo's TODO-pathchange.md
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-22 21:54:07 +02:00
terminarandClaude Sonnet 5 da2ec85381 Refine macOS/LogAlias platform tuning, fix a real WithRoot bug found on Windows
Platform tuning:
- macOS Desktop's RuntimeDir() now prefers $TMPDIR (the OS-managed,
  per-user ephemeral directory NSTemporaryDirectory() returns) over
  the previous ~/Library/Application Support/<App>/Runtime placeholder.
- Resolver.EnsureLogAlias() creates the optional LogAliasDir() symlink
  to LogDir(), idempotently, leaving any pre-existing entry alone.

Verified the SHGetKnownFolderPath fallback (knownfolders_windows.go)
on a real Windows host for the first time: with APPDATA/LOCALAPPDATA/
PROGRAMDATA all unset, it correctly resolves the real known folders.
go vet's one unsafeptr finding there is a documented, permanent,
unavoidable characteristic of this raw-syscall pattern, not a bug.

That same real-Windows run surfaced a genuine, previously-invisible
bug: WithRoot assumed root's own address family always matched the
*simulated* platform's, which silently broke (mixed separators, or an
outright invalid mid-path drive letter) whenever the real host's
native family differed from what WithPlatform was simulating -- e.g.
WithPlatform("linux") with WithRoot(t.TempDir()) on a real Windows
host. This was invisible on macOS/Linux, where t.TempDir() happens to
already share the simulated Unix family.

Fixed applyRoot (now applyRootRebase) to decompose the resolved path
into segments and re-join them onto root using root's own family,
inferred from its content like JoinDirFile already does, not from the
simulated platform. Two call sites chaining onto an already-rooted
value (logDirUnix, darwin.go's State/Runtime fallback) switched from a
hardcoded unixJoin to JoinDirFile for the same reason. core/config's
working-directory layer had the identical bug one level up; fixed via
a new paths.JoinDirFileFamily.

TODO.md/ARCHITECTURE.md/README.md updated accordingly; core/TODO.md's
remaining items are now all explicitly out-of-scope or deliberately
deprioritized, not open work.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 16:37:30 +02:00
terminarandClaude Sonnet 5 e6b5324ad3 TODO: mark the yet core/paths migration done
yet's internal/store now resolves Home/CacheHome/BinDir via
core/paths (Application{Name: "yet", Kind: core.CLI}) instead of its
own $YETANO_HOME/os.UserConfigDir() logic, split across three
independently overridable categories. See yetano.dev/yetano/yet's
own commit for the actual migration and its new --system scope flag.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 15:14:58 +02:00
terminarandClaude Sonnet 5 689469eb32 config: add WithExplicitPath for a CLI's own --config flag
A highest-priority, must-exist override layer above the working
directory -- the common "flag always wins, but a typo'd path should
fail loudly" pattern most Yetano CLIs need, generalized here instead
of reimplementing it in each application (first consumer: yet's own
--config flag, see the yet submodule).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-19 16:50:22 +02:00
terminar 13801bec11 Add platform-independent path/config resolution library
Implements core/paths (Config/Data/State/Cache/Runtime/Log/Bin
directory resolution with canonical-vs-search-dir separation, XDG on
Unix, native APPDATA/LOCALAPPDATA/PROGRAMDATA layering on Windows,
~/Library on macOS Desktop, injectable environment/platform for
deterministic cross-platform tests) and core/config (file search,
first-match resolution, layered YAML merging, safe ${VAR} expansion,
Explain/doctor introspection) on top of the shared Application/
Kind/Scope model in the core package.
2026-09-19 16:26:01 +02:00
terminar 027b327c3d Initial commit 2026-09-19 15:56:59 +02:00