[GH-ISSUE #3208] [Issue]: mari CLI is built but not exposed on PATH in local workspace #1722

Closed
opened 2026-10-21 05:42:02 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Jul 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3208

Originally assigned to: @SpicyMarinara on GitHub.

Summary

The workspace builds the mari CLI at packages/server/dist/bin/mari.js and declares it in @marinara-engine/server's bin field, but mari is not available from the repo shell or via pnpm exec. This causes commands such as mari images list assets --help to fail unless the CLI is invoked directly with Node.

Expected behavior

After install/build from the repo root, mari --help should work, or at least pnpm --filter @marinara-engine/server exec mari --help should discover the local bin. Workspace tooling should be able to invoke mari without a global install or manual alias.

Actual behavior

The CLI file exists and runs with node packages/server/dist/bin/mari.js --help, but no discoverable bin shim appears to be created in node_modules/.bin. Running mari or pnpm --filter @marinara-engine/server exec mari --help fails with command not found.

Steps to reproduce

  1. Use Marinara Engine 2.0.9 from the repo root after install/build.
  2. Run mari images list assets --help.
  3. Run command -v mari.
  4. Run pnpm --filter @marinara-engine/server exec mari --help.
  5. Verify packages/server/dist/bin/mari.js exists and can be run with node packages/server/dist/bin/mari.js --help.

Environment

  • Marinara Engine version: 2.0.9
  • Install type: source
  • OS + version: macOS 26
  • Browser or app shell: Shell: zsh via MacPorts; workspace command runner uses bash

Logs, screenshots, or video

Observed shell output: mari images list assets --help -> bash: line 1: mari: command not found. command -v mari returns nothing. pnpm --filter @marinara-engine/server exec mari --help -> Command "mari" not found. Relevant package metadata: @marinara-engine/server declares "bin": { "mari": "./dist/bin/mari.js" }. Built file exists at packages/server/dist/bin/mari.js.

Additional context

Repo path reported as /Users/redacted/Marinara-Engine. Workaround: run node packages/server/dist/bin/mari.js --help directly, or manually create a local symlink with mkdir -p node_modules/.bin and ln -sf ../../packages/server/dist/bin/mari.js node_modules/.bin/mari. Reporter notes this does not appear specific to MacPorts zsh because it also reproduces in the bash runner environment and login zsh.

Discord thread: Mari can’t find mari-cli
Discord thread link: https://discord.com/channels/1417099416812392641/1523002220608618687
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (1 message)
[2026-07-04T16:27:05.406Z] pod042: Ran into some tool call issues with the professor while I was editing a card and asked her to write up an issue report.
Running current 2.0.9 release. The professor was powered by GPT-5.5.

# `mari` CLI exists in built server package but is not linked/exposed on PATH in local workspace

## Summary
The Marinara workspace includes a built `mari` CLI at `packages/server/dist/bin/mari.js`, and `packages/server/package.json` declares it in the `bin` field, but the CLI is not available as `mari` from the workspace shell. This causes commands such as `mari images ...` to fail in normal shell execution unless invoked directly through Node.

## Environment
- OS: macOS 26
- Shell: zsh via MacPorts, though the workspace command runner uses bash
- Repo path: `/Users/redacted/Marinara-Engine`
- Server package: `@marinara-engine/server`

## Observed behavior
Running `mari` from the shell often fails:

` ` `sh
mari images list assets --help
# bash: line 1: mari: command not found
` ` `

`command -v mari` also returns nothing in the normal shell environment.

However, the built CLI file does exist:

` ` `sh
packages/server/dist/bin/mari.js
` ` `

And it can be run directly:

` ` `sh
node packages/server/dist/bin/mari.js --help
` ` `

## Relevant package metadata
`packages/server/package.json` declares:

` ` `json
{
  "name": "@marinara-engine/server",
  "bin": {
    "mari": "./dist/bin/mari.js"
  }
}
` ` `

But there does not appear to be a corresponding symlink in `node_modules/.bin`, and `pnpm exec` does not discover it:

` ` `sh
pnpm --filter @marinara-engine/server exec mari --help
# Command "mari" not found
` ` `

## Expected behavior
From the repo root, one of these should work after install/build:

` ` `sh
mari --help
` ` `

or at least:

` ` `sh
pnpm --filter @marinara-engine/server exec mari --help
` ` `

Ideally, a local bin shim should be created so workspace tooling can reliably invoke `mari` without requiring a global install or a manual alias.

## Actual behavior
The CLI is built and runnable directly with Node, but is not linked into any discoverable bin path. Tools or scripts that assume `mari` exists on PATH may fail with `command not found`.

## Workaround
Direct invocation works:

` ` `sh
node packages/server/dist/bin/mari.js --help
` ` `

A local symlink also works:

` ` `sh
mkdir -p node_modules/.bin
ln -sf ../../packages/server/dist/bin/mari.js node_modules/.bin/mari
./node_modules/.bin/mari --help
` ` `

No root/global install should be required.

## Possible fix directions
- Ensure the workspace install links `@marinara-engine/server`’s `bin.mari` into `node_modules/.bin`.
- Add a root package script wrapper, e.g.:

` ` `json
{
  "scripts": {
    "mari": "node packages/server/dist/bin/mari.js"
  }
}
` ` `

Then users/tools could run:

` ` `sh
pnpm mari -- --help
` ` `

- Add a repo-local CLI shim script, if relying on pnpm bin linking is fragile.
- Document the supported local invocation path for development installs.

## Notes
This does not appear to be caused by MacPorts zsh specifically. The issue reproduces in the bash runner environment, and login zsh also does not find `mari`. The package has a valid built CLI and `bin` declaration; the missing piece is exposing/linking it in the local workspace environment.
[Discord message: https://discord.com/channels/1417099416812392641/1523002220608618687/1523002220608618687]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3208 Originally assigned to: @SpicyMarinara on GitHub. ## Summary The workspace builds the `mari` CLI at `packages/server/dist/bin/mari.js` and declares it in `@marinara-engine/server`'s `bin` field, but `mari` is not available from the repo shell or via `pnpm exec`. This causes commands such as `mari images list assets --help` to fail unless the CLI is invoked directly with Node. ## Expected behavior After install/build from the repo root, `mari --help` should work, or at least `pnpm --filter @marinara-engine/server exec mari --help` should discover the local bin. Workspace tooling should be able to invoke `mari` without a global install or manual alias. ## Actual behavior The CLI file exists and runs with `node packages/server/dist/bin/mari.js --help`, but no discoverable bin shim appears to be created in `node_modules/.bin`. Running `mari` or `pnpm --filter @marinara-engine/server exec mari --help` fails with command not found. ## Steps to reproduce 1. Use Marinara Engine 2.0.9 from the repo root after install/build. 2. Run `mari images list assets --help`. 3. Run `command -v mari`. 4. Run `pnpm --filter @marinara-engine/server exec mari --help`. 5. Verify `packages/server/dist/bin/mari.js` exists and can be run with `node packages/server/dist/bin/mari.js --help`. ## Environment - Marinara Engine version: 2.0.9 - Install type: source - OS + version: macOS 26 - Browser or app shell: Shell: zsh via MacPorts; workspace command runner uses bash ## Logs, screenshots, or video Observed shell output: `mari images list assets --help` -> `bash: line 1: mari: command not found`. `command -v mari` returns nothing. `pnpm --filter @marinara-engine/server exec mari --help` -> `Command "mari" not found`. Relevant package metadata: `@marinara-engine/server` declares `"bin": { "mari": "./dist/bin/mari.js" }`. Built file exists at `packages/server/dist/bin/mari.js`. ## Additional context Repo path reported as `/Users/redacted/Marinara-Engine`. Workaround: run `node packages/server/dist/bin/mari.js --help` directly, or manually create a local symlink with `mkdir -p node_modules/.bin` and `ln -sf ../../packages/server/dist/bin/mari.js node_modules/.bin/mari`. Reporter notes this does not appear specific to MacPorts zsh because it also reproduces in the bash runner environment and login zsh. Discord thread: Mari can’t find mari-cli Discord thread link: https://discord.com/channels/1417099416812392641/1523002220608618687 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (1 message)</summary> ```text [2026-07-04T16:27:05.406Z] pod042: Ran into some tool call issues with the professor while I was editing a card and asked her to write up an issue report. Running current 2.0.9 release. The professor was powered by GPT-5.5. # `mari` CLI exists in built server package but is not linked/exposed on PATH in local workspace ## Summary The Marinara workspace includes a built `mari` CLI at `packages/server/dist/bin/mari.js`, and `packages/server/package.json` declares it in the `bin` field, but the CLI is not available as `mari` from the workspace shell. This causes commands such as `mari images ...` to fail in normal shell execution unless invoked directly through Node. ## Environment - OS: macOS 26 - Shell: zsh via MacPorts, though the workspace command runner uses bash - Repo path: `/Users/redacted/Marinara-Engine` - Server package: `@marinara-engine/server` ## Observed behavior Running `mari` from the shell often fails: ` ` `sh mari images list assets --help # bash: line 1: mari: command not found ` ` ` `command -v mari` also returns nothing in the normal shell environment. However, the built CLI file does exist: ` ` `sh packages/server/dist/bin/mari.js ` ` ` And it can be run directly: ` ` `sh node packages/server/dist/bin/mari.js --help ` ` ` ## Relevant package metadata `packages/server/package.json` declares: ` ` `json { "name": "@marinara-engine/server", "bin": { "mari": "./dist/bin/mari.js" } } ` ` ` But there does not appear to be a corresponding symlink in `node_modules/.bin`, and `pnpm exec` does not discover it: ` ` `sh pnpm --filter @marinara-engine/server exec mari --help # Command "mari" not found ` ` ` ## Expected behavior From the repo root, one of these should work after install/build: ` ` `sh mari --help ` ` ` or at least: ` ` `sh pnpm --filter @marinara-engine/server exec mari --help ` ` ` Ideally, a local bin shim should be created so workspace tooling can reliably invoke `mari` without requiring a global install or a manual alias. ## Actual behavior The CLI is built and runnable directly with Node, but is not linked into any discoverable bin path. Tools or scripts that assume `mari` exists on PATH may fail with `command not found`. ## Workaround Direct invocation works: ` ` `sh node packages/server/dist/bin/mari.js --help ` ` ` A local symlink also works: ` ` `sh mkdir -p node_modules/.bin ln -sf ../../packages/server/dist/bin/mari.js node_modules/.bin/mari ./node_modules/.bin/mari --help ` ` ` No root/global install should be required. ## Possible fix directions - Ensure the workspace install links `@marinara-engine/server`’s `bin.mari` into `node_modules/.bin`. - Add a root package script wrapper, e.g.: ` ` `json { "scripts": { "mari": "node packages/server/dist/bin/mari.js" } } ` ` ` Then users/tools could run: ` ` `sh pnpm mari -- --help ` ` ` - Add a repo-local CLI shim script, if relying on pnpm bin linking is fragile. - Document the supported local invocation path for development installs. ## Notes This does not appear to be caused by MacPorts zsh specifically. The issue reproduces in the bash runner environment, and login zsh also does not find `mari`. The package has a valid built CLI and `bin` declaration; the missing piece is exposing/linking it in the local workspace environment. [Discord message: https://discord.com/channels/1417099416812392641/1523002220608618687/1523002220608618687] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:42:02 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Author
Owner

@SpicyMarinara commented on GitHub (Jul 4, 2026):

Addressed in ready PR #3218 targeting staging.

<!-- gh-comment-id:4884070423 --> @SpicyMarinara commented on GitHub (Jul 4, 2026): Addressed in ready PR #3218 targeting staging.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#1722
No description provided.