@agent-native/core 0.26.5 → 0.26.6
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/dist/client/resources/ResourceTree.js +1 -1
- package/dist/client/resources/ResourceTree.js.map +1 -1
- package/dist/client/resources/ResourcesPanel.d.ts.map +1 -1
- package/dist/client/resources/ResourcesPanel.js.map +1 -1
- package/dist/client/resources/use-resources.d.ts.map +1 -1
- package/dist/client/resources/use-resources.js +1 -4
- package/dist/client/resources/use-resources.js.map +1 -1
- package/dist/client/settings/useBuilderStatus.d.ts +2 -0
- package/dist/client/settings/useBuilderStatus.d.ts.map +1 -1
- package/dist/client/settings/useBuilderStatus.js +21 -5
- package/dist/client/settings/useBuilderStatus.js.map +1 -1
- package/dist/client/settings/useBuilderStatus.spec.js +53 -1
- package/dist/client/settings/useBuilderStatus.spec.js.map +1 -1
- package/dist/mcp-client/builtin-capabilities.d.ts +2 -0
- package/dist/mcp-client/builtin-capabilities.d.ts.map +1 -1
- package/dist/mcp-client/builtin-capabilities.js +20 -0
- package/dist/mcp-client/builtin-capabilities.js.map +1 -1
- package/dist/mcp-client/index.d.ts +1 -1
- package/dist/mcp-client/index.d.ts.map +1 -1
- package/dist/mcp-client/index.js +1 -1
- package/dist/mcp-client/index.js.map +1 -1
- package/dist/mcp-client/routes.d.ts.map +1 -1
- package/dist/mcp-client/routes.js +41 -29
- package/dist/mcp-client/routes.js.map +1 -1
- package/dist/onboarding/default-steps.d.ts.map +1 -1
- package/dist/onboarding/default-steps.js +4 -3
- package/dist/onboarding/default-steps.js.map +1 -1
- package/dist/secrets/storage.d.ts.map +1 -1
- package/dist/secrets/storage.js +4 -1
- package/dist/secrets/storage.js.map +1 -1
- package/dist/server/agent-chat-plugin.d.ts.map +1 -1
- package/dist/server/agent-chat-plugin.js +10 -5
- package/dist/server/agent-chat-plugin.js.map +1 -1
- package/dist/server/credential-provider.d.ts +5 -0
- package/dist/server/credential-provider.d.ts.map +1 -1
- package/dist/server/credential-provider.js +8 -0
- package/dist/server/credential-provider.js.map +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/index.js.map +1 -1
- package/docs/content/mcp-clients.md +16 -4
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { resolveEngine, createAnthropicEngine, getStoredModelForEngine, getAgent
|
|
|
7
7
|
import { canUpdateAgentAppModelDefaultSettings, normalizeAgentAppModelDefaultAppId, readAgentAppModelDefaultSettings, resetAgentAppModelDefaultSettings, writeAgentAppModelDefaultSettings, } from "../agent/app-model-defaults.js";
|
|
8
8
|
import { DEFAULT_ANTHROPIC_MODEL } from "../agent/default-model.js";
|
|
9
9
|
import { attachToolSearch } from "../agent/tool-search.js";
|
|
10
|
-
import { McpClientManager, loadMcpConfig, autoDetectMcpConfig, mcpToolsToActionEntries, syncMcpActionEntries, mountMcpServersRoutes, mountMcpHubRoutes, buildMergedConfig, startMcpConfigRefresh, setBuiltinMcpCapabilityEnabled, getHubStatus, isHubServeEnabled, } from "../mcp-client/index.js";
|
|
10
|
+
import { McpClientManager, loadMcpConfig, autoDetectMcpConfig, mcpToolsToActionEntries, syncMcpActionEntries, mountMcpServersRoutes, mountMcpHubRoutes, buildMergedConfig, startMcpConfigRefresh, areBuiltinMcpCapabilitiesSupported, setBuiltinMcpCapabilityEnabled, getHubStatus, isHubServeEnabled, } from "../mcp-client/index.js";
|
|
11
11
|
import { discoverAgents } from "./agent-discovery.js";
|
|
12
12
|
import { loadSchemaPromptBlock } from "./schema-prompt.js";
|
|
13
13
|
import { buildAssistantMessage, buildUserMessage, extractThreadMeta, foldAssistantTurn, mergeThreadDataForClientSave, upsertUserMessage, } from "../agent/thread-data-builder.js";
|
|
@@ -1101,7 +1101,7 @@ function createBuilderBrowserTool(deps) {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
return { ok: true, enabledIds: enabledIds ?? [] };
|
|
1103
1103
|
};
|
|
1104
|
-
|
|
1104
|
+
const entries = {
|
|
1105
1105
|
"connect-builder": {
|
|
1106
1106
|
tool: {
|
|
1107
1107
|
description: "Render a Builder.io card inline in the chat. Call this IMMEDIATELY — no exploration, no planning — when the user asks to modify the APP'S OWN SOURCE CODE: add a feature, change the UI chrome, edit a React component, add a route, add an integration, fix a bug in the app itself, or anything else that requires source-file edits while in hosted/production mode. Do NOT call this for creating or editing extensions/widgets/dashboards/calculators/mini-apps; those are sandboxed extension data and must use create-extension/update-extension instead. Do NOT call this for content the app is meant to produce — creating a video, generating a design, drafting an email, building a slide deck, making a dashboard, etc. — those run through the app's own domain actions, not Builder. Do NOT mention 'click Send to Builder' in your response unless this card is already in the conversation. If Builder is connected and Builder Cloud Agents are available, the card shows a 'Send to Builder' button that hands the work off to Builder's cloud agent and returns a branch URL. If `builderEnabled` is false, the card shows a waitlist/local-dev fallback instead; never tell the user to enable Builder Cloud Agents in Builder org settings or beta settings, and do not claim the Builder card has everything, is pre-loaded for handoff, or can run the cloud agent. When you call this for a code-change request, pass the user's request verbatim as the `prompt` arg so the card can forward it to Builder unchanged when cloud agents are available.",
|
|
@@ -1299,6 +1299,11 @@ function createBuilderBrowserTool(deps) {
|
|
|
1299
1299
|
},
|
|
1300
1300
|
},
|
|
1301
1301
|
};
|
|
1302
|
+
if (!areBuiltinMcpCapabilitiesSupported()) {
|
|
1303
|
+
delete entries["set-browser-control"];
|
|
1304
|
+
delete entries["set-computer-use"];
|
|
1305
|
+
}
|
|
1306
|
+
return entries;
|
|
1302
1307
|
}
|
|
1303
1308
|
/**
|
|
1304
1309
|
* Creates the unified `agent-teams` tool that consolidates all sub-agent
|
|
@@ -1513,7 +1518,7 @@ On the user's first interaction, check \`readAppState("personalization")\`. If i
|
|
|
1513
1518
|
|
|
1514
1519
|
### Extended Capabilities
|
|
1515
1520
|
|
|
1516
|
-
You also have tools for: inline embeds, chat history search, agent teams/sub-agents, recurring jobs, A2A cross-app calls, structured memory, live embedded browser sessions (\`list-browser-sessions\`, \`view-browser-session\`, \`run-browser-session-action\`, \`send-browser-session-command\`), and browser automation (\`
|
|
1521
|
+
You also have tools for: inline embeds, chat history search, agent teams/sub-agents, recurring jobs, A2A cross-app calls, structured memory, live embedded browser sessions (\`list-browser-sessions\`, \`view-browser-session\`, \`run-browser-session-action\`, \`send-browser-session-command\`), and browser automation (\`activate-browser\` for Builder-provisioned Chrome; local development may also include \`set-browser-control\`). Call \`get-framework-context\` to read detailed instructions for any of these when needed.
|
|
1517
1522
|
|
|
1518
1523
|
For brand-consistent generated media, use the first-party Assets agent via \`call-agent\` with agent "assets" when another app needs generated heroes, diagrams, product shots, thumbnails, videos, or design imagery. If this app has a native generation action, prefer that action because it may attach the asset to the local document/deck/design.
|
|
1519
1524
|
`;
|
|
@@ -1604,7 +1609,7 @@ You can activate a real Chrome browser via Builder.io for tasks that need full p
|
|
|
1604
1609
|
- Reading content from pages that require JavaScript execution
|
|
1605
1610
|
|
|
1606
1611
|
**How to use:**
|
|
1607
|
-
1.
|
|
1612
|
+
1. In local development, call \`set-browser-control\` with \`{"enabled":true,"backend":"chrome-devtools"}\` after confirming once with the user. In production, use \`activate-browser\` for Builder-provisioned Chrome.
|
|
1608
1613
|
2. On your next action, use \`mcp__chrome-devtools__navigate_page\`, \`mcp__chrome-devtools__evaluate_script\`, \`mcp__chrome-devtools__take_screenshot\`, etc.
|
|
1609
1614
|
3. If Builder is not connected, call \`connect-builder\` first
|
|
1610
1615
|
|
|
@@ -1799,7 +1804,7 @@ When the user asks to connect Builder.io, needs Builder for LLM access / browser
|
|
|
1799
1804
|
|
|
1800
1805
|
### Browser Automation
|
|
1801
1806
|
|
|
1802
|
-
|
|
1807
|
+
In local development, call \`set-browser-control\` to enable built-in browser MCP tools. Prefer \`backend:"chrome-devtools"\` for the user's live logged-in Chrome; use \`backend:"playwright"\` for isolated browser testing. In production, use \`activate-browser\` for Builder-provisioned browser sessions.
|
|
1803
1808
|
|
|
1804
1809
|
### call-agent — External Apps Only
|
|
1805
1810
|
|