@meistrari/chat-nuxt 4.6.0-rc.0 → 4.6.0-rc.2

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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meistrari/chat-nuxt",
3
3
  "configKey": "chatNuxt",
4
- "version": "4.6.0-rc.0",
4
+ "version": "4.6.0-rc.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
@@ -1,17 +1,17 @@
1
1
  import { applyLightweightPart } from '../../../types/schemas/integrations/lightweight.js';
2
2
  import type { LightweightTurn } from '../../../types/schemas/integrations/lightweight.js';
3
+ import { createMessagePartsAccumulator as createClaudeMessagePartsAccumulator } from '../../../messages/composables/use-direct-stream.js';
3
4
  import type { DirectStreamOptions, MessagePartsEvent } from '../../../messages/composables/use-direct-stream.js';
4
5
  type MessagePartsAccumulator = {
5
6
  runId: string | null;
6
7
  lightweight?: LightweightTurn;
8
+ claude?: ReturnType<typeof createClaudeMessagePartsAccumulator>;
7
9
  };
8
10
  export declare function createMessagePartsAccumulator(runId?: string | null): MessagePartsAccumulator;
9
11
  export declare function applyMessagePartsEvent(accumulator: MessagePartsAccumulator, input: MessagePartsEvent): {
10
- text: any;
11
- thinking: any;
12
+ text: string;
13
+ thinking: string;
12
14
  changed: boolean;
13
- reasoning?: undefined;
14
- files?: undefined;
15
15
  } | {
16
16
  text: any;
17
17
  thinking: any;
@@ -1,13 +1,20 @@
1
1
  import { applyLightweightPart, createLightweightTurn } from "../../../types/schemas/integrations/lightweight.js";
2
- import { useDirectStreamWithProtocol } from "../../../messages/composables/use-direct-stream.js";
2
+ import {
3
+ applyMessagePartsEvent as applyClaudeMessagePartsEvent,
4
+ createMessagePartsAccumulator as createClaudeMessagePartsAccumulator,
5
+ useDirectStreamWithProtocol
6
+ } from "../../../messages/composables/use-direct-stream.js";
3
7
  export function createMessagePartsAccumulator(runId = null) {
4
8
  return {
5
9
  runId
6
10
  };
7
11
  }
8
12
  export function applyMessagePartsEvent(accumulator, input) {
9
- if (input.harness !== "lightweight" && accumulator.lightweight?.runId !== input.runId)
10
- return { text: accumulator.lightweight?.stepText ?? "", thinking: accumulator.lightweight?.thinking ?? "", changed: false };
13
+ if (input.harness !== "lightweight" && accumulator.lightweight?.runId !== input.runId) {
14
+ accumulator.claude ??= createClaudeMessagePartsAccumulator();
15
+ accumulator.runId = input.runId;
16
+ return applyClaudeMessagePartsEvent(accumulator.claude, input);
17
+ }
11
18
  if (accumulator.lightweight?.runId !== input.runId)
12
19
  accumulator.lightweight = createLightweightTurn(input.runId, input.sessionId ?? "");
13
20
  accumulator.runId = input.runId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/chat-nuxt",
3
- "version": "4.6.0-rc.0",
3
+ "version": "4.6.0-rc.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {