@molecule/app-ide-react 3.1.0 → 3.2.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.
package/README.md CHANGED
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-10-30T23:44:58.704Z
6
+ Generated: 2026-11-04T14:09:07.558Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-ide-react
@@ -884,139 +884,91 @@ actions, etc.).
884
884
  interface ChatPanelProps {
885
885
  projectId: string
886
886
  endpoint?: string
887
- /** If provided, auto-send this message once on mount (e.g., prompt from landing page). */
888
887
  initialMessage?: string
889
- /** Called after the initial message has been sent — used to clear router state. */
890
888
  onInitialMessageSent?: () => void
891
- /** Called to open a file as a preview tab. `opts.focus === false` opens it quietly (no pane switch) — e.g. a saved plan or a system-initiated open while the user is busy. */
892
889
  onFileOpen?: (path: string, opts?: { focus?: boolean }) => void
893
- /** Called when a filename in a tool call is double-clicked — should pin the tab. */
894
890
  onFileDoubleClick?: (path: string) => void
895
- /** Called when a file in the uncommitted list is clicked for diff view. */
896
891
  onFileDiff?: (path: string, diff?: { original: string; modified: string }) => void
897
- /** Called to undo/redo a file change — writes the given content to the file path. */
898
892
  onFileRevert?: (path: string, content: string) => Promise<void>
899
- /** Called when the AI creates or modifies a file — should refresh the editor if the file is open. */
900
893
  onFileChange?: (path: string, content: string) => void
901
- /** Called when a file is removed from disk (e.g. reverting an untracked file). */
902
894
  onFileDeleted?: (path: string) => void
903
- /** Called after a commit or no-op — should refresh file explorer git status. */
904
895
  onCommit?: () => void
905
- /** Called when an inline activity card is clicked — should open the Activity panel filtered to this activity. */
906
896
  onActivityClick?: (activity: ActivityFromCard) => void
907
- /**
908
- * Reports a chat timeline item that threw during render, caught by that item's
909
- * error boundary. The item degrades to an inline notice either way; this is how the
910
- * host gets the crash into its telemetry instead of it being visible only to the
911
- * one user who hit it.
912
- */
913
897
  onRenderError?: (error: Error, info: ErrorInfo) => void
914
- /**
915
- * Called when a user avatar or author name in the chat timeline is clicked —
916
- * the host opens THAT user's profile (e.g. molecule.dev's profile modal).
917
- * Receives the clicked author's {@link ChatUserIdentity}: a teammate's click
918
- * carries their persisted author fields, the signed-in user's own click
919
- * carries their own — the host compares `id` against the signed-in user to
920
- * decide editable-own vs view-only-teammate. Omit it (the default) to render
921
- * the avatars/names non-interactive (static, exactly as before). Only human
922
- * authors are clickable — the molecule glyph on auto-sent messages is not.
923
- */
924
898
  onProfileClick?: (user: ChatUserIdentity) => void
925
- /**
926
- * The signed-in user's id (a message's persisted `author.id`). Used to stamp
927
- * the identity handed to {@link onProfileClick} for AUTHOR-LESS messages (the
928
- * local optimistic echo, legacy solo rows), which are always the signed-in
929
- * user's own. Omit in a solo host — those clicks then carry no `id`, which
930
- * hosts treat as "the signed-in user".
931
- */
932
899
  currentUserId?: string
933
- /** Called when the server signals (via the `ready_to_build` stream event) that discovery is complete and the sandbox should boot. */
934
900
  onReadyToBuild?: () => void
935
- /**
936
- * True while the plan has finished streaming but the sandbox is still booting
937
- * (after `ready_to_build`, before the post-boot build kickoff). When set and no
938
- * message is actively streaming, the chat shows a "waiting for the development
939
- * environment" indicator so the conversation doesn't appear to silently stall.
940
- */
941
901
  awaitingSandboxBoot?: boolean
942
- /** Called when the agent requests a UI action via the `client_action` stream event (reload/navigate the preview, open a file). */
943
902
  onClientAction?: (action: IdeClientAction) => void
944
- /** Called on each stream `done` — host uses it to keep the boot view up until the parallel during-boot plan stream finishes. */
945
903
  onTurnComplete?: () => void
946
- /**
947
- * Called whenever the chat's loading state changes — true when a turn (plan or build) is in
948
- * progress, false when idle. The host uses this as the authoritative "the agent is actively
949
- * building" signal to drive the preview's "Building your app…" overlay, so a half-built /
950
- * blank preview during a long build always shows progress instead of a bare white screen.
951
- */
952
904
  onLoadingChange?: (loading: boolean) => void
953
- /**
954
- * Navigates the live preview to a route path. Wired so a `[label](/route)` markdown link in
955
- * an assistant message (e.g. the agent's "your app is ready" handoff) jumps the preview to
956
- * that page on click. User-initiated, so the host should navigate unconditionally (it is not
957
- * the rate-limited agent `navigate_preview` action).
958
- */
959
905
  onNavigatePreview?: (path: string) => void
960
- /**
961
- * Called on mount with a handler the parent invokes to deliver a broadcast chat event
962
- * from another project member (the push channel); called with null on unmount.
963
- */
964
906
  onRegisterPushHandler?: (
965
907
  handler: ((conversationId: string, event: ChatStreamEvent) => void) | null,
966
908
  ) => void
967
- /**
968
- * Called on mount with a function that reloads chat history and converges the
969
- * panel on the persisted transcript; called with null on unmount. The host
970
- * should invoke it whenever its chat push channel (re)connects: a broadcast
971
- * sent while that socket was down (a teammate's team note against a
972
- * backgrounded tab or a slept laptop) is otherwise lost until a page
973
- * lifecycle event happens to fire. Cheap when nothing changed — an identical
974
- * transcript is never re-applied.
975
- */
976
909
  onRegisterHistoryReconcile?: (reconcile: (() => Promise<void>) | null) => void
977
- /** Changing this value submits the current input draft — used to send a prefilled prompt after the prompt→chat morph docks. */
978
910
  autoSubmitSignal?: number
979
- /** Seeds the input with this text on mount (prompt→chat morph), so the chat input shows the prompt before it is sent. */
980
911
  initialInputValue?: string
981
- /** Hide the conversation-selector header (e.g. during discovery, before any history is worth showing). */
982
912
  hideConversationMenu?: boolean
983
- /**
984
- * Whether to render the built-in conversation header (the picker + searchable
985
- * history dropdown, the share / bug-report / settings buttons, and the
986
- * new-chat "+"). Defaults to `true` (the package owns that chrome). Pass
987
- * `false` to operate **headless** — the host renders those controls itself
988
- * (e.g. molecule.dev's Workspace top bar) and drives the chat through the
989
- * controlled props below: {@link ChatPanelProps.conversationId} /
990
- * {@link ChatPanelProps.chatKey} / {@link ChatPanelProps.onConversationId} for
991
- * the conversation, and {@link ChatPanelProps.openShareSignal} /
992
- * {@link ChatPanelProps.openReportSignal} to open the in-chat modals.
993
- */
994
913
  renderConversationHeader?: boolean
995
- /**
996
- * Host-controlled active conversation id (headless mode). Drives the chat
997
- * endpoint's `?conversationId=`. When `undefined` (the default) the panel owns
998
- * the active conversation internally (localStorage-backed). `null` is a valid
999
- * controlled value meaning "no conversation yet".
1000
- */
1001
914
  conversationId?: string | null
1002
- /**
1003
- * Host-controlled remount key for the inner chat (headless mode). Changing it
1004
- * remounts the conversation timeline (a new chat or a switch); the backend
1005
- * assigning an id mid-stream must NOT change it (that would drop in-flight
1006
- * messages). Falls back to the internal key when omitted.
1007
- */
1008
915
  chatKey?: string
1009
- /**
1010
- * Called whenever the active conversation id changes — the backend assigns one
1011
- * mid-stream and the host needs it to keep its own picker in sync WITHOUT
1012
- * remounting (do not change {@link ChatPanelProps.chatKey} in response).
1013
- */
1014
916
  onConversationId?: (id: string | null) => void
1015
- /** Changing this opens the in-chat `/share` modal (host-driven, e.g. a top-bar share button). Overrides the built-in header's share button signal. */
1016
917
  openShareSignal?: number
1017
- // … truncated — the full declaration is in node_modules/@molecule/app-ide-react/dist/types.d.ts
918
+ openReportSignal?: number
919
+ openSettingsSignal?: number
920
+ onManageCustomModels?: (context?: { mode?: 'plan' | 'execute' }) => void
921
+ modelSelectionSignal?: number
922
+ canEdit?: boolean
923
+ canSendTeamMessages?: boolean
924
+ canShare?: boolean
925
+ shareLinksAllowed?: boolean
926
+ shareLinksRefreshSignal?: number
927
+ shareModalContent?: ReactNode
928
+ spinner?: ReactNode
929
+ activeFile?: string | null
930
+ openTabs?: string[]
931
+ gitStatusTick?: number
932
+ pendingMessage?: string
933
+ pendingMessageKey?: number
934
+ pendingMessageSuppressUser?: boolean
935
+ pendingMessageUserInitiated?: boolean
936
+ userEditedFile?: string
937
+ userEditedFileKey?: number
938
+ isAnonymous?: boolean
939
+ isPro?: boolean
940
+ suppressGuestReminder?: boolean
941
+ buildUpgradeCta?: (context: {
942
+ requiresSignup?: boolean
943
+ limitType?: string
944
+ billingAction?: string
945
+ upgradeTier?: string | null
946
+ }) => ChatEventCardAction | ChatEventCardAction[] | null | undefined
947
+ buildHelpUpgradeSection?: () =>
948
+ { lines: string[]; action?: ChatEventCardAction | ChatEventCardAction[] } | null | undefined
949
+ userAvatar?: string | null
950
+ agentName?: string
951
+ productName?: string
952
+ version?: string
953
+ extraCommands?: readonly CommandDef[]
954
+ feedbackUrl?: string
955
+ listTests?: () => Promise<TestList>
956
+ runTests?: (selection: TestSelection, onEvent: (event: TestRunEvent) => void) => TestRunHandle
957
+ watchTestRuns?: (onEvent: (event: TestRunFeedEvent) => void) => () => void
958
+ nativeTests?: {
959
+ visible: boolean
960
+ history: ReactNode
961
+ renderStatus: (openTests: () => void) => ReactNode
962
+ }
963
+ canRunTests?: boolean
964
+ testsAvailable?: boolean
965
+ skipToolCall?: (toolCallId: string) => void | Promise<boolean | void>
966
+ className?: string
967
+ }
1018
968
  ```
1019
969
 
970
+ _(Member comments are left out to fit; the full declaration is in `node_modules/@molecule/app-ide-react/dist/types.d.ts`.)_
971
+
1020
972
  #### `EditorPanelProps`
1021
973
 
1022
974
  Properties for the editor panel component.
@@ -2122,6 +2074,7 @@ function ChatPanel({
2122
2074
  listTests,
2123
2075
  runTests,
2124
2076
  watchTestRuns,
2077
+ nativeTests,
2125
2078
  canRunTests,
2126
2079
  testsAvailable,
2127
2080
  skipToolCall,
@@ -248,6 +248,7 @@ export interface ChatInnerProps {
248
248
  runTests?: ChatPanelProps['runTests'];
249
249
  /** Every test run in the project, streamed — see {@link ChatPanelProps.watchTestRuns}. */
250
250
  watchTestRuns?: ChatPanelProps['watchTestRuns'];
251
+ nativeTests?: ChatPanelProps['nativeTests'];
251
252
  /** Whether this viewer may run tests — see {@link ChatPanelProps.canRunTests}. */
252
253
  canRunTests?: boolean;
253
254
  /** Whether the environment that runs them is up — see {@link ChatPanelProps.testsAvailable}. */
@@ -260,7 +261,7 @@ export interface ChatInnerProps {
260
261
  * @param props - Component props (see {@link MessageItemProps}).
261
262
  * @returns The rendered chat panel element.
262
263
  */
263
- export declare function ChatPanel({ projectId, endpoint, initialMessage, onInitialMessageSent, activeFile, openTabs, onFileOpen, onFileDoubleClick, onFileDiff, onFileRevert, onFileChange, onFileDeleted, onCommit, onActivityClick, onRenderError, onProfileClick, currentUserId, onReadyToBuild, awaitingSandboxBoot, onClientAction, onTurnComplete, onLoadingChange, onNavigatePreview, onRegisterPushHandler, onRegisterHistoryReconcile, autoSubmitSignal, initialInputValue, hideConversationMenu, renderConversationHeader, conversationId: controlledConversationId, chatKey: controlledChatKey, onConversationId: controlledOnConversationId, openShareSignal: controlledShareSignal, openReportSignal: controlledReportSignal, openSettingsSignal: controlledSettingsSignal, onManageCustomModels, gitStatusTick, pendingMessage, pendingMessageKey, pendingMessageSuppressUser, pendingMessageUserInitiated, userEditedFile, userEditedFileKey, isPro, isAnonymous, canEdit, canSendTeamMessages, canShare, shareLinksAllowed, shareLinksRefreshSignal, shareModalContent, buildUpgradeCta, buildHelpUpgradeSection, userAvatar, agentName, productName, version, extraCommands, feedbackUrl, listTests, runTests, watchTestRuns, canRunTests, testsAvailable, skipToolCall, className, }: ChatPanelProps): JSX.Element;
264
+ export declare function ChatPanel({ projectId, endpoint, initialMessage, onInitialMessageSent, activeFile, openTabs, onFileOpen, onFileDoubleClick, onFileDiff, onFileRevert, onFileChange, onFileDeleted, onCommit, onActivityClick, onRenderError, onProfileClick, currentUserId, onReadyToBuild, awaitingSandboxBoot, onClientAction, onTurnComplete, onLoadingChange, onNavigatePreview, onRegisterPushHandler, onRegisterHistoryReconcile, autoSubmitSignal, initialInputValue, hideConversationMenu, renderConversationHeader, conversationId: controlledConversationId, chatKey: controlledChatKey, onConversationId: controlledOnConversationId, openShareSignal: controlledShareSignal, openReportSignal: controlledReportSignal, openSettingsSignal: controlledSettingsSignal, onManageCustomModels, gitStatusTick, pendingMessage, pendingMessageKey, pendingMessageSuppressUser, pendingMessageUserInitiated, userEditedFile, userEditedFileKey, isPro, isAnonymous, canEdit, canSendTeamMessages, canShare, shareLinksAllowed, shareLinksRefreshSignal, shareModalContent, buildUpgradeCta, buildHelpUpgradeSection, userAvatar, agentName, productName, version, extraCommands, feedbackUrl, listTests, runTests, watchTestRuns, nativeTests, canRunTests, testsAvailable, skipToolCall, className, }: ChatPanelProps): JSX.Element;
264
265
  export declare namespace ChatPanel {
265
266
  var displayName: string;
266
267
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ChatPanel.d.ts","sourceRoot":"","sources":["../../src/components/ChatPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAa3C,OAAO,KAAK,EAEV,WAAW,EAIZ,MAAM,uBAAuB,CAAA;AAyC9B,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,eAAe,EAMhB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAiBvD,OAAO,EAEL,KAAK,UAAU,EAGhB,MAAM,oBAAoB,CAAA;AAY3B,OAAO,KAAK,EAAsB,SAAS,EAAE,MAAM,gCAAgC,CAAA;AA+NnF,UAAU,UAAU;IAClB,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAA;IACpC,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAiPD,UAAU,WAAW;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AA6TD;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE;IAC1C,MAAM,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE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AwF;IACxF,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAA;CAC9C;AAwgTD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,QAAQ,EACR,cAAc,EACd,oBAAoB,EACpB,UAAU,EACV,QAAQ,EACR,UAAU,EACV,iBAAiB,EACjB,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,eAAe,EACf,aAAa,EACb,cAAc,EACd,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,0BAA0B,EAC1B,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,wBAA+B,EAC/B,cAAc,EAAE,wBAAwB,EACxC,OAAO,EAAE,iBAAiB,EAC1B,gBAAgB,EAAE,0BAA0B,EAC5C,eAAe,EAAE,qBAAqB,EACtC,gBAAgB,EAAE,sBAAsB,EACxC,kBAAkB,EAAE,wBAAwB,EAC5C,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,0BAA0B,EAC1B,2BAA2B,EAC3B,cAAc,EACd,iBAAiB,EACjB,KAAK,EACL,WAAW,EACX,OAAc,EACd,mBAA0B,EAC1B,QAAQ,EACR,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EACvB,UAAU,EACV,SAAS,EACT,WAAW,EACX,OAAO,EACP,aAAa,EACb,WAAW,EACX,SAAS,EACT,QAAQ,EACR,aAAa,EACb,WAAW,EACX,cAAc,EACd,YAAY,EACZ,SAAS,GACV,EAAE,cAAc,GAAG,GAAG,CAAC,OAAO,CAud9B;yBA1hBe,SAAS"}
1
+ {"version":3,"file":"ChatPanel.d.ts","sourceRoot":"","sources":["../../src/components/ChatPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE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cAAc,EACd,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,0BAA0B,EAC1B,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,wBAA+B,EAC/B,cAAc,EAAE,wBAAwB,EACxC,OAAO,EAAE,iBAAiB,EAC1B,gBAAgB,EAAE,0BAA0B,EAC5C,eAAe,EAAE,qBAAqB,EACtC,gBAAgB,EAAE,sBAAsB,EACxC,kBAAkB,EAAE,wBAAwB,EAC5C,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,0BAA0B,EAC1B,2BAA2B,EAC3B,cAAc,EACd,iBAAiB,EACjB,KAAK,EACL,WAAW,EACX,OAAc,EACd,mBAA0B,EAC1B,QAAQ,EACR,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EACvB,UAAU,EACV,SAAS,EACT,WAAW,EACX,OAAO,EACP,aAAa,EACb,WAAW,EACX,SAAS,EACT,QAAQ,EACR,aAAa,EACb,WAAW,EACX,WAAW,EACX,cAAc,EACd,YAAY,EACZ,SAAS,GACV,EAAE,cAAc,GAAG,GAAG,CAAC,OAAO,CAwd9B;yBA5hBe,SAAS"}
@@ -1340,7 +1340,7 @@ function rememberCompletedOwnTestRunId(ids, runId) {
1340
1340
  * @param props - Component props (see {@link MessageItemProps}).
1341
1341
  * @returns The rendered chat inner component.
1342
1342
  */
1343
- function ChatInner({ projectId, endpoint, initialMessage, onInitialMessageSent, isPro, isAnonymous, canEdit, canSendTeamMessages = true, canShare, shareLinksAllowed, shareLinksRefreshSignal, shareModalContent, buildUpgradeCta, buildHelpUpgradeSection, activeFile, openTabs, onFileOpen, onFileDoubleClick, onFileDiff, onFileRevert, onFileChange, onFileDeleted, onCommit, onConversationId, onActivityClick, onRenderError, onProfileClick, currentUserId, onReadyToBuild, awaitingSandboxBoot, onClientAction, onTurnComplete, onLoadingChange, onNavigatePreview, onRegisterPushHandler, onRegisterHistoryReconcile, autoSubmitSignal, openSettingsSignal, onManageCustomModels, modelSelectionSignal, openReportSignal, openShareSignal, initialInputValue, pendingMessage, pendingMessageKey, pendingMessageSuppressUser, pendingMessageUserInitiated, userEditedFile, userEditedFileKey, gitStatusTick: externalGitStatusTick, discovery, userAvatar, agentName = DEFAULT_AGENT_NAME, productName = DEFAULT_PRODUCT_NAME, version, extraCommands, listTests, runTests, watchTestRuns, canRunTests, testsAvailable, skipToolCall,
1343
+ function ChatInner({ projectId, endpoint, initialMessage, onInitialMessageSent, isPro, isAnonymous, canEdit, canSendTeamMessages = true, canShare, shareLinksAllowed, shareLinksRefreshSignal, shareModalContent, buildUpgradeCta, buildHelpUpgradeSection, activeFile, openTabs, onFileOpen, onFileDoubleClick, onFileDiff, onFileRevert, onFileChange, onFileDeleted, onCommit, onConversationId, onActivityClick, onRenderError, onProfileClick, currentUserId, onReadyToBuild, awaitingSandboxBoot, onClientAction, onTurnComplete, onLoadingChange, onNavigatePreview, onRegisterPushHandler, onRegisterHistoryReconcile, autoSubmitSignal, openSettingsSignal, onManageCustomModels, modelSelectionSignal, openReportSignal, openShareSignal, initialInputValue, pendingMessage, pendingMessageKey, pendingMessageSuppressUser, pendingMessageUserInitiated, userEditedFile, userEditedFileKey, gitStatusTick: externalGitStatusTick, discovery, userAvatar, agentName = DEFAULT_AGENT_NAME, productName = DEFAULT_PRODUCT_NAME, version, extraCommands, listTests, runTests, watchTestRuns, nativeTests, canRunTests, testsAvailable, skipToolCall,
1344
1344
  // feedbackUrl: prop kept for back-compat (callers still pass it), but no longer
1345
1345
  // consumed here — its only use was the command-menu footer link removed in P3-21.
1346
1346
  }) {
@@ -6302,7 +6302,7 @@ function ChatInner({ projectId, endpoint, initialMessage, onInitialMessageSent,
6302
6302
  // Everything about the work in flight shares one card above the composer. The
6303
6303
  // tests strip also shows for a read-only viewer (watching is not editing); the
6304
6304
  // files strip does not (committing is editor work). Popups hide the card.
6305
- const showTests = testsBarVisible && shouldShowTestsBar(testsRun, testsList);
6305
+ const showTests = testsBarVisible && (nativeTests ? nativeTests.visible : shouldShowTestsBar(testsRun, testsList));
6306
6306
  const showFiles = canEdit !== false && pendingFiles != null && pendingFiles.length > 0;
6307
6307
  const workVisible = !commandMenu &&
6308
6308
  !modelPicker &&
@@ -7651,15 +7651,15 @@ function ChatInner({ projectId, endpoint, initialMessage, onInitialMessageSent,
7651
7651
  minHeight: 36,
7652
7652
  }
7653
7653
  : {}),
7654
- }, children: '✕' })] }), _jsxs("div", { style: { overflowY: 'auto', flex: 1 }, children: [panelOverlay === 'settings' && (_jsx(SettingsCard, { settings: computeSettingsList(), onRunCommand: (commandId) => void executeCommand(commandId), onPrefillInput: (input) => setInputAndCursorEnd(`${input} `), isLight: isLight, agentName: agentName, embedded: true })), panelOverlay === 'skills' && (_jsx(SkillsCard, { projectId: projectId, initialQuery: panelOverlayQuery, onLoad: loadSkill, onCreate: createSkill, loadedSkillPaths: loadedSkillPaths, defaultSkillPaths: defaultSkillPaths, onToggleDefault: toggleDefaultSkill, onResetDefault: resetDefaultSkills, defaultsExplicit: defaultSkillsExplicitRef.current, isLight: isLight, embedded: true })), panelOverlay === 'scripts' && (_jsx(ScriptsCard, { projectId: projectId, initialQuery: panelOverlayQuery, isLight: isLight, agentName: agentName, embedded: true })), panelOverlay === 'tests' && (_jsx(TestsCard, { tests: testsList, status: testsStatus, run: testsRun, agentName: agentName, initialQuery: panelOverlayQuery, canRun: (canRunTests ?? canEdit !== false) && canEdit !== false, onRun: startTestsRun, onCancel: cancelTestsRun, onSkipCurrent: skipCurrentTest, onFix: fixTests, fixDisabledReason: canEdit === false
7655
- ? t('ide.tests.viewerCannotRun', undefined, {
7656
- defaultValue: 'Only editors can run this project’s tests.',
7657
- })
7658
- : isLoading || isRemoteStreaming
7659
- ? t('ide.tests.fixBusy', undefined, {
7660
- defaultValue: 'Wait for the current turn to finish.',
7661
- })
7662
- : null, isLight: isLight, embedded: true }))] })] })), filePicker &&
7654
+ }, children: '✕' })] }), _jsxs("div", { style: { overflowY: 'auto', flex: 1 }, children: [panelOverlay === 'settings' && (_jsx(SettingsCard, { settings: computeSettingsList(), onRunCommand: (commandId) => void executeCommand(commandId), onPrefillInput: (input) => setInputAndCursorEnd(`${input} `), isLight: isLight, agentName: agentName, embedded: true })), panelOverlay === 'skills' && (_jsx(SkillsCard, { projectId: projectId, initialQuery: panelOverlayQuery, onLoad: loadSkill, onCreate: createSkill, loadedSkillPaths: loadedSkillPaths, defaultSkillPaths: defaultSkillPaths, onToggleDefault: toggleDefaultSkill, onResetDefault: resetDefaultSkills, defaultsExplicit: defaultSkillsExplicitRef.current, isLight: isLight, embedded: true })), panelOverlay === 'scripts' && (_jsx(ScriptsCard, { projectId: projectId, initialQuery: panelOverlayQuery, isLight: isLight, agentName: agentName, embedded: true })), panelOverlay === 'tests' && (_jsxs(_Fragment, { children: [nativeTests?.history, _jsx(TestsCard, { tests: testsList, status: testsStatus, run: testsRun, agentName: agentName, initialQuery: panelOverlayQuery, canRun: (canRunTests ?? canEdit !== false) && canEdit !== false, onRun: startTestsRun, onCancel: cancelTestsRun, onSkipCurrent: skipCurrentTest, onFix: fixTests, fixDisabledReason: canEdit === false
7655
+ ? t('ide.tests.viewerCannotRun', undefined, {
7656
+ defaultValue: 'Only editors can run this project’s tests.',
7657
+ })
7658
+ : isLoading || isRemoteStreaming
7659
+ ? t('ide.tests.fixBusy', undefined, {
7660
+ defaultValue: 'Wait for the current turn to finish.',
7661
+ })
7662
+ : null, isLight: isLight, embedded: true })] }))] })] })), filePicker &&
7663
7663
  filteredEntries.length > 0 &&
7664
7664
  (() => {
7665
7665
  const normalizeTabPath = (p) => p.startsWith('/workspace/')
@@ -7847,7 +7847,8 @@ function ChatInner({ projectId, endpoint, initialMessage, onInitialMessageSent,
7847
7847
  }, onMouseLeave: (e) => {
7848
7848
  e.currentTarget.style.opacity = '0.7';
7849
7849
  e.currentTarget.style.background = 'none';
7850
- }, children: _jsx("svg", { width: "13", height: "13", viewBox: "0 0 12 12", style: { display: 'block' }, children: _jsx("path", { d: "M 2.5,6.5 L 6,3 L 9.5,6.5 M 6,3.5 L 6,10", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" }) }) }))] }, qm.id))) })] })), workVisible && (_jsxs(WorkCard, { children: [_jsx(PlanCard, { todos: plan, live: planLive, awaitingUser: planAwaitingUser }), _jsx(BackgroundTasksStrip, { tasks: backgroundTasks }), showTests && (_jsx(TestStatusBar, { run: testsRun, agentName: agentName, tests: testsList, onOpen: () => openTestsBrowser(''), onStop: testsRun.running && !testsRun.external ? cancelTestsRun : undefined })), showFiles && pendingFiles != null && (_jsx(DockStrip, { molId: "chat-commit-bar", toggleMolId: "chat-commit-toggle", expanded: commitBarExpanded, onToggle: () => setCommitBarExpanded((v) => !v), hideLabel: true, label: t('ide.chat.showChangedFiles', undefined, {
7850
+ }, children: _jsx("svg", { width: "13", height: "13", viewBox: "0 0 12 12", style: { display: 'block' }, children: _jsx("path", { d: "M 2.5,6.5 L 6,3 L 9.5,6.5 M 6,3.5 L 6,10", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" }) }) }))] }, qm.id))) })] })), workVisible && (_jsxs(WorkCard, { children: [_jsx(PlanCard, { todos: plan, live: planLive, awaitingUser: planAwaitingUser }), _jsx(BackgroundTasksStrip, { tasks: backgroundTasks }), showTests &&
7851
+ (nativeTests ? (nativeTests.renderStatus(() => openTestsBrowser(''))) : (_jsx(TestStatusBar, { run: testsRun, agentName: agentName, tests: testsList, onOpen: () => openTestsBrowser(''), onStop: testsRun.running && !testsRun.external ? cancelTestsRun : undefined }))), showFiles && pendingFiles != null && (_jsx(DockStrip, { molId: "chat-commit-bar", toggleMolId: "chat-commit-toggle", expanded: commitBarExpanded, onToggle: () => setCommitBarExpanded((v) => !v), hideLabel: true, label: t('ide.chat.showChangedFiles', undefined, {
7851
7852
  defaultValue: 'Show changed files',
7852
7853
  }), actions: _jsx(_Fragment, { children: isAutoCommitEnabled(autoCommit) &&
7853
7854
  commitState?.status !== 'committing' &&
@@ -8297,7 +8298,7 @@ function ChatInner({ projectId, endpoint, initialMessage, onInitialMessageSent,
8297
8298
  * @param props - Component props (see {@link MessageItemProps}).
8298
8299
  * @returns The rendered chat panel element.
8299
8300
  */
8300
- export function ChatPanel({ projectId, endpoint, initialMessage, onInitialMessageSent, activeFile, openTabs, onFileOpen, onFileDoubleClick, onFileDiff, onFileRevert, onFileChange, onFileDeleted, onCommit, onActivityClick, onRenderError, onProfileClick, currentUserId, onReadyToBuild, awaitingSandboxBoot, onClientAction, onTurnComplete, onLoadingChange, onNavigatePreview, onRegisterPushHandler, onRegisterHistoryReconcile, autoSubmitSignal, initialInputValue, hideConversationMenu, renderConversationHeader = true, conversationId: controlledConversationId, chatKey: controlledChatKey, onConversationId: controlledOnConversationId, openShareSignal: controlledShareSignal, openReportSignal: controlledReportSignal, openSettingsSignal: controlledSettingsSignal, onManageCustomModels, gitStatusTick, pendingMessage, pendingMessageKey, pendingMessageSuppressUser, pendingMessageUserInitiated, userEditedFile, userEditedFileKey, isPro, isAnonymous, canEdit = true, canSendTeamMessages = true, canShare, shareLinksAllowed, shareLinksRefreshSignal, shareModalContent, buildUpgradeCta, buildHelpUpgradeSection, userAvatar, agentName, productName, version, extraCommands, feedbackUrl, listTests, runTests, watchTestRuns, canRunTests, testsAvailable, skipToolCall, className, }) {
8301
+ export function ChatPanel({ projectId, endpoint, initialMessage, onInitialMessageSent, activeFile, openTabs, onFileOpen, onFileDoubleClick, onFileDiff, onFileRevert, onFileChange, onFileDeleted, onCommit, onActivityClick, onRenderError, onProfileClick, currentUserId, onReadyToBuild, awaitingSandboxBoot, onClientAction, onTurnComplete, onLoadingChange, onNavigatePreview, onRegisterPushHandler, onRegisterHistoryReconcile, autoSubmitSignal, initialInputValue, hideConversationMenu, renderConversationHeader = true, conversationId: controlledConversationId, chatKey: controlledChatKey, onConversationId: controlledOnConversationId, openShareSignal: controlledShareSignal, openReportSignal: controlledReportSignal, openSettingsSignal: controlledSettingsSignal, onManageCustomModels, gitStatusTick, pendingMessage, pendingMessageKey, pendingMessageSuppressUser, pendingMessageUserInitiated, userEditedFile, userEditedFileKey, isPro, isAnonymous, canEdit = true, canSendTeamMessages = true, canShare, shareLinksAllowed, shareLinksRefreshSignal, shareModalContent, buildUpgradeCta, buildHelpUpgradeSection, userAvatar, agentName, productName, version, extraCommands, feedbackUrl, listTests, runTests, watchTestRuns, nativeTests, canRunTests, testsAvailable, skipToolCall, className, }) {
8301
8302
  const cm = getClassMap();
8302
8303
  // Share management may be gated ABOVE canEdit by the host (see
8303
8304
  // ChatPanelProps.canShare) — gates the built-in header share button here and
@@ -8512,7 +8513,7 @@ export function ChatPanel({ projectId, endpoint, initialMessage, onInitialMessag
8512
8513
  textOverflow: 'ellipsis',
8513
8514
  whiteSpace: 'nowrap',
8514
8515
  width: '100%',
8515
- }, children: conv.preview ?? 'New conversation' }), _jsx("span", { className: cm.cn(cm.textMuted, cm.textSize('xs')), style: { opacity: 0.55 }, children: relativeTime(conv.updatedAt) })] }, conv.id)))] }))] })), _jsx(ChatInner, { projectId: projectId, endpoint: chatEndpoint, initialMessage: initialMessage, onInitialMessageSent: onInitialMessageSent, isPro: isPro, isAnonymous: isAnonymous, canEdit: canEdit, canSendTeamMessages: canSendTeamMessages, canShare: shareAllowed, shareLinksAllowed: shareLinksAllowed, shareLinksRefreshSignal: shareLinksRefreshSignal, shareModalContent: shareModalContent, buildUpgradeCta: buildUpgradeCta, buildHelpUpgradeSection: buildHelpUpgradeSection, activeFile: activeFile, openTabs: openTabs, onFileOpen: onFileOpen, onFileDoubleClick: onFileDoubleClick, onFileDiff: onFileDiff, onFileRevert: onFileRevert, onFileChange: onFileChange, onFileDeleted: onFileDeleted, onCommit: onCommit, onConversationId: reportConversationId, onActivityClick: onActivityClick, onRenderError: onRenderError, onProfileClick: onProfileClick, currentUserId: currentUserId, onReadyToBuild: onReadyToBuild, awaitingSandboxBoot: awaitingSandboxBoot, onClientAction: onClientAction, onTurnComplete: onTurnComplete, onLoadingChange: onLoadingChange, onNavigatePreview: onNavigatePreview, onRegisterPushHandler: onRegisterPushHandler, onRegisterHistoryReconcile: onRegisterHistoryReconcile, autoSubmitSignal: autoSubmitSignal, openSettingsSignal: effectiveSettingsSignal, onManageCustomModels: onManageCustomModels, openReportSignal: effectiveReportSignal, openShareSignal: effectiveShareSignal, initialInputValue: initialInputValue, pendingMessage: pendingMessage, pendingMessageKey: pendingMessageKey, pendingMessageSuppressUser: pendingMessageSuppressUser, pendingMessageUserInitiated: pendingMessageUserInitiated, userEditedFile: userEditedFile, userEditedFileKey: userEditedFileKey, gitStatusTick: gitStatusTick, discovery: hideConversationMenu, userAvatar: userAvatar, agentName: agentName, productName: productName, version: version, extraCommands: extraCommands, feedbackUrl: feedbackUrl, listTests: listTests, runTests: runTests, watchTestRuns: watchTestRuns, canRunTests: canRunTests, testsAvailable: testsAvailable, skipToolCall: skipToolCall }, chatKey)] }));
8516
+ }, children: conv.preview ?? 'New conversation' }), _jsx("span", { className: cm.cn(cm.textMuted, cm.textSize('xs')), style: { opacity: 0.55 }, children: relativeTime(conv.updatedAt) })] }, conv.id)))] }))] })), _jsx(ChatInner, { projectId: projectId, endpoint: chatEndpoint, initialMessage: initialMessage, onInitialMessageSent: onInitialMessageSent, isPro: isPro, isAnonymous: isAnonymous, canEdit: canEdit, canSendTeamMessages: canSendTeamMessages, canShare: shareAllowed, shareLinksAllowed: shareLinksAllowed, shareLinksRefreshSignal: shareLinksRefreshSignal, shareModalContent: shareModalContent, buildUpgradeCta: buildUpgradeCta, buildHelpUpgradeSection: buildHelpUpgradeSection, activeFile: activeFile, openTabs: openTabs, onFileOpen: onFileOpen, onFileDoubleClick: onFileDoubleClick, onFileDiff: onFileDiff, onFileRevert: onFileRevert, onFileChange: onFileChange, onFileDeleted: onFileDeleted, onCommit: onCommit, onConversationId: reportConversationId, onActivityClick: onActivityClick, onRenderError: onRenderError, onProfileClick: onProfileClick, currentUserId: currentUserId, onReadyToBuild: onReadyToBuild, awaitingSandboxBoot: awaitingSandboxBoot, onClientAction: onClientAction, onTurnComplete: onTurnComplete, onLoadingChange: onLoadingChange, onNavigatePreview: onNavigatePreview, onRegisterPushHandler: onRegisterPushHandler, onRegisterHistoryReconcile: onRegisterHistoryReconcile, autoSubmitSignal: autoSubmitSignal, openSettingsSignal: effectiveSettingsSignal, onManageCustomModels: onManageCustomModels, openReportSignal: effectiveReportSignal, openShareSignal: effectiveShareSignal, initialInputValue: initialInputValue, pendingMessage: pendingMessage, pendingMessageKey: pendingMessageKey, pendingMessageSuppressUser: pendingMessageSuppressUser, pendingMessageUserInitiated: pendingMessageUserInitiated, userEditedFile: userEditedFile, userEditedFileKey: userEditedFileKey, gitStatusTick: gitStatusTick, discovery: hideConversationMenu, userAvatar: userAvatar, agentName: agentName, productName: productName, version: version, extraCommands: extraCommands, feedbackUrl: feedbackUrl, listTests: listTests, runTests: runTests, watchTestRuns: watchTestRuns, nativeTests: nativeTests, canRunTests: canRunTests, testsAvailable: testsAvailable, skipToolCall: skipToolCall }, chatKey)] }));
8516
8517
  }
8517
8518
  ChatPanel.displayName = 'ChatPanel';
8518
8519
  //# sourceMappingURL=ChatPanel.js.map