opencode-landstrip 0.16.4 → 0.16.5
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 +1 -1
- package/tui.ts +31 -1
package/package.json
CHANGED
package/tui.ts
CHANGED
|
@@ -489,7 +489,7 @@ const tui: TuiPlugin = async (api, options, meta) => {
|
|
|
489
489
|
};
|
|
490
490
|
|
|
491
491
|
const executeServerCommand = async (command: string): Promise<boolean> => {
|
|
492
|
-
await api.client.tui.executeCommand({ command });
|
|
492
|
+
await api.client.tui.executeCommand({ command: `/${command}` });
|
|
493
493
|
return true;
|
|
494
494
|
};
|
|
495
495
|
|
|
@@ -528,6 +528,36 @@ const tui: TuiPlugin = async (api, options, meta) => {
|
|
|
528
528
|
],
|
|
529
529
|
});
|
|
530
530
|
|
|
531
|
+
api.command?.register(() => [
|
|
532
|
+
{
|
|
533
|
+
title: 'Sandbox',
|
|
534
|
+
value: 'sandbox',
|
|
535
|
+
description: 'Show sandbox configuration',
|
|
536
|
+
category: 'Sandbox',
|
|
537
|
+
suggested: true,
|
|
538
|
+
slash: { name: 'sandbox' },
|
|
539
|
+
onSelect: showSandbox,
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
title: 'Disable sandbox',
|
|
543
|
+
value: 'sandbox-disable',
|
|
544
|
+
description: 'Disable sandbox for this session',
|
|
545
|
+
category: 'Sandbox',
|
|
546
|
+
suggested: true,
|
|
547
|
+
slash: { name: 'sandbox-disable' },
|
|
548
|
+
onSelect: () => executeServerCommand('sandbox-disable'),
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
title: 'Enable sandbox',
|
|
552
|
+
value: 'sandbox-enable',
|
|
553
|
+
description: 'Re-enable sandbox for this session',
|
|
554
|
+
category: 'Sandbox',
|
|
555
|
+
suggested: true,
|
|
556
|
+
slash: { name: 'sandbox-enable' },
|
|
557
|
+
onSelect: () => executeServerCommand('sandbox-enable'),
|
|
558
|
+
},
|
|
559
|
+
]);
|
|
560
|
+
|
|
531
561
|
// Persistent status badge in the prompt area. It needs the host's Solid
|
|
532
562
|
// runtime, imported defensively so a host that resolves plugin imports
|
|
533
563
|
// differently still loads the plugin — the badge just stays absent there.
|