@trymesh/cli 0.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/mesh-banner.svg +23 -0
- package/bin/mesh-daemon.cjs +25 -0
- package/bin/mesh.cjs +25 -0
- package/dist/agent-loop.js +1 -0
- package/dist/agent-os.js +1 -0
- package/dist/agents/critic.js +1 -0
- package/dist/agents/persona-loader.js +1 -0
- package/dist/agents/redteam.js +1 -0
- package/dist/audit/logger.js +1 -0
- package/dist/auth.js +1 -0
- package/dist/cache-manager.js +1 -0
- package/dist/command-filter.js +1 -0
- package/dist/command-safety.js +1 -0
- package/dist/company-brain.js +1 -0
- package/dist/composite-backend.js +1 -0
- package/dist/config.js +1 -0
- package/dist/context-artifacts.js +1 -0
- package/dist/context-assembler.js +1 -0
- package/dist/daemon-protocol.js +1 -0
- package/dist/daemon.js +2 -0
- package/dist/dashboard/assets/index-Co1IW0HE.css +1 -0
- package/dist/dashboard/assets/index-DIj6iOWd.js +1 -0
- package/dist/dashboard/index.html +13 -0
- package/dist/dashboard-server.js +1 -0
- package/dist/doctor.js +1 -0
- package/dist/index.js +2 -0
- package/dist/integrations/chatops/manager.js +1 -0
- package/dist/integrations/issues/github.js +1 -0
- package/dist/integrations/issues/jira.js +1 -0
- package/dist/integrations/issues/linear.js +1 -0
- package/dist/integrations/issues/manager.js +1 -0
- package/dist/integrations/issues/types.js +1 -0
- package/dist/integrations/telemetry/datadog.js +1 -0
- package/dist/integrations/telemetry/manager.js +1 -0
- package/dist/integrations/telemetry/otel.js +1 -0
- package/dist/integrations/telemetry/posthog.js +1 -0
- package/dist/integrations/telemetry/sentry.js +1 -0
- package/dist/issue-autopilot.js +1 -0
- package/dist/llm-client.js +1 -0
- package/dist/local-tools.js +1 -0
- package/dist/mcp-client.js +1 -0
- package/dist/mesh-brain.js +1 -0
- package/dist/mesh-core-adapter.js +1 -0
- package/dist/mesh-gateway.js +1 -0
- package/dist/mesh-portal.js +1 -0
- package/dist/model-catalog.js +1 -0
- package/dist/model-router.js +1 -0
- package/dist/moonshots/causal-autopsy.js +1 -0
- package/dist/moonshots/common.js +1 -0
- package/dist/moonshots/conversational-codebase.js +1 -0
- package/dist/moonshots/ephemeral-execution.js +1 -0
- package/dist/moonshots/fluid-mesh.js +1 -0
- package/dist/moonshots/hive-mind.js +1 -0
- package/dist/moonshots/live-wire.js +1 -0
- package/dist/moonshots/living-software.js +1 -0
- package/dist/moonshots/natural-language-source.js +1 -0
- package/dist/moonshots/precrime.js +1 -0
- package/dist/moonshots/probabilistic-codebase.js +1 -0
- package/dist/moonshots/proof-carrying-change.js +1 -0
- package/dist/moonshots/schrodingers-ast.js +1 -0
- package/dist/moonshots/semantic-git.js +1 -0
- package/dist/moonshots/semantic-sheriff.js +1 -0
- package/dist/moonshots/session-resurrection.js +1 -0
- package/dist/moonshots/shadow-deploy.js +1 -0
- package/dist/moonshots/spec-code.js +1 -0
- package/dist/moonshots/todo-resolver.js +1 -0
- package/dist/moonshots/tribunal.js +1 -0
- package/dist/nvidia-services.js +1 -0
- package/dist/production-readiness.js +1 -0
- package/dist/quality/property-tests.js +1 -0
- package/dist/quality/smt.js +1 -0
- package/dist/refactor/ts-compiler.js +1 -0
- package/dist/runtime/replay.js +1 -0
- package/dist/runtime-api.js +1 -0
- package/dist/runtime-observer.js +1 -0
- package/dist/security/self-defending.js +1 -0
- package/dist/session-capsule-store.js +1 -0
- package/dist/session-manager.js +1 -0
- package/dist/structured-logger.js +1 -0
- package/dist/support.js +1 -0
- package/dist/terminal-preview.js +1 -0
- package/dist/timeline/symptom-bisect.js +1 -0
- package/dist/timeline-manager.js +1 -0
- package/dist/tool-backend.js +1 -0
- package/dist/tool-schema.js +1 -0
- package/dist/voice-manager.js +1 -0
- package/dist/workspace-index.js +1 -0
- package/package.json +94 -0
- package/scripts/minify.js +114 -0
- package/scripts/postinstall.cjs +81 -0
- package/scripts/published-install-smoke.cjs +103 -0
- package/scripts/release-smoke.cjs +116 -0
- package/scripts/run-eval.ts +84 -0
- package/scripts/run-tests.cjs +54 -0
- package/scripts/update-brew.sh +57 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { spawnSync } = require("node:child_process");
|
|
4
|
+
const fs = require("node:fs");
|
|
5
|
+
const path = require("node:path");
|
|
6
|
+
|
|
7
|
+
const root = process.cwd();
|
|
8
|
+
const skipDirs = new Set([
|
|
9
|
+
".git",
|
|
10
|
+
".mesh",
|
|
11
|
+
"benchmarks",
|
|
12
|
+
"dist",
|
|
13
|
+
"mesh-core",
|
|
14
|
+
"node_modules",
|
|
15
|
+
"worker"
|
|
16
|
+
]);
|
|
17
|
+
const testFilePattern = /\.(test|spec)\.(js|mjs|cjs)$/;
|
|
18
|
+
|
|
19
|
+
function walk(dir, out) {
|
|
20
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
21
|
+
for (const entry of entries) {
|
|
22
|
+
const absolutePath = path.join(dir, entry.name);
|
|
23
|
+
const relativePath = path.relative(root, absolutePath).split(path.sep).join("/");
|
|
24
|
+
|
|
25
|
+
if (entry.isDirectory()) {
|
|
26
|
+
if (skipDirs.has(entry.name) || relativePath.startsWith(".")) continue;
|
|
27
|
+
walk(absolutePath, out);
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (entry.isFile() && testFilePattern.test(entry.name)) {
|
|
32
|
+
out.push(relativePath);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const files = [];
|
|
38
|
+
walk(root, files);
|
|
39
|
+
|
|
40
|
+
if (files.length === 0) {
|
|
41
|
+
console.log("No first-party test files found. Skipping benchmark fixtures.");
|
|
42
|
+
process.exit(0);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const result = spawnSync(process.execPath, ["--import", "tsx", "--test", ...files], {
|
|
46
|
+
cwd: root,
|
|
47
|
+
env: {
|
|
48
|
+
...process.env,
|
|
49
|
+
MESH_DISABLE_WATCHERS: process.env.MESH_DISABLE_WATCHERS || "1"
|
|
50
|
+
},
|
|
51
|
+
stdio: "inherit"
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
process.exit(result.status ?? 1);
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# script/update-brew.sh - Updates the Homebrew formula after a new NPM release
|
|
3
|
+
|
|
4
|
+
set -e
|
|
5
|
+
|
|
6
|
+
echo "Fetching latest NPM version..."
|
|
7
|
+
VERSION=$(node -p "require('./package.json').version")
|
|
8
|
+
TARBALL_URL="https://registry.npmjs.org/@edgarelmo/mesh-agent-cli/-/mesh-agent-cli-${VERSION}.tgz"
|
|
9
|
+
|
|
10
|
+
echo "Downloading $TARBALL_URL to calculate SHA256..."
|
|
11
|
+
SHA256=$(curl -sL "$TARBALL_URL" | shasum -a 256 | awk '{print $1}')
|
|
12
|
+
|
|
13
|
+
if [ -z "$SHA256" ]; then
|
|
14
|
+
echo "Error: Could not calculate SHA256. Is the package published on NPM?"
|
|
15
|
+
exit 1
|
|
16
|
+
fi
|
|
17
|
+
|
|
18
|
+
echo "Updating Homebrew tap dreddi-edit/homebrew-mesh to version $VERSION ($SHA256)..."
|
|
19
|
+
|
|
20
|
+
# Download current formula
|
|
21
|
+
gh api /repos/dreddi-edit/homebrew-mesh/contents/Formula/mesh-agent-cli.rb > /tmp/formula.json
|
|
22
|
+
SHA=$(node -p "require('/tmp/formula.json').sha")
|
|
23
|
+
|
|
24
|
+
# Generate new formula content
|
|
25
|
+
NEW_CONTENT=$(cat <<EOF
|
|
26
|
+
require "language/node"
|
|
27
|
+
|
|
28
|
+
class MeshAgentCli < Formula
|
|
29
|
+
desc "Mesh terminal agent CLI"
|
|
30
|
+
homepage "https://github.com/dreddi-edit/mesh-agent-cli"
|
|
31
|
+
url "$TARBALL_URL"
|
|
32
|
+
sha256 "$SHA256"
|
|
33
|
+
# The npm package is UNLICENSED/all rights reserved. Homebrew uses
|
|
34
|
+
# :cannot_represent when no supported SPDX license applies.
|
|
35
|
+
license :cannot_represent
|
|
36
|
+
|
|
37
|
+
depends_on "node"
|
|
38
|
+
|
|
39
|
+
def install
|
|
40
|
+
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
|
|
41
|
+
bin.install_symlink Dir["#{libexec}/bin/*"]
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
test do
|
|
45
|
+
system "#{bin}/mesh", "--version"
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
EOF
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
# Upload new formula
|
|
52
|
+
gh api --method PUT /repos/dreddi-edit/homebrew-mesh/contents/Formula/mesh-agent-cli.rb \
|
|
53
|
+
-F message="chore: update to version $VERSION" \
|
|
54
|
+
-F content="$(echo "$NEW_CONTENT" | base64)" \
|
|
55
|
+
-F sha="$SHA"
|
|
56
|
+
|
|
57
|
+
echo "Homebrew formula successfully updated! ✅"
|