@wenathlan/saddle 2.0.153 → 2.0.155

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 (307) hide show
  1. package/Dockerfile +139 -55
  2. package/README.md +58 -59
  3. package/browser.ts +482 -0
  4. package/cli.ts +274 -0
  5. package/distribution.ts +731 -0
  6. package/docker.config +29 -8
  7. package/docs/artifactavailability.md +2 -2
  8. package/docs/browser.md +18 -1
  9. package/docs/{containerplatforms.2.1.0.md → containerplatforms210.md} +1 -1
  10. package/docs/{documentmap.1.8.12.md → documentmap1812.md} +1 -1
  11. package/docs/extension.md +13 -2
  12. package/docs/libraryapi.md +1 -1
  13. package/docs/{ninety.modalities.md → ninetymodalities.md} +87 -4
  14. package/docs/{planning.ninety.md → planningninety.md} +6 -6
  15. package/docs/{releasenotes.1.8.13.md → releasenotes1813.md} +2 -2
  16. package/docs/{releasenotes.1.8.14.md → releasenotes1814.md} +1 -1
  17. package/docs/{repo.synthesis.1.8.16.md → reposynthesis1816.md} +1 -1
  18. package/docs/todo.md +2 -2
  19. package/docs/{todo.1.8.15.md → todo1815.md} +1 -1
  20. package/docs/{todo.1.8.16.md → todo1816.md} +5 -5
  21. package/execution.ts +677 -0
  22. package/foundation.ts +314 -0
  23. package/index.ts +35 -27
  24. package/isolation.ts +84 -0
  25. package/modes.ts +170 -0
  26. package/mttg.config +1 -1
  27. package/orchestrator.ts +49 -15
  28. package/package.json +90 -75
  29. package/qemu.config +2 -2
  30. package/sandbox.ts +2094 -0
  31. package/scheduler.ts +1 -1
  32. package/server.ts +52 -0
  33. package/tsconfig.json +11 -12
  34. package/virtual.ts +1105 -0
  35. package/virtualgpu.ts +1 -1
  36. package/virtualization.ts +1 -1
  37. package/workloadlaw.ts +293 -0
  38. package/dist/App.d.ts +0 -5
  39. package/dist/App.js +0 -52
  40. package/dist/Sol/Sol.d.ts +0 -3
  41. package/dist/Sol/Sol.js +0 -46
  42. package/dist/Sol/agentbrowser/agentbrowser.d.ts +0 -9
  43. package/dist/Sol/agentbrowser/agentbrowser.js +0 -121
  44. package/dist/Sol/architecture/architecture.d.ts +0 -9
  45. package/dist/Sol/architecture/architecture.js +0 -93
  46. package/dist/Sol/compute/compute.d.ts +0 -9
  47. package/dist/Sol/compute/compute.js +0 -22
  48. package/dist/Sol/console/console.d.ts +0 -15
  49. package/dist/Sol/console/console.js +0 -292
  50. package/dist/Sol/dashboard/dashboard.d.ts +0 -10
  51. package/dist/Sol/dashboard/dashboard.js +0 -181
  52. package/dist/Sol/docs/docs.d.ts +0 -9
  53. package/dist/Sol/docs/docs.js +0 -28
  54. package/dist/Sol/home/home.d.ts +0 -35
  55. package/dist/Sol/home/home.js +0 -239
  56. package/dist/Sol/integrations/integrations.d.ts +0 -9
  57. package/dist/Sol/integrations/integrations.js +0 -83
  58. package/dist/Sol/intro/intro.d.ts +0 -7
  59. package/dist/Sol/intro/intro.js +0 -102
  60. package/dist/Sol/login/login.d.ts +0 -16
  61. package/dist/Sol/login/login.js +0 -49
  62. package/dist/Sol/notfound/notfound.d.ts +0 -9
  63. package/dist/Sol/notfound/notfound.js +0 -15
  64. package/dist/Sol/onboarding/onboarding.d.ts +0 -25
  65. package/dist/Sol/onboarding/onboarding.js +0 -60
  66. package/dist/Sol/playground/playground.d.ts +0 -9
  67. package/dist/Sol/playground/playground.js +0 -127
  68. package/dist/Sol/register/register.d.ts +0 -16
  69. package/dist/Sol/register/register.js +0 -193
  70. package/dist/Sol/shell/Shell.d.ts +0 -124
  71. package/dist/Sol/shell/Shell.js +0 -335
  72. package/dist/Sol/wingets/ComputeBootladder.d.ts +0 -6
  73. package/dist/Sol/wingets/ComputeBootladder.js +0 -71
  74. package/dist/Sol/wingets/ComputeModalitycatalog.d.ts +0 -7
  75. package/dist/Sol/wingets/ComputeModalitycatalog.js +0 -71
  76. package/dist/Sol/wingets/ConsoleApibadge.d.ts +0 -7
  77. package/dist/Sol/wingets/ConsoleApibadge.js +0 -5
  78. package/dist/Sol/wingets/ConsoleEdgelaw.d.ts +0 -6
  79. package/dist/Sol/wingets/ConsoleEdgelaw.js +0 -36
  80. package/dist/Sol/wingets/ConsoleEventstimeline.d.ts +0 -19
  81. package/dist/Sol/wingets/ConsoleEventstimeline.js +0 -12
  82. package/dist/Sol/wingets/ConsoleSnapshotcontrols.d.ts +0 -8
  83. package/dist/Sol/wingets/ConsoleSnapshotcontrols.js +0 -8
  84. package/dist/Sol/wingets/ConsoleSpecpanel.d.ts +0 -21
  85. package/dist/Sol/wingets/ConsoleSpecpanel.js +0 -75
  86. package/dist/Sol/wingets/ConsoleTerminal.d.ts +0 -22
  87. package/dist/Sol/wingets/ConsoleTerminal.js +0 -77
  88. package/dist/Sol/wingets/DashboardAccountpanel.d.ts +0 -18
  89. package/dist/Sol/wingets/DashboardAccountpanel.js +0 -65
  90. package/dist/Sol/wingets/DashboardAdminpanel.d.ts +0 -6
  91. package/dist/Sol/wingets/DashboardAdminpanel.js +0 -90
  92. package/dist/Sol/wingets/DashboardAuditlog.d.ts +0 -8
  93. package/dist/Sol/wingets/DashboardAuditlog.js +0 -50
  94. package/dist/Sol/wingets/DashboardCreatesandboxform.d.ts +0 -10
  95. package/dist/Sol/wingets/DashboardCreatesandboxform.js +0 -71
  96. package/dist/Sol/wingets/DashboardEventstimeline.d.ts +0 -8
  97. package/dist/Sol/wingets/DashboardEventstimeline.js +0 -83
  98. package/dist/Sol/wingets/DashboardGlobalsandboxestable.d.ts +0 -8
  99. package/dist/Sol/wingets/DashboardGlobalsandboxestable.js +0 -57
  100. package/dist/Sol/wingets/DashboardMeshnodestable.d.ts +0 -8
  101. package/dist/Sol/wingets/DashboardMeshnodestable.js +0 -103
  102. package/dist/Sol/wingets/DashboardSandboxlist.d.ts +0 -10
  103. package/dist/Sol/wingets/DashboardSandboxlist.js +0 -163
  104. package/dist/Sol/wingets/DashboardUserstable.d.ts +0 -8
  105. package/dist/Sol/wingets/DashboardUserstable.js +0 -78
  106. package/dist/Sol/wingets/HomeEntrygate.d.ts +0 -23
  107. package/dist/Sol/wingets/HomeEntrygate.js +0 -73
  108. package/dist/Sol/wingets/HomeMetricstrip.d.ts +0 -9
  109. package/dist/Sol/wingets/HomeMetricstrip.js +0 -4
  110. package/dist/Sol/wingets/HomeRuntimediagram.d.ts +0 -1
  111. package/dist/Sol/wingets/HomeRuntimediagram.js +0 -22
  112. package/dist/Sol/wingets/LoginForm.d.ts +0 -19
  113. package/dist/Sol/wingets/LoginForm.js +0 -141
  114. package/dist/Sol/wingets/RegisterPasswordconfirm.d.ts +0 -13
  115. package/dist/Sol/wingets/RegisterPasswordconfirm.js +0 -16
  116. package/dist/Sol/wingets/RegisterPasswordmeter.d.ts +0 -19
  117. package/dist/Sol/wingets/RegisterPasswordmeter.js +0 -65
  118. package/dist/Sol/wingets/RegisterUsernamerules.d.ts +0 -11
  119. package/dist/Sol/wingets/RegisterUsernamerules.js +0 -16
  120. package/dist/Sol/wingets/index.d.ts +0 -39
  121. package/dist/Sol/wingets/index.js +0 -39
  122. package/dist/alternatives.d.ts +0 -508
  123. package/dist/alternatives.js +0 -950
  124. package/dist/api.d.ts +0 -154
  125. package/dist/api.js +0 -174
  126. package/dist/auth.d.ts +0 -268
  127. package/dist/auth.js +0 -476
  128. package/dist/automation.d.ts +0 -425
  129. package/dist/automation.js +0 -566
  130. package/dist/browser.d.ts +0 -561
  131. package/dist/browser.js +0 -1058
  132. package/dist/capacitor.config.d.ts +0 -45
  133. package/dist/capacitor.config.js +0 -48
  134. package/dist/catalog.d.ts +0 -43
  135. package/dist/catalog.js +0 -44
  136. package/dist/cli.d.ts +0 -16
  137. package/dist/cli.js +0 -168
  138. package/dist/communication.d.ts +0 -181
  139. package/dist/communication.js +0 -376
  140. package/dist/compute.d.ts +0 -1160
  141. package/dist/compute.js +0 -2272
  142. package/dist/dashboardlib.d.ts +0 -58
  143. package/dist/dashboardlib.js +0 -161
  144. package/dist/db.d.ts +0 -569
  145. package/dist/db.js +0 -1080
  146. package/dist/distribution.d.ts +0 -528
  147. package/dist/distribution.js +0 -810
  148. package/dist/drizzle.config.d.ts +0 -20
  149. package/dist/drizzle.config.js +0 -18
  150. package/dist/edgelandes.d.ts +0 -70
  151. package/dist/edgelandes.host.d.ts +0 -26
  152. package/dist/edgelandes.host.js +0 -1089
  153. package/dist/edgelandes.inproc.d.ts +0 -27
  154. package/dist/edgelandes.inproc.js +0 -952
  155. package/dist/edgelandes.js +0 -1133
  156. package/dist/edgelandes.ninety.d.ts +0 -31
  157. package/dist/edgelandes.ninety.js +0 -174
  158. package/dist/edgelandes.virtual.d.ts +0 -25
  159. package/dist/edgelandes.virtual.js +0 -629
  160. package/dist/edgeplane.d.ts +0 -114
  161. package/dist/edgeplane.js +0 -305
  162. package/dist/examplelocaljob.d.ts +0 -1
  163. package/dist/examplelocaljob.js +0 -14
  164. package/dist/execution.d.ts +0 -529
  165. package/dist/execution.js +0 -760
  166. package/dist/family.d.ts +0 -16
  167. package/dist/family.js +0 -42
  168. package/dist/familyurl.d.ts +0 -21
  169. package/dist/familyurl.js +0 -24
  170. package/dist/format.d.ts +0 -18
  171. package/dist/format.js +0 -59
  172. package/dist/foundation.d.ts +0 -172
  173. package/dist/foundation.js +0 -312
  174. package/dist/index.d.ts +0 -735
  175. package/dist/index.js +0 -1020
  176. package/dist/integration.d.ts +0 -235
  177. package/dist/integration.js +0 -228
  178. package/dist/intelligence.d.ts +0 -93
  179. package/dist/intelligence.js +0 -144
  180. package/dist/isolation.d.ts +0 -128
  181. package/dist/isolation.js +0 -95
  182. package/dist/labels.d.ts +0 -665
  183. package/dist/labels.js +0 -751
  184. package/dist/localauth.d.ts +0 -127
  185. package/dist/localauth.js +0 -413
  186. package/dist/media.d.ts +0 -343
  187. package/dist/media.js +0 -985
  188. package/dist/mesh.d.ts +0 -177
  189. package/dist/mesh.js +0 -468
  190. package/dist/modalityregistry.d.ts +0 -109
  191. package/dist/modalityregistry.js +0 -1386
  192. package/dist/modes.d.ts +0 -358
  193. package/dist/modes.js +0 -133
  194. package/dist/onboardingstate.d.ts +0 -79
  195. package/dist/onboardingstate.js +0 -282
  196. package/dist/orchestrator.d.ts +0 -1338
  197. package/dist/orchestrator.js +0 -4310
  198. package/dist/packager/targetcli.js +0 -4
  199. package/dist/paths.d.ts +0 -2
  200. package/dist/paths.js +0 -14
  201. package/dist/performance.d.ts +0 -415
  202. package/dist/performance.js +0 -826
  203. package/dist/quantum.d.ts +0 -809
  204. package/dist/quantum.js +0 -2072
  205. package/dist/render.d.ts +0 -380
  206. package/dist/render.js +0 -1072
  207. package/dist/runall.d.ts +0 -2
  208. package/dist/runall.js +0 -39
  209. package/dist/runtimeprobe.d.ts +0 -4
  210. package/dist/runtimeprobe.js +0 -8
  211. package/dist/sandbox.d.ts +0 -355
  212. package/dist/sandbox.js +0 -1721
  213. package/dist/sandboxenvprofile.d.ts +0 -29
  214. package/dist/sandboxenvprofile.js +0 -89
  215. package/dist/sandboxprofile.d.ts +0 -137
  216. package/dist/sandboxprofile.js +0 -241
  217. package/dist/sandboxqueue.d.ts +0 -108
  218. package/dist/sandboxqueue.js +0 -201
  219. package/dist/sandboxquota.d.ts +0 -121
  220. package/dist/sandboxquota.js +0 -236
  221. package/dist/scheduler.d.ts +0 -595
  222. package/dist/scheduler.js +0 -1258
  223. package/dist/scriptlanes.d.ts +0 -182
  224. package/dist/scriptlanes.js +0 -660
  225. package/dist/scripts.buildengine.d.ts +0 -1
  226. package/dist/scripts.buildengine.js +0 -39
  227. package/dist/scripts.securitygate.d.ts +0 -1
  228. package/dist/scripts.securitygate.js +0 -68
  229. package/dist/scripts.validateflatnative.d.ts +0 -1
  230. package/dist/scripts.validateflatnative.js +0 -72
  231. package/dist/security.d.ts +0 -500
  232. package/dist/security.js +0 -1169
  233. package/dist/seedcatalog.d.ts +0 -13
  234. package/dist/seedcatalog.js +0 -46
  235. package/dist/server.d.ts +0 -20
  236. package/dist/server.js +0 -53
  237. package/dist/speccatalog.d.ts +0 -31
  238. package/dist/speccatalog.js +0 -163
  239. package/dist/tiers.d.ts +0 -1001
  240. package/dist/tiers.js +0 -2169
  241. package/dist/utils.d.ts +0 -2
  242. package/dist/utils.js +0 -5
  243. package/dist/vaulthandoff.d.ts +0 -141
  244. package/dist/vaulthandoff.js +0 -444
  245. package/dist/virtual.d.ts +0 -640
  246. package/dist/virtual.js +0 -1284
  247. package/dist/virtualcpu.d.ts +0 -315
  248. package/dist/virtualcpu.js +0 -1180
  249. package/dist/virtualgpu.d.ts +0 -344
  250. package/dist/virtualgpu.js +0 -1000
  251. package/dist/virtualization.d.ts +0 -606
  252. package/dist/virtualization.js +0 -1186
  253. package/dist/virtualmemory.d.ts +0 -817
  254. package/dist/virtualmemory.js +0 -1795
  255. package/dist/vite.config.d.ts +0 -3
  256. package/dist/vite.config.js +0 -43
  257. package/dist/vitest.config.d.ts +0 -2
  258. package/dist/vitest.config.js +0 -25
  259. package/dist/webserver.d.ts +0 -166
  260. package/dist/webserver.js +0 -2226
  261. package/dist/workloadlaw.d.ts +0 -133
  262. package/dist/workloadlaw.js +0 -193
  263. package/manifest.json +0 -20
  264. package/media.ts +0 -1337
  265. /package/docs/{architecture.1.8.19.md → architecture1819.md} +0 -0
  266. /package/docs/{architecture.1.8.19.mmd → architecture1819.mmd} +0 -0
  267. /package/docs/{artifactresearch.1.8.9.md → artifactresearch189.md} +0 -0
  268. /package/docs/{batches.1816.to.1820.md → batches1816to1820.md} +0 -0
  269. /package/docs/{brancharchive.2026.08.18.md → brancharchive20260818.md} +0 -0
  270. /package/docs/{containerplatforms.1.8.17.md → containerplatforms1817.md} +0 -0
  271. /package/docs/{e2ugh.engine.md → e2ughengine.md} +0 -0
  272. /package/docs/{flatbuildresearch.1.8.11.md → flatbuildresearch1811.md} +0 -0
  273. /package/docs/{licenseaudit.1.8.12.md → licenseaudit1812.md} +0 -0
  274. /package/docs/{mobileconversionresearch.1.8.10.md → mobileconversionresearch1810.md} +0 -0
  275. /package/docs/{nativeidentityresearch.1.8.11.md → nativeidentityresearch1811.md} +0 -0
  276. /package/docs/{native.wrappers.md → nativewrappers.md} +0 -0
  277. /package/docs/{planning.1.8.18.md → planning1818.md} +0 -0
  278. /package/docs/{planning.1.8.19.md → planning1819.md} +0 -0
  279. /package/docs/{planning.engine.md → planningengine.md} +0 -0
  280. /package/docs/{releasenotes.1.8.12.md → releasenotes1812.md} +0 -0
  281. /package/docs/{releasenotes.1.8.15.md → releasenotes1815.md} +0 -0
  282. /package/docs/{releasenotes.1.8.16.md → releasenotes1816.md} +0 -0
  283. /package/docs/{releasenotes.1.8.17.md → releasenotes1817.md} +0 -0
  284. /package/docs/{releasenotes.1.8.18.md → releasenotes1818.md} +0 -0
  285. /package/docs/{releasenotes.1.8.19.md → releasenotes1819.md} +0 -0
  286. /package/docs/{reorganization.1.8.8.md → reorganization188.md} +0 -0
  287. /package/docs/{reorganization.1.8.9.md → reorganization189.md} +0 -0
  288. /package/docs/{repo.analysis.1.8.21.json → repoanalysis1821.json} +0 -0
  289. /package/docs/{repo.candidates.1.8.21.jsonl → repocandidates1821.jsonl} +0 -0
  290. /package/docs/{repo.research.1.8.16.md → reporesearch1816.md} +0 -0
  291. /package/docs/{repo.research.1.8.21.md → reporesearch1821.md} +0 -0
  292. /package/docs/{repo.selected.1.8.21.json → reposelected1821.json} +0 -0
  293. /package/docs/{repo.synthesis.1.8.21.md → reposynthesis1821.md} +0 -0
  294. /package/docs/{research.1.8.18.isolation.md → research1818isolation.md} +0 -0
  295. /package/docs/{research.1.8.19.virtual.browser.md → research1819virtualbrowser.md} +0 -0
  296. /package/docs/{scanningresearch.1.8.11.md → scanningresearch1811.md} +0 -0
  297. /package/docs/{securityaudit.1.8.7.md → securityaudit187.md} +0 -0
  298. /package/docs/{securityreferences.1.8.11.md → securityreferences1811.md} +0 -0
  299. /package/docs/{securityresearch.1.8.11.md → securityresearch1811.md} +0 -0
  300. /package/docs/{signingresearch.1.8.12.md → signingresearch1812.md} +0 -0
  301. /package/docs/{tauri.glib.risk.1.8.11.md → tauriglibrisk1811.md} +0 -0
  302. /package/docs/{todo.1.8.18.md → todo1818.md} +0 -0
  303. /package/docs/{todo.1.8.19.md → todo1819.md} +0 -0
  304. /package/docs/{toolchainresearch.1.8.9.md → toolchainresearch189.md} +0 -0
  305. /package/docs/{web.duplicatecleanup.md → webduplicatecleanup.md} +0 -0
  306. /package/docs/{web.ideas.md → webideas.md} +0 -0
  307. /package/docs/{workflowimprovements.2026.08.19.md → workflowimprovements20260819.md} +0 -0
@@ -1,8 +0,0 @@
1
- type GlobalSandboxesTableProps = {
2
- /** "api" lists /api/v1/admin/sandboxes; "local" shows the static note. */
3
- mode: 'api' | 'local';
4
- /** bumped by the admin refresh-all action. */
5
- reloadkey: number;
6
- };
7
- export default function GlobalSandboxesTable({ mode, reloadkey }: GlobalSandboxesTableProps): import("react").JSX.Element;
8
- export {};
@@ -1,57 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // Signal & Ledger: the global sandbox table absorbed from dashboard.js —
3
- // db rows (flat or enveloped) for the main node admin; on the static
4
- // edge, the honest note pointing to the user view.
5
- import { useEffect, useState } from 'react';
6
- import { apiresult, asarray, chipclass, fmtdate, pick } from '../../dashboardlib.ts';
7
- import { label, labelfill } from '../../labels.ts';
8
- export default function GlobalSandboxesTable({ mode, reloadkey }) {
9
- const [items, setitems] = useState([]);
10
- const [error, seterror] = useState('');
11
- useEffect(() => {
12
- if (mode !== 'api') {
13
- return undefined;
14
- }
15
- let stopped = false;
16
- (async () => {
17
- try {
18
- const result = await apiresult('/api/v1/admin/sandboxes');
19
- if (stopped) {
20
- return;
21
- }
22
- if (!result.ok) {
23
- seterror(labelfill('dashboard.global.unavailable', { status: String(result.status) }));
24
- return;
25
- }
26
- seterror('');
27
- setitems(asarray(result.body, ['sandboxes', 'items', 'data', 'list']));
28
- }
29
- catch {
30
- if (!stopped) {
31
- seterror(label('dashboard.global.unreachable'));
32
- }
33
- }
34
- })();
35
- return () => {
36
- stopped = true;
37
- };
38
- }, [mode, reloadkey]);
39
- if (mode === 'local') {
40
- return _jsx("p", { className: "dash-empty", children: label('dashboard.global.localNote') });
41
- }
42
- return (_jsxs("div", { children: [_jsx("div", { className: "dash-tablescroll",
43
- // biome-ignore lint/a11y/noNoninteractiveTabindex: deliberate wcag scrollable-region pattern: the tabIndex keeps the overflowing table keyboard-scrollable; the rows are display data and the interactive cells (none here) use real buttons
44
- tabIndex: 0, role: "region", "aria-label": label('dashboard.global.tableAria'), children: _jsxs("table", { children: [items.length === 0 && error === '' && (_jsx("caption", { className: "dash-empty", children: label('dashboard.global.empty') })), _jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { scope: "col", children: label('dashboard.global.colId') }), _jsx("th", { scope: "col", children: label('dashboard.global.colOwner') }), _jsx("th", { scope: "col", children: label('dashboard.global.colState') }), _jsx("th", { scope: "col", children: label('dashboard.global.colSpec') }), _jsx("th", { scope: "col", children: label('dashboard.global.colCreated') }), _jsx("th", { scope: "col", children: label('dashboard.global.colExpires') })] }) }), _jsx("tbody", { children: items.map((record) => {
45
- /* admin rows may be flat db rows or enveloped public views */
46
- const specobj = pick(record, ['spec'], null);
47
- const spec = specobj !== null && typeof specobj === 'object' ? specobj : record;
48
- const owner = pick(record, ['owner', 'username', 'user', 'ownerUsername', 'userid', 'user_id'], '-');
49
- const id = String(pick(record, ['id'], '?'));
50
- return (_jsxs("tr", { children: [_jsx("td", { className: "wrapcell", children: id }), _jsx("td", { children: String(owner) }), _jsx("td", { children: _jsx("span", { className: chipclass(pick(record, ['state'], '?')), children: String(pick(record, ['state'], '?')) }) }), _jsx("td", { className: "wrapcell", children: [
51
- String(pick(spec, ['model'], '?')),
52
- `x${String(pick(spec, ['vcpus'], '?'))}`,
53
- `${String(pick(spec, ['ramgb', 'ramGb', 'ram'], '?'))}gb`,
54
- String(pick(spec, ['gpu'], '?')),
55
- ].join(' ') }), _jsx("td", { children: fmtdate(pick(record, ['createdAt', 'createdat', 'created_at'], null)) }), _jsx("td", { children: fmtdate(pick(record, ['expiresAt', 'expiresat', 'expires_at'], null)) })] }, `${id}|${String(owner)}`));
56
- }) })] }) }), error !== '' && _jsx("p", { className: "dash-panelerror", children: error })] }));
57
- }
@@ -1,8 +0,0 @@
1
- type MeshNodesTableProps = {
2
- /** "api" lists /api/v1/admin/nodes; "local" renders the browser row. */
3
- mode: 'api' | 'local';
4
- /** bumped by the admin refresh-all action. */
5
- reloadkey: number;
6
- };
7
- export default function MeshNodesTable({ mode, reloadkey }: MeshNodesTableProps): import("react").JSX.Element;
8
- export {};
@@ -1,103 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // Signal & Ledger: the mesh nodes table absorbed from dashboard.js —
3
- // ping through the signed /api/v1/mesh/ping route with fallback to the
4
- // browser latency probe; on the static edge, the "this browser" row.
5
- import { useEffect, useState } from 'react';
6
- import { apiresult, asarray, chipclass, fmtdate, pick } from '../../dashboardlib.ts';
7
- import { label, labelfill } from '../../labels.ts';
8
- /**
9
- * pings one mesh node: the primary contract posts /api/v1/mesh/ping (the
10
- * server-side signed mesh); when the node does not expose it the browser
11
- * falls back to a latency probe of the node health endpoint.
12
- */
13
- async function meshping(url) {
14
- try {
15
- const post = await apiresult('/api/v1/mesh/ping', {
16
- method: 'POST',
17
- body: JSON.stringify({ url }),
18
- });
19
- if (post.ok) {
20
- const rtt = pick(post.body, ['rttMs', 'rtt', 'latencyMs', 'latency'], null);
21
- return rtt !== null
22
- ? labelfill('dashboard.mesh.pongMesh', { rtt: String(rtt) })
23
- : label('dashboard.mesh.pongMeshPlain');
24
- }
25
- }
26
- catch {
27
- /* fall through to the client probe */
28
- }
29
- try {
30
- const controller = new AbortController();
31
- const timer = setTimeout(() => {
32
- controller.abort();
33
- }, 4000);
34
- const started = performance.now();
35
- await fetch(`${String(url).replace(/\/+$/, '')}/api/v1/health`, {
36
- mode: 'no-cors',
37
- signal: controller.signal,
38
- });
39
- clearTimeout(timer);
40
- return labelfill('dashboard.mesh.pongProbe', {
41
- ms: String(Math.max(1, Math.round(performance.now() - started))),
42
- });
43
- }
44
- catch {
45
- return label('dashboard.mesh.unreachable');
46
- }
47
- }
48
- export default function MeshNodesTable({ mode, reloadkey }) {
49
- const [nodes, setnodes] = useState([]);
50
- const [error, seterror] = useState('');
51
- const [pings, setpings] = useState({});
52
- useEffect(() => {
53
- if (mode !== 'api') {
54
- return undefined;
55
- }
56
- let stopped = false;
57
- (async () => {
58
- try {
59
- const result = await apiresult('/api/v1/admin/nodes');
60
- if (stopped) {
61
- return;
62
- }
63
- if (!result.ok) {
64
- setnodes([]);
65
- seterror(labelfill('dashboard.mesh.nodeUnavailable', { status: String(result.status) }));
66
- return;
67
- }
68
- seterror('');
69
- setnodes(asarray(result.body, ['nodes', 'items', 'data', 'list']));
70
- }
71
- catch {
72
- if (!stopped) {
73
- seterror(label('dashboard.mesh.nodesUnreachable'));
74
- }
75
- }
76
- })();
77
- return () => {
78
- stopped = true;
79
- };
80
- }, [mode, reloadkey]);
81
- /** runs one ping and paints the result cell beside the button. */
82
- function runping(url) {
83
- setpings((previous) => ({
84
- ...previous,
85
- [url]: { busy: true, result: label('dashboard.mesh.pinging') },
86
- }));
87
- void meshping(url).then((result) => {
88
- setpings((previous) => ({ ...previous, [url]: { busy: false, result } }));
89
- });
90
- }
91
- return (_jsxs("div", { children: [_jsx("p", { className: "dash-statusnote", children: label('dashboard.mesh.pollNote') }), _jsx("div", { className: "dash-tablescroll",
92
- // biome-ignore lint/a11y/noNoninteractiveTabindex: deliberate wcag scrollable-region pattern: the tabIndex keeps the overflowing table keyboard-scrollable; the interactive cells are real buttons, the region itself only scrolls
93
- tabIndex: 0, role: "region", "aria-label": label('dashboard.mesh.tableAria'), children: _jsxs("table", { children: [mode === 'api' && nodes.length === 0 && error === '' && (_jsx("caption", { className: "dash-empty", children: label('dashboard.mesh.empty') })), _jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { scope: "col", children: label('dashboard.mesh.colUrl') }), _jsx("th", { scope: "col", children: label('dashboard.mesh.colRegion') }), _jsx("th", { scope: "col", children: label('dashboard.mesh.colStatus') }), _jsx("th", { scope: "col", children: label('dashboard.mesh.colHeartbeat') }), _jsx("th", { scope: "col", children: label('dashboard.mesh.colPing') })] }) }), _jsx("tbody", { children: mode === 'local' ? (_jsxs("tr", { children: [_jsx("td", { children: label('dashboard.mesh.localNode') }), _jsx("td", { children: label('dashboard.mesh.localRegion') }), _jsx("td", { children: label('dashboard.mesh.localStatus') }), _jsx("td", { children: label('dashboard.mesh.na') })] })) : (nodes.map((node) => {
94
- const url = String(pick(node, ['url', 'endpoint', 'address', 'host'], '?'));
95
- const region = String(pick(node, ['region', 'location', 'zone'], '-'));
96
- const status = String(pick(node, ['status', 'state'], '?'));
97
- const heartbeat = pick(node, ['lastHeartbeat', 'lastHeartbeatAt', 'lastSeen', 'last_heartbeat'], null);
98
- const pingstate = pings[url];
99
- return (_jsxs("tr", { children: [_jsx("td", { className: "wrapcell", children: url }), _jsx("td", { children: region }), _jsx("td", { children: _jsx("span", { className: chipclass(status), children: status }) }), _jsx("td", { children: fmtdate(heartbeat) }), _jsxs("td", { children: [_jsx("button", { type: "button", className: "dash-btn mini", "aria-label": labelfill('dashboard.mesh.pingAria', { url }), "aria-busy": pingstate?.busy === true ? 'true' : undefined, disabled: pingstate?.busy === true, onClick: () => {
100
- runping(url);
101
- }, children: label('dashboard.mesh.ping') }), ' ', _jsx("span", { className: "wrapcell", role: "status", "aria-live": "polite", children: pingstate === undefined ? label('dashboard.mesh.nopong') : pingstate.result })] })] }, url));
102
- })) })] }) }), error !== '' && _jsx("p", { className: "dash-panelerror", children: error })] }));
103
- }
@@ -1,10 +0,0 @@
1
- type SandboxListProps = {
2
- /** "api" polls the shelf endpoint; "local" renders the sessionStorage shelf. */
3
- mode: 'api' | 'local';
4
- /** bumped by the orchestrator to force a skeleton reload. */
5
- reloadkey: number;
6
- /** false while the session bootstrap runs (avoids a premature 401). */
7
- ready: boolean;
8
- };
9
- export default function SandboxList({ mode, reloadkey, ready }: SandboxListProps): import("react").JSX.Element;
10
- export {};
@@ -1,163 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // Signal & Ledger: the sandbox list absorbed from dashboard.js — state
3
- // chips, skeletons, 30 s refresh, open/delete actions (api) and stop
4
- // (browser-local engine).
5
- import { useCallback, useEffect, useState } from 'react';
6
- import { Link } from 'wouter';
7
- import { apiresult, asarray, chipclass, errormessage, fmtdate, pick, readlocalsandboxes, writelocalsandboxes, } from '../../dashboardlib.ts';
8
- import { label, labelfill } from '../../labels.ts';
9
- /** truncates one sandbox id for display (the full id stays in the links). */
10
- function shortid(id) {
11
- return id.slice(0, 13) + (id.length > 13 ? '...' : '');
12
- }
13
- export default function SandboxList({ mode, reloadkey, ready }) {
14
- const [loading, setloading] = useState(true);
15
- const [items, setitems] = useState([]);
16
- const [error, seterror] = useState('');
17
- const [notlive, setnotlive] = useState(false);
18
- const [deleting, setdeleting] = useState(null);
19
- const [locals, setlocals] = useState([]);
20
- /** loads the authenticated user's shelf exactly like the original page. */
21
- const load = useCallback(async (showskeleton) => {
22
- if (showskeleton) {
23
- setloading(true);
24
- setitems([]);
25
- }
26
- let result;
27
- try {
28
- result = await apiresult('/api/v1/sandboxes');
29
- }
30
- catch {
31
- setloading(false);
32
- seterror(label('dashboard.list.unreachable'));
33
- return;
34
- }
35
- if (result.status === 401 || result.status === 403) {
36
- setloading(false);
37
- seterror(label('dashboard.list.sessionExpired'));
38
- return;
39
- }
40
- setloading(false);
41
- seterror('');
42
- if (result.status === 404) {
43
- /* the list endpoint is not live on this node yet (v7 rollout) */
44
- setitems([]);
45
- setnotlive(true);
46
- return;
47
- }
48
- setnotlive(false);
49
- const rows = asarray(result.body, ['sandboxes', 'items', 'data', 'list']);
50
- setitems(rows);
51
- }, []);
52
- useEffect(() => {
53
- if (!ready) {
54
- return undefined;
55
- }
56
- if (mode === 'local') {
57
- setloading(false);
58
- seterror('');
59
- setlocals(readlocalsandboxes());
60
- return;
61
- }
62
- void load(true);
63
- }, [mode, reloadkey, ready, load]);
64
- /* the 30 s shelf poll: only while the tab is visible (api mode). */
65
- useEffect(() => {
66
- if (mode !== 'api' || !ready) {
67
- return undefined;
68
- }
69
- const timer = setInterval(() => {
70
- if (document.visibilityState !== 'visible') {
71
- return;
72
- }
73
- void load(false);
74
- }, 30000);
75
- return () => clearInterval(timer);
76
- }, [mode, ready, load]);
77
- /** deletes one sandbox (the manual purge of the shelf contract). */
78
- async function destroy(id) {
79
- setdeleting(id);
80
- try {
81
- const result = await apiresult(`/api/v1/sandboxes/${encodeURIComponent(id)}`, {
82
- method: 'DELETE',
83
- });
84
- if (result.ok) {
85
- await load(true);
86
- }
87
- else {
88
- seterror(errormessage(result, labelfill('dashboard.list.deleteFailed', { status: String(result.status) })));
89
- }
90
- }
91
- catch {
92
- seterror(label('dashboard.list.deleteUnreachable'));
93
- }
94
- setdeleting(null);
95
- }
96
- /** stops one browser-local sandbox (removes it from the shelf). */
97
- function stop(id) {
98
- const remaining = readlocalsandboxes().filter((entry) => entry.id !== id);
99
- writelocalsandboxes(remaining);
100
- setlocals(remaining);
101
- }
102
- const emptyvisible = !loading && error === '' && (mode === 'local' ? locals.length === 0 : items.length === 0);
103
- const listvisible = mode === 'local' ? locals.length > 0 : items.length > 0 && !loading;
104
- return (_jsxs("div", { children: [_jsx("h3", { children: label('dashboard.list.title') }), loading && (_jsxs("div", { "aria-hidden": "true", children: [_jsx("div", { className: "dash-skeleton" }), _jsx("div", { className: "dash-skeleton", style: { width: '88%' } }), _jsx("div", { className: "dash-skeleton", style: { width: '70%' } })] })), listvisible && (_jsx("ul", { className: "dash-boxlist", "aria-live": "polite", "aria-label": label('dashboard.list.aria'), children: mode === 'local'
105
- ? locals.map((record) => {
106
- const spectext = [
107
- record.spec.model,
108
- labelfill('dashboard.list.specVcpus', {
109
- vcpus: String(record.spec.vcpus),
110
- }),
111
- labelfill('dashboard.list.specRam', { ram: String(record.spec.ramgb) }),
112
- record.spec.gpu,
113
- record.spec.mig && record.spec.mig !== 'off'
114
- ? labelfill('dashboard.list.specMig', { mig: record.spec.mig })
115
- : '',
116
- ]
117
- .filter(Boolean)
118
- .join(' / ');
119
- return (_jsxs("li", { children: [_jsxs("div", { className: "rowtop", children: [_jsx("span", { className: "id", children: shortid(record.id) }), _jsx("span", { className: chipclass(record.state ?? 'created'), children: record.state ?? 'created' }), _jsx("span", { className: "rowactions", children: _jsx("button", { type: "button", className: "danger mini", "aria-label": labelfill('dashboard.list.stopAria', { id: record.id }), onClick: () => stop(record.id), children: label('dashboard.list.stop') }) })] }), _jsx("span", { className: "specs", children: spectext }), _jsx("span", { className: "meta", children: labelfill('dashboard.list.metaCreated', {
120
- date: fmtdate(record.createdat),
121
- }) })] }, record.id));
122
- })
123
- : items.map((record) => {
124
- const id = String(pick(record, ['id'], ''));
125
- const state = String(pick(record, ['state'], '?'));
126
- const specobj = pick(record, ['spec'], null);
127
- const spec = specobj !== null && typeof specobj === 'object' ? specobj : record;
128
- const spectext = [
129
- String(pick(spec, ['model'], '?')),
130
- labelfill('dashboard.list.specVcpus', {
131
- vcpus: String(pick(spec, ['vcpus'], '?')),
132
- }),
133
- labelfill('dashboard.list.specRam', {
134
- ram: String(pick(spec, ['ramgb', 'ramGb', 'ram'], '?')),
135
- }),
136
- String(pick(spec, ['gpu'], '?')),
137
- labelfill('dashboard.list.specMig', {
138
- mig: String(pick(spec, ['mig'], 'off')),
139
- }),
140
- ].join(' / ');
141
- const files = pick(record, ['files'], null);
142
- const metafrags = [
143
- labelfill('dashboard.list.metaCreated', {
144
- date: fmtdate(pick(record, ['createdAt', 'createdat', 'created_at'], null)),
145
- }),
146
- labelfill('dashboard.list.metaExpires', {
147
- date: fmtdate(pick(record, ['expiresAt', 'expiresat', 'expires_at'], null)),
148
- }),
149
- labelfill('dashboard.list.metaExecs', {
150
- count: String(pick(record, ['execCount', 'execcount'], 0)),
151
- }),
152
- ];
153
- if (files !== null && files !== undefined) {
154
- metafrags.push(labelfill('dashboard.list.metaFiles', { count: String(files) }));
155
- }
156
- const meta = metafrags.join(' / ');
157
- return (_jsxs("li", { children: [_jsxs("div", { className: "rowtop", children: [_jsx("span", { className: "id", children: shortid(id) }), _jsx("span", { className: chipclass(state), children: state }), _jsxs("span", { className: "rowactions", children: [_jsx(Link, { className: "dash-btn mini", href: `/console?sandbox=${encodeURIComponent(id)}`, "aria-label": labelfill('dashboard.list.openAria', { id }), children: label('dashboard.list.open') }), _jsx("button", { type: "button", className: "danger mini", "aria-label": labelfill('dashboard.list.deleteAria', { id }), disabled: deleting === id, onClick: () => {
158
- void destroy(id);
159
- }, children: label('dashboard.list.delete') })] })] }), _jsx("span", { className: "specs", children: spectext }), _jsx("span", { className: "meta", children: meta })] }, id));
160
- }) })), emptyvisible && (_jsxs("p", { className: "dash-empty", children: [notlive
161
- ? label('dashboard.list.emptyNotLive')
162
- : label('dashboard.list.empty'), !notlive && _jsx(Link, { href: "/console", children: label('dashboard.list.consoleLink') }), !notlive && label('dashboard.list.emptyPeriod')] })), error !== '' && _jsx("p", { className: "dash-panelerror", children: error })] }));
163
- }
@@ -1,8 +0,0 @@
1
- type UsersTableProps = {
2
- /** "api" lists /api/v1/admin/users; "local" the browser account registry. */
3
- mode: 'api' | 'local';
4
- /** bumped by the admin refresh-all action. */
5
- reloadkey: number;
6
- };
7
- export default function UsersTable({ mode, reloadkey }: UsersTableProps): import("react").JSX.Element;
8
- export {};
@@ -1,78 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // Signal & Ledger: the users table absorbed from dashboard.js — client-side
3
- // search by username, account fields only (hash and salt never leave the
4
- // api); on the static edge, the browser-local registry.
5
- import { useEffect, useState } from 'react';
6
- import { apiresult, asarray, chipclass, fmtdate, pick } from '../../dashboardlib.ts';
7
- import { label, labelfill } from '../../labels.ts';
8
- import { available, roleof } from '../../localauth.ts';
9
- /** reads the local account names (defensive; the api mode never lands here). */
10
- function localaccountnames() {
11
- try {
12
- const raw = window.localStorage.getItem('saddle_local_users');
13
- const parsed = raw ? JSON.parse(raw) : {};
14
- if (parsed !== null && typeof parsed === 'object') {
15
- return Object.keys(parsed);
16
- }
17
- }
18
- catch {
19
- /* no registry or unreadable storage: the empty table applies */
20
- }
21
- return [];
22
- }
23
- export default function UsersTable({ mode, reloadkey }) {
24
- const [users, setusers] = useState([]);
25
- const [error, seterror] = useState('');
26
- const [query, setquery] = useState('');
27
- useEffect(() => {
28
- if (mode === 'local') {
29
- seterror('');
30
- setusers(available() ? localaccountnames() : []);
31
- return;
32
- }
33
- let stopped = false;
34
- (async () => {
35
- try {
36
- const result = await apiresult('/api/v1/admin/users');
37
- if (stopped) {
38
- return;
39
- }
40
- if (!result.ok) {
41
- seterror(labelfill('dashboard.users.unavailable', { status: String(result.status) }));
42
- return;
43
- }
44
- seterror('');
45
- setusers(asarray(result.body, ['users', 'items', 'data', 'list']));
46
- }
47
- catch {
48
- if (!stopped) {
49
- seterror(label('dashboard.users.unreachable'));
50
- }
51
- }
52
- })();
53
- return () => {
54
- stopped = true;
55
- };
56
- }, [mode, reloadkey]);
57
- const needle = query.trim().toLowerCase();
58
- const rows = users.filter((user) => {
59
- const username = mode === 'local' ? String(user) : String(pick(user, ['username', 'name', 'user'], ''));
60
- return needle === '' || username.toLowerCase().includes(needle);
61
- });
62
- return (_jsxs("div", { children: [_jsxs("div", { className: "dash-field", style: { maxWidth: '340px' }, children: [_jsx("label", { htmlFor: "usersearch", children: label('dashboard.users.searchLabel') }), _jsx("input", { type: "search", id: "usersearch", placeholder: label('dashboard.users.searchPlaceholder'), "aria-label": label('dashboard.users.searchAria'), value: query, onChange: (event) => {
63
- setquery(event.target.value);
64
- } })] }), _jsx("div", { className: "dash-tablescroll",
65
- // biome-ignore lint/a11y/noNoninteractiveTabindex: deliberate wcag scrollable-region pattern: the tabIndex keeps the overflowing table keyboard-scrollable; the rows are display data and the interactive cells (none here) use real buttons
66
- tabIndex: 0, role: "region", "aria-label": label('dashboard.users.tableAria'), children: _jsxs("table", { children: [rows.length === 0 && error === '' && (_jsx("caption", { className: "dash-empty", children: needle === ''
67
- ? mode === 'local'
68
- ? label('dashboard.users.emptyLocal')
69
- : label('dashboard.users.empty')
70
- : labelfill('dashboard.users.noMatch', { needle }) })), _jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { scope: "col", children: label('dashboard.users.colUsername') }), _jsx("th", { scope: "col", children: label('dashboard.users.colRole') }), _jsx("th", { scope: "col", children: label('dashboard.users.colLastLogin') }), _jsx("th", { scope: "col", children: label('dashboard.users.colCreated') })] }) }), _jsx("tbody", { children: mode === 'local'
71
- ? rows.map((name) => (_jsxs("tr", { children: [_jsx("td", { children: String(name) }), _jsx("td", { children: roleof(String(name)) }), _jsx("td", { children: label('dashboard.users.localCell') })] }, String(name))))
72
- : rows.map((user) => {
73
- const username = String(pick(user, ['username', 'name', 'user'], '?'));
74
- const role = String(pick(user, ['role'], 'user'));
75
- /* account fields only: hash and salt keys are ignored */
76
- return (_jsxs("tr", { children: [_jsx("td", { children: username }), _jsx("td", { children: _jsx("span", { className: chipclass(role), children: role }) }), _jsx("td", { children: fmtdate(pick(user, ['lastLoginAt', 'last_login_at', 'lastlogin'], null)) }), _jsx("td", { children: fmtdate(pick(user, ['createdAt', 'created_at', 'createdat'], null)) })] }, username));
77
- }) })] }) }), mode !== 'local' && (_jsx("p", { className: "dash-statusnote", children: label('dashboard.users.hashesNote') })), error !== '' && _jsx("p", { className: "dash-panelerror", children: error })] }));
78
- }
@@ -1,23 +0,0 @@
1
- /**
2
- * entrygate.tsx — the entry gate of the application (the flow law: intro →
3
- * onboarding → the platform). The home anchor mounts it on the "/" route:
4
- * the synchronous first verdict answers from the offline layer (the cache
5
- * mirror) so a returning visitor never flashes, and while the state is
6
- * still unknown the gate renders null — the stage never shows behind the
7
- * gate. An unseen intro replaces the route with /intro; an unseen
8
- * onboarding replaces it with /onboarding; only a visitor that finished the
9
- * flow ever sees the home. The gate only reads — marking the stages seen
10
- * belongs to the pages that show them (onboardingstate.ts is the one
11
- * writer).
12
- */
13
- import { type ReactNode } from 'react';
14
- /**
15
- * The entry gate wrapping the platform home.
16
- *
17
- * @param children the home surface revealed when the flow is through.
18
- * @returns the gated element.
19
- */
20
- export declare function EntryGate({ children }: {
21
- children: ReactNode;
22
- }): ReactNode;
23
- export default EntryGate;
@@ -1,73 +0,0 @@
1
- /**
2
- * entrygate.tsx — the entry gate of the application (the flow law: intro →
3
- * onboarding → the platform). The home anchor mounts it on the "/" route:
4
- * the synchronous first verdict answers from the offline layer (the cache
5
- * mirror) so a returning visitor never flashes, and while the state is
6
- * still unknown the gate renders null — the stage never shows behind the
7
- * gate. An unseen intro replaces the route with /intro; an unseen
8
- * onboarding replaces it with /onboarding; only a visitor that finished the
9
- * flow ever sees the home. The gate only reads — marking the stages seen
10
- * belongs to the pages that show them (onboardingstate.ts is the one
11
- * writer).
12
- */
13
- import { useEffect, useState } from 'react';
14
- import { useLocation } from 'wouter';
15
- import { loadOnboardingState, readOnboardingState, } from '../../onboardingstate.ts';
16
- /**
17
- * Reads the gate verdict from a seen-state snapshot (the flow order: intro
18
- * first, then onboarding, then the home).
19
- *
20
- * @param state the resolved flags.
21
- * @returns true when the visitor finished the flow.
22
- */
23
- function flowthrough(state) {
24
- return state.introseen && state.onboardingseen;
25
- }
26
- /**
27
- * The entry gate wrapping the platform home.
28
- *
29
- * @param children the home surface revealed when the flow is through.
30
- * @returns the gated element.
31
- */
32
- export function EntryGate({ children }) {
33
- // the embedded pass is the bare stage: inside the os window the first-run
34
- // flow belongs to the shell, so the frame lands straight home — the frame
35
- // of a mount never changes, the hooks stay unconditional for the lint
36
- const embedded = typeof window !== 'undefined' && window.self !== window.top;
37
- const [, navigate] = useLocation();
38
- const [phase, setPhase] = useState(() => {
39
- if (embedded)
40
- return 'through';
41
- const known = readOnboardingState();
42
- return known !== null && flowthrough(known) ? 'through' : 'resolving';
43
- });
44
- useEffect(() => {
45
- if (embedded)
46
- return;
47
- // the fast path: the cache already knows a missing stage — replace at once
48
- const known = readOnboardingState();
49
- if (known && !flowthrough(known)) {
50
- if (!known.introseen)
51
- navigate('/intro', { replace: true });
52
- else
53
- navigate('/onboarding', { replace: true });
54
- return;
55
- }
56
- let live = true;
57
- loadOnboardingState().then((state) => {
58
- if (!live)
59
- return;
60
- if (!state.introseen)
61
- navigate('/intro', { replace: true });
62
- else if (!state.onboardingseen)
63
- navigate('/onboarding', { replace: true });
64
- else
65
- setPhase('through');
66
- });
67
- return () => {
68
- live = false;
69
- };
70
- }, [embedded, navigate]);
71
- return phase === 'through' ? children : null;
72
- }
73
- export default EntryGate;
@@ -1,9 +0,0 @@
1
- type Metric = {
2
- value: string;
3
- label: string;
4
- detail: string;
5
- };
6
- export default function MetricStrip({ metrics }: {
7
- metrics: Metric[];
8
- }): import("react").JSX.Element;
9
- export {};
@@ -1,4 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- export default function MetricStrip({ metrics }) {
3
- return (_jsx("div", { className: "metric-strip", children: metrics.map((metric) => (_jsxs("div", { className: "metric", children: [_jsx("span", { className: "metric-value", children: metric.value }), _jsx("span", { className: "metric-label", children: metric.label }), _jsx("span", { className: "metric-detail", children: metric.detail })] }, metric.label))) }));
4
- }
@@ -1 +0,0 @@
1
- export default function RuntimeDiagram(): import("react").JSX.Element;
@@ -1,22 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // Signal & Ledger: the runtime chain of repo, runner and pages as one
3
- // execution model. Page-owned copy of the runtime diagram: lives inside the
4
- // home folder that renders it. The topline states the chain it draws — no
5
- // boot timer, no live indicator: the diagram is the model, never a claim
6
- // that a runner is running. the copy rides the label store (labels.ts).
7
- import { ArrowRightRegular as ArrowRight, DatabaseRegular as Database, BranchForkRegular as GitBranch, GlobeRegular as Globe2, ServerRegular as Server, } from '@fluentui/react-icons';
8
- import { label } from '../../labels.ts';
9
- /** the four nodes of the chain: the icon and the tone stay data, the words
10
- * ride the store. */
11
- const nodes = [
12
- { icon: GitBranch, labelkey: 'home.diagram.repo', detailkey: 'home.diagram.repoDetail', tone: 'ink' },
13
- { icon: Server, labelkey: 'home.diagram.runner', detailkey: 'home.diagram.runnerDetail', tone: 'ember' },
14
- { icon: Database, labelkey: 'home.diagram.memory', detailkey: 'home.diagram.memoryDetail', tone: 'blue' },
15
- { icon: Globe2, labelkey: 'home.diagram.surface', detailkey: 'home.diagram.surfaceDetail', tone: 'sage' },
16
- ];
17
- export default function RuntimeDiagram() {
18
- return (_jsxs("div", { className: "runtime-diagram", role: "group", "aria-label": label('home.diagram.aria'), children: [_jsxs("div", { className: "diagram-topline", children: [_jsx("span", { children: label('home.diagram.topline') }), _jsx("span", { children: label('home.diagram.chain') })] }), _jsx("div", { className: "diagram-nodes", children: nodes.map((node, index) => {
19
- const Icon = node.icon;
20
- return (_jsxs("div", { className: "diagram-node-wrap", children: [_jsxs("div", { className: `diagram-node tone-${node.tone}`, children: [_jsx(Icon, { fontSize: 19, strokeWidth: 1.7 }), _jsxs("div", { children: [_jsx("strong", { children: label(node.labelkey) }), _jsx("small", { children: label(node.detailkey) })] })] }), index < nodes.length - 1 && _jsx(ArrowRight, { className: "diagram-arrow", fontSize: 18 })] }, label(node.labelkey)));
21
- }) }), _jsxs("div", { className: "diagram-footer", children: [_jsxs("span", { children: [label('home.diagram.usageFlag'), _jsx("b", { children: label('home.diagram.usageFlagValue') })] }), _jsxs("span", { children: [label('home.diagram.latencyBudget'), _jsx("b", { children: label('home.diagram.latencyBudgetValue') })] })] })] }));
22
- }
@@ -1,19 +0,0 @@
1
- /**
2
- * only same-origin page-relative targets are honored; absolute urls,
3
- * protocol relative (//host), backslash (\host), scheme (javascript:,
4
- * data:), control characters and path traversal are all rejected.
5
- * targets stay page-relative (no leading slash) so the redirect works
6
- * both on the self-hosted node (/, /login) and inside sub-path static
7
- * hosting such as github pages (/saddle/login). the redirect target
8
- * never depends on an unvalidated user value. legacy ".html" suffixes
9
- * from the absorbed static pages map to the spa route of the same name.
10
- *
11
- * @returns the sanitized page-relative target.
12
- */
13
- export declare function safenext(): string;
14
- /**
15
- * the sign-in form: username + password only, generic error messages on
16
- * purpose (no user enumeration, no cause leak), aria-invalid feedback and
17
- * loading states while the submission is in flight.
18
- */
19
- export default function LoginForm(): import("react").JSX.Element;