claude-scope 0.5.1 → 0.5.2
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 +22 -1
- package/package.json +1 -1
package/dist/claude-scope.cjs
CHANGED
|
@@ -187,7 +187,7 @@ var Renderer = class {
|
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
const line = outputs.join(this.separator);
|
|
190
|
-
if (
|
|
190
|
+
if (outputs.length > 0) {
|
|
191
191
|
lines.push(line);
|
|
192
192
|
}
|
|
193
193
|
}
|
|
@@ -1383,6 +1383,26 @@ var PokerWidget = class extends StdinDataWidget {
|
|
|
1383
1383
|
}
|
|
1384
1384
|
};
|
|
1385
1385
|
|
|
1386
|
+
// src/widgets/empty-line-widget.ts
|
|
1387
|
+
var EmptyLineWidget = class extends StdinDataWidget {
|
|
1388
|
+
id = "empty-line";
|
|
1389
|
+
metadata = createWidgetMetadata(
|
|
1390
|
+
"Empty Line",
|
|
1391
|
+
"Empty line separator",
|
|
1392
|
+
"1.0.0",
|
|
1393
|
+
"claude-scope",
|
|
1394
|
+
3
|
|
1395
|
+
// Fourth line (0-indexed)
|
|
1396
|
+
);
|
|
1397
|
+
/**
|
|
1398
|
+
* Return empty string regardless of data state.
|
|
1399
|
+
* The empty line widget doesn't need stdin data to render.
|
|
1400
|
+
*/
|
|
1401
|
+
renderWithData(_data, _context) {
|
|
1402
|
+
return "";
|
|
1403
|
+
}
|
|
1404
|
+
};
|
|
1405
|
+
|
|
1386
1406
|
// src/validation/result.ts
|
|
1387
1407
|
function success(data) {
|
|
1388
1408
|
return { success: true, data };
|
|
@@ -1588,6 +1608,7 @@ async function main() {
|
|
|
1588
1608
|
await registry.register(new GitChangesWidget());
|
|
1589
1609
|
await registry.register(new ConfigCountWidget());
|
|
1590
1610
|
await registry.register(new PokerWidget());
|
|
1611
|
+
await registry.register(new EmptyLineWidget());
|
|
1591
1612
|
const renderer = new Renderer({
|
|
1592
1613
|
separator: " \u2502 ",
|
|
1593
1614
|
onError: (error, widget) => {
|