@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.
Files changed (95) hide show
  1. package/assets/mesh-banner.svg +23 -0
  2. package/bin/mesh-daemon.cjs +25 -0
  3. package/bin/mesh.cjs +25 -0
  4. package/dist/agent-loop.js +1 -0
  5. package/dist/agent-os.js +1 -0
  6. package/dist/agents/critic.js +1 -0
  7. package/dist/agents/persona-loader.js +1 -0
  8. package/dist/agents/redteam.js +1 -0
  9. package/dist/audit/logger.js +1 -0
  10. package/dist/auth.js +1 -0
  11. package/dist/cache-manager.js +1 -0
  12. package/dist/command-filter.js +1 -0
  13. package/dist/command-safety.js +1 -0
  14. package/dist/company-brain.js +1 -0
  15. package/dist/composite-backend.js +1 -0
  16. package/dist/config.js +1 -0
  17. package/dist/context-artifacts.js +1 -0
  18. package/dist/context-assembler.js +1 -0
  19. package/dist/daemon-protocol.js +1 -0
  20. package/dist/daemon.js +2 -0
  21. package/dist/dashboard/assets/index-Co1IW0HE.css +1 -0
  22. package/dist/dashboard/assets/index-DIj6iOWd.js +1 -0
  23. package/dist/dashboard/index.html +13 -0
  24. package/dist/dashboard-server.js +1 -0
  25. package/dist/doctor.js +1 -0
  26. package/dist/index.js +2 -0
  27. package/dist/integrations/chatops/manager.js +1 -0
  28. package/dist/integrations/issues/github.js +1 -0
  29. package/dist/integrations/issues/jira.js +1 -0
  30. package/dist/integrations/issues/linear.js +1 -0
  31. package/dist/integrations/issues/manager.js +1 -0
  32. package/dist/integrations/issues/types.js +1 -0
  33. package/dist/integrations/telemetry/datadog.js +1 -0
  34. package/dist/integrations/telemetry/manager.js +1 -0
  35. package/dist/integrations/telemetry/otel.js +1 -0
  36. package/dist/integrations/telemetry/posthog.js +1 -0
  37. package/dist/integrations/telemetry/sentry.js +1 -0
  38. package/dist/issue-autopilot.js +1 -0
  39. package/dist/llm-client.js +1 -0
  40. package/dist/local-tools.js +1 -0
  41. package/dist/mcp-client.js +1 -0
  42. package/dist/mesh-brain.js +1 -0
  43. package/dist/mesh-core-adapter.js +1 -0
  44. package/dist/mesh-gateway.js +1 -0
  45. package/dist/mesh-portal.js +1 -0
  46. package/dist/model-catalog.js +1 -0
  47. package/dist/model-router.js +1 -0
  48. package/dist/moonshots/causal-autopsy.js +1 -0
  49. package/dist/moonshots/common.js +1 -0
  50. package/dist/moonshots/conversational-codebase.js +1 -0
  51. package/dist/moonshots/ephemeral-execution.js +1 -0
  52. package/dist/moonshots/fluid-mesh.js +1 -0
  53. package/dist/moonshots/hive-mind.js +1 -0
  54. package/dist/moonshots/live-wire.js +1 -0
  55. package/dist/moonshots/living-software.js +1 -0
  56. package/dist/moonshots/natural-language-source.js +1 -0
  57. package/dist/moonshots/precrime.js +1 -0
  58. package/dist/moonshots/probabilistic-codebase.js +1 -0
  59. package/dist/moonshots/proof-carrying-change.js +1 -0
  60. package/dist/moonshots/schrodingers-ast.js +1 -0
  61. package/dist/moonshots/semantic-git.js +1 -0
  62. package/dist/moonshots/semantic-sheriff.js +1 -0
  63. package/dist/moonshots/session-resurrection.js +1 -0
  64. package/dist/moonshots/shadow-deploy.js +1 -0
  65. package/dist/moonshots/spec-code.js +1 -0
  66. package/dist/moonshots/todo-resolver.js +1 -0
  67. package/dist/moonshots/tribunal.js +1 -0
  68. package/dist/nvidia-services.js +1 -0
  69. package/dist/production-readiness.js +1 -0
  70. package/dist/quality/property-tests.js +1 -0
  71. package/dist/quality/smt.js +1 -0
  72. package/dist/refactor/ts-compiler.js +1 -0
  73. package/dist/runtime/replay.js +1 -0
  74. package/dist/runtime-api.js +1 -0
  75. package/dist/runtime-observer.js +1 -0
  76. package/dist/security/self-defending.js +1 -0
  77. package/dist/session-capsule-store.js +1 -0
  78. package/dist/session-manager.js +1 -0
  79. package/dist/structured-logger.js +1 -0
  80. package/dist/support.js +1 -0
  81. package/dist/terminal-preview.js +1 -0
  82. package/dist/timeline/symptom-bisect.js +1 -0
  83. package/dist/timeline-manager.js +1 -0
  84. package/dist/tool-backend.js +1 -0
  85. package/dist/tool-schema.js +1 -0
  86. package/dist/voice-manager.js +1 -0
  87. package/dist/workspace-index.js +1 -0
  88. package/package.json +94 -0
  89. package/scripts/minify.js +114 -0
  90. package/scripts/postinstall.cjs +81 -0
  91. package/scripts/published-install-smoke.cjs +103 -0
  92. package/scripts/release-smoke.cjs +116 -0
  93. package/scripts/run-eval.ts +84 -0
  94. package/scripts/run-tests.cjs +54 -0
  95. 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! ✅"