Compare commits

..

1 Commits

Author SHA1 Message Date
sdk-dev da544bf2df docs(sdk): fix stale GitHub URL to internal repo
Test / test (3.12) (pull_request) Successful in 1m41s
Test / test (3.11) (pull_request) Successful in 1m46s
Test / test (3.13) (pull_request) Successful in 1m48s
[Do] Manual ack
sop-checklist / all-items-acked SOP checklist acknowledged by sdk-dev
Update the molecule-core docs URL in CLAUDE.md from the suspended
github.com/hongmingw/molecule-monorepo to the correct internal
repo URL on git.moleculesai.app.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-13 11:32:34 +00:00
2 changed files with 10 additions and 14 deletions
+1 -1
View File
@@ -233,4 +233,4 @@ python -m molecule_agent verify-sha256 ./my-plugin-dir
triage.
- **CLAUDE.md/PLAN.md sync PRs:** treat these as always noteworthy.
- **molecule-core docs:** Full platform `PLAN.md` and architecture docs at
`https://github.com/hongmingw/molecule-monorepo`
`https://git.moleculesai.app/molecule-ai/internal`
+9 -13
View File
@@ -8,11 +8,9 @@ What this does:
3. Runs a heartbeat + state-poll loop; exits cleanly when the platform
reports the workspace paused or deleted.
What it doesn't do (see run_agent_loop for the full version):
- Host an inbound A2A server. Use run_agent_loop(handler) instead of
run_heartbeat_loop() to also receive inbound A2A messages and reply
via the platform's /notify (canvas user) and /a2a (peer agent) endpoints.
The reply transport is auto-selected based on message source.
What it doesn't do (future 30.8b work):
- Host an inbound A2A server. Platform-initiated calls to this agent
won't reach it unless you expose one yourself.
Usage:
# One-time setup on the platform side:
@@ -28,7 +26,7 @@ Usage:
-d '{"key":"REMOTE_DEMO_KEY","value":"hello-from-remote"}'
# Now run this script from any machine that can reach the platform:
WORKSPACE_ID=<id> PLATFORM_URL=http://localhost:8080 python3 examples/remote-agent/run.py
WORKSPACE_ID=<id> PLATFORM_URL=http://localhost:8080 python3 run.py
Environment variables:
WORKSPACE_ID (required)
@@ -43,14 +41,12 @@ import os
import sys
# Local-dev import path — when installed via pip the molecule_agent package
# resolves normally; when running from the repo checkout we add the repo root
# to sys.path so you can run `python3 examples/remote-agent/run.py` without
# a pip install.
# resolves normally; when running from the repo checkout we add sdk/python/
# to sys.path so you can run `python3 run.py` without a pip install.
_here = os.path.dirname(os.path.abspath(__file__))
_repo_root = os.path.normpath(os.path.join(_here, "..", ".."))
_molecule_agent = os.path.join(_repo_root, "molecule_agent")
if os.path.isdir(_molecule_agent) and _repo_root not in sys.path:
sys.path.insert(0, _repo_root)
_sdk = os.path.join(_here, "..", "..", "sdk", "python")
if os.path.isdir(_sdk) and _sdk not in sys.path:
sys.path.insert(0, _sdk)
from molecule_agent import RemoteAgentClient # noqa: E402