19 KiB
@assistant-ui/react-opencode
0.2.10
Patch Changes
-
#4515
f5e94b7- feat: forwardonThreadIdChangethrough the adapter entry hooks (useLangGraphRuntime,useStreamRuntime,useChatRuntime,useAdkRuntime,useOpenCodeRuntime,usePiRuntime). the option already existed onuseRemoteThreadListRuntimebut every wrapper dropped it, so routing/persistence built on the settled remote thread id never fired from these hooks. only the settled remote id is emitted; the transient__LOCALID_*placeholder is never surfaced. (@okisdev) -
#4472
ff16a47- fix: restore the type exports that the previous refactor trimmed from the public barrel; removing a shipped export is a breaking change for npm consumers, even when no in-repo consumer imports it (@okisdev) -
#4470
d98cfef- refactor: adopt the shared createRuntimeExtras helper, move the accessor hooks into hooks.ts, extract the thread-list adapter, and trim unused internal type and SDK re-exports from the public barrel (@okisdev) -
#4553
fbc33d3- refactor: delegate useOpenCodeStreamingTiming to the shared core primitive, with no public API change (@okisdev) -
#4591
f582f09- feat: honor startRun false across staged-message-capable runtimes (@Yonom) -
Updated dependencies [
ddc40b7,ea52de0,29c6fdb,d0987a3,cefcf27,0c51b90,3a8f685,ec6adf4,4acd4c0]:- @assistant-ui/core@0.2.19
- @assistant-ui/store@0.2.19
0.2.9
Patch Changes
0.2.8
Patch Changes
0.2.7
Patch Changes
-
#4338
4f1e240- fix(react-opencode): re-sync thread history, session status, and pending permissions/questions after the event stream reconnects, so events lost while disconnected (e.g.session.idleorpermission.asked) cannot leaveisRunningstuck or deadlock a run (@okisdev) -
#4334
0f7f1bc- fix(react-opencode): stop re-subscribing to the OpenCode event stream on every render, which could dropsession.idleand leaveisRunningstuck attrue(@okisdev)
0.2.6
Patch Changes
0.2.5
Patch Changes
0.2.4
Patch Changes
-
#4151
299d448- chore: drop stalebiome-ignorepragmas now that the repo lints with oxlint (@okisdev) -
#4136
4429aa3- centralize thread-level shared options forwarding across runtime wrapper hooks. follow-up to #4135. (@okisdev)new public exports from
@assistant-ui/core(re-exported from@assistant-ui/react):ExternalStoreSharedOptions, a typedPickoverExternalStoreAdaptercovering the four thread-level optional fields every wrapper forwards:isDisabled,isSendDisabled,unstable_capabilities,suggestions.pickExternalStoreSharedOptions(options), plucks those four fields from a wider options object. the body usessatisfies Required<...>so adding a key to the type without copying it in the function is a compile error rather than a silent missing-field bug.useExternalStoreSharedOptions(options)(from@assistant-ui/core/react), a memoized variant for wrappers that wrap their store inuseMemo. lets the wrapper list a single stablesharedreference as a dep instead of enumerating the four fields. samesatisfiesguard internally so the destructure stays in sync with the type.
internal: every runtime wrapper hook (
useChatRuntime,useAISDKRuntime,useLangGraphRuntime,useA2ARuntime,useAgUiRuntime,useAdkRuntime,useStreamRuntime,useOpenCodeRuntime) now uses these helpers instead of inlining the conditional spreads added in #4135. each wrapper sheds 20 to 40 lines of duplicated declarations and conditional spreads; future additions to the shared option set propagate through a single edit inpickExternalStoreSharedOptionsinstead of touching every wrapper. no user-facing behavior change. -
#4135
e7c2396- align the runtime wrapper hooks so every distribution forwards the same set of optional adapter-level fields touseExternalStoreRuntime. closes #4134. (@okisdev)useChatRuntimeanduseAISDKRuntime(which already acceptedsuggestions) gain three new options:isDisabled, disables the composer input entirely.isSendDisabled, keeps the input usable but makessend()a no-op (paired withcomposer.canSend).unstable_capabilities, per-thread capability overrides (currently{ copy?: boolean }).
useLangGraphRuntime,useA2ARuntime,useAgUiRuntime,useAdkRuntime,useStreamRuntime,useOpenCodeRuntimegain all four (the three above plussuggestions).adapter-level additions, where missing:
useChatRuntime/useAISDKRuntimealready accepteddictationandvoicethrough theExternalStoreAdapteradapter shape; this just confirms the typing.useLangGraphRuntime,useA2ARuntime,useAgUiRuntime,useAdkRuntime,useStreamRuntime,useOpenCodeRuntimenow acceptdictationandvoicein theiradaptersobject and forward them through.useOpenCodeRuntimegains anadaptersoption for the first time (attachments / speech / dictation / voice / feedback).
every new field is optional and defaults to the prior behavior, so existing call sites need no changes.
-
Updated dependencies [
1315789,299d448,4429aa3,0b99959,e76611f,eef724e,2dec3ae,2d9595e,fcb6baf]:
0.2.3
Patch Changes
-
Updated dependencies [
a6e0653]:
0.2.2
Patch Changes
0.2.1
Patch Changes
-
#3925
53cdc51- feat(react-opencode): track streaming timing viauseOpenCodeStreamingTimingsouseMessageTiming()works on OpenCode assistant messages (@shashank-100) -
#4068
22ae10e- fix(react-opencode): make the OpenCode runtime registry recover after React StrictMode cleanup. (@okisdev) -
Updated dependencies [
94548fa,8b6fc88,b481ec5,8f0dbb8,7a8bf26,693922b]:
0.2.0
Patch Changes
-
#3970
040d469- chore: drop APIs deprecated in v0.11/v0.12 (@Yonom)See the v0.14 migration guide for the full removal list and replacements.
useAssistantApi/useAssistantState/useAssistantEvent/AssistantIfremoved (useuseAui/useAuiState/useAuiEvent/AuiIf).getExternalStoreMessage(singular) removed (usegetExternalStoreMessages).MessageState.submittedFeedbackremoved (usemessage.metadata.submittedFeedback).ThreadRuntime.startRun(parentId)positional overload removed (pass{ parentId }).ThreadRuntime.unstable_loadExternalStateremoved (useimportExternalState).ThreadRuntime.unstable_resumeRunremoved (useresumeRun).ThreadRuntime.getModelConfigremoved (usegetModelContext).AssistantRuntime.threadList/switchToNewThread/switchToThread/registerModelConfigProvider/resetremoved (usethreads/threads.switchToNewThread/threads.switchToThread/registerModelContextProvider/thread.reset).ChatModelRunOptions.configremoved (usecontext).useLocalThreadRuntimealias removed (useuseLocalRuntime).unstable_useRemoteThreadListRuntime/unstable_useCloudThreadListAdapter/unstable_RemoteThreadListAdapter/unstable_InMemoryThreadListAdapteraliases removed (drop theunstable_prefix).react-langgraphonSwitchToThreadremoved (useload).toAISDKTools/getEnabledToolsremoved (usetoToolsJSONSchemafromassistant-stream).
-
Updated dependencies [
040d469]:
0.1.0
Patch Changes
0.0.4
Patch Changes
-
Updated dependencies [
005f83f]:
0.0.3
Patch Changes
0.0.2
Patch Changes
- c988db8: chore: update dependencies
- 11451c2: feat: initial experimental release of OpenCode runtime adapter
- Updated dependencies [c988db8]