New:Socket for Asana Is Now Available.Learn more
Get Started

memtrust-cli

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

memtrust-cli - npm Package Compare versions

Comparing version
0.3.4
to
0.3.5
+17
-7
bin/memtrust.js

@@ -6,3 +6,3 @@ #!/usr/bin/env node

// Pinned to this npm package's own version, not left floating: "uv tool run
// --from memtrust" with no version qualifier always fetches whatever is
// --from memtrust-cli" with no version qualifier always fetches whatever is
// currently newest on PyPI. That decouples what a user actually installed

@@ -13,5 +13,15 @@ // (memtrust-cli@X from npm, a fixed point in time) from what runs on their

// Pinning to this package's own version keeps the two registries in
// lockstep: bump this package.json's version when PyPI's memtrust ships a
// new release, and every subsequent npm install/npx run resolves to that
// lockstep: bump this package.json's version when PyPI's memtrust-cli ships
// a new release, and every subsequent npm install/npx run resolves to that
// exact pinned release, not whatever is newest at run time.
//
// Fetches from PyPI's "memtrust-cli" project, not a separate "memtrust"
// project -- an earlier version of this script pinned "memtrust", a PyPI
// project name that was never actually published (confirmed live:
// https://pypi.org/pypi/memtrust/json returns 404), which made every
// `npx memtrust-cli` invocation fail with "memtrust was not found in the
// package registry" regardless of platform. "memtrust-cli" is the real,
// live PyPI project, and it registers a `memtrust` console-script entry
// point (see pyproject.toml's [project.scripts]), so "uv tool run --from
// memtrust-cli memtrust <args>" resolves correctly.
const PACKAGE_VERSION = require(path.join(__dirname, "..", "package.json")).version;

@@ -39,8 +49,8 @@ const PLATFORM_PACKAGES = {

// uv is a bootstrap tool here, not the final CLI: "uv tool run --from
// memtrust==X.Y.Z memtrust <args>" transparently provisions a Python
// interpreter (if needed) and installs/caches that exact pinned memtrust
// release from PyPI on first use, then runs it.
// memtrust-cli==X.Y.Z memtrust <args>" transparently provisions a Python
// interpreter (if needed) and installs/caches that exact pinned
// memtrust-cli release from PyPI on first use, then runs it.
const result = spawnSync(
uvPath,
["tool", "run", "--from", `memtrust==${PACKAGE_VERSION}`, "memtrust", ...process.argv.slice(2)],
["tool", "run", "--from", `memtrust-cli==${PACKAGE_VERSION}`, "memtrust", ...process.argv.slice(2)],
{ stdio: "inherit" }

@@ -47,0 +57,0 @@ );

{
"name": "memtrust-cli",
"version": "0.3.4",
"description": "npx-runnable wrapper for the memtrust agent-memory benchmark harness. Bootstraps a verified copy of Astral's uv to fetch and run memtrust from PyPI -- no Python toolchain to provision by hand.",
"version": "0.3.5",
"description": "npx-runnable wrapper for the memtrust agent-memory benchmark harness. Bootstraps a verified copy of Astral's uv to fetch and run memtrust-cli from PyPI -- no Python toolchain to provision by hand.",
"bin": { "memtrust-cli": "bin/memtrust.js", "memtrust": "bin/memtrust.js" },

@@ -21,3 +21,3 @@ "files": ["bin/", "LICENSE", "README.md"],

"bugs": "https://github.com/RudrenduPaul/memtrust/issues",
"keywords": ["llm", "agent", "memory", "benchmark", "eval", "evaluation", "uv"],
"keywords": ["llm", "agent", "memory", "benchmark", "eval", "evaluation", "uv", "cli", "agent-memory", "contradiction-detection"],
"optionalDependencies": {

@@ -24,0 +24,0 @@ "@memtrust-cli/darwin-x64": "^0.1.1",

@@ -9,3 +9,3 @@ # memtrust-cli

[Astral's `uv`](https://github.com/astral-sh/uv) for your platform, then uses it to fetch and run
the real `memtrust` package from PyPI — no separate Python toolchain to install by hand.
the real `memtrust-cli` package from PyPI — no separate Python toolchain to install by hand.

@@ -25,4 +25,4 @@ ## Usage

The first run downloads `memtrust` from PyPI via `uv tool run --from memtrust memtrust` and caches
it; subsequent runs reuse the cache.
The first run downloads `memtrust-cli` from PyPI via `uv tool run --from memtrust-cli memtrust` and
caches it; subsequent runs reuse the cache.

@@ -37,3 +37,3 @@ ## Supported platforms

- memtrust: https://github.com/RudrenduPaul/memtrust
- memtrust on PyPI: https://pypi.org/project/memtrust/
- memtrust-cli on PyPI: https://pypi.org/project/memtrust-cli/
- uv (bundled bootstrap tool, not affiliated with or endorsed by Astral Software Inc.): https://github.com/astral-sh/uv

@@ -40,0 +40,0 @@