opencode-landstrip 0.3.0 → 0.3.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/package.json +12 -4
- package/tui.ts +18 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-landstrip",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Landlock-based sandboxing for opencode with landstrip",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"landlock",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"index.ts",
|
|
18
|
+
"tui.ts",
|
|
18
19
|
"README.md",
|
|
19
20
|
"sandbox.json"
|
|
20
21
|
],
|
|
@@ -28,15 +29,19 @@
|
|
|
28
29
|
"./server": {
|
|
29
30
|
"import": "./index.ts",
|
|
30
31
|
"types": "./index.ts"
|
|
32
|
+
},
|
|
33
|
+
"./tui": {
|
|
34
|
+
"import": "./tui.ts",
|
|
35
|
+
"types": "./tui.ts"
|
|
31
36
|
}
|
|
32
37
|
},
|
|
33
38
|
"scripts": {
|
|
34
|
-
"fmt": "oxfmt index.ts package.json tsconfig.json sandbox.json .oxfmtrc.json README.md test/*.test.mjs",
|
|
35
|
-
"lint": "oxlint index.ts",
|
|
39
|
+
"fmt": "oxfmt index.ts tui.ts package.json tsconfig.json sandbox.json .oxfmtrc.json README.md test/*.test.mjs",
|
|
40
|
+
"lint": "oxlint index.ts tui.ts",
|
|
36
41
|
"check": "tsc --noEmit",
|
|
37
42
|
"test": "node --test test/*.test.mjs",
|
|
38
43
|
"all": "npm run fmt && npm run lint && npm run check && npm test",
|
|
39
|
-
"ci:fmt": "oxfmt --check index.ts package.json tsconfig.json sandbox.json .oxfmtrc.json README.md test/*.test.mjs",
|
|
44
|
+
"ci:fmt": "oxfmt --check index.ts tui.ts package.json tsconfig.json sandbox.json .oxfmtrc.json README.md test/*.test.mjs",
|
|
40
45
|
"ci:lint": "npm run lint",
|
|
41
46
|
"ci:check": "npm run check",
|
|
42
47
|
"ci:test": "npm test"
|
|
@@ -46,6 +51,9 @@
|
|
|
46
51
|
},
|
|
47
52
|
"devDependencies": {
|
|
48
53
|
"@opencode-ai/plugin": "^1.16.2",
|
|
54
|
+
"@opentui/core": ">=0.3.2",
|
|
55
|
+
"@opentui/keymap": ">=0.3.2",
|
|
56
|
+
"@opentui/solid": ">=0.3.2",
|
|
49
57
|
"@types/node": "^24.0.0",
|
|
50
58
|
"oxfmt": "^0.53.0",
|
|
51
59
|
"oxlint": "^1.68.0",
|
package/tui.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Copyright (C) Jarkko Sakkinen 2026
|
|
3
|
+
|
|
4
|
+
import type { TuiPlugin } from '@opencode-ai/plugin/tui';
|
|
5
|
+
|
|
6
|
+
export const tui: TuiPlugin = async (api) => {
|
|
7
|
+
api.command?.register(() => [
|
|
8
|
+
{
|
|
9
|
+
title: 'Sandbox',
|
|
10
|
+
value: 'sandbox',
|
|
11
|
+
description: 'Show sandbox configuration',
|
|
12
|
+
category: 'plugin',
|
|
13
|
+
slash: {
|
|
14
|
+
name: 'sandbox',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
]);
|
|
18
|
+
};
|