@promptbook/cli 0.114.0-49 → 0.114.0-50
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/README.md +3 -3
- package/apps/agents-server/src/app/globals.css +15 -0
- package/apps/agents-server/src/components/ContextMenu/ContextMenuPanel.tsx +1 -11
- package/apps/agents-server/src/utils/applicationFonts.ts +4 -25
- package/esm/index.es.js +36124 -33191
- package/esm/index.es.js.map +1 -1
- package/esm/scripts/run-codex-prompts/checks/CoderCheckExecutionError.d.ts +6 -0
- package/esm/scripts/run-codex-prompts/checks/CoderCheckFailedError.d.ts +6 -0
- package/esm/scripts/run-codex-prompts/checks/buildCheckBeforeScriptPath.d.ts +2 -0
- package/esm/scripts/run-codex-prompts/checks/createCheckBeforeRepairPrompt.d.ts +3 -1
- package/esm/scripts/run-codex-prompts/checks/runCheckBefore.d.ts +5 -0
- package/esm/scripts/run-codex-prompts/checks/runCoderCheck.d.ts +17 -0
- package/esm/scripts/run-codex-prompts/checks/runCoderCheckRepair.d.ts +40 -0
- package/esm/scripts/run-codex-prompts/checks/runPromptWithCheckFeedback.d.ts +5 -0
- package/esm/scripts/run-codex-prompts/common/createFreeDiskSpaceGuard.d.ts +3 -0
- package/esm/scripts/run-codex-prompts/common/resolveCoderProjectContext.d.ts +2 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/$spawnLoggedBashScript.d.ts +2 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/buildCoderExecutionArtifactPaths.d.ts +2 -0
- package/esm/scripts/run-codex-prompts/common/runGoScript/scriptExecutionLog.d.ts +1 -1
- package/esm/scripts/run-codex-prompts/common/sleepWithCountdown.d.ts +2 -0
- package/esm/scripts/run-codex-prompts/common/waitForSkippableWorldTimeDeadline.d.ts +1 -0
- package/esm/scripts/run-codex-prompts/common/withCoderWorkspaceLock.d.ts +9 -0
- package/esm/scripts/run-codex-prompts/git/CoderGitOperationError.d.ts +9 -0
- package/esm/scripts/run-codex-prompts/git/CoderPhasePersistence.d.ts +105 -0
- package/esm/scripts/run-codex-prompts/git/CoderPhaseRecovery.d.ts +43 -0
- package/esm/scripts/run-codex-prompts/git/buildCoderCheckCommitMessage.d.ts +11 -0
- package/esm/scripts/run-codex-prompts/git/coderCommitScope.d.ts +14 -1
- package/esm/scripts/run-codex-prompts/git/coderFinalizationFiles.d.ts +14 -0
- package/esm/scripts/run-codex-prompts/git/coderIndexLease.d.ts +11 -0
- package/esm/scripts/run-codex-prompts/git/coderRepositoryFiles.d.ts +6 -0
- package/esm/scripts/run-codex-prompts/git/coderRepositorySnapshot.d.ts +62 -0
- package/esm/scripts/run-codex-prompts/git/coderRepositoryView.d.ts +30 -0
- package/esm/scripts/run-codex-prompts/git/commitChanges.d.ts +36 -3
- package/esm/scripts/run-codex-prompts/git/gitLongPathsSupport.d.ts +1 -1
- package/esm/scripts/run-codex-prompts/git/pullLatestChanges.d.ts +3 -1
- package/esm/scripts/run-codex-prompts/git/quoteGitArgument.d.ts +5 -0
- package/esm/scripts/run-codex-prompts/git/runGitCommand.d.ts +4 -0
- package/esm/scripts/run-codex-prompts/git/runWorkspaceGitWithIndexReadRetry.d.ts +7 -0
- package/esm/scripts/run-codex-prompts/git/workingTreeChanges.d.ts +1 -1
- package/esm/scripts/run-codex-prompts/isolation/coderIsolationArtifacts.d.ts +16 -0
- package/esm/scripts/run-codex-prompts/isolation/coderIsolationIgnoredFiles.d.ts +18 -0
- package/esm/scripts/run-codex-prompts/isolation/createCoderIsolationWorktree.d.ts +1 -2
- package/esm/scripts/run-codex-prompts/isolation/mergeCoderIsolationWorktree.d.ts +5 -5
- package/esm/scripts/run-codex-prompts/isolation/preserveCoderIsolationRecovery.d.ts +3 -0
- package/esm/scripts/run-codex-prompts/isolation/runIsolatedPromptRound.d.ts +2 -2
- package/esm/scripts/run-codex-prompts/main/prepareCoderPromptExecution.d.ts +18 -0
- package/esm/scripts/run-codex-prompts/main/runCoderFix.d.ts +24 -0
- package/esm/scripts/run-codex-prompts/main/runPromptRound.d.ts +12 -2
- package/esm/scripts/run-codex-prompts/prompts/buildPromptRunTraceContent.d.ts +5 -2
- package/esm/scripts/run-codex-prompts/prompts/refreshPromptSelection.d.ts +6 -0
- package/esm/scripts/run-codex-prompts/prompts/writePromptErrorLog.d.ts +4 -0
- package/esm/scripts/run-codex-prompts/prompts/writePromptFile.d.ts +2 -0
- package/esm/scripts/run-codex-prompts/prompts/writePromptRunTrace.d.ts +2 -0
- package/esm/scripts/run-codex-prompts/server/buildCoderServerPromptResponse.d.ts +1 -1
- package/esm/scripts/run-codex-prompts/ui/CoderRunUiState.d.ts +1 -1
- package/esm/scripts/run-codex-prompts/ui/buildCoderCheckRepairUiFrame.d.ts +3 -0
- package/esm/scripts/run-codex-prompts/ui/output/CoderOutputEvent.d.ts +1 -1
- package/esm/scripts/run-codex-prompts/ui/output/CoderRunOutput.d.ts +2 -2
- package/esm/scripts/run-codex-prompts/ui/renderCoderRunUi.d.ts +4 -0
- package/esm/src/cli/cli-commands/coder/add.d.ts +7 -2
- package/esm/src/cli/cli-commands/coder/ensureCoderGitattributesFile.d.ts +13 -0
- package/esm/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +1 -1
- package/esm/src/cli/cli-commands/coder/fix.d.ts +7 -0
- package/esm/src/cli/cli-commands/coder/fix.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/fixWorkflow.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/coderCheckCliOptions.d.ts +1 -1
- package/esm/src/cli/cli-commands/common/ensureProjectTextFile.d.ts +7 -0
- package/esm/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +3 -1
- package/esm/src/cli/cli-commands/common/validateCoderRunOptions.d.ts +1 -1
- package/esm/src/cli/cli-commands/common/workspaceRepository.d.ts +12 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/cli/cli-commands/coder/add.ts +20 -3
- package/src/cli/cli-commands/coder/ensureCoderGitattributesFile.ts +25 -0
- package/src/cli/cli-commands/coder/ensureCoderGitignoreFile.ts +3 -3
- package/src/cli/cli-commands/coder/ensureCoderMarkdownFile.ts +2 -20
- package/src/cli/cli-commands/coder/fix.ts +166 -0
- package/src/cli/cli-commands/coder/fixtures/fix.cjs +29 -0
- package/src/cli/cli-commands/coder/fixtures/healthyDisk.cjs +4 -0
- package/src/cli/cli-commands/coder/getCoderInitializationCommitPaths.ts +2 -0
- package/src/cli/cli-commands/coder/init.ts +3 -1
- package/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.ts +7 -0
- package/src/cli/cli-commands/coder/planning/fixtures/coding.cjs +4 -0
- package/src/cli/cli-commands/coder/printInitializationSummary.ts +2 -0
- package/src/cli/cli-commands/coder/promptsReadmeTemplate.ts +25 -1
- package/src/cli/cli-commands/coder/run.ts +17 -8
- package/src/cli/cli-commands/coder/server.ts +9 -6
- package/src/cli/cli-commands/coder.ts +4 -0
- package/src/cli/cli-commands/common/coderCheckCliOptions.ts +7 -6
- package/src/cli/cli-commands/common/ensureProjectTextFile.ts +35 -0
- package/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.ts +13 -0
- package/src/cli/cli-commands/common/validateCoderRunOptions.ts +16 -1
- package/src/cli/cli-commands/common/workspaceRepository.ts +61 -13
- package/src/other/templates/getTemplatesPipelineCollection.ts +1825 -1089
- package/src/utils/execCommand/$execCommand.ts +2 -1
- package/src/version.ts +2 -2
- package/src/versions.txt +1 -0
- package/umd/index.umd.js +36204 -33273
- package/umd/index.umd.js.map +1 -1
- package/umd/scripts/run-codex-prompts/checks/CoderCheckExecutionError.d.ts +6 -0
- package/umd/scripts/run-codex-prompts/checks/CoderCheckFailedError.d.ts +6 -0
- package/umd/scripts/run-codex-prompts/checks/buildCheckBeforeScriptPath.d.ts +2 -0
- package/umd/scripts/run-codex-prompts/checks/createCheckBeforeRepairPrompt.d.ts +3 -1
- package/umd/scripts/run-codex-prompts/checks/runCheckBefore.d.ts +5 -0
- package/umd/scripts/run-codex-prompts/checks/runCoderCheck.d.ts +17 -0
- package/umd/scripts/run-codex-prompts/checks/runCoderCheckRepair.d.ts +40 -0
- package/umd/scripts/run-codex-prompts/checks/runPromptWithCheckFeedback.d.ts +5 -0
- package/umd/scripts/run-codex-prompts/common/createFreeDiskSpaceGuard.d.ts +3 -0
- package/umd/scripts/run-codex-prompts/common/resolveCoderProjectContext.d.ts +2 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/$spawnLoggedBashScript.d.ts +2 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/buildCoderExecutionArtifactPaths.d.ts +2 -0
- package/umd/scripts/run-codex-prompts/common/runGoScript/scriptExecutionLog.d.ts +1 -1
- package/umd/scripts/run-codex-prompts/common/sleepWithCountdown.d.ts +2 -0
- package/umd/scripts/run-codex-prompts/common/waitForSkippableWorldTimeDeadline.d.ts +1 -0
- package/umd/scripts/run-codex-prompts/common/withCoderWorkspaceLock.d.ts +9 -0
- package/umd/scripts/run-codex-prompts/git/CoderGitOperationError.d.ts +9 -0
- package/umd/scripts/run-codex-prompts/git/CoderPhasePersistence.d.ts +105 -0
- package/umd/scripts/run-codex-prompts/git/CoderPhaseRecovery.d.ts +43 -0
- package/umd/scripts/run-codex-prompts/git/buildCoderCheckCommitMessage.d.ts +11 -0
- package/umd/scripts/run-codex-prompts/git/coderCommitScope.d.ts +14 -1
- package/umd/scripts/run-codex-prompts/git/coderFinalizationFiles.d.ts +14 -0
- package/umd/scripts/run-codex-prompts/git/coderIndexLease.d.ts +11 -0
- package/umd/scripts/run-codex-prompts/git/coderRepositoryFiles.d.ts +6 -0
- package/umd/scripts/run-codex-prompts/git/coderRepositorySnapshot.d.ts +62 -0
- package/umd/scripts/run-codex-prompts/git/coderRepositoryView.d.ts +30 -0
- package/umd/scripts/run-codex-prompts/git/commitChanges.d.ts +36 -3
- package/umd/scripts/run-codex-prompts/git/gitLongPathsSupport.d.ts +1 -1
- package/umd/scripts/run-codex-prompts/git/pullLatestChanges.d.ts +3 -1
- package/umd/scripts/run-codex-prompts/git/quoteGitArgument.d.ts +5 -0
- package/umd/scripts/run-codex-prompts/git/runGitCommand.d.ts +4 -0
- package/umd/scripts/run-codex-prompts/git/runWorkspaceGitWithIndexReadRetry.d.ts +7 -0
- package/umd/scripts/run-codex-prompts/git/workingTreeChanges.d.ts +1 -1
- package/umd/scripts/run-codex-prompts/isolation/coderIsolationArtifacts.d.ts +16 -0
- package/umd/scripts/run-codex-prompts/isolation/coderIsolationIgnoredFiles.d.ts +18 -0
- package/umd/scripts/run-codex-prompts/isolation/createCoderIsolationWorktree.d.ts +1 -2
- package/umd/scripts/run-codex-prompts/isolation/mergeCoderIsolationWorktree.d.ts +5 -5
- package/umd/scripts/run-codex-prompts/isolation/preserveCoderIsolationRecovery.d.ts +3 -0
- package/umd/scripts/run-codex-prompts/isolation/runIsolatedPromptRound.d.ts +2 -2
- package/umd/scripts/run-codex-prompts/main/prepareCoderPromptExecution.d.ts +18 -0
- package/umd/scripts/run-codex-prompts/main/runCoderFix.d.ts +24 -0
- package/umd/scripts/run-codex-prompts/main/runPromptRound.d.ts +12 -2
- package/umd/scripts/run-codex-prompts/prompts/buildPromptRunTraceContent.d.ts +5 -2
- package/umd/scripts/run-codex-prompts/prompts/refreshPromptSelection.d.ts +6 -0
- package/umd/scripts/run-codex-prompts/prompts/writePromptErrorLog.d.ts +4 -0
- package/umd/scripts/run-codex-prompts/prompts/writePromptFile.d.ts +2 -0
- package/umd/scripts/run-codex-prompts/prompts/writePromptRunTrace.d.ts +2 -0
- package/umd/scripts/run-codex-prompts/server/buildCoderServerPromptResponse.d.ts +1 -1
- package/umd/scripts/run-codex-prompts/ui/CoderRunUiState.d.ts +1 -1
- package/umd/scripts/run-codex-prompts/ui/buildCoderCheckRepairUiFrame.d.ts +3 -0
- package/umd/scripts/run-codex-prompts/ui/output/CoderOutputEvent.d.ts +1 -1
- package/umd/scripts/run-codex-prompts/ui/output/CoderRunOutput.d.ts +2 -2
- package/umd/scripts/run-codex-prompts/ui/renderCoderRunUi.d.ts +4 -0
- package/umd/src/cli/cli-commands/coder/add.d.ts +7 -2
- package/umd/src/cli/cli-commands/coder/ensureCoderGitattributesFile.d.ts +13 -0
- package/umd/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +1 -1
- package/umd/src/cli/cli-commands/coder/fix.d.ts +7 -0
- package/umd/src/cli/cli-commands/coder/fix.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/fixWorkflow.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/coderCheckCliOptions.d.ts +1 -1
- package/umd/src/cli/cli-commands/common/ensureProjectTextFile.d.ts +7 -0
- package/umd/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +3 -1
- package/umd/src/cli/cli-commands/common/validateCoderRunOptions.d.ts +1 -1
- package/umd/src/cli/cli-commands/common/workspaceRepository.d.ts +12 -0
- package/umd/src/version.d.ts +1 -1
package/README.md
CHANGED
|
@@ -553,7 +553,7 @@ In short: tools like Claude Code, Codex, or GitHub Copilot are the **engines**;
|
|
|
553
553
|
|
|
554
554
|
#### How the workflow works
|
|
555
555
|
|
|
556
|
-
1. `ptbk coder init` prepares the project for the coder workflow, seeds project-owned generic templates in `prompts/templates/`, creates a starter `AGENTS.md` context file, adds helper `npm run coder:*` scripts, ensures `.gitignore` ignores `/.promptbook`, and configures VS Code prompt screenshots in `prompts/screenshots/`.
|
|
556
|
+
1. `ptbk coder init` prepares the project for the coder workflow, seeds project-owned generic templates in `prompts/templates/`, creates a starter `AGENTS.md` context file, adds helper `npm run coder:*` scripts, ensures `.gitignore` ignores `node_modules` and `/.promptbook`, creates missing `.gitattributes` for LF line endings, and configures VS Code prompt screenshots in `prompts/screenshots/`.
|
|
557
557
|
2. `ptbk coder generate-boilerplates` creates prompt files in `prompts/`.
|
|
558
558
|
3. You replace placeholder `@@@` sections with real coding tasks.
|
|
559
559
|
4. `ptbk coder run` sends the next ready `[ ]` prompt to the selected coding agent and immediately marks it as in progress `[^]`, naming the harness, the model and the step which is running.
|
|
@@ -624,13 +624,13 @@ ptbk coder find-refactor-candidates --level xhigh
|
|
|
624
624
|
ptbk coder verify
|
|
625
625
|
```
|
|
626
626
|
|
|
627
|
-
`ptbk coder init` also bootstraps a starter `AGENTS.md`, adds `package.json` scripts for the four main coder commands, adds the shared `/.promptbook` temp ignore to `.gitignore`, and configures `.vscode/settings.json` so pasted images from `prompts/*.md` land in `prompts/screenshots/`.
|
|
627
|
+
`ptbk coder init` also bootstraps a starter `AGENTS.md`, adds `package.json` scripts for the four main coder commands, adds `node_modules` and the shared `/.promptbook` temp ignore to `.gitignore`, and configures `.vscode/settings.json` so pasted images from `prompts/*.md` land in `prompts/screenshots/`. It creates a missing `.gitattributes` with `* text=auto eol=lf` and preserves existing attributes.
|
|
628
628
|
|
|
629
629
|
#### What each command does
|
|
630
630
|
|
|
631
631
|
| Command | What it does |
|
|
632
632
|
| ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- | ------ | ---- | ----- | ------------------------------------------------------------------------ |
|
|
633
|
-
| `ptbk coder init` | Creates `prompts/`, `prompts/done/`, the project-generic template files materialized in `prompts/templates/` (currently `common.md`), and a starter `AGENTS.md`; ensures `.env` contains `CODING_AGENT_GIT_NAME`, `CODING_AGENT_GIT_EMAIL`, and `CODING_AGENT_GIT_SIGNING_KEY`; adds helper coder scripts to `package.json`; ensures `.gitignore` contains `/.promptbook`; and configures `.vscode/settings.json` to save pasted prompt images into `prompts/screenshots/`. |
|
|
633
|
+
| `ptbk coder init` | Creates `prompts/`, `prompts/done/`, the project-generic template files materialized in `prompts/templates/` (currently `common.md`), and a starter `AGENTS.md`; ensures `.env` contains `CODING_AGENT_GIT_NAME`, `CODING_AGENT_GIT_EMAIL`, and `CODING_AGENT_GIT_SIGNING_KEY`; adds helper coder scripts to `package.json`; ensures `.gitignore` contains `node_modules` and `/.promptbook`; creates missing `.gitattributes` with `* text=auto eol=lf`; and configures `.vscode/settings.json` to save pasted prompt images into `prompts/screenshots/`. |
|
|
634
634
|
| `ptbk coder generate-boilerplates` | Creates new prompt markdown files with fresh emoji tags so you can quickly fill in coding tasks; `--template` accepts either a built-in alias or a markdown file path relative to the project root. |
|
|
635
635
|
| `ptbk coder run` | Picks the next ready prompt, can run project checks before coding to stop or repair pre-existing failures, appends optional context, runs it through the selected coding agent, can optionally check each attempt with the project command and feed failing output back for retries, then marks success or failure, commits the result, and pushes only when `--auto-push` is enabled. |
|
|
636
636
|
| `ptbk coder find-refactor-candidates` | Scans the repository for oversized or overpacked files and writes prompt files for likely refactors; `--level <xlow | low | medium | high | xhigh | extreme>` ranges from a very benevolent scan to a very aggressive sweep. |
|
|
@@ -177,6 +177,21 @@ body {
|
|
|
177
177
|
min-height: var(--agents-server-app-height);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
+
/**
|
|
181
|
+
* Shared font variables used by both app-router and pages-router shells.
|
|
182
|
+
*
|
|
183
|
+
* The named families remain optional, with the existing system fallbacks
|
|
184
|
+
* keeping the application usable when they are not installed locally.
|
|
185
|
+
*/
|
|
186
|
+
.application-font-variables {
|
|
187
|
+
--font-barlow-condensed: 'Barlow Condensed';
|
|
188
|
+
--font-poppins: 'Poppins';
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.font-barlow-condensed {
|
|
192
|
+
font-family: var(--font-barlow-condensed), 'OpenMojiColor', 'OpenMojiBlack', Arial, Helvetica, sans-serif;
|
|
193
|
+
}
|
|
194
|
+
|
|
180
195
|
html.dark body {
|
|
181
196
|
background: radial-gradient(circle at 15% 12%, rgba(14, 165, 233, 0.16), transparent 24%),
|
|
182
197
|
radial-gradient(circle at 82% 18%, rgba(59, 130, 246, 0.12), transparent 22%),
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { Barlow_Condensed } from 'next/font/google';
|
|
4
3
|
import type { CSSProperties } from 'react';
|
|
5
4
|
import type { ComponentType } from 'react';
|
|
6
5
|
import { HeadlessLink, isSameOriginHref } from '../_utils/headlessParam';
|
|
@@ -41,15 +40,6 @@ export type ContextMenuLinkItem = {
|
|
|
41
40
|
*/
|
|
42
41
|
export type ContextMenuItem = ContextMenuDividerItem | ContextMenuActionItem | ContextMenuLinkItem;
|
|
43
42
|
|
|
44
|
-
/**
|
|
45
|
-
* Shared condensed font used by context menu panels.
|
|
46
|
-
*/
|
|
47
|
-
const barlowCondensed = Barlow_Condensed({
|
|
48
|
-
subsets: ['latin'],
|
|
49
|
-
weight: ['300', '400', '500', '600', '700'],
|
|
50
|
-
variable: '--font-barlow-condensed',
|
|
51
|
-
});
|
|
52
|
-
|
|
53
43
|
/**
|
|
54
44
|
* Props for the reusable context menu panel.
|
|
55
45
|
*/
|
|
@@ -78,7 +68,7 @@ type ContextMenuPanelProps = {
|
|
|
78
68
|
export function ContextMenuPanel({ menuItems, onClose, className = 'w-56', style }: ContextMenuPanelProps) {
|
|
79
69
|
return (
|
|
80
70
|
<div
|
|
81
|
-
className={`bg-white rounded-xl shadow-2xl border border-gray-100 py-2 overflow-y-auto animate-in fade-in slide-in-from-top-2 duration-200 ${className}
|
|
71
|
+
className={`bg-white rounded-xl shadow-2xl border border-gray-100 py-2 overflow-y-auto animate-in fade-in slide-in-from-top-2 duration-200 ${className} font-barlow-condensed`.trim()}
|
|
82
72
|
style={{ ...contextMenuViewportStyle, ...style }}
|
|
83
73
|
>
|
|
84
74
|
{menuItems.map((item, index) => {
|
|
@@ -1,28 +1,7 @@
|
|
|
1
|
-
import { Barlow_Condensed, Poppins } from 'next/font/google';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Shared Barlow Condensed font variable used across app-router and pages-router shells.
|
|
5
|
-
*/
|
|
6
|
-
const barlowCondensed = Barlow_Condensed({
|
|
7
|
-
subsets: ['latin'],
|
|
8
|
-
weight: ['300', '400', '500', '600', '700'],
|
|
9
|
-
display: 'swap',
|
|
10
|
-
fallback: ['Arial', 'Helvetica', 'sans-serif'],
|
|
11
|
-
variable: '--font-barlow-condensed',
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Shared Poppins font variable used across app-router and pages-router shells.
|
|
16
|
-
*/
|
|
17
|
-
const poppins = Poppins({
|
|
18
|
-
subsets: ['latin'],
|
|
19
|
-
weight: ['400', '500', '600', '700', '800'],
|
|
20
|
-
display: 'swap',
|
|
21
|
-
fallback: ['Arial', 'Helvetica', 'sans-serif'],
|
|
22
|
-
variable: '--font-poppins',
|
|
23
|
-
});
|
|
24
|
-
|
|
25
1
|
/**
|
|
26
2
|
* Shared font-variable class list applied to branded shells outside the root app layout.
|
|
3
|
+
*
|
|
4
|
+
* The font-family fallbacks are declared in `globals.css` instead of using
|
|
5
|
+
* `next/font/google`, so production builds do not require network access.
|
|
27
6
|
*/
|
|
28
|
-
export const APPLICATION_FONT_VARIABLE_CLASS_NAME =
|
|
7
|
+
export const APPLICATION_FONT_VARIABLE_CLASS_NAME = 'application-font-variables';
|