@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 CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@cueloop/client",
3
- "version": "0.1.0-alpha.30",
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.30",
11
- "@cueloop/extension-api": "0.1.0-alpha.30",
12
- "@cueloop/integration-obsidian": "0.1.0-alpha.30",
13
- "@cueloop/schema": "0.1.0-alpha.30",
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",
@@ -15,5 +15,5 @@ export const SessionHeader: Story = {
15
15
  ]}
16
16
  />
17
17
  ),
18
- expectedColors: [DARK.accent, DARK.green, DARK.panel],
18
+ expectedColors: [DARK.accent, DARK.green],
19
19
  };
@@ -16,6 +16,6 @@ export const DeletePlan: Story = {
16
16
  {...callbacks}
17
17
  />
18
18
  ),
19
- expectedColors: [DARK.backdrop, DARK.panel, DARK.accent],
19
+ expectedColors: [DARK.backdrop, DARK.elevated, DARK.accent],
20
20
  size: { width: 64, height: 16 },
21
21
  };
@@ -16,7 +16,7 @@ export const RenameAuthor: Story = {
16
16
  onInput={() => {}}
17
17
  />
18
18
  ),
19
- expectedColors: [DARK.backdrop, DARK.panel, DARK.accent],
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.panel],
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.panel, DARK.border],
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.panel, DARK.green],
55
+ expectedColors: [DARK.green],
56
56
  size: { width: 90, height: 24 },
57
57
  };
58
58
 
@@ -34,7 +34,7 @@ export const AnnotationStack: Story = {
34
34
  />
35
35
  </RailFrame>
36
36
  ),
37
- expectedColors: [DARK.panel, DARK.green],
37
+ expectedColors: [DARK.green],
38
38
  size: { width: 40, height: 24 },
39
39
  };
40
40
 
@@ -76,7 +76,7 @@ export function WalkWizard({
76
76
  title=" walk complete "
77
77
  contentRows={3}
78
78
  borderColor={tokens.green}
79
- backgroundColor={tokens.panel}
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.panel}
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.panel}
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
- backgroundColor: tokens.panel,
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}
@@ -7,5 +7,5 @@ export const meta: StoryMeta = { title: "primitives/StatusBar" };
7
7
 
8
8
  export const HintLine: Story = {
9
9
  render: () => <StatusBar>j/k move · v span · c comment · q quit</StatusBar>,
10
- expectedColors: [DARK.panel, DARK.textDim],
10
+ expectedColors: [DARK.textDim],
11
11
  };
@@ -12,7 +12,9 @@ import { componentFilesMissingStories, loadStories } from "./story";
12
12
 
13
13
  const stories = await loadStories();
14
14
 
15
- function hexOf(color: RGBA): string {
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
- seenColors.add(hexOf(span.fg));
46
- seenColors.add(hexOf(span.bg));
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
- bg: "#1f1f29",
51
- panel: "#1a1a23",
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",