@lunchbox-labs/opencode-tool-inspector 0.3.2 → 0.3.3
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/tui.js +3 -6
- package/package.json +1 -1
package/dist/tui.js
CHANGED
|
@@ -280,11 +280,11 @@ async function createDetailViewer(api) {
|
|
|
280
280
|
bindings: [
|
|
281
281
|
{
|
|
282
282
|
key: "pageup",
|
|
283
|
-
cmd: () => scroll.scrollBy(
|
|
283
|
+
cmd: () => scroll.scrollBy(-.5, "viewport")
|
|
284
284
|
},
|
|
285
285
|
{
|
|
286
286
|
key: "pagedown",
|
|
287
|
-
cmd: () => scroll.scrollBy(
|
|
287
|
+
cmd: () => scroll.scrollBy(.5, "viewport")
|
|
288
288
|
},
|
|
289
289
|
{
|
|
290
290
|
key: "home",
|
|
@@ -619,10 +619,7 @@ function typeName(schema, rendering, visiting, depth) {
|
|
|
619
619
|
return node.items === void 0 || Array.isArray(node.items) ? "array" : `array of ${pluralType(nestedName(node.items))}`;
|
|
620
620
|
};
|
|
621
621
|
if (Object.hasOwn(node, "const")) return literal(node.const);
|
|
622
|
-
if (Array.isArray(node.enum) && node.enum.length > 0)
|
|
623
|
-
const values = node.enum;
|
|
624
|
-
return namedValues(values, literal, " | ");
|
|
625
|
-
}
|
|
622
|
+
if (Array.isArray(node.enum) && node.enum.length > 0) return namedValues(node.enum, literal, " | ");
|
|
626
623
|
const alternatives = variants(node);
|
|
627
624
|
if (alternatives !== void 0) return namedValues(alternatives, nestedName, " | ", { distinct: true });
|
|
628
625
|
const type = node.type;
|