From 7ba28ada5b0c6537e4bb242198e83c925fe4df83 Mon Sep 17 00:00:00 2001 From: can1357 Date: Sat, 30 May 2026 16:42:58 +0200 Subject: [PATCH] ci(mnemosyne): published pi-mnemosyne to npm via monorepo CI pipeline - Added `@oh-my-pi/pi-mnemosyne` to the catalog and release publish script. - Switched coding-agent dependency from `workspace:*` to the catalog reference. - Added `tsconfig.publish.json` for declaration-only emit on publish. - Included mnemosyne in CI tarball smoke tests alongside other workspace packages. --- package.json | 1 + packages/coding-agent/package.json | 3 ++- packages/mnemosyne/CHANGELOG.md | 7 +++++++ packages/mnemosyne/tsconfig.publish.json | 22 ++++++++++++++++++++++ scripts/ci-release-publish.ts | 1 + scripts/install-tests/run-ci.sh | 6 ++++-- 6 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 packages/mnemosyne/CHANGELOG.md create mode 100644 packages/mnemosyne/tsconfig.publish.json diff --git a/package.json b/package.json index b0ee44612..784711192 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "@oh-my-pi/pi-agent-core": "15.5.15", "@oh-my-pi/pi-ai": "15.5.15", "@oh-my-pi/pi-coding-agent": "15.5.15", + "@oh-my-pi/pi-mnemosyne": "15.5.15", "@oh-my-pi/pi-natives": "15.5.15", "@oh-my-pi/pi-tui": "15.5.15", "@oh-my-pi/pi-utils": "15.5.15", diff --git a/packages/coding-agent/package.json b/packages/coding-agent/package.json index 53d5ac2c1..03deb182d 100644 --- a/packages/coding-agent/package.json +++ b/packages/coding-agent/package.json @@ -46,12 +46,13 @@ "dependencies": { "@agentclientprotocol/sdk": "catalog:", "@babel/parser": "catalog:", + "@huggingface/transformers": "catalog:", "@mozilla/readability": "catalog:", "@oh-my-pi/hashline": "catalog:", "@oh-my-pi/omp-stats": "catalog:", "@oh-my-pi/pi-agent-core": "catalog:", "@oh-my-pi/pi-ai": "catalog:", - "@oh-my-pi/pi-mnemosyne": "workspace:*", + "@oh-my-pi/pi-mnemosyne": "catalog:", "@oh-my-pi/pi-natives": "catalog:", "@oh-my-pi/pi-tui": "catalog:", "@oh-my-pi/pi-utils": "catalog:", diff --git a/packages/mnemosyne/CHANGELOG.md b/packages/mnemosyne/CHANGELOG.md new file mode 100644 index 000000000..5c5f2bb09 --- /dev/null +++ b/packages/mnemosyne/CHANGELOG.md @@ -0,0 +1,7 @@ +# Changelog + +## [Unreleased] + +### Added + +- Published `@oh-my-pi/pi-mnemosyne` to npm: the local SQLite memory engine is now built, checked, tested, and released through the monorepo CI pipeline alongside the other workspace packages. diff --git a/packages/mnemosyne/tsconfig.publish.json b/packages/mnemosyne/tsconfig.publish.json new file mode 100644 index 000000000..61f5ee4c6 --- /dev/null +++ b/packages/mnemosyne/tsconfig.publish.json @@ -0,0 +1,22 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "noEmit": false, + "emitDeclarationOnly": true, + "declaration": true, + "declarationMap": false, + "sourceMap": false, + "inlineSources": false, + "rootDir": "src", + "outDir": "dist/types", + "noCheck": true + }, + "include": [ + "src" + ], + "exclude": [ + "dist", + "node_modules", + "test" + ] +} diff --git a/scripts/ci-release-publish.ts b/scripts/ci-release-publish.ts index 51291ed70..2cca43115 100644 --- a/scripts/ci-release-publish.ts +++ b/scripts/ci-release-publish.ts @@ -47,6 +47,7 @@ const packages: PublishPackage[] = [ { dir: "packages/natives", kind: "native" }, { dir: "packages/tui", kind: "typescript" }, { dir: "packages/hashline", kind: "typescript" }, + { dir: "packages/mnemosyne", kind: "typescript" }, { dir: "packages/stats", kind: "typescript", diff --git a/scripts/install-tests/run-ci.sh b/scripts/install-tests/run-ci.sh index f83e8aeba..853723ba3 100755 --- a/scripts/install-tests/run-ci.sh +++ b/scripts/install-tests/run-ci.sh @@ -66,7 +66,7 @@ SOURCE_BUN_HOME="$WORK_DIR/bun-source" section "Tarball install smoke" TARBALL_DIR="$WORK_DIR/tarballs" mkdir -p "$TARBALL_DIR" -for pkg in utils natives hashline ai agent tui stats coding-agent; do +for pkg in utils natives hashline ai mnemosyne agent tui stats coding-agent; do ( cd "$ROOT_DIR/packages/$pkg" bun pm pack --destination "$TARBALL_DIR" --quiet >/dev/null @@ -77,6 +77,7 @@ utils_tgz="$(find_tarball "$TARBALL_DIR"/oh-my-pi-pi-utils-*.tgz)" natives_tgz="$(find_tarball "$TARBALL_DIR"/oh-my-pi-pi-natives-*.tgz)" hashline_tgz="$(find_tarball "$TARBALL_DIR"/oh-my-pi-hashline-*.tgz)" ai_tgz="$(find_tarball "$TARBALL_DIR"/oh-my-pi-pi-ai-*.tgz)" +mnemosyne_tgz="$(find_tarball "$TARBALL_DIR"/oh-my-pi-pi-mnemosyne-*.tgz)" agent_tgz="$(find_tarball "$TARBALL_DIR"/oh-my-pi-pi-agent-core-*.tgz)" tui_tgz="$(find_tarball "$TARBALL_DIR"/oh-my-pi-pi-tui-*.tgz)" stats_tgz="$(find_tarball "$TARBALL_DIR"/oh-my-pi-omp-stats-*.tgz)" @@ -97,6 +98,7 @@ mkdir -p "$TARBALL_APP_DIR" '@oh-my-pi/pi-natives': '$natives_tgz', '@oh-my-pi/hashline': '$hashline_tgz', '@oh-my-pi/pi-ai': '$ai_tgz', + '@oh-my-pi/pi-mnemosyne': '$mnemosyne_tgz', '@oh-my-pi/pi-agent-core': '$agent_tgz', '@oh-my-pi/pi-tui': '$tui_tgz', '@oh-my-pi/omp-stats': '$stats_tgz', @@ -105,7 +107,7 @@ mkdir -p "$TARBALL_APP_DIR" require('fs').writeFileSync('package.json', JSON.stringify(pkg, null, 2)); " - bun add "$utils_tgz" "$natives_tgz" "$hashline_tgz" "$ai_tgz" "$agent_tgz" "$tui_tgz" "$stats_tgz" "$coding_agent_tgz" + bun add "$utils_tgz" "$natives_tgz" "$hashline_tgz" "$ai_tgz" "$mnemosyne_tgz" "$agent_tgz" "$tui_tgz" "$stats_tgz" "$coding_agent_tgz" smoke_cli ./node_modules/.bin/omp )