@openclaw/lobster 2026.8.1-beta.2 → 2026.8.1-beta.3

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 (2) hide show
  1. package/dist/index.js +2 -7
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -7,6 +7,7 @@ import { stat } from "node:fs/promises";
7
7
  import path from "node:path";
8
8
  import { Readable, Writable } from "node:stream";
9
9
  import { toErrorObject } from "openclaw/plugin-sdk/error-runtime";
10
+ import { isPathInside } from "openclaw/plugin-sdk/file-access-runtime";
10
11
  //#region extensions/lobster/src/lobster-runner.ts
11
12
  const workflowExts = /* @__PURE__ */ new Set([
12
13
  ".lobster",
@@ -14,19 +15,13 @@ const workflowExts = /* @__PURE__ */ new Set([
14
15
  ".yml",
15
16
  ".json"
16
17
  ]);
17
- function normalizeForCwdSandbox(p) {
18
- const normalized = path.normalize(p);
19
- return process.platform === "win32" ? normalized.toLowerCase() : normalized;
20
- }
21
18
  function resolveLobsterCwd(cwdRaw) {
22
19
  if (typeof cwdRaw !== "string" || !cwdRaw.trim()) return process.cwd();
23
20
  const cwd = cwdRaw.trim();
24
21
  if (path.isAbsolute(cwd)) throw new Error("cwd must be a relative path");
25
22
  const base = process.cwd();
26
23
  const resolved = path.resolve(base, cwd);
27
- const rel = path.relative(normalizeForCwdSandbox(base), normalizeForCwdSandbox(resolved));
28
- if (rel === "" || rel === ".") return resolved;
29
- if (rel.startsWith("..") || path.isAbsolute(rel)) throw new Error("cwd must stay within the gateway working directory");
24
+ if (!isPathInside(base, resolved)) throw new Error("cwd must stay within the gateway working directory");
30
25
  return resolved;
31
26
  }
32
27
  function createLimitedSink(maxBytes, label) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/lobster",
3
- "version": "2026.8.1-beta.2",
3
+ "version": "2026.8.1-beta.3",
4
4
  "description": "Lobster workflow tool plugin for typed pipelines and resumable approvals.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,10 +21,10 @@
21
21
  "minHostVersion": ">=2026.4.25"
22
22
  },
23
23
  "compat": {
24
- "pluginApi": ">=2026.8.1-beta.2"
24
+ "pluginApi": ">=2026.8.1-beta.3"
25
25
  },
26
26
  "build": {
27
- "openclawVersion": "2026.8.1-beta.2"
27
+ "openclawVersion": "2026.8.1-beta.3"
28
28
  },
29
29
  "release": {
30
30
  "publishToClawHub": true,
@@ -41,7 +41,7 @@
41
41
  "SKILL.md"
42
42
  ],
43
43
  "peerDependencies": {
44
- "openclaw": ">=2026.8.1-beta.2"
44
+ "openclaw": ">=2026.8.1-beta.3"
45
45
  },
46
46
  "peerDependenciesMeta": {
47
47
  "openclaw": {