Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
2ed904f
fix(llm): propagate opts.op through facade to providers (#2308)
Aug 29, 2026
e9e4f70
fix(llm): propagate opts.op through facade to providers (#2309)
Sep 3, 2026
4fb4fa0
test(plugin): cover native stream op propagation
Sep 3, 2026
5dc5773
merge: bring fix-20260902-local-plugin into fix-20260916-local-plugin
Sep 16, 2026
77c563c
fix(plugin): stop skill verification retry loops
Sep 16, 2026
dc61f2e
fix(plugin): bound L3 clusters and retry failures
Sep 16, 2026
8c47b6d
fix(plugin): harden L3 clustering retries
Sep 16, 2026
be07f5a
fix(plugin): harden memory evolution and Hermes install
Sep 18, 2026
cb5625b
Merge remote-tracking branch 'origin/main' into fix-20260916-local-pl…
Sep 18, 2026
6a83d36
fix(plugin): harden multilingual L2 and L3 evolution
Sep 21, 2026
0f3265a
fix(plugin): wire skill evolver model into evolution
Sep 21, 2026
12acdad
fix(plugin): harden memory evolution and Hermes installation (#2384)
syzsunshine219 Sep 21, 2026
a924849
ci: extend npm release visibility window
MLittleprince Sep 21, 2026
faf994e
ci: extend npm release visibility window to ten minutes
MLittleprince Sep 21, 2026
1c0fb1d
ci: retrigger pull request review
MLittleprince Sep 21, 2026
a7367d0
ci: extend local plugin npm visibility timeout (#2400)
syzsunshine219 Sep 22, 2026
a318a6e
docs: align Chinese contribution links with the English docs
MatthewZhuang Sep 22, 2026
568e9a1
fix: recall playground memories from every searched cube (#2436)
Wang-Daoji Sep 29, 2026
aba1391
fix: skip vision calls for non-sendable image URLs
Wang-Daoji Oct 8, 2026
1827738
fix: skip vision calls for non-sendable image URLs (#2463)
syzsunshine219 Oct 8, 2026
1729844
Decouple knowledge memories from graph-edge relationships
Oct 10, 2026
8511502
Decouple knowledge memories from graph-edge relationships (#2479)
syzsunshine219 Oct 10, 2026
721416d
fix(scheduler): align enhanced_mem_ids with filtered mem_group in mem…
keeponlight Oct 17, 2026
9b4fea3
fix(llm): prevent IndexError when reasoning items are absent in respo…
keeponlight Oct 17, 2026
fe70153
fix(memory): decode JSON-encoded internal_info metadata
linsheng-li Oct 20, 2026
ab57487
fix(plugin): use producer-owned sources for DSH V4 messages
endxxxx Oct 20, 2026
5a12a4d
fix(plugin): validate imports and expose ownership previews
endxxxx Oct 20, 2026
79676ee
fix(plugin): configure and report local model loading
endxxxx Oct 20, 2026
559b62c
feat(plugin): expose import previews and local model settings
endxxxx Oct 20, 2026
8c792a5
test(plugin): enforce DSH V4 message admission regressions
endxxxx Oct 20, 2026
c8aed14
feat: align PostgreSQL graph storage with current v2.0.36 APIs (#2531)
Zyntrael Oct 21, 2026
9b35357
fix(scheduler): initialize RabbitMQ IO thread before shutdown
linsheng-li Oct 21, 2026
f6266be
fix: pin certifi 2026.10.19 to drop compromised eMudhra roots (#2536)
syzsunshine219 Oct 23, 2026
27a0143
fix: pin certifi 2026.10.19 to drop compromised eMudhra roots
Oct 23, 2026
adcb9f2
fix: pin certifi 2026.10.19 to drop compromised eMudhra roots (#2539)
syzsunshine219 Oct 23, 2026
837d42e
Merge branch 'dev-v2.0.36' into fix/rabbitmq-shutdown-thread-init
endxxxx Oct 24, 2026
c0cb83f
Merge branch 'dev-v2.0.36' into fix/mem-read-handler-zip-mem-group
endxxxx Oct 24, 2026
66f30bc
Merge branch 'dev-v2.0.36' into fix/decode-internal-info-json
endxxxx Oct 24, 2026
734fc93
Merge branch 'dev-v2.0.36' into fix/openai-responses-empty-reasoning
endxxxx Oct 24, 2026
4701866
fix(scheduler): align enhanced_mem_ids with filtered mem_group in mem…
endxxxx Oct 24, 2026
5fa7293
fix(llm): prevent IndexError when reasoning items are absent in respo…
endxxxx Oct 24, 2026
4bfddc8
fix(memory): decode JSON-encoded internal_info metadata (#2517)
endxxxx Oct 24, 2026
629bf7f
fix(plugin): isolate Windows local embedding native libraries
endxxxx Oct 26, 2026
e38af05
Merge branch 'main' into codex/fix-local-plugin-dsh-2495
endxxxx Oct 27, 2026
1e3d575
fix(plugin): preserve world structures and validate trace parents
endxxxx Oct 27, 2026
f232c4f
fix(plugin): keep DSH memory ownership independent of presets
endxxxx Oct 27, 2026
af0108d
fix(api): strip Bearer scheme so keyed requests reach per-key rate-li…
RerankerGuo Oct 13, 2026
981130c
fix(api): enforce canonical hex format on validate_key_format (#2427)
RerankerGuo Oct 13, 2026
c50bc8a
Merge branch 'dev-v2.0.36' into fix/rabbitmq-shutdown-thread-init
endxxxx Oct 28, 2026
04bfa63
fix(plugin)!: adopt SQLite 13 prebuilds and require Node 22
endxxxx Oct 29, 2026
4094d8e
fix(api): strip Bearer scheme so keyed requests reach per-key rate-li…
endxxxx Oct 29, 2026
db41eb5
fix(api): enforce canonical hex format on validate_key_format (#2427)…
endxxxx Oct 29, 2026
c2e2acd
Merge branch 'dev-v2.0.36' into fix/rabbitmq-shutdown-thread-init
endxxxx Oct 29, 2026
e85b9db
fix(scheduler): initialize RabbitMQ IO thread before shutdown (#2532)
syzsunshine219 Oct 29, 2026
64388b5
fix(plugin): isolate Windows DLLs and resolve DSH memory issues (#2519)
syzsunshine219 Oct 29, 2026
78706b0
fix(plugin): support validated DSH 0.2 preview APIs
endxxxx Oct 29, 2026
faec48d
fix: preserve identifier types in PolarDB lightweight recall
endxxxx Oct 29, 2026
b1a7d5f
refactor: reuse lightweight identifier field set
endxxxx Oct 29, 2026
0e58d0e
fix: preserve identifier types in PolarDB lightweight recall (#2551)
syzsunshine219 Oct 29, 2026
7f64e49
Update README.md - GitHub Trending Badge
angarchie Nov 2, 2026
44a87f7
Update README.md - GitHub Trending Badge (#2557)
syzsunshine219 Nov 2, 2026
d326a64
fix(plugin): support validated DSH 0.2 preview APIs (#2549)
syzsunshine219 Nov 4, 2026
755e8eb
chore: change version number to v2.0.36
endxxxx Nov 9, 2026
a3944ac
chore: change version number to v2.0.36 (#2567)
syzsunshine219 Nov 9, 2026
3a16e5f
Release v2.0.36 (#2568)
syzsunshine219 Nov 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/scripts/prepare-memos-release.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ test("legacy standalone local-plugin publisher requires an extra non-dry-run con
assert.match(workflow, /ALLOW_STAGED_TAG_BEFORE_NPM/);
assert.match(workflow, /audit-local-plugin-package\.mjs/);
assert.match(workflow, /wait-for-local-plugin-npm-release\.test\.mjs/);
assert.match(workflow, /NPM_VISIBILITY_TIMEOUT_SECONDS: "150"/);
assert.match(workflow, /NPM_VISIBILITY_TIMEOUT_SECONDS: "600"/);
assert.match(workflow, /FORCE_PACKAGE_ONLY_RELEASE: \$\{\{ inputs\.tag != 'latest' \|\| contains\(inputs\.version, '-'\) \}\}/);
assert.match(workflow, /if \[ -n "\$\{DOCS_SYNC_MODE\}" \]; then/);
assert.doesNotMatch(workflow, /EVENT_NAME: \$\{\{ github\.event_name \}\}/);
Expand Down
4 changes: 2 additions & 2 deletions .github/scripts/publish-local-plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if [ ! -s "${RELEASE_TARBALL}" ]; then
exit 2
fi

npm_visibility_timeout_seconds="${NPM_VISIBILITY_TIMEOUT_SECONDS:-150}"
npm_visibility_timeout_seconds="${NPM_VISIBILITY_TIMEOUT_SECONDS:-600}"
npm_visibility_interval_seconds="${NPM_VISIBILITY_INTERVAL_SECONDS:-10}"
npm_visibility_request_timeout_seconds="${NPM_VISIBILITY_REQUEST_TIMEOUT_SECONDS:-8}"
npm_registry_url="https://registry.npmjs.org"
Expand Down Expand Up @@ -336,7 +336,7 @@ if npm_version_exists; then
published_version_visible=true
published_version_preexisting=true
if [ "${RECOVER_EXISTING_NPM_RELEASE:-false}" != "true" ]; then
echo "::error::${PACKAGE_NAME}@${RELEASE_VERSION} already exists. Normal releases require an unused version; enable recovery only after release-owner verification of a partial failure."
echo "::error::${PACKAGE_NAME}@${RELEASE_VERSION} already exists. Normal releases require an unused version; inspect npm first and use explicit recovery only after release-owner verification of a partial failure."
exit 1
fi
if remote_tag_exists "${RELEASE_TAG}"; then
Expand Down
6 changes: 4 additions & 2 deletions .github/scripts/publish-local-plugin.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ if [[ "\${1:-}" == *"wait-for-local-plugin-npm-release.mjs" ]]; then
printf '%s' "\${count}" > "\${increment_file}"
case "\${NPM_MOCK_SCENARIO}" in
always-missing|publish-fails)
echo "::error::npm release was not fully visible within 150s"
echo "::error::npm release was not fully visible within \${NPM_VISIBILITY_TIMEOUT_SECONDS:-600}s"
exit 1
;;
integrity-mismatch)
Expand All @@ -130,7 +130,7 @@ if [[ "\${1:-}" == *"wait-for-local-plugin-npm-release.mjs" ]]; then
;;
*)
if [ "\${NPM_MOCK_DIST_TAG_VERSION:-\${RELEASE_VERSION}}" != "\${RELEASE_VERSION}" ]; then
echo "::error::npm release was not fully visible within 150s: dist-tag \${NPM_DIST_TAG} did not point to \${RELEASE_VERSION}"
echo "::error::npm release was not fully visible within \${NPM_VISIBILITY_TIMEOUT_SECONDS:-600}s: dist-tag \${NPM_DIST_TAG} did not point to \${RELEASE_VERSION}"
exit 1
fi
echo '{"ok":true,"attempts":3}'
Expand Down Expand Up @@ -330,6 +330,7 @@ test("stops before tag creation when publish succeeds but visibility remains del
assert.equal(result.metadataWaitCount, 1);
assert.equal(result.packCount, 0);
assert.match(result.stdout + result.stderr, /Refusing to issue a second publish request/);
assert.match(result.stdout + result.stderr, /within 600s/);
});

test("allows npm publish after a staged paired Draft Release only in npm-only phase", () => {
Expand Down Expand Up @@ -461,4 +462,5 @@ test("rejects an already-used npm version outside explicit recovery", () => {
assert.equal(result.publishCount, 0);
assert.equal(result.packCount, 0);
assert.match(result.stdout + result.stderr, /Normal releases require an unused version/);
assert.match(result.stdout + result.stderr, /inspect npm first/);
});
10 changes: 8 additions & 2 deletions .github/scripts/wait-for-local-plugin-npm-release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { readFileSync } from "node:fs";
import { pathToFileURL } from "node:url";

const INTEGRITY_PATTERN = /^sha512-[A-Za-z0-9+/]+={0,2}$/;
export const DEFAULT_NPM_VISIBILITY_TIMEOUT_SECONDS = 600;

function clean(value) {
return String(value ?? "").trim();
Expand Down Expand Up @@ -103,7 +104,7 @@ export async function waitForNpmReleaseVisibility(
distTag,
expectedIntegrity,
registryUrl = "https://registry.npmjs.org",
timeoutMs = 150_000,
timeoutMs = DEFAULT_NPM_VISIBILITY_TIMEOUT_SECONDS * 1000,
intervalMs = 10_000,
requestTimeoutMs = 8_000,
} = {},
Expand Down Expand Up @@ -208,7 +209,12 @@ export async function run(env = process.env) {
distTag: env.NPM_DIST_TAG,
expectedIntegrity,
registryUrl: env.NPM_CONFIG_REGISTRY || "https://registry.npmjs.org",
timeoutMs: positiveInteger(env.NPM_VISIBILITY_TIMEOUT_SECONDS, 150, "timeout") * 1000,
timeoutMs:
positiveInteger(
env.NPM_VISIBILITY_TIMEOUT_SECONDS,
DEFAULT_NPM_VISIBILITY_TIMEOUT_SECONDS,
"timeout",
) * 1000,
intervalMs: positiveInteger(env.NPM_VISIBILITY_INTERVAL_SECONDS, 10, "interval") * 1000,
requestTimeoutMs:
positiveInteger(env.NPM_VISIBILITY_REQUEST_TIMEOUT_SECONDS, 8, "request timeout") * 1000,
Expand Down
33 changes: 33 additions & 0 deletions .github/scripts/wait-for-local-plugin-npm-release.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { join } from "node:path";
import test from "node:test";

import {
DEFAULT_NPM_VISIBILITY_TIMEOUT_SECONDS,
inspectNpmReleaseVisibility,
npmPackumentUrl,
tarballIntegrity,
Expand Down Expand Up @@ -224,3 +225,35 @@ test("uses a hard deadline for an unavailable registry version", async () => {
assert.equal(clock, 30_000);
assert.equal(attempts, 3);
});

test("uses the ten-minute default visibility deadline", async () => {
let clock = 0;
let attempts = 0;
await assert.rejects(
waitForNpmReleaseVisibility(
{
packageName: "@memtensor/memos-local-plugin",
version: "2.0.14",
distTag: "latest",
expectedIntegrity: integrity,
intervalMs: 10_000,
requestTimeoutMs: 1_000,
},
{
fetchImpl: async () => {
attempts += 1;
return response({}, 404);
},
sleep: async (milliseconds) => {
clock += milliseconds;
},
now: () => clock,
log: () => {},
},
),
/not fully visible within 600s/,
);
assert.equal(DEFAULT_NPM_VISIBILITY_TIMEOUT_SECONDS, 600);
assert.equal(clock, 600_000);
assert.equal(attempts, 60);
});
55 changes: 55 additions & 0 deletions .github/workflows/memos-local-plugin-install-contract.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Local plugin installation contract

on:
pull_request:
paths:
- 'apps/memos-local-plugin/**'
- '.github/workflows/memos-local-plugin-install-contract.yml'
workflow_dispatch:

permissions:
contents: read

jobs:
clean-install:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: ['22', '24']
manager: [npm, pnpm]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
working-directory: apps/memos-local-plugin
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Pin installation tools
run: |
npm install --global npm@11.17.0 pnpm@11.7.0 --ignore-scripts --no-audit --no-fund
test "$(npm --version)" = 11.17.0
test "$(pnpm --version)" = 11.7.0
- name: Verify reviewed lock metadata
run: |
npm run lock:check
npm run verify:script-policy
- name: Clean npm installation
if: matrix.manager == 'npm'
run: npm ci --no-audit --no-fund
- name: Frozen pnpm installation
if: matrix.manager == 'pnpm'
run: pnpm install --frozen-lockfile
- name: SQLite and CPU ONNX runtime smoke
run: node scripts/verify-native-runtime.cjs
- name: Type check and build package
run: |
npm run lint
npm run build:package
- name: Check runtime and lock contracts
run: |
npm exec -- vitest run tests/unit/install/sqlite-install-contract.test.ts
git diff --exit-code -- package.json package-lock.json pnpm-lock.yaml
30 changes: 12 additions & 18 deletions .github/workflows/memos-local-plugin-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on:
type: boolean
default: true
recover_existing_npm_release:
description: "Allow reconstructing a missing tag for an existing npm version. Keep false for normal releases."
description: "Recover a verified partial publish only; keep false for normal releases."
required: true
type: boolean
default: false
Expand Down Expand Up @@ -388,19 +388,17 @@ jobs:

- name: Install dependencies
shell: bash
run: bash ../../.github/scripts/retry.sh --label "npm ci" -- npm ci

- name: Rebuild for x64 under Rosetta (darwin-x64 only)
if: matrix.platform == 'darwin-x64'
shell: bash
run: bash ../../.github/scripts/retry.sh --label "npm rebuild better-sqlite3 under Rosetta" -- arch -x86_64 npm rebuild better-sqlite3
run: |
npm install --global npm@11.17.0 --ignore-scripts --no-audit --no-fund
npm run lock:check
bash ../../.github/scripts/retry.sh --label "npm ci" -- npm ci

- name: Collect prebuild
shell: bash
run: |
bash ../../.github/scripts/retry.sh --label "collect ${{ matrix.platform }} prebuild" -- bash -euo pipefail -c '
mkdir -p prebuilds/${{ matrix.platform }}
cp node_modules/better-sqlite3/build/Release/better_sqlite3.node prebuilds/${{ matrix.platform }}/
cp node_modules/better-sqlite3/prebuilds/${{ matrix.platform }}.node prebuilds/${{ matrix.platform }}/better_sqlite3.node
'

- name: Upload prebuild artifact
Expand Down Expand Up @@ -492,16 +490,12 @@ jobs:
find . -name "*.node" -exec ls -lh {} \;
'

- name: Install dependencies (skip native build)
run: bash ../../.github/scripts/retry.sh --label "npm ci --ignore-scripts" -- npm ci --ignore-scripts

- name: Install Linux sqlite binding for validation
- name: Install dependencies with reviewed scripts
run: |
bash ../../.github/scripts/retry.sh --label "install linux sqlite binding for validation" -- bash -euo pipefail -c '
test -s prebuilds/linux-x64/better_sqlite3.node
mkdir -p node_modules/better-sqlite3/build/Release
cp prebuilds/linux-x64/better_sqlite3.node node_modules/better-sqlite3/build/Release/better_sqlite3.node
'
npm install --global npm@11.17.0 --ignore-scripts --no-audit --no-fund
npm run lock:check
bash ../../.github/scripts/retry.sh --label "npm ci" -- npm ci
npm run verify:native

- name: Generate telemetry credentials for a real publish
if: ${{ inputs.dry_run != true && (inputs.publish_phase || 'full') != 'stage_release' }}
Expand Down Expand Up @@ -799,7 +793,7 @@ jobs:
NPM_DIST_TAG: ${{ inputs.tag }}
RECOVER_EXISTING_NPM_RELEASE: ${{ inputs.recover_existing_npm_release }}
RELEASE_METADATA_STATE: ${{ steps.release_state.outputs.state }}
NPM_VISIBILITY_TIMEOUT_SECONDS: "150"
NPM_VISIBILITY_TIMEOUT_SECONDS: "600"
NPM_VISIBILITY_INTERVAL_SECONDS: "10"
NPM_VISIBILITY_REQUEST_TIMEOUT_SECONDS: "8"
ALLOW_STAGED_TAG_BEFORE_NPM: ${{ (inputs.publish_phase || 'full') == 'publish_npm_only' && 'true' || 'false' }}
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
<strong>Give your Agent persistent memory and the ability to grow.</strong><br/>
</p>

<p align="center">
<a href="https://trendshift.io/repositories/18526?utm_source=repository-badge&amp;utm_medium=badge&amp;utm_campaign=badge-repository-18526" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/repositories/18526" alt="MemTensor%2FMemOS | Trendshift" width="250" height="55"/></a>
</p>

<p align="center">
<strong>English</strong> | <a href="README_ZH.md">中文</a>
</p>
Expand Down
2 changes: 2 additions & 0 deletions apps/memos-local-plugin/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
engine-strict=true
strict-allow-scripts=true
9 changes: 9 additions & 0 deletions apps/memos-local-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ for the full per-commit history use `git log` or the GitHub releases page.

## Index

- Unreleased — Admit DSH `0.1.7-rc.2`, `0.2.0-rc.2`, and `0.2.1-rc.2/rc.3`
through explicit, bounded optional peer ranges; retain the `2.0.21` V4
producer-owned message sources. Stop importing the moved `JsonValue` type
from `dsh-tools`, align the development host stack to `0.2.1-rc.3`, and
synchronize both package-manager lockfiles. Add an isolated compile/build/
adapter-test matrix with an installable `0.1.0-rc.6` legacy baseline; the
unavailable `0.1.0-rc.5` core packages are no longer advertised. npm `2.0.21`
still has the old startup version restriction until a new release ships.
Reinstall released packages instead of carrying hand-edited `dist/` patches.
- `2.0.16` (unreleased) — Add the out-of-tree DeepSeek Harness Cordis
bundle with capture, six memory tools, DSH profile-aware storage, and one
automatic recall for every accepted, non-empty direct-user turn. Same-turn
Expand Down
Loading
Loading