@tangle-network/agent-app 0.42.19 → 0.43.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.
@@ -1,5 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
+ import { ComposerFile as ComposerFile$1 } from '@tangle-network/sandbox-ui/chat';
3
4
  import { S as StepAgentActivity } from '../agent-activity-C8ZG0F0M.js';
4
5
  import { a as FlowTrace } from '../flow-types-Cb_AblZs.js';
5
6
  import { C as CatalogModel } from '../model-catalog-BEAEVDaa.js';
@@ -79,15 +80,8 @@ interface StreamChatOptions {
79
80
  */
80
81
  declare function streamChatTurn(opts: StreamChatOptions): Promise<ConsumeChatStreamResult>;
81
82
 
82
- interface ComposerFile {
83
- id: string;
84
- name: string;
85
- size?: number;
86
- kind: 'file' | 'folder';
87
- /** Number of files inside, for a folder chip. */
88
- fileCount?: number;
89
- status: 'pending' | 'uploading' | 'ready' | 'error';
90
- }
83
+ /** Re-exported from sandbox-ui — the staged-attachment chip shape. */
84
+ type ComposerFile = ComposerFile$1;
91
85
  interface ChatComposerProps {
92
86
  /** Send the trimmed, non-empty message. Attached files travel separately via
93
87
  * `onAttach` + `pendingFiles` (the host consumes and clears them on send). */
@@ -95,8 +89,7 @@ interface ChatComposerProps {
95
89
  /** Stop the in-flight turn; shown in place of Send while `isStreaming`. */
96
90
  onCancel?: () => void;
97
91
  isStreaming?: boolean;
98
- /** Block input + send (e.g. while restoring). Distinct from `isStreaming`,
99
- * which keeps the textarea editable so the next turn can be composed. */
92
+ /** Block input + send (e.g. while restoring). */
100
93
  disabled?: boolean;
101
94
  placeholder?: string;
102
95
  /** Controlled value. Omit for self-managed internal state (cleared on send). */
@@ -104,10 +97,13 @@ interface ChatComposerProps {
104
97
  onValueChange?: (value: string) => void;
105
98
  /** Initial text in uncontrolled mode; ignored when `value` is provided. */
106
99
  initialValue?: string;
107
- /** Inline controls (e.g. `<ModelPicker/>` + `<EffortPicker/>` or
108
- * `<AgentSessionControls/>`). Rendered in a row above the input by default. */
100
+ /** Inline controls (e.g. `<AgentSessionControls/>`), rendered in the control row. */
109
101
  controls?: ReactNode;
110
- controlsPlacement?: 'above' | 'footer';
102
+ /**
103
+ * @deprecated The composer renders a single control row; this no longer moves
104
+ * the controls above the input. Retained for API compatibility.
105
+ */
106
+ controlsPlacement?: "above" | "footer";
111
107
  /** Attachments are opt-in: pass `onAttach` to show the attach button, accept
112
108
  * drag-and-drop onto the input, and render `pendingFiles` chips. */
113
109
  onAttach?: (files: FileList) => void;
@@ -119,11 +115,11 @@ interface ChatComposerProps {
119
115
  dropDescription?: string;
120
116
  /** Cmd/Ctrl+L focuses the input and shows the hint. Default true. */
121
117
  focusShortcut?: boolean;
122
- /** Send button label. Default "Send". */
118
+ /** Send button label (aria/title; the button is an icon). Default "Send". */
123
119
  sendLabel?: string;
124
120
  className?: string;
125
121
  }
126
- declare function ChatComposer({ onSend, onCancel, isStreaming, disabled, placeholder, value, onValueChange, initialValue, controls, controlsPlacement, onAttach, onAttachFolder, pendingFiles, onRemoveFile, accept, dropTitle, dropDescription, focusShortcut, sendLabel, className, }: ChatComposerProps): react.JSX.Element;
122
+ declare function ChatComposer({ onSend, onCancel, isStreaming, disabled, placeholder, value, onValueChange, initialValue, controls, onAttach, onAttachFolder, pendingFiles, onRemoveFile, accept, dropTitle, dropDescription, focusShortcut, sendLabel, className, }: ChatComposerProps): react.JSX.Element;
127
123
 
128
124
  /**
129
125
  * Provider brand marks — real logo path data (simple-icons / SVG Logos, both
@@ -31,7 +31,7 @@ import {
31
31
  useSmoothText,
32
32
  useThinkingSeconds,
33
33
  waterfallLayout
34
- } from "../chunk-WV2U5UIB.js";
34
+ } from "../chunk-7DPQ5VWR.js";
35
35
  import "../chunk-2QI7XV2T.js";
36
36
  import "../chunk-E7QYOOON.js";
37
37
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-app",
3
- "version": "0.42.19",
3
+ "version": "0.43.1",
4
4
  "packageManager": "pnpm@10.33.4",
5
5
  "description": "Application-shell framework for Tangle agent products: a bounded tool loop, the structured agent→app tool side channel, integration-hub client, per-workspace billing, and crypto — composed over the Tangle agent substrate through typed seams.",
6
6
  "keywords": [
@@ -342,15 +342,17 @@
342
342
  },
343
343
  "devDependencies": {
344
344
  "@radix-ui/react-dialog": "^1.1.15",
345
- "@tangle-network/agent-eval": "^0.99.0",
345
+ "@tangle-network/agent-eval": "^0.100.0",
346
346
  "@tangle-network/agent-integrations": "^0.44.0",
347
347
  "@tangle-network/agent-interface": "^0.15.0",
348
348
  "@tangle-network/agent-knowledge": "^1.7.0",
349
- "@tangle-network/agent-runtime": "^0.76.0",
349
+ "@tangle-network/agent-runtime": "^0.79.3",
350
+ "@tangle-network/brand": "^0.6.0",
350
351
  "@tangle-network/sandbox": "^0.9.5",
351
- "@tangle-network/sandbox-ui": "^0.59.0",
352
+ "@tangle-network/sandbox-ui": "^0.60.0",
352
353
  "@tangle-network/ui": "^4.1.0",
353
354
  "@testing-library/dom": "^10.4.1",
355
+ "@xyflow/react": "^12.0.0",
354
356
  "@testing-library/react": "^16.3.2",
355
357
  "@types/better-sqlite3": "^7.6.13",
356
358
  "@types/node": "^25.6.0",
@@ -375,13 +377,15 @@
375
377
  "peerDependencies": {
376
378
  "@huggingface/transformers": ">=3",
377
379
  "@radix-ui/react-dialog": ">=1.1",
378
- "@tangle-network/agent-eval": ">=0.99.0",
380
+ "@tangle-network/agent-eval": ">=0.100.0",
379
381
  "@tangle-network/agent-integrations": ">=0.44.0",
380
382
  "@tangle-network/agent-interface": ">=0.15.0",
381
383
  "@tangle-network/agent-knowledge": ">=1.7.0",
382
- "@tangle-network/agent-runtime": ">=0.76.0",
384
+ "@tangle-network/agent-runtime": ">=0.79.3",
385
+ "@tangle-network/brand": ">=0.6.0",
383
386
  "@tangle-network/sandbox": ">=0.9.4",
384
- "@tangle-network/sandbox-ui": ">=0.59.0",
387
+ "@tangle-network/sandbox-ui": ">=0.60.0",
388
+ "@xyflow/react": ">=12.0.0",
385
389
  "drizzle-orm": ">=0.36",
386
390
  "konva": ">=9",
387
391
  "lucide-react": ">=1",
@@ -418,6 +422,12 @@
418
422
  "@tangle-network/sandbox-ui": {
419
423
  "optional": true
420
424
  },
425
+ "@tangle-network/brand": {
426
+ "optional": true
427
+ },
428
+ "@xyflow/react": {
429
+ "optional": true
430
+ },
421
431
  "react-router": {
422
432
  "optional": true
423
433
  },