@cueloop/client 0.1.0-alpha.30 → 0.1.0-alpha.31
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/package.json +5 -5
- package/src/components/Breadcrumb.stories.tsx +1 -1
- package/src/components/ConfirmDialog.stories.tsx +1 -1
- package/src/components/PromptDialog.stories.tsx +2 -2
- package/src/components/ReviewPanel.stories.tsx +2 -2
- package/src/components/ReviewRail.stories.tsx +1 -1
- package/src/components/WalkWizard.tsx +3 -3
- package/src/components/primitives/Dialog.tsx +2 -1
- package/src/components/primitives/StatusBar.stories.tsx +1 -1
- package/src/components/stories.test.tsx +7 -3
- package/src/theme.ts +3 -2
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cueloop/client",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.31",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./src/index.ts"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@cueloop/daemon": "0.1.0-alpha.
|
|
11
|
-
"@cueloop/extension-api": "0.1.0-alpha.
|
|
12
|
-
"@cueloop/integration-obsidian": "0.1.0-alpha.
|
|
13
|
-
"@cueloop/schema": "0.1.0-alpha.
|
|
10
|
+
"@cueloop/daemon": "0.1.0-alpha.31",
|
|
11
|
+
"@cueloop/extension-api": "0.1.0-alpha.31",
|
|
12
|
+
"@cueloop/integration-obsidian": "0.1.0-alpha.31",
|
|
13
|
+
"@cueloop/schema": "0.1.0-alpha.31",
|
|
14
14
|
"@opentui/core": "^0.5.2",
|
|
15
15
|
"@opentui/keymap": "0.5.2",
|
|
16
16
|
"@opentui/react": "^0.5.2",
|
|
@@ -16,7 +16,7 @@ export const RenameAuthor: Story = {
|
|
|
16
16
|
onInput={() => {}}
|
|
17
17
|
/>
|
|
18
18
|
),
|
|
19
|
-
expectedColors: [DARK.backdrop, DARK.
|
|
19
|
+
expectedColors: [DARK.backdrop, DARK.elevated, DARK.accent],
|
|
20
20
|
size: { width: 64, height: 16 },
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -31,6 +31,6 @@ export const NameYourself: Story = {
|
|
|
31
31
|
onInput={() => {}}
|
|
32
32
|
/>
|
|
33
33
|
),
|
|
34
|
-
expectedColors: [DARK.backdrop, DARK.
|
|
34
|
+
expectedColors: [DARK.backdrop, DARK.elevated],
|
|
35
35
|
size: { width: 64, height: 16 },
|
|
36
36
|
};
|
|
@@ -42,7 +42,7 @@ export const ExpandedNarrow: Story = {
|
|
|
42
42
|
<ReviewPanel mode="expanded" width={REVIEW_MIN_WIDTH} height={24} dragging={false} rail={rail} {...panelCallbacks} />
|
|
43
43
|
</PanelFrame>
|
|
44
44
|
),
|
|
45
|
-
expectedColors: [DARK.
|
|
45
|
+
expectedColors: [DARK.border],
|
|
46
46
|
size: { width: 80, height: 24 },
|
|
47
47
|
};
|
|
48
48
|
|
|
@@ -52,7 +52,7 @@ export const ExpandedWide: Story = {
|
|
|
52
52
|
<ReviewPanel mode="expanded" width={REVIEW_MAX_WIDTH} height={24} dragging={false} rail={rail} {...panelCallbacks} />
|
|
53
53
|
</PanelFrame>
|
|
54
54
|
),
|
|
55
|
-
expectedColors: [DARK.
|
|
55
|
+
expectedColors: [DARK.green],
|
|
56
56
|
size: { width: 90, height: 24 },
|
|
57
57
|
};
|
|
58
58
|
|
|
@@ -76,7 +76,7 @@ export function WalkWizard({
|
|
|
76
76
|
title=" walk complete "
|
|
77
77
|
contentRows={3}
|
|
78
78
|
borderColor={tokens.green}
|
|
79
|
-
backgroundColor={tokens.
|
|
79
|
+
backgroundColor={tokens.elevated}
|
|
80
80
|
theme={theme}
|
|
81
81
|
>
|
|
82
82
|
<text fg={tokens.text}>
|
|
@@ -100,7 +100,7 @@ export function WalkWizard({
|
|
|
100
100
|
title={` file ${index + 1} of ${files.length} · ${viewed} viewed `}
|
|
101
101
|
contentRows={3 + Math.max(1, currentFile.preview.length)}
|
|
102
102
|
borderColor={tokens.accent}
|
|
103
|
-
backgroundColor={tokens.
|
|
103
|
+
backgroundColor={tokens.elevated}
|
|
104
104
|
theme={theme}
|
|
105
105
|
>
|
|
106
106
|
<text fg={tokens.text}>{currentFile.path}</text>
|
|
@@ -131,7 +131,7 @@ export function WalkWizard({
|
|
|
131
131
|
title=" agent note "
|
|
132
132
|
contentRows={noteRows(note, width - 4)}
|
|
133
133
|
borderColor={tokens.border}
|
|
134
|
-
backgroundColor={tokens.
|
|
134
|
+
backgroundColor={tokens.elevated}
|
|
135
135
|
theme={theme}
|
|
136
136
|
>
|
|
137
137
|
<text fg={tokens.textMuted}>{note}</text>
|
|
@@ -41,7 +41,8 @@ export function Dialog({ isOpen, title, width, height, theme, children }: Dialog
|
|
|
41
41
|
border: true,
|
|
42
42
|
borderStyle: FRAME_BORDER_STYLE,
|
|
43
43
|
borderColor: tokens.accent,
|
|
44
|
-
|
|
44
|
+
/* Floating surface: painted so dialog text never mixes with the page behind. */
|
|
45
|
+
backgroundColor: tokens.elevated,
|
|
45
46
|
flexDirection: "column",
|
|
46
47
|
}}
|
|
47
48
|
title={title}
|
|
@@ -12,7 +12,9 @@ import { componentFilesMissingStories, loadStories } from "./story";
|
|
|
12
12
|
|
|
13
13
|
const stories = await loadStories();
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
/** Hex of a painted color; undefined for unpainted (transparent) spans. */
|
|
16
|
+
function hexOf(color: RGBA | null | undefined): string | undefined {
|
|
17
|
+
if (!color) return undefined;
|
|
16
18
|
const [red, green, blue] = color.toInts();
|
|
17
19
|
return "#" + [red, green, blue].map((part) => part!.toString(16).padStart(2, "0")).join("");
|
|
18
20
|
}
|
|
@@ -42,8 +44,10 @@ describe("stories catalog", () => {
|
|
|
42
44
|
const seenColors = new Set<string>();
|
|
43
45
|
for (const line of setup.captureSpans().lines) {
|
|
44
46
|
for (const span of line.spans) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
const foregroundHex = hexOf(span.fg);
|
|
48
|
+
const backgroundHex = hexOf(span.bg);
|
|
49
|
+
if (foregroundHex) seenColors.add(foregroundHex);
|
|
50
|
+
if (backgroundHex) seenColors.add(backgroundHex);
|
|
47
51
|
}
|
|
48
52
|
}
|
|
49
53
|
for (const expectedColor of story.expectedColors) {
|
package/src/theme.ts
CHANGED
|
@@ -47,8 +47,9 @@ export function dimmedTheme(theme: Theme): Theme {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export const DARK: Theme = {
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
/* Unpainted so the terminal background shows through; override in [theme]. */
|
|
51
|
+
bg: "transparent",
|
|
52
|
+
panel: "transparent",
|
|
52
53
|
elevated: "#23232f",
|
|
53
54
|
border: "#3a3a4a",
|
|
54
55
|
text: "#e4e6ec",
|