@agent-native/core 0.237.1-nightly-20261202123958 → 0.237.1

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.
@@ -47,6 +47,14 @@ type ActionParams<T extends string> = T extends keyof ActionRegistry ? ActionReg
47
47
  params: infer P;
48
48
  } ? P : Record<string, any> : Record<string, any>;
49
49
  export type ClientActionMethod = "GET" | "POST" | "PUT" | "DELETE";
50
+ export declare function actionQueryDescriptor<TName extends ActionName>(actionName: TName, params?: ActionParams<TName>, options?: {
51
+ queryKeyScope?: readonly unknown[] | undefined;
52
+ resources?: readonly string[] | undefined;
53
+ meta?: Record<string, unknown> | undefined;
54
+ }): {
55
+ queryKey: QueryKey;
56
+ meta?: Record<string, unknown> | undefined;
57
+ };
50
58
  export interface ClientActionCallOptions {
51
59
  /** Bind imperative calls to an isolated app catalog; hooks bind their provider automatically. */
52
60
  errorI18n?: I18nInstance | undefined;
@@ -315,6 +323,7 @@ declare function useNormalActionMutation<TData = undefined, TVariables = undefin
315
323
  beforeInvalidate?: (data: TData extends undefined ? ActionResult<TName> : TData, variables: TVariables extends undefined ? ActionParams<TName> : TVariables, context: unknown) => void;
316
324
  /** The resource types this write changes; see `useActionQuery`. */
317
325
  resources?: readonly string[];
326
+ resolveResources?: (data: TData extends undefined ? ActionResult<TName> : TData, variables: TVariables extends undefined ? ActionParams<TName> : TVariables) => readonly string[] | undefined;
318
327
  timeoutMs?: number;
319
328
  /** Set when the action is declared `uiOnly`, so its first request carries the UI capability. */
320
329
  uiOnly?: boolean;
@@ -116,6 +116,14 @@ export function actionErrorMessage(error, fallback) {
116
116
  ?.actionMessage;
117
117
  return typeof value === "string" ? value : fallback;
118
118
  }
119
+ export function actionQueryDescriptor(actionName, params, options) {
120
+ return {
121
+ queryKey: ["action", actionName, params, ...(options?.queryKeyScope ?? [])],
122
+ meta: options?.resources
123
+ ? { ...options.meta, [ACTION_RESOURCES_META_KEY]: options.resources }
124
+ : options?.meta,
125
+ };
126
+ }
119
127
  function resolveUserTimezone() {
120
128
  try {
121
129
  return Intl.DateTimeFormat().resolvedOptions().timeZone || undefined;
@@ -1388,7 +1396,11 @@ function canBatchActionQueryFetch(query) {
1388
1396
  }
1389
1397
  export function useActionQuery(actionName, params, options) {
1390
1398
  const { refetchInterval, interactive = false, foregroundRefetch = false, retry: callerRetry, enabled: callerEnabled, queryKeyScope, resources, batchRefetches, batchInitial, onRequestStart, onServerResult, onServerError, method = "GET", beforeSend, uiOnly, retryUiCapability, ...restOptions } = options ?? {};
1391
- const queryKey = ["action", actionName, params, ...(queryKeyScope ?? [])];
1399
+ const { queryKey, meta } = actionQueryDescriptor(actionName, params, {
1400
+ queryKeyScope,
1401
+ resources,
1402
+ meta: restOptions.meta,
1403
+ });
1392
1404
  const queryClient = useQueryClient();
1393
1405
  const errorI18n = useContext(I18nContext)?.i18n;
1394
1406
  useEffect(() => retainFallbackToolDoneRefresh(queryClient), [queryClient]);
@@ -1509,17 +1521,11 @@ export function useActionQuery(actionName, params, options) {
1509
1521
  ? callerEnabled(query)
1510
1522
  : callerEnabled !== false;
1511
1523
  },
1512
- ...(resources || batchRefetches === false
1513
- ? {
1514
- meta: {
1515
- ...restOptions.meta,
1516
- ...(resources ? { [ACTION_RESOURCES_META_KEY]: resources } : {}),
1517
- ...(batchRefetches === false
1518
- ? { [UNBATCHED_REFETCHES_META_KEY]: true }
1519
- : {}),
1520
- },
1521
- }
1522
- : {}),
1524
+ ...(batchRefetches === false
1525
+ ? { meta: { ...meta, [UNBATCHED_REFETCHES_META_KEY]: true } }
1526
+ : meta === undefined
1527
+ ? {}
1528
+ : { meta }),
1523
1529
  ...(refetchInterval !== undefined
1524
1530
  ? { refetchInterval: guardActionQueryRefetchInterval(refetchInterval) }
1525
1531
  : {}),
@@ -1858,7 +1864,7 @@ function usePrivateInputMutation(actionName, options) {
1858
1864
  function useNormalActionMutation(actionName, options) {
1859
1865
  const queryClient = useQueryClient();
1860
1866
  const errorI18n = useContext(I18nContext)?.i18n;
1861
- const { method: methodOpt, onSuccess, skipActionQueryInvalidation = false, beforeInvalidate, resolveResult, resources, timeoutMs, uiOnly, interactive = false, retryUiCapability, headers, errorNotification = "auto", errorLabel, ...restOptions } = options ?? {};
1867
+ const { method: methodOpt, onSuccess, skipActionQueryInvalidation = false, beforeInvalidate, resolveResult, resources, resolveResources, timeoutMs, uiOnly, interactive = false, retryUiCapability, headers, errorNotification = "auto", errorLabel, ...restOptions } = options ?? {};
1862
1868
  const method = methodOpt ?? "POST";
1863
1869
  const observesProviderWrites = resolveResult !== undefined;
1864
1870
  const pendingProviderWrites = useMemo(() => ({
@@ -1962,7 +1968,7 @@ function useNormalActionMutation(actionName, options) {
1962
1968
  window.dispatchEvent(new Event("agentNative:syncActivity"));
1963
1969
  }
1964
1970
  try {
1965
- beforeInvalidate?.(...args);
1971
+ beforeInvalidate?.(args[0], args[1], args[2]);
1966
1972
  }
1967
1973
  catch {
1968
1974
  console.warn("Action mutation projection observer failed");
@@ -1974,7 +1980,17 @@ function useNormalActionMutation(actionName, options) {
1974
1980
  ownEpoch = readMutationEpoch();
1975
1981
  else
1976
1982
  revokeActionQueryCacheForClient(queryClient);
1977
- refetched = invalidateForegroundActionQueries(queryClient, actionQueryInvalidation(resources), interactive);
1983
+ let changedResources = resources;
1984
+ if (resolveResources) {
1985
+ try {
1986
+ changedResources = resolveResources(args[0], args[1]);
1987
+ }
1988
+ catch {
1989
+ changedResources = undefined;
1990
+ console.warn("Action mutation resource resolver failed");
1991
+ }
1992
+ }
1993
+ refetched = invalidateForegroundActionQueries(queryClient, actionQueryInvalidation(changedResources), interactive);
1978
1994
  }
1979
1995
  const result = onSuccess?.(...args);
1980
1996
  void Promise.allSettled([result, refetched]).then(() => requestActionCacheFlush(ownEpoch));
@@ -1,6 +1,6 @@
1
1
  export { REALTIME_CAP_POLL_LIVE } from "../realtime-protocol.js";
2
- interface Query {
3
- queryKey: readonly unknown[];
2
+ import { type ActionScopedQuery } from "./action-query-scope.js";
3
+ interface Query extends ActionScopedQuery {
4
4
  state?: {
5
5
  error?: unknown;
6
6
  };
@@ -3,7 +3,7 @@ import { ensureDemoModeFetchInterceptor } from "../demo/fetch-interceptor.js";
3
3
  import { parseHandshakeFrame, parseTokenFrame, REALTIME_CAP_POLL_LIVE, REALTIME_POLL_LIVE_QUERY_PARAM, REALTIME_PROTOCOL_VERSION, REALTIME_SSE_HANDSHAKE_EVENT, REALTIME_SSE_TOKEN_EVENT, } from "../realtime-protocol.js";
4
4
  export { REALTIME_CAP_POLL_LIVE } from "../realtime-protocol.js";
5
5
  import { addSurfaceVisibilityListener, isHostSurfaceHidden, isSurfaceHidden, } from "../shared/surface-visibility.js";
6
- import { actionQueryAffectedByResources } from "./action-query-scope.js";
6
+ import { actionQueryAffectedByResources, } from "./action-query-scope.js";
7
7
  import { agentNativePath, apiBaseUrl, isApiBaseUrl } from "./api-path.js";
8
8
  import { getBrowserTabId, resolveBrowserTabIdAlias } from "./browser-tab-id.js";
9
9
  import { isTerminalAuthFailure } from "./create-query-client.js";
@@ -1419,7 +1419,10 @@ export function useDbSync(options = {}) {
1419
1419
  const relevant = events.filter((event) => (!resourceType ||
1420
1420
  event.source === "app-state" ||
1421
1421
  event.version === 0 ||
1422
- event.resourceType === resourceType) &&
1422
+ event.resourceType === resourceType ||
1423
+ (event.source === "action" &&
1424
+ (typeof event.resourceType !== "string" ||
1425
+ !event.resourceType))) &&
1423
1426
  !(event.source === "action" &&
1424
1427
  event.requestSource === ownBrowserSource) &&
1425
1428
  (!ignore || event.requestSource !== ignore));
@@ -1,19 +1,19 @@
1
1
  {
2
- "@agent-native/actions": "0.1.2",
3
- "@agent-native/agentkit": "0.237.1-nightly-20261202123958",
2
+ "@agent-native/actions": "0.1.3",
3
+ "@agent-native/agentkit": "0.237.1",
4
4
  "@agent-native/code-agents-ui": "0.1.75",
5
- "@agent-native/core": "0.237.1-nightly-20261202123958",
6
- "@agent-native/core-corpus": "0.237.1-nightly-20261202123958",
7
- "@agent-native/creative-context": "0.8.82",
8
- "@agent-native/design-system": "0.237.1-nightly-20261202123958",
9
- "@agent-native/dispatch": "0.43.7-nightly-20261202123958",
5
+ "@agent-native/core": "0.237.1",
6
+ "@agent-native/core-corpus": "0.237.1",
7
+ "@agent-native/creative-context": "0.8.83",
8
+ "@agent-native/design-system": "0.237.1",
9
+ "@agent-native/dispatch": "0.43.7",
10
10
  "@agent-native/embedding": "0.2.0",
11
11
  "@agent-native/migrate": "0.0.7",
12
- "@agent-native/otel": "0.1.49",
13
- "@agent-native/pinpoint": "0.1.125",
14
- "@agent-native/recap-cli": "0.5.113",
15
- "@agent-native/scheduling": "0.4.6",
12
+ "@agent-native/otel": "0.1.50",
13
+ "@agent-native/pinpoint": "0.1.126",
14
+ "@agent-native/recap-cli": "0.5.114",
15
+ "@agent-native/scheduling": "0.4.7",
16
16
  "@agent-native/shared-app-config": "0.1.2",
17
- "@agent-native/skills": "0.4.18-nightly-20261202123958",
18
- "@agent-native/toolkit": "0.237.1-nightly-20261202123958"
17
+ "@agent-native/skills": "0.4.18",
18
+ "@agent-native/toolkit": "0.237.1"
19
19
  }
@@ -139,7 +139,7 @@ export async function nextRecurringJobWakeAt(deps, now = Date.now()) {
139
139
  wakeAt(probeAt);
140
140
  continue;
141
141
  }
142
- if (!meta.enabled || !meta.schedule || !isValidCron(meta.schedule)) {
142
+ if (!meta.enabled || (!meta.schedule && meta.triggerType === undefined)) {
143
143
  continue;
144
144
  }
145
145
  const expiration = meta.expiresAt ? Date.parse(meta.expiresAt) : NaN;
@@ -148,15 +148,13 @@ export async function nextRecurringJobWakeAt(deps, now = Date.now()) {
148
148
  return now;
149
149
  wakeAt(expiration);
150
150
  }
151
- if (!meta.nextRun)
151
+ if (invalidScheduledJobReason(meta, body) || !meta.nextRun)
152
152
  return now;
153
153
  const nextRun = Date.parse(meta.nextRun);
154
154
  if (nextRun > now) {
155
155
  wakeAt(nextRun);
156
156
  continue;
157
157
  }
158
- if (!body.trim())
159
- continue;
160
158
  if (hasRecentIdentityFailure(meta, new Date(now))) {
161
159
  wakeAt(Date.parse(meta.lastCheck ?? "") + IDENTITY_FAILURE_RETRY_MS);
162
160
  continue;
@@ -327,7 +325,7 @@ async function processRecurringJobsWithLease(deps, leaseSignal, assertCanStart)
327
325
  }
328
326
  continue;
329
327
  }
330
- if (!meta.enabled || !meta.schedule || !isValidCron(meta.schedule)) {
328
+ if (!meta.enabled || (!meta.schedule && meta.triggerType === undefined)) {
331
329
  continue;
332
330
  }
333
331
  // An end date is a promise: once it passes the automation stops, and it
@@ -342,6 +340,15 @@ async function processRecurringJobsWithLease(deps, leaseSignal, assertCanStart)
342
340
  });
343
341
  continue;
344
342
  }
343
+ const configError = invalidScheduledJobReason(meta, body);
344
+ if (configError) {
345
+ await disableAutomation(resource, meta, now, {
346
+ code: CONFIG_INVALID_ERROR_CODE,
347
+ message: configError,
348
+ precondition: true,
349
+ });
350
+ continue;
351
+ }
345
352
  if (meta.nextRun) {
346
353
  const nextRunDate = new Date(meta.nextRun);
347
354
  if (nextRunDate > now)
@@ -353,8 +360,6 @@ async function processRecurringJobsWithLease(deps, leaseSignal, assertCanStart)
353
360
  await updateResource(resource, meta, body);
354
361
  continue;
355
362
  }
356
- if (!body.trim())
357
- continue;
358
363
  if (hasRecentIdentityFailure(meta, now))
359
364
  continue;
360
365
  const key = `${resource.owner}:${resource.path}`;
@@ -601,6 +606,13 @@ async function rejectAutomationRecovery(resource, meta, resume, now, failure, as
601
606
  }, assertCanWrite);
602
607
  return { status: "error", error };
603
608
  }
609
+ function invalidScheduledJobReason(meta, body) {
610
+ if (!isValidCron(meta.schedule))
611
+ return "This automation needs a valid schedule.";
612
+ if (!body.trim())
613
+ return "This automation needs instructions.";
614
+ return undefined;
615
+ }
604
616
  function isPermanentIdentityFailure(code) {
605
617
  return (code === OWNER_MISSING_ERROR_CODE ||
606
618
  code === CONFIG_INVALID_ERROR_CODE ||
@@ -464,7 +464,7 @@ export async function handleWorkspaceProviderOAuthCallback(event, providerId) {
464
464
  }
465
465
  [clientId, clientSecret] = credentials;
466
466
  }
467
- const tokens = await exchangeWorkspaceProviderOAuthCode({
467
+ const exchangeInput = {
468
468
  providerId,
469
469
  provider,
470
470
  clientId,
@@ -486,7 +486,16 @@ export async function handleWorkspaceProviderOAuthCallback(event, providerId) {
486
486
  },
487
487
  }
488
488
  : {}),
489
- });
489
+ };
490
+ let tokens;
491
+ try {
492
+ tokens = await exchangeWorkspaceProviderOAuthCode(exchangeInput);
493
+ }
494
+ catch (error) {
495
+ if (!isGoogleWorkspaceOAuthProvider(providerId))
496
+ throw error;
497
+ return oauthFlowFailure(event, 502, `${provider.label} could not complete the OAuth token exchange. Start the connection again.`);
498
+ }
490
499
  const personalGrant = isPersonalProviderOAuth(providerId) &&
491
500
  resolvePersonalGrant(provider, flow, tokens);
492
501
  if (personalGrant && personalGrant.missingRequired) {
@@ -10,7 +10,7 @@ export const MCP_CONNECT_GUIDES = [
10
10
  stepKinds: ["open", "add", "authorize"],
11
11
  nameStep: 1,
12
12
  steps: [
13
- "Click Add to Claude. Claude opens with {appName} and the MCP URL filled in. Select Add.",
13
+ "Select Add to Claude to open Connectors. If the name and URL are filled in, review them and select Add.",
14
14
  "For manual setup, go to Customize → Connectors in Claude and choose + Add → Add custom connector. Enter these details, then select Add.",
15
15
  "Sign in to Agent-Native and approve access. In a new Claude conversation, enable {appName} and send:",
16
16
  ],
@@ -257,7 +257,7 @@ const MCP_CONNECT_GUIDE_TRANSLATIONS = {
257
257
  "es-ES": {
258
258
  claude: {
259
259
  steps: [
260
- "Haz clic en Añadir a Claude. Claude se abre con {appName} y la URL de MCP ya rellenados. Selecciona Add.",
260
+ "Selecciona Añadir a Claude para abrir Connectors. Si el nombre y la URL ya aparecen, revísalos y selecciona Add.",
261
261
  "Para la configuración manual, ve a Customize → Connectors en Claude y elige + Add → Add custom connector. Introduce estos datos y selecciona Add.",
262
262
  "Inicia sesión en Agent-Native y aprueba el acceso. En una nueva conversación de Claude, activa {appName} y envía:",
263
263
  ],
@@ -321,7 +321,7 @@ const MCP_CONNECT_GUIDE_TRANSLATIONS = {
321
321
  "fr-FR": {
322
322
  claude: {
323
323
  steps: [
324
- "Cliquez sur Ajouter à Claude. Claude s’ouvre avec {appName} et l’URL MCP déjà renseignés. Sélectionnez Add.",
324
+ "Cliquez sur Ajouter à Claude pour ouvrir Connectors. Si le nom et l’URL sont renseignés, vérifiez-les puis sélectionnez Add.",
325
325
  "Pour une configuration manuelle, allez dans Customize → Connectors dans Claude et choisissez + Add → Add custom connector. Saisissez ces informations, puis sélectionnez Add.",
326
326
  "Connectez-vous à Agent-Native et autorisez l’accès. Dans une nouvelle conversation Claude, activez {appName} et envoyez :",
327
327
  ],
@@ -385,7 +385,7 @@ const MCP_CONNECT_GUIDE_TRANSLATIONS = {
385
385
  "de-DE": {
386
386
  claude: {
387
387
  steps: [
388
- "Klicke auf Zu Claude hinzufügen. Claude öffnet sich, {appName} und die MCP-URL sind bereits eingetragen. Wähle Add.",
388
+ "Wähle Zu Claude hinzufügen, um Connectors zu öffnen. Wenn Name und URL eingetragen sind, prüfe sie und wähle Add.",
389
389
  "Gehe für die manuelle Einrichtung in Claude zu Customize → Connectors und wähle + Add → Add custom connector. Gib diese Daten ein und wähle Add.",
390
390
  "Melde dich bei Agent-Native an und erlaube den Zugriff. Aktiviere {appName} in einer neuen Claude-Unterhaltung und sende:",
391
391
  ],
@@ -449,7 +449,7 @@ const MCP_CONNECT_GUIDE_TRANSLATIONS = {
449
449
  "pt-BR": {
450
450
  claude: {
451
451
  steps: [
452
- "Clique em Adicionar ao Claude. O Claude abre com {appName} e a URL MCP já preenchidos. Selecione Add.",
452
+ "Selecione Adicionar ao Claude para abrir Connectors. Se o nome e a URL estiverem preenchidos, revise-os e selecione Add.",
453
453
  "Para configurar manualmente, acesse Customize → Connectors no Claude e escolha + Add → Add custom connector. Insira estes dados e selecione Add.",
454
454
  "Entre no Agent-Native e autorize o acesso. Em uma nova conversa no Claude, ative {appName} e envie:",
455
455
  ],
@@ -513,7 +513,7 @@ const MCP_CONNECT_GUIDE_TRANSLATIONS = {
513
513
  "zh-CN": {
514
514
  claude: {
515
515
  steps: [
516
- "点击“添加到 Claude”。Claude 会打开,并已填好 {appName} 和 MCP URL。选择 Add。",
516
+ "选择“添加到 Claude”打开 Connectors。如果名称和 URL 已填好,请核对后选择 Add。",
517
517
  "手动设置时,在 Claude 中前往 Customize → Connectors,然后选择 + Add → Add custom connector。输入以下信息,然后选择 Add。",
518
518
  "登录 Agent-Native 并批准访问。在新的 Claude 对话中启用 {appName},然后发送:",
519
519
  ],
@@ -577,7 +577,7 @@ const MCP_CONNECT_GUIDE_TRANSLATIONS = {
577
577
  "zh-TW": {
578
578
  claude: {
579
579
  steps: [
580
- "按一下「新增至 Claude」。Claude 會開啟,並已填入 {appName} 和 MCP URL。選取 Add。",
580
+ "選取「新增至 Claude」以開啟 Connectors。如果名稱和 URL 已填妥,請確認後選取 Add。",
581
581
  "手動設定時,在 Claude 中前往 Customize → Connectors,然後選取 + Add → Add custom connector。輸入以下資訊,然後選取 Add。",
582
582
  "登入 Agent-Native 並核准存取。在新的 Claude 對話中啟用 {appName},然後傳送:",
583
583
  ],
@@ -641,7 +641,7 @@ const MCP_CONNECT_GUIDE_TRANSLATIONS = {
641
641
  "ja-JP": {
642
642
  claude: {
643
643
  steps: [
644
- "「Claude に追加」をクリックします。{appName} と MCP URL が入力された状態で Claude が開くので、Add を選択します。",
644
+ "「Claude に追加」を選択して Connectors を開きます。名前と URL が入力されている場合は、内容を確認して Add を選択します。",
645
645
  "手動で設定する場合は、Claude で Customize → Connectors を開き、+ Add → Add custom connector を選びます。以下の情報を入力し、Add を選択します。",
646
646
  "Agent-Nativeにサインインしてアクセスを許可します。Claudeの新しい会話で{appName}を有効にし、次を送信します:",
647
647
  ],
@@ -705,7 +705,7 @@ const MCP_CONNECT_GUIDE_TRANSLATIONS = {
705
705
  "ko-KR": {
706
706
  claude: {
707
707
  steps: [
708
- "Claude에 추가를 클릭하세요. {appName}과 MCP URL이 입력된 상태로 Claude가 열립니다. Add를 선택하세요.",
708
+ "Claude에 추가를 선택해 Connectors를 엽니다. 이름과 URL이 입력되어 있으면 확인한 뒤 Add를 선택하세요.",
709
709
  "수동으로 설정하려면 Claude에서 Customize → Connectors로 이동한 뒤 + Add → Add custom connector를 선택하세요. 아래 정보를 입력하고 Add를 선택하세요.",
710
710
  "Agent-Native에 로그인하고 접근을 승인하세요. 새 Claude 대화에서 {appName}을 활성화하고 다음을 보내세요:",
711
711
  ],
@@ -769,7 +769,7 @@ const MCP_CONNECT_GUIDE_TRANSLATIONS = {
769
769
  "hi-IN": {
770
770
  claude: {
771
771
  steps: [
772
- "Claude में जोड़ें पर क्लिक करें। Claude खुलता है और उसमें {appName} व MCP URL पहले से भरे होते हैं। Add चुनें।",
772
+ "Connectors खोलने के लिए Claude में जोड़ें चुनें। अगर नाम और URL पहले से भरे हैं, तो उन्हें जाँचकर Add चुनें।",
773
773
  "मैन्युअल सेटअप के लिए Claude में Customize → Connectors पर जाएँ और + Add → Add custom connector चुनें। यह विवरण दर्ज करें, फिर Add चुनें।",
774
774
  "Agent-Native में साइन इन करें और पहुँच की अनुमति दें। नई Claude बातचीत में {appName} चालू करें और भेजें:",
775
775
  ],
@@ -833,7 +833,7 @@ const MCP_CONNECT_GUIDE_TRANSLATIONS = {
833
833
  "ar-SA": {
834
834
  claude: {
835
835
  steps: [
836
- "انقر على إضافة إلى Claude. يفتح Claude وقد عُبّئ {appName} وعنوان MCP مسبقاً. اختر Add.",
836
+ "اختر إضافة إلى Claude لفتح Connectors. إذا كان الاسم والعنوان معبّأين، راجعهما ثم اختر Add.",
837
837
  "للإعداد اليدوي، انتقل إلى Customize → Connectors في Claude واختر + Add → Add custom connector. أدخل هذه التفاصيل ثم اختر Add.",
838
838
  "سجّل الدخول إلى Agent-Native ووافق على الوصول. في محادثة Claude جديدة، فعّل {appName} وأرسل:",
839
839
  ],
@@ -102,11 +102,7 @@ Every Agent-Native app exposes one canonical MCP URL:
102
102
  https://<your-app>.agent-native.com/mcp
103
103
  ```
104
104
 
105
- In the app, open **Settings → Connections → Integrations** and search for the host name you
106
- already know: Claude, Claude Cowork, Claude Code, Anthropic, ChatGPT, OpenAI,
107
- Codex, Grok, or xAI. The one external-host result opens **Settings → MCP server** with
108
- the closest guide selected. Copy the **MCP server URL** and paste it into the AI
109
- host. The URL is the deployed app base URL plus `/mcp`.
105
+ In the app, open **Settings → MCP server** and select your host. Copy the **MCP server URL** and paste it into your host. The URL is the deployed app base URL followed by `/mcp`.
110
106
 
111
107
  For workspace or cross-app work, use Dispatch:
112
108
 
@@ -186,13 +182,13 @@ and static-token fallback.
186
182
 
187
183
  ### Claude and ChatGPT OAuth {#oauth}
188
184
 
189
- Claude / Claude Desktop: **Add to Claude** opens **Customize → Connectors**
190
- with the add-custom-connector dialog already filled in with the app name and
191
- MCP URL. Select **Add**, sign in with your Agent-Native account, approve the MCP
192
- scopes, and enable the connector in a chat. Claude Code uses the same URL: run
193
- `claude mcp add --transport http --scope user <server-name> <mcp-url>` so the
194
- server is available in every project, then run `/mcp` and choose
195
- **Authenticate**.
185
+ Claude and Claude Desktop: **Add to Claude** opens **Customize → Connectors**. If the setup form is empty, add a custom connector and enter the app name and MCP URL. Sign in to Agent-Native, approve access, and enable the connector in a chat.
186
+
187
+ Claude Code: run the command below, then run `claude mcp get <server-name>` in the same terminal to check the registration. Open a new Claude Code session, run `/mcp`, and choose **Authenticate**.
188
+
189
+ ```bash
190
+ claude mcp add --transport http --scope user <server-name> <mcp-url>
191
+ ```
196
192
 
197
193
  ChatGPT: custom MCP apps require a supported ChatGPT web workspace. If you have
198
194
  access, open **Settings → Apps → Advanced settings**, enable developer mode when
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-native/core",
3
- "version": "0.237.1-nightly-20261202123958",
3
+ "version": "0.237.1",
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": {
@@ -834,9 +834,9 @@
834
834
  "yaml": "^2.9.0",
835
835
  "yjs": "^13.6.33",
836
836
  "zod": "^4.3.6",
837
- "@agent-native/actions": "^0.1.2",
838
- "@agent-native/agentkit": "^0.237.1-nightly-20261202123958",
839
- "@agent-native/recap-cli": "^0.5.113"
837
+ "@agent-native/recap-cli": "^0.5.114",
838
+ "@agent-native/actions": "^0.1.3",
839
+ "@agent-native/agentkit": "^0.237.1"
840
840
  },
841
841
  "devDependencies": {
842
842
  "@ai-sdk/anthropic": "^3.0.71",
@@ -910,7 +910,7 @@
910
910
  "xlsx": "^0.18.5"
911
911
  },
912
912
  "peerDependencies": {
913
- "@agent-native/core-corpus": "0.237.1-nightly-20261202123958",
913
+ "@agent-native/core-corpus": ">=0.196.0",
914
914
  "@ai-sdk/anthropic": ">=3",
915
915
  "@ai-sdk/cohere": ">=3",
916
916
  "@ai-sdk/google": ">=3.0.152",