opencode-landstrip 0.18.38 → 0.18.39
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 +3 -3
- package/package.json +2 -2
- package/shared.ts +4 -4
package/index.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { type AddressInfo, connect as connectNet, createServer } from 'node:net'
|
|
|
10
10
|
import { tmpdir } from 'node:os';
|
|
11
11
|
import { basename, join } from 'node:path';
|
|
12
12
|
|
|
13
|
-
import { startFilterProxy } from '@landstrip/landstrip/proxy';
|
|
13
|
+
import { startFilterProxy } from '@landstrip/landstrip-api/proxy';
|
|
14
14
|
|
|
15
15
|
import {
|
|
16
16
|
type LandstripTrap,
|
|
@@ -799,7 +799,7 @@ const plugin: Plugin = async ({ client, directory }: PluginInput, options?: Plug
|
|
|
799
799
|
if (!version) {
|
|
800
800
|
landstripCheck = {
|
|
801
801
|
ok: false,
|
|
802
|
-
reason: `landstrip was not found. Reinstall with: npm install @landstrip/landstrip`,
|
|
802
|
+
reason: `landstrip was not found. Reinstall with: npm install @landstrip/landstrip-api`,
|
|
803
803
|
};
|
|
804
804
|
return landstripCheck;
|
|
805
805
|
}
|
|
@@ -831,7 +831,7 @@ const plugin: Plugin = async ({ client, directory }: PluginInput, options?: Plug
|
|
|
831
831
|
if (!check?.ok) {
|
|
832
832
|
const reason = check?.reason ?? 'Unknown Landstrip installation error';
|
|
833
833
|
await notifyOnce(`broken-installation:${reason}`, reason, 'error');
|
|
834
|
-
throw new Error(`Broken @landstrip/landstrip installation: ${reason}`);
|
|
834
|
+
throw new Error(`Broken @landstrip/landstrip-api installation: ${reason}`);
|
|
835
835
|
}
|
|
836
836
|
|
|
837
837
|
if (!enabledNotified) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-landstrip",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.39",
|
|
4
4
|
"description": "OS-level AI command 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.18.
|
|
51
|
+
"@landstrip/landstrip-api": "^0.18.39",
|
|
52
52
|
"@opentui/solid": ">=0.3.4",
|
|
53
53
|
"solid-js": "1.9.12"
|
|
54
54
|
},
|
package/shared.ts
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
binaryPath,
|
|
6
6
|
type LandstripControlResponse,
|
|
7
7
|
type LandstripTrap,
|
|
8
|
-
} from '@landstrip/landstrip';
|
|
8
|
+
} from '@landstrip/landstrip-api';
|
|
9
9
|
|
|
10
10
|
import {
|
|
11
11
|
allowsAllDomains,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
pathUnderDirectory,
|
|
27
27
|
sessionAllows,
|
|
28
28
|
sessionScopeFor,
|
|
29
|
-
} from '@landstrip/landstrip/shared';
|
|
29
|
+
} from '@landstrip/landstrip-api/shared';
|
|
30
30
|
|
|
31
31
|
export {
|
|
32
32
|
allowsAllDomains,
|
|
@@ -90,7 +90,7 @@ export interface SandboxConfigOverrides {
|
|
|
90
90
|
const packageDir = dirname(fileURLToPath(import.meta.url));
|
|
91
91
|
|
|
92
92
|
const LANDSTRIP_PACKAGE_NAMES = new Set([
|
|
93
|
-
'@landstrip/landstrip',
|
|
93
|
+
'@landstrip/landstrip-api',
|
|
94
94
|
'@landstrip/landstrip-darwin-arm64',
|
|
95
95
|
'@landstrip/landstrip-darwin-x64',
|
|
96
96
|
'@landstrip/landstrip-linux-x64',
|
|
@@ -321,7 +321,7 @@ export function landstripBinaryPath(): string {
|
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
throw new Error(
|
|
324
|
-
`Refusing to use landstrip binary outside official @landstrip/landstrip packages: ${filePath}`,
|
|
324
|
+
`Refusing to use landstrip binary outside official @landstrip/landstrip-api packages: ${filePath}`,
|
|
325
325
|
);
|
|
326
326
|
} catch (error) {
|
|
327
327
|
_landstripBinaryPathError = error;
|