@agent-native/core 0.198.3 → 0.198.5
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/a2a/types.d.ts +5 -0
- package/dist/agent/production-agent.js +26 -1
- package/dist/catalog.json +1 -0
- package/dist/client/chat/agentkit-agent-native.js +15 -15
- package/dist/client/chat/runtime.js +5 -3
- package/dist/client/feature-flags/types.d.ts +2 -0
- package/dist/client/i18n.d.ts +2 -0
- package/dist/client/i18n.js +2 -0
- package/dist/client/integrations/index.d.ts +1 -0
- package/dist/client/integrations/index.js +1 -0
- package/dist/client/labs/index.d.ts +1 -1
- package/dist/client/labs/use-lab.d.ts +5 -0
- package/dist/client/labs/use-lab.js +7 -3
- package/dist/client/resources/mcp-connection-resume.d.ts +5 -3
- package/dist/client/resources/mcp-connection-resume.js +150 -13
- package/dist/client/sse-event-processor.d.ts +6 -0
- package/dist/client/uploads/index.d.ts +1 -0
- package/dist/client/uploads/index.js +1 -0
- package/dist/client/uploads/private-icon.d.ts +10 -0
- package/dist/client/uploads/private-icon.js +52 -0
- package/dist/collab/routes.d.ts +2 -2
- package/dist/feature-flags/actions/get-feature-flags.js +20 -0
- package/dist/feature-flags/actions/list-feature-flags.d.ts +2 -0
- package/dist/feature-flags/actions/list-feature-flags.js +5 -0
- package/dist/feature-flags/actions/set-feature-flag.js +5 -0
- package/dist/file-upload/actions/upload-image.d.ts +3 -3
- package/dist/framework-tools.js +2 -0
- package/dist/icon-assets/index.d.ts +3 -0
- package/dist/icon-assets/index.js +3 -0
- package/dist/icon-assets/multipart.d.ts +9 -0
- package/dist/icon-assets/multipart.js +60 -0
- package/dist/icon-assets/schema.d.ts +194 -0
- package/dist/icon-assets/schema.js +16 -0
- package/dist/icon-assets/store.d.ts +38 -0
- package/dist/icon-assets/store.js +187 -0
- package/dist/icon-assets/svg.d.ts +2 -0
- package/dist/icon-assets/svg.js +146 -0
- package/dist/icon-assets/workspace-transport.d.ts +20 -0
- package/dist/icon-assets/workspace-transport.js +122 -0
- package/dist/identity/rekey.js +1 -0
- package/dist/jobs/actions/manage-recurring-job.d.ts +1 -1
- package/dist/labs/actions/get-lab-states.d.ts +2 -0
- package/dist/labs/actions/get-lab-states.js +14 -0
- package/dist/labs/actions/get-labs.js +2 -2
- package/dist/labs/actions/set-lab.js +4 -2
- package/dist/labs/index.d.ts +1 -1
- package/dist/labs/index.js +1 -1
- package/dist/labs/registry.d.ts +3 -0
- package/dist/labs/registry.js +14 -0
- package/dist/labs/server.d.ts +1 -1
- package/dist/labs/server.js +1 -1
- package/dist/labs/store.d.ts +13 -2
- package/dist/labs/store.js +124 -7
- package/dist/localization/default-messages.d.ts +2 -0
- package/dist/localization/default-messages.js +1 -1
- package/dist/localization/icon-picker-messages.d.ts +44 -0
- package/dist/localization/icon-picker-messages.js +22 -0
- package/dist/mcp-client/oauth-client.d.ts +1 -0
- package/dist/mcp-client/oauth-client.js +42 -4
- package/dist/mcp-client/oauth-routes.js +15 -2
- package/dist/notifications/routes.d.ts +1 -1
- package/dist/observability/routes.d.ts +9 -9
- package/dist/org/actions/list-workspace-icons.d.ts +7 -0
- package/dist/org/actions/list-workspace-icons.js +41 -0
- package/dist/org/handlers.d.ts +1 -1
- package/dist/org/handlers.js +28 -1
- package/dist/org/index.d.ts +1 -1
- package/dist/org/migrations.js +21 -0
- package/dist/org/plugin.js +42 -0
- package/dist/org/private-icon-handlers.d.ts +6 -0
- package/dist/org/private-icon-handlers.js +212 -0
- package/dist/progress/routes.d.ts +1 -1
- package/dist/provider-api/actions/custom-provider-registration.d.ts +8 -8
- package/dist/provider-api/actions/provider-api.d.ts +5 -5
- package/dist/provider-api/corpus-jobs.d.ts +2 -2
- package/dist/provider-api/index.d.ts +1 -1
- package/dist/provider-api/index.js +26 -6
- package/dist/secrets/routes.d.ts +4 -4
- package/dist/server/action-discovery.js +5 -0
- package/dist/server/agent-chat-plugin.js +14 -0
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/dist/server/agent-engine-default-model-route.d.ts +1 -1
- package/dist/server/agent-engine-ollama-models-route.d.ts +1 -1
- package/dist/server/core-routes-plugin.d.ts +1 -1
- package/dist/server/core-routes-plugin.js +18 -3
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/workspace-provider-oauth.d.ts +1 -0
- package/dist/server/workspace-provider-oauth.js +4 -2
- package/dist/templates/chat/app/components/chat/ChatRouteContent.tsx +9 -16
- package/dist/triggers/actions/manage-automation.d.ts +5 -5
- package/dist/vite/action-types-plugin.js +4 -0
- package/package.json +7 -9
- package/src/templates/chat/app/components/chat/ChatRouteContent.tsx +9 -16
|
@@ -1476,22 +1476,37 @@ export async function resolveOAuthCustodyBuilderKeyStatus(dependencies = {
|
|
|
1476
1476
|
}
|
|
1477
1477
|
}
|
|
1478
1478
|
const OAUTH_POPUP_WAITING_HTML = '<!doctype html><html><head><meta charset="utf-8"><meta name="color-scheme" content="light dark"><title></title></head><body></body></html>';
|
|
1479
|
+
const OAUTH_POPUP_COMPLETE_HTML = '<!doctype html><html><head><meta charset="utf-8"><title></title></head><body><script>window.opener?.postMessage({type:"agent-native:workspace-connection-complete"},window.location.origin);window.close();</script></body></html>';
|
|
1480
|
+
const OAUTH_POPUP_RESUME_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;
|
|
1481
|
+
function oauthPopupCompletionHtml(completionId) {
|
|
1482
|
+
const storageKey = `agent-native:mcp-connection-completion:${completionId}`;
|
|
1483
|
+
return `<!doctype html><html><head><meta charset="utf-8"><title></title></head><body><script>try{localStorage.setItem("${storageKey}","1")}catch(error){console.error("Could not persist OAuth completion",error)}window.opener?.postMessage({type:"agent-native:workspace-connection-complete",completionId:"${completionId}"},window.location.origin);window.close();</script></body></html>`;
|
|
1484
|
+
}
|
|
1479
1485
|
export function createOAuthPopupWaitingHandler() {
|
|
1480
1486
|
return defineEventHandler((event) => {
|
|
1481
1487
|
if (getMethod(event) !== "GET") {
|
|
1482
1488
|
setResponseStatus(event, 405);
|
|
1483
1489
|
return { error: "Method not allowed" };
|
|
1484
1490
|
}
|
|
1491
|
+
const completingWorkspaceConnection = getRequestURL(event).searchParams.get("complete") ===
|
|
1492
|
+
"workspace-connection";
|
|
1493
|
+
const resumeId = getRequestURL(event).searchParams.get("resume");
|
|
1485
1494
|
setResponseHeader(event, "Content-Type", "text/html; charset=utf-8");
|
|
1486
|
-
setResponseHeader(event, "Cache-Control", "public, max-age=300");
|
|
1487
|
-
setResponseHeader(event, "Content-Security-Policy",
|
|
1495
|
+
setResponseHeader(event, "Cache-Control", completingWorkspaceConnection ? "no-store" : "public, max-age=300");
|
|
1496
|
+
setResponseHeader(event, "Content-Security-Policy", completingWorkspaceConnection
|
|
1497
|
+
? "default-src 'none'; script-src 'unsafe-inline'; frame-ancestors 'none'"
|
|
1498
|
+
: "default-src 'none'; frame-ancestors 'none'");
|
|
1488
1499
|
setResponseHeader(event, "X-Frame-Options", "DENY");
|
|
1489
1500
|
// Keep the opener alive until the client replaces this inert page with the
|
|
1490
1501
|
// provider URL. This only works while every opener document sends no COOP
|
|
1491
1502
|
// or `same-origin-allow-popups` (security-headers.ts); an opener sending
|
|
1492
1503
|
// `same-origin` severs the popup here and leaves it blank.
|
|
1493
1504
|
setResponseHeader(event, "Cross-Origin-Opener-Policy", "unsafe-none");
|
|
1494
|
-
return
|
|
1505
|
+
return completingWorkspaceConnection
|
|
1506
|
+
? resumeId && OAUTH_POPUP_RESUME_ID.test(resumeId)
|
|
1507
|
+
? oauthPopupCompletionHtml(resumeId)
|
|
1508
|
+
: OAUTH_POPUP_COMPLETE_HTML
|
|
1509
|
+
: OAUTH_POPUP_WAITING_HTML;
|
|
1495
1510
|
});
|
|
1496
1511
|
}
|
|
1497
1512
|
export function mountApplicationStateRoutes(nitroApp, routePrefix = FRAMEWORK_ROUTE_PREFIX, app = getH3App(nitroApp), options = {}) {
|
package/dist/server/index.d.ts
CHANGED
|
@@ -90,7 +90,7 @@ export { GEMINI_API_KEY, LEGACY_GEMINI_API_KEY, canonicalSecretKey, readGeminiDe
|
|
|
90
90
|
export { SERVICE_IDS, SERVICE_PROVIDERS_SETTING_KEY, SERVICE_PROVIDER_KEYS, SERVICE_PROVIDER_OPTIONS, isServiceProviderOption, readServiceProviderChoice, readServiceProviderSettings, serviceProviderOrder, writeServiceProviderChoice, type ServiceId, type ServiceProviderChoices, type ServiceProviderId, type ServiceProviderSettings, } from "./service-providers.js";
|
|
91
91
|
export { getInfrastructureStatus, type InfrastructureApp, type InfrastructureDatabase, type InfrastructureDatabaseProvider, type InfrastructureHosting, type InfrastructureSetupTag, type InfrastructureSetupTags, type InfrastructureStatus, type InfrastructureVariable, type InfrastructureVariableKey, } from "./infrastructure-status.js";
|
|
92
92
|
export { resolveDeployPlatform, type DeployPlatform, } from "./deploy-environment.js";
|
|
93
|
-
export { BUILDER_PUBLISH_MCP_RESOURCE, canAuthorizeBuilderApiRequest, hasBuilderApiCredentialCustody, resolveBuilderApiAuthorization, resolveBuilderRequestAuthorization, type BuilderLegacyCredentialKey, type BuilderRequestAuthorization, } from "./builder-api-auth.js";
|
|
93
|
+
export { BUILDER_PUBLISH_MCP_RESOURCE, canAuthorizeBuilderApiRequest, hasBuilderApiCredentialCustody, resolveBuilderApiAuthorization, resolveBuilderLegacyRequestAuthorization, resolveBuilderRequestAuthorization, type BuilderLegacyCredentialKey, type BuilderRequestAuthorization, } from "./builder-api-auth.js";
|
|
94
94
|
export { BUILDER_ASSETS_WRITE_SCOPE, BUILDER_OAUTH_SCOPE, type BuilderOAuthPermissionScope, } from "./builder-oauth.js";
|
|
95
95
|
export { assertBuilderDesignSystemCodeIndexingAllowed, builderDesignSystemUrl, builderProjectBranchUrl, buildBuilderDesignSystemIndexFiles, collectBuilderDesignSystemGitHubFiles, createBuilderDesignSystemProxyFields, designSystemTierUpgradeUrl, fetchBuilderDesignSystemDecodeJobStatus, fetchBuilderDesignSystemDocs, fetchBuilderDesignSystemDocumentCount, fetchBuilderDesignSystemRecord, fetchBuilderDesignSystemTierLimit, getBuilderDesignSystemsBaseUrl, hydrateBuilderDesignSystemReference, indexBuilderDesignSystem, isBuilderDesignSystemReadyByCount, localBuilderDesignSystemId, mimeTypeForBuilderDesignSystemFilename, parseBuilderDesignSystemProxyReference, startBuilderDesignSystemIndex, startBuilderDesignSystemUpload, type BuildBuilderDesignSystemIndexFilesOptions, type BuilderDesignSystemCodeFileInput, type BuilderDesignSystemDecodeJobStatus, type BuilderDesignSystemDocsOptions, type BuilderDesignSystemDocument, type BuilderDesignSystemDocumentCountResult, type BuilderDesignSystemHydratedReference, type BuilderDesignSystemIndexFile, type BuilderDesignSystemIndexFromSourcesOptions, type BuilderDesignSystemIndexOptions, type BuilderDesignSystemIndexResult, type BuilderDesignSystemRecord, type BuilderDesignSystemStatus, type BuilderDesignSystemTierLimit, type BuilderDesignSystemGitHubFile, type BuilderDesignSystemGitHubFileCollection, type BuilderDesignSystemGitHubSource, type BuilderDesignSystemUploadAttachment, type BuilderDesignSystemUploadSlot, type BuilderDesignSystemProxyFields, type BuilderDesignSystemProxyFieldsOptions, type BuilderDesignSystemProxyReference, type BuilderDesignSystemSourceKind, } from "./builder-design-systems.js";
|
|
96
96
|
export { cdnSafeOriginStatus, createBuilderProject, ensureBuilderProject, findBuilderProjectForRepo, getBuilderBranchProjectId, isBuilderBranchingEnabled, requestBuilderBrowserConnection, resolveBuilderBranchProjectId, resolveIsBuilderBranchingEnabled, runBuilderAgent, type BuilderAgentAttachment, type BuilderAgentUploadAttachment, type BuilderAgentUrlAttachment, type BuilderProjectResult, type RunBuilderAgentResult, } from "./builder-browser.js";
|
package/dist/server/index.js
CHANGED
|
@@ -85,7 +85,7 @@ export { GEMINI_API_KEY, LEGACY_GEMINI_API_KEY, canonicalSecretKey, readGeminiDe
|
|
|
85
85
|
export { SERVICE_IDS, SERVICE_PROVIDERS_SETTING_KEY, SERVICE_PROVIDER_KEYS, SERVICE_PROVIDER_OPTIONS, isServiceProviderOption, readServiceProviderChoice, readServiceProviderSettings, serviceProviderOrder, writeServiceProviderChoice, } from "./service-providers.js";
|
|
86
86
|
export { getInfrastructureStatus, } from "./infrastructure-status.js";
|
|
87
87
|
export { resolveDeployPlatform, } from "./deploy-environment.js";
|
|
88
|
-
export { BUILDER_PUBLISH_MCP_RESOURCE, canAuthorizeBuilderApiRequest, hasBuilderApiCredentialCustody, resolveBuilderApiAuthorization, resolveBuilderRequestAuthorization, } from "./builder-api-auth.js";
|
|
88
|
+
export { BUILDER_PUBLISH_MCP_RESOURCE, canAuthorizeBuilderApiRequest, hasBuilderApiCredentialCustody, resolveBuilderApiAuthorization, resolveBuilderLegacyRequestAuthorization, resolveBuilderRequestAuthorization, } from "./builder-api-auth.js";
|
|
89
89
|
export { BUILDER_ASSETS_WRITE_SCOPE, BUILDER_OAUTH_SCOPE, } from "./builder-oauth.js";
|
|
90
90
|
export { assertBuilderDesignSystemCodeIndexingAllowed, builderDesignSystemUrl, builderProjectBranchUrl, buildBuilderDesignSystemIndexFiles, collectBuilderDesignSystemGitHubFiles, createBuilderDesignSystemProxyFields, designSystemTierUpgradeUrl, fetchBuilderDesignSystemDecodeJobStatus, fetchBuilderDesignSystemDocs, fetchBuilderDesignSystemDocumentCount, fetchBuilderDesignSystemRecord, fetchBuilderDesignSystemTierLimit, getBuilderDesignSystemsBaseUrl, hydrateBuilderDesignSystemReference, indexBuilderDesignSystem, isBuilderDesignSystemReadyByCount, localBuilderDesignSystemId, mimeTypeForBuilderDesignSystemFilename, parseBuilderDesignSystemProxyReference, startBuilderDesignSystemIndex, startBuilderDesignSystemUpload, } from "./builder-design-systems.js";
|
|
91
91
|
export { cdnSafeOriginStatus, createBuilderProject, ensureBuilderProject, findBuilderProjectForRepo, getBuilderBranchProjectId, isBuilderBranchingEnabled, requestBuilderBrowserConnection, resolveBuilderBranchProjectId, resolveIsBuilderBranchingEnabled, runBuilderAgent, } from "./builder-browser.js";
|
|
@@ -69,6 +69,7 @@ function isWorkspaceProviderOAuthFlow(value) {
|
|
|
69
69
|
typeof flow.appId === "string" &&
|
|
70
70
|
flow.appId.length > 0 &&
|
|
71
71
|
isWorkspaceProviderOAuthScope(flow.scope) &&
|
|
72
|
+
(flow.returnUrl === undefined || typeof flow.returnUrl === "string") &&
|
|
72
73
|
(flow.salesforceLoginUrl === undefined ||
|
|
73
74
|
typeof flow.salesforceLoginUrl === "string") &&
|
|
74
75
|
typeof flow.expiresAt === "number" &&
|
|
@@ -168,7 +169,6 @@ export async function handleWorkspaceProviderOAuthStart(event, providerId) {
|
|
|
168
169
|
app: appId,
|
|
169
170
|
scope: orgContext.oauthScope,
|
|
170
171
|
...(useRootGoogleCallback ? { provider: providerId } : {}),
|
|
171
|
-
returnUrl,
|
|
172
172
|
flowId,
|
|
173
173
|
});
|
|
174
174
|
const flow = {
|
|
@@ -180,6 +180,7 @@ export async function handleWorkspaceProviderOAuthStart(event, providerId) {
|
|
|
180
180
|
orgId,
|
|
181
181
|
appId,
|
|
182
182
|
scope: orgContext.oauthScope,
|
|
183
|
+
...(returnUrl ? { returnUrl } : {}),
|
|
183
184
|
...(salesforceLoginUrl ? { salesforceLoginUrl } : {}),
|
|
184
185
|
expiresAt: Date.now() + FLOW_TTL_SECONDS * 1_000,
|
|
185
186
|
};
|
|
@@ -338,7 +339,8 @@ export async function handleWorkspaceProviderOAuthCallback(event, providerId) {
|
|
|
338
339
|
config: connectionConfig,
|
|
339
340
|
});
|
|
340
341
|
}
|
|
341
|
-
const returnPath =
|
|
342
|
+
const returnPath = flow.returnUrl ??
|
|
343
|
+
state.returnUrl ??
|
|
342
344
|
`/settings/integrations?connected=${encodeURIComponent(providerId)}`;
|
|
343
345
|
return redirectWithStagedCookies(event, getAppUrl(event, returnPath));
|
|
344
346
|
});
|
|
@@ -389,6 +389,10 @@ function ChatMcpConnectionRequest({
|
|
|
389
389
|
return (
|
|
390
390
|
<McpAgentKitConnectionRequestCard
|
|
391
391
|
provider={request.provider}
|
|
392
|
+
reason={request.reason}
|
|
393
|
+
status={request.status}
|
|
394
|
+
appId={request.appId}
|
|
395
|
+
source={request.source}
|
|
392
396
|
{...(request.detail ? { detail: request.detail } : {})}
|
|
393
397
|
target={{ threadId, runId, requestId: request.id }}
|
|
394
398
|
onConnected={() => resolve("connected")}
|
|
@@ -401,22 +405,11 @@ function ChatMcpConnectionRequest({
|
|
|
401
405
|
function ChatMcpConnectionResume() {
|
|
402
406
|
const { controller, threadId } = useAgentKit();
|
|
403
407
|
const onResume = useCallback(
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
await controller.resolveConnectionRequest({
|
|
410
|
-
...target,
|
|
411
|
-
response: { status: "connected" },
|
|
412
|
-
});
|
|
413
|
-
} catch {
|
|
414
|
-
await controller.sendMessage({
|
|
415
|
-
threadId: target.threadId,
|
|
416
|
-
text: request.message,
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
|
-
},
|
|
408
|
+
(target: { threadId: string; runId: string; requestId: string }) =>
|
|
409
|
+
controller.resolveConnectionRequest({
|
|
410
|
+
...target,
|
|
411
|
+
response: { status: "connected" },
|
|
412
|
+
}),
|
|
420
413
|
[controller],
|
|
421
414
|
);
|
|
422
415
|
const onMessageResume = useCallback(
|
|
@@ -13,6 +13,8 @@ declare const _default: import("../../action.js").ActionDefinition<{
|
|
|
13
13
|
executionEngine?: string;
|
|
14
14
|
executionCwd?: string;
|
|
15
15
|
}, {
|
|
16
|
+
deleted?: undefined;
|
|
17
|
+
enabled?: undefined;
|
|
16
18
|
created: boolean;
|
|
17
19
|
name: string;
|
|
18
20
|
scope: "organization" | "personal";
|
|
@@ -23,33 +25,31 @@ declare const _default: import("../../action.js").ActionDefinition<{
|
|
|
23
25
|
reasoningEffort: "auto" | "high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh";
|
|
24
26
|
webhookPath: string;
|
|
25
27
|
nextRun: string;
|
|
26
|
-
deleted?: undefined;
|
|
27
|
-
enabled?: undefined;
|
|
28
28
|
executionHostId?: undefined;
|
|
29
29
|
executionEngine?: undefined;
|
|
30
30
|
executionCwd?: undefined;
|
|
31
31
|
} | {
|
|
32
|
+
enabled?: undefined;
|
|
33
|
+
nextRun?: undefined;
|
|
32
34
|
created?: undefined;
|
|
33
35
|
scope?: undefined;
|
|
34
36
|
triggerType?: undefined;
|
|
35
37
|
event?: undefined;
|
|
36
38
|
deleted: boolean;
|
|
37
39
|
name: string;
|
|
38
|
-
enabled?: undefined;
|
|
39
40
|
schedule?: undefined;
|
|
40
41
|
timezone?: undefined;
|
|
41
42
|
reasoningEffort?: undefined;
|
|
42
43
|
executionHostId?: undefined;
|
|
43
44
|
executionEngine?: undefined;
|
|
44
45
|
executionCwd?: undefined;
|
|
45
|
-
nextRun?: undefined;
|
|
46
46
|
webhookPath?: undefined;
|
|
47
47
|
} | {
|
|
48
|
+
deleted?: undefined;
|
|
48
49
|
created?: undefined;
|
|
49
50
|
scope?: undefined;
|
|
50
51
|
triggerType?: undefined;
|
|
51
52
|
event?: undefined;
|
|
52
|
-
deleted?: undefined;
|
|
53
53
|
name: string;
|
|
54
54
|
enabled: boolean;
|
|
55
55
|
schedule: string;
|
|
@@ -29,6 +29,10 @@ const CORE_SHARING_ACTIONS = [
|
|
|
29
29
|
name: "get-labs",
|
|
30
30
|
specifier: "@agent-native/core/labs/actions/get-labs",
|
|
31
31
|
},
|
|
32
|
+
{
|
|
33
|
+
name: "get-lab-states",
|
|
34
|
+
specifier: "@agent-native/core/labs/actions/get-lab-states",
|
|
35
|
+
},
|
|
32
36
|
{
|
|
33
37
|
name: "set-lab",
|
|
34
38
|
specifier: "@agent-native/core/labs/actions/set-lab",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-native/core",
|
|
3
|
-
"version": "0.198.
|
|
3
|
+
"version": "0.198.5",
|
|
4
4
|
"description": "The agentic application framework for building autonomous agents with intuitive UIs",
|
|
5
5
|
"homepage": "https://github.com/BuilderIO/agent-native#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -252,6 +252,7 @@
|
|
|
252
252
|
"./labs/registry": "./dist/labs/registry.js",
|
|
253
253
|
"./labs/server": "./dist/labs/server.js",
|
|
254
254
|
"./labs/actions/get-labs": "./dist/labs/actions/get-labs.js",
|
|
255
|
+
"./labs/actions/get-lab-states": "./dist/labs/actions/get-lab-states.js",
|
|
255
256
|
"./labs/actions/set-lab": "./dist/labs/actions/set-lab.js",
|
|
256
257
|
"./experiments": "./dist/experiments/index.js",
|
|
257
258
|
"./experiments/registry": "./dist/experiments/registry.js",
|
|
@@ -275,6 +276,7 @@
|
|
|
275
276
|
"./integrations/actions/list-messaging-channels": "./dist/integrations/actions/list-messaging-channels.js",
|
|
276
277
|
"./integrations/actions/manage-messaging-channel": "./dist/integrations/actions/manage-messaging-channel.js",
|
|
277
278
|
"./private-blob": "./dist/private-blob/index.js",
|
|
279
|
+
"./icon-assets": "./dist/icon-assets/index.js",
|
|
278
280
|
"./agent/tool-result-images": "./dist/agent/tool-result-images.js",
|
|
279
281
|
"./agent/context-xray/actions/context-manifest-get": "./dist/agent/context-xray/actions/context-manifest-get.js",
|
|
280
282
|
"./agent/context-xray/actions/context-pin": "./dist/agent/context-xray/actions/context-pin.js",
|
|
@@ -640,6 +642,7 @@
|
|
|
640
642
|
"dotenv": "^17.2.1",
|
|
641
643
|
"drizzle-orm": "^0.45.2",
|
|
642
644
|
"esbuild": "^0.28.1",
|
|
645
|
+
"fast-xml-parser": "5.11.1",
|
|
643
646
|
"h3": "^2.0.1-rc.20",
|
|
644
647
|
"i18next": "26.3.1",
|
|
645
648
|
"ink": "6.8.0",
|
|
@@ -659,8 +662,8 @@
|
|
|
659
662
|
"yaml": "^2.9.0",
|
|
660
663
|
"yjs": "^13.6.33",
|
|
661
664
|
"zod": "^4.3.6",
|
|
662
|
-
"@agent-native/agentkit": "^0.198.
|
|
663
|
-
"@agent-native/recap-cli": "^0.5.
|
|
665
|
+
"@agent-native/agentkit": "^0.198.5",
|
|
666
|
+
"@agent-native/recap-cli": "^0.5.55"
|
|
664
667
|
},
|
|
665
668
|
"devDependencies": {
|
|
666
669
|
"@ai-sdk/anthropic": "^3.0.71",
|
|
@@ -710,7 +713,6 @@
|
|
|
710
713
|
"botframework-connector": "^4.23.3",
|
|
711
714
|
"drizzle-kit": "^0.31.10",
|
|
712
715
|
"express": "^5.2.1",
|
|
713
|
-
"fast-xml-parser": "^5.10.1",
|
|
714
716
|
"jszip": "^3.10.1",
|
|
715
717
|
"mammoth": "^1.12.0",
|
|
716
718
|
"mermaid": "11.15.0",
|
|
@@ -721,7 +723,7 @@
|
|
|
721
723
|
"prettier": "^3.8.3",
|
|
722
724
|
"react": "19.2.7",
|
|
723
725
|
"react-dom": "^19.2.7",
|
|
724
|
-
"react-router": "
|
|
726
|
+
"react-router": "8.1.0",
|
|
725
727
|
"sharp": "^0.35.3",
|
|
726
728
|
"tailwindcss": "^4.2.4",
|
|
727
729
|
"ts-morph": "^28.0.0",
|
|
@@ -762,7 +764,6 @@
|
|
|
762
764
|
"ai-sdk-ollama": ">=3",
|
|
763
765
|
"botframework-connector": "^4.23.3",
|
|
764
766
|
"drizzle-kit": ">=0.31",
|
|
765
|
-
"fast-xml-parser": "^5.10.1",
|
|
766
767
|
"jszip": "^3.10.1",
|
|
767
768
|
"mammoth": "^1.12.0",
|
|
768
769
|
"node-pty": ">=1",
|
|
@@ -872,9 +873,6 @@
|
|
|
872
873
|
"drizzle-kit": {
|
|
873
874
|
"optional": true
|
|
874
875
|
},
|
|
875
|
-
"fast-xml-parser": {
|
|
876
|
-
"optional": true
|
|
877
|
-
},
|
|
878
876
|
"jszip": {
|
|
879
877
|
"optional": true
|
|
880
878
|
},
|
|
@@ -389,6 +389,10 @@ function ChatMcpConnectionRequest({
|
|
|
389
389
|
return (
|
|
390
390
|
<McpAgentKitConnectionRequestCard
|
|
391
391
|
provider={request.provider}
|
|
392
|
+
reason={request.reason}
|
|
393
|
+
status={request.status}
|
|
394
|
+
appId={request.appId}
|
|
395
|
+
source={request.source}
|
|
392
396
|
{...(request.detail ? { detail: request.detail } : {})}
|
|
393
397
|
target={{ threadId, runId, requestId: request.id }}
|
|
394
398
|
onConnected={() => resolve("connected")}
|
|
@@ -401,22 +405,11 @@ function ChatMcpConnectionRequest({
|
|
|
401
405
|
function ChatMcpConnectionResume() {
|
|
402
406
|
const { controller, threadId } = useAgentKit();
|
|
403
407
|
const onResume = useCallback(
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
await controller.resolveConnectionRequest({
|
|
410
|
-
...target,
|
|
411
|
-
response: { status: "connected" },
|
|
412
|
-
});
|
|
413
|
-
} catch {
|
|
414
|
-
await controller.sendMessage({
|
|
415
|
-
threadId: target.threadId,
|
|
416
|
-
text: request.message,
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
|
-
},
|
|
408
|
+
(target: { threadId: string; runId: string; requestId: string }) =>
|
|
409
|
+
controller.resolveConnectionRequest({
|
|
410
|
+
...target,
|
|
411
|
+
response: { status: "connected" },
|
|
412
|
+
}),
|
|
420
413
|
[controller],
|
|
421
414
|
);
|
|
422
415
|
const onMessageResume = useCallback(
|