LearnNewsExamplesServices
Frontmatter
id8349
titleMove sync_knowledge_base.mjs to buildScripts/syncKnowledgeBase.mjs
stateClosed
labels
refactoringbuild
assigneestobiu
createdAtJan 6, 2026, 11:47 AM
updatedAtJan 6, 2026, 11:49 AM
githubUrlhttps://github.com/neomjs/neo/issues/8349
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 6, 2026, 11:49 AM

Move sync_knowledge_base.mjs to buildScripts/syncKnowledgeBase.mjs

Closed v11.19.0 refactoringbuild
tobiu
tobiu commented on Jan 6, 2026, 11:47 AM

Move the knowledge base synchronization script from ai/examples/sync_knowledge_base.mjs to buildScripts/syncKnowledgeBase.mjs to better reflect its role as a repository utility rather than just an example.

Tasks:

  1. Rename and move ai/examples/sync_knowledge_base.mjs to buildScripts/syncKnowledgeBase.mjs.
  2. Update the import paths in the moved file to correctly resolve from the new location.
  3. Update the ai:sync-kb script in package.json.
tobiu added the refactoring label on Jan 6, 2026, 11:47 AM
tobiu added the build label on Jan 6, 2026, 11:47 AM
tobiu assigned to @tobiu on Jan 6, 2026, 11:47 AM
tobiu referenced in commit 3fad21c - "Move sync_knowledge_base.mjs to buildScripts/syncKnowledgeBase.mjs #8349" on Jan 6, 2026, 11:48 AM
tobiu
tobiu Jan 6, 2026, 11:48 AM

Input from Gemini 3 Pro:

✦ I have successfully moved the synchronization script to buildScripts/.

Changes Implemented:

  1. Moved: ai/examples/sync_knowledge_base.mjs -> buildScripts/syncKnowledgeBase.mjs.
  2. Updated Imports: Adjusted relative paths in buildScripts/syncKnowledgeBase.mjs to point to the correct src and ai directories.
  3. Updated Config: Modified package.json so the ai:sync-kb script now runs node ./buildScripts/syncKnowledgeBase.mjs.

Verification: Executed npm run ai:sync-kb. The script ran successfully, initializing services, creating the knowledge base file, and performing the embedding process without errors.

The synchronization logic is now correctly categorized as a build utility.

tobiu closed this issue on Jan 6, 2026, 11:49 AM