opencode-landstrip 0.17.20 → 0.17.22
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/index.ts +4 -1
- package/package.json +2 -2
- package/tui.ts +2 -1
package/index.ts
CHANGED
|
@@ -1265,7 +1265,10 @@ const plugin: Plugin = async ({ client, directory }: PluginInput, options?: Plug
|
|
|
1265
1265
|
|
|
1266
1266
|
'permission.ask': async (input, output) => {
|
|
1267
1267
|
const config = await activeConfig();
|
|
1268
|
-
if (!config)
|
|
1268
|
+
if (!config) {
|
|
1269
|
+
output.status = 'allow';
|
|
1270
|
+
return;
|
|
1271
|
+
}
|
|
1269
1272
|
|
|
1270
1273
|
const request = input as Record<string, unknown>;
|
|
1271
1274
|
const permission = permissionType(request);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-landstrip",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.22",
|
|
4
4
|
"description": "Landlock-based sandboxing for opencode with landstrip",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"landlock",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"ci:test": "npm test"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@landstrip/landstrip": "^0.17.
|
|
51
|
+
"@landstrip/landstrip": "^0.17.22",
|
|
52
52
|
"@opentui/solid": ">=0.3.4",
|
|
53
53
|
"solid-js": "1.9.12"
|
|
54
54
|
},
|
package/tui.ts
CHANGED
|
@@ -444,7 +444,8 @@ const tui: TuiPlugin = async (api, options, meta) => {
|
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
const unsubscribeAsked = api.event.on('permission.asked', (event) => {
|
|
447
|
-
const directory = api.state.path.directory
|
|
447
|
+
const directory = api.state.path.directory;
|
|
448
|
+
if (!directory) return;
|
|
448
449
|
if (!loadConfig(directory, optionOverrides).enabled) return;
|
|
449
450
|
const pending = event.properties as PendingPermission;
|
|
450
451
|
enqueue(pending);
|