Skip to content

Add SwiftPM FastTags and AnswerUI package - #13

Merged
jph00 merged 1 commit into
mainfrom
pr/add-swiftpm-fasttags-and-answerui-package
Dec 2, 2026
Merged

jph00 merged 1 commit into
mainfrom
pr/add-swiftpm-fasttags-and-answerui-package

Conversation

@jph00

@jph00 jph00 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Add a Swift 6.0 package in Package.swift and swift/ providing the FastTags and AnswerUI libraries for Swift apps. SwiftPM resolves the package directly from answerui's existing v* GitHub tags.

FastTags provides the HTML node tree, attribute normalization, and tag builders. AnswerUI re-exports FastTags and adds component constructors, AnswerUIPage, and bundled styles.css, pre-inlined browser.js, and idiomorph.min.js. AnswerUIAssets checks Bundle.main.resourceURL for AnswerUI_AnswerUI.bundle before falling back to Bundle.module to work inside packaged macOS .app bundles as well as swift test, swift run, and Linux builds.

answerui._build.inline_browser is now shared between answerui.hdrs.inline_browser and build_assets_, which writes styles.css and pre-inlined browser.js to swift/Sources/AnswerUI/Resources/ during ship-export. Both answerui-py and @answerdotai/answerui exclude Package.swift and swift/, and .github/workflows/swift.yml runs on Linux only when Package.swift or swift/** change. Also updates DEV.md and answerui/skill.py from nbdev to fastship commands (see swift/README.md and DEV.md).

@jph00 jph00 added the enhancement New feature or request label Dec 2, 2026
@jph00
jph00 merged commit 6daed16 into main Dec 2, 2026
1 check failed
@jph00
jph00 deleted the pr/add-swiftpm-fasttags-and-answerui-package branch December 2, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant