@arbidocs/react 0.3.138 → 0.3.139
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/index.cjs +26 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -21
- package/dist/index.d.ts +27 -21
- package/dist/index.js +27 -16
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -594,7 +594,7 @@ var arbiQueryKeys = {
|
|
|
594
594
|
sessions: () => ["arbi", "sessions"],
|
|
595
595
|
health: () => ["arbi", "health"],
|
|
596
596
|
tasks: () => ["arbi", "tasks"],
|
|
597
|
-
|
|
597
|
+
notes: (workspaceId) => ["arbi", "notes", workspaceId],
|
|
598
598
|
configs: () => ["arbi", "configs"],
|
|
599
599
|
activity: () => ["arbi", "activity"],
|
|
600
600
|
projects: () => ["arbi", "projects"],
|
|
@@ -699,8 +699,8 @@ function useTasks(options) {
|
|
|
699
699
|
function useMemories(workspaceId, options) {
|
|
700
700
|
const arbi = chunkZMTLGO3K_cjs.useArbi();
|
|
701
701
|
return reactQuery.useQuery({
|
|
702
|
-
queryKey: arbiQueryKeys.
|
|
703
|
-
queryFn: () => arbi.
|
|
702
|
+
queryKey: arbiQueryKeys.notes(workspaceId ?? ""),
|
|
703
|
+
queryFn: () => arbi.notes.list({ pinnedOnly: options?.pinnedOnly }),
|
|
704
704
|
enabled: (options?.enabled ?? true) && !!workspaceId && arbi.hasWorkspace
|
|
705
705
|
});
|
|
706
706
|
}
|
|
@@ -2553,18 +2553,15 @@ function DocumentReview({
|
|
|
2553
2553
|
const list = [];
|
|
2554
2554
|
const chunkTag = /* @__PURE__ */ new Map();
|
|
2555
2555
|
for (const dt of doc?.doctags ?? []) {
|
|
2556
|
-
const
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
});
|
|
2566
|
-
for (const cid of chunkIds) if (!chunkTag.has(cid)) chunkTag.set(cid, dt.tag_ext_id);
|
|
2567
|
-
}
|
|
2556
|
+
const chunkIds = dt.citations?.passages?.map((p) => p.chunk_id) ?? [];
|
|
2557
|
+
if (chunkIds.length === 0) continue;
|
|
2558
|
+
list.push({
|
|
2559
|
+
key: dt.tag_ext_id,
|
|
2560
|
+
tagExtId: dt.tag_ext_id,
|
|
2561
|
+
statement: dt.note ?? "",
|
|
2562
|
+
chunkIds
|
|
2563
|
+
});
|
|
2564
|
+
for (const cid of chunkIds) if (!chunkTag.has(cid)) chunkTag.set(cid, dt.tag_ext_id);
|
|
2568
2565
|
}
|
|
2569
2566
|
return { findings: list, chunkToTag: chunkTag };
|
|
2570
2567
|
}, [doc?.doctags]);
|
|
@@ -4643,6 +4640,20 @@ var ENTITY_MAPPINGS = {
|
|
|
4643
4640
|
NEW: lucideReact.StickyNote
|
|
4644
4641
|
}
|
|
4645
4642
|
},
|
|
4643
|
+
// Workspace knowledge the assistant retains and recalls — durable free text,
|
|
4644
|
+
// optionally grounded in source passages. Distinct from ANNOTATION, which is
|
|
4645
|
+
// attached TO a document field; a NOTE is workspace-scoped and stands alone.
|
|
4646
|
+
// Stored server-side as `memories` (mem-*); "Note" is the user-facing name.
|
|
4647
|
+
NOTE: {
|
|
4648
|
+
NAMES: {
|
|
4649
|
+
SINGULAR: "Note",
|
|
4650
|
+
PLURAL: "Notes"
|
|
4651
|
+
},
|
|
4652
|
+
ICONS: {
|
|
4653
|
+
DEFAULT: lucideReact.NotebookText,
|
|
4654
|
+
NEW: lucideReact.NotebookPen
|
|
4655
|
+
}
|
|
4656
|
+
},
|
|
4646
4657
|
USER: {
|
|
4647
4658
|
NAMES: {
|
|
4648
4659
|
SINGULAR: "User",
|