@agents24/chat-react 0.5.50 → 0.5.51
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/compatibility.json +5 -5
- package/dist/registry/agents24-chat.json +9 -9
- package/dist/scaffold/app.d.ts +1 -1
- package/dist/scaffold/index.cjs +1 -2
- package/dist/scaffold/index.cjs.map +1 -1
- package/dist/scaffold/index.js +1 -2
- package/dist/scaffold/index.js.map +1 -1
- package/dist/styles.css +0 -14
- package/dist/ui/agent-response-timeline.d.ts +2 -3
- package/dist/ui/index.cjs +8 -42
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.js +8 -42
- package/dist/ui/index.js.map +1 -1
- package/package.json +3 -3
- package/scaffold/src/app.tsx +2 -3
package/compatibility.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contractHash": "
|
|
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": "
|
|
18
|
+
"contract": "097009437b84de3ae84988b3609d87d8e1429081f7808708532a1f702b8de7ab",
|
|
19
19
|
"runtime": "run-stream.v3"
|
|
20
20
|
},
|
|
21
21
|
"@agents24/node": {
|
|
22
|
-
"contract": "
|
|
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": "
|
|
30
|
+
"contract": "097009437b84de3ae84988b3609d87d8e1429081f7808708532a1f702b8de7ab",
|
|
31
31
|
"protocolOwner": "@agents24/client"
|
|
32
32
|
},
|
|
33
33
|
"agents24": {
|
|
34
|
-
"contract": "
|
|
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.
|
|
9
|
-
"@agents24/client@0.2.
|
|
10
|
-
"@agents24/react@0.2.
|
|
8
|
+
"@agents24/chat-react@0.5.51",
|
|
9
|
+
"@agents24/client@0.2.29",
|
|
10
|
+
"@agents24/react@0.2.35",
|
|
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\" | \"
|
|
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.
|
|
257
|
+
"version": "0.5.51",
|
|
258
258
|
"source": "packages/agents24-chat-react/scaffold",
|
|
259
|
-
"source_sha256": "
|
|
259
|
+
"source_sha256": "baad4c06c93918257d64fc4dec29db523f938a0215423a055ce387dd0401f956",
|
|
260
260
|
"agents24": {
|
|
261
|
-
"@agents24/client": "0.2.
|
|
262
|
-
"@agents24/react": "0.2.
|
|
263
|
-
"@agents24/chat-react": "0.5.
|
|
261
|
+
"@agents24/client": "0.2.29",
|
|
262
|
+
"@agents24/react": "0.2.35",
|
|
263
|
+
"@agents24/chat-react": "0.5.51"
|
|
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."
|
package/dist/scaffold/app.d.ts
CHANGED
|
@@ -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" | "
|
|
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;
|
package/dist/scaffold/index.cjs
CHANGED
|
@@ -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,
|
|
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;
|