@frontman-ai/astro 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/README.md +53 -0
  2. package/dist/cli.js +2744 -0
  3. package/package.json +66 -0
  4. package/src/FrontmanAstro.res +20 -0
  5. package/src/FrontmanAstro.res.mjs +36 -0
  6. package/src/FrontmanAstro__AstroBindings.res +46 -0
  7. package/src/FrontmanAstro__AstroBindings.res.mjs +2 -0
  8. package/src/FrontmanAstro__Config.res +85 -0
  9. package/src/FrontmanAstro__Config.res.mjs +44 -0
  10. package/src/FrontmanAstro__Integration.res +35 -0
  11. package/src/FrontmanAstro__Integration.res.mjs +36 -0
  12. package/src/FrontmanAstro__Middleware.res +149 -0
  13. package/src/FrontmanAstro__Middleware.res.mjs +141 -0
  14. package/src/FrontmanAstro__Server.res +196 -0
  15. package/src/FrontmanAstro__Server.res.mjs +241 -0
  16. package/src/FrontmanAstro__ToolRegistry.res +21 -0
  17. package/src/FrontmanAstro__ToolRegistry.res.mjs +41 -0
  18. package/src/FrontmanAstro__ToolbarApp.res +50 -0
  19. package/src/FrontmanAstro__ToolbarApp.res.mjs +39 -0
  20. package/src/cli/FrontmanAstro__Cli.res +126 -0
  21. package/src/cli/FrontmanAstro__Cli.res.mjs +180 -0
  22. package/src/cli/FrontmanAstro__Cli__AutoEdit.res +300 -0
  23. package/src/cli/FrontmanAstro__Cli__AutoEdit.res.mjs +266 -0
  24. package/src/cli/FrontmanAstro__Cli__Detect.res +298 -0
  25. package/src/cli/FrontmanAstro__Cli__Detect.res.mjs +345 -0
  26. package/src/cli/FrontmanAstro__Cli__Files.res +244 -0
  27. package/src/cli/FrontmanAstro__Cli__Files.res.mjs +321 -0
  28. package/src/cli/FrontmanAstro__Cli__Install.res +224 -0
  29. package/src/cli/FrontmanAstro__Cli__Install.res.mjs +194 -0
  30. package/src/cli/FrontmanAstro__Cli__Style.res +22 -0
  31. package/src/cli/FrontmanAstro__Cli__Style.res.mjs +61 -0
  32. package/src/cli/FrontmanAstro__Cli__Templates.res +226 -0
  33. package/src/cli/FrontmanAstro__Cli__Templates.res.mjs +237 -0
  34. package/src/cli/cli.mjs +3 -0
  35. package/src/tools/FrontmanAstro__Tool__GetPages.res +164 -0
  36. package/src/tools/FrontmanAstro__Tool__GetPages.res.mjs +180 -0
package/README.md ADDED
@@ -0,0 +1,53 @@
1
+ # @frontman-ai/astro
2
+
3
+ Astro framework integration for Frontman, exposing tools and services via HTTP middleware and dev toolbar.
4
+
5
+ ## Stack
6
+
7
+ - [ReScript](https://rescript-lang.org) with ES6 modules
8
+ - [Astro](https://astro.build) 5.0+
9
+ - HTTP middleware integration
10
+ - SSE (Server-Sent Events) for streaming responses
11
+
12
+ ## Features
13
+
14
+ - HTTP middleware for handling tool requests
15
+ - Dev toolbar integration for interactive debugging
16
+ - Framework-specific tools (e.g., `GetPages`)
17
+ - Streaming responses via SSE
18
+
19
+ ## Installation
20
+
21
+ ```bash
22
+ npm install @frontman-ai/astro
23
+ ```
24
+
25
+ ## Usage
26
+
27
+ Add the integration to your `astro.config.mjs`:
28
+
29
+ ```javascript
30
+ import { defineConfig } from 'astro/config';
31
+ import { frontmanIntegration } from '@frontman-ai/astro/integration';
32
+
33
+ export default defineConfig({
34
+ integrations: [
35
+ frontmanIntegration(),
36
+ ],
37
+ });
38
+ ```
39
+
40
+ ## Exports
41
+
42
+ - `.` - Main module with `createMiddleware`, `makeConfig`, `ToolRegistry`
43
+ - `./integration` - Astro integration hook
44
+ - `./toolbar` - Dev toolbar app component
45
+
46
+ ## Dependencies
47
+
48
+ - `@frontman/frontman-core` - Tool registry and SSE utilities
49
+ - `astro` ^5.0.0 (peer dependency)
50
+
51
+ ## Commands
52
+
53
+ Run `make` or `make help` to see all available commands.