Repository navigation
docs(start-sdk): clarify installation and trim template agent context - #4180
Conversation
MattDHill
left a comment
There was a problem hiding this comment.
Two of the three changes are real; the file-models one isn't.
environment-setup.md — keep. make install (s9pk.mk) only uploads an existing .s9pk, and makefile.md already says so; this tip was the one place claiming it builds.
file-models.md — please drop. live-docs documents SDK 3.0.3. Since 3.0.1 (#4145) FileHelper parses with the shape as written, so z.object strips undeclared keys exactly as the page says — that rule was added deliberately in that PR. The 2.0.9 z.deepLoose behavior is the old SDK: a 2.0.9 package keeping keys under z.object(...).strip() is the pre-3.0.1 behavior, not a docs error. The guide describes the current SDK; the version history is in the 3.0.1 CHANGELOG entry. Turning "Never use z.object" into a conditional also weakens the rule for the version the page actually documents.
package-template/AGENTS.md — the duplication is real: recipes, the checklist, the doc-sync rule, fix-don't-report and no-TODO.md all live in agent-context.md, so removing them is right. But keep the opening lines — that this is a StartOS service package, with the https://docs.start9.com/packaging link. The template ships into every package repo, and that link is the only thing a reader in a bare clone with no workspace gets; a single link isn't a web-fetch driver. In project-structure.md, correspondingly keep "state that this is a StartOS service package" and drop only the doc-sync clause.
|
Separate from the review: a heads-up on the SDK 3.0 migration. Start9 is converting every community package to SDK 3.0.3 ourselves, yours included. The changes are big, and we'd rather do that work than leave it to each developer. Doing it centrally also means no package gets missed. Several of your services are being converted right now, so changes you open against them in the meantime will probably conflict and need a rebase once our conversion lands. That includes Start9-Community/bunker46-startos#6 and Start9Labs/changedetection-startos#9. If an update isn't urgent, it's easiest to wait until a package's 3.0.3 conversion merges and then open it on top. If it is urgent, go ahead, but expect to rebase. If you see something that looks wrong on the current SDK, please send it to us. It may already be fixed in 3.0.3, or the conversion may be about to change it. |
MattDHill
left a comment
There was a problem hiding this comment.
Thanks, this covers all three points. One remaining item: new-package-checklist.md:55 still says "Write the ## This repo bullets in AGENTS.md, or delete the section", and the template no longer has that section. Something like:
- Replace the comment in `AGENTS.md` with this package's own instructions, or delete it. A
simple package needs none.
I'll approve once that's in.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The published packaging guide describes
make installas building an artifact, while the SDK Makefile only uploads an existing.s9pk. The package-template agent context also duplicates rules already supplied by the workspace packaging guide.Correct the installation tip to require a build first. Remove the template's duplicated recipes, checklist, documentation-sync, and work-tracking guidance while retaining its StartOS package identity and documentation link for readers in a bare clone. Align the project-structure page by removing only its duplicated doc-sync clause.
The SDK 3.0.3 file-model guidance remains unchanged.
Verified the SDK Makefile install target. The packaging mdBook build, formatting check with the repository configuration, and
git diff --checkpass. No runtime SDK or CLI code changes.Targets
live-docsto correct published guidance; the docs backport workflow carries the merged correction to master.