@agent-native/core 0.210.0 → 0.210.1-nightly-20261019212919

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.
@@ -38,19 +38,19 @@ export declare const postAwareness: import("h3").EventHandlerWithFetch<import("h
38
38
  error: string;
39
39
  states?: undefined;
40
40
  } | {
41
- error?: undefined;
42
41
  states: {
43
42
  clientId: number;
44
43
  state: string;
45
44
  }[];
45
+ error?: undefined;
46
46
  }>>;
47
47
  export declare const getActiveUsers: import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
48
48
  error: string;
49
49
  users?: undefined;
50
50
  } | {
51
- error?: undefined;
52
51
  users: {
53
52
  clientId: number;
54
53
  lastSeen: number;
55
54
  }[];
55
+ error?: undefined;
56
56
  }>>;
@@ -21,8 +21,8 @@ export declare const postCollabUpdate: import("h3").EventHandlerWithFetch<import
21
21
  }>>;
22
22
  export declare const postCollabText: import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
23
23
  ok?: undefined;
24
- text?: undefined;
25
24
  error: string;
25
+ text?: undefined;
26
26
  } | {
27
27
  error?: undefined;
28
28
  ok: boolean;
@@ -1,6 +1,6 @@
1
1
  export declare const postCollabJson: import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
2
- ok?: undefined;
3
2
  error: string;
3
+ ok?: undefined;
4
4
  } | {
5
5
  error?: undefined;
6
6
  ok: boolean;
@@ -42,8 +42,8 @@ declare const _default: import("../../action.js").ActionDefinition<{
42
42
  url: string;
43
43
  id: string;
44
44
  provider: string;
45
- error?: undefined;
46
45
  configured?: undefined;
46
+ error?: undefined;
47
47
  } | {
48
48
  url?: undefined;
49
49
  id?: undefined;
@@ -2004,6 +2004,7 @@ export async function createMCPServerForRequest(config, identity, requestMeta) {
2004
2004
  connectorNames.size > 0 ||
2005
2005
  automaticConnectorPolicyActive);
2006
2006
  const writesAreAskAppOnly = externalAgentWritesAreAskAppOnly(config);
2007
+ const preserveCompactActions = config.connectorCatalog === undefined && !automaticConnectorPolicyActive;
2007
2008
  const advertisedActionsBeforeToolSearchScope = appCatalog
2008
2009
  ? Object.fromEntries(Object.entries(visibleActions).filter(([name]) => !denyNames.has(name)))
2009
2010
  : directoryCatalog
@@ -2016,8 +2017,11 @@ export async function createMCPServerForRequest(config, identity, requestMeta) {
2016
2017
  return false;
2017
2018
  if (COMPACT_MCP_APP_CATALOG_BUILTINS.has(name))
2018
2019
  return true;
2019
- if (!connectorNames.has(name))
2020
+ if (!connectorNames.has(name) &&
2021
+ !(preserveCompactActions &&
2022
+ isActionAdvertisedInCompactMcpAppCatalog(name, entry, config))) {
2020
2023
  return false;
2024
+ }
2021
2025
  if (writesAreAskAppOnly && !isMcpReadOnlyTool(entry)) {
2022
2026
  return false;
2023
2027
  }
@@ -1,21 +1,21 @@
1
1
  export declare function createNotificationsHandler(): import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<"" | import("./types.js").Notification[] | {
2
- error?: undefined;
3
2
  count: number;
4
3
  updated?: undefined;
5
4
  ok?: undefined;
6
- } | {
7
5
  error?: undefined;
6
+ } | {
8
7
  count?: undefined;
9
8
  updated: number;
10
9
  ok?: undefined;
10
+ error?: undefined;
11
11
  } | {
12
12
  count?: undefined;
13
13
  updated?: undefined;
14
14
  error: string;
15
15
  ok?: undefined;
16
16
  } | {
17
- error?: undefined;
18
17
  count?: undefined;
19
18
  updated?: undefined;
20
19
  ok: boolean;
20
+ error?: undefined;
21
21
  }>>;
@@ -2,6 +2,6 @@ export declare function createProgressHandler(): import("h3").EventHandlerWithFe
2
2
  error: string;
3
3
  ok?: undefined;
4
4
  } | {
5
- error?: undefined;
6
5
  ok: boolean;
6
+ error?: undefined;
7
7
  }>>;
@@ -66,8 +66,8 @@ export declare function createAgentEngineApiKeyHandler(): import("h3").EventHand
66
66
  error: any;
67
67
  code: any;
68
68
  } | {
69
- error?: undefined;
70
69
  errorCode?: undefined;
70
+ error?: undefined;
71
71
  code?: undefined;
72
72
  ok: boolean;
73
73
  key: string;
@@ -16,9 +16,9 @@ export declare function createAgentEngineDisconnectHandler(): import("h3").Event
16
16
  error: any;
17
17
  scope?: undefined;
18
18
  } | {
19
- error?: undefined;
20
19
  ok: boolean;
21
20
  scope: "org" | "user";
21
+ error?: undefined;
22
22
  }>>;
23
23
  export interface DefaultModelSelectionRequest {
24
24
  engine: string;
@@ -1,9 +1,9 @@
1
1
  export declare function createAgentEngineOllamaModelsHandler(): import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
2
2
  error: string;
3
- ok?: undefined;
4
3
  models?: undefined;
4
+ ok?: undefined;
5
5
  } | {
6
- error?: undefined;
7
6
  ok: boolean;
8
7
  models: string[];
8
+ error?: undefined;
9
9
  }>>;
@@ -42,6 +42,13 @@ export interface SendFusionMessageResult {
42
42
  * afterwards, or was fire-and-forget.
43
43
  */
44
44
  completed?: boolean;
45
+ /**
46
+ * True when the message was dispatched but this call stopped hearing from
47
+ * the run before it ended (timed out or the stream was cut off): Builder
48
+ * may still be applying it, so it must not be treated as failed-and-safe
49
+ * to resend, nor as done.
50
+ */
51
+ unconfirmed?: boolean;
45
52
  response?: string;
46
53
  error?: string;
47
54
  }
@@ -339,8 +339,16 @@ export async function sendFusionBranchMessage(args) {
339
339
  }
340
340
  catch (error) {
341
341
  if (controller.signal.aborted) {
342
- if (dispatched)
343
- return { sent: true };
342
+ if (dispatched) {
343
+ // Fire-and-forget never waits for the run, so dispatch is the outcome.
344
+ if (fireAndForget)
345
+ return { sent: true };
346
+ return {
347
+ sent: true,
348
+ unconfirmed: true,
349
+ error: "Timed out waiting for the app agent to finish; it may still be working",
350
+ };
351
+ }
344
352
  return {
345
353
  sent: false,
346
354
  error: "Timed out sending message to the app agent",
@@ -364,6 +372,7 @@ export async function sendFusionBranchMessage(args) {
364
372
  return { sent: dispatched };
365
373
  return {
366
374
  sent: dispatched,
375
+ ...(dispatched ? { unconfirmed: true } : {}),
367
376
  error: "The app agent's run ended before it finished",
368
377
  };
369
378
  }
@@ -1,7 +1,7 @@
1
1
  ===================================================================
2
2
  --- a/server/plugins/agent-chat.ts
3
3
  +++ b/server/plugins/agent-chat.ts
4
- @@ -4,23 +4,20 @@
4
+ @@ -4,24 +4,21 @@
5
5
  loadActionsFromStaticRegistry,
6
6
  } from "@agent-native/core/server";
7
7
 
@@ -18,6 +18,7 @@
18
18
  export default createAgentChatPlugin({
19
19
  appId: "chat",
20
20
  actions: loadActionsFromStaticRegistry(actionsRegistry),
21
+ mcp: { connectorCatalog: [] },
21
22
  - initialToolNames: INITIAL_TOOL_NAMES,
22
23
  + nativeActionsInDev: true,
23
24
  + finalResponseGuard: appOperationFinalResponseGuard,
@@ -16,6 +16,7 @@ const INITIAL_TOOL_NAMES = [
16
16
  export default createAgentChatPlugin({
17
17
  appId: "chat",
18
18
  actions: loadActionsFromStaticRegistry(actionsRegistry),
19
+ mcp: { connectorCatalog: [] },
19
20
  initialToolNames: INITIAL_TOOL_NAMES,
20
21
  resolveOrgId: async (event) => (await getOrgContext(event)).orgId,
21
22
  systemPrompt: `You are the Chat app agent.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-native/core",
3
- "version": "0.210.0",
3
+ "version": "0.210.1-nightly-20261019212919",
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": {
@@ -711,8 +711,8 @@
711
711
  "yaml": "^2.9.0",
712
712
  "yjs": "^13.6.33",
713
713
  "zod": "^4.3.6",
714
- "@agent-native/agentkit": "^0.210.0",
715
- "@agent-native/recap-cli": "^0.5.75"
714
+ "@agent-native/recap-cli": "^0.5.75",
715
+ "@agent-native/agentkit": "^0.210.1-nightly-20261019212919"
716
716
  },
717
717
  "devDependencies": {
718
718
  "@ai-sdk/anthropic": "^3.0.71",
@@ -782,7 +782,7 @@
782
782
  "xlsx": "^0.18.5"
783
783
  },
784
784
  "peerDependencies": {
785
- "@agent-native/core-corpus": ">=0.196.0",
785
+ "@agent-native/core-corpus": "0.210.1-nightly-20261019212919",
786
786
  "@ai-sdk/anthropic": ">=3",
787
787
  "@ai-sdk/cohere": ">=3",
788
788
  "@ai-sdk/google": ">=3",
@@ -1,7 +1,7 @@
1
1
  ===================================================================
2
2
  --- a/server/plugins/agent-chat.ts
3
3
  +++ b/server/plugins/agent-chat.ts
4
- @@ -4,23 +4,20 @@
4
+ @@ -4,24 +4,21 @@
5
5
  loadActionsFromStaticRegistry,
6
6
  } from "@agent-native/core/server";
7
7
 
@@ -18,6 +18,7 @@
18
18
  export default createAgentChatPlugin({
19
19
  appId: "chat",
20
20
  actions: loadActionsFromStaticRegistry(actionsRegistry),
21
+ mcp: { connectorCatalog: [] },
21
22
  - initialToolNames: INITIAL_TOOL_NAMES,
22
23
  + nativeActionsInDev: true,
23
24
  + finalResponseGuard: appOperationFinalResponseGuard,
@@ -16,6 +16,7 @@ const INITIAL_TOOL_NAMES = [
16
16
  export default createAgentChatPlugin({
17
17
  appId: "chat",
18
18
  actions: loadActionsFromStaticRegistry(actionsRegistry),
19
+ mcp: { connectorCatalog: [] },
19
20
  initialToolNames: INITIAL_TOOL_NAMES,
20
21
  resolveOrgId: async (event) => (await getOrgContext(event)).orgId,
21
22
  systemPrompt: `You are the Chat app agent.