-
Notifications
You must be signed in to change notification settings - Fork 4
feat(docs): added AGENTS.md for AI Agent #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Reviewer's GuideIntroduces a new AGENTS.md file that serves as an end-to-end developer guide for the xun frameworkβs AI Agent features, covering core concepts, setup, routing, viewers, templating, assets, extensions, and best practices. Class diagram for core xun framework types (from AGENTS.md)classDiagram
class App {
+ServeMux
+routes
+globalMiddlewares
+viewEngines
+viewers
+compressors
+templateFuncMap
+assetURLMap
+Start()
+Close()
+Get()
+Group()
+Use()
}
class Context {
+Request
+Response
+Routing
+App
+TempData
+View()
+Redirect()
+Accept()
+AcceptLanguage()
+Get()
+Set()
}
class Viewer {
+MimeType
+Render()
}
class ViewEngine {
+Load()
+FileChanged()
}
class ResponseWriter {
+http.ResponseWriter
+status
+bodyBytes
+Close()
}
App "1" -- "*" Context : creates
App "1" -- "*" ViewEngine : uses
App "1" -- "*" Viewer : uses
App "1" -- "*" ResponseWriter : wraps
Context "1" -- "1" App : belongs to
Context "1" -- "1" ResponseWriter : wraps
Viewer <|-- HtmlViewer
Viewer <|-- JsonViewer
Viewer <|-- TextViewer
Viewer <|-- XmlViewer
Viewer <|-- StringViewer
Viewer <|-- FileViewer
ViewEngine <|-- HtmlViewEngine
ViewEngine <|-- TextViewEngine
ViewEngine <|-- StaticViewEngine
Class diagram for extension modules (ext/*) overviewclassDiagram
class ACL {
+filterByHost()
+filterByIP()
+filterByCIDR()
+filterByCountry()
+redirect()
+hotReloadConfig()
}
class AutoTLS {
+manageCertificates()
+renewCertificates()
}
class Cache {
+cacheHelpers()
}
class Cookie {
+base64Cookies()
+signedCookies()
}
class CSRF {
+csrfProtection()
+jsToken()
}
class Form {
+BindQuery[T]()
+BindForm[T]()
+BindJson[T]()
+Validate()
}
class HSTS {
+enforceHSTS()
+redirectHTTP()
}
class HTMX {
+integrationHelpers()
+interceptor()
}
class ProxyProto {
+supportV1()
+supportV2()
}
class ReqLog {
+accessLogMiddleware()
}
class SSE {
+sessions()
+push()
+broadcast()
+shutdown()
}
App "1" -- "*" ACL : uses
App "1" -- "*" AutoTLS : uses
App "1" -- "*" Cache : uses
App "1" -- "*" Cookie : uses
App "1" -- "*" CSRF : uses
App "1" -- "*" Form : uses
App "1" -- "*" HSTS : uses
App "1" -- "*" HTMX : uses
App "1" -- "*" ProxyProto : uses
App "1" -- "*" ReqLog : uses
App "1" -- "*" SSE : uses
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Here's the code health analysis summary for commits Analysis Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov Reportβ
All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #90 +/- ##
=======================================
Coverage 91.70% 91.70%
=======================================
Files 66 66
Lines 2676 2676
=======================================
Hits 2454 2454
Misses 192 192
Partials 30 30
Flags with carried forward coverage won't be shown. Click here to find out more. β View full report in Codecov by Sentry. π New features to boost your workflow:
|
Changed
Fixed
Added
Tests
Tasks to complete before merging PR:
make unit-tests
to check for any regressions πmake lint
to check for any issues