mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-11-14 09:01:45 +00:00
Merge 2e444ff8cd into 17eab43cd4
This commit is contained in:
commit
d4e6fccf0d
1 changed files with 5 additions and 2 deletions
|
|
@ -32,9 +32,12 @@ export function register(deps: ToolDeps) {
|
|||
const effectiveTag = await deps.resolveContainerTag()
|
||||
const client = deps.getClient()
|
||||
const document = await client.getDocument(args.documentId)
|
||||
const docTags = document.containerTags
|
||||
const docTags = Array.isArray(document.memoryEntries)
|
||||
? document.memoryEntries
|
||||
.map((entry: any) => entry.spaceContainerTag)
|
||||
.filter(Boolean)
|
||||
: []
|
||||
if (
|
||||
Array.isArray(docTags) &&
|
||||
docTags.length > 0 &&
|
||||
!docTags.includes(effectiveTag)
|
||||
) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue