@absolutejs/absolute 0.19.0-beta.525 → 0.19.0-beta.526

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 (52) hide show
  1. package/dist/ai/client/index.js +5 -5
  2. package/dist/ai/client/index.js.map +1 -1
  3. package/dist/ai/index.js +4 -4
  4. package/dist/ai/index.js.map +1 -1
  5. package/dist/ai-client/angular/ai/index.js +880 -862
  6. package/dist/ai-client/react/ai/index.js +24 -24
  7. package/dist/ai-client/vue/ai/index.js +21 -21
  8. package/dist/angular/ai/index.js +873 -855
  9. package/dist/angular/ai/index.js.map +7 -6
  10. package/dist/angular/index.js +2 -2
  11. package/dist/angular/index.js.map +1 -1
  12. package/dist/angular/server.js +2 -2
  13. package/dist/angular/server.js.map +1 -1
  14. package/dist/build.js +2 -2
  15. package/dist/build.js.map +1 -1
  16. package/dist/index.js +2 -2
  17. package/dist/index.js.map +1 -1
  18. package/dist/react/ai/index.js +25 -25
  19. package/dist/react/ai/index.js.map +6 -6
  20. package/dist/src/ai/client/createRAGStream.d.ts +2 -0
  21. package/dist/src/ai/client/createRAGWorkflow.d.ts +3 -0
  22. package/dist/src/ai/client/index.d.ts +8 -7
  23. package/dist/src/ai/index.d.ts +5 -4
  24. package/dist/src/ai/rag/index.d.ts +2 -2
  25. package/dist/src/angular/ai/ai-rag-stream.service.d.ts +1 -1
  26. package/dist/src/angular/ai/ai-rag-workflow.service.d.ts +33 -0
  27. package/dist/src/angular/ai/index.d.ts +2 -1
  28. package/dist/src/react/ai/index.d.ts +6 -3
  29. package/dist/src/react/ai/useRAG.d.ts +3 -2
  30. package/dist/src/svelte/ai/createRAG.d.ts +5 -4
  31. package/dist/src/svelte/ai/createRAGStream.d.ts +1 -1
  32. package/dist/src/svelte/ai/createRAGStreamProgress.d.ts +1 -1
  33. package/dist/src/svelte/ai/createRAGWorkflow.d.ts +1 -1
  34. package/dist/src/svelte/ai/index.d.ts +4 -2
  35. package/dist/src/vue/ai/index.d.ts +5 -3
  36. package/dist/src/vue/ai/useRAG.d.ts +5 -4
  37. package/dist/src/vue/ai/useRAGStream.d.ts +1 -1
  38. package/dist/src/vue/ai/useRAGStreamProgress.d.ts +1 -1
  39. package/dist/src/vue/ai/useRAGWorkflow.d.ts +1 -1
  40. package/dist/svelte/ai/index.js +22 -22
  41. package/dist/svelte/ai/index.js.map +5 -5
  42. package/dist/vue/ai/index.js +22 -22
  43. package/dist/vue/ai/index.js.map +6 -6
  44. package/package.json +7 -7
  45. package/dist/src/ai/client/createRAGTransport.d.ts +0 -2
  46. package/dist/src/angular/ai/ai-rag-transport.service.d.ts +0 -1
  47. package/dist/src/react/ai/useRAGTransport.d.ts +0 -2
  48. package/dist/src/react/ai/useRAGTransportProgress.d.ts +0 -2
  49. package/dist/src/svelte/ai/createRAGTransport.d.ts +0 -2
  50. package/dist/src/svelte/ai/createRAGTransportProgress.d.ts +0 -2
  51. package/dist/src/vue/ai/useRAGTransport.d.ts +0 -2
  52. package/dist/src/vue/ai/useRAGTransportProgress.d.ts +0 -2
@@ -1836,7 +1836,7 @@ var useRAGChunkPreview = (path) => {
1836
1836
  };
1837
1837
  };
1838
1838
  // src/react/ai/useRAG.ts
1839
- import { useMemo as useMemo13 } from "react";
1839
+ import { useMemo as useMemo14 } from "react";
1840
1840
 
1841
1841
  // src/react/ai/useRAGCitations.ts
1842
1842
  import { useMemo as useMemo2 } from "react";
@@ -2445,6 +2445,9 @@ var useRAGStatus = (path, autoLoad = true) => {
2445
2445
  };
2446
2446
  };
2447
2447
 
2448
+ // src/react/ai/useRAGWorkflow.ts
2449
+ import { useMemo as useMemo13 } from "react";
2450
+
2448
2451
  // src/react/ai/useRAGStream.ts
2449
2452
  import { useCallback as useCallback10, useMemo as useMemo12 } from "react";
2450
2453
  var useRAGStream = (path, conversationId) => {
@@ -2507,6 +2510,16 @@ var useRAGStream = (path, conversationId) => {
2507
2510
  workflow
2508
2511
  };
2509
2512
  };
2513
+
2514
+ // src/react/ai/useRAGWorkflow.ts
2515
+ var useRAGWorkflow = (path, conversationId) => {
2516
+ const stream = useRAGStream(path, conversationId);
2517
+ return useMemo13(() => ({
2518
+ ...stream,
2519
+ state: stream.workflow
2520
+ }), [stream]);
2521
+ };
2522
+
2510
2523
  // src/react/ai/useRAG.ts
2511
2524
  var useRAG = (path, options = {}) => {
2512
2525
  const search = useRAGSearch(path);
@@ -2517,15 +2530,12 @@ var useRAG = (path, options = {}) => {
2517
2530
  const chunkPreview = useRAGChunkPreview(path);
2518
2531
  const evaluate = useRAGEvaluate(path);
2519
2532
  const index = useRAGIndexAdmin(path);
2520
- const transport = useRAGStream(options.transportPath ?? path, options.conversationId);
2521
- const workflow = useMemo13(() => ({
2522
- ...transport,
2523
- state: transport.workflow
2524
- }), [transport]);
2525
- const sources = useRAGSources(transport.messages);
2533
+ const resolvedPath = options.streamPath ?? path;
2534
+ const workflow = useRAGWorkflow(resolvedPath, options.conversationId);
2535
+ const sources = useRAGSources(workflow.messages);
2526
2536
  const citations = useRAGCitations(sources.sources);
2527
- const grounding = useRAGGrounding(transport.latestAssistantMessage?.content ?? "", sources.sources);
2528
- return useMemo13(() => ({
2537
+ const grounding = useRAGGrounding(workflow.latestAssistantMessage?.content ?? "", sources.sources);
2538
+ return useMemo14(() => ({
2529
2539
  chunkPreview,
2530
2540
  citations,
2531
2541
  documents,
@@ -2537,7 +2547,7 @@ var useRAG = (path, options = {}) => {
2537
2547
  search,
2538
2548
  sources,
2539
2549
  status,
2540
- transport,
2550
+ stream: workflow,
2541
2551
  workflow
2542
2552
  }), [
2543
2553
  citations,
@@ -2551,30 +2561,20 @@ var useRAG = (path, options = {}) => {
2551
2561
  search,
2552
2562
  sources,
2553
2563
  status,
2554
- transport,
2555
2564
  workflow
2556
2565
  ]);
2557
2566
  };
2558
2567
  // src/react/ai/useRAGStreamProgress.ts
2559
- import { useMemo as useMemo14 } from "react";
2560
- var useRAGStreamProgress = (params) => useMemo14(() => buildRAGStreamProgress({
2568
+ import { useMemo as useMemo15 } from "react";
2569
+ var useRAGStreamProgress = (params) => useMemo15(() => buildRAGStreamProgress({
2561
2570
  error: params.error,
2562
2571
  isStreaming: params.isStreaming,
2563
2572
  messages: params.messages
2564
2573
  }), [params.error, params.isStreaming, params.messages]);
2565
- // src/react/ai/useRAGWorkflow.ts
2566
- import { useMemo as useMemo15 } from "react";
2567
- var useRAGWorkflow = (path, conversationId) => {
2568
- const transport = useRAGStream(path, conversationId);
2569
- return useMemo15(() => ({
2570
- ...transport,
2571
- state: transport.workflow
2572
- }), [transport]);
2573
- };
2574
2574
  export {
2575
2575
  useRAGWorkflow,
2576
- useRAGStreamProgress as useRAGTransportProgress,
2577
- useRAGStream as useRAGTransport,
2576
+ useRAGStreamProgress,
2577
+ useRAGStream,
2578
2578
  useRAGStatus,
2579
2579
  useRAGSources,
2580
2580
  useRAGSearch,
@@ -952,7 +952,7 @@ var useRAGChunkPreview = (path) => {
952
952
  };
953
953
  };
954
954
  // src/vue/ai/useRAG.ts
955
- import { computed as computed7 } from "vue";
955
+ import { computed as computed8 } from "vue";
956
956
 
957
957
  // src/vue/ai/useRAGCitations.ts
958
958
  import { computed } from "vue";
@@ -2402,6 +2402,9 @@ var useRAGStatus = (path, autoLoad = true) => {
2402
2402
  };
2403
2403
  };
2404
2404
 
2405
+ // src/vue/ai/useRAGWorkflow.ts
2406
+ import { computed as computed7 } from "vue";
2407
+
2405
2408
  // src/vue/ai/useRAGStream.ts
2406
2409
  import { computed as computed6 } from "vue";
2407
2410
 
@@ -2463,6 +2466,17 @@ var useRAGStream = (path, conversationId) => {
2463
2466
  workflow
2464
2467
  };
2465
2468
  };
2469
+
2470
+ // src/vue/ai/useRAGWorkflow.ts
2471
+ var useRAGWorkflow = (path, conversationId) => {
2472
+ const stream = useRAGStream(path, conversationId);
2473
+ const state = computed7(() => stream.workflow.value);
2474
+ return {
2475
+ ...stream,
2476
+ state
2477
+ };
2478
+ };
2479
+
2466
2480
  // src/vue/ai/useRAG.ts
2467
2481
  var useRAG = (path, options = {}) => {
2468
2482
  const search = useRAGSearch(path);
@@ -2473,14 +2487,10 @@ var useRAG = (path, options = {}) => {
2473
2487
  const chunkPreview = useRAGChunkPreview(path);
2474
2488
  const evaluate = useRAGEvaluate(path);
2475
2489
  const index = useRAGIndexAdmin(path);
2476
- const transport = useRAGStream(options.transportPath ?? path, options.conversationId);
2477
- const workflow = {
2478
- ...transport,
2479
- state: computed7(() => transport.workflow.value)
2480
- };
2481
- const sources = useRAGSources(transport.messages);
2490
+ const workflow = useRAGWorkflow(options.streamPath ?? path, options.conversationId);
2491
+ const sources = useRAGSources(workflow.messages);
2482
2492
  const citations = useRAGCitations(sources.sources);
2483
- const grounding = useRAGGrounding(computed7(() => transport.latestAssistantMessage.value?.content ?? ""), sources.sources);
2493
+ const grounding = useRAGGrounding(computed8(() => workflow.latestAssistantMessage.value?.content ?? ""), sources.sources);
2484
2494
  return {
2485
2495
  chunkPreview,
2486
2496
  citations,
@@ -2493,24 +2503,14 @@ var useRAG = (path, options = {}) => {
2493
2503
  search,
2494
2504
  sources,
2495
2505
  status,
2496
- transport,
2506
+ stream: workflow,
2497
2507
  workflow
2498
2508
  };
2499
2509
  };
2500
- // src/vue/ai/useRAGWorkflow.ts
2501
- import { computed as computed8 } from "vue";
2502
- var useRAGWorkflow = (path, conversationId) => {
2503
- const transport = useRAGStream(path, conversationId);
2504
- const state = computed8(() => transport.workflow.value);
2505
- return {
2506
- ...transport,
2507
- state
2508
- };
2509
- };
2510
2510
  export {
2511
2511
  useRAGWorkflow,
2512
- useRAGStreamProgress as useRAGTransportProgress,
2513
- useRAGStream as useRAGTransport,
2512
+ useRAGStreamProgress,
2513
+ useRAGStream,
2514
2514
  useRAGStatus,
2515
2515
  useRAGSources,
2516
2516
  useRAGSearch,