lbrain-coding-agents 0.1.0__tar.gz → 0.1.2__tar.gz

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 (31) hide show
  1. {lbrain_coding_agents-0.1.0/lbrain_coding_agents.egg-info → lbrain_coding_agents-0.1.2}/PKG-INFO +7 -3
  2. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/README.md +5 -1
  3. lbrain_coding_agents-0.1.2/lbrain_agents/__init__.py +4 -0
  4. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/lbrain_agents/cli.py +6 -0
  5. lbrain_coding_agents-0.1.2/lbrain_agents/mcp_entry.py +29 -0
  6. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/lbrain_agents/share/agent-plugin/plugin.json +1 -1
  7. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/lbrain_agents/share/cookbooks/01-abstain.md +2 -0
  8. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2/lbrain_coding_agents.egg-info}/PKG-INFO +7 -3
  9. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/lbrain_coding_agents.egg-info/SOURCES.txt +1 -0
  10. lbrain_coding_agents-0.1.2/lbrain_coding_agents.egg-info/entry_points.txt +4 -0
  11. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/pyproject.toml +4 -2
  12. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/tests/test_installer.py +16 -0
  13. lbrain_coding_agents-0.1.0/lbrain_agents/__init__.py +0 -3
  14. lbrain_coding_agents-0.1.0/lbrain_coding_agents.egg-info/entry_points.txt +0 -2
  15. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/LICENSE +0 -0
  16. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/lbrain_agents/__main__.py +0 -0
  17. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/lbrain_agents/installer.py +0 -0
  18. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/lbrain_agents/share/agent-plugin/mcp.json +0 -0
  19. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/lbrain_agents/share/agent-plugin/skills/lbrain-memory/SKILL.md +0 -0
  20. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/lbrain_agents/share/cookbooks/02-superseded.md +0 -0
  21. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/lbrain_agents/share/cookbooks/03-model-swap.md +0 -0
  22. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/lbrain_agents/share/cookbooks/toy-lair/deploy-runbook-2025-09-14.md +0 -0
  23. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/lbrain_agents/share/cookbooks/toy-lair/deploy-runbook-2026-03-02.md +0 -0
  24. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/lbrain_agents/share/cookbooks/toy-lair/metrics-exporter-2026-01-10.md +0 -0
  25. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/lbrain_agents/share/docs/openclaw.md +0 -0
  26. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/lbrain_agents/share/hooks/session-start.sh +0 -0
  27. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/lbrain_agents/share/skills/lbrain-memory/SKILL.md +0 -0
  28. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/lbrain_agents/wrap.py +0 -0
  29. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/lbrain_coding_agents.egg-info/dependency_links.txt +0 -0
  30. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/lbrain_coding_agents.egg-info/top_level.txt +0 -0
  31. {lbrain_coding_agents-0.1.0 → lbrain_coding_agents-0.1.2}/setup.cfg +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lbrain-coding-agents
3
- Version: 0.1.0
4
- Summary: Install LBrain into coding agents: native MCP, companion skill, fail-closed session start.
3
+ Version: 0.1.2
4
+ Summary: Install LBrain into coding agents: native MCP, companion skill, fail-closed session start. Claim your agent identity free at https://lbrain.ai
5
5
  Author: Metavolve Labs, Inc.
6
6
  License: BSD-3-Clause
7
7
  Project-URL: Homepage, https://lbrain.ai
@@ -17,11 +17,15 @@ Dynamic: license-file
17
17
 
18
18
  # LBrain coding-agents
19
19
 
20
+ <!-- mcp-name: ai.lbrain/lbrain -->
21
+
20
22
  Install LBrain where the agent already lives.
21
23
 
24
+ Claim your agent identity free at https://lbrain.ai
25
+
22
26
  Native MCP + companion skill + fail-closed session-start for Claude Code, Codex, Cursor, Copilot, Grok Build, Gemini CLI, Antigravity, and OpenClaw.
23
27
 
24
- This package does **not** modify the LBrain engine. It wires hosts to `lbrain mcp`.
28
+ This package does **not** modify the LBrain engine. It wires hosts to `lbrain mcp`. The Official MCP Registry / VS Code `@mcp` gallery entry also execs that same stdio server.
25
29
 
26
30
  ## Install the engine first
27
31
 
@@ -1,10 +1,14 @@
1
1
  # LBrain coding-agents
2
2
 
3
+ <!-- mcp-name: ai.lbrain/lbrain -->
4
+
3
5
  Install LBrain where the agent already lives.
4
6
 
7
+ Claim your agent identity free at https://lbrain.ai
8
+
5
9
  Native MCP + companion skill + fail-closed session-start for Claude Code, Codex, Cursor, Copilot, Grok Build, Gemini CLI, Antigravity, and OpenClaw.
6
10
 
7
- This package does **not** modify the LBrain engine. It wires hosts to `lbrain mcp`.
11
+ This package does **not** modify the LBrain engine. It wires hosts to `lbrain mcp`. The Official MCP Registry / VS Code `@mcp` gallery entry also execs that same stdio server.
8
12
 
9
13
  ## Install the engine first
10
14
 
@@ -0,0 +1,4 @@
1
+ """LBrain coding-agent installer. Does not import the LBrain engine."""
2
+
3
+ __version__ = "0.1.2"
4
+ IDENTITY_LINE = "Claim your agent identity free at https://lbrain.ai"
@@ -29,6 +29,9 @@ def _print_actions(actions: List[Action]) -> int:
29
29
  if a.kind == "error":
30
30
  return 2
31
31
  print(f"\n{changed} change(s). Runtime: {runtime_dir()}")
32
+ from lbrain_agents import IDENTITY_LINE
33
+
34
+ print(IDENTITY_LINE)
32
35
  return 0
33
36
 
34
37
 
@@ -41,6 +44,9 @@ def cmd_status(_: argparse.Namespace) -> int:
41
44
  present = detected_harnesses()
42
45
  for name in ALL_HARNESSES:
43
46
  print(f" {'yes' if present[name] else 'no ':3} {name}")
47
+ from lbrain_agents import IDENTITY_LINE
48
+
49
+ print(IDENTITY_LINE)
44
50
  return 0 if binary else 1
45
51
 
46
52
 
@@ -0,0 +1,29 @@
1
+ """stdio MCP entry for the Official MCP Registry / VS Code @mcp gallery.
2
+
3
+ Does not reimplement the engine. Exec's `lbrain mcp` from PATH (the PyPI `lbrain` package).
4
+ """
5
+
6
+ from __future__ import annotations
7
+
8
+ import os
9
+ import shutil
10
+ import sys
11
+
12
+
13
+ def main(argv: list[str] | None = None) -> int:
14
+ args = list(sys.argv[1:] if argv is None else argv)
15
+ binary = shutil.which("lbrain")
16
+ if not binary:
17
+ print(
18
+ 'lbrain is not on PATH. Install the engine first:\n'
19
+ ' pip install "lbrain[local]"\n'
20
+ "Claim your agent identity free at https://lbrain.ai",
21
+ file=sys.stderr,
22
+ )
23
+ return 1
24
+ os.execvp(binary, [binary, "mcp", *args])
25
+ return 0
26
+
27
+
28
+ if __name__ == "__main__":
29
+ raise SystemExit(main())
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/agentsmd/agents.md/main/schemas/plugin.schema.json",
3
3
  "name": "lbrain-memory",
4
4
  "version": "0.1.0",
5
- "description": "Evidence-gated local-first memory for AI agents. Retrieve with source and date; abstain when the record does not bind.",
5
+ "description": "Evidence-gated local-first memory for AI agents. Retrieve with source and date; abstain when the record does not bind. Claim your agent identity free at https://lbrain.ai",
6
6
  "author": {
7
7
  "name": "Metavolve Labs, Inc."
8
8
  },
@@ -48,3 +48,5 @@ python3 -m lbrain_agents install claude-code
48
48
  ```
49
49
 
50
50
  Then ask the same question in the coding agent. The companion skill tells it to prefer `binds` and abstain on near-miss.
51
+
52
+ Claim your agent identity free at https://lbrain.ai
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lbrain-coding-agents
3
- Version: 0.1.0
4
- Summary: Install LBrain into coding agents: native MCP, companion skill, fail-closed session start.
3
+ Version: 0.1.2
4
+ Summary: Install LBrain into coding agents: native MCP, companion skill, fail-closed session start. Claim your agent identity free at https://lbrain.ai
5
5
  Author: Metavolve Labs, Inc.
6
6
  License: BSD-3-Clause
7
7
  Project-URL: Homepage, https://lbrain.ai
@@ -17,11 +17,15 @@ Dynamic: license-file
17
17
 
18
18
  # LBrain coding-agents
19
19
 
20
+ <!-- mcp-name: ai.lbrain/lbrain -->
21
+
20
22
  Install LBrain where the agent already lives.
21
23
 
24
+ Claim your agent identity free at https://lbrain.ai
25
+
22
26
  Native MCP + companion skill + fail-closed session-start for Claude Code, Codex, Cursor, Copilot, Grok Build, Gemini CLI, Antigravity, and OpenClaw.
23
27
 
24
- This package does **not** modify the LBrain engine. It wires hosts to `lbrain mcp`.
28
+ This package does **not** modify the LBrain engine. It wires hosts to `lbrain mcp`. The Official MCP Registry / VS Code `@mcp` gallery entry also execs that same stdio server.
25
29
 
26
30
  ## Install the engine first
27
31
 
@@ -5,6 +5,7 @@ lbrain_agents/__init__.py
5
5
  lbrain_agents/__main__.py
6
6
  lbrain_agents/cli.py
7
7
  lbrain_agents/installer.py
8
+ lbrain_agents/mcp_entry.py
8
9
  lbrain_agents/wrap.py
9
10
  lbrain_agents/share/agent-plugin/mcp.json
10
11
  lbrain_agents/share/agent-plugin/plugin.json
@@ -0,0 +1,4 @@
1
+ [console_scripts]
2
+ lbrain-agents = lbrain_agents.cli:main
3
+ lbrain-coding-agents = lbrain_agents.mcp_entry:main
4
+ lbrain-mcp = lbrain_agents.mcp_entry:main
@@ -4,8 +4,8 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "lbrain-coding-agents"
7
- version = "0.1.0"
8
- description = "Install LBrain into coding agents: native MCP, companion skill, fail-closed session start."
7
+ version = "0.1.2"
8
+ description = "Install LBrain into coding agents: native MCP, companion skill, fail-closed session start. Claim your agent identity free at https://lbrain.ai"
9
9
  readme = "README.md"
10
10
  license = { text = "BSD-3-Clause" }
11
11
  requires-python = ">=3.10"
@@ -24,6 +24,8 @@ Issues = "https://github.com/metavolve-labs/lbrain-coding-agents/issues"
24
24
 
25
25
  [project.scripts]
26
26
  lbrain-agents = "lbrain_agents.cli:main"
27
+ lbrain-coding-agents = "lbrain_agents.mcp_entry:main"
28
+ lbrain-mcp = "lbrain_agents.mcp_entry:main"
27
29
 
28
30
  [tool.setuptools.packages.find]
29
31
  include = ["lbrain_agents*"]
@@ -13,6 +13,8 @@ from lbrain_agents.installer import ( # noqa: E402
13
13
  _toml_remove_table,
14
14
  _toml_has_table,
15
15
  )
16
+ from lbrain_agents.mcp_entry import main as mcp_main # noqa: E402
17
+ from lbrain_agents import IDENTITY_LINE # noqa: E402
16
18
 
17
19
 
18
20
  class JsonMergeTests(unittest.TestCase):
@@ -88,5 +90,19 @@ class TomlMergeTests(unittest.TestCase):
88
90
  self.assertNotIn("[mcp_servers.lbrain]", out)
89
91
 
90
92
 
93
+ class McpEntryTests(unittest.TestCase):
94
+ def test_identity_line_points_at_lbrain_ai(self):
95
+ self.assertIn("https://lbrain.ai", IDENTITY_LINE)
96
+ self.assertIn("identity", IDENTITY_LINE.lower())
97
+
98
+ def test_mcp_entry_fails_closed_without_lbrain(self):
99
+ import os
100
+ from unittest.mock import patch
101
+
102
+ with patch.dict(os.environ, {"PATH": ""}, clear=False):
103
+ with patch("lbrain_agents.mcp_entry.shutil.which", return_value=None):
104
+ self.assertEqual(mcp_main([]), 1)
105
+
106
+
91
107
  if __name__ == "__main__":
92
108
  unittest.main()
@@ -1,3 +0,0 @@
1
- """LBrain coding-agent installer. Does not import the LBrain engine."""
2
-
3
- __version__ = "0.1.0"
@@ -1,2 +0,0 @@
1
- [console_scripts]
2
- lbrain-agents = lbrain_agents.cli:main