@bridgetek/eveapps-pre82x-core 1.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 (96) hide show
  1. package/README.md +138 -0
  2. package/data/build_matrix.json +226 -0
  3. package/data/commands.json +10755 -0
  4. package/data/feature_graph.json +4979 -0
  5. package/data/graphics.json +169 -0
  6. package/data/modules.json +331 -0
  7. package/data/registers.json +5163 -0
  8. package/data/samples.json +765 -0
  9. package/dist/context.d.ts +7 -0
  10. package/dist/context.js +32 -0
  11. package/dist/context.js.map +1 -0
  12. package/dist/index.d.ts +14 -0
  13. package/dist/index.js +15 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/lib/confidence.d.ts +6 -0
  16. package/dist/lib/confidence.js +18 -0
  17. package/dist/lib/confidence.js.map +1 -0
  18. package/dist/lib/eveSymbolAliases.d.ts +10 -0
  19. package/dist/lib/eveSymbolAliases.js +58 -0
  20. package/dist/lib/eveSymbolAliases.js.map +1 -0
  21. package/dist/lib/loadIndex.d.ts +26 -0
  22. package/dist/lib/loadIndex.js +33 -0
  23. package/dist/lib/loadIndex.js.map +1 -0
  24. package/dist/lib/moduleGraphicsLookup.d.ts +18 -0
  25. package/dist/lib/moduleGraphicsLookup.js +66 -0
  26. package/dist/lib/moduleGraphicsLookup.js.map +1 -0
  27. package/dist/lib/normalize.d.ts +3 -0
  28. package/dist/lib/normalize.js +21 -0
  29. package/dist/lib/normalize.js.map +1 -0
  30. package/dist/lib/rank.d.ts +6 -0
  31. package/dist/lib/rank.js +51 -0
  32. package/dist/lib/rank.js.map +1 -0
  33. package/dist/lib/registerVariants.d.ts +13 -0
  34. package/dist/lib/registerVariants.js +77 -0
  35. package/dist/lib/registerVariants.js.map +1 -0
  36. package/dist/lib/workspace.d.ts +4 -0
  37. package/dist/lib/workspace.js +5 -0
  38. package/dist/lib/workspace.js.map +1 -0
  39. package/dist/router/analyzeQuery.d.ts +9 -0
  40. package/dist/router/analyzeQuery.js +12 -0
  41. package/dist/router/analyzeQuery.js.map +1 -0
  42. package/dist/router/index.d.ts +5 -0
  43. package/dist/router/index.js +6 -0
  44. package/dist/router/index.js.map +1 -0
  45. package/dist/router/mergeResults.d.ts +2 -0
  46. package/dist/router/mergeResults.js +25 -0
  47. package/dist/router/mergeResults.js.map +1 -0
  48. package/dist/router/retrieveAnswer.d.ts +3 -0
  49. package/dist/router/retrieveAnswer.js +51 -0
  50. package/dist/router/retrieveAnswer.js.map +1 -0
  51. package/dist/router/routeQuery.d.ts +3 -0
  52. package/dist/router/routeQuery.js +33 -0
  53. package/dist/router/routeQuery.js.map +1 -0
  54. package/dist/router/types.d.ts +13 -0
  55. package/dist/router/types.js +2 -0
  56. package/dist/router/types.js.map +1 -0
  57. package/dist/search/searchCore.d.ts +3 -0
  58. package/dist/search/searchCore.js +103 -0
  59. package/dist/search/searchCore.js.map +1 -0
  60. package/dist/search/searchEveApps.d.ts +2 -0
  61. package/dist/search/searchEveApps.js +111 -0
  62. package/dist/search/searchEveApps.js.map +1 -0
  63. package/dist/search/searchSourceFiles.d.ts +7 -0
  64. package/dist/search/searchSourceFiles.js +71 -0
  65. package/dist/search/searchSourceFiles.js.map +1 -0
  66. package/dist/server.d.ts +1 -0
  67. package/dist/server.js +217 -0
  68. package/dist/server.js.map +1 -0
  69. package/dist/tools/explainEveSymbol.d.ts +84 -0
  70. package/dist/tools/explainEveSymbol.js +81 -0
  71. package/dist/tools/explainEveSymbol.js.map +1 -0
  72. package/dist/tools/findRelevantSample.d.ts +34 -0
  73. package/dist/tools/findRelevantSample.js +33 -0
  74. package/dist/tools/findRelevantSample.js.map +1 -0
  75. package/dist/tools/generateBuildCommand.d.ts +62 -0
  76. package/dist/tools/generateBuildCommand.js +103 -0
  77. package/dist/tools/generateBuildCommand.js.map +1 -0
  78. package/dist/tools/generateScreenScaffold.d.ts +34 -0
  79. package/dist/tools/generateScreenScaffold.js +118 -0
  80. package/dist/tools/generateScreenScaffold.js.map +1 -0
  81. package/dist/tools/lookupModuleGraphics.d.ts +29 -0
  82. package/dist/tools/lookupModuleGraphics.js +25 -0
  83. package/dist/tools/lookupModuleGraphics.js.map +1 -0
  84. package/dist/tools/readSourceFile.d.ts +15 -0
  85. package/dist/tools/readSourceFile.js +39 -0
  86. package/dist/tools/readSourceFile.js.map +1 -0
  87. package/dist/tools/traceFeatureToCommands.d.ts +38 -0
  88. package/dist/tools/traceFeatureToCommands.js +90 -0
  89. package/dist/tools/traceFeatureToCommands.js.map +1 -0
  90. package/dist/tools/validatePre820Code.d.ts +37 -0
  91. package/dist/tools/validatePre820Code.js +88 -0
  92. package/dist/tools/validatePre820Code.js.map +1 -0
  93. package/dist/types.d.ts +72 -0
  94. package/dist/types.js +2 -0
  95. package/dist/types.js.map +1 -0
  96. package/package.json +30 -0
package/README.md ADDED
@@ -0,0 +1,138 @@
1
+ # @bridgetek/eveapps-pre82x-core
2
+
3
+ Core runtime library for PRE820 and EveApps development workflows.
4
+
5
+ `@bridgetek/eveapps-pre82x-core` provides the retrieval engine, ranking logic, indexed data access, and reusable tool implementations used by the `@bridgetek/eveapps-pre82x-mcp-server`.
6
+
7
+ It includes:
8
+
9
+ - Programmatic APIs and utilities for PRE820/EveApps knowledge retrieval
10
+ - Sample, command, register, and feature indexing support
11
+ - Runtime data files required for search and ranking operations
12
+ - Core functionality shared by MCP-based developer tools
13
+
14
+ ## Installation
15
+
16
+ From npm (public scoped package):
17
+
18
+ ```bash
19
+ npm install @bridgetek/eveapps-pre82x-core
20
+ ```
21
+
22
+ When using this monorepo locally, prefer building from source and referencing the package via workspace path or local import.
23
+
24
+ ## Quick usage
25
+
26
+ Import the primary helpers and tools:
27
+
28
+ ```ts
29
+ import {
30
+ createWorkspaceContext,
31
+ retrieveAnswer,
32
+ findRelevantSample,
33
+ // ...other exports
34
+ } from "@bridgetek/eveapps-pre82x-core";
35
+
36
+ const context = createWorkspaceContext("/path/to/EveApps-repo");
37
+ const result = await retrieveAnswer({ query: "display list of commands" }, { context });
38
+ ```
39
+
40
+ Check the `src/index.ts` exports for a complete list of exported symbols.
41
+
42
+ ## Data files
43
+
44
+ The package includes indexed JSON files used at runtime:
45
+
46
+ ```
47
+ data/
48
+ ├── commands.json
49
+ ├── samples.json
50
+ ├── registers.json
51
+ ├── build_matrix.json
52
+ └── feature_graph.json
53
+ ```
54
+
55
+ During the build process these files are included in:
56
+
57
+ `dist/data/`
58
+
59
+ and published with the npm package.
60
+
61
+ ## Relationship with EveApps-Pre82x MCP Server
62
+
63
+ This package is the core library layer used by:
64
+
65
+ `@bridgetek/eveapps-pre82x-mcp-server`
66
+
67
+ The MCP server provides the AI integration layer, while this package provides the underlying:
68
+
69
+ - knowledge retrieval
70
+ - sample discovery
71
+ - API lookup
72
+ - ranking and indexing capabilities
73
+
74
+ ## Development
75
+
76
+ From the repo root (monorepo):
77
+
78
+ ```bash
79
+ # install locked dependencies
80
+ npm ci
81
+ # build this package
82
+ npm --prefix packages/eveapps-pre82x-core run build
83
+ # or build all packages from root
84
+ npm run build
85
+ ```
86
+
87
+ Use `npm ci` for fresh checkouts and CI builds. Commit the root `package-lock.json` to GitHub so contributors and CI use the same dependency versions. This monorepo shares one root lockfile; do not create a separate lockfile in this package.
88
+
89
+ To add or update this package's dependencies, run `npm install <dependency> --workspace @bridgetek/eveapps-pre82x-core` from the repository root. Commit the changed package manifest together with the root `package-lock.json`. Keep `node_modules/` ignored by Git.
90
+
91
+ If `npm ci` reports that the lockfile and package manifests are out of sync after an intentional dependency change, run `npm install` from the repository root and commit the updated manifests and root lockfile.
92
+
93
+ TypeScript path mapping in `packages/eveapps-pre82x-mcp-server/tsconfig.json` points at the local `src/index.ts` for fast development.
94
+
95
+ ## FT90X and FT93X builds
96
+
97
+ FT9XX targets support two workflows:
98
+
99
+ 1. Import the `FT9XX` project contained in the selected DemoApps or SampleApp project into the FT9XX Toolchain IDE, then build and run it from the GUI.
100
+ 2. Configure and build from an EveApps `build` directory with CMake:
101
+
102
+ ```bash
103
+ cmake -G "Eclipse CDT4 - Unix Makefiles" \
104
+ -DEVE_APPS_PLATFORM=MM900EV3A \
105
+ -DEVE_APPS_GRAPHICS=EVE_GRAPHICS_BT817 \
106
+ -DEVE_APPS_DISPLAY=WXGA \
107
+ "-DFT9XX_TOOLCHAIN=C:\Program Files (x86)\Bridgetek\FT9xx Toolchain" \
108
+ ..
109
+ cmake --build ./
110
+ ```
111
+
112
+ Use `cmake --build ./ --target <project>` to build one DemoApps or SampleApp folder. The `generateBuildCommand` API accepts `ft9xx_toolchain` for the installation path and optional `project` for this target.
113
+
114
+ ## Publishing
115
+
116
+ This package is scoped to the `@bridgetek` org. To publish:
117
+
118
+ ```bash
119
+ cd packages/eveapps-pre82x-core
120
+ # ensure version bumped if needed
121
+ npm version patch
122
+ npm publish --access public
123
+ ```
124
+
125
+ Then publish dependent packages (for example `@bridgetek/eveapps-pre82x-mcp-server`) after the core package is available.
126
+
127
+ > [!NOTE]
128
+ > - The package is configured as a public scoped npm package.
129
+ > - If npm account security requires two-factor authentication, an OTP may be required during publishing.
130
+ > - Dependent packages such as `@bridgetek/eveapps-pre82x-mcp-server` should be updated after publishing a new core version.
131
+
132
+ ## License
133
+
134
+ See the repository `LICENSE.md` for licensing details.
135
+
136
+ ## Maintainers
137
+
138
+ BridgeTek internal team
@@ -0,0 +1,226 @@
1
+ {
2
+ "version": 1,
3
+ "platforms": {
4
+ "MM900EV1A": {
5
+ "generator": "Eclipse CDT4 - Unix Makefiles",
6
+ "buildTool": "make",
7
+ "host": [
8
+ "Windows",
9
+ "Linux"
10
+ ],
11
+ "requires": [
12
+ "FT9XX_TOOLCHAIN"
13
+ ]
14
+ },
15
+ "MM900EV1B": {
16
+ "generator": "Eclipse CDT4 - Unix Makefiles",
17
+ "buildTool": "make",
18
+ "host": [
19
+ "Windows",
20
+ "Linux"
21
+ ],
22
+ "requires": [
23
+ "FT9XX_TOOLCHAIN"
24
+ ]
25
+ },
26
+ "MM900EV2A": {
27
+ "generator": "Eclipse CDT4 - Unix Makefiles",
28
+ "buildTool": "make",
29
+ "host": [
30
+ "Windows",
31
+ "Linux"
32
+ ],
33
+ "requires": [
34
+ "FT9XX_TOOLCHAIN"
35
+ ]
36
+ },
37
+ "MM900EV3A": {
38
+ "generator": "Eclipse CDT4 - Unix Makefiles",
39
+ "buildTool": "make",
40
+ "host": [
41
+ "Windows",
42
+ "Linux"
43
+ ],
44
+ "requires": [
45
+ "FT9XX_TOOLCHAIN"
46
+ ]
47
+ },
48
+ "MM900EV_LITE": {
49
+ "generator": "Eclipse CDT4 - Unix Makefiles",
50
+ "buildTool": "make",
51
+ "host": [
52
+ "Windows",
53
+ "Linux"
54
+ ],
55
+ "requires": [
56
+ "FT9XX_TOOLCHAIN"
57
+ ]
58
+ },
59
+ "MM930MINI": {
60
+ "generator": "Eclipse CDT4 - Unix Makefiles",
61
+ "buildTool": "make",
62
+ "host": [
63
+ "Windows"
64
+ ],
65
+ "requires": [
66
+ "FT9XX_TOOLCHAIN"
67
+ ]
68
+ },
69
+ "MM930LITE": {
70
+ "generator": "Eclipse CDT4 - Unix Makefiles",
71
+ "buildTool": "make",
72
+ "host": [
73
+ "Windows"
74
+ ],
75
+ "requires": [
76
+ "FT9XX_TOOLCHAIN"
77
+ ]
78
+ },
79
+ "MM932LC": {
80
+ "generator": "Eclipse CDT4 - Unix Makefiles",
81
+ "buildTool": "make",
82
+ "host": [
83
+ "Windows"
84
+ ],
85
+ "requires": [
86
+ "FT9XX_TOOLCHAIN"
87
+ ]
88
+ },
89
+ "FT900_PLATFORM": {
90
+ "generator": "Eclipse CDT4 - Unix Makefiles",
91
+ "buildTool": "make",
92
+ "host": [
93
+ "Windows",
94
+ "Linux"
95
+ ],
96
+ "requires": [
97
+ "FT9XX_TOOLCHAIN"
98
+ ]
99
+ },
100
+ "FT93X_PLATFORM": {
101
+ "generator": "Eclipse CDT4 - Unix Makefiles",
102
+ "buildTool": "make",
103
+ "host": [
104
+ "Windows",
105
+ "Linux"
106
+ ],
107
+ "requires": [
108
+ "FT9XX_TOOLCHAIN"
109
+ ]
110
+ },
111
+ "EVE_PLATFORM_FT4222": {
112
+ "generator": "NMake Makefiles",
113
+ "buildTool": "nmake",
114
+ "host": [
115
+ "Windows"
116
+ ]
117
+ },
118
+ "EVE_PLATFORM_MPSSE": {
119
+ "generator": "NMake Makefiles",
120
+ "buildTool": "nmake",
121
+ "host": [
122
+ "Windows"
123
+ ]
124
+ },
125
+ "EVE_PLATFORM_BT8XXEMU": {
126
+ "generator": "NMake Makefiles",
127
+ "buildTool": "nmake",
128
+ "host": [
129
+ "Windows"
130
+ ]
131
+ },
132
+ "EVE_PLATFORM_RP2040": {
133
+ "generator": "NMake Makefiles",
134
+ "buildTool": "nmake",
135
+ "host": [
136
+ "Windows"
137
+ ],
138
+ "requires": [
139
+ "PICO_SDK_PATH"
140
+ ]
141
+ },
142
+ "EVE_PLATFORM_MM2040EV": {
143
+ "generator": "NMake Makefiles",
144
+ "buildTool": "nmake",
145
+ "host": [
146
+ "Windows"
147
+ ],
148
+ "requires": [
149
+ "PICO_SDK_PATH"
150
+ ]
151
+ }
152
+ },
153
+ "graphics": [
154
+ "VM800B35A_BK",
155
+ "VM800B43A_BK",
156
+ "VM800B50A_BK",
157
+ "VM801B43A_BK",
158
+ "VM801B50A_BK",
159
+ "VM800C35A_N",
160
+ "VM800C43A_N",
161
+ "VM800C35A_D",
162
+ "VM800C43A_D",
163
+ "VM800C50A_D",
164
+ "ME812A_WH50R",
165
+ "ME812AU_WH50R",
166
+ "ME813A_WH50C",
167
+ "ME813AU_WH50C",
168
+ "VM810C50A_D",
169
+ "VM810C50A_N",
170
+ "ME810A_HV35R",
171
+ "VM816C50A_D",
172
+ "VM816C50A_N",
173
+ "VM816CU50A_D",
174
+ "VM816CU50A_N",
175
+ "ME810AU_HV35R",
176
+ "ME813A_WV7C",
177
+ "PANL35",
178
+ "PANL50",
179
+ "PANL70",
180
+ "PANL70PLUS",
181
+ "EVE_GRAPHICS_VM800C",
182
+ "EVE_GRAPHICS_VM810C",
183
+ "EVE_GRAPHICS_VM816C",
184
+ "EVE_GRAPHICS_ME817EV",
185
+ "EVE_GRAPHICS_FT800",
186
+ "EVE_GRAPHICS_FT801",
187
+ "EVE_GRAPHICS_FT810",
188
+ "EVE_GRAPHICS_FT811",
189
+ "EVE_GRAPHICS_FT812",
190
+ "EVE_GRAPHICS_FT813",
191
+ "EVE_GRAPHICS_BT880",
192
+ "EVE_GRAPHICS_BT881",
193
+ "EVE_GRAPHICS_BT882",
194
+ "EVE_GRAPHICS_BT883",
195
+ "EVE_GRAPHICS_BT815",
196
+ "EVE_GRAPHICS_BT816",
197
+ "EVE_GRAPHICS_BT817",
198
+ "EVE_GRAPHICS_BT817A",
199
+ "EVE_GRAPHICS_BT818"
200
+ ],
201
+ "displays": [
202
+ "QVGA",
203
+ "WQVGA",
204
+ "WVGA",
205
+ "WSVGA",
206
+ "WXGA",
207
+ "ILI9488_HVGA_PORTRAIT",
208
+ "KD2401_HVGA_PORTRAIT"
209
+ ],
210
+ "defaults": {
211
+ "platform": "EVE_PLATFORM_FT4222",
212
+ "graphics": "EVE_GRAPHICS_BT816",
213
+ "display": "WXGA"
214
+ },
215
+ "generators": {
216
+ "Eclipse CDT4 - Unix Makefiles": {
217
+ "tool": "make"
218
+ },
219
+ "NMake Makefiles": {
220
+ "tool": "nmake"
221
+ },
222
+ "Unix Makefiles": {
223
+ "tool": "make"
224
+ }
225
+ }
226
+ }