Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
Python agent-contextagent-memoryagent-pluginsagentic-ragcontext-databasedsh-pluginknowledge-basememorymemory-managementself-evolvingvector-database
fix(installer): ask openviking.ai for the release to install (#5487)
t0sakif20b4baefecf
diff --git a/examples/memory-plugin-shared/README.md b/examples/memory-plugin-shared/README.mdindex 05af23909..a891464b4 100644--- a/examples/memory-plugin-shared/README.md+++ b/examples/memory-plugin-shared/README.md@@ -35,7 +35,7 @@ Everything comes from the documentation site, which serves the downloads under `- Cursor, TRAE, TRAE CN, ZCode, Kimi Code, OpenCode and pi install files from the plugin bundle `memory-plugin-marketplace.zip`, downloaded at most once per run into `~/.openviking/memory-plugin-marketplace`. They update when the installer runs again.- dsh installs `@openviking/dsh-memory-plugin` from npm through `dsh plugin add`.-After the confirmation the installer runs a version check: it asks `https://openviking.net/install/v1/<harness>.json` which release to install, once per selected harness. `OPENVIKING_SKIP_VERSION_CHECK=1` skips the check and installs the latest release, which is also what happens when the check fails. The answer names one download location, and the installer reads the same paths from the one it is using. When the answer names a checksum, the bundle is verified against it; the docs site holds the latest release only and publishes none, so there the answer names the version that is installed.+After the confirmation the installer runs a version check: it asks `https://openviking.ai/install/v1/<harness>.json` which release to install, once per selected harness. `OPENVIKING_SKIP_VERSION_CHECK=1` skips the check and installs the latest release, which is also what happens when the check fails. The answer names one download location, and the installer reads the same paths from the one it is using. When the answer names a checksum, the bundle is verified against it; the docs site holds the latest release only and publishes none, so there the answer names the version that is installed.Run from a repository checkout, the installer uses that checkout's plugins (`--source dev`) and downloads nothing from the release; `--source archive` or `--dist tos` installs the release instead. `--dist github`, `--source remote` and `OPENVIKING_REPO_URL` / `OPENVIKING_REPO_REF` / `OPENVIKING_REPO_BRANCH` are accepted and ignored with a notice; to install a branch, run `install.sh` from a checkout of it.diff --git a/examples/memory-plugin-shared/bootstrap.sh b/examples/memory-plugin-shared/bootstrap.shindex 6685ba17d..883375d3e 100755--- a/examples/memory-plugin-shared/bootstrap.sh+++ b/examples/memory-plugin-shared/bootstrap.sh@@ -48,10 +48,9 @@# 3. Runs it with bash as `install.sh --dist tos [--harness <harness>] <your arguments>`,# reading input from the terminal, then deletes the temp directory and# exits with the installer's status.-# The installer's own header lists the files it writes and the hosts it-# contacts. It asks https://openviking.net/install/v1/<harness>.json which-# release to install, also when this script came from openviking.ai;-# OPENVIKING_SKIP_VERSION_CHECK=1 skips the check and installs the latest release.+# The installer's own header lists the files it writes, the hosts it contacts+# and the version check it makes; OPENVIKING_SKIP_VERSION_CHECK=1 skips that+# check and installs the latest release.## bootstrap-version: 1@@ -109,7 +108,6 @@ main() {fetch_installer || return 1export OPENVIKING_DOWNLOAD_BASE="$base"- export OPENVIKING_INSTALL_SITE="${OPENVIKING_INSTALL_SITE:-https://openviking.net}"export OPENVIKING_INSTALLER_REEXEC=0if [ -n "$harness" ]; thenset -- --harness "$harness" "$@"diff --git a/examples/memory-plugin-shared/bootstrap.test.mjs b/examples/memory-plugin-shared/bootstrap.test.mjsindex 7dcbf9d2b..87732d466 100644--- a/examples/memory-plugin-shared/bootstrap.test.mjs+++ b/examples/memory-plugin-shared/bootstrap.test.mjs@@ -78,7 +78,7 @@ test("passes the user's arguments through unchanged after --dist tos", async ()assert.deepEqual(argsOf(result.stdout), ["--dist", "tos", "--yes", "--url", "http://127.0.0.1:1933", "--api-key", "key with spaces", "",]);- assert.match(result.stdout, /^site=https:\/\/openviking\.net$/m);+ assert.match(result.stdout, /^site=$/m, "the installer picks the version-check site");assert.match(result.stdout, /^reexec=0$/m);assert.match(result.stdout, /^stdin=device$/m, "without a terminal the installer reads /dev/null");assert.deepEqual(readdirSync(fixture.tmp), [], "the downloaded installer is removed");diff --git a/examples/memory-plugin-shared/install-tui.test.mjs b/examples/memory-plugin-shared/install-tui.test.mjsindex 39cf8e87a..eddf39bda 100644--- a/examples/memory-plugin-shared/install-tui.test.mjs+++ b/examples/memory-plugin-shared/install-tui.test.mjs@@ -530,7 +530,7 @@ test("a non-interactive run with no server says so and how to re-run", (t) => {assert.equal(result.status, 0, `${result.stdout}\n${result.stderr}`);assert.match(result.stdout, notice);assert.ok(result.stdout.indexOf("Review") < result.stdout.search(notice));- assert.match(result.stdout, /curl -fsSL https:\/\/openviking\.net\/install \| bash -s -- --yes --harness dsh --url <server-url> --api-key <api-key>/);+ assert.match(result.stdout, /curl -fsSL https:\/\/openviking\.ai\/install \| bash -s -- --yes --harness dsh --url <server-url> --api-key <api-key>/);assert.match(result.stdout, /\[4\/4\] Validation/);assert.match(result.stdout, /DeepSeek Harness\n {4}Next: .*\n {4}Updates: re-run this installer\n {4}Uninstall: dsh plugin --profile web rm @openviking\/dsh-memory-plugin/);assert.equal(JSON.parse(readFileSync(join(home, ".openviking", "ovcli.conf"), "utf8")).url, "http://127.0.0.1:1933");diff --git a/examples/memory-plugin-shared/install.sh b/examples/memory-plugin-shared/install.shindex 47dbf8b3c..8cff66cba 100644--- a/examples/memory-plugin-shared/install.sh+++ b/examples/memory-plugin-shared/install.sh@@ -40,7 +40,7 @@# uses the host that answers first. Claude Code and Codex fetch their# marketplace from that host themselves, at install and on their own# update checks.-# openviking.net The version check described below.+# openviking.ai The version check described below.# The OpenViking server given: GET /health, and /api/v1/system/status with# the API key.# The npm registry npm is configured with: pi's dependencies (npm ci) and@@ -69,7 +69,7 @@# a harness installs from it.## Version check: after the confirmation, when installing from the release, it-# asks https://openviking.net/install/v1/<harness>.json which release to+# asks https://openviking.ai/install/v1/<harness>.json which release to# install, once per selected harness. OPENVIKING_SKIP_VERSION_CHECK=1 skips the# check and installs the latest release, which is also what happens when the# check fails. The docs site holds the latest release only, so there the answer@@ -107,7 +107,7 @@ DOWNLOAD_BASES="${OPENVIKING_DOWNLOAD_BASE:-${OPENVIKING_TOS_BASE:-https://docs.DOWNLOAD_BASE="" # the one of them in use; set by select_download_baseCODEX_GIT_URL="" # set by select_download_baseCC_MARKETPLACE_URL="" # set by select_download_base-INSTALL_SITE="${OPENVIKING_INSTALL_SITE:-https://openviking.net}"+INSTALL_SITE="${OPENVIKING_INSTALL_SITE:-https://openviking.ai}"INSTALL_SITE="${INSTALL_SITE%/}"INSTALL_COMMAND="curl -fsSL $INSTALL_SITE/install | bash -s --"# First Claude Code release with the `archive` plugin source.@@ -243,7 +243,7 @@ Environment:OPENVIKING_MARKETPLACE_ARCHIVE_URL Plugin bundle to install instead of the release's; not checksum-verified.OPENVIKING_CLAUDE_MARKETPLACE_URL Claude Code URL marketplace to register.OPENVIKING_CODEX_TOS_GIT_URL Codex git marketplace to register.- OPENVIKING_INSTALL_SITE Site the version check asks which release to install (default: https://openviking.net).+ OPENVIKING_INSTALL_SITE Site the version check asks which release to install (default: https://openviking.ai).OPENVIKING_SKIP_VERSION_CHECK Any value but 0 skips the version check; the latest release is installed.OPENVIKING_INSTALLER_REEXEC 0 runs this copy even when it is not a release build.EOF