| 1 | import { projectText } from "../i18n/project"; |
| 2 | import type { LocalizedText } from "./vocabulary"; |
| 3 | import { REPO_ISSUES_URL, REPO_URL } from "../i18n/links"; |
| 4 | |
| 5 | const DOCS = `${REPO_URL}/blob/main/docs`; |
| 6 | const MILESTONE = `${REPO_URL}/milestone`; |
| 7 | const DISCUSSIONS = `${REPO_URL}/discussions`; |
| 8 | |
| 9 | export interface ProjectLink { |
| 10 | label: LocalizedText; |
| 11 | href: string; |
| 12 | } |
| 13 | |
| 14 | export interface ProjectGoal { |
| 15 | title: LocalizedText; |
| 16 | body: LocalizedText; |
| 17 | open: LocalizedText; |
| 18 | links: ProjectLink[]; |
| 19 | } |
| 20 | |
| 21 | const issue = (number: number): ProjectLink => ({ |
| 22 | label: { en: `Issue ${number}`, zh: `Issue ${number}` }, |
| 23 | href: `${REPO_ISSUES_URL}/${number}`, |
| 24 | }); |
| 25 | |
| 26 | export const PROJECT_GOALS: ProjectGoal[] = [ |
| 27 | { |
| 28 | title: projectText("oneEngineBehindEverySurface"), |
| 29 | body: projectText("theTerminalCodewhaleExecTheLocalBrowser"), |
| 30 | open: projectText("theLargestCratesStillNeedToBe"), |
| 31 | links: [issue(5316), issue(4986)], |
| 32 | }, |
| 33 | { |
| 34 | title: projectText("everyModelIsAPeer"), |
| 35 | body: projectText("useABuiltInProviderAnyOpenAI"), |
| 36 | open: projectText("providerBehaviorStillNeedsToMoveInto"), |
| 37 | links: [issue(5092), { label: projectText("providerList"), href: `${DOCS}/PROVIDERS.md` }], |
| 38 | }, |
| 39 | { |
| 40 | title: projectText("youStayInControl"), |
| 41 | body: projectText("codewhaleAsksBeforeItActsOutsideWhat"), |
| 42 | open: projectText("windowsStillHasNoSandboxApprovalPrompts"), |
| 43 | links: [{ label: projectText("sandboxGuide"), href: `${DOCS}/SANDBOX.md` }], |
| 44 | }, |
| 45 | { |
| 46 | title: projectText("manyAgentsWorkInOnePlace"), |
| 47 | body: projectText("splitAJobAcrossSubAgentsA"), |
| 48 | open: projectText("otherCodingAgentsCannotRunInsideCodewhale"), |
| 49 | links: [issue(6013), issue(7206)], |
| 50 | }, |
| 51 | { |
| 52 | title: projectText("bringWhatYouAlreadyHave"), |
| 53 | body: projectText("codewhaleReadsAGENTSMdImportsClaudeCode"), |
| 54 | open: projectText("deepseekHarnessPluginsAreNotYetFully"), |
| 55 | links: [{ label: projectText("compatibilityChecklist"), href: `${DOCS}/DSH_PLUGIN_COMPAT.md` }], |
| 56 | }, |
| 57 | { |
| 58 | title: projectText("itWorksInYourLanguageOnYour"), |
| 59 | body: projectText("theTerminalTheREADMEAndThisSite"), |
| 60 | open: projectText("moreTranslationsAreNeededAndInputMethods"), |
| 61 | links: [ |
| 62 | { label: projectText("localizationMatrix"), href: `${DOCS}/LOCALIZATION.md` }, |
| 63 | issue(6804), |
| 64 | ], |
| 65 | }, |
| 66 | { |
| 67 | title: projectText("aProjectThatHelpsBuildItself"), |
| 68 | body: projectText("codewhaleIsUsedToWorkOnCodewhale"), |
| 69 | open: projectText("memoryAcrossSessionsAndSkillsLearnedWith"), |
| 70 | links: [issue(6050), issue(5860)], |
| 71 | }, |
| 72 | ]; |
| 73 | |
| 74 | export type ReleaseState = "progress" | "planned" | "later"; |
| 75 | |
| 76 | export const RELEASE_STATE_LABEL: Record<ReleaseState, LocalizedText> = { |
| 77 | progress: projectText("inProgress"), |
| 78 | planned: projectText("planned"), |
| 79 | later: projectText("later"), |
| 80 | }; |
| 81 | |
| 82 | export const PROJECT_RELEASES: { name: string; state: ReleaseState; body: LocalizedText; href: string }[] = [ |
| 83 | { |
| 84 | name: "0.10.5", |
| 85 | state: "progress", |
| 86 | body: projectText("thisReleaseSimplifiesTheWholeProduct"), |
| 87 | href: `${MILESTONE}/76`, |
| 88 | }, |
| 89 | { |
| 90 | name: "0.11", |
| 91 | state: "planned", |
| 92 | body: projectText("thisReleaseReworksTheArchitectureWithSmaller"), |
| 93 | href: `${MILESTONE}/72`, |
| 94 | }, |
| 95 | { |
| 96 | name: "1.0", |
| 97 | state: "later", |
| 98 | body: projectText("thisReleaseBringsTheDesktopAppTo"), |
| 99 | href: `${MILESTONE}/66`, |
| 100 | }, |
| 101 | ]; |
| 102 | |
| 103 | export const PROJECT_COPY = { |
| 104 | goalsLabel: projectText("roadmap"), |
| 105 | goalsHeading: projectText("whereCodewhaleIsGoing"), |
| 106 | goalsScope: projectText("codewhaleHasSevenLongTermGoalsAnd"), |
| 107 | goalsListHeading: projectText("sevenLongTermGoals"), |
| 108 | goalsListScope: projectText("eachOneNamesWhatIsStillOpen"), |
| 109 | goalsLink: projectText("readTheRoadmap"), |
| 110 | goalOpen: projectText("stillOpen"), |
| 111 | |
| 112 | releasesHeading: projectText("whatEachReleaseIsFor"), |
| 113 | releasesScope: projectText("aMilestoneIsAPlanNotA"), |
| 114 | |
| 115 | liveLabel: projectText("liveFromGitHub"), |
| 116 | liveHeading: projectText("meetThePeopleBuildingCodewhale"), |
| 117 | liveScope: projectText("codewhaleImprovesThroughThePeopleWhoUse"), |
| 118 | liveLink: projectText("allActivity"), |
| 119 | mergedHeading: projectText("justMerged"), |
| 120 | mergedAge: projectText("mergedAge"), |
| 121 | firstContribution: projectText("firstContribution"), |
| 122 | statStars: projectText("stars"), |
| 123 | statContributors: projectText("contributors"), |
| 124 | statPulls: projectText("openPullRequests"), |
| 125 | statIssues: projectText("openIssues"), |
| 126 | facesAll: projectText("allCountContributors"), |
| 127 | loopFeedback: projectText("giveFeedback"), |
| 128 | loopHelp: projectText("seeWhereToHelp"), |
| 129 | |
| 130 | mergedPageHeading: projectText("mergedInTheLastFewDays"), |
| 131 | mergedPageScope: projectText("eachOfThesePullRequestsMergedUnder"), |
| 132 | openNowHeading: projectText("pickUpSomethingOpenNow"), |
| 133 | openNowScope: projectText("theseIssuesCarryTheHelpWantedLabel"), |
| 134 | milestoneProgress: projectText("closedOfTotalClosed"), |
| 135 | |
| 136 | routesHeading: projectText("findWhereYoursGoes"), |
| 137 | routesScope: projectText("ifYouAreNotSureOpenAn"), |
| 138 | featureLabel: projectText("newFeatures"), |
| 139 | featureHeading: projectText("startAFeatureWithAnIssue"), |
| 140 | featureScope: projectText("theQuestionsThatDecideAFeatureAre"), |
| 141 | featureSteps: [ |
| 142 | { |
| 143 | title: projectText("openAFeatureRequest"), |
| 144 | body: projectText("sayWhatYouAreTryingToDo"), |
| 145 | }, |
| 146 | { |
| 147 | title: projectText("agreeOnTheShape"), |
| 148 | body: projectText("aMaintainerAnswersWithWhatFitsOr"), |
| 149 | }, |
| 150 | { |
| 151 | title: projectText("shareYourBranchOnTheIssue"), |
| 152 | body: projectText("addADesignAFailingTestOrA"), |
| 153 | }, |
| 154 | ], |
| 155 | standingHeading: projectText("sendTheseWithoutAsking"), |
| 156 | standingScope: projectText("theseStandingProjectsAreAlwaysOpenAnd"), |
| 157 | roadmapHeading: projectText("seeWhereTheProjectIsHeaded"), |
| 158 | statusLabel: projectText("status"), |
| 159 | }; |
| 160 | |
| 161 | export interface ContributionRoute { |
| 162 | have: LocalizedText; |
| 163 | place: LocalizedText; |
| 164 | href: string; |
| 165 | } |
| 166 | |
| 167 | const NEW_ISSUE = `${REPO_ISSUES_URL}/new`; |
| 168 | |
| 169 | export const CONTRIBUTION_ROUTES: ContributionRoute[] = [ |
| 170 | { |
| 171 | have: projectText("aBugOrBehaviorThatSurprisedYou"), |
| 172 | place: projectText("bugReport"), |
| 173 | href: `${NEW_ISSUE}?template=bug_report.yml`, |
| 174 | }, |
| 175 | { |
| 176 | have: projectText("anIdeaOrAFeatureYouWant"), |
| 177 | place: projectText("featureRequest"), |
| 178 | href: `${NEW_ISSUE}?template=feature_request.yml`, |
| 179 | }, |
| 180 | { |
| 181 | have: projectText("feedbackOnHowItLooksReadsOr"), |
| 182 | place: projectText("feedbackForm"), |
| 183 | href: `${NEW_ISSUE}?template=feedback.yml`, |
| 184 | }, |
| 185 | { |
| 186 | have: projectText("aQuestion"), |
| 187 | place: projectText("qAOrDiscord"), |
| 188 | href: `${DISCUSSIONS}/categories/q-a`, |
| 189 | }, |
| 190 | { |
| 191 | have: projectText("aSecurityProblem"), |
| 192 | place: projectText("privateAdvisory"), |
| 193 | href: `${REPO_URL}/security/advisories/new`, |
| 194 | }, |
| 195 | { |
| 196 | have: projectText("aFixATranslationAProviderOr"), |
| 197 | place: projectText("contributionIssue"), |
| 198 | href: `${NEW_ISSUE}?template=contribution.yml`, |
| 199 | }, |
| 200 | { |
| 201 | have: projectText("aPluginCatalogEntry"), |
| 202 | place: projectText("pluginMarketplace"), |
| 203 | href: "https://github.com/codewhale-hq/codewhale-plugin-marketplace", |
| 204 | }, |
| 205 | { |
| 206 | have: projectText("aNewFeature"), |
| 207 | place: projectText("issueFirst"), |
| 208 | href: `${NEW_ISSUE}?template=feature_request.yml`, |
| 209 | }, |
| 210 | ]; |
| 211 | |
| 212 | export const STANDING_PROJECTS: { title: LocalizedText; body: LocalizedText; href: string }[] = [ |
| 213 | { |
| 214 | title: projectText("translations"), |
| 215 | body: projectText("improveTheTerminalLanguagePacksTheTranslated"), |
| 216 | href: `${DOCS}/LOCALIZATION.md`, |
| 217 | }, |
| 218 | { |
| 219 | title: projectText("providersAndModels"), |
| 220 | body: projectText("addAProviderOrAModelOr"), |
| 221 | href: `${DOCS}/PROVIDERS.md`, |
| 222 | }, |
| 223 | { |
| 224 | title: projectText("documentation"), |
| 225 | body: projectText("fixATypoAnUnclearStepOr"), |
| 226 | href: `${REPO_URL}/tree/main/docs`, |
| 227 | }, |
| 228 | { |
| 229 | title: projectText("bugFixes"), |
| 230 | body: projectText("ifThereIsNoIssueYetDescribe"), |
| 231 | href: `${REPO_ISSUES_URL}?q=is%3Aissue+is%3Aopen+label%3Abug`, |
| 232 | }, |
| 233 | { |
| 234 | title: projectText("plannedWork"), |
| 235 | body: projectText("pickAnIssueLabelledHelpWantedOr"), |
| 236 | href: `${REPO_ISSUES_URL}?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22`, |
| 237 | }, |
| 238 | ]; |
| 239 |