nucleus-core-ts 0.10.155 → 0.10.156

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 (213) hide show
  1. package/LICENSE +48 -48
  2. package/README.md +19 -46
  3. package/bin/cli.ts +0 -0
  4. package/dist/.build-ok +1 -1
  5. package/dist/client.js +1 -1
  6. package/dist/dist/index.d.ts +7748 -7747
  7. package/dist/fe/components/AuthorizationPage/labels.js +13 -13
  8. package/dist/fe/components/Captcha/labels.js +17 -17
  9. package/dist/fe/components/ChatPanel/helpers.js +17 -17
  10. package/dist/fe/components/ChatPanel/labels.js +16 -16
  11. package/dist/fe/components/DataTable/labels.js +16 -16
  12. package/dist/fe/components/DevicesPage/components/DeviceCard.js +15 -15
  13. package/dist/fe/components/DevicesPage/components/DevicesPage.js +9 -9
  14. package/dist/fe/components/DevicesPage/labels.js +12 -12
  15. package/dist/fe/components/ForgotPasswordPage/labels.js +8 -8
  16. package/dist/fe/components/FormBuilder/components/FormField.js +5 -5
  17. package/dist/fe/components/FormBuilder/utils/fieldMapping.js +9 -9
  18. package/dist/fe/components/IntegrationsPage/components/ConnectionAuthFields.js +8 -8
  19. package/dist/fe/components/IntegrationsPage/components/ConnectionBasicFields.js +3 -3
  20. package/dist/fe/components/IntegrationsPage/components/ConnectionExport.js +23 -23
  21. package/dist/fe/components/IntegrationsPage/components/ConnectionForm.js +22 -22
  22. package/dist/fe/components/IntegrationsPage/components/ConnectionList.js +7 -7
  23. package/dist/fe/components/IntegrationsPage/components/ConnectionOauthFields.js +6 -6
  24. package/dist/fe/components/IntegrationsPage/components/ConnectionSettingsTab.js +24 -24
  25. package/dist/fe/components/IntegrationsPage/components/ConnectionSwitcher.js +19 -19
  26. package/dist/fe/components/IntegrationsPage/components/ConnectionTabs.js +15 -15
  27. package/dist/fe/components/IntegrationsPage/components/ConnectionTest.js +21 -21
  28. package/dist/fe/components/IntegrationsPage/components/ConnectionTransfer.js +18 -18
  29. package/dist/fe/components/IntegrationsPage/components/CredentialFields.js +19 -19
  30. package/dist/fe/components/IntegrationsPage/components/CredentialSlotRow.js +8 -8
  31. package/dist/fe/components/IntegrationsPage/components/EndpointForm.js +7 -7
  32. package/dist/fe/components/IntegrationsPage/components/EndpointFormFields.js +12 -12
  33. package/dist/fe/components/IntegrationsPage/components/EndpointList.js +7 -7
  34. package/dist/fe/components/IntegrationsPage/components/EndpointSample.js +36 -36
  35. package/dist/fe/components/IntegrationsPage/components/EndpointsTab.js +29 -29
  36. package/dist/fe/components/IntegrationsPage/components/FieldMappingRow.js +7 -7
  37. package/dist/fe/components/IntegrationsPage/components/FieldMappingRows.js +6 -6
  38. package/dist/fe/components/IntegrationsPage/components/IntegrationsPage.js +60 -60
  39. package/dist/fe/components/IntegrationsPage/components/MappingAccountFields.js +15 -15
  40. package/dist/fe/components/IntegrationsPage/components/MappingEditor.js +9 -9
  41. package/dist/fe/components/IntegrationsPage/components/MappingList.js +23 -23
  42. package/dist/fe/components/IntegrationsPage/components/MappingPasswordField.js +12 -12
  43. package/dist/fe/components/IntegrationsPage/components/MappingScheduleFields.js +23 -23
  44. package/dist/fe/components/IntegrationsPage/components/MappingWriteModeFields.js +31 -31
  45. package/dist/fe/components/IntegrationsPage/components/MappingsTab.js +56 -56
  46. package/dist/fe/components/IntegrationsPage/components/PaginationFields.js +11 -11
  47. package/dist/fe/components/IntegrationsPage/components/ParamBindingRows.js +15 -15
  48. package/dist/fe/components/IntegrationsPage/components/Primitives.js +28 -28
  49. package/dist/fe/components/IntegrationsPage/components/ReferenceCheckRows.js +9 -9
  50. package/dist/fe/components/IntegrationsPage/components/RunConfirmStep.js +6 -6
  51. package/dist/fe/components/IntegrationsPage/components/RunHistory.js +6 -6
  52. package/dist/fe/components/IntegrationsPage/components/RunHistoryRow.js +9 -9
  53. package/dist/fe/components/IntegrationsPage/components/RunPanel.js +40 -40
  54. package/dist/fe/components/IntegrationsPage/components/RunPasswordField.js +18 -18
  55. package/dist/fe/components/IntegrationsPage/components/RunPlanIssues.js +6 -6
  56. package/dist/fe/components/IntegrationsPage/components/RunPlanReferences.js +12 -12
  57. package/dist/fe/components/IntegrationsPage/components/RunPlanSuggestions.js +11 -11
  58. package/dist/fe/components/IntegrationsPage/components/RunPlanSummary.js +6 -6
  59. package/dist/fe/components/IntegrationsPage/components/RunProgressBar.js +6 -6
  60. package/dist/fe/components/IntegrationsPage/components/RunRevertConflicts.js +6 -6
  61. package/dist/fe/components/IntegrationsPage/components/Skeletons.js +7 -7
  62. package/dist/fe/components/IntegrationsPage/components/authOptions.js +4 -4
  63. package/dist/fe/components/IntegrationsPage/components/connectionDraft.js +27 -27
  64. package/dist/fe/components/IntegrationsPage/components/credentialSlots.js +25 -25
  65. package/dist/fe/components/IntegrationsPage/components/deleteIsConfirmed.js +9 -9
  66. package/dist/fe/components/IntegrationsPage/components/fieldMappingOptions.js +4 -4
  67. package/dist/fe/components/IntegrationsPage/components/formSupport.js +34 -34
  68. package/dist/fe/components/IntegrationsPage/components/jsonArray.js +14 -14
  69. package/dist/fe/components/IntegrationsPage/components/jsonObjectField.js +15 -15
  70. package/dist/fe/components/IntegrationsPage/components/mappingDraft.js +10 -10
  71. package/dist/fe/components/IntegrationsPage/components/mappingStaleness.js +22 -22
  72. package/dist/fe/components/IntegrationsPage/components/nextRuns.js +8 -8
  73. package/dist/fe/components/IntegrationsPage/components/passwordIsNeeded.js +13 -13
  74. package/dist/fe/components/IntegrationsPage/components/pathParams.js +6 -6
  75. package/dist/fe/components/IntegrationsPage/components/runFormat.js +18 -18
  76. package/dist/fe/components/IntegrationsPage/components/settleOwnership.js +18 -18
  77. package/dist/fe/components/IntegrationsPage/components/useInfiniteList.js +8 -8
  78. package/dist/fe/components/IntegrationsPage/store/index.js +20 -20
  79. package/dist/fe/components/IntegrationsPage/store/upsertInto.js +12 -12
  80. package/dist/fe/components/IntegrationsPage/text/context.js +6 -6
  81. package/dist/fe/components/IntegrationsPage/text/index.js +18 -18
  82. package/dist/fe/components/IntegrationsPage/theme/index.js +29 -29
  83. package/dist/fe/components/IntegrationsPage/types/records.js +10 -10
  84. package/dist/fe/components/IntegrationsPage/types/results.js +3 -3
  85. package/dist/fe/components/NotificationCenter/labels.js +17 -17
  86. package/dist/fe/components/ProfilePage/labels.js +10 -10
  87. package/dist/fe/components/ResetPasswordPage/labels.js +4 -4
  88. package/dist/fe/components/SetPasswordPage/labels.js +11 -11
  89. package/dist/fe/components/UsersPage/labels.js +14 -14
  90. package/dist/fe/utils/columnUtils.js +24 -24
  91. package/dist/fe/utils/searchFold.js +36 -36
  92. package/dist/index.d.ts +1 -0
  93. package/dist/index.js +22 -22
  94. package/dist/server.d.ts +2 -1
  95. package/dist/server.js +23 -23
  96. package/dist/src/Client/Proxy/largeBody.js +29 -29
  97. package/dist/src/Client/Proxy/utils.js +32 -32
  98. package/dist/src/Client/Proxy/wsProxy.js +59 -59
  99. package/dist/src/Services/OAuth/OAuthService.d.ts +2 -1
  100. package/dist/src/Services/OAuth/index.d.ts +1 -0
  101. package/dist/src/Services/OAuth/linkAuthorization.d.ts +23 -0
  102. package/dist/src/Services/OAuth/types.d.ts +4 -0
  103. package/dist/src/Shared/cron.js +71 -71
  104. package/dist/src/Shared/redactSecrets.js +156 -156
  105. package/dist/src/Shared/redaction/bare.js +61 -61
  106. package/dist/src/Shared/redaction/floor.js +48 -48
  107. package/dist/src/Shared/redaction/freeText.js +70 -70
  108. package/dist/src/Shared/redaction/json.js +30 -30
  109. package/dist/src/Shared/redaction/lists.js +23 -23
  110. package/dist/src/Shared/redaction/markers.js +28 -28
  111. package/dist/src/Shared/redaction/names.js +49 -49
  112. package/dist/src/Shared/redaction/pairs.js +54 -54
  113. package/dist/src/Shared/redaction/secretString.js +29 -29
  114. package/dist/src/Shared/redaction/structured.js +52 -52
  115. package/dist/src/Shared/redaction/walk.js +25 -25
  116. package/infra/scripts/generate-project.ts +766 -766
  117. package/infra/templates/README.md +57 -57
  118. package/infra/templates/backend/.dockerignore +9 -9
  119. package/infra/templates/backend/.env.example +15 -15
  120. package/infra/templates/backend/README.md +28 -28
  121. package/infra/templates/backend/azure-pipelines.yml +135 -135
  122. package/infra/templates/backend/k8s/Dockerfile +31 -31
  123. package/infra/templates/backend/k8s/configmap.yaml +26 -26
  124. package/infra/templates/backend/k8s/deployment.yaml +85 -85
  125. package/infra/templates/backend/k8s/pvc.yaml +12 -12
  126. package/infra/templates/backend/k8s/service.yaml +13 -13
  127. package/infra/templates/backend/tsconfig.json +22 -22
  128. package/infra/templates/frontend/.dockerignore +10 -10
  129. package/infra/templates/frontend/.env.example +8 -8
  130. package/infra/templates/frontend/.env.local.example +10 -10
  131. package/infra/templates/frontend/README.md +69 -69
  132. package/infra/templates/frontend/app/[tablename]/page.tsx +37 -37
  133. package/infra/templates/frontend/app/_components/AuthWrapper/index.tsx +63 -63
  134. package/infra/templates/frontend/app/authorization/page.tsx +43 -43
  135. package/infra/templates/frontend/app/change-password/page.tsx +23 -23
  136. package/infra/templates/frontend/app/devices/page.tsx +127 -127
  137. package/infra/templates/frontend/app/forgot-password/page.tsx +20 -20
  138. package/infra/templates/frontend/app/globals.css +28 -28
  139. package/infra/templates/frontend/app/layout.tsx +35 -35
  140. package/infra/templates/frontend/app/login/page.tsx +33 -33
  141. package/infra/templates/frontend/app/page.tsx +565 -565
  142. package/infra/templates/frontend/app/profile/page.tsx +92 -92
  143. package/infra/templates/frontend/app/register/page.tsx +27 -27
  144. package/infra/templates/frontend/app/reset-password/page.tsx +60 -60
  145. package/infra/templates/frontend/app/set-password/page.tsx +43 -43
  146. package/infra/templates/frontend/app/ui-docs/page.tsx +52 -52
  147. package/infra/templates/frontend/app/users/page.tsx +52 -52
  148. package/infra/templates/frontend/app/verify-email/page.tsx +41 -41
  149. package/infra/templates/frontend/app/verify-magic-link/page.tsx +46 -46
  150. package/infra/templates/frontend/azure-pipelines.yml +137 -137
  151. package/infra/templates/frontend/code-and-design-principles.md +438 -438
  152. package/infra/templates/frontend/k8s/Dockerfile +50 -50
  153. package/infra/templates/frontend/k8s/configmap.yaml +18 -18
  154. package/infra/templates/frontend/k8s/deployment.yaml +72 -72
  155. package/infra/templates/frontend/k8s/ingress.yaml +36 -36
  156. package/infra/templates/frontend/k8s/service.yaml +14 -14
  157. package/infra/templates/frontend/lib/api/endpoints.ts +37 -37
  158. package/infra/templates/frontend/lib/api/factory.ts +44 -44
  159. package/infra/templates/frontend/lib/api/hook.ts +10 -10
  160. package/infra/templates/frontend/next.config.ts +19 -19
  161. package/infra/templates/frontend/package.json +34 -34
  162. package/infra/templates/frontend/postcss.config.mjs +5 -5
  163. package/infra/templates/frontend/server.ts +114 -114
  164. package/infra/templates/frontend/tsconfig.json +23 -23
  165. package/package.json +2 -2
  166. package/public/components/CTA.tsx +25 -25
  167. package/public/components/Capabilities.tsx +67 -67
  168. package/public/components/Features.tsx +107 -107
  169. package/public/components/Footer.tsx +58 -58
  170. package/public/components/Hero.tsx +51 -51
  171. package/public/components/Managers.tsx +55 -55
  172. package/public/components/Nav.tsx +91 -91
  173. package/public/components/Stack.tsx +36 -36
  174. package/public/components/docs/Docs.tsx +60 -60
  175. package/public/components/docs/DocsContent.tsx +176 -176
  176. package/public/components/docs/DocsRightSidebar.tsx +53 -53
  177. package/public/components/docs/DocsSidebar.tsx +54 -54
  178. package/public/components/docs/content/authentication.ts +836 -836
  179. package/public/components/docs/content/authorization.ts +268 -268
  180. package/public/components/docs/content/backupRestore.ts +173 -173
  181. package/public/components/docs/content/clientModule.ts +287 -287
  182. package/public/components/docs/content/entityCrud.ts +682 -682
  183. package/public/components/docs/content/monitoring.ts +313 -313
  184. package/public/components/docs/content/multiTenant.ts +269 -269
  185. package/public/components/docs/content/oauthApiKeys.ts +325 -325
  186. package/public/components/docs/content/pubsub.ts +131 -131
  187. package/public/components/docs/content/storageCdn.ts +171 -171
  188. package/public/components/docs/content/verification.ts +289 -289
  189. package/public/components/docs/docsData.ts +113 -113
  190. package/public/components/docs/index.ts +6 -6
  191. package/public/components/index.ts +9 -9
  192. package/public/docs.css +629 -629
  193. package/public/index.html +81 -81
  194. package/public/index.tsx +42 -42
  195. package/public/store.ts +76 -76
  196. package/public/styles.css +858 -858
  197. package/scripts/audit-purge-noise.ts +120 -120
  198. package/scripts/build.ts +584 -582
  199. package/scripts/generate-system-tables-types.ts +18 -18
  200. package/scripts/generate-types-schema.test.ts +73 -73
  201. package/scripts/generate-types-schema.ts +1284 -1284
  202. package/scripts/packagedScripts.test.ts +87 -87
  203. package/scripts/publish.ts +54 -276
  204. package/scripts/release/artifacts.ts +34 -0
  205. package/scripts/release/errors.ts +10 -0
  206. package/scripts/release/log.ts +4 -0
  207. package/scripts/release/registry.ts +39 -0
  208. package/scripts/release/release.test.ts +40 -0
  209. package/scripts/release/version.ts +20 -0
  210. package/scripts/skillCitations.test.ts +107 -107
  211. package/scripts/verify-publishable.ts +40 -40
  212. package/scripts/version.ts +34 -127
  213. package/src/system.tables.json +6043 -6035
package/LICENSE CHANGED
@@ -1,48 +1,48 @@
1
- Nucleus Core - Proprietary Software License
2
-
3
- Copyright (c) 2024-2026 Hidayet Can Özcan <hidayetcan@gmail.com>
4
- All Rights Reserved.
5
-
6
- TERMS AND CONDITIONS
7
-
8
- 1. GRANT OF LICENSE
9
- This software and associated documentation files (the "Software") are
10
- licensed, not sold. Subject to the terms of this license, you are granted
11
- a non-exclusive, non-transferable, limited license to use the Software
12
- solely for your internal business purposes.
13
-
14
- 2. RESTRICTIONS
15
- You may NOT:
16
- - Copy, modify, or distribute the Software
17
- - Reverse engineer, decompile, or disassemble the Software
18
- - Sublicense, rent, lease, or lend the Software
19
- - Use the Software to create derivative works
20
- - Remove or alter any proprietary notices or labels on the Software
21
- - Share, publish, or make the Software available to third parties
22
-
23
- 3. INTELLECTUAL PROPERTY
24
- The Software is protected by copyright and other intellectual property
25
- laws. The author retains all right, title, and interest in and to the
26
- Software, including all intellectual property rights.
27
-
28
- 4. NO WARRANTY
29
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
30
- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
32
-
33
- 5. LIMITATION OF LIABILITY
34
- IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
35
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
36
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
37
- DEALINGS IN THE SOFTWARE.
38
-
39
- 6. TERMINATION
40
- This license is effective until terminated. It will terminate automatically
41
- if you fail to comply with any term of this license. Upon termination,
42
- you must destroy all copies of the Software.
43
-
44
- 7. GOVERNING LAW
45
- This license shall be governed by and construed in accordance with the
46
- laws of Turkey.
47
-
48
- For licensing inquiries, please contact: hidayetcan@gmail.com
1
+ Nucleus Core - Proprietary Software License
2
+
3
+ Copyright (c) 2024-2026 Hidayet Can Özcan <hidayetcan@gmail.com>
4
+ All Rights Reserved.
5
+
6
+ TERMS AND CONDITIONS
7
+
8
+ 1. GRANT OF LICENSE
9
+ This software and associated documentation files (the "Software") are
10
+ licensed, not sold. Subject to the terms of this license, you are granted
11
+ a non-exclusive, non-transferable, limited license to use the Software
12
+ solely for your internal business purposes.
13
+
14
+ 2. RESTRICTIONS
15
+ You may NOT:
16
+ - Copy, modify, or distribute the Software
17
+ - Reverse engineer, decompile, or disassemble the Software
18
+ - Sublicense, rent, lease, or lend the Software
19
+ - Use the Software to create derivative works
20
+ - Remove or alter any proprietary notices or labels on the Software
21
+ - Share, publish, or make the Software available to third parties
22
+
23
+ 3. INTELLECTUAL PROPERTY
24
+ The Software is protected by copyright and other intellectual property
25
+ laws. The author retains all right, title, and interest in and to the
26
+ Software, including all intellectual property rights.
27
+
28
+ 4. NO WARRANTY
29
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
30
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
32
+
33
+ 5. LIMITATION OF LIABILITY
34
+ IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
35
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
36
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
37
+ DEALINGS IN THE SOFTWARE.
38
+
39
+ 6. TERMINATION
40
+ This license is effective until terminated. It will terminate automatically
41
+ if you fail to comply with any term of this license. Upon termination,
42
+ you must destroy all copies of the Software.
43
+
44
+ 7. GOVERNING LAW
45
+ This license shall be governed by and construed in accordance with the
46
+ laws of Turkey.
47
+
48
+ For licensing inquiries, please contact: hidayetcan@gmail.com
package/README.md CHANGED
@@ -129,49 +129,22 @@ removed.
129
129
  Breaking changes will be announced here first. There is no 1.0 date; the 0.9.x
130
130
  line continues.
131
131
 
132
- ## Gates
133
-
134
- Every push runs, and all of these block:
135
-
136
- ```bash
137
- bun test src scripts fe # unit tests
138
- bunx tsc --noEmit -p tsconfig.check.json # the core library must type-check clean
139
- ```
140
-
141
- **The lint gate is currently not one of them.** CI runs `bunx biome check .`,
142
- and `biome` on npm is not Biome — it is an unrelated 0.3.3 package for managing
143
- environment variables. `@biomejs/biome` is the real one and is not declared as a
144
- dependency, so the step resolves the wrong package, prints no findings and exits
145
- 0. It passes on every commit and checks nothing. Locally it works only for
146
- whoever has Biome installed globally.
147
-
148
- Repairing it means declaring `@biomejs/biome`, pointing CI at it, and then
149
- making the repo clean under the real tool — which is a repo-wide change, so it
150
- is written down here rather than done quietly. See `ELYSIA_MIGRATION.md` §7.
151
-
152
- **What that costs, measured** (`bunx @biomejs/biome check .`, 1144 files):
153
-
154
- | | count |
155
- |---|---|
156
- | errors today | 234 |
157
- | fixed by `--write` | 90, touching 83 files |
158
- | left needing a judgement call | 144 errors + 29 warnings + 9 infos |
159
-
160
- The biggest groups are `assist/source/organizeImports` (33) and
161
- `lint/suspicious/noThenProperty` (12 — mostly chainable drizzle stubs in tests,
162
- where a `then` property is the point). So the repair is two commits, not one: a
163
- mechanical `--write` pass, then a smaller pass that decides what to keep.
164
-
165
- CI additionally runs every `*.integration.test.ts` against a real Postgres and
166
- Redis (`RUN_INTEGRATION=1`); they self-skip otherwise, because the races they
167
- catch — over-commit, non-atomic payout
168
- bookkeeping — cannot be reproduced against a fake backend.
169
-
170
- `tsconfig.check.json` covers `src` only — `fe/` imports from the package root,
171
- which only exists after a build, so it cannot be type-checked on a fresh
172
- checkout. The build emits its declarations best-effort.
173
-
174
- A local green is not a CI green. Path separators, case sensitivity, musl memory
175
- behaviour and `/proc` fixtures all differ between a developer machine and the
176
- Alpine image that runs in production; `ELYSIA_MIGRATION.md` §6 has the matrix
177
- and the container command that reproduces it.
132
+ ## Gates
133
+
134
+ Every push runs the core type and Biome lint checks. CI does not run tests.
135
+
136
+ ```bash
137
+ bun node_modules/typescript/bin/tsc --noEmit -p tsconfig.check.json
138
+ bun node_modules/@biomejs/biome/bin/biome check .
139
+ ```
140
+
141
+ Run meaningful local tests after pushing completed source. Integration suites need
142
+ real Postgres/Redis and `RUN_INTEGRATION=1`; feature suites run one process per file
143
+ because their tenant and route registries are process-wide. A skipped integration
144
+ suite is not evidence of database behavior.
145
+
146
+ `tsconfig.check.json` covers `src`; frontend declarations are emitted by the build.
147
+
148
+ Account-linking hosts can opt into a fresh self-session check at both OAuth initiation
149
+ and callback. See [OAuth link authorization](docs/OAUTH_LINK_AUTHORIZATION.md) for its
150
+ state binding, refusal codes, backward compatibility and Bun release procedure.
package/bin/cli.ts CHANGED
File without changes
package/dist/.build-ok CHANGED
@@ -1 +1 @@
1
- 0.10.155
1
+ 0.10.156