@bridgeline-digital/hawk-app-cli 0.1.0-dev.20261020202308 → 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 (80) hide show
  1. package/LICENSE +7 -7
  2. package/README.md +770 -770
  3. package/agents/AGENTS.md +192 -192
  4. package/agents/project/custom.md +21 -21
  5. package/agents/project/next-mui.md +21 -21
  6. package/agents/project/next.md +24 -24
  7. package/agents/project/vanilla.md +22 -22
  8. package/agents/project/vite.md +19 -19
  9. package/bin/hawk-app.mjs +0 -0
  10. package/docs/bridge/README.md +1315 -1315
  11. package/docs/showcase/README.md +47 -47
  12. package/docs/showcase/functions/echo.ts +12 -12
  13. package/docs/showcase/functions/long-task.ts +31 -31
  14. package/docs/showcase/functions/showcase.ts +186 -186
  15. package/docs/showcase/hawk-app.json +73 -73
  16. package/docs/showcase/queries/assistant-prompts-by-day.json +6 -6
  17. package/docs/showcase/queries/assistant-prompts-by-day.sql +8 -8
  18. package/docs/showcase/queries/searches-by-day.json +6 -6
  19. package/docs/showcase/queries/searches-by-day.sql +7 -7
  20. package/docs/showcase/src/App.tsx +1436 -1436
  21. package/docs/showcase/src/main.tsx +10 -10
  22. package/docs/showcase/src/styles.css +71 -71
  23. package/docs/showcase/src/useHawkApp.ts +44 -44
  24. package/docs/showcase/src/vite-env.d.ts +1 -1
  25. package/docs/ui/README.md +166 -166
  26. package/package.json +1 -1
  27. package/schema/hawk-app.schema.json +611 -611
  28. package/src/accessibility.mjs +105 -105
  29. package/src/agents.mjs +145 -145
  30. package/src/aliases.mjs +30 -30
  31. package/src/app-icon.mjs +82 -82
  32. package/src/channel.mjs +116 -116
  33. package/src/cli.mjs +825 -825
  34. package/src/clients.mjs +221 -221
  35. package/src/config.mjs +148 -148
  36. package/src/create.mjs +186 -186
  37. package/src/credentials.mjs +56 -56
  38. package/src/data.mjs +169 -169
  39. package/src/deploy.mjs +349 -349
  40. package/src/dev.mjs +459 -459
  41. package/src/doctor.mjs +176 -176
  42. package/src/env.mjs +140 -140
  43. package/src/functions.mjs +313 -313
  44. package/src/login.mjs +166 -166
  45. package/src/logs.mjs +64 -64
  46. package/src/manifest.mjs +425 -425
  47. package/src/mcp-docs.mjs +168 -168
  48. package/src/mcp-hawksearch.mjs +342 -342
  49. package/src/mcp-reports.mjs +130 -130
  50. package/src/mcp-rules.mjs +109 -109
  51. package/src/mcp.mjs +539 -539
  52. package/src/platform.mjs +116 -116
  53. package/src/project-checks.mjs +153 -153
  54. package/src/queries.mjs +289 -289
  55. package/src/scope-check.mjs +91 -91
  56. package/src/secrets.mjs +86 -86
  57. package/src/slug-guard.mjs +80 -80
  58. package/src/sso.mjs +182 -182
  59. package/src/telemetry.mjs +50 -50
  60. package/src/upgrade.mjs +406 -406
  61. package/src/versions.mjs +102 -102
  62. package/templates/next/next.config.ts +13 -13
  63. package/templates/next/package.json +26 -26
  64. package/templates/next/src/lib/useHawkApp.ts +46 -46
  65. package/templates/next-mui/next.config.ts +13 -13
  66. package/templates/next-mui/package.json +30 -30
  67. package/templates/next-mui/src/app/layout.tsx +19 -19
  68. package/templates/next-mui/src/app/page.tsx +78 -78
  69. package/templates/next-mui/src/app/providers.tsx +10 -10
  70. package/templates/preact/package.json +26 -26
  71. package/templates/preact/src/useHawkApp.ts +44 -44
  72. package/templates/preact/src/vite-env.d.ts +1 -1
  73. package/templates/preact/tsconfig.json +17 -17
  74. package/templates/preact/vite.config.ts +11 -11
  75. package/templates/react/package.json +29 -29
  76. package/templates/react/src/useHawkApp.ts +44 -44
  77. package/templates/react/src/vite-env.d.ts +1 -1
  78. package/templates/react/tsconfig.json +16 -16
  79. package/templates/react/vite.config.ts +11 -11
  80. package/templates/vanilla/package.json +15 -15
@@ -1,19 +1,19 @@
1
- Created from the CLI's `__TEMPLATE__` template (Vite + TypeScript). `npx hawk-app upgrade` keeps it in step.
2
-
3
- - `src/useHawkApp.ts` connects to the host once and keeps the context current; build screens on it.
4
- - Spark's look comes from the Hawk Apps UI kit (`@bridgeline-digital/hawk-app-ui`), imported in `src/main.tsx`:
5
- its stylesheet (`/css`: Montserrat, the host's colors and light or dark mode) and its elements (`/elements`).
6
- Build screens from them before writing your own: classes `hawk-section` (with `hawk-section-header`,
7
- `hawk-section-title`, `hawk-section-subtitle`), `hawk-kpi-row`, `hawk-stack`, `hawk-button` (`is-outlined`,
8
- `is-small`), `hawk-notice` (`is-error`, `is-warning`, `is-success`), `hawk-input`, `hawk-select`, `hawk-chip`,
9
- `hawk-empty`, `hawk-spinner`, `hawk-muted`; elements `<hawk-kpi label value hint change good-when highlight loading>`,
10
- `<hawk-data-table>` (properties `columns`, `rows`, `totals`; attributes `download`, `max-height`, `clickable`;
11
- sortable, CSV download), `<hawk-bar-list>` (`items`, `selectable`: `hawk-select` events) and
12
- `<hawk-column-chart>` (`columns`). Data goes in as properties, settings as attributes; `src/hawk-elements.d.ts`
13
- types them in JSX. Format numbers and dates with `createFormat(context.locale)` from `/elements`. Don't add another
14
- font or restyle the kit; your own styles go in `src/styles.css`, using the `--hawk-ui-*` variables.
15
- - `vite.config.ts` sets `base` from `HAWK_APP_BASE_PATH` (local dev: `/__SLUG__/`) and the dev server to port 3100.
16
- Keep both.
17
- - Develop: `npm run dev`, then open `<HawkSearch>/admin/apps/__SLUG__?devUrl=http://localhost:3100/__SLUG__/` (the app
18
- dev mode allows ports 3100-3103).
19
- - Build output: `dist/` (`npm run app:deploy` builds and deploys it).
1
+ Created from the CLI's `__TEMPLATE__` template (Vite + TypeScript). `npx hawk-app upgrade` keeps it in step.
2
+
3
+ - `src/useHawkApp.ts` connects to the host once and keeps the context current; build screens on it.
4
+ - Spark's look comes from the Hawk Apps UI kit (`@bridgeline-digital/hawk-app-ui`), imported in `src/main.tsx`:
5
+ its stylesheet (`/css`: Montserrat, the host's colors and light or dark mode) and its elements (`/elements`).
6
+ Build screens from them before writing your own: classes `hawk-section` (with `hawk-section-header`,
7
+ `hawk-section-title`, `hawk-section-subtitle`), `hawk-kpi-row`, `hawk-stack`, `hawk-button` (`is-outlined`,
8
+ `is-small`), `hawk-notice` (`is-error`, `is-warning`, `is-success`), `hawk-input`, `hawk-select`, `hawk-chip`,
9
+ `hawk-empty`, `hawk-spinner`, `hawk-muted`; elements `<hawk-kpi label value hint change good-when highlight loading>`,
10
+ `<hawk-data-table>` (properties `columns`, `rows`, `totals`; attributes `download`, `max-height`, `clickable`;
11
+ sortable, CSV download), `<hawk-bar-list>` (`items`, `selectable`: `hawk-select` events) and
12
+ `<hawk-column-chart>` (`columns`). Data goes in as properties, settings as attributes; `src/hawk-elements.d.ts`
13
+ types them in JSX. Format numbers and dates with `createFormat(context.locale)` from `/elements`. Don't add another
14
+ font or restyle the kit; your own styles go in `src/styles.css`, using the `--hawk-ui-*` variables.
15
+ - `vite.config.ts` sets `base` from `HAWK_APP_BASE_PATH` (local dev: `/__SLUG__/`) and the dev server to port 3100.
16
+ Keep both.
17
+ - Develop: `npm run dev`, then open `<HawkSearch>/admin/apps/__SLUG__?devUrl=http://localhost:3100/__SLUG__/` (the app
18
+ dev mode allows ports 3100-3103).
19
+ - Build output: `dist/` (`npm run app:deploy` builds and deploys it).
package/bin/hawk-app.mjs CHANGED
File without changes