Skip to content

Commit ba9c313

Browse files
committed
Thread regexHint through interactive path and document Mermaid palette
1 parent 67fad0b commit ba9c313

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

docs/architecture/components.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ C4Component
4141
Rel(cli, completions, "Generate<br/>script")
4242
UpdateRelStyle(cli, completions, $offsetX="-90", $offsetY="-17")
4343
44+
%% Colour palette — consistent with containers.md.
45+
%% Mermaid C4 UpdateElementStyle only accepts literal hex values (CSS variables are not supported).
46+
%% #FFCC33 = CLI / orchestration layer #9933FF = pure-function core #0000CC = border/line
4447
UpdateElementStyle(cli, $bgColor="#FFCC33", $borderColor="#0000CC", $fontColor="#000000")
4548
UpdateElementStyle(regexParser, $bgColor="#9933FF", $borderColor="#0000CC", $fontColor="#ffffff")
4649
UpdateElementStyle(aggregate, $bgColor="#9933FF", $borderColor="#0000CC", $fontColor="#ffffff")
@@ -102,6 +105,9 @@ C4Component
102105
Rel(selection, filterMatch, "Uses pattern<br/>matchers")
103106
UpdateRelStyle(selection, filterMatch, $offsetX="165", $offsetY="-25")
104107
108+
%% Colour palette — consistent with containers.md.
109+
%% Mermaid C4 UpdateElementStyle only accepts literal hex values (CSS variables are not supported).
110+
%% #FFCC33 = TUI / orchestration layer #9933FF = pure-function core #0000CC = border/line
105111
UpdateElementStyle(tui, $bgColor="#FFCC33", $borderColor="#0000CC", $fontColor="#000000")
106112
UpdateElementStyle(rows, $bgColor="#9933FF", $borderColor="#0000CC", $fontColor="#ffffff")
107113
UpdateElementStyle(filterMatch, $bgColor="#9933FF", $borderColor="#0000CC", $fontColor="#ffffff")

github-code-search.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ async function searchAction(
379379
outputType,
380380
includeArchived,
381381
opts.groupByTeamPrefix,
382+
opts.regexHint,
382383
);
383384
}
384385
}

src/tui.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export async function runInteractive(
109109
outputType: OutputType = "repo-and-matches",
110110
includeArchived = false,
111111
groupByTeamPrefix = "",
112+
regexHint = "",
112113
): Promise<void> {
113114
if (groups.length === 0) {
114115
console.log(pc.yellow("No results found."));
@@ -371,6 +372,7 @@ export async function runInteractive(
371372
buildOutput(groups, query, org, excludedRepos, excludedExtractRefs, format, outputType, {
372373
includeArchived,
373374
groupByTeamPrefix,
375+
regexHint: regexHint || undefined,
374376
}),
375377
);
376378
process.exit(0);

0 commit comments

Comments
 (0)