opencode-landstrip 0.3.3 → 0.3.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.
Files changed (3) hide show
  1. package/index.ts +1 -3
  2. package/package.json +1 -1
  3. package/tui.ts +4 -1
package/index.ts CHANGED
@@ -5,8 +5,6 @@ import type { Hooks, Plugin, PluginInput, PluginOptions } from '@opencode-ai/plu
5
5
 
6
6
  import { binaryPath } from '@jarkkojs/landstrip';
7
7
 
8
- export { tui } from './tui.js';
9
-
10
8
  import { spawnSync } from 'node:child_process';
11
9
  import {
12
10
  existsSync,
@@ -478,7 +476,7 @@ function writePolicyFile(
478
476
  baseDirectory: string,
479
477
  proxyPort: number,
480
478
  ): { dir: string; path: string } {
481
- const dir = mkdtempSync(join(tmpdir(), 'opencode-landstrip-'));
479
+ const dir = mkdtempSync(join(tmpdir(), 'opencode-landstrip-XXXXXX'));
482
480
  const path = join(dir, 'policy.json');
483
481
  writeFileSync(
484
482
  path,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-landstrip",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "Landlock-based sandboxing for opencode with landstrip",
5
5
  "keywords": [
6
6
  "landlock",
package/tui.ts CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  import type { TuiPlugin } from '@opencode-ai/plugin/tui';
5
5
 
6
- export const tui: TuiPlugin = async (api) => {
6
+ const tui: TuiPlugin = async (api) => {
7
7
  api.command?.register(() => [
8
8
  {
9
9
  title: 'Sandbox',
@@ -16,3 +16,6 @@ export const tui: TuiPlugin = async (api) => {
16
16
  },
17
17
  ]);
18
18
  };
19
+
20
+ export { tui };
21
+ export default { tui };