claude-scope 0.8.47 → 0.8.48
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/dist/claude-scope.cjs +9 -2
- package/package.json +1 -1
package/dist/claude-scope.cjs
CHANGED
|
@@ -26139,6 +26139,7 @@ function generateBalancedLayout(style, themeName) {
|
|
|
26139
26139
|
return {
|
|
26140
26140
|
version: "1.0.0",
|
|
26141
26141
|
$aiDocs: "https://github.com/YuriNachos/claude-scope/blob/main/AI-CONFIG-GUIDE.md",
|
|
26142
|
+
theme: themeName,
|
|
26142
26143
|
lines: {
|
|
26143
26144
|
"0": [
|
|
26144
26145
|
{
|
|
@@ -26208,6 +26209,7 @@ function generateCompactLayout(style, themeName) {
|
|
|
26208
26209
|
return {
|
|
26209
26210
|
version: "1.0.0",
|
|
26210
26211
|
$aiDocs: "https://github.com/YuriNachos/claude-scope/blob/main/AI-CONFIG-GUIDE.md",
|
|
26212
|
+
theme: themeName,
|
|
26211
26213
|
lines: {
|
|
26212
26214
|
"0": [
|
|
26213
26215
|
{
|
|
@@ -26249,6 +26251,7 @@ function generateRichLayout(style, themeName) {
|
|
|
26249
26251
|
return {
|
|
26250
26252
|
version: "1.0.0",
|
|
26251
26253
|
$aiDocs: "https://github.com/YuriNachos/claude-scope/blob/main/AI-CONFIG-GUIDE.md",
|
|
26254
|
+
theme: themeName,
|
|
26252
26255
|
lines: {
|
|
26253
26256
|
"0": [
|
|
26254
26257
|
{
|
|
@@ -26739,7 +26742,8 @@ async function loadWidgetConfig() {
|
|
|
26739
26742
|
return null;
|
|
26740
26743
|
}
|
|
26741
26744
|
return {
|
|
26742
|
-
lines: config.lines
|
|
26745
|
+
lines: config.lines,
|
|
26746
|
+
theme: config.theme
|
|
26743
26747
|
};
|
|
26744
26748
|
} catch (error) {
|
|
26745
26749
|
const errorMsg = error instanceof Error ? error.message : "Unknown error";
|
|
@@ -27870,6 +27874,7 @@ var StdinProvider = class {
|
|
|
27870
27874
|
};
|
|
27871
27875
|
|
|
27872
27876
|
// src/index.ts
|
|
27877
|
+
init_theme();
|
|
27873
27878
|
async function readStdin() {
|
|
27874
27879
|
const chunks = [];
|
|
27875
27880
|
for await (const chunk of process.stdin) {
|
|
@@ -27901,7 +27906,9 @@ async function main() {
|
|
|
27901
27906
|
const stdinData = await provider.parse(stdin);
|
|
27902
27907
|
const registry = new WidgetRegistry();
|
|
27903
27908
|
const widgetConfig = await loadWidgetConfig();
|
|
27904
|
-
const
|
|
27909
|
+
const themeName = widgetConfig?.theme ?? "monokai";
|
|
27910
|
+
const themeColors = getThemeByName(themeName).colors;
|
|
27911
|
+
const factory = new WidgetFactory(themeColors);
|
|
27905
27912
|
if (widgetConfig) {
|
|
27906
27913
|
for (const [lineNum, widgets] of Object.entries(widgetConfig.lines)) {
|
|
27907
27914
|
for (const widgetConfigItem of widgets) {
|