zubo 0.1.14 → 0.1.15
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 +1 -1
- package/src/tools/executor.ts +15 -0
package/package.json
CHANGED
package/src/tools/executor.ts
CHANGED
|
@@ -4,6 +4,18 @@ import { logger } from "../util/logger";
|
|
|
4
4
|
import { recordError } from "../util/error-buffer";
|
|
5
5
|
import { executeSandboxed } from "./sandbox";
|
|
6
6
|
|
|
7
|
+
/** Built-in integration tool names — these run in-process, NOT sandboxed,
|
|
8
|
+
* because they need access to Zubo.getGoogleToken and the OAuth module. */
|
|
9
|
+
const BUILTIN_INTEGRATION_TOOLS = new Set([
|
|
10
|
+
"gmail", "google_calendar", "google_sheets", "google_docs", "google_drive",
|
|
11
|
+
"github_issues", "github_prs", "github_repos",
|
|
12
|
+
"notion_pages", "notion_databases", "notion_search",
|
|
13
|
+
"linear_issues", "linear_projects",
|
|
14
|
+
"jira_issues", "jira_boards",
|
|
15
|
+
"slack_messages", "twitter_posts",
|
|
16
|
+
"claude_code_task", "codex_task",
|
|
17
|
+
]);
|
|
18
|
+
|
|
7
19
|
export interface ToolResult {
|
|
8
20
|
tool_use_id: string;
|
|
9
21
|
content: string;
|
|
@@ -31,6 +43,9 @@ async function shouldSandbox(
|
|
|
31
43
|
// Only sandbox tools that were loaded via the skill-loader from the user's skills directory
|
|
32
44
|
if (!isUserInstalledSkill(toolName)) return null;
|
|
33
45
|
|
|
46
|
+
// Built-in integrations run in-process — they need access to Zubo.getGoogleToken and OAuth
|
|
47
|
+
if (BUILTIN_INTEGRATION_TOOLS.has(toolName)) return null;
|
|
48
|
+
|
|
34
49
|
const { existsSync, readFileSync } = await import("fs");
|
|
35
50
|
const { join } = await import("path");
|
|
36
51
|
const { paths } = await import("../config/paths");
|