refactor(agents): trim sandbox helper exports · openclaw/openclaw@be4c541
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -17,7 +17,7 @@ import {
|
17 | 17 | type BoundaryAllowedType = "file" | "directory"; |
18 | 18 | |
19 | 19 | /** Caller-provided path safety requirements for one fs bridge operation. */ |
20 | | -export type PathSafetyOptions = { |
| 20 | +type PathSafetyOptions = { |
21 | 21 | action: string; |
22 | 22 | aliasPolicy?: PathAliasPolicy; |
23 | 23 | requireWritable?: boolean; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -24,7 +24,7 @@ function stripWindowsNamespacePrefix(input: string): string {
|
24 | 24 | return input; |
25 | 25 | } |
26 | 26 | |
27 | | -export function isWindowsDriveAbsolutePath(raw: string): boolean { |
| 27 | +function isWindowsDriveAbsolutePath(raw: string): boolean { |
28 | 28 | return /^[A-Za-z]:[\\/]/.test(stripWindowsNamespacePrefix(raw.trim())); |
29 | 29 | } |
30 | 30 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -22,7 +22,7 @@ type NoVncObserverTokenEntry = {
|
22 | 22 | expiresAt: number; |
23 | 23 | }; |
24 | 24 | |
25 | | -export type NoVncObserverTokenPayload = { |
| 25 | +type NoVncObserverTokenPayload = { |
26 | 26 | noVncPort: number; |
27 | 27 | password?: string; |
28 | 28 | }; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -41,10 +41,6 @@ export function resolveMaterializedSandboxSkillsWorkspaceDir(rootDir: string): s
|
41 | 41 | return path.join(rootDir, ...MATERIALIZED_SANDBOX_SKILLS_WORKSPACE_PARTS); |
42 | 42 | } |
43 | 43 | |
44 | | -export function resolveMaterializedSandboxSkillsRoot(rootDir: string): string { |
45 | | -return path.join(resolveMaterializedSandboxSkillsWorkspaceDir(rootDir), "skills"); |
46 | | -} |
47 | | - |
48 | 44 | /** Returns true when a skill mount source exists inside the canonical mount root. */ |
49 | 45 | export function isExistingWorkspaceSkillMountSource(params: { |
50 | 46 | rootDir: string; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。