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
93 changes: 73 additions & 20 deletions adapters/business/run.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 17 additions & 17 deletions adapters/manifest.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions scripts/test-pack.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ try {
const bin = path.join(prefix, 'bin', 'mere');
const env = {
...process.env,
HOME: path.join(tmp, 'home'),
XDG_STATE_HOME: path.join(tmp, 'state'),
MERE_CLI_SOURCE: 'bundled',
MERE_ROOT: path.join(tmp, 'missing-mere-root'),
MERE_CLI_BIN: bin
Expand All @@ -51,6 +53,21 @@ try {
throw new Error('Installed apps list did not resolve every adapter from bundled source.');
}
parseJsonCommand(bin, ['apps', 'manifest', '--app', 'projects', '--json'], env);
parseJsonCommand(bin, ['apps', 'manifest', '--app', 'business', '--json'], env);
const businessNoSession = spawnSync(bin, ['business', 'workspace', 'list', '--json'], {
cwd: packageRoot,
env,
stdio: ['ignore', 'pipe', 'pipe'],
encoding: 'utf8'
});
if (businessNoSession.error) throw businessNoSession.error;
if (businessNoSession.status !== 2) {
throw new Error(`Packed Business adapter returned ${businessNoSession.status}; expected the no-session exit status.\n${businessNoSession.stderr}${businessNoSession.stdout}`);
}
const businessError = JSON.parse(businessNoSession.stderr);
if (businessError.error?.code !== 'usage_error' || !businessError.error?.message?.includes('No local session found')) {
throw new Error(`Packed Business adapter did not preserve root-canonical leading --json handling: ${businessNoSession.stderr}`);
}
run(bin, ['completion', 'bash'], { capture: true, env });
run(process.execPath, ['scripts/mcp-tools-smoke.mjs'], { cwd: packageRoot, env });
console.log(JSON.stringify({ ok: true, tarball: tarballName, prefix }));
Expand Down
Loading