ref0-git 0.0.0-stage → 0.2.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/app/apps/github/.dev.vars.example +6 -0
- package/app/apps/github/README.md +70 -0
- package/app/apps/github/THIRD_PARTY_NOTICES.md +214 -0
- package/app/apps/github/components.json +25 -0
- package/app/apps/github/generated/git-rest.ts +10444 -0
- package/app/apps/github/generated/routeTree.gen.ts +1242 -0
- package/app/apps/github/migrations/postgres/0001_auth.sql +46 -0
- package/app/apps/github/migrations/sql/0001_auth.sql +19 -0
- package/app/apps/github/migrations/sql/0002_passkeys.sql +9 -0
- package/app/apps/github/migrations/sql/0003_orgs.sql +22 -0
- package/app/apps/github/migrations/sql/0004_avatars.sql +6 -0
- package/app/apps/github/package.json +80 -0
- package/app/apps/github/src/branches/branch-list.tsx +385 -0
- package/app/apps/github/src/branches/branches.ts +55 -0
- package/app/apps/github/src/clients/allowed.ts +213 -0
- package/app/apps/github/src/clients/at-most.ts +17 -0
- package/app/apps/github/src/clients/avatars.ts +410 -0
- package/app/apps/github/src/clients/cached.ts +65 -0
- package/app/apps/github/src/clients/calls.ts +160 -0
- package/app/apps/github/src/clients/clients.ts +82 -0
- package/app/apps/github/src/clients/graphql.ts +50 -0
- package/app/apps/github/src/clients/host-answer.ts +28 -0
- package/app/apps/github/src/clients/host-calls.ts +382 -0
- package/app/apps/github/src/clients/icon-bytes.ts +203 -0
- package/app/apps/github/src/clients/proxy.ts +59 -0
- package/app/apps/github/src/clients/session-ended.ts +18 -0
- package/app/apps/github/src/clients/transfers.ts +212 -0
- package/app/apps/github/src/code/breadcrumbs.tsx +50 -0
- package/app/apps/github/src/code/code-page.tsx +147 -0
- package/app/apps/github/src/code/code-tree.tsx +338 -0
- package/app/apps/github/src/code/controls.tsx +230 -0
- package/app/apps/github/src/code/file-view.tsx +450 -0
- package/app/apps/github/src/code/files.ts +332 -0
- package/app/apps/github/src/code/folder-list.tsx +122 -0
- package/app/apps/github/src/code/go-to-file.tsx +131 -0
- package/app/apps/github/src/code/highlighted.tsx +58 -0
- package/app/apps/github/src/code/lines.ts +46 -0
- package/app/apps/github/src/code/load.ts +147 -0
- package/app/apps/github/src/code/markdown-files.ts +58 -0
- package/app/apps/github/src/code/places.ts +88 -0
- package/app/apps/github/src/code/ref-pages.ts +179 -0
- package/app/apps/github/src/code/ref-switcher.tsx +203 -0
- package/app/apps/github/src/code/refs.ts +142 -0
- package/app/apps/github/src/code/repo-home.tsx +240 -0
- package/app/apps/github/src/code/repo.ts +105 -0
- package/app/apps/github/src/code/saved-reads.ts +199 -0
- package/app/apps/github/src/code/saved.ts +110 -0
- package/app/apps/github/src/code/tree-fold.ts +186 -0
- package/app/apps/github/src/code/trees.ts +136 -0
- package/app/apps/github/src/components/avatar-picture.ts +53 -0
- package/app/apps/github/src/components/avatar-url.ts +16 -0
- package/app/apps/github/src/components/confirm-action.tsx +100 -0
- package/app/apps/github/src/components/count.tsx +24 -0
- package/app/apps/github/src/components/create-button.tsx +38 -0
- package/app/apps/github/src/components/file-icons/file-icons.css +225 -0
- package/app/apps/github/src/components/file-icons/file-icons.tsx +138 -0
- package/app/apps/github/src/components/filter.tsx +35 -0
- package/app/apps/github/src/components/hotkeys/hotkeys.tsx +255 -0
- package/app/apps/github/src/components/item-list.tsx +65 -0
- package/app/apps/github/src/components/language-dot.tsx +29 -0
- package/app/apps/github/src/components/list-toolbar.tsx +82 -0
- package/app/apps/github/src/components/markdown/editor.tsx +57 -0
- package/app/apps/github/src/components/markdown/markdown.css +177 -0
- package/app/apps/github/src/components/markdown/markdown.tsx +82 -0
- package/app/apps/github/src/components/owner-card.tsx +196 -0
- package/app/apps/github/src/components/pull-status.tsx +34 -0
- package/app/apps/github/src/components/recent.ts +41 -0
- package/app/apps/github/src/components/relative-time.tsx +78 -0
- package/app/apps/github/src/components/repos/icon-hashes.ts +91 -0
- package/app/apps/github/src/components/repos/new-repo-form.tsx +196 -0
- package/app/apps/github/src/components/repos/repo-icon.tsx +47 -0
- package/app/apps/github/src/components/repos/repo-list.tsx +528 -0
- package/app/apps/github/src/components/repos/your-repos.tsx +124 -0
- package/app/apps/github/src/components/review-state.tsx +75 -0
- package/app/apps/github/src/components/route-dialog.tsx +137 -0
- package/app/apps/github/src/components/save-button.tsx +58 -0
- package/app/apps/github/src/components/shell/app-shell.tsx +164 -0
- package/app/apps/github/src/components/shell/create-org-dialog.tsx +118 -0
- package/app/apps/github/src/components/shell/create-row.tsx +49 -0
- package/app/apps/github/src/components/shell/link-menu.tsx +94 -0
- package/app/apps/github/src/components/shell/nav-user.tsx +97 -0
- package/app/apps/github/src/components/shell/owner-repos.tsx +247 -0
- package/app/apps/github/src/components/shell/owner-switcher.tsx +104 -0
- package/app/apps/github/src/components/shell/repo-switcher.tsx +179 -0
- package/app/apps/github/src/components/shell/sections.ts +31 -0
- package/app/apps/github/src/components/shell/submenu-chevron.ts +147 -0
- package/app/apps/github/src/components/signin/device-card.tsx +139 -0
- package/app/apps/github/src/components/signin/login-form.tsx +88 -0
- package/app/apps/github/src/components/signin/signin-page.tsx +33 -0
- package/app/apps/github/src/components/signin/signup-form.tsx +106 -0
- package/app/apps/github/src/components/states/live-status.tsx +42 -0
- package/app/apps/github/src/components/states/states.tsx +126 -0
- package/app/apps/github/src/components/tab-indicator.tsx +143 -0
- package/app/apps/github/src/components/theme-choice.tsx +108 -0
- package/app/apps/github/src/components/theme-provider.tsx +126 -0
- package/app/apps/github/src/components/tones.ts +23 -0
- package/app/apps/github/src/components/ui/alert-dialog.tsx +187 -0
- package/app/apps/github/src/components/ui/alert.tsx +78 -0
- package/app/apps/github/src/components/ui/avatar.tsx +106 -0
- package/app/apps/github/src/components/ui/badge.tsx +51 -0
- package/app/apps/github/src/components/ui/breadcrumb.tsx +124 -0
- package/app/apps/github/src/components/ui/button-group.tsx +87 -0
- package/app/apps/github/src/components/ui/button.tsx +61 -0
- package/app/apps/github/src/components/ui/calendar.tsx +221 -0
- package/app/apps/github/src/components/ui/card.tsx +102 -0
- package/app/apps/github/src/components/ui/checkbox.tsx +26 -0
- package/app/apps/github/src/components/ui/collapsible.tsx +19 -0
- package/app/apps/github/src/components/ui/combobox.tsx +304 -0
- package/app/apps/github/src/components/ui/command.tsx +208 -0
- package/app/apps/github/src/components/ui/dialog.tsx +156 -0
- package/app/apps/github/src/components/ui/dropdown-menu.tsx +290 -0
- package/app/apps/github/src/components/ui/empty.tsx +100 -0
- package/app/apps/github/src/components/ui/field.tsx +236 -0
- package/app/apps/github/src/components/ui/hover-card.tsx +48 -0
- package/app/apps/github/src/components/ui/input-group.tsx +163 -0
- package/app/apps/github/src/components/ui/input.tsx +19 -0
- package/app/apps/github/src/components/ui/item.tsx +201 -0
- package/app/apps/github/src/components/ui/kbd.tsx +27 -0
- package/app/apps/github/src/components/ui/label.tsx +33 -0
- package/app/apps/github/src/components/ui/popover.tsx +87 -0
- package/app/apps/github/src/components/ui/radio-group.tsx +35 -0
- package/app/apps/github/src/components/ui/select.tsx +198 -0
- package/app/apps/github/src/components/ui/separator.tsx +22 -0
- package/app/apps/github/src/components/ui/sheet.tsx +138 -0
- package/app/apps/github/src/components/ui/sidebar.tsx +724 -0
- package/app/apps/github/src/components/ui/skeleton.tsx +13 -0
- package/app/apps/github/src/components/ui/sonner.tsx +47 -0
- package/app/apps/github/src/components/ui/styles.css +242 -0
- package/app/apps/github/src/components/ui/table.tsx +113 -0
- package/app/apps/github/src/components/ui/tabs.tsx +79 -0
- package/app/apps/github/src/components/ui/textarea.tsx +17 -0
- package/app/apps/github/src/components/ui/title.ts +6 -0
- package/app/apps/github/src/components/ui/toggle-group.tsx +89 -0
- package/app/apps/github/src/components/ui/toggle.tsx +42 -0
- package/app/apps/github/src/components/ui/tooltip.tsx +63 -0
- package/app/apps/github/src/components/user-avatar.tsx +145 -0
- package/app/apps/github/src/components/view-tabs.tsx +42 -0
- package/app/apps/github/src/context/context.ts +133 -0
- package/app/apps/github/src/diffs/blobs.ts +94 -0
- package/app/apps/github/src/diffs/diff-view.tsx +155 -0
- package/app/apps/github/src/diffs/files.ts +121 -0
- package/app/apps/github/src/diffs/hunks.tsx +454 -0
- package/app/apps/github/src/diffs/patch.ts +131 -0
- package/app/apps/github/src/diffs/rows.ts +137 -0
- package/app/apps/github/src/history/commit-diff.ts +54 -0
- package/app/apps/github/src/history/commit-list.tsx +207 -0
- package/app/apps/github/src/history/commit-page.tsx +147 -0
- package/app/apps/github/src/history/history.ts +129 -0
- package/app/apps/github/src/hooks/allowed.ts +31 -0
- package/app/apps/github/src/hooks/answers.ts +65 -0
- package/app/apps/github/src/hooks/avatars.ts +54 -0
- package/app/apps/github/src/hooks/draft.ts +38 -0
- package/app/apps/github/src/hooks/open-counts.ts +127 -0
- package/app/apps/github/src/hooks/profiles.ts +120 -0
- package/app/apps/github/src/hooks/repos.ts +440 -0
- package/app/apps/github/src/hooks/use-mobile.ts +19 -0
- package/app/apps/github/src/hooks/viewer.ts +39 -0
- package/app/apps/github/src/inbox/count.ts +70 -0
- package/app/apps/github/src/inbox/inbox-item.tsx +66 -0
- package/app/apps/github/src/inbox/inbox-page.tsx +572 -0
- package/app/apps/github/src/inbox/marks.ts +130 -0
- package/app/apps/github/src/inbox/release-tags.ts +65 -0
- package/app/apps/github/src/inbox/search.ts +97 -0
- package/app/apps/github/src/inbox/subjects.ts +184 -0
- package/app/apps/github/src/inbox/subscription-controls.tsx +184 -0
- package/app/apps/github/src/inbox/subscriptions.ts +189 -0
- package/app/apps/github/src/inbox/threads.ts +198 -0
- package/app/apps/github/src/issues/changes.ts +332 -0
- package/app/apps/github/src/issues/counts.ts +62 -0
- package/app/apps/github/src/issues/issue-list.tsx +682 -0
- package/app/apps/github/src/issues/issue-page.tsx +533 -0
- package/app/apps/github/src/issues/issues.ts +566 -0
- package/app/apps/github/src/issues/label-dialog.tsx +310 -0
- package/app/apps/github/src/issues/labels-page.tsx +119 -0
- package/app/apps/github/src/issues/new-issue.tsx +79 -0
- package/app/apps/github/src/issues/parts.tsx +71 -0
- package/app/apps/github/src/issues/picker.tsx +298 -0
- package/app/apps/github/src/issues/search.ts +238 -0
- package/app/apps/github/src/issues/sidebar.tsx +236 -0
- package/app/apps/github/src/lib/cn.ts +8 -0
- package/app/apps/github/src/lib/highlighting.ts +13 -0
- package/app/apps/github/src/live/follow.ts +129 -0
- package/app/apps/github/src/live/sse.ts +74 -0
- package/app/apps/github/src/live/use-follow.ts +37 -0
- package/app/apps/github/src/markdown/README.md +53 -0
- package/app/apps/github/src/markdown/allowed-html.ts +69 -0
- package/app/apps/github/src/markdown/context.ts +206 -0
- package/app/apps/github/src/markdown/images.ts +81 -0
- package/app/apps/github/src/markdown/lookup.ts +122 -0
- package/app/apps/github/src/markdown/patches.ts +299 -0
- package/app/apps/github/src/markdown/query.ts +25 -0
- package/app/apps/github/src/markdown/references.ts +158 -0
- package/app/apps/github/src/markdown/render.ts +103 -0
- package/app/apps/github/src/names/owners.ts +51 -0
- package/app/apps/github/src/names/repos.ts +24 -0
- package/app/apps/github/src/palette/palette.tsx +547 -0
- package/app/apps/github/src/palette/recent.ts +116 -0
- package/app/apps/github/src/palette/rows.tsx +455 -0
- package/app/apps/github/src/palette/server.ts +104 -0
- package/app/apps/github/src/palette/targets.ts +306 -0
- package/app/apps/github/src/policy.ts +600 -0
- package/app/apps/github/src/private-repos.ts +47 -0
- package/app/apps/github/src/pulls/compare-page.tsx +342 -0
- package/app/apps/github/src/pulls/files-tab.tsx +776 -0
- package/app/apps/github/src/pulls/live.ts +124 -0
- package/app/apps/github/src/pulls/merge-box.tsx +367 -0
- package/app/apps/github/src/pulls/merge-button.ts +86 -0
- package/app/apps/github/src/pulls/pull-list.tsx +235 -0
- package/app/apps/github/src/pulls/pull-page.tsx +474 -0
- package/app/apps/github/src/pulls/pull.ts +468 -0
- package/app/apps/github/src/pulls/pulls.ts +318 -0
- package/app/apps/github/src/pulls/review.ts +350 -0
- package/app/apps/github/src/pulls/search.ts +130 -0
- package/app/apps/github/src/queue/queue-page.tsx +405 -0
- package/app/apps/github/src/queue/queue.ts +231 -0
- package/app/apps/github/src/releases/latest-release.tsx +55 -0
- package/app/apps/github/src/releases/overview.tsx +30 -0
- package/app/apps/github/src/releases/release-form.tsx +353 -0
- package/app/apps/github/src/releases/release-list.tsx +173 -0
- package/app/apps/github/src/releases/release-view.tsx +183 -0
- package/app/apps/github/src/releases/releases.ts +308 -0
- package/app/apps/github/src/releases/tag-list.tsx +134 -0
- package/app/apps/github/src/router.tsx +46 -0
- package/app/apps/github/src/routes/$owner/$repo/_code/blob/$.tsx +33 -0
- package/app/apps/github/src/routes/$owner/$repo/_code/tree/$.tsx +28 -0
- package/app/apps/github/src/routes/$owner/$repo/_code.tsx +11 -0
- package/app/apps/github/src/routes/$owner/$repo/_releases/releases/index.tsx +19 -0
- package/app/apps/github/src/routes/$owner/$repo/_releases/tags.tsx +19 -0
- package/app/apps/github/src/routes/$owner/$repo/_releases.tsx +23 -0
- package/app/apps/github/src/routes/$owner/$repo/branches.tsx +39 -0
- package/app/apps/github/src/routes/$owner/$repo/commit/$sha.tsx +34 -0
- package/app/apps/github/src/routes/$owner/$repo/commits/$.tsx +42 -0
- package/app/apps/github/src/routes/$owner/$repo/compare/$.tsx +19 -0
- package/app/apps/github/src/routes/$owner/$repo/index.tsx +24 -0
- package/app/apps/github/src/routes/$owner/$repo/issues/$number.tsx +50 -0
- package/app/apps/github/src/routes/$owner/$repo/issues/index.tsx +53 -0
- package/app/apps/github/src/routes/$owner/$repo/issues/new.tsx +43 -0
- package/app/apps/github/src/routes/$owner/$repo/labels.tsx +22 -0
- package/app/apps/github/src/routes/$owner/$repo/pull/$number/checks.tsx +15 -0
- package/app/apps/github/src/routes/$owner/$repo/pull/$number/commits.tsx +15 -0
- package/app/apps/github/src/routes/$owner/$repo/pull/$number/files.tsx +15 -0
- package/app/apps/github/src/routes/$owner/$repo/pull/$number/index.tsx +19 -0
- package/app/apps/github/src/routes/$owner/$repo/pull/$number/route.tsx +52 -0
- package/app/apps/github/src/routes/$owner/$repo/pulls/index.tsx +48 -0
- package/app/apps/github/src/routes/$owner/$repo/queue.tsx +22 -0
- package/app/apps/github/src/routes/$owner/$repo/releases/edit/$.tsx +58 -0
- package/app/apps/github/src/routes/$owner/$repo/releases/new.tsx +40 -0
- package/app/apps/github/src/routes/$owner/$repo/releases/tag/$.tsx +35 -0
- package/app/apps/github/src/routes/$owner/$repo/route.tsx +102 -0
- package/app/apps/github/src/routes/$owner/$repo/settings/access.tsx +9 -0
- package/app/apps/github/src/routes/$owner/$repo/settings/hooks/index.tsx +16 -0
- package/app/apps/github/src/routes/$owner/$repo/settings/hooks/new.tsx +25 -0
- package/app/apps/github/src/routes/$owner/$repo/settings/index.tsx +17 -0
- package/app/apps/github/src/routes/$owner/$repo/settings/route.tsx +28 -0
- package/app/apps/github/src/routes/$owner/$repo/settings/rules.tsx +12 -0
- package/app/apps/github/src/routes/$owner/$repo/tokens.tsx +16 -0
- package/app/apps/github/src/routes/$owner/index.tsx +45 -0
- package/app/apps/github/src/routes/-nav.tsx +293 -0
- package/app/apps/github/src/routes/-root-testing.ts +107 -0
- package/app/apps/github/src/routes/__root.tsx +225 -0
- package/app/apps/github/src/routes/api.auth.$.ts +18 -0
- package/app/apps/github/src/routes/downloads/$owner/$repo/$asset.tsx +10 -0
- package/app/apps/github/src/routes/file-icons[.]svg.ts +21 -0
- package/app/apps/github/src/routes/icons/$owner/$repo.tsx +14 -0
- package/app/apps/github/src/routes/icons/$owner/index.tsx +14 -0
- package/app/apps/github/src/routes/icons/index.tsx +12 -0
- package/app/apps/github/src/routes/index.tsx +48 -0
- package/app/apps/github/src/routes/login.tsx +24 -0
- package/app/apps/github/src/routes/login_.code.tsx +31 -0
- package/app/apps/github/src/routes/new.tsx +91 -0
- package/app/apps/github/src/routes/notifications.tsx +20 -0
- package/app/apps/github/src/routes/orgs/$owner/issues.tsx +8 -0
- package/app/apps/github/src/routes/orgs/$owner/pulls.tsx +8 -0
- package/app/apps/github/src/routes/orgs/$owner/releases.tsx +8 -0
- package/app/apps/github/src/routes/orgs/$owner/route.tsx +25 -0
- package/app/apps/github/src/routes/orgs/$owner/settings.tsx +30 -0
- package/app/apps/github/src/routes/orgs/$owner/tokens.tsx +15 -0
- package/app/apps/github/src/routes/settings.tsx +54 -0
- package/app/apps/github/src/routes/signup.tsx +24 -0
- package/app/apps/github/src/routes/uploads/$owner/$repo/$release.tsx +10 -0
- package/app/apps/github/src/seed/acme.ts +498 -0
- package/app/apps/github/src/seed/licenses.ts +114 -0
- package/app/apps/github/src/seed/seed.ts +538 -0
- package/app/apps/github/src/server.ts +97 -0
- package/app/apps/github/src/settings/account-avatar.tsx +43 -0
- package/app/apps/github/src/settings/avatar-section.tsx +140 -0
- package/app/apps/github/src/settings/avatar.ts +58 -0
- package/app/apps/github/src/settings/general-settings.tsx +439 -0
- package/app/apps/github/src/settings/general.ts +73 -0
- package/app/apps/github/src/settings/hook-form.tsx +195 -0
- package/app/apps/github/src/settings/hook-list.tsx +166 -0
- package/app/apps/github/src/settings/hooks.ts +87 -0
- package/app/apps/github/src/settings/org-settings.tsx +228 -0
- package/app/apps/github/src/settings/orgs.ts +116 -0
- package/app/apps/github/src/settings/rule-list.tsx +72 -0
- package/app/apps/github/src/settings/rules.ts +27 -0
- package/app/apps/github/src/settings/settings-layout.tsx +114 -0
- package/app/apps/github/src/signin/approval.ts +186 -0
- package/app/apps/github/src/signin/auth-client.ts +127 -0
- package/app/apps/github/src/signin/auth.ts +753 -0
- package/app/apps/github/src/signin/avatars.ts +126 -0
- package/app/apps/github/src/signin/client-ip.ts +39 -0
- package/app/apps/github/src/signin/credentials.ts +26 -0
- package/app/apps/github/src/signin/device-code.ts +95 -0
- package/app/apps/github/src/signin/device-prompt.ts +125 -0
- package/app/apps/github/src/signin/errors.ts +135 -0
- package/app/apps/github/src/signin/host-session.ts +68 -0
- package/app/apps/github/src/signin/orgs.ts +283 -0
- package/app/apps/github/src/signin/owner-names.ts +183 -0
- package/app/apps/github/src/signin/person-lock.ts +104 -0
- package/app/apps/github/src/signin/seal.ts +88 -0
- package/app/apps/github/src/signin/seed-people.ts +92 -0
- package/app/apps/github/src/signin/session.ts +48 -0
- package/app/apps/github/src/signin/unborn.ts +110 -0
- package/app/apps/github/src/signin/viewer-orgs.ts +47 -0
- package/app/apps/github/src/signin/viewer.ts +74 -0
- package/app/apps/github/src/signin/with-headers.ts +14 -0
- package/app/apps/github/src/tokens/tokens-page.tsx +529 -0
- package/app/apps/github/src/tokens/tokens.ts +54 -0
- package/app/apps/github/tsconfig.json +25 -0
- package/app/apps/github/tsconfig.worker.json +24 -0
- package/app/apps/github/vite.config.ts +21 -0
- package/app/pnpm-workspace.yaml +216 -0
- package/app/tsconfig.base.json +127 -0
- package/dist/LICENSE +202 -0
- package/dist/cli/child.mjs +42 -0
- package/dist/cli/commands.mjs +23 -0
- package/dist/cli/credentials.mjs +84 -0
- package/dist/cli/documents.mjs +214 -0
- package/dist/cli/events.mjs +55 -0
- package/dist/cli/failure.mjs +105 -0
- package/dist/cli/folders.mjs +32 -0
- package/dist/cli/git-remote-ref0.d.mts +1 -0
- package/dist/cli/git-remote-ref0.mjs +29 -0
- package/dist/cli/git.mjs +48 -0
- package/dist/cli/helpers.mjs +51 -0
- package/dist/cli/hosts.mjs +127 -0
- package/dist/cli/node.mjs +15 -0
- package/dist/cli/output.mjs +135 -0
- package/dist/cli/prompt.mjs +35 -0
- package/dist/cli/queue.mjs +215 -0
- package/dist/cli/ref0-git.d.mts +1 -0
- package/dist/cli/ref0-git.mjs +144 -0
- package/dist/cli/repos.mjs +162 -0
- package/dist/cli/resources.mjs +131 -0
- package/dist/cli/run-end.mjs +57 -0
- package/dist/cli/runtime.mjs +50 -0
- package/dist/cli/setup.mjs +1410 -0
- package/dist/cli/sign-in.mjs +162 -0
- package/dist/cli/sign-ins.mjs +79 -0
- package/dist/cli/sqlite.mjs +28 -0
- package/dist/cli/tokens.mjs +141 -0
- package/dist/cli/vendor.mjs +123 -0
- package/dist/init/app.mjs +231 -0
- package/dist/init/astro.mjs +49 -0
- package/dist/init/choices.mjs +497 -0
- package/dist/init/cloudflare.mjs +324 -0
- package/dist/init/create.mjs +151 -0
- package/dist/init/detect.mjs +297 -0
- package/dist/init/files.mjs +75 -0
- package/dist/init/frameworks.mjs +248 -0
- package/dist/init/git-module.mjs +49 -0
- package/dist/init/github-routes.mjs +66 -0
- package/dist/init/jsonc.mjs +143 -0
- package/dist/init/metadata.mjs +48 -0
- package/dist/init/mounts.mjs +109 -0
- package/dist/init/next.mjs +205 -0
- package/dist/init/node-app.mjs +189 -0
- package/dist/init/node.mjs +458 -0
- package/dist/init/nuxt.mjs +115 -0
- package/dist/init/output.mjs +21 -0
- package/dist/init/plan.mjs +82 -0
- package/dist/init/range-major.mjs +257 -0
- package/dist/init/react-router.mjs +59 -0
- package/dist/init/routes.mjs +148 -0
- package/dist/init/shell.mjs +4 -0
- package/dist/init/stores.mjs +51 -0
- package/dist/init/sveltekit.mjs +139 -0
- package/dist/init/template.mjs +142 -0
- package/dist/init/templates.mjs +343 -0
- package/dist/init/vercel.mjs +383 -0
- package/dist/init/versions.mjs +32 -0
- package/dist/init/workspace.mjs +20 -0
- package/package.json +52 -3
- package/README.md +0 -3
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
# The workspace's three packages, `@ref0/infra`, `@ref0/git` and `@ref0/github`, the app over them,
|
|
2
|
+
# `apps/github`, the examples that host them, the benchmarks, and the root's tooling. The catalog
|
|
3
|
+
# pins every shared version once, at home's versions.
|
|
4
|
+
packages:
|
|
5
|
+
- packages/*
|
|
6
|
+
- apps/*
|
|
7
|
+
- examples/*
|
|
8
|
+
- bench
|
|
9
|
+
|
|
10
|
+
catalog:
|
|
11
|
+
# Alchemy 2 and its Cloudflare provider, which @ref0/infra/alchemy's Layers declare the objects
|
|
12
|
+
# with and examples/git-alchemy deploys by: beta.87, the release spike C ran. Alchemy 2 is in
|
|
13
|
+
# beta, so its range is this one release. Apache-2.0.
|
|
14
|
+
'@alchemy.run/cloudflare': 2.0.0-beta.87
|
|
15
|
+
alchemy: 2.0.0-beta.87
|
|
16
|
+
# The app's components: shadcn's, on Base UI, styled by Tailwind, at ref0's versions. MIT.
|
|
17
|
+
'@base-ui/react': 1.9.0
|
|
18
|
+
# The app's Worker build: Cloudflare's Vite plugin at the release that runs wrangler's workerd, so
|
|
19
|
+
# the app and its tests share one miniflare.
|
|
20
|
+
'@cloudflare/vite-plugin': 1.70.0
|
|
21
|
+
# Workers' runtime types, for @ref0/infra/cloudflare. Moves with wrangler's workerd.
|
|
22
|
+
'@cloudflare/workers-types': 5.20261116.1
|
|
23
|
+
# The app's profile pictures, drawn from each login in the page, with no avatar service. MIT.
|
|
24
|
+
'@dicebear/core': 10.7.0
|
|
25
|
+
# The pictures' styles, of which the app imports two by subpath: Pixelbot for people and Planets
|
|
26
|
+
# for orgs. Both designs are DiceBear's own, CC0 1.0, and the package's code is MIT.
|
|
27
|
+
'@dicebear/styles': 10.6.0
|
|
28
|
+
# Effect's Node platform, which Alchemy's CLI runs on: for examples/git-alchemy alone, at
|
|
29
|
+
# Effect's own version. MIT.
|
|
30
|
+
'@effect/platform-node': 4.1.4
|
|
31
|
+
# Effect's Node services without the Redis and undici platform-node brings: the CLI's file
|
|
32
|
+
# system, child processes, terminal and path, at Effect's own version (Q802). MIT.
|
|
33
|
+
'@effect/platform-node-shared': 4.1.4
|
|
34
|
+
'@effect/tsgo': 0.70.0
|
|
35
|
+
# Effect's Vitest helpers, `it.effect` and `it.prop`, at Effect's own version.
|
|
36
|
+
'@effect/vitest': 4.1.4
|
|
37
|
+
# GitHub's REST shapes as TypeScript types, which @ref0/github's contracts serve. MIT. Built from
|
|
38
|
+
# @octokit/openapi 23.0.1. The shapes' tests check answers against 24.0.0's description, whose
|
|
39
|
+
# label fields `RestLabel` adds until a release built from it exists.
|
|
40
|
+
'@octokit/openapi-types': 29.0.1
|
|
41
|
+
# GitHub's GraphQL schema, as Octokit packages it from GitHub's public schema. MIT. The test
|
|
42
|
+
# data @ref0/github's served GraphQL schema is checked against: every type and field it serves
|
|
43
|
+
# is GitHub's at this pin. The latest release on 19 Nov 2026.
|
|
44
|
+
'@octokit/graphql-schema': 15.26.1
|
|
45
|
+
# Octokit's GitHub App auth, which @ref0/github's App tests sign JWTs and mint installation
|
|
46
|
+
# tokens with, as a CI job would. MIT.
|
|
47
|
+
'@octokit/auth-app': 8.3.1
|
|
48
|
+
# Octokit's request, which the App tests point at the handler's fetch for auth-app. MIT.
|
|
49
|
+
'@octokit/request': 10.0.16
|
|
50
|
+
# Octokit's webhook signature check, which @ref0/github's webhook tests verify deliveries with.
|
|
51
|
+
# MIT.
|
|
52
|
+
'@octokit/webhooks': 14.2.0
|
|
53
|
+
# The app's diff view: virtualized, highlighted by Shiki, which only the browser loads. Apache-2.0.
|
|
54
|
+
'@pierre/diffs': 1.6.4
|
|
55
|
+
# Folder, submodule and symlink icons on the code pages and in the diff headers. Apache-2.0. A
|
|
56
|
+
# 2.0 beta, pinned: 0.9.0, the newest release, imports without extensions, which Node can't load.
|
|
57
|
+
'@pierre/icons': 2.0.0-beta.6
|
|
58
|
+
# The code pages' file tree: path-first, virtualized, loading a folder as it opens, and the
|
|
59
|
+
# coloured file icons it draws, which the file lists and diff headers draw too. Apache-2.0, with
|
|
60
|
+
# MIT code from headless-tree, its NOTICE says; it brings preact 11's beta, pinned.
|
|
61
|
+
'@pierre/trees': 1.0.0
|
|
62
|
+
# The app's Markdown renderer: words, a WebAssembly parser, with hooks for GitHub's alerts,
|
|
63
|
+
# anchors, references and URLs (Q213). Apache-2.0.
|
|
64
|
+
'@pierre/words': 0.3.0
|
|
65
|
+
'@ref0/workspace': 0.4.0
|
|
66
|
+
'@tailwindcss/vite': 4.3.5
|
|
67
|
+
# The app's stack: TanStack Start, its router and Query, and React, as spike F ran them, at the
|
|
68
|
+
# newest releases past pnpm's minimum release age.
|
|
69
|
+
'@tanstack/react-query': 5.108.0
|
|
70
|
+
'@tanstack/react-router': 1.170.46
|
|
71
|
+
# The router's integration with Query: the server's page sends the queries its loaders read, so
|
|
72
|
+
# the browser hydrates from the same data. MIT.
|
|
73
|
+
'@tanstack/react-router-ssr-query': 1.167.3
|
|
74
|
+
'@tanstack/react-start': 1.169.5
|
|
75
|
+
# hast's types, for the app's Markdown tests, which read renders as hast. MIT.
|
|
76
|
+
'@types/hast': 3.0.5
|
|
77
|
+
# libSQL's client, which a host passes to @ref0/infra/turso's turso() as createClient, and its
|
|
78
|
+
# tests open local files with. MIT.
|
|
79
|
+
'@libsql/client': 0.18.0
|
|
80
|
+
'@libsql/kysely-libsql': 0.4.1
|
|
81
|
+
# better-sqlite3's types, for @ref0/infra/sqlite's tests over it. MIT.
|
|
82
|
+
'@types/better-sqlite3': 9.6.0
|
|
83
|
+
'@types/node': 24.19.2
|
|
84
|
+
# pg's types, for @ref0/infra/postgres's `listen` and its tests. MIT.
|
|
85
|
+
'@types/pg': 8.23.1
|
|
86
|
+
'@types/react': 19.3.0
|
|
87
|
+
# semver's types, for ref0-git's property over npm's version ranges, beside semver. MIT.
|
|
88
|
+
'@types/semver': 7.8.0
|
|
89
|
+
'@types/react-dom': 19.3.0
|
|
90
|
+
# Vercel Blob's SDK, which @ref0/infra/vercel's bucket wraps: V2 measured 2.9.0. Apache-2.0.
|
|
91
|
+
'@vercel/blob': 2.9.0
|
|
92
|
+
'@vitejs/plugin-react': 6.3.0
|
|
93
|
+
# Vercel Queues' client, which @ref0/infra/vercel's wake-up sends its messages with, at the release
|
|
94
|
+
# spike V1 ran. Apache-2.0.
|
|
95
|
+
'@vercel/queue': 0.11.0
|
|
96
|
+
# A JSON Schema validator, for ref0-git's test of the vercel.json init writes against Vercel's
|
|
97
|
+
# published schema. MIT.
|
|
98
|
+
ajv: 8.20.0
|
|
99
|
+
# The diff view's own diff of two blobs, which stops at a time limit, at the release
|
|
100
|
+
# @pierre/diffs pins. BSD-3-Clause.
|
|
101
|
+
diff: 9.0.0
|
|
102
|
+
# Exact, as ref0 pins it: npm ignores pnpm's lockfile, so a range would let a consumer pull a
|
|
103
|
+
# newer Effect than the one tested.
|
|
104
|
+
effect: 4.1.4
|
|
105
|
+
# Postgres 17's binaries, which @ref0/infra/postgres's tests start a server from, with no Docker.
|
|
106
|
+
# The package is MIT, and the binaries in its platform packages are under the PostgreSQL License.
|
|
107
|
+
# The tests never import it: on `beforeExit` it calls `process.exit(0)`.
|
|
108
|
+
embedded-postgres: 17.11.0-beta.19
|
|
109
|
+
# The app's people, sign-up and sessions, over D1 through its own Kysely dialect: 1.7.19, published
|
|
110
|
+
# 10 Nov 2026 (Q639), whose username plugin checks a login on a sign-up's transaction, not on a
|
|
111
|
+
# second connection beside it. Its username plugin is the login. No install scripts. MIT.
|
|
112
|
+
better-auth: 1.7.19
|
|
113
|
+
# Better Auth's passkeys, at its own release, over @simplewebauthn/server and /browser. No install
|
|
114
|
+
# scripts. MIT.
|
|
115
|
+
'@better-auth/passkey': 1.7.19
|
|
116
|
+
# The query builder Better Auth's adapter runs on, at the release it resolves: a platform's file hands
|
|
117
|
+
# the app's people a Kysely dialect, such as libSQL's or Postgres's. MIT.
|
|
118
|
+
kysely: 0.29.9
|
|
119
|
+
# A SQLite driver @ref0/infra/sqlite's conformance runs on, beside node:sqlite. MIT.
|
|
120
|
+
better-sqlite3: 13.0.3
|
|
121
|
+
# bun:sqlite's types, which @ref0/infra/sqlite's type test checks its database shape against. MIT.
|
|
122
|
+
bun-types: 1.4.4
|
|
123
|
+
# A DOM for the app's mounted tests, at ref0's version. MIT.
|
|
124
|
+
happy-dom: 21.0.4
|
|
125
|
+
# IndexedDB in Node, which the app's saved-read tests run code/saved-reads.ts's store on, since
|
|
126
|
+
# happy-dom has none. 6.2.7, published 30 Oct 2026: no dependencies, no install scripts, no
|
|
127
|
+
# network or `process` use, and no eval but two `Function` calls on fixed strings, which find the
|
|
128
|
+
# global under jsdom. Apache-2.0.
|
|
129
|
+
fake-indexeddb: 6.2.7
|
|
130
|
+
# HTML read as hast, which the app's Markdown tests compare GitHub's render with. MIT.
|
|
131
|
+
hast-util-from-html: 2.0.3
|
|
132
|
+
# The app's icons, at ref0's version. ISC.
|
|
133
|
+
lucide-react: 1.74.0
|
|
134
|
+
# The app's fonts, from its shadcn preset: Inter for text and Geist for headings, bundled. OFL-1.1.
|
|
135
|
+
'@fontsource-variable/geist': 5.3.0
|
|
136
|
+
'@fontsource-variable/inter': 5.3.0
|
|
137
|
+
# A pack's zlib members inflated one at a time, through its low-level API alone, in @ref0/git's
|
|
138
|
+
# `protocol/bytes/inflate.ts`, which reports the input each consumed. pako 3 exports no
|
|
139
|
+
# low-level API.
|
|
140
|
+
nitro: 3.0.261103-rc
|
|
141
|
+
pako: 2.1.0
|
|
142
|
+
# node-postgres: the pool @ref0/infra/postgres's tests run on, and the client its `listen` opens,
|
|
143
|
+
# an optional peer loaded only when `listen` is given. MIT.
|
|
144
|
+
pg: 8.23.1
|
|
145
|
+
# The matcher Next.js 16.4.6 compiles next.config's rewrites with, which it bundles at this
|
|
146
|
+
# release: ref0-git's tests read init's rewrite with it, as Next does. MIT.
|
|
147
|
+
path-to-regexp: 6.3.0
|
|
148
|
+
# The h3 Nuxt 4.6 serves with: ref0-git's tests run init's Nuxt routes and middleware through its
|
|
149
|
+
# toWebRequest, as Nitro's Node server does. MIT.
|
|
150
|
+
h3: 1.15.11
|
|
151
|
+
class-variance-authority: 0.7.1
|
|
152
|
+
# shadcn's `cn`: Tailwind classes merged, at ref0's version. MIT.
|
|
153
|
+
cn: 0.5.2
|
|
154
|
+
# shadcn's `command`, the list the app's command palette filters and moves through: cmdk, the
|
|
155
|
+
# one the registry's component is built on. MIT.
|
|
156
|
+
cmdk: 1.1.1
|
|
157
|
+
# The app's REST clients, typed by OpenAPI: GitHub's by @octokit/openapi-types, and Git's by
|
|
158
|
+
# types `openapi-typescript` writes from its OpenAPI document. MIT.
|
|
159
|
+
openapi-fetch: 0.17.0
|
|
160
|
+
openapi-react-query: 0.5.4
|
|
161
|
+
openapi-typescript: 7.13.0
|
|
162
|
+
# Mermaid drawn as SVG on the server, with no DOM: the app's diagrams, in its Markdown. MIT.
|
|
163
|
+
pele: 1.13.0
|
|
164
|
+
react: 19.3.1
|
|
165
|
+
# shadcn's Calendar, which a new token's custom expiry is picked in, and the calendar-day math it
|
|
166
|
+
# runs on, which counts that expiry's days. MIT.
|
|
167
|
+
date-fns: 4.4.0
|
|
168
|
+
react-day-picker: 10.0.2
|
|
169
|
+
react-dom: 19.3.1
|
|
170
|
+
# Rolldown, the bundler Alchemy's Workers build with: for examples/git-alchemy's test that
|
|
171
|
+
# @ref0/git/xdiff.wasm resolves as Alchemy's Worker bundle does, at Alchemy's own version. MIT.
|
|
172
|
+
rolldown: 1.2.16
|
|
173
|
+
# npm's version ranges, for ref0-git's property that `init` reads a framework's major from its
|
|
174
|
+
# package.json spec as npm does. ISC. At the release already in the lockfile.
|
|
175
|
+
semver: 7.8.6
|
|
176
|
+
# shadcn's CLI, which copies the app's components, and its `tailwind.css`. MIT.
|
|
177
|
+
shadcn: 4.23.0
|
|
178
|
+
# Toasts, through shadcn's `sonner` component in the app. MIT.
|
|
179
|
+
sonner: 2.0.8
|
|
180
|
+
# Tailwind, which styles shadcn's components. MIT.
|
|
181
|
+
tailwindcss: 4.3.5
|
|
182
|
+
tw-animate-css: 1.4.0
|
|
183
|
+
# graphql-js, @ref0/github's GraphQL executor: it parses, validates and runs a query against the
|
|
184
|
+
# served schema, and answers introspection. MIT. On 16, the line @octokit/graphql-schema depends
|
|
185
|
+
# on, so the tests and the executor share one copy.
|
|
186
|
+
graphql: 16.15.0
|
|
187
|
+
# GitHub's heading anchors, which the app's Markdown gives a file's headings. ISC.
|
|
188
|
+
github-slugger: 2.0.0
|
|
189
|
+
# A TLA+ model checker in TypeScript, for the models in verification/. MIT.
|
|
190
|
+
tla-ts: 0.0.10
|
|
191
|
+
tsrs: 7.1.0-beta.tsrs2
|
|
192
|
+
typescript: 7.0.2
|
|
193
|
+
vite-plus: 1.7.0
|
|
194
|
+
# The Vitest that Vite+ 1.7.0 bundles, `vp --version`'s, for `@effect/vitest`'s peer. Moves with
|
|
195
|
+
# `vite-plus`.
|
|
196
|
+
vitest: 5.1.0
|
|
197
|
+
# A YAML parser for scripts/detect-tables.ts, which reads linguist's tables into
|
|
198
|
+
# @ref0/github's language table. ISC.
|
|
199
|
+
yaml: 2.9.1
|
|
200
|
+
# Runs @ref0/infra/cloudflare's objects in workerd for its tests, through `createTestHarness`.
|
|
201
|
+
wrangler: 4.163.0
|
|
202
|
+
|
|
203
|
+
# Vite+ is Vite here: Vitest, which Vite+ bundles, asks for Vite as its peer, and gets Vite+'s core.
|
|
204
|
+
overrides:
|
|
205
|
+
vite@*: npm:@voidzero-dev/vite-plus-core@8.3.8000
|
|
206
|
+
vitest@*: 'catalog:'
|
|
207
|
+
|
|
208
|
+
# wrangler's: esbuild fetches its binary, and workerd its runtime, on install. better-sqlite3
|
|
209
|
+
# fetches or builds its native module. Each Postgres binaries' package restores its symlinks: CI's
|
|
210
|
+
# platform and the maintainers' Macs.
|
|
211
|
+
allowBuilds:
|
|
212
|
+
'@embedded-postgres/darwin-arm64': true
|
|
213
|
+
'@embedded-postgres/linux-x64': true
|
|
214
|
+
better-sqlite3: true
|
|
215
|
+
esbuild: true
|
|
216
|
+
workerd: true
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"allowImportingTsExtensions": true,
|
|
5
|
+
"allowUnreachableCode": false,
|
|
6
|
+
"allowUnusedLabels": false,
|
|
7
|
+
// `@ref0/git/testing` and `@ref0/infra/testing` are mapped under this condition alone, so the
|
|
8
|
+
// workspace's tests resolve them and nothing outside it does: `vite.config.ts` gives the tests
|
|
9
|
+
// the same.
|
|
10
|
+
"customConditions": ["@ref0/source"],
|
|
11
|
+
// Only syntax Node can strip, since a worker thread loads `@ref0/infra`'s and a host's source
|
|
12
|
+
// in Node without a bundler.
|
|
13
|
+
"erasableSyntaxOnly": true,
|
|
14
|
+
"exactOptionalPropertyTypes": true,
|
|
15
|
+
"isolatedModules": true,
|
|
16
|
+
"module": "NodeNext",
|
|
17
|
+
"moduleDetection": "force",
|
|
18
|
+
"moduleResolution": "NodeNext",
|
|
19
|
+
"noEmit": true,
|
|
20
|
+
"noFallthroughCasesInSwitch": true,
|
|
21
|
+
"noImplicitOverride": true,
|
|
22
|
+
"noImplicitReturns": true,
|
|
23
|
+
"noUncheckedIndexedAccess": true,
|
|
24
|
+
"noUnusedLocals": true,
|
|
25
|
+
"noUnusedParameters": true,
|
|
26
|
+
"skipLibCheck": true,
|
|
27
|
+
"strict": true,
|
|
28
|
+
"target": "ES2023",
|
|
29
|
+
"verbatimModuleSyntax": true,
|
|
30
|
+
// The Effect language service: its rules, which the type check reports through tsrs
|
|
31
|
+
// (`pnpm run check:types`) and editors through TypeScript. Effect's defaults that are errors or
|
|
32
|
+
// warnings are errors, and its suggestions are off. Its `overrides` add Effect code's own.
|
|
33
|
+
"plugins": [
|
|
34
|
+
{
|
|
35
|
+
"name": "@effect/language-service",
|
|
36
|
+
"includeSuggestionsInTsc": false,
|
|
37
|
+
"diagnosticSeverity": {
|
|
38
|
+
"classSelfMismatch": "error",
|
|
39
|
+
"duplicatePackage": "error",
|
|
40
|
+
"effectFnIife": "error",
|
|
41
|
+
"effectFnImplicitAny": "error",
|
|
42
|
+
"effectGenUsesAdapter": "error",
|
|
43
|
+
"effectInFailure": "error",
|
|
44
|
+
"effectInVoidSuccess": "error",
|
|
45
|
+
"experimentalApiUsage": "error",
|
|
46
|
+
"floatingEffect": "error",
|
|
47
|
+
"floatingEffectInVitest": "error",
|
|
48
|
+
"genericEffectServices": "error",
|
|
49
|
+
"globalErrorInEffectCatch": "error",
|
|
50
|
+
"globalErrorInEffectFailure": "error",
|
|
51
|
+
"layerMergeAllWithDependencies": "error",
|
|
52
|
+
"lazyPromiseInEffectSync": "error",
|
|
53
|
+
"missingEffectContext": "error",
|
|
54
|
+
"missingEffectError": "error",
|
|
55
|
+
"missingLayerContext": "error",
|
|
56
|
+
"missingReturnYieldStar": "error",
|
|
57
|
+
"missingStarInYieldEffectGen": "error",
|
|
58
|
+
"multipleEffectProvide": "error",
|
|
59
|
+
"nonObjectEffectServiceType": "error",
|
|
60
|
+
"obsoleteMatchImport": "error",
|
|
61
|
+
"obsoleteSchemaImport": "error",
|
|
62
|
+
"outdatedApi": "error",
|
|
63
|
+
"overriddenSchemaConstructor": "error",
|
|
64
|
+
"promiseInEffectSuccess": "error",
|
|
65
|
+
"schemaClassObjectLiteral": "error",
|
|
66
|
+
"schemaLiteralNonFinite": "error",
|
|
67
|
+
"schemaOpaqueInstanceMember": "error",
|
|
68
|
+
"scopeInLayerEffect": "error",
|
|
69
|
+
"unknownInEffectCatch": "error",
|
|
70
|
+
"unstableApiUsage": "error",
|
|
71
|
+
"anyUnknownInErrorContext": "off",
|
|
72
|
+
"unsafeEffectTypeAssertion": "off",
|
|
73
|
+
"errorPayloadShadowsName": "off",
|
|
74
|
+
"schemaClassMissingBrand": "off"
|
|
75
|
+
},
|
|
76
|
+
// Rules for some files only, each by its path from the root. A glob names files, as
|
|
77
|
+
// `dir/**/*`: Effect matches no file to `dir/**`.
|
|
78
|
+
"overrides": [
|
|
79
|
+
{
|
|
80
|
+
// The packages are Effect code: they read time, randomness, logs, HTTP, JSON and the
|
|
81
|
+
// platform through Effect, and keep their errors and requirements typed. The root's
|
|
82
|
+
// tooling and models aren't.
|
|
83
|
+
"include": ["packages/*/src/**/*"],
|
|
84
|
+
"options": {
|
|
85
|
+
"diagnosticSeverity": {
|
|
86
|
+
"anyUnknownInErrorContext": "error",
|
|
87
|
+
"cryptoRandomUUID": "error",
|
|
88
|
+
"cryptoRandomUUIDInEffect": "error",
|
|
89
|
+
"globalConsole": "error",
|
|
90
|
+
"globalConsoleInEffect": "error",
|
|
91
|
+
"globalDate": "error",
|
|
92
|
+
"globalDateInEffect": "error",
|
|
93
|
+
"globalFetch": "error",
|
|
94
|
+
"globalFetchInEffect": "error",
|
|
95
|
+
"globalJsonInEffect": "error",
|
|
96
|
+
"globalRandom": "error",
|
|
97
|
+
"globalRandomInEffect": "error",
|
|
98
|
+
"globalTimers": "error",
|
|
99
|
+
"globalTimersInEffect": "error",
|
|
100
|
+
"leakingRequirements": "error",
|
|
101
|
+
"missingEffectServiceDependency": "error",
|
|
102
|
+
"nodeBuiltinImport": "error",
|
|
103
|
+
"schemaSyncInEffect": "error",
|
|
104
|
+
"unsafeEffectTypeAssertion": "error"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
// Tests run through `@effect/vitest`, and property tests generate their input with
|
|
110
|
+
// `effect/Arbitrary`, as the `fuzzing` skill says, beside the `testing/` folders that
|
|
111
|
+
// help them. Effect marks both unstable; the catalog pins `effect`, so an upgrade that
|
|
112
|
+
// changes them fails to compile here first.
|
|
113
|
+
"include": [
|
|
114
|
+
"packages/*/src/**/*.test.ts",
|
|
115
|
+
"packages/*/src/**/testing/*.ts",
|
|
116
|
+
"apps/*/src/**/*.test.ts",
|
|
117
|
+
"bench/src/**/*.test.ts",
|
|
118
|
+
"scripts/**/*.test.ts",
|
|
119
|
+
"verification/**/*.test.ts"
|
|
120
|
+
],
|
|
121
|
+
"options": { "diagnosticSeverity": { "unstableApiUsage": "off" } }
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
}
|
package/dist/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import * as Stream from "effect/Stream";
|
|
3
|
+
import * as ChildProcess from "effect/process/ChildProcess";
|
|
4
|
+
import * as ChildProcessSpawner from "effect/process/ChildProcessSpawner";
|
|
5
|
+
import * as Stdio from "effect/Stdio";
|
|
6
|
+
// src/cli/child.ts
|
|
7
|
+
/** How long a command `init` runs has to stop once a cancel reaches it. */
|
|
8
|
+
const stopMs = 1e4;
|
|
9
|
+
/** The signal Node's spawner names when a child ends by one, rather than with a status. */
|
|
10
|
+
const signalled = (error) => /receipt of signal: '([A-Z0-9]+)'/.exec(error.message)?.[1];
|
|
11
|
+
/**
|
|
12
|
+
* `argv` run in `cwd`, as `init` runs a package manager or a create command: stdin closed, so it
|
|
13
|
+
* can't prompt, and its output on stderr, so stdout holds only the answer. A cancel sends it
|
|
14
|
+
* SIGINT, and SIGKILL if it hasn't stopped within `stopMs`.
|
|
15
|
+
*/
|
|
16
|
+
const runChild = Effect.fnUntraced(function* (argv, cwd) {
|
|
17
|
+
const [command, ...args] = argv;
|
|
18
|
+
const spawner = yield* ChildProcessSpawner.ChildProcessSpawner;
|
|
19
|
+
const stdio = yield* Stdio.Stdio;
|
|
20
|
+
const started = ChildProcess.make(command, args, {
|
|
21
|
+
cwd,
|
|
22
|
+
stdin: "ignore",
|
|
23
|
+
stdout: "pipe",
|
|
24
|
+
stderr: "pipe",
|
|
25
|
+
killSignal: "SIGINT",
|
|
26
|
+
forceKillAfter: stopMs
|
|
27
|
+
});
|
|
28
|
+
const ran = Effect.gen(function* () {
|
|
29
|
+
const child = yield* spawner.spawn(started);
|
|
30
|
+
const relayed = Stream.merge(child.stdout, child.stderr).pipe(Stream.run(stdio.stderr()), Effect.ignore);
|
|
31
|
+
const [, exit] = yield* Effect.all([relayed, child.exitCode], { concurrency: "unbounded" });
|
|
32
|
+
return {
|
|
33
|
+
exit,
|
|
34
|
+
signal: null
|
|
35
|
+
};
|
|
36
|
+
});
|
|
37
|
+
return yield* Effect.scoped(ran).pipe(Effect.catch((error) => Effect.succeed({
|
|
38
|
+
exit: null,
|
|
39
|
+
signal: signalled(error) ?? null
|
|
40
|
+
})));
|
|
41
|
+
});
|
|
42
|
+
export { runChild, stopMs };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { eventsCommand } from "./events.mjs";
|
|
2
|
+
import { JsonFlag, NonInteractiveFlag } from "./output.mjs";
|
|
3
|
+
import { queueCommand } from "./queue.mjs";
|
|
4
|
+
import { reposCommand, workCommand } from "./repos.mjs";
|
|
5
|
+
import { setupCommands } from "./setup.mjs";
|
|
6
|
+
import { signInCommands } from "./sign-in.mjs";
|
|
7
|
+
import { tokensCommand } from "./tokens.mjs";
|
|
8
|
+
import * as Command from "effect/cli/Command";
|
|
9
|
+
// src/cli/commands.ts
|
|
10
|
+
/**
|
|
11
|
+
* `ref0-git`'s commands, as `npx ref0-git` parses them. `ref0-git.ts` runs them, at the one place a
|
|
12
|
+
* run ends; here they're a value a test can run with services of its own.
|
|
13
|
+
*/
|
|
14
|
+
const ref0Git = Command.make("ref0-git").pipe(Command.withDescription("Git hosting from the terminal: sign in, set up and manage a host (experimental)"), Command.withSubcommands([
|
|
15
|
+
...setupCommands,
|
|
16
|
+
...signInCommands,
|
|
17
|
+
reposCommand,
|
|
18
|
+
tokensCommand,
|
|
19
|
+
queueCommand,
|
|
20
|
+
workCommand,
|
|
21
|
+
eventsCommand
|
|
22
|
+
]), Command.withGlobalFlags([JsonFlag, NonInteractiveFlag]));
|
|
23
|
+
export { ref0Git };
|