Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 4 additions & 3 deletions client/python/scripts/check_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@
REPO_ROOT = os.path.dirname(
os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
)
NODE_PACKAGE = os.path.join(REPO_ROOT, "client", "node", "package.json")
MCP_PACKAGE = os.path.join(REPO_ROOT, "packaging", "npm", "sysml-mcp", "package.json")
PACKAGE_JSON = "package.json"
NODE_PACKAGE = os.path.join(REPO_ROOT, "client", "node", PACKAGE_JSON)
MCP_PACKAGE = os.path.join(REPO_ROOT, "packaging", "npm", "sysml-mcp", PACKAGE_JSON)
JAVA_POM = os.path.join(REPO_ROOT, "client", "java", "pom.xml")
RUST_CARGO = os.path.join(REPO_ROOT, "client", "rust", "opensysml", "Cargo.toml")
KERNEL_VERSION_FILE = os.path.join(
Expand Down Expand Up @@ -236,7 +237,7 @@ def node_version(declared=None, node=None, tag=None):
node = node_declared_version() if node is None else node
return _client_version(
"client/node/package.json",
"package.json",
PACKAGE_JSON,
"npm",
"The Node client",
node,
Expand Down
2 changes: 1 addition & 1 deletion packaging/npm/sysml-mcp/lib/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function resolveBinary({ os, cpu, version, from = import.meta.url }) {
try {
manifestPath = require.resolve(`${name}/package.json`);
} catch (error) {
if (error && error.code === "MODULE_NOT_FOUND") {
if (error?.code === "MODULE_NOT_FOUND") {
throw new ShimError(
`${PACKAGE_NAME}: the platform package ${name}@${version} is not installed. ` +
"It is an optional dependency, so an install with --no-optional or --omit=optional " +
Expand Down
1 change: 1 addition & 0 deletions scripts/install-mcp-publisher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ arch="$(uname -m)"
case "$arch" in
x86_64) arch=amd64 ;;
aarch64 | arm64) arch=arm64 ;;
*) ;; # any other machine name is looked up as uname spells it
esac
platform="${os}_${arch}"
expected="${MCP_PUBLISHER_SHA256[$platform]:-}"
Expand Down
3 changes: 2 additions & 1 deletion scripts/mcp-stdio-probe.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ const timer = setTimeout(() => fail(`no complete answer within ${timeout} ms`),
child.on("exit", (code, signal) => {
clearTimeout(timer);
if (verdict === 0 && code !== 0) {
process.stderr.write(`mcp-stdio-probe: the server ended with ${signal ?? `status ${code}`} after a clean probe\n`);
const ending = signal ?? `status ${code}`;
process.stderr.write(`mcp-stdio-probe: the server ended with ${ending} after a clean probe\n`);
verdict = 1;
}
process.exit(verdict);
Expand Down
3 changes: 2 additions & 1 deletion scripts/npm-publish-missing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ tag=$1
shift

manifest() {
if [[ -d "$1" ]]; then cat "$1/package.json"; else tar -xOf "$1" package/package.json; fi
local package=$1
if [[ -d "$package" ]]; then cat "$package/package.json"; else tar -xOf "$package" package/package.json; fi
}

for package in "$@"; do
Expand Down
Loading