TK06: libraries in packs (aivopod.vendor, appInlineScript) #637
Loading…
Reference in a new issue
No description provided.
Delete branch "tk06-libraries"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
TK06 (Plan 26, Teil AZ, D516): libraries in packs. Stacked on #635 (TK05); merge that first. Replaces #636 (same commit, restacked onto the TK05 test fix without rewriting #636).
Acceptance
aivopod.vendorinpackage.json: only@aivopod/, exact versions (a range like^1.0.0→vendor.invalid, foreign scope →vendor.scope)vendor.tsreadsnode_modules/<pkg>/aivopod-vendor.json; wrong version →vendor.versionMismatch, edited file →vendor.modified(tests)browser→apps/<app>/vendor/; name clash →vendor.appClash(test)<pkg>/checkallowed and bundled (pack and pack tests); withoutaivopod.vendorstillimportForbidden(test)vendor: [{ name, version, sha256 }](schema in@aivopod/shared)appInlineScriptfor all apps (test)@aivopod/sheets1.0.0: apptabellen-brueckewith 7 scripts, checker core bundled, Safari 15.4 check passes, no inline-script hintDeviation (D516):
pack previewin the CLI already serves apps from the build result, so vendored apps need no CLI code. The CLI (0.50.0, after platform 0.69.0) bumps the packtools pin and sends work files onpack publish.🤖 Generated with Claude Code
https://claude.ai/code/session_01PVUe4i6vEUY3kHe9imoS6j
- project: `aivopod.vendor` – only @aivopod/ packages, exact versions, parts app, browser and check. - vendor.ts: takes the package from node_modules (as the bundler resolves), checks version and aivopod-vendor.json, every file against its sha256; errors vendor.missing, versionMismatch, manifest, modified, scope, invalid, noPart, appClash, noApp. - readApps: an app of a library becomes an app of the pack with the same limits; `browser` puts the scripts into apps/<app>/vendor/. - bundle: `<package>/check` is allowed in the pack and in its tests and is bundled; pack test checks the libraries like pack build. - manifest: `vendor: [{ name, version, sha256 }]`. - hint appInlineScript for inline scripts, on… attributes and javascript: links in any app's HTML. - SPEC section 5 „Bibliotheken in Packs“, D516 refined. Checked against the published @aivopod/sheets 1.0.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PVUe4i6vEUY3kHe9imoS6j