@agents24/chat-react 0.5.50 → 0.5.52

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractHash": "e9281482d269a72b027d638de1b27f4323accbd09e7c56ebe6d8fffb2da48434",
2
+ "contractHash": "097009437b84de3ae84988b3609d87d8e1429081f7808708532a1f702b8de7ab",
3
3
  "contractVersion": "0.3.0",
4
4
  "corpus": "conformance/v1/corpus.json",
5
5
  "generatedBy": "@agents24/sdk-contract",
@@ -15,11 +15,11 @@
15
15
  "reactDom": ">=19 <20"
16
16
  },
17
17
  "@agents24/client": {
18
- "contract": "e9281482d269a72b027d638de1b27f4323accbd09e7c56ebe6d8fffb2da48434",
18
+ "contract": "097009437b84de3ae84988b3609d87d8e1429081f7808708532a1f702b8de7ab",
19
19
  "runtime": "run-stream.v3"
20
20
  },
21
21
  "@agents24/node": {
22
- "contract": "e9281482d269a72b027d638de1b27f4323accbd09e7c56ebe6d8fffb2da48434",
22
+ "contract": "097009437b84de3ae84988b3609d87d8e1429081f7808708532a1f702b8de7ab",
23
23
  "node": "^22.0.0 || ^24.0.0"
24
24
  },
25
25
  "@agents24/react": {
@@ -27,11 +27,11 @@
27
27
  "react": ">=19 <20"
28
28
  },
29
29
  "@talmudpedia/runtime-sdk": {
30
- "contract": "e9281482d269a72b027d638de1b27f4323accbd09e7c56ebe6d8fffb2da48434",
30
+ "contract": "097009437b84de3ae84988b3609d87d8e1429081f7808708532a1f702b8de7ab",
31
31
  "protocolOwner": "@agents24/client"
32
32
  },
33
33
  "agents24": {
34
- "contract": "e9281482d269a72b027d638de1b27f4323accbd09e7c56ebe6d8fffb2da48434",
34
+ "contract": "097009437b84de3ae84988b3609d87d8e1429081f7808708532a1f702b8de7ab",
35
35
  "python": ">=3.10"
36
36
  }
37
37
  },
@@ -5,9 +5,9 @@
5
5
  "title": "Agents24 Chat",
6
6
  "description": "Complete editable Agents24 chat, inheriting your application's theme.",
7
7
  "dependencies": [
8
- "@agents24/chat-react@0.5.50",
9
- "@agents24/client@0.2.28",
10
- "@agents24/react@0.2.34",
8
+ "@agents24/chat-react@0.5.52",
9
+ "@agents24/client@0.2.30",
10
+ "@agents24/react@0.2.36",
11
11
  "@shadcn/react@^0.2.1",
12
12
  "class-variance-authority@^0.7.1",
13
13
  "clsx@^2.1.1",
@@ -22,7 +22,7 @@
22
22
  "path": "scaffold/src/app.tsx",
23
23
  "type": "registry:file",
24
24
  "target": "@components/agents24-chat/app.tsx",
25
- "content": "import { createBrowserVisibility } from \"@agents24/client/browser\"\nimport type { AgentClient, HitlResponse } from \"@agents24/client\"\nimport {\n type AgentChatActiveThreadChangeHandler,\n type AgentChatMcpAuthorizationCompletion,\n type AgentChatRuntimeAgent,\n useAgentChatRuntime,\n} from \"@agents24/chat-react/runtime\"\nimport type { AgentResponseTimelineProps, HitlActionState } from \"@agents24/chat-react/ui\"\nimport {\n Agents24Provider,\n type ChatHitlPart,\n type HitlSubmissionOptions,\n type ChatMessage,\n type ChatPart,\n} from \"@agents24/react\"\nimport * as React from \"react\"\n\nimport type { Agents24ChatComposerProps } from \"./components/chat/chat-composer\"\n\nimport { ChatShell } from \"./components/chat/chat-shell\"\nimport { GUEST_CHAT_IDENTITY, type Agents24ChatIdentity } from \"./identity\"\n\nconst createBrowserAbortController = () => new AbortController()\nconst browserVisibility = createBrowserVisibility()\n\nexport type Agents24ChatTimelineOptions = Pick<AgentResponseTimelineProps,\n \"nodeActivityMode\" | \"renderUiBlocks\" | \"statusLabels\" | \"toolLabelMode\" | \"toolSlots\" | \"toolViewMode\">\n\nexport type Agents24ChatAppProps = Agents24ChatTimelineOptions & {\n attachmentTextOutputs?: readonly string[]\n activeThreadId?: string | null\n agent?: AgentChatRuntimeAgent\n client: AgentClient\n completeMcpAuthorization?: AgentChatMcpAuthorizationCompletion\n mcpRedirectUri?: string\n modelId?: string | null\n onActiveThreadIdChange?: AgentChatActiveThreadChangeHandler\n onModelChange?: (modelId: string) => void\n identity?: Agents24ChatIdentity\n components?: Agents24ChatScaffoldComponents\n sidebar?: React.ReactNode\n}\n\nexport type Agents24ChatComposerSlotProps = Agents24ChatComposerProps\n\nexport type Agents24ChatScaffoldComponents = {\n Composer?: React.ComponentType<Agents24ChatComposerSlotProps>\n Timeline?: React.ComponentType<Agents24ChatTimelineSlotProps>\n}\n\nexport type ChatHitlResponse = HitlResponse\n\nexport type Agents24ChatTimelineSlotProps = Agents24ChatTimelineOptions & {\n message: ChatMessage\n parts: readonly ChatPart[]\n isLoading: boolean\n getHitlActionState: (part: ChatHitlPart) => HitlActionState | undefined\n onHitlAction: (part: ChatHitlPart, response: ChatHitlResponse, options?: HitlSubmissionOptions) => void\n}\n\nfunction RuntimeChat({\n components,\n identity = GUEST_CHAT_IDENTITY,\n nodeActivityMode,\n renderUiBlocks,\n statusLabels,\n toolLabelMode,\n toolSlots,\n toolViewMode,\n ...props\n}: Agents24ChatAppProps) {\n const runtime = useAgentChatRuntime({\n ...props,\n mcpRedirectUri: props.mcpRedirectUri || (\n typeof window === \"undefined\" ? undefined : window.location.href\n ),\n })\n\n return <ChatShell components={components} identity={identity} runtime={runtime} sidebar={props.sidebar} timelineOptions={{ nodeActivityMode, renderUiBlocks, statusLabels, toolLabelMode, toolSlots, toolViewMode }} />\n}\n\nexport function App(props: Agents24ChatAppProps) {\n const identity = props.identity || GUEST_CHAT_IDENTITY\n return (\n <Agents24Provider client={props.client} createAbortController={createBrowserAbortController} visibility={browserVisibility}>\n <RuntimeChat key={identity.state} {...props} />\n </Agents24Provider>\n )\n}\n"
25
+ "content": "import { createBrowserVisibility } from \"@agents24/client/browser\"\nimport type { AgentClient, HitlResponse } from \"@agents24/client\"\nimport {\n type AgentChatActiveThreadChangeHandler,\n type AgentChatMcpAuthorizationCompletion,\n type AgentChatRuntimeAgent,\n useAgentChatRuntime,\n} from \"@agents24/chat-react/runtime\"\nimport type { AgentResponseTimelineProps, HitlActionState } from \"@agents24/chat-react/ui\"\nimport {\n Agents24Provider,\n type ChatHitlPart,\n type HitlSubmissionOptions,\n type ChatMessage,\n type ChatPart,\n} from \"@agents24/react\"\nimport * as React from \"react\"\n\nimport type { Agents24ChatComposerProps } from \"./components/chat/chat-composer\"\n\nimport { ChatShell } from \"./components/chat/chat-shell\"\nimport { GUEST_CHAT_IDENTITY, type Agents24ChatIdentity } from \"./identity\"\n\nconst createBrowserAbortController = () => new AbortController()\nconst browserVisibility = createBrowserVisibility()\n\nexport type Agents24ChatTimelineOptions = Pick<AgentResponseTimelineProps,\n \"nodeActivityMode\" | \"statusLabels\" | \"toolLabelMode\" | \"toolSlots\" | \"toolViewMode\">\n\nexport type Agents24ChatAppProps = Agents24ChatTimelineOptions & {\n attachmentTextOutputs?: readonly string[]\n activeThreadId?: string | null\n agent?: AgentChatRuntimeAgent\n client: AgentClient\n completeMcpAuthorization?: AgentChatMcpAuthorizationCompletion\n mcpRedirectUri?: string\n modelId?: string | null\n onActiveThreadIdChange?: AgentChatActiveThreadChangeHandler\n onModelChange?: (modelId: string) => void\n identity?: Agents24ChatIdentity\n components?: Agents24ChatScaffoldComponents\n sidebar?: React.ReactNode\n}\n\nexport type Agents24ChatComposerSlotProps = Agents24ChatComposerProps\n\nexport type Agents24ChatScaffoldComponents = {\n Composer?: React.ComponentType<Agents24ChatComposerSlotProps>\n Timeline?: React.ComponentType<Agents24ChatTimelineSlotProps>\n}\n\nexport type ChatHitlResponse = HitlResponse\n\nexport type Agents24ChatTimelineSlotProps = Agents24ChatTimelineOptions & {\n message: ChatMessage\n parts: readonly ChatPart[]\n isLoading: boolean\n getHitlActionState: (part: ChatHitlPart) => HitlActionState | undefined\n onHitlAction: (part: ChatHitlPart, response: ChatHitlResponse, options?: HitlSubmissionOptions) => void\n}\n\nfunction RuntimeChat({\n components,\n identity = GUEST_CHAT_IDENTITY,\n nodeActivityMode,\n statusLabels,\n toolLabelMode,\n toolSlots,\n toolViewMode,\n ...props\n}: Agents24ChatAppProps) {\n const runtime = useAgentChatRuntime({\n ...props,\n mcpRedirectUri: props.mcpRedirectUri || (\n typeof window === \"undefined\" ? undefined : window.location.href\n ),\n })\n\n return <ChatShell components={components} identity={identity} runtime={runtime} sidebar={props.sidebar} timelineOptions={{ nodeActivityMode, statusLabels, toolLabelMode, toolSlots, toolViewMode }} />\n}\n\nexport function App(props: Agents24ChatAppProps) {\n const identity = props.identity || GUEST_CHAT_IDENTITY\n return (\n <Agents24Provider client={props.client} createAbortController={createBrowserAbortController} visibility={browserVisibility}>\n <RuntimeChat key={identity.state} {...props} />\n </Agents24Provider>\n )\n}\n"
26
26
  },
27
27
  {
28
28
  "path": "scaffold/src/chat.css",
@@ -254,13 +254,13 @@
254
254
  }
255
255
  ],
256
256
  "meta": {
257
- "version": "0.5.50",
257
+ "version": "0.5.52",
258
258
  "source": "packages/agents24-chat-react/scaffold",
259
- "source_sha256": "c3bb2489d99efa38814b46ffa5d42fca13ff3e119086319e28d8b8efa4f9fd9e",
259
+ "source_sha256": "baad4c06c93918257d64fc4dec29db523f938a0215423a055ce387dd0401f956",
260
260
  "agents24": {
261
- "@agents24/client": "0.2.28",
262
- "@agents24/react": "0.2.34",
263
- "@agents24/chat-react": "0.5.50"
261
+ "@agents24/client": "0.2.30",
262
+ "@agents24/react": "0.2.36",
263
+ "@agents24/chat-react": "0.5.52"
264
264
  }
265
265
  },
266
266
  "docs": "Import the installed styles.css from your application stylesheet. Pass your configured AgentClient to Agents24ChatScaffold. Authentication and URLs remain host-owned. Installed UI is editable; review changes before reinstalling and do not use --overwrite on customized files."
@@ -5,7 +5,7 @@ import { type ChatHitlPart, type HitlSubmissionOptions, type ChatMessage, type C
5
5
  import * as React from "react";
6
6
  import type { Agents24ChatComposerProps } from "./components/chat/chat-composer";
7
7
  import { type Agents24ChatIdentity } from "./identity";
8
- export type Agents24ChatTimelineOptions = Pick<AgentResponseTimelineProps, "nodeActivityMode" | "renderUiBlocks" | "statusLabels" | "toolLabelMode" | "toolSlots" | "toolViewMode">;
8
+ export type Agents24ChatTimelineOptions = Pick<AgentResponseTimelineProps, "nodeActivityMode" | "statusLabels" | "toolLabelMode" | "toolSlots" | "toolViewMode">;
9
9
  export type Agents24ChatAppProps = Agents24ChatTimelineOptions & {
10
10
  attachmentTextOutputs?: readonly string[];
11
11
  activeThreadId?: string | null;
@@ -2299,7 +2299,6 @@ function RuntimeChat({
2299
2299
  components,
2300
2300
  identity = GUEST_CHAT_IDENTITY,
2301
2301
  nodeActivityMode,
2302
- renderUiBlocks,
2303
2302
  statusLabels,
2304
2303
  toolLabelMode,
2305
2304
  toolSlots,
@@ -2310,7 +2309,7 @@ function RuntimeChat({
2310
2309
  ...props,
2311
2310
  mcpRedirectUri: props.mcpRedirectUri || (typeof window === "undefined" ? void 0 : window.location.href)
2312
2311
  });
2313
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ChatShell, { components, identity, runtime, sidebar: props.sidebar, timelineOptions: { nodeActivityMode, renderUiBlocks, statusLabels, toolLabelMode, toolSlots, toolViewMode } });
2312
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ChatShell, { components, identity, runtime, sidebar: props.sidebar, timelineOptions: { nodeActivityMode, statusLabels, toolLabelMode, toolSlots, toolViewMode } });
2314
2313
  }
2315
2314
  function App(props) {
2316
2315
  const identity = props.identity || GUEST_CHAT_IDENTITY;