markshelf 0.2.2 → 0.2.3
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/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +6 -6
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/server/app/_global-error/page/build-manifest.json +3 -3
- package/.next/standalone/.next/server/app/_global-error/page.js +3 -3
- package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page/build-manifest.json +3 -3
- package/.next/standalone/.next/server/app/_not-found/page.js +3 -3
- package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/api/asset/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/diff/route.js +2 -2
- package/.next/standalone/.next/server/app/api/diff/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/file/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/graph/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/history/route.js +2 -2
- package/.next/standalone/.next/server/app/api/history/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/search/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/timeline/route.js +2 -2
- package/.next/standalone/.next/server/app/api/timeline/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/tree/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +3 -3
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/page/build-manifest.json +3 -3
- package/.next/standalone/.next/server/app/page.js +3 -3
- package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0-_k816._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__01e7zo7._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__04mxfkc._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__04y6-r0._.js +4 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__053gm34._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__09ya8im._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0i.wyss._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0k4icrn._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0op9af~._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0t-.934._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__13vatcq._.js +1 -1
- package/.next/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0m.429v.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__01.l28-._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__01rprsr._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__03ck6d2._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__05fmntc._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0_o.omz._.js → [root-of-the-server]__05tr62g._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0u7hi3-._.js → [root-of-the-server]__086mpiv._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__09qrkq5._.js +4 -4
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0_5115u._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0bb8oda._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0bd.lu~._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__05ar4zx._.js → [root-of-the-server]__0d1c58~._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0f.8h3t._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0f_1wxu._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0iwc7oc._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0j63551._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0j_j_lp._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0n1ij50._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0uzyvey._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__11hul.m._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__13z1ev9._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{node_modules_0m258l0._.js → node_modules_00r~6av._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/node_modules_05l396c._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{node_modules_035nqw0._.js → node_modules_05lp.r.._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules_0d0g.gp._.js → node_modules_070pb23._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules_0uebmgu._.js → node_modules_08o~z._._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules_0~vmgv6._.js → node_modules_0k66hfg._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules_0sxu8tl._.js → node_modules_0kc_w1l._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules_0_lpyzd._.js → node_modules_0m_rzcx._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules_0ub-k6d._.js → node_modules_0~o049i._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_0.jrk~x._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_0ppctuh._.js +19 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_03-z2qq.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_07vh7rm.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0qp4u6g.js +2 -2
- package/.next/standalone/.next/server/middleware-build-manifest.js +6 -6
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/static/chunks/{0-mgdjw03nw5i.js → 00_m52wgaznut.js} +1 -1
- package/.next/standalone/.next/static/chunks/044c~ak~uxs77.js +5 -0
- package/.next/standalone/.next/static/chunks/{0.9a.v2u8pdez.css → 0l2qiktz0q_g..css} +1 -1
- package/.next/{static/chunks/10.v6fb-ptj.a.js → standalone/.next/static/chunks/0mdgmoqrwz~wx.js} +4 -4
- package/.next/standalone/.next/static/chunks/{turbopack-0uufb5vlljeny.js → turbopack-16gy5uwpc4o1_.js} +1 -1
- package/.next/standalone/DEPLOY.md +91 -0
- package/.next/standalone/docker/Dockerfile.demo +55 -0
- package/.next/standalone/docker/Dockerfile.demo.dockerignore +28 -0
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC1-CLI/SPEC1.1-bin-cli.md +1 -1
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC1-CLI/SPEC1.2-Dockerfile.md +1 -1
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC1-CLI/SPEC1.3-basePath.md +1 -1
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC1-CLI/SPEC1.4-/347/222/260/345/242/203/345/244/211/346/225/260.md +1 -1
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC2-/343/202/260/343/203/251/343/203/225/346/217/217/347/224/273/SPEC2.1-graph-api.md +1 -1
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC2-/343/202/260/343/203/251/343/203/225/346/217/217/347/224/273/SPEC2.2-breadthfirst-layout.md +1 -1
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC2-/343/202/260/343/203/251/343/203/225/346/217/217/347/224/273/SPEC2.3-/343/203/252/343/203/263/343/202/257/350/247/243/346/236/220.md +1 -1
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC3-UI/343/202/263/343/203/263/343/203/235/343/203/274/343/203/215/343/203/263/343/203/210/SPEC3.1-PreviewPopup.md +1 -1
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC3-UI/343/202/263/343/203/263/343/203/235/343/203/274/343/203/215/343/203/263/343/203/210/SPEC3.2-TreeView.md +1 -1
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC3-UI/343/202/263/343/203/263/343/203/235/343/203/274/343/203/215/343/203/263/343/203/210/SPEC3.3-TableOfContents.md +2 -1
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC3-UI/343/202/263/343/203/263/343/203/235/343/203/274/343/203/215/343/203/263/343/203/210/SPEC3.4-DetailPanel/343/202/277/343/203/226.md +2 -1
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC3-UI/343/202/263/343/203/263/343/203/235/343/203/274/343/203/215/343/203/263/343/203/210/SPEC3.5-Markdown/343/203/254/343/203/263/343/203/200/343/203/252/343/203/263/343/202/260.md +5 -2
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC3-UI/343/202/263/343/203/263/343/203/235/343/203/274/343/203/215/343/203/263/343/203/210/SPEC3.6-SearchBar.md +2 -2
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC3-UI/343/202/263/343/203/263/343/203/235/343/203/274/343/203/215/343/203/263/343/203/210/SPEC3.7-/343/203/221/343/203/215/343/203/253/343/203/252/343/202/265/343/202/244/343/202/266/343/203/274.md +1 -1
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC3-UI/343/202/263/343/203/263/343/203/235/343/203/274/343/203/215/343/203/263/343/203/210/SPEC3.8-/347/224/273/345/203/217/343/203/227/343/203/254/343/203/223/343/203/245/343/203/274.md +1 -1
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC4-API/SPEC4.1-tree.md +1 -1
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC4-API/SPEC4.2-file.md +1 -1
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC4-API/SPEC4.3-search.md +1 -1
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC4-API/SPEC4.4-watch.md +1 -1
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC4-API/SPEC4.5-history.md +1 -1
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC4-API/SPEC4.6-timeline.md +1 -1
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC4-API/SPEC4.7-diff.md +1 -1
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC4-API/SPEC4.8-asset.md +1 -1
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC5-/346/260/270/347/266/232/345/214/226/README.md +1 -1
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC5-/346/260/270/347/266/232/345/214/226/SPEC5.1-localStorage.md +6 -6
- package/.next/standalone/docs//344/273/225/346/247/230/SPEC5-/346/260/270/347/266/232/345/214/226/SPEC5.2-URL/343/202/257/343/202/250/343/203/252.md +10 -1
- package/.next/standalone/docs//347/224/250/350/252/236/351/233/206/Mermaid.md +5 -0
- package/.next/standalone/docs//350/246/201/344/273/266/345/256/232/347/276/251/REQ4-/343/203/212/343/203/223/343/202/262/343/203/274/343/202/267/343/203/247/343/203/263/REQ4.2-/345/205/261/346/234/211/345/217/257/350/203/275URL.md +8 -0
- package/.next/standalone/docs//350/246/201/346/261/202/345/256/232/347/276/251/R1-/343/203/211/343/202/255/343/203/245/343/203/241/343/203/263/343/203/210/351/226/262/350/246/247/346/200/247/R1.5-/345/205/261/346/234/211/345/217/257/350/203/275URL.md +3 -1
- package/.next/standalone/eslint.config.mjs +55 -0
- package/.next/standalone/fly.preview.toml +33 -0
- package/.next/standalone/fly.toml +38 -0
- package/.next/standalone/loop/progress.md +26 -0
- package/.next/standalone/loop/run-loop.md +51 -0
- package/.next/standalone/node_modules/@next/env/package.json +1 -1
- package/.next/standalone/node_modules/next/dist/build/static-paths/app.js +2 -1
- package/.next/standalone/node_modules/next/dist/build/swc/index.js +1 -1
- package/.next/standalone/node_modules/next/dist/build/utils.js +2 -1
- package/.next/standalone/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +2 -2
- package/.next/standalone/node_modules/next/dist/client/components/router-reducer/set-cache-busting-search-param.js +8 -2
- package/.next/standalone/node_modules/next/dist/client/route-params.js +23 -6
- package/.next/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +13 -13
- package/.next/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +11 -11
- package/.next/standalone/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.prod.js +2 -2
- package/.next/standalone/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +10 -10
- package/.next/standalone/node_modules/next/dist/lib/patch-incorrect-lockfile.js +3 -3
- package/.next/standalone/node_modules/next/dist/server/app-render/action-handler.js +3 -6
- package/.next/standalone/node_modules/next/dist/server/app-render/app-render.js +62 -9
- package/.next/standalone/node_modules/next/dist/server/app-render/collect-segment-data.js +16 -0
- package/.next/standalone/node_modules/next/dist/server/app-render/create-component-tree.js +49 -19
- package/.next/standalone/node_modules/next/dist/server/app-render/get-script-nonce-from-header.js +8 -20
- package/.next/standalone/node_modules/next/dist/server/app-render/metadata-insertion/create-server-inserted-metadata.js +8 -7
- package/.next/standalone/node_modules/next/dist/server/app-render/use-flight-response.js +2 -2
- package/.next/standalone/node_modules/next/dist/server/async-storage/work-store.js +2 -1
- package/.next/standalone/node_modules/next/dist/server/base-server.js +13 -5
- package/.next/standalone/node_modules/next/dist/server/config.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +2 -2
- package/.next/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/dev/static-paths-worker.js +2 -1
- package/.next/standalone/node_modules/next/dist/server/image-optimizer.js +22 -2
- package/.next/standalone/node_modules/next/dist/server/lib/app-info-log.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/lib/is-rsc-request.js +18 -0
- package/.next/standalone/node_modules/next/dist/server/lib/mock-request.js +30 -5
- package/.next/standalone/node_modules/next/dist/server/lib/patch-set-header.js +7 -0
- package/.next/standalone/node_modules/next/dist/server/lib/router-server.js +6 -3
- package/.next/standalone/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +18 -4
- package/.next/standalone/node_modules/next/dist/server/lib/server-ipc/utils.js +3 -1
- package/.next/standalone/node_modules/next/dist/server/lib/start-server.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/next-server.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/request/fallback-params.js +27 -1
- package/.next/standalone/node_modules/next/dist/server/route-modules/app-route/module.js +1 -0
- package/.next/standalone/node_modules/next/dist/server/route-modules/route-module.js +11 -1
- package/.next/standalone/node_modules/next/dist/server/server-utils.js +19 -2
- package/.next/standalone/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +5 -5
- package/.next/standalone/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/web/adapter.js +4 -1
- package/.next/standalone/node_modules/next/dist/server/web/edge-route-module-wrapper.js +2 -1
- package/.next/standalone/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +1 -1
- package/.next/standalone/node_modules/next/dist/{server → shared/lib}/htmlescape.js +15 -0
- package/.next/standalone/node_modules/next/dist/shared/lib/router/routes/app.js +13 -1
- package/.next/standalone/node_modules/next/dist/shared/lib/router/utils/cache-busting-search-param.js +56 -10
- package/.next/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
- package/.next/standalone/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
- package/.next/standalone/node_modules/next/dist/telemetry/events/version.js +2 -2
- package/.next/standalone/node_modules/next/package.json +15 -15
- package/.next/standalone/package-lock.json +4138 -525
- package/.next/standalone/package.json +13 -3
- package/.next/standalone/scripts/smoke-test.sh +40 -0
- package/.next/standalone/src/app/page.tsx +9 -0
- package/.next/standalone/src/components/DetailPanel.tsx +34 -0
- package/.next/standalone/src/components/Markdown.tsx +68 -10
- package/.next/standalone/src/components/TableOfContents.tsx +7 -0
- package/.next/standalone/src/lib/links.test.ts +68 -0
- package/.next/standalone/vitest.config.ts +8 -0
- package/.next/static/chunks/{0-mgdjw03nw5i.js → 00_m52wgaznut.js} +1 -1
- package/.next/static/chunks/044c~ak~uxs77.js +5 -0
- package/.next/static/chunks/{0.9a.v2u8pdez.css → 0l2qiktz0q_g..css} +1 -1
- package/.next/{standalone/.next/static/chunks/10.v6fb-ptj.a.js → static/chunks/0mdgmoqrwz~wx.js} +4 -4
- package/.next/static/chunks/{turbopack-0uufb5vlljeny.js → turbopack-16gy5uwpc4o1_.js} +1 -1
- package/package.json +13 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__00jpzal._.js +0 -4
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0d.-s5p._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0nr71d2._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0rwylex._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__05-we0.._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__05v7q28._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ax36b7._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0c2g0v3._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0e3so8g._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0mwp_9m._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0n3ik5m._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0q9c57y._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0r-95-k._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0shsacv._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ta32-~._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0~65l4k._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__10szabd._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__131xoj~._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__13_.rw3._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules_0vtdjw7._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_03nkrli._.js +0 -19
- package/.next/standalone/.next/static/chunks/15s~ckf06mjoj.js +0 -5
- package/.next/static/chunks/15s~ckf06mjoj.js +0 -5
- /package/.next/standalone/.next/static/{03Y0Qmra9pQhnypCdj6Wp → i-NjNCumIJ0s9aQuDXbGX}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{03Y0Qmra9pQhnypCdj6Wp → i-NjNCumIJ0s9aQuDXbGX}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{03Y0Qmra9pQhnypCdj6Wp → i-NjNCumIJ0s9aQuDXbGX}/_ssgManifest.js +0 -0
- /package/.next/static/{03Y0Qmra9pQhnypCdj6Wp → i-NjNCumIJ0s9aQuDXbGX}/_buildManifest.js +0 -0
- /package/.next/static/{03Y0Qmra9pQhnypCdj6Wp → i-NjNCumIJ0s9aQuDXbGX}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{03Y0Qmra9pQhnypCdj6Wp → i-NjNCumIJ0s9aQuDXbGX}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import js from "@eslint/js";
|
|
2
|
+
import globals from "globals";
|
|
3
|
+
import tseslint from "typescript-eslint";
|
|
4
|
+
import nextPlugin from "@next/eslint-plugin-next";
|
|
5
|
+
import reactHooks from "eslint-plugin-react-hooks";
|
|
6
|
+
|
|
7
|
+
export default tseslint.config(
|
|
8
|
+
{
|
|
9
|
+
ignores: [
|
|
10
|
+
".next/**",
|
|
11
|
+
"node_modules/**",
|
|
12
|
+
"public/**",
|
|
13
|
+
"scripts/**",
|
|
14
|
+
".claude/**",
|
|
15
|
+
"next-env.d.ts",
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
js.configs.recommended,
|
|
19
|
+
...tseslint.configs.recommended,
|
|
20
|
+
{
|
|
21
|
+
// 素の Node スクリプト(.mjs/.js)には Node グローバルを与える
|
|
22
|
+
// (bin/ の CLI などが process / console を使うため)。
|
|
23
|
+
files: ["**/*.mjs", "**/*.js"],
|
|
24
|
+
languageOptions: {
|
|
25
|
+
globals: { ...globals.node },
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
// TypeScript が未定義参照を担保するため、ESLint の no-undef は無効化する
|
|
30
|
+
// (ブラウザ/Node グローバルを誤検知するため。typescript-eslint 公式推奨)。
|
|
31
|
+
files: ["**/*.{ts,tsx}"],
|
|
32
|
+
rules: {
|
|
33
|
+
"no-undef": "off",
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
// Next / react-hooks ルールはアプリ本体 src/** のみに適用する。
|
|
38
|
+
// root 直下の設定ファイル(eslint.config.mjs / vitest.config.ts)や bin/ は対象外で意図通り。
|
|
39
|
+
files: ["src/**/*.{ts,tsx}"],
|
|
40
|
+
plugins: {
|
|
41
|
+
"@next/next": nextPlugin,
|
|
42
|
+
"react-hooks": reactHooks,
|
|
43
|
+
},
|
|
44
|
+
rules: {
|
|
45
|
+
...nextPlugin.configs.recommended.rules,
|
|
46
|
+
...nextPlugin.configs["core-web-vitals"].rules,
|
|
47
|
+
...reactHooks.configs.recommended.rules,
|
|
48
|
+
// react-hooks v6 で追加された構造系ルールは既存実装に多数該当する。
|
|
49
|
+
// 退行検知ゲートを塞がないよう warn に下げ、可視化は残す(段階的に解消する)。
|
|
50
|
+
"react-hooks/set-state-in-effect": "warn",
|
|
51
|
+
"react-hooks/immutability": "warn",
|
|
52
|
+
"react-hooks/refs": "warn",
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Fly config for ephemeral PR preview apps (see .github/workflows/preview.yml).
|
|
2
|
+
#
|
|
3
|
+
# Intentionally has NO `app` line — the workflow sets the per-PR name
|
|
4
|
+
# (markshelf-pr-<number>) via --app. Same demo image as production, but tuned
|
|
5
|
+
# to be cheap and disposable: suspends when idle, no minimum running machine.
|
|
6
|
+
|
|
7
|
+
primary_region = "nrt" # Tokyo
|
|
8
|
+
|
|
9
|
+
[build]
|
|
10
|
+
dockerfile = "docker/Dockerfile.demo"
|
|
11
|
+
|
|
12
|
+
[env]
|
|
13
|
+
PORT = "3000"
|
|
14
|
+
|
|
15
|
+
[http_service]
|
|
16
|
+
internal_port = 3000
|
|
17
|
+
force_https = true
|
|
18
|
+
# Previews are low-traffic and short-lived: let them suspend when idle so an
|
|
19
|
+
# open PR doesn't keep billing a machine. First hit after idle cold-starts.
|
|
20
|
+
auto_stop_machines = "suspend"
|
|
21
|
+
auto_start_machines = true
|
|
22
|
+
min_machines_running = 0
|
|
23
|
+
|
|
24
|
+
[[http_service.checks]]
|
|
25
|
+
interval = "15s"
|
|
26
|
+
timeout = "5s"
|
|
27
|
+
grace_period = "30s"
|
|
28
|
+
method = "GET"
|
|
29
|
+
path = "/"
|
|
30
|
+
|
|
31
|
+
[[vm]]
|
|
32
|
+
size = "shared-cpu-1x"
|
|
33
|
+
memory = "512mb"
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Fly.io config for the public markshelf demo.
|
|
2
|
+
# Deployed automatically on push to master by .github/workflows/deploy.yml,
|
|
3
|
+
# which builds docker/Dockerfile.demo and pushes the image; CI passes the image
|
|
4
|
+
# with `flyctl deploy --image ...`, so the [build] section below is only used
|
|
5
|
+
# for local `fly deploy`.
|
|
6
|
+
|
|
7
|
+
app = "markshelf-demo"
|
|
8
|
+
primary_region = "nrt" # Tokyo
|
|
9
|
+
|
|
10
|
+
[build]
|
|
11
|
+
dockerfile = "docker/Dockerfile.demo"
|
|
12
|
+
|
|
13
|
+
[env]
|
|
14
|
+
PORT = "3000"
|
|
15
|
+
|
|
16
|
+
[http_service]
|
|
17
|
+
internal_port = 3000
|
|
18
|
+
force_https = true
|
|
19
|
+
# SSE (/api/watch) は常時接続なので、マシンを止めない・最低1台は起こしておく
|
|
20
|
+
auto_stop_machines = "off"
|
|
21
|
+
auto_start_machines = true
|
|
22
|
+
min_machines_running = 1
|
|
23
|
+
|
|
24
|
+
[http_service.concurrency]
|
|
25
|
+
type = "requests"
|
|
26
|
+
soft_limit = 200
|
|
27
|
+
hard_limit = 250
|
|
28
|
+
|
|
29
|
+
[[http_service.checks]]
|
|
30
|
+
interval = "15s"
|
|
31
|
+
timeout = "5s"
|
|
32
|
+
grace_period = "30s"
|
|
33
|
+
method = "GET"
|
|
34
|
+
path = "/"
|
|
35
|
+
|
|
36
|
+
[[vm]]
|
|
37
|
+
size = "shared-cpu-1x"
|
|
38
|
+
memory = "512mb"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Loop Progress
|
|
2
|
+
|
|
3
|
+
_最終更新: 2026-06-29 (triage 実行)_
|
|
4
|
+
|
|
5
|
+
> このファイルがループの**唯一の正**。会話コンテキストではなくここに状態を持つ
|
|
6
|
+
> (モデルは実行間で忘れるため)。triage スキルが追記し、各サブエージェントが更新する。
|
|
7
|
+
|
|
8
|
+
## In Progress
|
|
9
|
+
<!-- 対応中の案件。`- [ ] 概要 (worktree/ブランチ名)` で書く -->
|
|
10
|
+
- [ ] src/lib/docs.ts の純粋関数(順序プレフィックス除去・ソート順・ツリー走査)に Vitest 単体テストを追加(未着手 / ブランチ未定)
|
|
11
|
+
|
|
12
|
+
## Done (直近)
|
|
13
|
+
<!-- 完了した案件と PR リンク。`- [x] 概要 (#PR番号)` -->
|
|
14
|
+
- [x] ループ環境構築(記憶/Skills/サブエージェント/worktree/コネクタ/検証ゲート)— ブランチ chore/loop-engineering
|
|
15
|
+
|
|
16
|
+
## Backlog / Triage(人間の判断待ち)
|
|
17
|
+
<!-- ループが自動処理できなかった・検証役が指摘を残した・自信が持てなかったもの。
|
|
18
|
+
人間がここを見て判断する。 -->
|
|
19
|
+
- **CI 失敗**: 「Dependabot Updates」が dompurify の更新で繰り返し失敗(最新 run 28349102259 ほか)。dompurify は直接依存ではなく推移的依存(mermaid 経由の可能性)。Dependabot が推移的依存を直接上げられず失敗していると見られる。対処方針(mermaid 側のバージョン更新 / package.json の overrides 追加 / Dependabot 設定見直し)は人間の判断が必要。
|
|
20
|
+
- **lint warning 19件**(react-hooks/set-state-in-effect ほか、@next/next/no-img-element)。退行検知のため warn 化済みだが、段階的に解消するか方針判断が必要。`next/image` への移行は描画仕様への影響があるため要検討。
|
|
21
|
+
|
|
22
|
+
## Notes
|
|
23
|
+
<!-- 試したが失敗したアプローチ。同じ轍を踏まないための記憶。 -->
|
|
24
|
+
- ESLint は eslint-config-next + FlatCompat が ESLint 9 で循環参照クラッシュするため不採用。typescript-eslint のネイティブ flat config + @next/eslint-plugin-next + eslint-plugin-react-hooks に切り替えて解決済み。
|
|
25
|
+
- 検証 hook(.claude/settings.json の SubagentStop, matcher:implementer)はユーザー承認のうえ適用済み。implementer 完了時に typecheck/lint/test を決定的に実行する。
|
|
26
|
+
- カスタムサブエージェント(explorer/implementer/reviewer)はセッション開始時ロードのため、定義直後の同一セッションでは名前解決できない。Claude Code 再起動後 or ループの新規セッションで有効。
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# ループ起動プロンプト
|
|
2
|
+
|
|
3
|
+
自動化(`/loop` または `/schedule`)が発火する単一の指示。中身をそのままプロンプトとして渡す。
|
|
4
|
+
**人間が最後にタイマー化する**(このファイルはタイマー設定そのものではない)。
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 渡すプロンプト本文
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
あなたは markshelf のループオーケストレータ。CLAUDE.md と loop/progress.md を最初に読むこと。
|
|
12
|
+
|
|
13
|
+
1. triage スキルを実行し、CI失敗・オープンissue・直近コミット・ローカル検証(typecheck/lint/test, docs-lint)を読んで
|
|
14
|
+
loop/progress.md を最新化する。
|
|
15
|
+
|
|
16
|
+
2. loop/progress.md の In Progress から、自動処理できる案件を最大1件選ぶ(無ければ報告して終了)。
|
|
17
|
+
その1件について:
|
|
18
|
+
a. explorer サブエージェントで影響範囲を調査する。
|
|
19
|
+
b. implementer サブエージェント(worktree隔離)で最小変更を実装し、typecheck/lint/test を緑にする。
|
|
20
|
+
c. reviewer サブエージェントで厳格にレビューする。判定が REQUEST_CHANGES なら b に戻す(最大2往復)。
|
|
21
|
+
d. APPROVE かつ検証が緑なら、ブランチを push して gh pr create で PR を開く(Closes #n があれば付ける)。
|
|
22
|
+
progress.md の該当項目を Done(PRリンク付き)へ移す。
|
|
23
|
+
|
|
24
|
+
3. 自動処理できない/自信が持てない/reviewer が解消できない指摘を残した案件は、
|
|
25
|
+
loop/progress.md の Backlog・Triage に理由付きで上げる。
|
|
26
|
+
|
|
27
|
+
制約(厳守):
|
|
28
|
+
- マージはしない。PR作成までが上限。最終判断は人間。
|
|
29
|
+
- 1回の起動で扱うのは原則1案件。トークンを浪費しない。
|
|
30
|
+
- 状態は必ず loop/progress.md に書き戻す(次回はそこから再開する)。
|
|
31
|
+
- 試して失敗したアプローチは progress.md の Notes に残し、同じ轍を踏まない。
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## 人間が行うタイマー化(最後のステップ)
|
|
37
|
+
|
|
38
|
+
- ラップトップを開いている前提のローカル繰り返し:
|
|
39
|
+
```
|
|
40
|
+
/loop 30m /triage
|
|
41
|
+
```
|
|
42
|
+
まずは triage だけを低頻度で回し、progress.md の更新を目視で確認する。
|
|
43
|
+
慣れたら上記フルプロンプトに広げる。
|
|
44
|
+
|
|
45
|
+
- ラップトップを閉じても走らせたい常駐:
|
|
46
|
+
```
|
|
47
|
+
/schedule
|
|
48
|
+
```
|
|
49
|
+
でクラウド実行のルーティンを作る。
|
|
50
|
+
|
|
51
|
+
**まず短い間隔・低頻度で開始し、出力を見ながら調整する。** いきなりフル自動 + PR作成に乗せない。
|
|
@@ -531,7 +531,7 @@ function createReplacements(segment, paramValue) {
|
|
|
531
531
|
encodeURIComponent)
|
|
532
532
|
};
|
|
533
533
|
}
|
|
534
|
-
async function buildAppStaticPaths({ dir, page, route, distDir, cacheComponents, authInterrupts, segments, isrFlushToDisk, cacheHandler, cacheLifeProfiles, requestHeaders, cacheHandlers, cacheMaxMemorySize, fetchCacheKeyPrefix, nextConfigOutput, ComponentMod, isRoutePPREnabled = false, partialFallbacksEnabled = false, buildId, rootParamKeys }) {
|
|
534
|
+
async function buildAppStaticPaths({ dir, page, route, distDir, cacheComponents, authInterrupts, segments, isrFlushToDisk, cacheHandler, cacheLifeProfiles, requestHeaders, cacheHandlers, cacheMaxMemorySize, fetchCacheKeyPrefix, nextConfigOutput, ComponentMod, isRoutePPREnabled = false, partialFallbacksEnabled = false, buildId, deploymentId, rootParamKeys }) {
|
|
535
535
|
if (segments.some((generate)=>{
|
|
536
536
|
var _generate_config;
|
|
537
537
|
return ((_generate_config = generate.config) == null ? void 0 : _generate_config.dynamicParams) === true;
|
|
@@ -574,6 +574,7 @@ async function buildAppStaticPaths({ dir, page, route, distDir, cacheComponents,
|
|
|
574
574
|
onAfterTaskError: afterRunner.context.onTaskError
|
|
575
575
|
},
|
|
576
576
|
buildId,
|
|
577
|
+
deploymentId,
|
|
577
578
|
previouslyRevalidatedTags: []
|
|
578
579
|
});
|
|
579
580
|
const routeParams = await ComponentMod.workAsyncStorage.run(store, generateRouteStaticParams, segments, store, ComponentMod.workUnitAsyncStorage, isRoutePPREnabled, rootParamKeys);
|
|
@@ -134,7 +134,7 @@ var HmrTarget = /*#__PURE__*/ function(HmrTarget) {
|
|
|
134
134
|
HmrTarget["Server"] = "server";
|
|
135
135
|
return HmrTarget;
|
|
136
136
|
}({});
|
|
137
|
-
const nextVersion = "16.2.
|
|
137
|
+
const nextVersion = "16.2.6";
|
|
138
138
|
const ArchName = (0, _os.arch)();
|
|
139
139
|
const PlatformName = (0, _os.platform)();
|
|
140
140
|
function infoLog(...args) {
|
|
@@ -565,7 +565,7 @@ function printCustomRoutes({ redirects, rewrites, headers, onMatchHeaders }) {
|
|
|
565
565
|
printRoutes(combinedRewrites, 'Rewrites');
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
async function isPageStatic({ dir, page, distDir, configFileName, httpAgentOptions, locales, defaultLocale, parentId, pageRuntime, edgeInfo, pageType, cacheComponents, authInterrupts, originalAppPath, isrFlushToDisk, cacheMaxMemorySize, nextConfigOutput, cacheHandler, cacheHandlers, cacheLifeProfiles, pprConfig, partialFallbacksEnabled, buildId, clientAssetToken, sriEnabled }) {
|
|
568
|
+
async function isPageStatic({ dir, page, distDir, configFileName, httpAgentOptions, locales, defaultLocale, parentId, pageRuntime, edgeInfo, pageType, cacheComponents, authInterrupts, originalAppPath, isrFlushToDisk, cacheMaxMemorySize, nextConfigOutput, cacheHandler, cacheHandlers, cacheLifeProfiles, pprConfig, partialFallbacksEnabled, buildId, deploymentId, clientAssetToken, sriEnabled }) {
|
|
569
569
|
// Skip page data collection for synthetic _global-error routes
|
|
570
570
|
if (page === _constants1.UNDERSCORE_GLOBAL_ERROR_ROUTE) {
|
|
571
571
|
return {
|
|
@@ -700,6 +700,7 @@ async function isPageStatic({ dir, page, distDir, configFileName, httpAgentOptio
|
|
|
700
700
|
isRoutePPREnabled,
|
|
701
701
|
partialFallbacksEnabled,
|
|
702
702
|
buildId,
|
|
703
|
+
deploymentId,
|
|
703
704
|
rootParamKeys
|
|
704
705
|
}));
|
|
705
706
|
}
|
|
@@ -312,7 +312,7 @@ async function createFetch(url, headers, fetchPriority, shouldImmediatelyDecode,
|
|
|
312
312
|
// search param to it. This should not leak outside of this function, so we
|
|
313
313
|
// track them separately.
|
|
314
314
|
let fetchUrl = new URL(url);
|
|
315
|
-
(0, _setcachebustingsearchparam.setCacheBustingSearchParam)(fetchUrl, headers);
|
|
315
|
+
await (0, _setcachebustingsearchparam.setCacheBustingSearchParam)(fetchUrl, headers);
|
|
316
316
|
let processed = fetch(fetchUrl, fetchOptions).then(processFetch);
|
|
317
317
|
let fetchPromise = processed.then(({ response })=>response);
|
|
318
318
|
// Immediately pass the fetch promise to the Flight client so that the debug
|
|
@@ -367,7 +367,7 @@ async function createFetch(url, headers, fetchPriority, shouldImmediatelyDecode,
|
|
|
367
367
|
// fetch again.
|
|
368
368
|
// TODO: We should abort the previous request.
|
|
369
369
|
fetchUrl = new URL(responseUrl);
|
|
370
|
-
(0, _setcachebustingsearchparam.setCacheBustingSearchParam)(fetchUrl, headers);
|
|
370
|
+
await (0, _setcachebustingsearchparam.setCacheBustingSearchParam)(fetchUrl, headers);
|
|
371
371
|
processed = fetch(fetchUrl, fetchOptions).then(processFetch);
|
|
372
372
|
fetchPromise = processed.then(({ response })=>response);
|
|
373
373
|
flightResponsePromise = shouldImmediatelyDecode ? createFromNextFetch(fetchPromise, headers) : null;
|
|
@@ -23,8 +23,14 @@ _export(exports, {
|
|
|
23
23
|
});
|
|
24
24
|
const _cachebustingsearchparam = require("../../../shared/lib/router/utils/cache-busting-search-param");
|
|
25
25
|
const _approuterheaders = require("../app-router-headers");
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
async function computeClientCacheBustingSearchParam(headers) {
|
|
27
|
+
if (typeof globalThis.crypto?.subtle?.digest === 'function') {
|
|
28
|
+
return (0, _cachebustingsearchparam.computeCacheBustingSearchParam)(headers[_approuterheaders.NEXT_ROUTER_PREFETCH_HEADER], headers[_approuterheaders.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER], headers[_approuterheaders.NEXT_ROUTER_STATE_TREE_HEADER], headers[_approuterheaders.NEXT_URL]);
|
|
29
|
+
}
|
|
30
|
+
return (0, _cachebustingsearchparam.computeLegacyCacheBustingSearchParam)(headers[_approuterheaders.NEXT_ROUTER_PREFETCH_HEADER], headers[_approuterheaders.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER], headers[_approuterheaders.NEXT_ROUTER_STATE_TREE_HEADER], headers[_approuterheaders.NEXT_URL]);
|
|
31
|
+
}
|
|
32
|
+
const setCacheBustingSearchParam = async (url, headers)=>{
|
|
33
|
+
const uniqueCacheKey = await computeClientCacheBustingSearchParam(headers);
|
|
28
34
|
setCacheBustingSearchParamWithHash(url, uniqueCacheKey);
|
|
29
35
|
};
|
|
30
36
|
const setCacheBustingSearchParamWithHash = (url, hash)=>{
|
|
@@ -66,6 +66,23 @@ function getRenderedPathname(response) {
|
|
|
66
66
|
const rewrittenPath = response.headers.get(_approuterheaders.NEXT_REWRITTEN_PATH_HEADER);
|
|
67
67
|
return rewrittenPath ?? urlToUrlWithoutFlightMarker(new URL(response.url)).pathname;
|
|
68
68
|
}
|
|
69
|
+
// Pathname parts come from `URL.pathname.split('/')`, so they are already
|
|
70
|
+
// in the encoded form the URL parser produces. The server-side equivalent
|
|
71
|
+
// (`get-dynamic-param.ts`) starts from a decoded param value and applies
|
|
72
|
+
// `encodeURIComponent` once. The two encodings are not the same — for
|
|
73
|
+
// example, the URL parser leaves `,` and `:` untouched while
|
|
74
|
+
// `encodeURIComponent` percent-encodes them. To produce the same canonical
|
|
75
|
+
// form on the client (and avoid double-encoding `%xx` sequences such as
|
|
76
|
+
// `%2F` → `%252F`), we decode the URL part first and re-encode it.
|
|
77
|
+
function canonicalizeURLPart(part) {
|
|
78
|
+
try {
|
|
79
|
+
return encodeURIComponent(decodeURIComponent(part));
|
|
80
|
+
} catch {
|
|
81
|
+
// `decodeURIComponent` throws on malformed sequences. Fall back to the
|
|
82
|
+
// already-encoded form rather than failing the navigation.
|
|
83
|
+
return part;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
69
86
|
function parseDynamicParamFromURLPart(paramType, pathnameParts, partIndex) {
|
|
70
87
|
// This needs to match the behavior in get-dynamic-param.ts.
|
|
71
88
|
switch(paramType){
|
|
@@ -74,7 +91,7 @@ function parseDynamicParamFromURLPart(paramType, pathnameParts, partIndex) {
|
|
|
74
91
|
{
|
|
75
92
|
// Catchalls receive all the remaining URL parts. If there are no
|
|
76
93
|
// remaining pathname parts, return an empty array.
|
|
77
|
-
return partIndex < pathnameParts.length ? pathnameParts.slice(partIndex).map((s)=>
|
|
94
|
+
return partIndex < pathnameParts.length ? pathnameParts.slice(partIndex).map((s)=>canonicalizeURLPart(s)) : [];
|
|
78
95
|
}
|
|
79
96
|
// Catchall intercepted
|
|
80
97
|
case 'ci(..)(..)':
|
|
@@ -85,9 +102,9 @@ function parseDynamicParamFromURLPart(paramType, pathnameParts, partIndex) {
|
|
|
85
102
|
const prefix = paramType.length - 2;
|
|
86
103
|
return partIndex < pathnameParts.length ? pathnameParts.slice(partIndex).map((s, i)=>{
|
|
87
104
|
if (i === 0) {
|
|
88
|
-
return
|
|
105
|
+
return canonicalizeURLPart(s.slice(prefix));
|
|
89
106
|
}
|
|
90
|
-
return
|
|
107
|
+
return canonicalizeURLPart(s);
|
|
91
108
|
}) : [];
|
|
92
109
|
}
|
|
93
110
|
// Optional catchalls
|
|
@@ -95,7 +112,7 @@ function parseDynamicParamFromURLPart(paramType, pathnameParts, partIndex) {
|
|
|
95
112
|
{
|
|
96
113
|
// Optional catchalls receive all the remaining URL parts, unless this is
|
|
97
114
|
// the end of the pathname, in which case they return null.
|
|
98
|
-
return partIndex < pathnameParts.length ? pathnameParts.slice(partIndex).map((s)=>
|
|
115
|
+
return partIndex < pathnameParts.length ? pathnameParts.slice(partIndex).map((s)=>canonicalizeURLPart(s)) : null;
|
|
99
116
|
}
|
|
100
117
|
// Dynamic
|
|
101
118
|
case 'd':
|
|
@@ -110,7 +127,7 @@ function parseDynamicParamFromURLPart(paramType, pathnameParts, partIndex) {
|
|
|
110
127
|
// recovery options.
|
|
111
128
|
return '';
|
|
112
129
|
}
|
|
113
|
-
return
|
|
130
|
+
return canonicalizeURLPart(pathnameParts[partIndex]);
|
|
114
131
|
}
|
|
115
132
|
// Dynamic intercepted
|
|
116
133
|
case 'di(..)(..)':
|
|
@@ -129,7 +146,7 @@ function parseDynamicParamFromURLPart(paramType, pathnameParts, partIndex) {
|
|
|
129
146
|
// recovery options.
|
|
130
147
|
return '';
|
|
131
148
|
}
|
|
132
|
-
return
|
|
149
|
+
return canonicalizeURLPart(pathnameParts[partIndex].slice(prefix));
|
|
133
150
|
}
|
|
134
151
|
default:
|
|
135
152
|
paramType;
|