@rynx-ai/server 0.1.11-beta.22 → 0.1.11-beta.23

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,5 @@
1
1
  import Router from "@koa/router";
2
- import { type ConversationRuntime, type InjectOutcome, type MachineSessionRecord, type ResolvedExecutionSnapshot, type SessionWorkspaceSnapshot, type SessionBus, type SessionLogStore, type SkillInstallRecipe } from "@rynx-ai/core";
2
+ import { type ConversationRuntime, type InjectResult, type MachineSessionRecord, type ResolvedExecutionSnapshot, type SessionWorkspaceSnapshot, type SessionBus, type SessionLogStore, type SkillInstallRecipe } from "@rynx-ai/core";
3
3
  import type { ControlAgentSummary, ControlAgentRuntimeOption, ControlLocalSkillCandidate, ControlLocalSkillImportResult, SkillSummary, SkillDetail, ProviderCliId } from "@rynx-ai/protocol/control";
4
4
  import type { SessionInteractionResolution } from "@rynx-ai/protocol";
5
5
  import { type RemoteRuntimeRpcParams, type RemoteRuntimeRpcResultFor } from "@rynx-ai/protocol/remote-runtime-rpc";
@@ -193,7 +193,7 @@ export declare function createControlRouter(opts: {
193
193
  code: string;
194
194
  statusCode: number;
195
195
  } | undefined;
196
- injectMessage?(localThreadId: string, text: string): Promise<InjectOutcome>;
196
+ injectMessage?(localThreadId: string, text: string): Promise<InjectResult>;
197
197
  resolveInteraction?(localThreadId: string, interactionId: string, resolution: SessionInteractionResolution): Promise<{
198
198
  disposition: "applied" | "already_resolved" | "not_found" | "invalid";
199
199
  }>;
@@ -3296,7 +3296,8 @@ export function createControlRouter(opts) {
3296
3296
  };
3297
3297
  return;
3298
3298
  }
3299
- const outcome = await runnerManager.injectMessage(id, message);
3299
+ const result = await runnerManager.injectMessage(id, message);
3300
+ const outcome = result.outcome;
3300
3301
  if (outcome === "injected" || outcome === "steered") {
3301
3302
  ctx.body = { ok: true, injected: true };
3302
3303
  return;
@@ -1 +1 @@
1
- import{R as x,L as d,A as f}from"./mermaid-GHXKKRXX-CJPtDfFU.js";import{r,j as p}from"./index-BQFR9W8k.js";var R=({code:i,language:e,raw:a,className:u,startLine:m,lineNumbers:n,...g})=>{let{shikiTheme:l}=r.useContext(x),s=d(),[h,t]=r.useState(a);return r.useEffect(()=>{if(!s){t(a);return}let o=s.highlight({code:i,language:e,themes:l},c=>{t(c)});o&&t(o)},[i,e,l,s,a]),p.jsx(f,{className:u,language:e,lineNumbers:n,result:h,startLine:m,...g})};export{R as HighlightedCodeBlockBody};
1
+ import{R as x,L as d,A as f}from"./mermaid-GHXKKRXX-DPZO2Q9W.js";import{r,j as p}from"./index-D-5t2eCT.js";var R=({code:i,language:e,raw:a,className:u,startLine:m,lineNumbers:n,...g})=>{let{shikiTheme:l}=r.useContext(x),s=d(),[h,t]=r.useState(a);return r.useEffect(()=>{if(!s){t(a);return}let o=s.highlight({code:i,language:e,themes:l},c=>{t(c)});o&&t(o)},[i,e,l,s,a]),p.jsx(f,{className:u,language:e,lineNumbers:n,result:h,startLine:m,...g})};export{R as HighlightedCodeBlockBody};