Repository navigation
formskills 0.11.0: the app list comes from the family spec, public apps only - #13
Merged
Merged
Conversation
…ompiler checkout (0.11.0) setup/apps.py takes --family PATH (formadaptor's family.json) in place of --compiler. Without --check it writes core/data/apps.json; with it nothing is written and the exit code is 0 when the file is in step and 1, naming the file, when it is not; an unreadable or wrong spec exits 2. No network, no git, standard library only, runs as python3 -I. Public apps only, still only apps whose agents.skills names a folder. The source block records the registry version, not a commit, so Source.commit and its two uses (the apps command's source line, the window footer) are removed. Every kind has a topic: extensions and utility joined Family, and a kind in no row is listed under Family with a line on stderr instead of stopping the generator. core/data/apps.json was regenerated by setup/apps.py from the 0.16.0 sample spec with the three entries the spec marks non-public held back (they leave in the next commit): FormCel, FormTxt, FormTools and form.ext are added, FormDeck's catalogue name is FormDeck, source is registry 0.16.0. Ran: the generator in write and check mode (rc 0, 1 on a drifted file, 2 on a missing or wrong spec), a spec with an unknown kind, formskills-cli apps under a fresh HOME (23 apps, source line without a commit), cargo test of core and cli (32 existing tests plus 2 new in core/tests/bundled_apps.rs). tsc was not run for the one-line footer change.
…st, the family spec marks them non-public (0.11.0) The 0.16.0 family spec carries these three as public: false, so the generated list no longer names them (their names, summaries and repositories were in a public file). core/data/apps.json was regenerated by setup/apps.py from setup/family.spec.json, a byte copy (made with cp, sha256 checked against the source) of the sample spec; the only change is the removal of those three entries, 23 apps becoming 20. The built demo and its icons still carry them and were not touched. Ran: setup/apps.py --family setup/family.spec.json (20 apps), then --check (rc 0).
…11.0) The scripts job runs python3 -I setup/apps.py --family setup/family.spec.json --check next to the compile check, so a list edited by hand or a generator change that moves the output fails the build. No network, no new action; the CONTRIBUTING, CLAUDE.md and wiki lines name the command and the copy. Ran: the same command here, rc 0 on the committed files and rc 1 naming core/data/apps.json when one value was changed (then restored). The workflow itself was not run.
README's "19 Form apps" was the stale list; the box now says every public Form app and gives no number, and the demo README stops saying "of the 19 apps". README's "31 Rust tests" is 34, counted from #[test] in core and cli and confirmed by cargo test. "Three agents" was checked against install.rs. No skills, CLAUDE.md or AGENTS.md line states a count. Ran: git grep -c '#[test]' (34) and cargo test of core and cli (34 passed).
… list changes (0.11.0) setup/apps.py --family PATH writes core/data/apps.json and, only when that output differs from what is committed, copies the given spec byte for byte to setup/family.spec.json. An unchanged list leaves the copy alone, and --check still writes nothing, so CI checks against the committed copy with no network. Ran in a clone under /tmp: a spec that changes the list wrote both files; a spec that differs only in fields the list does not use (generated, launcher, release published) changed nothing, and so did the same spec again; --check with a changing spec exited 1 and wrote nothing. The test builds the same three cases in a temp tree; 36 tests pass.
…kills
The README linked to formskill.formai.studio and formai.studio/get/formskill/{macos,windows,linux}. The family spec gives FormSkills the site path formskills (the same pattern as formmcp and formtray), and formcompiler's apps/formskills.json records the singular id formskill as retired. The four links now say formskills.
Checked by reading setup/family.spec.json and formcompiler apps/formskills.json; the addresses themselves were not fetched.
The table still said 0.7.x. The latest release is 0.10.4, so it now says 0.10.x. The release commit moves it to 0.11.x with the other version sites.
The engine and the window read a registry version from the bundled list's
source block: the apps command printed "bundled list from
nodemode-dev/formcompiler 0.16.0" and the window's footer showed the same
number. That number changes with every release of the compiler repository,
also when the list does not, and it is about to leave the generated file.
Source is now {repository}; the apps command says "bundled list from
nodemode-dev/formcompiler" and the footer "List from
nodemode-dev/formcompiler". The version is dropped, not read from the kept
spec copy at build time: the copy only moves when the list changes, so its
version would read as a stale number. The committed list still carries the
field at this commit and loads, since a field the struct does not name is
ignored; the generator change follows.
Ran formskills-cli apps under a fresh HOME: source "bundled list from
nodemode-dev/formcompiler", 20 apps. The test that asserted a non-empty
version now asserts that line. cargo test -p formskills-core -p
formskills-cli: 36 pass. The window was not opened and tsc was not run (no
node_modules on this machine).
setup/apps.py wrote the family spec's registry version into
core/data/apps.json as source.version. That version moves with every release
of the compiler repository, also when nothing the installer shows moves, so
--check against a newer spec reported drift and each compiler release would
have asked for a change and a release here. The list's source is now
{"repository": "nodemode-dev/formcompiler"} and the file changes only when
something listed changes. What built the list stays on record in the kept
copy, setup/family.spec.json, which the generator rewrites only when the
list changes.
core/data/apps.json was regenerated by setup/apps.py from the kept copy; the
only difference is the version line. The loader stopped reading the field in
the commit before this one.
Ran in a copy of the tree under /tmp: --check against the kept copy exits 0;
against a 0.16.1 spec with one more private app and the same public apps
--check exits 0 and write mode changes neither the list nor the kept copy;
with one public app's name changed --check exits 1 and write mode changes
both files, the copy byte-equal to that spec. The generator test gained the
later-registry case and the list test asserts the exact source value. cargo
test -p formskills-core -p formskills-cli: 36 pass. formskills-cli apps
prints source "bundled list from nodemode-dev/formcompiler", 20 apps.
Bumps every version site to 0.11.0: workspace Cargo.toml, the three formskills crates in Cargo.lock (by hand), frontend package.json and both fields of package-lock.json, tauri.conf.json, the README badge, the wiki Home version line, and the Current build version lines of the core, frontend, src-tauri and demo HASHOUT logs. SECURITY.md's supported versions table names the 0.11 line. CHANGELOG entry for the family update: the list of apps built from the family spec, public apps only, no commit and no registry version in the list, the kept copy of the spec, and the document corrections. Left as they are: setup/family.spec.json (the kept copy of the spec; it records the published 0.10.4 release and is replaced only by the generator), core/data/apps.json (generated, carries no version), and the demos/author and demos/install HASHOUT headers (nothing there changed). Run: python3 -I setup/apps.py --family setup/family.spec.json --check prints "apps: in step", exit 0; py_compile of setup/apps.py clean; cargo test --locked -p formskills-core -p formskills-cli, 36 passed, 0 failed, including f4_every_version_site_agrees_and_has_a_one_digit_patch; npm ci and npm run typecheck (tsc --noEmit) in frontend, clean. The desktop shell was not compiled.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
formskills 0.11.0: the app list comes from the family spec, public apps only
Why now
The list of apps that formskills shows was built from a checkout of the compiler repository and had fallen behind: it was missing four apps that now ship skills and still named three that are not public. This release builds the list from the family's published spec, the same source the other family tools read, so the list and the apps cannot drift apart again.
What changes for people
The list of apps
formskills cli appssay where the list came from (nodemode-dev/formcompiler) with no commit and no version number. The list now changes only when something about a listed app changes, so a compiler release that changes nothing listed asks for no formskills release.For people who rebuild the list
./formskills apps --family PATHreplaces--compiler PATH.--checkcompares and writes nothing: exit 0 and "apps: in step", exit 1 and "apps: drifted", exit 2 for a spec that cannot be read.setup/family.spec.json). Building the list replaces that copy only when the list itself changes. CI compares the committed list with the committed copy on every change, with no network.Documents
formskills.How it was checked
cargo test --locked -p formskills-core -p formskills-cli, 36 passed, 0 failed (32 before this branch), including the test that every version site agrees.python3 -I setup/apps.py --family setup/family.spec.json --checkprints "apps: in step", exit 0.npm ciaccepted the lock file andnpm run typecheck(tsc --noEmit) is clean.git statusread after each case: a spec that changes a listed app writes the list and the copy; a newer spec that gives the same list (a newer registry version, one more non-public entry, fields the list does not use) changes nothing and--checkstays in step;--checkagainst a spec that would change the list exits 1 and writes nothing; a missing or wrong-format spec exits 2; a spec with an unknown kind is listed under Family.formskills-cli appsunder a fresh home folder printed "bundled list from nodemode-dev/formcompiler" and 20 apps.core/tests/bundled_apps.rsafter those runs: the list names its repository and no commit, ids are unique and every app has a skills folder and a known topic, the committed list is in step with the committed copy, and the generator keeps the copy only when the list changes.Not verified
src-tauri) was not compiled on the build machine. The branch changes only its version line; the first compile is the release build.npm auditand the production build were not run.demo/,demos/) was not rebuilt. It is rebuilt only by hand and still shows the three removed apps and the FormSlide name until then.Held at the safer choice, for the owner to overrule
publicfield, not this repository.After the merge
formadaptor's entry for formskills must list
setup/family.spec.jsonbesidecore/data/apps.json(and as its spec copy), or its proposal for this repository will fail the new CI step.Merge
Merge with a merge commit. Do not squash and do not rebase-merge.