@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.
- package/LICENSE +7 -7
- package/README.md +770 -770
- package/agents/AGENTS.md +192 -192
- package/agents/project/custom.md +21 -21
- package/agents/project/next-mui.md +21 -21
- package/agents/project/next.md +24 -24
- package/agents/project/vanilla.md +22 -22
- package/agents/project/vite.md +19 -19
- package/bin/hawk-app.mjs +0 -0
- package/docs/bridge/README.md +1315 -1315
- package/docs/showcase/README.md +47 -47
- package/docs/showcase/functions/echo.ts +12 -12
- package/docs/showcase/functions/long-task.ts +31 -31
- package/docs/showcase/functions/showcase.ts +186 -186
- package/docs/showcase/hawk-app.json +73 -73
- package/docs/showcase/queries/assistant-prompts-by-day.json +6 -6
- package/docs/showcase/queries/assistant-prompts-by-day.sql +8 -8
- package/docs/showcase/queries/searches-by-day.json +6 -6
- package/docs/showcase/queries/searches-by-day.sql +7 -7
- package/docs/showcase/src/App.tsx +1436 -1436
- package/docs/showcase/src/main.tsx +10 -10
- package/docs/showcase/src/styles.css +71 -71
- package/docs/showcase/src/useHawkApp.ts +44 -44
- package/docs/showcase/src/vite-env.d.ts +1 -1
- package/docs/ui/README.md +166 -166
- package/package.json +1 -1
- package/schema/hawk-app.schema.json +611 -611
- package/src/accessibility.mjs +105 -105
- package/src/agents.mjs +145 -145
- package/src/aliases.mjs +30 -30
- package/src/app-icon.mjs +82 -82
- package/src/channel.mjs +116 -116
- package/src/cli.mjs +825 -825
- package/src/clients.mjs +221 -221
- package/src/config.mjs +148 -148
- package/src/create.mjs +186 -186
- package/src/credentials.mjs +56 -56
- package/src/data.mjs +169 -169
- package/src/deploy.mjs +349 -349
- package/src/dev.mjs +459 -459
- package/src/doctor.mjs +176 -176
- package/src/env.mjs +140 -140
- package/src/functions.mjs +313 -313
- package/src/login.mjs +166 -166
- package/src/logs.mjs +64 -64
- package/src/manifest.mjs +425 -425
- package/src/mcp-docs.mjs +168 -168
- package/src/mcp-hawksearch.mjs +342 -342
- package/src/mcp-reports.mjs +130 -130
- package/src/mcp-rules.mjs +109 -109
- package/src/mcp.mjs +539 -539
- package/src/platform.mjs +116 -116
- package/src/project-checks.mjs +153 -153
- package/src/queries.mjs +289 -289
- package/src/scope-check.mjs +91 -91
- package/src/secrets.mjs +86 -86
- package/src/slug-guard.mjs +80 -80
- package/src/sso.mjs +182 -182
- package/src/telemetry.mjs +50 -50
- package/src/upgrade.mjs +406 -406
- package/src/versions.mjs +102 -102
- package/templates/next/next.config.ts +13 -13
- package/templates/next/package.json +26 -26
- package/templates/next/src/lib/useHawkApp.ts +46 -46
- package/templates/next-mui/next.config.ts +13 -13
- package/templates/next-mui/package.json +30 -30
- package/templates/next-mui/src/app/layout.tsx +19 -19
- package/templates/next-mui/src/app/page.tsx +78 -78
- package/templates/next-mui/src/app/providers.tsx +10 -10
- package/templates/preact/package.json +26 -26
- package/templates/preact/src/useHawkApp.ts +44 -44
- package/templates/preact/src/vite-env.d.ts +1 -1
- package/templates/preact/tsconfig.json +17 -17
- package/templates/preact/vite.config.ts +11 -11
- package/templates/react/package.json +29 -29
- package/templates/react/src/useHawkApp.ts +44 -44
- package/templates/react/src/vite-env.d.ts +1 -1
- package/templates/react/tsconfig.json +16 -16
- package/templates/react/vite.config.ts +11 -11
- package/templates/vanilla/package.json +15 -15
package/agents/project/vite.md
CHANGED
|
@@ -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
|