@fungi.computer/bonsai 0.6.47 → 0.7.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/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @fungi.computer/bonsai
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Changes since 0.6.47:
8
+
9
+ - feat(bonsai): give Bonsai a real Back/Forward history
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+ - Updated dependencies
15
+ - Updated dependencies
16
+ - Updated dependencies
17
+ - Updated dependencies
18
+ - @fungi.computer/agar@0.10.0
19
+ - @fungi.computer/caps@0.11.0
20
+ - @fungi.computer/nacre@0.5.0
21
+ - @fungi.computer/oyster@0.21.0
22
+ - @fungi.computer/trellis@0.11.0
23
+ - @fungi.computer/braid@0.4.9
24
+ - @fungi.computer/workflows-wire@0.4.9
25
+
3
26
  ## 0.6.47
4
27
 
5
28
  ### Patch Changes
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@fungi.computer/bonsai",
3
- "version": "0.6.47",
3
+ "version": "0.7.0",
4
4
  "author": "Levi <levi@technomancy.dev>",
5
5
  "type": "module",
6
6
  "description": "Bonsai: a git platform for many agents working at once, on Workers and Artifacts",
7
7
  "dependencies": {
8
- "@fungi.computer/agar": "0.9.1",
9
- "@fungi.computer/caps": "0.10.8",
8
+ "@fungi.computer/agar": "0.10.0",
9
+ "@fungi.computer/caps": "0.11.0",
10
10
  "@fungi.computer/issues": "0.2.0",
11
- "@fungi.computer/oyster": "0.20.9",
11
+ "@fungi.computer/oyster": "0.21.0",
12
12
  "@fungi.computer/puffball": "0.5.5",
13
13
  "@fungi.computer/sigils": "0.3.1",
14
14
  "@fungi.computer/stipe": "0.1.1",
@@ -29,10 +29,10 @@
29
29
  "@fungi.computer/maosaico": "0.1.2",
30
30
  "@visx/hierarchy": "3.12.0",
31
31
  "@fungi.computer/gills": "0.3.0",
32
- "@fungi.computer/nacre": "0.4.6",
33
- "@fungi.computer/trellis": "0.10.13",
34
- "@fungi.computer/braid": "0.4.8",
35
- "@fungi.computer/workflows-wire": "0.4.8"
32
+ "@fungi.computer/nacre": "0.5.0",
33
+ "@fungi.computer/trellis": "0.11.0",
34
+ "@fungi.computer/braid": "0.4.9",
35
+ "@fungi.computer/workflows-wire": "0.4.9"
36
36
  },
37
37
  "devDependencies": {
38
38
  "playwright": "1.62.1",
@@ -186,6 +186,7 @@
186
186
  "test:shed-terminal": "bash ../../tooling/proof-runner/run-proof.sh node scripts/shed-terminal-proof.mjs",
187
187
  "test:runtime:celld": "CELLD_PLATFORM_CELLD=$(../../tooling/celld-platform/runtime/pinned-celld.sh) node --import ../../tooling/celld-platform/runtime/wrangler-on-celld.mjs scripts/runtime-proof.mjs",
188
188
  "seed:demo": "node --import tsx scripts/seed-demo.mjs",
189
+ "test:history": "bash ../../tooling/proof-runner/run-proof.sh node test/browser/history.browser.mjs",
189
190
  "test:repo-settings": "bash ../../tooling/proof-runner/run-proof.sh node test/browser/repository-settings.browser.mjs"
190
191
  }
191
192
  }
@@ -0,0 +1,149 @@
1
+ /**
2
+ * Bonsai's real router and pages inside the Caps window header, with a host
3
+ * navigation port that behaves like Tourtois: it shows Back and Forward from
4
+ * what Bonsai publishes and sends clicks to Bonsai's handlers.
5
+ */
6
+ import { useRef, useState } from "react";
7
+ import { createRoot } from "react-dom/client";
8
+ import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
9
+ import {
10
+ createCapabilityRegistry,
11
+ type AppBackHandler,
12
+ type AppForwardHandler,
13
+ type AppNavigationState,
14
+ type HostNavigation,
15
+ } from "@fungi.computer/agar";
16
+ import { appMethods } from "@fungi.computer/agar/backend";
17
+ import {
18
+ WindowFrame,
19
+ WindowHeader,
20
+ } from "@fungi.computer/caps/components/window";
21
+ import { repoDetail } from "../../shared/contract.js";
22
+ import { connect } from "../../web/transport.js";
23
+ import { RouterProvider, useRouter } from "../../web/router.js";
24
+ import { HomePage } from "../../web/home-page.js";
25
+ import { RepoPage } from "../../web/pages.js";
26
+ import "@fungi.computer/caps/fonts.css";
27
+ import "../../web/bonsai.css";
28
+
29
+ const name = "koi-pond";
30
+ const live = { connected: true, error: null, fresh: new Set<number>() };
31
+ const detail = repoDetail.parse({
32
+ repo: {
33
+ name,
34
+ description: "A pond for koi",
35
+ parent: null,
36
+ owner: null,
37
+ createdAt: 0,
38
+ lastPushAt: null,
39
+ forks: [],
40
+ openChanges: 0,
41
+ activity: [],
42
+ },
43
+ defaultBranch: "main",
44
+ refs: [],
45
+ cloneUrl: `https://example.test/git/${name}.git`,
46
+ empty: true,
47
+ });
48
+ const client = new QueryClient({
49
+ defaultOptions: { queries: { staleTime: Infinity, retry: false } },
50
+ });
51
+ client.setQueryData(["repo", name], detail);
52
+ client.setQueryData(["events", name], { events: [] });
53
+ client.setQueryData(["changes", name], { changes: [] });
54
+ client.setQueryData(["agents"], { agents: [] });
55
+ const capabilities = createCapabilityRegistry();
56
+ capabilities.provide(appMethods, {
57
+ call: (method) => {
58
+ if (method === "repos.get") return Promise.resolve(detail);
59
+ if (method === "repos.list")
60
+ return Promise.resolve({ repos: [detail.repo] });
61
+ if (method === "activity.list") return Promise.resolve({ events: [] });
62
+ if (method === "changes.list") return Promise.resolve({ changes: [] });
63
+ if (method === "actors.list") return Promise.resolve({ agents: [] });
64
+ if (method === "issues.read")
65
+ return Promise.resolve({ error: "Repository has no commits" });
66
+ return Promise.reject(new Error(`Unexpected fixture method: ${method}`));
67
+ },
68
+ });
69
+ connect({ capabilities });
70
+
71
+ function Page() {
72
+ const { route } = useRouter();
73
+ return (
74
+ <main className="bonsai-page">
75
+ {route.page === "home" ? (
76
+ <HomePage live={live} />
77
+ ) : route.page === "repo" ? (
78
+ <RepoPage key={route.repo} route={route} live={live} />
79
+ ) : (
80
+ <h1>Unexpected page</h1>
81
+ )}
82
+ </main>
83
+ );
84
+ }
85
+
86
+ function Window() {
87
+ const [state, setState] = useState<AppNavigationState>({
88
+ canGoBack: false,
89
+ canGoForward: false,
90
+ });
91
+ const back = useRef<AppBackHandler | undefined>(undefined);
92
+ const forward = useRef<AppForwardHandler | undefined>(undefined);
93
+ const [navigation] = useState<HostNavigation>(() => ({
94
+ publish: (next) => {
95
+ setState(next);
96
+ return Promise.resolve();
97
+ },
98
+ onActivate: () => () => undefined,
99
+ onBack: (handler) => {
100
+ back.current = handler;
101
+ return () => {
102
+ back.current = undefined;
103
+ };
104
+ },
105
+ onForward: (handler) => {
106
+ forward.current = handler;
107
+ return () => {
108
+ forward.current = undefined;
109
+ };
110
+ },
111
+ }));
112
+ return (
113
+ <WindowFrame active>
114
+ <WindowHeader
115
+ title="Bonsai"
116
+ density="compact"
117
+ back={{
118
+ label: "Back in Bonsai",
119
+ disabled: !state.canGoBack,
120
+ onBack: () => {
121
+ void back.current?.();
122
+ },
123
+ }}
124
+ forward={{
125
+ label: "Forward in Bonsai",
126
+ disabled: !state.canGoForward,
127
+ onForward: () => {
128
+ void forward.current?.();
129
+ },
130
+ }}
131
+ />
132
+ <div className="relative [contain:paint]">
133
+ <div className="caps-app-canvas bonsai-shell">
134
+ <RouterProvider navigation={navigation}>
135
+ <Page />
136
+ </RouterProvider>
137
+ </div>
138
+ </div>
139
+ </WindowFrame>
140
+ );
141
+ }
142
+
143
+ const root = document.getElementById("root");
144
+ if (!root) throw new Error("History fixture root missing");
145
+ createRoot(root).render(
146
+ <QueryClientProvider client={client}>
147
+ <Window />
148
+ </QueryClientProvider>,
149
+ );
@@ -0,0 +1,102 @@
1
+ import {
2
+ repositoryBrowserFixture,
3
+ repositoryBrowserPage,
4
+ } from "./repository-browser.fixture.mjs";
5
+ import assert from "node:assert/strict";
6
+ import console from "node:console";
7
+ import { fileURLToPath, URL } from "node:url";
8
+
9
+ const output = new URL(
10
+ "../../../../.botanical/shots/bonsai-history/",
11
+ import.meta.url,
12
+ );
13
+ const fixture = await repositoryBrowserFixture(output);
14
+ const { browser, origin } = fixture;
15
+ try {
16
+ for (const [width, height] of [
17
+ [1280, 860],
18
+ [390, 844],
19
+ ]) {
20
+ const { page, errors } = await repositoryBrowserPage(
21
+ browser,
22
+ width,
23
+ "light",
24
+ );
25
+ await page.setViewportSize({ width, height });
26
+ await page.goto(origin + "test/browser/history.html");
27
+ const back = page.getByRole("button", { name: "Back in Bonsai" });
28
+ const forward = page.getByRole("button", { name: "Forward in Bonsai" });
29
+ const nav = page.getByRole("navigation", { name: "Repository sections" });
30
+ const enabled = async () => [
31
+ await back.isEnabled(),
32
+ await forward.isEnabled(),
33
+ ];
34
+ // The window reads Bonsai's published state a beat after the page moves.
35
+ const settled = async (expected) => {
36
+ for (let attempt = 0; attempt < 50; attempt++) {
37
+ if ((await enabled()).join() === expected.join()) return;
38
+ await page.waitForTimeout(100);
39
+ }
40
+ assert.deepEqual(await enabled(), expected);
41
+ };
42
+ const heading = () => page.getByRole("heading", { level: 1 }).textContent();
43
+
44
+ // Page 1 is Home: nothing to go back or forward to.
45
+ await page.getByRole("heading", { name: "Repositories" }).waitFor();
46
+ await settled([false, false]);
47
+
48
+ // Three clicks into three more pages: repository, Code, Settings.
49
+ await page
50
+ .getByRole("link", { name: /koi-pond/ })
51
+ .first()
52
+ .click();
53
+ await nav.getByRole("link", { name: "Overview", exact: true }).waitFor();
54
+ await settled([true, false]);
55
+ await nav.getByRole("link", { name: "Code", exact: true }).click();
56
+ await nav
57
+ .getByRole("link", { name: "Code", exact: true })
58
+ .and(page.locator('[aria-current="page"]'))
59
+ .waitFor();
60
+ await nav.getByRole("link", { name: "Settings", exact: true }).click();
61
+ await page.getByRole("heading", { name: "Repository settings" }).waitFor();
62
+ await settled([true, false]);
63
+
64
+ // Back twice lands on Overview; Back and Forward are both live.
65
+ await back.click();
66
+ await nav
67
+ .getByRole("link", { name: "Code", exact: true })
68
+ .and(page.locator('[aria-current="page"]'))
69
+ .waitFor();
70
+ await back.click();
71
+ await nav
72
+ .getByRole("link", { name: "Overview", exact: true })
73
+ .and(page.locator('[aria-current="page"]'))
74
+ .waitFor();
75
+ await settled([true, true]);
76
+ await page.screenshot({
77
+ path: fileURLToPath(
78
+ new URL(`${width}x${height}-both-enabled.png`, output),
79
+ ),
80
+ });
81
+
82
+ // Forward once lands on Code again.
83
+ await forward.click();
84
+ await nav
85
+ .getByRole("link", { name: "Code", exact: true })
86
+ .and(page.locator('[aria-current="page"]'))
87
+ .waitFor();
88
+ await settled([true, true]);
89
+
90
+ // Back to the first page disables Back; Forward walks to the end.
91
+ await back.click();
92
+ await back.click();
93
+ await page.getByRole("heading", { name: "Repositories" }).waitFor();
94
+ await settled([false, true]);
95
+ assert.equal(await heading(), "Repositories");
96
+ assert.deepEqual(errors, []);
97
+ await page.close();
98
+ }
99
+ console.log("Bonsai history browser proof passed");
100
+ } finally {
101
+ await fixture.close();
102
+ }
@@ -0,0 +1,10 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
5
+ </head>
6
+ <body>
7
+ <div id="root"></div>
8
+ <script type="module" src="./history-fixture.tsx"></script>
9
+ </body>
10
+ </html>
@@ -0,0 +1,174 @@
1
+ // @vitest-environment jsdom
2
+ import { afterEach, beforeEach, expect, it, vi } from "vitest";
3
+ import { act, createElement, Fragment } from "react";
4
+ import { createRoot } from "react-dom/client";
5
+ import type {
6
+ AppBackHandler,
7
+ AppForwardHandler,
8
+ AppNavigationState,
9
+ HostNavigation,
10
+ } from "@fungi.computer/agar";
11
+ import {
12
+ href,
13
+ Link,
14
+ RouterProvider,
15
+ useRouter,
16
+ type Route,
17
+ } from "../web/router.js";
18
+
19
+ type Host = HostNavigation & {
20
+ reports: AppNavigationState[];
21
+ back(): Promise<boolean>;
22
+ forward(): Promise<boolean>;
23
+ };
24
+
25
+ function fakeHost(): Host {
26
+ const reports: AppNavigationState[] = [];
27
+ let onBack: AppBackHandler = () => false;
28
+ let onForward: AppForwardHandler = () => false;
29
+ return {
30
+ reports,
31
+ publish: (state) => {
32
+ reports.push(state);
33
+ return Promise.resolve();
34
+ },
35
+ onBack: (handler) => {
36
+ onBack = handler;
37
+ return () => undefined;
38
+ },
39
+ onForward: (handler) => {
40
+ onForward = handler;
41
+ return () => undefined;
42
+ },
43
+ onActivate: () => () => undefined,
44
+ back: () => Promise.resolve(onBack()),
45
+ forward: () => Promise.resolve(onForward()),
46
+ };
47
+ }
48
+
49
+ const repo = (
50
+ tab: "overview" | "code" | "settings",
51
+ ref: string | null = null,
52
+ ): Route => ({
53
+ page: "repo",
54
+ repo: "koi-pond",
55
+ tab,
56
+ ref,
57
+ path: "",
58
+ file: null,
59
+ });
60
+
61
+ let container: HTMLDivElement;
62
+ let root: ReturnType<typeof createRoot>;
63
+ let host: Host;
64
+ let router: ReturnType<typeof useRouter>;
65
+
66
+ function Probe() {
67
+ router = useRouter();
68
+ const { route } = router;
69
+ return createElement(
70
+ "output",
71
+ null,
72
+ route.page === "repo" ? `repo:${route.tab}:${route.ref ?? ""}` : route.page,
73
+ );
74
+ }
75
+
76
+ beforeEach(() => {
77
+ vi.stubGlobal("scrollTo", vi.fn());
78
+ Object.assign(globalThis, { IS_REACT_ACT_ENVIRONMENT: true });
79
+ host = fakeHost();
80
+ container = document.createElement("div");
81
+ document.body.appendChild(container);
82
+ root = createRoot(container);
83
+ act(() => {
84
+ root.render(
85
+ createElement(RouterProvider, {
86
+ navigation: host,
87
+ children: createElement(
88
+ Fragment,
89
+ null,
90
+ createElement(Probe),
91
+ createElement(Link, { to: href(repo("code")) }, "open code"),
92
+ ),
93
+ }),
94
+ );
95
+ });
96
+ });
97
+
98
+ afterEach(() => {
99
+ act(() => {
100
+ root.unmount();
101
+ });
102
+ container.remove();
103
+ vi.unstubAllGlobals();
104
+ });
105
+
106
+ const shown = () => container.querySelector("output")?.textContent;
107
+ const last = () => host.reports[host.reports.length - 1];
108
+ const step = async (move: () => Promise<boolean>) => {
109
+ let moved = false;
110
+ await act(async () => {
111
+ moved = await move();
112
+ });
113
+ return moved;
114
+ };
115
+ const go = (to: string, replace = false) => {
116
+ act(() => {
117
+ router.go(to, { replace });
118
+ });
119
+ };
120
+
121
+ it("starts on home with Back and Forward disabled; Back is the host's", async () => {
122
+ expect(shown()).toBe("home");
123
+ expect(last()).toMatchObject({ canGoBack: false, canGoForward: false });
124
+ expect(await step(() => host.back())).toBe(false);
125
+ expect(await step(() => host.forward())).toBe(false);
126
+ });
127
+
128
+ it("walks three pages back twice and forward once", async () => {
129
+ go(href(repo("overview")));
130
+ go(href(repo("code")));
131
+ go(href({ page: "change", repo: "koi-pond", number: 7 }));
132
+ expect(shown()).toBe("change");
133
+ expect(last()).toMatchObject({ canGoBack: true, canGoForward: false });
134
+
135
+ expect(await step(() => host.back())).toBe(true);
136
+ expect(shown()).toBe("repo:code:");
137
+ expect(await step(() => host.back())).toBe(true);
138
+ expect(shown()).toBe("repo:overview:");
139
+ expect(last()).toMatchObject({ canGoBack: true, canGoForward: true });
140
+
141
+ expect(await step(() => host.forward())).toBe(true);
142
+ expect(shown()).toBe("repo:code:");
143
+ expect(last()).toMatchObject({ canGoBack: true, canGoForward: true });
144
+ });
145
+
146
+ it("a new page drops Forward, and the same page adds no step", async () => {
147
+ go(href(repo("overview")));
148
+ go(href(repo("overview")));
149
+ await step(() => host.back());
150
+ expect(shown()).toBe("home");
151
+ expect(last()).toMatchObject({ canGoBack: false, canGoForward: true });
152
+ go(href(repo("code")));
153
+ expect(last()).toMatchObject({ canGoBack: true, canGoForward: false });
154
+ });
155
+
156
+ it("a link click pushes", () => {
157
+ const link = container.querySelector("a");
158
+ act(() => {
159
+ link?.dispatchEvent(
160
+ new MouseEvent("click", { bubbles: true, cancelable: true, button: 0 }),
161
+ );
162
+ });
163
+ expect(shown()).toBe("repo:code:");
164
+ expect(last()).toMatchObject({ canGoBack: true });
165
+ });
166
+
167
+ it("replace refines the page without adding a step", async () => {
168
+ go(href(repo("overview")));
169
+ go(href(repo("overview", "feature")), true);
170
+ expect(shown()).toBe("repo:overview:feature");
171
+ expect(await step(() => host.back())).toBe(true);
172
+ expect(shown()).toBe("home");
173
+ expect(await step(() => host.back())).toBe(false);
174
+ });
package/web/main.tsx CHANGED
@@ -71,7 +71,7 @@ mountApp(
71
71
  connect(app);
72
72
  return (
73
73
  <StrictMode>
74
- <RouterProvider>
74
+ <RouterProvider navigation={app?.window.navigation}>
75
75
  <Shell app={app} />
76
76
  </RouterProvider>
77
77
  </StrictMode>
@@ -181,6 +181,7 @@ export function RepoNavigation({
181
181
  path: "",
182
182
  file: null,
183
183
  }),
184
+ { replace: true },
184
185
  );
185
186
  }}
186
187
  >
@@ -24,7 +24,7 @@ export function RepoSettings({ repo }: { repo: string }) {
24
24
  onSuccess: async () => {
25
25
  client.removeQueries({ queryKey: ["repo", repo] });
26
26
  await client.invalidateQueries({ queryKey: ["repos"] });
27
- go("/");
27
+ go("/", { replace: true });
28
28
  },
29
29
  });
30
30
  const failure = deletion.error?.message;
package/web/router.tsx CHANGED
@@ -1,13 +1,16 @@
1
1
  /**
2
- * App navigation stays in memory. Numbered Changes also accept a hash link
3
- * when the frame opens, or when its hash changes.
2
+ * App navigation stays in memory, in an App history. Numbered Changes also
3
+ * accept a hash link when the frame opens, or when its hash changes.
4
4
  */
5
5
  import * as z from "zod";
6
+ import { createAppHistory, type HostNavigation } from "@fungi.computer/agar";
7
+ import { useHostNavigation } from "@fungi.computer/agar/react";
6
8
  import {
7
9
  createContext,
8
10
  useContext,
9
11
  useEffect,
10
12
  useState,
13
+ useSyncExternalStore,
11
14
  type AnchorHTMLAttributes,
12
15
  type MouseEvent,
13
16
  type ReactNode,
@@ -89,29 +92,67 @@ export function href(route: Route): string {
89
92
  return `/${encodeURIComponent(route.repo)}${query ? `?${query}` : ""}`;
90
93
  }
91
94
 
92
- export type RouterValue = Readonly<{ route: Route; go: (to: string) => void }>;
95
+ export type GoOptions = Readonly<{
96
+ /** Swap the current page instead of adding a history step. */
97
+ replace?: boolean;
98
+ }>;
99
+
100
+ export type RouterValue = Readonly<{
101
+ route: Route;
102
+ go: (to: string, options?: GoOptions) => void;
103
+ }>;
93
104
 
94
105
  const RouterContext = createContext<RouterValue | null>(null);
95
106
 
96
- export function RouterProvider({ children }: { children: ReactNode }) {
97
- const [path, setPath] = useState(() =>
98
- location.hash.startsWith("#change/") ? location.hash : "/",
107
+ const startPath = (): string =>
108
+ location.hash.startsWith("#change/") ? location.hash : "/";
109
+
110
+ /**
111
+ * Every page move is a history entry: the Route's address. `go` pushes;
112
+ * `go(to, { replace: true })` swaps the current entry for changes that are
113
+ * the same page refined (a branch choice) or a page that no longer exists
114
+ * (a deleted repository). Moving to the page already shown does nothing.
115
+ * The window's Back and Forward walk this history; Back from the first page
116
+ * is left to the host.
117
+ */
118
+ export function RouterProvider({
119
+ navigation,
120
+ children,
121
+ }: {
122
+ navigation?: HostNavigation | null | undefined;
123
+ children: ReactNode;
124
+ }) {
125
+ const [history] = useState(() => createAppHistory(startPath()));
126
+ const { current, canGoBack, canGoForward } = useSyncExternalStore(
127
+ (listener) => history.subscribe(listener),
128
+ () => history.get(),
99
129
  );
100
130
  useEffect(() => {
101
131
  const changed = () => {
102
- setPath(location.hash.startsWith("#change/") ? location.hash : "/");
132
+ const next = startPath();
133
+ if (next !== history.get().current) history.push(next);
103
134
  };
104
135
  window.addEventListener("hashchange", changed);
105
136
  return () => {
106
137
  window.removeEventListener("hashchange", changed);
107
138
  };
108
- }, []);
109
- const go = (to: string) => {
110
- setPath(to);
139
+ }, [history]);
140
+ useEffect(() => {
111
141
  scrollTo({ top: 0 });
142
+ }, [current]);
143
+ useHostNavigation(navigation, {
144
+ canGoBack,
145
+ canGoForward,
146
+ onBack: () => history.back(),
147
+ onForward: () => history.forward(),
148
+ });
149
+ const go = (to: string, options?: GoOptions) => {
150
+ if (to === history.get().current) return;
151
+ if (options?.replace) history.replace(to);
152
+ else history.push(to);
112
153
  };
113
154
  return (
114
- <RouterContext.Provider value={{ route: parseRoute(path), go }}>
155
+ <RouterContext.Provider value={{ route: parseRoute(current), go }}>
115
156
  {children}
116
157
  </RouterContext.Provider>
117
158
  );