@apotech-os/support-kit 2.6.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/README.md +67 -0
- package/dist/chunk-KDOL3MLH.js +1766 -0
- package/dist/chunk-KDOL3MLH.js.map +1 -0
- package/dist/index.cjs +5744 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +2010 -0
- package/dist/index.d.ts +2010 -0
- package/dist/index.js +3965 -0
- package/dist/index.js.map +1 -0
- package/dist/ui/index.cjs +4946 -0
- package/dist/ui/index.cjs.map +1 -0
- package/dist/ui/index.d.cts +25 -0
- package/dist/ui/index.d.ts +25 -0
- package/dist/ui/index.js +4464 -0
- package/dist/ui/index.js.map +1 -0
- package/package.json +68 -0
package/README.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# @apotech-os/support-kit
|
|
2
|
+
|
|
3
|
+
Kit package for the Gorgias back-office migration (spec
|
|
4
|
+
`specifications/spec-migration-gorgias-backoffice-v1.md`). A consuming app
|
|
5
|
+
spreads `buildSupportPipeline(config)`'s fragments into its own
|
|
6
|
+
`defineApp({...})` call — see `src/pipeline.ts`'s own doc comment for the
|
|
7
|
+
full assembly contract.
|
|
8
|
+
|
|
9
|
+
## Publishing an app that uses this kit's UI pages
|
|
10
|
+
|
|
11
|
+
`buildSupportPipeline` declares eleven UI bundle entries in the manifest it
|
|
12
|
+
returns — T26's five, T27 part A's three, and part B's three
|
|
13
|
+
(`GraphCanvasPage`, `SharedPromptsPage`, `TestPage`): §3.8's full page list
|
|
14
|
+
is now complete.
|
|
15
|
+
|
|
16
|
+
- `pages[]`: `dist/ui/dashboard.js`, `dist/ui/tickets.js`,
|
|
17
|
+
`dist/ui/pipeline.js`, `dist/ui/agents.js`, `dist/ui/categories.js`,
|
|
18
|
+
`dist/ui/escalations.js`, `dist/ui/corrections.js`,
|
|
19
|
+
`dist/ui/graph-canvas.js`, `dist/ui/shared-prompts.js`, `dist/ui/test.js`
|
|
20
|
+
- `settingsPage`: `dist/ui/settings.js`
|
|
21
|
+
|
|
22
|
+
**These are NOT produced by this package's own build.** The kit's `tsup`
|
|
23
|
+
build emits a single barrel, `dist/ui/index.js`, exporting `DashboardPage`,
|
|
24
|
+
`TicketsPage`, `PipelinePage`, `AgentsPage`, `CategoriesPage`,
|
|
25
|
+
`EscalationsPage`, `CorrectionsPage`, `SettingsPage`, `GraphCanvasPage`,
|
|
26
|
+
`SharedPromptsPage`, `TestPage` (see `src/ui/index.ts`) — there is no
|
|
27
|
+
`dist/ui/pipeline.js` et al. inside this package, on purpose (T26/T25's own
|
|
28
|
+
"kit exports pages, not bundles" boundary).
|
|
29
|
+
|
|
30
|
+
`packages/cli/src/commands/build.ts` resolves every `pages[].entry` and
|
|
31
|
+
`settingsPage.entry` from the CONSUMING APP's own `src/ui/<basename>.tsx` —
|
|
32
|
+
never from an installed package. A page with no matching source file is
|
|
33
|
+
silently skipped (`UI_BUNDLE_MISSING` at publish time, via
|
|
34
|
+
`ArtifactValidatorService`); a missing `settingsPage` source fails the CLI
|
|
35
|
+
build outright.
|
|
36
|
+
|
|
37
|
+
**A consuming app must therefore author eleven one-line re-export shims**,
|
|
38
|
+
following `docs/app-template/src/ui/dashboard.tsx`'s own doc-comment
|
|
39
|
+
convention:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
src/ui/dashboard.tsx export { DashboardPage as default } from '@apotech-os/support-kit/ui';
|
|
43
|
+
src/ui/tickets.tsx export { TicketsPage as default } from '@apotech-os/support-kit/ui';
|
|
44
|
+
src/ui/pipeline.tsx export { PipelinePage as default } from '@apotech-os/support-kit/ui';
|
|
45
|
+
src/ui/agents.tsx export { AgentsPage as default } from '@apotech-os/support-kit/ui';
|
|
46
|
+
src/ui/categories.tsx export { CategoriesPage as default } from '@apotech-os/support-kit/ui';
|
|
47
|
+
src/ui/escalations.tsx export { EscalationsPage as default } from '@apotech-os/support-kit/ui';
|
|
48
|
+
src/ui/corrections.tsx export { CorrectionsPage as default } from '@apotech-os/support-kit/ui';
|
|
49
|
+
src/ui/graph-canvas.tsx export { GraphCanvasPage as default } from '@apotech-os/support-kit/ui';
|
|
50
|
+
src/ui/shared-prompts.tsx export { SharedPromptsPage as default } from '@apotech-os/support-kit/ui';
|
|
51
|
+
src/ui/test.tsx export { TestPage as default } from '@apotech-os/support-kit/ui';
|
|
52
|
+
src/ui/settings.tsx export { SettingsPage as default } from '@apotech-os/support-kit/ui';
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
(The CLI expects each bundle's default export to be the page component —
|
|
56
|
+
see `dashboard.tsx`'s own header for the full contract: react/react-dom/
|
|
57
|
+
`@apotech-os/ui-sdk` externalised, ESM, served at
|
|
58
|
+
`/api/platform/apps/:slug/ui/<basename>.js`.)
|
|
59
|
+
|
|
60
|
+
`src/ui-bundle-parity.spec.ts` (this package) pins the OTHER half of this
|
|
61
|
+
contract: the set of basenames `pipeline.ts` commits to in `pages[].entry`/
|
|
62
|
+
`settingsPage.entry` always has a matching `<PathPascalCase>Page` export in
|
|
63
|
+
`src/ui/index.ts`. It cannot verify the consuming app authored its eight
|
|
64
|
+
shims — that step is documented here, not testable from inside this
|
|
65
|
+
package — but it does mean a ninth page (or a renamed one) surfaces as a
|
|
66
|
+
red test in THIS package's own CI, not as a confusing publish failure
|
|
67
|
+
downstream with no clue which page's shim is missing.
|