Rename repo-memory runtime artifacts

This commit is contained in:
2026-03-20 15:07:38 +08:00
parent 4a324d841e
commit 4f3b4a2b67
10 changed files with 54 additions and 54 deletions
@@ -9,7 +9,7 @@ import (
"strings"
"time"
"ai-workflow-skill/packages/repo-memory-runtime/internal/brief"
"ai-workflow-skill/packages/repo-memory-runtime/internal/documents"
_ "github.com/mattn/go-sqlite3"
)
@@ -421,7 +421,7 @@ func (s *Store) UpsertEntry(ctx context.Context, in EntryInput) (int64, error) {
return entryID, tx.Commit()
}
func (s *Store) ImportDocument(ctx context.Context, doc brief.Document, repoState RepoState) error {
func (s *Store) ImportDocument(ctx context.Context, doc documents.Document, repoState RepoState) error {
repoState.RootPath = doc.RepoPath
if _, err := s.UpsertRepo(ctx, repoState); err != nil {
return err
@@ -759,7 +759,7 @@ func classifyImportedKind(docKind, heading string) string {
return "term"
case "playbooks":
return "entry"
case "repo-brief":
case "repo-memory", "repo-brief":
switch {
case strings.Contains(lowerHeading, "module"):
return "module"