@tangle-network/agent-app 0.46.4 → 0.46.6

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.
Files changed (33) hide show
  1. package/dist/assistant/index.js +6 -4
  2. package/dist/assistant/index.js.map +1 -1
  3. package/dist/chat-react/index.d.ts +10 -24
  4. package/dist/chat-react/index.js +6 -127
  5. package/dist/chat-react/index.js.map +1 -1
  6. package/dist/{chunk-RLOHIX5Y.js → chunk-3HUFJ5LO.js} +1 -13
  7. package/dist/chunk-3HUFJ5LO.js.map +1 -0
  8. package/dist/chunk-5SSUCLBW.js +1896 -0
  9. package/dist/chunk-5SSUCLBW.js.map +1 -0
  10. package/dist/{chunk-YTEUZXX2.js → chunk-JAYKCWW4.js} +619 -1671
  11. package/dist/chunk-JAYKCWW4.js.map +1 -0
  12. package/dist/chunk-L7MB2LLM.js +15 -0
  13. package/dist/chunk-L7MB2LLM.js.map +1 -0
  14. package/dist/{chunk-LEGZX5MQ.js → chunk-OOE2TPY2.js} +6 -2
  15. package/dist/chunk-OOE2TPY2.js.map +1 -0
  16. package/dist/{mention-editor-GVLG3W7C.js → mention-editor-WW7UVZMR.js} +5 -3
  17. package/dist/{mention-editor-GVLG3W7C.js.map → mention-editor-WW7UVZMR.js.map} +1 -1
  18. package/dist/studio/generation.d.ts +10 -2
  19. package/dist/studio/index.js +3 -1
  20. package/dist/studio-react/composer-option-controls.d.ts +3 -1
  21. package/dist/studio-react/index.js +40 -22
  22. package/dist/studio-react/index.js.map +1 -1
  23. package/dist/{chat-react → web-react}/composer-mode-controls.d.ts +11 -1
  24. package/dist/{chat-react → web-react}/entry-composer.d.ts +11 -8
  25. package/dist/web-react/index.d.ts +2 -0
  26. package/dist/web-react/index.js +14 -9
  27. package/package.json +1 -1
  28. package/dist/chat-react/types.d.ts +0 -11
  29. package/dist/chunk-DINGA2MO.js +0 -718
  30. package/dist/chunk-DINGA2MO.js.map +0 -1
  31. package/dist/chunk-LEGZX5MQ.js.map +0 -1
  32. package/dist/chunk-RLOHIX5Y.js.map +0 -1
  33. package/dist/chunk-YTEUZXX2.js.map +0 -1
@@ -1,4 +1,14 @@
1
- import type { ComposerPlanModeSelection } from './types';
1
+ /**
2
+ * The plan-mode toggle state an entry surface docks beside the composer. The
3
+ * agent-identity pickers (model / harness / effort) speak the canonical
4
+ * `AgentSessionControls` vocabulary — see "UI chrome ownership (picker
5
+ * canon)" in AGENTS.md.
6
+ */
7
+ export interface ComposerPlanModeSelection {
8
+ enabled: boolean;
9
+ setEnabled: (next: boolean) => void;
10
+ saving?: boolean;
11
+ }
2
12
  export interface ComposerModeControlsProps {
3
13
  /**
4
14
  * Plan-approval mode. Products pass it only when the selected backend can
@@ -1,9 +1,9 @@
1
1
  import { type ReactNode } from 'react';
2
- import { AgentComposer } from '@tangle-network/sandbox-ui/chat';
3
- import type { UseFileMentionsResult } from '../web-react/use-file-mentions';
2
+ import type { ComposerFileRejection } from './composer-file-accept';
3
+ import type { UseFileMentionsResult } from './use-file-mentions';
4
4
  import type { ChatAttachmentInput, FileMention } from '../chat-routes/wire';
5
- import { type AgentSessionControlsProps } from '../web-react/agent-session-controls';
6
- import type { ComposerPlanModeSelection } from './types';
5
+ import { type AgentSessionControlsProps } from './agent-session-controls';
6
+ import { type ComposerPlanModeSelection } from './composer-mode-controls';
7
7
  export interface EntryComposerProps {
8
8
  /** The one line above the input. Domain copy — always a product parameter. */
9
9
  heading?: ReactNode;
@@ -44,7 +44,10 @@ export interface EntryComposerProps {
44
44
  uploadUrl?: string;
45
45
  accept?: string;
46
46
  onAttachmentError?: (reason: string) => void;
47
- onRejectFiles?: Parameters<typeof AgentComposer>[0]['onRejectFiles'];
47
+ /** `ComposerFileRejection` is structurally identical to the sandbox-ui type
48
+ * this prop used to infer (`{ file: File; reason: string }`), so handlers
49
+ * typed against either compile unchanged. */
50
+ onRejectFiles?: (rejections: ComposerFileRejection[]) => void;
48
51
  /**
49
52
  * `@`-file mentions. The hook itself is shared (`useFileMentions`), but the
50
53
  * cold-box policy around it — whether pressing `@` is worth starting a
@@ -85,8 +88,8 @@ export interface EntryComposerProps {
85
88
  * `placeholder`, `footer` (suggestion pills, disclaimers) and the selections
86
89
  * themselves.
87
90
  *
88
- * The docked in-thread composer is NOT this component it renders
89
- * `AgentComposer` directly with the same canonical `AgentSessionControls`,
90
- * because a docked composer has a transcript above it and no hero layout.
91
+ * The input is `ChatComposer` the same component a docked in-thread
92
+ * composer renders directly; this assembly adds only the hero layout around
93
+ * it.
91
94
  */
92
95
  export declare function EntryComposer({ heading, subheading, placeholder, initialValue, sendLabel, disabled, agent, modes, planMode, uploadUrl, accept, onAttachmentError, onRejectFiles, mentions, mentionPopoverClassName, footer, ready, onSubmit, className, composerClassName, maxWidth, }: EntryComposerProps): import("react").JSX.Element;
@@ -42,6 +42,8 @@ export * from './use-chat-interactions';
42
42
  export * from './use-file-mentions';
43
43
  export * from './chat-mentions';
44
44
  export * from './mention-pill';
45
+ export * from './entry-composer';
46
+ export * from './composer-mode-controls';
45
47
  export * from './chat-attachments';
46
48
  export * from './message-attachments';
47
49
  export * from './use-composer-attachments';
@@ -1,6 +1,5 @@
1
1
  import {
2
2
  AgentActivityPanel,
3
- ChatComposer,
4
3
  ChatEmptyState,
5
4
  ChatMessages,
6
5
  CommandPalette,
@@ -50,7 +49,6 @@ import {
50
49
  createSessionInteractionAttemptStore,
51
50
  describeProvenance,
52
51
  describeProvenanceSourceStatus,
53
- dictationErrorMessage,
54
52
  diffRecordGridProposal,
55
53
  dispatchChatStreamLine,
56
54
  durableChatCardsFromParts,
@@ -58,7 +56,6 @@ import {
58
56
  fieldValuesFromAnswers,
59
57
  formatActivityCost,
60
58
  formatActivityDuration,
61
- formatDictationElapsed,
62
59
  formatInsightDelta,
63
60
  formatModelCost,
64
61
  formatRecordGridValue,
@@ -83,7 +80,6 @@ import {
83
80
  nextRevealCount,
84
81
  parseRecordGridInput,
85
82
  pendingApprovalOf,
86
- pickDictationMimeType,
87
83
  projectRecordGridRows,
88
84
  provenanceBasisMeta,
89
85
  provenanceGaps,
@@ -116,7 +112,6 @@ import {
116
112
  triggerAttachmentDownload,
117
113
  upsertChatInteraction,
118
114
  useChatInteractions,
119
- useDictation,
120
115
  useDurablePlanFlow,
121
116
  useFileMentions,
122
117
  useSmoothText,
@@ -132,7 +127,7 @@ import {
132
127
  withoutRecordGridCreated,
133
128
  withoutRecordGridRemoved,
134
129
  withoutRecordGridUpdate
135
- } from "../chunk-YTEUZXX2.js";
130
+ } from "../chunk-JAYKCWW4.js";
136
131
  import {
137
132
  SessionHistoryPanel,
138
133
  formatSessionTimestamp,
@@ -142,7 +137,7 @@ import {
142
137
  } from "../chunk-KKBTPZIE.js";
143
138
  import {
144
139
  MENTION_PILL_CLASS
145
- } from "../chunk-RLOHIX5Y.js";
140
+ } from "../chunk-3HUFJ5LO.js";
146
141
  import "../chunk-FBVLEGEG.js";
147
142
  import {
148
143
  EvidenceLineageTable,
@@ -161,13 +156,21 @@ import {
161
156
  } from "../chunk-GEYACSFW.js";
162
157
  import {
163
158
  AgentSessionControls,
159
+ ChatComposer,
160
+ ComposerModeControls,
161
+ EntryComposer,
164
162
  HarnessGlyph,
165
163
  acceptRejectionReason,
164
+ dictationErrorMessage,
166
165
  filterAcceptedFiles,
166
+ formatDictationElapsed,
167
167
  isAcceptedFileType,
168
+ pickDictationMimeType,
168
169
  renamePastedImages,
169
- useComposerAttachments
170
- } from "../chunk-DINGA2MO.js";
170
+ useComposerAttachments,
171
+ useDictation
172
+ } from "../chunk-5SSUCLBW.js";
173
+ import "../chunk-L7MB2LLM.js";
171
174
  import {
172
175
  DEFAULT_EFFORT_LEVELS,
173
176
  EFFORT_METER_SEGMENTS,
@@ -254,6 +257,7 @@ export {
254
257
  ChatEmptyState,
255
258
  ChatMessages,
256
259
  CommandPalette,
260
+ ComposerModeControls,
257
261
  DEFAULT_EFFORT_LEVELS,
258
262
  DEFAULT_INSIGHT_PAGE_SIZE,
259
263
  DEFAULT_MENTION_EMPTY_TEXT,
@@ -275,6 +279,7 @@ export {
275
279
  EMPTY_RECORD_GRID_OVERLAY,
276
280
  EffortMeter,
277
281
  EffortPicker,
282
+ EntryComposer,
278
283
  EvidenceLineageTable,
279
284
  ExceptionList,
280
285
  FlowWaterfall,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-app",
3
- "version": "0.46.4",
3
+ "version": "0.46.6",
4
4
  "packageManager": "pnpm@11.17.0",
5
5
  "description": "Build agent applications with typed chat, tools, sandboxes, integrations, billing, and evaluation.",
6
6
  "keywords": [
@@ -1,11 +0,0 @@
1
- /**
2
- * The plan-mode toggle state an entry surface docks beside the composer. The
3
- * agent-identity pickers (model / harness / effort) speak the canonical
4
- * `AgentSessionControls` vocabulary from `../web-react` — see "UI chrome
5
- * ownership (picker canon)" in AGENTS.md.
6
- */
7
- export interface ComposerPlanModeSelection {
8
- enabled: boolean;
9
- setEnabled: (next: boolean) => void;
10
- saving?: boolean;
11
- }